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9mEA1s67sw8ToHtNOxHn0mGcnkhE2FfkTnTyEen03GLHEAdpiokIK2iYSxAMwbAOwBAMDwHD6gHDYgyd8cfiIEfPiBSy49MVGd5dFJD4fsdvImP9xoVh7YbF/dbpghgaF7gQDMEQDMEQDMFQA8NJ67IorqgV/woX1m1YJ2AIhoeAYfWAIRgeQhkq8uwpn6H4PW/q9xbrvhJsJnmYr0j2+EWHvo7lHBqaNv+N8crI+T4cbr/56pV3FAyiQ8OGgdAiarahuX3ZuOGGKI22b+o32ND0t8O00YbJ1rCT6214vUDpNtyO36dpIi8zzf6dqOaBzPPdExNnk6qy1BcKCto4fBJZjSTS9C22vPwBNe6VE5hkQT4AAAAASUVORK5CYII=
html {
height: 100%;
width: 100%;
}
body {
background-color: #000000;
background-image: url(https://doc-links-manual-howto.github.io/img/bg1mtrx-blue.jpg) ;
background-attachment:fixed;
background-size: cover;
background-repeat: no-repeat;
background-position: right;
}
html body.tc-body div.tc-page-container-wrapper div div.tc-dropzone span.tc-topbar.tc-topbar-right span.tc-reveal {
color: #42fd00;
background: #ab12cd;
font-size: 15px
<<box-shadow "inset 0 2px 0 #23ff00">>
}
.tc-image-chevron-left {
width: 44px;
height: 44px;
}
.tc-topbar-right {
width: 44px;
height: 44px;
}
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="60" height="60">
<title>Electric_charge_symbol_negative</title>
<desc>Electric_charge_symbol_negative
about: http://commons.wikimedia.org/wiki/File:Electric_charge_symbol_negative.svg
rights: GNU Free Documentation license,
Creative Commons Attribution ShareAlike license
</desc>
<!--<rect id="background" x="0" y="0" width="60" height="60" fill="#ffffff"/>-->
<g id="charge_negative" transform="translate(33,33) scale(1,-1)">
<circle style="fill:none; stroke:none" cx="0" cy="0" r="44.5"/>
<circle cx="0" cy="0" r="22.5" style="fill:url(#white_spot); stroke:#00dd00; stroke-width:7"/>
<path transform="scale(4,5)" style="fill:#00ff00; stroke:none"
d="M 4,1 H -4 V -1 H 4 V 1 Z"/>
</g>
</svg>
https://doc-links-manual-howto.github.io/pub/wiki.html#
<?xml version="1.0"?>
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.0" width="28" height="28" id="checkbox">
<defs id="defs7"/>
<path d="M 11.94,20.25 8.7,13.64 C 7.5836008,11.362408 8.7449524,11.954942 9.234963,12.670011 12.802978,17.461386 11.781076,19.309624 14.75,13.24 L 20.707,1.0616 C 21.19746,0.0424868 21.563475,1.05578 21.049,2.27 l -6.488,17.07 c -0.381549,1.003861 -1.786,2.05 -2.621,0.9 l -10e-4,0.005 10e-4,0.005 z" id="tick" style="fill:#00ff00"><path d="M 11.94,20.25 8.7,13.64 C 7.5836008,11.362408 8.7449524,11.954942 9.234963,12.670011 12.802978,17.461386 11.781076,19.309624 14.75,13.24 L 20.707,1.0616 C 21.19746,0.0424868 21.563475,1.05578 21.049,2.27 l -6.488,17.07 c -0.381549,1.003861 -1.786,2.05 -2.621,0.9 l -10e-4,0.005 10e-4,0.005 z" id="tick" style="fill:#440000"/></path>
<rect width="19" height="19" x="4.5" y="4.5" id="box" style="fill:none;stroke:#00ff00;stroke-width:2;stroke-opacity:0.33000004"/></svg>
<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.8); }</style>
/* ==================== */
/* ControlPanel Element */
/* ==================== */
.ShadeWrapperCP {
display: flex;
margin-left: auto;
margin-right: auto;
}
.ShadeContainerCP {
display: flex;
flex-flow: row wrap;
}
.ShadeTitleCP {
flex-grow: 1;
width: 100%;
background-color: #000000;
color: #FFFFFF;
font-weight: bold;
text-align: center;
}
.ShadeHeaderCP {
width: 114px;
background-color: lightblue;
color: black;
text-align: center;
font-size: 120%;
font-weight: bold;
}
.ShadeCellCP {
flex-grow: 1;
background-color: silver;
font-size: 10pt;
padding: 10px;
}
.ShadeElementCP {
display: inline-block;
width: 100px;
font-weight: bold;
text-align: right;
}
/* =============== */
/* SideBar Element */
/* =============== */
.ShadeWrapperSB {
display: flex;
width: 95%;
margin-left: auto;
margin-right: auto;
}
.ShadeContainerSB {
display: flex;
flex-flow: row wrap;
}
.ShadeTitleSB {
flex-grow: 1;
width: 100%;
background-color: #000000;
color: #FFFFFF;
font-weight: bold;
text-align: center;
}
.ShadeHeaderSB {
width: 114px;
background-color: lightblue;
color: black;
font-size: 120%;
text-align: center;
font-weight: bold;
}
.ShadeCellSB {
flex-grow: 1;
/* background-color: rgba(255,255,255,0.8); */
/* background-color: silver; */
font-size: 10pt;
padding: 10px;
}
.ShadeElementSB {
display: inline-block;
width: 100px;
font-weight: bold;
text-align: right;
}
https://doc-links-manual-howto.github.io/pub/wiki.html
$:/core/ui/SideBar/Recent
{
"tiddlers": {
"$:/Acknowledgements": {
"title": "$:/Acknowledgements",
"text": "TiddlyWiki incorporates code from these fine OpenSource projects:\n\n* [[The Stanford Javascript Crypto Library|http://bitwiseshiftleft.github.io/sjcl/]]\n* [[The Jasmine JavaScript Test Framework|http://pivotal.github.io/jasmine/]]\n* [[Normalize.css by Nicolas Gallagher|http://necolas.github.io/normalize.css/]]\n\nAnd media from these projects:\n\n* World flag icons from [[Wikipedia|http://commons.wikimedia.org/wiki/Category:SVG_flags_by_country]]\n"
},
"$:/core/copyright.txt": {
"title": "$:/core/copyright.txt",
"type": "text/plain",
"text": "TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright (c) 2004-2007, Jeremy Ruston\nCopyright (c) 2007-2018, UnaMesa Association\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
},
"$:/core/icon": {
"title": "$:/core/icon",
"tags": "$:/tags/Image",
"text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path d=\"M64 0l54.56 32v64L64 128 9.44 96V32L64 0zm21.127 95.408c-3.578-.103-5.15-.094-6.974-3.152l-1.42.042c-1.653-.075-.964-.04-2.067-.097-1.844-.07-1.548-1.86-1.873-2.8-.52-3.202.687-6.43.65-9.632-.014-1.14-1.593-5.17-2.157-6.61-1.768.34-3.546.406-5.34.497-4.134-.01-8.24-.527-12.317-1.183-.8 3.35-3.16 8.036-1.21 11.44 2.37 3.52 4.03 4.495 6.61 4.707 2.572.212 3.16 3.18 2.53 4.242-.55.73-1.52.864-2.346 1.04l-1.65.08c-1.296-.046-2.455-.404-3.61-.955-1.93-1.097-3.925-3.383-5.406-5.024.345.658.55 1.938.24 2.53-.878 1.27-4.665 1.26-6.4.47-1.97-.89-6.73-7.162-7.468-11.86 1.96-3.78 4.812-7.07 6.255-11.186-3.146-2.05-4.83-5.384-4.61-9.16l.08-.44c-3.097.59-1.49.37-4.82.628-10.608-.032-19.935-7.37-14.68-18.774.34-.673.664-1.287 1.243-.994.466.237.4 1.18.166 2.227-3.005 13.627 11.67 13.732 20.69 11.21.89-.25 2.67-1.936 3.905-2.495 2.016-.91 4.205-1.282 6.376-1.55 5.4-.63 11.893 2.276 15.19 2.37 3.3.096 7.99-.805 10.87-.615 2.09.098 4.143.483 6.16 1.03 1.306-6.49 1.4-11.27 4.492-12.38 1.814.293 3.213 2.818 4.25 4.167 2.112-.086 4.12.46 6.115 1.066 3.61-.522 6.642-2.593 9.833-4.203-3.234 2.69-3.673 7.075-3.303 11.127.138 2.103-.444 4.386-1.164 6.54-1.348 3.507-3.95 7.204-6.97 7.014-1.14-.036-1.805-.695-2.653-1.4-.164 1.427-.81 2.7-1.434 3.96-1.44 2.797-5.203 4.03-8.687 7.016-3.484 2.985 1.114 13.65 2.23 15.594 1.114 1.94 4.226 2.652 3.02 4.406-.37.58-.936.785-1.54 1.01l-.82.11zm-40.097-8.85l.553.14c.694-.27 2.09.15 2.83.353-1.363-1.31-3.417-3.24-4.897-4.46-.485-1.47-.278-2.96-.174-4.46l.02-.123c-.582 1.205-1.322 2.376-1.72 3.645-.465 1.71 2.07 3.557 3.052 4.615l.336.3z\" fill-rule=\"evenodd\"/></svg>"
},
"$:/core/images/add-comment": {
"title": "$:/core/images/add-comment",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-add-comment tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path d=\"M56 56H36a8 8 0 1 0 0 16h20v20a8 8 0 1 0 16 0V72h20a8 8 0 1 0 0-16H72V36a8 8 0 1 0-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z\" fill-rule=\"evenodd\"/></svg>"
},
"$:/core/images/advanced-search-button": {
"title": "$:/core/images/advanced-search-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-advanced-search-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M74.5651535,87.9848361 C66.9581537,93.0488876 57.8237115,96 48,96 C21.490332,96 0,74.509668 0,48 C0,21.490332 21.490332,0 48,0 C74.509668,0 96,21.490332 96,48 C96,57.8541369 93.0305793,67.0147285 87.9377231,74.6357895 L122.284919,108.982985 C125.978897,112.676963 125.973757,118.65366 122.284271,122.343146 C118.593975,126.033442 112.613238,126.032921 108.92411,122.343793 L74.5651535,87.9848361 Z M48,80 C65.673112,80 80,65.673112 80,48 C80,30.326888 65.673112,16 48,16 C30.326888,16 16,30.326888 16,48 C16,65.673112 30.326888,80 48,80 Z\"></path>\n <circle cx=\"48\" cy=\"48\" r=\"8\"></circle>\n <circle cx=\"28\" cy=\"48\" r=\"8\"></circle>\n <circle cx=\"68\" cy=\"48\" r=\"8\"></circle>\n </g>\n</svg>"
},
"$:/core/images/auto-height": {
"title": "$:/core/images/auto-height",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-auto-height tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <path d=\"M67.9867828,114.356363 L67.9579626,99.8785426 C67.9550688,98.4248183 67.1636987,97.087107 65.8909901,96.3845863 L49.9251455,87.5716209 L47.992126,95.0735397 L79.8995411,95.0735397 C84.1215894,95.0735397 85.4638131,89.3810359 81.686497,87.4948823 L49.7971476,71.5713518 L48.0101917,79.1500092 L79.992126,79.1500092 C84.2093753,79.1500092 85.5558421,73.4676733 81.7869993,71.5753162 L49.805065,55.517008 L48.0101916,63.0917009 L79.9921259,63.0917015 C84.2035118,63.0917016 85.5551434,57.4217887 81.7966702,55.5218807 L65.7625147,47.4166161 L67.9579705,50.9864368 L67.9579705,35.6148245 L77.1715737,44.8284272 C78.7336709,46.3905243 81.2663308,46.3905243 82.8284279,44.8284271 C84.390525,43.2663299 84.390525,40.7336699 82.8284278,39.1715728 L66.8284271,23.1715728 C65.2663299,21.6094757 62.73367,21.6094757 61.1715729,23.1715729 L45.1715729,39.1715729 C43.6094757,40.73367 43.6094757,43.26633 45.1715729,44.8284271 C46.73367,46.3905243 49.26633,46.3905243 50.8284271,44.8284271 L59.9579705,35.6988837 L59.9579705,50.9864368 C59.9579705,52.495201 60.806922,53.8755997 62.1534263,54.5562576 L78.1875818,62.6615223 L79.9921261,55.0917015 L48.0101917,55.0917009 C43.7929424,55.0917008 42.4464755,60.7740368 46.2153183,62.6663939 L78.1972526,78.7247021 L79.992126,71.1500092 L48.0101917,71.1500092 C43.7881433,71.1500092 42.4459197,76.842513 46.2232358,78.7286665 L78.1125852,94.6521971 L79.8995411,87.0735397 L47.992126,87.0735397 C43.8588276,87.0735397 42.4404876,92.5780219 46.0591064,94.5754586 L62.024951,103.388424 L59.9579785,99.8944677 L59.9867142,114.32986 L50.8284271,105.171573 C49.26633,103.609476 46.73367,103.609476 45.1715729,105.171573 C43.6094757,106.73367 43.6094757,109.26633 45.1715729,110.828427 L61.1715729,126.828427 C62.73367,128.390524 65.2663299,128.390524 66.8284271,126.828427 L82.8284278,110.828427 C84.390525,109.26633 84.390525,106.73367 82.8284279,105.171573 C81.2663308,103.609476 78.7336709,103.609476 77.1715737,105.171573 L67.9867828,114.356363 L67.9867828,114.356363 Z M16,20 L112,20 C114.209139,20 116,18.209139 116,16 C116,13.790861 114.209139,12 112,12 L16,12 C13.790861,12 12,13.790861 12,16 C12,18.209139 13.790861,20 16,20 L16,20 Z\"></path>\n</svg>"
},
"$:/core/images/blank": {
"title": "$:/core/images/blank",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-blank tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\"></svg>"
},
"$:/core/images/bold": {
"title": "$:/core/images/bold",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-bold tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M41.1456583,51.8095238 L41.1456583,21.8711485 L67.4985994,21.8711485 C70.0084159,21.8711485 72.4285598,22.0802967 74.7591036,22.4985994 C77.0896475,22.9169022 79.1512515,23.6638602 80.9439776,24.7394958 C82.7367036,25.8151314 84.170863,27.3090474 85.2464986,29.2212885 C86.3221342,31.1335296 86.859944,33.5835518 86.859944,36.5714286 C86.859944,41.9496067 85.2465147,45.8337882 82.0196078,48.2240896 C78.792701,50.614391 74.6694929,51.8095238 69.6498599,51.8095238 L41.1456583,51.8095238 Z M13,0 L13,128 L75.0280112,128 C80.7647346,128 86.3519803,127.28292 91.789916,125.848739 C97.2278517,124.414559 102.068139,122.203563 106.310924,119.215686 C110.553709,116.22781 113.929959,112.373506 116.439776,107.652661 C118.949592,102.931816 120.204482,97.3445701 120.204482,90.8907563 C120.204482,82.8832466 118.262391,76.0411115 114.378151,70.3641457 C110.493911,64.6871798 104.607883,60.7133634 96.719888,58.442577 C102.456611,55.6937304 106.788968,52.1680887 109.717087,47.8655462 C112.645206,43.5630037 114.109244,38.1849062 114.109244,31.7310924 C114.109244,25.7553389 113.123259,20.7357813 111.151261,16.6722689 C109.179262,12.6087565 106.400578,9.35201972 102.815126,6.90196078 C99.2296739,4.45190185 94.927196,2.68908101 89.907563,1.61344538 C84.8879301,0.537809748 79.3305627,0 73.2352941,0 L13,0 Z M41.1456583,106.128852 L41.1456583,70.9915966 L71.8011204,70.9915966 C77.896389,70.9915966 82.7964334,72.3958776 86.5014006,75.2044818 C90.2063677,78.0130859 92.0588235,82.7039821 92.0588235,89.2773109 C92.0588235,92.6237329 91.4911355,95.3725383 90.3557423,97.5238095 C89.2203491,99.6750808 87.6965548,101.378145 85.7843137,102.633053 C83.8720726,103.887961 81.661077,104.784311 79.1512605,105.322129 C76.641444,105.859947 74.0121519,106.128852 71.2633053,106.128852 L41.1456583,106.128852 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/cancel-button": {
"title": "$:/core/images/cancel-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-cancel-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n\t<g fill-rule=\"evenodd\">\n\t <path d=\"M64,76.3137085 L47.0294734,93.2842351 C43.9038742,96.4098343 38.8399231,96.4084656 35.7157288,93.2842712 C32.5978915,90.166434 32.5915506,85.0947409 35.7157649,81.9705266 L52.6862915,65 L35.7157649,48.0294734 C32.5901657,44.9038742 32.5915344,39.8399231 35.7157288,36.7157288 C38.833566,33.5978915 43.9052591,33.5915506 47.0294734,36.7157649 L64,53.6862915 L80.9705266,36.7157649 C84.0961258,33.5901657 89.1600769,33.5915344 92.2842712,36.7157288 C95.4021085,39.833566 95.4084494,44.9052591 92.2842351,48.0294734 L75.3137085,65 L92.2842351,81.9705266 C95.4098343,85.0961258 95.4084656,90.1600769 92.2842712,93.2842712 C89.166434,96.4021085 84.0947409,96.4084494 80.9705266,93.2842351 L64,76.3137085 Z M64,129 C99.346224,129 128,100.346224 128,65 C128,29.653776 99.346224,1 64,1 C28.653776,1 1.13686838e-13,29.653776 1.13686838e-13,65 C1.13686838e-13,100.346224 28.653776,129 64,129 Z M64,113 C90.509668,113 112,91.509668 112,65 C112,38.490332 90.509668,17 64,17 C37.490332,17 16,38.490332 16,65 C16,91.509668 37.490332,113 64,113 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/chevron-down": {
"title": "$:/core/images/chevron-down",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-chevron-down tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n\t<g fill-rule=\"evenodd\" transform=\"translate(64.000000, 40.500000) rotate(-270.000000) translate(-64.000000, -40.500000) translate(-22.500000, -26.500000)\">\n <path d=\"M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\" transform=\"translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \"></path>\n <path d=\"M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\" transform=\"translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \"></path>\n\t</g>\n</svg>"
},
"$:/core/images/chevron-left": {
"title": "$:/core/images/chevron-left",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-chevron-left tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\" version=\"1.1\">\n <g fill-rule=\"evenodd\" transform=\"translate(92.500000, 64.000000) rotate(-180.000000) translate(-92.500000, -64.000000) translate(6.000000, -3.000000)\">\n <path d=\"M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\" transform=\"translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \"></path>\n <path d=\"M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\" transform=\"translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \"></path>\n </g>\n</svg>"
},
"$:/core/images/chevron-right": {
"title": "$:/core/images/chevron-right",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-chevron-right tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\" transform=\"translate(-48.000000, -3.000000)\">\n <path d=\"M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\" transform=\"translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \"></path>\n <path d=\"M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\" transform=\"translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \"></path>\n </g>\n</svg>"
},
"$:/core/images/chevron-up": {
"title": "$:/core/images/chevron-up",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-chevron-up tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n\t<g fill-rule=\"evenodd\" transform=\"translate(64.000000, 89.500000) rotate(-90.000000) translate(-64.000000, -89.500000) translate(-22.500000, 22.500000)\">\n <path d=\"M112.743107,112.12741 C111.310627,113.561013 109.331747,114.449239 107.145951,114.449239 L27.9777917,114.449239 C23.6126002,114.449239 20.0618714,110.904826 20.0618714,106.532572 C20.0618714,102.169214 23.6059497,98.6159054 27.9777917,98.6159054 L99.2285381,98.6159054 L99.2285381,27.365159 C99.2285381,22.9999675 102.77295,19.4492387 107.145205,19.4492387 C111.508562,19.4492387 115.061871,22.993317 115.061871,27.365159 L115.061871,106.533318 C115.061871,108.71579 114.175869,110.694669 112.743378,112.127981 Z\" transform=\"translate(67.561871, 66.949239) rotate(-45.000000) translate(-67.561871, -66.949239) \"></path>\n <path d=\"M151.35638,112.12741 C149.923899,113.561013 147.94502,114.449239 145.759224,114.449239 L66.5910645,114.449239 C62.225873,114.449239 58.6751442,110.904826 58.6751442,106.532572 C58.6751442,102.169214 62.2192225,98.6159054 66.5910645,98.6159054 L137.841811,98.6159054 L137.841811,27.365159 C137.841811,22.9999675 141.386223,19.4492387 145.758478,19.4492387 C150.121835,19.4492387 153.675144,22.993317 153.675144,27.365159 L153.675144,106.533318 C153.675144,108.71579 152.789142,110.694669 151.356651,112.127981 Z\" transform=\"translate(106.175144, 66.949239) rotate(-45.000000) translate(-106.175144, -66.949239) \"></path>\n\t</g>\n</svg>"
},
"$:/core/images/clone-button": {
"title": "$:/core/images/clone-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-clone-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M32.2650915,96 L32.2650915,120.002359 C32.2650915,124.419334 35.8432884,128 40.2627323,128 L120.002359,128 C124.419334,128 128,124.421803 128,120.002359 L128,40.2627323 C128,35.8457573 124.421803,32.2650915 120.002359,32.2650915 L96,32.2650915 L96,48 L108.858899,48 C110.519357,48 111.853018,49.3405131 111.853018,50.9941198 L111.853018,108.858899 C111.853018,110.519357 110.512505,111.853018 108.858899,111.853018 L50.9941198,111.853018 C49.333661,111.853018 48,110.512505 48,108.858899 L48,96 L32.2650915,96 Z\"></path>\n <path d=\"M40,56 L32.0070969,56 C27.5881712,56 24,52.418278 24,48 C24,43.5907123 27.5848994,40 32.0070969,40 L40,40 L40,32.0070969 C40,27.5881712 43.581722,24 48,24 C52.4092877,24 56,27.5848994 56,32.0070969 L56,40 L63.9929031,40 C68.4118288,40 72,43.581722 72,48 C72,52.4092877 68.4151006,56 63.9929031,56 L56,56 L56,63.9929031 C56,68.4118288 52.418278,72 48,72 C43.5907123,72 40,68.4151006 40,63.9929031 L40,56 Z M7.9992458,0 C3.58138434,0 0,3.5881049 0,7.9992458 L0,88.0007542 C0,92.4186157 3.5881049,96 7.9992458,96 L88.0007542,96 C92.4186157,96 96,92.4118951 96,88.0007542 L96,7.9992458 C96,3.58138434 92.4118951,0 88.0007542,0 L7.9992458,0 Z M19.0010118,16 C17.3435988,16 16,17.336731 16,19.0010118 L16,76.9989882 C16,78.6564012 17.336731,80 19.0010118,80 L76.9989882,80 C78.6564012,80 80,78.663269 80,76.9989882 L80,19.0010118 C80,17.3435988 78.663269,16 76.9989882,16 L19.0010118,16 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/close-all-button": {
"title": "$:/core/images/close-all-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-close-all-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\" transform=\"translate(-23.000000, -23.000000)\">\n <path d=\"M43,131 L22.9976794,131 C18.5827987,131 15,127.418278 15,123 C15,118.590712 18.5806831,115 22.9976794,115 L43,115 L43,94.9976794 C43,90.5827987 46.581722,87 51,87 C55.4092877,87 59,90.5806831 59,94.9976794 L59,115 L79.0023206,115 C83.4172013,115 87,118.581722 87,123 C87,127.409288 83.4193169,131 79.0023206,131 L59,131 L59,151.002321 C59,155.417201 55.418278,159 51,159 C46.5907123,159 43,155.419317 43,151.002321 L43,131 Z\" transform=\"translate(51.000000, 123.000000) rotate(-45.000000) translate(-51.000000, -123.000000) \"></path>\n <path d=\"M43,59 L22.9976794,59 C18.5827987,59 15,55.418278 15,51 C15,46.5907123 18.5806831,43 22.9976794,43 L43,43 L43,22.9976794 C43,18.5827987 46.581722,15 51,15 C55.4092877,15 59,18.5806831 59,22.9976794 L59,43 L79.0023206,43 C83.4172013,43 87,46.581722 87,51 C87,55.4092877 83.4193169,59 79.0023206,59 L59,59 L59,79.0023206 C59,83.4172013 55.418278,87 51,87 C46.5907123,87 43,83.4193169 43,79.0023206 L43,59 Z\" transform=\"translate(51.000000, 51.000000) rotate(-45.000000) translate(-51.000000, -51.000000) \"></path>\n <path d=\"M115,59 L94.9976794,59 C90.5827987,59 87,55.418278 87,51 C87,46.5907123 90.5806831,43 94.9976794,43 L115,43 L115,22.9976794 C115,18.5827987 118.581722,15 123,15 C127.409288,15 131,18.5806831 131,22.9976794 L131,43 L151.002321,43 C155.417201,43 159,46.581722 159,51 C159,55.4092877 155.419317,59 151.002321,59 L131,59 L131,79.0023206 C131,83.4172013 127.418278,87 123,87 C118.590712,87 115,83.4193169 115,79.0023206 L115,59 Z\" transform=\"translate(123.000000, 51.000000) rotate(-45.000000) translate(-123.000000, -51.000000) \"></path>\n <path d=\"M115,131 L94.9976794,131 C90.5827987,131 87,127.418278 87,123 C87,118.590712 90.5806831,115 94.9976794,115 L115,115 L115,94.9976794 C115,90.5827987 118.581722,87 123,87 C127.409288,87 131,90.5806831 131,94.9976794 L131,115 L151.002321,115 C155.417201,115 159,118.581722 159,123 C159,127.409288 155.419317,131 151.002321,131 L131,131 L131,151.002321 C131,155.417201 127.418278,159 123,159 C118.590712,159 115,155.419317 115,151.002321 L115,131 Z\" transform=\"translate(123.000000, 123.000000) rotate(-45.000000) translate(-123.000000, -123.000000) \"></path>\n </g>\n</svg>"
},
"$:/core/images/close-button": {
"title": "$:/core/images/close-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-close-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M65.0864256,75.4091629 L14.9727349,125.522854 C11.8515951,128.643993 6.78104858,128.64922 3.65685425,125.525026 C0.539017023,122.407189 0.5336324,117.334539 3.65902635,114.209145 L53.7727171,64.0954544 L3.65902635,13.9817637 C0.537886594,10.8606239 0.532659916,5.79007744 3.65685425,2.6658831 C6.77469148,-0.451954124 11.8473409,-0.457338747 14.9727349,2.66805521 L65.0864256,52.7817459 L115.200116,2.66805521 C118.321256,-0.453084553 123.391803,-0.458311231 126.515997,2.6658831 C129.633834,5.78372033 129.639219,10.8563698 126.513825,13.9817637 L76.4001341,64.0954544 L126.513825,114.209145 C129.634965,117.330285 129.640191,122.400831 126.515997,125.525026 C123.39816,128.642863 118.32551,128.648248 115.200116,125.522854 L65.0864256,75.4091629 L65.0864256,75.4091629 Z\"></path>\n </g>\n</svg>\n"
},
"$:/core/images/close-others-button": {
"title": "$:/core/images/close-others-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-close-others-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z M64,96 C81.673112,96 96,81.673112 96,64 C96,46.326888 81.673112,32 64,32 C46.326888,32 32,46.326888 32,64 C32,81.673112 46.326888,96 64,96 Z M64,80 C72.836556,80 80,72.836556 80,64 C80,55.163444 72.836556,48 64,48 C55.163444,48 48,55.163444 48,64 C48,72.836556 55.163444,80 64,80 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/copy-clipboard": {
"title": "$:/core/images/copy-clipboard",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-copy-clipboard tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n\t<g fill-rule=\"evenodd\">\n\t\t<rect x=\"40\" y=\"40\" width=\"33\" height=\"8\" rx=\"4\"></rect>\n\t\t<rect x=\"40\" y=\"82\" width=\"17\" height=\"8\" rx=\"4\"></rect>\n\t\t<rect x=\"40\" y=\"54\" width=\"17\" height=\"8\" rx=\"4\"></rect>\n\t\t<rect x=\"40\" y=\"96\" width=\"33\" height=\"8\" rx=\"4\"></rect>\n\t\t<rect x=\"40\" y=\"68\" width=\"12\" height=\"8\" rx=\"4\"></rect>\n\t\t<path d=\"M40,16 L23.9992458,16 C19.5813843,16 16,19.5907123 16,24 C16,24.0016363 16.0000005,24.0032725 16.0000015,24.0049086 C16.0000005,24.0065441 16,24.0081803 16,24.0098166 L16,119.990183 C16,119.99182 16.0000005,119.993456 16.0000015,119.995092 C16.0000005,119.996727 16,119.998364 16,120 C16,124.409288 19.5813843,128 23.9992458,128 L104.000754,128 C106.205061,128 108.203844,127.105595 109.652065,125.659342 C111.102424,124.21251 112,122.214511 112,120.007595 L112,103.992405 C112,99.5776607 108.418278,96 104,96 C99.5907123,96 96,99.5783218 96,103.992405 L96,112 L32,112 L32,32 L96,32 L96,40.0075946 C96,44.4223393 99.581722,48 104,48 C108.409288,48 112,44.4216782 112,40.0075946 L112,23.9924054 C112,21.7851587 111.104671,19.7871591 109.657101,18.3409203 C108.203844,16.8944047 106.205061,16 104.000754,16 L88,16 C88,11.5907123 84.4151006,8 79.9929031,8 L48.0070969,8 C43.5881712,8 40,11.581722 40,16 Z M44,14.9958262 C44,12.7889923 45.7964248,11 48.0000255,11 L79.9999745,11 C82.2091276,11 84,12.7965212 84,14.9958262 L84,19.0041738 C84,21.2110077 82.2035752,23 79.9999745,23 L48.0000255,23 C45.7908724,23 44,21.2034788 44,19.0041738 L44,14.9958262 Z\"></path>\n\t\t<rect x=\"62\" y=\"64\" width=\"66\" height=\"16\" rx=\"8\"></rect>\n\t\t<path d=\"M60.6568542,85.6568542 L76.6568542,69.6568543 L65.3431458,69.6568542 L81.3431458,85.6568542 C84.4673401,88.7810486 89.5326599,88.7810486 92.6568542,85.6568542 C95.7810486,82.5326599 95.7810486,77.4673401 92.6568542,74.3431458 L76.6568542,58.3431458 C73.5326599,55.2189514 68.4673401,55.2189514 65.3431458,58.3431457 L49.3431458,74.3431457 C46.2189514,77.4673401 46.2189514,82.5326599 49.3431457,85.6568542 C52.4673401,88.7810486 57.5326599,88.7810486 60.6568542,85.6568542 L60.6568542,85.6568542 Z\" transform=\"translate(71.000000, 72.000000) rotate(-90.000000) translate(-71.000000, -72.000000) \"></path>\n\t</g>\n</svg>"
},
"$:/core/images/delete-button": {
"title": "$:/core/images/delete-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-delete-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\" transform=\"translate(12.000000, 0.000000)\">\n <rect x=\"0\" y=\"11\" width=\"105\" height=\"16\" rx=\"8\"></rect>\n <rect x=\"28\" y=\"0\" width=\"48\" height=\"16\" rx=\"8\"></rect>\n <rect x=\"8\" y=\"16\" width=\"16\" height=\"112\" rx=\"8\"></rect>\n <rect x=\"8\" y=\"112\" width=\"88\" height=\"16\" rx=\"8\"></rect>\n <rect x=\"80\" y=\"16\" width=\"16\" height=\"112\" rx=\"8\"></rect>\n <rect x=\"56\" y=\"16\" width=\"16\" height=\"112\" rx=\"8\"></rect>\n <rect x=\"32\" y=\"16\" width=\"16\" height=\"112\" rx=\"8\"></rect>\n </g>\n</svg>"
},
"$:/core/images/done-button": {
"title": "$:/core/images/done-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-done-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M3.52445141,76.8322939 C2.07397484,75.3828178 1.17514421,73.3795385 1.17514421,71.1666288 L1.17514421,23.1836596 C1.17514421,18.7531992 4.75686621,15.1751442 9.17514421,15.1751442 C13.5844319,15.1751442 17.1751442,18.7606787 17.1751442,23.1836596 L17.1751442,63.1751442 L119.173716,63.1751442 C123.590457,63.1751442 127.175144,66.7568662 127.175144,71.1751442 C127.175144,75.5844319 123.592783,79.1751442 119.173716,79.1751442 L9.17657227,79.1751442 C6.96796403,79.1751442 4.9674142,78.279521 3.51911285,76.8315312 Z\" id=\"Rectangle-285\" transform=\"translate(64.175144, 47.175144) rotate(-45.000000) translate(-64.175144, -47.175144) \"></path>\n </g>\n</svg>"
},
"$:/core/images/down-arrow": {
"title": "$:/core/images/down-arrow",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-down-arrow tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <path d=\"M109.35638,81.3533152 C107.923899,82.7869182 105.94502,83.6751442 103.759224,83.6751442 L24.5910645,83.6751442 C20.225873,83.6751442 16.6751442,80.1307318 16.6751442,75.7584775 C16.6751442,71.3951199 20.2192225,67.8418109 24.5910645,67.8418109 L95.8418109,67.8418109 L95.8418109,-3.40893546 C95.8418109,-7.77412698 99.3862233,-11.3248558 103.758478,-11.3248558 C108.121835,-11.3248558 111.675144,-7.78077754 111.675144,-3.40893546 L111.675144,75.7592239 C111.675144,77.9416955 110.789142,79.9205745 109.356651,81.3538862 Z\" transform=\"translate(64.175144, 36.175144) rotate(45.000000) translate(-64.175144, -36.175144) \"></path>\n</svg>"
},
"$:/core/images/download-button": {
"title": "$:/core/images/download-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-download-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path class=\"tc-image-download-button-ring\" d=\"M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z\"/><path d=\"M34.3496823,66.4308767 L61.2415823,93.634668 C63.0411536,95.4551107 65.9588502,95.4551107 67.7584215,93.634668 L94.6503215,66.4308767 C96.4498928,64.610434 96.4498928,61.6588981 94.6503215,59.8384554 C93.7861334,58.9642445 92.6140473,58.4731195 91.3919019,58.4731195 L82.9324098,58.4731195 C80.3874318,58.4731195 78.3243078,56.3860674 78.3243078,53.8115729 L78.3243078,38.6615466 C78.3243078,36.0870521 76.2611837,34 73.7162058,34 L55.283798,34 C52.7388201,34 50.675696,36.0870521 50.675696,38.6615466 L50.675696,38.6615466 L50.675696,53.8115729 C50.675696,56.3860674 48.612572,58.4731195 46.0675941,58.4731195 L37.608102,58.4731195 C35.063124,58.4731195 33,60.5601716 33,63.134666 C33,64.3709859 33.4854943,65.5566658 34.3496823,66.4308767 L34.3496823,66.4308767 Z\"/></g></svg>"
},
"$:/core/images/edit-button": {
"title": "$:/core/images/edit-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-edit-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M116.870058,45.3431458 L108.870058,45.3431458 L108.870058,45.3431458 L108.870058,61.3431458 L116.870058,61.3431458 L116.870058,45.3431458 Z M124.870058,45.3431458 L127.649881,45.3431458 C132.066101,45.3431458 135.656854,48.9248678 135.656854,53.3431458 C135.656854,57.7524334 132.07201,61.3431458 127.649881,61.3431458 L124.870058,61.3431458 L124.870058,45.3431458 Z M100.870058,45.3431458 L15.6638275,45.3431458 C15.5064377,45.3431458 15.3501085,45.3476943 15.1949638,45.3566664 L15.1949638,45.3566664 C15.0628002,45.3477039 14.928279,45.3431458 14.7913977,45.3431458 C6.68160973,45.3431458 -8.34314575,53.3431458 -8.34314575,53.3431458 C-8.34314575,53.3431458 6.85614548,61.3431458 14.7913977,61.3431458 C14.9266533,61.3431458 15.0596543,61.3384973 15.190398,61.3293588 C15.3470529,61.3385075 15.5049057,61.3431458 15.6638275,61.3431458 L100.870058,61.3431458 L100.870058,45.3431458 L100.870058,45.3431458 Z\" transform=\"translate(63.656854, 53.343146) rotate(-45.000000) translate(-63.656854, -53.343146) \"></path>\n <path d=\"M35.1714596,124.189544 C41.9594858,123.613403 49.068777,121.917633 58.85987,118.842282 C60.6854386,118.268877 62.4306907,117.705515 65.1957709,116.802278 C81.1962861,111.575575 87.0734839,109.994907 93.9414474,109.655721 C102.29855,109.242993 107.795169,111.785371 111.520478,118.355045 C112.610163,120.276732 115.051363,120.951203 116.97305,119.861518 C118.894737,118.771832 119.569207,116.330633 118.479522,114.408946 C113.146151,105.003414 104.734907,101.112919 93.5468356,101.66546 C85.6716631,102.054388 79.4899908,103.716944 62.7116783,109.197722 C59.9734132,110.092199 58.2519873,110.64787 56.4625698,111.20992 C37.002649,117.322218 25.6914684,118.282267 16.8654804,112.957098 C14.9739614,111.815848 12.5154166,112.424061 11.3741667,114.31558 C10.2329168,116.207099 10.84113,118.665644 12.7326489,119.806894 C19.0655164,123.627836 26.4866335,124.926678 35.1714596,124.189544 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/erase": {
"title": "$:/core/images/erase",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-erase tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M60.0870401,127.996166 L123.102318,64.980888 C129.636723,58.4464827 129.629513,47.8655877 123.098967,41.3350425 L99.4657866,17.7018617 C92.927448,11.1635231 82.3486358,11.1698163 75.8199411,17.698511 L4.89768189,88.6207702 C-1.63672343,95.1551755 -1.6295126,105.736071 4.90103262,112.266616 L20.6305829,127.996166 L60.0870401,127.996166 Z M25.1375576,120.682546 L10.812569,106.357558 C7.5455063,103.090495 7.54523836,97.793808 10.8048093,94.5342371 L46.2691086,59.0699377 L81.7308914,94.5317205 L55.5800654,120.682546 L25.1375576,120.682546 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/excise": {
"title": "$:/core/images/excise",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-excise tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M56,107.313709 L53.6568542,109.656854 C50.5326599,112.781049 45.4673401,112.781049 42.3431457,109.656854 C39.2189514,106.53266 39.2189514,101.46734 42.3431458,98.3431457 L58.3431458,82.3431457 C61.4673401,79.2189514 66.5326599,79.2189514 69.6568542,82.3431458 L85.6568542,98.3431458 C88.7810486,101.46734 88.7810486,106.53266 85.6568542,109.656854 C82.5326599,112.781049 77.4673401,112.781049 74.3431458,109.656854 L72,107.313708 L72,121.597798 C72,125.133636 68.418278,128 64,128 C59.581722,128 56,125.133636 56,121.597798 L56,107.313709 Z M0,40.0070969 C0,35.5848994 3.59071231,32 8,32 C12.418278,32 16,35.5881712 16,40.0070969 L16,71.9929031 C16,76.4151006 12.4092877,80 8,80 C3.581722,80 0,76.4118288 0,71.9929031 L0,40.0070969 Z M32,40.0070969 C32,35.5848994 35.5907123,32 40,32 C44.418278,32 48,35.5881712 48,40.0070969 L48,71.9929031 C48,76.4151006 44.4092877,80 40,80 C35.581722,80 32,76.4118288 32,71.9929031 L32,40.0070969 Z M80,40.0070969 C80,35.5848994 83.5907123,32 88,32 C92.418278,32 96,35.5881712 96,40.0070969 L96,71.9929031 C96,76.4151006 92.4092877,80 88,80 C83.581722,80 80,76.4118288 80,71.9929031 L80,40.0070969 Z M56,8.00709688 C56,3.58489938 59.5907123,0 64,0 C68.418278,0 72,3.58817117 72,8.00709688 L72,39.9929031 C72,44.4151006 68.4092877,48 64,48 C59.581722,48 56,44.4118288 56,39.9929031 L56,8.00709688 Z M112,40.0070969 C112,35.5848994 115.590712,32 120,32 C124.418278,32 128,35.5881712 128,40.0070969 L128,71.9929031 C128,76.4151006 124.409288,80 120,80 C115.581722,80 112,76.4118288 112,71.9929031 L112,40.0070969 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/export-button": {
"title": "$:/core/images/export-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-export-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M8.00348646,127.999999 C8.00464867,128 8.00581094,128 8.00697327,128 L119.993027,128 C122.205254,128 124.207939,127.101378 125.657096,125.651198 L125.656838,125.65759 C127.104563,124.210109 128,122.21009 128,119.999949 L128,56.0000511 C128,51.5817449 124.409288,48 120,48 C115.581722,48 112,51.5797863 112,56.0000511 L112,112 L16,112 L16,56.0000511 C16,51.5817449 12.4092877,48 8,48 C3.581722,48 7.10542736e-15,51.5797863 7.10542736e-15,56.0000511 L7.10542736e-15,119.999949 C7.10542736e-15,124.418255 3.59071231,128 8,128 C8.00116233,128 8.0023246,128 8.00348681,127.999999 Z M56.6235633,27.3113724 L47.6580188,36.2769169 C44.5333664,39.4015692 39.4634864,39.4061295 36.339292,36.2819351 C33.2214548,33.1640979 33.2173444,28.0901742 36.3443103,24.9632084 L58.9616908,2.34582788 C60.5248533,0.782665335 62.5748436,0.000361191261 64.624516,2.38225238e-14 L64.6193616,0.00151809229 C66.6695374,0.000796251595 68.7211167,0.781508799 70.2854358,2.34582788 L92.9028163,24.9632084 C96.0274686,28.0878607 96.0320289,33.1577408 92.9078345,36.2819351 C89.7899973,39.3997724 84.7160736,39.4038827 81.5891078,36.2769169 L72.6235633,27.3113724 L72.6235633,88.5669606 C72.6235633,92.9781015 69.0418413,96.5662064 64.6235633,96.5662064 C60.2142756,96.5662064 56.6235633,92.984822 56.6235633,88.5669606 L56.6235633,27.3113724 L56.6235633,27.3113724 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/file": {
"title": "$:/core/images/file",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-file tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"nonzero\">\n <path d=\"M111.96811,30.5 L112,30.5 L112,119.999079 C112,124.417866 108.419113,128 104.000754,128 L23.9992458,128 C19.5813843,128 16,124.417687 16,119.999079 L16,8.00092105 C16,3.58213437 19.5808867,0 23.9992458,0 L81,0 L81,0.0201838424 C83.1589869,-0.071534047 85.3482153,0.707077645 86.9982489,2.35711116 L109.625176,24.9840387 C111.151676,26.510538 111.932942,28.4998414 111.96811,30.5 L111.96811,30.5 Z M81,8 L24,8 L24,120 L104,120 L104,30.5 L89.0003461,30.5 C84.5818769,30.5 81,26.9216269 81,22.4996539 L81,8 Z\"></path>\n <rect x=\"32\" y=\"36\" width=\"64\" height=\"8\" rx=\"4\"></rect>\n <rect x=\"32\" y=\"52\" width=\"64\" height=\"8\" rx=\"4\"></rect>\n <rect x=\"32\" y=\"68\" width=\"64\" height=\"8\" rx=\"4\"></rect>\n <rect x=\"32\" y=\"84\" width=\"64\" height=\"8\" rx=\"4\"></rect>\n <rect x=\"32\" y=\"100\" width=\"64\" height=\"8\" rx=\"4\"></rect>\n <rect x=\"32\" y=\"20\" width=\"40\" height=\"8\" rx=\"4\"></rect>\n </g>\n</svg>"
},
"$:/core/images/fixed-height": {
"title": "$:/core/images/fixed-height",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-fixed-height tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M60,35.6568542 L50.8284271,44.8284271 C49.26633,46.3905243 46.73367,46.3905243 45.1715729,44.8284271 C43.6094757,43.26633 43.6094757,40.73367 45.1715729,39.1715729 L61.1715729,23.1715729 C62.73367,21.6094757 65.2663299,21.6094757 66.8284271,23.1715728 L82.8284278,39.1715728 C84.390525,40.7336699 84.390525,43.2663299 82.8284279,44.8284271 C81.2663308,46.3905243 78.7336709,46.3905243 77.1715737,44.8284272 L68,35.6568539 L68,93.3431461 L77.1715737,84.1715728 C78.7336709,82.6094757 81.2663308,82.6094757 82.8284279,84.1715729 C84.390525,85.7336701 84.390525,88.2663301 82.8284278,89.8284272 L66.8284271,105.828427 C65.2663299,107.390524 62.73367,107.390524 61.1715729,105.828427 L45.1715729,89.8284271 C43.6094757,88.26633 43.6094757,85.73367 45.1715729,84.1715729 C46.73367,82.6094757 49.26633,82.6094757 50.8284271,84.1715729 L60,93.3431458 L60,35.6568542 L60,35.6568542 Z M16,116 L112,116 C114.209139,116 116,114.209139 116,112 C116,109.790861 114.209139,108 112,108 L16,108 C13.790861,108 12,109.790861 12,112 C12,114.209139 13.790861,116 16,116 L16,116 Z M16,20 L112,20 C114.209139,20 116,18.209139 116,16 C116,13.790861 114.209139,12 112,12 L16,12 C13.790861,12 12,13.790861 12,16 C12,18.209139 13.790861,20 16,20 L16,20 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/fold-all-button": {
"title": "$:/core/images/fold-all-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-fold-all tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <rect x=\"0\" y=\"0\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <rect x=\"0\" y=\"64\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <path d=\"M64.0292774,58.6235628 C61.9791013,58.6242848 59.9275217,57.8435723 58.3632024,56.279253 L35.7458219,33.6618725 C32.6211696,30.5372202 32.6166093,25.4673401 35.7408036,22.3431458 C38.8586409,19.2253085 43.9325646,19.2211982 47.0595304,22.348164 L64.0250749,39.3137085 L80.9906194,22.348164 C84.1152717,19.2235117 89.1851518,19.2189514 92.3093461,22.3431458 C95.4271834,25.460983 95.4312937,30.5349067 92.3043279,33.6618725 L69.6869474,56.279253 C68.1237851,57.8424153 66.0737951,58.6247195 64.0241231,58.6250809 Z\" transform=\"translate(64.024316, 39.313708) scale(1, -1) translate(-64.024316, -39.313708) \"></path>\n <path d=\"M64.0292774,123.621227 C61.9791013,123.621949 59.9275217,122.841236 58.3632024,121.276917 L35.7458219,98.6595365 C32.6211696,95.5348842 32.6166093,90.4650041 35.7408036,87.3408098 C38.8586409,84.2229725 43.9325646,84.2188622 47.0595304,87.345828 L64.0250749,104.311373 L80.9906194,87.345828 C84.1152717,84.2211757 89.1851518,84.2166154 92.3093461,87.3408098 C95.4271834,90.458647 95.4312937,95.5325707 92.3043279,98.6595365 L69.6869474,121.276917 C68.1237851,122.840079 66.0737951,123.622383 64.0241231,123.622745 Z\" transform=\"translate(64.024316, 104.311372) scale(1, -1) translate(-64.024316, -104.311372) \"></path>\n </g>\n</svg>"
},
"$:/core/images/fold-button": {
"title": "$:/core/images/fold-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-fold tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <rect x=\"0\" y=\"0\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <path d=\"M64.0292774,63.6235628 C61.9791013,63.6242848 59.9275217,62.8435723 58.3632024,61.279253 L35.7458219,38.6618725 C32.6211696,35.5372202 32.6166093,30.4673401 35.7408036,27.3431458 C38.8586409,24.2253085 43.9325646,24.2211982 47.0595304,27.348164 L64.0250749,44.3137085 L80.9906194,27.348164 C84.1152717,24.2235117 89.1851518,24.2189514 92.3093461,27.3431458 C95.4271834,30.460983 95.4312937,35.5349067 92.3043279,38.6618725 L69.6869474,61.279253 C68.1237851,62.8424153 66.0737951,63.6247195 64.0241231,63.6250809 Z\" transform=\"translate(64.024316, 44.313708) scale(1, -1) translate(-64.024316, -44.313708) \"></path>\n <path d=\"M64.0049614,105.998482 C61.9547853,105.999204 59.9032057,105.218491 58.3388864,103.654172 L35.7215059,81.0367916 C32.5968535,77.9121393 32.5922933,72.8422592 35.7164876,69.7180649 C38.8343248,66.6002276 43.9082485,66.5961173 47.0352144,69.7230831 L64.0007589,86.6886276 L80.9663034,69.7230831 C84.0909557,66.5984308 89.1608358,66.5938705 92.2850301,69.7180649 C95.4028673,72.8359021 95.4069777,77.9098258 92.2800119,81.0367916 L69.6626314,103.654172 C68.099469,105.217334 66.0494791,105.999639 63.999807,106 Z\" transform=\"translate(64.000000, 86.688628) scale(1, -1) translate(-64.000000, -86.688628) \"></path>\n </g>\n</svg>"
},
"$:/core/images/fold-others-button": {
"title": "$:/core/images/fold-others-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-fold-others tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <rect x=\"0\" y=\"56.0314331\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <path d=\"M101.657101,104.948818 C100.207918,103.498614 98.2051847,102.599976 95.9929031,102.599976 L72,102.599976 L72,78.6070725 C72,76.3964271 71.1036108,74.3936927 69.6545293,72.9441002 L69.6571005,72.9488183 C68.2079177,71.4986143 66.2051847,70.5999756 63.9929031,70.5999756 L32.0070969,70.5999756 C27.5881712,70.5999756 24,74.1816976 24,78.5999756 C24,83.0092633 27.5848994,86.5999756 32.0070969,86.5999756 L56,86.5999756 L56,110.592879 C56,112.803524 56.8963895,114.806259 58.3454713,116.255852 L58.3429,116.251133 C59.7920828,117.701337 61.7948156,118.599976 64.0070969,118.599976 L88,118.599976 L88,142.592879 C88,147.011804 91.581722,150.599976 96,150.599976 C100.409288,150.599976 104,147.015076 104,142.592879 L104,110.607072 C104,108.396427 103.103611,106.393693 101.654529,104.9441 Z\" transform=\"translate(64.000000, 110.599976) rotate(-45.000000) translate(-64.000000, -110.599976) \"></path>\n <path d=\"M101.725643,11.7488671 C100.27646,10.2986632 98.2737272,9.40002441 96.0614456,9.40002441 L72.0685425,9.40002441 L72.0685425,-14.5928787 C72.0685425,-16.8035241 71.1721533,-18.8062584 69.7230718,-20.255851 L69.725643,-20.2511329 C68.2764602,-21.7013368 66.2737272,-22.5999756 64.0614456,-22.5999756 L32.0756394,-22.5999756 C27.6567137,-22.5999756 24.0685425,-19.0182536 24.0685425,-14.5999756 C24.0685425,-10.1906879 27.6534419,-6.59997559 32.0756394,-6.59997559 L56.0685425,-6.59997559 L56.0685425,17.3929275 C56.0685425,19.6035732 56.964932,21.6063078 58.4140138,23.0559004 L58.4114425,23.0511823 C59.8606253,24.5013859 61.8633581,25.4000244 64.0756394,25.4000244 L88.0685425,25.4000244 L88.0685425,49.3929275 C88.0685425,53.8118532 91.6502645,57.4000244 96.0685425,57.4000244 C100.47783,57.4000244 104.068542,53.815125 104.068542,49.3929275 L104.068542,17.4071213 C104.068542,15.1964759 103.172153,13.1937416 101.723072,11.744149 Z\" transform=\"translate(64.068542, 17.400024) scale(1, -1) rotate(-45.000000) translate(-64.068542, -17.400024) \"></path>\n </g>\n</svg>"
},
"$:/core/images/folder": {
"title": "$:/core/images/folder",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-folder tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M55.6943257,128.000004 L7.99859666,128.000004 C3.5810937,128.000004 0,124.413822 0,119.996384 L0,48.0036243 C0,43.5833471 3.58387508,40.0000044 7.99859666,40.0000044 L16,40.0000044 L16,31.9999914 C16,27.5817181 19.5783731,24 24.0003461,24 L55.9996539,24 C60.4181231,24 64,27.5800761 64,31.9999914 L64,40.0000044 L104.001403,40.0000044 C108.418906,40.0000044 112,43.5861868 112,48.0036243 L112,59.8298353 L104,59.7475921 L104,51.9994189 C104,49.7887607 102.207895,48.0000044 99.9972215,48.0000044 L56,48.0000044 L56,36.0000255 C56,33.7898932 54.2072328,32 51.9957423,32 L28.0042577,32 C25.7890275,32 24,33.7908724 24,36.0000255 L24,48.0000044 L12.0027785,48.0000044 C9.78987688,48.0000044 8,49.7906032 8,51.9994189 L8,116.00059 C8,118.211248 9.79210499,120.000004 12.0027785,120.000004 L58.7630167,120.000004 L55.6943257,128.000004 L55.6943257,128.000004 Z\"></path>\n <path d=\"M23.8728955,55.5 L119.875702,55.5 C124.293205,55.5 126.87957,59.5532655 125.650111,64.5630007 L112.305967,118.936999 C111.077582,123.942356 106.497904,128 102.083183,128 L6.08037597,128 C1.66287302,128 -0.923492342,123.946735 0.305967145,118.936999 L13.650111,64.5630007 C14.878496,59.5576436 19.4581739,55.5 23.8728955,55.5 L23.8728955,55.5 L23.8728955,55.5 Z M25.6530124,64 L113.647455,64 C115.858129,64 117.151473,66.0930612 116.538306,68.6662267 L105.417772,115.333773 C104.803671,117.910859 102.515967,120 100.303066,120 L12.3086228,120 C10.0979492,120 8.8046054,117.906939 9.41777189,115.333773 L20.5383062,68.6662267 C21.1524069,66.0891409 23.4401107,64 25.6530124,64 L25.6530124,64 L25.6530124,64 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/full-screen-button": {
"title": "$:/core/images/full-screen-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-full-screen-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g>\n <g>\n <path d=\"M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\"></path>\n </g>\n <g transform=\"translate(104.000000, 104.000000) rotate(-180.000000) translate(-104.000000, -104.000000) translate(80.000000, 80.000000)\">\n <path d=\"M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\"></path>\n </g>\n <g transform=\"translate(24.000000, 104.000000) rotate(-90.000000) translate(-24.000000, -104.000000) translate(0.000000, 80.000000)\">\n <path d=\"M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\"></path>\n </g>\n <g transform=\"translate(104.000000, 24.000000) rotate(90.000000) translate(-104.000000, -24.000000) translate(80.000000, 0.000000)\">\n <path d=\"M5.29777586e-31,8 C1.59060409e-15,3.581722 3.581722,0 8,0 L40,0 C44.418278,0 48,3.581722 48,8 C48,12.418278 44.418278,16 40,16 L16,16 L16,40 C16,44.418278 12.418278,48 8,48 C3.581722,48 -3.55271368e-15,44.418278 0,40 L3.55271368e-15,8 Z\"></path>\n </g>\n </g>\n</svg>"
},
"$:/core/images/github": {
"title": "$:/core/images/github",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-github tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M63.9383506,1.60695328 C28.6017227,1.60695328 -0.055756057,30.2970814 -0.055756057,65.6906208 C-0.055756057,94.003092 18.2804728,118.019715 43.7123154,126.493393 C46.9143781,127.083482 48.0812647,125.104717 48.0812647,123.405261 C48.0812647,121.886765 48.02626,117.85449 47.9948287,112.508284 C30.1929317,116.379268 26.4368926,103.916587 26.4368926,103.916587 C23.5255693,96.5129372 19.3294921,94.5420399 19.3294921,94.5420399 C13.5186324,90.5687739 19.7695302,90.6474524 19.7695302,90.6474524 C26.1933001,91.099854 29.5721638,97.2525155 29.5721638,97.2525155 C35.2808718,107.044059 44.5531024,104.215566 48.1991321,102.575118 C48.7806109,98.4366275 50.4346826,95.612068 52.2616263,94.0109598 C38.0507543,92.3941159 23.1091047,86.8944862 23.1091047,62.3389152 C23.1091047,55.3443933 25.6039634,49.6205298 29.6978889,45.1437211 C29.0378318,43.5229433 26.8415704,37.0044266 30.3265147,28.1845627 C30.3265147,28.1845627 35.6973364,26.4615028 47.9241083,34.7542205 C53.027764,33.330139 58.5046663,32.6220321 63.9462084,32.5944947 C69.3838216,32.6220321 74.856795,33.330139 79.9683085,34.7542205 C92.1872225,26.4615028 97.5501864,28.1845627 97.5501864,28.1845627 C101.042989,37.0044266 98.8467271,43.5229433 98.190599,45.1437211 C102.292382,49.6205298 104.767596,55.3443933 104.767596,62.3389152 C104.767596,86.9574291 89.8023734,92.3744463 75.5482834,93.9598188 C77.8427675,95.9385839 79.8897303,99.8489072 79.8897303,105.828476 C79.8897303,114.392635 79.8111521,121.304544 79.8111521,123.405261 C79.8111521,125.120453 80.966252,127.114954 84.2115327,126.489459 C109.623731,117.996111 127.944244,93.9952241 127.944244,65.6906208 C127.944244,30.2970814 99.2867652,1.60695328 63.9383506,1.60695328\"></path>\n </g>\n </svg>\n"
},
"$:/core/images/gitter": {
"title": "$:/core/images/gitter",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-gitter tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 18 25\">\n <rect x=\"15\" y=\"5\" width=\"2\" height=\"10\"></rect>\n <rect x=\"10\" y=\"5\" width=\"2\" height=\"20\"></rect>\n <rect x=\"5\" y=\"5\" width=\"2\" height=\"20\"></rect>\n <rect width=\"2\" height=\"15\"></rect>\n</svg>\n"
},
"$:/core/images/globe": {
"title": "$:/core/images/globe",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-globe tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M72.8111354,37.1275855 C72.8111354,37.9789875 72.8111354,38.8303894 72.8111354,39.6817913 C72.8111354,41.8784743 73.7885604,46.5631866 72.8111354,48.5143758 C71.3445471,51.4420595 68.1617327,52.0543531 66.4170946,54.3812641 C65.2352215,55.9575873 61.7987417,64.9821523 62.7262858,67.3005778 C66.6959269,77.2228204 74.26087,70.4881886 80.6887657,76.594328 C81.5527211,77.415037 83.5758191,78.8666631 83.985137,79.8899578 C87.2742852,88.1128283 76.4086873,94.8989524 87.7419325,106.189751 C88.9872885,107.430443 91.555495,102.372895 91.8205061,101.575869 C92.6726866,99.0129203 98.5458765,96.1267309 100.908882,94.5234439 C102.928056,93.1534443 105.782168,91.8557166 107.236936,89.7775886 C109.507391,86.5342557 108.717505,82.2640435 110.334606,79.0328716 C112.473794,74.7585014 114.163418,69.3979002 116.332726,65.0674086 C120.230862,57.2857361 121.054075,67.1596684 121.400359,67.5059523 C121.757734,67.8633269 122.411167,67.5059523 122.916571,67.5059523 C123.011132,67.5059523 124.364019,67.6048489 124.432783,67.5059523 C125.0832,66.5705216 123.390209,49.5852316 123.114531,48.2089091 C121.710578,41.1996597 116.17083,32.4278331 111.249523,27.7092761 C104.975994,21.6942076 104.160516,11.5121686 92.9912146,12.7547535 C92.7872931,12.7774397 87.906794,22.9027026 85.2136766,26.2672064 C81.486311,30.9237934 82.7434931,22.1144904 78.6876623,22.1144904 C78.6065806,22.1144904 77.5045497,22.0107615 77.4353971,22.1144904 C76.8488637,22.9942905 75.9952305,26.0101404 75.1288269,26.5311533 C74.8635477,26.6906793 73.4071369,26.2924966 73.2826811,26.5311533 C71.0401728,30.8313939 81.5394677,28.7427264 79.075427,34.482926 C76.7225098,39.9642538 72.747373,32.4860199 72.747373,43.0434079\"></path>\n <path d=\"M44.4668556,7.01044608 C54.151517,13.1403033 45.1489715,19.2084878 47.1611905,23.2253896 C48.8157833,26.5283781 51.4021933,28.6198851 48.8753629,33.038878 C46.8123257,36.6467763 42.0052989,37.0050492 39.251679,39.7621111 C36.2115749,42.8060154 33.7884281,48.7028116 32.4624592,52.6732691 C30.8452419,57.5158356 47.0088721,59.5388126 44.5246867,63.6811917 C43.1386839,65.9923513 37.7785192,65.1466282 36.0880227,63.8791519 C34.9234453,63.0059918 32.4946425,63.3331166 31.6713597,62.0997342 C29.0575851,58.1839669 29.4107339,54.0758543 28.0457962,49.9707786 C27.1076833,47.1493864 21.732611,47.8501656 20.2022714,49.3776393 C19.6790362,49.8998948 19.8723378,51.1703278 19.8723378,51.8829111 C19.8723378,57.1682405 26.9914913,55.1986414 26.9914913,58.3421973 C26.9914913,72.9792302 30.9191897,64.8771867 38.1313873,69.6793121 C48.1678018,76.3618966 45.9763926,76.981595 53.0777543,84.0829567 C56.7511941,87.7563965 60.8192437,87.7689005 62.503478,93.3767069 C64.1046972,98.7081071 53.1759798,98.7157031 50.786754,100.825053 C49.663965,101.816317 47.9736094,104.970571 46.5680513,105.439676 C44.7757187,106.037867 43.334221,105.93607 41.6242359,107.219093 C39.1967302,109.040481 37.7241465,112.151588 37.6034934,112.030935 C35.4555278,109.88297 34.0848666,96.5511248 33.7147244,93.7726273 C33.1258872,89.3524817 28.1241923,88.2337027 26.7275443,84.7420826 C25.1572737,80.8164061 28.2518481,75.223612 25.599097,70.9819941 C19.0797019,60.557804 13.7775712,56.4811506 10.2493953,44.6896152 C9.3074899,41.5416683 13.5912267,38.1609942 15.1264825,35.8570308 C17.0029359,33.0410312 17.7876232,30.0028946 19.8723378,27.2224065 C22.146793,24.1888519 40.8551166,9.46076832 43.8574051,8.63490613 L44.4668556,7.01044608 Z\"></path>\n <path d=\"M64,126 C98.2416545,126 126,98.2416545 126,64 C126,29.7583455 98.2416545,2 64,2 C29.7583455,2 2,29.7583455 2,64 C2,98.2416545 29.7583455,126 64,126 Z M64,120 C94.927946,120 120,94.927946 120,64 C120,33.072054 94.927946,8 64,8 C33.072054,8 8,33.072054 8,64 C8,94.927946 33.072054,120 64,120 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/heading-1": {
"title": "$:/core/images/heading-1",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-heading-1 tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M14,30 L27.25,30 L27.25,60.104 L61.7,60.104 L61.7,30 L74.95,30 L74.95,105.684 L61.7,105.684 L61.7,71.552 L27.25,71.552 L27.25,105.684 L14,105.684 L14,30 Z M84.3350766,43.78 C86.8790893,43.78 89.3523979,43.5680021 91.7550766,43.144 C94.1577553,42.7199979 96.3307336,42.0133383 98.2740766,41.024 C100.21742,40.0346617 101.87807,38.7626744 103.256077,37.208 C104.634084,35.6533256 105.535075,33.7453446 105.959077,31.484 L115.817077,31.484 L115.817077,105.684 L102.567077,105.684 L102.567077,53.32 L84.3350766,53.32 L84.3350766,43.78 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/heading-2": {
"title": "$:/core/images/heading-2",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-heading-2 tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M125.519077,105.684 L74.8510766,105.684 C74.9217436,99.5359693 76.4057288,94.1653563 79.3030766,89.572 C82.2004244,84.9786437 86.1577182,80.986017 91.1750766,77.594 C93.5777553,75.8273245 96.0863969,74.113675 98.7010766,72.453 C101.315756,70.792325 103.718399,69.0080095 105.909077,67.1 C108.099754,65.1919905 109.901736,63.1250111 111.315077,60.899 C112.728417,58.6729889 113.47041,56.1113478 113.541077,53.214 C113.541077,51.8713266 113.382078,50.4403409 113.064077,48.921 C112.746075,47.4016591 112.127748,45.9883399 111.209077,44.681 C110.290405,43.3736601 109.018418,42.2783377 107.393077,41.395 C105.767735,40.5116622 103.647756,40.07 101.033077,40.07 C98.6303979,40.07 96.6340846,40.5469952 95.0440766,41.501 C93.4540687,42.4550048 92.1820814,43.762325 91.2280766,45.423 C90.2740719,47.083675 89.5674123,49.0446554 89.1080766,51.306 C88.648741,53.5673446 88.3837436,56.0053203 88.3130766,58.62 L76.2290766,58.62 C76.2290766,54.5213128 76.7767378,50.7230175 77.8720766,47.225 C78.9674154,43.7269825 80.610399,40.7060127 82.8010766,38.162 C84.9917542,35.6179873 87.6593942,33.6216739 90.8040766,32.173 C93.948759,30.7243261 97.6057224,30 101.775077,30 C106.297766,30 110.078395,30.7419926 113.117077,32.226 C116.155758,33.7100074 118.611401,35.5826554 120.484077,37.844 C122.356753,40.1053446 123.681739,42.5609868 124.459077,45.211 C125.236414,47.8610133 125.625077,50.3873213 125.625077,52.79 C125.625077,55.7580148 125.165748,58.4433213 124.247077,60.846 C123.328405,63.2486787 122.091751,65.4569899 120.537077,67.471 C118.982402,69.4850101 117.215753,71.3399915 115.237077,73.036 C113.2584,74.7320085 111.209087,76.3219926 109.089077,77.806 C106.969066,79.2900074 104.849087,80.7033266 102.729077,82.046 C100.609066,83.3886734 98.6480856,84.7313266 96.8460766,86.074 C95.0440676,87.4166734 93.47175,88.8123261 92.1290766,90.261 C90.7864032,91.7096739 89.8677458,93.2466585 89.3730766,94.872 L125.519077,94.872 L125.519077,105.684 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/heading-3": {
"title": "$:/core/images/heading-3",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-heading-3 tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M94.8850766,62.224 C96.8637532,62.294667 98.8424001,62.1533351 100.821077,61.8 C102.799753,61.4466649 104.566402,60.8283378 106.121077,59.945 C107.675751,59.0616623 108.930072,57.8426744 109.884077,56.288 C110.838081,54.7333256 111.315077,52.8253446 111.315077,50.564 C111.315077,47.3839841 110.237421,44.8400095 108.082077,42.932 C105.926733,41.0239905 103.153094,40.07 99.7610766,40.07 C97.641066,40.07 95.8037511,40.4939958 94.2490766,41.342 C92.6944022,42.1900042 91.4047484,43.3383261 90.3800766,44.787 C89.3554048,46.2356739 88.5957458,47.860991 88.1010766,49.663 C87.6064075,51.465009 87.3944096,53.3199905 87.4650766,55.228 L75.3810766,55.228 C75.5224107,51.623982 76.1937373,48.2850154 77.3950766,45.211 C78.596416,42.1369846 80.2393995,39.4693446 82.3240766,37.208 C84.4087537,34.9466554 86.9350618,33.1800064 89.9030766,31.908 C92.8710915,30.6359936 96.2277246,30 99.9730766,30 C102.870424,30 105.714729,30.4239958 108.506077,31.272 C111.297424,32.1200042 113.806065,33.3566585 116.032077,34.982 C118.258088,36.6073415 120.042403,38.6743208 121.385077,41.183 C122.72775,43.6916792 123.399077,46.5713171 123.399077,49.822 C123.399077,53.5673521 122.551085,56.8356527 120.855077,59.627 C119.159068,62.4183473 116.509095,64.4499936 112.905077,65.722 L112.905077,65.934 C117.145098,66.7820042 120.448731,68.8843166 122.816077,72.241 C125.183422,75.5976835 126.367077,79.6786426 126.367077,84.484 C126.367077,88.017351 125.660417,91.1796527 124.247077,93.971 C122.833736,96.7623473 120.925755,99.129657 118.523077,101.073 C116.120398,103.016343 113.329093,104.517995 110.149077,105.578 C106.969061,106.638005 103.612428,107.168 100.079077,107.168 C95.7683884,107.168 92.005426,106.549673 88.7900766,105.313 C85.5747272,104.076327 82.8894207,102.327345 80.7340766,100.066 C78.5787325,97.8046554 76.9357489,95.0840159 75.8050766,91.904 C74.6744043,88.7239841 74.0737436,85.1906861 74.0030766,81.304 L86.0870766,81.304 C85.9457426,85.8266893 87.0587315,89.5896517 89.4260766,92.593 C91.7934218,95.5963483 95.3443863,97.098 100.079077,97.098 C104.107097,97.098 107.481396,95.9496782 110.202077,93.653 C112.922757,91.3563219 114.283077,88.0880212 114.283077,83.848 C114.283077,80.9506522 113.717749,78.6540085 112.587077,76.958 C111.456404,75.2619915 109.972419,73.9723378 108.135077,73.089 C106.297734,72.2056623 104.230755,71.6580011 101.934077,71.446 C99.6373985,71.2339989 97.2877553,71.163333 94.8850766,71.234 L94.8850766,62.224 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/heading-4": {
"title": "$:/core/images/heading-4",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-heading-4 tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M8,30 L21.25,30 L21.25,60.104 L55.7,60.104 L55.7,30 L68.95,30 L68.95,105.684 L55.7,105.684 L55.7,71.552 L21.25,71.552 L21.25,105.684 L8,105.684 L8,30 Z M84.5890766,78.548 L107.061077,78.548 L107.061077,45.9 L106.849077,45.9 L84.5890766,78.548 Z M128.049077,88.088 L118.509077,88.088 L118.509077,105.684 L107.061077,105.684 L107.061077,88.088 L75.2610766,88.088 L75.2610766,76.11 L107.061077,31.484 L118.509077,31.484 L118.509077,78.548 L128.049077,78.548 L128.049077,88.088 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/heading-5": {
"title": "$:/core/images/heading-5",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-heading-5 tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M83.7550766,31.484 L122.127077,31.484 L122.127077,42.296 L92.7650766,42.296 L88.9490766,61.164 L89.1610766,61.376 C90.7864181,59.5386575 92.8533974,58.1430048 95.3620766,57.189 C97.8707558,56.2349952 100.361731,55.758 102.835077,55.758 C106.509762,55.758 109.795729,56.3763272 112.693077,57.613 C115.590424,58.8496729 118.0284,60.5809889 120.007077,62.807 C121.985753,65.0330111 123.487405,67.6653181 124.512077,70.704 C125.536748,73.7426819 126.049077,77.028649 126.049077,80.562 C126.049077,83.5300148 125.572081,86.5863176 124.618077,89.731 C123.664072,92.8756824 122.144754,95.7376538 120.060077,98.317 C117.9754,100.896346 115.30776,103.016325 112.057077,104.677 C108.806394,106.337675 104.919766,107.168 100.397077,107.168 C96.7930586,107.168 93.454092,106.691005 90.3800766,105.737 C87.3060613,104.782995 84.6030883,103.35201 82.2710766,101.444 C79.939065,99.5359905 78.0840835,97.1863473 76.7060766,94.395 C75.3280697,91.6036527 74.5684107,88.3353521 74.4270766,84.59 L86.5110766,84.59 C86.8644117,88.6180201 88.2423979,91.7096559 90.6450766,93.865 C93.0477553,96.0203441 96.2277235,97.098 100.185077,97.098 C102.729089,97.098 104.884401,96.6740042 106.651077,95.826 C108.417752,94.9779958 109.848738,93.8120074 110.944077,92.328 C112.039415,90.8439926 112.816741,89.1126766 113.276077,87.134 C113.735412,85.1553234 113.965077,83.0353446 113.965077,80.774 C113.965077,78.7246564 113.682413,76.763676 113.117077,74.891 C112.55174,73.018324 111.703749,71.3753404 110.573077,69.962 C109.442404,68.5486596 107.976086,67.4180042 106.174077,66.57 C104.372068,65.7219958 102.269755,65.298 99.8670766,65.298 C97.3230639,65.298 94.9380878,65.7749952 92.7120766,66.729 C90.4860655,67.6830048 88.8784149,69.4673203 87.8890766,72.082 L75.8050766,72.082 L83.7550766,31.484 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/heading-6": {
"title": "$:/core/images/heading-6",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-heading-6 tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M6,30 L19.25,30 L19.25,60.104 L53.7,60.104 L53.7,30 L66.95,30 L66.95,105.684 L53.7,105.684 L53.7,71.552 L19.25,71.552 L19.25,105.684 L6,105.684 L6,30 Z M112.587077,50.246 C112.304409,47.2073181 111.226753,44.751676 109.354077,42.879 C107.481401,41.006324 104.955093,40.07 101.775077,40.07 C99.584399,40.07 97.6940846,40.4763293 96.1040766,41.289 C94.5140687,42.1016707 93.1714154,43.1793266 92.0760766,44.522 C90.9807378,45.8646734 90.0974133,47.401658 89.4260766,49.133 C88.7547399,50.864342 88.2070787,52.6839905 87.7830766,54.592 C87.3590745,56.5000095 87.0587442,58.390324 86.8820766,60.263 C86.7054091,62.135676 86.5464107,63.8846585 86.4050766,65.51 L86.6170766,65.722 C88.2424181,62.7539852 90.4860623,60.5456739 93.3480766,59.097 C96.2100909,57.6483261 99.3017267,56.924 102.623077,56.924 C106.297762,56.924 109.583729,57.5599936 112.481077,58.832 C115.378424,60.1040064 117.834067,61.8529889 119.848077,64.079 C121.862087,66.3050111 123.399071,68.9373181 124.459077,71.976 C125.519082,75.0146819 126.049077,78.300649 126.049077,81.834 C126.049077,85.438018 125.466082,88.7769846 124.300077,91.851 C123.134071,94.9250154 121.455754,97.6103219 119.265077,99.907 C117.074399,102.203678 114.459758,103.987994 111.421077,105.26 C108.382395,106.532006 105.025762,107.168 101.351077,107.168 C95.9097161,107.168 91.4400941,106.16101 87.9420766,104.147 C84.4440591,102.13299 81.6880867,99.3770175 79.6740766,95.879 C77.6600666,92.3809825 76.2644138,88.2823568 75.4870766,83.583 C74.7097394,78.8836432 74.3210766,73.8133605 74.3210766,68.372 C74.3210766,63.9199777 74.7980719,59.4326893 75.7520766,54.91 C76.7060814,50.3873107 78.278399,46.2710186 80.4690766,42.561 C82.6597542,38.8509815 85.5393921,35.8300117 89.1080766,33.498 C92.6767611,31.1659883 97.0757171,30 102.305077,30 C105.273091,30 108.064397,30.4946617 110.679077,31.484 C113.293756,32.4733383 115.608067,33.8513245 117.622077,35.618 C119.636087,37.3846755 121.27907,39.5046543 122.551077,41.978 C123.823083,44.4513457 124.529743,47.2073181 124.671077,50.246 L112.587077,50.246 Z M100.927077,97.098 C103.117754,97.098 105.025735,96.6563378 106.651077,95.773 C108.276418,94.8896623 109.636738,93.7413404 110.732077,92.328 C111.827415,90.9146596 112.640074,89.271676 113.170077,87.399 C113.700079,85.526324 113.965077,83.6006766 113.965077,81.622 C113.965077,79.6433234 113.700079,77.7353425 113.170077,75.898 C112.640074,74.0606575 111.827415,72.4530069 110.732077,71.075 C109.636738,69.6969931 108.276418,68.5840042 106.651077,67.736 C105.025735,66.8879958 103.117754,66.464 100.927077,66.464 C98.736399,66.464 96.8107516,66.8703293 95.1500766,67.683 C93.4894017,68.4956707 92.0937489,69.5909931 90.9630766,70.969 C89.8324043,72.3470069 88.9844128,73.9546575 88.4190766,75.792 C87.8537405,77.6293425 87.5710766,79.5726564 87.5710766,81.622 C87.5710766,83.6713436 87.8537405,85.6146575 88.4190766,87.452 C88.9844128,89.2893425 89.8324043,90.9323261 90.9630766,92.381 C92.0937489,93.8296739 93.4894017,94.9779958 95.1500766,95.826 C96.8107516,96.6740042 98.736399,97.098 100.927077,97.098 L100.927077,97.098 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/help": {
"title": "$:/core/images/help",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-help tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M36.0548906,111.44117 C30.8157418,115.837088 20.8865444,118.803477 9.5,118.803477 C7.86465619,118.803477 6.25937294,118.742289 4.69372699,118.624467 C12.612543,115.984876 18.7559465,110.02454 21.0611049,102.609942 C8.74739781,92.845129 1.04940554,78.9359851 1.04940554,63.5 C1.04940554,33.9527659 29.2554663,10 64.0494055,10 C98.8433448,10 127.049406,33.9527659 127.049406,63.5 C127.049406,93.0472341 98.8433448,117 64.0494055,117 C53.9936953,117 44.48824,114.999337 36.0548906,111.44117 L36.0548906,111.44117 Z M71.4042554,77.5980086 C71.406883,77.2865764 71.4095079,76.9382011 71.4119569,76.5610548 C71.4199751,75.3262169 71.4242825,74.0811293 71.422912,72.9158546 C71.4215244,71.736154 71.4143321,70.709635 71.4001396,69.8743525 C71.4078362,68.5173028 71.9951951,67.7870427 75.1273009,65.6385471 C75.2388969,65.5619968 76.2124091,64.8981068 76.5126553,64.6910879 C79.6062455,62.5580654 81.5345849,60.9050204 83.2750652,58.5038955 C85.6146327,55.2762841 86.8327108,51.426982 86.8327108,46.8554323 C86.8327108,33.5625756 76.972994,24.9029551 65.3778484,24.9029551 C54.2752771,24.9029551 42.8794554,34.5115163 41.3121702,47.1975534 C40.9043016,50.4989536 43.2499725,53.50591 46.5513726,53.9137786 C49.8527728,54.3216471 52.8597292,51.9759763 53.2675978,48.6745761 C54.0739246,42.1479456 60.2395837,36.9492759 65.3778484,36.9492759 C70.6427674,36.9492759 74.78639,40.5885487 74.78639,46.8554323 C74.78639,50.4892974 73.6853224,52.008304 69.6746221,54.7736715 C69.4052605,54.9593956 68.448509,55.6118556 68.3131127,55.7047319 C65.6309785,57.5445655 64.0858213,58.803255 62.6123358,60.6352315 C60.5044618,63.2559399 59.3714208,66.3518252 59.3547527,69.9487679 C59.3684999,70.8407274 59.3752803,71.8084521 59.3765995,72.9300232 C59.3779294,74.0607297 59.3737237,75.2764258 59.36589,76.482835 C59.3634936,76.8518793 59.3609272,77.1924914 59.3583633,77.4963784 C59.3568319,77.6778944 59.3556368,77.8074256 59.3549845,77.8730928 C59.3219814,81.1994287 61.9917551,83.9227111 65.318091,83.9557142 C68.644427,83.9887173 71.3677093,81.3189435 71.4007124,77.9926076 C71.4014444,77.9187458 71.402672,77.7856841 71.4042554,77.5980086 Z M65.3778489,102.097045 C69.5359735,102.097045 72.9067994,98.7262189 72.9067994,94.5680944 C72.9067994,90.4099698 69.5359735,87.0391439 65.3778489,87.0391439 C61.2197243,87.0391439 57.8488984,90.4099698 57.8488984,94.5680944 C57.8488984,98.7262189 61.2197243,102.097045 65.3778489,102.097045 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/home-button": {
"title": "$:/core/images/home-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-home-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M112.9847,119.501583 C112.99485,119.336814 113,119.170705 113,119.003406 L113,67.56802 C116.137461,70.5156358 121.076014,70.4518569 124.133985,67.3938855 C127.25818,64.2696912 127.260618,59.2068102 124.131541,56.0777326 L70.3963143,2.34250601 C68.8331348,0.779326498 66.7828947,-0.000743167069 64.7337457,1.61675364e-05 C62.691312,-0.00409949529 60.6426632,0.777559815 59.077717,2.34250601 L33,28.420223 L33,28.420223 L33,8.00697327 C33,3.58484404 29.4092877,0 25,0 C20.581722,0 17,3.59075293 17,8.00697327 L17,44.420223 L5.3424904,56.0777326 C2.21694607,59.2032769 2.22220878,64.2760483 5.34004601,67.3938855 C8.46424034,70.5180798 13.5271213,70.5205187 16.6561989,67.3914411 L17,67.04764 L17,119.993027 C17,119.994189 17.0000002,119.995351 17.0000007,119.996514 C17.0000002,119.997675 17,119.998838 17,120 C17,124.418278 20.5881049,128 24.9992458,128 L105.000754,128 C109.418616,128 113,124.409288 113,120 C113,119.832611 112.99485,119.666422 112.9847,119.501583 Z M97,112 L97,51.5736087 L97,51.5736087 L64.7370156,19.3106244 L33,51.04764 L33,112 L97,112 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/import-button": {
"title": "$:/core/images/import-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-import-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M105.449437,94.2138951 C105.449437,94.2138951 110.049457,94.1897106 110.049457,99.4026111 C110.049457,104.615512 105.163246,104.615511 105.163246,104.615511 L45.0075072,105.157833 C45.0075072,105.157833 0.367531803,106.289842 0.367532368,66.6449212 C0.367532934,27.0000003 45.0428249,27.0000003 45.0428249,27.0000003 L105.532495,27.0000003 C105.532495,27.0000003 138.996741,25.6734987 138.996741,55.1771866 C138.996741,84.6808745 105.727102,82.8457535 105.727102,82.8457535 L56.1735087,82.8457535 C56.1735087,82.8457535 22.6899229,85.1500223 22.6899229,66.0913753 C22.6899229,47.0327282 56.1735087,49.3383013 56.1735087,49.3383013 L105.727102,49.3383013 C105.727102,49.3383013 111.245209,49.3383024 111.245209,54.8231115 C111.245209,60.3079206 105.727102,60.5074524 105.727102,60.5074524 L56.1735087,60.5074524 C56.1735087,60.5074524 37.48913,60.5074528 37.48913,66.6449195 C37.48913,72.7823862 56.1735087,71.6766023 56.1735087,71.6766023 L105.727102,71.6766029 C105.727102,71.6766029 127.835546,73.1411469 127.835546,55.1771866 C127.835546,35.5304025 105.727102,38.3035317 105.727102,38.3035317 L45.0428249,38.3035317 C45.0428249,38.3035317 11.5287276,38.3035313 11.5287276,66.6449208 C11.5287276,94.9863103 45.0428244,93.9579678 45.0428244,93.9579678 L105.449437,94.2138951 Z\" transform=\"translate(69.367532, 66.000000) rotate(-45.000000) translate(-69.367532, -66.000000) \"></path>\n </g>\n</svg>"
},
"$:/core/images/info-button": {
"title": "$:/core/images/info-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-info-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <g transform=\"translate(0.049406, 0.000000)\">\n <path d=\"M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z\"></path>\n <circle cx=\"64\" cy=\"32\" r=\"8\"></circle>\n <rect x=\"56\" y=\"48\" width=\"16\" height=\"56\" rx=\"8\"></rect>\n </g>\n </g>\n</svg>"
},
"$:/core/images/italic": {
"title": "$:/core/images/italic",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-italic tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <polygon points=\"66.7114846 0 89.1204482 0 62.4089636 128 40 128\"></polygon>\n </g>\n</svg>"
},
"$:/core/images/left-arrow": {
"title": "$:/core/images/left-arrow",
"created": "20150315234410875",
"modified": "20150315235324760",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-left-arrow tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <path transform=\"rotate(135, 63.8945, 64.1752)\" d=\"m109.07576,109.35336c-1.43248,1.43361 -3.41136,2.32182 -5.59717,2.32182l-79.16816,0c-4.36519,0 -7.91592,-3.5444 -7.91592,-7.91666c0,-4.36337 3.54408,-7.91667 7.91592,-7.91667l71.25075,0l0,-71.25075c0,-4.3652 3.54442,-7.91592 7.91667,-7.91592c4.36336,0 7.91667,3.54408 7.91667,7.91592l0,79.16815c0,2.1825 -0.88602,4.16136 -2.3185,5.59467l-0.00027,-0.00056z\"/>\n</svg>\n"
},
"$:/core/images/line-width": {
"title": "$:/core/images/line-width",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-line-width tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M128,-97 L112.992786,-97 C112.452362,-97 112,-96.5522847 112,-96 C112,-95.4438648 112.444486,-95 112.992786,-95 L128,-95 L128,-97 Z M128,-78.6794919 L111.216185,-88.3696322 C110.748163,-88.6398444 110.132549,-88.4782926 109.856406,-88 C109.578339,-87.5183728 109.741342,-86.9117318 110.216185,-86.6375814 L128,-76.3700908 L128,-78.6794919 Z M78.6794919,-128 L88.3696322,-111.216185 C88.6437826,-110.741342 88.4816272,-110.134474 88,-109.856406 C87.5217074,-109.580264 86.9077936,-109.748163 86.6375814,-110.216185 L76.3700908,-128 L78.6794919,-128 Z M97,-128 L97,-112.992786 C97,-112.444486 96.5561352,-112 96,-112 C95.4477153,-112 95,-112.452362 95,-112.992786 L95,-128 L97,-128 Z M115.629909,-128 L105.362419,-110.216185 C105.088268,-109.741342 104.481627,-109.578339 104,-109.856406 C103.521707,-110.132549 103.360156,-110.748163 103.630368,-111.216185 L113.320508,-128 L115.629909,-128 Z M128,-113.320508 L111.216185,-103.630368 C110.741342,-103.356217 110.134474,-103.518373 109.856406,-104 C109.580264,-104.478293 109.748163,-105.092206 110.216185,-105.362419 L128,-115.629909 L128,-113.320508 Z M48,-96 C48,-96.5522847 48.4523621,-97 48.9927864,-97 L79.0072136,-97 C79.5555144,-97 80,-96.5561352 80,-96 C80,-95.4477153 79.5476379,-95 79.0072136,-95 L48.9927864,-95 C48.4444856,-95 48,-95.4438648 48,-96 Z M54.4307806,-120 C54.706923,-120.478293 55.3225377,-120.639844 55.7905589,-120.369632 L81.7838153,-105.362419 C82.2586577,-105.088268 82.4216611,-104.481627 82.1435935,-104 C81.8674512,-103.521707 81.2518365,-103.360156 80.7838153,-103.630368 L54.7905589,-118.637581 C54.3157165,-118.911732 54.152713,-119.518373 54.4307806,-120 Z M104,-82.1435935 C104.478293,-82.4197359 105.092206,-82.2518365 105.362419,-81.7838153 L120.369632,-55.7905589 C120.643783,-55.3157165 120.481627,-54.7088482 120,-54.4307806 C119.521707,-54.1546382 118.907794,-54.3225377 118.637581,-54.7905589 L103.630368,-80.7838153 C103.356217,-81.2586577 103.518373,-81.865526 104,-82.1435935 Z M96,-80 C96.5522847,-80 97,-79.5476379 97,-79.0072136 L97,-48.9927864 C97,-48.4444856 96.5561352,-48 96,-48 C95.4477153,-48 95,-48.4523621 95,-48.9927864 L95,-79.0072136 C95,-79.5555144 95.4438648,-80 96,-80 Z M88,-82.1435935 C88.4782926,-81.8674512 88.6398444,-81.2518365 88.3696322,-80.7838153 L73.3624186,-54.7905589 C73.0882682,-54.3157165 72.4816272,-54.152713 72,-54.4307806 C71.5217074,-54.706923 71.3601556,-55.3225377 71.6303678,-55.7905589 L86.6375814,-81.7838153 C86.9117318,-82.2586577 87.5183728,-82.4216611 88,-82.1435935 Z M82.1435935,-88 C82.4197359,-87.5217074 82.2518365,-86.9077936 81.7838153,-86.6375814 L55.7905589,-71.6303678 C55.3157165,-71.3562174 54.7088482,-71.5183728 54.4307806,-72 C54.1546382,-72.4782926 54.3225377,-73.0922064 54.7905589,-73.3624186 L80.7838153,-88.3696322 C81.2586577,-88.6437826 81.865526,-88.4816272 82.1435935,-88 Z M1.30626177e-08,-41.9868843 L15.0170091,-57.9923909 L20.7983821,-52.9749272 L44.7207091,-81.2095939 L73.4260467,-42.1002685 L85.984793,-56.6159488 L104.48741,-34.0310661 L127.969109,-47.4978019 L127.969109,7.99473128e-07 L1.30626177e-08,7.99473128e-07 L1.30626177e-08,-41.9868843 Z M96,-84 C102.627417,-84 108,-89.372583 108,-96 C108,-102.627417 102.627417,-108 96,-108 C89.372583,-108 84,-102.627417 84,-96 C84,-89.372583 89.372583,-84 96,-84 Z\"></path>\n <path d=\"M16,18 L112,18 C113.104569,18 114,17.1045695 114,16 C114,14.8954305 113.104569,14 112,14 L16,14 C14.8954305,14 14,14.8954305 14,16 C14,17.1045695 14.8954305,18 16,18 L16,18 Z M16,35 L112,35 C114.209139,35 116,33.209139 116,31 C116,28.790861 114.209139,27 112,27 L16,27 C13.790861,27 12,28.790861 12,31 C12,33.209139 13.790861,35 16,35 L16,35 Z M16,56 L112,56 C115.313708,56 118,53.3137085 118,50 C118,46.6862915 115.313708,44 112,44 L16,44 C12.6862915,44 10,46.6862915 10,50 C10,53.3137085 12.6862915,56 16,56 L16,56 Z M16,85 L112,85 C117.522847,85 122,80.5228475 122,75 C122,69.4771525 117.522847,65 112,65 L16,65 C10.4771525,65 6,69.4771525 6,75 C6,80.5228475 10.4771525,85 16,85 L16,85 Z M16,128 L112,128 C120.836556,128 128,120.836556 128,112 C128,103.163444 120.836556,96 112,96 L16,96 C7.163444,96 0,103.163444 0,112 C0,120.836556 7.163444,128 16,128 L16,128 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/link": {
"title": "$:/core/images/link",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-link tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M128.719999,57.568543 C130.219553,53.8628171 131.045202,49.8121445 131.045202,45.5685425 C131.045202,27.8915447 116.718329,13.5685425 99.0452364,13.5685425 L67.0451674,13.5685425 C49.3655063,13.5685425 35.0452019,27.8954305 35.0452019,45.5685425 C35.0452019,63.2455403 49.3720745,77.5685425 67.0451674,77.5685425 L99.0452364,77.5685425 C100.406772,77.5685425 101.748384,77.4835732 103.065066,77.3186499 C96.4792444,73.7895096 91.1190212,68.272192 87.7873041,61.5685425 L67.0506214,61.5685425 C58.2110723,61.5685425 51.0452019,54.4070414 51.0452019,45.5685425 C51.0452019,36.7319865 58.2005234,29.5685425 67.0506214,29.5685425 L99.0397824,29.5685425 C107.879331,29.5685425 115.045202,36.7300436 115.045202,45.5685425 C115.045202,48.9465282 113.99957,52.0800164 112.21335,54.6623005 C114.314383,56.4735917 117.050039,57.5685425 120.041423,57.5685425 L128.720003,57.5685425 Z\" transform=\"translate(83.045202, 45.568542) rotate(-225.000000) translate(-83.045202, -45.568542)\"></path>\n <path d=\"M-0.106255113,71.0452019 C-1.60580855,74.7509276 -2.43145751,78.8016001 -2.43145751,83.0452019 C-2.43145751,100.7222 11.8954151,115.045202 29.568508,115.045202 L61.568577,115.045202 C79.2482381,115.045202 93.5685425,100.718314 93.5685425,83.0452019 C93.5685425,65.3682041 79.2416699,51.0452019 61.568577,51.0452019 L29.568508,51.0452019 C28.206973,51.0452019 26.8653616,51.1301711 25.5486799,51.2950943 C32.1345,54.8242347 37.4947231,60.3415524 40.8264403,67.0452019 L61.563123,67.0452019 C70.4026721,67.0452019 77.5685425,74.206703 77.5685425,83.0452019 C77.5685425,91.8817579 70.413221,99.0452019 61.563123,99.0452019 L29.573962,99.0452019 C20.7344129,99.0452019 13.5685425,91.8837008 13.5685425,83.0452019 C13.5685425,79.6672162 14.6141741,76.533728 16.4003949,73.9514439 C14.2993609,72.1401527 11.5637054,71.0452019 8.5723215,71.0452019 L-0.106255113,71.0452019 Z\" transform=\"translate(45.568542, 83.045202) rotate(-225.000000) translate(-45.568542, -83.045202)\"></path>\n </g>\n</svg>"
},
"$:/core/images/linkify": {
"title": "$:/core/images/linkify",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-linkify-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\"><path d=\"M17.031 31.919H9.048V96.85h7.983v6.92H0V25h17.031v6.919zm24.66 0h-7.983V96.85h7.983v6.92H24.66V25h17.03v6.919zM67.77 56.422l11.975-3.903 2.306 7.096-12.063 3.903 7.628 10.379-6.12 4.435-7.63-10.467-7.45 10.2-5.943-4.523L58.1 63.518 45.95 59.35l2.306-7.096 12.064 4.17V43.825h7.45v12.596zM86.31 96.85h7.982V31.92H86.31V25h17.031v78.77H86.31v-6.92zm24.659 0h7.983V31.92h-7.983V25H128v78.77h-17.031v-6.92z\" fill-rule=\"evenodd\"/></svg>"
},
"$:/core/images/list-bullet": {
"title": "$:/core/images/list-bullet",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-list-bullet tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M11.6363636,40.2727273 C18.0629498,40.2727273 23.2727273,35.0629498 23.2727273,28.6363636 C23.2727273,22.2097775 18.0629498,17 11.6363636,17 C5.20977746,17 0,22.2097775 0,28.6363636 C0,35.0629498 5.20977746,40.2727273 11.6363636,40.2727273 Z M11.6363636,75.1818182 C18.0629498,75.1818182 23.2727273,69.9720407 23.2727273,63.5454545 C23.2727273,57.1188684 18.0629498,51.9090909 11.6363636,51.9090909 C5.20977746,51.9090909 0,57.1188684 0,63.5454545 C0,69.9720407 5.20977746,75.1818182 11.6363636,75.1818182 Z M11.6363636,110.090909 C18.0629498,110.090909 23.2727273,104.881132 23.2727273,98.4545455 C23.2727273,92.0279593 18.0629498,86.8181818 11.6363636,86.8181818 C5.20977746,86.8181818 0,92.0279593 0,98.4545455 C0,104.881132 5.20977746,110.090909 11.6363636,110.090909 Z M34.9090909,22.8181818 L128,22.8181818 L128,34.4545455 L34.9090909,34.4545455 L34.9090909,22.8181818 Z M34.9090909,57.7272727 L128,57.7272727 L128,69.3636364 L34.9090909,69.3636364 L34.9090909,57.7272727 Z M34.9090909,92.6363636 L128,92.6363636 L128,104.272727 L34.9090909,104.272727 L34.9090909,92.6363636 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/list-number": {
"title": "$:/core/images/list-number",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-list-number tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M33.8390805,22.3563218 L128,22.3563218 L128,34.1264368 L33.8390805,34.1264368 L33.8390805,22.3563218 Z M33.8390805,57.6666667 L128,57.6666667 L128,69.4367816 L33.8390805,69.4367816 L33.8390805,57.6666667 Z M33.8390805,92.9770115 L128,92.9770115 L128,104.747126 L33.8390805,104.747126 L33.8390805,92.9770115 Z M0.379509711,42.6307008 L0.379509711,40.4082314 L1.37821948,40.4082314 C2.20382368,40.4082314 2.82301754,40.268077 3.23581964,39.9877642 C3.64862174,39.7074513 3.85501969,39.0400498 3.85501969,37.9855395 L3.85501969,22.7686318 C3.85501969,21.3270228 3.66193774,20.4327047 3.27576803,20.0856507 C2.88959832,19.7385967 1.79768657,19.5650723 0,19.5650723 L0,17.4226919 C3.50215975,17.2758613 6.25191314,16.4683055 8.24934266,15 L10.3666074,15 L10.3666074,37.865406 C10.3666074,38.786434 10.5164123,39.4404875 10.8160268,39.8275862 C11.1156412,40.2146849 11.764796,40.4082314 12.7635108,40.4082314 L13.7622206,40.4082314 L13.7622206,42.6307008 L0.379509711,42.6307008 Z M0.0798967812,77.9873934 L0.0798967812,76.0852799 C7.27064304,69.5312983 10.8659622,63.5046623 10.8659622,58.005191 C10.8659622,56.4434479 10.5397203,55.195407 9.88722667,54.2610308 C9.23473303,53.3266546 8.36253522,52.8594735 7.27060709,52.8594735 C6.3784219,52.8594735 5.61608107,53.1764892 4.98356173,53.8105302 C4.35104238,54.4445712 4.03478745,55.1753759 4.03478745,56.0029663 C4.03478745,56.9773871 4.28113339,57.8316611 4.77383268,58.5658139 C4.88036225,58.7259926 4.93362624,58.8461249 4.93362624,58.9262143 C4.93362624,59.0730449 4.77383427,59.2065252 4.45424555,59.3266593 C4.2411864,59.4067486 3.70188852,59.6336652 2.83633573,60.0074156 C1.99741533,60.3811661 1.47809145,60.5680386 1.2783485,60.5680386 C1.03865696,60.5680386 0.765679018,60.1976307 0.459406492,59.4568039 C0.153133966,58.715977 0,57.9184322 0,57.0641453 C0,55.1153036 0.848894811,53.5202138 2.5467099,52.2788283 C4.24452499,51.0374428 6.34512352,50.4167594 8.84856852,50.4167594 C11.3120649,50.4167594 13.3793735,51.0874979 15.0505562,52.4289952 C16.7217389,53.7704924 17.5573177,55.5224215 17.5573177,57.684835 C17.5573177,58.9662652 17.2743527,60.2076321 16.7084144,61.4089729 C16.142476,62.6103138 14.7875733,64.4623531 12.6436656,66.9651465 C10.4997579,69.4679398 8.40914641,71.7804862 6.3717683,73.902855 L17.8169822,73.902855 L16.7982982,79.6292176 L14.6810335,79.6292176 C14.7609307,79.3489048 14.8008787,79.0952922 14.8008787,78.8683723 C14.8008787,78.4812736 14.7010087,78.237672 14.5012658,78.1375603 C14.3015228,78.0374485 13.9020429,77.9873934 13.3028141,77.9873934 L0.0798967812,77.9873934 Z M12.2042333,97.1935484 C13.9486551,97.2335931 15.4400468,97.8309175 16.6784531,98.9855395 C17.9168594,100.140162 18.5360532,101.75861 18.5360532,103.840934 C18.5360532,106.830938 17.4041935,109.233584 15.14044,111.048943 C12.8766866,112.864303 10.1402492,113.771969 6.93104577,113.771969 C4.92030005,113.771969 3.26245842,113.388213 1.95747114,112.62069 C0.652483855,111.853166 0,110.848727 0,109.607341 C0,108.833144 0.26964894,108.209124 0.808954909,107.735261 C1.34826088,107.261399 1.93749375,107.024472 2.57667119,107.024472 C3.21584864,107.024472 3.73850152,107.224692 4.14464552,107.625139 C4.55078953,108.025586 4.92696644,108.67964 5.27318756,109.587319 C5.73925445,110.855401 6.51158227,111.489433 7.59019421,111.489433 C8.85523291,111.489433 9.87723568,111.012241 10.6562332,110.057842 C11.4352307,109.103444 11.8247236,107.371536 11.8247236,104.862069 C11.8247236,103.153495 11.7048796,101.838714 11.4651881,100.917686 C11.2254966,99.9966584 10.6728827,99.5361513 9.80732989,99.5361513 C9.22141723,99.5361513 8.62219737,99.843156 8.00965231,100.457175 C7.51695303,100.951059 7.07752513,101.197998 6.69135542,101.197998 C6.3584505,101.197998 6.08880156,101.051169 5.88240051,100.757508 C5.67599946,100.463847 5.57280049,100.183539 5.57280049,99.916574 C5.57280049,99.5962164 5.67599946,99.3225818 5.88240051,99.0956618 C6.08880156,98.8687419 6.57150646,98.5016711 7.33052967,97.9944383 C10.2068282,96.0722929 11.6449559,93.9766521 11.6449559,91.7074527 C11.6449559,90.5194601 11.3386879,89.615131 10.7261429,88.9944383 C10.1135978,88.3737455 9.37455999,88.0634038 8.5090072,88.0634038 C7.71003539,88.0634038 6.98431355,88.3270274 6.33181991,88.8542825 C5.67932627,89.3815377 5.35308434,90.0122321 5.35308434,90.7463849 C5.35308434,91.3871 5.60608828,91.9810874 6.11210376,92.5283648 C6.28521432,92.7285883 6.3717683,92.8954387 6.3717683,93.028921 C6.3717683,93.1490551 5.80250943,93.4560598 4.6639746,93.9499444 C3.52543978,94.4438289 2.80970494,94.6907675 2.51674861,94.6907675 C2.10394651,94.6907675 1.76771758,94.3570667 1.50805174,93.6896552 C1.24838591,93.0222436 1.11855494,92.4082342 1.11855494,91.8476085 C1.11855494,90.0989901 2.04734573,88.6240327 3.90495518,87.4226919 C5.76256463,86.2213511 7.86982116,85.6206897 10.226788,85.6206897 C12.2907985,85.6206897 14.0784711,86.0678487 15.5898594,86.9621802 C17.1012478,87.8565117 17.8569306,89.0778566 17.8569306,90.6262514 C17.8569306,91.987771 17.2876717,93.2491599 16.1491369,94.4104561 C15.0106021,95.5717522 13.6956474,96.4994404 12.2042333,97.1935484 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/list": {
"title": "$:/core/images/list",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-list tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M0.719999312,185.568543 C2.21955287,181.862817 3.0452019,177.812144 3.0452019,173.568542 C3.0452019,155.891545 -11.2816707,141.568542 -28.9547636,141.568542 L-60.9548326,141.568542 C-78.6344937,141.568542 -92.9547981,155.895431 -92.9547981,173.568542 C-92.9547981,191.24554 -78.6279255,205.568542 -60.9548326,205.568542 L-28.9547636,205.568542 C-27.593228,205.568542 -26.2516158,205.483573 -24.9349335,205.31865 C-31.5207556,201.78951 -36.8809788,196.272192 -40.2126959,189.568542 L-60.9493786,189.568542 C-69.7889277,189.568542 -76.9547981,182.407041 -76.9547981,173.568542 C-76.9547981,164.731986 -69.7994766,157.568542 -60.9493786,157.568542 L-28.9602176,157.568542 C-20.1206685,157.568542 -12.9547981,164.730044 -12.9547981,173.568542 C-12.9547981,176.946528 -14.0004297,180.080016 -15.7866505,182.6623 C-13.6856165,184.473592 -10.949961,185.568542 -7.9585771,185.568542 L0.720002586,185.568542 Z\" transform=\"translate(-44.954798, 173.568542) rotate(-225.000000) translate(44.954798, -173.568542) \"></path>\n <path d=\"M87.7480315,128 L23.9992458,128 C19.5813843,128 16,124.409247 16,119.993027 L16,8.00697327 C16,3.58484404 19.5881049,0 23.9992458,0 L104.000754,0 C108.418616,0 112,3.59075293 112,8.00697327 L112,104 L91.2492027,104 C90.2848199,104 89.410573,104.391703 88.7768998,105.025201 C88.1373658,105.661376 87.7480315,106.53563 87.7480315,107.501171 L87.7480315,128 Z M95.7480315,127.879386 L111.627417,112 L95.7480315,112 L95.7480315,127.879386 Z M40,15.5089165 C40,13.5709954 41.5636015,12 43.4998101,12 L98.5001899,12 C100.433082,12 102,13.5614718 102,15.5089165 L102,16.4910835 C102,18.4290046 100.436399,20 98.5001899,20 L43.4998101,20 C41.5669183,20 40,18.4385282 40,16.4910835 L40,15.5089165 Z M32,22 C35.3137085,22 38,19.3137085 38,16 C38,12.6862915 35.3137085,10 32,10 C28.6862915,10 26,12.6862915 26,16 C26,19.3137085 28.6862915,22 32,22 Z M40,31.5089165 C40,29.5709954 41.5636015,28 43.4998101,28 L98.5001899,28 C100.433082,28 102,29.5614718 102,31.5089165 L102,32.4910835 C102,34.4290046 100.436399,36 98.5001899,36 L43.4998101,36 C41.5669183,36 40,34.4385282 40,32.4910835 L40,31.5089165 Z M40,47.5089165 C40,45.5709954 41.5636015,44 43.4998101,44 L98.5001899,44 C100.433082,44 102,45.5614718 102,47.5089165 L102,48.4910835 C102,50.4290046 100.436399,52 98.5001899,52 L43.4998101,52 C41.5669183,52 40,50.4385282 40,48.4910835 L40,47.5089165 Z M40,63.5089165 C40,61.5709954 41.5636015,60 43.4998101,60 L98.5001899,60 C100.433082,60 102,61.5614718 102,63.5089165 L102,64.4910835 C102,66.4290046 100.436399,68 98.5001899,68 L43.4998101,68 C41.5669183,68 40,66.4385282 40,64.4910835 L40,63.5089165 Z M40,79.5089165 C40,77.5709954 41.5636015,76 43.4998101,76 L98.5001899,76 C100.433082,76 102,77.5614718 102,79.5089165 L102,80.4910835 C102,82.4290046 100.436399,84 98.5001899,84 L43.4998101,84 C41.5669183,84 40,82.4385282 40,80.4910835 L40,79.5089165 Z M40,95.5089165 C40,93.5709954 41.5636015,92 43.4998101,92 L98.5001899,92 C100.433082,92 102,93.5614718 102,95.5089165 L102,96.4910835 C102,98.4290046 100.436399,100 98.5001899,100 L43.4998101,100 C41.5669183,100 40,98.4385282 40,96.4910835 L40,95.5089165 Z M40,111.508916 C40,109.570995 41.5680474,108 43.4972017,108 L76.5027983,108 C78.4342495,108 80,109.561472 80,111.508916 L80,112.491084 C80,114.429005 78.4319526,116 76.5027983,116 L43.4972017,116 C41.5657505,116 40,114.438528 40,112.491084 L40,111.508916 Z M32,38 C35.3137085,38 38,35.3137085 38,32 C38,28.6862915 35.3137085,26 32,26 C28.6862915,26 26,28.6862915 26,32 C26,35.3137085 28.6862915,38 32,38 Z M32,54 C35.3137085,54 38,51.3137085 38,48 C38,44.6862915 35.3137085,42 32,42 C28.6862915,42 26,44.6862915 26,48 C26,51.3137085 28.6862915,54 32,54 Z M32,70 C35.3137085,70 38,67.3137085 38,64 C38,60.6862915 35.3137085,58 32,58 C28.6862915,58 26,60.6862915 26,64 C26,67.3137085 28.6862915,70 32,70 Z M32,86 C35.3137085,86 38,83.3137085 38,80 C38,76.6862915 35.3137085,74 32,74 C28.6862915,74 26,76.6862915 26,80 C26,83.3137085 28.6862915,86 32,86 Z M32,102 C35.3137085,102 38,99.3137085 38,96 C38,92.6862915 35.3137085,90 32,90 C28.6862915,90 26,92.6862915 26,96 C26,99.3137085 28.6862915,102 32,102 Z M32,118 C35.3137085,118 38,115.313708 38,112 C38,108.686292 35.3137085,106 32,106 C28.6862915,106 26,108.686292 26,112 C26,115.313708 28.6862915,118 32,118 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/locked-padlock": {
"title": "$:/core/images/locked-padlock",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-locked-padlock tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M96.4723753,64 L105,64 L105,96.0097716 C105,113.673909 90.6736461,128 73.001193,128 L55.998807,128 C38.3179793,128 24,113.677487 24,96.0097716 L24,64 L32.0000269,64 C32.0028554,48.2766389 32.3030338,16.2688026 64.1594984,16.2688041 C95.9543927,16.2688056 96.4648869,48.325931 96.4723753,64 Z M80.5749059,64 L48.4413579,64 C48.4426205,47.71306 48.5829272,31.9999996 64.1595001,31.9999996 C79.8437473,31.9999996 81.1369461,48.1359182 80.5749059,64 Z M67.7315279,92.3641717 C70.8232551,91.0923621 73,88.0503841 73,84.5 C73,79.8055796 69.1944204,76 64.5,76 C59.8055796,76 56,79.8055796 56,84.5 C56,87.947435 58.0523387,90.9155206 61.0018621,92.2491029 L55.9067479,115.020857 L72.8008958,115.020857 L67.7315279,92.3641717 L67.7315279,92.3641717 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/mail": {
"title": "$:/core/images/mail",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-mail tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M122.826782,104.894066 C121.945525,105.22777 120.990324,105.41043 119.993027,105.41043 L8.00697327,105.41043 C7.19458381,105.41043 6.41045219,105.289614 5.67161357,105.064967 L5.67161357,105.064967 L39.8346483,70.9019325 L60.6765759,91.7438601 C61.6118278,92.679112 62.8865166,93.0560851 64.0946097,92.8783815 C65.2975108,93.0473238 66.5641085,92.6696979 67.4899463,91.7438601 L88.5941459,70.6396605 C88.6693095,70.7292352 88.7490098,70.8162939 88.8332479,70.9005321 L122.826782,104.894066 Z M127.903244,98.6568194 C127.966933,98.2506602 128,97.8343714 128,97.4103789 L128,33.410481 C128,32.7414504 127.917877,32.0916738 127.763157,31.4706493 L94.2292399,65.0045665 C94.3188145,65.0797417 94.4058701,65.1594458 94.4901021,65.2436778 L127.903244,98.6568194 Z M0.205060636,99.2178117 C0.0709009529,98.6370366 0,98.0320192 0,97.4103789 L0,33.410481 C0,32.694007 0.0944223363,31.9995312 0.27147538,31.3387595 L0.27147538,31.3387595 L34.1777941,65.2450783 L0.205060636,99.2178117 L0.205060636,99.2178117 Z M5.92934613,25.6829218 C6.59211333,25.5051988 7.28862283,25.4104299 8.00697327,25.4104299 L119.993027,25.4104299 C120.759109,25.4104299 121.500064,25.5178649 122.201605,25.7184927 L122.201605,25.7184927 L64.0832611,83.8368368 L5.92934613,25.6829218 L5.92934613,25.6829218 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/menu-button": {
"title": "$:/core/images/menu-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-menu-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <rect x=\"0\" y=\"16\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <rect x=\"0\" y=\"56\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <rect x=\"0\" y=\"96\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n</svg>"
},
"$:/core/images/mono-block": {
"title": "$:/core/images/mono-block",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-mono-block tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M23.9653488,32.9670593 L24.3217888,32.9670593 C25.0766067,32.9670593 25.6497006,33.1592554 26.0410876,33.5436534 C26.4324747,33.9280514 26.6281653,34.4906619 26.6281653,35.2315017 C26.6281653,36.0562101 26.4219913,36.6502709 26.009637,37.0137017 C25.5972828,37.3771326 24.9158602,37.5588453 23.9653488,37.5588453 L17.6542639,37.5588453 C16.6897744,37.5588453 16.0048573,37.380627 15.5994921,37.0241852 C15.1941269,36.6677435 14.9914474,36.0701882 14.9914474,35.2315017 C14.9914474,34.4207713 15.1941269,33.8406885 15.5994921,33.4912358 C16.0048573,33.141783 16.6897744,32.9670593 17.6542639,32.9670593 L18.388111,32.9670593 L17.5284616,30.5139133 L8.47069195,30.5139133 L7.5691084,32.9670593 L8.30295547,32.9670593 C9.25346691,32.9670593 9.93488953,33.1452775 10.3472438,33.5017193 C10.759598,33.8581611 10.965772,34.4347494 10.965772,35.2315017 C10.965772,36.0562101 10.759598,36.6502709 10.3472438,37.0137017 C9.93488953,37.3771326 9.25346691,37.5588453 8.30295547,37.5588453 L2.89345418,37.5588453 C1.92896463,37.5588453 1.24404754,37.3771326 0.838682371,37.0137017 C0.433317198,36.6502709 0.230637652,36.0562101 0.230637652,35.2315017 C0.230637652,34.4906619 0.426328248,33.9280514 0.817715312,33.5436534 C1.20910238,33.1592554 1.78219626,32.9670593 2.53701417,32.9670593 L2.89345418,32.9670593 L8.51262607,17.3256331 L6.83526132,17.3256331 C5.88474988,17.3256331 5.20332727,17.1439204 4.79097304,16.7804895 C4.37861882,16.4170587 4.1724448,15.8299869 4.1724448,15.0192565 C4.1724448,14.1945481 4.37861882,13.6004873 4.79097304,13.2370565 C5.20332727,12.8736257 5.88474988,12.691913 6.83526132,12.691913 L14.6979086,12.691913 C15.9419603,12.691913 16.815579,13.3628521 17.318791,14.7047506 L17.318791,14.7676518 L23.9653488,32.9670593 Z M12.9786097,17.3256331 L9.9383861,26.1737321 L16.0188333,26.1737321 L12.9786097,17.3256331 Z M35.3809383,26.6979086 L35.3809383,33.0928616 L38.5259972,33.0928616 C40.7485166,33.0928616 42.3140414,32.8482484 43.2226185,32.3590146 C44.1311956,31.8697807 44.5854773,31.0520736 44.5854773,29.9058686 C44.5854773,28.7456855 44.1521624,27.9209895 43.2855197,27.4317556 C42.4188769,26.9425218 40.9022748,26.6979086 38.7356678,26.6979086 L35.3809383,26.6979086 Z M46.0741385,24.370565 C47.5977525,24.9296893 48.7159844,25.6949794 49.428868,26.666458 C50.1417516,27.6379366 50.498188,28.8784752 50.498188,30.388111 C50.498188,31.6601189 50.1906743,32.8202846 49.5756374,33.8686428 C48.9606006,34.917001 48.0799929,35.7766419 46.933788,36.4475911 C46.2628387,36.8389782 45.5115266,37.1220307 44.6798291,37.296757 C43.8481316,37.4714834 42.6704935,37.5588453 41.1468796,37.5588453 L39.3856466,37.5588453 L30.2020747,37.5588453 C29.2795194,37.5588453 28.6190637,37.3771326 28.2206876,37.0137017 C27.8223114,36.6502709 27.6231264,36.0562101 27.6231264,35.2315017 C27.6231264,34.4906619 27.811828,33.9280514 28.189237,33.5436534 C28.5666459,33.1592554 29.118773,32.9670593 29.8456347,32.9670593 L30.2020747,32.9670593 L30.2020747,17.3256331 L29.8456347,17.3256331 C29.118773,17.3256331 28.5666459,17.1299425 28.189237,16.7385554 C27.811828,16.3471683 27.6231264,15.7740744 27.6231264,15.0192565 C27.6231264,14.2085262 27.8258059,13.6179599 28.2311711,13.24754 C28.6365363,12.8771201 29.2934976,12.691913 30.2020747,12.691913 L39.8469219,12.691913 C42.796303,12.691913 45.0362615,13.2650068 46.5668644,14.4112118 C48.0974674,15.5574168 48.8627574,17.2347648 48.8627574,19.443306 C48.8627574,20.5335986 48.6286276,21.4945792 48.1603609,22.3262767 C47.6920943,23.1579742 46.9966938,23.8393968 46.0741385,24.370565 L46.0741385,24.370565 Z M35.3809383,17.1998307 L35.3809383,22.4835296 L38.2114913,22.4835296 C39.9307988,22.4835296 41.1433816,22.2808501 41.8492761,21.8754849 C42.5551706,21.4701197 42.9081126,20.7852027 42.9081126,19.8207131 C42.9081126,18.912136 42.5901154,18.2481858 41.9541114,17.8288425 C41.3181074,17.4094992 40.2872373,17.1998307 38.8614701,17.1998307 L35.3809383,17.1998307 Z M71.244119,13.3838259 C71.5236812,12.880614 71.8102281,12.5241775 72.1037684,12.3145059 C72.3973087,12.1048342 72.7677231,12 73.2150226,12 C73.8999499,12 74.3856819,12.1817127 74.6722332,12.5451435 C74.9587844,12.9085744 75.1020579,13.5305909 75.1020579,14.4112118 L75.143992,19.8626472 C75.143992,20.8271368 74.9867406,21.4771091 74.6722332,21.8125837 C74.3577257,22.1480584 73.7881263,22.3157932 72.9634178,22.3157932 C72.3763372,22.3157932 71.92555,22.1760142 71.6110425,21.896452 C71.2965351,21.6168898 71.0274605,21.0997075 70.8038107,20.3448896 C70.4403799,19.0169692 69.8602971,18.0629775 69.0635448,17.482886 C68.2667926,16.9027945 67.1625385,16.612753 65.7507494,16.612753 C63.5981206,16.612753 61.9487284,17.3396038 60.8025235,18.7933272 C59.6563185,20.2470506 59.0832246,22.3507245 59.0832246,25.104412 C59.0832246,27.8441215 59.6633074,29.9477954 60.8234905,31.4154969 C61.9836736,32.8831984 63.6400547,33.6170381 65.7926836,33.6170381 C67.2603851,33.6170381 68.878327,33.1278116 70.6465578,32.149344 C72.4147886,31.1708763 73.5295261,30.6816498 73.9908037,30.6816498 C74.53595,30.6816498 74.9937262,30.9122852 75.3641461,31.3735628 C75.734566,31.8348404 75.9197732,32.4079343 75.9197732,33.0928616 C75.9197732,34.3229353 74.836486,35.4831009 72.669879,36.5733935 C70.5032721,37.663686 68.0641285,38.2088241 65.3523753,38.2088241 C61.6901107,38.2088241 58.7267959,36.9997358 56.4623422,34.5815228 C54.1978885,32.1633099 53.0656786,29.0043046 53.0656786,25.104412 C53.0656786,21.3443006 54.2118664,18.22024 56.5042763,15.7321366 C58.7966863,13.2440331 61.7040894,12 65.226573,12 C66.2190187,12 67.1974717,12.1118232 68.1619613,12.3354729 C69.1264508,12.5591227 70.1538264,12.9085702 71.244119,13.3838259 L71.244119,13.3838259 Z M81.4645862,32.9670593 L81.4645862,17.3256331 L81.1081461,17.3256331 C80.3533282,17.3256331 79.7802344,17.1299425 79.3888473,16.7385554 C78.9974602,16.3471683 78.8017696,15.7740744 78.8017696,15.0192565 C78.8017696,14.2085262 79.0114381,13.6179599 79.4307814,13.24754 C79.8501247,12.8771201 80.5280528,12.691913 81.4645862,12.691913 L85.4063933,12.691913 L86.6434498,12.691913 C89.5648747,12.691913 91.7034933,12.8177141 93.0593699,13.06932 C94.4152465,13.320926 95.5684233,13.740263 96.5189347,14.3273436 C98.210286,15.3337675 99.5067362,16.7699967 100.408324,18.6360743 C101.309912,20.5021519 101.7607,22.6582429 101.7607,25.104412 C101.7607,27.6903623 101.247012,29.9512876 100.219621,31.8872557 C99.1922296,33.8232239 97.7350336,35.2874089 95.8479888,36.2798546 C94.9953241,36.7271541 93.9959043,37.0521403 92.8496993,37.2548229 C91.7034944,37.4575055 89.9981906,37.5588453 87.7337369,37.5588453 L85.4063933,37.5588453 L81.4645862,37.5588453 C80.5000966,37.5588453 79.8151795,37.380627 79.4098143,37.0241852 C79.0044492,36.6677435 78.8017696,36.0701882 78.8017696,35.2315017 C78.8017696,34.4906619 78.9974602,33.9280514 79.3888473,33.5436534 C79.7802344,33.1592554 80.3533282,32.9670593 81.1081461,32.9670593 L81.4645862,32.9670593 Z M86.8740874,17.2417648 L86.8740874,32.9670593 L88.0692098,32.9670593 C90.7110725,32.9670593 92.6609895,32.3205814 93.9190194,31.0276063 C95.1770492,29.7346312 95.8060547,27.7462749 95.8060547,25.0624779 C95.8060547,22.4206153 95.1665658,20.4497314 93.8875688,19.1497672 C92.6085718,17.849803 90.6831161,17.1998307 88.1111439,17.1998307 C87.7756693,17.1998307 87.5205727,17.2033252 87.3458463,17.2103142 C87.1711199,17.2173033 87.0138685,17.2277867 86.8740874,17.2417648 L86.8740874,17.2417648 Z M121.94052,17.1159625 L112.190837,17.1159625 L112.190837,22.4835296 L115.88104,22.4835296 L115.88104,22.2319249 C115.88104,21.4351727 116.055763,20.841112 116.405216,20.4497249 C116.754669,20.0583378 117.285829,19.8626472 117.998713,19.8626472 C118.627728,19.8626472 119.141415,20.0408655 119.539792,20.3973072 C119.938168,20.753749 120.137353,21.2045363 120.137353,21.7496826 C120.137353,21.7776388 120.144342,21.8684951 120.15832,22.0222543 C120.172298,22.1760135 120.179287,22.3297704 120.179287,22.4835296 L120.179287,26.8237109 C120.179287,27.7602442 120.011552,28.4311834 119.676077,28.8365486 C119.340603,29.2419138 118.795465,29.4445933 118.040647,29.4445933 C117.327763,29.4445933 116.789614,29.2558917 116.426183,28.8784827 C116.062752,28.5010738 115.88104,27.9419578 115.88104,27.201118 L115.88104,26.8237109 L112.190837,26.8237109 L112.190837,33.0928616 L121.94052,33.0928616 L121.94052,30.5977816 C121.94052,29.6612482 122.118738,28.9903091 122.47518,28.5849439 C122.831622,28.1795787 123.415199,27.9768992 124.225929,27.9768992 C125.022682,27.9768992 125.592281,28.1760842 125.934745,28.5744604 C126.277208,28.9728365 126.448438,29.6472701 126.448438,30.5977816 L126.448438,35.6718099 C126.448438,36.4266278 126.30167,36.9298322 126.008129,37.1814382 C125.714589,37.4330442 125.134506,37.5588453 124.267863,37.5588453 L107.095842,37.5588453 C106.173287,37.5588453 105.512831,37.3771326 105.114455,37.0137017 C104.716079,36.6502709 104.516894,36.0562101 104.516894,35.2315017 C104.516894,34.4906619 104.705595,33.9280514 105.083004,33.5436534 C105.460413,33.1592554 106.01254,32.9670593 106.739402,32.9670593 L107.095842,32.9670593 L107.095842,17.3256331 L106.739402,17.3256331 C106.026518,17.3256331 105.477886,17.126448 105.093488,16.7280719 C104.70909,16.3296957 104.516894,15.7600963 104.516894,15.0192565 C104.516894,14.2085262 104.719573,13.6179599 105.124938,13.24754 C105.530304,12.8771201 106.187265,12.691913 107.095842,12.691913 L124.267863,12.691913 C125.120528,12.691913 125.697116,12.8212085 125.997646,13.0798036 C126.298175,13.3383986 126.448438,13.8520864 126.448438,14.6208824 L126.448438,19.3175037 C126.448438,20.2680151 126.273714,20.9494377 125.924261,21.361792 C125.574808,21.7741462 125.008703,21.9803202 124.225929,21.9803202 C123.415199,21.9803202 122.831622,21.7706517 122.47518,21.3513084 C122.118738,20.9319652 121.94052,20.254037 121.94052,19.3175037 L121.94052,17.1159625 Z M19.7719369,47.6405477 C20.037521,47.1373358 20.3205734,46.7808993 20.6211028,46.5712277 C20.9216322,46.361556 21.295541,46.2567218 21.7428405,46.2567218 C22.4277678,46.2567218 22.9134998,46.4384345 23.2000511,46.8018653 C23.4866023,47.1652962 23.6298758,47.7873127 23.6298758,48.6679336 L23.6718099,54.119369 C23.6718099,55.0838586 23.5145586,55.7338309 23.2000511,56.0693055 C22.8855436,56.4047802 22.3089553,56.572515 21.4702687,56.572515 C20.8831881,56.572515 20.4254119,56.4292415 20.0969263,56.1426902 C19.7684407,55.856139 19.4993662,55.3424512 19.2896945,54.6016114 C18.9122856,53.2597129 18.3322027,52.3022267 17.5494286,51.7291243 C16.7666545,51.1560218 15.6693894,50.8694748 14.2576003,50.8694748 C12.1049715,50.8694748 10.4590738,51.5963256 9.31985785,53.050049 C8.18064193,54.5037724 7.61104252,56.6074463 7.61104252,59.3611338 C7.61104252,62.1148214 8.20859773,64.2429566 9.40372609,65.7456034 C10.5988544,67.2482501 12.2936748,67.9995623 14.488238,67.9995623 C14.9914499,67.9995623 15.5645438,67.9401562 16.2075368,67.8213423 C16.8505299,67.7025283 17.6053364,67.5173212 18.4719792,67.2657152 L18.4719792,63.9529198 L16.1027015,63.9529198 C15.1521901,63.9529198 14.4777564,63.7781961 14.0793803,63.4287433 C13.6810042,63.0792906 13.4818191,62.4992078 13.4818191,61.6884774 C13.4818191,60.8497908 13.6810042,60.2522356 14.0793803,59.8957938 C14.4777564,59.5393521 15.1521901,59.3611338 16.1027015,59.3611338 L23.6718099,59.3611338 C24.6502776,59.3611338 25.3386891,59.5358576 25.7370653,59.8853103 C26.1354414,60.2347631 26.3346265,60.8218348 26.3346265,61.6465433 C26.3346265,62.3873831 26.1354414,62.9569825 25.7370653,63.3553586 C25.3386891,63.7537347 24.7621008,63.9529198 24.0072829,63.9529198 L23.6718099,63.9529198 L23.6718099,68.9430799 L23.6718099,69.1946846 C23.6718099,69.6419841 23.6228873,69.9529924 23.5250405,70.1277188 C23.4271937,70.3024451 23.2315031,70.4806634 22.9379628,70.6623788 C22.1412106,71.1376345 20.8762107,71.5569715 19.1429251,71.9204023 C17.4096396,72.2838332 15.6554131,72.4655459 13.8801932,72.4655459 C10.2179286,72.4655459 7.25461383,71.2564576 4.99016011,68.8382446 C2.72570638,66.4200317 1.59349651,63.2610264 1.59349651,59.3611338 C1.59349651,55.6010224 2.73968428,52.4769618 5.03209423,49.9888583 C7.32450417,47.5007549 10.2319073,46.2567218 13.7543909,46.2567218 C14.7328585,46.2567218 15.7078171,46.368545 16.6792957,46.5921947 C17.6507743,46.8158445 18.6816444,47.165292 19.7719369,47.6405477 L19.7719369,47.6405477 Z M35.611576,51.5823548 L35.611576,56.4047785 L42.4678043,56.4047785 L42.4678043,51.5823548 L42.1323314,51.5823548 C41.3775135,51.5823548 40.8009251,51.3866642 40.402549,50.9952772 C40.0041729,50.6038901 39.8049878,50.0307962 39.8049878,49.2759783 C39.8049878,48.4512699 40.0111618,47.8572091 40.4235161,47.4937783 C40.8358703,47.1303474 41.5172929,46.9486347 42.4678043,46.9486347 L47.8773056,46.9486347 C48.8278171,46.9486347 49.5022507,47.1303474 49.9006269,47.4937783 C50.299003,47.8572091 50.498188,48.4512699 50.498188,49.2759783 C50.498188,50.0307962 50.3059919,50.6038901 49.9215939,50.9952772 C49.5371959,51.3866642 48.9745854,51.5823548 48.2337456,51.5823548 L47.8773056,51.5823548 L47.8773056,67.2237811 L48.2337456,67.2237811 C48.9885636,67.2237811 49.5616574,67.4159772 49.9530445,67.8003752 C50.3444316,68.1847732 50.5401222,68.7473837 50.5401222,69.4882235 C50.5401222,70.3129319 50.3374426,70.9069927 49.9320774,71.2704235 C49.5267123,71.6338543 48.8417952,71.815567 47.8773056,71.815567 L42.4678043,71.815567 C41.5033148,71.815567 40.8183977,71.6373488 40.4130325,71.280907 C40.0076674,70.9244652 39.8049878,70.32691 39.8049878,69.4882235 C39.8049878,68.7473837 40.0041729,68.1847732 40.402549,67.8003752 C40.8009251,67.4159772 41.3775135,67.2237811 42.1323314,67.2237811 L42.4678043,67.2237811 L42.4678043,61.0384986 L35.611576,61.0384986 L35.611576,67.2237811 L35.9470489,67.2237811 C36.7018668,67.2237811 37.2784552,67.4159772 37.6768313,67.8003752 C38.0752074,68.1847732 38.2743925,68.7473837 38.2743925,69.4882235 C38.2743925,70.3129319 38.0682185,70.9069927 37.6558642,71.2704235 C37.24351,71.6338543 36.5620874,71.815567 35.611576,71.815567 L30.2020747,71.815567 C29.2375851,71.815567 28.552668,71.6373488 28.1473029,71.280907 C27.7419377,70.9244652 27.5392581,70.32691 27.5392581,69.4882235 C27.5392581,68.7473837 27.7349487,68.1847732 28.1263358,67.8003752 C28.5177229,67.4159772 29.0908168,67.2237811 29.8456347,67.2237811 L30.2020747,67.2237811 L30.2020747,51.5823548 L29.8456347,51.5823548 C29.1047949,51.5823548 28.5421844,51.3866642 28.1577864,50.9952772 C27.7733884,50.6038901 27.5811923,50.0307962 27.5811923,49.2759783 C27.5811923,48.4512699 27.7803773,47.8572091 28.1787534,47.4937783 C28.5771296,47.1303474 29.2515632,46.9486347 30.2020747,46.9486347 L35.611576,46.9486347 C36.5481093,46.9486347 37.2260374,47.1303474 37.6453807,47.4937783 C38.064724,47.8572091 38.2743925,48.4512699 38.2743925,49.2759783 C38.2743925,50.0307962 38.0752074,50.6038901 37.6768313,50.9952772 C37.2784552,51.3866642 36.7018668,51.5823548 35.9470489,51.5823548 L35.611576,51.5823548 Z M67.365213,51.5823548 L67.365213,67.2237811 L70.887679,67.2237811 C71.8381904,67.2237811 72.519613,67.4019993 72.9319673,67.7584411 C73.3443215,68.1148829 73.5504955,68.6914712 73.5504955,69.4882235 C73.5504955,70.2989538 73.340827,70.8895201 72.9214837,71.25994 C72.5021404,71.6303599 71.8242123,71.815567 70.887679,71.815567 L58.4332458,71.815567 C57.4827343,71.815567 56.8013117,71.6338543 56.3889575,71.2704235 C55.9766033,70.9069927 55.7704292,70.3129319 55.7704292,69.4882235 C55.7704292,68.6774931 55.9731088,68.0974103 56.378474,67.7479575 C56.7838391,67.3985048 57.4687562,67.2237811 58.4332458,67.2237811 L61.9557117,67.2237811 L61.9557117,51.5823548 L58.4332458,51.5823548 C57.4827343,51.5823548 56.8013117,51.4006421 56.3889575,51.0372113 C55.9766033,50.6737805 55.7704292,50.0867087 55.7704292,49.2759783 C55.7704292,48.4512699 55.9731088,47.8641981 56.378474,47.5147453 C56.7838391,47.1652926 57.4687562,46.9905689 58.4332458,46.9905689 L70.887679,46.9905689 C71.8801247,46.9905689 72.5720308,47.1652926 72.9634178,47.5147453 C73.3548049,47.8641981 73.5504955,48.4512699 73.5504955,49.2759783 C73.5504955,50.0867087 73.347816,50.6737805 72.9424508,51.0372113 C72.5370856,51.4006421 71.8521685,51.5823548 70.887679,51.5823548 L67.365213,51.5823548 Z M97.8608265,51.5823548 L97.8608265,63.1771386 L97.8608265,63.5755127 C97.8608265,65.4485794 97.7385199,66.8044357 97.493903,67.6431222 C97.2492861,68.4818088 96.8404325,69.2296264 96.26733,69.8865976 C95.5264902,70.7392623 94.4991146,71.3822457 93.1851723,71.815567 C91.87123,72.2488884 90.2917273,72.4655459 88.4466169,72.4655459 C87.1466527,72.4655459 85.8921362,72.3397448 84.6830298,72.0881388 C83.4739233,71.8365328 82.3102631,71.4591296 81.1920144,70.9559176 C80.5769776,70.6763554 80.175113,70.31293 79.9864085,69.8656305 C79.797704,69.418331 79.7033532,68.6914802 79.7033532,67.6850564 L79.7033532,63.3658422 C79.7033532,62.1637247 79.8780769,61.3250508 80.2275297,60.849795 C80.5769824,60.3745393 81.185021,60.136915 82.0516638,60.136915 C83.2957156,60.136915 83.9806326,61.0524675 84.1064356,62.8835998 C84.1204137,63.2050963 84.1413806,63.4497096 84.1693368,63.6174469 C84.3370741,65.2389076 84.7144774,66.3466561 85.301558,66.9407258 C85.8886386,67.5347954 86.8251579,67.8318258 88.1111439,67.8318258 C89.7046484,67.8318258 90.8263749,67.4089943 91.476357,66.5633187 C92.126339,65.7176431 92.4513252,64.1765796 92.4513252,61.9400821 L92.4513252,51.5823548 L88.9288593,51.5823548 C87.9783478,51.5823548 87.2969252,51.4006421 86.884571,51.0372113 C86.4722168,50.6737805 86.2660427,50.0867087 86.2660427,49.2759783 C86.2660427,48.4512699 86.4652278,47.8641981 86.8636039,47.5147453 C87.26198,47.1652926 87.9503916,46.9905689 88.9288593,46.9905689 L99.6220595,46.9905689 C100.600527,46.9905689 101.288939,47.1652926 101.687315,47.5147453 C102.085691,47.8641981 102.284876,48.4512699 102.284876,49.2759783 C102.284876,50.0867087 102.078702,50.6737805 101.666348,51.0372113 C101.253994,51.4006421 100.572571,51.5823548 99.6220595,51.5823548 L97.8608265,51.5823548 Z M112.505343,51.5823548 L112.505343,57.9353738 L118.984165,51.4565525 C118.257303,51.3726838 117.747109,51.1665098 117.453569,50.8380242 C117.160029,50.5095387 117.013261,49.9888619 117.013261,49.2759783 C117.013261,48.4512699 117.212446,47.8572091 117.610822,47.4937783 C118.009198,47.1303474 118.683632,46.9486347 119.634143,46.9486347 L124.771073,46.9486347 C125.721584,46.9486347 126.396018,47.1303474 126.794394,47.4937783 C127.19277,47.8572091 127.391955,48.4512699 127.391955,49.2759783 C127.391955,50.0447743 127.19277,50.6213627 126.794394,51.0057607 C126.396018,51.3901587 125.812441,51.5823548 125.043645,51.5823548 L124.561402,51.5823548 L118.459988,57.641835 C119.592215,58.4805215 120.626579,59.5812811 121.563113,60.9441468 C122.499646,62.3070125 123.596911,64.400203 124.854941,67.2237811 L125.127513,67.2237811 L125.546854,67.2237811 C126.371563,67.2237811 126.98659,67.4124827 127.391955,67.7898917 C127.79732,68.1673006 128,68.7334056 128,69.4882235 C128,70.3129319 127.793826,70.9069927 127.381472,71.2704235 C126.969118,71.6338543 126.287695,71.815567 125.337183,71.815567 L122.758235,71.815567 C121.626008,71.815567 120.710456,71.0537715 120.01155,69.5301576 C119.885747,69.2505954 119.787902,69.026949 119.718012,68.8592117 C118.795456,66.9022764 117.949793,65.3926632 117.180997,64.3303269 C116.412201,63.2679906 115.510627,62.2965265 114.476247,61.4159056 L112.505343,63.302941 L112.505343,67.2237811 L112.840816,67.2237811 C113.595634,67.2237811 114.172222,67.4159772 114.570599,67.8003752 C114.968975,68.1847732 115.16816,68.7473837 115.16816,69.4882235 C115.16816,70.3129319 114.961986,70.9069927 114.549631,71.2704235 C114.137277,71.6338543 113.455855,71.815567 112.505343,71.815567 L107.095842,71.815567 C106.131352,71.815567 105.446435,71.6373488 105.04107,71.280907 C104.635705,70.9244652 104.433025,70.32691 104.433025,69.4882235 C104.433025,68.7473837 104.628716,68.1847732 105.020103,67.8003752 C105.41149,67.4159772 105.984584,67.2237811 106.739402,67.2237811 L107.095842,67.2237811 L107.095842,51.5823548 L106.739402,51.5823548 C105.998562,51.5823548 105.435952,51.3866642 105.051554,50.9952772 C104.667156,50.6038901 104.474959,50.0307962 104.474959,49.2759783 C104.474959,48.4512699 104.674145,47.8572091 105.072521,47.4937783 C105.470897,47.1303474 106.14533,46.9486347 107.095842,46.9486347 L112.505343,46.9486347 C113.441877,46.9486347 114.119805,47.1303474 114.539148,47.4937783 C114.958491,47.8572091 115.16816,48.4512699 115.16816,49.2759783 C115.16816,50.0307962 114.968975,50.6038901 114.570599,50.9952772 C114.172222,51.3866642 113.595634,51.5823548 112.840816,51.5823548 L112.505343,51.5823548 Z M13.439885,96.325622 L17.4445933,84.4372993 C17.6961993,83.6545252 18.0456468,83.0849258 18.4929463,82.728484 C18.9402458,82.3720422 19.5343065,82.193824 20.2751463,82.193824 L23.5460076,82.193824 C24.496519,82.193824 25.1779416,82.3755367 25.5902958,82.7389675 C26.0026501,83.1023984 26.2088241,83.6964591 26.2088241,84.5211676 C26.2088241,85.2759855 26.009639,85.8490794 25.6112629,86.2404664 C25.2128868,86.6318535 24.6362984,86.8275441 23.8814805,86.8275441 L23.5460076,86.8275441 L24.1330852,102.46897 L24.4895252,102.46897 C25.2443431,102.46897 25.8104481,102.661166 26.187857,103.045564 C26.565266,103.429962 26.7539676,103.992573 26.7539676,104.733413 C26.7539676,105.558121 26.5547826,106.152182 26.1564064,106.515613 C25.7580303,106.879044 25.0835967,107.060756 24.1330852,107.060756 L19.4154969,107.060756 C18.4649855,107.060756 17.7905518,106.882538 17.3921757,106.526096 C16.9937996,106.169654 16.7946145,105.572099 16.7946145,104.733413 C16.7946145,103.992573 16.9868106,103.429962 17.3712086,103.045564 C17.7556066,102.661166 18.325206,102.46897 19.0800239,102.46897 L19.4154969,102.46897 L19.1219581,89.6790642 L16.0607674,99.1981091 C15.8371177,99.9109927 15.5191204,100.42468 15.1067662,100.739188 C14.694412,101.053695 14.1248126,101.210947 13.3979509,101.210947 C12.6710892,101.210947 12.0945008,101.053695 11.6681685,100.739188 C11.2418362,100.42468 10.91685,99.9109927 10.6932002,99.1981091 L7.65297664,89.6790642 L7.35943781,102.46897 L7.69491075,102.46897 C8.44972866,102.46897 9.01932808,102.661166 9.40372609,103.045564 C9.78812409,103.429962 9.98032022,103.992573 9.98032022,104.733413 C9.98032022,105.558121 9.77764067,106.152182 9.3722755,106.515613 C8.96691032,106.879044 8.29597114,107.060756 7.35943781,107.060756 L2.62088241,107.060756 C1.68434908,107.060756 1.01340989,106.879044 0.608044719,106.515613 C0.202679546,106.152182 0,105.558121 0,104.733413 C0,103.992573 0.192196121,103.429962 0.57659413,103.045564 C0.960992139,102.661166 1.53059155,102.46897 2.28540946,102.46897 L2.62088241,102.46897 L3.22892713,86.8275441 L2.89345418,86.8275441 C2.13863627,86.8275441 1.56204791,86.6318535 1.16367179,86.2404664 C0.765295672,85.8490794 0.5661106,85.2759855 0.5661106,84.5211676 C0.5661106,83.6964591 0.772284622,83.1023984 1.18463885,82.7389675 C1.59699308,82.3755367 2.27841569,82.193824 3.22892713,82.193824 L6.49978838,82.193824 C7.22665007,82.193824 7.81022738,82.3685477 8.25053783,82.7180005 C8.69084827,83.0674532 9.05077919,83.6405471 9.33034138,84.4372993 L13.439885,96.325622 Z M43.8935644,98.3803938 L43.8935644,86.8275441 L42.7403761,86.8275441 C41.8178209,86.8275441 41.1573651,86.6458314 40.758989,86.2824006 C40.3606129,85.9189697 40.1614278,85.3318979 40.1614278,84.5211676 C40.1614278,83.7104372 40.3606129,83.119871 40.758989,82.7494511 C41.1573651,82.3790312 41.8178209,82.193824 42.7403761,82.193824 L48.6950209,82.193824 C49.6035981,82.193824 50.2605593,82.3790312 50.6659245,82.7494511 C51.0712897,83.119871 51.2739692,83.7104372 51.2739692,84.5211676 C51.2739692,85.2620074 51.0817731,85.8316068 50.6973751,86.2299829 C50.3129771,86.628359 49.7643445,86.8275441 49.051461,86.8275441 L48.6950209,86.8275441 L48.6950209,105.865634 C48.6950209,106.522605 48.6251315,106.934953 48.4853504,107.10269 C48.3455693,107.270428 48.0310665,107.354295 47.5418327,107.354295 L45.4451268,107.354295 C44.7741775,107.354295 44.3024234,107.284406 44.0298503,107.144625 C43.7572771,107.004843 43.5231473,106.76023 43.3274538,106.410777 L34.6051571,91.0838571 L34.6051571,102.46897 L35.8212466,102.46897 C36.7298237,102.46897 37.379796,102.643694 37.7711831,102.993147 C38.1625701,103.3426 38.3582607,103.922682 38.3582607,104.733413 C38.3582607,105.558121 38.1590757,106.152182 37.7606995,106.515613 C37.3623234,106.879044 36.7158456,107.060756 35.8212466,107.060756 L29.8037005,107.060756 C28.8951234,107.060756 28.2381621,106.879044 27.832797,106.515613 C27.4274318,106.152182 27.2247522,105.558121 27.2247522,104.733413 C27.2247522,103.992573 27.4134539,103.429962 27.7908629,103.045564 C28.1682718,102.661166 28.7273878,102.46897 29.4682276,102.46897 L29.8037005,102.46897 L29.8037005,86.8275441 L29.4682276,86.8275441 C28.755344,86.8275441 28.203217,86.628359 27.8118299,86.2299829 C27.4204428,85.8316068 27.2247522,85.2620074 27.2247522,84.5211676 C27.2247522,83.7104372 27.4309263,83.119871 27.8432805,82.7494511 C28.2556347,82.3790312 28.9091015,82.193824 29.8037005,82.193824 L33.2422983,82.193824 C34.0670067,82.193824 34.6261227,82.3021527 34.919663,82.5188134 C35.2132033,82.7354741 35.5416839,83.1722835 35.9051148,83.8292546 L43.8935644,98.3803938 Z M64.6604624,86.3662688 C62.8572863,86.3662688 61.4420239,87.0931196 60.4146329,88.546843 C59.3872418,90.0005663 58.873554,92.0203728 58.873554,94.6063231 C58.873554,97.1922733 59.3907363,99.2190688 60.4251164,100.68677 C61.4594965,102.154472 62.8712644,102.888312 64.6604624,102.888312 C66.4636385,102.888312 67.8823953,102.157966 68.9167754,100.697254 C69.9511555,99.2365414 70.4683378,97.2062514 70.4683378,94.6063231 C70.4683378,92.0203728 69.95465,90.0005663 68.9272589,88.546843 C67.8998679,87.0931196 66.4776166,86.3662688 64.6604624,86.3662688 L64.6604624,86.3662688 Z M64.6604624,81.501911 C68.0990773,81.501911 70.929602,82.7319662 73.1521214,85.1921135 C75.3746408,87.6522607 76.4858838,90.7902992 76.4858838,94.6063231 C76.4858838,98.4503032 75.3816297,101.595331 73.1730884,104.0415 C70.9645471,106.487669 68.1270335,107.710735 64.6604624,107.710735 C61.2358256,107.710735 58.4053009,106.477185 56.1688034,104.010049 C53.9323059,101.542913 52.8140739,98.4083688 52.8140739,94.6063231 C52.8140739,90.7763211 53.9218224,87.6347881 56.1373528,85.1816299 C58.3528831,82.7284717 61.1938912,81.501911 64.6604624,81.501911 L64.6604624,81.501911 Z M87.4611651,98.1707232 L87.4611651,102.46897 L89.6207722,102.46897 C90.5293493,102.46897 91.1758272,102.643694 91.5602252,102.993147 C91.9446232,103.3426 92.1368193,103.922682 92.1368193,104.733413 C92.1368193,105.558121 91.9411287,106.152182 91.5497417,106.515613 C91.1583546,106.879044 90.5153712,107.060756 89.6207722,107.060756 L82.3661697,107.060756 C81.4436145,107.060756 80.7831587,106.879044 80.3847826,106.515613 C79.9864065,106.152182 79.7872214,105.558121 79.7872214,104.733413 C79.7872214,103.992573 79.9759231,103.429962 80.353332,103.045564 C80.730741,102.661166 81.282868,102.46897 82.0097297,102.46897 L82.3661697,102.46897 L82.3661697,86.8275441 L82.0097297,86.8275441 C81.2968461,86.8275441 80.7482136,86.628359 80.3638155,86.2299829 C79.9794175,85.8316068 79.7872214,85.2620074 79.7872214,84.5211676 C79.7872214,83.7104372 79.989901,83.119871 80.3952661,82.7494511 C80.8006313,82.3790312 81.4575926,82.193824 82.3661697,82.193824 L91.0255652,82.193824 C94.450202,82.193824 97.0396079,82.8507853 98.7938606,84.1647276 C100.548113,85.4786699 101.425227,87.414609 101.425227,89.972603 C101.425227,92.6703781 100.551608,94.7111515 98.8043442,96.0949843 C97.0570805,97.4788171 94.4641801,98.1707232 91.0255652,98.1707232 L87.4611651,98.1707232 Z M87.4611651,86.8275441 L87.4611651,93.4531348 L90.4384875,93.4531348 C92.0879044,93.4531348 93.328443,93.1735768 94.1601405,92.6144525 C94.9918381,92.0553281 95.4076806,91.2166541 95.4076806,90.0984053 C95.4076806,89.0500471 94.9778602,88.2428234 94.1182064,87.67671 C93.2585527,87.1105966 92.031992,86.8275441 90.4384875,86.8275441 L87.4611651,86.8275441 Z M114.727851,107.396229 L113.092421,109.03166 C113.69348,108.835966 114.284046,108.689198 114.864137,108.591352 C115.444229,108.493505 116.013828,108.444582 116.572953,108.444582 C117.677223,108.444582 118.840883,108.608823 120.063968,108.937308 C121.287053,109.265794 122.031376,109.430034 122.29696,109.430034 C122.744259,109.430034 123.327837,109.279772 124.047709,108.979242 C124.767582,108.678713 125.253314,108.52845 125.50492,108.52845 C126.02211,108.52845 126.45193,108.727636 126.794394,109.126012 C127.136858,109.524388 127.308087,110.024098 127.308087,110.625156 C127.308087,111.421909 126.836333,112.099837 125.892811,112.658961 C124.949288,113.218086 123.792617,113.497643 122.422762,113.497643 C121.486229,113.497643 120.28413,113.277492 118.816428,112.837181 C117.348727,112.396871 116.286406,112.176719 115.629435,112.176719 C114.636989,112.176719 113.518757,112.449288 112.274706,112.994434 C111.030654,113.53958 110.261869,113.812149 109.968329,113.812149 C109.36727,113.812149 108.857077,113.612964 108.437734,113.214588 C108.01839,112.816212 107.808722,112.337469 107.808722,111.778345 C107.808722,111.386958 107.941512,110.971115 108.207096,110.530805 C108.47268,110.090494 108.94094,109.520895 109.611889,108.821989 L111.729562,106.683349 C109.395218,105.830685 107.536157,104.29661 106.152324,102.08108 C104.768491,99.8655494 104.076585,97.3180772 104.076585,94.4385866 C104.076585,90.6365409 105.180839,87.5299526 107.389381,85.1187288 C109.597922,82.7075049 112.442425,81.501911 115.922974,81.501911 C119.389545,81.501911 122.227059,82.7109994 124.4356,85.1292123 C126.644141,87.5474252 127.748395,90.650519 127.748395,94.4385866 C127.748395,98.2126762 126.65113,101.322759 124.456567,103.768928 C122.262004,106.215097 119.480402,107.438163 116.111677,107.438163 C115.888028,107.438163 115.660887,107.434669 115.430248,107.42768 C115.199609,107.420691 114.965479,107.410207 114.727851,107.396229 L114.727851,107.396229 Z M115.922974,86.3662688 C114.119798,86.3662688 112.704535,87.0931196 111.677144,88.546843 C110.649753,90.0005663 110.136065,92.0203728 110.136065,94.6063231 C110.136065,97.1922733 110.653248,99.2190688 111.687628,100.68677 C112.722008,102.154472 114.133776,102.888312 115.922974,102.888312 C117.72615,102.888312 119.144907,102.157966 120.179287,100.697254 C121.213667,99.2365414 121.730849,97.2062514 121.730849,94.6063231 C121.730849,92.0203728 121.217161,90.0005663 120.18977,88.546843 C119.162379,87.0931196 117.740128,86.3662688 115.922974,86.3662688 L115.922974,86.3662688 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/mono-line": {
"title": "$:/core/images/mono-line",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-mono-line tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M60.4374591,84.522627 L61.3450888,84.522627 C63.2671377,84.522627 64.7264493,85.0120303 65.7230673,85.9908515 C66.7196852,86.9696727 67.2179868,88.4022896 67.2179868,90.288745 C67.2179868,92.3887615 66.6929905,93.9014625 65.6429823,94.8268935 C64.5929741,95.7523244 62.857817,96.215033 60.4374591,96.215033 L44.3670747,96.215033 C41.9111232,96.215033 40.1670679,95.7612227 39.1348565,94.8535884 C38.102645,93.9459542 37.586547,92.424355 37.586547,90.288745 C37.586547,88.2243221 38.102645,86.747214 39.1348565,85.8573766 C40.1670679,84.9675391 41.9111232,84.522627 44.3670747,84.522627 L46.235724,84.522627 L44.0467348,78.2759992 L20.9822627,78.2759992 L18.6864935,84.522627 L20.5551429,84.522627 C22.9755008,84.522627 24.7106579,84.9764373 25.7606661,85.8840716 C26.8106743,86.7917058 27.3356705,88.2599156 27.3356705,90.288745 C27.3356705,92.3887615 26.8106743,93.9014625 25.7606661,94.8268935 C24.7106579,95.7523244 22.9755008,96.215033 20.5551429,96.215033 L6.78052766,96.215033 C4.32457622,96.215033 2.58052094,95.7523244 1.54830946,94.8268935 C0.516097994,93.9014625 0,92.3887615 0,90.288745 C0,88.4022896 0.498301511,86.9696727 1.49491948,85.9908515 C2.49153745,85.0120303 3.95084902,84.522627 5.87289797,84.522627 L6.78052766,84.522627 L21.0890427,44.6937008 L16.8178442,44.6937008 C14.3974863,44.6937008 12.6623292,44.2309922 11.612321,43.3055613 C10.5623128,42.3801303 10.0373165,40.8852258 10.0373165,38.8208028 C10.0373165,36.7207864 10.5623128,35.2080854 11.612321,34.2826544 C12.6623292,33.3572234 14.3974863,32.8945149 16.8178442,32.8945149 L36.8390873,32.8945149 C40.0069087,32.8945149 42.231469,34.6029772 43.512835,38.0199531 L43.512835,38.180123 L60.4374591,84.522627 Z M32.4611088,44.6937008 L24.7195615,67.224273 L40.2026561,67.224273 L32.4611088,44.6937008 Z M89.5058233,68.5590225 L89.5058233,84.8429669 L97.5143205,84.8429669 C103.173687,84.8429669 107.160099,84.22009 109.473676,82.9743176 C111.787254,81.7285451 112.944025,79.6463566 112.944025,76.7276897 C112.944025,73.7734293 111.840643,71.6734444 109.633846,70.4276719 C107.427049,69.1818994 103.565213,68.5590225 98.0482204,68.5590225 L89.5058233,68.5590225 Z M116.734714,62.6327346 C120.614405,64.0564746 123.461842,66.0051894 125.277111,68.4789376 C127.092379,70.9526857 128,74.1115614 128,77.9556593 C128,81.1946677 127.216955,84.1488838 125.650841,86.8183962 C124.084727,89.4879087 121.84237,91.676876 118.923703,93.385364 C117.215215,94.3819819 115.302093,95.1027395 113.18428,95.5476582 C111.066467,95.9925769 108.06776,96.215033 104.188068,96.215033 L99.7033098,96.215033 L76.3184979,96.215033 C73.9693269,96.215033 72.2875593,95.7523244 71.2731446,94.8268935 C70.2587299,93.9014625 69.7515301,92.3887615 69.7515301,90.288745 C69.7515301,88.4022896 70.2320352,86.9696727 71.1930596,85.9908515 C72.1540841,85.0120303 73.5600062,84.522627 75.4108682,84.522627 L76.3184979,84.522627 L76.3184979,44.6937008 L75.4108682,44.6937008 C73.5600062,44.6937008 72.1540841,44.1953993 71.1930596,43.1987813 C70.2320352,42.2021633 69.7515301,40.7428518 69.7515301,38.8208028 C69.7515301,36.7563799 70.2676281,35.2525771 71.2998396,34.3093494 C72.3320511,33.3661217 74.0049204,32.8945149 76.3184979,32.8945149 L100.877889,32.8945149 C108.388118,32.8945149 114.09189,34.3538264 117.989378,37.2724934 C121.886867,40.1911603 123.835581,44.4623161 123.835581,50.0860889 C123.835581,52.8623819 123.239399,55.3093982 122.047017,57.4272114 C120.854635,59.5450246 119.083885,61.2801816 116.734714,62.6327346 L116.734714,62.6327346 Z M89.5058233,44.3733609 L89.5058233,57.8276363 L96.7134708,57.8276363 C101.091471,57.8276363 104.179161,57.3115383 105.976633,56.2793268 C107.774104,55.2471153 108.672827,53.50306 108.672827,51.0471086 C108.672827,48.7335312 107.863087,47.0428653 106.243583,45.9750604 C104.624078,44.9072554 101.999097,44.3733609 98.3685602,44.3733609 L89.5058233,44.3733609 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/new-button": {
"title": "$:/core/images/new-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-new-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M56,72 L8.00697327,72 C3.59075293,72 0,68.418278 0,64 C0,59.5907123 3.58484404,56 8.00697327,56 L56,56 L56,8.00697327 C56,3.59075293 59.581722,0 64,0 C68.4092877,0 72,3.58484404 72,8.00697327 L72,56 L119.993027,56 C124.409247,56 128,59.581722 128,64 C128,68.4092877 124.415156,72 119.993027,72 L72,72 L72,119.993027 C72,124.409247 68.418278,128 64,128 C59.5907123,128 56,124.415156 56,119.993027 L56,72 L56,72 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/new-here-button": {
"title": "$:/core/images/new-here-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-new-here-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n \t<g transform=\"translate(52.233611, 64.389922) rotate(75.000000) translate(-52.233611, -64.389922) translate(-7.734417, 3.702450)\">\n\t <path d=\"M18.9270186,45.959338 L18.9080585,49.6521741 C18.8884833,53.4648378 21.0574548,58.7482162 23.7526408,61.4434022 L78.5671839,116.257945 C81.2617332,118.952495 85.6348701,118.950391 88.3334363,116.251825 L115.863237,88.7220241 C118.555265,86.0299959 118.564544,81.6509578 115.869358,78.9557717 L61.0548144,24.1412286 C58.3602652,21.4466794 53.0787224,19.2788426 49.2595808,19.3006519 L25.9781737,19.4336012 C22.1633003,19.4553862 19.0471195,22.5673232 19.0275223,26.3842526 L18.9871663,34.2443819 C19.0818862,34.255617 19.1779758,34.2665345 19.2754441,34.2771502 C22.6891275,34.6489512 27.0485594,34.2348566 31.513244,33.2285542 C31.7789418,32.8671684 32.075337,32.5211298 32.4024112,32.1940556 C34.8567584,29.7397084 38.3789778,29.0128681 41.4406288,30.0213822 C41.5958829,29.9543375 41.7503946,29.8866669 41.9041198,29.8183808 L42.1110981,30.2733467 C43.1114373,30.6972371 44.0473796,31.3160521 44.8614145,32.1300869 C48.2842088,35.5528813 48.2555691,41.130967 44.7974459,44.5890903 C41.4339531,47.952583 36.0649346,48.0717177 32.6241879,44.9262969 C27.8170558,45.8919233 23.0726921,46.2881596 18.9270186,45.959338 Z\"></path>\n\t <path d=\"M45.4903462,38.8768094 C36.7300141,42.6833154 26.099618,44.7997354 18.1909048,43.9383587 C7.2512621,42.7468685 1.50150083,35.8404432 4.66865776,24.7010202 C7.51507386,14.6896965 15.4908218,6.92103848 24.3842626,4.38423012 C34.1310219,1.60401701 42.4070208,6.15882777 42.4070209,16.3101169 L34.5379395,16.310117 C34.5379394,11.9285862 31.728784,10.3825286 26.5666962,11.8549876 C20.2597508,13.6540114 14.3453742,19.4148216 12.2444303,26.8041943 C10.4963869,32.9523565 12.6250796,35.5092726 19.0530263,36.2093718 C25.5557042,36.9176104 35.0513021,34.9907189 42.7038419,31.5913902 L42.7421786,31.6756595 C44.3874154,31.5384763 47.8846101,37.3706354 45.9274416,38.6772897 L45.9302799,38.6835285 C45.9166992,38.6895612 45.9031139,38.6955897 45.8895238,38.7016142 C45.8389288,38.7327898 45.7849056,38.7611034 45.7273406,38.7863919 C45.6506459,38.8200841 45.571574,38.8501593 45.4903462,38.8768094 Z\"></path>\n </g>\n <rect x=\"96\" y=\"80\" width=\"16\" height=\"48\" rx=\"8\"></rect>\n <rect x=\"80\" y=\"96\" width=\"48\" height=\"16\" rx=\"8\"></rect>\n </g>\n </g>\n</svg>"
},
"$:/core/images/new-image-button": {
"title": "$:/core/images/new-image-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-new-image-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M81.3619177,73.6270062 L97.1875317,46.2162388 C97.91364,44.9585822 97.4824378,43.3533085 96.2260476,42.6279312 L46.2162388,13.7547547 C44.9585822,13.0286463 43.3533085,13.4598485 42.6279312,14.7162388 L30.0575956,36.4886988 L40.0978909,31.2276186 C43.1404959,29.6333041 46.8692155,31.3421319 47.6479264,34.6877101 L51.2545483,52.3903732 L61.1353556,53.2399953 C63.2899974,53.4346096 65.1046382,54.9309951 65.706105,57.0091178 C65.7395572,57.1246982 65.8069154,57.3539875 65.9047035,57.6813669 C66.0696435,58.2335608 66.2581528,58.852952 66.4667073,59.5238092 C67.0618822,61.4383079 67.6960725,63.3742727 68.3393254,65.2021174 C68.5462918,65.7902259 68.7511789,66.3583016 68.953259,66.9034738 C69.5777086,68.5881157 70.1617856,70.0172008 70.6783305,71.110045 C70.9334784,71.6498566 71.1627732,72.0871602 71.4035746,72.5373068 C71.6178999,72.7492946 71.9508843,72.9623307 72.4151452,73.1586945 C73.5561502,73.6412938 75.1990755,73.899146 77.0720271,73.9171651 C77.9355886,73.9254732 78.7819239,73.8832103 79.5638842,73.8072782 C80.0123946,73.7637257 80.3172916,73.7224469 80.4352582,73.7027375 C80.7503629,73.6500912 81.0598053,73.6256267 81.3619177,73.6270062 L81.3619177,73.6270062 L81.3619177,73.6270062 L81.3619177,73.6270062 Z M37.4707881,2.64867269 C38.9217993,0.135447653 42.1388058,-0.723707984 44.6486727,0.725364314 L108.293614,37.4707881 C110.806839,38.9217993 111.665994,42.1388058 110.216922,44.6486727 L73.4714982,108.293614 C72.0204871,110.806839 68.8034805,111.665994 66.2936136,110.216922 L2.64867269,73.4714982 C0.135447653,72.0204871 -0.723707984,68.8034805 0.725364314,66.2936136 L37.4707881,2.64867269 L37.4707881,2.64867269 L37.4707881,2.64867269 L37.4707881,2.64867269 Z M80.3080975,53.1397764 C82.8191338,54.5895239 86.0299834,53.7291793 87.4797308,51.218143 C88.9294783,48.7071068 88.0691338,45.4962571 85.5580975,44.0465097 C83.0470612,42.5967622 79.8362116,43.4571068 78.3864641,45.968143 C76.9367166,48.4791793 77.7970612,51.6900289 80.3080975,53.1397764 L80.3080975,53.1397764 L80.3080975,53.1397764 L80.3080975,53.1397764 Z M96,112 L88.0070969,112 C83.5881712,112 80,108.418278 80,104 C80,99.5907123 83.5848994,96 88.0070969,96 L96,96 L96,88.0070969 C96,83.5881712 99.581722,80 104,80 C108.409288,80 112,83.5848994 112,88.0070969 L112,96 L119.992903,96 C124.411829,96 128,99.581722 128,104 C128,108.409288 124.415101,112 119.992903,112 L112,112 L112,119.992903 C112,124.411829 108.418278,128 104,128 C99.5907123,128 96,124.415101 96,119.992903 L96,112 L96,112 Z M33.3471097,51.7910932 C40.7754579,59.7394511 42.3564368,62.4818351 40.7958321,65.1848818 C39.2352273,67.8879286 26.9581062,62.8571718 24.7019652,66.7649227 C22.4458242,70.6726735 23.7947046,70.0228006 22.2648667,72.6725575 L41.9944593,84.0634431 C41.9944593,84.0634431 36.3904568,75.8079231 37.7602356,73.4353966 C40.2754811,69.0788636 46.5298923,72.1787882 48.1248275,69.4162793 C50.538989,65.234829 43.0222016,59.7770885 33.3471097,51.7910932 L33.3471097,51.7910932 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/new-journal-button": {
"title": "$:/core/images/new-journal-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-new-journal-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M102.545455,112.818182 L102.545455,124.636364 L102.545455,124.636364 L102.545455,124.636364 C102.545455,125.941761 103.630828,127 104.969697,127 L111.030303,127 C112.369172,127 113.454545,125.941761 113.454545,124.636364 L113.454545,112.818182 L125.575758,112.818182 C126.914626,112.818182 128,111.759982 128,110.454545 L128,104.545455 C128,103.240018 126.914626,102.181818 125.575758,102.181818 L113.454545,102.181818 L113.454545,90.3636364 C113.454545,89.0582 112.369172,88 111.030303,88 L104.969697,88 L104.969697,88 C103.630828,88 102.545455,89.0582 102.545455,90.3636364 L102.545455,102.181818 L90.4242424,102.181818 L90.4242424,102.181818 C89.0853705,102.181818 88,103.240018 88,104.545455 L88,110.454545 L88,110.454545 L88,110.454545 C88,111.759982 89.0853705,112.818182 90.4242424,112.818182 L102.545455,112.818182 Z\"></path>\n <g transform=\"translate(59.816987, 64.316987) rotate(30.000000) translate(-59.816987, -64.316987) translate(20.316987, 12.816987)\">\n <g transform=\"translate(0.000000, 0.000000)\">\n <path d=\"M9.99631148,0 C4.4755011,0 -2.27373675e-13,4.48070044 -2.27373675e-13,9.99759461 L-2.27373675e-13,91.6128884 C-2.27373675e-13,97.1344074 4.46966773,101.610483 9.99631148,101.610483 L68.9318917,101.610483 C74.4527021,101.610483 78.9282032,97.1297826 78.9282032,91.6128884 L78.9282032,9.99759461 C78.9282032,4.47607557 74.4585355,0 68.9318917,0 L9.99631148,0 Z M20.8885263,26 C24.2022348,26 26.8885263,23.3137085 26.8885263,20 C26.8885263,16.6862915 24.2022348,14 20.8885263,14 C17.5748178,14 14.8885263,16.6862915 14.8885263,20 C14.8885263,23.3137085 17.5748178,26 20.8885263,26 Z M57.3033321,25.6783342 C60.6170406,25.6783342 63.3033321,22.9920427 63.3033321,19.6783342 C63.3033321,16.3646258 60.6170406,13.6783342 57.3033321,13.6783342 C53.9896236,13.6783342 51.3033321,16.3646258 51.3033321,19.6783342 C51.3033321,22.9920427 53.9896236,25.6783342 57.3033321,25.6783342 Z\"></path>\n <text font-family=\"Helvetica\" font-size=\"47.1724138\" font-weight=\"bold\" fill=\"#FFFFFF\">\n <tspan x=\"42\" y=\"77.4847912\" text-anchor=\"middle\"><<now \"DD\">></tspan>\n </text>\n </g>\n </g>\n </g>\n</svg>"
},
"$:/core/images/opacity": {
"title": "$:/core/images/opacity",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-opacity tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M102.361773,65 C101.833691,67.051742 101.183534,69.0544767 100.419508,71 L82.5835324,71 C83.7602504,69.1098924 84.7666304,67.1027366 85.581205,65 L102.361773,65 Z M102.834311,63 C103.256674,61.0388326 103.568427,59.0365486 103.762717,57 L87.6555706,57 C87.3692052,59.0609452 86.9083652,61.0660782 86.2884493,63 L102.834311,63 Z M99.5852583,73 C98.6682925,75.0747721 97.6196148,77.0783056 96.4498253,79 L75.8124196,79 C77.8387053,77.2115633 79.6621163,75.1985844 81.2437158,73 L99.5852583,73 Z M95.1689122,81 C93.7449202,83.1155572 92.1695234,85.1207336 90.458251,87 L60.4614747,87 C65.1836162,85.86248 69.5430327,83.794147 73.3347255,81 L95.1689122,81 Z M87.6555706,47 L103.762717,47 C101.246684,20.6269305 79.0321807,0 52,0 C23.281193,0 0,23.281193 0,52 C0,77.2277755 17.9651296,98.2595701 41.8000051,103 L62.1999949,103 C67.8794003,101.870444 73.2255333,99.8158975 78.074754,97 L39,97 L39,95 L81.2493857,95 C83.8589242,93.2215015 86.2981855,91.2116653 88.5376609,89 L39,89 L39,87 L43.5385253,87 C27.7389671,83.1940333 16,68.967908 16,52 C16,32.117749 32.117749,16 52,16 C70.1856127,16 85.2217929,29.4843233 87.6555706,47 Z M87.8767787,49 L103.914907,49 C103.971379,49.9928025 104,50.9930589 104,52 C104,53.0069411 103.971379,54.0071975 103.914907,55 L87.8767787,55 C87.958386,54.0107999 88,53.0102597 88,52 C88,50.9897403 87.958386,49.9892001 87.8767787,49 Z\"></path>\n <path d=\"M76,128 C104.718807,128 128,104.718807 128,76 C128,47.281193 104.718807,24 76,24 C47.281193,24 24,47.281193 24,76 C24,104.718807 47.281193,128 76,128 L76,128 Z M76,112 C95.882251,112 112,95.882251 112,76 C112,56.117749 95.882251,40 76,40 C56.117749,40 40,56.117749 40,76 C40,95.882251 56.117749,112 76,112 L76,112 Z\"></path>\n <path d=\"M37,58 L90,58 L90,62 L37,62 L37,58 L37,58 Z M40,50 L93,50 L93,54 L40,54 L40,50 L40,50 Z M40,42 L93,42 L93,46 L40,46 L40,42 L40,42 Z M32,66 L85,66 L85,70 L32,70 L32,66 L32,66 Z M30,74 L83,74 L83,78 L30,78 L30,74 L30,74 Z M27,82 L80,82 L80,86 L27,86 L27,82 L27,82 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/open-window": {
"title": "$:/core/images/open-window",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-open-window tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M16,112 L104.993898,112 C108.863261,112 112,115.590712 112,120 C112,124.418278 108.858091,128 104.993898,128 L7.00610161,128 C3.13673853,128 0,124.409288 0,120 C0,119.998364 4.30952878e-07,119.996727 1.29273572e-06,119.995091 C4.89579306e-07,119.993456 0,119.99182 0,119.990183 L0,24.0098166 C0,19.586117 3.59071231,16 8,16 C12.418278,16 16,19.5838751 16,24.0098166 L16,112 Z\"></path>\n <path d=\"M96,43.1959595 L96,56 C96,60.418278 99.581722,64 104,64 C108.418278,64 112,60.418278 112,56 L112,24 C112,19.5907123 108.415101,16 103.992903,16 L72.0070969,16 C67.5881712,16 64,19.581722 64,24 C64,28.4092877 67.5848994,32 72.0070969,32 L84.5685425,32 L48.2698369,68.2987056 C45.1421332,71.4264093 45.1434327,76.4904296 48.267627,79.614624 C51.3854642,82.7324612 56.4581306,82.7378289 59.5835454,79.6124141 L96,43.1959595 Z M32,7.9992458 C32,3.58138434 35.5881049,0 39.9992458,0 L120.000754,0 C124.418616,0 128,3.5881049 128,7.9992458 L128,88.0007542 C128,92.4186157 124.411895,96 120.000754,96 L39.9992458,96 C35.5813843,96 32,92.4118951 32,88.0007542 L32,7.9992458 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/options-button": {
"title": "$:/core/images/options-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-options-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M110.48779,76.0002544 C109.354214,80.4045063 107.611262,84.5641217 105.354171,88.3838625 L105.354171,88.3838625 L112.07833,95.1080219 C115.20107,98.2307613 115.210098,103.299824 112.089164,106.420759 L106.420504,112.089418 C103.301049,115.208874 98.2346851,115.205502 95.1077675,112.078585 L88.3836082,105.354425 C84.5638673,107.611516 80.4042519,109.354468 76,110.488045 L76,110.488045 L76,119.993281 C76,124.409501 72.4220153,128.000254 68.0083475,128.000254 L59.9916525,128.000254 C55.5800761,128.000254 52,124.41541 52,119.993281 L52,110.488045 C47.5957481,109.354468 43.4361327,107.611516 39.6163918,105.354425 L32.8922325,112.078585 C29.7694931,115.201324 24.7004301,115.210353 21.5794957,112.089418 L15.9108363,106.420759 C12.7913807,103.301303 12.7947522,98.2349395 15.9216697,95.1080219 L22.6458291,88.3838625 C20.3887383,84.5641217 18.6457859,80.4045063 17.5122098,76.0002544 L8.00697327,76.0002544 C3.59075293,76.0002544 2.19088375e-16,72.4222697 4.89347582e-16,68.0086019 L9.80228577e-16,59.9919069 C1.25035972e-15,55.5803305 3.58484404,52.0002544 8.00697327,52.0002544 L17.5122098,52.0002544 C18.6457859,47.5960025 20.3887383,43.4363871 22.6458291,39.6166462 L15.9216697,32.8924868 C12.7989304,29.7697475 12.7899019,24.7006845 15.9108363,21.5797501 L21.5794957,15.9110907 C24.6989513,12.7916351 29.7653149,12.7950065 32.8922325,15.9219241 L39.6163918,22.6460835 C43.4361327,20.3889927 47.5957481,18.6460403 52,17.5124642 L52,8.00722764 C52,3.5910073 55.5779847,0.000254375069 59.9916525,0.000254375069 L68.0083475,0.000254375069 C72.4199239,0.000254375069 76,3.58509841 76,8.00722764 L76,17.5124642 C80.4042519,18.6460403 84.5638673,20.3889927 88.3836082,22.6460835 L95.1077675,15.9219241 C98.2305069,12.7991848 103.29957,12.7901562 106.420504,15.9110907 L112.089164,21.5797501 C115.208619,24.6992057 115.205248,29.7655693 112.07833,32.8924868 L105.354171,39.6166462 L105.354171,39.6166462 C107.611262,43.4363871 109.354214,47.5960025 110.48779,52.0002544 L119.993027,52.0002544 C124.409247,52.0002544 128,55.5782391 128,59.9919069 L128,68.0086019 C128,72.4201783 124.415156,76.0002544 119.993027,76.0002544 L110.48779,76.0002544 L110.48779,76.0002544 Z M64,96.0002544 C81.673112,96.0002544 96,81.6733664 96,64.0002544 C96,46.3271424 81.673112,32.0002544 64,32.0002544 C46.326888,32.0002544 32,46.3271424 32,64.0002544 C32,81.6733664 46.326888,96.0002544 64,96.0002544 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/paint": {
"title": "$:/core/images/paint",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-paint tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M83.5265806,76.1907935 C90.430962,69.2864121 91.8921169,59.0000433 87.9100453,50.6642209 L125.812763,12.7615036 C128.732035,9.84223095 128.72611,5.10322984 125.812796,2.18991592 C122.893542,-0.729338085 118.161775,-0.730617045 115.241209,2.18994966 L77.3384914,40.092667 C69.002669,36.1105954 58.7163002,37.5717503 51.8119188,44.4761317 L83.5265806,76.1907935 L83.5265806,76.1907935 L83.5265806,76.1907935 L83.5265806,76.1907935 Z M80.8836921,78.8336819 L49.1690303,47.1190201 C49.1690303,47.1190201 8.50573364,81.242543 0,80.2820711 C0,80.2820711 3.78222974,85.8744423 6.82737483,88.320684 C20.8514801,82.630792 44.1526049,63.720771 44.1526049,63.720771 L44.8144806,64.3803375 C44.8144806,64.3803375 19.450356,90.2231043 9.18040433,92.0477601 C10.4017154,93.4877138 13.5343883,96.1014812 15.4269991,97.8235871 C20.8439164,96.3356979 50.1595367,69.253789 50.1595367,69.253789 L50.8214124,69.9133555 L18.4136144,100.936036 L23.6993903,106.221812 L56.1060358,75.2002881 L56.7679115,75.8598546 C56.7679115,75.8598546 28.9040131,106.396168 28.0841366,108.291555 C28.0841366,108.291555 34.1159238,115.144621 35.6529617,116.115796 C36.3545333,113.280171 63.5365402,82.6307925 63.5365402,82.6307925 L64.1984159,83.290359 C64.1984159,83.290359 43.6013016,107.04575 39.2343772,120.022559 C42.443736,123.571575 46.7339155,125.159692 50.1595362,126.321151 C47.9699978,114.504469 80.8836921,78.8336819 80.8836921,78.8336819 L80.8836921,78.8336819 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/palette": {
"title": "$:/core/images/palette",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-palette tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M80.2470434,39.1821571 C75.0645698,38.2680897 69.6261555,37.7814854 64.0193999,37.7814854 C28.6624616,37.7814854 0,57.1324214 0,81.0030106 C0,90.644534 4.67604329,99.5487133 12.5805659,106.738252 C23.5031767,91.1899067 26.3405471,72.3946229 36.8885698,63.5622337 C52.0716764,50.8486559 63.4268694,55.7343343 63.4268694,55.7343343 L80.2470434,39.1821571 Z M106.781666,48.8370714 C119.830962,56.749628 128.0388,68.229191 128.0388,81.0030106 C128.0388,90.3534932 128.557501,98.4142085 116.165191,106.082518 C105.367708,112.763955 112.341384,99.546808 104.321443,95.1851533 C96.3015017,90.8234987 84.3749007,96.492742 86.1084305,103.091059 C89.3087234,115.272303 105.529892,114.54645 92.4224435,119.748569 C79.3149955,124.950687 74.2201582,124.224536 64.0193999,124.224536 C56.1979176,124.224536 48.7040365,123.277578 41.7755684,121.544216 C51.620343,117.347916 69.6563669,109.006202 75.129737,102.088562 C82.7876655,92.4099199 87.3713218,80.0000002 83.3235694,72.4837191 C83.1303943,72.1250117 94.5392656,60.81569 106.781666,48.8370714 Z M1.13430476,123.866563 C0.914084026,123.867944 0.693884185,123.868637 0.473712455,123.868637 C33.9526848,108.928928 22.6351223,59.642592 59.2924543,59.6425917 C59.6085574,61.0606542 59.9358353,62.5865065 60.3541977,64.1372318 C34.4465025,59.9707319 36.7873124,112.168427 1.13429588,123.866563 L1.13430476,123.866563 Z M1.84669213,123.859694 C40.7185279,123.354338 79.9985412,101.513051 79.9985401,79.0466836 C70.7284906,79.0466835 65.9257264,75.5670082 63.1833375,71.1051511 C46.585768,64.1019718 32.81846,116.819636 1.84665952,123.859695 L1.84669213,123.859694 Z M67.1980193,59.8524981 C62.748213,63.9666823 72.0838429,76.2846822 78.5155805,71.1700593 C89.8331416,59.8524993 112.468264,37.2173758 123.785825,25.8998146 C135.103386,14.5822535 123.785825,3.26469247 112.468264,14.5822535 C101.150703,25.8998144 78.9500931,48.9868127 67.1980193,59.8524981 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/permalink-button": {
"title": "$:/core/images/permalink-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-permalink-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M80.4834582,48 L73.0956761,80 L73.0956761,80 L47.5165418,80 L54.9043239,48 L80.4834582,48 Z M84.1773493,32 L89.8007299,7.64246248 C90.7941633,3.33942958 95.0918297,0.64641956 99.3968675,1.64031585 C103.693145,2.63218977 106.385414,6.93288901 105.390651,11.2416793 L100.598215,32 L104.000754,32 C108.411895,32 112,35.581722 112,40 C112,44.4092877 108.418616,48 104.000754,48 L96.9043239,48 L89.5165418,80 L104.000754,80 C108.411895,80 112,83.581722 112,88 C112,92.4092877 108.418616,96 104.000754,96 L85.8226507,96 L80.1992701,120.357538 C79.2058367,124.66057 74.9081703,127.35358 70.6031325,126.359684 C66.3068546,125.36781 63.6145865,121.067111 64.6093491,116.758321 L69.401785,96 L43.8226507,96 L38.1992701,120.357538 C37.2058367,124.66057 32.9081703,127.35358 28.6031325,126.359684 C24.3068546,125.36781 21.6145865,121.067111 22.6093491,116.758321 L27.401785,96 L23.9992458,96 C19.5881049,96 16,92.418278 16,88 C16,83.5907123 19.5813843,80 23.9992458,80 L31.0956761,80 L38.4834582,48 L23.9992458,48 C19.5881049,48 16,44.418278 16,40 C16,35.5907123 19.5813843,32 23.9992458,32 L42.1773493,32 L47.8007299,7.64246248 C48.7941633,3.33942958 53.0918297,0.64641956 57.3968675,1.64031585 C61.6931454,2.63218977 64.3854135,6.93288901 63.3906509,11.2416793 L58.598215,32 L84.1773493,32 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/permaview-button": {
"title": "$:/core/images/permaview-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-permaview-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M81.4834582,48 L79.6365127,56 L79.6365127,56 L74.0573784,56 L75.9043239,48 L81.4834582,48 Z M85.1773493,32 L90.8007299,7.64246248 C91.7941633,3.33942958 96.0918297,0.64641956 100.396867,1.64031585 C104.693145,2.63218977 107.385414,6.93288901 106.390651,11.2416793 L101.598215,32 L104.000754,32 C108.411895,32 112,35.581722 112,40 C112,44.4092877 108.418616,48 104.000754,48 L97.9043239,48 L96.0573784,56 L104.000754,56 C108.411895,56 112,59.581722 112,64 C112,68.4092877 108.418616,72 104.000754,72 L92.3634873,72 L90.5165418,80 L104.000754,80 C108.411895,80 112,83.581722 112,88 C112,92.4092877 108.418616,96 104.000754,96 L86.8226507,96 L81.1992701,120.357538 C80.2058367,124.66057 75.9081703,127.35358 71.6031325,126.359684 C67.3068546,125.36781 64.6145865,121.067111 65.6093491,116.758321 L70.401785,96 L64.8226507,96 L59.1992701,120.357538 C58.2058367,124.66057 53.9081703,127.35358 49.6031325,126.359684 C45.3068546,125.36781 42.6145865,121.067111 43.6093491,116.758321 L48.401785,96 L42.8226507,96 L37.1992701,120.357538 C36.2058367,124.66057 31.9081703,127.35358 27.6031325,126.359684 C23.3068546,125.36781 20.6145865,121.067111 21.6093491,116.758321 L26.401785,96 L23.9992458,96 C19.5881049,96 16,92.418278 16,88 C16,83.5907123 19.5813843,80 23.9992458,80 L30.0956761,80 L31.9426216,72 L23.9992458,72 C19.5881049,72 16,68.418278 16,64 C16,59.5907123 19.5813843,56 23.9992458,56 L35.6365127,56 L37.4834582,48 L23.9992458,48 C19.5881049,48 16,44.418278 16,40 C16,35.5907123 19.5813843,32 23.9992458,32 L41.1773493,32 L46.8007299,7.64246248 C47.7941633,3.33942958 52.0918297,0.64641956 56.3968675,1.64031585 C60.6931454,2.63218977 63.3854135,6.93288901 62.3906509,11.2416793 L57.598215,32 L63.1773493,32 L68.8007299,7.64246248 C69.7941633,3.33942958 74.0918297,0.64641956 78.3968675,1.64031585 C82.6931454,2.63218977 85.3854135,6.93288901 84.3906509,11.2416793 L79.598215,32 L85.1773493,32 Z M53.9043239,48 L52.0573784,56 L57.6365127,56 L59.4834582,48 L53.9043239,48 Z M75.9426216,72 L74.0956761,80 L74.0956761,80 L68.5165418,80 L70.3634873,72 L75.9426216,72 L75.9426216,72 Z M48.3634873,72 L46.5165418,80 L52.0956761,80 L53.9426216,72 L48.3634873,72 L48.3634873,72 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/picture": {
"title": "$:/core/images/picture",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-picture tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M112,68.2332211 L112,20.0027785 C112,17.7898769 110.207895,16 107.997221,16 L20.0027785,16 C17.7898769,16 16,17.792105 16,20.0027785 L16,58.312373 L25.2413115,43.7197989 C28.041793,39.297674 34.2643908,38.7118128 37.8410347,42.5335275 L56.0882845,63.1470817 L69.7748997,56.7400579 C72.766567,55.3552503 76.3013751,55.9473836 78.678437,58.2315339 C78.8106437,58.3585731 79.0742301,58.609836 79.4527088,58.9673596 C80.0910923,59.570398 80.8117772,60.2441563 81.598127,60.9705595 C83.8422198,63.043576 86.1541548,65.1151944 88.3956721,67.0372264 C89.1168795,67.6556396 89.8200801,68.2492007 90.5021258,68.8146755 C92.6097224,70.5620551 94.4693308,72.0029474 95.9836366,73.0515697 C96.7316295,73.5695379 97.3674038,73.9719282 98.0281481,74.3824999 C98.4724987,74.4989557 99.0742374,74.5263881 99.8365134,74.4317984 C101.709944,74.1993272 104.074502,73.2878514 106.559886,71.8846196 C107.705822,71.2376318 108.790494,70.5370325 109.764561,69.8410487 C110.323259,69.4418522 110.694168,69.1550757 110.834827,69.0391868 C111.210545,68.7296319 111.600264,68.4615815 112,68.2332211 L112,68.2332211 Z M0,8.00697327 C0,3.58484404 3.59075293,0 8.00697327,0 L119.993027,0 C124.415156,0 128,3.59075293 128,8.00697327 L128,119.993027 C128,124.415156 124.409247,128 119.993027,128 L8.00697327,128 C3.58484404,128 0,124.409247 0,119.993027 L0,8.00697327 L0,8.00697327 Z M95,42 C99.418278,42 103,38.418278 103,34 C103,29.581722 99.418278,26 95,26 C90.581722,26 87,29.581722 87,34 C87,38.418278 90.581722,42 95,42 L95,42 Z M32,76 C47.8587691,80.8294182 52.0345556,83.2438712 52.0345556,88 C52.0345556,92.7561288 32,95.4712486 32,102.347107 C32,109.222965 33.2849191,107.337637 33.2849191,112 L67.999999,112 C67.999999,112 54.3147136,105.375255 54.3147136,101.200691 C54.3147136,93.535181 64.9302432,92.860755 64.9302432,88 C64.9302432,80.6425555 50.8523779,79.167282 32,76 L32,76 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/plugin-generic-language": {
"title": "$:/core/images/plugin-generic-language",
"tags": "$:/tags/Image",
"text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M61.2072232,68.1369825 C56.8829239,70.9319564 54.2082892,74.793177 54.2082892,79.0581634 C54.2082892,86.9638335 63.3980995,93.4821994 75.2498076,94.3940006 C77.412197,98.2964184 83.8475284,101.178858 91.5684735,101.403106 C86.4420125,100.27851 82.4506393,97.6624107 80.9477167,94.3948272 C92.8046245,93.4861461 102,86.9662269 102,79.0581634 C102,70.5281905 91.3014611,63.6132813 78.1041446,63.6132813 C71.5054863,63.6132813 65.5315225,65.3420086 61.2072232,68.1369825 Z M74.001066,53.9793443 C69.6767667,56.7743182 63.7028029,58.5030456 57.1041446,58.5030456 C54.4851745,58.5030456 51.9646095,58.2307276 49.6065315,57.7275105 C46.2945155,59.9778212 41.2235699,61.4171743 35.5395922,61.4171743 C35.4545771,61.4171743 35.3696991,61.4168523 35.2849622,61.4162104 C39.404008,60.5235193 42.7961717,58.6691298 44.7630507,56.286533 C37.8379411,53.5817651 33.2082892,48.669413 33.2082892,43.0581634 C33.2082892,34.5281905 43.9068281,27.6132812 57.1041446,27.6132812 C70.3014611,27.6132812 81,34.5281905 81,43.0581634 C81,47.3231498 78.3253653,51.1843704 74.001066,53.9793443 Z M64,0 L118.5596,32 L118.5596,96 L64,128 L9.44039956,96 L9.44039956,32 L64,0 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/plugin-generic-plugin": {
"title": "$:/core/images/plugin-generic-plugin",
"tags": "$:/tags/Image",
"text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M40.3972881,76.4456988 L40.3972881,95.3404069 L54.5170166,95.3404069 L54.5170166,95.3404069 C54.5165526,95.3385183 54.516089,95.3366295 54.515626,95.3347404 C54.6093153,95.3385061 54.7034848,95.3404069 54.7980982,95.3404069 C58.6157051,95.3404069 61.710487,92.245625 61.710487,88.4280181 C61.710487,86.6197822 61.01617,84.9737128 59.8795929,83.7418666 L59.8795929,83.7418666 C59.8949905,83.7341665 59.9104102,83.7265043 59.925852,83.7188798 C58.8840576,82.5086663 58.2542926,80.9336277 58.2542926,79.2114996 C58.2542926,75.3938927 61.3490745,72.2991108 65.1666814,72.2991108 C68.9842884,72.2991108 72.0790703,75.3938927 72.0790703,79.2114996 C72.0790703,81.1954221 71.2432806,82.9841354 69.9045961,84.2447446 L69.9045961,84.2447446 C69.9333407,84.2629251 69.9619885,84.281245 69.9905383,84.2997032 L69.9905383,84.2997032 C69.1314315,85.4516923 68.6228758,86.8804654 68.6228758,88.4280181 C68.6228758,91.8584969 71.1218232,94.7053153 74.3986526,95.2474079 C74.3913315,95.2784624 74.3838688,95.3094624 74.3762652,95.3404069 L95.6963988,95.3404069 L95.6963988,75.5678578 L95.6963988,75.5678578 C95.6466539,75.5808558 95.5967614,75.5934886 95.5467242,75.6057531 C95.5504899,75.5120637 95.5523907,75.4178943 95.5523907,75.3232809 C95.5523907,71.505674 92.4576088,68.4108921 88.6400019,68.4108921 C86.831766,68.4108921 85.1856966,69.105209 83.9538504,70.2417862 L83.9538504,70.2417862 C83.9461503,70.2263886 83.938488,70.2109688 83.9308636,70.1955271 C82.7206501,71.2373215 81.1456115,71.8670865 79.4234834,71.8670865 C75.6058765,71.8670865 72.5110946,68.7723046 72.5110946,64.9546976 C72.5110946,61.1370907 75.6058765,58.0423088 79.4234834,58.0423088 C81.4074059,58.0423088 83.1961192,58.8780985 84.4567284,60.2167829 L84.4567284,60.2167829 C84.4749089,60.1880383 84.4932288,60.1593906 84.511687,60.1308407 L84.511687,60.1308407 C85.6636761,60.9899475 87.0924492,61.4985032 88.6400019,61.4985032 C92.0704807,61.4985032 94.9172991,58.9995558 95.4593917,55.7227265 C95.538755,55.7414363 95.6177614,55.761071 95.6963988,55.7816184 L95.6963988,40.0412962 L74.3762652,40.0412962 L74.3762652,40.0412962 C74.3838688,40.0103516 74.3913315,39.9793517 74.3986526,39.9482971 L74.3986526,39.9482971 C71.1218232,39.4062046 68.6228758,36.5593862 68.6228758,33.1289073 C68.6228758,31.5813547 69.1314315,30.1525815 69.9905383,29.0005925 C69.9619885,28.9821342 69.9333407,28.9638143 69.9045961,28.9456339 C71.2432806,27.6850247 72.0790703,25.8963113 72.0790703,23.9123888 C72.0790703,20.0947819 68.9842884,17 65.1666814,17 C61.3490745,17 58.2542926,20.0947819 58.2542926,23.9123888 C58.2542926,25.6345169 58.8840576,27.2095556 59.925852,28.419769 L59.925852,28.419769 C59.9104102,28.4273935 59.8949905,28.4350558 59.8795929,28.4427558 C61.01617,29.674602 61.710487,31.3206715 61.710487,33.1289073 C61.710487,36.9465143 58.6157051,40.0412962 54.7980982,40.0412962 C54.7034848,40.0412962 54.6093153,40.0393953 54.515626,40.0356296 L54.515626,40.0356296 C54.516089,40.0375187 54.5165526,40.0394075 54.5170166,40.0412962 L40.3972881,40.0412962 L40.3972881,52.887664 L40.3972881,52.887664 C40.4916889,53.3430132 40.5412962,53.8147625 40.5412962,54.2980982 C40.5412962,58.1157051 37.4465143,61.210487 33.6289073,61.210487 C32.0813547,61.210487 30.6525815,60.7019313 29.5005925,59.8428245 C29.4821342,59.8713744 29.4638143,59.9000221 29.4456339,59.9287667 C28.1850247,58.5900823 26.3963113,57.7542926 24.4123888,57.7542926 C20.5947819,57.7542926 17.5,60.8490745 17.5,64.6666814 C17.5,68.4842884 20.5947819,71.5790703 24.4123888,71.5790703 C26.134517,71.5790703 27.7095556,70.9493053 28.919769,69.9075109 L28.919769,69.9075109 C28.9273935,69.9229526 28.9350558,69.9383724 28.9427558,69.95377 C30.174602,68.8171928 31.8206715,68.1228758 33.6289073,68.1228758 C37.4465143,68.1228758 40.5412962,71.2176578 40.5412962,75.0352647 C40.5412962,75.5186004 40.4916889,75.9903496 40.3972881,76.4456988 Z M64,0 L118.5596,32 L118.5596,96 L64,128 L9.44039956,96 L9.44039956,32 L64,0 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/plugin-generic-theme": {
"title": "$:/core/images/plugin-generic-theme",
"tags": "$:/tags/Image",
"text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M29.4078519,91.4716406 L51.4693474,69.4101451 L51.4646675,69.4054652 C50.5969502,68.5377479 50.5929779,67.1348725 51.4693474,66.2585029 C52.3396494,65.3882009 53.7499654,65.3874786 54.6163097,66.2538229 L64.0805963,75.7181095 C64.9483136,76.5858268 64.9522859,77.9887022 64.0759163,78.8650718 C63.2056143,79.7353737 61.7952984,79.736096 60.9289541,78.8697517 L60.9242741,78.8650718 L60.9242741,78.8650718 L38.8627786,100.926567 C36.2518727,103.537473 32.0187578,103.537473 29.4078519,100.926567 C26.796946,98.3156614 26.796946,94.0825465 29.4078519,91.4716406 Z M60.8017407,66.3810363 C58.3659178,63.6765806 56.3370667,61.2899536 54.9851735,59.5123615 C48.1295381,50.4979488 44.671561,55.2444054 40.7586738,59.5123614 C36.8457866,63.7803174 41.789473,67.2384487 38.0759896,70.2532832 C34.3625062,73.2681177 34.5917646,74.3131575 28.3243876,68.7977024 C22.0570105,63.2822473 21.6235306,61.7636888 24.5005999,58.6166112 C27.3776691,55.4695337 29.7823103,60.4247912 35.6595047,54.8320442 C41.5366991,49.2392972 36.5996215,44.2825646 36.5996215,44.2825646 C36.5996215,44.2825646 48.8365511,19.267683 65.1880231,21.1152173 C81.5394952,22.9627517 59.0022276,18.7228947 53.3962199,38.3410355 C50.9960082,46.7405407 53.8429162,44.7613399 58.3941742,48.3090467 C59.7875202,49.3951602 64.4244828,52.7100463 70.1884353,56.9943417 L90.8648751,36.3179019 L92.4795866,31.5515482 L100.319802,26.8629752 L103.471444,30.0146174 L98.782871,37.8548326 L94.0165173,39.4695441 L73.7934912,59.6925702 C86.4558549,69.2403631 102.104532,81.8392557 102.104532,86.4016913 C102.104533,93.6189834 99.0337832,97.9277545 92.5695848,95.5655717 C87.8765989,93.8506351 73.8015497,80.3744087 63.8173444,69.668717 L60.9242741,72.5617873 L57.7726319,69.4101451 L60.8017407,66.3810363 L60.8017407,66.3810363 Z M63.9533761,1.42108547e-13 L118.512977,32 L118.512977,96 L63.9533761,128 L9.39377563,96 L9.39377563,32 L63.9533761,1.42108547e-13 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/preview-closed": {
"title": "$:/core/images/preview-closed",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-preview-closed tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M0.0881363238,64 C-0.210292223,65.8846266 0.249135869,67.8634737 1.4664206,69.4579969 C16.2465319,88.8184886 39.1692554,100.414336 64,100.414336 C88.8307446,100.414336 111.753468,88.8184886 126.533579,69.4579969 C127.750864,67.8634737 128.210292,65.8846266 127.911864,64 C110.582357,78.4158332 88.3036732,87.0858436 64,87.0858436 C39.6963268,87.0858436 17.4176431,78.4158332 0.0881363238,64 Z\"></path>\n <rect x=\"62\" y=\"96\" width=\"4\" height=\"16\" rx=\"4\"></rect>\n <rect transform=\"translate(80.000000, 101.000000) rotate(-5.000000) translate(-80.000000, -101.000000) \" x=\"78\" y=\"93\" width=\"4\" height=\"16\" rx=\"4\"></rect>\n <rect transform=\"translate(48.000000, 101.000000) rotate(-355.000000) translate(-48.000000, -101.000000) \" x=\"46\" y=\"93\" width=\"4\" height=\"16\" rx=\"4\"></rect>\n <rect transform=\"translate(32.000000, 96.000000) rotate(-350.000000) translate(-32.000000, -96.000000) \" x=\"30\" y=\"88\" width=\"4\" height=\"16\" rx=\"4\"></rect>\n <rect transform=\"translate(96.000000, 96.000000) rotate(-10.000000) translate(-96.000000, -96.000000) \" x=\"94\" y=\"88\" width=\"4\" height=\"16\" rx=\"4\"></rect>\n <rect transform=\"translate(112.000000, 88.000000) rotate(-20.000000) translate(-112.000000, -88.000000) \" x=\"110\" y=\"80\" width=\"4\" height=\"16\" rx=\"4\"></rect>\n <rect transform=\"translate(16.000000, 88.000000) rotate(-340.000000) translate(-16.000000, -88.000000) \" x=\"14\" y=\"80\" width=\"4\" height=\"16\" rx=\"4\"></rect>\n </g>\n</svg>"
},
"$:/core/images/preview-open": {
"title": "$:/core/images/preview-open",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-preview-open tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M64.1099282,99.5876785 C39.2791836,99.5876785 16.3564602,87.9918313 1.57634884,68.6313396 C-0.378878622,66.070184 -0.378878622,62.5174945 1.57634884,59.9563389 C16.3564602,40.5958472 39.2791836,29 64.1099282,29 C88.9406729,29 111.863396,40.5958472 126.643508,59.9563389 C128.598735,62.5174945 128.598735,66.070184 126.643508,68.6313396 C111.863396,87.9918313 88.9406729,99.5876785 64.1099282,99.5876785 Z M110.213805,67.5808331 C111.654168,66.0569335 111.654168,63.9430665 110.213805,62.4191669 C99.3257042,50.8995835 82.4391647,44 64.1470385,44 C45.8549124,44 28.9683729,50.8995835 18.0802717,62.4191669 C16.6399094,63.9430665 16.6399094,66.0569335 18.0802717,67.5808331 C28.9683729,79.1004165 45.8549124,86 64.1470385,86 C82.4391647,86 99.3257042,79.1004165 110.213805,67.5808331 Z\"></path>\n <path d=\"M63.5,88 C76.4786916,88 87,77.4786916 87,64.5 C87,51.5213084 76.4786916,41 63.5,41 C50.5213084,41 40,51.5213084 40,64.5 C40,77.4786916 50.5213084,88 63.5,88 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/print-button": {
"title": "$:/core/images/print-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-print-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M112,71 L112,30.5 L111.96811,30.5 L111.96811,30.5 C111.932942,28.4998414 111.151676,26.510538 109.625176,24.9840387 L86.9982489,2.35711116 C85.3482153,0.707077645 83.1589869,-0.071534047 81,0.0201838424 L81,0 L23.9992458,0 C19.5808867,0 16,3.58213437 16,8.00092105 L16,71 L24,71 L24,8 L81,8 L81,22.4996539 C81,26.9216269 84.5818769,30.5 89.0003461,30.5 L104,30.5 L104,71 L112,71 Z\"></path>\n <rect x=\"32\" y=\"36\" width=\"64\" height=\"8\" rx=\"4\"></rect>\n <rect x=\"32\" y=\"52\" width=\"64\" height=\"8\" rx=\"4\"></rect>\n <rect x=\"32\" y=\"20\" width=\"40\" height=\"8\" rx=\"4\"></rect>\n <path d=\"M0,80.0054195 C0,71.1658704 7.15611005,64 16.0008841,64 L111.999116,64 C120.83616,64 128,71.1553215 128,80.0054195 L128,111.99458 C128,120.83413 120.84389,128 111.999116,128 L16.0008841,128 C7.16383982,128 0,120.844679 0,111.99458 L0,80.0054195 Z M104,96 C108.418278,96 112,92.418278 112,88 C112,83.581722 108.418278,80 104,80 C99.581722,80 96,83.581722 96,88 C96,92.418278 99.581722,96 104,96 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/quote": {
"title": "$:/core/images/quote",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-quote tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M51.2188077,117.712501 L51.2188077,62.1993386 L27.4274524,62.1993386 C27.4274524,53.3075754 29.1096526,45.797753 32.4741035,39.669646 C35.8385544,33.541539 42.0867267,28.9154883 51.2188077,25.7913554 L51.2188077,2 C43.7689521,2.96127169 36.8599155,5.18417913 30.4914905,8.668789 C24.1230656,12.1533989 18.6559149,16.5391352 14.0898743,21.8261295 C9.52383382,27.1131238 5.97919764,33.2411389 3.45585945,40.2103586 C0.932521268,47.1795784 -0.208971741,54.6293222 0.0313461819,62.5598136 L0.0313461819,117.712501 L51.2188077,117.712501 Z M128,117.712501 L128,62.1993386 L104.208645,62.1993386 C104.208645,53.3075754 105.890845,45.797753 109.255296,39.669646 C112.619747,33.541539 118.867919,28.9154883 128,25.7913554 L128,2 C120.550144,2.96127169 113.641108,5.18417913 107.272683,8.668789 C100.904258,12.1533989 95.4371072,16.5391352 90.8710666,21.8261295 C86.3050261,27.1131238 82.7603899,33.2411389 80.2370517,40.2103586 C77.7137136,47.1795784 76.5722206,54.6293222 76.8125385,62.5598136 L76.8125385,117.712501 L128,117.712501 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/refresh-button": {
"title": "$:/core/images/refresh-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-refresh-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M106.369002,39.4325143 C116.529932,60.3119371 112.939592,86.1974934 95.5979797,103.539105 C73.7286194,125.408466 38.2713806,125.408466 16.4020203,103.539105 C-5.46734008,81.6697449 -5.46734008,46.2125061 16.4020203,24.3431458 C19.5262146,21.2189514 24.5915344,21.2189514 27.7157288,24.3431458 C30.8399231,27.4673401 30.8399231,32.5326599 27.7157288,35.6568542 C12.0947571,51.2778259 12.0947571,76.6044251 27.7157288,92.2253967 C43.3367004,107.846368 68.6632996,107.846368 84.2842712,92.2253967 C97.71993,78.7897379 99.5995262,58.1740623 89.9230597,42.729491 L83.4844861,54.9932839 C81.4307001,58.9052072 76.5945372,60.4115251 72.682614,58.3577391 C68.7706907,56.3039532 67.2643728,51.4677903 69.3181587,47.555867 L84.4354914,18.7613158 C86.4966389,14.8353707 91.3577499,13.3347805 95.273202,15.415792 L124.145886,30.7612457 C128.047354,32.8348248 129.52915,37.6785572 127.455571,41.5800249 C125.381992,45.4814927 120.53826,46.9632892 116.636792,44.8897102 L106.369002,39.4325143 Z M98.1470904,27.0648707 C97.9798954,26.8741582 97.811187,26.6843098 97.6409651,26.4953413 L98.6018187,26.1987327 L98.1470904,27.0648707 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/right-arrow": {
"title": "$:/core/images/right-arrow",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-right-arrow tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <path d=\"M80.3563798,109.353315 C78.9238993,110.786918 76.9450203,111.675144 74.7592239,111.675144 L-4.40893546,111.675144 C-8.77412698,111.675144 -12.3248558,108.130732 -12.3248558,103.758478 C-12.3248558,99.3951199 -8.78077754,95.8418109 -4.40893546,95.8418109 L66.8418109,95.8418109 L66.8418109,24.5910645 C66.8418109,20.225873 70.3862233,16.6751442 74.7584775,16.6751442 C79.1218352,16.6751442 82.6751442,20.2192225 82.6751442,24.5910645 L82.6751442,103.759224 C82.6751442,105.941695 81.7891419,107.920575 80.3566508,109.353886 Z\" transform=\"translate(35.175144, 64.175144) rotate(-45.000000) translate(-35.175144, -64.175144) \"></path>\n</svg>"
},
"$:/core/images/rotate-left": {
"title": "$:/core/images/rotate-left",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-rotate-left tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"32\" height=\"80\" rx=\"8\"/><rect x=\"48\" y=\"96\" width=\"80\" height=\"32\" rx=\"8\"/><path d=\"M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 0 1-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 1 1-5.657 5.657L49.172 43.142a4 4 0 0 1 0-5.657l11.313-11.313a4 4 0 1 1 5.657 5.656l-4.821 4.822z\"/></g></svg>"
},
"$:/core/images/save-button": {
"title": "$:/core/images/save-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-save-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M120.78304,34.329058 C125.424287,43.1924006 128.049406,53.2778608 128.049406,63.9764502 C128.049406,99.3226742 99.3956295,127.97645 64.0494055,127.97645 C28.7031816,127.97645 0.0494055385,99.3226742 0.0494055385,63.9764502 C0.0494055385,28.6302262 28.7031816,-0.0235498012 64.0494055,-0.0235498012 C82.8568763,-0.0235498012 99.769563,8.08898558 111.479045,21.0056358 L114.159581,18.3250998 C117.289194,15.1954866 122.356036,15.1939641 125.480231,18.3181584 C128.598068,21.4359957 128.601317,26.5107804 125.473289,29.6388083 L120.78304,34.329058 Z M108.72451,46.3875877 C110.870571,51.8341374 112.049406,57.767628 112.049406,63.9764502 C112.049406,90.4861182 90.5590735,111.97645 64.0494055,111.97645 C37.5397375,111.97645 16.0494055,90.4861182 16.0494055,63.9764502 C16.0494055,37.4667822 37.5397375,15.9764502 64.0494055,15.9764502 C78.438886,15.9764502 91.3495036,22.308215 100.147097,32.3375836 L58.9411255,73.5435552 L41.975581,56.5780107 C38.8486152,53.4510448 33.7746915,53.4551552 30.6568542,56.5729924 C27.5326599,59.6971868 27.5372202,64.7670668 30.6618725,67.8917192 L53.279253,90.5090997 C54.8435723,92.073419 56.8951519,92.8541315 58.9380216,92.8558261 C60.987971,92.8559239 63.0389578,92.0731398 64.6049211,90.5071765 L108.72451,46.3875877 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/size": {
"title": "$:/core/images/size",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-size tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <path d=\"M92.3431458,26 L83.1715729,35.1715729 C81.6094757,36.73367 81.6094757,39.26633 83.1715729,40.8284271 C84.73367,42.3905243 87.26633,42.3905243 88.8284271,40.8284271 L104.828427,24.8284271 C106.390524,23.26633 106.390524,20.73367 104.828427,19.1715729 L88.8284271,3.17157288 C87.26633,1.60947571 84.73367,1.60947571 83.1715729,3.17157288 C81.6094757,4.73367004 81.6094757,7.26632996 83.1715729,8.82842712 L92.3431457,18 L22,18 C19.790861,18 18,19.790861 18,22 L18,92.3431458 L8.82842712,83.1715729 C7.26632996,81.6094757 4.73367004,81.6094757 3.17157288,83.1715729 C1.60947571,84.73367 1.60947571,87.26633 3.17157288,88.8284271 L19.1715729,104.828427 C20.73367,106.390524 23.26633,106.390524 24.8284271,104.828427 L40.8284271,88.8284271 C42.3905243,87.26633 42.3905243,84.73367 40.8284271,83.1715729 C39.26633,81.6094757 36.73367,81.6094757 35.1715729,83.1715729 L26,92.3431458 L26,22 L22,26 L92.3431458,26 L92.3431458,26 Z M112,52 L112,116 L116,112 L52,112 C49.790861,112 48,113.790861 48,116 C48,118.209139 49.790861,120 52,120 L116,120 C118.209139,120 120,118.209139 120,116 L120,52 C120,49.790861 118.209139,48 116,48 C113.790861,48 112,49.790861 112,52 L112,52 Z\"></path>\n</svg>"
},
"$:/core/images/spiral": {
"title": "$:/core/images/spiral",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-spiral tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"nonzero\">\n <path d=\"M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074.14-2.64-1.89-4.89-4.52-5.03-2.64-.14-4.89 1.88-5.03 4.52-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01-.02-.015-.054-.045-.094-.088-.06-.064-.12-.145-.17-.244-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z\"></path>\n </g>\n</svg>"
},
"$:/core/images/stamp": {
"title": "$:/core/images/stamp",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-stamp tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M49.7334301,64 L16.0098166,64 C11.5838751,64 8,67.5829053 8,72.002643 L8,74.4986785 L8,97 L120,97 L120,74.4986785 L120,72.002643 C120,67.5737547 116.413883,64 111.990183,64 L78.2665699,64 C76.502049,60.7519149 75.5,57.0311962 75.5,53.0769231 C75.5,46.6017951 78.1869052,40.7529228 82.5087769,36.5800577 C85.3313113,32.7688808 87,28.0549983 87,22.952183 C87,10.2760423 76.7025492,0 64,0 C51.2974508,0 41,10.2760423 41,22.952183 C41,28.0549983 42.6686887,32.7688808 45.4912231,36.5800577 C49.8130948,40.7529228 52.5,46.6017951 52.5,53.0769231 C52.5,57.0311962 51.497951,60.7519149 49.7334301,64 Z M8,104 L120,104 L120,112 L8,112 L8,104 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/star-filled": {
"title": "$:/core/images/star-filled",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-star-filled tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"nonzero\">\n <path d=\"M61.8361286,96.8228569 L99.1627704,124.110219 C101.883827,126.099427 105.541968,123.420868 104.505636,120.198072 L90.2895569,75.9887263 L89.0292911,79.8977279 L126.314504,52.5528988 C129.032541,50.5595011 127.635256,46.2255025 124.273711,46.2229134 L78.1610486,46.1873965 L81.4604673,48.6032923 L67.1773543,4.41589688 C66.1361365,1.19470104 61.6144265,1.19470104 60.5732087,4.41589688 L46.2900957,48.6032923 L49.5895144,46.1873965 L3.47685231,46.2229134 C0.115307373,46.2255025 -1.28197785,50.5595011 1.43605908,52.5528988 L38.7212719,79.8977279 L37.4610061,75.9887263 L23.2449266,120.198072 C22.2085954,123.420868 25.8667356,126.099427 28.5877926,124.110219 L65.9144344,96.8228569 L61.8361286,96.8228569 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/storyview-classic": {
"title": "$:/core/images/storyview-classic",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-storyview-classic tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M8.00697327,0 C3.58484404,0 0,3.59075293 0,8.00697327 L0,119.993027 C0,124.415156 3.59075293,128 8.00697327,128 L119.993027,128 C124.415156,128 128,124.409247 128,119.993027 L128,8.00697327 C128,3.58484404 124.409247,0 119.993027,0 L8.00697327,0 L8.00697327,0 Z M23.9992458,16 C19.5813843,16 16,19.5776607 16,23.9924054 L16,40.0075946 C16,44.4216782 19.5881049,48 23.9992458,48 L104.000754,48 C108.418616,48 112,44.4223393 112,40.0075946 L112,23.9924054 C112,19.5783218 108.411895,16 104.000754,16 L23.9992458,16 L23.9992458,16 Z M23.9992458,64 C19.5813843,64 16,67.5907123 16,72 C16,76.418278 19.5881049,80 23.9992458,80 L104.000754,80 C108.418616,80 112,76.4092877 112,72 C112,67.581722 108.411895,64 104.000754,64 L23.9992458,64 L23.9992458,64 Z M23.9992458,96 C19.5813843,96 16,99.5907123 16,104 C16,108.418278 19.5881049,112 23.9992458,112 L104.000754,112 C108.418616,112 112,108.409288 112,104 C112,99.581722 108.411895,96 104.000754,96 L23.9992458,96 L23.9992458,96 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/storyview-pop": {
"title": "$:/core/images/storyview-pop",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-storyview-pop tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M8.00697327,0 C3.58484404,0 0,3.59075293 0,8.00697327 L0,119.993027 C0,124.415156 3.59075293,128 8.00697327,128 L119.993027,128 C124.415156,128 128,124.409247 128,119.993027 L128,8.00697327 C128,3.58484404 124.409247,0 119.993027,0 L8.00697327,0 L8.00697327,0 Z M23.9992458,16 C19.5813843,16 16,19.5776607 16,23.9924054 L16,40.0075946 C16,44.4216782 19.5881049,48 23.9992458,48 L104.000754,48 C108.418616,48 112,44.4223393 112,40.0075946 L112,23.9924054 C112,19.5783218 108.411895,16 104.000754,16 L23.9992458,16 L23.9992458,16 Z M16.0098166,56 C11.586117,56 8,59.5776607 8,63.9924054 L8,80.0075946 C8,84.4216782 11.5838751,88 16.0098166,88 L111.990183,88 C116.413883,88 120,84.4223393 120,80.0075946 L120,63.9924054 C120,59.5783218 116.416125,56 111.990183,56 L16.0098166,56 L16.0098166,56 Z M23.9992458,96 C19.5813843,96 16,99.5907123 16,104 C16,108.418278 19.5881049,112 23.9992458,112 L104.000754,112 C108.418616,112 112,108.409288 112,104 C112,99.581722 108.411895,96 104.000754,96 L23.9992458,96 L23.9992458,96 Z M23.9992458,64 C19.5813843,64 16,67.5907123 16,72 C16,76.418278 19.5881049,80 23.9992458,80 L104.000754,80 C108.418616,80 112,76.4092877 112,72 C112,67.581722 108.411895,64 104.000754,64 L23.9992458,64 L23.9992458,64 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/storyview-zoomin": {
"title": "$:/core/images/storyview-zoomin",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-storyview-zoomin tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M8.00697327,0 C3.58484404,0 0,3.59075293 0,8.00697327 L0,119.993027 C0,124.415156 3.59075293,128 8.00697327,128 L119.993027,128 C124.415156,128 128,124.409247 128,119.993027 L128,8.00697327 C128,3.58484404 124.409247,0 119.993027,0 L8.00697327,0 L8.00697327,0 Z M23.9992458,16 C19.5813843,16 16,19.578055 16,24.0085154 L16,71.9914846 C16,76.4144655 19.5881049,80 23.9992458,80 L104.000754,80 C108.418616,80 112,76.421945 112,71.9914846 L112,24.0085154 C112,19.5855345 108.411895,16 104.000754,16 L23.9992458,16 L23.9992458,16 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/strikethrough": {
"title": "$:/core/images/strikethrough",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-strikethrough tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M92.793842,38.7255689 L108.215529,38.7255689 C107.987058,31.985687 106.70193,26.1883331 104.360107,21.3333333 C102.018284,16.4783336 98.8197436,12.4516001 94.7643909,9.25301205 C90.7090382,6.05442399 85.9969032,3.71263572 80.6278447,2.22757697 C75.2587862,0.742518233 69.4328739,0 63.1499331,0 C57.552404,0 52.0977508,0.713959839 46.7858099,2.14190094 C41.473869,3.56984203 36.7331757,5.74027995 32.5635877,8.65327979 C28.3939997,11.5662796 25.0526676,15.2788708 22.5394913,19.7911647 C20.026315,24.3034585 18.7697456,29.6438781 18.7697456,35.8125837 C18.7697456,41.4101128 19.883523,46.0651309 22.1111111,49.7777778 C24.3386992,53.4904246 27.3087722,56.5176144 31.021419,58.8594378 C34.7340659,61.2012612 38.9321497,63.0861151 43.6157965,64.5140562 C48.2994433,65.9419973 53.068695,67.1985666 57.9236948,68.2838019 C62.7786945,69.3690371 67.5479462,70.4256977 72.231593,71.4538153 C76.9152398,72.4819329 81.1133237,73.8241773 84.8259705,75.480589 C88.5386174,77.1370007 91.5086903,79.2788802 93.7362784,81.9062918 C95.9638666,84.5337035 97.0776439,87.9607107 97.0776439,92.1874163 C97.0776439,96.6425926 96.1637753,100.298067 94.3360107,103.153949 C92.5082461,106.009831 90.109341,108.265944 87.1392236,109.922356 C84.1691061,111.578768 80.827774,112.749662 77.1151272,113.435074 C73.4024803,114.120485 69.7184476,114.463186 66.0629183,114.463186 C61.4935068,114.463186 57.0383974,113.892018 52.6974565,112.749665 C48.3565156,111.607312 44.5582492,109.836692 41.3025435,107.437751 C38.0468378,105.03881 35.4194656,101.983062 33.4203481,98.270415 C31.4212305,94.5577681 30.4216867,90.1312171 30.4216867,84.9906292 L15,84.9906292 C15,92.4159229 16.3422445,98.8415614 19.0267738,104.267738 C21.711303,109.693914 25.3667774,114.149023 29.9933066,117.633199 C34.6198357,121.117376 39.9888137,123.71619 46.1004016,125.429719 C52.2119895,127.143248 58.6947448,128 65.5488621,128 C71.1463912,128 76.7723948,127.343157 82.4270415,126.029451 C88.0816882,124.715745 93.1936407,122.602424 97.7630522,119.689424 C102.332464,116.776425 106.073613,113.006717 108.986613,108.380187 C111.899613,103.753658 113.356091,98.1847715 113.356091,91.6733601 C113.356091,85.6188899 112.242314,80.5926126 110.014726,76.5943775 C107.787137,72.5961424 104.817065,69.2833688 101.104418,66.6559572 C97.3917708,64.0285455 93.193687,61.9437828 88.5100402,60.4016064 C83.8263934,58.85943 79.0571416,57.5171855 74.2021419,56.3748327 C69.3471422,55.2324798 64.5778904,54.1758192 59.8942436,53.2048193 C55.2105968,52.2338193 51.012513,51.0058084 47.2998661,49.5207497 C43.5872193,48.0356909 40.6171463,46.1222786 38.3895582,43.7804552 C36.1619701,41.4386318 35.0481928,38.3828836 35.0481928,34.6131191 C35.0481928,30.6148841 35.8192694,27.273552 37.3614458,24.5890228 C38.9036222,21.9044935 40.9598265,19.762614 43.5301205,18.1633199 C46.1004145,16.5640259 49.041929,15.4216902 52.3547523,14.7362784 C55.6675757,14.0508667 59.0374661,13.708166 62.4645248,13.708166 C70.9179361,13.708166 77.8576257,15.6786952 83.2838019,19.6198126 C88.709978,23.56093 91.8799597,29.9294518 92.793842,38.7255689 L92.793842,38.7255689 Z\"></path>\n <rect x=\"5\" y=\"54\" width=\"118\" height=\"16\"></rect>\n </g>\n</svg>"
},
"$:/core/images/subscript": {
"title": "$:/core/images/subscript",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-subscript tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M2.27170276,16 L22.1825093,16 L43.8305003,49.6746527 L66.4138983,16 L85.1220387,16 L53.5854592,61.9685735 L87.3937414,111.411516 L67.0820462,111.411516 L43.295982,74.9306422 L19.1090291,111.411516 L0,111.411516 L33.8082822,61.9685735 L2.27170276,16 Z M127.910914,128.411516 L85.3276227,128.411516 C85.3870139,123.24448 86.6342108,118.730815 89.0692508,114.870386 C91.5042907,111.009956 94.8301491,107.654403 99.0469256,104.803624 C101.066227,103.318844 103.174584,101.878629 105.372059,100.482935 C107.569534,99.0872413 109.588805,97.5876355 111.429933,95.9840726 C113.271061,94.3805097 114.785514,92.6433426 115.973338,90.7725192 C117.161163,88.9016958 117.784761,86.7487964 117.844152,84.3137564 C117.844152,83.1853233 117.710524,81.9826691 117.443264,80.7057579 C117.176003,79.4288467 116.656338,78.2410402 115.884252,77.1423026 C115.112166,76.0435651 114.04314,75.123015 112.677142,74.3806248 C111.311144,73.6382345 109.529434,73.267045 107.331959,73.267045 C105.312658,73.267045 103.634881,73.6679297 102.298579,74.4697112 C100.962276,75.2714926 99.8932503,76.3702137 99.0914688,77.7659073 C98.2896874,79.161601 97.6957841,80.8096826 97.3097412,82.7102016 C96.9236982,84.6107206 96.7009845,86.6596869 96.6415933,88.857162 L86.4857457,88.857162 C86.4857457,85.4124713 86.9460207,82.2202411 87.8665846,79.2803758 C88.7871485,76.3405105 90.1679736,73.801574 92.0091014,71.6634901 C93.8502292,69.5254062 96.092214,67.8476295 98.7351233,66.6301095 C101.378033,65.4125895 104.451482,64.8038386 107.955564,64.8038386 C111.756602,64.8038386 114.933984,65.4274371 117.487807,66.6746527 C120.041629,67.9218683 122.105443,69.4957119 123.67931,71.3962309 C125.253178,73.2967499 126.366746,75.3605638 127.02005,77.5877345 C127.673353,79.8149053 128,81.9381095 128,83.9574109 C128,86.4518421 127.613963,88.7086746 126.841877,90.727976 C126.069791,92.7472774 125.03046,94.6032252 123.723854,96.2958749 C122.417247,97.9885247 120.932489,99.5475208 119.269534,100.97291 C117.60658,102.398299 115.884261,103.734582 114.102524,104.981797 C112.320788,106.229013 110.539078,107.416819 108.757341,108.545253 C106.975605,109.673686 105.327523,110.802102 103.813047,111.930535 C102.298571,113.058968 100.977136,114.231927 99.8487031,115.449447 C98.7202699,116.666967 97.9481956,117.958707 97.5324571,119.324705 L127.910914,119.324705 L127.910914,128.411516 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/superscript": {
"title": "$:/core/images/superscript",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-superscript tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M2.27170276,16 L22.1825093,16 L43.8305003,49.6746527 L66.4138983,16 L85.1220387,16 L53.5854592,61.9685735 L87.3937414,111.411516 L67.0820462,111.411516 L43.295982,74.9306422 L19.1090291,111.411516 L0,111.411516 L33.8082822,61.9685735 L2.27170276,16 Z M127.910914,63.4115159 L85.3276227,63.4115159 C85.3870139,58.2444799 86.6342108,53.7308149 89.0692508,49.8703857 C91.5042907,46.0099565 94.8301491,42.654403 99.0469256,39.8036245 C101.066227,38.318844 103.174584,36.8786285 105.372059,35.4829349 C107.569534,34.0872413 109.588805,32.5876355 111.429933,30.9840726 C113.271061,29.3805097 114.785514,27.6433426 115.973338,25.7725192 C117.161163,23.9016958 117.784761,21.7487964 117.844152,19.3137564 C117.844152,18.1853233 117.710524,16.9826691 117.443264,15.7057579 C117.176003,14.4288467 116.656338,13.2410402 115.884252,12.1423026 C115.112166,11.0435651 114.04314,10.123015 112.677142,9.38062477 C111.311144,8.63823453 109.529434,8.26704499 107.331959,8.26704499 C105.312658,8.26704499 103.634881,8.6679297 102.298579,9.46971115 C100.962276,10.2714926 99.8932503,11.3702137 99.0914688,12.7659073 C98.2896874,14.161601 97.6957841,15.8096826 97.3097412,17.7102016 C96.9236982,19.6107206 96.7009845,21.6596869 96.6415933,23.857162 L86.4857457,23.857162 C86.4857457,20.4124713 86.9460207,17.2202411 87.8665846,14.2803758 C88.7871485,11.3405105 90.1679736,8.80157397 92.0091014,6.6634901 C93.8502292,4.52540622 96.092214,2.84762946 98.7351233,1.63010947 C101.378033,0.412589489 104.451482,-0.196161372 107.955564,-0.196161372 C111.756602,-0.196161372 114.933984,0.427437071 117.487807,1.67465266 C120.041629,2.92186826 122.105443,4.49571195 123.67931,6.39623095 C125.253178,8.29674995 126.366746,10.3605638 127.02005,12.5877345 C127.673353,14.8149053 128,16.9381095 128,18.9574109 C128,21.4518421 127.613963,23.7086746 126.841877,25.727976 C126.069791,27.7472774 125.03046,29.6032252 123.723854,31.2958749 C122.417247,32.9885247 120.932489,34.5475208 119.269534,35.97291 C117.60658,37.3982993 115.884261,38.7345816 114.102524,39.9817972 C112.320788,41.2290128 110.539078,42.4168194 108.757341,43.5452525 C106.975605,44.6736857 105.327523,45.8021019 103.813047,46.9305351 C102.298571,48.0589682 100.977136,49.2319272 99.8487031,50.4494472 C98.7202699,51.6669672 97.9481956,52.9587068 97.5324571,54.3247048 L127.910914,54.3247048 L127.910914,63.4115159 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/tag-button": {
"title": "$:/core/images/tag-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-tag-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M18.1643182,47.6600756 L18.1677196,51.7651887 C18.1708869,55.5878829 20.3581578,60.8623899 23.0531352,63.5573673 L84.9021823,125.406414 C87.5996731,128.103905 91.971139,128.096834 94.6717387,125.396234 L125.766905,94.3010679 C128.473612,91.5943612 128.472063,87.2264889 125.777085,84.5315115 L63.9280381,22.6824644 C61.2305472,19.9849735 55.9517395,17.801995 52.1318769,17.8010313 L25.0560441,17.7942007 C21.2311475,17.7932358 18.1421354,20.8872832 18.1452985,24.7049463 L18.1535504,34.6641936 C18.2481119,34.6754562 18.3439134,34.6864294 18.4409623,34.6971263 C22.1702157,35.1081705 26.9295004,34.6530132 31.806204,33.5444844 C32.1342781,33.0700515 32.5094815,32.6184036 32.9318197,32.1960654 C35.6385117,29.4893734 39.5490441,28.718649 42.94592,29.8824694 C43.0432142,29.8394357 43.1402334,29.7961748 43.2369683,29.7526887 L43.3646982,30.0368244 C44.566601,30.5115916 45.6933052,31.2351533 46.6655958,32.2074439 C50.4612154,36.0030635 50.4663097,42.1518845 46.6769742,45.94122 C43.0594074,49.5587868 37.2914155,49.7181264 33.4734256,46.422636 C28.1082519,47.5454734 22.7987486,48.0186448 18.1643182,47.6600756 Z\"></path>\n <path d=\"M47.6333528,39.5324628 L47.6562932,39.5834939 C37.9670934,43.9391617 26.0718874,46.3819521 17.260095,45.4107025 C5.27267473,44.0894301 -1.02778744,36.4307276 2.44271359,24.0779512 C5.56175386,12.9761516 14.3014034,4.36129832 24.0466405,1.54817001 C34.7269254,-1.53487574 43.7955833,3.51606438 43.7955834,14.7730751 L35.1728168,14.7730752 C35.1728167,9.91428944 32.0946059,8.19982862 26.4381034,9.83267419 C19.5270911,11.8276553 13.046247,18.2159574 10.7440788,26.4102121 C8.82861123,33.2280582 11.161186,36.0634845 18.2047888,36.8398415 C25.3302805,37.6252244 35.7353482,35.4884477 44.1208333,31.7188498 L44.1475077,31.7781871 C44.159701,31.7725635 44.1718402,31.7671479 44.1839238,31.7619434 C45.9448098,31.0035157 50.4503245,38.3109156 47.7081571,39.5012767 C47.6834429,39.512005 47.6585061,39.5223987 47.6333528,39.5324628 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/theme-button": {
"title": "$:/core/images/theme-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-theme-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M55.854113,66.9453198 C54.3299482,65.1432292 53.0133883,63.518995 51.9542746,62.1263761 C40.8899947,47.578055 35.3091807,55.2383404 28.9941893,62.1263758 C22.6791979,69.0144112 30.6577916,74.5954741 24.6646171,79.4611023 C18.6714426,84.3267304 19.0414417,86.0133155 8.92654943,77.1119468 C-1.18834284,68.2105781 -1.88793412,65.7597832 2.7553553,60.6807286 C7.39864472,55.601674 11.2794845,63.5989423 20.7646627,54.5728325 C30.2498409,45.5467226 22.2819131,37.5470737 22.2819131,37.5470737 C22.2819131,37.5470737 42.0310399,-2.82433362 68.4206088,0.157393922 C94.8101776,3.13912147 58.4373806,-3.70356506 49.3898693,27.958066 C45.5161782,41.5139906 50.1107906,38.3197672 57.4560458,44.0453955 C59.1625767,45.3756367 63.8839488,48.777453 70.127165,53.3625321 C63.9980513,59.2416709 58.9704753,64.0315459 55.854113,66.9453198 Z M67.4952439,79.8919946 C83.5082212,96.9282402 105.237121,117.617674 112.611591,120.312493 C123.044132,124.12481 128.000001,117.170903 128,105.522947 C127.999999,98.3705516 104.170675,78.980486 84.0760493,63.7529565 C76.6683337,70.9090328 70.7000957,76.7055226 67.4952439,79.8919946 Z\"></path>\n <path d=\"M58.2852966,138.232794 L58.2852966,88.3943645 C56.318874,88.3923153 54.7254089,86.7952906 54.7254089,84.8344788 C54.7254089,82.8684071 56.3175932,81.2745911 58.2890859,81.2745911 L79.6408336,81.2745911 C81.608998,81.2745911 83.2045105,82.8724076 83.2045105,84.8344788 C83.2045105,86.7992907 81.614366,88.3923238 79.6446228,88.3943645 L79.6446228,88.3943646 L79.6446228,138.232794 C79.6446228,144.131009 74.8631748,148.912457 68.9649597,148.912457 C63.0667446,148.912457 58.2852966,144.131009 58.2852966,138.232794 Z M65.405072,-14.8423767 L72.5248474,-14.8423767 L76.0847351,-0.690681892 L72.5248474,6.51694947 L72.5248474,81.2745911 L65.405072,81.2745911 L65.405072,6.51694947 L61.8451843,-0.690681892 L65.405072,-14.8423767 Z\" transform=\"translate(68.964960, 67.035040) rotate(45.000000) translate(-68.964960, -67.035040) \"></path>\n </g>\n</svg>"
},
"$:/core/images/timestamp-off": {
"title": "$:/core/images/timestamp-off",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-timestamp-off tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10c-2.762 0-5-2.24-5-5-.004-2.756 2.238-5 5-5H66.69c2.762 0 5.002 2.24 5 5 .006 2.757-2.238 5-5 5H49.705z\"/><path d=\"M58.25 35.88c-18.777 0-33.998 15.224-33.998 33.998 0 18.773 15.22 34.002 33.998 34.002 18.784 0 34.002-15.23 34.002-34.002 0-18.774-15.218-33.998-34.002-33.998zm-3.03 50.123H44.196v-34H55.22v34zm16.976 0H61.17v-34h11.025v34z\"/>\n </g>\n</svg>\n"
},
"$:/core/images/timestamp-on": {
"title": "$:/core/images/timestamp-on",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-timestamp-on tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10c-2.762 0-5-2.24-5-5-.004-2.756 2.238-5 5-5H66.69c2.762 0 5.002 2.24 5 5 .006 2.757-2.238 5-5 5H49.705z\"/><path d=\"M13.41 27.178c-2.116 1.775-5.27 1.498-7.045-.613-1.772-2.11-1.498-5.27.616-7.047l9.95-8.348c2.115-1.774 5.27-1.5 7.045.618 1.775 2.108 1.498 5.27-.616 7.043l-9.95 8.348zM102.983 27.178c2.116 1.775 5.27 1.498 7.045-.613 1.772-2.11 1.498-5.27-.616-7.047l-9.95-8.348c-2.114-1.774-5.27-1.5-7.044.618-1.775 2.108-1.498 5.27.616 7.043l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z\"/>\n </g>\n</svg>\n"
},
"$:/core/images/tip": {
"title": "$:/core/images/tip",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-tip tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M64,128.241818 C99.346224,128.241818 128,99.5880417 128,64.2418177 C128,28.8955937 99.346224,0.241817675 64,0.241817675 C28.653776,0.241817675 0,28.8955937 0,64.2418177 C0,99.5880417 28.653776,128.241818 64,128.241818 Z M75.9358659,91.4531941 C75.3115438,95.581915 70.2059206,98.8016748 64,98.8016748 C57.7940794,98.8016748 52.6884562,95.581915 52.0641341,91.4531941 C54.3299053,94.0502127 58.8248941,95.8192805 64,95.8192805 C69.1751059,95.8192805 73.6700947,94.0502127 75.9358659,91.4531941 L75.9358659,91.4531941 Z M75.9358659,95.9453413 C75.3115438,100.074062 70.2059206,103.293822 64,103.293822 C57.7940794,103.293822 52.6884562,100.074062 52.0641341,95.9453413 C54.3299053,98.5423599 58.8248941,100.311428 64,100.311428 C69.1751059,100.311428 73.6700947,98.5423599 75.9358659,95.9453413 L75.9358659,95.9453413 Z M75.9358659,100.40119 C75.3115438,104.529911 70.2059206,107.74967 64,107.74967 C57.7940794,107.74967 52.6884562,104.529911 52.0641341,100.40119 C54.3299053,102.998208 58.8248941,104.767276 64,104.767276 C69.1751059,104.767276 73.6700947,102.998208 75.9358659,100.40119 L75.9358659,100.40119 Z M75.9358659,104.893337 C75.3115438,109.022058 70.2059206,112.241818 64,112.241818 C57.7940794,112.241818 52.6884562,109.022058 52.0641341,104.893337 C54.3299053,107.490356 58.8248941,109.259423 64,109.259423 C69.1751059,109.259423 73.6700947,107.490356 75.9358659,104.893337 L75.9358659,104.893337 Z M64.3010456,24.2418177 C75.9193117,24.2418188 88.0000013,32.0619847 88,48.4419659 C87.9999987,64.8219472 75.9193018,71.7540963 75.9193021,83.5755932 C75.9193022,89.4486648 70.0521957,92.8368862 63.9999994,92.8368862 C57.947803,92.8368862 51.9731007,89.8295115 51.9731007,83.5755932 C51.9731007,71.1469799 39.9999998,65.4700602 40,48.4419647 C40.0000002,31.4138691 52.6827796,24.2418166 64.3010456,24.2418177 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/transcludify": {
"title": "$:/core/images/transcludify",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-transcludify-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\"><path d=\"M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 0 0 2.75-.932 6.762 6.762 0 0 0 2.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 0 0-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 0 0-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 0 0 2.75-.932 6.762 6.762 0 0 0 2.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 0 0-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 0 0-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 0 0-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 0 0 .71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 0 0-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 0 0 2.262 2.084 8.868 8.868 0 0 0 2.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 0 0-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 0 0 .71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 0 0-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 0 0 2.262 2.084 8.868 8.868 0 0 0 2.75 1.02c.946.177 1.745.266 2.395.266v7.806z\" fill-rule=\"evenodd\"/></svg>\n"
},
"$:/core/images/twitter": {
"title": "$:/core/images/twitter",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-twitter tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M41.6263422,115.803477 C27.0279663,115.803477 13.4398394,111.540813 1.99987456,104.234833 C4.02221627,104.472643 6.08004574,104.594302 8.16644978,104.594302 C20.277456,104.594302 31.4238403,100.47763 40.270894,93.5715185 C28.9590538,93.3635501 19.4123842,85.9189246 16.1230832,75.6885328 C17.7011365,75.9892376 19.320669,76.1503787 20.9862896,76.1503787 C23.344152,76.1503787 25.6278127,75.8359011 27.7971751,75.247346 C15.9709927,72.8821073 7.06079851,62.4745062 7.06079851,49.9982394 C7.06079851,49.8898938 7.06079851,49.7820074 7.06264203,49.67458 C10.5482779,51.6032228 14.5339687,52.7615103 18.7717609,52.8951059 C11.8355159,48.277565 7.2714207,40.3958845 7.2714207,31.4624258 C7.2714207,26.7434257 8.54621495,22.3200804 10.7713439,18.5169676 C23.5211299,34.0957738 42.568842,44.3472839 64.0532269,45.4210985 C63.6126256,43.5365285 63.3835682,41.5711584 63.3835682,39.5529928 C63.3835682,25.3326379 74.95811,13.8034766 89.2347917,13.8034766 C96.6697089,13.8034766 103.387958,16.930807 108.103682,21.9353619 C113.991886,20.780288 119.52429,18.6372496 124.518847,15.6866694 C122.588682,21.6993889 118.490075,26.7457211 113.152623,29.9327334 C118.381769,29.3102055 123.363882,27.926045 127.999875,25.8780385 C124.534056,31.0418981 120.151087,35.5772616 115.100763,39.2077561 C115.150538,40.3118708 115.175426,41.4224128 115.175426,42.538923 C115.175426,76.5663154 89.1744164,115.803477 41.6263422,115.803477\"></path>\n </g>\n</svg>\n"
},
"$:/core/images/underline": {
"title": "$:/core/images/underline",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-underline tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M7,117.421488 L121.247934,117.421488 L121.247934,128 L7,128 L7,117.421488 Z M104.871212,98.8958333 L104.871212,0 L88.6117424,0 L88.6117424,55.8560606 C88.6117424,60.3194668 88.0060035,64.432115 86.7945076,68.1941288 C85.5830116,71.9561425 83.7657949,75.239885 81.342803,78.0454545 C78.9198111,80.8510241 75.8911167,83.0189317 72.2566288,84.5492424 C68.6221409,86.0795531 64.3182067,86.844697 59.344697,86.844697 C53.0959284,86.844697 48.1862552,85.0593613 44.6155303,81.4886364 C41.0448054,77.9179114 39.2594697,73.0720003 39.2594697,66.9507576 L39.2594697,0 L23,0 L23,65.0378788 C23,70.3939662 23.5419769,75.2717583 24.625947,79.6714015 C25.709917,84.0710447 27.5908957,87.864883 30.2689394,91.0530303 C32.9469831,94.2411776 36.4538925,96.6960141 40.7897727,98.4176136 C45.125653,100.139213 50.545422,101 57.0492424,101 C64.3182182,101 70.630655,99.5653553 75.9867424,96.6960227 C81.3428298,93.8266902 85.742407,89.33147 89.1856061,83.2102273 L89.5681818,83.2102273 L89.5681818,98.8958333 L104.871212,98.8958333 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/unfold-all-button": {
"title": "$:/core/images/unfold-all-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-unfold-all tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <rect x=\"0\" y=\"0\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <rect x=\"0\" y=\"64\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <path d=\"M85.598226,8.34884273 C84.1490432,6.89863875 82.1463102,6 79.9340286,6 L47.9482224,6 C43.5292967,6 39.9411255,9.581722 39.9411255,14 C39.9411255,18.4092877 43.5260249,22 47.9482224,22 L71.9411255,22 L71.9411255,45.9929031 C71.9411255,50.4118288 75.5228475,54 79.9411255,54 C84.3504132,54 87.9411255,50.4151006 87.9411255,45.9929031 L87.9411255,14.0070969 C87.9411255,11.7964515 87.0447363,9.79371715 85.5956548,8.34412458 Z\" transform=\"translate(63.941125, 30.000000) scale(1, -1) rotate(-45.000000) translate(-63.941125, -30.000000) \"></path>\n <path d=\"M85.6571005,72.2899682 C84.2079177,70.8397642 82.2051847,69.9411255 79.9929031,69.9411255 L48.0070969,69.9411255 C43.5881712,69.9411255 40,73.5228475 40,77.9411255 C40,82.3504132 43.5848994,85.9411255 48.0070969,85.9411255 L72,85.9411255 L72,109.934029 C72,114.352954 75.581722,117.941125 80,117.941125 C84.4092877,117.941125 88,114.356226 88,109.934029 L88,77.9482224 C88,75.737577 87.1036108,73.7348426 85.6545293,72.2852501 Z\" transform=\"translate(64.000000, 93.941125) scale(1, -1) rotate(-45.000000) translate(-64.000000, -93.941125) \"></path>\n </g>\n</svg>"
},
"$:/core/images/unfold-button": {
"title": "$:/core/images/unfold-button",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-unfold tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <rect x=\"0\" y=\"0\" width=\"128\" height=\"16\" rx=\"8\"></rect>\n <path d=\"M85.598226,11.3488427 C84.1490432,9.89863875 82.1463102,9 79.9340286,9 L47.9482224,9 C43.5292967,9 39.9411255,12.581722 39.9411255,17 C39.9411255,21.4092877 43.5260249,25 47.9482224,25 L71.9411255,25 L71.9411255,48.9929031 C71.9411255,53.4118288 75.5228475,57 79.9411255,57 C84.3504132,57 87.9411255,53.4151006 87.9411255,48.9929031 L87.9411255,17.0070969 C87.9411255,14.7964515 87.0447363,12.7937171 85.5956548,11.3441246 Z\" transform=\"translate(63.941125, 33.000000) scale(1, -1) rotate(-45.000000) translate(-63.941125, -33.000000) \"></path>\n <path d=\"M85.6571005,53.4077172 C84.2079177,51.9575133 82.2051847,51.0588745 79.9929031,51.0588745 L48.0070969,51.0588745 C43.5881712,51.0588745 40,54.6405965 40,59.0588745 C40,63.4681622 43.5848994,67.0588745 48.0070969,67.0588745 L72,67.0588745 L72,91.0517776 C72,95.4707033 75.581722,99.0588745 80,99.0588745 C84.4092877,99.0588745 88,95.4739751 88,91.0517776 L88,59.0659714 C88,56.855326 87.1036108,54.8525917 85.6545293,53.4029991 Z\" transform=\"translate(64.000000, 75.058875) scale(1, -1) rotate(-45.000000) translate(-64.000000, -75.058875) \"></path>\n </g>\n</svg>"
},
"$:/core/images/unlocked-padlock": {
"title": "$:/core/images/unlocked-padlock",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-unlocked-padlock tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M48.6266053,64 L105,64 L105,96.0097716 C105,113.673909 90.6736461,128 73.001193,128 L55.998807,128 C38.3179793,128 24,113.677487 24,96.0097716 L24,64 L30.136303,64 C19.6806213,51.3490406 2.77158986,28.2115132 25.8366966,8.85759246 C50.4723026,-11.8141335 71.6711028,13.2108337 81.613302,25.0594855 C91.5555012,36.9081373 78.9368488,47.4964439 69.1559674,34.9513593 C59.375086,22.4062748 47.9893192,10.8049522 35.9485154,20.9083862 C23.9077117,31.0118202 34.192312,43.2685325 44.7624679,55.8655518 C47.229397,58.805523 48.403443,61.5979188 48.6266053,64 Z M67.7315279,92.3641717 C70.8232551,91.0923621 73,88.0503841 73,84.5 C73,79.8055796 69.1944204,76 64.5,76 C59.8055796,76 56,79.8055796 56,84.5 C56,87.947435 58.0523387,90.9155206 61.0018621,92.2491029 L55.9067479,115.020857 L72.8008958,115.020857 L67.7315279,92.3641717 L67.7315279,92.3641717 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/up-arrow": {
"title": "$:/core/images/up-arrow",
"created": "20150316000544368",
"modified": "20150316000831867",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-up-arrow tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n<path transform=\"rotate(-135, 63.8945, 64.1752)\" d=\"m109.07576,109.35336c-1.43248,1.43361 -3.41136,2.32182 -5.59717,2.32182l-79.16816,0c-4.36519,0 -7.91592,-3.5444 -7.91592,-7.91666c0,-4.36337 3.54408,-7.91667 7.91592,-7.91667l71.25075,0l0,-71.25074c0,-4.3652 3.54442,-7.91592 7.91667,-7.91592c4.36336,0 7.91667,3.54408 7.91667,7.91592l0,79.16815c0,2.1825 -0.88602,4.16136 -2.3185,5.59467l-0.00027,-0.00056l0.00001,-0.00001z\" />\n</svg>\n \n"
},
"$:/core/images/video": {
"title": "$:/core/images/video",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-video tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M64,12 C29.0909091,12 8.72727273,14.9166667 5.81818182,17.8333333 C2.90909091,20.75 1.93784382e-15,41.1666667 0,64.5 C1.93784382e-15,87.8333333 2.90909091,108.25 5.81818182,111.166667 C8.72727273,114.083333 29.0909091,117 64,117 C98.9090909,117 119.272727,114.083333 122.181818,111.166667 C125.090909,108.25 128,87.8333333 128,64.5 C128,41.1666667 125.090909,20.75 122.181818,17.8333333 C119.272727,14.9166667 98.9090909,12 64,12 Z M54.9161194,44.6182253 C51.102648,42.0759111 48.0112186,43.7391738 48.0112186,48.3159447 L48.0112186,79.6840553 C48.0112186,84.2685636 51.109784,85.9193316 54.9161194,83.3817747 L77.0838806,68.6032672 C80.897352,66.0609529 80.890216,61.9342897 77.0838806,59.3967328 L54.9161194,44.6182253 Z\"></path>\n </g>\n</svg>"
},
"$:/core/images/warning": {
"title": "$:/core/images/warning",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-warning tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M57.0717968,11 C60.1509982,5.66666667 67.8490018,5.66666667 70.9282032,11 L126.353829,107 C129.433031,112.333333 125.584029,119 119.425626,119 L8.57437416,119 C2.41597129,119 -1.43303051,112.333333 1.64617093,107 L57.0717968,11 Z M64,37 C59.581722,37 56,40.5820489 56,44.9935776 L56,73.0064224 C56,77.4211534 59.5907123,81 64,81 C68.418278,81 72,77.4179511 72,73.0064224 L72,44.9935776 C72,40.5788466 68.4092877,37 64,37 Z M64,104 C68.418278,104 72,100.418278 72,96 C72,91.581722 68.418278,88 64,88 C59.581722,88 56,91.581722 56,96 C56,100.418278 59.581722,104 64,104 Z\"></path>\n </g>\n</svg>"
},
"$:/language/Buttons/AdvancedSearch/Caption": {
"title": "$:/language/Buttons/AdvancedSearch/Caption",
"text": "advanced search"
},
"$:/language/Buttons/AdvancedSearch/Hint": {
"title": "$:/language/Buttons/AdvancedSearch/Hint",
"text": "Advanced search"
},
"$:/language/Buttons/Cancel/Caption": {
"title": "$:/language/Buttons/Cancel/Caption",
"text": "cancel"
},
"$:/language/Buttons/Cancel/Hint": {
"title": "$:/language/Buttons/Cancel/Hint",
"text": "Discard changes to this tiddler"
},
"$:/language/Buttons/Clone/Caption": {
"title": "$:/language/Buttons/Clone/Caption",
"text": "clone"
},
"$:/language/Buttons/Clone/Hint": {
"title": "$:/language/Buttons/Clone/Hint",
"text": "Clone this tiddler"
},
"$:/language/Buttons/Close/Caption": {
"title": "$:/language/Buttons/Close/Caption",
"text": "close"
},
"$:/language/Buttons/Close/Hint": {
"title": "$:/language/Buttons/Close/Hint",
"text": "Close this tiddler"
},
"$:/language/Buttons/CloseAll/Caption": {
"title": "$:/language/Buttons/CloseAll/Caption",
"text": "close all"
},
"$:/language/Buttons/CloseAll/Hint": {
"title": "$:/language/Buttons/CloseAll/Hint",
"text": "Close all tiddlers"
},
"$:/language/Buttons/CloseOthers/Caption": {
"title": "$:/language/Buttons/CloseOthers/Caption",
"text": "close others"
},
"$:/language/Buttons/CloseOthers/Hint": {
"title": "$:/language/Buttons/CloseOthers/Hint",
"text": "Close other tiddlers"
},
"$:/language/Buttons/ControlPanel/Caption": {
"title": "$:/language/Buttons/ControlPanel/Caption",
"text": "control panel"
},
"$:/language/Buttons/ControlPanel/Hint": {
"title": "$:/language/Buttons/ControlPanel/Hint",
"text": "Open control panel"
},
"$:/language/Buttons/CopyToClipboard/Caption": {
"title": "$:/language/Buttons/CopyToClipboard/Caption",
"text": "copy to clipboard"
},
"$:/language/Buttons/CopyToClipboard/Hint": {
"title": "$:/language/Buttons/CopyToClipboard/Hint",
"text": "Copy this text to the clipboard"
},
"$:/language/Buttons/Delete/Caption": {
"title": "$:/language/Buttons/Delete/Caption",
"text": "delete"
},
"$:/language/Buttons/Delete/Hint": {
"title": "$:/language/Buttons/Delete/Hint",
"text": "Delete this tiddler"
},
"$:/language/Buttons/Edit/Caption": {
"title": "$:/language/Buttons/Edit/Caption",
"text": "edit"
},
"$:/language/Buttons/Edit/Hint": {
"title": "$:/language/Buttons/Edit/Hint",
"text": "Edit this tiddler"
},
"$:/language/Buttons/Encryption/Caption": {
"title": "$:/language/Buttons/Encryption/Caption",
"text": "encryption"
},
"$:/language/Buttons/Encryption/Hint": {
"title": "$:/language/Buttons/Encryption/Hint",
"text": "Set or clear a password for saving this wiki"
},
"$:/language/Buttons/Encryption/ClearPassword/Caption": {
"title": "$:/language/Buttons/Encryption/ClearPassword/Caption",
"text": "clear password"
},
"$:/language/Buttons/Encryption/ClearPassword/Hint": {
"title": "$:/language/Buttons/Encryption/ClearPassword/Hint",
"text": "Clear the password and save this wiki without encryption"
},
"$:/language/Buttons/Encryption/SetPassword/Caption": {
"title": "$:/language/Buttons/Encryption/SetPassword/Caption",
"text": "set password"
},
"$:/language/Buttons/Encryption/SetPassword/Hint": {
"title": "$:/language/Buttons/Encryption/SetPassword/Hint",
"text": "Set a password for saving this wiki with encryption"
},
"$:/language/Buttons/ExportPage/Caption": {
"title": "$:/language/Buttons/ExportPage/Caption",
"text": "export all"
},
"$:/language/Buttons/ExportPage/Hint": {
"title": "$:/language/Buttons/ExportPage/Hint",
"text": "Export all tiddlers"
},
"$:/language/Buttons/ExportTiddler/Caption": {
"title": "$:/language/Buttons/ExportTiddler/Caption",
"text": "export tiddler"
},
"$:/language/Buttons/ExportTiddler/Hint": {
"title": "$:/language/Buttons/ExportTiddler/Hint",
"text": "Export tiddler"
},
"$:/language/Buttons/ExportTiddlers/Caption": {
"title": "$:/language/Buttons/ExportTiddlers/Caption",
"text": "export tiddlers"
},
"$:/language/Buttons/ExportTiddlers/Hint": {
"title": "$:/language/Buttons/ExportTiddlers/Hint",
"text": "Export tiddlers"
},
"$:/language/Buttons/SidebarSearch/Hint": {
"title": "$:/language/Buttons/SidebarSearch/Hint",
"text": "Select the sidebar search field"
},
"$:/language/Buttons/Fold/Caption": {
"title": "$:/language/Buttons/Fold/Caption",
"text": "fold tiddler"
},
"$:/language/Buttons/Fold/Hint": {
"title": "$:/language/Buttons/Fold/Hint",
"text": "Fold the body of this tiddler"
},
"$:/language/Buttons/Fold/FoldBar/Caption": {
"title": "$:/language/Buttons/Fold/FoldBar/Caption",
"text": "fold-bar"
},
"$:/language/Buttons/Fold/FoldBar/Hint": {
"title": "$:/language/Buttons/Fold/FoldBar/Hint",
"text": "Optional bars to fold and unfold tiddlers"
},
"$:/language/Buttons/Unfold/Caption": {
"title": "$:/language/Buttons/Unfold/Caption",
"text": "unfold tiddler"
},
"$:/language/Buttons/Unfold/Hint": {
"title": "$:/language/Buttons/Unfold/Hint",
"text": "Unfold the body of this tiddler"
},
"$:/language/Buttons/FoldOthers/Caption": {
"title": "$:/language/Buttons/FoldOthers/Caption",
"text": "fold other tiddlers"
},
"$:/language/Buttons/FoldOthers/Hint": {
"title": "$:/language/Buttons/FoldOthers/Hint",
"text": "Fold the bodies of other opened tiddlers"
},
"$:/language/Buttons/FoldAll/Caption": {
"title": "$:/language/Buttons/FoldAll/Caption",
"text": "fold all tiddlers"
},
"$:/language/Buttons/FoldAll/Hint": {
"title": "$:/language/Buttons/FoldAll/Hint",
"text": "Fold the bodies of all opened tiddlers"
},
"$:/language/Buttons/UnfoldAll/Caption": {
"title": "$:/language/Buttons/UnfoldAll/Caption",
"text": "unfold all tiddlers"
},
"$:/language/Buttons/UnfoldAll/Hint": {
"title": "$:/language/Buttons/UnfoldAll/Hint",
"text": "Unfold the bodies of all opened tiddlers"
},
"$:/language/Buttons/FullScreen/Caption": {
"title": "$:/language/Buttons/FullScreen/Caption",
"text": "full-screen"
},
"$:/language/Buttons/FullScreen/Hint": {
"title": "$:/language/Buttons/FullScreen/Hint",
"text": "Enter or leave full-screen mode"
},
"$:/language/Buttons/Help/Caption": {
"title": "$:/language/Buttons/Help/Caption",
"text": "help"
},
"$:/language/Buttons/Help/Hint": {
"title": "$:/language/Buttons/Help/Hint",
"text": "Show help panel"
},
"$:/language/Buttons/Import/Caption": {
"title": "$:/language/Buttons/Import/Caption",
"text": "import"
},
"$:/language/Buttons/Import/Hint": {
"title": "$:/language/Buttons/Import/Hint",
"text": "Import many types of file including text, image, TiddlyWiki or JSON"
},
"$:/language/Buttons/Info/Caption": {
"title": "$:/language/Buttons/Info/Caption",
"text": "info"
},
"$:/language/Buttons/Info/Hint": {
"title": "$:/language/Buttons/Info/Hint",
"text": "Show information for this tiddler"
},
"$:/language/Buttons/Home/Caption": {
"title": "$:/language/Buttons/Home/Caption",
"text": "home"
},
"$:/language/Buttons/Home/Hint": {
"title": "$:/language/Buttons/Home/Hint",
"text": "Open the default tiddlers"
},
"$:/language/Buttons/Language/Caption": {
"title": "$:/language/Buttons/Language/Caption",
"text": "language"
},
"$:/language/Buttons/Language/Hint": {
"title": "$:/language/Buttons/Language/Hint",
"text": "Choose the user interface language"
},
"$:/language/Buttons/Manager/Caption": {
"title": "$:/language/Buttons/Manager/Caption",
"text": "tiddler manager"
},
"$:/language/Buttons/Manager/Hint": {
"title": "$:/language/Buttons/Manager/Hint",
"text": "Open tiddler manager"
},
"$:/language/Buttons/More/Caption": {
"title": "$:/language/Buttons/More/Caption",
"text": "more"
},
"$:/language/Buttons/More/Hint": {
"title": "$:/language/Buttons/More/Hint",
"text": "More actions"
},
"$:/language/Buttons/NewHere/Caption": {
"title": "$:/language/Buttons/NewHere/Caption",
"text": "new here"
},
"$:/language/Buttons/NewHere/Hint": {
"title": "$:/language/Buttons/NewHere/Hint",
"text": "Create a new tiddler tagged with this one"
},
"$:/language/Buttons/NewJournal/Caption": {
"title": "$:/language/Buttons/NewJournal/Caption",
"text": "new journal"
},
"$:/language/Buttons/NewJournal/Hint": {
"title": "$:/language/Buttons/NewJournal/Hint",
"text": "Create a new journal tiddler"
},
"$:/language/Buttons/NewJournalHere/Caption": {
"title": "$:/language/Buttons/NewJournalHere/Caption",
"text": "new journal here"
},
"$:/language/Buttons/NewJournalHere/Hint": {
"title": "$:/language/Buttons/NewJournalHere/Hint",
"text": "Create a new journal tiddler tagged with this one"
},
"$:/language/Buttons/NewImage/Caption": {
"title": "$:/language/Buttons/NewImage/Caption",
"text": "new image"
},
"$:/language/Buttons/NewImage/Hint": {
"title": "$:/language/Buttons/NewImage/Hint",
"text": "Create a new image tiddler"
},
"$:/language/Buttons/NewMarkdown/Caption": {
"title": "$:/language/Buttons/NewMarkdown/Caption",
"text": "new Markdown tiddler"
},
"$:/language/Buttons/NewMarkdown/Hint": {
"title": "$:/language/Buttons/NewMarkdown/Hint",
"text": "Create a new Markdown tiddler"
},
"$:/language/Buttons/NewTiddler/Caption": {
"title": "$:/language/Buttons/NewTiddler/Caption",
"text": "new tiddler"
},
"$:/language/Buttons/NewTiddler/Hint": {
"title": "$:/language/Buttons/NewTiddler/Hint",
"text": "Create a new tiddler"
},
"$:/language/Buttons/OpenWindow/Caption": {
"title": "$:/language/Buttons/OpenWindow/Caption",
"text": "open in new window"
},
"$:/language/Buttons/OpenWindow/Hint": {
"title": "$:/language/Buttons/OpenWindow/Hint",
"text": "Open tiddler in new window"
},
"$:/language/Buttons/Palette/Caption": {
"title": "$:/language/Buttons/Palette/Caption",
"text": "palette"
},
"$:/language/Buttons/Palette/Hint": {
"title": "$:/language/Buttons/Palette/Hint",
"text": "Choose the colour palette"
},
"$:/language/Buttons/Permalink/Caption": {
"title": "$:/language/Buttons/Permalink/Caption",
"text": "permalink"
},
"$:/language/Buttons/Permalink/Hint": {
"title": "$:/language/Buttons/Permalink/Hint",
"text": "Set browser address bar to a direct link to this tiddler"
},
"$:/language/Buttons/Permaview/Caption": {
"title": "$:/language/Buttons/Permaview/Caption",
"text": "permaview"
},
"$:/language/Buttons/Permaview/Hint": {
"title": "$:/language/Buttons/Permaview/Hint",
"text": "Set browser address bar to a direct link to all the tiddlers in this story"
},
"$:/language/Buttons/Print/Caption": {
"title": "$:/language/Buttons/Print/Caption",
"text": "print page"
},
"$:/language/Buttons/Print/Hint": {
"title": "$:/language/Buttons/Print/Hint",
"text": "Print the current page"
},
"$:/language/Buttons/Refresh/Caption": {
"title": "$:/language/Buttons/Refresh/Caption",
"text": "refresh"
},
"$:/language/Buttons/Refresh/Hint": {
"title": "$:/language/Buttons/Refresh/Hint",
"text": "Perform a full refresh of the wiki"
},
"$:/language/Buttons/Save/Caption": {
"title": "$:/language/Buttons/Save/Caption",
"text": "ok"
},
"$:/language/Buttons/Save/Hint": {
"title": "$:/language/Buttons/Save/Hint",
"text": "Confirm changes to this tiddler"
},
"$:/language/Buttons/SaveWiki/Caption": {
"title": "$:/language/Buttons/SaveWiki/Caption",
"text": "save changes"
},
"$:/language/Buttons/SaveWiki/Hint": {
"title": "$:/language/Buttons/SaveWiki/Hint",
"text": "Save changes"
},
"$:/language/Buttons/StoryView/Caption": {
"title": "$:/language/Buttons/StoryView/Caption",
"text": "storyview"
},
"$:/language/Buttons/StoryView/Hint": {
"title": "$:/language/Buttons/StoryView/Hint",
"text": "Choose the story visualisation"
},
"$:/language/Buttons/HideSideBar/Caption": {
"title": "$:/language/Buttons/HideSideBar/Caption",
"text": "hide sidebar"
},
"$:/language/Buttons/HideSideBar/Hint": {
"title": "$:/language/Buttons/HideSideBar/Hint",
"text": "Hide sidebar"
},
"$:/language/Buttons/ShowSideBar/Caption": {
"title": "$:/language/Buttons/ShowSideBar/Caption",
"text": "show sidebar"
},
"$:/language/Buttons/ShowSideBar/Hint": {
"title": "$:/language/Buttons/ShowSideBar/Hint",
"text": "Show sidebar"
},
"$:/language/Buttons/TagManager/Caption": {
"title": "$:/language/Buttons/TagManager/Caption",
"text": "tag manager"
},
"$:/language/Buttons/TagManager/Hint": {
"title": "$:/language/Buttons/TagManager/Hint",
"text": "Open tag manager"
},
"$:/language/Buttons/Timestamp/Caption": {
"title": "$:/language/Buttons/Timestamp/Caption",
"text": "timestamps"
},
"$:/language/Buttons/Timestamp/Hint": {
"title": "$:/language/Buttons/Timestamp/Hint",
"text": "Choose whether modifications update timestamps"
},
"$:/language/Buttons/Timestamp/On/Caption": {
"title": "$:/language/Buttons/Timestamp/On/Caption",
"text": "timestamps are on"
},
"$:/language/Buttons/Timestamp/On/Hint": {
"title": "$:/language/Buttons/Timestamp/On/Hint",
"text": "Update timestamps when tiddlers are modified"
},
"$:/language/Buttons/Timestamp/Off/Caption": {
"title": "$:/language/Buttons/Timestamp/Off/Caption",
"text": "timestamps are off"
},
"$:/language/Buttons/Timestamp/Off/Hint": {
"title": "$:/language/Buttons/Timestamp/Off/Hint",
"text": "Don't update timestamps when tiddlers are modified"
},
"$:/language/Buttons/Theme/Caption": {
"title": "$:/language/Buttons/Theme/Caption",
"text": "theme"
},
"$:/language/Buttons/Theme/Hint": {
"title": "$:/language/Buttons/Theme/Hint",
"text": "Choose the display theme"
},
"$:/language/Buttons/Bold/Caption": {
"title": "$:/language/Buttons/Bold/Caption",
"text": "bold"
},
"$:/language/Buttons/Bold/Hint": {
"title": "$:/language/Buttons/Bold/Hint",
"text": "Apply bold formatting to selection"
},
"$:/language/Buttons/Clear/Caption": {
"title": "$:/language/Buttons/Clear/Caption",
"text": "clear"
},
"$:/language/Buttons/Clear/Hint": {
"title": "$:/language/Buttons/Clear/Hint",
"text": "Clear image to solid colour"
},
"$:/language/Buttons/EditorHeight/Caption": {
"title": "$:/language/Buttons/EditorHeight/Caption",
"text": "editor height"
},
"$:/language/Buttons/EditorHeight/Caption/Auto": {
"title": "$:/language/Buttons/EditorHeight/Caption/Auto",
"text": "Automatically adjust height to fit content"
},
"$:/language/Buttons/EditorHeight/Caption/Fixed": {
"title": "$:/language/Buttons/EditorHeight/Caption/Fixed",
"text": "Fixed height:"
},
"$:/language/Buttons/EditorHeight/Hint": {
"title": "$:/language/Buttons/EditorHeight/Hint",
"text": "Choose the height of the text editor"
},
"$:/language/Buttons/Excise/Caption": {
"title": "$:/language/Buttons/Excise/Caption",
"text": "excise"
},
"$:/language/Buttons/Excise/Caption/Excise": {
"title": "$:/language/Buttons/Excise/Caption/Excise",
"text": "Perform excision"
},
"$:/language/Buttons/Excise/Caption/MacroName": {
"title": "$:/language/Buttons/Excise/Caption/MacroName",
"text": "Macro name:"
},
"$:/language/Buttons/Excise/Caption/NewTitle": {
"title": "$:/language/Buttons/Excise/Caption/NewTitle",
"text": "Title of new tiddler:"
},
"$:/language/Buttons/Excise/Caption/Replace": {
"title": "$:/language/Buttons/Excise/Caption/Replace",
"text": "Replace excised text with:"
},
"$:/language/Buttons/Excise/Caption/Replace/Macro": {
"title": "$:/language/Buttons/Excise/Caption/Replace/Macro",
"text": "macro"
},
"$:/language/Buttons/Excise/Caption/Replace/Link": {
"title": "$:/language/Buttons/Excise/Caption/Replace/Link",
"text": "link"
},
"$:/language/Buttons/Excise/Caption/Replace/Transclusion": {
"title": "$:/language/Buttons/Excise/Caption/Replace/Transclusion",
"text": "transclusion"
},
"$:/language/Buttons/Excise/Caption/Tag": {
"title": "$:/language/Buttons/Excise/Caption/Tag",
"text": "Tag new tiddler with the title of this tiddler"
},
"$:/language/Buttons/Excise/Caption/TiddlerExists": {
"title": "$:/language/Buttons/Excise/Caption/TiddlerExists",
"text": "Warning: tiddler already exists"
},
"$:/language/Buttons/Excise/Hint": {
"title": "$:/language/Buttons/Excise/Hint",
"text": "Excise the selected text into a new tiddler"
},
"$:/language/Buttons/Heading1/Caption": {
"title": "$:/language/Buttons/Heading1/Caption",
"text": "heading 1"
},
"$:/language/Buttons/Heading1/Hint": {
"title": "$:/language/Buttons/Heading1/Hint",
"text": "Apply heading level 1 formatting to lines containing selection"
},
"$:/language/Buttons/Heading2/Caption": {
"title": "$:/language/Buttons/Heading2/Caption",
"text": "heading 2"
},
"$:/language/Buttons/Heading2/Hint": {
"title": "$:/language/Buttons/Heading2/Hint",
"text": "Apply heading level 2 formatting to lines containing selection"
},
"$:/language/Buttons/Heading3/Caption": {
"title": "$:/language/Buttons/Heading3/Caption",
"text": "heading 3"
},
"$:/language/Buttons/Heading3/Hint": {
"title": "$:/language/Buttons/Heading3/Hint",
"text": "Apply heading level 3 formatting to lines containing selection"
},
"$:/language/Buttons/Heading4/Caption": {
"title": "$:/language/Buttons/Heading4/Caption",
"text": "heading 4"
},
"$:/language/Buttons/Heading4/Hint": {
"title": "$:/language/Buttons/Heading4/Hint",
"text": "Apply heading level 4 formatting to lines containing selection"
},
"$:/language/Buttons/Heading5/Caption": {
"title": "$:/language/Buttons/Heading5/Caption",
"text": "heading 5"
},
"$:/language/Buttons/Heading5/Hint": {
"title": "$:/language/Buttons/Heading5/Hint",
"text": "Apply heading level 5 formatting to lines containing selection"
},
"$:/language/Buttons/Heading6/Caption": {
"title": "$:/language/Buttons/Heading6/Caption",
"text": "heading 6"
},
"$:/language/Buttons/Heading6/Hint": {
"title": "$:/language/Buttons/Heading6/Hint",
"text": "Apply heading level 6 formatting to lines containing selection"
},
"$:/language/Buttons/Italic/Caption": {
"title": "$:/language/Buttons/Italic/Caption",
"text": "italic"
},
"$:/language/Buttons/Italic/Hint": {
"title": "$:/language/Buttons/Italic/Hint",
"text": "Apply italic formatting to selection"
},
"$:/language/Buttons/LineWidth/Caption": {
"title": "$:/language/Buttons/LineWidth/Caption",
"text": "line width"
},
"$:/language/Buttons/LineWidth/Hint": {
"title": "$:/language/Buttons/LineWidth/Hint",
"text": "Set line width for painting"
},
"$:/language/Buttons/Link/Caption": {
"title": "$:/language/Buttons/Link/Caption",
"text": "link"
},
"$:/language/Buttons/Link/Hint": {
"title": "$:/language/Buttons/Link/Hint",
"text": "Create wikitext link"
},
"$:/language/Buttons/Linkify/Caption": {
"title": "$:/language/Buttons/Linkify/Caption",
"text": "wikilink"
},
"$:/language/Buttons/Linkify/Hint": {
"title": "$:/language/Buttons/Linkify/Hint",
"text": "Wrap selection in square brackets"
},
"$:/language/Buttons/ListBullet/Caption": {
"title": "$:/language/Buttons/ListBullet/Caption",
"text": "bulleted list"
},
"$:/language/Buttons/ListBullet/Hint": {
"title": "$:/language/Buttons/ListBullet/Hint",
"text": "Apply bulleted list formatting to lines containing selection"
},
"$:/language/Buttons/ListNumber/Caption": {
"title": "$:/language/Buttons/ListNumber/Caption",
"text": "numbered list"
},
"$:/language/Buttons/ListNumber/Hint": {
"title": "$:/language/Buttons/ListNumber/Hint",
"text": "Apply numbered list formatting to lines containing selection"
},
"$:/language/Buttons/MonoBlock/Caption": {
"title": "$:/language/Buttons/MonoBlock/Caption",
"text": "monospaced block"
},
"$:/language/Buttons/MonoBlock/Hint": {
"title": "$:/language/Buttons/MonoBlock/Hint",
"text": "Apply monospaced block formatting to lines containing selection"
},
"$:/language/Buttons/MonoLine/Caption": {
"title": "$:/language/Buttons/MonoLine/Caption",
"text": "monospaced"
},
"$:/language/Buttons/MonoLine/Hint": {
"title": "$:/language/Buttons/MonoLine/Hint",
"text": "Apply monospaced character formatting to selection"
},
"$:/language/Buttons/Opacity/Caption": {
"title": "$:/language/Buttons/Opacity/Caption",
"text": "opacity"
},
"$:/language/Buttons/Opacity/Hint": {
"title": "$:/language/Buttons/Opacity/Hint",
"text": "Set painting opacity"
},
"$:/language/Buttons/Paint/Caption": {
"title": "$:/language/Buttons/Paint/Caption",
"text": "paint colour"
},
"$:/language/Buttons/Paint/Hint": {
"title": "$:/language/Buttons/Paint/Hint",
"text": "Set painting colour"
},
"$:/language/Buttons/Picture/Caption": {
"title": "$:/language/Buttons/Picture/Caption",
"text": "picture"
},
"$:/language/Buttons/Picture/Hint": {
"title": "$:/language/Buttons/Picture/Hint",
"text": "Insert picture"
},
"$:/language/Buttons/Preview/Caption": {
"title": "$:/language/Buttons/Preview/Caption",
"text": "preview"
},
"$:/language/Buttons/Preview/Hint": {
"title": "$:/language/Buttons/Preview/Hint",
"text": "Show preview pane"
},
"$:/language/Buttons/PreviewType/Caption": {
"title": "$:/language/Buttons/PreviewType/Caption",
"text": "preview type"
},
"$:/language/Buttons/PreviewType/Hint": {
"title": "$:/language/Buttons/PreviewType/Hint",
"text": "Choose preview type"
},
"$:/language/Buttons/Quote/Caption": {
"title": "$:/language/Buttons/Quote/Caption",
"text": "quote"
},
"$:/language/Buttons/Quote/Hint": {
"title": "$:/language/Buttons/Quote/Hint",
"text": "Apply quoted text formatting to lines containing selection"
},
"$:/language/Buttons/RotateLeft/Caption": {
"title": "$:/language/Buttons/RotateLeft/Caption",
"text": "rotate left"
},
"$:/language/Buttons/RotateLeft/Hint": {
"title": "$:/language/Buttons/RotateLeft/Hint",
"text": "Rotate image left by 90 degrees"
},
"$:/language/Buttons/Size/Caption": {
"title": "$:/language/Buttons/Size/Caption",
"text": "image size"
},
"$:/language/Buttons/Size/Caption/Height": {
"title": "$:/language/Buttons/Size/Caption/Height",
"text": "Height:"
},
"$:/language/Buttons/Size/Caption/Resize": {
"title": "$:/language/Buttons/Size/Caption/Resize",
"text": "Resize image"
},
"$:/language/Buttons/Size/Caption/Width": {
"title": "$:/language/Buttons/Size/Caption/Width",
"text": "Width:"
},
"$:/language/Buttons/Size/Hint": {
"title": "$:/language/Buttons/Size/Hint",
"text": "Set image size"
},
"$:/language/Buttons/Stamp/Caption": {
"title": "$:/language/Buttons/Stamp/Caption",
"text": "stamp"
},
"$:/language/Buttons/Stamp/Caption/New": {
"title": "$:/language/Buttons/Stamp/Caption/New",
"text": "Add your own"
},
"$:/language/Buttons/Stamp/Hint": {
"title": "$:/language/Buttons/Stamp/Hint",
"text": "Insert a preconfigured snippet of text"
},
"$:/language/Buttons/Stamp/New/Title": {
"title": "$:/language/Buttons/Stamp/New/Title",
"text": "Name as shown in menu"
},
"$:/language/Buttons/Stamp/New/Text": {
"title": "$:/language/Buttons/Stamp/New/Text",
"text": "Text of snippet. (Remember to add a descriptive title in the caption field)."
},
"$:/language/Buttons/Strikethrough/Caption": {
"title": "$:/language/Buttons/Strikethrough/Caption",
"text": "strikethrough"
},
"$:/language/Buttons/Strikethrough/Hint": {
"title": "$:/language/Buttons/Strikethrough/Hint",
"text": "Apply strikethrough formatting to selection"
},
"$:/language/Buttons/Subscript/Caption": {
"title": "$:/language/Buttons/Subscript/Caption",
"text": "subscript"
},
"$:/language/Buttons/Subscript/Hint": {
"title": "$:/language/Buttons/Subscript/Hint",
"text": "Apply subscript formatting to selection"
},
"$:/language/Buttons/Superscript/Caption": {
"title": "$:/language/Buttons/Superscript/Caption",
"text": "superscript"
},
"$:/language/Buttons/Superscript/Hint": {
"title": "$:/language/Buttons/Superscript/Hint",
"text": "Apply superscript formatting to selection"
},
"$:/language/Buttons/ToggleSidebar/Hint": {
"title": "$:/language/Buttons/ToggleSidebar/Hint",
"text": "Toggle the sidebar visibility"
},
"$:/language/Buttons/Transcludify/Caption": {
"title": "$:/language/Buttons/Transcludify/Caption",
"text": "transclusion"
},
"$:/language/Buttons/Transcludify/Hint": {
"title": "$:/language/Buttons/Transcludify/Hint",
"text": "Wrap selection in curly brackets"
},
"$:/language/Buttons/Underline/Caption": {
"title": "$:/language/Buttons/Underline/Caption",
"text": "underline"
},
"$:/language/Buttons/Underline/Hint": {
"title": "$:/language/Buttons/Underline/Hint",
"text": "Apply underline formatting to selection"
},
"$:/language/ControlPanel/Advanced/Caption": {
"title": "$:/language/ControlPanel/Advanced/Caption",
"text": "Advanced"
},
"$:/language/ControlPanel/Advanced/Hint": {
"title": "$:/language/ControlPanel/Advanced/Hint",
"text": "Internal information about this TiddlyWiki"
},
"$:/language/ControlPanel/Appearance/Caption": {
"title": "$:/language/ControlPanel/Appearance/Caption",
"text": "Appearance"
},
"$:/language/ControlPanel/Appearance/Hint": {
"title": "$:/language/ControlPanel/Appearance/Hint",
"text": "Ways to customise the appearance of your TiddlyWiki."
},
"$:/language/ControlPanel/Basics/AnimDuration/Prompt": {
"title": "$:/language/ControlPanel/Basics/AnimDuration/Prompt",
"text": "Animation duration:"
},
"$:/language/ControlPanel/Basics/Caption": {
"title": "$:/language/ControlPanel/Basics/Caption",
"text": "Basics"
},
"$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint": {
"title": "$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint",
"text": "Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set=\"$:/DefaultTiddlers\" setTo=\"[list[$:/StoryList]]\">retain story ordering</$button>"
},
"$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt": {
"title": "$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt",
"text": "Default tiddlers:"
},
"$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint": {
"title": "$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint",
"text": "Choose which tiddlers are displayed at startup:"
},
"$:/language/ControlPanel/Basics/Language/Prompt": {
"title": "$:/language/ControlPanel/Basics/Language/Prompt",
"text": "Hello! Current language:"
},
"$:/language/ControlPanel/Basics/NewJournal/Title/Prompt": {
"title": "$:/language/ControlPanel/Basics/NewJournal/Title/Prompt",
"text": "Title of new journal tiddlers"
},
"$:/language/ControlPanel/Basics/NewJournal/Text/Prompt": {
"title": "$:/language/ControlPanel/Basics/NewJournal/Text/Prompt",
"text": "Text for new journal tiddlers"
},
"$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt": {
"title": "$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt",
"text": "Tags for new journal tiddlers"
},
"$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt": {
"title": "$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt",
"text": "Title of new tiddlers"
},
"$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt": {
"title": "$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt",
"text": "Number of overridden shadow tiddlers:"
},
"$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt": {
"title": "$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt",
"text": "Number of shadow tiddlers:"
},
"$:/language/ControlPanel/Basics/Subtitle/Prompt": {
"title": "$:/language/ControlPanel/Basics/Subtitle/Prompt",
"text": "Subtitle:"
},
"$:/language/ControlPanel/Basics/SystemTiddlers/Prompt": {
"title": "$:/language/ControlPanel/Basics/SystemTiddlers/Prompt",
"text": "Number of system tiddlers:"
},
"$:/language/ControlPanel/Basics/Tags/Prompt": {
"title": "$:/language/ControlPanel/Basics/Tags/Prompt",
"text": "Number of tags:"
},
"$:/language/ControlPanel/Basics/Tiddlers/Prompt": {
"title": "$:/language/ControlPanel/Basics/Tiddlers/Prompt",
"text": "Number of tiddlers:"
},
"$:/language/ControlPanel/Basics/Title/Prompt": {
"title": "$:/language/ControlPanel/Basics/Title/Prompt",
"text": "Title of this ~TiddlyWiki:"
},
"$:/language/ControlPanel/Basics/Username/Prompt": {
"title": "$:/language/ControlPanel/Basics/Username/Prompt",
"text": "Username for signing edits:"
},
"$:/language/ControlPanel/Basics/Version/Prompt": {
"title": "$:/language/ControlPanel/Basics/Version/Prompt",
"text": "~TiddlyWiki version:"
},
"$:/language/ControlPanel/EditorTypes/Caption": {
"title": "$:/language/ControlPanel/EditorTypes/Caption",
"text": "Editor Types"
},
"$:/language/ControlPanel/EditorTypes/Editor/Caption": {
"title": "$:/language/ControlPanel/EditorTypes/Editor/Caption",
"text": "Editor"
},
"$:/language/ControlPanel/EditorTypes/Hint": {
"title": "$:/language/ControlPanel/EditorTypes/Hint",
"text": "These tiddlers determine which editor is used to edit specific tiddler types."
},
"$:/language/ControlPanel/EditorTypes/Type/Caption": {
"title": "$:/language/ControlPanel/EditorTypes/Type/Caption",
"text": "Type"
},
"$:/language/ControlPanel/Info/Caption": {
"title": "$:/language/ControlPanel/Info/Caption",
"text": "Info"
},
"$:/language/ControlPanel/Info/Hint": {
"title": "$:/language/ControlPanel/Info/Hint",
"text": "Information about this TiddlyWiki"
},
"$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt",
"text": "Type shortcut here"
},
"$:/language/ControlPanel/KeyboardShortcuts/Add/Caption": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Caption",
"text": "add shortcut"
},
"$:/language/ControlPanel/KeyboardShortcuts/Caption": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Caption",
"text": "Keyboard Shortcuts"
},
"$:/language/ControlPanel/KeyboardShortcuts/Hint": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Hint",
"text": "Manage keyboard shortcut assignments"
},
"$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption",
"text": "No keyboard shortcuts assigned"
},
"$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint",
"text": "remove keyboard shortcut"
},
"$:/language/ControlPanel/KeyboardShortcuts/Platform/All": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/All",
"text": "All platforms"
},
"$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac",
"text": "Macintosh platform only"
},
"$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac",
"text": "Non-Macintosh platforms only"
},
"$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux",
"text": "Linux platform only"
},
"$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux",
"text": "Non-Linux platforms only"
},
"$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows",
"text": "Windows platform only"
},
"$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows": {
"title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows",
"text": "Non-Windows platforms only"
},
"$:/language/ControlPanel/LoadedModules/Caption": {
"title": "$:/language/ControlPanel/LoadedModules/Caption",
"text": "Loaded Modules"
},
"$:/language/ControlPanel/LoadedModules/Hint": {
"title": "$:/language/ControlPanel/LoadedModules/Hint",
"text": "These are the currently loaded tiddler modules linked to their source tiddlers. Any italicised modules lack a source tiddler, typically because they were setup during the boot process."
},
"$:/language/ControlPanel/Palette/Caption": {
"title": "$:/language/ControlPanel/Palette/Caption",
"text": "Palette"
},
"$:/language/ControlPanel/Palette/Editor/Clone/Caption": {
"title": "$:/language/ControlPanel/Palette/Editor/Clone/Caption",
"text": "clone"
},
"$:/language/ControlPanel/Palette/Editor/Clone/Prompt": {
"title": "$:/language/ControlPanel/Palette/Editor/Clone/Prompt",
"text": "It is recommended that you clone this shadow palette before editing it"
},
"$:/language/ControlPanel/Palette/Editor/Delete/Hint": {
"title": "$:/language/ControlPanel/Palette/Editor/Delete/Hint",
"text": "delete this entry from the current palette"
},
"$:/language/ControlPanel/Palette/Editor/Names/External/Show": {
"title": "$:/language/ControlPanel/Palette/Editor/Names/External/Show",
"text": "Show color names that are not part of the current palette"
},
"$:/language/ControlPanel/Palette/Editor/Prompt/Modified": {
"title": "$:/language/ControlPanel/Palette/Editor/Prompt/Modified",
"text": "This shadow palette has been modified"
},
"$:/language/ControlPanel/Palette/Editor/Prompt": {
"title": "$:/language/ControlPanel/Palette/Editor/Prompt",
"text": "Editing"
},
"$:/language/ControlPanel/Palette/Editor/Reset/Caption": {
"title": "$:/language/ControlPanel/Palette/Editor/Reset/Caption",
"text": "reset"
},
"$:/language/ControlPanel/Palette/HideEditor/Caption": {
"title": "$:/language/ControlPanel/Palette/HideEditor/Caption",
"text": "hide editor"
},
"$:/language/ControlPanel/Palette/Prompt": {
"title": "$:/language/ControlPanel/Palette/Prompt",
"text": "Current palette:"
},
"$:/language/ControlPanel/Palette/ShowEditor/Caption": {
"title": "$:/language/ControlPanel/Palette/ShowEditor/Caption",
"text": "show editor"
},
"$:/language/ControlPanel/Parsing/Caption": {
"title": "$:/language/ControlPanel/Parsing/Caption",
"text": "Parsing"
},
"$:/language/ControlPanel/Parsing/Hint": {
"title": "$:/language/ControlPanel/Parsing/Hint",
"text": "Here you can globally disable/enable wiki parser rules. For changes to take effect, save and reload your wiki. Disabling certain parser rules can prevent <$text text=\"TiddlyWiki\"/> from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation."
},
"$:/language/ControlPanel/Parsing/Block/Caption": {
"title": "$:/language/ControlPanel/Parsing/Block/Caption",
"text": "Block Parse Rules"
},
"$:/language/ControlPanel/Parsing/Inline/Caption": {
"title": "$:/language/ControlPanel/Parsing/Inline/Caption",
"text": "Inline Parse Rules"
},
"$:/language/ControlPanel/Parsing/Pragma/Caption": {
"title": "$:/language/ControlPanel/Parsing/Pragma/Caption",
"text": "Pragma Parse Rules"
},
"$:/language/ControlPanel/Plugins/Add/Caption": {
"title": "$:/language/ControlPanel/Plugins/Add/Caption",
"text": "Get more plugins"
},
"$:/language/ControlPanel/Plugins/Add/Hint": {
"title": "$:/language/ControlPanel/Plugins/Add/Hint",
"text": "Install plugins from the official library"
},
"$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint": {
"title": "$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint",
"text": "This plugin is already installed at version <$text text=<<installedVersion>>/>"
},
"$:/language/ControlPanel/Plugins/Caption": {
"title": "$:/language/ControlPanel/Plugins/Caption",
"text": "Plugins"
},
"$:/language/ControlPanel/Plugins/Disable/Caption": {
"title": "$:/language/ControlPanel/Plugins/Disable/Caption",
"text": "disable"
},
"$:/language/ControlPanel/Plugins/Disable/Hint": {
"title": "$:/language/ControlPanel/Plugins/Disable/Hint",
"text": "Disable this plugin when reloading page"
},
"$:/language/ControlPanel/Plugins/Disabled/Status": {
"title": "$:/language/ControlPanel/Plugins/Disabled/Status",
"text": "(disabled)"
},
"$:/language/ControlPanel/Plugins/Empty/Hint": {
"title": "$:/language/ControlPanel/Plugins/Empty/Hint",
"text": "None"
},
"$:/language/ControlPanel/Plugins/Enable/Caption": {
"title": "$:/language/ControlPanel/Plugins/Enable/Caption",
"text": "enable"
},
"$:/language/ControlPanel/Plugins/Enable/Hint": {
"title": "$:/language/ControlPanel/Plugins/Enable/Hint",
"text": "Enable this plugin when reloading page"
},
"$:/language/ControlPanel/Plugins/Install/Caption": {
"title": "$:/language/ControlPanel/Plugins/Install/Caption",
"text": "install"
},
"$:/language/ControlPanel/Plugins/Installed/Hint": {
"title": "$:/language/ControlPanel/Plugins/Installed/Hint",
"text": "Currently installed plugins:"
},
"$:/language/ControlPanel/Plugins/Languages/Caption": {
"title": "$:/language/ControlPanel/Plugins/Languages/Caption",
"text": "Languages"
},
"$:/language/ControlPanel/Plugins/Languages/Hint": {
"title": "$:/language/ControlPanel/Plugins/Languages/Hint",
"text": "Language pack plugins"
},
"$:/language/ControlPanel/Plugins/NoInfoFound/Hint": {
"title": "$:/language/ControlPanel/Plugins/NoInfoFound/Hint",
"text": "No ''\"<$text text=<<currentTab>>/>\"'' found"
},
"$:/language/ControlPanel/Plugins/NotInstalled/Hint": {
"title": "$:/language/ControlPanel/Plugins/NotInstalled/Hint",
"text": "This plugin is not currently installed"
},
"$:/language/ControlPanel/Plugins/OpenPluginLibrary": {
"title": "$:/language/ControlPanel/Plugins/OpenPluginLibrary",
"text": "open plugin library"
},
"$:/language/ControlPanel/Plugins/ClosePluginLibrary": {
"title": "$:/language/ControlPanel/Plugins/ClosePluginLibrary",
"text": "close plugin library"
},
"$:/language/ControlPanel/Plugins/Plugins/Caption": {
"title": "$:/language/ControlPanel/Plugins/Plugins/Caption",
"text": "Plugins"
},
"$:/language/ControlPanel/Plugins/Plugins/Hint": {
"title": "$:/language/ControlPanel/Plugins/Plugins/Hint",
"text": "Plugins"
},
"$:/language/ControlPanel/Plugins/Reinstall/Caption": {
"title": "$:/language/ControlPanel/Plugins/Reinstall/Caption",
"text": "reinstall"
},
"$:/language/ControlPanel/Plugins/Themes/Caption": {
"title": "$:/language/ControlPanel/Plugins/Themes/Caption",
"text": "Themes"
},
"$:/language/ControlPanel/Plugins/Themes/Hint": {
"title": "$:/language/ControlPanel/Plugins/Themes/Hint",
"text": "Theme plugins"
},
"$:/language/ControlPanel/Saving/Caption": {
"title": "$:/language/ControlPanel/Saving/Caption",
"text": "Saving"
},
"$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description": {
"title": "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description",
"text": "Permit automatic saving for the download saver"
},
"$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint": {
"title": "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint",
"text": "Enable Autosave for Download Saver"
},
"$:/language/ControlPanel/Saving/DownloadSaver/Caption": {
"title": "$:/language/ControlPanel/Saving/DownloadSaver/Caption",
"text": "Download Saver"
},
"$:/language/ControlPanel/Saving/DownloadSaver/Hint": {
"title": "$:/language/ControlPanel/Saving/DownloadSaver/Hint",
"text": "These settings apply to the HTML5-compatible download saver"
},
"$:/language/ControlPanel/Saving/General/Caption": {
"title": "$:/language/ControlPanel/Saving/General/Caption",
"text": "General"
},
"$:/language/ControlPanel/Saving/General/Hint": {
"title": "$:/language/ControlPanel/Saving/General/Hint",
"text": "These settings apply to all the loaded savers"
},
"$:/language/ControlPanel/Saving/Hint": {
"title": "$:/language/ControlPanel/Saving/Hint",
"text": "Settings used for saving the entire TiddlyWiki as a single file via a saver module"
},
"$:/language/ControlPanel/Saving/GitService/Branch": {
"title": "$:/language/ControlPanel/Saving/GitService/Branch",
"text": "Target branch for saving"
},
"$:/language/ControlPanel/Saving/GitService/CommitMessage": {
"title": "$:/language/ControlPanel/Saving/GitService/CommitMessage",
"text": "Saved by TiddlyWiki"
},
"$:/language/ControlPanel/Saving/GitService/Description": {
"title": "$:/language/ControlPanel/Saving/GitService/Description",
"text": "These settings are only used when saving to <<service-name>>"
},
"$:/language/ControlPanel/Saving/GitService/Filename": {
"title": "$:/language/ControlPanel/Saving/GitService/Filename",
"text": "Filename of target file (e.g. `index.html`)"
},
"$:/language/ControlPanel/Saving/GitService/Path": {
"title": "$:/language/ControlPanel/Saving/GitService/Path",
"text": "Path to target file (e.g. `/wiki/`)"
},
"$:/language/ControlPanel/Saving/GitService/Repo": {
"title": "$:/language/ControlPanel/Saving/GitService/Repo",
"text": "Target repository (e.g. `Jermolene/TiddlyWiki5`)"
},
"$:/language/ControlPanel/Saving/GitService/ServerURL": {
"title": "$:/language/ControlPanel/Saving/GitService/ServerURL",
"text": "Server API URL"
},
"$:/language/ControlPanel/Saving/GitService/UserName": {
"title": "$:/language/ControlPanel/Saving/GitService/UserName",
"text": "Username"
},
"$:/language/ControlPanel/Saving/GitService/GitHub/Caption": {
"title": "$:/language/ControlPanel/Saving/GitService/GitHub/Caption",
"text": "~GitHub Saver"
},
"$:/language/ControlPanel/Saving/GitService/GitHub/Password": {
"title": "$:/language/ControlPanel/Saving/GitService/GitHub/Password",
"text": "Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)"
},
"$:/language/ControlPanel/Saving/GitService/GitLab/Caption": {
"title": "$:/language/ControlPanel/Saving/GitService/GitLab/Caption",
"text": "~GitLab Saver"
},
"$:/language/ControlPanel/Saving/GitService/GitLab/Password": {
"title": "$:/language/ControlPanel/Saving/GitService/GitLab/Password",
"text": "Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading",
"text": "Advanced Settings"
},
"$:/language/ControlPanel/Saving/TiddlySpot/BackupDir": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/BackupDir",
"text": "Backup Directory"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Backups": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Backups",
"text": "Backups"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Caption": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Caption",
"text": "~TiddlySpot Saver"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Description": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Description",
"text": "These settings are only used when saving to http://tiddlyspot.com or a compatible remote server"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Filename": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Filename",
"text": "Upload Filename"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Heading": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Heading",
"text": "~TiddlySpot"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Hint": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Hint",
"text": "//The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//"
},
"$:/language/ControlPanel/Saving/TiddlySpot/Password": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/Password",
"text": "Password"
},
"$:/language/ControlPanel/Saving/TiddlySpot/ServerURL": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/ServerURL",
"text": "Server URL"
},
"$:/language/ControlPanel/Saving/TiddlySpot/UploadDir": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/UploadDir",
"text": "Upload Directory"
},
"$:/language/ControlPanel/Saving/TiddlySpot/UserName": {
"title": "$:/language/ControlPanel/Saving/TiddlySpot/UserName",
"text": "Wiki Name"
},
"$:/language/ControlPanel/Settings/AutoSave/Caption": {
"title": "$:/language/ControlPanel/Settings/AutoSave/Caption",
"text": "Autosave"
},
"$:/language/ControlPanel/Settings/AutoSave/Disabled/Description": {
"title": "$:/language/ControlPanel/Settings/AutoSave/Disabled/Description",
"text": "Do not save changes automatically"
},
"$:/language/ControlPanel/Settings/AutoSave/Enabled/Description": {
"title": "$:/language/ControlPanel/Settings/AutoSave/Enabled/Description",
"text": "Save changes automatically"
},
"$:/language/ControlPanel/Settings/AutoSave/Hint": {
"title": "$:/language/ControlPanel/Settings/AutoSave/Hint",
"text": "Attempt to automatically save changes during editing when using a supporting saver"
},
"$:/language/ControlPanel/Settings/CamelCase/Caption": {
"title": "$:/language/ControlPanel/Settings/CamelCase/Caption",
"text": "Camel Case Wiki Links"
},
"$:/language/ControlPanel/Settings/CamelCase/Hint": {
"title": "$:/language/ControlPanel/Settings/CamelCase/Hint",
"text": "You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect"
},
"$:/language/ControlPanel/Settings/CamelCase/Description": {
"title": "$:/language/ControlPanel/Settings/CamelCase/Description",
"text": "Enable automatic ~CamelCase linking"
},
"$:/language/ControlPanel/Settings/Caption": {
"title": "$:/language/ControlPanel/Settings/Caption",
"text": "Settings"
},
"$:/language/ControlPanel/Settings/EditorToolbar/Caption": {
"title": "$:/language/ControlPanel/Settings/EditorToolbar/Caption",
"text": "Editor Toolbar"
},
"$:/language/ControlPanel/Settings/EditorToolbar/Hint": {
"title": "$:/language/ControlPanel/Settings/EditorToolbar/Hint",
"text": "Enable or disable the editor toolbar:"
},
"$:/language/ControlPanel/Settings/EditorToolbar/Description": {
"title": "$:/language/ControlPanel/Settings/EditorToolbar/Description",
"text": "Show editor toolbar"
},
"$:/language/ControlPanel/Settings/InfoPanelMode/Caption": {
"title": "$:/language/ControlPanel/Settings/InfoPanelMode/Caption",
"text": "Tiddler Info Panel Mode"
},
"$:/language/ControlPanel/Settings/InfoPanelMode/Hint": {
"title": "$:/language/ControlPanel/Settings/InfoPanelMode/Hint",
"text": "Control when the tiddler info panel closes:"
},
"$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description": {
"title": "$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description",
"text": "Tiddler info panel closes automatically"
},
"$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description": {
"title": "$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description",
"text": "Tiddler info panel stays open until explicitly closed"
},
"$:/language/ControlPanel/Settings/Hint": {
"title": "$:/language/ControlPanel/Settings/Hint",
"text": "These settings let you customise the behaviour of TiddlyWiki."
},
"$:/language/ControlPanel/Settings/NavigationAddressBar/Caption": {
"title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Caption",
"text": "Navigation Address Bar"
},
"$:/language/ControlPanel/Settings/NavigationAddressBar/Hint": {
"title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Hint",
"text": "Behaviour of the browser address bar when navigating to a tiddler:"
},
"$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description": {
"title": "$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description",
"text": "Do not update the address bar"
},
"$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description": {
"title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description",
"text": "Include the target tiddler"
},
"$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description": {
"title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description",
"text": "Include the target tiddler and the current story sequence"
},
"$:/language/ControlPanel/Settings/NavigationHistory/Caption": {
"title": "$:/language/ControlPanel/Settings/NavigationHistory/Caption",
"text": "Navigation History"
},
"$:/language/ControlPanel/Settings/NavigationHistory/Hint": {
"title": "$:/language/ControlPanel/Settings/NavigationHistory/Hint",
"text": "Update browser history when navigating to a tiddler:"
},
"$:/language/ControlPanel/Settings/NavigationHistory/No/Description": {
"title": "$:/language/ControlPanel/Settings/NavigationHistory/No/Description",
"text": "Do not update history"
},
"$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description": {
"title": "$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description",
"text": "Update history"
},
"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption": {
"title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption",
"text": "Permalink/permaview Mode"
},
"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint": {
"title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint",
"text": "Choose how permalink/permaview is handled:"
},
"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description": {
"title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description",
"text": "Copy permalink/permaview URL to clipboard"
},
"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description": {
"title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description",
"text": "Update address bar with permalink/permaview URL"
},
"$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption": {
"title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption",
"text": "Performance Instrumentation"
},
"$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint": {
"title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint",
"text": "Displays performance statistics in the browser developer console. Requires reload to take effect"
},
"$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description": {
"title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description",
"text": "Enable performance instrumentation"
},
"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption",
"text": "Toolbar Button Style"
},
"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint",
"text": "Choose the style for toolbar buttons:"
},
"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless",
"text": "Borderless"
},
"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed",
"text": "Boxed"
},
"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded",
"text": "Rounded"
},
"$:/language/ControlPanel/Settings/ToolbarButtons/Caption": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtons/Caption",
"text": "Toolbar Buttons"
},
"$:/language/ControlPanel/Settings/ToolbarButtons/Hint": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtons/Hint",
"text": "Default toolbar button appearance:"
},
"$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description",
"text": "Include icon"
},
"$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description": {
"title": "$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description",
"text": "Include text"
},
"$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption": {
"title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption",
"text": "Default Sidebar Tab"
},
"$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint": {
"title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint",
"text": "Specify which sidebar tab is displayed by default"
},
"$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption": {
"title": "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption",
"text": "Default More Sidebar Tab"
},
"$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint": {
"title": "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint",
"text": "Specify which More sidebar tab is displayed by default"
},
"$:/language/ControlPanel/Settings/LinkToBehaviour/Caption": {
"title": "$:/language/ControlPanel/Settings/LinkToBehaviour/Caption",
"text": "Tiddler Opening Behaviour"
},
"$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint": {
"title": "$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint",
"text": "Navigation from //within// the story river"
},
"$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint": {
"title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint",
"text": "Navigation from //outside// the story river"
},
"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove": {
"title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove",
"text": "Open above the current tiddler"
},
"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow": {
"title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow",
"text": "Open below the current tiddler"
},
"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop": {
"title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop",
"text": "Open at the top of the story river"
},
"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom": {
"title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom",
"text": "Open at the bottom of the story river"
},
"$:/language/ControlPanel/Settings/TitleLinks/Caption": {
"title": "$:/language/ControlPanel/Settings/TitleLinks/Caption",
"text": "Tiddler Titles"
},
"$:/language/ControlPanel/Settings/TitleLinks/Hint": {
"title": "$:/language/ControlPanel/Settings/TitleLinks/Hint",
"text": "Optionally display tiddler titles as links"
},
"$:/language/ControlPanel/Settings/TitleLinks/No/Description": {
"title": "$:/language/ControlPanel/Settings/TitleLinks/No/Description",
"text": "Do not display tiddler titles as links"
},
"$:/language/ControlPanel/Settings/TitleLinks/Yes/Description": {
"title": "$:/language/ControlPanel/Settings/TitleLinks/Yes/Description",
"text": "Display tiddler titles as links"
},
"$:/language/ControlPanel/Settings/MissingLinks/Caption": {
"title": "$:/language/ControlPanel/Settings/MissingLinks/Caption",
"text": "Wiki Links"
},
"$:/language/ControlPanel/Settings/MissingLinks/Hint": {
"title": "$:/language/ControlPanel/Settings/MissingLinks/Hint",
"text": "Choose whether to link to tiddlers that do not exist yet"
},
"$:/language/ControlPanel/Settings/MissingLinks/Description": {
"title": "$:/language/ControlPanel/Settings/MissingLinks/Description",
"text": "Enable links to missing tiddlers"
},
"$:/language/ControlPanel/StoryView/Caption": {
"title": "$:/language/ControlPanel/StoryView/Caption",
"text": "Story View"
},
"$:/language/ControlPanel/StoryView/Prompt": {
"title": "$:/language/ControlPanel/StoryView/Prompt",
"text": "Current view:"
},
"$:/language/ControlPanel/Stylesheets/Caption": {
"title": "$:/language/ControlPanel/Stylesheets/Caption",
"text": "Stylesheets"
},
"$:/language/ControlPanel/Stylesheets/Expand/Caption": {
"title": "$:/language/ControlPanel/Stylesheets/Expand/Caption",
"text": "Expand All"
},
"$:/language/ControlPanel/Stylesheets/Hint": {
"title": "$:/language/ControlPanel/Stylesheets/Hint",
"text": "This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag \"$:/tags/Stylesheet\">>"
},
"$:/language/ControlPanel/Stylesheets/Restore/Caption": {
"title": "$:/language/ControlPanel/Stylesheets/Restore/Caption",
"text": "Restore"
},
"$:/language/ControlPanel/Theme/Caption": {
"title": "$:/language/ControlPanel/Theme/Caption",
"text": "Theme"
},
"$:/language/ControlPanel/Theme/Prompt": {
"title": "$:/language/ControlPanel/Theme/Prompt",
"text": "Current theme:"
},
"$:/language/ControlPanel/TiddlerFields/Caption": {
"title": "$:/language/ControlPanel/TiddlerFields/Caption",
"text": "Tiddler Fields"
},
"$:/language/ControlPanel/TiddlerFields/Hint": {
"title": "$:/language/ControlPanel/TiddlerFields/Hint",
"text": "This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers)."
},
"$:/language/ControlPanel/Toolbars/Caption": {
"title": "$:/language/ControlPanel/Toolbars/Caption",
"text": "Toolbars"
},
"$:/language/ControlPanel/Toolbars/EditToolbar/Caption": {
"title": "$:/language/ControlPanel/Toolbars/EditToolbar/Caption",
"text": "Edit Toolbar"
},
"$:/language/ControlPanel/Toolbars/EditToolbar/Hint": {
"title": "$:/language/ControlPanel/Toolbars/EditToolbar/Hint",
"text": "Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering"
},
"$:/language/ControlPanel/Toolbars/Hint": {
"title": "$:/language/ControlPanel/Toolbars/Hint",
"text": "Select which toolbar buttons are displayed"
},
"$:/language/ControlPanel/Toolbars/PageControls/Caption": {
"title": "$:/language/ControlPanel/Toolbars/PageControls/Caption",
"text": "Page Toolbar"
},
"$:/language/ControlPanel/Toolbars/PageControls/Hint": {
"title": "$:/language/ControlPanel/Toolbars/PageControls/Hint",
"text": "Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering"
},
"$:/language/ControlPanel/Toolbars/EditorToolbar/Caption": {
"title": "$:/language/ControlPanel/Toolbars/EditorToolbar/Caption",
"text": "Editor Toolbar"
},
"$:/language/ControlPanel/Toolbars/EditorToolbar/Hint": {
"title": "$:/language/ControlPanel/Toolbars/EditorToolbar/Hint",
"text": "Choose which buttons are displayed in the editor toolbar. Note that some buttons will only appear when editing tiddlers of a certain type. Drag and drop to change the ordering"
},
"$:/language/ControlPanel/Toolbars/ViewToolbar/Caption": {
"title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Caption",
"text": "View Toolbar"
},
"$:/language/ControlPanel/Toolbars/ViewToolbar/Hint": {
"title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Hint",
"text": "Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering"
},
"$:/language/ControlPanel/Tools/Download/Full/Caption": {
"title": "$:/language/ControlPanel/Tools/Download/Full/Caption",
"text": "Download full wiki"
},
"$:/language/Date/DaySuffix/1": {
"title": "$:/language/Date/DaySuffix/1",
"text": "st"
},
"$:/language/Date/DaySuffix/2": {
"title": "$:/language/Date/DaySuffix/2",
"text": "nd"
},
"$:/language/Date/DaySuffix/3": {
"title": "$:/language/Date/DaySuffix/3",
"text": "rd"
},
"$:/language/Date/DaySuffix/4": {
"title": "$:/language/Date/DaySuffix/4",
"text": "th"
},
"$:/language/Date/DaySuffix/5": {
"title": "$:/language/Date/DaySuffix/5",
"text": "th"
},
"$:/language/Date/DaySuffix/6": {
"title": "$:/language/Date/DaySuffix/6",
"text": "th"
},
"$:/language/Date/DaySuffix/7": {
"title": "$:/language/Date/DaySuffix/7",
"text": "th"
},
"$:/language/Date/DaySuffix/8": {
"title": "$:/language/Date/DaySuffix/8",
"text": "th"
},
"$:/language/Date/DaySuffix/9": {
"title": "$:/language/Date/DaySuffix/9",
"text": "th"
},
"$:/language/Date/DaySuffix/10": {
"title": "$:/language/Date/DaySuffix/10",
"text": "th"
},
"$:/language/Date/DaySuffix/11": {
"title": "$:/language/Date/DaySuffix/11",
"text": "th"
},
"$:/language/Date/DaySuffix/12": {
"title": "$:/language/Date/DaySuffix/12",
"text": "th"
},
"$:/language/Date/DaySuffix/13": {
"title": "$:/language/Date/DaySuffix/13",
"text": "th"
},
"$:/language/Date/DaySuffix/14": {
"title": "$:/language/Date/DaySuffix/14",
"text": "th"
},
"$:/language/Date/DaySuffix/15": {
"title": "$:/language/Date/DaySuffix/15",
"text": "th"
},
"$:/language/Date/DaySuffix/16": {
"title": "$:/language/Date/DaySuffix/16",
"text": "th"
},
"$:/language/Date/DaySuffix/17": {
"title": "$:/language/Date/DaySuffix/17",
"text": "th"
},
"$:/language/Date/DaySuffix/18": {
"title": "$:/language/Date/DaySuffix/18",
"text": "th"
},
"$:/language/Date/DaySuffix/19": {
"title": "$:/language/Date/DaySuffix/19",
"text": "th"
},
"$:/language/Date/DaySuffix/20": {
"title": "$:/language/Date/DaySuffix/20",
"text": "th"
},
"$:/language/Date/DaySuffix/21": {
"title": "$:/language/Date/DaySuffix/21",
"text": "st"
},
"$:/language/Date/DaySuffix/22": {
"title": "$:/language/Date/DaySuffix/22",
"text": "nd"
},
"$:/language/Date/DaySuffix/23": {
"title": "$:/language/Date/DaySuffix/23",
"text": "rd"
},
"$:/language/Date/DaySuffix/24": {
"title": "$:/language/Date/DaySuffix/24",
"text": "th"
},
"$:/language/Date/DaySuffix/25": {
"title": "$:/language/Date/DaySuffix/25",
"text": "th"
},
"$:/language/Date/DaySuffix/26": {
"title": "$:/language/Date/DaySuffix/26",
"text": "th"
},
"$:/language/Date/DaySuffix/27": {
"title": "$:/language/Date/DaySuffix/27",
"text": "th"
},
"$:/language/Date/DaySuffix/28": {
"title": "$:/language/Date/DaySuffix/28",
"text": "th"
},
"$:/language/Date/DaySuffix/29": {
"title": "$:/language/Date/DaySuffix/29",
"text": "th"
},
"$:/language/Date/DaySuffix/30": {
"title": "$:/language/Date/DaySuffix/30",
"text": "th"
},
"$:/language/Date/DaySuffix/31": {
"title": "$:/language/Date/DaySuffix/31",
"text": "st"
},
"$:/language/Date/Long/Day/0": {
"title": "$:/language/Date/Long/Day/0",
"text": "Sunday"
},
"$:/language/Date/Long/Day/1": {
"title": "$:/language/Date/Long/Day/1",
"text": "Monday"
},
"$:/language/Date/Long/Day/2": {
"title": "$:/language/Date/Long/Day/2",
"text": "Tuesday"
},
"$:/language/Date/Long/Day/3": {
"title": "$:/language/Date/Long/Day/3",
"text": "Wednesday"
},
"$:/language/Date/Long/Day/4": {
"title": "$:/language/Date/Long/Day/4",
"text": "Thursday"
},
"$:/language/Date/Long/Day/5": {
"title": "$:/language/Date/Long/Day/5",
"text": "Friday"
},
"$:/language/Date/Long/Day/6": {
"title": "$:/language/Date/Long/Day/6",
"text": "Saturday"
},
"$:/language/Date/Long/Month/1": {
"title": "$:/language/Date/Long/Month/1",
"text": "January"
},
"$:/language/Date/Long/Month/2": {
"title": "$:/language/Date/Long/Month/2",
"text": "February"
},
"$:/language/Date/Long/Month/3": {
"title": "$:/language/Date/Long/Month/3",
"text": "March"
},
"$:/language/Date/Long/Month/4": {
"title": "$:/language/Date/Long/Month/4",
"text": "April"
},
"$:/language/Date/Long/Month/5": {
"title": "$:/language/Date/Long/Month/5",
"text": "May"
},
"$:/language/Date/Long/Month/6": {
"title": "$:/language/Date/Long/Month/6",
"text": "June"
},
"$:/language/Date/Long/Month/7": {
"title": "$:/language/Date/Long/Month/7",
"text": "July"
},
"$:/language/Date/Long/Month/8": {
"title": "$:/language/Date/Long/Month/8",
"text": "August"
},
"$:/language/Date/Long/Month/9": {
"title": "$:/language/Date/Long/Month/9",
"text": "September"
},
"$:/language/Date/Long/Month/10": {
"title": "$:/language/Date/Long/Month/10",
"text": "October"
},
"$:/language/Date/Long/Month/11": {
"title": "$:/language/Date/Long/Month/11",
"text": "November"
},
"$:/language/Date/Long/Month/12": {
"title": "$:/language/Date/Long/Month/12",
"text": "December"
},
"$:/language/Date/Period/am": {
"title": "$:/language/Date/Period/am",
"text": "am"
},
"$:/language/Date/Period/pm": {
"title": "$:/language/Date/Period/pm",
"text": "pm"
},
"$:/language/Date/Short/Day/0": {
"title": "$:/language/Date/Short/Day/0",
"text": "Sun"
},
"$:/language/Date/Short/Day/1": {
"title": "$:/language/Date/Short/Day/1",
"text": "Mon"
},
"$:/language/Date/Short/Day/2": {
"title": "$:/language/Date/Short/Day/2",
"text": "Tue"
},
"$:/language/Date/Short/Day/3": {
"title": "$:/language/Date/Short/Day/3",
"text": "Wed"
},
"$:/language/Date/Short/Day/4": {
"title": "$:/language/Date/Short/Day/4",
"text": "Thu"
},
"$:/language/Date/Short/Day/5": {
"title": "$:/language/Date/Short/Day/5",
"text": "Fri"
},
"$:/language/Date/Short/Day/6": {
"title": "$:/language/Date/Short/Day/6",
"text": "Sat"
},
"$:/language/Date/Short/Month/1": {
"title": "$:/language/Date/Short/Month/1",
"text": "Jan"
},
"$:/language/Date/Short/Month/2": {
"title": "$:/language/Date/Short/Month/2",
"text": "Feb"
},
"$:/language/Date/Short/Month/3": {
"title": "$:/language/Date/Short/Month/3",
"text": "Mar"
},
"$:/language/Date/Short/Month/4": {
"title": "$:/language/Date/Short/Month/4",
"text": "Apr"
},
"$:/language/Date/Short/Month/5": {
"title": "$:/language/Date/Short/Month/5",
"text": "May"
},
"$:/language/Date/Short/Month/6": {
"title": "$:/language/Date/Short/Month/6",
"text": "Jun"
},
"$:/language/Date/Short/Month/7": {
"title": "$:/language/Date/Short/Month/7",
"text": "Jul"
},
"$:/language/Date/Short/Month/8": {
"title": "$:/language/Date/Short/Month/8",
"text": "Aug"
},
"$:/language/Date/Short/Month/9": {
"title": "$:/language/Date/Short/Month/9",
"text": "Sep"
},
"$:/language/Date/Short/Month/10": {
"title": "$:/language/Date/Short/Month/10",
"text": "Oct"
},
"$:/language/Date/Short/Month/11": {
"title": "$:/language/Date/Short/Month/11",
"text": "Nov"
},
"$:/language/Date/Short/Month/12": {
"title": "$:/language/Date/Short/Month/12",
"text": "Dec"
},
"$:/language/RelativeDate/Future/Days": {
"title": "$:/language/RelativeDate/Future/Days",
"text": "<<period>> days from now"
},
"$:/language/RelativeDate/Future/Hours": {
"title": "$:/language/RelativeDate/Future/Hours",
"text": "<<period>> hours from now"
},
"$:/language/RelativeDate/Future/Minutes": {
"title": "$:/language/RelativeDate/Future/Minutes",
"text": "<<period>> minutes from now"
},
"$:/language/RelativeDate/Future/Months": {
"title": "$:/language/RelativeDate/Future/Months",
"text": "<<period>> months from now"
},
"$:/language/RelativeDate/Future/Second": {
"title": "$:/language/RelativeDate/Future/Second",
"text": "1 second from now"
},
"$:/language/RelativeDate/Future/Seconds": {
"title": "$:/language/RelativeDate/Future/Seconds",
"text": "<<period>> seconds from now"
},
"$:/language/RelativeDate/Future/Years": {
"title": "$:/language/RelativeDate/Future/Years",
"text": "<<period>> years from now"
},
"$:/language/RelativeDate/Past/Days": {
"title": "$:/language/RelativeDate/Past/Days",
"text": "<<period>> days ago"
},
"$:/language/RelativeDate/Past/Hours": {
"title": "$:/language/RelativeDate/Past/Hours",
"text": "<<period>> hours ago"
},
"$:/language/RelativeDate/Past/Minutes": {
"title": "$:/language/RelativeDate/Past/Minutes",
"text": "<<period>> minutes ago"
},
"$:/language/RelativeDate/Past/Months": {
"title": "$:/language/RelativeDate/Past/Months",
"text": "<<period>> months ago"
},
"$:/language/RelativeDate/Past/Second": {
"title": "$:/language/RelativeDate/Past/Second",
"text": "1 second ago"
},
"$:/language/RelativeDate/Past/Seconds": {
"title": "$:/language/RelativeDate/Past/Seconds",
"text": "<<period>> seconds ago"
},
"$:/language/RelativeDate/Past/Years": {
"title": "$:/language/RelativeDate/Past/Years",
"text": "<<period>> years ago"
},
"$:/language/Docs/ModuleTypes/allfilteroperator": {
"title": "$:/language/Docs/ModuleTypes/allfilteroperator",
"text": "A sub-operator for the ''all'' filter operator."
},
"$:/language/Docs/ModuleTypes/animation": {
"title": "$:/language/Docs/ModuleTypes/animation",
"text": "Animations that may be used with the RevealWidget."
},
"$:/language/Docs/ModuleTypes/authenticator": {
"title": "$:/language/Docs/ModuleTypes/authenticator",
"text": "Defines how requests are authenticated by the built-in HTTP server."
},
"$:/language/Docs/ModuleTypes/bitmapeditoroperation": {
"title": "$:/language/Docs/ModuleTypes/bitmapeditoroperation",
"text": "A bitmap editor toolbar operation."
},
"$:/language/Docs/ModuleTypes/command": {
"title": "$:/language/Docs/ModuleTypes/command",
"text": "Commands that can be executed under Node.js."
},
"$:/language/Docs/ModuleTypes/config": {
"title": "$:/language/Docs/ModuleTypes/config",
"text": "Data to be inserted into `$tw.config`."
},
"$:/language/Docs/ModuleTypes/filteroperator": {
"title": "$:/language/Docs/ModuleTypes/filteroperator",
"text": "Individual filter operator methods."
},
"$:/language/Docs/ModuleTypes/global": {
"title": "$:/language/Docs/ModuleTypes/global",
"text": "Global data to be inserted into `$tw`."
},
"$:/language/Docs/ModuleTypes/info": {
"title": "$:/language/Docs/ModuleTypes/info",
"text": "Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin."
},
"$:/language/Docs/ModuleTypes/isfilteroperator": {
"title": "$:/language/Docs/ModuleTypes/isfilteroperator",
"text": "Operands for the ''is'' filter operator."
},
"$:/language/Docs/ModuleTypes/library": {
"title": "$:/language/Docs/ModuleTypes/library",
"text": "Generic module type for general purpose JavaScript modules."
},
"$:/language/Docs/ModuleTypes/macro": {
"title": "$:/language/Docs/ModuleTypes/macro",
"text": "JavaScript macro definitions."
},
"$:/language/Docs/ModuleTypes/parser": {
"title": "$:/language/Docs/ModuleTypes/parser",
"text": "Parsers for different content types."
},
"$:/language/Docs/ModuleTypes/route": {
"title": "$:/language/Docs/ModuleTypes/route",
"text": "Defines how individual URL patterns are handled by the built-in HTTP server."
},
"$:/language/Docs/ModuleTypes/saver": {
"title": "$:/language/Docs/ModuleTypes/saver",
"text": "Savers handle different methods for saving files from the browser."
},
"$:/language/Docs/ModuleTypes/startup": {
"title": "$:/language/Docs/ModuleTypes/startup",
"text": "Startup functions."
},
"$:/language/Docs/ModuleTypes/storyview": {
"title": "$:/language/Docs/ModuleTypes/storyview",
"text": "Story views customise the animation and behaviour of list widgets."
},
"$:/language/Docs/ModuleTypes/texteditoroperation": {
"title": "$:/language/Docs/ModuleTypes/texteditoroperation",
"text": "A text editor toolbar operation."
},
"$:/language/Docs/ModuleTypes/tiddlerdeserializer": {
"title": "$:/language/Docs/ModuleTypes/tiddlerdeserializer",
"text": "Converts different content types into tiddlers."
},
"$:/language/Docs/ModuleTypes/tiddlerfield": {
"title": "$:/language/Docs/ModuleTypes/tiddlerfield",
"text": "Defines the behaviour of an individual tiddler field."
},
"$:/language/Docs/ModuleTypes/tiddlermethod": {
"title": "$:/language/Docs/ModuleTypes/tiddlermethod",
"text": "Adds methods to the `$tw.Tiddler` prototype."
},
"$:/language/Docs/ModuleTypes/upgrader": {
"title": "$:/language/Docs/ModuleTypes/upgrader",
"text": "Applies upgrade processing to tiddlers during an upgrade/import."
},
"$:/language/Docs/ModuleTypes/utils": {
"title": "$:/language/Docs/ModuleTypes/utils",
"text": "Adds methods to `$tw.utils`."
},
"$:/language/Docs/ModuleTypes/utils-node": {
"title": "$:/language/Docs/ModuleTypes/utils-node",
"text": "Adds Node.js-specific methods to `$tw.utils`."
},
"$:/language/Docs/ModuleTypes/widget": {
"title": "$:/language/Docs/ModuleTypes/widget",
"text": "Widgets encapsulate DOM rendering and refreshing."
},
"$:/language/Docs/ModuleTypes/wikimethod": {
"title": "$:/language/Docs/ModuleTypes/wikimethod",
"text": "Adds methods to `$tw.Wiki`."
},
"$:/language/Docs/ModuleTypes/wikirule": {
"title": "$:/language/Docs/ModuleTypes/wikirule",
"text": "Individual parser rules for the main WikiText parser."
},
"$:/language/Docs/PaletteColours/alert-background": {
"title": "$:/language/Docs/PaletteColours/alert-background",
"text": "Alert background"
},
"$:/language/Docs/PaletteColours/alert-border": {
"title": "$:/language/Docs/PaletteColours/alert-border",
"text": "Alert border"
},
"$:/language/Docs/PaletteColours/alert-highlight": {
"title": "$:/language/Docs/PaletteColours/alert-highlight",
"text": "Alert highlight"
},
"$:/language/Docs/PaletteColours/alert-muted-foreground": {
"title": "$:/language/Docs/PaletteColours/alert-muted-foreground",
"text": "Alert muted foreground"
},
"$:/language/Docs/PaletteColours/background": {
"title": "$:/language/Docs/PaletteColours/background",
"text": "General background"
},
"$:/language/Docs/PaletteColours/blockquote-bar": {
"title": "$:/language/Docs/PaletteColours/blockquote-bar",
"text": "Blockquote bar"
},
"$:/language/Docs/PaletteColours/button-background": {
"title": "$:/language/Docs/PaletteColours/button-background",
"text": "Default button background"
},
"$:/language/Docs/PaletteColours/button-border": {
"title": "$:/language/Docs/PaletteColours/button-border",
"text": "Default button border"
},
"$:/language/Docs/PaletteColours/button-foreground": {
"title": "$:/language/Docs/PaletteColours/button-foreground",
"text": "Default button foreground"
},
"$:/language/Docs/PaletteColours/dirty-indicator": {
"title": "$:/language/Docs/PaletteColours/dirty-indicator",
"text": "Unsaved changes indicator"
},
"$:/language/Docs/PaletteColours/code-background": {
"title": "$:/language/Docs/PaletteColours/code-background",
"text": "Code background"
},
"$:/language/Docs/PaletteColours/code-border": {
"title": "$:/language/Docs/PaletteColours/code-border",
"text": "Code border"
},
"$:/language/Docs/PaletteColours/code-foreground": {
"title": "$:/language/Docs/PaletteColours/code-foreground",
"text": "Code foreground"
},
"$:/language/Docs/PaletteColours/download-background": {
"title": "$:/language/Docs/PaletteColours/download-background",
"text": "Download button background"
},
"$:/language/Docs/PaletteColours/download-foreground": {
"title": "$:/language/Docs/PaletteColours/download-foreground",
"text": "Download button foreground"
},
"$:/language/Docs/PaletteColours/dragger-background": {
"title": "$:/language/Docs/PaletteColours/dragger-background",
"text": "Dragger background"
},
"$:/language/Docs/PaletteColours/dragger-foreground": {
"title": "$:/language/Docs/PaletteColours/dragger-foreground",
"text": "Dragger foreground"
},
"$:/language/Docs/PaletteColours/dropdown-background": {
"title": "$:/language/Docs/PaletteColours/dropdown-background",
"text": "Dropdown background"
},
"$:/language/Docs/PaletteColours/dropdown-border": {
"title": "$:/language/Docs/PaletteColours/dropdown-border",
"text": "Dropdown border"
},
"$:/language/Docs/PaletteColours/dropdown-tab-background-selected": {
"title": "$:/language/Docs/PaletteColours/dropdown-tab-background-selected",
"text": "Dropdown tab background for selected tabs"
},
"$:/language/Docs/PaletteColours/dropdown-tab-background": {
"title": "$:/language/Docs/PaletteColours/dropdown-tab-background",
"text": "Dropdown tab background"
},
"$:/language/Docs/PaletteColours/dropzone-background": {
"title": "$:/language/Docs/PaletteColours/dropzone-background",
"text": "Dropzone background"
},
"$:/language/Docs/PaletteColours/external-link-background-hover": {
"title": "$:/language/Docs/PaletteColours/external-link-background-hover",
"text": "External link background hover"
},
"$:/language/Docs/PaletteColours/external-link-background-visited": {
"title": "$:/language/Docs/PaletteColours/external-link-background-visited",
"text": "External link background visited"
},
"$:/language/Docs/PaletteColours/external-link-background": {
"title": "$:/language/Docs/PaletteColours/external-link-background",
"text": "External link background"
},
"$:/language/Docs/PaletteColours/external-link-foreground-hover": {
"title": "$:/language/Docs/PaletteColours/external-link-foreground-hover",
"text": "External link foreground hover"
},
"$:/language/Docs/PaletteColours/external-link-foreground-visited": {
"title": "$:/language/Docs/PaletteColours/external-link-foreground-visited",
"text": "External link foreground visited"
},
"$:/language/Docs/PaletteColours/external-link-foreground": {
"title": "$:/language/Docs/PaletteColours/external-link-foreground",
"text": "External link foreground"
},
"$:/language/Docs/PaletteColours/foreground": {
"title": "$:/language/Docs/PaletteColours/foreground",
"text": "General foreground"
},
"$:/language/Docs/PaletteColours/message-background": {
"title": "$:/language/Docs/PaletteColours/message-background",
"text": "Message box background"
},
"$:/language/Docs/PaletteColours/message-border": {
"title": "$:/language/Docs/PaletteColours/message-border",
"text": "Message box border"
},
"$:/language/Docs/PaletteColours/message-foreground": {
"title": "$:/language/Docs/PaletteColours/message-foreground",
"text": "Message box foreground"
},
"$:/language/Docs/PaletteColours/modal-backdrop": {
"title": "$:/language/Docs/PaletteColours/modal-backdrop",
"text": "Modal backdrop"
},
"$:/language/Docs/PaletteColours/modal-background": {
"title": "$:/language/Docs/PaletteColours/modal-background",
"text": "Modal background"
},
"$:/language/Docs/PaletteColours/modal-border": {
"title": "$:/language/Docs/PaletteColours/modal-border",
"text": "Modal border"
},
"$:/language/Docs/PaletteColours/modal-footer-background": {
"title": "$:/language/Docs/PaletteColours/modal-footer-background",
"text": "Modal footer background"
},
"$:/language/Docs/PaletteColours/modal-footer-border": {
"title": "$:/language/Docs/PaletteColours/modal-footer-border",
"text": "Modal footer border"
},
"$:/language/Docs/PaletteColours/modal-header-border": {
"title": "$:/language/Docs/PaletteColours/modal-header-border",
"text": "Modal header border"
},
"$:/language/Docs/PaletteColours/muted-foreground": {
"title": "$:/language/Docs/PaletteColours/muted-foreground",
"text": "General muted foreground"
},
"$:/language/Docs/PaletteColours/notification-background": {
"title": "$:/language/Docs/PaletteColours/notification-background",
"text": "Notification background"
},
"$:/language/Docs/PaletteColours/notification-border": {
"title": "$:/language/Docs/PaletteColours/notification-border",
"text": "Notification border"
},
"$:/language/Docs/PaletteColours/page-background": {
"title": "$:/language/Docs/PaletteColours/page-background",
"text": "Page background"
},
"$:/language/Docs/PaletteColours/pre-background": {
"title": "$:/language/Docs/PaletteColours/pre-background",
"text": "Preformatted code background"
},
"$:/language/Docs/PaletteColours/pre-border": {
"title": "$:/language/Docs/PaletteColours/pre-border",
"text": "Preformatted code border"
},
"$:/language/Docs/PaletteColours/primary": {
"title": "$:/language/Docs/PaletteColours/primary",
"text": "General primary"
},
"$:/language/Docs/PaletteColours/select-tag-background": {
"title": "$:/language/Docs/PaletteColours/select-tag-background",
"text": "`<select>` element background"
},
"$:/language/Docs/PaletteColours/select-tag-foreground": {
"title": "$:/language/Docs/PaletteColours/select-tag-foreground",
"text": "`<select>` element text"
},
"$:/language/Docs/PaletteColours/sidebar-button-foreground": {
"title": "$:/language/Docs/PaletteColours/sidebar-button-foreground",
"text": "Sidebar button foreground"
},
"$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover": {
"title": "$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover",
"text": "Sidebar controls foreground hover"
},
"$:/language/Docs/PaletteColours/sidebar-controls-foreground": {
"title": "$:/language/Docs/PaletteColours/sidebar-controls-foreground",
"text": "Sidebar controls foreground"
},
"$:/language/Docs/PaletteColours/sidebar-foreground-shadow": {
"title": "$:/language/Docs/PaletteColours/sidebar-foreground-shadow",
"text": "Sidebar foreground shadow"
},
"$:/language/Docs/PaletteColours/sidebar-foreground": {
"title": "$:/language/Docs/PaletteColours/sidebar-foreground",
"text": "Sidebar foreground"
},
"$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover": {
"title": "$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover",
"text": "Sidebar muted foreground hover"
},
"$:/language/Docs/PaletteColours/sidebar-muted-foreground": {
"title": "$:/language/Docs/PaletteColours/sidebar-muted-foreground",
"text": "Sidebar muted foreground"
},
"$:/language/Docs/PaletteColours/sidebar-tab-background-selected": {
"title": "$:/language/Docs/PaletteColours/sidebar-tab-background-selected",
"text": "Sidebar tab background for selected tabs"
},
"$:/language/Docs/PaletteColours/sidebar-tab-background": {
"title": "$:/language/Docs/PaletteColours/sidebar-tab-background",
"text": "Sidebar tab background"
},
"$:/language/Docs/PaletteColours/sidebar-tab-border-selected": {
"title": "$:/language/Docs/PaletteColours/sidebar-tab-border-selected",
"text": "Sidebar tab border for selected tabs"
},
"$:/language/Docs/PaletteColours/sidebar-tab-border": {
"title": "$:/language/Docs/PaletteColours/sidebar-tab-border",
"text": "Sidebar tab border"
},
"$:/language/Docs/PaletteColours/sidebar-tab-divider": {
"title": "$:/language/Docs/PaletteColours/sidebar-tab-divider",
"text": "Sidebar tab divider"
},
"$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected": {
"title": "$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected",
"text": "Sidebar tab foreground for selected tabs"
},
"$:/language/Docs/PaletteColours/sidebar-tab-foreground": {
"title": "$:/language/Docs/PaletteColours/sidebar-tab-foreground",
"text": "Sidebar tab foreground"
},
"$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover": {
"title": "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover",
"text": "Sidebar tiddler link foreground hover"
},
"$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground": {
"title": "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground",
"text": "Sidebar tiddler link foreground"
},
"$:/language/Docs/PaletteColours/site-title-foreground": {
"title": "$:/language/Docs/PaletteColours/site-title-foreground",
"text": "Site title foreground"
},
"$:/language/Docs/PaletteColours/static-alert-foreground": {
"title": "$:/language/Docs/PaletteColours/static-alert-foreground",
"text": "Static alert foreground"
},
"$:/language/Docs/PaletteColours/tab-background-selected": {
"title": "$:/language/Docs/PaletteColours/tab-background-selected",
"text": "Tab background for selected tabs"
},
"$:/language/Docs/PaletteColours/tab-background": {
"title": "$:/language/Docs/PaletteColours/tab-background",
"text": "Tab background"
},
"$:/language/Docs/PaletteColours/tab-border-selected": {
"title": "$:/language/Docs/PaletteColours/tab-border-selected",
"text": "Tab border for selected tabs"
},
"$:/language/Docs/PaletteColours/tab-border": {
"title": "$:/language/Docs/PaletteColours/tab-border",
"text": "Tab border"
},
"$:/language/Docs/PaletteColours/tab-divider": {
"title": "$:/language/Docs/PaletteColours/tab-divider",
"text": "Tab divider"
},
"$:/language/Docs/PaletteColours/tab-foreground-selected": {
"title": "$:/language/Docs/PaletteColours/tab-foreground-selected",
"text": "Tab foreground for selected tabs"
},
"$:/language/Docs/PaletteColours/tab-foreground": {
"title": "$:/language/Docs/PaletteColours/tab-foreground",
"text": "Tab foreground"
},
"$:/language/Docs/PaletteColours/table-border": {
"title": "$:/language/Docs/PaletteColours/table-border",
"text": "Table border"
},
"$:/language/Docs/PaletteColours/table-footer-background": {
"title": "$:/language/Docs/PaletteColours/table-footer-background",
"text": "Table footer background"
},
"$:/language/Docs/PaletteColours/table-header-background": {
"title": "$:/language/Docs/PaletteColours/table-header-background",
"text": "Table header background"
},
"$:/language/Docs/PaletteColours/tag-background": {
"title": "$:/language/Docs/PaletteColours/tag-background",
"text": "Tag background"
},
"$:/language/Docs/PaletteColours/tag-foreground": {
"title": "$:/language/Docs/PaletteColours/tag-foreground",
"text": "Tag foreground"
},
"$:/language/Docs/PaletteColours/tiddler-background": {
"title": "$:/language/Docs/PaletteColours/tiddler-background",
"text": "Tiddler background"
},
"$:/language/Docs/PaletteColours/tiddler-border": {
"title": "$:/language/Docs/PaletteColours/tiddler-border",
"text": "Tiddler border"
},
"$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover": {
"title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover",
"text": "Tiddler controls foreground hover"
},
"$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected": {
"title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected",
"text": "Tiddler controls foreground for selected controls"
},
"$:/language/Docs/PaletteColours/tiddler-controls-foreground": {
"title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground",
"text": "Tiddler controls foreground"
},
"$:/language/Docs/PaletteColours/tiddler-editor-background": {
"title": "$:/language/Docs/PaletteColours/tiddler-editor-background",
"text": "Tiddler editor background"
},
"$:/language/Docs/PaletteColours/tiddler-editor-border-image": {
"title": "$:/language/Docs/PaletteColours/tiddler-editor-border-image",
"text": "Tiddler editor border image"
},
"$:/language/Docs/PaletteColours/tiddler-editor-border": {
"title": "$:/language/Docs/PaletteColours/tiddler-editor-border",
"text": "Tiddler editor border"
},
"$:/language/Docs/PaletteColours/tiddler-editor-fields-even": {
"title": "$:/language/Docs/PaletteColours/tiddler-editor-fields-even",
"text": "Tiddler editor background for even fields"
},
"$:/language/Docs/PaletteColours/tiddler-editor-fields-odd": {
"title": "$:/language/Docs/PaletteColours/tiddler-editor-fields-odd",
"text": "Tiddler editor background for odd fields"
},
"$:/language/Docs/PaletteColours/tiddler-info-background": {
"title": "$:/language/Docs/PaletteColours/tiddler-info-background",
"text": "Tiddler info panel background"
},
"$:/language/Docs/PaletteColours/tiddler-info-border": {
"title": "$:/language/Docs/PaletteColours/tiddler-info-border",
"text": "Tiddler info panel border"
},
"$:/language/Docs/PaletteColours/tiddler-info-tab-background": {
"title": "$:/language/Docs/PaletteColours/tiddler-info-tab-background",
"text": "Tiddler info panel tab background"
},
"$:/language/Docs/PaletteColours/tiddler-link-background": {
"title": "$:/language/Docs/PaletteColours/tiddler-link-background",
"text": "Tiddler link background"
},
"$:/language/Docs/PaletteColours/tiddler-link-foreground": {
"title": "$:/language/Docs/PaletteColours/tiddler-link-foreground",
"text": "Tiddler link foreground"
},
"$:/language/Docs/PaletteColours/tiddler-subtitle-foreground": {
"title": "$:/language/Docs/PaletteColours/tiddler-subtitle-foreground",
"text": "Tiddler subtitle foreground"
},
"$:/language/Docs/PaletteColours/tiddler-title-foreground": {
"title": "$:/language/Docs/PaletteColours/tiddler-title-foreground",
"text": "Tiddler title foreground"
},
"$:/language/Docs/PaletteColours/toolbar-new-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-new-button",
"text": "Toolbar 'new tiddler' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-options-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-options-button",
"text": "Toolbar 'options' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-save-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-save-button",
"text": "Toolbar 'save' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-info-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-info-button",
"text": "Toolbar 'info' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-edit-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-edit-button",
"text": "Toolbar 'edit' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-close-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-close-button",
"text": "Toolbar 'close' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-delete-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-delete-button",
"text": "Toolbar 'delete' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-cancel-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-cancel-button",
"text": "Toolbar 'cancel' button foreground"
},
"$:/language/Docs/PaletteColours/toolbar-done-button": {
"title": "$:/language/Docs/PaletteColours/toolbar-done-button",
"text": "Toolbar 'done' button foreground"
},
"$:/language/Docs/PaletteColours/untagged-background": {
"title": "$:/language/Docs/PaletteColours/untagged-background",
"text": "Untagged pill background"
},
"$:/language/Docs/PaletteColours/very-muted-foreground": {
"title": "$:/language/Docs/PaletteColours/very-muted-foreground",
"text": "Very muted foreground"
},
"$:/language/EditTemplate/Body/External/Hint": {
"title": "$:/language/EditTemplate/Body/External/Hint",
"text": "This tiddler shows content stored outside of the main TiddlyWiki file. You can edit the tags and fields but cannot directly edit the content itself"
},
"$:/language/EditTemplate/Body/Placeholder": {
"title": "$:/language/EditTemplate/Body/Placeholder",
"text": "Type the text for this tiddler"
},
"$:/language/EditTemplate/Body/Preview/Type/Output": {
"title": "$:/language/EditTemplate/Body/Preview/Type/Output",
"text": "output"
},
"$:/language/EditTemplate/Field/Remove/Caption": {
"title": "$:/language/EditTemplate/Field/Remove/Caption",
"text": "remove field"
},
"$:/language/EditTemplate/Field/Remove/Hint": {
"title": "$:/language/EditTemplate/Field/Remove/Hint",
"text": "Remove field"
},
"$:/language/EditTemplate/Field/Dropdown/Caption": {
"title": "$:/language/EditTemplate/Field/Dropdown/Caption",
"text": "field list"
},
"$:/language/EditTemplate/Field/Dropdown/Hint": {
"title": "$:/language/EditTemplate/Field/Dropdown/Hint",
"text": "Show field list"
},
"$:/language/EditTemplate/Fields/Add/Button": {
"title": "$:/language/EditTemplate/Fields/Add/Button",
"text": "add"
},
"$:/language/EditTemplate/Fields/Add/Name/Placeholder": {
"title": "$:/language/EditTemplate/Fields/Add/Name/Placeholder",
"text": "field name"
},
"$:/language/EditTemplate/Fields/Add/Prompt": {
"title": "$:/language/EditTemplate/Fields/Add/Prompt",
"text": "Add a new field:"
},
"$:/language/EditTemplate/Fields/Add/Value/Placeholder": {
"title": "$:/language/EditTemplate/Fields/Add/Value/Placeholder",
"text": "field value"
},
"$:/language/EditTemplate/Fields/Add/Dropdown/System": {
"title": "$:/language/EditTemplate/Fields/Add/Dropdown/System",
"text": "System fields"
},
"$:/language/EditTemplate/Fields/Add/Dropdown/User": {
"title": "$:/language/EditTemplate/Fields/Add/Dropdown/User",
"text": "User fields"
},
"$:/language/EditTemplate/Shadow/Warning": {
"title": "$:/language/EditTemplate/Shadow/Warning",
"text": "This is a shadow tiddler. Any changes you make will override the default version from the plugin <<pluginLink>>"
},
"$:/language/EditTemplate/Shadow/OverriddenWarning": {
"title": "$:/language/EditTemplate/Shadow/OverriddenWarning",
"text": "This is a modified shadow tiddler. You can revert to the default version in the plugin <<pluginLink>> by deleting this tiddler"
},
"$:/language/EditTemplate/Tags/Add/Button": {
"title": "$:/language/EditTemplate/Tags/Add/Button",
"text": "add"
},
"$:/language/EditTemplate/Tags/Add/Placeholder": {
"title": "$:/language/EditTemplate/Tags/Add/Placeholder",
"text": "tag name"
},
"$:/language/EditTemplate/Tags/Dropdown/Caption": {
"title": "$:/language/EditTemplate/Tags/Dropdown/Caption",
"text": "tag list"
},
"$:/language/EditTemplate/Tags/Dropdown/Hint": {
"title": "$:/language/EditTemplate/Tags/Dropdown/Hint",
"text": "Show tag list"
},
"$:/language/EditTemplate/Title/BadCharacterWarning": {
"title": "$:/language/EditTemplate/Title/BadCharacterWarning",
"text": "Warning: avoid using any of the characters <<bad-chars>> in tiddler titles"
},
"$:/language/EditTemplate/Title/Exists/Prompt": {
"title": "$:/language/EditTemplate/Title/Exists/Prompt",
"text": "Target tiddler already exists"
},
"$:/language/EditTemplate/Title/Relink/Prompt": {
"title": "$:/language/EditTemplate/Title/Relink/Prompt",
"text": "Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers"
},
"$:/language/EditTemplate/Title/References/Prompt": {
"title": "$:/language/EditTemplate/Title/References/Prompt",
"text": "The following references to this tiddler will not be automatically updated:"
},
"$:/language/EditTemplate/Type/Dropdown/Caption": {
"title": "$:/language/EditTemplate/Type/Dropdown/Caption",
"text": "content type list"
},
"$:/language/EditTemplate/Type/Dropdown/Hint": {
"title": "$:/language/EditTemplate/Type/Dropdown/Hint",
"text": "Show content type list"
},
"$:/language/EditTemplate/Type/Delete/Caption": {
"title": "$:/language/EditTemplate/Type/Delete/Caption",
"text": "delete content type"
},
"$:/language/EditTemplate/Type/Delete/Hint": {
"title": "$:/language/EditTemplate/Type/Delete/Hint",
"text": "Delete content type"
},
"$:/language/EditTemplate/Type/Placeholder": {
"title": "$:/language/EditTemplate/Type/Placeholder",
"text": "content type"
},
"$:/language/EditTemplate/Type/Prompt": {
"title": "$:/language/EditTemplate/Type/Prompt",
"text": "Type:"
},
"$:/language/Exporters/StaticRiver": {
"title": "$:/language/Exporters/StaticRiver",
"text": "Static HTML"
},
"$:/language/Exporters/JsonFile": {
"title": "$:/language/Exporters/JsonFile",
"text": "JSON file"
},
"$:/language/Exporters/CsvFile": {
"title": "$:/language/Exporters/CsvFile",
"text": "CSV file"
},
"$:/language/Exporters/TidFile": {
"title": "$:/language/Exporters/TidFile",
"text": "\".tid\" file"
},
"$:/language/Docs/Fields/_canonical_uri": {
"title": "$:/language/Docs/Fields/_canonical_uri",
"text": "The full URI of an external image tiddler"
},
"$:/language/Docs/Fields/bag": {
"title": "$:/language/Docs/Fields/bag",
"text": "The name of the bag from which a tiddler came"
},
"$:/language/Docs/Fields/caption": {
"title": "$:/language/Docs/Fields/caption",
"text": "The text to be displayed on a tab or button"
},
"$:/language/Docs/Fields/color": {
"title": "$:/language/Docs/Fields/color",
"text": "The CSS color value associated with a tiddler"
},
"$:/language/Docs/Fields/component": {
"title": "$:/language/Docs/Fields/component",
"text": "The name of the component responsible for an [[alert tiddler|AlertMechanism]]"
},
"$:/language/Docs/Fields/current-tiddler": {
"title": "$:/language/Docs/Fields/current-tiddler",
"text": "Used to cache the top tiddler in a [[history list|HistoryMechanism]]"
},
"$:/language/Docs/Fields/created": {
"title": "$:/language/Docs/Fields/created",
"text": "The date a tiddler was created"
},
"$:/language/Docs/Fields/creator": {
"title": "$:/language/Docs/Fields/creator",
"text": "The name of the person who created a tiddler"
},
"$:/language/Docs/Fields/dependents": {
"title": "$:/language/Docs/Fields/dependents",
"text": "For a plugin, lists the dependent plugin titles"
},
"$:/language/Docs/Fields/description": {
"title": "$:/language/Docs/Fields/description",
"text": "The descriptive text for a plugin, or a modal dialogue"
},
"$:/language/Docs/Fields/draft.of": {
"title": "$:/language/Docs/Fields/draft.of",
"text": "For draft tiddlers, contains the title of the tiddler of which this is a draft"
},
"$:/language/Docs/Fields/draft.title": {
"title": "$:/language/Docs/Fields/draft.title",
"text": "For draft tiddlers, contains the proposed new title of the tiddler"
},
"$:/language/Docs/Fields/footer": {
"title": "$:/language/Docs/Fields/footer",
"text": "The footer text for a wizard"
},
"$:/language/Docs/Fields/hack-to-give-us-something-to-compare-against": {
"title": "$:/language/Docs/Fields/hack-to-give-us-something-to-compare-against",
"text": "A temporary storage field used in [[$:/core/templates/static.content]]"
},
"$:/language/Docs/Fields/hide-body": {
"title": "$:/language/Docs/Fields/hide-body",
"text": "The view template will hide bodies of tiddlers if set to: ''yes''"
},
"$:/language/Docs/Fields/icon": {
"title": "$:/language/Docs/Fields/icon",
"text": "The title of the tiddler containing the icon associated with a tiddler"
},
"$:/language/Docs/Fields/library": {
"title": "$:/language/Docs/Fields/library",
"text": "Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''"
},
"$:/language/Docs/Fields/list": {
"title": "$:/language/Docs/Fields/list",
"text": "An ordered list of tiddler titles associated with a tiddler"
},
"$:/language/Docs/Fields/list-before": {
"title": "$:/language/Docs/Fields/list-before",
"text": "If set, the title of a tiddler before which this tiddler should be added to the ordered list of tiddler titles, or at the start of the list if this field is present but empty"
},
"$:/language/Docs/Fields/list-after": {
"title": "$:/language/Docs/Fields/list-after",
"text": "If set, the title of the tiddler after which this tiddler should be added to the ordered list of tiddler titles, or at the end of the list if this field is present but empty"
},
"$:/language/Docs/Fields/modified": {
"title": "$:/language/Docs/Fields/modified",
"text": "The date and time at which a tiddler was last modified"
},
"$:/language/Docs/Fields/modifier": {
"title": "$:/language/Docs/Fields/modifier",
"text": "The tiddler title associated with the person who last modified a tiddler"
},
"$:/language/Docs/Fields/name": {
"title": "$:/language/Docs/Fields/name",
"text": "The human readable name associated with a plugin tiddler"
},
"$:/language/Docs/Fields/plugin-priority": {
"title": "$:/language/Docs/Fields/plugin-priority",
"text": "A numerical value indicating the priority of a plugin tiddler"
},
"$:/language/Docs/Fields/plugin-type": {
"title": "$:/language/Docs/Fields/plugin-type",
"text": "The type of plugin in a plugin tiddler"
},
"$:/language/Docs/Fields/revision": {
"title": "$:/language/Docs/Fields/revision",
"text": "The revision of the tiddler held at the server"
},
"$:/language/Docs/Fields/released": {
"title": "$:/language/Docs/Fields/released",
"text": "Date of a TiddlyWiki release"
},
"$:/language/Docs/Fields/source": {
"title": "$:/language/Docs/Fields/source",
"text": "The source URL associated with a tiddler"
},
"$:/language/Docs/Fields/subtitle": {
"title": "$:/language/Docs/Fields/subtitle",
"text": "The subtitle text for a wizard"
},
"$:/language/Docs/Fields/tags": {
"title": "$:/language/Docs/Fields/tags",
"text": "A list of tags associated with a tiddler"
},
"$:/language/Docs/Fields/text": {
"title": "$:/language/Docs/Fields/text",
"text": "The body text of a tiddler"
},
"$:/language/Docs/Fields/title": {
"title": "$:/language/Docs/Fields/title",
"text": "The unique name of a tiddler"
},
"$:/language/Docs/Fields/toc-link": {
"title": "$:/language/Docs/Fields/toc-link",
"text": "Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''"
},
"$:/language/Docs/Fields/type": {
"title": "$:/language/Docs/Fields/type",
"text": "The content type of a tiddler"
},
"$:/language/Docs/Fields/version": {
"title": "$:/language/Docs/Fields/version",
"text": "Version information for a plugin"
},
"$:/language/Filters/AllTiddlers": {
"title": "$:/language/Filters/AllTiddlers",
"text": "All tiddlers except system tiddlers"
},
"$:/language/Filters/RecentSystemTiddlers": {
"title": "$:/language/Filters/RecentSystemTiddlers",
"text": "Recently modified tiddlers, including system tiddlers"
},
"$:/language/Filters/RecentTiddlers": {
"title": "$:/language/Filters/RecentTiddlers",
"text": "Recently modified tiddlers"
},
"$:/language/Filters/AllTags": {
"title": "$:/language/Filters/AllTags",
"text": "All tags except system tags"
},
"$:/language/Filters/Missing": {
"title": "$:/language/Filters/Missing",
"text": "Missing tiddlers"
},
"$:/language/Filters/Drafts": {
"title": "$:/language/Filters/Drafts",
"text": "Draft tiddlers"
},
"$:/language/Filters/Orphans": {
"title": "$:/language/Filters/Orphans",
"text": "Orphan tiddlers"
},
"$:/language/Filters/SystemTiddlers": {
"title": "$:/language/Filters/SystemTiddlers",
"text": "System tiddlers"
},
"$:/language/Filters/ShadowTiddlers": {
"title": "$:/language/Filters/ShadowTiddlers",
"text": "Shadow tiddlers"
},
"$:/language/Filters/OverriddenShadowTiddlers": {
"title": "$:/language/Filters/OverriddenShadowTiddlers",
"text": "Overridden shadow tiddlers"
},
"$:/language/Filters/SessionTiddlers": {
"title": "$:/language/Filters/SessionTiddlers",
"text": "Tiddlers modified since the wiki was loaded"
},
"$:/language/Filters/SystemTags": {
"title": "$:/language/Filters/SystemTags",
"text": "System tags"
},
"$:/language/Filters/StoryList": {
"title": "$:/language/Filters/StoryList",
"text": "Tiddlers in the story river, excluding <$text text=\"$:/AdvancedSearch\"/>"
},
"$:/language/Filters/TypedTiddlers": {
"title": "$:/language/Filters/TypedTiddlers",
"text": "Non wiki-text tiddlers"
},
"GettingStarted": {
"title": "GettingStarted",
"text": "\\define lingo-base() $:/language/ControlPanel/Basics/\nWelcome to ~TiddlyWiki and the ~TiddlyWiki community\n\nBefore you start storing important information in ~TiddlyWiki it is vital to make sure that you can reliably save changes. See https://tiddlywiki.com/#GettingStarted for details\n\n!! Set up this ~TiddlyWiki\n\n<div class=\"tc-control-panel\">\n\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n</div>\n\nSee the [[control panel|$:/ControlPanel]] for more options.\n"
},
"$:/language/Help/build": {
"title": "$:/language/Help/build",
"description": "Automatically run configured commands",
"text": "Build the specified build targets for the current wiki. If no build targets are specified then all available targets will be built.\n\n```\n--build <target> [<target> ...]\n```\n\nBuild targets are defined in the `tiddlywiki.info` file of a wiki folder.\n\n"
},
"$:/language/Help/clearpassword": {
"title": "$:/language/Help/clearpassword",
"description": "Clear a password for subsequent crypto operations",
"text": "Clear the password for subsequent crypto operations\n\n```\n--clearpassword\n```\n"
},
"$:/language/Help/default": {
"title": "$:/language/Help/default",
"text": "\\define commandTitle()\n$:/language/Help/$(command)$\n\\end\n```\nusage: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]\n```\n\nAvailable commands:\n\n<ul>\n<$list filter=\"[commands[]sort[title]]\" variable=\"command\">\n<li><$link to=<<commandTitle>>><$macrocall $name=\"command\" $type=\"text/plain\" $output=\"text/plain\"/></$link>: <$transclude tiddler=<<commandTitle>> field=\"description\"/></li>\n</$list>\n</ul>\n\nTo get detailed help on a command:\n\n```\ntiddlywiki --help <command>\n```\n"
},
"$:/language/Help/deletetiddlers": {
"title": "$:/language/Help/deletetiddlers",
"description": "Deletes a group of tiddlers",
"text": "<<.from-version \"5.1.20\">> Deletes a group of tiddlers identified by a filter.\n\n```\n--deletetiddlers <filter>\n```\n"
},
"$:/language/Help/editions": {
"title": "$:/language/Help/editions",
"description": "Lists the available editions of TiddlyWiki",
"text": "Lists the names and descriptions of the available editions. You can create a new wiki of a specified edition with the `--init` command.\n\n```\n--editions\n```\n"
},
"$:/language/Help/fetch": {
"title": "$:/language/Help/fetch",
"description": "Fetch tiddlers from wiki by URL",
"text": "Fetch one or more files over HTTP/HTTPS, and import the tiddlers matching a filter, optionally transforming the incoming titles.\n\n```\n--fetch file <url> <import-filter> <transform-filter>\n--fetch files <url-filter> <import-filter> <transform-filter>\n--fetch raw-file <url> <transform-filter>\n--fetch raw-files <url-filter> <transform-filter>\n```\n\nThe \"file\" and \"files\" variants fetch the specified files and attempt to import the tiddlers within them (the same processing as if the files were dragged into the browser window). The \"raw-file\" and \"raw-files\" variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic.\n\nWith the \"file\" and \"raw-file\" variants only a single file is fetched and the first parameter is the URL of the file to read.\n\nWith the \"files\" and \"raw-files\" variants, multiple files are fetched and the first parameter is a filter yielding a list of URLs of the files to read. For example, given a set of tiddlers tagged \"remote-server\" that have a field \"url\" the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs.\n\nFor the \"file\" and \"files\" variants, the `<import-filter>` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided.\n\nFor all variants, the `<transform-filter>` parameter specifies an optional filter that transforms the titles of the imported tiddlers. For example, `[addprefix[$:/myimports/]]` would add the prefix `$:/myimports/` to each title.\n\nPreceding the `--fetch` command with `--verbose` will output progress information during the import.\n\nNote that TiddlyWiki will not fetch an older version of an already loaded plugin.\n\nThe following example retrieves all the non-system tiddlers from https://tiddlywiki.com and saves them to a JSON file:\n\n```\ntiddlywiki --verbose --fetch file \"https://tiddlywiki.com/\" \"[!is[system]]\" \"\" --rendertiddler \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[!is[system]]\"\n```\n\nThe following example retrieves the \"favicon\" file from tiddlywiki.com and saves it in a file called \"output.ico\". Note that the intermediate tiddler \"Icon Tiddler\" is quoted in the \"--fetch\" command because it is being used as a transformation filter to replace the default title, while there are no quotes for the \"--savetiddler\" command because it is being used directly as a title.\n\n```\ntiddlywiki --verbose --fetch raw-file \"https://tiddlywiki.com/favicon.ico\" \"[[Icon Tiddler]]\" --savetiddler \"Icon Tiddler\" output.ico\n```\n\n"
},
"$:/language/Help/help": {
"title": "$:/language/Help/help",
"description": "Display help for TiddlyWiki commands",
"text": "Displays help text for a command:\n\n```\n--help [<command>]\n```\n\nIf the command name is omitted then a list of available commands is displayed.\n"
},
"$:/language/Help/import": {
"title": "$:/language/Help/import",
"description": "Import tiddlers from a file",
"text": "Import tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The deserializer must be explicitly specified, unlike the `load` command which infers the deserializer from the file extension.\n\n```\n--import <filepath> <deserializer> [<title>] [<encoding>]\n```\n\nThe deserializers in the core include:\n\n* application/javascript\n* application/json\n* application/x-tiddler\n* application/x-tiddler-html-div\n* application/x-tiddlers\n* text/html\n* text/plain\n\nThe title of the imported tiddler defaults to the filename.\n\nThe encoding defaults to \"utf8\", but can be \"base64\" for importing binary files.\n\nNote that TiddlyWiki will not import an older version of an already loaded plugin.\n"
},
"$:/language/Help/init": {
"title": "$:/language/Help/init",
"description": "Initialise a new wiki folder",
"text": "Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition.\n\n```\n--init <edition> [<edition> ...]\n```\n\nFor example:\n\n```\ntiddlywiki ./MyWikiFolder --init empty\n```\n\nNote:\n\n* The wiki folder directory will be created if necessary\n* The \"edition\" defaults to ''empty''\n* The init command will fail if the wiki folder is not empty\n* The init command removes any `includeWikis` definitions in the edition's `tiddlywiki.info` file\n* When multiple editions are specified, editions initialised later will overwrite any files shared with earlier editions (so, the final `tiddlywiki.info` file will be copied from the last edition)\n* `--editions` returns a list of available editions\n"
},
"$:/language/Help/listen": {
"title": "$:/language/Help/listen",
"description": "Provides an HTTP server interface to TiddlyWiki",
"text": "Serves a wiki over HTTP.\n\nThe listen command uses NamedCommandParameters:\n\n```\n--listen [<name>=<value>]...\n```\n\nAll parameters are optional with safe defaults, and can be specified in any order. The recognised parameters are:\n\n* ''host'' - optional hostname to serve from (defaults to \"127.0.0.1\" aka \"localhost\")\n* ''path-prefix'' - optional prefix for paths\n* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to \"8080\")\n* ''credentials'' - pathname of credentials CSV file (relative to wiki folder)\n* ''anon-username'' - the username for signing edits for anonymous users\n* ''username'' - optional username for basic authentication\n* ''password'' - optional password for basic authentication\n* ''authenticated-user-header'' - optional name of header to be used for trusted authentication\n* ''readers'' - comma separated list of principals allowed to read from this wiki\n* ''writers'' - comma separated list of principals allowed to write to this wiki\n* ''csrf-disable'' - set to \"yes\" to disable CSRF checks (defaults to \"no\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\n* ''tls-cert'' - pathname of TLS certificate file (relative to wiki folder)\n* ''tls-key'' - pathname of TLS key file (relative to wiki folder)\n* ''debug-level'' - optional debug level; set to \"debug\" to view request details (defaults to \"none\")\n* ''gzip'' - set to \"yes\" to enable gzip compression for some http endpoints (defaults to \"no\")\n\nFor information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.\n\n"
},
"$:/language/Help/load": {
"title": "$:/language/Help/load",
"description": "Load tiddlers from a file",
"text": "Load tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The processing applied to incoming files is determined by the file extension. Use the alternative `import` command if you need to specify the deserializer and encoding explicitly.\n\n```\n--load <filepath> [noerror]\n--load <dirpath> [noerror]\n```\n\nBy default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional \"noerror\" parameter.\n\nTo load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example:\n\n```\ntiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html\n```\n\nNote that TiddlyWiki will not load an older version of an already loaded plugin.\n"
},
"$:/language/Help/makelibrary": {
"title": "$:/language/Help/makelibrary",
"description": "Construct library plugin required by upgrade process",
"text": "Constructs the `$:/UpgradeLibrary` tiddler for the upgrade process.\n\nThe upgrade library is formatted as an ordinary plugin tiddler with the plugin type `library`. It contains a copy of each of the plugins, themes and language packs available within the TiddlyWiki5 repository.\n\nThis command is intended for internal use; it is only relevant to users constructing a custom upgrade procedure.\n\n```\n--makelibrary <title>\n```\n\nThe title argument defaults to `$:/UpgradeLibrary`.\n"
},
"$:/language/Help/notfound": {
"title": "$:/language/Help/notfound",
"text": "No such help item"
},
"$:/language/Help/output": {
"title": "$:/language/Help/output",
"description": "Set the base output directory for subsequent commands",
"text": "Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory.\n\n```\n--output <pathname>\n```\n\nIf the specified pathname is relative then it is resolved relative to the current working directory. For example `--output .` sets the output directory to the current working directory.\n\n"
},
"$:/language/Help/password": {
"title": "$:/language/Help/password",
"description": "Set a password for subsequent crypto operations",
"text": "Set a password for subsequent crypto operations\n\n```\n--password <password>\n```\n\n''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]].\n"
},
"$:/language/Help/render": {
"title": "$:/language/Help/render",
"description": "Renders individual tiddlers to files",
"text": "Render individual tiddlers identified by a filter and save the results to the specified files.\n\nOptionally, the title of a template tiddler can be specified. In this case, instead of directly rendering each tiddler, the template tiddler is rendered with the \"currentTiddler\" variable set to the title of the tiddler that is being rendered.\n\nA name and value for an additional variable may optionally also be specified.\n\n```\n--render <tiddler-filter> [<filename-filter>] [<render-type>] [<template>] [<name>] [<value>]\n```\n\n* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered\n* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename\n* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material)\n* ''template'': Optional template through which each tiddler is rendered\n* ''name'': Name of optional variable\n* ''value'': Value of optional variable\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nNotes:\n\n* The output directory is not cleared of any existing files\n* Any missing directories in the path to the filename are automatically created.\n* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--render \"[[Motovun Jack.jpg]]\"`\n* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being rendered, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`\n* The `--render` command is a more flexible replacement for both the `--rendertiddler` and `--rendertiddlers` commands, which are deprecated\n\nExamples:\n\n* `--render \"[!is[system]]\" \"[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]\"` -- renders all non-system tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles and the extension HTML\n\n"
},
"$:/language/Help/rendertiddler": {
"title": "$:/language/Help/rendertiddler",
"description": "Render an individual tiddler as a specified ContentType",
"text": "(Note: The `--rendertiddler` command is deprecated in favour of the new, more flexible `--render` command)\n\nRender an individual tiddler as a specified ContentType, defaulting to `text/html` and save it to the specified filename.\n\nOptionally the title of a template tiddler can be specified, in which case the template tiddler is rendered with the \"currentTiddler\" variable set to the tiddler that is being rendered (the first parameter value).\n\nA name and value for an additional variable may optionally also be specified.\n\n```\n--rendertiddler <title> <filename> [<type>] [<template>] [<name>] [<value>]\n```\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nAny missing directories in the path to the filename are automatically created.\n\nFor example, the following command saves all tiddlers matching the filter `[tag[done]]` to a JSON file titled `output.json` by employing the core template `$:/core/templates/exporters/JsonFile`.\n\n```\n--rendertiddler \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[tag[done]]\"\n```\n"
},
"$:/language/Help/rendertiddlers": {
"title": "$:/language/Help/rendertiddlers",
"description": "Render tiddlers matching a filter to a specified ContentType",
"text": "(Note: The `--rendertiddlers` command is deprecated in favour of the new, more flexible `--render` command)\n\nRender a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`).\n\n```\n--rendertiddlers <filter> <template> <pathname> [<type>] [<extension>] [\"noclean\"]\n```\n\nFor example:\n\n```\n--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html ./static text/plain\n```\n\nBy default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nAny files in the target directory are deleted unless the ''noclean'' flag is specified. The target directory is recursively created if it is missing.\n"
},
"$:/language/Help/save": {
"title": "$:/language/Help/save",
"description": "Saves individual raw tiddlers to files",
"text": "Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files.\n\n```\n--save <tiddler-filter> <filename-filter>\n```\n\n* ''tiddler-filter'': A filter identifying the tiddler(s) to be saved\n* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]]`, which uses the unchanged tiddler title as the filename\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nNotes:\n\n* The output directory is not cleared of any existing files\n* Any missing directories in the path to the filename are automatically created.\n* When saving a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--save \"[[Motovun Jack.jpg]]\"`\n* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being saved, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`\n* The `--save` command is a more flexible replacement for both the `--savetiddler` and `--savetiddlers` commands, which are deprecated\n\nExamples:\n\n* `--save \"[!is[system]is[image]]\" \"[encodeuricomponent[]addprefix[tiddlers/]]\"` -- saves all non-system image tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles\n"
},
"$:/language/Help/savetiddler": {
"title": "$:/language/Help/savetiddler",
"description": "Saves a raw tiddler to a file",
"text": "(Note: The `--savetiddler` command is deprecated in favour of the new, more flexible `--save` command)\n\nSaves an individual tiddler in its raw text or binary format to the specified filename.\n\n```\n--savetiddler <title> <filename>\n```\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nAny missing directories in the path to the filename are automatically created.\n"
},
"$:/language/Help/savetiddlers": {
"title": "$:/language/Help/savetiddlers",
"description": "Saves a group of raw tiddlers to a directory",
"text": "(Note: The `--savetiddlers` command is deprecated in favour of the new, more flexible `--save` command)\n\nSaves a group of tiddlers in their raw text or binary format to the specified directory.\n\n```\n--savetiddlers <filter> <pathname> [\"noclean\"]\n```\n\nBy default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nThe output directory is cleared of existing files before saving the specified files. The deletion can be disabled by specifying the ''noclean'' flag.\n\nAny missing directories in the pathname are automatically created.\n"
},
"$:/language/Help/savewikifolder": {
"title": "$:/language/Help/savewikifolder",
"description": "Saves a wiki to a new wiki folder",
"text": "<<.from-version \"5.1.20\">> Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration:\n\n```\n--savewikifolder <wikifolderpath> [<filter>]\n```\n\n* The target wiki folder must be empty or non-existent\n* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]`\n* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file\n* Custom plugins are unpacked into their own folder\n\nA common usage is to convert a TiddlyWiki HTML file into a wiki folder:\n\n```\ntiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder\n```\n"
},
"$:/language/Help/server": {
"title": "$:/language/Help/server",
"description": "Provides an HTTP server interface to TiddlyWiki (deprecated in favour of the new listen command)",
"text": "Legacy command to serve a wiki over HTTP.\n\n```\n--server <port> <root-tiddler> <root-render-type> <root-serve-type> <username> <password> <host> <path-prefix> <debug-level>\n```\n\nThe parameters are:\n\n* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to \"8080\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\n* ''username'' - the default username for signing edits\n* ''password'' - optional password for basic authentication\n* ''host'' - optional hostname to serve from (defaults to \"127.0.0.1\" aka \"localhost\")\n* ''path-prefix'' - optional prefix for paths\n* ''debug-level'' - optional debug level; set to \"debug\" to view request details (defaults to \"none\")\n\nIf the password parameter is specified then the browser will prompt the user for the username and password. Note that the password is transmitted in plain text so this implementation should only be used on a trusted network or over HTTPS.\n\nFor example:\n\n```\n--server 8080 $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n\nThe username and password can be specified as empty strings if you need to set the hostname or pathprefix and don't want to require a password.\n\n\n```\n--server 8080 $:/core/save/all text/plain text/html \"\" \"\" 192.168.0.245\n```\n\nUsing an address like this exposes your system to the local network. For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.\n\nTo run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to pass the port number to the Node.js process. This example references an environment variable called \"MY_PORT_NUMBER\":\n\n```\n--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n"
},
"$:/language/Help/setfield": {
"title": "$:/language/Help/setfield",
"description": "Prepares external tiddlers for use",
"text": "//Note that this command is experimental and may change or be replaced before being finalised//\n\nSets the specified field of a group of tiddlers to the result of wikifying a template tiddler with the `currentTiddler` variable set to the tiddler.\n\n```\n--setfield <filter> <fieldname> <templatetitle> <rendertype>\n```\n\nThe parameters are:\n\n* ''filter'' - filter identifying the tiddlers to be affected\n* ''fieldname'' - the field to modify (defaults to \"text\")\n* ''templatetitle'' - the tiddler to wikify into the specified field. If blank or missing then the specified field is deleted\n* ''rendertype'' - the text type to render (defaults to \"text/plain\"; \"text/html\" can be used to include HTML tags)\n"
},
"$:/language/Help/unpackplugin": {
"title": "$:/language/Help/unpackplugin",
"description": "Unpack the payload tiddlers from a plugin",
"text": "Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers:\n\n```\n--unpackplugin <title>\n```\n"
},
"$:/language/Help/verbose": {
"title": "$:/language/Help/verbose",
"description": "Triggers verbose output mode",
"text": "Triggers verbose output, useful for debugging\n\n```\n--verbose\n```\n"
},
"$:/language/Help/version": {
"title": "$:/language/Help/version",
"description": "Displays the version number of TiddlyWiki",
"text": "Displays the version number of TiddlyWiki.\n\n```\n--version\n```\n"
},
"$:/language/Import/Imported/Hint": {
"title": "$:/language/Import/Imported/Hint",
"text": "The following tiddlers were imported:"
},
"$:/language/Import/Listing/Cancel/Caption": {
"title": "$:/language/Import/Listing/Cancel/Caption",
"text": "Cancel"
},
"$:/language/Import/Listing/Hint": {
"title": "$:/language/Import/Listing/Hint",
"text": "These tiddlers are ready to import:"
},
"$:/language/Import/Listing/Import/Caption": {
"title": "$:/language/Import/Listing/Import/Caption",
"text": "Import"
},
"$:/language/Import/Listing/Select/Caption": {
"title": "$:/language/Import/Listing/Select/Caption",
"text": "Select"
},
"$:/language/Import/Listing/Status/Caption": {
"title": "$:/language/Import/Listing/Status/Caption",
"text": "Status"
},
"$:/language/Import/Listing/Title/Caption": {
"title": "$:/language/Import/Listing/Title/Caption",
"text": "Title"
},
"$:/language/Import/Listing/Preview": {
"title": "$:/language/Import/Listing/Preview",
"text": "Preview:"
},
"$:/language/Import/Listing/Preview/Text": {
"title": "$:/language/Import/Listing/Preview/Text",
"text": "Text"
},
"$:/language/Import/Listing/Preview/TextRaw": {
"title": "$:/language/Import/Listing/Preview/TextRaw",
"text": "Text (Raw)"
},
"$:/language/Import/Listing/Preview/Fields": {
"title": "$:/language/Import/Listing/Preview/Fields",
"text": "Fields"
},
"$:/language/Import/Listing/Preview/Diff": {
"title": "$:/language/Import/Listing/Preview/Diff",
"text": "Diff"
},
"$:/language/Import/Listing/Preview/DiffFields": {
"title": "$:/language/Import/Listing/Preview/DiffFields",
"text": "Diff (Fields)"
},
"$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible": {
"title": "$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible",
"text": "Blocked incompatible or obsolete plugin"
},
"$:/language/Import/Upgrader/Plugins/Suppressed/Version": {
"title": "$:/language/Import/Upgrader/Plugins/Suppressed/Version",
"text": "Blocked plugin (due to incoming <<incoming>> being older than existing <<existing>>)"
},
"$:/language/Import/Upgrader/Plugins/Upgraded": {
"title": "$:/language/Import/Upgrader/Plugins/Upgraded",
"text": "Upgraded plugin from <<incoming>> to <<upgraded>>"
},
"$:/language/Import/Upgrader/State/Suppressed": {
"title": "$:/language/Import/Upgrader/State/Suppressed",
"text": "Blocked temporary state tiddler"
},
"$:/language/Import/Upgrader/System/Suppressed": {
"title": "$:/language/Import/Upgrader/System/Suppressed",
"text": "Blocked system tiddler"
},
"$:/language/Import/Upgrader/System/Warning": {
"title": "$:/language/Import/Upgrader/System/Warning",
"text": "Core module tiddler"
},
"$:/language/Import/Upgrader/System/Alert": {
"title": "$:/language/Import/Upgrader/System/Alert",
"text": "You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable"
},
"$:/language/Import/Upgrader/ThemeTweaks/Created": {
"title": "$:/language/Import/Upgrader/ThemeTweaks/Created",
"text": "Migrated theme tweak from <$text text=<<from>>/>"
},
"$:/language/AboveStory/ClassicPlugin/Warning": {
"title": "$:/language/AboveStory/ClassicPlugin/Warning",
"text": "It looks like you are trying to load a plugin designed for ~TiddlyWiki Classic. Please note that [[these plugins do not work with TiddlyWiki version 5.x.x|https://tiddlywiki.com/#TiddlyWikiClassic]]. ~TiddlyWiki Classic plugins detected:"
},
"$:/language/BinaryWarning/Prompt": {
"title": "$:/language/BinaryWarning/Prompt",
"text": "This tiddler contains binary data"
},
"$:/language/ClassicWarning/Hint": {
"title": "$:/language/ClassicWarning/Hint",
"text": "This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See https://tiddlywiki.com/static/Upgrading.html for more details."
},
"$:/language/ClassicWarning/Upgrade/Caption": {
"title": "$:/language/ClassicWarning/Upgrade/Caption",
"text": "upgrade"
},
"$:/language/CloseAll/Button": {
"title": "$:/language/CloseAll/Button",
"text": "close all"
},
"$:/language/ColourPicker/Recent": {
"title": "$:/language/ColourPicker/Recent",
"text": "Recent:"
},
"$:/language/ConfirmCancelTiddler": {
"title": "$:/language/ConfirmCancelTiddler",
"text": "Do you wish to discard changes to the tiddler \"<$text text=<<title>>/>\"?"
},
"$:/language/ConfirmDeleteTiddler": {
"title": "$:/language/ConfirmDeleteTiddler",
"text": "Do you wish to delete the tiddler \"<$text text=<<title>>/>\"?"
},
"$:/language/ConfirmOverwriteTiddler": {
"title": "$:/language/ConfirmOverwriteTiddler",
"text": "Do you wish to overwrite the tiddler \"<$text text=<<title>>/>\"?"
},
"$:/language/ConfirmEditShadowTiddler": {
"title": "$:/language/ConfirmEditShadowTiddler",
"text": "You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit \"<$text text=<<title>>/>\"?"
},
"$:/language/Count": {
"title": "$:/language/Count",
"text": "count"
},
"$:/language/DefaultNewTiddlerTitle": {
"title": "$:/language/DefaultNewTiddlerTitle",
"text": "New Tiddler"
},
"$:/language/Diffs/CountMessage": {
"title": "$:/language/Diffs/CountMessage",
"text": "<<diff-count>> differences"
},
"$:/language/DropMessage": {
"title": "$:/language/DropMessage",
"text": "Drop here (or use the 'Escape' key to cancel)"
},
"$:/language/Encryption/Cancel": {
"title": "$:/language/Encryption/Cancel",
"text": "Cancel"
},
"$:/language/Encryption/ConfirmClearPassword": {
"title": "$:/language/Encryption/ConfirmClearPassword",
"text": "Do you wish to clear the password? This will remove the encryption applied when saving this wiki"
},
"$:/language/Encryption/PromptSetPassword": {
"title": "$:/language/Encryption/PromptSetPassword",
"text": "Set a new password for this TiddlyWiki"
},
"$:/language/Encryption/Username": {
"title": "$:/language/Encryption/Username",
"text": "Username"
},
"$:/language/Encryption/Password": {
"title": "$:/language/Encryption/Password",
"text": "Password"
},
"$:/language/Encryption/RepeatPassword": {
"title": "$:/language/Encryption/RepeatPassword",
"text": "Repeat password"
},
"$:/language/Encryption/PasswordNoMatch": {
"title": "$:/language/Encryption/PasswordNoMatch",
"text": "Passwords do not match"
},
"$:/language/Encryption/SetPassword": {
"title": "$:/language/Encryption/SetPassword",
"text": "Set password"
},
"$:/language/Error/Caption": {
"title": "$:/language/Error/Caption",
"text": "Error"
},
"$:/language/Error/EditConflict": {
"title": "$:/language/Error/EditConflict",
"text": "File changed on server"
},
"$:/language/Error/Filter": {
"title": "$:/language/Error/Filter",
"text": "Filter error"
},
"$:/language/Error/FilterSyntax": {
"title": "$:/language/Error/FilterSyntax",
"text": "Syntax error in filter expression"
},
"$:/language/Error/IsFilterOperator": {
"title": "$:/language/Error/IsFilterOperator",
"text": "Filter Error: Unknown operand for the 'is' filter operator"
},
"$:/language/Error/LoadingPluginLibrary": {
"title": "$:/language/Error/LoadingPluginLibrary",
"text": "Error loading plugin library"
},
"$:/language/Error/RecursiveTransclusion": {
"title": "$:/language/Error/RecursiveTransclusion",
"text": "Recursive transclusion error in transclude widget"
},
"$:/language/Error/RetrievingSkinny": {
"title": "$:/language/Error/RetrievingSkinny",
"text": "Error retrieving skinny tiddler list"
},
"$:/language/Error/SavingToTWEdit": {
"title": "$:/language/Error/SavingToTWEdit",
"text": "Error saving to TWEdit"
},
"$:/language/Error/WhileSaving": {
"title": "$:/language/Error/WhileSaving",
"text": "Error while saving"
},
"$:/language/Error/XMLHttpRequest": {
"title": "$:/language/Error/XMLHttpRequest",
"text": "XMLHttpRequest error code"
},
"$:/language/InternalJavaScriptError/Title": {
"title": "$:/language/InternalJavaScriptError/Title",
"text": "Internal JavaScript Error"
},
"$:/language/InternalJavaScriptError/Hint": {
"title": "$:/language/InternalJavaScriptError/Hint",
"text": "Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser"
},
"$:/language/InvalidFieldName": {
"title": "$:/language/InvalidFieldName",
"text": "Illegal characters in field name \"<$text text=<<fieldName>>/>\". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)"
},
"$:/language/LazyLoadingWarning": {
"title": "$:/language/LazyLoadingWarning",
"text": "<p>Trying to load external content from ''<$text text={{!!_canonical_uri}}/>''</p><p>If this message doesn't disappear, either the tiddler content type doesn't match the type of the external content, or you may be using a browser that doesn't support external content for wikis loaded as standalone files. See https://tiddlywiki.com/#ExternalText</p>"
},
"$:/language/LoginToTiddlySpace": {
"title": "$:/language/LoginToTiddlySpace",
"text": "Login to TiddlySpace"
},
"$:/language/Manager/Controls/FilterByTag/None": {
"title": "$:/language/Manager/Controls/FilterByTag/None",
"text": "(none)"
},
"$:/language/Manager/Controls/FilterByTag/Prompt": {
"title": "$:/language/Manager/Controls/FilterByTag/Prompt",
"text": "Filter by tag:"
},
"$:/language/Manager/Controls/Order/Prompt": {
"title": "$:/language/Manager/Controls/Order/Prompt",
"text": "Reverse order"
},
"$:/language/Manager/Controls/Search/Placeholder": {
"title": "$:/language/Manager/Controls/Search/Placeholder",
"text": "Search"
},
"$:/language/Manager/Controls/Search/Prompt": {
"title": "$:/language/Manager/Controls/Search/Prompt",
"text": "Search:"
},
"$:/language/Manager/Controls/Show/Option/Tags": {
"title": "$:/language/Manager/Controls/Show/Option/Tags",
"text": "tags"
},
"$:/language/Manager/Controls/Show/Option/Tiddlers": {
"title": "$:/language/Manager/Controls/Show/Option/Tiddlers",
"text": "tiddlers"
},
"$:/language/Manager/Controls/Show/Prompt": {
"title": "$:/language/Manager/Controls/Show/Prompt",
"text": "Show:"
},
"$:/language/Manager/Controls/Sort/Prompt": {
"title": "$:/language/Manager/Controls/Sort/Prompt",
"text": "Sort by:"
},
"$:/language/Manager/Item/Colour": {
"title": "$:/language/Manager/Item/Colour",
"text": "Colour"
},
"$:/language/Manager/Item/Fields": {
"title": "$:/language/Manager/Item/Fields",
"text": "Fields"
},
"$:/language/Manager/Item/Icon/None": {
"title": "$:/language/Manager/Item/Icon/None",
"text": "(none)"
},
"$:/language/Manager/Item/Icon": {
"title": "$:/language/Manager/Item/Icon",
"text": "Icon"
},
"$:/language/Manager/Item/RawText": {
"title": "$:/language/Manager/Item/RawText",
"text": "Raw text"
},
"$:/language/Manager/Item/Tags": {
"title": "$:/language/Manager/Item/Tags",
"text": "Tags"
},
"$:/language/Manager/Item/Tools": {
"title": "$:/language/Manager/Item/Tools",
"text": "Tools"
},
"$:/language/Manager/Item/WikifiedText": {
"title": "$:/language/Manager/Item/WikifiedText",
"text": "Wikified text"
},
"$:/language/MissingTiddler/Hint": {
"title": "$:/language/MissingTiddler/Hint",
"text": "Missing tiddler \"<$text text=<<currentTiddler>>/>\" -- click {{||$:/core/ui/Buttons/edit}} to create"
},
"$:/language/No": {
"title": "$:/language/No",
"text": "No"
},
"$:/language/OfficialPluginLibrary": {
"title": "$:/language/OfficialPluginLibrary",
"text": "Official ~TiddlyWiki Plugin Library"
},
"$:/language/OfficialPluginLibrary/Hint": {
"title": "$:/language/OfficialPluginLibrary/Hint",
"text": "The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team."
},
"$:/language/PluginReloadWarning": {
"title": "$:/language/PluginReloadWarning",
"text": "Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to plugins to take effect"
},
"$:/language/RecentChanges/DateFormat": {
"title": "$:/language/RecentChanges/DateFormat",
"text": "DDth MMM YYYY"
},
"$:/language/SystemTiddler/Tooltip": {
"title": "$:/language/SystemTiddler/Tooltip",
"text": "This is a system tiddler"
},
"$:/language/SystemTiddlers/Include/Prompt": {
"title": "$:/language/SystemTiddlers/Include/Prompt",
"text": "Include system tiddlers"
},
"$:/language/TagManager/Colour/Heading": {
"title": "$:/language/TagManager/Colour/Heading",
"text": "Colour"
},
"$:/language/TagManager/Count/Heading": {
"title": "$:/language/TagManager/Count/Heading",
"text": "Count"
},
"$:/language/TagManager/Icon/Heading": {
"title": "$:/language/TagManager/Icon/Heading",
"text": "Icon"
},
"$:/language/TagManager/Info/Heading": {
"title": "$:/language/TagManager/Info/Heading",
"text": "Info"
},
"$:/language/TagManager/Tag/Heading": {
"title": "$:/language/TagManager/Tag/Heading",
"text": "Tag"
},
"$:/language/Tiddler/DateFormat": {
"title": "$:/language/Tiddler/DateFormat",
"text": "DDth MMM YYYY at hh12:0mmam"
},
"$:/language/UnsavedChangesWarning": {
"title": "$:/language/UnsavedChangesWarning",
"text": "You have unsaved changes in TiddlyWiki"
},
"$:/language/Yes": {
"title": "$:/language/Yes",
"text": "Yes"
},
"$:/language/Modals/Download": {
"title": "$:/language/Modals/Download",
"subtitle": "Download changes",
"footer": "<$button message=\"tm-close-tiddler\">Close</$button>",
"help": "https://tiddlywiki.com/static/DownloadingChanges.html",
"text": "Your browser only supports manual saving.\n\nTo save your modified wiki, right click on the download link below and select \"Download file\" or \"Save file\", and then choose the folder and filename.\n\n//You can marginally speed things up by clicking the link with the control key (Windows) or the options/alt key (Mac OS X). You will not be prompted for the folder or filename, but your browser is likely to give it an unrecognisable name -- you may need to rename the file to include an `.html` extension before you can do anything useful with it.//\n\nOn smartphones that do not allow files to be downloaded you can instead bookmark the link, and then sync your bookmarks to a desktop computer from where the wiki can be saved normally.\n"
},
"$:/language/Modals/SaveInstructions": {
"title": "$:/language/Modals/SaveInstructions",
"subtitle": "Save your work",
"footer": "<$button message=\"tm-close-tiddler\">Close</$button>",
"help": "https://tiddlywiki.com/static/SavingChanges.html",
"text": "Your changes to this wiki need to be saved as a ~TiddlyWiki HTML file.\n\n!!! Desktop browsers\n\n# Select ''Save As'' from the ''File'' menu\n# Choose a filename and location\n#* Some browsers also require you to explicitly specify the file saving format as ''Webpage, HTML only'' or similar\n# Close this tab\n\n!!! Smartphone browsers\n\n# Create a bookmark to this page\n#* If you've got iCloud or Google Sync set up then the bookmark will automatically sync to your desktop where you can open it and save it as above\n# Close this tab\n\n//If you open the bookmark again in Mobile Safari you will see this message again. If you want to go ahead and use the file, just click the ''close'' button below//\n"
},
"$:/config/NewJournal/Title": {
"title": "$:/config/NewJournal/Title",
"text": "DDth MMM YYYY"
},
"$:/config/NewJournal/Text": {
"title": "$:/config/NewJournal/Text",
"text": ""
},
"$:/config/NewJournal/Tags": {
"title": "$:/config/NewJournal/Tags",
"text": "Journal"
},
"$:/language/Notifications/Save/Done": {
"title": "$:/language/Notifications/Save/Done",
"text": "Saved wiki"
},
"$:/language/Notifications/Save/Starting": {
"title": "$:/language/Notifications/Save/Starting",
"text": "Starting to save wiki"
},
"$:/language/Notifications/CopiedToClipboard/Succeeded": {
"title": "$:/language/Notifications/CopiedToClipboard/Succeeded",
"text": "Copied to clipboard!"
},
"$:/language/Notifications/CopiedToClipboard/Failed": {
"title": "$:/language/Notifications/CopiedToClipboard/Failed",
"text": "Failed to copy to clipboard!"
},
"$:/language/Search/DefaultResults/Caption": {
"title": "$:/language/Search/DefaultResults/Caption",
"text": "List"
},
"$:/language/Search/Filter/Caption": {
"title": "$:/language/Search/Filter/Caption",
"text": "Filter"
},
"$:/language/Search/Filter/Hint": {
"title": "$:/language/Search/Filter/Hint",
"text": "Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]"
},
"$:/language/Search/Filter/Matches": {
"title": "$:/language/Search/Filter/Matches",
"text": "//<small><<resultCount>> matches</small>//"
},
"$:/language/Search/Matches": {
"title": "$:/language/Search/Matches",
"text": "//<small><<resultCount>> matches</small>//"
},
"$:/language/Search/Matches/All": {
"title": "$:/language/Search/Matches/All",
"text": "All matches:"
},
"$:/language/Search/Matches/Title": {
"title": "$:/language/Search/Matches/Title",
"text": "Title matches:"
},
"$:/language/Search/Search": {
"title": "$:/language/Search/Search",
"text": "Search"
},
"$:/language/Search/Search/TooShort": {
"title": "$:/language/Search/Search/TooShort",
"text": "Search text too short"
},
"$:/language/Search/Shadows/Caption": {
"title": "$:/language/Search/Shadows/Caption",
"text": "Shadows"
},
"$:/language/Search/Shadows/Hint": {
"title": "$:/language/Search/Shadows/Hint",
"text": "Search for shadow tiddlers"
},
"$:/language/Search/Shadows/Matches": {
"title": "$:/language/Search/Shadows/Matches",
"text": "//<small><<resultCount>> matches</small>//"
},
"$:/language/Search/Standard/Caption": {
"title": "$:/language/Search/Standard/Caption",
"text": "Standard"
},
"$:/language/Search/Standard/Hint": {
"title": "$:/language/Search/Standard/Hint",
"text": "Search for standard tiddlers"
},
"$:/language/Search/Standard/Matches": {
"title": "$:/language/Search/Standard/Matches",
"text": "//<small><<resultCount>> matches</small>//"
},
"$:/language/Search/System/Caption": {
"title": "$:/language/Search/System/Caption",
"text": "System"
},
"$:/language/Search/System/Hint": {
"title": "$:/language/Search/System/Hint",
"text": "Search for system tiddlers"
},
"$:/language/Search/System/Matches": {
"title": "$:/language/Search/System/Matches",
"text": "//<small><<resultCount>> matches</small>//"
},
"$:/language/SideBar/All/Caption": {
"title": "$:/language/SideBar/All/Caption",
"text": "All"
},
"$:/language/SideBar/Contents/Caption": {
"title": "$:/language/SideBar/Contents/Caption",
"text": "Contents"
},
"$:/language/SideBar/Drafts/Caption": {
"title": "$:/language/SideBar/Drafts/Caption",
"text": "Drafts"
},
"$:/language/SideBar/Explorer/Caption": {
"title": "$:/language/SideBar/Explorer/Caption",
"text": "Explorer"
},
"$:/language/SideBar/Missing/Caption": {
"title": "$:/language/SideBar/Missing/Caption",
"text": "Missing"
},
"$:/language/SideBar/More/Caption": {
"title": "$:/language/SideBar/More/Caption",
"text": "More"
},
"$:/language/SideBar/Open/Caption": {
"title": "$:/language/SideBar/Open/Caption",
"text": "Open"
},
"$:/language/SideBar/Orphans/Caption": {
"title": "$:/language/SideBar/Orphans/Caption",
"text": "Orphans"
},
"$:/language/SideBar/Recent/Caption": {
"title": "$:/language/SideBar/Recent/Caption",
"text": "Recent"
},
"$:/language/SideBar/Shadows/Caption": {
"title": "$:/language/SideBar/Shadows/Caption",
"text": "Shadows"
},
"$:/language/SideBar/System/Caption": {
"title": "$:/language/SideBar/System/Caption",
"text": "System"
},
"$:/language/SideBar/Tags/Caption": {
"title": "$:/language/SideBar/Tags/Caption",
"text": "Tags"
},
"$:/language/SideBar/Tags/Untagged/Caption": {
"title": "$:/language/SideBar/Tags/Untagged/Caption",
"text": "untagged"
},
"$:/language/SideBar/Tools/Caption": {
"title": "$:/language/SideBar/Tools/Caption",
"text": "Tools"
},
"$:/language/SideBar/Types/Caption": {
"title": "$:/language/SideBar/Types/Caption",
"text": "Types"
},
"$:/SiteSubtitle": {
"title": "$:/SiteSubtitle",
"text": "a non-linear personal web notebook"
},
"$:/SiteTitle": {
"title": "$:/SiteTitle",
"text": "My ~TiddlyWiki"
},
"$:/language/Snippets/ListByTag": {
"title": "$:/language/Snippets/ListByTag",
"tags": "$:/tags/TextEditor/Snippet",
"caption": "List of tiddlers by tag",
"text": "<<list-links \"[tag[task]sort[title]]\">>\n"
},
"$:/language/Snippets/MacroDefinition": {
"title": "$:/language/Snippets/MacroDefinition",
"tags": "$:/tags/TextEditor/Snippet",
"caption": "Macro definition",
"text": "\\define macroName(param1:\"default value\",param2)\nText of the macro\n\\end\n"
},
"$:/language/Snippets/Table4x3": {
"title": "$:/language/Snippets/Table4x3",
"tags": "$:/tags/TextEditor/Snippet",
"caption": "Table with 4 columns by 3 rows",
"text": "|! |!Alpha |!Beta |!Gamma |!Delta |\n|!One | | | | |\n|!Two | | | | |\n|!Three | | | | |\n"
},
"$:/language/Snippets/TableOfContents": {
"title": "$:/language/Snippets/TableOfContents",
"tags": "$:/tags/TextEditor/Snippet",
"caption": "Table of Contents",
"text": "<div class=\"tc-table-of-contents\">\n\n<<toc-selective-expandable 'TableOfContents'>>\n\n</div>"
},
"$:/language/ThemeTweaks/ThemeTweaks": {
"title": "$:/language/ThemeTweaks/ThemeTweaks",
"text": "Theme Tweaks"
},
"$:/language/ThemeTweaks/ThemeTweaks/Hint": {
"title": "$:/language/ThemeTweaks/ThemeTweaks/Hint",
"text": "You can tweak certain aspects of the ''Vanilla'' theme."
},
"$:/language/ThemeTweaks/Options": {
"title": "$:/language/ThemeTweaks/Options",
"text": "Options"
},
"$:/language/ThemeTweaks/Options/SidebarLayout": {
"title": "$:/language/ThemeTweaks/Options/SidebarLayout",
"text": "Sidebar layout"
},
"$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid": {
"title": "$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid",
"text": "Fixed story, fluid sidebar"
},
"$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed": {
"title": "$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed",
"text": "Fluid story, fixed sidebar"
},
"$:/language/ThemeTweaks/Options/StickyTitles": {
"title": "$:/language/ThemeTweaks/Options/StickyTitles",
"text": "Sticky titles"
},
"$:/language/ThemeTweaks/Options/StickyTitles/Hint": {
"title": "$:/language/ThemeTweaks/Options/StickyTitles/Hint",
"text": "Causes tiddler titles to \"stick\" to the top of the browser window"
},
"$:/language/ThemeTweaks/Options/CodeWrapping": {
"title": "$:/language/ThemeTweaks/Options/CodeWrapping",
"text": "Wrap long lines in code blocks"
},
"$:/language/ThemeTweaks/Settings": {
"title": "$:/language/ThemeTweaks/Settings",
"text": "Settings"
},
"$:/language/ThemeTweaks/Settings/FontFamily": {
"title": "$:/language/ThemeTweaks/Settings/FontFamily",
"text": "Font family"
},
"$:/language/ThemeTweaks/Settings/CodeFontFamily": {
"title": "$:/language/ThemeTweaks/Settings/CodeFontFamily",
"text": "Code font family"
},
"$:/language/ThemeTweaks/Settings/EditorFontFamily": {
"title": "$:/language/ThemeTweaks/Settings/EditorFontFamily",
"text": "Editor font family"
},
"$:/language/ThemeTweaks/Settings/BackgroundImage": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImage",
"text": "Page background image"
},
"$:/language/ThemeTweaks/Settings/BackgroundImageAttachment": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment",
"text": "Page background image attachment"
},
"$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll",
"text": "Scroll with tiddlers"
},
"$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed",
"text": "Fixed to window"
},
"$:/language/ThemeTweaks/Settings/BackgroundImageSize": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize",
"text": "Page background image size"
},
"$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto",
"text": "Auto"
},
"$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover",
"text": "Cover"
},
"$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain": {
"title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain",
"text": "Contain"
},
"$:/language/ThemeTweaks/Metrics": {
"title": "$:/language/ThemeTweaks/Metrics",
"text": "Sizes"
},
"$:/language/ThemeTweaks/Metrics/FontSize": {
"title": "$:/language/ThemeTweaks/Metrics/FontSize",
"text": "Font size"
},
"$:/language/ThemeTweaks/Metrics/LineHeight": {
"title": "$:/language/ThemeTweaks/Metrics/LineHeight",
"text": "Line height"
},
"$:/language/ThemeTweaks/Metrics/BodyFontSize": {
"title": "$:/language/ThemeTweaks/Metrics/BodyFontSize",
"text": "Font size for tiddler body"
},
"$:/language/ThemeTweaks/Metrics/BodyLineHeight": {
"title": "$:/language/ThemeTweaks/Metrics/BodyLineHeight",
"text": "Line height for tiddler body"
},
"$:/language/ThemeTweaks/Metrics/StoryLeft": {
"title": "$:/language/ThemeTweaks/Metrics/StoryLeft",
"text": "Story left position"
},
"$:/language/ThemeTweaks/Metrics/StoryLeft/Hint": {
"title": "$:/language/ThemeTweaks/Metrics/StoryLeft/Hint",
"text": "how far the left margin of the story river<br>(tiddler area) is from the left of the page"
},
"$:/language/ThemeTweaks/Metrics/StoryTop": {
"title": "$:/language/ThemeTweaks/Metrics/StoryTop",
"text": "Story top position"
},
"$:/language/ThemeTweaks/Metrics/StoryTop/Hint": {
"title": "$:/language/ThemeTweaks/Metrics/StoryTop/Hint",
"text": "how far the top margin of the story river<br>is from the top of the page"
},
"$:/language/ThemeTweaks/Metrics/StoryRight": {
"title": "$:/language/ThemeTweaks/Metrics/StoryRight",
"text": "Story right"
},
"$:/language/ThemeTweaks/Metrics/StoryRight/Hint": {
"title": "$:/language/ThemeTweaks/Metrics/StoryRight/Hint",
"text": "how far the left margin of the sidebar <br>is from the left of the page"
},
"$:/language/ThemeTweaks/Metrics/StoryWidth": {
"title": "$:/language/ThemeTweaks/Metrics/StoryWidth",
"text": "Story width"
},
"$:/language/ThemeTweaks/Metrics/StoryWidth/Hint": {
"title": "$:/language/ThemeTweaks/Metrics/StoryWidth/Hint",
"text": "the overall width of the story river"
},
"$:/language/ThemeTweaks/Metrics/TiddlerWidth": {
"title": "$:/language/ThemeTweaks/Metrics/TiddlerWidth",
"text": "Tiddler width"
},
"$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint": {
"title": "$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint",
"text": "within the story river"
},
"$:/language/ThemeTweaks/Metrics/SidebarBreakpoint": {
"title": "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint",
"text": "Sidebar breakpoint"
},
"$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint": {
"title": "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint",
"text": "the minimum page width at which the story<br>river and sidebar will appear side by side"
},
"$:/language/ThemeTweaks/Metrics/SidebarWidth": {
"title": "$:/language/ThemeTweaks/Metrics/SidebarWidth",
"text": "Sidebar width"
},
"$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint": {
"title": "$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint",
"text": "the width of the sidebar in fluid-fixed layout"
},
"$:/language/TiddlerInfo/Advanced/Caption": {
"title": "$:/language/TiddlerInfo/Advanced/Caption",
"text": "Advanced"
},
"$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint": {
"title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint",
"text": "none"
},
"$:/language/TiddlerInfo/Advanced/PluginInfo/Heading": {
"title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Heading",
"text": "Plugin Details"
},
"$:/language/TiddlerInfo/Advanced/PluginInfo/Hint": {
"title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Hint",
"text": "This plugin contains the following shadow tiddlers:"
},
"$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading": {
"title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading",
"text": "Shadow Status"
},
"$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint": {
"title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint",
"text": "The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is not a shadow tiddler"
},
"$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint": {
"title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint",
"text": "The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is a shadow tiddler"
},
"$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source": {
"title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source",
"text": "It is defined in the plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>"
},
"$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint": {
"title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint",
"text": "It is overridden by an ordinary tiddler"
},
"$:/language/TiddlerInfo/Fields/Caption": {
"title": "$:/language/TiddlerInfo/Fields/Caption",
"text": "Fields"
},
"$:/language/TiddlerInfo/List/Caption": {
"title": "$:/language/TiddlerInfo/List/Caption",
"text": "List"
},
"$:/language/TiddlerInfo/List/Empty": {
"title": "$:/language/TiddlerInfo/List/Empty",
"text": "This tiddler does not have a list"
},
"$:/language/TiddlerInfo/Listed/Caption": {
"title": "$:/language/TiddlerInfo/Listed/Caption",
"text": "Listed"
},
"$:/language/TiddlerInfo/Listed/Empty": {
"title": "$:/language/TiddlerInfo/Listed/Empty",
"text": "This tiddler is not listed by any others"
},
"$:/language/TiddlerInfo/References/Caption": {
"title": "$:/language/TiddlerInfo/References/Caption",
"text": "References"
},
"$:/language/TiddlerInfo/References/Empty": {
"title": "$:/language/TiddlerInfo/References/Empty",
"text": "No tiddlers link to this one"
},
"$:/language/TiddlerInfo/Tagging/Caption": {
"title": "$:/language/TiddlerInfo/Tagging/Caption",
"text": "Tagging"
},
"$:/language/TiddlerInfo/Tagging/Empty": {
"title": "$:/language/TiddlerInfo/Tagging/Empty",
"text": "No tiddlers are tagged with this one"
},
"$:/language/TiddlerInfo/Tools/Caption": {
"title": "$:/language/TiddlerInfo/Tools/Caption",
"text": "Tools"
},
"$:/language/Docs/Types/application/javascript": {
"title": "$:/language/Docs/Types/application/javascript",
"description": "JavaScript code",
"name": "application/javascript",
"group": "Developer",
"group-sort": "2"
},
"$:/language/Docs/Types/application/json": {
"title": "$:/language/Docs/Types/application/json",
"description": "JSON data",
"name": "application/json",
"group": "Developer",
"group-sort": "2"
},
"$:/language/Docs/Types/application/x-tiddler-dictionary": {
"title": "$:/language/Docs/Types/application/x-tiddler-dictionary",
"description": "Data dictionary",
"name": "application/x-tiddler-dictionary",
"group": "Developer",
"group-sort": "2"
},
"$:/language/Docs/Types/image/gif": {
"title": "$:/language/Docs/Types/image/gif",
"description": "GIF image",
"name": "image/gif",
"group": "Image",
"group-sort": "1"
},
"$:/language/Docs/Types/image/jpeg": {
"title": "$:/language/Docs/Types/image/jpeg",
"description": "JPEG image",
"name": "image/jpeg",
"group": "Image",
"group-sort": "1"
},
"$:/language/Docs/Types/image/png": {
"title": "$:/language/Docs/Types/image/png",
"description": "PNG image",
"name": "image/png",
"group": "Image",
"group-sort": "1"
},
"$:/language/Docs/Types/image/svg+xml": {
"title": "$:/language/Docs/Types/image/svg+xml",
"description": "Structured Vector Graphics image",
"name": "image/svg+xml",
"group": "Image",
"group-sort": "1"
},
"$:/language/Docs/Types/image/x-icon": {
"title": "$:/language/Docs/Types/image/x-icon",
"description": "ICO format icon file",
"name": "image/x-icon",
"group": "Image",
"group-sort": "1"
},
"$:/language/Docs/Types/text/css": {
"title": "$:/language/Docs/Types/text/css",
"description": "Static stylesheet",
"name": "text/css",
"group": "Developer",
"group-sort": "2"
},
"$:/language/Docs/Types/text/html": {
"title": "$:/language/Docs/Types/text/html",
"description": "HTML markup",
"name": "text/html",
"group": "Text",
"group-sort": "0"
},
"$:/language/Docs/Types/text/plain": {
"title": "$:/language/Docs/Types/text/plain",
"description": "Plain text",
"name": "text/plain",
"group": "Text",
"group-sort": "0"
},
"$:/language/Docs/Types/text/vnd.tiddlywiki": {
"title": "$:/language/Docs/Types/text/vnd.tiddlywiki",
"description": "TiddlyWiki 5",
"name": "text/vnd.tiddlywiki",
"group": "Text",
"group-sort": "0"
},
"$:/language/Docs/Types/text/x-tiddlywiki": {
"title": "$:/language/Docs/Types/text/x-tiddlywiki",
"description": "TiddlyWiki Classic",
"name": "text/x-tiddlywiki",
"group": "Text",
"group-sort": "0"
},
"$:/languages/en-GB/icon": {
"title": "$:/languages/en-GB/icon",
"type": "image/svg+xml",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 60 30\" width=\"1200\" height=\"600\">\n<clipPath id=\"t\">\n\t<path d=\"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z\"/>\n</clipPath>\n<path d=\"M0,0 v30 h60 v-30 z\" fill=\"#00247d\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#fff\" stroke-width=\"6\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" clip-path=\"url(#t)\" stroke=\"#cf142b\" stroke-width=\"4\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#fff\" stroke-width=\"10\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#cf142b\" stroke-width=\"6\"/>\n</svg>\n"
},
"$:/languages/en-GB": {
"title": "$:/languages/en-GB",
"name": "en-GB",
"description": "English (British)",
"author": "JeremyRuston",
"core-version": ">=5.0.0\"",
"text": "Stub pseudo-plugin for the default language"
},
"$:/core/modules/commander.js": {
"title": "$:/core/modules/commander.js",
"text": "/*\\\ntitle: $:/core/modules/commander.js\ntype: application/javascript\nmodule-type: global\n\nThe $tw.Commander class is a command interpreter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nParse a sequence of commands\n\tcommandTokens: an array of command string tokens\n\twiki: reference to the wiki store object\n\tstreams: {output:, error:}, each of which has a write(string) method\n\tcallback: a callback invoked as callback(err) where err is null if there was no error\n*/\nvar Commander = function(commandTokens,callback,wiki,streams) {\n\tvar path = require(\"path\");\n\tthis.commandTokens = commandTokens;\n\tthis.nextToken = 0;\n\tthis.callback = callback;\n\tthis.wiki = wiki;\n\tthis.streams = streams;\n\tthis.outputPath = path.resolve($tw.boot.wikiPath,$tw.config.wikiOutputSubDir);\n};\n\n/*\nLog a string if verbose flag is set\n*/\nCommander.prototype.log = function(str) {\n\tif(this.verbose) {\n\t\tthis.streams.output.write(str + \"\\n\");\n\t}\n};\n\n/*\nWrite a string if verbose flag is set\n*/\nCommander.prototype.write = function(str) {\n\tif(this.verbose) {\n\t\tthis.streams.output.write(str);\n\t}\n};\n\n/*\nAdd a string of tokens to the command queue\n*/\nCommander.prototype.addCommandTokens = function(commandTokens) {\n\tvar params = commandTokens.slice(0);\n\tparams.unshift(0);\n\tparams.unshift(this.nextToken);\n\tArray.prototype.splice.apply(this.commandTokens,params);\n};\n\n/*\nExecute the sequence of commands and invoke a callback on completion\n*/\nCommander.prototype.execute = function() {\n\tthis.executeNextCommand();\n};\n\n/*\nExecute the next command in the sequence\n*/\nCommander.prototype.executeNextCommand = function() {\n\tvar self = this;\n\t// Invoke the callback if there are no more commands\n\tif(this.nextToken >= this.commandTokens.length) {\n\t\tthis.callback(null);\n\t} else {\n\t\t// Get and check the command token\n\t\tvar commandName = this.commandTokens[this.nextToken++];\n\t\tif(commandName.substr(0,2) !== \"--\") {\n\t\t\tthis.callback(\"Missing command: \" + commandName);\n\t\t} else {\n\t\t\tcommandName = commandName.substr(2); // Trim off the --\n\t\t\t// Accumulate the parameters to the command\n\t\t\tvar params = [];\n\t\t\twhile(this.nextToken < this.commandTokens.length && \n\t\t\t\tthis.commandTokens[this.nextToken].substr(0,2) !== \"--\") {\n\t\t\t\tparams.push(this.commandTokens[this.nextToken++]);\n\t\t\t}\n\t\t\t// Get the command info\n\t\t\tvar command = $tw.commands[commandName],\n\t\t\t\tc,err;\n\t\t\tif(!command) {\n\t\t\t\tthis.callback(\"Unknown command: \" + commandName);\n\t\t\t} else {\n\t\t\t\tif(this.verbose) {\n\t\t\t\t\tthis.streams.output.write(\"Executing command: \" + commandName + \" \" + params.join(\" \") + \"\\n\");\n\t\t\t\t}\n\t\t\t\t// Parse named parameters if required\n\t\t\t\tif(command.info.namedParameterMode) {\n\t\t\t\t\tparams = this.extractNamedParameters(params,command.info.mandatoryParameters);\n\t\t\t\t\tif(typeof params === \"string\") {\n\t\t\t\t\t\treturn this.callback(params);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(command.info.synchronous) {\n\t\t\t\t\t// Synchronous command\n\t\t\t\t\tc = new command.Command(params,this);\n\t\t\t\t\terr = c.execute();\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\tthis.callback(err);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.executeNextCommand();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Asynchronous command\n\t\t\t\t\tc = new command.Command(params,this,function(err) {\n\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\tself.callback(err);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tself.executeNextCommand();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\terr = c.execute();\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\tthis.callback(err);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n/*\nGiven an array of parameter strings `params` in name:value format, and an array of mandatory parameter names in `mandatoryParameters`, returns a hashmap of values or a string if error\n*/\nCommander.prototype.extractNamedParameters = function(params,mandatoryParameters) {\n\tmandatoryParameters = mandatoryParameters || [];\n\tvar errors = [],\n\t\tparamsByName = Object.create(null);\n\t// Extract the parameters\n\t$tw.utils.each(params,function(param) {\n\t\tvar index = param.indexOf(\"=\");\n\t\tif(index < 1) {\n\t\t\terrors.push(\"malformed named parameter: '\" + param + \"'\");\n\t\t}\n\t\tparamsByName[param.slice(0,index)] = $tw.utils.trim(param.slice(index+1));\n\t});\n\t// Check the mandatory parameters are present\n\t$tw.utils.each(mandatoryParameters,function(mandatoryParameter) {\n\t\tif(!$tw.utils.hop(paramsByName,mandatoryParameter)) {\n\t\t\terrors.push(\"missing mandatory parameter: '\" + mandatoryParameter + \"'\");\n\t\t}\n\t});\n\t// Return any errors\n\tif(errors.length > 0) {\n\t\treturn errors.join(\" and\\n\");\n\t} else {\n\t\treturn paramsByName;\t\t\n\t}\n};\n\nCommander.initCommands = function(moduleType) {\n\tmoduleType = moduleType || \"command\";\n\t$tw.commands = {};\n\t$tw.modules.forEachModuleOfType(moduleType,function(title,module) {\n\t\tvar c = $tw.commands[module.info.name] = {};\n\t\t// Add the methods defined by the module\n\t\tfor(var f in module) {\n\t\t\tif($tw.utils.hop(module,f)) {\n\t\t\t\tc[f] = module[f];\n\t\t\t}\n\t\t}\n\t});\n};\n\nexports.Commander = Commander;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/commands/build.js": {
"title": "$:/core/modules/commands/build.js",
"text": "/*\\\ntitle: $:/core/modules/commands/build.js\ntype: application/javascript\nmodule-type: command\n\nCommand to build a build target\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"build\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\t// Get the build targets defined in the wiki\n\tvar buildTargets = $tw.boot.wikiInfo.build;\n\tif(!buildTargets) {\n\t\treturn \"No build targets defined\";\n\t}\n\t// Loop through each of the specified targets\n\tvar targets;\n\tif(this.params.length > 0) {\n\t\ttargets = this.params;\n\t} else {\n\t\ttargets = Object.keys(buildTargets);\n\t}\n\tfor(var targetIndex=0; targetIndex<targets.length; targetIndex++) {\n\t\tvar target = targets[targetIndex],\n\t\t\tcommands = buildTargets[target];\n\t\tif(!commands) {\n\t\t\treturn \"Build target '\" + target + \"' not found\";\n\t\t}\n\t\t// Add the commands to the queue\n\t\tthis.commander.addCommandTokens(commands);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/clearpassword.js": {
"title": "$:/core/modules/commands/clearpassword.js",
"text": "/*\\\ntitle: $:/core/modules/commands/clearpassword.js\ntype: application/javascript\nmodule-type: command\n\nClear password for crypto operations\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"clearpassword\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\t$tw.crypto.setPassword(null);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/deletetiddlers.js": {
"title": "$:/core/modules/commands/deletetiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/commands/deletetiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to delete tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"deletetiddlers\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 1) {\n\t\treturn \"Missing filter\";\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\twiki.deleteTiddler(title);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/editions.js": {
"title": "$:/core/modules/commands/editions.js",
"text": "/*\\\ntitle: $:/core/modules/commands/editions.js\ntype: application/javascript\nmodule-type: command\n\nCommand to list the available editions\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"editions\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this;\n\t// Output the list\n\tthis.commander.streams.output.write(\"Available editions:\\n\\n\");\n\tvar editionInfo = $tw.utils.getEditionInfo();\n\t$tw.utils.each(editionInfo,function(info,name) {\n\t\tself.commander.streams.output.write(\" \" + name + \": \" + info.description + \"\\n\");\n\t});\n\tthis.commander.streams.output.write(\"\\n\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/fetch.js": {
"title": "$:/core/modules/commands/fetch.js",
"text": "/*\\\ntitle: $:/core/modules/commands/fetch.js\ntype: application/javascript\nmodule-type: command\n\nCommands to fetch external tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"fetch\",\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 2) {\n\t\treturn \"Missing subcommand and url\";\n\t}\n\tswitch(this.params[0]) {\n\t\tcase \"raw-file\":\n\t\t\treturn this.fetchFiles({\n\t\t\t\traw: true,\n\t\t\t\turl: this.params[1],\n\t\t\t\ttransformFilter: this.params[2] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"file\":\n\t\t\treturn this.fetchFiles({\n\t\t\t\turl: this.params[1],\n\t\t\t\timportFilter: this.params[2],\n\t\t\t\ttransformFilter: this.params[3] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"raw-files\":\n\t\t\treturn this.fetchFiles({\n\t\t\t\traw: true,\n\t\t\t\turlFilter: this.params[1],\n\t\t\t\ttransformFilter: this.params[2] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"files\":\n\t\t\treturn this.fetchFiles({\n\t\t\t\turlFilter: this.params[1],\n\t\t\t\timportFilter: this.params[2],\n\t\t\t\ttransformFilter: this.params[3] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t}\n\treturn null;\n};\n\nCommand.prototype.fetchFiles = function(options) {\n\tvar self = this;\n\t// Get the list of URLs\n\tvar urls;\n\tif(options.url) {\n\t\turls = [options.url]\n\t} else if(options.urlFilter) {\n\t\turls = $tw.wiki.filterTiddlers(options.urlFilter);\n\t} else {\n\t\treturn \"Missing URL\";\n\t}\n\t// Process each URL in turn\n\tvar next = 0;\n\tvar getNextFile = function(err) {\n\t\tif(err) {\n\t\t\treturn options.callback(err);\n\t\t}\n\t\tif(next < urls.length) {\n\t\t\tself.fetchFile(urls[next++],options,getNextFile);\n\t\t} else {\n\t\t\toptions.callback(null);\n\t\t}\n\t};\n\tgetNextFile(null);\n\t// Success\n\treturn null;\n};\n\nCommand.prototype.fetchFile = function(url,options,callback,redirectCount) {\n\tif(redirectCount > 10) {\n\t\treturn callback(\"Error too many redirects retrieving \" + url);\n\t}\n\tvar self = this,\n\t\tlib = url.substr(0,8) === \"https://\" ? require(\"https\") : require(\"http\");\n\tlib.get(url).on(\"response\",function(response) {\n\t var type = (response.headers[\"content-type\"] || \"\").split(\";\")[0],\n\t \tdata = [];\n\t self.commander.write(\"Reading \" + url + \": \");\n\t response.on(\"data\",function(chunk) {\n\t data.push(chunk);\n\t self.commander.write(\".\");\n\t });\n\t response.on(\"end\",function() {\n\t self.commander.write(\"\\n\");\n\t if(response.statusCode === 200) {\n\t\t self.processBody(Buffer.concat(data),type,options,url);\n\t\t callback(null);\n\t } else {\n\t \tif(response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {\n\t \t\treturn self.fetchFile(response.headers.location,options,callback,redirectCount + 1);\n\t \t} else {\n\t\t \treturn callback(\"Error \" + response.statusCode + \" retrieving \" + url)\t \t\t\n\t \t}\n\t }\n\t \t});\n\t \tresponse.on(\"error\",function(e) {\n\t\t\tconsole.log(\"Error on GET request: \" + e);\n\t\t\tcallback(e);\n\t \t});\n\t});\n\treturn null;\n};\n\nCommand.prototype.processBody = function(body,type,options,url) {\n\tvar self = this;\n\t// Collect the tiddlers in a wiki\n\tvar incomingWiki = new $tw.Wiki();\n\tif(options.raw) {\n\t\tvar typeInfo = type ? $tw.config.contentTypeInfo[type] : null,\n\t\t\tencoding = typeInfo ? typeInfo.encoding : \"utf8\";\n\t\tincomingWiki.addTiddler(new $tw.Tiddler({\n\t\t\ttitle: url,\n\t\t\ttype: type,\n\t\t\ttext: body.toString(encoding)\n\t\t}));\n\t} else {\n\t\t// Deserialise the file to extract the tiddlers\n\t\tvar tiddlers = this.commander.wiki.deserializeTiddlers(type || \"text/html\",body.toString(\"utf8\"),{});\n\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\tincomingWiki.addTiddler(new $tw.Tiddler(tiddler));\n\t\t});\n\t}\n\t// Filter the tiddlers to select the ones we want\n\tvar filteredTitles = incomingWiki.filterTiddlers(options.importFilter || \"[all[tiddlers]]\");\n\t// Import the selected tiddlers\n\tvar count = 0;\n\tincomingWiki.each(function(tiddler,title) {\n\t\tif(filteredTitles.indexOf(title) !== -1) {\n\t\t\tvar newTiddler;\n\t\t\tif(options.transformFilter) {\n\t\t\t\tvar transformedTitle = (incomingWiki.filterTiddlers(options.transformFilter,null,self.commander.wiki.makeTiddlerIterator([title])) || [\"\"])[0];\n\t\t\t\tif(transformedTitle) {\n\t\t\t\t\tself.commander.log(\"Importing \" + title + \" as \" + transformedTitle)\n\t\t\t\t\tnewTiddler = new $tw.Tiddler(tiddler,{title: transformedTitle});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tself.commander.log(\"Importing \" + title)\n\t\t\t\tnewTiddler = tiddler;\n\t\t\t}\n\t\t\tself.commander.wiki.importTiddler(newTiddler);\n\t\t\tcount++;\n\t\t}\n\t});\n\tself.commander.log(\"Imported \" + count + \" tiddlers\")\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/help.js": {
"title": "$:/core/modules/commands/help.js",
"text": "/*\\\ntitle: $:/core/modules/commands/help.js\ntype: application/javascript\nmodule-type: command\n\nHelp command\n\n\\*/\n(function(){\n\n/*jshint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"help\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tvar subhelp = this.params[0] || \"default\",\n\t\thelpBase = \"$:/language/Help/\",\n\t\ttext;\n\tif(!this.commander.wiki.getTiddler(helpBase + subhelp)) {\n\t\tsubhelp = \"notfound\";\n\t}\n\t// Wikify the help as formatted text (ie block elements generate newlines)\n\ttext = this.commander.wiki.renderTiddler(\"text/plain-formatted\",helpBase + subhelp);\n\t// Remove any leading linebreaks\n\ttext = text.replace(/^(\\r?\\n)*/g,\"\");\n\tthis.commander.streams.output.write(text);\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/import.js": {
"title": "$:/core/modules/commands/import.js",
"text": "/*\\\ntitle: $:/core/modules/commands/import.js\ntype: application/javascript\nmodule-type: command\n\nCommand to import tiddlers from a file\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"import\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 2) {\n\t\treturn \"Missing parameters\";\n\t}\n\tvar filename = self.params[0],\n\t\tdeserializer = self.params[1],\n\t\ttitle = self.params[2] || filename,\n\t\tencoding = self.params[3] || \"utf8\",\n\t\ttext = fs.readFileSync(filename,encoding),\n\t\ttiddlers = this.commander.wiki.deserializeTiddlers(null,text,{title: title},{deserializer: deserializer});\n\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\tself.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));\n\t});\n\tthis.commander.log(tiddlers.length + \" tiddler(s) imported\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/init.js": {
"title": "$:/core/modules/commands/init.js",
"text": "/*\\\ntitle: $:/core/modules/commands/init.js\ntype: application/javascript\nmodule-type: command\n\nCommand to initialise an empty wiki folder\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"init\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tvar fs = require(\"fs\"),\n\t\tpath = require(\"path\");\n\t// Check that we don't already have a valid wiki folder\n\tif($tw.boot.wikiTiddlersPath || ($tw.utils.isDirectory($tw.boot.wikiPath) && !$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))) {\n\t\treturn \"Wiki folder is not empty\";\n\t}\n\t// Loop through each of the specified editions\n\tvar editions = this.params.length > 0 ? this.params : [\"empty\"];\n\tfor(var editionIndex=0; editionIndex<editions.length; editionIndex++) {\n\t\tvar editionName = editions[editionIndex];\n\t\t// Check the edition exists\n\t\tvar editionPath = $tw.findLibraryItem(editionName,$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar));\n\t\tif(!$tw.utils.isDirectory(editionPath)) {\n\t\t\treturn \"Edition '\" + editionName + \"' not found\";\n\t\t}\n\t\t// Copy the edition content\n\t\tvar err = $tw.utils.copyDirectory(editionPath,$tw.boot.wikiPath);\n\t\tif(!err) {\n\t\t\tthis.commander.streams.output.write(\"Copied edition '\" + editionName + \"' to \" + $tw.boot.wikiPath + \"\\n\");\n\t\t} else {\n\t\t\treturn err;\n\t\t}\n\t}\n\t// Tweak the tiddlywiki.info to remove any included wikis\n\tvar packagePath = $tw.boot.wikiPath + \"/tiddlywiki.info\",\n\t\tpackageJson = JSON.parse(fs.readFileSync(packagePath));\n\tdelete packageJson.includeWikis;\n\tfs.writeFileSync(packagePath,JSON.stringify(packageJson,null,$tw.config.preferences.jsonSpaces));\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/listen.js": {
"title": "$:/core/modules/commands/listen.js",
"text": "/*\\\ntitle: $:/core/modules/commands/listen.js\ntype: application/javascript\nmodule-type: command\n\nListen for HTTP requests and serve tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Server = require(\"$:/core/modules/server/server.js\").Server;\n\nexports.info = {\n\tname: \"listen\",\n\tsynchronous: true,\n\tnamedParameterMode: true,\n\tmandatoryParameters: [],\n};\n\nvar Command = function(params,commander,callback) {\n\tvar self = this;\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this;\n\tif(!$tw.boot.wikiTiddlersPath) {\n\t\t$tw.utils.warning(\"Warning: Wiki folder '\" + $tw.boot.wikiPath + \"' does not exist or is missing a tiddlywiki.info file\");\n\t}\n\t// Set up server\n\tthis.server = new Server({\n\t\twiki: this.commander.wiki,\n\t\tvariables: self.params\n\t});\n\tvar nodeServer = this.server.listen();\n\t$tw.hooks.invokeHook(\"th-server-command-post-start\",this.server,nodeServer,\"tiddlywiki\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/load.js": {
"title": "$:/core/modules/commands/load.js",
"text": "/*\\\ntitle: $:/core/modules/commands/load.js\ntype: application/javascript\nmodule-type: command\n\nCommand to load tiddlers from a file or directory\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"load\",\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 1) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar tiddlers = $tw.loadTiddlersFromPath(self.params[0]),\n\t\tcount = 0;\n\t$tw.utils.each(tiddlers,function(tiddlerInfo) {\n\t\t$tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) {\n\t\t\tself.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));\n\t\t\tcount++;\n\t\t});\n\t});\n\tif(!count && self.params[1] !== \"noerror\") {\n\t\tself.callback(\"No tiddlers found in file \\\"\" + self.params[0] + \"\\\"\");\n\t} else {\n\t\tself.callback(null);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/makelibrary.js": {
"title": "$:/core/modules/commands/makelibrary.js",
"text": "/*\\\ntitle: $:/core/modules/commands/makelibrary.js\ntype: application/javascript\nmodule-type: command\n\nCommand to pack all of the plugins in the library into a plugin tiddler of type \"library\"\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"makelibrary\",\n\tsynchronous: true\n};\n\nvar UPGRADE_LIBRARY_TITLE = \"$:/UpgradeLibrary\";\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar wiki = this.commander.wiki,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\tupgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE,\n\t\ttiddlers = {};\n\t// Collect up the library plugins\n\tvar collectPlugins = function(folder) {\n\t\t\tvar pluginFolders = fs.readdirSync(folder);\n\t\t\tfor(var p=0; p<pluginFolders.length; p++) {\n\t\t\t\tif(!$tw.boot.excludeRegExp.test(pluginFolders[p])) {\n\t\t\t\t\tpluginFields = $tw.loadPluginFolder(path.resolve(folder,\"./\" + pluginFolders[p]));\n\t\t\t\t\tif(pluginFields && pluginFields.title) {\n\t\t\t\t\t\ttiddlers[pluginFields.title] = pluginFields;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcollectPublisherPlugins = function(folder) {\n\t\t\tvar publisherFolders = fs.readdirSync(folder);\n\t\t\tfor(var t=0; t<publisherFolders.length; t++) {\n\t\t\t\tif(!$tw.boot.excludeRegExp.test(publisherFolders[t])) {\n\t\t\t\t\tcollectPlugins(path.resolve(folder,\"./\" + publisherFolders[t]));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\tcollectPublisherPlugins(path.resolve($tw.boot.corePath,$tw.config.pluginsPath));\n\tcollectPublisherPlugins(path.resolve($tw.boot.corePath,$tw.config.themesPath));\n\tcollectPlugins(path.resolve($tw.boot.corePath,$tw.config.languagesPath));\n\t// Save the upgrade library tiddler\n\tvar pluginFields = {\n\t\ttitle: upgradeLibraryTitle,\n\t\ttype: \"application/json\",\n\t\t\"plugin-type\": \"library\",\n\t\t\"text\": JSON.stringify({tiddlers: tiddlers},null,$tw.config.preferences.jsonSpaces)\n\t};\n\twiki.addTiddler(new $tw.Tiddler(pluginFields));\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/output.js": {
"title": "$:/core/modules/commands/output.js",
"text": "/*\\\ntitle: $:/core/modules/commands/output.js\ntype: application/javascript\nmodule-type: command\n\nCommand to set the default output location (defaults to current working directory)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"output\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tvar fs = require(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 1) {\n\t\treturn \"Missing output path\";\n\t}\n\tthis.commander.outputPath = path.resolve(process.cwd(),this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/password.js": {
"title": "$:/core/modules/commands/password.js",
"text": "/*\\\ntitle: $:/core/modules/commands/password.js\ntype: application/javascript\nmodule-type: command\n\nSave password for crypto operations\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"password\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 1) {\n\t\treturn \"Missing password\";\n\t}\n\t$tw.crypto.setPassword(this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/render.js": {
"title": "$:/core/modules/commands/render.js",
"text": "/*\\\ntitle: $:/core/modules/commands/render.js\ntype: application/javascript\nmodule-type: command\n\nRender individual tiddlers and save the results to the specified files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"render\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 1) {\n\t\treturn \"Missing tiddler filter\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \"[is[tiddler]addsuffix[.html]]\",\n\t\ttype = this.params[2] || \"text/html\",\n\t\ttemplate = this.params[3],\n\t\tvarName = this.params[4],\n\t\tvarValue = this.params[5],\n\t\ttiddlers = wiki.filterTiddlers(tiddlerFilter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar parser = wiki.parseTiddler(template || title),\n\t\t\tvariables = {currentTiddler: title};\n\t\tif(varName) {\n\t\t\tvariables[varName] = varValue || \"\";\n\t\t}\n\t\tvar widgetNode = wiki.makeWidget(parser,{variables: variables}),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\"div\");\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \"text/html\" ? container.innerHTML : container.textContent,\n\t\t\tfilepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);\n\t\tif(self.commander.verbose) {\n\t\t\tconsole.log(\"Rendering \\\"\" + title + \"\\\" to \\\"\" + filepath + \"\\\"\");\n\t\t}\n\t\t$tw.utils.createFileDirectories(filepath);\n\t\tfs.writeFileSync(filepath,text,\"utf8\");\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/rendertiddler.js": {
"title": "$:/core/modules/commands/rendertiddler.js",
"text": "/*\\\ntitle: $:/core/modules/commands/rendertiddler.js\ntype: application/javascript\nmodule-type: command\n\nCommand to render a tiddler and save it to a file\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"rendertiddler\",\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\ttitle = this.params[0],\n\t\tfilename = path.resolve(this.commander.outputPath,this.params[1]),\n\t\ttype = this.params[2] || \"text/html\",\n\t\ttemplate = this.params[3],\n\t\tname = this.params[4],\n\t\tvalue = this.params[5],\n\t\tvariables = {};\n\t$tw.utils.createFileDirectories(filename);\n\tif(template) {\n\t\tvariables.currentTiddler = title;\n\t\ttitle = template;\n\t}\n\tif(name && value) {\n\t\tvariables[name] = value;\n\t}\n\tfs.writeFile(filename,this.commander.wiki.renderTiddler(type,title,{variables: variables}),\"utf8\",function(err) {\n\t\tself.callback(err);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/rendertiddlers.js": {
"title": "$:/core/modules/commands/rendertiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/commands/rendertiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to render several tiddlers to a folder of files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"rendertiddlers\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\ttemplate = this.params[1],\n\t\toutputPath = this.commander.outputPath,\n\t\tpathname = path.resolve(outputPath,this.params[2]),\t\t\n\t\ttype = this.params[3] || \"text/html\",\n\t\textension = this.params[4] || \".html\",\n\t\tdeleteDirectory = (this.params[5] || \"\").toLowerCase() !== \"noclean\",\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\tif(deleteDirectory) {\n\t\t$tw.utils.deleteDirectory(pathname);\n\t}\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar parser = wiki.parseTiddler(template),\n\t\t\twidgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}}),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\"div\");\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \"text/html\" ? container.innerHTML : container.textContent,\n\t\t\texportPath = null;\n\t\tif($tw.utils.hop($tw.macros,\"tv-get-export-path\")) {\n\t\t\tvar macroPath = $tw.macros[\"tv-get-export-path\"].run.apply(self,[title]);\n\t\t\tif(macroPath) {\n\t\t\t\texportPath = path.resolve(outputPath,macroPath + extension);\n\t\t\t}\n\t\t}\n\t\tvar finalPath = exportPath || path.resolve(pathname,encodeURIComponent(title) + extension);\n\t\t$tw.utils.createFileDirectories(finalPath);\n\t\tfs.writeFileSync(finalPath,text,\"utf8\");\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/save.js": {
"title": "$:/core/modules/commands/save.js",
"text": "/*\\\ntitle: $:/core/modules/commands/save.js\ntype: application/javascript\nmodule-type: command\n\nSaves individual tiddlers in their raw text or binary format to the specified files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"save\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 1) {\n\t\treturn \"Missing filename filter\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \"[is[tiddler]]\",\n\t\ttiddlers = wiki.filterTiddlers(tiddlerFilter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.commander.wiki.getTiddler(title),\n\t\t\ttype = tiddler.fields.type || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"},\n\t\t\tfilepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);\n\t\tif(self.commander.verbose) {\n\t\t\tconsole.log(\"Saving \\\"\" + title + \"\\\" to \\\"\" + filepath + \"\\\"\");\n\t\t}\n\t\t$tw.utils.createFileDirectories(filepath);\n\t\tfs.writeFileSync(filepath,tiddler.fields.text,contentTypeInfo.encoding);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/savelibrarytiddlers.js": {
"title": "$:/core/modules/commands/savelibrarytiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/commands/savelibrarytiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the subtiddlers of a bundle tiddler as a series of JSON files\n\n--savelibrarytiddlers <tiddler> <pathname> <skinnylisting>\n\nThe tiddler identifies the bundle tiddler that contains the subtiddlers.\n\nThe pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler.\n\nThe skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"savelibrarytiddlers\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\tcontainerTitle = this.params[0],\n\t\tfilter = this.params[1],\n\t\tbasepath = this.params[2],\n\t\tskinnyListTitle = this.params[3];\n\t// Get the container tiddler as data\n\tvar containerData = self.commander.wiki.getTiddlerDataCached(containerTitle,undefined);\n\tif(!containerData) {\n\t\treturn \"'\" + containerTitle + \"' is not a tiddler bundle\";\n\t}\n\t// Filter the list of plugins\n\tvar pluginList = [];\n\t$tw.utils.each(containerData.tiddlers,function(tiddler,title) {\n\t\tpluginList.push(title);\n\t});\n\tvar filteredPluginList;\n\tif(filter) {\n\t\tfilteredPluginList = self.commander.wiki.filterTiddlers(filter,null,self.commander.wiki.makeTiddlerIterator(pluginList));\n\t} else {\n\t\tfilteredPluginList = pluginList;\n\t}\n\t// Iterate through the plugins\n\tvar skinnyList = [];\n\t$tw.utils.each(filteredPluginList,function(title) {\n\t\tvar tiddler = containerData.tiddlers[title];\n\t\t// Save each JSON file and collect the skinny data\n\t\tvar pathname = path.resolve(self.commander.outputPath,basepath + encodeURIComponent(title) + \".json\");\n\t\t$tw.utils.createFileDirectories(pathname);\n\t\tfs.writeFileSync(pathname,JSON.stringify(tiddler,null,$tw.config.preferences.jsonSpaces),\"utf8\");\n\t\t// Collect the skinny list data\n\t\tvar pluginTiddlers = JSON.parse(tiddler.text),\n\t\t\treadmeContent = (pluginTiddlers.tiddlers[title + \"/readme\"] || {}).text,\n\t\t\ticonTiddler = pluginTiddlers.tiddlers[title + \"/icon\"] || {},\n\t\t\ticonType = iconTiddler.type,\n\t\t\ticonText = iconTiddler.text,\n\t\t\ticonContent;\n\t\tif(iconType && iconText) {\n\t\t\ticonContent = $tw.utils.makeDataUri(iconText,iconType);\n\t\t}\n\t\tskinnyList.push($tw.utils.extend({},tiddler,{text: undefined, readme: readmeContent, icon: iconContent}));\n\t});\n\t// Save the catalogue tiddler\n\tif(skinnyListTitle) {\n\t\tself.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/savetiddler.js": {
"title": "$:/core/modules/commands/savetiddler.js",
"text": "/*\\\ntitle: $:/core/modules/commands/savetiddler.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the content of a tiddler to a file\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"savetiddler\",\n\tsynchronous: false\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\ttitle = this.params[0],\n\t\tfilename = path.resolve(this.commander.outputPath,this.params[1]),\n\t\ttiddler = this.commander.wiki.getTiddler(title);\n\tif(tiddler) {\n\t\tvar type = tiddler.fields.type || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"};\n\t\t$tw.utils.createFileDirectories(filename);\n\t\tfs.writeFile(filename,tiddler.fields.text,contentTypeInfo.encoding,function(err) {\n\t\t\tself.callback(err);\n\t\t});\n\t} else {\n\t\treturn \"Missing tiddler: \" + title;\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/savetiddlers.js": {
"title": "$:/core/modules/commands/savetiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/commands/savetiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save several tiddlers to a folder of files\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"savetiddlers\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 1) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\tpathname = path.resolve(this.commander.outputPath,this.params[1]),\n\t\tdeleteDirectory = (this.params[2] || \"\").toLowerCase() !== \"noclean\",\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\tif(deleteDirectory) {\n\t\t$tw.utils.deleteDirectory(pathname);\n\t}\n\t$tw.utils.createDirectory(pathname);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.commander.wiki.getTiddler(title),\n\t\t\ttype = tiddler.fields.type || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"},\n\t\t\tfilename = path.resolve(pathname,encodeURIComponent(title));\n\t\tfs.writeFileSync(filename,tiddler.fields.text,contentTypeInfo.encoding);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/savewikifolder.js": {
"title": "$:/core/modules/commands/savewikifolder.js",
"text": "/*\\\ntitle: $:/core/modules/commands/savewikifolder.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the current wiki as a wiki folder\n\n--savewikifolder <wikifolderpath> [<filter>]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"savewikifolder\",\n\tsynchronous: true\n};\n\nvar fs,path;\nif($tw.node) {\n\tfs = require(\"fs\");\n\tpath = require(\"path\");\n}\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 1) {\n\t\treturn \"Missing wiki folder path\";\n\t}\n\tvar wikifoldermaker = new WikiFolderMaker(this.params[0],this.params[1],this.commander);\n\treturn wikifoldermaker.save();\n};\n\nfunction WikiFolderMaker(wikiFolderPath,wikiFilter,commander) {\n\tthis.wikiFolderPath = wikiFolderPath;\n\tthis.wikiFilter = wikiFilter || \"[all[tiddlers]]\";\n\tthis.commander = commander;\n\tthis.wiki = commander.wiki;\n\tthis.savedPaths = []; // So that we can detect filename clashes\n}\n\nWikiFolderMaker.prototype.log = function(str) {\n\tif(this.commander.verbose) {\n\t\tconsole.log(str);\n\t}\n};\n\nWikiFolderMaker.prototype.tiddlersToIgnore = [\n\t\"$:/boot/boot.css\",\n\t\"$:/boot/boot.js\",\n\t\"$:/boot/bootprefix.js\",\n\t\"$:/core\",\n\t\"$:/library/sjcl.js\",\n\t\"$:/temp/info-plugin\"\n];\n\n/*\nReturns null if successful, or an error string if there was an error\n*/\nWikiFolderMaker.prototype.save = function() {\n\tvar self = this;\n\t// Check that the output directory doesn't exist\n\tif(fs.existsSync(this.wikiFolderPath) && !$tw.utils.isDirectoryEmpty(this.wikiFolderPath)) {\n\t\treturn \"The unpackwiki command requires that the output wiki folder be empty\";\n\t}\n\t// Get the tiddlers from the source wiki\n\tvar tiddlerTitles = this.wiki.filterTiddlers(this.wikiFilter);\n\t// Initialise a new tiddlwiki.info file\n\tvar newWikiInfo = {};\n\t// Process each incoming tiddler in turn\n\t$tw.utils.each(tiddlerTitles,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tif(self.tiddlersToIgnore.indexOf(title) !== -1) {\n\t\t\t\t// Ignore the core plugin and the ephemeral info plugin\n\t\t\t\tself.log(\"Ignoring tiddler: \" + title);\n\t\t\t} else {\n\t\t\t\tvar type = tiddler.fields.type,\n\t\t\t\t\tpluginType = tiddler.fields[\"plugin-type\"];\n\t\t\t\tif(type === \"application/json\" && pluginType) {\n\t\t\t\t\t// Plugin tiddler\n\t\t\t\t\tvar libraryDetails = self.findPluginInLibrary(title);\n\t\t\t\t\tif(libraryDetails) {\n\t\t\t\t\t\t// A plugin from the core library\n\t\t\t\t\t\tself.log(\"Adding built-in plugin: \" + libraryDetails.name);\n\t\t\t\t\t\tnewWikiInfo[libraryDetails.type] = newWikiInfo[libraryDetails.type] || [];\n\t\t\t\t\t\t$tw.utils.pushTop(newWikiInfo[libraryDetails.type],libraryDetails.name);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// A custom plugin\n\t\t\t\t\t\tself.log(\"Processing custom plugin: \" + title);\n\t\t\t\t\t\tself.saveCustomPlugin(tiddler);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Ordinary tiddler\n\t\t\t\t\tself.saveTiddler(\"tiddlers\",tiddler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\t// Save the tiddlywiki.info file\n\tthis.saveJSONFile(\"tiddlywiki.info\",newWikiInfo);\n\tself.log(\"Writing tiddlywiki.info: \" + JSON.stringify(newWikiInfo,null,$tw.config.preferences.jsonSpaces));\n\treturn null;\n};\n\n/*\nTest whether the specified tiddler is a plugin in the plugin library\n*/\nWikiFolderMaker.prototype.findPluginInLibrary = function(title) {\n\tvar parts = title.split(\"/\"),\n\t\tpluginPath, type, name;\n\tif(parts[0] === \"$:\") {\n\t\tif(parts[1] === \"languages\" && parts.length === 3) {\n\t\t\tpluginPath = \"languages\" + path.sep + parts[2];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2];\n\t\t} else if(parts[1] === \"plugins\" || parts[1] === \"themes\" && parts.length === 4) {\n\t\t\tpluginPath = parts[1] + path.sep + parts[2] + path.sep + parts[3];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2] + \"/\" + parts[3];\n\t\t}\n\t}\n\tif(pluginPath && type && name) {\n\t\tpluginPath = path.resolve($tw.boot.bootPath,\"..\",pluginPath);\n\t\tif(fs.existsSync(pluginPath)) {\n\t\t\treturn {\n\t\t\t\tpluginPath: pluginPath,\n\t\t\t\ttype: type,\n\t\t\t\tname: name\n\t\t\t};\n\t\t}\n\t}\n\treturn false;\n};\n\nWikiFolderMaker.prototype.saveCustomPlugin = function(pluginTiddler) {\n\tvar self = this,\n\t\tpluginTitle = pluginTiddler.fields.title,\n\t\ttitleParts = pluginTitle.split(\"/\"),\n\t\tdirectory = $tw.utils.generateTiddlerFilepath(titleParts[titleParts.length - 1],{\n\t\t\tdirectory: path.resolve(this.wikiFolderPath,pluginTiddler.fields[\"plugin-type\"] + \"s\")\n\t\t}),\n\t\tpluginInfo = pluginTiddler.getFieldStrings({exclude: [\"text\",\"type\"]});\n\tthis.saveJSONFile(directory + path.sep + \"plugin.info\",pluginInfo);\n\tself.log(\"Writing \" + directory + path.sep + \"plugin.info: \" + JSON.stringify(pluginInfo,null,$tw.config.preferences.jsonSpaces));\n\tvar pluginTiddlers = JSON.parse(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin\n\t$tw.utils.each(pluginTiddlers,function(tiddler) {\n\t\tself.saveTiddler(directory,new $tw.Tiddler(tiddler));\n\t});\n};\n\nWikiFolderMaker.prototype.saveTiddler = function(directory,tiddler) {\n\tvar fileInfo = $tw.utils.generateTiddlerFileInfo(tiddler,{\n\t\tdirectory: path.resolve(this.wikiFolderPath,directory),\n\t\twiki: this.wiki\n\t});\n\t$tw.utils.saveTiddlerToFileSync(tiddler,fileInfo);\n};\n\nWikiFolderMaker.prototype.saveJSONFile = function(filename,json) {\n\tthis.saveTextFile(filename,JSON.stringify(json,null,$tw.config.preferences.jsonSpaces));\n};\n\nWikiFolderMaker.prototype.saveTextFile = function(filename,data) {\n\tthis.saveFile(filename,\"utf8\",data);\n};\n\nWikiFolderMaker.prototype.saveFile = function(filename,encoding,data) {\n\tvar filepath = path.resolve(this.wikiFolderPath,filename);\n\t$tw.utils.createFileDirectories(filepath);\n\tfs.writeFileSync(filepath,data,encoding);\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/server.js": {
"title": "$:/core/modules/commands/server.js",
"text": "/*\\\ntitle: $:/core/modules/commands/server.js\ntype: application/javascript\nmodule-type: command\n\nDeprecated legacy command for serving tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Server = require(\"$:/core/modules/server/server.js\").Server;\n\nexports.info = {\n\tname: \"server\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tvar self = this;\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(!$tw.boot.wikiTiddlersPath) {\n\t\t$tw.utils.warning(\"Warning: Wiki folder '\" + $tw.boot.wikiPath + \"' does not exist or is missing a tiddlywiki.info file\");\n\t}\n\t// Set up server\n\tthis.server = new Server({\n\t\twiki: this.commander.wiki,\n\t\tvariables: {\n\t\t\tport: this.params[0],\n\t\t\thost: this.params[6],\n\t\t\t\"root-tiddler\": this.params[1],\n\t\t\t\"root-render-type\": this.params[2],\n\t\t\t\"root-serve-type\": this.params[3],\n\t\t\tusername: this.params[4],\n\t\t\tpassword: this.params[5],\n\t\t\t\"path-prefix\": this.params[7],\n\t\t\t\"debug-level\": this.params[8]\n\t\t}\n\t});\n\tvar nodeServer = this.server.listen();\n\t$tw.hooks.invokeHook(\"th-server-command-post-start\",this.server,nodeServer,\"tiddlywiki\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/setfield.js": {
"title": "$:/core/modules/commands/setfield.js",
"text": "/*\\\ntitle: $:/core/modules/commands/setfield.js\ntype: application/javascript\nmodule-type: command\n\nCommand to modify selected tiddlers to set a field to the text of a template tiddler that has been wikified with the selected tiddler as the current tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"setfield\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 4) {\n\t\treturn \"Missing parameters\";\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\tfieldname = this.params[1] || \"text\",\n\t\ttemplatetitle = this.params[2],\n\t\trendertype = this.params[3] || \"text/plain\",\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar parser = wiki.parseTiddler(templatetitle),\n\t\t\tnewFields = {},\n\t\t\ttiddler = wiki.getTiddler(title);\n\t\tif(parser) {\n\t\t\tvar widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}});\n\t\t\tvar container = $tw.fakeDocument.createElement(\"div\");\n\t\t\twidgetNode.render(container,null);\n\t\t\tnewFields[fieldname] = rendertype === \"text/html\" ? container.innerHTML : container.textContent;\n\t\t} else {\n\t\t\tnewFields[fieldname] = undefined;\n\t\t}\n\t\twiki.addTiddler(new $tw.Tiddler(tiddler,newFields));\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/unpackplugin.js": {
"title": "$:/core/modules/commands/unpackplugin.js",
"text": "/*\\\ntitle: $:/core/modules/commands/unpackplugin.js\ntype: application/javascript\nmodule-type: command\n\nCommand to extract the shadow tiddlers from within a plugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"unpackplugin\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander,callback) {\n\tthis.params = params;\n\tthis.commander = commander;\n\tthis.callback = callback;\n};\n\nCommand.prototype.execute = function() {\n\tif(this.params.length < 1) {\n\t\treturn \"Missing plugin name\";\n\t}\n\tvar self = this,\n\t\ttitle = this.params[0],\n\t\tpluginData = this.commander.wiki.getTiddlerDataCached(title);\n\tif(!pluginData) {\n\t\treturn \"Plugin '\" + title + \"' not found\";\n\t}\n\t$tw.utils.each(pluginData.tiddlers,function(tiddler) {\n\t\tself.commander.wiki.addTiddler(new $tw.Tiddler(tiddler));\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/verbose.js": {
"title": "$:/core/modules/commands/verbose.js",
"text": "/*\\\ntitle: $:/core/modules/commands/verbose.js\ntype: application/javascript\nmodule-type: command\n\nVerbose command\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"verbose\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tthis.commander.verbose = true;\n\t// Output the boot message log\n\tthis.commander.streams.output.write(\"Boot log:\\n \" + $tw.boot.logMessages.join(\"\\n \") + \"\\n\");\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/commands/version.js": {
"title": "$:/core/modules/commands/version.js",
"text": "/*\\\ntitle: $:/core/modules/commands/version.js\ntype: application/javascript\nmodule-type: command\n\nVersion command\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"version\",\n\tsynchronous: true\n};\n\nvar Command = function(params,commander) {\n\tthis.params = params;\n\tthis.commander = commander;\n};\n\nCommand.prototype.execute = function() {\n\tthis.commander.streams.output.write($tw.version + \"\\n\");\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n",
"type": "application/javascript",
"module-type": "command"
},
"$:/core/modules/config.js": {
"title": "$:/core/modules/config.js",
"text": "/*\\\ntitle: $:/core/modules/config.js\ntype: application/javascript\nmodule-type: config\n\nCore configuration constants\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.preferences = {};\n\nexports.preferences.notificationDuration = 3 * 1000;\nexports.preferences.jsonSpaces = 4;\n\nexports.textPrimitives = {\n\tupperLetter: \"[A-Z\\u00c0-\\u00d6\\u00d8-\\u00de\\u0150\\u0170]\",\n\tlowerLetter: \"[a-z\\u00df-\\u00f6\\u00f8-\\u00ff\\u0151\\u0171]\",\n\tanyLetter: \"[A-Za-z0-9\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\",\n\tblockPrefixLetters:\t\"[A-Za-z0-9-_\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\"\n};\n\nexports.textPrimitives.unWikiLink = \"~\";\nexports.textPrimitives.wikiLink = exports.textPrimitives.upperLetter + \"+\" +\n\texports.textPrimitives.lowerLetter + \"+\" +\n\texports.textPrimitives.upperLetter +\n\texports.textPrimitives.anyLetter + \"*\";\n\nexports.htmlEntities = {quot:34, amp:38, apos:39, lt:60, gt:62, nbsp:160, iexcl:161, cent:162, pound:163, curren:164, yen:165, brvbar:166, sect:167, uml:168, copy:169, ordf:170, laquo:171, not:172, shy:173, reg:174, macr:175, deg:176, plusmn:177, sup2:178, sup3:179, acute:180, micro:181, para:182, middot:183, cedil:184, sup1:185, ordm:186, raquo:187, frac14:188, frac12:189, frac34:190, iquest:191, Agrave:192, Aacute:193, Acirc:194, Atilde:195, Auml:196, Aring:197, AElig:198, Ccedil:199, Egrave:200, Eacute:201, Ecirc:202, Euml:203, Igrave:204, Iacute:205, Icirc:206, Iuml:207, ETH:208, Ntilde:209, Ograve:210, Oacute:211, Ocirc:212, Otilde:213, Ouml:214, times:215, Oslash:216, Ugrave:217, Uacute:218, Ucirc:219, Uuml:220, Yacute:221, THORN:222, szlig:223, agrave:224, aacute:225, acirc:226, atilde:227, auml:228, aring:229, aelig:230, ccedil:231, egrave:232, eacute:233, ecirc:234, euml:235, igrave:236, iacute:237, icirc:238, iuml:239, eth:240, ntilde:241, ograve:242, oacute:243, ocirc:244, otilde:245, ouml:246, divide:247, oslash:248, ugrave:249, uacute:250, ucirc:251, uuml:252, yacute:253, thorn:254, yuml:255, OElig:338, oelig:339, Scaron:352, scaron:353, Yuml:376, fnof:402, circ:710, tilde:732, Alpha:913, Beta:914, Gamma:915, Delta:916, Epsilon:917, Zeta:918, Eta:919, Theta:920, Iota:921, Kappa:922, Lambda:923, Mu:924, Nu:925, Xi:926, Omicron:927, Pi:928, Rho:929, Sigma:931, Tau:932, Upsilon:933, Phi:934, Chi:935, Psi:936, Omega:937, alpha:945, beta:946, gamma:947, delta:948, epsilon:949, zeta:950, eta:951, theta:952, iota:953, kappa:954, lambda:955, mu:956, nu:957, xi:958, omicron:959, pi:960, rho:961, sigmaf:962, sigma:963, tau:964, upsilon:965, phi:966, chi:967, psi:968, omega:969, thetasym:977, upsih:978, piv:982, ensp:8194, emsp:8195, thinsp:8201, zwnj:8204, zwj:8205, lrm:8206, rlm:8207, ndash:8211, mdash:8212, lsquo:8216, rsquo:8217, sbquo:8218, ldquo:8220, rdquo:8221, bdquo:8222, dagger:8224, Dagger:8225, bull:8226, hellip:8230, permil:8240, prime:8242, Prime:8243, lsaquo:8249, rsaquo:8250, oline:8254, frasl:8260, euro:8364, image:8465, weierp:8472, real:8476, trade:8482, alefsym:8501, larr:8592, uarr:8593, rarr:8594, darr:8595, harr:8596, crarr:8629, lArr:8656, uArr:8657, rArr:8658, dArr:8659, hArr:8660, forall:8704, part:8706, exist:8707, empty:8709, nabla:8711, isin:8712, notin:8713, ni:8715, prod:8719, sum:8721, minus:8722, lowast:8727, radic:8730, prop:8733, infin:8734, ang:8736, and:8743, or:8744, cap:8745, cup:8746, int:8747, there4:8756, sim:8764, cong:8773, asymp:8776, ne:8800, equiv:8801, le:8804, ge:8805, sub:8834, sup:8835, nsub:8836, sube:8838, supe:8839, oplus:8853, otimes:8855, perp:8869, sdot:8901, lceil:8968, rceil:8969, lfloor:8970, rfloor:8971, lang:9001, rang:9002, loz:9674, spades:9824, clubs:9827, hearts:9829, diams:9830 };\n\nexports.htmlVoidElements = \"area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr\".split(\",\");\n\nexports.htmlBlockElements = \"address,article,aside,audio,blockquote,canvas,dd,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,noscript,ol,output,p,pre,section,table,tfoot,ul,video\".split(\",\");\n\nexports.htmlUnsafeElements = \"script\".split(\",\");\n\n})();\n",
"type": "application/javascript",
"module-type": "config"
},
"$:/core/modules/deserializers.js": {
"title": "$:/core/modules/deserializers.js",
"text": "/*\\\ntitle: $:/core/modules/deserializers.js\ntype: application/javascript\nmodule-type: tiddlerdeserializer\n\nFunctions to deserialise tiddlers from a block of text\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nUtility function to parse an old-style tiddler DIV in a *.tid file. It looks like this:\n\n<div title=\"Title\" creator=\"JoeBloggs\" modifier=\"JoeBloggs\" created=\"201102111106\" modified=\"201102111310\" tags=\"myTag [[my long tag]]\">\n<pre>The text of the tiddler (without the expected HTML encoding).\n</pre>\n</div>\n\nNote that the field attributes are HTML encoded, but that the body of the <PRE> tag is not encoded.\n\nWhen these tiddler DIVs are encountered within a TiddlyWiki HTML file then the body is encoded in the usual way.\n*/\nvar parseTiddlerDiv = function(text /* [,fields] */) {\n\t// Slot together the default results\n\tvar result = {};\n\tif(arguments.length > 1) {\n\t\tfor(var f=1; f<arguments.length; f++) {\n\t\t\tvar fields = arguments[f];\n\t\t\tfor(var t in fields) {\n\t\t\t\tresult[t] = fields[t];\t\t\n\t\t\t}\n\t\t}\n\t}\n\t// Parse the DIV body\n\tvar startRegExp = /^\\s*<div\\s+([^>]*)>(\\s*<pre>)?/gi,\n\t\tendRegExp,\n\t\tmatch = startRegExp.exec(text);\n\tif(match) {\n\t\t// Old-style DIVs don't have the <pre> tag\n\t\tif(match[2]) {\n\t\t\tendRegExp = /<\\/pre>\\s*<\\/div>\\s*$/gi;\n\t\t} else {\n\t\t\tendRegExp = /<\\/div>\\s*$/gi;\n\t\t}\n\t\tvar endMatch = endRegExp.exec(text);\n\t\tif(endMatch) {\n\t\t\t// Extract the text\n\t\t\tresult.text = text.substring(match.index + match[0].length,endMatch.index);\n\t\t\t// Process the attributes\n\t\t\tvar attrRegExp = /\\s*([^=\\s]+)\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)')/gi,\n\t\t\t\tattrMatch;\n\t\t\tdo {\n\t\t\t\tattrMatch = attrRegExp.exec(match[1]);\n\t\t\t\tif(attrMatch) {\n\t\t\t\t\tvar name = attrMatch[1];\n\t\t\t\t\tvar value = attrMatch[2] !== undefined ? attrMatch[2] : attrMatch[3];\n\t\t\t\t\tresult[name] = value;\n\t\t\t\t}\n\t\t\t} while(attrMatch);\n\t\t\treturn result;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexports[\"application/x-tiddler-html-div\"] = function(text,fields) {\n\treturn [parseTiddlerDiv(text,fields)];\n};\n\nexports[\"application/json\"] = function(text,fields) {\n\tvar incoming,\n\t\tresults = [];\n\ttry {\n\t\tincoming = JSON.parse(text);\n\t} catch(e) {\n\t\tincoming = [{\n\t\t\ttitle: \"JSON error: \" + e,\n\t\t\ttext: \"\"\n\t\t}]\n\t}\n\tif(!$tw.utils.isArray(incoming)) {\n\t\tincoming = [incoming];\n\t}\n\tfor(var t=0; t<incoming.length; t++) {\n\t\tvar incomingFields = incoming[t],\n\t\t\tfields = {};\n\t\tfor(var f in incomingFields) {\n\t\t\tif(typeof incomingFields[f] === \"string\") {\n\t\t\t\tfields[f] = incomingFields[f];\n\t\t\t}\n\t\t}\n\t\tresults.push(fields);\n\t}\n\treturn results;\n};\n\n/*\nParse an HTML file into tiddlers. There are three possibilities:\n# A TiddlyWiki classic HTML file containing `text/x-tiddlywiki` tiddlers\n# A TiddlyWiki5 HTML file containing `text/vnd.tiddlywiki` tiddlers\n# An ordinary HTML file\n*/\nexports[\"text/html\"] = function(text,fields) {\n\t// Check if we've got a store area\n\tvar storeAreaMarkerRegExp = /<div id=[\"']?storeArea['\"]?( style=[\"']?display:none;[\"']?)?>/gi,\n\t\tmatch = storeAreaMarkerRegExp.exec(text);\n\tif(match) {\n\t\t// If so, it's either a classic TiddlyWiki file or an unencrypted TW5 file\n\t\t// First read the normal tiddlers\n\t\tvar results = deserializeTiddlyWikiFile(text,storeAreaMarkerRegExp.lastIndex,!!match[1],fields);\n\t\t// Then any system tiddlers\n\t\tvar systemAreaMarkerRegExp = /<div id=[\"']?systemArea['\"]?( style=[\"']?display:none;[\"']?)?>/gi,\n\t\t\tsysMatch = systemAreaMarkerRegExp.exec(text);\n\t\tif(sysMatch) {\n\t\t\tresults.push.apply(results,deserializeTiddlyWikiFile(text,systemAreaMarkerRegExp.lastIndex,!!sysMatch[1],fields));\n\t\t}\n\t\treturn results;\n\t} else {\n\t\t// Check whether we've got an encrypted file\n\t\tvar encryptedStoreArea = $tw.utils.extractEncryptedStoreArea(text);\n\t\tif(encryptedStoreArea) {\n\t\t\t// If so, attempt to decrypt it using the current password\n\t\t\treturn $tw.utils.decryptStoreArea(encryptedStoreArea);\n\t\t} else {\n\t\t\t// It's not a TiddlyWiki so we'll return the entire HTML file as a tiddler\n\t\t\treturn deserializeHtmlFile(text,fields);\n\t\t}\n\t}\n};\n\nfunction deserializeHtmlFile(text,fields) {\n\tvar result = {};\n\t$tw.utils.each(fields,function(value,name) {\n\t\tresult[name] = value;\n\t});\n\tresult.text = text;\n\tresult.type = \"text/html\";\n\treturn [result];\n}\n\nfunction deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) {\n\tvar results = [],\n\t\tendOfDivRegExp = /(<\\/div>\\s*)/gi,\n\t\tstartPos = storeAreaEnd,\n\t\tdefaultType = isTiddlyWiki5 ? undefined : \"text/x-tiddlywiki\";\n\tendOfDivRegExp.lastIndex = startPos;\n\tvar match = endOfDivRegExp.exec(text);\n\twhile(match) {\n\t\tvar endPos = endOfDivRegExp.lastIndex,\n\t\t\ttiddlerFields = parseTiddlerDiv(text.substring(startPos,endPos),fields,{type: defaultType});\n\t\tif(!tiddlerFields) {\n\t\t\tbreak;\n\t\t}\n\t\t$tw.utils.each(tiddlerFields,function(value,name) {\n\t\t\tif(typeof value === \"string\") {\n\t\t\t\ttiddlerFields[name] = $tw.utils.htmlDecode(value);\n\t\t\t}\n\t\t});\n\t\tif(tiddlerFields.text !== null) {\n\t\t\tresults.push(tiddlerFields);\n\t\t}\n\t\tstartPos = endPos;\n\t\tmatch = endOfDivRegExp.exec(text);\n\t}\n\treturn results;\n}\n\n})();\n",
"type": "application/javascript",
"module-type": "tiddlerdeserializer"
},
"$:/core/modules/editor/engines/framed.js": {
"title": "$:/core/modules/editor/engines/framed.js",
"text": "/*\\\ntitle: $:/core/modules/editor/engines/framed.js\ntype: application/javascript\nmodule-type: library\n\nText editor engine based on a simple input or textarea within an iframe. This is done so that the selection is preserved even when clicking away from the textarea\n\n\\*/\n(function(){\n\n/*jslint node: true,browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar HEIGHT_VALUE_TITLE = \"$:/config/TextEditor/EditorHeight/Height\";\n\nfunction FramedEngine(options) {\n\t// Save our options\n\toptions = options || {};\n\tthis.widget = options.widget;\n\tthis.value = options.value;\n\tthis.parentNode = options.parentNode;\n\tthis.nextSibling = options.nextSibling;\n\t// Create our hidden dummy text area for reading styles\n\tthis.dummyTextArea = this.widget.document.createElement(\"textarea\");\n\tif(this.widget.editClass) {\n\t\tthis.dummyTextArea.className = this.widget.editClass;\n\t}\n\tthis.dummyTextArea.setAttribute(\"hidden\",\"true\");\n\tthis.parentNode.insertBefore(this.dummyTextArea,this.nextSibling);\n\tthis.widget.domNodes.push(this.dummyTextArea);\n\t// Create the iframe\n\tthis.iframeNode = this.widget.document.createElement(\"iframe\");\n\tthis.parentNode.insertBefore(this.iframeNode,this.nextSibling);\n\tthis.iframeDoc = this.iframeNode.contentWindow.document;\n\t// (Firefox requires us to put some empty content in the iframe)\n\tthis.iframeDoc.open();\n\tthis.iframeDoc.write(\"\");\n\tthis.iframeDoc.close();\n\t// Style the iframe\n\tthis.iframeNode.className = this.dummyTextArea.className;\n\tthis.iframeNode.style.border = \"none\";\n\tthis.iframeNode.style.padding = \"0\";\n\tthis.iframeNode.style.resize = \"none\";\n\tthis.iframeNode.style[\"background-color\"] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText(\"$:/palette\"),\"tiddler-editor-background\");\n\tthis.iframeDoc.body.style.margin = \"0\";\n\tthis.iframeDoc.body.style.padding = \"0\";\n\tthis.widget.domNodes.push(this.iframeNode);\n\t// Construct the textarea or input node\n\tvar tag = this.widget.editTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \"input\";\n\t}\n\tthis.domNode = this.iframeDoc.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \"textarea\") {\n\t\tthis.domNode.appendChild(this.iframeDoc.createTextNode(this.value));\n\t} else {\n\t\tthis.domNode.value = this.value;\n\t}\n\t// Set the attributes\n\tif(this.widget.editType) {\n\t\tthis.domNode.setAttribute(\"type\",this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\"placeholder\",this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\"size\",this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\"rows\",this.widget.editRows);\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.iframeNode.setAttribute(\"tabindex\",this.widget.editTabIndex);\n\t}\n\t// Copy the styles from the dummy textarea\n\tthis.copyStyles();\n\t// Add event listeners\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \"click\",handlerObject: this,handlerMethod: \"handleClickEvent\"},\n\t\t{name: \"focus\",handlerObject: this,handlerMethod: \"handleFocusEvent\"},\n\t\t{name: \"input\",handlerObject: this,handlerMethod: \"handleInputEvent\"},\n\t\t{name: \"keydown\",handlerObject: this.widget,handlerMethod: \"handleKeydownEvent\"}\n\t]);\n\t// Insert the element into the DOM\n\tthis.iframeDoc.body.appendChild(this.domNode);\n}\n\n/*\nCopy styles from the dummy text area to the textarea in the iframe\n*/\nFramedEngine.prototype.copyStyles = function() {\n\t// Copy all styles\n\t$tw.utils.copyStyles(this.dummyTextArea,this.domNode);\n\t// Override the ones that should not be set the same as the dummy textarea\n\tthis.domNode.style.display = \"block\";\n\tthis.domNode.style.width = \"100%\";\n\tthis.domNode.style.margin = \"0\";\n\tthis.domNode.style[\"background-color\"] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText(\"$:/palette\"),\"tiddler-editor-background\");\n\t// In Chrome setting -webkit-text-fill-color overrides the placeholder text colour\n\tthis.domNode.style[\"-webkit-text-fill-color\"] = \"currentcolor\";\n};\n\n/*\nSet the text of the engine if it doesn't currently have focus\n*/\nFramedEngine.prototype.setText = function(text,type) {\n\tif(!this.domNode.isTiddlyWikiFakeDom) {\n\t\tif(this.domNode.ownerDocument.activeElement !== this.domNode) {\n\t\t\tthis.domNode.value = text;\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nGet the text of the engine\n*/\nFramedEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nFramedEngine.prototype.fixHeight = function() {\n\t// Make sure styles are updated\n\tthis.copyStyles();\n\t// Adjust height\n\tif(this.widget.editTag === \"textarea\") {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode && !this.domNode.isTiddlyWikiFakeDom) {\n\t\t\t\tvar newHeight = $tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);\n\t\t\t\tthis.iframeNode.style.height = (newHeight + 14) + \"px\"; // +14 for the border on the textarea\n\t\t\t}\n\t\t} else {\n\t\t\tvar fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,\"400px\"),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \"px\";\n\t\t\tthis.iframeNode.style.height = (fixedHeight + 14) + \"px\";\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nFramedEngine.prototype.focus = function() {\n\tif(this.domNode.focus && this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\t\n/*\nHandle the focus event\n*/\nFramedEngine.prototype.handleFocusEvent = function(event) {\n\tthis.widget.cancelPopups();\n\treturn true;\n};\n\n/*\nHandle a click\n*/\nFramedEngine.prototype.handleClickEvent = function(event) {\n\tthis.fixHeight();\n\treturn true;\n};\n\n/*\nHandle a dom \"input\" event which occurs when the text has changed\n*/\nFramedEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nFramedEngine.prototype.createTextOperation = function() {\n\tvar operation = {\n\t\ttext: this.domNode.value,\n\t\tselStart: this.domNode.selectionStart,\n\t\tselEnd: this.domNode.selectionEnd,\n\t\tcutStart: null,\n\t\tcutEnd: null,\n\t\treplacement: null,\n\t\tnewSelStart: null,\n\t\tnewSelEnd: null\n\t};\n\toperation.selection = operation.text.substring(operation.selStart,operation.selEnd);\n\treturn operation;\n};\n\n/*\nExecute a text operation\n*/\nFramedEngine.prototype.executeTextOperation = function(operation) {\n\t// Perform the required changes to the text area and the underlying tiddler\n\tvar newText = operation.text;\n\tif(operation.replacement !== null) {\n\t\tnewText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd);\n\t\t// Attempt to use a execCommand to modify the value of the control\n\t\tif(this.iframeDoc.queryCommandSupported(\"insertText\") && this.iframeDoc.queryCommandSupported(\"delete\") && !$tw.browser.isFirefox) {\n\t\t\tthis.domNode.focus();\n\t\t\tthis.domNode.setSelectionRange(operation.cutStart,operation.cutEnd);\n\t\t\tif(operation.replacement === \"\") {\n\t\t\t\tthis.iframeDoc.execCommand(\"delete\",false,\"\");\n\t\t\t} else {\n\t\t\t\tthis.iframeDoc.execCommand(\"insertText\",false,operation.replacement);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.domNode.value = newText;\n\t\t}\n\t\tthis.domNode.focus();\n\t\tthis.domNode.setSelectionRange(operation.newSelStart,operation.newSelEnd);\n\t}\n\tthis.domNode.focus();\n\treturn newText;\n};\n\nexports.FramedEngine = FramedEngine;\n\n})();\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/core/modules/editor/engines/simple.js": {
"title": "$:/core/modules/editor/engines/simple.js",
"text": "/*\\\ntitle: $:/core/modules/editor/engines/simple.js\ntype: application/javascript\nmodule-type: library\n\nText editor engine based on a simple input or textarea tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar HEIGHT_VALUE_TITLE = \"$:/config/TextEditor/EditorHeight/Height\";\n\nfunction SimpleEngine(options) {\n\t// Save our options\n\toptions = options || {};\n\tthis.widget = options.widget;\n\tthis.value = options.value;\n\tthis.parentNode = options.parentNode;\n\tthis.nextSibling = options.nextSibling;\n\t// Construct the textarea or input node\n\tvar tag = this.widget.editTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \"input\";\n\t}\n\tthis.domNode = this.widget.document.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \"textarea\") {\n\t\tthis.domNode.appendChild(this.widget.document.createTextNode(this.value));\n\t} else {\n\t\tthis.domNode.value = this.value;\n\t}\n\t// Set the attributes\n\tif(this.widget.editType) {\n\t\tthis.domNode.setAttribute(\"type\",this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\"placeholder\",this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\"size\",this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\"rows\",this.widget.editRows);\n\t}\n\tif(this.widget.editClass) {\n\t\tthis.domNode.className = this.widget.editClass;\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.domNode.setAttribute(\"tabindex\",this.widget.editTabIndex);\n\t}\n\t// Add an input event handler\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \"focus\", handlerObject: this, handlerMethod: \"handleFocusEvent\"},\n\t\t{name: \"input\", handlerObject: this, handlerMethod: \"handleInputEvent\"}\n\t]);\n\t// Insert the element into the DOM\n\tthis.parentNode.insertBefore(this.domNode,this.nextSibling);\n\tthis.widget.domNodes.push(this.domNode);\n}\n\n/*\nSet the text of the engine if it doesn't currently have focus\n*/\nSimpleEngine.prototype.setText = function(text,type) {\n\tif(!this.domNode.isTiddlyWikiFakeDom) {\n\t\tif(this.domNode.ownerDocument.activeElement !== this.domNode || text === \"\") {\n\t\t\tthis.domNode.value = text;\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nGet the text of the engine\n*/\nSimpleEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nSimpleEngine.prototype.fixHeight = function() {\n\tif(this.widget.editTag === \"textarea\") {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode && !this.domNode.isTiddlyWikiFakeDom) {\n\t\t\t\t$tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);\n\t\t\t}\n\t\t} else {\n\t\t\tvar fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,\"400px\"),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \"px\";\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nSimpleEngine.prototype.focus = function() {\n\tif(this.domNode.focus && this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\n/*\nHandle a dom \"input\" event which occurs when the text has changed\n*/\nSimpleEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\treturn true;\n};\n\n/*\nHandle a dom \"focus\" event\n*/\nSimpleEngine.prototype.handleFocusEvent = function(event) {\n\tthis.widget.cancelPopups();\n\tif(this.widget.editFocusPopup) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNode,\n\t\t\ttitle: this.widget.editFocusPopup,\n\t\t\twiki: this.widget.wiki,\n\t\t\tforce: true\n\t\t});\n\t}\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nSimpleEngine.prototype.createTextOperation = function() {\n\treturn null;\n};\n\n/*\nExecute a text operation\n*/\nSimpleEngine.prototype.executeTextOperation = function(operation) {\n};\n\nexports.SimpleEngine = SimpleEngine;\n\n})();\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/core/modules/editor/factory.js": {
"title": "$:/core/modules/editor/factory.js",
"text": "/*\\\ntitle: $:/core/modules/editor/factory.js\ntype: application/javascript\nmodule-type: library\n\nFactory for constructing text editor widgets with specified engines for the toolbar and non-toolbar cases\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar DEFAULT_MIN_TEXT_AREA_HEIGHT = \"100px\"; // Minimum height of textareas in pixels\n\n// Configuration tiddlers\nvar HEIGHT_MODE_TITLE = \"$:/config/TextEditor/EditorHeight/Mode\";\nvar ENABLE_TOOLBAR_TITLE = \"$:/config/TextEditor/EnableToolbar\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nfunction editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {\n\n\tvar EditTextWidget = function(parseTreeNode,options) {\n\t\t// Initialise the editor operations if they've not been done already\n\t\tif(!this.editorOperations) {\n\t\t\tEditTextWidget.prototype.editorOperations = {};\n\t\t\t$tw.modules.applyMethods(\"texteditoroperation\",this.editorOperations);\n\t\t}\n\t\tthis.initialise(parseTreeNode,options);\n\t};\n\n\t/*\n\tInherit from the base widget class\n\t*/\n\tEditTextWidget.prototype = new Widget();\n\n\t/*\n\tRender this widget into the DOM\n\t*/\n\tEditTextWidget.prototype.render = function(parent,nextSibling) {\n\t\t// Save the parent dom node\n\t\tthis.parentDomNode = parent;\n\t\t// Compute our attributes\n\t\tthis.computeAttributes();\n\t\t// Execute our logic\n\t\tthis.execute();\n\t\t// Create the wrapper for the toolbar and render its content\n\t\tif(this.editShowToolbar) {\n\t\t\tthis.toolbarNode = this.document.createElement(\"div\");\n\t\t\tthis.toolbarNode.className = \"tc-editor-toolbar\";\n\t\t\tparent.insertBefore(this.toolbarNode,nextSibling);\n\t\t\tthis.renderChildren(this.toolbarNode,null);\n\t\t\tthis.domNodes.push(this.toolbarNode);\n\t\t}\n\t\t// Create our element\n\t\tvar editInfo = this.getEditInfo(),\n\t\t\tEngine = this.editShowToolbar ? toolbarEngine : nonToolbarEngine;\n\t\tthis.engine = new Engine({\n\t\t\t\twidget: this,\n\t\t\t\tvalue: editInfo.value,\n\t\t\t\ttype: editInfo.type,\n\t\t\t\tparentNode: parent,\n\t\t\t\tnextSibling: nextSibling\n\t\t\t});\n\t\t// Call the postRender hook\n\t\tif(this.postRender) {\n\t\t\tthis.postRender();\n\t\t}\n\t\t// Fix height\n\t\tthis.engine.fixHeight();\n\t\t// Focus if required\n\t\tif(this.editFocus === \"true\" || this.editFocus === \"yes\") {\n\t\t\tthis.engine.focus();\n\t\t}\n\t\t// Add widget message listeners\n\t\tthis.addEventListeners([\n\t\t\t{type: \"tm-edit-text-operation\", handler: \"handleEditTextOperationMessage\"}\n\t\t]);\n\t};\n\n\t/*\n\tGet the tiddler being edited and current value\n\t*/\n\tEditTextWidget.prototype.getEditInfo = function() {\n\t\t// Get the edit value\n\t\tvar self = this,\n\t\t\tvalue,\n\t\t\ttype = \"text/plain\",\n\t\t\tupdate;\n\t\tif(this.editIndex) {\n\t\t\tvalue = this.wiki.extractTiddlerDataItem(this.editTitle,this.editIndex,this.editDefault);\n\t\t\tupdate = function(value) {\n\t\t\t\tvar data = self.wiki.getTiddlerData(self.editTitle,{});\n\t\t\t\tif(data[self.editIndex] !== value) {\n\t\t\t\t\tdata[self.editIndex] = value;\n\t\t\t\t\tself.wiki.setTiddlerData(self.editTitle,data);\n\t\t\t\t}\n\t\t\t};\n\t\t} else {\n\t\t\t// Get the current tiddler and the field name\n\t\t\tvar tiddler = this.wiki.getTiddler(this.editTitle);\n\t\t\tif(tiddler) {\n\t\t\t\t// If we've got a tiddler, the value to display is the field string value\n\t\t\t\tvalue = tiddler.getFieldString(this.editField);\n\t\t\t\tif(this.editField === \"text\") {\n\t\t\t\t\ttype = tiddler.fields.type || \"text/vnd.tiddlywiki\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Otherwise, we need to construct a default value for the editor\n\t\t\t\tswitch(this.editField) {\n\t\t\t\t\tcase \"text\":\n\t\t\t\t\t\tvalue = \"Type the text for the tiddler '\" + this.editTitle + \"'\";\n\t\t\t\t\t\ttype = \"text/vnd.tiddlywiki\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"title\":\n\t\t\t\t\t\tvalue = this.editTitle;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tvalue = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(this.editDefault !== undefined) {\n\t\t\t\t\tvalue = this.editDefault;\n\t\t\t\t}\n\t\t\t}\n\t\t\tupdate = function(value) {\n\t\t\t\tvar tiddler = self.wiki.getTiddler(self.editTitle),\n\t\t\t\t\tupdateFields = {\n\t\t\t\t\t\ttitle: self.editTitle\n\t\t\t\t\t};\n\t\t\t\tupdateFields[self.editField] = value;\n\t\t\t\tself.wiki.addTiddler(new $tw.Tiddler(self.wiki.getCreationFields(),tiddler,updateFields,self.wiki.getModificationFields()));\n\t\t\t};\n\t\t}\n\t\tif(this.editType) {\n\t\t\ttype = this.editType;\n\t\t}\n\t\treturn {value: value || \"\", type: type, update: update};\n\t};\n\n\t/*\n\tHandle an edit text operation message from the toolbar\n\t*/\n\tEditTextWidget.prototype.handleEditTextOperationMessage = function(event) {\n\t\t// Prepare information about the operation\n\t\tvar operation = this.engine.createTextOperation();\n\t\t// Invoke the handler for the selected operation\n\t\tvar handler = this.editorOperations[event.param];\n\t\tif(handler) {\n\t\t\thandler.call(this,event,operation);\n\t\t}\n\t\t// Execute the operation via the engine\n\t\tvar newText = this.engine.executeTextOperation(operation);\n\t\t// Fix the tiddler height and save changes\n\t\tthis.engine.fixHeight();\n\t\tthis.saveChanges(newText);\n\t};\n\n\t/*\n\tCompute the internal state of the widget\n\t*/\n\tEditTextWidget.prototype.execute = function() {\n\t\t// Get our parameters\n\t\tthis.editTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t\tthis.editField = this.getAttribute(\"field\",\"text\");\n\t\tthis.editIndex = this.getAttribute(\"index\");\n\t\tthis.editDefault = this.getAttribute(\"default\");\n\t\tthis.editClass = this.getAttribute(\"class\");\n\t\tthis.editPlaceholder = this.getAttribute(\"placeholder\");\n\t\tthis.editSize = this.getAttribute(\"size\");\n\t\tthis.editRows = this.getAttribute(\"rows\");\n\t\tthis.editAutoHeight = this.wiki.getTiddlerText(HEIGHT_MODE_TITLE,\"auto\");\n\t\tthis.editAutoHeight = this.getAttribute(\"autoHeight\",this.editAutoHeight === \"auto\" ? \"yes\" : \"no\") === \"yes\";\n\t\tthis.editMinHeight = this.getAttribute(\"minHeight\",DEFAULT_MIN_TEXT_AREA_HEIGHT);\n\t\tthis.editFocusPopup = this.getAttribute(\"focusPopup\");\n\t\tthis.editFocus = this.getAttribute(\"focus\");\n\t\tthis.editTabIndex = this.getAttribute(\"tabindex\");\n\t\t// Get the default editor element tag and type\n\t\tvar tag,type;\n\t\tif(this.editField === \"text\") {\n\t\t\ttag = \"textarea\";\n\t\t} else {\n\t\t\ttag = \"input\";\n\t\t\tvar fieldModule = $tw.Tiddler.fieldModules[this.editField];\n\t\t\tif(fieldModule && fieldModule.editTag) {\n\t\t\t\ttag = fieldModule.editTag;\n\t\t\t}\n\t\t\tif(fieldModule && fieldModule.editType) {\n\t\t\t\ttype = fieldModule.editType;\n\t\t\t}\n\t\t\ttype = type || \"text\";\n\t\t}\n\t\t// Get the rest of our parameters\n\t\tthis.editTag = this.getAttribute(\"tag\",tag) || \"input\";\n\t\tthis.editType = this.getAttribute(\"type\",type);\n\t\t// Make the child widgets\n\t\tthis.makeChildWidgets();\n\t\t// Determine whether to show the toolbar\n\t\tthis.editShowToolbar = this.wiki.getTiddlerText(ENABLE_TOOLBAR_TITLE,\"yes\");\n\t\tthis.editShowToolbar = (this.editShowToolbar === \"yes\") && !!(this.children && this.children.length > 0) && (!this.document.isTiddlyWikiFakeDom);\n\t};\n\n\t/*\n\tSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n\t*/\n\tEditTextWidget.prototype.refresh = function(changedTiddlers) {\n\t\tvar changedAttributes = this.computeAttributes();\n\t\t// Completely rerender if any of our attributes have changed\n\t\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes[\"default\"] || changedAttributes[\"class\"] || changedAttributes.placeholder || changedAttributes.size || changedAttributes.autoHeight || changedAttributes.minHeight || changedAttributes.focusPopup || changedAttributes.rows || changedAttributes.tabindex || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE]) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\n\t\t} else if(changedTiddlers[this.editTitle]) {\n\t\t\tvar editInfo = this.getEditInfo();\n\t\t\tthis.updateEditor(editInfo.value,editInfo.type);\n\t\t}\n\t\tthis.engine.fixHeight();\n\t\tif(this.editShowToolbar) {\n\t\t\treturn this.refreshChildren(changedTiddlers);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\t/*\n\tUpdate the editor with new text. This method is separate from updateEditorDomNode()\n\tso that subclasses can override updateEditor() and still use updateEditorDomNode()\n\t*/\n\tEditTextWidget.prototype.updateEditor = function(text,type) {\n\t\tthis.updateEditorDomNode(text,type);\n\t};\n\n\t/*\n\tUpdate the editor dom node with new text\n\t*/\n\tEditTextWidget.prototype.updateEditorDomNode = function(text,type) {\n\t\tthis.engine.setText(text,type);\n\t};\n\n\t/*\n\tSave changes back to the tiddler store\n\t*/\n\tEditTextWidget.prototype.saveChanges = function(text) {\n\t\tvar editInfo = this.getEditInfo();\n\t\tif(text !== editInfo.value) {\n\t\t\teditInfo.update(text);\n\t\t}\n\t};\n\n\t/*\n\tCancel Popups\n\t*/\n\tEditTextWidget.prototype.cancelPopups = function() {\n\t\t$tw.popup.cancel(0,this.engine.domNode);\n\t};\n\n\t/*\n\tHandle a dom \"keydown\" event, which we'll bubble up to our container for the keyboard widgets benefit\n\t*/\n\tEditTextWidget.prototype.handleKeydownEvent = function(event) {\n\t\t// Check for a keyboard shortcut\n\t\tif(this.toolbarNode) {\n\t\t\tvar shortcutElements = this.toolbarNode.querySelectorAll(\"[data-tw-keyboard-shortcut]\");\n\t\t\tfor(var index=0; index<shortcutElements.length; index++) {\n\t\t\t\tvar el = shortcutElements[index],\n\t\t\t\t\tshortcutData = el.getAttribute(\"data-tw-keyboard-shortcut\"),\n\t\t\t\t\tkeyInfoArray = $tw.keyboardManager.parseKeyDescriptors(shortcutData,{\n\t\t\t\t\t\twiki: this.wiki\n\t\t\t\t\t});\n\t\t\t\tif($tw.keyboardManager.checkKeyDescriptors(event,keyInfoArray)) {\n\t\t\t\t\tvar clickEvent = this.document.createEvent(\"Events\");\n\t\t\t\t clickEvent.initEvent(\"click\",true,false);\n\t\t\t\t el.dispatchEvent(clickEvent);\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Propogate the event to the container\n\t\tif(this.propogateKeydownEvent(event)) {\n\t\t\t// Ignore the keydown if it was already handled\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn true;\n\t\t}\n\t\t// Otherwise, process the keydown normally\n\t\treturn false;\n\t};\n\n\t/*\n\tPropogate keydown events to our container for the keyboard widgets benefit\n\t*/\n\tEditTextWidget.prototype.propogateKeydownEvent = function(event) {\n\t\tvar newEvent = this.document.createEventObject ? this.document.createEventObject() : this.document.createEvent(\"Events\");\n\t\tif(newEvent.initEvent) {\n\t\t\tnewEvent.initEvent(\"keydown\", true, true);\n\t\t}\n\t\tnewEvent.keyCode = event.keyCode;\n\t\tnewEvent.which = event.which;\n\t\tnewEvent.metaKey = event.metaKey;\n\t\tnewEvent.ctrlKey = event.ctrlKey;\n\t\tnewEvent.altKey = event.altKey;\n\t\tnewEvent.shiftKey = event.shiftKey;\n\t\treturn !this.parentDomNode.dispatchEvent(newEvent);\n\t};\n\n\treturn EditTextWidget;\n\n}\n\nexports.editTextWidgetFactory = editTextWidgetFactory;\n\n})();\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/core/modules/editor/operations/bitmap/clear.js": {
"title": "$:/core/modules/editor/operations/bitmap/clear.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/bitmap/clear.js\ntype: application/javascript\nmodule-type: bitmapeditoroperation\n\nBitmap editor operation to clear the image\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"clear\"] = function(event) {\n\tvar ctx = this.canvasDomNode.getContext(\"2d\");\n\tctx.globalAlpha = 1;\n\tctx.fillStyle = event.paramObject.colour || \"white\";\n\tctx.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height);\n\t// Save changes\n\tthis.strokeEnd();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "bitmapeditoroperation"
},
"$:/core/modules/editor/operations/bitmap/resize.js": {
"title": "$:/core/modules/editor/operations/bitmap/resize.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/bitmap/resize.js\ntype: application/javascript\nmodule-type: bitmapeditoroperation\n\nBitmap editor operation to resize the image\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"resize\"] = function(event) {\n\t// Get the new width\n\tvar newWidth = parseInt(event.paramObject.width || this.canvasDomNode.width,10),\n\t\tnewHeight = parseInt(event.paramObject.height || this.canvasDomNode.height,10);\n\t// Update if necessary\n\tif(newWidth > 0 && newHeight > 0 && !(newWidth === this.currCanvas.width && newHeight === this.currCanvas.height)) {\n\t\tthis.changeCanvasSize(newWidth,newHeight);\n\t}\n\t// Update the input controls\n\tthis.refreshToolbar();\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "bitmapeditoroperation"
},
"$:/core/modules/editor/operations/bitmap/rotate-left.js": {
"title": "$:/core/modules/editor/operations/bitmap/rotate-left.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/bitmap/rotate-left.js\ntype: application/javascript\nmodule-type: bitmapeditoroperation\n\nBitmap editor operation to rotate the image left by 90 degrees\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"rotate-left\"] = function(event) {\n\t// Rotate the canvas left by 90 degrees\n\tthis.rotateCanvasLeft();\n\t// Update the input controls\n\tthis.refreshToolbar();\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "bitmapeditoroperation"
},
"$:/core/modules/editor/operations/text/excise.js": {
"title": "$:/core/modules/editor/operations/text/excise.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/excise.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to excise the selection to a new tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"excise\"] = function(event,operation) {\n\tvar editTiddler = this.wiki.getTiddler(this.editTitle),\n\t\teditTiddlerTitle = this.editTitle;\n\tif(editTiddler && editTiddler.fields[\"draft.of\"]) {\n\t\teditTiddlerTitle = editTiddler.fields[\"draft.of\"];\n\t}\n\tvar excisionTitle = event.paramObject.title || this.wiki.generateNewTitle(\"New Excision\");\n\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\tthis.wiki.getCreationFields(),\n\t\tthis.wiki.getModificationFields(),\n\t\t{\n\t\t\ttitle: excisionTitle,\n\t\t\ttext: operation.selection,\n\t\t\ttags: event.paramObject.tagnew === \"yes\" ? [editTiddlerTitle] : []\n\t\t}\n\t));\n\toperation.replacement = excisionTitle;\n\tswitch(event.paramObject.type || \"transclude\") {\n\t\tcase \"transclude\":\n\t\t\toperation.replacement = \"{{\" + operation.replacement+ \"}}\";\n\t\t\tbreak;\n\t\tcase \"link\":\n\t\t\toperation.replacement = \"[[\" + operation.replacement+ \"]]\";\n\t\t\tbreak;\n\t\tcase \"macro\":\n\t\t\toperation.replacement = \"<<\" + (event.paramObject.macro || \"translink\") + \" \\\"\\\"\\\"\" + operation.replacement + \"\\\"\\\"\\\">>\";\n\t\t\tbreak;\n\t}\n\toperation.cutStart = operation.selStart;\n\toperation.cutEnd = operation.selEnd;\n\toperation.newSelStart = operation.selStart;\n\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/editor/operations/text/make-link.js": {
"title": "$:/core/modules/editor/operations/text/make-link.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/make-link.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to make a link\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"make-link\"] = function(event,operation) {\n\tif(operation.selection) {\n\t\toperation.replacement = \"[[\" + operation.selection + \"|\" + event.paramObject.text + \"]]\";\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t} else {\n\t\toperation.replacement = \"[[\" + event.paramObject.text + \"]]\";\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t}\n\toperation.newSelStart = operation.selStart + operation.replacement.length;\n\toperation.newSelEnd = operation.newSelStart;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/editor/operations/text/prefix-lines.js": {
"title": "$:/core/modules/editor/operations/text/prefix-lines.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/prefix-lines.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to add a prefix to the selected lines\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"prefix-lines\"] = function(event,operation) {\n\t// Cut just past the preceding line break, or the start of the text\n\toperation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);\n\t// Cut to just past the following line break, or to the end of the text\n\toperation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);\n\t// Compose the required prefix\n\tvar prefix = $tw.utils.repeat(event.paramObject.character,event.paramObject.count);\n\t// Process each line\n\tvar lines = operation.text.substring(operation.cutStart,operation.cutEnd).split(/\\r?\\n/mg);\n\t$tw.utils.each(lines,function(line,index) {\n\t\t// Remove and count any existing prefix characters\n\t\tvar count = 0;\n\t\twhile(line.charAt(0) === event.paramObject.character) {\n\t\t\tline = line.substring(1);\n\t\t\tcount++;\n\t\t}\n\t\t// Remove any whitespace\n\t\twhile(line.charAt(0) === \" \") {\n\t\t\tline = line.substring(1);\n\t\t}\n\t\t// We're done if we removed the exact required prefix, otherwise add it\n\t\tif(count !== event.paramObject.count) {\n\t\t\t// Apply the prefix\n\t\t\tline = prefix + \" \" + line;\n\t\t}\n\t\t// Save the modified line\n\t\tlines[index] = line;\n\t});\n\t// Stitch the replacement text together and set the selection\n\toperation.replacement = lines.join(\"\\n\");\n\tif(lines.length === 1) {\n\t\toperation.newSelStart = operation.cutStart + operation.replacement.length;\n\t\toperation.newSelEnd = operation.newSelStart;\n\t} else {\n\t\toperation.newSelStart = operation.cutStart;\n\t\toperation.newSelEnd = operation.newSelStart + operation.replacement.length;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/editor/operations/text/replace-all.js": {
"title": "$:/core/modules/editor/operations/text/replace-all.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/replace-all.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to replace the entire text\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"replace-all\"] = function(event,operation) {\n\toperation.cutStart = 0;\n\toperation.cutEnd = operation.text.length;\n\toperation.replacement = event.paramObject.text;\n\toperation.newSelStart = 0;\n\toperation.newSelEnd = operation.replacement.length;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/editor/operations/text/replace-selection.js": {
"title": "$:/core/modules/editor/operations/text/replace-selection.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/replace-selection.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to replace the selection\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"replace-selection\"] = function(event,operation) {\n\toperation.replacement = event.paramObject.text;\n\toperation.cutStart = operation.selStart;\n\toperation.cutEnd = operation.selEnd;\n\toperation.newSelStart = operation.selStart;\n\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/editor/operations/text/save-selection.js": {
"title": "$:/core/modules/editor/operations/text/save-selection.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/save-selection.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to save the current selection in a specified tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"save-selection\"] = function(event,operation) {\n\tvar tiddler = event.paramObject.tiddler,\n\t\tfield = event.paramObject.field || \"text\";\n\tif(tiddler && field) {\n\t\tthis.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/editor/operations/text/wrap-lines.js": {
"title": "$:/core/modules/editor/operations/text/wrap-lines.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/wrap-lines.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to wrap the selected lines with a prefix and suffix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"wrap-lines\"] = function(event,operation) {\n\t// Cut just past the preceding line break, or the start of the text\n\toperation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);\n\t// Cut to just past the following line break, or to the end of the text\n\toperation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);\n\t// Add the prefix and suffix\n\toperation.replacement = event.paramObject.prefix + \"\\n\" +\n\t\t\t\toperation.text.substring(operation.cutStart,operation.cutEnd) + \"\\n\" +\n\t\t\t\tevent.paramObject.suffix + \"\\n\";\n\toperation.newSelStart = operation.cutStart + event.paramObject.prefix.length + 1;\n\toperation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/editor/operations/text/wrap-selection.js": {
"title": "$:/core/modules/editor/operations/text/wrap-selection.js",
"text": "/*\\\ntitle: $:/core/modules/editor/operations/text/wrap-selection.js\ntype: application/javascript\nmodule-type: texteditoroperation\n\nText editor operation to wrap the selection with the specified prefix and suffix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports[\"wrap-selection\"] = function(event,operation) {\n\tif(operation.selStart === operation.selEnd) {\n\t\t// No selection; check if we're within the prefix/suffix\n\t\tif(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) {\n\t\t\t// Remove the prefix and suffix\n\t\t\toperation.cutStart = operation.selStart - event.paramObject.prefix.length;\n\t\t\toperation.cutEnd = operation.selEnd + event.paramObject.suffix.length;\n\t\t\toperation.replacement = \"\";\n\t\t\toperation.newSelStart = operation.cutStart;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t} else {\n\t\t\t// Wrap the cursor instead\n\t\t\toperation.cutStart = operation.selStart;\n\t\t\toperation.cutEnd = operation.selEnd;\n\t\t\toperation.replacement = event.paramObject.prefix + event.paramObject.suffix;\n\t\t\toperation.newSelStart = operation.selStart + event.paramObject.prefix.length;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t}\n\t} else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix && operation.text.substring(operation.selEnd - event.paramObject.suffix.length,operation.selEnd) === event.paramObject.suffix) {\n\t\t// Prefix and suffix are already present, so remove them\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t\toperation.replacement = operation.selection.substring(event.paramObject.prefix.length,operation.selection.length - event.paramObject.suffix.length);\n\t\toperation.newSelStart = operation.selStart;\n\t\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n\t} else {\n\t\t// Add the prefix and suffix\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t\toperation.replacement = event.paramObject.prefix + operation.selection + event.paramObject.suffix;\n\t\toperation.newSelStart = operation.selStart;\n\t\toperation.newSelEnd = operation.selStart + operation.replacement.length;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "texteditoroperation"
},
"$:/core/modules/filters/addprefix.js": {
"title": "$:/core/modules/filters/addprefix.js",
"text": "/*\\\ntitle: $:/core/modules/filters/addprefix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for adding a prefix to each title in the list. This is\nespecially useful in contexts where only a filter expression is allowed\nand macro substitution isn't available.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.addprefix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(operator.operand + title);\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/addsuffix.js": {
"title": "$:/core/modules/filters/addsuffix.js",
"text": "/*\\\ntitle: $:/core/modules/filters/addsuffix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for adding a suffix to each title in the list. This is\nespecially useful in contexts where only a filter expression is allowed\nand macro substitution isn't available.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.addsuffix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title + operator.operand);\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/after.js": {
"title": "$:/core/modules/filters/after.js",
"text": "/*\\\ntitle: $:/core/modules/filters/after.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler from the current list that is after the tiddler named in the operand.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.after = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tvar index = results.indexOf(operator.operand);\n\tif(index === -1 || index > (results.length - 2)) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index + 1]];\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/all/current.js": {
"title": "$:/core/modules/filters/all/current.js",
"text": "/*\\\ntitle: $:/core/modules/filters/all/current.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[current]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar currTiddlerTitle = options.widget && options.widget.getVariable(\"currentTiddler\");\n\tif(currTiddlerTitle) {\n\t\treturn [currTiddlerTitle];\n\t} else {\n\t\treturn [];\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "allfilteroperator"
},
"$:/core/modules/filters/all/missing.js": {
"title": "$:/core/modules/filters/all/missing.js",
"text": "/*\\\ntitle: $:/core/modules/filters/all/missing.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[missing]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\treturn options.wiki.getMissingTitles();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "allfilteroperator"
},
"$:/core/modules/filters/all/orphans.js": {
"title": "$:/core/modules/filters/all/orphans.js",
"text": "/*\\\ntitle: $:/core/modules/filters/all/orphans.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[orphans]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.orphans = function(source,prefix,options) {\n\treturn options.wiki.getOrphanTitles();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "allfilteroperator"
},
"$:/core/modules/filters/all/shadows.js": {
"title": "$:/core/modules/filters/all/shadows.js",
"text": "/*\\\ntitle: $:/core/modules/filters/all/shadows.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[shadows]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.shadows = function(source,prefix,options) {\n\treturn options.wiki.allShadowTitles();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "allfilteroperator"
},
"$:/core/modules/filters/all/tags.js": {
"title": "$:/core/modules/filters/all/tags.js",
"text": "/*\\\ntitle: $:/core/modules/filters/all/tags.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[tags]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tags = function(source,prefix,options) {\n\treturn Object.keys(options.wiki.getTagMap());\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "allfilteroperator"
},
"$:/core/modules/filters/all/tiddlers.js": {
"title": "$:/core/modules/filters/all/tiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/filters/all/tiddlers.js\ntype: application/javascript\nmodule-type: allfilteroperator\n\nFilter function for [all[tiddlers]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tiddlers = function(source,prefix,options) {\n\treturn options.wiki.allTitles();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "allfilteroperator"
},
"$:/core/modules/filters/all.js": {
"title": "$:/core/modules/filters/all.js",
"text": "/*\\\ntitle: $:/core/modules/filters/all.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for selecting tiddlers\n\n[all[shadows+tiddlers]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar allFilterOperators;\n\nfunction getAllFilterOperators() {\n\tif(!allFilterOperators) {\n\t\tallFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"allfilteroperator\",allFilterOperators);\n\t}\n\treturn allFilterOperators;\n}\n\n/*\nExport our filter function\n*/\nexports.all = function(source,operator,options) {\n\t// Get our suboperators\n\tvar allFilterOperators = getAllFilterOperators();\n\t// Cycle through the suboperators accumulating their results\n\tvar results = [],\n\t\tsubops = operator.operand.split(\"+\");\n\t// Check for common optimisations\n\tif(subops.length === 1 && subops[0] === \"\") {\n\t\treturn source;\n\t} else if(subops.length === 1 && subops[0] === \"tiddlers\") {\n\t\treturn options.wiki.each;\n\t} else if(subops.length === 1 && subops[0] === \"shadows\") {\n\t\treturn options.wiki.eachShadow;\n\t} else if(subops.length === 2 && subops[0] === \"tiddlers\" && subops[1] === \"shadows\") {\n\t\treturn options.wiki.eachTiddlerPlusShadows;\n\t} else if(subops.length === 2 && subops[0] === \"shadows\" && subops[1] === \"tiddlers\") {\n\t\treturn options.wiki.eachShadowPlusTiddlers;\n\t}\n\t// Do it the hard way\n\tfor(var t=0; t<subops.length; t++) {\n\t\tvar subop = allFilterOperators[subops[t]];\n\t\tif(subop) {\n\t\t\t$tw.utils.pushTop(results,subop(source,operator.prefix,options));\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/backlinks.js": {
"title": "$:/core/modules/filters/backlinks.js",
"text": "/*\\\ntitle: $:/core/modules/filters/backlinks.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning all the backlinks from a tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.backlinks = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.getTiddlerBacklinks(title));\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/before.js": {
"title": "$:/core/modules/filters/before.js",
"text": "/*\\\ntitle: $:/core/modules/filters/before.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler from the current list that is before the tiddler named in the operand.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.before = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tvar index = results.indexOf(operator.operand);\n\tif(index <= 0) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index - 1]];\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/commands.js": {
"title": "$:/core/modules/filters/commands.js",
"text": "/*\\\ntitle: $:/core/modules/filters/commands.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the commands available in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.commands = function(source,operator,options) {\n\tvar results = [];\n\t$tw.utils.each($tw.commands,function(commandInfo,name) {\n\t\tresults.push(name);\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/contains.js": {
"title": "$:/core/modules/filters/contains.js",
"text": "/*\\\ntitle: $:/core/modules/filters/contains.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for finding values in array fields\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.contains = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \"list\").toLowerCase();\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\tvar list = tiddler.getFieldList(fieldname);\n\t\t\t\tif(list.indexOf(operator.operand) === -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\tvar list = tiddler.getFieldList(fieldname);\n\t\t\t\tif(list.indexOf(operator.operand) !== -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/count.js": {
"title": "$:/core/modules/filters/count.js",
"text": "/*\\\ntitle: $:/core/modules/filters/count.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the number of entries in the current list.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.count = function(source,operator,options) {\n\tvar count = 0;\n\tsource(function(tiddler,title) {\n\t\tcount++;\n\t});\n\treturn [count + \"\"];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/days.js": {
"title": "$:/core/modules/filters/days.js",
"text": "/*\\\ntitle: $:/core/modules/filters/days.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects tiddlers with a specified date field within a specified date interval.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.days = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \"modified\",\n\t\tdayInterval = (parseInt(operator.operand,10)||0),\n\t\tdayIntervalSign = $tw.utils.sign(dayInterval),\n\t\ttargetTimeStamp = (new Date()).setHours(0,0,0,0) + 1000*60*60*24*dayInterval,\n\t\tisWithinDays = function(dateField) {\n\t\t\tvar sign = $tw.utils.sign(targetTimeStamp - (new Date(dateField)).setHours(0,0,0,0));\n\t\t\treturn sign === 0 || sign === dayIntervalSign;\n\t\t};\n\n\tif(operator.prefix === \"!\") {\n\t\ttargetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign;\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && tiddler.fields[fieldName]) {\n\t\t\t\tif(!isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && tiddler.fields[fieldName]) {\n\t\t\t\tif(isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/each.js": {
"title": "$:/core/modules/filters/each.js",
"text": "/*\\\ntitle: $:/core/modules/filters/each.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects one tiddler for each unique value of the specified field.\nWith suffix \"list\", selects all tiddlers that are values in a specified list field.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.each = function(source,operator,options) {\n\tvar results =[] ,\n\tvalue,values = {},\n\tfield = operator.operand || \"title\";\n\tif(operator.suffix === \"value\" && field === \"title\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!$tw.utils.hop(values,title)) {\n\t\t\t\tvalues[title] = true;\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else if(operator.suffix !== \"list-item\") {\n\t\tif(field === \"title\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && !$tw.utils.hop(values,title)) {\n\t\t\t\t\tvalues[title] = true;\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvalue = tiddler.getFieldString(field);\n\t\t\t\t\tif(!$tw.utils.hop(values,value)) {\n\t\t\t\t\t\tvalues[value] = true;\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\t$tw.utils.each(\n\t\t\t\t\toptions.wiki.getTiddlerList(title,field),\n\t\t\t\t\tfunction(value) {\n\t\t\t\t\t\tif(!$tw.utils.hop(values,value)) {\n\t\t\t\t\t\t\tvalues[value] = true;\n\t\t\t\t\t\t\tresults.push(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/eachday.js": {
"title": "$:/core/modules/filters/eachday.js",
"text": "/*\\\ntitle: $:/core/modules/filters/eachday.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects one tiddler for each unique day covered by the specified date field\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.eachday = function(source,operator,options) {\n\tvar results = [],\n\t\tvalues = [],\n\t\tfieldName = operator.operand || \"modified\";\n\t// Function to convert a date/time to a date integer\n\tvar toDate = function(value) {\n\t\tvalue = (new Date(value)).setHours(0,0,0,0);\n\t\treturn value+0;\n\t};\n\tsource(function(tiddler,title) {\n\t\tif(tiddler && tiddler.fields[fieldName]) {\n\t\t\tvar value = toDate($tw.utils.parseDate(tiddler.fields[fieldName]));\n\t\t\tif(values.indexOf(value) === -1) {\n\t\t\t\tvalues.push(value);\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/editiondescription.js": {
"title": "$:/core/modules/filters/editiondescription.js",
"text": "/*\\\ntitle: $:/core/modules/filters/editiondescription.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the descriptions of the specified edition names\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.editiondescription = function(source,operator,options) {\n\tvar results = [],\n\t\teditionInfo = $tw.utils.getEditionInfo();\n\tif(editionInfo) {\n\t\tsource(function(tiddler,title) {\n\t\t\tif($tw.utils.hop(editionInfo,title)) {\n\t\t\t\tresults.push(editionInfo[title].description || \"\");\t\t\t\t\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/editions.js": {
"title": "$:/core/modules/filters/editions.js",
"text": "/*\\\ntitle: $:/core/modules/filters/editions.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the available editions in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.editions = function(source,operator,options) {\n\tvar results = [],\n\t\teditionInfo = $tw.utils.getEditionInfo();\n\tif(editionInfo) {\n\t\t$tw.utils.each(editionInfo,function(info,name) {\n\t\t\tresults.push(name);\n\t\t});\n\t}\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/else.js": {
"title": "$:/core/modules/filters/else.js",
"text": "/*\\\ntitle: $:/core/modules/filters/else.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing an empty input list with a constant, passing a non-empty input list straight through\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.else = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tif(results.length === 0) {\n\t\treturn [operator.operand];\n\t} else {\n\t\treturn results;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/decodeuricomponent.js": {
"title": "$:/core/modules/filters/decodeuricomponent.js",
"text": "/*\\\ntitle: $:/core/modules/filters/decodeuricomponent.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for applying decodeURIComponent() to each item.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter functions\n*/\n\nexports.decodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURIComponent(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURIComponent(title));\n\t});\n\treturn results;\n};\n\nexports.decodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURI(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURI(title));\n\t});\n\treturn results;\n};\n\nexports.decodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlDecode(title));\n\t});\n\treturn results;\n};\n\nexports.encodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlEncode(title));\n\t});\n\treturn results;\n};\n\nexports.stringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.stringify(title));\n\t});\n\treturn results;\n};\n\nexports.jsonstringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.jsonStringify(title));\n\t});\n\treturn results;\n};\n\nexports.escaperegexp = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.escapeRegExp(title));\n\t});\n\treturn results;\n};\n\nexports.escapecss = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t// escape any character with a special meaning in CSS using CSS.escape()\n\t\tresults.push(CSS.escape(title));\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/enlist.js": {
"title": "$:/core/modules/filters/enlist.js",
"text": "/*\\\ntitle: $:/core/modules/filters/enlist.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning its operand parsed as a list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.enlist = function(source,operator,options) {\n\tvar allowDuplicates = false;\n\tswitch(operator.suffix) {\n\t\tcase \"raw\":\n\t\t\tallowDuplicates = true;\n\t\t\tbreak;\n\t\tcase \"dedupe\":\n\t\t\tallowDuplicates = false;\n\t\t\tbreak;\n\t}\n\tvar list = $tw.utils.parseStringArray(operator.operand,allowDuplicates);\n\tif(operator.prefix === \"!\") {\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t\treturn results;\n\t} else {\n\t\treturn list;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/field.js": {
"title": "$:/core/modules/filters/field.js",
"text": "/*\\\ntitle: $:/core/modules/filters/field.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for comparing fields for equality\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.field = function(source,operator,options) {\n\tvar results = [],indexedResults,\n\t\tfieldname = (operator.suffix || operator.operator || \"title\").toLowerCase();\n\tif(operator.prefix === \"!\") {\n\t\tif(operator.regexp) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null && !operator.regexp.exec(text)) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null && text !== operator.operand) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tif(operator.regexp) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null && !!operator.regexp.exec(text)) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tif(source.byField && operator.operand) {\n\t\t\t\tindexedResults = source.byField(fieldname,operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults\n\t\t\t\t}\n\t\t\t}\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null && text === operator.operand) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/fields.js": {
"title": "$:/core/modules/filters/fields.js",
"text": "/*\\\ntitle: $:/core/modules/filters/fields.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the fields on the selected tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.fields = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tfor(var fieldName in tiddler.fields) {\n\t\t\t\t$tw.utils.pushTop(results,fieldName);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/get.js": {
"title": "$:/core/modules/filters/get.js",
"text": "/*\\\ntitle: $:/core/modules/filters/get.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing tiddler titles by the value of the field specified in the operand.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.get = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tvar value = tiddler.getFieldString(operator.operand);\n\t\t\tif(value) {\n\t\t\t\tresults.push(value);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/getindex.js": {
"title": "$:/core/modules/filters/getindex.js",
"text": "/*\\\ntitle: $:/core/modules/filters/getindex.js\ntype: application/javascript\nmodule-type: filteroperator\n\nreturns the value at a given index of datatiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.getindex = function(source,operator,options) {\n\tvar data,title,results = [];\n\tif(operator.operand){\n\t\tsource(function(tiddler,title) {\n\t\t\ttitle = tiddler ? tiddler.fields.title : title;\n\t\t\tdata = options.wiki.extractTiddlerDataItem(tiddler,operator.operand);\n\t\t\tif(data) {\n\t\t\t\tresults.push(data);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/getvariable.js": {
"title": "$:/core/modules/filters/getvariable.js",
"text": "/*\\\ntitle: $:/core/modules/filters/getvariable.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing input values by the value of the variable with the same name, or blank if the variable is missing\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.getvariable = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.widget.getVariable(title) || \"\");\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/has.js": {
"title": "$:/core/modules/filters/has.js",
"text": "/*\\\ntitle: $:/core/modules/filters/has.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a tiddler has the specified field\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.has = function(source,operator,options) {\n\tvar results = [],\n\t\tinvert = operator.prefix === \"!\";\n\n\tif(operator.suffix === \"field\") {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || (tiddler && (!$tw.utils.hop(tiddler.fields,operator.operand)))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && $tw.utils.hop(tiddler.fields,operator.operand)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] === \"\")) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && !(tiddler.fields[operator.operand] === \"\" || tiddler.fields[operator.operand].length === 0)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\t\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/haschanged.js": {
"title": "$:/core/modules/filters/haschanged.js",
"text": "/*\\\ntitle: $:/core/modules/filters/haschanged.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returns tiddlers from the list that have a non-zero changecount.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.haschanged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.getChangeCount(title) === 0) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.getChangeCount(title) > 0) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/indexes.js": {
"title": "$:/core/modules/filters/indexes.js",
"text": "/*\\\ntitle: $:/core/modules/filters/indexes.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the indexes of a data tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.indexes = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar data = options.wiki.getTiddlerDataCached(title);\n\t\tif(data) {\n\t\t\t$tw.utils.pushTop(results,Object.keys(data));\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/insertbefore.js": {
"title": "$:/core/modules/filters/insertbefore.js",
"text": "/*\\\ntitle: $:/core/modules/filters/insertbefore.js\ntype: application/javascript\nmodule-type: filteroperator\n\nInsert an item before another item in a list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nOrder a list\n*/\nexports.insertbefore = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tvar target = options.widget && options.widget.getVariable(operator.suffix || \"currentTiddler\");\n\tif(target !== operator.operand) {\n\t\t// Remove the entry from the list if it is present\n\t\tvar pos = results.indexOf(operator.operand);\n\t\tif(pos !== -1) {\n\t\t\tresults.splice(pos,1);\n\t\t}\n\t\t// Insert the entry before the target marker\n\t\tpos = results.indexOf(target);\n\t\tif(pos !== -1) {\n\t\t\tresults.splice(pos,0,operator.operand);\n\t\t} else {\n\t\t\tresults.push(operator.operand);\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/is/blank.js": {
"title": "$:/core/modules/filters/is/blank.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/blank.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[blank]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.blank = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/current.js": {
"title": "$:/core/modules/filters/is/current.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/current.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[current]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar results = [],\n\t\tcurrTiddlerTitle = options.widget && options.widget.getVariable(\"currentTiddler\");\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title !== currTiddlerTitle) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title === currTiddlerTitle) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/image.js": {
"title": "$:/core/modules/filters/is/image.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/image.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[image]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.image = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isImageTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isImageTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/missing.js": {
"title": "$:/core/modules/filters/is/missing.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/missing.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[missing]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/orphan.js": {
"title": "$:/core/modules/filters/is/orphan.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/orphan.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[orphan]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.orphan = function(source,prefix,options) {\n\tvar results = [],\n\t\torphanTitles = options.wiki.getOrphanTitles();\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(orphanTitles.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(orphanTitles.indexOf(title) !== -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/shadow.js": {
"title": "$:/core/modules/filters/is/shadow.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/shadow.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[shadow]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.shadow = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isShadowTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isShadowTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/system.js": {
"title": "$:/core/modules/filters/is/system.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/system.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[system]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.system = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isSystemTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isSystemTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/tag.js": {
"title": "$:/core/modules/filters/is/tag.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/tag.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[tag]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tag = function(source,prefix,options) {\n\tvar results = [],\n\t\ttagMap = options.wiki.getTagMap();\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!$tw.utils.hop(tagMap,title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif($tw.utils.hop(tagMap,title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/tiddler.js": {
"title": "$:/core/modules/filters/is/tiddler.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/tiddler.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[tiddler]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tiddler = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.tiddlerExists(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is/variable.js": {
"title": "$:/core/modules/filters/is/variable.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is/variable.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[variable]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.variable = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!(title in options.widget.variables)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title in options.widget.variables) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "isfilteroperator"
},
"$:/core/modules/filters/is.js": {
"title": "$:/core/modules/filters/is.js",
"text": "/*\\\ntitle: $:/core/modules/filters/is.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking tiddler properties\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar isFilterOperators;\n\nfunction getIsFilterOperators() {\n\tif(!isFilterOperators) {\n\t\tisFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"isfilteroperator\",isFilterOperators);\n\t}\n\treturn isFilterOperators;\n}\n\n/*\nExport our filter function\n*/\nexports.is = function(source,operator,options) {\n\t// Dispatch to the correct isfilteroperator\n\tvar isFilterOperators = getIsFilterOperators();\n\tif(operator.operand) {\n\t\tvar isFilterOperator = isFilterOperators[operator.operand];\n\t\tif(isFilterOperator) {\n\t\t\treturn isFilterOperator(source,operator.prefix,options);\n\t\t} else {\n\t\t\treturn [$tw.language.getString(\"Error/IsFilterOperator\")];\n\t\t}\n\t} else {\n\t\t// Return all tiddlers if the operand is missing\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t}\n};\n\n})();",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/limit.js": {
"title": "$:/core/modules/filters/limit.js",
"text": "/*\\\ntitle: $:/core/modules/filters/limit.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for chopping the results to a specified maximum number of entries\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.limit = function(source,operator,options) {\n\tvar results = [];\n\t// Convert to an array\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\t// Slice the array if necessary\n\tvar limit = Math.min(results.length,parseInt(operator.operand,10));\n\tif(operator.prefix === \"!\") {\n\t\tresults = results.slice(-limit);\n\t} else {\n\t\tresults = results.slice(0,limit);\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/links.js": {
"title": "$:/core/modules/filters/links.js",
"text": "/*\\\ntitle: $:/core/modules/filters/links.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning all the links from a tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.links = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.getTiddlerLinks(title));\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/list.js": {
"title": "$:/core/modules/filters/list.js",
"text": "/*\\\ntitle: $:/core/modules/filters/list.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddlers whose title is listed in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.list = function(source,operator,options) {\n\tvar results = [],\n\t\ttr = $tw.utils.parseTextReference(operator.operand),\n\t\tcurrTiddlerTitle = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tlist = options.wiki.getTiddlerList(tr.title || currTiddlerTitle,tr.field,tr.index);\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tresults = list;\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/listed.js": {
"title": "$:/core/modules/filters/listed.js",
"text": "/*\\\ntitle: $:/core/modules/filters/listed.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all tiddlers that have the selected tiddlers in a list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.listed = function(source,operator,options) {\n\tvar field = operator.operand || \"list\",\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.findListingsOfTiddler(title,field));\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/listops.js": {
"title": "$:/core/modules/filters/listops.js",
"text": "/*\\\ntitle: $:/core/modules/filters/listops.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for manipulating the current selection list\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nOrder a list\n*/\nexports.order = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.operand.toLowerCase() === \"reverse\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.unshift(title);\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t}\n\treturn results;\n};\n\n/*\nReverse list\n*/\nexports.reverse = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.unshift(title);\n\t});\n\treturn results;\n};\n\n/*\nFirst entry/entries in list\n*/\nexports.first = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(0,count);\n};\n\n/*\nLast entry/entries in list\n*/\nexports.last = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(-count);\n};\n\n/*\nAll but the first entry/entries of the list\n*/\nexports.rest = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(count);\n};\nexports.butfirst = exports.rest;\nexports.bf = exports.rest;\n\n/*\nAll but the last entry/entries of the list\n*/\nexports.butlast = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(0,-count);\n};\nexports.bl = exports.butlast;\n\n/*\nThe nth member of the list\n*/\nexports.nth = function(source,operator,options) {\n\tvar count = $tw.utils.getInt(operator.operand,1),\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results.slice(count - 1,count);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/lookup.js": {
"title": "$:/core/modules/filters/lookup.js",
"text": "/*\\\ntitle: $:/core/modules/filters/lookup.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that looks up values via a title prefix\n\n[lookup:<field>[<prefix>]]\n\nPrepends the prefix to the selected items and returns the specified field value\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.lookup = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.wiki.getTiddlerText(operator.operand + title) || options.wiki.getTiddlerText(operator.operand + operator.suffix));\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/match.js": {
"title": "$:/core/modules/filters/match.js",
"text": "/*\\\ntitle: $:/core/modules/filters/match.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title matches a string\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.match = function(source,operator,options) {\n\tvar results = [],\n\t\tsuffixes = (operator.suffixes || [])[0] || [];\n\tif(suffixes.indexOf(\"caseinsensitive\") !== -1) {\n\t\tif(operator.prefix === \"!\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() !== (operator.operand || \"\").toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() === (operator.operand || \"\").toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tif(operator.prefix === \"!\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title !== operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title === operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/math.js": {
"title": "$:/core/modules/filters/math.js",
"text": "/*\\\ntitle: $:/core/modules/filters/math.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for math. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\nNote that strings are converted to numbers automatically. Trailing non-digits are ignored.\n\n* \"\" converts to 0\n* \"12kk\" converts to 12\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.negate = makeNumericBinaryOperator(\n\tfunction(a) {return -a}\n);\n\nexports.abs = makeNumericBinaryOperator(\n\tfunction(a) {return Math.abs(a)}\n);\n\nexports.ceil = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(a)}\n);\n\nexports.floor = makeNumericBinaryOperator(\n\tfunction(a) {return Math.floor(a)}\n);\n\nexports.round = makeNumericBinaryOperator(\n\tfunction(a) {return Math.round(a)}\n);\n\nexports.trunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.trunc(a)}\n);\n\nexports.untrunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(Math.abs(a)) * Math.sign(a)}\n);\n\nexports.sign = makeNumericBinaryOperator(\n\tfunction(a) {return Math.sign(a)}\n);\n\nexports.add = makeNumericBinaryOperator(\n\tfunction(a,b) {return a + b;}\n);\n\nexports.subtract = makeNumericBinaryOperator(\n\tfunction(a,b) {return a - b;}\n);\n\nexports.multiply = makeNumericBinaryOperator(\n\tfunction(a,b) {return a * b;}\n);\n\nexports.divide = makeNumericBinaryOperator(\n\tfunction(a,b) {return a / b;}\n);\n\nexports.remainder = makeNumericBinaryOperator(\n\tfunction(a,b) {return a % b;}\n);\n\nexports.max = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.max(a,b);}\n);\n\nexports.min = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.min(a,b);}\n);\n\nexports.fixed = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toFixed.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.precision = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toPrecision.call(a,Math.min(Math.max(b,1),100));}\n);\n\nexports.exponential = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toExponential.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.sum = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator + value},\n\t0 // Initial value\n);\n\nexports.product = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator * value},\n\t1 // Initial value\n);\n\nexports.maxall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.max(accumulator,value)},\n\t-Infinity // Initial value\n);\n\nexports.minall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.min(accumulator,value)},\n\tInfinity // Initial value\n);\n\nfunction makeNumericBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [],\n\t\t\tnumOperand = parseNumber(operator.operand);\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(stringifyNumber(fnCalc(parseNumber(title),numOperand)));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeNumericReducingOperator(fnCalc,initialValue) {\n\tinitialValue = initialValue || 0;\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\treturn [stringifyNumber(result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,parseNumber(currentValue));\n\t\t},initialValue))];\n\t};\n}\n\nfunction parseNumber(str) {\n\treturn parseFloat(str) || 0;\n}\n\nfunction stringifyNumber(num) {\n\treturn num + \"\";\n}\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/minlength.js": {
"title": "$:/core/modules/filters/minlength.js",
"text": "/*\\\ntitle: $:/core/modules/filters/minlength.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for filtering out titles that don't meet the minimum length in the operand\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.minlength = function(source,operator,options) {\n\tvar results = [],\n\t\tminLength = parseInt(operator.operand || \"\",10) || 0;\n\tsource(function(tiddler,title) {\n\t\tif(title.length >= minLength) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/modules.js": {
"title": "$:/core/modules/filters/modules.js",
"text": "/*\\\ntitle: $:/core/modules/filters/modules.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the titles of the modules of a given type in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.modules = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.each($tw.modules.types[title],function(moduleInfo,moduleName) {\n\t\t\tresults.push(moduleName);\n\t\t});\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/moduletypes.js": {
"title": "$:/core/modules/filters/moduletypes.js",
"text": "/*\\\ntitle: $:/core/modules/filters/moduletypes.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the module types in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.moduletypes = function(source,operator,options) {\n\tvar results = [];\n\t$tw.utils.each($tw.modules.types,function(moduleInfo,type) {\n\t\tresults.push(type);\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/next.js": {
"title": "$:/core/modules/filters/next.js",
"text": "/*\\\ntitle: $:/core/modules/filters/next.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler whose title occurs next in the list supplied in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.next = function(source,operator,options) {\n\tvar results = [],\n\t\tlist = options.wiki.getTiddlerList(operator.operand);\n\tsource(function(tiddler,title) {\n\t\tvar match = list.indexOf(title);\n\t\t// increment match and then test if result is in range\n\t\tmatch++;\n\t\tif(match > 0 && match < list.length) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/plugintiddlers.js": {
"title": "$:/core/modules/filters/plugintiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/filters/plugintiddlers.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the titles of the shadow tiddlers within a plugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.plugintiddlers = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar pluginInfo = options.wiki.getPluginInfo(title) || options.wiki.getTiddlerDataCached(title,{tiddlers:[]});\n\t\tif(pluginInfo && pluginInfo.tiddlers) {\n\t\t\t$tw.utils.each(pluginInfo.tiddlers,function(fields,title) {\n\t\t\t\tresults.push(title);\n\t\t\t});\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/prefix.js": {
"title": "$:/core/modules/filters/prefix.js",
"text": "/*\\\ntitle: $:/core/modules/filters/prefix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title starts with a prefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.prefix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(0,operator.operand.length) !== operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(0,operator.operand.length) === operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/previous.js": {
"title": "$:/core/modules/filters/previous.js",
"text": "/*\\\ntitle: $:/core/modules/filters/previous.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning the tiddler whose title occurs immediately prior in the list supplied in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.previous = function(source,operator,options) {\n\tvar results = [],\n\t\tlist = options.wiki.getTiddlerList(operator.operand);\n\tsource(function(tiddler,title) {\n\t\tvar match = list.indexOf(title);\n\t\t// increment match and then test if result is in range\n\t\tmatch--;\n\t\tif(match >= 0) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/range.js": {
"title": "$:/core/modules/filters/range.js",
"text": "/*\\\ntitle: $:/core/modules/filters/range.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for generating a numeric range.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.range = function(source,operator,options) {\n\tvar results = [];\n\t// Split the operand into numbers delimited by these symbols\n\tvar parts = operator.operand.split(/[,:;]/g),\n\t\tbeg, end, inc, i, fixed = 0;\n\tfor (i=0; i<parts.length; i++) {\n\t\t// Validate real number\n\t\tif(!/^\\s*[+-]?((\\d+(\\.\\d*)?)|(\\.\\d+))\\s*$/.test(parts[i])) {\n\t\t\treturn [\"range: bad number \\\"\" + parts[i] + \"\\\"\"];\n\t\t}\n\t\t// Count digits; the most precise number determines decimal places in output.\n\t\tvar frac = /\\.\\d+/.exec(parts[i]);\n\t\tif(frac) {\n\t\t\tfixed = Math.max(fixed,frac[0].length-1);\n\t\t}\n\t\tparts[i] = parseFloat(parts[i]);\n\t}\n\tswitch(parts.length) {\n\t\tcase 1:\n\t\t\tend = parts[0];\n\t\t\tif (end >= 1) {\n\t\t\t\tbeg = 1;\n\t\t\t}\n\t\t\telse if (end <= -1) {\n\t\t\t\tbeg = -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn [];\n\t\t\t}\n\t\t\tinc = 1;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tbeg = parts[0];\n\t\t\tend = parts[1];\n\t\t\tinc = 1;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tbeg = parts[0];\n\t\t\tend = parts[1];\n\t\t\tinc = Math.abs(parts[2]);\n\t\t\tbreak;\n\t}\n\tif(inc === 0) {\n\t\treturn [\"range: increment 0 causes infinite loop\"];\n\t}\n\t// May need to count backwards\n\tvar direction = ((end < beg) ? -1 : 1);\n\tinc *= direction;\n\t// Estimate number of resulting elements\n\tif((end - beg) / inc > 10000) {\n\t\treturn [\"range: too many steps (over 10K)\"];\n\t}\n\t// Avoid rounding error on last step\n\tend += direction * 0.5 * Math.pow(0.1,fixed);\n\tvar safety = 10010;\n\t// Enumerate the range\n\tif (end<beg) {\n\t\tfor(i=beg; i>end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety<0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfor(i=beg; i<end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety<0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(safety<0) {\n\t\treturn [\"range: unexpectedly large output\"];\n\t}\n\t// Reverse?\n\tif(operator.prefix === \"!\") {\n\t\tresults.reverse();\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/regexp.js": {
"title": "$:/core/modules/filters/regexp.js",
"text": "/*\\\ntitle: $:/core/modules/filters/regexp.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for regexp matching\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.regexp = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \"title\").toLowerCase(),\n\t\tregexpString, regexp, flags = \"\", match,\n\t\tgetFieldString = function(tiddler,title) {\n\t\t\tif(tiddler) {\n\t\t\t\treturn tiddler.getFieldString(fieldname);\n\t\t\t} else if(fieldname === \"title\") {\n\t\t\t\treturn title;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t// Process flags and construct regexp\n\tregexpString = operator.operand;\n\tmatch = /^\\(\\?([gim]+)\\)/.exec(regexpString);\n\tif(match) {\n\t\tflags = match[1];\n\t\tregexpString = regexpString.substr(match[0].length);\n\t} else {\n\t\tmatch = /\\(\\?([gim]+)\\)$/.exec(regexpString);\n\t\tif(match) {\n\t\t\tflags = match[1];\n\t\t\tregexpString = regexpString.substr(0,regexpString.length - match[0].length);\n\t\t}\n\t}\n\ttry {\n\t\tregexp = new RegExp(regexpString,flags);\n\t} catch(e) {\n\t\treturn [\"\" + e];\n\t}\n\t// Process the incoming tiddlers\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = getFieldString(tiddler,title);\n\t\t\tif(text !== null) {\n\t\t\t\tif(!regexp.exec(text)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = getFieldString(tiddler,title);\n\t\t\tif(text !== null) {\n\t\t\t\tif(!!regexp.exec(text)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/removeprefix.js": {
"title": "$:/core/modules/filters/removeprefix.js",
"text": "/*\\\ntitle: $:/core/modules/filters/removeprefix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for removing a prefix from each title in the list. Titles that do not start with the prefix are removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.removeprefix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tif(title.substr(0,operator.operand.length) === operator.operand) {\n\t\t\tresults.push(title.substr(operator.operand.length));\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/removesuffix.js": {
"title": "$:/core/modules/filters/removesuffix.js",
"text": "/*\\\ntitle: $:/core/modules/filters/removesuffix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for removing a suffix from each title in the list. Titles that do not end with the suffix are removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.removesuffix = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tif(title && title.substr(-operator.operand.length) === operator.operand) {\n\t\t\tresults.push(title.substr(0,title.length - operator.operand.length));\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/sameday.js": {
"title": "$:/core/modules/filters/sameday.js",
"text": "/*\\\ntitle: $:/core/modules/filters/sameday.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that selects tiddlers with a modified date field on the same day as the provided value.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.sameday = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \"modified\",\n\t\ttargetDate = (new Date($tw.utils.parseDate(operator.operand))).setHours(0,0,0,0);\n\t// Function to convert a date/time to a date integer\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tif(tiddler.getFieldDay(fieldName) === targetDate) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/search.js": {
"title": "$:/core/modules/filters/search.js",
"text": "/*\\\ntitle: $:/core/modules/filters/search.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for searching for the text in the operand tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.search = function(source,operator,options) {\n\tvar invert = operator.prefix === \"!\";\n\tif(operator.suffixes) {\n\t\tvar hasFlag = function(flag) {\n\t\t\t\treturn (operator.suffixes[1] || []).indexOf(flag) !== -1;\n\t\t\t},\n\t\t\texcludeFields = false,\n\t\t\tfieldList = operator.suffixes[0] || [],\n\t\t\tfirstField = fieldList[0] || \"\", \n\t\t\tfirstChar = firstField.charAt(0),\n\t\t\tfields;\n\t\tif(firstChar === \"-\") {\n\t\t\tfields = [firstField.slice(1)].concat(fieldList.slice(1));\n\t\t\texcludeFields = true;\n\t\t} else if(fieldList[0] === \"*\"){\n\t\t\tfields = [];\n\t\t\texcludeFields = true;\n\t\t} else {\n\t\t\tfields = fieldList.slice(0);\n\t\t}\n\t\treturn options.wiki.search(operator.operand,{\n\t\t\tsource: source,\n\t\t\tinvert: invert,\n\t\t\tfield: fields,\n\t\t\texcludeField: excludeFields,\n\t\t\tcaseSensitive: hasFlag(\"casesensitive\"),\n\t\t\tliteral: hasFlag(\"literal\"),\n\t\t\twhitespace: hasFlag(\"whitespace\"),\n\t\t\tanchored: hasFlag(\"anchored\"),\n\t\t\tregexp: hasFlag(\"regexp\"),\n\t\t\twords: hasFlag(\"words\")\n\t\t});\n\t} else {\n\t\treturn options.wiki.search(operator.operand,{\n\t\t\tsource: source,\n\t\t\tinvert: invert\n\t\t});\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/shadowsource.js": {
"title": "$:/core/modules/filters/shadowsource.js",
"text": "/*\\\ntitle: $:/core/modules/filters/shadowsource.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the source plugins for shadow tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.shadowsource = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar source = options.wiki.getShadowSource(title);\n\t\tif(source) {\n\t\t\t$tw.utils.pushTop(results,source);\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/sort.js": {
"title": "$:/core/modules/filters/sort.js",
"text": "/*\\\ntitle: $:/core/modules/filters/sort.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for sorting\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.sort = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \"title\",operator.prefix === \"!\",false,false);\n\treturn results;\n};\n\nexports.nsort = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \"title\",operator.prefix === \"!\",false,true);\n\treturn results;\n};\n\nexports.sortan = function(source, operator, options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results, operator.operand || \"title\", operator.prefix === \"!\",false,false,true);\n\treturn results;\n};\n\nexports.sortcs = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \"title\",operator.prefix === \"!\",true,false);\n\treturn results;\n};\n\nexports.nsortcs = function(source,operator,options) {\n\tvar results = prepare_results(source);\n\toptions.wiki.sortTiddlers(results,operator.operand || \"title\",operator.prefix === \"!\",true,true);\n\treturn results;\n};\n\nvar prepare_results = function (source) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/splitbefore.js": {
"title": "$:/core/modules/filters/splitbefore.js",
"text": "/*\\\ntitle: $:/core/modules/filters/splitbefore.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator that splits each result on the first occurance of the specified separator and returns the unique values.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.splitbefore = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar parts = title.split(operator.operand);\n\t\tif(parts.length === 1) {\n\t\t\t$tw.utils.pushTop(results,parts[0]);\n\t\t} else {\n\t\t\t$tw.utils.pushTop(results,parts[0] + operator.operand);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/storyviews.js": {
"title": "$:/core/modules/filters/storyviews.js",
"text": "/*\\\ntitle: $:/core/modules/filters/storyviews.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the story views in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.storyviews = function(source,operator,options) {\n\tvar results = [],\n\t\tstoryviews = {};\n\t$tw.modules.applyMethods(\"storyview\",storyviews);\n\t$tw.utils.each(storyviews,function(info,name) {\n\t\tresults.push(name);\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/strings.js": {
"title": "$:/core/modules/filters/strings.js",
"text": "/*\\\ntitle: $:/core/modules/filters/strings.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for strings. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.length = makeStringBinaryOperator(\n\tfunction(a) {return [\"\" + (\"\" + a).length];}\n);\n\nexports.uppercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\"\" + a).toUpperCase()];}\n);\n\nexports.lowercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\"\" + a).toLowerCase()];}\n);\n\nexports.sentencecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toSentenceCase(a)];}\n);\n\nexports.titlecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toTitleCase(a)];}\n);\n\nexports.trim = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.trim(a)];}\n);\n\nexports.split = makeStringBinaryOperator(\n\tfunction(a,b) {return (\"\" + a).split(b);}\n);\n\nexports.join = makeStringReducingOperator(\n\tfunction(accumulator,value,operand) {\n\t\tif(accumulator === null) {\n\t\t\treturn value;\n\t\t} else {\n\t\t\treturn accumulator + operand + value;\n\t\t}\n\t},null\n);\n\nfunction makeStringBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tArray.prototype.push.apply(result,fnCalc(title,operator.operand || \"\"));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeStringReducingOperator(fnCalc,initialValue) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\treturn [result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,currentValue,operator.operand || \"\");\n\t\t},initialValue)];\n\t};\n}\n\nexports.splitregexp = function(source,operator,options) {\n\tvar result = [],\n\t\tsuffix = operator.suffix || \"\",\n\t\tflags = (suffix.indexOf(\"m\") !== -1 ? \"m\" : \"\") + (suffix.indexOf(\"i\") !== -1 ? \"i\" : \"\"),\n\t\tregExp;\n\ttry {\n\t\tregExp = new RegExp(operator.operand || \"\",flags);\t\t\n\t} catch(ex) {\n\t\treturn [\"RegExp error: \" + ex];\n\t}\n\tsource(function(tiddler,title) {\n\t\tArray.prototype.push.apply(result,title.split(regExp));\n\t});\t\t\n\treturn result;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/subfilter.js": {
"title": "$:/core/modules/filters/subfilter.js",
"text": "/*\\\ntitle: $:/core/modules/filters/subfilter.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning its operand evaluated as a filter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.subfilter = function(source,operator,options) {\n\tvar list = options.wiki.filterTiddlers(operator.operand,options.widget,source);\n\tif(operator.prefix === \"!\") {\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t\treturn results;\n\t} else {\n\t\treturn list;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/subtiddlerfields.js": {
"title": "$:/core/modules/filters/subtiddlerfields.js",
"text": "/*\\\ntitle: $:/core/modules/filters/subtiddlerfields.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the fields on the selected subtiddlers of the plugin named in the operand\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.subtiddlerfields = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar subtiddler = options.wiki.getSubTiddler(operator.operand,title);\n\t\tif(subtiddler) {\n\t\t\tfor(var fieldName in subtiddler.fields) {\n\t\t\t\t$tw.utils.pushTop(results,fieldName);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/suffix.js": {
"title": "$:/core/modules/filters/suffix.js",
"text": "/*\\\ntitle: $:/core/modules/filters/suffix.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title ends with a suffix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.suffix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(-operator.operand.length) !== operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title.substr(-operator.operand.length) === operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/tag.js": {
"title": "$:/core/modules/filters/tag.js",
"text": "/*\\\ntitle: $:/core/modules/filters/tag.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking for the presence of a tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tag = function(source,operator,options) {\n\tvar results = [],indexedResults;\n\tif((operator.suffix || \"\").toLowerCase() === \"strict\" && !operator.operand) {\n\t\t// New semantics:\n\t\t// Always return copy of input if operator.operand is missing\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t} else {\n\t\t// Old semantics:\n\t\tvar tiddlers;\n\t\tif(operator.prefix === \"!\") {\n\t\t\t// Returns a copy of the input if operator.operand is missing\n\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddlers.indexOf(title) === -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// Returns empty results if operator.operand is missing\n\t\t\tif(source.byTag) {\n\t\t\t\tindexedResults = source.byTag(operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\t\tsource(function(tiddler,title) {\n\t\t\t\t\tif(tiddlers.indexOf(title) !== -1) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tresults = options.wiki.sortByList(results,operator.operand);\n\t\t\t}\n\t\t}\t\t\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/tagging.js": {
"title": "$:/core/modules/filters/tagging.js",
"text": "/*\\\ntitle: $:/core/modules/filters/tagging.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all tiddlers that are tagged with the selected tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tagging = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t$tw.utils.pushTop(results,options.wiki.getTiddlersWithTag(title));\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/tags.js": {
"title": "$:/core/modules/filters/tags.js",
"text": "/*\\\ntitle: $:/core/modules/filters/tags.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all the tags of the selected tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tags = function(source,operator,options) {\n\tvar tags = {};\n\tsource(function(tiddler,title) {\n\t\tvar t, length;\n\t\tif(tiddler && tiddler.fields.tags) {\n\t\t\tfor(t=0, length=tiddler.fields.tags.length; t<length; t++) {\n\t\t\t\ttags[tiddler.fields.tags[t]] = true;\n\t\t\t}\n\t\t}\n\t});\n\treturn Object.keys(tags);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/then.js": {
"title": "$:/core/modules/filters/then.js",
"text": "/*\\\ntitle: $:/core/modules/filters/then.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing any titles with a constant\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.then = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(operator.operand);\n\t});\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/title.js": {
"title": "$:/core/modules/filters/title.js",
"text": "/*\\\ntitle: $:/core/modules/filters/title.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for comparing title fields for equality\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.title = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && tiddler.fields.title !== operator.operand) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tresults.push(operator.operand);\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/untagged.js": {
"title": "$:/core/modules/filters/untagged.js",
"text": "/*\\\ntitle: $:/core/modules/filters/untagged.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning all the selected tiddlers that are untagged\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.untagged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && $tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length > 0) {\n\t\t\t\t$tw.utils.pushTop(results,title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!tiddler || !tiddler.hasField(\"tags\") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) {\n\t\t\t\t$tw.utils.pushTop(results,title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/variables.js": {
"title": "$:/core/modules/filters/variables.js",
"text": "/*\\\ntitle: $:/core/modules/filters/variables.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the active variables\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.variables = function(source,operator,options) {\n\tvar names = [];\n\tfor(var variable in options.widget.variables) {\n\t\tnames.push(variable);\n\t}\n\treturn names.sort();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/wikiparserrules.js": {
"title": "$:/core/modules/filters/wikiparserrules.js",
"text": "/*\\\ntitle: $:/core/modules/filters/wikiparserrules.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the wiki parser rules in this wiki\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.wikiparserrules = function(source,operator,options) {\n\tvar results = [],\n\t\toperand = operator.operand;\n\t$tw.utils.each($tw.modules.types.wikirule,function(mod) {\n\t\tvar exp = mod.exports;\n\t\tif(!operand || exp.types[operand]) {\n\t\t\tresults.push(exp.name);\n\t\t}\n\t});\n\tresults.sort();\n\treturn results;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters/x-listops.js": {
"title": "$:/core/modules/filters/x-listops.js",
"text": "/*\\\ntitle: $:/core/modules/filters/x-listops.js\ntype: application/javascript\nmodule-type: filteroperator\n\nExtended filter operators to manipulate the current list.\n\n\\*/\n(function () {\n\n /*jslint node: true, browser: true */\n /*global $tw: false */\n \"use strict\";\n\n /*\n Fetch titles from the current list\n */\n var prepare_results = function (source) {\n var results = [];\n source(function (tiddler, title) {\n results.push(title);\n });\n return results;\n };\n\n /*\n Moves a number of items from the tail of the current list before the item named in the operand\n */\n exports.putbefore = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1);\n return (index === -1) ?\n results.slice(0, -1) :\n results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count));\n };\n\n /*\n Moves a number of items from the tail of the current list after the item named in the operand\n */\n exports.putafter = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1);\n return (index === -1) ?\n results.slice(0, -1) :\n results.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n };\n\n /*\n Replaces the item named in the operand with a number of items from the tail of the current list\n */\n exports.replace = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1);\n return (index === -1) ?\n results.slice(0, -count) :\n results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n };\n\n /*\n Moves a number of items from the tail of the current list to the head of the list\n */\n exports.putfirst = function (source, operator) {\n var results = prepare_results(source),\n count = $tw.utils.getInt(operator.suffix,1);\n return results.slice(-count).concat(results.slice(0, -count));\n };\n\n /*\n Moves a number of items from the head of the current list to the tail of the list\n */\n exports.putlast = function (source, operator) {\n var results = prepare_results(source),\n count = $tw.utils.getInt(operator.suffix,1);\n return results.slice(count).concat(results.slice(0, count));\n };\n\n /*\n Moves the item named in the operand a number of places forward or backward in the list\n */\n exports.move = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand),\n count = $tw.utils.getInt(operator.suffix,1),\n marker = results.splice(index, 1),\n offset = (index + count) > 0 ? index + count : 0;\n return results.slice(0, offset).concat(marker).concat(results.slice(offset));\n };\n\n /*\n Returns the items from the current list that are after the item named in the operand\n */\n exports.allafter = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand);\n return (index === -1) ? [] :\n (operator.suffix) ? results.slice(index) :\n results.slice(index + 1);\n };\n\n /*\n Returns the items from the current list that are before the item named in the operand\n */\n exports.allbefore = function (source, operator) {\n var results = prepare_results(source),\n index = results.indexOf(operator.operand);\n return (index === -1) ? [] :\n (operator.suffix) ? results.slice(0, index + 1) :\n results.slice(0, index);\n };\n\n /*\n Appends the items listed in the operand array to the tail of the current list\n */\n exports.append = function (source, operator) {\n var append = $tw.utils.parseStringArray(operator.operand, \"true\"),\n results = prepare_results(source),\n count = parseInt(operator.suffix) || append.length;\n return (append.length === 0) ? results :\n (operator.prefix) ? results.concat(append.slice(-count)) :\n results.concat(append.slice(0, count));\n };\n\n /*\n Prepends the items listed in the operand array to the head of the current list\n */\n exports.prepend = function (source, operator) {\n var prepend = $tw.utils.parseStringArray(operator.operand, \"true\"),\n results = prepare_results(source),\n count = $tw.utils.getInt(operator.suffix,prepend.length);\n return (prepend.length === 0) ? results :\n (operator.prefix) ? prepend.slice(-count).concat(results) :\n prepend.slice(0, count).concat(results);\n };\n\n /*\n Returns all items from the current list except the items listed in the operand array\n */\n exports.remove = function (source, operator) {\n var array = $tw.utils.parseStringArray(operator.operand, \"true\"),\n results = prepare_results(source),\n count = parseInt(operator.suffix) || array.length,\n p,\n len,\n index;\n len = array.length - 1;\n for (p = 0; p < count; ++p) {\n if (operator.prefix) {\n index = results.indexOf(array[len - p]);\n } else {\n index = results.indexOf(array[p]);\n }\n if (index !== -1) {\n results.splice(index, 1);\n }\n }\n return results;\n };\n\n /*\n Returns all items from the current list sorted in the order of the items in the operand array\n */\n exports.sortby = function (source, operator) {\n var results = prepare_results(source);\n if (!results || results.length < 2) {\n return results;\n }\n var lookup = $tw.utils.parseStringArray(operator.operand, \"true\");\n results.sort(function (a, b) {\n return lookup.indexOf(a) - lookup.indexOf(b);\n });\n return results;\n };\n\n /*\n Removes all duplicate items from the current list\n */\n exports.unique = function (source, operator) {\n var results = prepare_results(source);\n var set = results.reduce(function (a, b) {\n if (a.indexOf(b) < 0) {\n a.push(b);\n }\n return a;\n }, []);\n return set;\n };\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
},
"$:/core/modules/filters.js": {
"title": "$:/core/modules/filters.js",
"text": "/*\\\ntitle: $:/core/modules/filters.js\ntype: application/javascript\nmodule-type: wikimethod\n\nAdds tiddler filtering methods to the $tw.Wiki object.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nParses an operation (i.e. a run) within a filter string\n\toperators: Array of array of operator nodes into which results should be inserted\n\tfilterString: filter string\n\tp: start position within the string\nReturns the new start position, after the parsed operation\n*/\nfunction parseFilterOperation(operators,filterString,p) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \"[\") {\n\t\tthrow \"Missing [ in filter expression\";\n\t}\n\t// Process each operator in turn\n\tdo {\n\t\toperator = {};\n\t\t// Check for an operator prefix\n\t\tif(filterString.charAt(p) === \"!\") {\n\t\t\toperator.prefix = filterString.charAt(p++);\n\t\t}\n\t\t// Get the operator name\n\t\tnextBracketPos = filterString.substring(p).search(/[\\[\\{<\\/]/);\n\t\tif(nextBracketPos === -1) {\n\t\t\tthrow \"Missing [ in filter expression\";\n\t\t}\n\t\tnextBracketPos += p;\n\t\tvar bracket = filterString.charAt(nextBracketPos);\n\t\toperator.operator = filterString.substring(p,nextBracketPos);\n\t\t// Any suffix?\n\t\tvar colon = operator.operator.indexOf(':');\n\t\tif(colon > -1) {\n\t\t\t// The raw suffix for older filters\n\t\t\toperator.suffix = operator.operator.substring(colon + 1);\n\t\t\toperator.operator = operator.operator.substring(0,colon) || \"field\";\n\t\t\t// The processed suffix for newer filters\n\t\t\toperator.suffixes = [];\n\t\t\t$tw.utils.each(operator.suffix.split(\":\"),function(subsuffix) {\n\t\t\t\toperator.suffixes.push([]);\n\t\t\t\t$tw.utils.each(subsuffix.split(\",\"),function(entry) {\n\t\t\t\t\tentry = $tw.utils.trim(entry);\n\t\t\t\t\tif(entry) {\n\t\t\t\t\t\toperator.suffixes[operator.suffixes.length - 1].push(entry); \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t\t// Empty operator means: title\n\t\telse if(operator.operator === \"\") {\n\t\t\toperator.operator = \"title\";\n\t\t}\n\n\t\tp = nextBracketPos + 1;\n\t\tswitch (bracket) {\n\t\t\tcase \"{\": // Curly brackets\n\t\t\t\toperator.indirect = true;\n\t\t\t\tnextBracketPos = filterString.indexOf(\"}\",p);\n\t\t\t\tbreak;\n\t\t\tcase \"[\": // Square brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\"]\",p);\n\t\t\t\tbreak;\n\t\t\tcase \"<\": // Angle brackets\n\t\t\t\toperator.variable = true;\n\t\t\t\tnextBracketPos = filterString.indexOf(\">\",p);\n\t\t\t\tbreak;\n\t\t\tcase \"/\": // regexp brackets\n\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\tif(rexMatch) {\n\t\t\t\t\toperator.regexp = new RegExp(rexMatch[1], rexMatch[2]);\n// DEPRECATION WARNING\nconsole.log(\"WARNING: Filter\",operator.operator,\"has a deprecated regexp operand\",operator.regexp);\n\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthrow \"Unterminated regular expression in filter expression\";\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\tthrow \"Missing closing bracket in filter expression\";\n\t\t}\n\t\tif(!operator.regexp) {\n\t\t\toperator.operand = filterString.substring(p,nextBracketPos);\n\t\t}\n\t\tp = nextBracketPos + 1;\n\n\t\t// Push this operator\n\t\toperators.push(operator);\n\t} while(filterString.charAt(p) !== \"]\");\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \"]\") {\n\t\tthrow \"Missing ] in filter expression\";\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\n/*\nParse a filter string\n*/\nexports.parseFilter = function(filterString) {\n\tfilterString = filterString || \"\";\n\tvar results = [], // Array of arrays of operator nodes {operator:,operand:}\n\t\tp = 0, // Current position in the filter string\n\t\tmatch;\n\tvar whitespaceRegExp = /(\\s+)/mg,\n\t\toperandRegExp = /((?:\\+|\\-|~|=)?)(?:(\\[)|(?:\"([^\"]*)\")|(?:'([^']*)')|([^\\s\\[\\]]+))/mg;\n\twhile(p < filterString.length) {\n\t\t// Skip any whitespace\n\t\twhitespaceRegExp.lastIndex = p;\n\t\tmatch = whitespaceRegExp.exec(filterString);\n\t\tif(match && match.index === p) {\n\t\t\tp = p + match[0].length;\n\t\t}\n\t\t// Match the start of the operation\n\t\tif(p < filterString.length) {\n\t\t\toperandRegExp.lastIndex = p;\n\t\t\tmatch = operandRegExp.exec(filterString);\n\t\t\tif(!match || match.index !== p) {\n\t\t\t\tthrow $tw.language.getString(\"Error/FilterSyntax\");\n\t\t\t}\n\t\t\tvar operation = {\n\t\t\t\tprefix: \"\",\n\t\t\t\toperators: []\n\t\t\t};\n\t\t\tif(match[1]) {\n\t\t\t\toperation.prefix = match[1];\n\t\t\t\tp++;\n\t\t\t}\n\t\t\tif(match[2]) { // Opening square bracket\n\t\t\t\tp = parseFilterOperation(operation.operators,filterString,p);\n\t\t\t} else {\n\t\t\t\tp = match.index + match[0].length;\n\t\t\t}\n\t\t\tif(match[3] || match[4] || match[5]) { // Double quoted string, single quoted string or unquoted title\n\t\t\t\toperation.operators.push(\n\t\t\t\t\t{operator: \"title\", operand: match[3] || match[4] || match[5]}\n\t\t\t\t);\n\t\t\t}\n\t\t\tresults.push(operation);\n\t\t}\n\t}\n\treturn results;\n};\n\nexports.getFilterOperators = function() {\n\tif(!this.filterOperators) {\n\t\t$tw.Wiki.prototype.filterOperators = {};\n\t\t$tw.modules.applyMethods(\"filteroperator\",this.filterOperators);\n\t}\n\treturn this.filterOperators;\n};\n\nexports.filterTiddlers = function(filterString,widget,source) {\n\tvar fn = this.compileFilter(filterString);\n\treturn fn.call(this,source,widget);\n};\n\n/*\nCompile a filter into a function with the signature fn(source,widget) where:\nsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\nwidget: an optional widget node for retrieving the current tiddler etc.\n*/\nexports.compileFilter = function(filterString) {\n\tvar filterParseTree;\n\ttry {\n\t\tfilterParseTree = this.parseFilter(filterString);\n\t} catch(e) {\n\t\treturn function(source,widget) {\n\t\t\treturn [$tw.language.getString(\"Error/Filter\") + \": \" + e];\n\t\t};\n\t}\n\t// Get the hashmap of filter operator functions\n\tvar filterOperators = this.getFilterOperators();\n\t// Assemble array of functions, one for each operation\n\tvar operationFunctions = [];\n\t// Step through the operations\n\tvar self = this;\n\t$tw.utils.each(filterParseTree,function(operation) {\n\t\t// Create a function for the chain of operators in the operation\n\t\tvar operationSubFunction = function(source,widget) {\n\t\t\tvar accumulator = source,\n\t\t\t\tresults = [],\n\t\t\t\tcurrTiddlerTitle = widget && widget.getVariable(\"currentTiddler\");\n\t\t\t$tw.utils.each(operation.operators,function(operator) {\n\t\t\t\tvar operand = operator.operand,\n\t\t\t\t\toperatorFunction;\n\t\t\t\tif(!operator.operator) {\n\t\t\t\t\toperatorFunction = filterOperators.title;\n\t\t\t\t} else if(!filterOperators[operator.operator]) {\n\t\t\t\t\toperatorFunction = filterOperators.field;\n\t\t\t\t} else {\n\t\t\t\t\toperatorFunction = filterOperators[operator.operator];\n\t\t\t\t}\n\t\t\t\tif(operator.indirect) {\n\t\t\t\t\toperand = self.getTextReference(operator.operand,\"\",currTiddlerTitle);\n\t\t\t\t}\n\t\t\t\tif(operator.variable) {\n\t\t\t\t\toperand = widget.getVariable(operator.operand,{defaultValue: \"\"});\n\t\t\t\t}\n\t\t\t\t// Invoke the appropriate filteroperator module\n\t\t\t\tresults = operatorFunction(accumulator,{\n\t\t\t\t\t\t\toperator: operator.operator,\n\t\t\t\t\t\t\toperand: operand,\n\t\t\t\t\t\t\tprefix: operator.prefix,\n\t\t\t\t\t\t\tsuffix: operator.suffix,\n\t\t\t\t\t\t\tsuffixes: operator.suffixes,\n\t\t\t\t\t\t\tregexp: operator.regexp\n\t\t\t\t\t\t},{\n\t\t\t\t\t\t\twiki: self,\n\t\t\t\t\t\t\twidget: widget\n\t\t\t\t\t\t});\n\t\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\t\taccumulator = self.makeTiddlerIterator(results);\n\t\t\t\t} else {\n\t\t\t\t\taccumulator = results;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\treturn results;\n\t\t\t} else {\n\t\t\t\tvar resultArray = [];\n\t\t\t\tresults(function(tiddler,title) {\n\t\t\t\t\tresultArray.push(title);\n\t\t\t\t});\n\t\t\t\treturn resultArray;\n\t\t\t}\n\t\t};\n\t\t// Wrap the operator functions in a wrapper function that depends on the prefix\n\t\toperationFunctions.push((function() {\n\t\t\tswitch(operation.prefix || \"\") {\n\t\t\t\tcase \"\": // No prefix means that the operation is unioned into the result\n\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t$tw.utils.pushTop(results,operationSubFunction(source,widget));\n\t\t\t\t\t};\n\t\t\t\tcase \"=\": // The results of the operation are pushed into the result without deduplication\n\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\tArray.prototype.push.apply(results,operationSubFunction(source,widget));\n\t\t\t\t\t};\n\t\t\t\tcase \"-\": // The results of this operation are removed from the main result\n\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t$tw.utils.removeArrayEntries(results,operationSubFunction(source,widget));\n\t\t\t\t\t};\n\t\t\t\tcase \"+\": // This operation is applied to the main results so far\n\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t// This replaces all the elements of the array, but keeps the actual array so that references to it are preserved\n\t\t\t\t\t\tsource = self.makeTiddlerIterator(results);\n\t\t\t\t\t\tresults.splice(0,results.length);\n\t\t\t\t\t\t$tw.utils.pushTop(results,operationSubFunction(source,widget));\n\t\t\t\t\t};\n\t\t\t\tcase \"~\": // This operation is unioned into the result only if the main result so far is empty\n\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\tif(results.length === 0) {\n\t\t\t\t\t\t\t// Main result so far is empty\n\t\t\t\t\t\t\t$tw.utils.pushTop(results,operationSubFunction(source,widget));\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t}\n\t\t})());\n\t});\n\t// Return a function that applies the operations to a source iterator of tiddler titles\n\treturn $tw.perf.measure(\"filter: \" + filterString,function filterFunction(source,widget) {\n\t\tif(!source) {\n\t\t\tsource = self.each;\n\t\t} else if(typeof source === \"object\") { // Array or hashmap\n\t\t\tsource = self.makeTiddlerIterator(source);\n\t\t}\n\t\tvar results = [];\n\t\t$tw.utils.each(operationFunctions,function(operationFunction) {\n\t\t\toperationFunction(results,source,widget);\n\t\t});\n\t\treturn results;\n\t});\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikimethod"
},
"$:/core/modules/indexers/field-indexer.js": {
"title": "$:/core/modules/indexers/field-indexer.js",
"text": "/*\\\ntitle: $:/core/modules/indexers/field-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each field value\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\nvar DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH = 128;\n\nfunction FieldIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nFieldIndexer.prototype.init = function() {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH;\n\tthis.addIndexMethods();\n}\n\n// Provided for testing\nFieldIndexer.prototype.setMaxIndexedValueLength = function(length) {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = length;\n};\n\nFieldIndexer.prototype.addIndexMethods = function() {\n\tvar self = this;\n\tthis.wiki.each.byField = function(name,value) {\n\t\tvar titles = self.wiki.allTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup && lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachShadow.byField = function(name,value) {\n\t\tvar titles = self.wiki.allShadowTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup && lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachTiddlerPlusShadows.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n\tthis.wiki.eachShadowPlusTiddlers.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n};\n\n/*\nTear down and then rebuild the index as if all tiddlers have changed\n*/\nFieldIndexer.prototype.rebuild = function() {\n\t// Invalidate the index so that it will be rebuilt when it is next used\n\tthis.index = null;\n};\n\n/*\nBuild the index for a particular field\n*/\nFieldIndexer.prototype.buildIndexForField = function(name) {\n\tvar self = this;\n\t// Hashmap by field name of hashmap by field value of array of tiddler titles\n\tthis.index = this.index || Object.create(null);\n\tthis.index[name] = Object.create(null);\n\tvar baseIndex = this.index[name];\n\t// Update the index for each tiddler\n\tthis.wiki.eachTiddlerPlusShadows(function(tiddler,title) {\n\t\tif(name in tiddler.fields) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\t// Skip any values above the maximum length\n\t\t\tif(value.length < self.maxIndexedValueLength) {\n\t\t\t\tbaseIndex[value] = baseIndex[value] || [];\n\t\t\t\tbaseIndex[value].push(title);\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nUpdate the index in the light of a tiddler value changing; note that the title must be identical. (Renames are handled as a separate delete and create)\nupdateDescriptor: {old: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>},new: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>}}\n*/\nFieldIndexer.prototype.update = function(updateDescriptor) {\n\tvar self = this;\n\t// Don't do anything if the index hasn't been built yet\n\tif(this.index === null) {\n\t\treturn;\n\t}\n\t// Remove the old tiddler from the index\n\tif(updateDescriptor.old.tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor.old.tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor.old.tiddler.getFieldString(name),\n\t\t\t\t\ttiddlerList = indexEntry[value];\n\t\t\t\tif(tiddlerList) {\n\t\t\t\t\tvar index = tiddlerList.indexOf(updateDescriptor.old.tiddler.fields.title);\n\t\t\t\t\tif(index !== -1) {\n\t\t\t\t\t\ttiddlerList.splice(index,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t// Add the new tiddler to the index\n\tif(updateDescriptor[\"new\"].tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor[\"new\"].tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor[\"new\"].tiddler.getFieldString(name);\n\t\t\t\tif(value.length < self.maxIndexedValueLength) {\n\t\t\t\t\tindexEntry[value] = indexEntry[value] || [];\n\t\t\t\t\tindexEntry[value].push(updateDescriptor[\"new\"].tiddler.fields.title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}\n};\n\n// Lookup the given field returning a list of tiddler titles\nFieldIndexer.prototype.lookup = function(name,value) {\n\t// Fail the lookup if the value is too long\n\tif(value.length >= this.maxIndexedValueLength) {\n\t\treturn null;\n\t}\n\t// Update the index if it has yet to be built\n\tif(this.index === null || !this.index[name]) {\n\t\tthis.buildIndexForField(name);\n\t}\n\treturn this.index[name][value] || [];\n};\n\nexports.FieldIndexer = FieldIndexer;\n\n})();\n",
"type": "application/javascript",
"module-type": "indexer"
},
"$:/core/modules/indexers/tag-indexer.js": {
"title": "$:/core/modules/indexers/tag-indexer.js",
"text": "/*\\\ntitle: $:/core/modules/indexers/tag-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\nfunction TagIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nTagIndexer.prototype.init = function() {\n\tthis.subIndexers = [\n\t\tnew TagSubIndexer(this,\"each\"),\n\t\tnew TagSubIndexer(this,\"eachShadow\"),\n\t\tnew TagSubIndexer(this,\"eachTiddlerPlusShadows\"),\n\t\tnew TagSubIndexer(this,\"eachShadowPlusTiddlers\")\n\t];\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.addIndexMethod();\n\t});\n};\n\nTagIndexer.prototype.rebuild = function() {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.rebuild();\n\t});\n};\n\nTagIndexer.prototype.update = function(updateDescriptor) {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.update(updateDescriptor);\n\t});\n};\n\nfunction TagSubIndexer(indexer,iteratorMethod) {\n\tthis.indexer = indexer;\n\tthis.iteratorMethod = iteratorMethod;\n\tthis.index = null; // Hashmap of tag title to {isSorted: bool, titles: [array]} or null if not yet initialised\n}\n\nTagSubIndexer.prototype.addIndexMethod = function() {\n\tvar self = this;\n\tthis.indexer.wiki[this.iteratorMethod].byTag = function(tag) {\n\t\treturn self.lookup(tag).slice(0);\n\t};\n};\n\nTagSubIndexer.prototype.rebuild = function() {\n\tvar self = this;\n\t// Hashmap by tag of array of {isSorted:, titles:[]}\n\tthis.index = Object.create(null);\n\t// Add all the tags\n\tthis.indexer.wiki[this.iteratorMethod](function(tiddler,title) {\n\t\t$tw.utils.each(tiddler.fields.tags,function(tag) {\n\t\t\tif(!self.index[tag]) {\n\t\t\t\tself.index[tag] = {isSorted: false, titles: [title]};\n\t\t\t} else {\n\t\t\t\tself.index[tag].titles.push(title);\n\t\t\t}\n\t\t});\t\t\n\t});\n};\n\nTagSubIndexer.prototype.update = function(updateDescriptor) {\n\tthis.index = null;\n};\n\nTagSubIndexer.prototype.lookup = function(tag) {\n\t// Update the index if it has yet to be built\n\tif(this.index === null) {\n\t\tthis.rebuild();\n\t}\n\tvar indexRecord = this.index[tag];\n\tif(indexRecord) {\n\t\tif(!indexRecord.isSorted) {\n\t\t\tif(this.indexer.wiki.sortByList) {\n\t\t\t\tindexRecord.titles = this.indexer.wiki.sortByList(indexRecord.titles,tag);\n\t\t\t}\t\t\t\n\t\t\tindexRecord.isSorted = true;\n\t\t}\n\t\treturn indexRecord.titles;\n\t} else {\n\t\treturn [];\n\t}\n};\n\n\nexports.TagIndexer = TagIndexer;\n\n})();\n",
"type": "application/javascript",
"module-type": "indexer"
},
"$:/core/modules/info/platform.js": {
"title": "$:/core/modules/info/platform.js",
"text": "/*\\\ntitle: $:/core/modules/info/platform.js\ntype: application/javascript\nmodule-type: info\n\nInitialise basic platform $:/info/ tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.getInfoTiddlerFields = function() {\n\tvar mapBoolean = function(value) {return value ? \"yes\" : \"no\";},\n\t\tinfoTiddlerFields = [];\n\t// Basics\n\tinfoTiddlerFields.push({title: \"$:/info/browser\", text: mapBoolean(!!$tw.browser)});\n\tinfoTiddlerFields.push({title: \"$:/info/node\", text: mapBoolean(!!$tw.node)});\n\tif($tw.browser) {\n\t\t// Document location\n\t\tvar setLocationProperty = function(name,value) {\n\t\t\t\tinfoTiddlerFields.push({title: \"$:/info/url/\" + name, text: value});\t\t\t\n\t\t\t},\n\t\t\tlocation = document.location;\n\t\tsetLocationProperty(\"full\", (location.toString()).split(\"#\")[0]);\n\t\tsetLocationProperty(\"host\", location.host);\n\t\tsetLocationProperty(\"hostname\", location.hostname);\n\t\tsetLocationProperty(\"protocol\", location.protocol);\n\t\tsetLocationProperty(\"port\", location.port);\n\t\tsetLocationProperty(\"pathname\", location.pathname);\n\t\tsetLocationProperty(\"search\", location.search);\n\t\tsetLocationProperty(\"origin\", location.origin);\n\t\t// Screen size\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/screen/width\", text: window.screen.width.toString()});\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/screen/height\", text: window.screen.height.toString()});\n\t\t// Language\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/language\", text: navigator.language || \"\"});\n\t}\n\treturn infoTiddlerFields;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "info"
},
"$:/core/modules/keyboard.js": {
"title": "$:/core/modules/keyboard.js",
"text": "/*\\\ntitle: $:/core/modules/keyboard.js\ntype: application/javascript\nmodule-type: global\n\nKeyboard handling utilities\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar namedKeys = {\n\t\"cancel\": 3,\n\t\"help\": 6,\n\t\"backspace\": 8,\n\t\"tab\": 9,\n\t\"clear\": 12,\n\t\"return\": 13,\n\t\"enter\": 13,\n\t\"pause\": 19,\n\t\"escape\": 27,\n\t\"space\": 32,\n\t\"page_up\": 33,\n\t\"page_down\": 34,\n\t\"end\": 35,\n\t\"home\": 36,\n\t\"left\": 37,\n\t\"up\": 38,\n\t\"right\": 39,\n\t\"down\": 40,\n\t\"printscreen\": 44,\n\t\"insert\": 45,\n\t\"delete\": 46,\n\t\"0\": 48,\n\t\"1\": 49,\n\t\"2\": 50,\n\t\"3\": 51,\n\t\"4\": 52,\n\t\"5\": 53,\n\t\"6\": 54,\n\t\"7\": 55,\n\t\"8\": 56,\n\t\"9\": 57,\n\t\"firefoxsemicolon\": 59,\n\t\"firefoxequals\": 61,\n\t\"a\": 65,\n\t\"b\": 66,\n\t\"c\": 67,\n\t\"d\": 68,\n\t\"e\": 69,\n\t\"f\": 70,\n\t\"g\": 71,\n\t\"h\": 72,\n\t\"i\": 73,\n\t\"j\": 74,\n\t\"k\": 75,\n\t\"l\": 76,\n\t\"m\": 77,\n\t\"n\": 78,\n\t\"o\": 79,\n\t\"p\": 80,\n\t\"q\": 81,\n\t\"r\": 82,\n\t\"s\": 83,\n\t\"t\": 84,\n\t\"u\": 85,\n\t\"v\": 86,\n\t\"w\": 87,\n\t\"x\": 88,\n\t\"y\": 89,\n\t\"z\": 90,\n\t\"numpad0\": 96,\n\t\"numpad1\": 97,\n\t\"numpad2\": 98,\n\t\"numpad3\": 99,\n\t\"numpad4\": 100,\n\t\"numpad5\": 101,\n\t\"numpad6\": 102,\n\t\"numpad7\": 103,\n\t\"numpad8\": 104,\n\t\"numpad9\": 105,\n\t\"multiply\": 106,\n\t\"add\": 107,\n\t\"separator\": 108,\n\t\"subtract\": 109,\n\t\"decimal\": 110,\n\t\"divide\": 111,\n\t\"f1\": 112,\n\t\"f2\": 113,\n\t\"f3\": 114,\n\t\"f4\": 115,\n\t\"f5\": 116,\n\t\"f6\": 117,\n\t\"f7\": 118,\n\t\"f8\": 119,\n\t\"f9\": 120,\n\t\"f10\": 121,\n\t\"f11\": 122,\n\t\"f12\": 123,\n\t\"f13\": 124,\n\t\"f14\": 125,\n\t\"f15\": 126,\n\t\"f16\": 127,\n\t\"f17\": 128,\n\t\"f18\": 129,\n\t\"f19\": 130,\n\t\"f20\": 131,\n\t\"f21\": 132,\n\t\"f22\": 133,\n\t\"f23\": 134,\n\t\"f24\": 135,\n\t\"firefoxminus\": 173,\n\t\"semicolon\": 186,\n\t\"equals\": 187,\n\t\"comma\": 188,\n\t\"dash\": 189,\n\t\"period\": 190,\n\t\"slash\": 191,\n\t\"backquote\": 192,\n\t\"openbracket\": 219,\n\t\"backslash\": 220,\n\t\"closebracket\": 221,\n\t\"quote\": 222\n};\n\nfunction KeyboardManager(options) {\n\tvar self = this;\n\toptions = options || \"\";\n\t// Save the named key hashmap\n\tthis.namedKeys = namedKeys;\n\t// Create a reverse mapping of code to keyname\n\tthis.keyNames = [];\n\t$tw.utils.each(namedKeys,function(keyCode,name) {\n\t\tself.keyNames[keyCode] = name.substr(0,1).toUpperCase() + name.substr(1);\n\t});\n\t// Save the platform-specific name of the \"meta\" key\n\tthis.metaKeyName = $tw.platform.isMac ? \"cmd-\" : \"win-\";\n\tthis.shortcutKeysList = [], // Stores the shortcut-key descriptors\n\tthis.shortcutActionList = [], // Stores the corresponding action strings\n\tthis.shortcutParsedList = []; // Stores the parsed key descriptors\n\tthis.lookupNames = [\"shortcuts\"];\n\tthis.lookupNames.push($tw.platform.isMac ? \"shortcuts-mac\" : \"shortcuts-not-mac\")\n\tthis.lookupNames.push($tw.platform.isWindows ? \"shortcuts-windows\" : \"shortcuts-not-windows\");\n\tthis.lookupNames.push($tw.platform.isLinux ? \"shortcuts-linux\" : \"shortcuts-not-linux\");\n\tthis.updateShortcutLists(this.getShortcutTiddlerList());\n\t$tw.wiki.addEventListener(\"change\",function(changes) {\n\t\tself.handleShortcutChanges(changes);\n\t});\n}\n\n/*\nReturn an array of keycodes for the modifier keys ctrl, shift, alt, meta\n*/\nKeyboardManager.prototype.getModifierKeys = function() {\n\treturn [\n\t\t16, // Shift\n\t\t17, // Ctrl\n\t\t18, // Alt\n\t\t20, // CAPS LOCK\n\t\t91, // Meta (left)\n\t\t93, // Meta (right)\n\t\t224 // Meta (Firefox)\n\t]\n};\n\n/*\nParses a key descriptor into the structure:\n{\n\tkeyCode: numeric keycode\n\tshiftKey: boolean\n\taltKey: boolean\n\tctrlKey: boolean\n\tmetaKey: boolean\n}\nKey descriptors have the following format:\n\tctrl+enter\n\tctrl+shift+alt+A\n*/\nKeyboardManager.prototype.parseKeyDescriptor = function(keyDescriptor) {\n\tvar components = keyDescriptor.split(/\\+|\\-/),\n\t\tinfo = {\n\t\t\tkeyCode: 0,\n\t\t\tshiftKey: false,\n\t\t\taltKey: false,\n\t\t\tctrlKey: false,\n\t\t\tmetaKey: false\n\t\t};\n\tfor(var t=0; t<components.length; t++) {\n\t\tvar s = components[t].toLowerCase(),\n\t\t\tc = s.charCodeAt(0);\n\t\t// Look for modifier keys\n\t\tif(s === \"ctrl\") {\n\t\t\tinfo.ctrlKey = true;\n\t\t} else if(s === \"shift\") {\n\t\t\tinfo.shiftKey = true;\n\t\t} else if(s === \"alt\") {\n\t\t\tinfo.altKey = true;\n\t\t} else if(s === \"meta\" || s === \"cmd\" || s === \"win\") {\n\t\t\tinfo.metaKey = true;\n\t\t}\n\t\t// Replace named keys with their code\n\t\tif(this.namedKeys[s]) {\n\t\t\tinfo.keyCode = this.namedKeys[s];\n\t\t}\n\t}\n\tif(info.keyCode) {\n\t\treturn info;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nParse a list of key descriptors into an array of keyInfo objects. The key descriptors can be passed as an array of strings or a space separated string\n*/\nKeyboardManager.prototype.parseKeyDescriptors = function(keyDescriptors,options) {\n\tvar self = this;\n\toptions = options || {};\n\toptions.stack = options.stack || [];\n\tvar wiki = options.wiki || $tw.wiki;\n\tif(typeof keyDescriptors === \"string\" && keyDescriptors === \"\") {\n\t\treturn [];\n\t}\n\tif(!$tw.utils.isArray(keyDescriptors)) {\n\t\tkeyDescriptors = keyDescriptors.split(\" \");\n\t}\n\tvar result = [];\n\t$tw.utils.each(keyDescriptors,function(keyDescriptor) {\n\t\t// Look for a named shortcut\n\t\tif(keyDescriptor.substr(0,2) === \"((\" && keyDescriptor.substr(-2,2) === \"))\") {\n\t\t\tif(options.stack.indexOf(keyDescriptor) === -1) {\n\t\t\t\toptions.stack.push(keyDescriptor);\n\t\t\t\tvar name = keyDescriptor.substring(2,keyDescriptor.length - 2),\n\t\t\t\t\tlookupName = function(configName) {\n\t\t\t\t\t\tvar keyDescriptors = wiki.getTiddlerText(\"$:/config/\" + configName + \"/\" + name);\n\t\t\t\t\t\tif(keyDescriptors) {\n\t\t\t\t\t\t\tresult.push.apply(result,self.parseKeyDescriptors(keyDescriptors,options));\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t$tw.utils.each(self.lookupNames,function(platformDescriptor) {\n\t\t\t\t\tlookupName(platformDescriptor);\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tresult.push(self.parseKeyDescriptor(keyDescriptor));\n\t\t}\n\t});\n\treturn result;\n};\n\nKeyboardManager.prototype.getPrintableShortcuts = function(keyInfoArray) {\n\tvar self = this,\n\t\tresult = [];\n\t$tw.utils.each(keyInfoArray,function(keyInfo) {\n\t\tif(keyInfo) {\n\t\t\tresult.push((keyInfo.ctrlKey ? \"ctrl-\" : \"\") + \n\t\t\t\t (keyInfo.shiftKey ? \"shift-\" : \"\") + \n\t\t\t\t (keyInfo.altKey ? \"alt-\" : \"\") + \n\t\t\t\t (keyInfo.metaKey ? self.metaKeyName : \"\") + \n\t\t\t\t (self.keyNames[keyInfo.keyCode]));\n\t\t}\n\t});\n\treturn result;\n}\n\nKeyboardManager.prototype.checkKeyDescriptor = function(event,keyInfo) {\n\treturn keyInfo &&\n\t\t\tevent.keyCode === keyInfo.keyCode && \n\t\t\tevent.shiftKey === keyInfo.shiftKey && \n\t\t\tevent.altKey === keyInfo.altKey && \n\t\t\tevent.ctrlKey === keyInfo.ctrlKey && \n\t\t\tevent.metaKey === keyInfo.metaKey;\n};\n\nKeyboardManager.prototype.checkKeyDescriptors = function(event,keyInfoArray) {\n\tfor(var t=0; t<keyInfoArray.length; t++) {\n\t\tif(this.checkKeyDescriptor(event,keyInfoArray[t])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\nKeyboardManager.prototype.getShortcutTiddlerList = function() {\n\treturn $tw.wiki.getTiddlersWithTag(\"$:/tags/KeyboardShortcut\");\n};\n\nKeyboardManager.prototype.updateShortcutLists = function(tiddlerList) {\n\tthis.shortcutTiddlers = tiddlerList;\n\tfor(var i=0; i<tiddlerList.length; i++) {\n\t\tvar title = tiddlerList[i],\n\t\t\ttiddlerFields = $tw.wiki.getTiddler(title).fields;\n\t\tthis.shortcutKeysList[i] = tiddlerFields.key !== undefined ? tiddlerFields.key : undefined;\n\t\tthis.shortcutActionList[i] = tiddlerFields.text;\n\t\tthis.shortcutParsedList[i] = this.shortcutKeysList[i] !== undefined ? this.parseKeyDescriptors(this.shortcutKeysList[i]) : undefined;\n\t}\n};\n\nKeyboardManager.prototype.handleKeydownEvent = function(event) {\n\tvar key, action;\n\tfor(var i=0; i<this.shortcutTiddlers.length; i++) {\n\t\tif(this.shortcutParsedList[i] !== undefined && this.checkKeyDescriptors(event,this.shortcutParsedList[i])) {\n\t\t\tkey = this.shortcutParsedList[i];\n\t\t\taction = this.shortcutActionList[i];\n\t\t}\n\t}\n\tif(key !== undefined) {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\t$tw.rootWidget.invokeActionString(action,$tw.rootWidget);\n\t\treturn true;\n\t}\n\treturn false;\n};\n\nKeyboardManager.prototype.detectNewShortcuts = function(changedTiddlers) {\n\tvar shortcutConfigTiddlers = [],\n\t\thandled = false;\n\t$tw.utils.each(this.lookupNames,function(platformDescriptor) {\n\t\tvar descriptorString = \"$:/config/\" + platformDescriptor + \"/\";\n\t\tObject.keys(changedTiddlers).forEach(function(configTiddler) {\n\t\t\tvar configString = configTiddler.substr(0, configTiddler.lastIndexOf(\"/\") + 1);\n\t\t\tif(configString === descriptorString) {\n\t\t\t\tshortcutConfigTiddlers.push(configTiddler);\n\t\t\t\thandled = true;\n\t\t\t}\n\t\t});\n\t});\n\tif(handled) {\n\t\treturn $tw.utils.hopArray(changedTiddlers,shortcutConfigTiddlers);\n\t} else {\n\t\treturn false;\n\t}\n};\n\nKeyboardManager.prototype.handleShortcutChanges = function(changedTiddlers) {\n\tvar newList = this.getShortcutTiddlerList();\n\tvar hasChanged = $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers) ? true :\n\t\t($tw.utils.hopArray(changedTiddlers,newList) ? true :\n\t\t(this.detectNewShortcuts(changedTiddlers))\n\t);\n\t// Re-cache shortcuts if something changed\n\tif(hasChanged) {\n\t\tthis.updateShortcutLists(newList);\n\t}\n};\n\nexports.KeyboardManager = KeyboardManager;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/language.js": {
"title": "$:/core/modules/language.js",
"text": "/*\\\ntitle: $:/core/modules/language.js\ntype: application/javascript\nmodule-type: global\n\nThe $tw.Language() manages translateable strings\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nCreate an instance of the language manager. Options include:\nwiki: wiki from which to retrieve translation tiddlers\n*/\nfunction Language(options) {\n\toptions = options || \"\";\n\tthis.wiki = options.wiki || $tw.wiki;\n}\n\n/*\nReturn a wikified translateable string. The title is automatically prefixed with \"$:/language/\"\nOptions include:\nvariables: optional hashmap of variables to supply to the language wikification\n*/\nLanguage.prototype.getString = function(title,options) {\n\toptions = options || {};\n\ttitle = \"$:/language/\" + title;\n\treturn this.wiki.renderTiddler(\"text/plain\",title,{variables: options.variables});\n};\n\n/*\nReturn a raw, unwikified translateable string. The title is automatically prefixed with \"$:/language/\"\n*/\nLanguage.prototype.getRawString = function(title) {\n\ttitle = \"$:/language/\" + title;\n\treturn this.wiki.getTiddlerText(title);\n};\n\nexports.Language = Language;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/macros/changecount.js": {
"title": "$:/core/modules/macros/changecount.js",
"text": "/*\\\ntitle: $:/core/modules/macros/changecount.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to return the changecount for the current tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"changecount\";\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn this.wiki.getChangeCount(this.getVariable(\"currentTiddler\")) + \"\";\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/contrastcolour.js": {
"title": "$:/core/modules/macros/contrastcolour.js",
"text": "/*\\\ntitle: $:/core/modules/macros/contrastcolour.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to choose which of two colours has the highest contrast with a base colour\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"contrastcolour\";\n\nexports.params = [\n\t{name: \"target\"},\n\t{name: \"fallbackTarget\"},\n\t{name: \"colourA\"},\n\t{name: \"colourB\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(target,fallbackTarget,colourA,colourB) {\n\tvar rgbTarget = $tw.utils.parseCSSColor(target) || $tw.utils.parseCSSColor(fallbackTarget);\n\tif(!rgbTarget) {\n\t\treturn colourA;\n\t}\n\tvar rgbColourA = $tw.utils.parseCSSColor(colourA),\n\t\trgbColourB = $tw.utils.parseCSSColor(colourB);\n\tif(rgbColourA && !rgbColourB) {\n\t\treturn rgbColourA;\n\t}\n\tif(rgbColourB && !rgbColourA) {\n\t\treturn rgbColourB;\n\t}\n\tif(!rgbColourA && !rgbColourB) {\n\t\t// If neither colour is readable, return a crude inverse of the target\n\t\treturn [255 - rgbTarget[0],255 - rgbTarget[1],255 - rgbTarget[2],rgbTarget[3]];\n\t}\n\t// Colour brightness formula derived from http://www.w3.org/WAI/ER/WD-AERT/#color-contrast\n\tvar brightnessTarget = rgbTarget[0] * 0.299 + rgbTarget[1] * 0.587 + rgbTarget[2] * 0.114,\n\t\tbrightnessA = rgbColourA[0] * 0.299 + rgbColourA[1] * 0.587 + rgbColourA[2] * 0.114,\n\t\tbrightnessB = rgbColourB[0] * 0.299 + rgbColourB[1] * 0.587 + rgbColourB[2] * 0.114;\n\treturn Math.abs(brightnessTarget - brightnessA) > Math.abs(brightnessTarget - brightnessB) ? colourA : colourB;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/csvtiddlers.js": {
"title": "$:/core/modules/macros/csvtiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/macros/csvtiddlers.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to output tiddlers matching a filter to CSV\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"csvtiddlers\";\n\nexports.params = [\n\t{name: \"filter\"},\n\t{name: \"format\"},\n];\n\n/*\nRun the macro\n*/\nexports.run = function(filter,format) {\n\tvar self = this,\n\t\ttiddlers = this.wiki.filterTiddlers(filter),\n\t\ttiddler,\n\t\tfields = [],\n\t\tt,f;\n\t// Collect all the fields\n\tfor(t=0;t<tiddlers.length; t++) {\n\t\ttiddler = this.wiki.getTiddler(tiddlers[t]);\n\t\tfor(f in tiddler.fields) {\n\t\t\tif(fields.indexOf(f) === -1) {\n\t\t\t\tfields.push(f);\n\t\t\t}\n\t\t}\n\t}\n\t// Sort the fields and bring the standard ones to the front\n\tfields.sort();\n\t\"title text modified modifier created creator\".split(\" \").reverse().forEach(function(value,index) {\n\t\tvar p = fields.indexOf(value);\n\t\tif(p !== -1) {\n\t\t\tfields.splice(p,1);\n\t\t\tfields.unshift(value)\n\t\t}\n\t});\n\t// Output the column headings\n\tvar output = [], row = [];\n\tfields.forEach(function(value) {\n\t\trow.push(quoteAndEscape(value))\n\t});\n\toutput.push(row.join(\",\"));\n\t// Output each tiddler\n\tfor(var t=0;t<tiddlers.length; t++) {\n\t\trow = [];\n\t\ttiddler = this.wiki.getTiddler(tiddlers[t]);\n\t\t\tfor(f=0; f<fields.length; f++) {\n\t\t\t\trow.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || \"\" : \"\"));\n\t\t\t}\n\t\toutput.push(row.join(\",\"));\n\t}\n\treturn output.join(\"\\n\");\n};\n\nfunction quoteAndEscape(value) {\n\treturn \"\\\"\" + value.replace(/\"/mg,\"\\\"\\\"\") + \"\\\"\";\n}\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/displayshortcuts.js": {
"title": "$:/core/modules/macros/displayshortcuts.js",
"text": "/*\\\ntitle: $:/core/modules/macros/displayshortcuts.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to display a list of keyboard shortcuts in human readable form. Notably, it resolves named shortcuts like `((bold))` to the underlying keystrokes.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"displayshortcuts\";\n\nexports.params = [\n\t{name: \"shortcuts\"},\n\t{name: \"prefix\"},\n\t{name: \"separator\"},\n\t{name: \"suffix\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(shortcuts,prefix,separator,suffix) {\n\tvar shortcutArray = $tw.keyboardManager.getPrintableShortcuts($tw.keyboardManager.parseKeyDescriptors(shortcuts,{\n\t\twiki: this.wiki\n\t}));\n\tif(shortcutArray.length > 0) {\n\t\tshortcutArray.sort(function(a,b) {\n\t\t return a.toLowerCase().localeCompare(b.toLowerCase());\n\t\t})\n\t\treturn prefix + shortcutArray.join(separator) + suffix;\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/jsontiddler.js": {
"title": "$:/core/modules/macros/jsontiddler.js",
"text": "/*\\\ntitle: $:/core/modules/macros/jsontiddler.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to output a single tiddler to JSON\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"jsontiddler\";\n\nexports.params = [\n\t{name: \"title\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\ttitle = title || this.getVariable(\"currentTiddler\");\n\tvar tiddler = !!title && this.wiki.getTiddler(title),\n\t\tfields = new Object();\n\tif(tiddler) {\n\t\tfor(var field in tiddler.fields) {\n\t\t\tfields[field] = tiddler.getFieldString(field);\n\t\t}\n\t}\n\treturn JSON.stringify(fields,null,$tw.config.preferences.jsonSpaces);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/jsontiddlers.js": {
"title": "$:/core/modules/macros/jsontiddlers.js",
"text": "/*\\\ntitle: $:/core/modules/macros/jsontiddlers.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to output tiddlers matching a filter to JSON\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"jsontiddlers\";\n\nexports.params = [\n\t{name: \"filter\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(filter) {\n\treturn this.wiki.getTiddlersAsJson(filter);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/makedatauri.js": {
"title": "$:/core/modules/macros/makedatauri.js",
"text": "/*\\\ntitle: $:/core/modules/macros/makedatauri.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to convert a string of text to a data URI\n\n<<makedatauri text:\"Text to be converted\" type:\"text/vnd.tiddlywiki\">>\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"makedatauri\";\n\nexports.params = [\n\t{name: \"text\"},\n\t{name: \"type\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(text,type) {\n\treturn $tw.utils.makeDataUri(text,type);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/now.js": {
"title": "$:/core/modules/macros/now.js",
"text": "/*\\\ntitle: $:/core/modules/macros/now.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to return a formatted version of the current time\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"now\";\n\nexports.params = [\n\t{name: \"format\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(format) {\n\treturn $tw.utils.formatDateString(new Date(),format || \"0hh:0mm, DDth MMM YYYY\");\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/qualify.js": {
"title": "$:/core/modules/macros/qualify.js",
"text": "/*\\\ntitle: $:/core/modules/macros/qualify.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to qualify a state tiddler title according\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"qualify\";\n\nexports.params = [\n\t{name: \"title\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\treturn title + \"-\" + this.getStateQualifier();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/resolvepath.js": {
"title": "$:/core/modules/macros/resolvepath.js",
"text": "/*\\\ntitle: $:/core/modules/macros/resolvepath.js\ntype: application/javascript\nmodule-type: macro\n\nResolves a relative path for an absolute rootpath.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"resolvepath\";\n\nexports.params = [\n\t{name: \"source\"},\n\t{name: \"root\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(source, root) {\n\treturn $tw.utils.resolvePath(source, root);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/unusedtitle.js": {
"title": "$:/core/modules/macros/unusedtitle.js",
"text": "/*\\\ntitle: $:/core/modules/macros/unusedtitle.js\ntype: application/javascript\nmodule-type: macro\nMacro to return a new title that is unused in the wiki. It can be given a name as a base.\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"unusedtitle\";\n\nexports.params = [\n\t{name: \"baseName\"},\n\t{name: \"options\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(baseName, options) {\n\tif(!baseName) {\n\t\tbaseName = $tw.language.getString(\"DefaultNewTiddlerTitle\");\n\t}\n\treturn this.wiki.generateNewTitle(baseName, options);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/macros/version.js": {
"title": "$:/core/modules/macros/version.js",
"text": "/*\\\ntitle: $:/core/modules/macros/version.js\ntype: application/javascript\nmodule-type: macro\n\nMacro to return the TiddlyWiki core version number\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"version\";\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn $tw.version;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/core/modules/parsers/audioparser.js": {
"title": "$:/core/modules/parsers/audioparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/audioparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe audio parser parses an audio tiddler into an embeddable HTML element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar AudioParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"audio\",\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \"string\", value: \"controls\"}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"audio/ogg\"] = AudioParser;\nexports[\"audio/mpeg\"] = AudioParser;\nexports[\"audio/mp3\"] = AudioParser;\nexports[\"audio/mp4\"] = AudioParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/binaryparser.js": {
"title": "$:/core/modules/parsers/binaryparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/binaryparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe video parser parses a video tiddler into an embeddable HTML element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar BINARY_WARNING_MESSAGE = \"$:/core/ui/BinaryWarning\";\n\nvar BinaryParser = function(type,text,options) {\n\tthis.tree = [{\n\t\ttype: \"transclude\",\n\t\tattributes: {\n\t\t\ttiddler: {type: \"string\", value: BINARY_WARNING_MESSAGE}\n\t\t}\n\t}];\n};\n\nexports[\"application/octet-stream\"] = BinaryParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/csvparser.js": {
"title": "$:/core/modules/parsers/csvparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/csvparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe CSV text parser processes CSV files into a table wrapped in a scrollable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar CsvParser = function(type,text,options) {\n\t// Table framework\n\tthis.tree = [{\n\t\t\"type\": \"scrollable\", \"children\": [{\n\t\t\t\"type\": \"element\", \"tag\": \"table\", \"children\": [{\n\t\t\t\t\"type\": \"element\", \"tag\": \"tbody\", \"children\": []\n\t\t\t}], \"attributes\": {\n\t\t\t\t\"class\": {\"type\": \"string\", \"value\": \"tc-csv-table\"}\n\t\t\t}\n\t\t}]\n\t}];\n\t// Split the text into lines\n\tvar lines = text.split(/\\r?\\n/mg),\n\t\ttag = \"th\";\n\tfor(var line=0; line<lines.length; line++) {\n\t\tvar lineText = lines[line];\n\t\tif(lineText) {\n\t\t\tvar row = {\n\t\t\t\t\t\"type\": \"element\", \"tag\": \"tr\", \"children\": []\n\t\t\t\t};\n\t\t\tvar columns = lineText.split(\",\");\n\t\t\tfor(var column=0; column<columns.length; column++) {\n\t\t\t\trow.children.push({\n\t\t\t\t\t\t\"type\": \"element\", \"tag\": tag, \"children\": [{\n\t\t\t\t\t\t\t\"type\": \"text\",\n\t\t\t\t\t\t\t\"text\": columns[column]\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t}\n\t\t\ttag = \"td\";\n\t\t\tthis.tree[0].children[0].children[0].children.push(row);\n\t\t}\n\t}\n};\n\nexports[\"text/csv\"] = CsvParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/htmlparser.js": {
"title": "$:/core/modules/parsers/htmlparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/htmlparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe HTML parser displays text as raw HTML\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar HtmlParser = function(type,text,options) {\n\tvar src;\n\tif(options._canonical_uri) {\n\t\tsrc = options._canonical_uri;\n\t} else if(text) {\n\t\tsrc = \"data:text/html;charset=utf-8,\" + encodeURIComponent(text);\n\t}\n\tthis.tree = [{\n\t\ttype: \"element\",\n\t\ttag: \"iframe\",\n\t\tattributes: {\n\t\t\tsrc: {type: \"string\", value: src},\n\t\t\tsandbox: {type: \"string\", value: \"\"}\n\t\t}\n\t}];\n};\n\nexports[\"text/html\"] = HtmlParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/imageparser.js": {
"title": "$:/core/modules/parsers/imageparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/imageparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe image parser parses an image into an embeddable HTML element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"img\",\n\t\t\tattributes: {}\n\t\t};\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\tif(type === \"image/svg+xml\" || type === \".svg\") {\n\t\t\telement.attributes.src = {type: \"string\", value: \"data:image/svg+xml,\" + encodeURIComponent(text)};\n\t\t} else {\n\t\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t\t}\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"image/svg+xml\"] = ImageParser;\nexports[\"image/jpg\"] = ImageParser;\nexports[\"image/jpeg\"] = ImageParser;\nexports[\"image/png\"] = ImageParser;\nexports[\"image/gif\"] = ImageParser;\nexports[\"image/webp\"] = ImageParser;\nexports[\"image/heic\"] = ImageParser;\nexports[\"image/heif\"] = ImageParser;\nexports[\"image/x-icon\"] = ImageParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/utils/parseutils.js": {
"title": "$:/core/modules/utils/parseutils.js",
"text": "/*\\\ntitle: $:/core/modules/utils/parseutils.js\ntype: application/javascript\nmodule-type: utils\n\nUtility functions concerned with parsing text into tokens.\n\nMost functions have the following pattern:\n\n* The parameters are:\n** `source`: the source string being parsed\n** `pos`: the current parse position within the string\n** Any further parameters are used to identify the token that is being parsed\n* The return value is:\n** null if the token was not found at the specified position\n** an object representing the token with the following standard fields:\n*** `type`: string indicating the type of the token\n*** `start`: start position of the token in the source string\n*** `end`: end position of the token in the source string\n*** Any further fields required to describe the token\n\nThe exception is `skipWhiteSpace`, which just returns the position after the whitespace.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nLook for a whitespace token. Returns null if not found, otherwise returns {type: \"whitespace\", start:, end:,}\n*/\nexports.parseWhiteSpace = function(source,pos) {\n\tvar p = pos,c;\n\twhile(true) {\n\t\tc = source.charAt(p);\n\t\tif((c === \" \") || (c === \"\\f\") || (c === \"\\n\") || (c === \"\\r\") || (c === \"\\t\") || (c === \"\\v\") || (c === \"\\u00a0\")) { // Ignores some obscure unicode spaces\n\t\t\tp++;\n\t\t} else {\n\t\t\tbreak;\n\t\t}\n\t}\n\tif(p === pos) {\n\t\treturn null;\n\t} else {\n\t\treturn {\n\t\t\ttype: \"whitespace\",\n\t\t\tstart: pos,\n\t\t\tend: p\n\t\t}\n\t}\n};\n\n/*\nConvenience wrapper for parseWhiteSpace. Returns the position after the whitespace\n*/\nexports.skipWhiteSpace = function(source,pos) {\n\tvar c;\n\twhile(true) {\n\t\tc = source.charAt(pos);\n\t\tif((c === \" \") || (c === \"\\f\") || (c === \"\\n\") || (c === \"\\r\") || (c === \"\\t\") || (c === \"\\v\") || (c === \"\\u00a0\")) { // Ignores some obscure unicode spaces\n\t\t\tpos++;\n\t\t} else {\n\t\t\treturn pos;\n\t\t}\n\t}\n};\n\n/*\nLook for a given string token. Returns null if not found, otherwise returns {type: \"token\", value:, start:, end:,}\n*/\nexports.parseTokenString = function(source,pos,token) {\n\tvar match = source.indexOf(token,pos) === pos;\n\tif(match) {\n\t\treturn {\n\t\t\ttype: \"token\",\n\t\t\tvalue: token,\n\t\t\tstart: pos,\n\t\t\tend: pos + token.length\n\t\t};\n\t}\n\treturn null;\n};\n\n/*\nLook for a token matching a regex. Returns null if not found, otherwise returns {type: \"regexp\", match:, start:, end:,}\n*/\nexports.parseTokenRegExp = function(source,pos,reToken) {\n\tvar node = {\n\t\ttype: \"regexp\",\n\t\tstart: pos\n\t};\n\treToken.lastIndex = pos;\n\tnode.match = reToken.exec(source);\n\tif(node.match && node.match.index === pos) {\n\t\tnode.end = pos + node.match[0].length;\n\t\treturn node;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nLook for a string literal. Returns null if not found, otherwise returns {type: \"string\", value:, start:, end:,}\n*/\nexports.parseStringLiteral = function(source,pos) {\n\tvar node = {\n\t\ttype: \"string\",\n\t\tstart: pos\n\t};\n\tvar reString = /(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\")|(?:'([^']*)')/g;\n\treString.lastIndex = pos;\n\tvar match = reString.exec(source);\n\tif(match && match.index === pos) {\n\t\tnode.value = match[1] !== undefined ? match[1] :(\n\t\t\tmatch[2] !== undefined ? match[2] : match[3] \n\t\t\t\t\t);\n\t\tnode.end = pos + match[0].length;\n\t\treturn node;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nLook for a macro invocation parameter. Returns null if not found, or {type: \"macro-parameter\", name:, value:, start:, end:}\n*/\nexports.parseMacroParameter = function(source,pos) {\n\tvar node = {\n\t\ttype: \"macro-parameter\",\n\t\tstart: pos\n\t};\n\t// Define our regexp\n\tvar reMacroParameter = /(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\\s>\"'=]+)))/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the parameter\n\tvar token = $tw.utils.parseTokenRegExp(source,pos,reMacroParameter);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Get the parameter details\n\tnode.value = token.match[2] !== undefined ? token.match[2] : (\n\t\t\t\t\ttoken.match[3] !== undefined ? token.match[3] : (\n\t\t\t\t\t\ttoken.match[4] !== undefined ? token.match[4] : (\n\t\t\t\t\t\t\ttoken.match[5] !== undefined ? token.match[5] : (\n\t\t\t\t\t\t\t\ttoken.match[6] !== undefined ? token.match[6] : (\n\t\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\tif(token.match[1]) {\n\t\tnode.name = token.match[1];\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n/*\nLook for a macro invocation. Returns null if not found, or {type: \"macrocall\", name:, parameters:, start:, end:}\n*/\nexports.parseMacroInvocation = function(source,pos) {\n\tvar node = {\n\t\ttype: \"macrocall\",\n\t\tstart: pos,\n\t\tparams: []\n\t};\n\t// Define our regexps\n\tvar reMacroName = /([^\\s>\"'=]+)/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a double less than sign\n\tvar token = $tw.utils.parseTokenString(source,pos,\"<<\");\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Get the macro name\n\tvar name = $tw.utils.parseTokenRegExp(source,pos,reMacroName);\n\tif(!name) {\n\t\treturn null;\n\t}\n\tnode.name = name.match[1];\n\tpos = name.end;\n\t// Process parameters\n\tvar parameter = $tw.utils.parseMacroParameter(source,pos);\n\twhile(parameter) {\n\t\tnode.params.push(parameter);\n\t\tpos = parameter.end;\n\t\t// Get the next parameter\n\t\tparameter = $tw.utils.parseMacroParameter(source,pos);\n\t}\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a double greater than sign\n\ttoken = $tw.utils.parseTokenString(source,pos,\">>\");\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n/*\nLook for an HTML attribute definition. Returns null if not found, otherwise returns {type: \"attribute\", name:, valueType: \"string|indirect|macro\", value:, start:, end:,}\n*/\nexports.parseAttribute = function(source,pos) {\n\tvar node = {\n\t\tstart: pos\n\t};\n\t// Define our regexps\n\tvar reAttributeName = /([^\\/\\s>\"'=]+)/g,\n\t\treUnquotedAttribute = /([^\\/\\s<>\"'=]+)/g,\n\t\treFilteredValue = /\\{\\{\\{(.+?)\\}\\}\\}/g,\n\t\treIndirectValue = /\\{\\{([^\\}]+)\\}\\}/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Get the attribute name\n\tvar name = $tw.utils.parseTokenRegExp(source,pos,reAttributeName);\n\tif(!name) {\n\t\treturn null;\n\t}\n\tnode.name = name.match[1];\n\tpos = name.end;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for an equals sign\n\tvar token = $tw.utils.parseTokenString(source,pos,\"=\");\n\tif(token) {\n\t\tpos = token.end;\n\t\t// Skip whitespace\n\t\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t\t// Look for a string literal\n\t\tvar stringLiteral = $tw.utils.parseStringLiteral(source,pos);\n\t\tif(stringLiteral) {\n\t\t\tpos = stringLiteral.end;\n\t\t\tnode.type = \"string\";\n\t\t\tnode.value = stringLiteral.value;\n\t\t} else {\n\t\t\t// Look for a filtered value\n\t\t\tvar filteredValue = $tw.utils.parseTokenRegExp(source,pos,reFilteredValue);\n\t\t\tif(filteredValue) {\n\t\t\t\tpos = filteredValue.end;\n\t\t\t\tnode.type = \"filtered\";\n\t\t\t\tnode.filter = filteredValue.match[1];\n\t\t\t} else {\n\t\t\t\t// Look for an indirect value\n\t\t\t\tvar indirectValue = $tw.utils.parseTokenRegExp(source,pos,reIndirectValue);\n\t\t\t\tif(indirectValue) {\n\t\t\t\t\tpos = indirectValue.end;\n\t\t\t\t\tnode.type = \"indirect\";\n\t\t\t\t\tnode.textReference = indirectValue.match[1];\n\t\t\t\t} else {\n\t\t\t\t\t// Look for a unquoted value\n\t\t\t\t\tvar unquotedValue = $tw.utils.parseTokenRegExp(source,pos,reUnquotedAttribute);\n\t\t\t\t\tif(unquotedValue) {\n\t\t\t\t\t\tpos = unquotedValue.end;\n\t\t\t\t\t\tnode.type = \"string\";\n\t\t\t\t\t\tnode.value = unquotedValue.match[1];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Look for a macro invocation value\n\t\t\t\t\t\tvar macroInvocation = $tw.utils.parseMacroInvocation(source,pos);\n\t\t\t\t\t\tif(macroInvocation) {\n\t\t\t\t\t\t\tpos = macroInvocation.end;\n\t\t\t\t\t\t\tnode.type = \"macro\";\n\t\t\t\t\t\t\tnode.value = macroInvocation;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnode.type = \"string\";\n\t\t\t\t\t\t\tnode.value = \"true\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\t\tnode.type = \"string\";\n\t\tnode.value = \"true\";\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/parsers/pdfparser.js": {
"title": "$:/core/modules/parsers/pdfparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/pdfparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe PDF parser embeds a PDF viewer\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"embed\",\n\t\t\tattributes: {}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:application/pdf;base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"application/pdf\"] = ImageParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/textparser.js": {
"title": "$:/core/modules/parsers/textparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/textparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe plain text parser processes blocks of source text into a degenerate parse tree consisting of a single text node\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar TextParser = function(type,text,options) {\n\tthis.tree = [{\n\t\ttype: \"codeblock\",\n\t\tattributes: {\n\t\t\tcode: {type: \"string\", value: text},\n\t\t\tlanguage: {type: \"string\", value: type}\n\t\t}\n\t}];\n};\n\nexports[\"text/plain\"] = TextParser;\nexports[\"text/x-tiddlywiki\"] = TextParser;\nexports[\"application/javascript\"] = TextParser;\nexports[\"application/json\"] = TextParser;\nexports[\"text/css\"] = TextParser;\nexports[\"application/x-tiddler-dictionary\"] = TextParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/videoparser.js": {
"title": "$:/core/modules/parsers/videoparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/videoparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe video parser parses a video tiddler into an embeddable HTML element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar VideoParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"video\",\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \"string\", value: \"controls\"}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"video/mp4\"] = VideoParser;\nexports[\"video/quicktime\"] = VideoParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/wikiparser/rules/codeblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/codeblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/codeblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for code blocks. For example:\n\n```\n\t```\n\tThis text will not be //wikified//\n\t```\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"codeblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match and get language if defined\n\tthis.matchRegExp = /```([\\w-]*)\\r?\\n/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /(\\r?\\n```$)/mg;\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Look for the end of the block\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(this.parser.source),\n\t\ttext;\n\t// Process the block\n\tif(match) {\n\t\ttext = this.parser.source.substring(this.parser.pos,match.index);\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\ttext = this.parser.source.substr(this.parser.pos);\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\t// Return the $codeblock widget\n\treturn [{\n\t\t\ttype: \"codeblock\",\n\t\t\tattributes: {\n\t\t\t\t\tcode: {type: \"string\", value: text},\n\t\t\t\t\tlanguage: {type: \"string\", value: this.match[1]}\n\t\t\t}\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/codeinline.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/codeinline.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/codeinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for code runs. For example:\n\n```\n\tThis is a `code run`.\n\tThis is another ``code run``\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"codeinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(``?)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar reEnd = new RegExp(this.match[1], \"mg\");\n\t// Look for the end marker\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(this.parser.source),\n\t\ttext;\n\t// Process the text\n\tif(match) {\n\t\ttext = this.parser.source.substring(this.parser.pos,match.index);\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\ttext = this.parser.source.substr(this.parser.pos);\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"code\",\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\ttext: text\n\t\t}]\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/commentblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/commentblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/commentblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for HTML comments. For example:\n\n```\n<!-- This is a comment -->\n```\n\nNote that the syntax for comments is simplified to an opening \"<!--\" sequence and a closing \"-->\" sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"commentblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /<!--/mg;\n\tthis.endMatchRegExp = /-->/mg;\n};\n\nexports.findNextMatch = function(startPos) {\n\tthis.matchRegExp.lastIndex = startPos;\n\tthis.match = this.matchRegExp.exec(this.parser.source);\n\tif(this.match) {\n\t\tthis.endMatchRegExp.lastIndex = startPos + this.match[0].length;\n\t\tthis.endMatch = this.endMatchRegExp.exec(this.parser.source);\n\t\tif(this.endMatch) {\n\t\t\treturn this.match.index;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.endMatchRegExp.lastIndex;\n\t// Don't return any elements\n\treturn [];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/commentinline.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/commentinline.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/commentinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for HTML comments. For example:\n\n```\n<!-- This is a comment -->\n```\n\nNote that the syntax for comments is simplified to an opening \"<!--\" sequence and a closing \"-->\" sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"commentinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /<!--/mg;\n\tthis.endMatchRegExp = /-->/mg;\n};\n\nexports.findNextMatch = function(startPos) {\n\tthis.matchRegExp.lastIndex = startPos;\n\tthis.match = this.matchRegExp.exec(this.parser.source);\n\tif(this.match) {\n\t\tthis.endMatchRegExp.lastIndex = startPos + this.match[0].length;\n\t\tthis.endMatch = this.endMatchRegExp.exec(this.parser.source);\n\t\tif(this.endMatch) {\n\t\t\treturn this.match.index;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.endMatchRegExp.lastIndex;\n\t// Don't return any elements\n\treturn [];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/dash.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/dash.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/dash.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for dashes. For example:\n\n```\nThis is an en-dash: --\n\nThis is an em-dash: ---\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"dash\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /-{2,3}(?!-)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar dash = this.match[0].length === 2 ? \"–\" : \"—\";\n\treturn [{\n\t\ttype: \"entity\",\n\t\tentity: dash\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/bold.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - bold. For example:\n\n```\n\tThis is ''bold'' text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except bold \n\\rules only bold \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"bold\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /''/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/''/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"strong\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/italic.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - italic. For example:\n\n```\n\tThis is //italic// text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except italic\n\\rules only italic\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"italic\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\/\\//mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/\\/\\//mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"em\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - strikethrough. For example:\n\n```\n\tThis is ~~strikethrough~~ text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except strikethrough \n\\rules only strikethrough \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"strikethrough\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /~~/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/~~/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"strike\",\n\t\tchildren: tree\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - subscript. For example:\n\n```\n\tThis is ,,subscript,, text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except subscript \n\\rules only subscript \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"subscript\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /,,/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/,,/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"sub\",\n\t\tchildren: tree\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - superscript. For example:\n\n```\n\tThis is ^^superscript^^ text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except superscript \n\\rules only superscript \n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"superscript\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\^\\^/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/\\^\\^/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"sup\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for emphasis - underscore. For example:\n\n```\n\tThis is __underscore__ text\n```\n\nThis wikiparser can be modified using the rules eg:\n\n```\n\\rules except underscore \n\\rules only underscore\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"underscore\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /__/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\n\t// Parse the run including the terminator\n\tvar tree = this.parser.parseInlineRun(/__/mg,{eatTerminator: true});\n\n\t// Return the classed span\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"u\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/entity.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/entity.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/entity.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for HTML entities. For example:\n\n```\n\tThis is a copyright symbol: ©\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"entity\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(&#?[a-zA-Z0-9]{2,8};)/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar entityString = this.match[1];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Return the entity\n\treturn [{type: \"entity\", entity: this.match[0]}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/extlink.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/extlink.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/extlink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for external links. For example:\n\n```\nAn external link: https://www.tiddlywiki.com/\n\nA suppressed external link: ~http://www.tiddlyspace.com/\n```\n\nExternal links can be suppressed by preceding them with `~`.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"extlink\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\\s<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\b)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Create the link unless it is suppressed\n\tif(this.match[0].substr(0,1) === \"~\") {\n\t\treturn [{type: \"text\", text: this.match[0].substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tattributes: {\n\t\t\t\thref: {type: \"string\", value: this.match[0]},\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\n\t\t\t\ttarget: {type: \"string\", value: \"_blank\"},\n\t\t\t\trel: {type: \"string\", value: \"noopener noreferrer\"}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: this.match[0]\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for block-level filtered transclusion. For example:\n\n```\n{{{ [tag[docs]] }}}\n{{{ [tag[docs]] |tooltip}}}\n{{{ [tag[docs]] ||TemplateTitle}}}\n{{{ [tag[docs]] |tooltip||TemplateTitle}}}\n{{{ [tag[docs]] }}width:40;height:50;}.class.class\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"filteredtranscludeblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{\\{([^\\|]+?)(?:\\|([^\\|\\{\\}]+))?(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}([^\\}]*)\\}(?:\\.(\\S+))?(?:\\r?\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar filter = this.match[1],\n\t\ttooltip = this.match[2],\n\t\ttemplate = $tw.utils.trim(this.match[3]),\n\t\tstyle = this.match[4],\n\t\tclasses = this.match[5];\n\t// Return the list widget\n\tvar node = {\n\t\ttype: \"list\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: filter}\n\t\t},\n\t\tisBlock: true\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \"string\", value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \"string\", value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \"string\", value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \"string\", value: classes.split(\".\").join(\" \")};\n\t}\n\treturn [node];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for inline filtered transclusion. For example:\n\n```\n{{{ [tag[docs]] }}}\n{{{ [tag[docs]] |tooltip}}}\n{{{ [tag[docs]] ||TemplateTitle}}}\n{{{ [tag[docs]] |tooltip||TemplateTitle}}}\n{{{ [tag[docs]] }}width:40;height:50;}.class.class\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"filteredtranscludeinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{\\{([^\\|]+?)(?:\\|([^\\|\\{\\}]+))?(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}([^\\}]*)\\}(?:\\.(\\S+))?/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar filter = this.match[1],\n\t\ttooltip = this.match[2],\n\t\ttemplate = $tw.utils.trim(this.match[3]),\n\t\tstyle = this.match[4],\n\t\tclasses = this.match[5];\n\t// Return the list widget\n\tvar node = {\n\t\ttype: \"list\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: filter}\n\t\t}\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \"string\", value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \"string\", value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \"string\", value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \"string\", value: classes.split(\".\").join(\" \")};\n\t}\n\treturn [node];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for marking areas with hard line breaks. For example:\n\n```\n\"\"\"\nThis is some text\nThat is set like\nIt is a Poem\nWhen it is\nClearly\nNot\n\"\"\"\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"hardlinebreaks\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\"\"\"(?:\\r?\\n)?/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /(\"\"\")|(\\r?\\n)/mg,\n\t\ttree = [],\n\t\tmatch;\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tdo {\n\t\t// Parse the run up to the terminator\n\t\ttree.push.apply(tree,this.parser.parseInlineRun(reEnd,{eatTerminator: false}));\n\t\t// Redo the terminator match\n\t\treEnd.lastIndex = this.parser.pos;\n\t\tmatch = reEnd.exec(this.parser.source);\n\t\tif(match) {\n\t\t\tthis.parser.pos = reEnd.lastIndex;\n\t\t\t// Add a line break if the terminator was a line break\n\t\t\tif(match[2]) {\n\t\t\t\ttree.push({type: \"element\", tag: \"br\"});\n\t\t\t}\n\t\t}\n\t} while(match && !match[1]);\n\t// Return the nodes\n\treturn tree;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/heading.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/heading.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/heading.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for headings\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"heading\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(!{1,6})/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar headingLevel = this.match[1].length;\n\t// Move past the !s\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse any classes, whitespace and then the heading itself\n\tvar classes = this.parser.parseClasses();\n\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\tvar tree = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t// Return the heading\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"h\" + headingLevel, \n\t\tattributes: {\n\t\t\t\"class\": {type: \"string\", value: classes.join(\" \")}\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/horizrule.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/horizrule.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/horizrule.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for rules. For example:\n\n```\n---\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"horizrule\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /-{3,}\\r?(?:\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\treturn [{type: \"element\", tag: \"hr\"}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/html.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/html.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/html.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for HTML elements and widgets. For example:\n\n{{{\n<aside>\nThis is an HTML5 aside element\n</aside>\n\n<$slider target=\"MyTiddler\">\nThis is a widget invocation\n</$slider>\n\n}}}\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"html\";\nexports.types = {inline: true, block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n};\n\nexports.findNextMatch = function(startPos) {\n\t// Find the next tag\n\tthis.nextTag = this.findNextTag(this.parser.source,startPos,{\n\t\trequireLineBreak: this.is.block\n\t});\n\treturn this.nextTag ? this.nextTag.start : undefined;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Retrieve the most recent match so that recursive calls don't overwrite it\n\tvar tag = this.nextTag;\n\tthis.nextTag = null;\n\t// Advance the parser position to past the tag\n\tthis.parser.pos = tag.end;\n\t// Check for an immediately following double linebreak\n\tvar hasLineBreak = !tag.isSelfClosing && !!$tw.utils.parseTokenRegExp(this.parser.source,this.parser.pos,/([^\\S\\n\\r]*\\r?\\n(?:[^\\S\\n\\r]*\\r?\\n|$))/g);\n\t// Set whether we're in block mode\n\ttag.isBlock = this.is.block || hasLineBreak;\n\t// Parse the body if we need to\n\tif(!tag.isSelfClosing && $tw.config.htmlVoidElements.indexOf(tag.tag) === -1) {\n\t\t\tvar reEndString = \"</\" + $tw.utils.escapeRegExp(tag.tag) + \">\",\n\t\t\t\treEnd = new RegExp(\"(\" + reEndString + \")\",\"mg\");\n\t\tif(hasLineBreak) {\n\t\t\ttag.children = this.parser.parseBlocks(reEndString);\n\t\t} else {\n\t\t\ttag.children = this.parser.parseInlineRun(reEnd);\n\t\t}\n\t\treEnd.lastIndex = this.parser.pos;\n\t\tvar endMatch = reEnd.exec(this.parser.source);\n\t\tif(endMatch && endMatch.index === this.parser.pos) {\n\t\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t\t}\n\t}\n\t// Return the tag\n\treturn [tag];\n};\n\n/*\nLook for an HTML tag. Returns null if not found, otherwise returns {type: \"element\", name:, attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseTag = function(source,pos,options) {\n\toptions = options || {};\n\tvar token,\n\t\tnode = {\n\t\t\ttype: \"element\",\n\t\t\tstart: pos,\n\t\t\tattributes: {}\n\t\t};\n\t// Define our regexps\n\tvar reTagName = /([a-zA-Z0-9\\-\\$]+)/g;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a less than sign\n\ttoken = $tw.utils.parseTokenString(source,pos,\"<\");\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Get the tag name\n\ttoken = $tw.utils.parseTokenRegExp(source,pos,reTagName);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tnode.tag = token.match[1];\n\tif(node.tag.slice(1).indexOf(\"$\") !== -1) {\n\t\treturn null;\n\t}\n\tif(node.tag.charAt(0) === \"$\") {\n\t\tnode.type = node.tag.substr(1);\n\t}\n\tpos = token.end;\n\t// Check that the tag is terminated by a space, / or >\n\tif(!$tw.utils.parseWhiteSpace(source,pos) && !(source.charAt(pos) === \"/\") && !(source.charAt(pos) === \">\") ) {\n\t\treturn null;\n\t}\n\t// Process attributes\n\tvar attribute = $tw.utils.parseAttribute(source,pos);\n\twhile(attribute) {\n\t\tnode.attributes[attribute.name] = attribute;\n\t\tpos = attribute.end;\n\t\t// Get the next attribute\n\t\tattribute = $tw.utils.parseAttribute(source,pos);\n\t}\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for a closing slash\n\ttoken = $tw.utils.parseTokenString(source,pos,\"/\");\n\tif(token) {\n\t\tpos = token.end;\n\t\tnode.isSelfClosing = true;\n\t}\n\t// Look for a greater than sign\n\ttoken = $tw.utils.parseTokenString(source,pos,\">\");\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Check for a required line break\n\tif(options.requireLineBreak) {\n\t\ttoken = $tw.utils.parseTokenRegExp(source,pos,/([^\\S\\n\\r]*\\r?\\n(?:[^\\S\\n\\r]*\\r?\\n|$))/g);\n\t\tif(!token) {\n\t\t\treturn null;\n\t\t}\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\nexports.findNextTag = function(source,pos,options) {\n\t// A regexp for finding candidate HTML tags\n\tvar reLookahead = /<([a-zA-Z\\-\\$]+)/g;\n\t// Find the next candidate\n\treLookahead.lastIndex = pos;\n\tvar match = reLookahead.exec(source);\n\twhile(match) {\n\t\t// Try to parse the candidate as a tag\n\t\tvar tag = this.parseTag(source,match.index,options);\n\t\t// Return success\n\t\tif(tag && this.isLegalTag(tag)) {\n\t\t\treturn tag;\n\t\t}\n\t\t// Look for the next match\n\t\treLookahead.lastIndex = match.index + 1;\n\t\tmatch = reLookahead.exec(source);\n\t}\n\t// Failed\n\treturn null;\n};\n\nexports.isLegalTag = function(tag) {\n\t// Widgets are always OK\n\tif(tag.type !== \"element\") {\n\t\treturn true;\n\t// If it's an HTML tag that starts with a dash then it's not legal\n\t} else if(tag.tag.charAt(0) === \"-\") {\n\t\treturn false;\n\t} else {\n\t\t// Otherwise it's OK\n\t\treturn true;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/image.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/image.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/image.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for embedding images. For example:\n\n```\n[img[https://tiddlywiki.com/fractalveg.jpg]]\n[img width=23 height=24 [https://tiddlywiki.com/fractalveg.jpg]]\n[img width={{!!width}} height={{!!height}} [https://tiddlywiki.com/fractalveg.jpg]]\n[img[Description of image|https://tiddlywiki.com/fractalveg.jpg]]\n[img[TiddlerTitle]]\n[img[Description of image|TiddlerTitle]]\n```\n\nGenerates the `<$image>` widget.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"image\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n};\n\nexports.findNextMatch = function(startPos) {\n\t// Find the next tag\n\tthis.nextImage = this.findNextImage(this.parser.source,startPos);\n\treturn this.nextImage ? this.nextImage.start : undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.nextImage.end;\n\tvar node = {\n\t\ttype: \"image\",\n\t\tattributes: this.nextImage.attributes\n\t};\n\treturn [node];\n};\n\n/*\nFind the next image from the current position\n*/\nexports.findNextImage = function(source,pos) {\n\t// A regexp for finding candidate HTML tags\n\tvar reLookahead = /(\\[img)/g;\n\t// Find the next candidate\n\treLookahead.lastIndex = pos;\n\tvar match = reLookahead.exec(source);\n\twhile(match) {\n\t\t// Try to parse the candidate as a tag\n\t\tvar tag = this.parseImage(source,match.index);\n\t\t// Return success\n\t\tif(tag) {\n\t\t\treturn tag;\n\t\t}\n\t\t// Look for the next match\n\t\treLookahead.lastIndex = match.index + 1;\n\t\tmatch = reLookahead.exec(source);\n\t}\n\t// Failed\n\treturn null;\n};\n\n/*\nLook for an image at the specified position. Returns null if not found, otherwise returns {type: \"image\", attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseImage = function(source,pos) {\n\tvar token,\n\t\tnode = {\n\t\t\ttype: \"image\",\n\t\t\tstart: pos,\n\t\t\tattributes: {}\n\t\t};\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the `[img`\n\ttoken = $tw.utils.parseTokenString(source,pos,\"[img\");\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Process attributes\n\tif(source.charAt(pos) !== \"[\") {\n\t\tvar attribute = $tw.utils.parseAttribute(source,pos);\n\t\twhile(attribute) {\n\t\t\tnode.attributes[attribute.name] = attribute;\n\t\t\tpos = attribute.end;\n\t\t\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t\t\tif(source.charAt(pos) !== \"[\") {\n\t\t\t\t// Get the next attribute\n\t\t\t\tattribute = $tw.utils.parseAttribute(source,pos);\n\t\t\t} else {\n\t\t\t\tattribute = null;\n\t\t\t}\n\t\t}\n\t}\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the `[` after the attributes\n\ttoken = $tw.utils.parseTokenString(source,pos,\"[\");\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Get the source up to the terminating `]]`\n\ttoken = $tw.utils.parseTokenRegExp(source,pos,/(?:([^|\\]]*?)\\|)?([^\\]]+?)\\]\\]/g);\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\tif(token.match[1]) {\n\t\tnode.attributes.tooltip = {type: \"string\", value: token.match[1].trim()};\n\t}\n\tnode.attributes.source = {type: \"string\", value: (token.match[2] || \"\").trim()};\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/import.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/import.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/import.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for importing variable definitions\n\n```\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"import\";\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\import[^\\S\\n]/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\tvar self = this;\n\t// Move past the pragma invocation\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse the filter terminated by a line break\n\tvar reMatch = /(.*)(\\r?\\n)|$/mg;\n\treMatch.lastIndex = this.parser.pos;\n\tvar match = reMatch.exec(this.parser.source);\n\tthis.parser.pos = reMatch.lastIndex;\n\t// Parse tree nodes to return\n\treturn [{\n\t\ttype: \"importvariables\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: match[1]}\n\t\t},\n\t\tchildren: []\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/list.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/list.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/list.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for lists. For example:\n\n```\n* This is an unordered list\n* It has two items\n\n# This is a numbered list\n## With a subitem\n# And a third item\n\n; This is a term that is being defined\n: This is the definition of that term\n```\n\nNote that lists can be nested arbitrarily:\n\n```\n#** One\n#* Two\n#** Three\n#**** Four\n#**# Five\n#**## Six\n## Seven\n### Eight\n## Nine\n```\n\nA CSS class can be applied to a list item as follows:\n\n```\n* List item one\n*.active List item two has the class `active`\n* List item three\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"list\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /([\\*#;:>]+)/mg;\n};\n\nvar listTypes = {\n\t\"*\": {listTag: \"ul\", itemTag: \"li\"},\n\t\"#\": {listTag: \"ol\", itemTag: \"li\"},\n\t\";\": {listTag: \"dl\", itemTag: \"dt\"},\n\t\":\": {listTag: \"dl\", itemTag: \"dd\"},\n\t\">\": {listTag: \"blockquote\", itemTag: \"p\"}\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Array of parse tree nodes for the previous row of the list\n\tvar listStack = [];\n\t// Cycle through the items in the list\n\twhile(true) {\n\t\t// Match the list marker\n\t\tvar reMatch = /([\\*#;:>]+)/mg;\n\t\treMatch.lastIndex = this.parser.pos;\n\t\tvar match = reMatch.exec(this.parser.source);\n\t\tif(!match || match.index !== this.parser.pos) {\n\t\t\tbreak;\n\t\t}\n\t\t// Check whether the list type of the top level matches\n\t\tvar listInfo = listTypes[match[0].charAt(0)];\n\t\tif(listStack.length > 0 && listStack[0].tag !== listInfo.listTag) {\n\t\t\tbreak;\n\t\t}\n\t\t// Move past the list marker\n\t\tthis.parser.pos = match.index + match[0].length;\n\t\t// Walk through the list markers for the current row\n\t\tfor(var t=0; t<match[0].length; t++) {\n\t\t\tlistInfo = listTypes[match[0].charAt(t)];\n\t\t\t// Remove any stacked up element if we can't re-use it because the list type doesn't match\n\t\t\tif(listStack.length > t && listStack[t].tag !== listInfo.listTag) {\n\t\t\t\tlistStack.splice(t,listStack.length - t);\n\t\t\t}\n\t\t\t// Construct the list element or reuse the previous one at this level\n\t\t\tif(listStack.length <= t) {\n\t\t\t\tvar listElement = {type: \"element\", tag: listInfo.listTag, children: [\n\t\t\t\t\t{type: \"element\", tag: listInfo.itemTag, children: []}\n\t\t\t\t]};\n\t\t\t\t// Link this list element into the last child item of the parent list item\n\t\t\t\tif(t) {\n\t\t\t\t\tvar prevListItem = listStack[t-1].children[listStack[t-1].children.length-1];\n\t\t\t\t\tprevListItem.children.push(listElement);\n\t\t\t\t}\n\t\t\t\t// Save this element in the stack\n\t\t\t\tlistStack[t] = listElement;\n\t\t\t} else if(t === (match[0].length - 1)) {\n\t\t\t\tlistStack[t].children.push({type: \"element\", tag: listInfo.itemTag, children: []});\n\t\t\t}\n\t\t}\n\t\tif(listStack.length > match[0].length) {\n\t\t\tlistStack.splice(match[0].length,listStack.length - match[0].length);\n\t\t}\n\t\t// Process the body of the list item into the last list item\n\t\tvar lastListChildren = listStack[listStack.length-1].children,\n\t\t\tlastListItem = lastListChildren[lastListChildren.length-1],\n\t\t\tclasses = this.parser.parseClasses();\n\t\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\t\tvar tree = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t\tlastListItem.children.push.apply(lastListItem.children,tree);\n\t\tif(classes.length > 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(lastListItem,classes.join(\" \"));\n\t\t}\n\t\t// Consume any whitespace following the list item\n\t\tthis.parser.skipWhitespace();\n\t}\n\t// Return the root element of the list\n\treturn [listStack[0]];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/macrocallblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/macrocallblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for block macro calls\n\n```\n<<name value value2>>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"macrocallblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /<<([^>\\s]+)(?:\\s*)((?:[^>]|(?:>(?!>)))*?)>>(?:\\r?\\n|$)/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar macroName = this.match[1],\n\t\tparamString = this.match[2];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar params = [],\n\t\treParam = /\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\s]+)))/mg,\n\t\tparamMatch = reParam.exec(paramString);\n\twhile(paramMatch) {\n\t\t// Process this parameter\n\t\tvar paramInfo = {\n\t\t\tvalue: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6]\n\t\t};\n\t\tif(paramMatch[1]) {\n\t\t\tparamInfo.name = paramMatch[1];\n\t\t}\n\t\tparams.push(paramInfo);\n\t\t// Find the next match\n\t\tparamMatch = reParam.exec(paramString);\n\t}\n\treturn [{\n\t\ttype: \"macrocall\",\n\t\tname: macroName,\n\t\tparams: params,\n\t\tisBlock: true\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/macrocallinline.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/macrocallinline.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for macro calls\n\n```\n<<name value value2>>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"macrocallinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /<<([^\\s>]+)\\s*([\\s\\S]*?)>>/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get all the details of the match\n\tvar macroName = this.match[1],\n\t\tparamString = this.match[2];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar params = [],\n\t\treParam = /\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\s]+)))/mg,\n\t\tparamMatch = reParam.exec(paramString);\n\twhile(paramMatch) {\n\t\t// Process this parameter\n\t\tvar paramInfo = {\n\t\t\tvalue: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5]|| paramMatch[6]\n\t\t};\n\t\tif(paramMatch[1]) {\n\t\t\tparamInfo.name = paramMatch[1];\n\t\t}\n\t\tparams.push(paramInfo);\n\t\t// Find the next match\n\t\tparamMatch = reParam.exec(paramString);\n\t}\n\treturn [{\n\t\ttype: \"macrocall\",\n\t\tname: macroName,\n\t\tparams: params\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/macrodef.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/macrodef.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrodef.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for macro definitions\n\n```\n\\define name(param:defaultvalue,param2:defaultvalue)\ndefinition text, including $param$ markers\n\\end\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"macrodef\";\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\define\\s+([^(\\s]+)\\(\\s*([^)]*)\\)(\\s*\\r?\\n)?/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Move past the macro name and parameters\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse the parameters\n\tvar paramString = this.match[2],\n\t\tparams = [];\n\tif(paramString !== \"\") {\n\t\tvar reParam = /\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\s]+)))?/mg,\n\t\t\tparamMatch = reParam.exec(paramString);\n\t\twhile(paramMatch) {\n\t\t\t// Save the parameter details\n\t\t\tvar paramInfo = {name: paramMatch[1]},\n\t\t\t\tdefaultValue = paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6];\n\t\t\tif(defaultValue) {\n\t\t\t\tparamInfo[\"default\"] = defaultValue;\n\t\t\t}\n\t\t\tparams.push(paramInfo);\n\t\t\t// Look for the next parameter\n\t\t\tparamMatch = reParam.exec(paramString);\n\t\t}\n\t}\n\t// Is this a multiline definition?\n\tvar reEnd;\n\tif(this.match[3]) {\n\t\t// If so, the end of the body is marked with \\end\n\t\treEnd = /(\\r?\\n\\\\end[^\\S\\n\\r]*(?:$|\\r?\\n))/mg;\n\t} else {\n\t\t// Otherwise, the end of the definition is marked by the end of the line\n\t\treEnd = /($|\\r?\\n)/mg;\n\t\t// Move past any whitespace\n\t\tthis.parser.pos = $tw.utils.skipWhiteSpace(this.parser.source,this.parser.pos);\n\t}\n\t// Find the end of the definition\n\treEnd.lastIndex = this.parser.pos;\n\tvar text,\n\t\tendMatch = reEnd.exec(this.parser.source);\n\tif(endMatch) {\n\t\ttext = this.parser.source.substring(this.parser.pos,endMatch.index);\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t} else {\n\t\t// We didn't find the end of the definition, so we'll make it blank\n\t\ttext = \"\";\n\t}\n\t// Save the macro definition\n\treturn [{\n\t\ttype: \"set\",\n\t\tattributes: {\n\t\t\tname: {type: \"string\", value: this.match[1]},\n\t\t\tvalue: {type: \"string\", value: text}\n\t\t},\n\t\tchildren: [],\n\t\tparams: params,\n\t\tisMacroDefinition: true\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/prettyextlink.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/prettyextlink.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/prettyextlink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for external links. For example:\n\n```\n[ext[https://tiddlywiki.com/fractalveg.jpg]]\n[ext[Tooltip|https://tiddlywiki.com/fractalveg.jpg]]\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"prettyextlink\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n};\n\nexports.findNextMatch = function(startPos) {\n\t// Find the next tag\n\tthis.nextLink = this.findNextLink(this.parser.source,startPos);\n\treturn this.nextLink ? this.nextLink.start : undefined;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.nextLink.end;\n\treturn [this.nextLink];\n};\n\n/*\nFind the next link from the current position\n*/\nexports.findNextLink = function(source,pos) {\n\t// A regexp for finding candidate links\n\tvar reLookahead = /(\\[ext\\[)/g;\n\t// Find the next candidate\n\treLookahead.lastIndex = pos;\n\tvar match = reLookahead.exec(source);\n\twhile(match) {\n\t\t// Try to parse the candidate as a link\n\t\tvar link = this.parseLink(source,match.index);\n\t\t// Return success\n\t\tif(link) {\n\t\t\treturn link;\n\t\t}\n\t\t// Look for the next match\n\t\treLookahead.lastIndex = match.index + 1;\n\t\tmatch = reLookahead.exec(source);\n\t}\n\t// Failed\n\treturn null;\n};\n\n/*\nLook for an link at the specified position. Returns null if not found, otherwise returns {type: \"element\", tag: \"a\", attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseLink = function(source,pos) {\n\tvar token,\n\t\ttextNode = {\n\t\t\ttype: \"text\"\n\t\t},\n\t\tnode = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tstart: pos,\n\t\t\tattributes: {\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\n\t\t\t},\n\t\t\tchildren: [textNode]\n\t\t};\n\t// Skip whitespace\n\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t// Look for the `[ext[`\n\ttoken = $tw.utils.parseTokenString(source,pos,\"[ext[\");\n\tif(!token) {\n\t\treturn null;\n\t}\n\tpos = token.end;\n\t// Look ahead for the terminating `]]`\n\tvar closePos = source.indexOf(\"]]\",pos);\n\tif(closePos === -1) {\n\t\treturn null;\n\t}\n\t// Look for a `|` separating the tooltip\n\tvar splitPos = source.indexOf(\"|\",pos);\n\tif(splitPos === -1 || splitPos > closePos) {\n\t\tsplitPos = null;\n\t}\n\t// Pull out the tooltip and URL\n\tvar tooltip, URL;\n\tif(splitPos) {\n\t\tURL = source.substring(splitPos + 1,closePos).trim();\n\t\ttextNode.text = source.substring(pos,splitPos).trim();\n\t} else {\n\t\tURL = source.substring(pos,closePos).trim();\n\t\ttextNode.text = URL;\n\t}\n\tnode.attributes.href = {type: \"string\", value: URL};\n\tnode.attributes.target = {type: \"string\", value: \"_blank\"};\n\tnode.attributes.rel = {type: \"string\", value: \"noopener noreferrer\"};\n\t// Update the end position\n\tnode.end = closePos + 2;\n\treturn node;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/prettylink.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/prettylink.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/prettylink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for pretty links. For example:\n\n```\n[[Introduction]]\n\n[[Link description|TiddlerTitle]]\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"prettylink\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\[\\[(.*?)(?:\\|(.*?))?\\]\\]/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Process the link\n\tvar text = this.match[1],\n\t\tlink = this.match[2] || text;\n\tif($tw.utils.isLinkExternal(link)) {\n\t\treturn [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tattributes: {\n\t\t\t\thref: {type: \"string\", value: link},\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\n\t\t\t\ttarget: {type: \"string\", value: \"_blank\"},\n\t\t\t\trel: {type: \"string\", value: \"noopener noreferrer\"}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: text\n\t\t\t}]\n\t\t}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"link\",\n\t\t\tattributes: {\n\t\t\t\tto: {type: \"string\", value: link}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/quoteblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/quoteblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/quoteblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for quote blocks. For example:\n\n```\n\t<<<.optionalClass(es) optional cited from\n\ta quote\n\t<<<\n\t\n\t<<<.optionalClass(es)\n\ta quote\n\t<<< optional cited from\n```\n\nQuotes can be quoted by putting more <s\n\n```\n\t<<<\n\tQuote Level 1\n\t\n\t<<<<\n\tQuoteLevel 2\n\t<<<<\n\t\n\t<<<\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"quoteblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(<<<+)/mg;\n};\n\nexports.parse = function() {\n\tvar classes = [\"tc-quote\"];\n\t// Get all the details of the match\n\tvar reEndString = \"^\" + this.match[1] + \"(?!<)\";\n\t// Move past the <s\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t\n\t// Parse any classes, whitespace and then the optional cite itself\n\tclasses.push.apply(classes, this.parser.parseClasses());\n\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\tvar cite = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t// before handling the cite, parse the body of the quote\n\tvar tree= this.parser.parseBlocks(reEndString);\n\t// If we got a cite, put it before the text\n\tif(cite.length > 0) {\n\t\ttree.unshift({\n\t\t\ttype: \"element\",\n\t\t\ttag: \"cite\",\n\t\t\tchildren: cite\n\t\t});\n\t}\n\t// Parse any optional cite\n\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\n\tcite = this.parser.parseInlineRun(/(\\r?\\n)/mg);\n\t// If we got a cite, push it\n\tif(cite.length > 0) {\n\t\ttree.push({\n\t\t\ttype: \"element\",\n\t\t\ttag: \"cite\",\n\t\t\tchildren: cite\n\t\t});\n\t}\n\t// Return the blockquote element\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"blockquote\",\n\t\tattributes: {\n\t\t\tclass: { type: \"string\", value: classes.join(\" \") },\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/rules.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/rules.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/rules.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for rules specifications\n\n```\n\\rules except ruleone ruletwo rulethree\n\\rules only ruleone ruletwo rulethree\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"rules\";\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\rules[^\\S\\n]/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Move past the pragma invocation\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse whitespace delimited tokens terminated by a line break\n\tvar reMatch = /[^\\S\\n]*(\\S+)|(\\r?\\n)/mg,\n\t\ttokens = [];\n\treMatch.lastIndex = this.parser.pos;\n\tvar match = reMatch.exec(this.parser.source);\n\twhile(match && match.index === this.parser.pos) {\n\t\tthis.parser.pos = reMatch.lastIndex;\n\t\t// Exit if we've got the line break\n\t\tif(match[2]) {\n\t\t\tbreak;\n\t\t}\n\t\t// Process the token\n\t\tif(match[1]) {\n\t\t\ttokens.push(match[1]);\n\t\t}\n\t\t// Match the next token\n\t\tmatch = reMatch.exec(this.parser.source);\n\t}\n\t// Process the tokens\n\tif(tokens.length > 0) {\n\t\tthis.parser.amendRules(tokens[0],tokens.slice(1));\n\t}\n\t// No parse tree nodes to return\n\treturn [];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/styleblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/styleblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/styleblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for assigning styles and classes to paragraphs and other blocks. For example:\n\n```\n@@.myClass\n@@background-color:red;\nThis paragraph will have the CSS class `myClass`.\n\n* The `<ul>` around this list will also have the class `myClass`\n* List item 2\n\n@@\n```\n\nNote that classes and styles can be mixed subject to the rule that styles must precede classes. For example\n\n```\n@@.myFirstClass.mySecondClass\n@@width:100px;.myThirdClass\nThis is a paragraph\n@@\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"styleblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /@@((?:[^\\.\\r\\n\\s:]+:[^\\r\\n;]+;)+)?(?:\\.([^\\r\\n\\s]+))?\\r?\\n/mg;\n};\n\nexports.parse = function() {\n\tvar reEndString = \"^@@(?:\\\\r?\\\\n)?\";\n\tvar classes = [], styles = [];\n\tdo {\n\t\t// Get the class and style\n\t\tif(this.match[1]) {\n\t\t\tstyles.push(this.match[1]);\n\t\t}\n\t\tif(this.match[2]) {\n\t\t\tclasses.push(this.match[2].split(\".\").join(\" \"));\n\t\t}\n\t\t// Move past the match\n\t\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t\t// Look for another line of classes and styles\n\t\tthis.match = this.matchRegExp.exec(this.parser.source);\n\t} while(this.match && this.match.index === this.parser.pos);\n\t// Parse the body\n\tvar tree = this.parser.parseBlocks(reEndString);\n\tfor(var t=0; t<tree.length; t++) {\n\t\tif(classes.length > 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(tree[t],classes.join(\" \"));\n\t\t}\n\t\tif(styles.length > 0) {\n\t\t\t$tw.utils.addAttributeToParseTreeNode(tree[t],\"style\",styles.join(\"\"));\n\t\t}\n\t}\n\treturn tree;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/styleinline.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/styleinline.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/styleinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for assigning styles and classes to inline runs. For example:\n\n```\n@@.myClass This is some text with a class@@\n@@background-color:red;This is some text with a background colour@@\n@@width:100px;.myClass This is some text with a class and a width@@\n```\n\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"styleinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /@@((?:[^\\.\\r\\n\\s:]+:[^\\r\\n;]+;)+)?(\\.(?:[^\\r\\n\\s]+)\\s+)?/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /@@/g;\n\t// Get the styles and class\n\tvar stylesString = this.match[1],\n\t\tclassString = this.match[2] ? this.match[2].split(\".\").join(\" \") : undefined;\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse the run up to the terminator\n\tvar tree = this.parser.parseInlineRun(reEnd,{eatTerminator: true});\n\t// Return the classed span\n\tvar node = {\n\t\ttype: \"element\",\n\t\ttag: \"span\",\n\t\tattributes: {\n\t\t\t\"class\": {type: \"string\", value: \"tc-inline-style\"}\n\t\t},\n\t\tchildren: tree\n\t};\n\tif(classString) {\n\t\t$tw.utils.addClassToParseTreeNode(node,classString);\n\t}\n\tif(stylesString) {\n\t\t$tw.utils.addAttributeToParseTreeNode(node,\"style\",stylesString);\n\t}\n\treturn [node];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/syslink.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/syslink.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/syslink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for system tiddler links.\nCan be suppressed preceding them with `~`.\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"syslink\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = new RegExp(\n\t\t\"~?\\\\$:\\\\/[\" +\n\t\t$tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length - 2) +\n\t\t\"\\/._-]+\",\n\t\t\"mg\"\n\t);\n};\n\nexports.parse = function() {\n\tvar match = this.match[0];\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Create the link unless it is suppressed\n\tif(match.substr(0,1) === \"~\") {\n\t\treturn [{type: \"text\", text: match.substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"link\",\n\t\t\tattributes: {\n\t\t\t\tto: {type: \"string\", value: match}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\ttext: match\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/table.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/table.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/table.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text block rule for tables.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"table\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\|(?:[^\\n]*)\\|(?:[fhck]?)\\r?(?:\\n|$)/mg;\n};\n\nvar processRow = function(prevColumns) {\n\tvar cellRegExp = /(?:\\|([^\\n\\|]*)\\|)|(\\|[fhck]?\\r?(?:\\n|$))/mg,\n\t\tcellTermRegExp = /((?:\\x20*)\\|)/mg,\n\t\ttree = [],\n\t\tcol = 0,\n\t\tcolSpanCount = 1,\n\t\tprevCell,\n\t\tvAlign;\n\t// Match a single cell\n\tcellRegExp.lastIndex = this.parser.pos;\n\tvar cellMatch = cellRegExp.exec(this.parser.source);\n\twhile(cellMatch && cellMatch.index === this.parser.pos) {\n\t\tif(cellMatch[1] === \"~\") {\n\t\t\t// Rowspan\n\t\t\tvar last = prevColumns[col];\n\t\t\tif(last) {\n\t\t\t\tlast.rowSpanCount++;\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\"rowspan\",last.rowSpanCount);\n\t\t\t\tvAlign = $tw.utils.getAttributeValueFromParseTreeNode(last.element,\"valign\",\"center\");\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\"valign\",vAlign);\n\t\t\t\tif(colSpanCount > 1) {\n\t\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\"colspan\",colSpanCount);\n\t\t\t\t\tcolSpanCount = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Move to just before the `|` terminating the cell\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t} else if(cellMatch[1] === \">\") {\n\t\t\t// Colspan\n\t\t\tcolSpanCount++;\n\t\t\t// Move to just before the `|` terminating the cell\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t} else if(cellMatch[1] === \"<\" && prevCell) {\n\t\t\tcolSpanCount = 1 + $tw.utils.getAttributeValueFromParseTreeNode(prevCell,\"colspan\",1);\n\t\t\t$tw.utils.addAttributeToParseTreeNode(prevCell,\"colspan\",colSpanCount);\n\t\t\tcolSpanCount = 1;\n\t\t\t// Move to just before the `|` terminating the cell\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t} else if(cellMatch[2]) {\n\t\t\t// End of row\n\t\t\tif(prevCell && colSpanCount > 1) {\n\t\t\t\tif(prevCell.attributes && prevCell.attributes && prevCell.attributes.colspan) {\n\t\t\t\t\t\tcolSpanCount += prevCell.attributes.colspan.value;\n\t\t\t\t} else {\n\t\t\t\t\tcolSpanCount -= 1;\n\t\t\t\t}\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(prevCell,\"colspan\",colSpanCount);\n\t\t\t}\n\t\t\tthis.parser.pos = cellRegExp.lastIndex - 1;\n\t\t\tbreak;\n\t\t} else {\n\t\t\t// For ordinary cells, step beyond the opening `|`\n\t\t\tthis.parser.pos++;\n\t\t\t// Look for a space at the start of the cell\n\t\t\tvar spaceLeft = false;\n\t\t\tvAlign = null;\n\t\t\tif(this.parser.source.substr(this.parser.pos).search(/^\\^([^\\^]|\\^\\^)/) === 0) {\n\t\t\t\tvAlign = \"top\";\n\t\t\t} else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) {\n\t\t\t\tvAlign = \"bottom\";\n\t\t\t}\n\t\t\tif(vAlign) {\n\t\t\t\tthis.parser.pos++;\n\t\t\t}\n\t\t\tvar chr = this.parser.source.substr(this.parser.pos,1);\n\t\t\twhile(chr === \" \") {\n\t\t\t\tspaceLeft = true;\n\t\t\t\tthis.parser.pos++;\n\t\t\t\tchr = this.parser.source.substr(this.parser.pos,1);\n\t\t\t}\n\t\t\t// Check whether this is a heading cell\n\t\t\tvar cell;\n\t\t\tif(chr === \"!\") {\n\t\t\t\tthis.parser.pos++;\n\t\t\t\tcell = {type: \"element\", tag: \"th\", children: []};\n\t\t\t} else {\n\t\t\t\tcell = {type: \"element\", tag: \"td\", children: []};\n\t\t\t}\n\t\t\ttree.push(cell);\n\t\t\t// Record information about this cell\n\t\t\tprevCell = cell;\n\t\t\tprevColumns[col] = {rowSpanCount:1,element:cell};\n\t\t\t// Check for a colspan\n\t\t\tif(colSpanCount > 1) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"colspan\",colSpanCount);\n\t\t\t\tcolSpanCount = 1;\n\t\t\t}\n\t\t\t// Parse the cell\n\t\t\tcell.children = this.parser.parseInlineRun(cellTermRegExp,{eatTerminator: true});\n\t\t\t// Set the alignment for the cell\n\t\t\tif(vAlign) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"valign\",vAlign);\n\t\t\t}\n\t\t\tif(this.parser.source.substr(this.parser.pos - 2,1) === \" \") { // spaceRight\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"align\",spaceLeft ? \"center\" : \"left\");\n\t\t\t} else if(spaceLeft) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"align\",\"right\");\n\t\t\t}\n\t\t\t// Move back to the closing `|`\n\t\t\tthis.parser.pos--;\n\t\t}\n\t\tcol++;\n\t\tcellRegExp.lastIndex = this.parser.pos;\n\t\tcellMatch = cellRegExp.exec(this.parser.source);\n\t}\n\treturn tree;\n};\n\nexports.parse = function() {\n\tvar rowContainerTypes = {\"c\":\"caption\", \"h\":\"thead\", \"\":\"tbody\", \"f\":\"tfoot\"},\n\t\ttable = {type: \"element\", tag: \"table\", children: []},\n\t\trowRegExp = /^\\|([^\\n]*)\\|([fhck]?)\\r?(?:\\n|$)/mg,\n\t\trowTermRegExp = /(\\|(?:[fhck]?)\\r?(?:\\n|$))/mg,\n\t\tprevColumns = [],\n\t\tcurrRowType,\n\t\trowContainer,\n\t\trowCount = 0;\n\t// Match the row\n\trowRegExp.lastIndex = this.parser.pos;\n\tvar rowMatch = rowRegExp.exec(this.parser.source);\n\twhile(rowMatch && rowMatch.index === this.parser.pos) {\n\t\tvar rowType = rowMatch[2];\n\t\t// Check if it is a class assignment\n\t\tif(rowType === \"k\") {\n\t\t\t$tw.utils.addClassToParseTreeNode(table,rowMatch[1]);\n\t\t\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\n\t\t} else {\n\t\t\t// Otherwise, create a new row if this one is of a different type\n\t\t\tif(rowType !== currRowType) {\n\t\t\t\trowContainer = {type: \"element\", tag: rowContainerTypes[rowType], children: []};\n\t\t\t\ttable.children.push(rowContainer);\n\t\t\t\tcurrRowType = rowType;\n\t\t\t}\n\t\t\t// Is this a caption row?\n\t\t\tif(currRowType === \"c\") {\n\t\t\t\t// If so, move past the opening `|` of the row\n\t\t\t\tthis.parser.pos++;\n\t\t\t\t// Move the caption to the first row if it isn't already\n\t\t\t\tif(table.children.length !== 1) {\n\t\t\t\t\ttable.children.pop(); // Take rowContainer out of the children array\n\t\t\t\t\ttable.children.splice(0,0,rowContainer); // Insert it at the bottom\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// Set the alignment - TODO: figure out why TW did this\n//\t\t\t\trowContainer.attributes.align = rowCount === 0 ? \"top\" : \"bottom\";\n\t\t\t\t// Parse the caption\n\t\t\t\trowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});\n\t\t\t} else {\n\t\t\t\t// Create the row\n\t\t\t\tvar theRow = {type: \"element\", tag: \"tr\", children: []};\n\t\t\t\t$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? \"oddRow\" : \"evenRow\");\n\t\t\t\trowContainer.children.push(theRow);\n\t\t\t\t// Process the row\n\t\t\t\ttheRow.children = processRow.call(this,prevColumns);\n\t\t\t\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\n\t\t\t\t// Increment the row count\n\t\t\t\trowCount++;\n\t\t\t}\n\t\t}\n\t\trowMatch = rowRegExp.exec(this.parser.source);\n\t}\n\treturn [table];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/transcludeblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/transcludeblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/transcludeblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for block-level transclusion. For example:\n\n```\n{{MyTiddler}}\n{{MyTiddler||TemplateTitle}}\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"transcludeblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}(?:\\r?\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar template = $tw.utils.trim(this.match[2]),\n\t\ttextRef = $tw.utils.trim(this.match[1]);\n\t// Prepare the transclude widget\n\tvar transcludeNode = {\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {},\n\t\t\tisBlock: true\n\t\t};\n\t// Prepare the tiddler widget\n\tvar tr, targetTitle, targetField, targetIndex, tiddlerNode;\n\tif(textRef) {\n\t\ttr = $tw.utils.parseTextReference(textRef);\n\t\ttargetTitle = tr.title;\n\t\ttargetField = tr.field;\n\t\ttargetIndex = tr.index;\n\t\ttiddlerNode = {\n\t\t\ttype: \"tiddler\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: targetTitle}\n\t\t\t},\n\t\t\tisBlock: true,\n\t\t\tchildren: [transcludeNode]\n\t\t};\n\t}\n\tif(template) {\n\t\ttranscludeNode.attributes.tiddler = {type: \"string\", value: template};\n\t\tif(textRef) {\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t} else {\n\t\tif(textRef) {\n\t\t\ttranscludeNode.attributes.tiddler = {type: \"string\", value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \"string\", value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \"string\", value: targetIndex};\n\t\t\t}\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/transcludeinline.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/transcludeinline.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/transcludeinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for inline-level transclusion. For example:\n\n```\n{{MyTiddler}}\n{{MyTiddler||TemplateTitle}}\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"transcludeinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar template = $tw.utils.trim(this.match[2]),\n\t\ttextRef = $tw.utils.trim(this.match[1]);\n\t// Prepare the transclude widget\n\tvar transcludeNode = {\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {}\n\t\t};\n\t// Prepare the tiddler widget\n\tvar tr, targetTitle, targetField, targetIndex, tiddlerNode;\n\tif(textRef) {\n\t\ttr = $tw.utils.parseTextReference(textRef);\n\t\ttargetTitle = tr.title;\n\t\ttargetField = tr.field;\n\t\ttargetIndex = tr.index;\n\t\ttiddlerNode = {\n\t\t\ttype: \"tiddler\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: targetTitle}\n\t\t\t},\n\t\t\tchildren: [transcludeNode]\n\t\t};\n\t}\n\tif(template) {\n\t\ttranscludeNode.attributes.tiddler = {type: \"string\", value: template};\n\t\tif(textRef) {\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t} else {\n\t\tif(textRef) {\n\t\t\ttranscludeNode.attributes.tiddler = {type: \"string\", value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \"string\", value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \"string\", value: targetIndex};\n\t\t\t}\n\t\t\treturn [tiddlerNode];\n\t\t} else {\n\t\t\treturn [transcludeNode];\n\t\t}\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/typedblock.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/typedblock.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/typedblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text rule for typed blocks. For example:\n\n```\n$$$.js\nThis will be rendered as JavaScript\n$$$\n\n$$$.svg\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"150\" height=\"100\">\n <circle cx=\"100\" cy=\"50\" r=\"40\" stroke=\"black\" stroke-width=\"2\" fill=\"red\" />\n</svg>\n$$$\n\n$$$text/vnd.tiddlywiki>text/html\nThis will be rendered as an //HTML representation// of WikiText\n$$$\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.name = \"typedblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\$\\$\\$([^ >\\r\\n]*)(?: *> *([^ \\r\\n]+))?\\r?\\n/mg;\n};\n\nexports.parse = function() {\n\tvar reEnd = /\\r?\\n\\$\\$\\$\\r?(?:\\n|$)/mg;\n\t// Save the type\n\tvar parseType = this.match[1],\n\t\trenderType = this.match[2];\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Look for the end of the block\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(this.parser.source),\n\t\ttext;\n\t// Process the block\n\tif(match) {\n\t\ttext = this.parser.source.substring(this.parser.pos,match.index);\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\ttext = this.parser.source.substr(this.parser.pos);\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\t// Parse the block according to the specified type\n\tvar parser = this.parser.wiki.parseText(parseType,text,{defaultType: \"text/plain\"});\n\t// If there's no render type, just return the parse tree\n\tif(!renderType) {\n\t\treturn parser.tree;\n\t} else {\n\t\t// Otherwise, render to the rendertype and return in a <PRE> tag\n\t\tvar widgetNode = this.parser.wiki.makeWidget(parser),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\"div\");\n\t\twidgetNode.render(container,null);\n\t\ttext = renderType === \"text/html\" ? container.innerHTML : container.textContent;\n\t\treturn [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"pre\",\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\ttext: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/whitespace.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/whitespace.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/whitespace.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki pragma rule for whitespace specifications\n\n```\n\\whitespace trim\n\\whitespace notrim\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"whitespace\";\nexports.types = {pragma: true};\n\n/*\nInstantiate parse rule\n*/\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /^\\\\whitespace[^\\S\\n]/mg;\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\tvar self = this;\n\t// Move past the pragma invocation\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Parse whitespace delimited tokens terminated by a line break\n\tvar reMatch = /[^\\S\\n]*(\\S+)|(\\r?\\n)/mg,\n\t\ttokens = [];\n\treMatch.lastIndex = this.parser.pos;\n\tvar match = reMatch.exec(this.parser.source);\n\twhile(match && match.index === this.parser.pos) {\n\t\tthis.parser.pos = reMatch.lastIndex;\n\t\t// Exit if we've got the line break\n\t\tif(match[2]) {\n\t\t\tbreak;\n\t\t}\n\t\t// Process the token\n\t\tif(match[1]) {\n\t\t\ttokens.push(match[1]);\n\t\t}\n\t\t// Match the next token\n\t\tmatch = reMatch.exec(this.parser.source);\n\t}\n\t// Process the tokens\n\t$tw.utils.each(tokens,function(token) {\n\t\tswitch(token) {\n\t\t\tcase \"trim\":\n\t\t\t\tself.parser.configTrimWhiteSpace = true;\n\t\t\t\tbreak;\n\t\t\tcase \"notrim\":\n\t\t\t\tself.parser.configTrimWhiteSpace = false;\n\t\t\t\tbreak;\n\t\t}\n\t});\n\t// No parse tree nodes to return\n\treturn [];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/rules/wikilink.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/wikilink.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/wikilink.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki text inline rule for wiki links. For example:\n\n```\nAWikiLink\nAnotherLink\n~SuppressedLink\n```\n\nPrecede a camel case word with `~` to prevent it from being recognised as a link.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"wikilink\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = new RegExp($tw.config.textPrimitives.unWikiLink + \"?\" + $tw.config.textPrimitives.wikiLink,\"mg\");\n};\n\n/*\nParse the most recent match\n*/\nexports.parse = function() {\n\t// Get the details of the match\n\tvar linkText = this.match[0];\n\t// Move past the macro call\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// If the link starts with the unwikilink character then just output it as plain text\n\tif(linkText.substr(0,1) === $tw.config.textPrimitives.unWikiLink) {\n\t\treturn [{type: \"text\", text: linkText.substr(1)}];\n\t}\n\t// If the link has been preceded with a blocked letter then don't treat it as a link\n\tif(this.match.index > 0) {\n\t\tvar preRegExp = new RegExp($tw.config.textPrimitives.blockPrefixLetters,\"mg\");\n\t\tpreRegExp.lastIndex = this.match.index-1;\n\t\tvar preMatch = preRegExp.exec(this.parser.source);\n\t\tif(preMatch && preMatch.index === this.match.index-1) {\n\t\t\treturn [{type: \"text\", text: linkText}];\n\t\t}\n\t}\n\treturn [{\n\t\ttype: \"link\",\n\t\tattributes: {\n\t\t\tto: {type: \"string\", value: linkText}\n\t\t},\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\ttext: linkText\n\t\t}]\n\t}];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "wikirule"
},
"$:/core/modules/parsers/wikiparser/wikiparser.js": {
"title": "$:/core/modules/parsers/wikiparser/wikiparser.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/wikiparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe wiki text parser processes blocks of source text into a parse tree.\n\nThe parse tree is made up of nested arrays of these JavaScript objects:\n\n\t{type: \"element\", tag: <string>, attributes: {}, children: []} - an HTML element\n\t{type: \"text\", text: <string>} - a text node\n\t{type: \"entity\", value: <string>} - an entity\n\t{type: \"raw\", html: <string>} - raw HTML\n\nAttributes are stored as hashmaps of the following objects:\n\n\t{type: \"string\", value: <string>} - literal string\n\t{type: \"indirect\", textReference: <textReference>} - indirect through a text reference\n\t{type: \"macro\", macro: <TBD>} - indirect through a macro invocation\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar WikiParser = function(type,text,options) {\n\tthis.wiki = options.wiki;\n\tvar self = this;\n\t// Check for an externally linked tiddler\n\tif($tw.browser && (text || \"\") === \"\" && options._canonical_uri) {\n\t\tthis.loadRemoteTiddler(options._canonical_uri);\n\t\ttext = $tw.language.getRawString(\"LazyLoadingWarning\");\n\t}\n\t// Initialise the classes if we don't have them already\n\tif(!this.pragmaRuleClasses) {\n\t\tWikiParser.prototype.pragmaRuleClasses = $tw.modules.createClassesFromModules(\"wikirule\",\"pragma\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.pragmaRuleClasses,\"$:/config/WikiParserRules/Pragmas/\");\n\t}\n\tif(!this.blockRuleClasses) {\n\t\tWikiParser.prototype.blockRuleClasses = $tw.modules.createClassesFromModules(\"wikirule\",\"block\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.blockRuleClasses,\"$:/config/WikiParserRules/Block/\");\n\t}\n\tif(!this.inlineRuleClasses) {\n\t\tWikiParser.prototype.inlineRuleClasses = $tw.modules.createClassesFromModules(\"wikirule\",\"inline\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.inlineRuleClasses,\"$:/config/WikiParserRules/Inline/\");\n\t}\n\t// Save the parse text\n\tthis.type = type || \"text/vnd.tiddlywiki\";\n\tthis.source = text || \"\";\n\tthis.sourceLength = this.source.length;\n\t// Flag for ignoring whitespace\n\tthis.configTrimWhiteSpace = false;\n\t// Set current parse position\n\tthis.pos = 0;\n\t// Instantiate the pragma parse rules\n\tthis.pragmaRules = this.instantiateRules(this.pragmaRuleClasses,\"pragma\",0);\n\t// Instantiate the parser block and inline rules\n\tthis.blockRules = this.instantiateRules(this.blockRuleClasses,\"block\",0);\n\tthis.inlineRules = this.instantiateRules(this.inlineRuleClasses,\"inline\",0);\n\t// Parse any pragmas\n\tthis.tree = [];\n\tvar topBranch = this.parsePragmas();\n\t// Parse the text into inline runs or blocks\n\tif(options.parseAsInline) {\n\t\ttopBranch.push.apply(topBranch,this.parseInlineRun());\n\t} else {\n\t\ttopBranch.push.apply(topBranch,this.parseBlocks());\n\t}\n\t// Return the parse tree\n};\n\n/*\n*/\nWikiParser.prototype.loadRemoteTiddler = function(url) {\n\tvar self = this;\n\t$tw.utils.httpRequest({\n\t\turl: url,\n\t\ttype: \"GET\",\n\t\tcallback: function(err,data) {\n\t\t\tif(!err) {\n\t\t\t\tvar tiddlers = self.wiki.deserializeTiddlers(\".tid\",data,self.wiki.getCreationFields());\n\t\t\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\t\t\ttiddler[\"_canonical_uri\"] = url;\n\t\t\t\t});\n\t\t\t\tif(tiddlers) {\n\t\t\t\t\tself.wiki.addTiddlers(tiddlers);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\n*/\nWikiParser.prototype.setupRules = function(proto,configPrefix) {\n\tvar self = this;\n\tif(!$tw.safemode) {\n\t\t$tw.utils.each(proto,function(object,name) {\n\t\t\tif(self.wiki.getTiddlerText(configPrefix + name,\"enable\") !== \"enable\") {\n\t\t\t\tdelete proto[name];\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nInstantiate an array of parse rules\n*/\nWikiParser.prototype.instantiateRules = function(classes,type,startPos) {\n\tvar rulesInfo = [],\n\t\tself = this;\n\t$tw.utils.each(classes,function(RuleClass) {\n\t\t// Instantiate the rule\n\t\tvar rule = new RuleClass(self);\n\t\trule.is = {};\n\t\trule.is[type] = true;\n\t\trule.init(self);\n\t\tvar matchIndex = rule.findNextMatch(startPos);\n\t\tif(matchIndex !== undefined) {\n\t\t\trulesInfo.push({\n\t\t\t\trule: rule,\n\t\t\t\tmatchIndex: matchIndex\n\t\t\t});\n\t\t}\n\t});\n\treturn rulesInfo;\n};\n\n/*\nSkip any whitespace at the current position. Options are:\n\ttreatNewlinesAsNonWhitespace: true if newlines are NOT to be treated as whitespace\n*/\nWikiParser.prototype.skipWhitespace = function(options) {\n\toptions = options || {};\n\tvar whitespaceRegExp = options.treatNewlinesAsNonWhitespace ? /([^\\S\\n]+)/mg : /(\\s+)/mg;\n\twhitespaceRegExp.lastIndex = this.pos;\n\tvar whitespaceMatch = whitespaceRegExp.exec(this.source);\n\tif(whitespaceMatch && whitespaceMatch.index === this.pos) {\n\t\tthis.pos = whitespaceRegExp.lastIndex;\n\t}\n};\n\n/*\nGet the next match out of an array of parse rule instances\n*/\nWikiParser.prototype.findNextMatch = function(rules,startPos) {\n\t// Find the best matching rule by finding the closest match position\n\tvar matchingRule,\n\t\tmatchingRulePos = this.sourceLength;\n\t// Step through each rule\n\tfor(var t=0; t<rules.length; t++) {\n\t\tvar ruleInfo = rules[t];\n\t\t// Ask the rule to get the next match if we've moved past the current one\n\t\tif(ruleInfo.matchIndex !== undefined && ruleInfo.matchIndex < startPos) {\n\t\t\truleInfo.matchIndex = ruleInfo.rule.findNextMatch(startPos);\n\t\t}\n\t\t// Adopt this match if it's closer than the current best match\n\t\tif(ruleInfo.matchIndex !== undefined && ruleInfo.matchIndex <= matchingRulePos) {\n\t\t\tmatchingRule = ruleInfo;\n\t\t\tmatchingRulePos = ruleInfo.matchIndex;\n\t\t}\n\t}\n\treturn matchingRule;\n};\n\n/*\nParse any pragmas at the beginning of a block of parse text\n*/\nWikiParser.prototype.parsePragmas = function() {\n\tvar currentTreeBranch = this.tree;\n\twhile(true) {\n\t\t// Skip whitespace\n\t\tthis.skipWhitespace();\n\t\t// Check for the end of the text\n\t\tif(this.pos >= this.sourceLength) {\n\t\t\tbreak;\n\t\t}\n\t\t// Check if we've arrived at a pragma rule match\n\t\tvar nextMatch = this.findNextMatch(this.pragmaRules,this.pos);\n\t\t// If not, just exit\n\t\tif(!nextMatch || nextMatch.matchIndex !== this.pos) {\n\t\t\tbreak;\n\t\t}\n\t\t// Process the pragma rule\n\t\tvar subTree = nextMatch.rule.parse();\n\t\tif(subTree.length > 0) {\n\t\t\t// Quick hack; we only cope with a single parse tree node being returned, which is true at the moment\n\t\t\tcurrentTreeBranch.push.apply(currentTreeBranch,subTree);\n\t\t\tsubTree[0].children = [];\n\t\t\tcurrentTreeBranch = subTree[0].children;\n\t\t}\n\t}\n\treturn currentTreeBranch;\n};\n\n/*\nParse a block from the current position\n\tterminatorRegExpString: optional regular expression string that identifies the end of plain paragraphs. Must not include capturing parenthesis\n*/\nWikiParser.prototype.parseBlock = function(terminatorRegExpString) {\n\tvar terminatorRegExp = terminatorRegExpString ? new RegExp(\"(\" + terminatorRegExpString + \"|\\\\r?\\\\n\\\\r?\\\\n)\",\"mg\") : /(\\r?\\n\\r?\\n)/mg;\n\tthis.skipWhitespace();\n\tif(this.pos >= this.sourceLength) {\n\t\treturn [];\n\t}\n\t// Look for a block rule that applies at the current position\n\tvar nextMatch = this.findNextMatch(this.blockRules,this.pos);\n\tif(nextMatch && nextMatch.matchIndex === this.pos) {\n\t\treturn nextMatch.rule.parse();\n\t}\n\t// Treat it as a paragraph if we didn't find a block rule\n\treturn [{type: \"element\", tag: \"p\", children: this.parseInlineRun(terminatorRegExp)}];\n};\n\n/*\nParse a series of blocks of text until a terminating regexp is encountered or the end of the text\n\tterminatorRegExpString: terminating regular expression\n*/\nWikiParser.prototype.parseBlocks = function(terminatorRegExpString) {\n\tif(terminatorRegExpString) {\n\t\treturn this.parseBlocksTerminated(terminatorRegExpString);\n\t} else {\n\t\treturn this.parseBlocksUnterminated();\n\t}\n};\n\n/*\nParse a block from the current position to the end of the text\n*/\nWikiParser.prototype.parseBlocksUnterminated = function() {\n\tvar tree = [];\n\twhile(this.pos < this.sourceLength) {\n\t\ttree.push.apply(tree,this.parseBlock());\n\t}\n\treturn tree;\n};\n\n/*\nParse blocks of text until a terminating regexp is encountered\n*/\nWikiParser.prototype.parseBlocksTerminated = function(terminatorRegExpString) {\n\tvar terminatorRegExp = new RegExp(\"(\" + terminatorRegExpString + \")\",\"mg\"),\n\t\ttree = [];\n\t// Skip any whitespace\n\tthis.skipWhitespace();\n\t// Check if we've got the end marker\n\tterminatorRegExp.lastIndex = this.pos;\n\tvar match = terminatorRegExp.exec(this.source);\n\t// Parse the text into blocks\n\twhile(this.pos < this.sourceLength && !(match && match.index === this.pos)) {\n\t\tvar blocks = this.parseBlock(terminatorRegExpString);\n\t\ttree.push.apply(tree,blocks);\n\t\t// Skip any whitespace\n\t\tthis.skipWhitespace();\n\t\t// Check if we've got the end marker\n\t\tterminatorRegExp.lastIndex = this.pos;\n\t\tmatch = terminatorRegExp.exec(this.source);\n\t}\n\tif(match && match.index === this.pos) {\n\t\tthis.pos = match.index + match[0].length;\n\t}\n\treturn tree;\n};\n\n/*\nParse a run of text at the current position\n\tterminatorRegExp: a regexp at which to stop the run\n\toptions: see below\nOptions available:\n\teatTerminator: move the parse position past any encountered terminator (default false)\n*/\nWikiParser.prototype.parseInlineRun = function(terminatorRegExp,options) {\n\tif(terminatorRegExp) {\n\t\treturn this.parseInlineRunTerminated(terminatorRegExp,options);\n\t} else {\n\t\treturn this.parseInlineRunUnterminated(options);\n\t}\n};\n\nWikiParser.prototype.parseInlineRunUnterminated = function(options) {\n\tvar tree = [];\n\t// Find the next occurrence of an inline rule\n\tvar nextMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t// Loop around the matches until we've reached the end of the text\n\twhile(this.pos < this.sourceLength && nextMatch) {\n\t\t// Process the text preceding the run rule\n\t\tif(nextMatch.matchIndex > this.pos) {\n\t\t\tthis.pushTextWidget(tree,this.source.substring(this.pos,nextMatch.matchIndex));\n\t\t\tthis.pos = nextMatch.matchIndex;\n\t\t}\n\t\t// Process the run rule\n\t\ttree.push.apply(tree,nextMatch.rule.parse());\n\t\t// Look for the next run rule\n\t\tnextMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t}\n\t// Process the remaining text\n\tif(this.pos < this.sourceLength) {\n\t\tthis.pushTextWidget(tree,this.source.substr(this.pos));\n\t}\n\tthis.pos = this.sourceLength;\n\treturn tree;\n};\n\nWikiParser.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) {\n\toptions = options || {};\n\tvar tree = [];\n\t// Find the next occurrence of the terminator\n\tterminatorRegExp.lastIndex = this.pos;\n\tvar terminatorMatch = terminatorRegExp.exec(this.source);\n\t// Find the next occurrence of a inlinerule\n\tvar inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t// Loop around until we've reached the end of the text\n\twhile(this.pos < this.sourceLength && (terminatorMatch || inlineRuleMatch)) {\n\t\t// Return if we've found the terminator, and it precedes any inline rule match\n\t\tif(terminatorMatch) {\n\t\t\tif(!inlineRuleMatch || inlineRuleMatch.matchIndex >= terminatorMatch.index) {\n\t\t\t\tif(terminatorMatch.index > this.pos) {\n\t\t\t\t\tthis.pushTextWidget(tree,this.source.substring(this.pos,terminatorMatch.index));\n\t\t\t\t}\n\t\t\t\tthis.pos = terminatorMatch.index;\n\t\t\t\tif(options.eatTerminator) {\n\t\t\t\t\tthis.pos += terminatorMatch[0].length;\n\t\t\t\t}\n\t\t\t\treturn tree;\n\t\t\t}\n\t\t}\n\t\t// Process any inline rule, along with the text preceding it\n\t\tif(inlineRuleMatch) {\n\t\t\t// Preceding text\n\t\t\tif(inlineRuleMatch.matchIndex > this.pos) {\n\t\t\t\tthis.pushTextWidget(tree,this.source.substring(this.pos,inlineRuleMatch.matchIndex));\n\t\t\t\tthis.pos = inlineRuleMatch.matchIndex;\n\t\t\t}\n\t\t\t// Process the inline rule\n\t\t\ttree.push.apply(tree,inlineRuleMatch.rule.parse());\n\t\t\t// Look for the next inline rule\n\t\t\tinlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);\n\t\t\t// Look for the next terminator match\n\t\t\tterminatorRegExp.lastIndex = this.pos;\n\t\t\tterminatorMatch = terminatorRegExp.exec(this.source);\n\t\t}\n\t}\n\t// Process the remaining text\n\tif(this.pos < this.sourceLength) {\n\t\tthis.pushTextWidget(tree,this.source.substr(this.pos));\n\t}\n\tthis.pos = this.sourceLength;\n\treturn tree;\n};\n\n/*\nPush a text widget onto an array, respecting the configTrimWhiteSpace setting\n*/\nWikiParser.prototype.pushTextWidget = function(array,text) {\n\tif(this.configTrimWhiteSpace) {\n\t\ttext = $tw.utils.trim(text);\n\t}\n\tif(text) {\n\t\tarray.push({type: \"text\", text: text});\t\t\n\t}\n};\n\n/*\nParse zero or more class specifiers `.classname`\n*/\nWikiParser.prototype.parseClasses = function() {\n\tvar classRegExp = /\\.([^\\s\\.]+)/mg,\n\t\tclassNames = [];\n\tclassRegExp.lastIndex = this.pos;\n\tvar match = classRegExp.exec(this.source);\n\twhile(match && match.index === this.pos) {\n\t\tthis.pos = match.index + match[0].length;\n\t\tclassNames.push(match[1]);\n\t\tmatch = classRegExp.exec(this.source);\n\t}\n\treturn classNames;\n};\n\n/*\nAmend the rules used by this instance of the parser\n\ttype: `only` keeps just the named rules, `except` keeps all but the named rules\n\tnames: array of rule names\n*/\nWikiParser.prototype.amendRules = function(type,names) {\n\tnames = names || [];\n\t// Define the filter function\n\tvar keepFilter;\n\tif(type === \"only\") {\n\t\tkeepFilter = function(name) {\n\t\t\treturn names.indexOf(name) !== -1;\n\t\t};\n\t} else if(type === \"except\") {\n\t\tkeepFilter = function(name) {\n\t\t\treturn names.indexOf(name) === -1;\n\t\t};\n\t} else {\n\t\treturn;\n\t}\n\t// Define a function to process each of our rule arrays\n\tvar processRuleArray = function(ruleArray) {\n\t\tfor(var t=ruleArray.length-1; t>=0; t--) {\n\t\t\tif(!keepFilter(ruleArray[t].rule.name)) {\n\t\t\t\truleArray.splice(t,1);\n\t\t\t}\n\t\t}\n\t};\n\t// Process each rule array\n\tprocessRuleArray(this.pragmaRules);\n\tprocessRuleArray(this.blockRules);\n\tprocessRuleArray(this.inlineRules);\n};\n\nexports[\"text/vnd.tiddlywiki\"] = WikiParser;\n\n})();\n\n",
"type": "application/javascript",
"module-type": "parser"
},
"$:/core/modules/parsers/wikiparser/rules/wikirulebase.js": {
"title": "$:/core/modules/parsers/wikiparser/rules/wikirulebase.js",
"text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/wikirulebase.js\ntype: application/javascript\nmodule-type: global\n\nBase class for wiki parser rules\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nThis constructor is always overridden with a blank constructor, and so shouldn't be used\n*/\nvar WikiRuleBase = function() {\n};\n\n/*\nTo be overridden by individual rules\n*/\nWikiRuleBase.prototype.init = function(parser) {\n\tthis.parser = parser;\n};\n\n/*\nDefault implementation of findNextMatch uses RegExp matching\n*/\nWikiRuleBase.prototype.findNextMatch = function(startPos) {\n\tthis.matchRegExp.lastIndex = startPos;\n\tthis.match = this.matchRegExp.exec(this.parser.source);\n\treturn this.match ? this.match.index : undefined;\n};\n\nexports.WikiRuleBase = WikiRuleBase;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/pluginswitcher.js": {
"title": "$:/core/modules/pluginswitcher.js",
"text": "/*\\\ntitle: $:/core/modules/pluginswitcher.js\ntype: application/javascript\nmodule-type: global\n\nManages switching plugins for themes and languages.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\noptions:\nwiki: wiki store to be used\npluginType: type of plugin to be switched\ncontrollerTitle: title of tiddler used to control switching of this resource\ndefaultPlugins: array of default plugins to be used if nominated plugin isn't found\nonSwitch: callback when plugin is switched (single parameter is array of plugin titles)\n*/\nfunction PluginSwitcher(options) {\n\tthis.wiki = options.wiki;\n\tthis.pluginType = options.pluginType;\n\tthis.controllerTitle = options.controllerTitle;\n\tthis.defaultPlugins = options.defaultPlugins || [];\n\tthis.onSwitch = options.onSwitch;\n\t// Switch to the current plugin\n\tthis.switchPlugins();\n\t// Listen for changes to the selected plugin\n\tvar self = this;\n\tthis.wiki.addEventListener(\"change\",function(changes) {\n\t\tif($tw.utils.hop(changes,self.controllerTitle)) {\n\t\t\tself.switchPlugins();\n\t\t}\n\t});\n}\n\nPluginSwitcher.prototype.switchPlugins = function() {\n\t// Get the name of the current theme\n\tvar selectedPluginTitle = this.wiki.getTiddlerText(this.controllerTitle);\n\t// If it doesn't exist, then fallback to one of the default themes\n\tvar index = 0;\n\twhile(!this.wiki.getTiddler(selectedPluginTitle) && index < this.defaultPlugins.length) {\n\t\tselectedPluginTitle = this.defaultPlugins[index++];\n\t}\n\t// Accumulate the titles of the plugins that we need to load\n\tvar plugins = [],\n\t\tself = this,\n\t\taccumulatePlugin = function(title) {\n\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\tif(tiddler && tiddler.isPlugin() && plugins.indexOf(title) === -1) {\n\t\t\t\tplugins.push(title);\n\t\t\t\tvar pluginInfo = JSON.parse(self.wiki.getTiddlerText(title)),\n\t\t\t\t\tdependents = $tw.utils.parseStringArray(tiddler.fields.dependents || \"\");\n\t\t\t\t$tw.utils.each(dependents,function(title) {\n\t\t\t\t\taccumulatePlugin(title);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\taccumulatePlugin(selectedPluginTitle);\n\t// Unregister any existing theme tiddlers\n\tvar unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType);\n\t// Register any new theme tiddlers\n\tvar registeredTiddlers = $tw.wiki.registerPluginTiddlers(this.pluginType,plugins);\n\t// Unpack the current theme tiddlers\n\t$tw.wiki.unpackPluginTiddlers();\n\t// Call the switch handler\n\tif(this.onSwitch) {\n\t\tthis.onSwitch(plugins);\n\t}\n};\n\nexports.PluginSwitcher = PluginSwitcher;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/saver-handler.js": {
"title": "$:/core/modules/saver-handler.js",
"text": "/*\\\ntitle: $:/core/modules/saver-handler.js\ntype: application/javascript\nmodule-type: global\n\nThe saver handler tracks changes to the store and handles saving the entire wiki via saver modules.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInstantiate the saver handler with the following options:\nwiki: wiki to be synced\ndirtyTracking: true if dirty tracking should be performed\n*/\nfunction SaverHandler(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\tthis.dirtyTracking = options.dirtyTracking;\n\tthis.preloadDirty = options.preloadDirty || [];\n\tthis.pendingAutoSave = false;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\"saver-handler\");\n\t// Initialise our savers\n\tif($tw.browser) {\n\t\tthis.initSavers();\n\t}\n\t// Only do dirty tracking if required\n\tif($tw.browser && this.dirtyTracking) {\n\t\t// Compile the dirty tiddler filter\n\t\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t\t// Count of changes that have not yet been saved\n\t\tvar filteredChanges = self.filterFn.call(self.wiki,function(iterator) {\n\t\t\t\t$tw.utils.each(self.preloadDirty,function(title) {\n\t\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\t\titerator(tiddler,title);\n\t\t\t\t});\n\t\t});\n\t\tthis.numChanges = filteredChanges.length;\n\t\t// Listen out for changes to tiddlers\n\t\tthis.wiki.addEventListener(\"change\",function(changes) {\n\t\t\t// Filter the changes so that we only count changes to tiddlers that we care about\n\t\t\tvar filteredChanges = self.filterFn.call(self.wiki,function(iterator) {\n\t\t\t\t$tw.utils.each(changes,function(change,title) {\n\t\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\t\titerator(tiddler,title);\n\t\t\t\t});\n\t\t\t});\n\t\t\t// Adjust the number of changes\n\t\t\tself.numChanges += filteredChanges.length;\n\t\t\tself.updateDirtyStatus();\n\t\t\t// Do any autosave if one is pending and there's no more change events\n\t\t\tif(self.pendingAutoSave && self.wiki.getSizeOfTiddlerEventQueue() === 0) {\n\t\t\t\t// Check if we're dirty\n\t\t\t\tif(self.numChanges > 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \"autosave\",\n\t\t\t\t\t\tdownloadType: \"text/plain\"\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tself.pendingAutoSave = false;\n\t\t\t}\n\t\t});\n\t\t// Listen for the autosave event\n\t\t$tw.rootWidget.addEventListener(\"tm-auto-save-wiki\",function(event) {\n\t\t\t// Do the autosave unless there are outstanding tiddler change events\n\t\t\tif(self.wiki.getSizeOfTiddlerEventQueue() === 0) {\n\t\t\t\t// Check if we're dirty\n\t\t\t\tif(self.numChanges > 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \"autosave\",\n\t\t\t\t\t\tdownloadType: \"text/plain\"\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Otherwise put ourselves in the \"pending autosave\" state and wait for the change event before we do the autosave\n\t\t\t\tself.pendingAutoSave = true;\n\t\t\t}\n\t\t});\n\t\t// Set up our beforeunload handler\n\t\t$tw.addUnloadTask(function(event) {\n\t\t\tvar confirmationMessage;\n\t\t\tif(self.isDirty()) {\n\t\t\t\tconfirmationMessage = $tw.language.getString(\"UnsavedChangesWarning\");\n\t\t\t\tevent.returnValue = confirmationMessage; // Gecko\n\t\t\t}\n\t\t\treturn confirmationMessage;\n\t\t});\n\t}\n\t// Install the save action handlers\n\tif($tw.browser) {\n\t\t$tw.rootWidget.addEventListener(\"tm-save-wiki\",function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \"text/plain\",\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-download-file\",function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\tmethod: \"download\",\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \"text/plain\",\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t}\n}\n\nSaverHandler.prototype.titleSyncFilter = \"$:/config/SaverFilter\";\nSaverHandler.prototype.titleAutoSave = \"$:/config/AutoSave\";\nSaverHandler.prototype.titleSavedNotification = \"$:/language/Notifications/Save/Done\";\n\n/*\nSelect the appropriate saver modules and set them up\n*/\nSaverHandler.prototype.initSavers = function(moduleType) {\n\tmoduleType = moduleType || \"saver\";\n\t// Instantiate the available savers\n\tthis.savers = [];\n\tvar self = this;\n\t$tw.modules.forEachModuleOfType(moduleType,function(title,module) {\n\t\tif(module.canSave(self)) {\n\t\t\tself.savers.push(module.create(self.wiki));\n\t\t}\n\t});\n\t// Sort the savers into priority order\n\tthis.savers.sort(function(a,b) {\n\t\tif(a.info.priority < b.info.priority) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(a.info.priority > b.info.priority) {\n\t\t\t\treturn +1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nSave the wiki contents. Options are:\n\tmethod: \"save\", \"autosave\" or \"download\"\n\ttemplate: the tiddler containing the template to save\n\tdownloadType: the content type for the saved file\n*/\nSaverHandler.prototype.saveWiki = function(options) {\n\toptions = options || {};\n\tvar self = this,\n\t\tmethod = options.method || \"save\";\n\t// Ignore autosave if disabled\n\tif(method === \"autosave\" && this.wiki.getTiddlerText(this.titleAutoSave,\"yes\") !== \"yes\") {\n\t\treturn false;\n\t}\n\tvar\tvariables = options.variables || {},\n\t\ttemplate = options.template || \"$:/core/save/all\",\n\t\tdownloadType = options.downloadType || \"text/plain\",\n\t\ttext = this.wiki.renderTiddler(downloadType,template,options),\n\t\tcallback = function(err) {\n\t\t\tif(err) {\n\t\t\t\talert($tw.language.getString(\"Error/WhileSaving\") + \":\\n\\n\" + err);\n\t\t\t} else {\n\t\t\t\t// Clear the task queue if we're saving (rather than downloading)\n\t\t\t\tif(method !== \"download\") {\n\t\t\t\t\tself.numChanges = 0;\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t}\n\t\t\t\t$tw.notifier.display(self.titleSavedNotification);\n\t\t\t\tif(options.callback) {\n\t\t\t\t\toptions.callback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t// Call the highest priority saver that supports this method\n\tfor(var t=this.savers.length-1; t>=0; t--) {\n\t\tvar saver = this.savers[t];\n\t\tif(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename}})) {\n\t\t\tthis.logger.log(\"Saving wiki with method\",method,\"through saver\",saver.info.name);\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nChecks whether the wiki is dirty (ie the window shouldn't be closed)\n*/\nSaverHandler.prototype.isDirty = function() {\n\treturn this.numChanges > 0;\n};\n\n/*\nUpdate the document body with the class \"tc-dirty\" if the wiki has unsaved/unsynced changes\n*/\nSaverHandler.prototype.updateDirtyStatus = function() {\n\tif($tw.browser) {\n\t\t$tw.utils.toggleClass(document.body,\"tc-dirty\",this.isDirty());\n\t}\n};\n\nexports.SaverHandler = SaverHandler;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/savers/andtidwiki.js": {
"title": "$:/core/modules/savers/andtidwiki.js",
"text": "/*\\\ntitle: $:/core/modules/savers/andtidwiki.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via the AndTidWiki Android app\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false, netscape: false, Components: false */\n\"use strict\";\n\nvar AndTidWiki = function(wiki) {\n};\n\nAndTidWiki.prototype.save = function(text,method,callback) {\n\t// Get the pathname of this document\n\tvar pathname = decodeURIComponent(document.location.toString().split(\"#\")[0]);\n\t// Strip the file://\n\tif(pathname.indexOf(\"file://\") === 0) {\n\t\tpathname = pathname.substr(7);\n\t}\n\t// Strip any query or location part\n\tvar p = pathname.indexOf(\"?\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\tp = pathname.indexOf(\"#\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\t// Save the file\n\twindow.twi.saveFile(pathname,text);\n\t// Call the callback\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nAndTidWiki.prototype.info = {\n\tname: \"andtidwiki\",\n\tpriority: 1600,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.twi && !!window.twi.saveFile;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new AndTidWiki(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/beaker.js": {
"title": "$:/core/modules/savers/beaker.js",
"text": "/*\\\ntitle: $:/core/modules/savers/beaker.js\ntype: application/javascript\nmodule-type: saver\n\nSaves files using the Beaker browser's (https://beakerbrowser.com) Dat protocol (https://datproject.org/)\nCompatible with beaker >= V0.7.2\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSet up the saver\n*/\nvar BeakerSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nBeakerSaver.prototype.save = function(text,method,callback) {\n\tvar dat = new DatArchive(\"\" + window.location),\n\t\tpathname = (\"\" + window.location.pathname).split(\"#\")[0];\n\tdat.stat(pathname).then(function(value) {\n\t\tif(value.isDirectory()) {\n\t\t\tpathname = pathname + \"/index.html\";\n\t\t}\n\t\tdat.writeFile(pathname,text,\"utf8\").then(function(value) {\n\t\t\tcallback(null);\n\t\t},function(reason) {\n\t\t\tcallback(\"Beaker Saver Write Error: \" + reason);\n\t\t});\n\t},function(reason) {\n\t\tcallback(\"Beaker Saver Stat Error: \" + reason);\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nBeakerSaver.prototype.info = {\n\tname: \"beaker\",\n\tpriority: 3000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.DatArchive && location.protocol===\"dat:\";\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new BeakerSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/download.js": {
"title": "$:/core/modules/savers/download.js",
"text": "/*\\\ntitle: $:/core/modules/savers/download.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via HTML5's download APIs\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar DownloadSaver = function(wiki) {\n};\n\nDownloadSaver.prototype.save = function(text,method,callback,options) {\n\toptions = options || {};\n\t// Get the current filename\n\tvar filename = options.variables.filename;\n\tif(!filename) {\n\t\tvar p = document.location.pathname.lastIndexOf(\"/\");\n\t\tif(p !== -1) {\n\t\t\t// We decode the pathname because document.location is URL encoded by the browser\n\t\t\tfilename = decodeURIComponent(document.location.pathname.substr(p+1));\n\t\t}\n\t}\n\tif(!filename) {\n\t\tfilename = \"tiddlywiki.html\";\n\t}\n\t// Set up the link\n\tvar link = document.createElement(\"a\");\n\tif(Blob !== undefined) {\n\t\tvar blob = new Blob([text], {type: \"text/html\"});\n\t\tlink.setAttribute(\"href\", URL.createObjectURL(blob));\n\t} else {\n\t\tlink.setAttribute(\"href\",\"data:text/html,\" + encodeURIComponent(text));\n\t}\n\tlink.setAttribute(\"download\",filename);\n\tdocument.body.appendChild(link);\n\tlink.click();\n\tdocument.body.removeChild(link);\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nDownloadSaver.prototype.info = {\n\tname: \"download\",\n\tpriority: 100\n};\n\nObject.defineProperty(DownloadSaver.prototype.info, \"capabilities\", {\n\tget: function() {\n\t\tvar capabilities = [\"save\", \"download\"];\n\t\tif(($tw.wiki.getTextReference(\"$:/config/DownloadSaver/AutoSave\") || \"\").toLowerCase() === \"yes\") {\n\t\t\tcapabilities.push(\"autosave\");\n\t\t}\n\t\treturn capabilities;\n\t}\n});\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn document.createElement(\"a\").download !== undefined;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new DownloadSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/fsosaver.js": {
"title": "$:/core/modules/savers/fsosaver.js",
"text": "/*\\\ntitle: $:/core/modules/savers/fsosaver.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via MS FileSystemObject ActiveXObject\n\nNote: Since TiddlyWiki's markup contains the MOTW, the FileSystemObject normally won't be available. \nHowever, if the wiki is loaded as an .HTA file (Windows HTML Applications) then the FSO can be used.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar FSOSaver = function(wiki) {\n};\n\nFSOSaver.prototype.save = function(text,method,callback) {\n\t// Get the pathname of this document\n\tvar pathname = unescape(document.location.pathname);\n\t// Test for a Windows path of the form /x:\\blah...\n\tif(/^\\/[A-Z]\\:\\\\[^\\\\]+/i.test(pathname)) {\t// ie: ^/[a-z]:/[^/]+\n\t\t// Remove the leading slash\n\t\tpathname = pathname.substr(1);\n\t} else if(document.location.hostname !== \"\" && /^\\/\\\\[^\\\\]+\\\\[^\\\\]+/i.test(pathname)) {\t// test for \\\\server\\share\\blah... - ^/[^/]+/[^/]+\n\t\t// Remove the leading slash\n\t\tpathname = pathname.substr(1);\n\t\t// reconstruct UNC path\n\t\tpathname = \"\\\\\\\\\" + document.location.hostname + pathname;\n\t} else {\n\t\treturn false;\n\t}\n\t// Save the file (as UTF-16)\n\tvar fso = new ActiveXObject(\"Scripting.FileSystemObject\");\n\tvar file = fso.OpenTextFile(pathname,2,-1,-1);\n\tfile.Write(text);\n\tfile.Close();\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nFSOSaver.prototype.info = {\n\tname: \"FSOSaver\",\n\tpriority: 120,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\ttry {\n\t\treturn (window.location.protocol === \"file:\") && !!(new ActiveXObject(\"Scripting.FileSystemObject\"));\n\t} catch(e) { return false; }\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new FSOSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/github.js": {
"title": "$:/core/modules/savers/github.js",
"text": "/*\\\ntitle: $:/core/modules/savers/github.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitHub v3 REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitHubSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitHubSaver.prototype.save = function(text,method,callback) {\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/GitHub/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"github\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/GitHub/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/GitHub/Path\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/GitHub/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/GitHub/Branch\") || \"master\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/GitHub/ServerURL\") || \"https://api.github.com\",\n\t\theaders = {\n\t\t\t\"Accept\": \"application/vnd.github.v3+json\",\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Authorization\": \"Basic \" + window.btoa(username + \":\" + password)\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !path || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/repos/\" + repo + \"/contents\" + path;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tmessage: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: $tw.utils.base64Encode(text),\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a PUT request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + filename,\n\t\t\t\ttype: \"PUT\",\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitHubSaver.prototype.info = {\n\tname: \"github\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitHubSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/gitlab.js": {
"title": "$:/core/modules/savers/gitlab.js",
"text": "/*\\\ntitle: $:/core/modules/savers/gitlab.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitLab REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: true */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitLabSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitLabSaver.prototype.save = function(text,method,callback) {\n\t/* See https://docs.gitlab.com/ee/api/repository_files.html */\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/GitLab/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"gitlab\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/GitLab/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/GitLab/Path\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/GitLab/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/GitLab/Branch\") || \"master\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/GitLab/ServerURL\") || \"https://gitlab.com/api/v4\",\n\t\theaders = {\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Private-Token\": password\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !path || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/projects/\" + encodeURIComponent(repo) + \"/repository/\";\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri + \"tree/\" + encodeURIComponent(path.replace(/^\\/+|\\/$/g, '')),\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar requestType = \"POST\";\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\trequestType = \"PUT\";\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tcommit_message: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: text,\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + \"files/\" + encodeURIComponent(path.replace(/^\\/+/, '') + filename),\n\t\t\t\ttype: requestType,\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitLabSaver.prototype.info = {\n\tname: \"gitlab\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitLabSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/manualdownload.js": {
"title": "$:/core/modules/savers/manualdownload.js",
"text": "/*\\\ntitle: $:/core/modules/savers/manualdownload.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via HTML5's download APIs\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Title of the tiddler containing the download message\nvar downloadInstructionsTitle = \"$:/language/Modals/Download\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar ManualDownloadSaver = function(wiki) {\n};\n\nManualDownloadSaver.prototype.save = function(text,method,callback) {\n\t$tw.modal.display(downloadInstructionsTitle,{\n\t\tdownloadLink: \"data:text/html,\" + encodeURIComponent(text)\n\t});\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nManualDownloadSaver.prototype.info = {\n\tname: \"manualdownload\",\n\tpriority: 0,\n\tcapabilities: [\"save\", \"download\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new ManualDownloadSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/msdownload.js": {
"title": "$:/core/modules/savers/msdownload.js",
"text": "/*\\\ntitle: $:/core/modules/savers/msdownload.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via window.navigator.msSaveBlob()\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar MsDownloadSaver = function(wiki) {\n};\n\nMsDownloadSaver.prototype.save = function(text,method,callback) {\n\t// Get the current filename\n\tvar filename = \"tiddlywiki.html\",\n\t\tp = document.location.pathname.lastIndexOf(\"/\");\n\tif(p !== -1) {\n\t\tfilename = document.location.pathname.substr(p+1);\n\t}\n\t// Set up the link\n\tvar blob = new Blob([text], {type: \"text/html\"});\n\twindow.navigator.msSaveBlob(blob,filename);\n\t// Callback that we succeeded\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nMsDownloadSaver.prototype.info = {\n\tname: \"msdownload\",\n\tpriority: 110,\n\tcapabilities: [\"save\", \"download\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.navigator.msSaveBlob;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new MsDownloadSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/put.js": {
"title": "$:/core/modules/savers/put.js",
"text": "/*\\\ntitle: $:/core/modules/savers/put.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by performing a PUT request to the server\n\nWorks with any server which accepts a PUT request\nto the current URL, such as a WebDAV server.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nRetrieve ETag if available\n*/\nvar retrieveETag = function(self) {\n\tvar headers = {\n\t\tAccept: \"*/*;charset=UTF-8\"\n\t};\n\t$tw.utils.httpRequest({\n\t\turl: self.uri(),\n\t\ttype: \"HEAD\",\n\t\theaders: headers,\n\t\tcallback: function(err,data,xhr) {\n\t\t\tif(err) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar etag = xhr.getResponseHeader(\"ETag\");\n\t\t\tif(!etag) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tself.etag = etag.replace(/^W\\//,\"\");\n\t\t}\n\t});\n};\n\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar PutSaver = function(wiki) {\n\tthis.wiki = wiki;\n\tvar self = this;\n\tvar uri = this.uri();\n\t// Async server probe. Until probe finishes, save will fail fast\n\t// See also https://github.com/Jermolene/TiddlyWiki5/issues/2276\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \"OPTIONS\",\n\t\tcallback: function(err,data,xhr) {\n\t\t\t// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1\n\t\t\tif(!err) {\n\t\t\t\tself.serverAcceptsPuts = xhr.status === 200 && !!xhr.getResponseHeader(\"dav\");\n\t\t\t}\n\t\t}\n\t});\n\tretrieveETag(this);\n};\n\nPutSaver.prototype.uri = function() {\n\treturn document.location.toString().split(\"#\")[0];\n};\n\n// TODO: in case of edit conflict\n// Prompt: Do you want to save over this? Y/N\n// Merging would be ideal, and may be possible using future generic merge flow\nPutSaver.prototype.save = function(text,method,callback) {\n\tif(!this.serverAcceptsPuts) {\n\t\treturn false;\n\t}\n\tvar self = this;\n\tvar headers = {\n\t\t\"Content-Type\": \"text/html;charset=UTF-8\"\n\t};\n\tif(this.etag) {\n\t\theaders[\"If-Match\"] = this.etag;\n\t}\n\t$tw.utils.httpRequest({\n\t\turl: this.uri(),\n\t\ttype: \"PUT\",\n\t\theaders: headers,\n\t\tdata: text,\n\t\tcallback: function(err,data,xhr) {\n\t\t\tif(err) {\n\t\t\t\t// response is textual: \"XMLHttpRequest error code: 412\"\n\t\t\t\tvar status = Number(err.substring(err.indexOf(':') + 2, err.length))\n\t\t\t\tif(status === 412) { // edit conflict\n\t\t\t\t\tvar message = $tw.language.getString(\"Error/EditConflict\");\n\t\t\t\t\tcallback(message);\n\t\t\t\t} else {\n\t\t\t\t\tcallback(err); // fail\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tself.etag = xhr.getResponseHeader(\"ETag\");\n\t\t\t\tif(self.etag == null) {\n\t\t\t\t\tretrieveETag(self);\n\t\t\t\t}\n\t\t\t\tcallback(null); // success\n\t\t\t}\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nPutSaver.prototype.info = {\n\tname: \"put\",\n\tpriority: 2000,\n\tcapabilities: [\"save\",\"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn /^https?:/.test(location.protocol);\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new PutSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/tiddlyfox.js": {
"title": "$:/core/modules/savers/tiddlyfox.js",
"text": "/*\\\ntitle: $:/core/modules/savers/tiddlyfox.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via the TiddlyFox file extension\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false, netscape: false, Components: false */\n\"use strict\";\n\nvar TiddlyFoxSaver = function(wiki) {\n};\n\nTiddlyFoxSaver.prototype.save = function(text,method,callback) {\n\tvar messageBox = document.getElementById(\"tiddlyfox-message-box\");\n\tif(messageBox) {\n\t\t// Get the pathname of this document\n\t\tvar pathname = document.location.toString().split(\"#\")[0];\n\t\t// Replace file://localhost/ with file:///\n\t\tif(pathname.indexOf(\"file://localhost/\") === 0) {\n\t\t\tpathname = \"file://\" + pathname.substr(16);\n\t\t}\n\t\t// Windows path file:///x:/blah/blah --> x:\\blah\\blah\n\t\tif(/^file\\:\\/\\/\\/[A-Z]\\:\\//i.test(pathname)) {\n\t\t\t// Remove the leading slash and convert slashes to backslashes\n\t\t\tpathname = pathname.substr(8).replace(/\\//g,\"\\\\\");\n\t\t// Firefox Windows network path file://///server/share/blah/blah --> //server/share/blah/blah\n\t\t} else if(pathname.indexOf(\"file://///\") === 0) {\n\t\t\tpathname = \"\\\\\\\\\" + unescape(pathname.substr(10)).replace(/\\//g,\"\\\\\");\n\t\t// Mac/Unix local path file:///path/path --> /path/path\n\t\t} else if(pathname.indexOf(\"file:///\") === 0) {\n\t\t\tpathname = unescape(pathname.substr(7));\n\t\t// Mac/Unix local path file:/path/path --> /path/path\n\t\t} else if(pathname.indexOf(\"file:/\") === 0) {\n\t\t\tpathname = unescape(pathname.substr(5));\n\t\t// Otherwise Windows networth path file://server/share/path/path --> \\\\server\\share\\path\\path\n\t\t} else {\n\t\t\tpathname = \"\\\\\\\\\" + unescape(pathname.substr(7)).replace(new RegExp(\"/\",\"g\"),\"\\\\\");\n\t\t}\n\t\t// Create the message element and put it in the message box\n\t\tvar message = document.createElement(\"div\");\n\t\tmessage.setAttribute(\"data-tiddlyfox-path\",decodeURIComponent(pathname));\n\t\tmessage.setAttribute(\"data-tiddlyfox-content\",text);\n\t\tmessageBox.appendChild(message);\n\t\t// Add an event handler for when the file has been saved\n\t\tmessage.addEventListener(\"tiddlyfox-have-saved-file\",function(event) {\n\t\t\tcallback(null);\n\t\t}, false);\n\t\t// Create and dispatch the custom event to the extension\n\t\tvar event = document.createEvent(\"Events\");\n\t\tevent.initEvent(\"tiddlyfox-save-file\",true,false);\n\t\tmessage.dispatchEvent(event);\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nInformation about this saver\n*/\nTiddlyFoxSaver.prototype.info = {\n\tname: \"tiddlyfox\",\n\tpriority: 1500,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TiddlyFoxSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/tiddlyie.js": {
"title": "$:/core/modules/savers/tiddlyie.js",
"text": "/*\\\ntitle: $:/core/modules/savers/tiddlyie.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via Internet Explorer BHO extenion (TiddlyIE)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar TiddlyIESaver = function(wiki) {\n};\n\nTiddlyIESaver.prototype.save = function(text,method,callback) {\n\t// Check existence of TiddlyIE BHO extension (note: only works after document is complete)\n\tif(typeof(window.TiddlyIE) != \"undefined\") {\n\t\t// Get the pathname of this document\n\t\tvar pathname = unescape(document.location.pathname);\n\t\t// Test for a Windows path of the form /x:/blah...\n\t\tif(/^\\/[A-Z]\\:\\/[^\\/]+/i.test(pathname)) {\t// ie: ^/[a-z]:/[^/]+ (is this better?: ^/[a-z]:/[^/]+(/[^/]+)*\\.[^/]+ )\n\t\t\t// Remove the leading slash\n\t\t\tpathname = pathname.substr(1);\n\t\t\t// Convert slashes to backslashes\n\t\t\tpathname = pathname.replace(/\\//g,\"\\\\\");\n\t\t} else if(document.hostname !== \"\" && /^\\/[^\\/]+\\/[^\\/]+/i.test(pathname)) {\t// test for \\\\server\\share\\blah... - ^/[^/]+/[^/]+\n\t\t\t// Convert slashes to backslashes\n\t\t\tpathname = pathname.replace(/\\//g,\"\\\\\");\n\t\t\t// reconstruct UNC path\n\t\t\tpathname = \"\\\\\\\\\" + document.location.hostname + pathname;\n\t\t} else return false;\n\t\t// Prompt the user to save the file\n\t\twindow.TiddlyIE.save(pathname, text);\n\t\t// Callback that we succeeded\n\t\tcallback(null);\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nInformation about this saver\n*/\nTiddlyIESaver.prototype.info = {\n\tname: \"tiddlyiesaver\",\n\tpriority: 1500,\n\tcapabilities: [\"save\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn (window.location.protocol === \"file:\");\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TiddlyIESaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/twedit.js": {
"title": "$:/core/modules/savers/twedit.js",
"text": "/*\\\ntitle: $:/core/modules/savers/twedit.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via the TWEdit iOS app\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false, netscape: false, Components: false */\n\"use strict\";\n\nvar TWEditSaver = function(wiki) {\n};\n\nTWEditSaver.prototype.save = function(text,method,callback) {\n\t// Bail if we're not running under TWEdit\n\tif(typeof DeviceInfo !== \"object\") {\n\t\treturn false;\n\t}\n\t// Get the pathname of this document\n\tvar pathname = decodeURIComponent(document.location.pathname);\n\t// Strip any query or location part\n\tvar p = pathname.indexOf(\"?\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\tp = pathname.indexOf(\"#\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\t// Remove the leading \"/Documents\" from path\n\tvar prefix = \"/Documents\";\n\tif(pathname.indexOf(prefix) === 0) {\n\t\tpathname = pathname.substr(prefix.length);\n\t}\n\t// Error handler\n\tvar errorHandler = function(event) {\n\t\t// Error\n\t\tcallback($tw.language.getString(\"Error/SavingToTWEdit\") + \": \" + event.target.error.code);\n\t};\n\t// Get the file system\n\twindow.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fileSystem) {\n\t\t// Now we've got the filesystem, get the fileEntry\n\t\tfileSystem.root.getFile(pathname, {create: true}, function(fileEntry) {\n\t\t\t// Now we've got the fileEntry, create the writer\n\t\t\tfileEntry.createWriter(function(writer) {\n\t\t\t\twriter.onerror = errorHandler;\n\t\t\t\twriter.onwrite = function() {\n\t\t\t\t\tcallback(null);\n\t\t\t\t};\n\t\t\t\twriter.position = 0;\n\t\t\t\twriter.write(text);\n\t\t\t},errorHandler);\n\t\t}, errorHandler);\n\t}, errorHandler);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nTWEditSaver.prototype.info = {\n\tname: \"twedit\",\n\tpriority: 1600,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TWEditSaver(wiki);\n};\n\n/////////////////////////// Hack\n// HACK: This ensures that TWEdit recognises us as a TiddlyWiki document\nif($tw.browser) {\n\twindow.version = {title: \"TiddlyWiki\"};\n}\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/savers/upload.js": {
"title": "$:/core/modules/savers/upload.js",
"text": "/*\\\ntitle: $:/core/modules/savers/upload.js\ntype: application/javascript\nmodule-type: saver\n\nHandles saving changes via upload to a server.\n\nDesigned to be compatible with BidiX's UploadPlugin at http://tiddlywiki.bidix.info/#UploadPlugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar UploadSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nUploadSaver.prototype.save = function(text,method,callback) {\n\t// Get the various parameters we need\n\tvar backupDir = this.wiki.getTextReference(\"$:/UploadBackupDir\") || \".\",\n\t\tusername = this.wiki.getTextReference(\"$:/UploadName\"),\n\t\tpassword = $tw.utils.getPassword(\"upload\"),\n\t\tuploadDir = this.wiki.getTextReference(\"$:/UploadDir\") || \".\",\n\t\tuploadFilename = this.wiki.getTextReference(\"$:/UploadFilename\") || \"index.html\",\n\t\turl = this.wiki.getTextReference(\"$:/UploadURL\");\n\t// Bail out if we don't have the bits we need\n\tif(!username || username.toString().trim() === \"\" || !password || password.toString().trim() === \"\") {\n\t\treturn false;\n\t}\n\t// Construct the url if not provided\n\tif(!url) {\n\t\turl = \"http://\" + username + \".tiddlyspot.com/store.cgi\";\n\t}\n\t// Assemble the header\n\tvar boundary = \"---------------------------\" + \"AaB03x\";\t\n\tvar uploadFormName = \"UploadPlugin\";\n\tvar head = [];\n\thead.push(\"--\" + boundary + \"\\r\\nContent-disposition: form-data; name=\\\"UploadPlugin\\\"\\r\\n\");\n\thead.push(\"backupDir=\" + backupDir + \";user=\" + username + \";password=\" + password + \";uploaddir=\" + uploadDir + \";;\"); \n\thead.push(\"\\r\\n\" + \"--\" + boundary);\n\thead.push(\"Content-disposition: form-data; name=\\\"userfile\\\"; filename=\\\"\" + uploadFilename + \"\\\"\");\n\thead.push(\"Content-Type: text/html;charset=UTF-8\");\n\thead.push(\"Content-Length: \" + text.length + \"\\r\\n\");\n\thead.push(\"\");\n\t// Assemble the tail and the data itself\n\tvar tail = \"\\r\\n--\" + boundary + \"--\\r\\n\",\n\t\tdata = head.join(\"\\r\\n\") + text + tail;\n\t// Do the HTTP post\n\tvar http = new XMLHttpRequest();\n\thttp.open(\"POST\",url,true,username,password);\n\thttp.setRequestHeader(\"Content-Type\",\"multipart/form-data; charset=UTF-8; boundary=\" + boundary);\n\thttp.onreadystatechange = function() {\n\t\tif(http.readyState == 4 && http.status == 200) {\n\t\t\tif(http.responseText.substr(0,4) === \"0 - \") {\n\t\t\t\tcallback(null);\n\t\t\t} else {\n\t\t\t\tcallback(http.responseText);\n\t\t\t}\n\t\t}\n\t};\n\ttry {\n\t\thttp.send(data);\n\t} catch(ex) {\n\t\treturn callback($tw.language.getString(\"Error/Caption\") + \":\" + ex);\n\t}\n\t$tw.notifier.display(\"$:/language/Notifications/Save/Starting\");\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nUploadSaver.prototype.info = {\n\tname: \"upload\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new UploadSaver(wiki);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "saver"
},
"$:/core/modules/server/authenticators/basic.js": {
"title": "$:/core/modules/server/authenticators/basic.js",
"text": "/*\\\ntitle: $:/core/modules/server/authenticators/basic.js\ntype: application/javascript\nmodule-type: authenticator\n\nAuthenticator for WWW basic authentication\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nif($tw.node) {\n\tvar util = require(\"util\"),\n\t\tfs = require(\"fs\"),\n\t\turl = require(\"url\"),\n\t\tpath = require(\"path\");\n}\n\nfunction BasicAuthenticator(server) {\n\tthis.server = server;\n\tthis.credentialsData = [];\n}\n\n/*\nReturns true if the authenticator is active, false if it is inactive, or a string if there is an error\n*/\nBasicAuthenticator.prototype.init = function() {\n\t// Read the credentials data\n\tthis.credentialsFilepath = this.server.get(\"credentials\");\n\tif(this.credentialsFilepath) {\n\t\tvar resolveCredentialsFilepath = path.resolve($tw.boot.wikiPath,this.credentialsFilepath);\n\t\tif(fs.existsSync(resolveCredentialsFilepath) && !fs.statSync(resolveCredentialsFilepath).isDirectory()) {\n\t\t\tvar credentialsText = fs.readFileSync(resolveCredentialsFilepath,\"utf8\"),\n\t\t\t\tcredentialsData = $tw.utils.parseCsvStringWithHeader(credentialsText);\n\t\t\tif(typeof credentialsData === \"string\") {\n\t\t\t\treturn \"Error: \" + credentialsData + \" reading credentials from '\" + resolveCredentialsFilepath + \"'\";\n\t\t\t} else {\n\t\t\t\tthis.credentialsData = credentialsData;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"Error: Unable to load user credentials from '\" + resolveCredentialsFilepath + \"'\";\n\t\t}\n\t}\n\t// Add the hardcoded username and password if specified\n\tif(this.server.get(\"username\") && this.server.get(\"password\")) {\n\t\tthis.credentialsData = this.credentialsData || [];\n\t\tthis.credentialsData.push({\n\t\t\tusername: this.server.get(\"username\"),\n\t\t\tpassword: this.server.get(\"password\")\n\t\t});\n\t}\n\treturn this.credentialsData.length > 0;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \"authenticatedUsername\" state variable.\nReturns false if the request couldn't be authenticated having sent an appropriate response to the browser\n*/\nBasicAuthenticator.prototype.authenticateRequest = function(request,response,state) {\n\t// Extract the incoming username and password from the request\n\tvar header = request.headers.authorization || \"\";\n\tif(!header && state.allowAnon) {\n\t\t// If there's no header and anonymous access is allowed then we don't set authenticatedUsername\n\t\treturn true;\n\t}\n\tvar token = header.split(/\\s+/).pop() || \"\",\n\t\tauth = $tw.utils.base64Decode(token),\n\t\tparts = auth.split(/:/),\n\t\tincomingUsername = parts[0],\n\t\tincomingPassword = parts[1];\n\t// Check that at least one of the credentials matches\n\tvar matchingCredentials = this.credentialsData.find(function(credential) {\n\t\treturn credential.username === incomingUsername && credential.password === incomingPassword;\n\t});\n\tif(matchingCredentials) {\n\t\t// If so, add the authenticated username to the request state\n\t\tstate.authenticatedUsername = incomingUsername;\n\t\treturn true;\n\t} else {\n\t\t// If not, return an authentication challenge\n\t\tresponse.writeHead(401,\"Authentication required\",{\n\t\t\t\"WWW-Authenticate\": 'Basic realm=\"Please provide your username and password to login to ' + state.server.servername + '\"'\n\t\t});\n\t\tresponse.end();\n\t\treturn false;\n\t}\n};\n\nexports.AuthenticatorClass = BasicAuthenticator;\n\n})();\n",
"type": "application/javascript",
"module-type": "authenticator"
},
"$:/core/modules/server/authenticators/header.js": {
"title": "$:/core/modules/server/authenticators/header.js",
"text": "/*\\\ntitle: $:/core/modules/server/authenticators/header.js\ntype: application/javascript\nmodule-type: authenticator\n\nAuthenticator for trusted header authentication\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nfunction HeaderAuthenticator(server) {\n\tthis.server = server;\n\tthis.header = server.get(\"authenticated-user-header\");\n}\n\n/*\nReturns true if the authenticator is active, false if it is inactive, or a string if there is an error\n*/\nHeaderAuthenticator.prototype.init = function() {\n\treturn !!this.header;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \"authenticatedUsername\" state variable.\nReturns false if the request couldn't be authenticated having sent an appropriate response to the browser\n*/\nHeaderAuthenticator.prototype.authenticateRequest = function(request,response,state) {\n\t// Otherwise, authenticate as the username in the specified header\n\tvar username = request.headers[this.header];\n\tif(!username && !state.allowAnon) {\n\t\tresponse.writeHead(401,\"Authorization header required to login to '\" + state.server.servername + \"'\");\n\t\tresponse.end();\n\t\treturn false;\n\t} else {\n\t\t// authenticatedUsername will be undefined for anonymous users\n\t\tstate.authenticatedUsername = username;\n\t\treturn true;\n\t}\n};\n\nexports.AuthenticatorClass = HeaderAuthenticator;\n\n})();\n",
"type": "application/javascript",
"module-type": "authenticator"
},
"$:/core/modules/server/routes/delete-tiddler.js": {
"title": "$:/core/modules/server/routes/delete-tiddler.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/delete-tiddler.js\ntype: application/javascript\nmodule-type: route\n\nDELETE /recipes/default/tiddlers/:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"DELETE\";\n\nexports.path = /^\\/bags\\/default\\/tiddlers\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]);\n\tstate.wiki.deleteTiddler(title);\n\tresponse.writeHead(204, \"OK\", {\n\t\t\"Content-Type\": \"text/plain\"\n\t});\n\tresponse.end();\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-favicon.js": {
"title": "$:/core/modules/server/routes/get-favicon.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-favicon.js\ntype: application/javascript\nmodule-type: route\n\nGET /favicon.ico\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/favicon.ico$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\"Content-Type\": \"image/x-icon\"});\n\tvar buffer = state.wiki.getTiddlerText(\"$:/favicon.ico\",\"\");\n\tresponse.end(buffer,\"base64\");\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-file.js": {
"title": "$:/core/modules/server/routes/get-file.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-file.js\ntype: application/javascript\nmodule-type: route\n\nGET /files/:filepath\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/files\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar path = require(\"path\"),\n\t\tfs = require(\"fs\"),\n\t\tutil = require(\"util\");\n\tvar filename = path.resolve($tw.boot.wikiPath,\"files\",decodeURIComponent(state.params[0])),\n\t\textension = path.extname(filename);\n\tfs.readFile(filename,function(err,content) {\n\t\tvar status,content,type = \"text/plain\";\n\t\tif(err) {\n\t\t\tif(err.code === \"ENOENT\") {\n\t\t\t\tstatus = 404;\n\t\t\t\tcontent = \"File '\" + filename + \"' not found\";\n\t\t\t} else if(err.code === \"EACCES\") {\n\t\t\t\tstatus = 403;\n\t\t\t\tcontent = \"You do not have permission to access the file '\" + filename + \"'\";\n\t\t\t} else {\n\t\t\t\tstatus = 500;\n\t\t\t\tcontent = err.toString();\n\t\t\t}\n\t\t} else {\n\t\t\tstatus = 200;\n\t\t\tcontent = content;\n\t\t\ttype = ($tw.config.fileExtensionInfo[extension] ? $tw.config.fileExtensionInfo[extension].type : \"application/octet-stream\");\n\t\t}\n\t\tresponse.writeHead(status,{\n\t\t\t\"Content-Type\": type\n\t\t});\n\t\tresponse.end(content);\n\t});\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-index.js": {
"title": "$:/core/modules/server/routes/get-index.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-index.js\ntype: application/javascript\nmodule-type: route\n\nGET /\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar zlib = require(\"zlib\");\n\nexports.method = \"GET\";\n\nexports.path = /^\\/$/;\n\nexports.handler = function(request,response,state) {\n\tvar acceptEncoding = request.headers[\"accept-encoding\"];\n\tif(!acceptEncoding) {\n\t\tacceptEncoding = \"\";\n\t}\n\tvar text = state.wiki.renderTiddler(state.server.get(\"root-render-type\"),state.server.get(\"root-tiddler\")),\n\t\tresponseHeaders = {\n\t\t\"Content-Type\": state.server.get(\"root-serve-type\")\n\t};\n\t/*\n\tIf the gzip=yes flag for `listen` is set, check if the user agent permits\n\tcompression. If so, compress our response. Note that we use the synchronous\n\tfunctions from zlib to stay in the imperative style. The current `Server`\n\tdoesn't depend on this, and we may just as well use the async versions.\n\t*/\n\tif(state.server.enableGzip) {\n\t\tif (/\\bdeflate\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\"Content-Encoding\"] = \"deflate\";\n\t\t\ttext = zlib.deflateSync(text);\n\t\t} else if (/\\bgzip\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\"Content-Encoding\"] = \"gzip\";\n\t\t\ttext = zlib.gzipSync(text);\n\t\t}\n\t}\n\tresponse.writeHead(200,responseHeaders);\n\tresponse.end(text);\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-login-basic.js": {
"title": "$:/core/modules/server/routes/get-login-basic.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-login-basic.js\ntype: application/javascript\nmodule-type: route\n\nGET /login-basic -- force a Basic Authentication challenge\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/login-basic$/;\n\nexports.handler = function(request,response,state) {\n\tif(!state.authenticatedUsername) {\n\t\t// Challenge if there's no username\n\t\tresponse.writeHead(401,{\n\t\t\t\"WWW-Authenticate\": 'Basic realm=\"Please provide your username and password to login to ' + state.server.servername + '\"'\n\t\t});\n\t\tresponse.end();\t\t\n\t} else {\n\t\t// Redirect to the root wiki if login worked\n\t\tresponse.writeHead(302,{\n\t\t\tLocation: \"/\"\n\t\t});\n\t\tresponse.end();\n\t}\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-status.js": {
"title": "$:/core/modules/server/routes/get-status.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-status.js\ntype: application/javascript\nmodule-type: route\n\nGET /status\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/status$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\tvar text = JSON.stringify({\n\t\tusername: state.authenticatedUsername || state.server.get(\"anon-username\") || \"\",\n\t\tanonymous: !state.authenticatedUsername,\n\t\tread_only: !state.server.isAuthorized(\"writers\",state.authenticatedUsername),\n\t\tspace: {\n\t\t\trecipe: \"default\"\n\t\t},\n\t\ttiddlywiki_version: $tw.version\n\t});\n\tresponse.end(text,\"utf8\");\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-tiddler-html.js": {
"title": "$:/core/modules/server/routes/get-tiddler-html.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-tiddler-html.js\ntype: application/javascript\nmodule-type: route\n\nGET /:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/([^\\/]+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]),\n\t\ttiddler = state.wiki.getTiddler(title);\n\tif(tiddler) {\n\t\tvar renderType = tiddler.getFieldString(\"_render_type\"),\n\t\t\trenderTemplate = tiddler.getFieldString(\"_render_template\");\n\t\t// Tiddler fields '_render_type' and '_render_template' overwrite\n\t\t// system wide settings for render type and template\n\t\tif(state.wiki.isSystemTiddler(title)) {\n\t\t\trenderType = renderType || state.server.get(\"system-tiddler-render-type\");\n\t\t\trenderTemplate = renderTemplate || state.server.get(\"system-tiddler-render-template\");\n\t\t} else {\n\t\t\trenderType = renderType || state.server.get(\"tiddler-render-type\");\n\t\t\trenderTemplate = renderTemplate || state.server.get(\"tiddler-render-template\");\n\t\t}\n\t\tvar text = state.wiki.renderTiddler(renderType,renderTemplate,{parseAsInline: true, variables: {currentTiddler: title}});\n\t\t// Naughty not to set a content-type, but it's the easiest way to ensure the browser will see HTML pages as HTML, and accept plain text tiddlers as CSS or JS\n\t\tresponse.writeHead(200);\n\t\tresponse.end(text,\"utf8\");\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-tiddler.js": {
"title": "$:/core/modules/server/routes/get-tiddler.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-tiddler.js\ntype: application/javascript\nmodule-type: route\n\nGET /recipes/default/tiddlers/:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/recipes\\/default\\/tiddlers\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]),\n\t\ttiddler = state.wiki.getTiddler(title),\n\t\ttiddlerFields = {},\n\t\tknownFields = [\n\t\t\t\"bag\", \"created\", \"creator\", \"modified\", \"modifier\", \"permissions\", \"recipe\", \"revision\", \"tags\", \"text\", \"title\", \"type\", \"uri\"\n\t\t];\n\tif(tiddler) {\n\t\t$tw.utils.each(tiddler.fields,function(field,name) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\tif(knownFields.indexOf(name) !== -1) {\n\t\t\t\ttiddlerFields[name] = value;\n\t\t\t} else {\n\t\t\t\ttiddlerFields.fields = tiddlerFields.fields || {};\n\t\t\t\ttiddlerFields.fields[name] = value;\n\t\t\t}\n\t\t});\n\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\ttiddlerFields.type = tiddlerFields.type || \"text/vnd.tiddlywiki\";\n\t\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\t\tresponse.end(JSON.stringify(tiddlerFields),\"utf8\");\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/get-tiddlers-json.js": {
"title": "$:/core/modules/server/routes/get-tiddlers-json.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/get-tiddlers-json.js\ntype: application/javascript\nmodule-type: route\n\nGET /recipes/default/tiddlers/tiddlers.json\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/recipes\\/default\\/tiddlers.json$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\tvar tiddlers = [];\n\tstate.wiki.forEachTiddler({sortField: \"title\"},function(title,tiddler) {\n\t\tvar tiddlerFields = {};\n\t\t$tw.utils.each(tiddler.fields,function(field,name) {\n\t\t\tif(name !== \"text\") {\n\t\t\t\ttiddlerFields[name] = tiddler.getFieldString(name);\n\t\t\t}\n\t\t});\n\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\ttiddlerFields.type = tiddlerFields.type || \"text/vnd.tiddlywiki\";\n\t\ttiddlers.push(tiddlerFields);\n\t});\n\tvar text = JSON.stringify(tiddlers);\n\tresponse.end(text,\"utf8\");\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/routes/put-tiddler.js": {
"title": "$:/core/modules/server/routes/put-tiddler.js",
"text": "/*\\\ntitle: $:/core/modules/server/routes/put-tiddler.js\ntype: application/javascript\nmodule-type: route\n\nPUT /recipes/default/tiddlers/:title\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.method = \"PUT\";\n\nexports.path = /^\\/recipes\\/default\\/tiddlers\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar title = decodeURIComponent(state.params[0]),\n\tfields = JSON.parse(state.data);\n\t// Pull up any subfields in the `fields` object\n\tif(fields.fields) {\n\t\t$tw.utils.each(fields.fields,function(field,name) {\n\t\t\tfields[name] = field;\n\t\t});\n\t\tdelete fields.fields;\n\t}\n\t// Remove any revision field\n\tif(fields.revision) {\n\t\tdelete fields.revision;\n\t}\n\tstate.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title},state.wiki.getModificationFields()));\n\tvar changeCount = state.wiki.getChangeCount(title).toString();\n\tresponse.writeHead(204, \"OK\",{\n\t\tEtag: \"\\\"default/\" + encodeURIComponent(title) + \"/\" + changeCount + \":\\\"\",\n\t\t\"Content-Type\": \"text/plain\"\n\t});\n\tresponse.end();\n};\n\n}());\n",
"type": "application/javascript",
"module-type": "route"
},
"$:/core/modules/server/server.js": {
"title": "$:/core/modules/server/server.js",
"text": "/*\\\ntitle: $:/core/modules/server/server.js\ntype: application/javascript\nmodule-type: library\n\nServe tiddlers over http\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nif($tw.node) {\n\tvar util = require(\"util\"),\n\t\tfs = require(\"fs\"),\n\t\turl = require(\"url\"),\n\t\tpath = require(\"path\");\n}\n\n/*\nA simple HTTP server with regexp-based routes\noptions: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters)\n\t\t routes - optional array of routes to use\n\t\t wiki - reference to wiki object\n*/\nfunction Server(options) {\n\tvar self = this;\n\tthis.routes = options.routes || [];\n\tthis.authenticators = options.authenticators || [];\n\tthis.wiki = options.wiki;\n\tthis.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText(\"$:/SiteTitle\") || \"TiddlyWiki5\");\n\t// Initialise the variables\n\tthis.variables = $tw.utils.extend({},this.defaultVariables);\n\tif(options.variables) {\n\t\tfor(var variable in options.variables) {\n\t\t\tif(options.variables[variable]) {\n\t\t\t\tthis.variables[variable] = options.variables[variable];\n\t\t\t}\n\t\t}\t\t\n\t}\n\t$tw.utils.extend({},this.defaultVariables,options.variables);\n\t// Initialise CSRF\n\tthis.csrfDisable = this.get(\"csrf-disable\") === \"yes\";\n\t// Initialize Gzip compression\n\tthis.enableGzip = this.get(\"gzip\") === \"yes\";\n\t// Initialise authorization\n\tvar authorizedUserName = (this.get(\"username\") && this.get(\"password\")) ? this.get(\"username\") : \"(anon)\";\n\tthis.authorizationPrincipals = {\n\t\treaders: (this.get(\"readers\") || authorizedUserName).split(\",\").map($tw.utils.trim),\n\t\twriters: (this.get(\"writers\") || authorizedUserName).split(\",\").map($tw.utils.trim)\n\t}\n\t// Load and initialise authenticators\n\t$tw.modules.forEachModuleOfType(\"authenticator\", function(title,authenticatorDefinition) {\n\t\t// console.log(\"Loading server route \" + title);\n\t\tself.addAuthenticator(authenticatorDefinition.AuthenticatorClass);\n\t});\n\t// Load route handlers\n\t$tw.modules.forEachModuleOfType(\"route\", function(title,routeDefinition) {\n\t\t// console.log(\"Loading server route \" + title);\n\t\tself.addRoute(routeDefinition);\n\t});\n\t// Initialise the http vs https\n\tthis.listenOptions = null;\n\tthis.protocol = \"http\";\n\tvar tlsKeyFilepath = this.get(\"tls-key\"),\n\t\ttlsCertFilepath = this.get(\"tls-cert\");\n\tif(tlsCertFilepath && tlsKeyFilepath) {\n\t\tthis.listenOptions = {\n\t\t\tkey: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsKeyFilepath),\"utf8\"),\n\t\t\tcert: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsCertFilepath),\"utf8\")\n\t\t};\n\t\tthis.protocol = \"https\";\n\t}\n\tthis.transport = require(this.protocol);\n}\n\nServer.prototype.defaultVariables = {\n\tport: \"8080\",\n\thost: \"127.0.0.1\",\n\t\"root-tiddler\": \"$:/core/save/all\",\n\t\"root-render-type\": \"text/plain\",\n\t\"root-serve-type\": \"text/html\",\n\t\"tiddler-render-type\": \"text/html\",\n\t\"tiddler-render-template\": \"$:/core/templates/server/static.tiddler.html\",\n\t\"system-tiddler-render-type\": \"text/plain\",\n\t\"system-tiddler-render-template\": \"$:/core/templates/wikified-tiddler\",\n\t\"debug-level\": \"none\",\n\t\"gzip\": \"no\"\n};\n\nServer.prototype.get = function(name) {\n\treturn this.variables[name];\n};\n\nServer.prototype.addRoute = function(route) {\n\tthis.routes.push(route);\n};\n\nServer.prototype.addAuthenticator = function(AuthenticatorClass) {\n\t// Instantiate and initialise the authenticator\n\tvar authenticator = new AuthenticatorClass(this),\n\t\tresult = authenticator.init();\n\tif(typeof result === \"string\") {\n\t\t$tw.utils.error(\"Error: \" + result);\n\t} else if(result) {\n\t\t// Only use the authenticator if it initialised successfully\n\t\tthis.authenticators.push(authenticator);\n\t}\n};\n\nServer.prototype.findMatchingRoute = function(request,state) {\n\tvar pathprefix = this.get(\"path-prefix\") || \"\";\n\tfor(var t=0; t<this.routes.length; t++) {\n\t\tvar potentialRoute = this.routes[t],\n\t\t\tpathRegExp = potentialRoute.path,\n\t\t\tpathname = state.urlInfo.pathname,\n\t\t\tmatch;\n\t\tif(pathprefix) {\n\t\t\tif(pathname.substr(0,pathprefix.length) === pathprefix) {\n\t\t\t\tpathname = pathname.substr(pathprefix.length) || \"/\";\n\t\t\t\tmatch = potentialRoute.path.exec(pathname);\n\t\t\t} else {\n\t\t\t\tmatch = false;\n\t\t\t}\n\t\t} else {\n\t\t\tmatch = potentialRoute.path.exec(pathname);\n\t\t}\n\t\tif(match && request.method === potentialRoute.method) {\n\t\t\tstate.params = [];\n\t\t\tfor(var p=1; p<match.length; p++) {\n\t\t\t\tstate.params.push(match[p]);\n\t\t\t}\n\t\t\treturn potentialRoute;\n\t\t}\n\t}\n\treturn null;\n};\n\nServer.prototype.methodMappings = {\n\t\"GET\": \"readers\",\n\t\"OPTIONS\": \"readers\",\n\t\"HEAD\": \"readers\",\n\t\"PUT\": \"writers\",\n\t\"POST\": \"writers\",\n\t\"DELETE\": \"writers\"\n};\n\n/*\nCheck whether a given user is authorized for the specified authorizationType (\"readers\" or \"writers\"). Pass null or undefined as the username to check for anonymous access\n*/\nServer.prototype.isAuthorized = function(authorizationType,username) {\n\tvar principals = this.authorizationPrincipals[authorizationType] || [];\n\treturn principals.indexOf(\"(anon)\") !== -1 || (username && (principals.indexOf(\"(authenticated)\") !== -1 || principals.indexOf(username) !== -1));\n}\n\nServer.prototype.requestHandler = function(request,response) {\n\t// Compose the state object\n\tvar self = this;\n\tvar state = {};\n\tstate.wiki = self.wiki;\n\tstate.server = self;\n\tstate.urlInfo = url.parse(request.url);\n\t// Get the principals authorized to access this resource\n\tvar authorizationType = this.methodMappings[request.method] || \"readers\";\n\t// Check for the CSRF header if this is a write\n\tif(!this.csrfDisable && authorizationType === \"writers\" && request.headers[\"x-requested-with\"] !== \"TiddlyWiki\") {\n\t\tresponse.writeHead(403,\"'X-Requested-With' header required to login to '\" + this.servername + \"'\");\n\t\tresponse.end();\n\t\treturn;\t\t\n\t}\n\t// Check whether anonymous access is granted\n\tstate.allowAnon = this.isAuthorized(authorizationType,null);\n\t// Authenticate with the first active authenticator\n\tif(this.authenticators.length > 0) {\n\t\tif(!this.authenticators[0].authenticateRequest(request,response,state)) {\n\t\t\t// Bail if we failed (the authenticator will have sent the response)\n\t\t\treturn;\n\t\t}\t\t\n\t}\n\t// Authorize with the authenticated username\n\tif(!this.isAuthorized(authorizationType,state.authenticatedUsername)) {\n\t\tresponse.writeHead(401,\"'\" + state.authenticatedUsername + \"' is not authorized to access '\" + this.servername + \"'\");\n\t\tresponse.end();\n\t\treturn;\n\t}\n\t// Find the route that matches this path\n\tvar route = self.findMatchingRoute(request,state);\n\t// Optionally output debug info\n\tif(self.get(\"debug-level\") !== \"none\") {\n\t\tconsole.log(\"Request path:\",JSON.stringify(state.urlInfo));\n\t\tconsole.log(\"Request headers:\",JSON.stringify(request.headers));\n\t\tconsole.log(\"authenticatedUsername:\",state.authenticatedUsername);\n\t}\n\t// Return a 404 if we didn't find a route\n\tif(!route) {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t\treturn;\n\t}\n\t// Receive the request body if necessary and hand off to the route handler\n\tif(route.bodyFormat === \"stream\" || request.method === \"GET\" || request.method === \"HEAD\") {\n\t\t// Let the route handle the request stream itself\n\t\troute.handler(request,response,state);\n\t} else if(route.bodyFormat === \"string\" || !route.bodyFormat) {\n\t\t// Set the encoding for the incoming request\n\t\trequest.setEncoding(\"utf8\");\n\t\tvar data = \"\";\n\t\trequest.on(\"data\",function(chunk) {\n\t\t\tdata += chunk.toString();\n\t\t});\n\t\trequest.on(\"end\",function() {\n\t\t\tstate.data = data;\n\t\t\troute.handler(request,response,state);\n\t\t});\n\t} else if(route.bodyFormat === \"buffer\") {\n\t\tvar data = [];\n\t\trequest.on(\"data\",function(chunk) {\n\t\t\tdata.push(chunk);\n\t\t});\n\t\trequest.on(\"end\",function() {\n\t\t\tstate.data = Buffer.concat(data);\n\t\t\troute.handler(request,response,state);\n\t\t})\n\t} else {\n\t\tresponse.writeHead(400,\"Invalid bodyFormat \" + route.bodyFormat + \" in route \" + route.method + \" \" + route.path.source);\n\t\tresponse.end();\n\t}\n};\n\n/*\nListen for requests\nport: optional port number (falls back to value of \"port\" variable)\nhost: optional host address (falls back to value of \"host\" variable)\nprefix: optional prefix (falls back to value of \"path-prefix\" variable)\n*/\nServer.prototype.listen = function(port,host,prefix) {\n\t// Handle defaults for port and host\n\tport = port || this.get(\"port\");\n\thost = host || this.get(\"host\");\n\tprefix = prefix || this.get(\"path-prefix\") || \"\";\n\t// Check for the port being a string and look it up as an environment variable\n\tif(parseInt(port,10).toString() !== port) {\n\t\tport = process.env[port] || 8080;\n\t}\n\t$tw.utils.log(\"Serving on \" + this.protocol + \"://\" + host + \":\" + port + prefix,\"brown/orange\");\n\t$tw.utils.log(\"(press ctrl-C to exit)\",\"red\");\n\t// Warn if required plugins are missing\n\tif(!$tw.wiki.getTiddler(\"$:/plugins/tiddlywiki/tiddlyweb\") || !$tw.wiki.getTiddler(\"$:/plugins/tiddlywiki/filesystem\")) {\n\t\t$tw.utils.warning(\"Warning: Plugins required for client-server operation (\\\"tiddlywiki/filesystem\\\" and \\\"tiddlywiki/tiddlyweb\\\") are missing from tiddlywiki.info file\");\n\t}\n\t// Listen\n\tvar server;\n\tif(this.listenOptions) {\n\t\tserver = this.transport.createServer(this.listenOptions,this.requestHandler.bind(this));\n\t} else {\n\t\tserver = this.transport.createServer(this.requestHandler.bind(this));\n\t}\n\treturn server.listen(port,host);\n};\n\nexports.Server = Server;\n\n})();\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/core/modules/browser-messaging.js": {
"title": "$:/core/modules/browser-messaging.js",
"text": "/*\\\ntitle: $:/core/modules/browser-messaging.js\ntype: application/javascript\nmodule-type: startup\n\nBrowser message handling\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"browser-messaging\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n/*\nLoad a specified url as an iframe and call the callback when it is loaded. If the url is already loaded then the existing iframe instance is used\n*/\nfunction loadIFrame(url,callback) {\n\t// Check if iframe already exists\n\tvar iframeInfo = $tw.browserMessaging.iframeInfoMap[url];\n\tif(iframeInfo) {\n\t\t// We've already got the iframe\n\t\tcallback(null,iframeInfo);\n\t} else {\n\t\t// Create the iframe and save it in the list\n\t\tvar iframe = document.createElement(\"iframe\");\n\t\tiframeInfo = {\n\t\t\turl: url,\n\t\t\tstatus: \"loading\",\n\t\t\tdomNode: iframe\n\t\t};\n\t\t$tw.browserMessaging.iframeInfoMap[url] = iframeInfo;\n\t\tsaveIFrameInfoTiddler(iframeInfo);\n\t\t// Add the iframe to the DOM and hide it\n\t\tiframe.style.display = \"none\";\n\t\tiframe.setAttribute(\"library\",\"true\");\n\t\tdocument.body.appendChild(iframe);\n\t\t// Set up onload\n\t\tiframe.onload = function() {\n\t\t\tiframeInfo.status = \"loaded\";\n\t\t\tsaveIFrameInfoTiddler(iframeInfo);\n\t\t\tcallback(null,iframeInfo);\n\t\t};\n\t\tiframe.onerror = function() {\n\t\t\tcallback(\"Cannot load iframe\");\n\t\t};\n\t\ttry {\n\t\t\tiframe.src = url;\n\t\t} catch(ex) {\n\t\t\tcallback(ex);\n\t\t}\n\t}\n}\n\n/*\nUnload library iframe for given url\n*/\nfunction unloadIFrame(url){\n\t$tw.utils.each(document.getElementsByTagName('iframe'), function(iframe) {\n\t\tif(iframe.getAttribute(\"library\") === \"true\" &&\n\t\t iframe.getAttribute(\"src\") === url) {\n\t\t\tiframe.parentNode.removeChild(iframe);\n\t\t}\n\t});\n}\n\nfunction saveIFrameInfoTiddler(iframeInfo) {\n\t$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),{\n\t\ttitle: \"$:/temp/ServerConnection/\" + iframeInfo.url,\n\t\ttext: iframeInfo.status,\n\t\ttags: [\"$:/tags/ServerConnection\"],\n\t\turl: iframeInfo.url\n\t},$tw.wiki.getModificationFields()));\n}\n\nexports.startup = function() {\n\t// Initialise the store of iframes we've created\n\t$tw.browserMessaging = {\n\t\tiframeInfoMap: {} // Hashmap by URL of {url:,status:\"loading/loaded\",domNode:}\n\t};\n\t// Listen for widget messages to control loading the plugin library\n\t$tw.rootWidget.addEventListener(\"tm-load-plugin-library\",function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url;\n\t\tif(url) {\n\t\t\tloadIFrame(url,function(err,iframeInfo) {\n\t\t\t\tif(err) {\n\t\t\t\t\talert($tw.language.getString(\"Error/LoadingPluginLibrary\") + \": \" + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \"GET\",\n\t\t\t\t\t\turl: \"recipes/library/tiddlers.json\",\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \"save-info\",\n\t\t\t\t\t\t\tinfoTitlePrefix: paramObject.infoTitlePrefix || \"$:/temp/RemoteAssetInfo/\",\n\t\t\t\t\t\t\turl: url\n\t\t\t\t\t\t}\n\t\t\t\t\t},\"*\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\t// Listen for widget messages to control unloading the plugin library\n\t$tw.rootWidget.addEventListener(\"tm-unload-plugin-library\",function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url;\n\t\t$tw.browserMessaging.iframeInfoMap[url] = undefined;\n\t\tif(url) {\n\t\t\tunloadIFrame(url);\n\t\t\t$tw.utils.each(\n\t\t\t\t$tw.wiki.filterTiddlers(\"[[$:/temp/ServerConnection/\" + url + \"]] [prefix[$:/temp/RemoteAssetInfo/\" + url + \"/]]\"),\n\t\t\t\tfunction(title) {\n\t\t\t\t\t$tw.wiki.deleteTiddler(title);\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t});\n\t$tw.rootWidget.addEventListener(\"tm-load-plugin-from-library\",function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url,\n\t\t\ttitle = paramObject.title;\n\t\tif(url && title) {\n\t\t\tloadIFrame(url,function(err,iframeInfo) {\n\t\t\t\tif(err) {\n\t\t\t\t\talert($tw.language.getString(\"Error/LoadingPluginLibrary\") + \": \" + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \"GET\",\n\t\t\t\t\t\turl: \"recipes/library/tiddlers/\" + encodeURIComponent(title) + \".json\",\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \"save-tiddler\",\n\t\t\t\t\t\t\turl: url\n\t\t\t\t\t\t}\n\t\t\t\t\t},\"*\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\t// Listen for window messages from other windows\n\twindow.addEventListener(\"message\",function listener(event){\n\t\t// console.log(\"browser-messaging: \",document.location.toString())\n\t\t// console.log(\"browser-messaging: Received message from\",event.origin);\n\t\t// console.log(\"browser-messaging: Message content\",event.data);\n\t\tswitch(event.data.verb) {\n\t\t\tcase \"GET-RESPONSE\":\n\t\t\t\tif(event.data.status.charAt(0) === \"2\") {\n\t\t\t\t\tif(event.data.cookies) {\n\t\t\t\t\t\tif(event.data.cookies.type === \"save-info\") {\n\t\t\t\t\t\t\tvar tiddlers = JSON.parse(event.data.body);\n\t\t\t\t\t\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\t\t\t\t\t\t$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),tiddler,{\n\t\t\t\t\t\t\t\t\ttitle: event.data.cookies.infoTitlePrefix + event.data.cookies.url + \"/\" + tiddler.title,\n\t\t\t\t\t\t\t\t\t\"original-title\": tiddler.title,\n\t\t\t\t\t\t\t\t\ttext: \"\",\n\t\t\t\t\t\t\t\t\ttype: \"text/vnd.tiddlywiki\",\n\t\t\t\t\t\t\t\t\t\"original-type\": tiddler.type,\n\t\t\t\t\t\t\t\t\t\"plugin-type\": undefined,\n\t\t\t\t\t\t\t\t\t\"original-plugin-type\": tiddler[\"plugin-type\"],\n\t\t\t\t\t\t\t\t\t\"module-type\": undefined,\n\t\t\t\t\t\t\t\t\t\"original-module-type\": tiddler[\"module-type\"],\n\t\t\t\t\t\t\t\t\ttags: [\"$:/tags/RemoteAssetInfo\"],\n\t\t\t\t\t\t\t\t\t\"original-tags\": $tw.utils.stringifyList(tiddler.tags || []),\n\t\t\t\t\t\t\t\t\t\"server-url\": event.data.cookies.url\n\t\t\t\t\t\t\t\t},$tw.wiki.getModificationFields()));\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if(event.data.cookies.type === \"save-tiddler\") {\n\t\t\t\t\t\t\tvar tiddler = JSON.parse(event.data.body);\n\t\t\t\t\t\t\t$tw.wiki.addTiddler(new $tw.Tiddler(tiddler));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t},false);\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/commands.js": {
"title": "$:/core/modules/startup/commands.js",
"text": "/*\\\ntitle: $:/core/modules/startup/commands.js\ntype: application/javascript\nmodule-type: startup\n\nCommand processing\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"commands\";\nexports.platforms = [\"node\"];\nexports.after = [\"story\"];\nexports.synchronous = false;\n\nexports.startup = function(callback) {\n\t// On the server, start a commander with the command line arguments\n\tvar commander = new $tw.Commander(\n\t\t$tw.boot.argv,\n\t\tfunction(err) {\n\t\t\tif(err) {\n\t\t\t\treturn $tw.utils.error(\"Error: \" + err);\n\t\t\t}\n\t\t\tcallback();\n\t\t},\n\t\t$tw.wiki,\n\t\t{output: process.stdout, error: process.stderr}\n\t);\n\tcommander.execute();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/CSSescape.js": {
"title": "$:/core/modules/startup/CSSescape.js",
"text": "/*\\\ntitle: $:/core/modules/startup/CSSescape.js\ntype: application/javascript\nmodule-type: startup\n\nPolyfill for CSS.escape()\n\n\\*/\n(function(root,factory){\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"css-escape\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */\n// https://github.com/umdjs/umd/blob/master/returnExports.js\nexports.startup = factory(root);\n}(typeof global != 'undefined' ? global : this, function(root) {\n\n\tif (root.CSS && root.CSS.escape) {\n\t\treturn;\n\t}\n\n\t// https://drafts.csswg.org/cssom/#serialize-an-identifier\n\tvar cssEscape = function(value) {\n\t\tif (arguments.length == 0) {\n\t\t\tthrow new TypeError('`CSS.escape` requires an argument.');\n\t\t}\n\t\tvar string = String(value);\n\t\tvar length = string.length;\n\t\tvar index = -1;\n\t\tvar codeUnit;\n\t\tvar result = '';\n\t\tvar firstCodeUnit = string.charCodeAt(0);\n\t\twhile (++index < length) {\n\t\t\tcodeUnit = string.charCodeAt(index);\n\t\t\t// Note: there’s no need to special-case astral symbols, surrogate\n\t\t\t// pairs, or lone surrogates.\n\n\t\t\t// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER\n\t\t\t// (U+FFFD).\n\t\t\tif (codeUnit == 0x0000) {\n\t\t\t\tresult += '\\uFFFD';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is in the range [\\1-\\1F] (U+0001 to U+001F) or is\n\t\t\t\t// U+007F, […]\n\t\t\t\t(codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||\n\t\t\t\t// If the character is the first character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039), […]\n\t\t\t\t(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||\n\t\t\t\t// If the character is the second character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]\n\t\t\t\t(\n\t\t\t\t\tindex == 1 &&\n\t\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 &&\n\t\t\t\t\tfirstCodeUnit == 0x002D\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point\n\t\t\t\tresult += '\\\\' + codeUnit.toString(16) + ' ';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is the first character and is a `-` (U+002D), and\n\t\t\t\t// there is no second character, […]\n\t\t\t\tindex == 0 &&\n\t\t\t\tlength == 1 &&\n\t\t\t\tcodeUnit == 0x002D\n\t\t\t) {\n\t\t\t\tresult += '\\\\' + string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the character is not handled by one of the above rules and is\n\t\t\t// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or\n\t\t\t// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to\n\t\t\t// U+005A), or [a-z] (U+0061 to U+007A), […]\n\t\t\tif (\n\t\t\t\tcodeUnit >= 0x0080 ||\n\t\t\t\tcodeUnit == 0x002D ||\n\t\t\t\tcodeUnit == 0x005F ||\n\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 ||\n\t\t\t\tcodeUnit >= 0x0041 && codeUnit <= 0x005A ||\n\t\t\t\tcodeUnit >= 0x0061 && codeUnit <= 0x007A\n\t\t\t) {\n\t\t\t\t// the character itself\n\t\t\t\tresult += string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Otherwise, the escaped character.\n\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character\n\t\t\tresult += '\\\\' + string.charAt(index);\n\n\t\t}\n\t\treturn result;\n\t};\n\n\tif (!root.CSS) {\n\t\troot.CSS = {};\n\t}\n\n\troot.CSS.escape = cssEscape;\n\n}));\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/favicon.js": {
"title": "$:/core/modules/startup/favicon.js",
"text": "/*\\\ntitle: $:/core/modules/startup/favicon.js\ntype: application/javascript\nmodule-type: startup\n\nFavicon handling\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"favicon\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\t\t\n// Favicon tiddler\nvar FAVICON_TITLE = \"$:/favicon.ico\";\n\nexports.startup = function() {\n\t// Set up the favicon\n\tsetFavicon();\n\t// Reset the favicon when the tiddler changes\n\t$tw.wiki.addEventListener(\"change\",function(changes) {\n\t\tif($tw.utils.hop(changes,FAVICON_TITLE)) {\n\t\t\tsetFavicon();\n\t\t}\n\t});\n};\n\nfunction setFavicon() {\n\tvar tiddler = $tw.wiki.getTiddler(FAVICON_TITLE);\n\tif(tiddler) {\n\t\tvar faviconLink = document.getElementById(\"faviconLink\");\n\t\tfaviconLink.setAttribute(\"href\",\"data:\" + tiddler.fields.type + \";base64,\" + tiddler.fields.text);\n\t}\n}\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/info.js": {
"title": "$:/core/modules/startup/info.js",
"text": "/*\\\ntitle: $:/core/modules/startup/info.js\ntype: application/javascript\nmodule-type: startup\n\nInitialise $:/info tiddlers via $:/temp/info-plugin pseudo-plugin\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"info\";\nexports.before = [\"startup\"];\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\nexports.startup = function() {\n\t// Collect up the info tiddlers\n\tvar infoTiddlerFields = {};\n\t// Give each info module a chance to fill in as many info tiddlers as they want\n\t$tw.modules.forEachModuleOfType(\"info\",function(title,moduleExports) {\n\t\tif(moduleExports && moduleExports.getInfoTiddlerFields) {\n\t\t\tvar tiddlerFieldsArray = moduleExports.getInfoTiddlerFields(infoTiddlerFields);\n\t\t\t$tw.utils.each(tiddlerFieldsArray,function(fields) {\n\t\t\t\tif(fields) {\n\t\t\t\t\tinfoTiddlerFields[fields.title] = fields;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\t// Bake the info tiddlers into a plugin\n\tvar fields = {\n\t\ttitle: \"$:/temp/info-plugin\",\n\t\ttype: \"application/json\",\n\t\t\"plugin-type\": \"info\",\n\t\ttext: JSON.stringify({tiddlers: infoTiddlerFields},null,$tw.config.preferences.jsonSpaces)\n\t};\n\t$tw.wiki.addTiddler(new $tw.Tiddler(fields));\n\t$tw.wiki.readPluginInfo();\n\t$tw.wiki.registerPluginTiddlers(\"info\");\n\t$tw.wiki.unpackPluginTiddlers();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/load-modules.js": {
"title": "$:/core/modules/startup/load-modules.js",
"text": "/*\\\ntitle: $:/core/modules/startup/load-modules.js\ntype: application/javascript\nmodule-type: startup\n\nLoad core modules\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"load-modules\";\nexports.synchronous = true;\n\nexports.startup = function() {\n\t// Load modules\n\t$tw.modules.applyMethods(\"utils\",$tw.utils);\n\tif($tw.node) {\n\t\t$tw.modules.applyMethods(\"utils-node\",$tw.utils);\n\t}\n\t$tw.modules.applyMethods(\"global\",$tw);\n\t$tw.modules.applyMethods(\"config\",$tw.config);\n\t$tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap(\"tiddlerfield\");\n\t$tw.modules.applyMethods(\"tiddlermethod\",$tw.Tiddler.prototype);\n\t$tw.modules.applyMethods(\"wikimethod\",$tw.Wiki.prototype);\n\t$tw.wiki.addIndexersToWiki();\n\t$tw.modules.applyMethods(\"tiddlerdeserializer\",$tw.Wiki.tiddlerDeserializerModules);\n\t$tw.macros = $tw.modules.getModulesByTypeAsHashmap(\"macro\");\n\t$tw.wiki.initParsers();\n\t$tw.Commander.initCommands();\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/password.js": {
"title": "$:/core/modules/startup/password.js",
"text": "/*\\\ntitle: $:/core/modules/startup/password.js\ntype: application/javascript\nmodule-type: startup\n\nPassword handling\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"password\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\nexports.startup = function() {\n\t$tw.rootWidget.addEventListener(\"tm-set-password\",function(event) {\n\t\t$tw.passwordPrompt.createPrompt({\n\t\t\tserviceName: $tw.language.getString(\"Encryption/PromptSetPassword\"),\n\t\t\tnoUserName: true,\n\t\t\tsubmitText: $tw.language.getString(\"Encryption/SetPassword\"),\n\t\t\tcanCancel: true,\n\t\t\trepeatPassword: true,\n\t\t\tcallback: function(data) {\n\t\t\t\tif(data) {\n\t\t\t\t\t$tw.crypto.setPassword(data.password);\n\t\t\t\t}\n\t\t\t\treturn true; // Get rid of the password prompt\n\t\t\t}\n\t\t});\n\t});\n\t$tw.rootWidget.addEventListener(\"tm-clear-password\",function(event) {\n\t\tif($tw.browser) {\n\t\t\tif(!confirm($tw.language.getString(\"Encryption/ConfirmClearPassword\"))) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t$tw.crypto.setPassword(null);\n\t});\n\t// Ensure that $:/isEncrypted is maintained properly\n\t$tw.wiki.addEventListener(\"change\",function(changes) {\n\t\tif($tw.utils.hop(changes,\"$:/isEncrypted\")) {\n\t\t\t$tw.crypto.updateCryptoStateTiddler();\n\t\t}\n\t});\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/render.js": {
"title": "$:/core/modules/startup/render.js",
"text": "/*\\\ntitle: $:/core/modules/startup/render.js\ntype: application/javascript\nmodule-type: startup\n\nTitle, stylesheet and page rendering\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"render\";\nexports.platforms = [\"browser\"];\nexports.after = [\"story\"];\nexports.synchronous = true;\n\n// Default story and history lists\nvar PAGE_TITLE_TITLE = \"$:/core/wiki/title\";\nvar PAGE_STYLESHEET_TITLE = \"$:/core/ui/PageStylesheet\";\nvar PAGE_TEMPLATE_TITLE = \"$:/core/ui/PageTemplate\";\n\n// Time (in ms) that we defer refreshing changes to draft tiddlers\nvar DRAFT_TIDDLER_TIMEOUT_TITLE = \"$:/config/Drafts/TypingTimeout\";\nvar DRAFT_TIDDLER_TIMEOUT = 400;\n\nexports.startup = function() {\n\t// Set up the title\n\t$tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true});\n\t$tw.titleContainer = $tw.fakeDocument.createElement(\"div\");\n\t$tw.titleWidgetNode.render($tw.titleContainer,null);\n\tdocument.title = $tw.titleContainer.textContent;\n\t$tw.wiki.addEventListener(\"change\",function(changes) {\n\t\tif($tw.titleWidgetNode.refresh(changes,$tw.titleContainer,null)) {\n\t\t\tdocument.title = $tw.titleContainer.textContent;\n\t\t}\n\t});\n\t// Set up the styles\n\t$tw.styleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_STYLESHEET_TITLE,{document: $tw.fakeDocument});\n\t$tw.styleContainer = $tw.fakeDocument.createElement(\"style\");\n\t$tw.styleWidgetNode.render($tw.styleContainer,null);\n\t$tw.styleElement = document.createElement(\"style\");\n\t$tw.styleElement.innerHTML = $tw.styleContainer.textContent;\n\tdocument.head.insertBefore($tw.styleElement,document.head.firstChild);\n\t$tw.wiki.addEventListener(\"change\",$tw.perf.report(\"styleRefresh\",function(changes) {\n\t\tif($tw.styleWidgetNode.refresh(changes,$tw.styleContainer,null)) {\n\t\t\t$tw.styleElement.innerHTML = $tw.styleContainer.textContent;\n\t\t}\n\t}));\n\t// Display the $:/core/ui/PageTemplate tiddler to kick off the display\n\t$tw.perf.report(\"mainRender\",function() {\n\t\t$tw.pageWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TEMPLATE_TITLE,{document: document, parentWidget: $tw.rootWidget});\n\t\t$tw.pageContainer = document.createElement(\"div\");\n\t\t$tw.utils.addClass($tw.pageContainer,\"tc-page-container-wrapper\");\n\t\tdocument.body.insertBefore($tw.pageContainer,document.body.firstChild);\n\t\t$tw.pageWidgetNode.render($tw.pageContainer,null);\n \t\t$tw.hooks.invokeHook(\"th-page-refreshed\");\n\t})();\n\t// Remove any splash screen elements\n\tvar removeList = document.querySelectorAll(\".tc-remove-when-wiki-loaded\");\n\t$tw.utils.each(removeList,function(removeItem) {\n\t\tif(removeItem.parentNode) {\n\t\t\tremoveItem.parentNode.removeChild(removeItem);\n\t\t}\n\t});\n\t// Prepare refresh mechanism\n\tvar deferredChanges = Object.create(null),\n\t\ttimerId;\n\tfunction refresh() {\n\t\t// Process the refresh\n\t\t$tw.hooks.invokeHook(\"th-page-refreshing\");\n\t\t$tw.pageWidgetNode.refresh(deferredChanges);\n\t\tdeferredChanges = Object.create(null);\n\t\t$tw.hooks.invokeHook(\"th-page-refreshed\");\n\t}\n\t// Add the change event handler\n\t$tw.wiki.addEventListener(\"change\",$tw.perf.report(\"mainRefresh\",function(changes) {\n\t\t// Check if only drafts have changed\n\t\tvar onlyDraftsHaveChanged = true;\n\t\tfor(var title in changes) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\tif(!tiddler || !tiddler.hasField(\"draft.of\")) {\n\t\t\t\tonlyDraftsHaveChanged = false;\n\t\t\t}\n\t\t}\n\t\t// Defer the change if only drafts have changed\n\t\tif(timerId) {\n\t\t\tclearTimeout(timerId);\n\t\t}\n\t\ttimerId = null;\n\t\tif(onlyDraftsHaveChanged) {\n\t\t\tvar timeout = parseInt($tw.wiki.getTiddlerText(DRAFT_TIDDLER_TIMEOUT_TITLE,\"\"),10);\n\t\t\tif(isNaN(timeout)) {\n\t\t\t\ttimeout = DRAFT_TIDDLER_TIMEOUT;\n\t\t\t}\n\t\t\ttimerId = setTimeout(refresh,timeout);\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t} else {\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t\trefresh();\n\t\t}\n\t}));\n\t// Fix up the link between the root widget and the page container\n\t$tw.rootWidget.domNodes = [$tw.pageContainer];\n\t$tw.rootWidget.children = [$tw.pageWidgetNode];\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/rootwidget.js": {
"title": "$:/core/modules/startup/rootwidget.js",
"text": "/*\\\ntitle: $:/core/modules/startup/rootwidget.js\ntype: application/javascript\nmodule-type: startup\n\nSetup the root widget and the core root widget handlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"rootwidget\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.before = [\"story\"];\nexports.synchronous = true;\n\nexports.startup = function() {\n\t// Install the modal message mechanism\n\t$tw.modal = new $tw.utils.Modal($tw.wiki);\n\t$tw.rootWidget.addEventListener(\"tm-modal\",function(event) {\n\t\t$tw.modal.display(event.param,{variables: event.paramObject, event: event});\n\t});\n\t// Install the notification mechanism\n\t$tw.notifier = new $tw.utils.Notifier($tw.wiki);\n\t$tw.rootWidget.addEventListener(\"tm-notify\",function(event) {\n\t\t$tw.notifier.display(event.param,{variables: event.paramObject});\n\t});\n\t// Install the copy-to-clipboard mechanism\n\t$tw.rootWidget.addEventListener(\"tm-copy-to-clipboard\",function(event) {\n\t\t$tw.utils.copyToClipboard(event.param);\n\t});\n\t// Install the tm-focus-selector message\n\t$tw.rootWidget.addEventListener(\"tm-focus-selector\",function(event) {\n\t\tvar selector = event.param || \"\",\n\t\t\telement;\n\t\ttry {\n\t\t\telement = document.querySelector(selector);\n\t\t} catch(e) {\n\t\t\tconsole.log(\"Error in selector: \",selector)\n\t\t}\n\t\tif(element && element.focus) {\n\t\t\telement.focus(event.paramObject);\n\t\t}\n\t});\n\t// Install the scroller\n\t$tw.pageScroller = new $tw.utils.PageScroller();\n\t$tw.rootWidget.addEventListener(\"tm-scroll\",function(event) {\n\t\t$tw.pageScroller.handleEvent(event);\n\t});\n\tvar fullscreen = $tw.utils.getFullScreenApis();\n\tif(fullscreen) {\n\t\t$tw.rootWidget.addEventListener(\"tm-full-screen\",function(event) {\n\t\t\tvar fullScreenDocument = event.event ? event.event.target.ownerDocument : document;\n\t\t\tif(event.param === \"enter\") {\n\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t} else if(event.param === \"exit\") {\n\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t} else {\n\t\t\t\tif(fullScreenDocument[fullscreen._fullscreenElement]) {\n\t\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t\t} else {\n\t\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t}\n\t// If we're being viewed on a data: URI then give instructions for how to save\n\tif(document.location.protocol === \"data:\") {\n\t\t$tw.rootWidget.dispatchEvent({\n\t\t\ttype: \"tm-modal\",\n\t\t\tparam: \"$:/language/Modals/SaveInstructions\"\n\t\t});\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup.js": {
"title": "$:/core/modules/startup.js",
"text": "/*\\\ntitle: $:/core/modules/startup.js\ntype: application/javascript\nmodule-type: startup\n\nMiscellaneous startup logic for both the client and server.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"startup\";\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\n// Set to `true` to enable performance instrumentation\nvar PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = \"$:/config/Performance/Instrumentation\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.startup = function() {\n\tvar modules,n,m,f;\n\t// Minimal browser detection\n\tif($tw.browser) {\n\t\t$tw.browser.isIE = (/msie|trident/i.test(navigator.userAgent));\n\t\t$tw.browser.isFirefox = !!document.mozFullScreenEnabled;\n\t}\n\t// Platform detection\n\t$tw.platform = {};\n\tif($tw.browser) {\n\t\t$tw.platform.isMac = /Mac/.test(navigator.platform);\n\t\t$tw.platform.isWindows = /win/i.test(navigator.platform);\n\t\t$tw.platform.isLinux = /Linux/i.test(navigator.platform);\n\t} else {\n\t\tswitch(require(\"os\").platform()) {\n\t\t\tcase \"darwin\":\n\t\t\t\t$tw.platform.isMac = true;\n\t\t\t\tbreak;\n\t\t\tcase \"win32\":\n\t\t\t\t$tw.platform.isWindows = true;\n\t\t\t\tbreak;\n\t\t\tcase \"freebsd\":\n\t\t\t\t$tw.platform.isLinux = true;\n\t\t\t\tbreak;\n\t\t\tcase \"linux\":\n\t\t\t\t$tw.platform.isLinux = true;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\t// Initialise version\n\t$tw.version = $tw.utils.extractVersionInfo();\n\t// Set up the performance framework\n\t$tw.perf = new $tw.Performance($tw.wiki.getTiddlerText(PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE,\"no\") === \"yes\");\n\t// Create a root widget for attaching event handlers. By using it as the parentWidget for another widget tree, one can reuse the event handlers\n\t$tw.rootWidget = new widget.widget({\n\t\ttype: \"widget\",\n\t\tchildren: []\n\t},{\n\t\twiki: $tw.wiki,\n\t\tdocument: $tw.browser ? document : $tw.fakeDocument\n\t});\n\t// Execute any startup actions\n\tvar executeStartupTiddlers = function(tag) {\n\t\t$tw.utils.each($tw.wiki.filterTiddlers(\"[all[shadows+tiddlers]tag[\" + tag + \"]!has[draft.of]]\"),function(title) {\n\t\t\t$tw.rootWidget.invokeActionString($tw.wiki.getTiddlerText(title),$tw.rootWidget);\n\t\t});\n\t};\n\texecuteStartupTiddlers(\"$:/tags/StartupAction\");\n\tif($tw.browser) {\n\t\texecuteStartupTiddlers(\"$:/tags/StartupAction/Browser\");\t\t\n\t}\n\tif($tw.node) {\n\t\texecuteStartupTiddlers(\"$:/tags/StartupAction/Node\");\t\t\n\t}\n\t// Kick off the language manager and switcher\n\t$tw.language = new $tw.Language();\n\t$tw.languageSwitcher = new $tw.PluginSwitcher({\n\t\twiki: $tw.wiki,\n\t\tpluginType: \"language\",\n\t\tcontrollerTitle: \"$:/language\",\n\t\tdefaultPlugins: [\n\t\t\t\"$:/languages/en-GB\"\n\t\t],\n\t\tonSwitch: function(plugins) {\n\t\t\tif($tw.browser) {\n\t\t\t\tvar pluginTiddler = $tw.wiki.getTiddler(plugins[0]);\n\t\t\t\tif(pluginTiddler) {\n\t\t\t\t\tdocument.documentElement.setAttribute(\"dir\",pluginTiddler.getFieldString(\"text-direction\") || \"auto\");\n\t\t\t\t} else {\n\t\t\t\t\tdocument.documentElement.removeAttribute(\"dir\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\t// Kick off the theme manager\n\t$tw.themeManager = new $tw.PluginSwitcher({\n\t\twiki: $tw.wiki,\n\t\tpluginType: \"theme\",\n\t\tcontrollerTitle: \"$:/theme\",\n\t\tdefaultPlugins: [\n\t\t\t\"$:/themes/tiddlywiki/snowwhite\",\n\t\t\t\"$:/themes/tiddlywiki/vanilla\"\n\t\t]\n\t});\n\t// Kick off the keyboard manager\n\t$tw.keyboardManager = new $tw.KeyboardManager();\n\t// Listen for shortcuts\n\tif($tw.browser) {\n\t\t$tw.utils.addEventListeners(document,[{\n\t\t\tname: \"keydown\",\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \"handleKeydownEvent\"\n\t\t}]);\n\t}\n\t// Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup\n\t$tw.wiki.clearTiddlerEventQueue();\n\t// Find a working syncadaptor\n\t$tw.syncadaptor = undefined;\n\t$tw.modules.forEachModuleOfType(\"syncadaptor\",function(title,module) {\n\t\tif(!$tw.syncadaptor && module.adaptorClass) {\n\t\t\t$tw.syncadaptor = new module.adaptorClass({wiki: $tw.wiki});\n\t\t}\n\t});\n\t// Set up the syncer object if we've got a syncadaptor\n\tif($tw.syncadaptor) {\n\t\t$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});\n\t} \n\t// Setup the saver handler\n\t$tw.saverHandler = new $tw.SaverHandler({\n\t\twiki: $tw.wiki,\n\t\tdirtyTracking: !$tw.syncadaptor,\n\t\tpreloadDirty: $tw.boot.preloadDirty || []\n\t});\n\t// Host-specific startup\n\tif($tw.browser) {\n\t\t// Install the popup manager\n\t\t$tw.popup = new $tw.utils.Popup();\n\t\t// Install the animator\n\t\t$tw.anim = new $tw.utils.Animator();\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/story.js": {
"title": "$:/core/modules/startup/story.js",
"text": "/*\\\ntitle: $:/core/modules/startup/story.js\ntype: application/javascript\nmodule-type: startup\n\nLoad core modules\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"story\";\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n// Default story and history lists\nvar DEFAULT_STORY_TITLE = \"$:/StoryList\";\nvar DEFAULT_HISTORY_TITLE = \"$:/HistoryList\";\n\n// Default tiddlers\nvar DEFAULT_TIDDLERS_TITLE = \"$:/DefaultTiddlers\";\n\n// Config\nvar CONFIG_UPDATE_ADDRESS_BAR = \"$:/config/Navigation/UpdateAddressBar\"; // Can be \"no\", \"permalink\", \"permaview\"\nvar CONFIG_UPDATE_HISTORY = \"$:/config/Navigation/UpdateHistory\"; // Can be \"yes\" or \"no\"\nvar CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD = \"$:/config/Navigation/Permalinkview/CopyToClipboard\"; // Can be \"yes\" (default) or \"no\"\nvar CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR = \"$:/config/Navigation/Permalinkview/UpdateAddressBar\"; // Can be \"yes\" (default) or \"no\"\n\n\n// Links to help, if there is no param\nvar HELP_OPEN_EXTERNAL_WINDOW = \"http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window\";\n\nexports.startup = function() {\n\t// Open startup tiddlers\n\topenStartupTiddlers({\n\t\tdisableHistory: $tw.boot.disableStartupNavigation\n\t});\n\tif($tw.browser) {\n\t\t// Set up location hash update\n\t\t$tw.wiki.addEventListener(\"change\",function(changes) {\n\t\t\tif($tw.utils.hop(changes,DEFAULT_STORY_TITLE) || $tw.utils.hop(changes,DEFAULT_HISTORY_TITLE)) {\n\t\t\t\tupdateLocationHash({\n\t\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_UPDATE_ADDRESS_BAR,\"permaview\").trim(),\n\t\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").trim()\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\t// Listen for changes to the browser location hash\n\t\twindow.addEventListener(\"hashchange\",function() {\n\t\t\tvar hash = $tw.utils.getLocationHash();\n\t\t\tif(hash !== $tw.locationHash) {\n\t\t\t\t$tw.locationHash = hash;\n\t\t\t\topenStartupTiddlers({defaultToCurrentStory: true});\n\t\t\t}\n\t\t},false);\n\t\t// Listen for the tm-browser-refresh message\n\t\t$tw.rootWidget.addEventListener(\"tm-browser-refresh\",function(event) {\n\t\t\twindow.location.reload(true);\n\t\t});\n\t\t// Listen for tm-open-external-window message\n\t\t$tw.rootWidget.addEventListener(\"tm-open-external-window\",function(event) {\n\t\t\tvar paramObject = event.paramObject || {},\n\t\t\t\tstrUrl = event.param || HELP_OPEN_EXTERNAL_WINDOW,\n\t\t\t\tstrWindowName = paramObject.windowName,\n\t\t\t\tstrWindowFeatures = paramObject.windowFeatures;\n\t\t\twindow.open(strUrl, strWindowName, strWindowFeatures);\n\t\t});\n\t\t// Listen for the tm-print message\n\t\t$tw.rootWidget.addEventListener(\"tm-print\",function(event) {\n\t\t\t(event.event.view || window).print();\n\t\t});\n\t\t// Listen for the tm-home message\n\t\t$tw.rootWidget.addEventListener(\"tm-home\",function(event) {\n\t\t\twindow.location.hash = \"\";\n\t\t\tvar storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE),\n\t\t\t\tstoryList = $tw.wiki.filterTiddlers(storyFilter);\n\t\t\t//invoke any hooks that might change the default story list\n\t\t\tstoryList = $tw.hooks.invokeHook(\"th-opening-default-tiddlers-list\",storyList);\n\t\t\t$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: \"\", list: storyList},$tw.wiki.getModificationFields());\n\t\t\tif(storyList[0]) {\n\t\t\t\t$tw.wiki.addToHistory(storyList[0]);\n\t\t\t}\n\t\t});\n\t\t// Listen for the tm-permalink message\n\t\t$tw.rootWidget.addEventListener(\"tm-permalink\",function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\"yes\").trim() === \"yes\" ? \"permalink\" : \"none\",\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\"yes\").trim() === \"yes\" ? \"permalink\" : \"none\"\n\t\t\t});\n\t\t});\n\t\t// Listen for the tm-permaview message\n\t\t$tw.rootWidget.addEventListener(\"tm-permaview\",function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\"yes\").trim() === \"yes\" ? \"permaview\" : \"none\",\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\"yes\").trim() === \"yes\" ? \"permaview\" : \"none\"\n\t\t\t});\t\t\t\t\n\t\t});\n\t}\n};\n\n/*\nProcess the location hash to open the specified tiddlers. Options:\ndisableHistory: if true $:/History is NOT updated\ndefaultToCurrentStory: If true, the current story is retained as the default, instead of opening the default tiddlers\n*/\nfunction openStartupTiddlers(options) {\n\toptions = options || {};\n\t// Work out the target tiddler and the story filter. \"null\" means \"unspecified\"\n\tvar target = null,\n\t\tstoryFilter = null;\n\tif($tw.locationHash.length > 1) {\n\t\tvar hash = $tw.locationHash.substr(1),\n\t\t\tsplit = hash.indexOf(\":\");\n\t\tif(split === -1) {\n\t\t\ttarget = decodeURIComponent(hash.trim());\n\t\t} else {\n\t\t\ttarget = decodeURIComponent(hash.substr(0,split).trim());\n\t\t\tstoryFilter = decodeURIComponent(hash.substr(split + 1).trim());\n\t\t}\n\t}\n\t// If the story wasn't specified use the current tiddlers or a blank story\n\tif(storyFilter === null) {\n\t\tif(options.defaultToCurrentStory) {\n\t\t\tvar currStoryList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE);\n\t\t\tstoryFilter = $tw.utils.stringifyList(currStoryList);\n\t\t} else {\n\t\t\tif(target && target !== \"\") {\n\t\t\t\tstoryFilter = \"\";\n\t\t\t} else {\n\t\t\t\tstoryFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE);\n\t\t\t}\n\t\t}\n\t}\n\t// Process the story filter to get the story list\n\tvar storyList = $tw.wiki.filterTiddlers(storyFilter);\n\t// Invoke any hooks that want to change the default story list\n\tstoryList = $tw.hooks.invokeHook(\"th-opening-default-tiddlers-list\",storyList);\n\t// If the target tiddler isn't included then splice it in at the top\n\tif(target && storyList.indexOf(target) === -1) {\n\t\tstoryList.unshift(target);\n\t}\n\t// Save the story list\n\t$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: \"\", list: storyList},$tw.wiki.getModificationFields());\n\t// Update history\n\tif(!options.disableHistory) {\n\t\t// If a target tiddler was specified add it to the history stack\n\t\tif(target && target !== \"\") {\n\t\t\t// The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present\n\t\t\tif(target.indexOf(\"[[\") === 0 && target.substr(-2) === \"]]\") {\n\t\t\t\ttarget = target.substr(2,target.length - 4);\n\t\t\t}\n\t\t\t$tw.wiki.addToHistory(target);\n\t\t} else if(storyList.length > 0) {\n\t\t\t$tw.wiki.addToHistory(storyList[0]);\n\t\t}\t\t\n\t}\n}\n\n/*\noptions: See below\noptions.updateAddressBar: \"permalink\", \"permaview\" or \"no\" (defaults to \"permaview\")\noptions.updateHistory: \"yes\" or \"no\" (defaults to \"no\")\noptions.copyToClipboard: \"permalink\", \"permaview\" or \"no\" (defaults to \"no\")\noptions.targetTiddler: optional title of target tiddler for permalink\n*/\nfunction updateLocationHash(options) {\n\t// Get the story and the history stack\n\tvar storyList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE),\n\t\thistoryList = $tw.wiki.getTiddlerData(DEFAULT_HISTORY_TITLE,[]),\n\t\ttargetTiddler = \"\";\n\tif(options.targetTiddler) {\n\t\ttargetTiddler = options.targetTiddler;\n\t} else {\n\t\t// The target tiddler is the one at the top of the stack\n\t\tif(historyList.length > 0) {\n\t\t\ttargetTiddler = historyList[historyList.length-1].title;\n\t\t}\n\t\t// Blank the target tiddler if it isn't present in the story\n\t\tif(storyList.indexOf(targetTiddler) === -1) {\n\t\t\ttargetTiddler = \"\";\n\t\t}\n\t}\n\t// Assemble the location hash\n\tswitch(options.updateAddressBar) {\n\t\tcase \"permalink\":\n\t\t\t$tw.locationHash = \"#\" + encodeURIComponent(targetTiddler);\n\t\t\tbreak;\n\t\tcase \"permaview\":\n\t\t\t$tw.locationHash = \"#\" + encodeURIComponent(targetTiddler) + \":\" + encodeURIComponent($tw.utils.stringifyList(storyList));\n\t\t\tbreak;\n\t}\n\t// Copy URL to the clipboard\n\tswitch(options.copyToClipboard) {\n\t\tcase \"permalink\":\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \"#\" + encodeURIComponent(targetTiddler));\n\t\t\tbreak;\n\t\tcase \"permaview\":\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \"#\" + encodeURIComponent(targetTiddler) + \":\" + encodeURIComponent($tw.utils.stringifyList(storyList)));\n\t\t\tbreak;\n\t}\n\t// Only change the location hash if we must, thus avoiding unnecessary onhashchange events\n\tif($tw.utils.getLocationHash() !== $tw.locationHash) {\n\t\tif(options.updateHistory === \"yes\") {\n\t\t\t// Assign the location hash so that history is updated\n\t\t\twindow.location.hash = $tw.locationHash;\n\t\t} else {\n\t\t\t// We use replace so that browser history isn't affected\n\t\t\twindow.location.replace(window.location.toString().split(\"#\")[0] + $tw.locationHash);\n\t\t}\n\t}\n}\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/startup/windows.js": {
"title": "$:/core/modules/startup/windows.js",
"text": "/*\\\ntitle: $:/core/modules/startup/windows.js\ntype: application/javascript\nmodule-type: startup\n\nSetup root widget handlers for the messages concerned with opening external browser windows\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"windows\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n// Global to keep track of open windows (hashmap by title)\nvar windows = {};\n\nexports.startup = function() {\n\t// Handle open window message\n\t$tw.rootWidget.addEventListener(\"tm-open-window\",function(event) {\n\t\t// Get the parameters\n\t\tvar refreshHandler,\n\t\t\ttitle = event.param || event.tiddlerTitle,\n\t\t\tparamObject = event.paramObject || {},\n\t\t\twindowTitle = paramObject.windowTitle || title,\n\t\t\ttemplate = paramObject.template || \"$:/core/templates/single.tiddler.window\",\n\t\t\twidth = paramObject.width || \"700\",\n\t\t\theight = paramObject.height || \"600\",\n\t\t\tvariables = $tw.utils.extend({},paramObject,{currentTiddler: title});\n\t\t// Open the window\n\t\tvar srcWindow,\n\t\t srcDocument;\n\t\t// In case that popup blockers deny opening a new window\n\t\ttry {\n\t\t\tsrcWindow = window.open(\"\",\"external-\" + title,\"scrollbars,width=\" + width + \",height=\" + height),\n\t\t\tsrcDocument = srcWindow.document;\n\t\t}\n\t\tcatch(e) {\n\t\t\treturn;\n\t\t}\n\t\twindows[title] = srcWindow;\n\t\t// Check for reopening the same window\n\t\tif(srcWindow.haveInitialisedWindow) {\n\t\t\treturn;\n\t\t}\n\t\t// Initialise the document\n\t\tsrcDocument.write(\"<html><head></head><body class='tc-body tc-single-tiddler-window'></body></html>\");\n\t\tsrcDocument.close();\n\t\tsrcDocument.title = windowTitle;\n\t\tsrcWindow.addEventListener(\"beforeunload\",function(event) {\n\t\t\tdelete windows[title];\n\t\t\t$tw.wiki.removeEventListener(\"change\",refreshHandler);\n\t\t},false);\n\t\t// Set up the styles\n\t\tvar styleWidgetNode = $tw.wiki.makeTranscludeWidget(\"$:/core/ui/PageStylesheet\",{\n\t\t\t\tdocument: $tw.fakeDocument,\n\t\t\t\tvariables: variables,\n\t\t\t\timportPageMacros: true}),\n\t\t\tstyleContainer = $tw.fakeDocument.createElement(\"style\");\n\t\tstyleWidgetNode.render(styleContainer,null);\n\t\tvar styleElement = srcDocument.createElement(\"style\");\n\t\tstyleElement.innerHTML = styleContainer.textContent;\n\t\tsrcDocument.head.insertBefore(styleElement,srcDocument.head.firstChild);\n\t\t// Render the text of the tiddler\n\t\tvar parser = $tw.wiki.parseTiddler(template),\n\t\t\twidgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, parentWidget: $tw.rootWidget, variables: variables});\n\t\twidgetNode.render(srcDocument.body,srcDocument.body.firstChild);\n\t\t// Function to handle refreshes\n\t\trefreshHandler = function(changes) {\n\t\t\tif(styleWidgetNode.refresh(changes,styleContainer,null)) {\n\t\t\t\tstyleElement.innerHTML = styleContainer.textContent;\n\t\t\t}\n\t\t\twidgetNode.refresh(changes);\n\t\t};\n\t\t$tw.wiki.addEventListener(\"change\",refreshHandler);\n\t\t// Listen for keyboard shortcuts\n\t\t$tw.utils.addEventListeners(srcDocument,[{\n\t\t\tname: \"keydown\",\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \"handleKeydownEvent\"\n\t\t},{\n\t\t\tname: \"click\",\n\t\t\thandlerObject: $tw.popup,\n\t\t\thandlerMethod: \"handleEvent\"\n\t\t}]);\n\t\tsrcWindow.haveInitialisedWindow = true;\n\t});\n\t// Close open windows when unloading main window\n\t$tw.addUnloadTask(function() {\n\t\t$tw.utils.each(windows,function(win) {\n\t\t\twin.close();\n\t\t});\n\t});\n\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/core/modules/story.js": {
"title": "$:/core/modules/story.js",
"text": "/*\\\ntitle: $:/core/modules/story.js\ntype: application/javascript\nmodule-type: global\n\nLightweight object for managing interactions with the story and history lists.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nConstruct Story object with options:\nwiki: reference to wiki object to use to resolve tiddler titles\nstoryTitle: title of story list tiddler\nhistoryTitle: title of history list tiddler\n*/\nfunction Story(options) {\n\toptions = options || {};\n\tthis.wiki = options.wiki || $tw.wiki;\n\tthis.storyTitle = options.storyTitle || \"$:/StoryList\";\n\tthis.historyTitle = options.historyTitle || \"$:/HistoryList\";\n};\n\nStory.prototype.navigateTiddler = function(navigateTo,navigateFromTitle,navigateFromClientRect) {\n\tthis.addToStory(navigateTo,navigateFromTitle);\n\tthis.addToHistory(navigateTo,navigateFromClientRect);\n};\n\nStory.prototype.getStoryList = function() {\n\treturn this.wiki.getTiddlerList(this.storyTitle) || [];\n};\n\nStory.prototype.addToStory = function(navigateTo,navigateFromTitle,options) {\n\toptions = options || {};\n\tvar storyList = this.getStoryList();\n\t// See if the tiddler is already there\n\tvar slot = storyList.indexOf(navigateTo);\n\t// Quit if it already exists in the story river\n\tif(slot >= 0) {\n\t\treturn;\n\t}\n\t// First we try to find the position of the story element we navigated from\n\tvar fromIndex = storyList.indexOf(navigateFromTitle);\n\tif(fromIndex >= 0) {\n\t\t// The tiddler is added from inside the river\n\t\t// Determine where to insert the tiddler; Fallback is \"below\"\n\t\tswitch(options.openLinkFromInsideRiver) {\n\t\t\tcase \"top\":\n\t\t\t\tslot = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"bottom\":\n\t\t\t\tslot = storyList.length;\n\t\t\t\tbreak;\n\t\t\tcase \"above\":\n\t\t\t\tslot = fromIndex;\n\t\t\t\tbreak;\n\t\t\tcase \"below\": // Intentional fall-through\n\t\t\tdefault:\n\t\t\t\tslot = fromIndex + 1;\n\t\t\t\tbreak;\n\t\t}\n\t} else {\n\t\t// The tiddler is opened from outside the river. Determine where to insert the tiddler; default is \"top\"\n\t\tif(options.openLinkFromOutsideRiver === \"bottom\") {\n\t\t\t// Insert at bottom\n\t\t\tslot = storyList.length;\n\t\t} else {\n\t\t\t// Insert at top\n\t\t\tslot = 0;\n\t\t}\n\t}\n\t// Add the tiddler\n\tstoryList.splice(slot,0,navigateTo);\n\t// Save the story\n\tthis.saveStoryList(storyList);\n};\n\nStory.prototype.saveStoryList = function(storyList) {\n\tvar storyTiddler = this.wiki.getTiddler(this.storyTitle);\n\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\tthis.wiki.getCreationFields(),\n\t\t{title: this.storyTitle},\n\t\tstoryTiddler,\n\t\t{list: storyList},\n\t\tthis.wiki.getModificationFields()\n\t));\n};\n\nStory.prototype.addToHistory = function(navigateTo,navigateFromClientRect) {\n\tvar titles = $tw.utils.isArray(navigateTo) ? navigateTo : [navigateTo];\n\t// Add a new record to the top of the history stack\n\tvar historyList = this.wiki.getTiddlerData(this.historyTitle,[]);\n\t$tw.utils.each(titles,function(title) {\n\t\thistoryList.push({title: title, fromPageRect: navigateFromClientRect});\n\t});\n\tthis.wiki.setTiddlerData(this.historyTitle,historyList,{\"current-tiddler\": titles[titles.length-1]});\n};\n\nStory.prototype.storyCloseTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyCloseAllTiddlers = function() {\n// TBD\n};\n\nStory.prototype.storyCloseOtherTiddlers = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyEditTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyDeleteTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storySaveTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyCancelTiddler = function(targetTitle) {\n// TBD\n};\n\nStory.prototype.storyNewTiddler = function(targetTitle) {\n// TBD\n};\n\nexports.Story = Story;\n\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/storyviews/classic.js": {
"title": "$:/core/modules/storyviews/classic.js",
"text": "/*\\\ntitle: $:/core/modules/storyviews/classic.js\ntype: application/javascript\nmodule-type: storyview\n\nViews the story as a linear sequence\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar easing = \"cubic-bezier(0.645, 0.045, 0.355, 1)\"; // From http://easings.net/#easeInOutCubic\n\nvar ClassicStoryView = function(listWidget) {\n\tthis.listWidget = listWidget;\n};\n\nClassicStoryView.prototype.navigateTo = function(historyInfo) {\n\tvar duration = $tw.utils.getAnimationDuration()\n\tvar listElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\tif(duration) {\n\t\t// Scroll the node into view\n\t\tthis.listWidget.dispatchEvent({type: \"tm-scroll\", target: targetElement});\t\n\t} else {\n\t\ttargetElement.scrollIntoView();\n\t}\n};\n\nClassicStoryView.prototype.insert = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode();\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar computedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Reset the margin once the transition is over\n\t\tsetTimeout(function() {\n\t\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t\t{transition: \"none\"},\n\t\t\t\t{marginBottom: \"\"}\n\t\t\t]);\n\t\t},duration);\n\t\t// Set up the initial position of the element\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"none\"},\n\t\t\t{marginBottom: (-currHeight) + \"px\"},\n\t\t\t{opacity: \"0.0\"}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t// Transition to the final position\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"opacity \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"margin-bottom \" + duration + \"ms \" + easing},\n\t\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t\t{opacity: \"1.0\"}\n\t]);\n\t}\n};\n\nClassicStoryView.prototype.remove = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode(),\n\t\t\tremoveElement = function() {\n\t\t\t\twidget.removeChildDomNodes();\n\t\t\t};\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\tremoveElement();\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar currWidth = targetElement.offsetWidth,\n\t\t\tcomputedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Remove the dom nodes of the widget at the end of the transition\n\t\tsetTimeout(removeElement,duration);\n\t\t// Animate the closure\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"none\"},\n\t\t\t{transform: \"translateX(0px)\"},\n\t\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t\t{opacity: \"1.0\"}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"opacity \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"margin-bottom \" + duration + \"ms \" + easing},\n\t\t\t{transform: \"translateX(-\" + currWidth + \"px)\"},\n\t\t\t{marginBottom: (-currHeight) + \"px\"},\n\t\t\t{opacity: \"0.0\"}\n\t\t]);\n\t} else {\n\t\twidget.removeChildDomNodes();\n\t}\n};\n\nexports.classic = ClassicStoryView;\n\n})();",
"type": "application/javascript",
"module-type": "storyview"
},
"$:/core/modules/storyviews/pop.js": {
"title": "$:/core/modules/storyviews/pop.js",
"text": "/*\\\ntitle: $:/core/modules/storyviews/pop.js\ntype: application/javascript\nmodule-type: storyview\n\nAnimates list insertions and removals\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar PopStoryView = function(listWidget) {\n\tthis.listWidget = listWidget;\n};\n\nPopStoryView.prototype.navigateTo = function(historyInfo) {\n\tvar listElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Scroll the node into view\n\tthis.listWidget.dispatchEvent({type: \"tm-scroll\", target: targetElement});\n};\n\nPopStoryView.prototype.insert = function(widget) {\n\tvar targetElement = widget.findFirstDomNode(),\n\t\tduration = $tw.utils.getAnimationDuration();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Reset once the transition is over\n\tsetTimeout(function() {\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"none\"},\n\t\t\t{transform: \"none\"}\n\t\t]);\n\t\t$tw.utils.setStyle(widget.document.body,[\n\t\t\t{\"overflow-x\": \"\"}\n\t\t]);\n\t},duration);\n\t// Prevent the page from overscrolling due to the zoom factor\n\t$tw.utils.setStyle(widget.document.body,[\n\t\t{\"overflow-x\": \"hidden\"}\n\t]);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: \"none\"},\n\t\t{transform: \"scale(2)\"},\n\t\t{opacity: \"0.0\"}\n\t]);\n\t$tw.utils.forceLayout(targetElement);\n\t// Transition to the final position\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{transform: \"scale(1)\"},\n\t\t{opacity: \"1.0\"}\n\t]);\n};\n\nPopStoryView.prototype.remove = function(widget) {\n\tvar targetElement = widget.findFirstDomNode(),\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\tremoveElement = function() {\n\t\t\tif(targetElement && targetElement.parentNode) {\n\t\t\t\twidget.removeChildDomNodes();\n\t\t\t}\n\t\t};\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Remove the element at the end of the transition\n\tsetTimeout(removeElement,duration);\n\t// Animate the closure\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: \"none\"},\n\t\t{transform: \"scale(1)\"},\n\t\t{opacity: \"1.0\"}\n\t]);\n\t$tw.utils.forceLayout(targetElement);\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{transform: \"scale(0.1)\"},\n\t\t{opacity: \"0.0\"}\n\t]);\n};\n\nexports.pop = PopStoryView;\n\n})();\n",
"type": "application/javascript",
"module-type": "storyview"
},
"$:/core/modules/storyviews/zoomin.js": {
"title": "$:/core/modules/storyviews/zoomin.js",
"text": "/*\\\ntitle: $:/core/modules/storyviews/zoomin.js\ntype: application/javascript\nmodule-type: storyview\n\nZooms between individual tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar easing = \"cubic-bezier(0.645, 0.045, 0.355, 1)\"; // From http://easings.net/#easeInOutCubic\n\nvar ZoominListView = function(listWidget) {\n\tvar self = this;\n\tthis.listWidget = listWidget;\n\t// Get the index of the tiddler that is at the top of the history\n\tvar history = this.listWidget.wiki.getTiddlerDataCached(this.listWidget.historyTitle,[]),\n\t\ttargetTiddler;\n\tif(history.length > 0) {\n\t\ttargetTiddler = history[history.length-1].title;\n\t}\n\t// Make all the tiddlers position absolute, and hide all but the top (or first) one\n\t$tw.utils.each(this.listWidget.children,function(itemWidget,index) {\n\t\tvar domNode = itemWidget.findFirstDomNode();\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(domNode instanceof Element)) {\n\t\t\treturn;\n\t\t}\n\t\tif((targetTiddler && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) {\n\t\t\tdomNode.style.display = \"none\";\n\t\t} else {\n\t\t\tself.currentTiddlerDomNode = domNode;\n\t\t}\n\t\t$tw.utils.addClass(domNode,\"tc-storyview-zoomin-tiddler\");\n\t});\n};\n\nZoominListView.prototype.navigateTo = function(historyInfo) {\n\tvar duration = $tw.utils.getAnimationDuration(),\n\t\tlistElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Make the new tiddler be position absolute and visible so that we can measure it\n\t$tw.utils.addClass(targetElement,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"block\"},\n\t\t{transformOrigin: \"0 0\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{transition: \"none\"},\n\t\t{opacity: \"0.0\"}\n\t]);\n\t// Get the position of the source node, or use the centre of the window as the source position\n\tvar sourceBounds = historyInfo.fromPageRect || {\n\t\t\tleft: window.innerWidth/2 - 2,\n\t\t\ttop: window.innerHeight/2 - 2,\n\t\t\twidth: window.innerWidth/8,\n\t\t\theight: window.innerHeight/8\n\t\t};\n\t// Try to find the title node in the target tiddler\n\tvar titleDomNode = findTitleDomNode(listItemWidget) || listItemWidget.findFirstDomNode(),\n\t\tzoomBounds = titleDomNode.getBoundingClientRect();\n\t// Compute the transform for the target tiddler to make the title lie over the source rectange\n\tvar targetBounds = targetElement.getBoundingClientRect(),\n\t\tscale = sourceBounds.width / zoomBounds.width,\n\t\tx = sourceBounds.left - targetBounds.left - (zoomBounds.left - targetBounds.left) * scale,\n\t\ty = sourceBounds.top - targetBounds.top - (zoomBounds.top - targetBounds.top) * scale;\n\t// Transform the target tiddler to its starting position\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transform: \"translateX(\" + x + \"px) translateY(\" + y + \"px) scale(\" + scale + \")\"}\n\t]);\n\t// Force layout\n\t$tw.utils.forceLayout(targetElement);\n\t// Apply the ending transitions with a timeout to ensure that the previously applied transformations are applied first\n\tvar self = this,\n\t\tprevCurrentTiddler = this.currentTiddlerDomNode;\n\tthis.currentTiddlerDomNode = targetElement;\n\t// Transform the target tiddler to its natural size\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t{opacity: \"1.0\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{zIndex: \"500\"},\n\t]);\n\t// Transform the previous tiddler out of the way and then hide it\n\tif(prevCurrentTiddler && prevCurrentTiddler !== targetElement) {\n\t\tscale = zoomBounds.width / sourceBounds.width;\n\t\tx = zoomBounds.left - targetBounds.left - (sourceBounds.left - targetBounds.left) * scale;\n\t\ty = zoomBounds.top - targetBounds.top - (sourceBounds.top - targetBounds.top) * scale;\n\t\t$tw.utils.setStyle(prevCurrentTiddler,[\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t\t{opacity: \"0.0\"},\n\t\t\t{transformOrigin: \"0 0\"},\n\t\t\t{transform: \"translateX(\" + x + \"px) translateY(\" + y + \"px) scale(\" + scale + \")\"},\n\t\t\t{zIndex: \"0\"}\n\t\t]);\n\t\t// Hide the tiddler when the transition has finished\n\t\tsetTimeout(function() {\n\t\t\tif(self.currentTiddlerDomNode !== prevCurrentTiddler) {\n\t\t\t\tprevCurrentTiddler.style.display = \"none\";\n\t\t\t}\n\t\t},duration);\n\t}\n\t// Scroll the target into view\n//\t$tw.pageScroller.scrollIntoView(targetElement);\n};\n\n/*\nFind the first child DOM node of a widget that has the class \"tc-title\"\n*/\nfunction findTitleDomNode(widget,targetClass) {\n\ttargetClass = targetClass || \"tc-title\";\n\tvar domNode = widget.findFirstDomNode();\n\tif(domNode && domNode.querySelector) {\n\t\treturn domNode.querySelector(\".\" + targetClass);\n\t}\n\treturn null;\n}\n\nZoominListView.prototype.insert = function(widget) {\n\tvar targetElement = widget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\t// Make the newly inserted node position absolute and hidden\n\t$tw.utils.addClass(targetElement,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"none\"}\n\t]);\n};\n\nZoominListView.prototype.remove = function(widget) {\n\tvar targetElement = widget.findFirstDomNode(),\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\tremoveElement = function() {\n\t\t\twidget.removeChildDomNodes();\n\t\t};\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Abandon if hidden\n\tif(targetElement.style.display != \"block\" ) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Set up the tiddler that is being closed\n\t$tw.utils.addClass(targetElement,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"block\"},\n\t\t{transformOrigin: \"50% 50%\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{transition: \"none\"},\n\t\t{zIndex: \"0\"}\n\t]);\n\t// We'll move back to the previous or next element in the story\n\tvar toWidget = widget.previousSibling();\n\tif(!toWidget) {\n\t\ttoWidget = widget.nextSibling();\n\t}\n\tvar toWidgetDomNode = toWidget && toWidget.findFirstDomNode();\n\t// Set up the tiddler we're moving back in\n\tif(toWidgetDomNode) {\n\t\t$tw.utils.addClass(toWidgetDomNode,\"tc-storyview-zoomin-tiddler\");\n\t\t$tw.utils.setStyle(toWidgetDomNode,[\n\t\t\t{display: \"block\"},\n\t\t\t{transformOrigin: \"50% 50%\"},\n\t\t\t{transform: \"translateX(0px) translateY(0px) scale(10)\"},\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t\t{opacity: \"0\"},\n\t\t\t{zIndex: \"500\"}\n\t\t]);\n\t\tthis.currentTiddlerDomNode = toWidgetDomNode;\n\t}\n\t// Animate them both\n\t// Force layout\n\t$tw.utils.forceLayout(this.listWidget.parentDomNode);\n\t// First, the tiddler we're closing\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transformOrigin: \"50% 50%\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(0.1)\"},\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t{opacity: \"0\"},\n\t\t{zIndex: \"0\"}\n\t]);\n\tsetTimeout(removeElement,duration);\n\t// Now the tiddler we're going back to\n\tif(toWidgetDomNode) {\n\t\t$tw.utils.setStyle(toWidgetDomNode,[\n\t\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t\t{opacity: \"1\"}\n\t\t]);\n\t}\n\treturn true; // Indicate that we'll delete the DOM node\n};\n\nexports.zoomin = ZoominListView;\n\n})();\n",
"type": "application/javascript",
"module-type": "storyview"
},
"$:/core/modules/syncer.js": {
"title": "$:/core/modules/syncer.js",
"text": "/*\\\ntitle: $:/core/modules/syncer.js\ntype: application/javascript\nmodule-type: global\n\nThe syncer tracks changes to the store. If a syncadaptor is used then individual tiddlers are synchronised through it. If there is no syncadaptor then the entire wiki is saved via saver modules.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nDefaults\n*/\nSyncer.prototype.titleIsLoggedIn = \"$:/status/IsLoggedIn\";\nSyncer.prototype.titleIsAnonymous = \"$:/status/IsAnonymous\";\nSyncer.prototype.titleIsReadOnly = \"$:/status/IsReadOnly\";\nSyncer.prototype.titleUserName = \"$:/status/UserName\";\nSyncer.prototype.titleSyncFilter = \"$:/config/SyncFilter\";\nSyncer.prototype.titleSyncPollingInterval = \"$:/config/SyncPollingInterval\";\nSyncer.prototype.titleSavedNotification = \"$:/language/Notifications/Save/Done\";\nSyncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer\nSyncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...\nSyncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is older than 10s\nSyncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling for changes from the adaptor\n\n/*\nInstantiate the syncer with the following options:\nsyncadaptor: reference to syncadaptor to be used\nwiki: wiki to be synced\n*/\nfunction Syncer(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\tthis.syncadaptor = options.syncadaptor;\n\tthis.disableUI = !!options.disableUI;\n\tthis.titleIsLoggedIn = options.titleIsLoggedIn || this.titleIsLoggedIn;\n\tthis.titleUserName = options.titleUserName || this.titleUserName;\n\tthis.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter;\n\tthis.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification;\n\tthis.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval;\n\tthis.throttleInterval = options.throttleInterval || this.throttleInterval;\n\tthis.fallbackInterval = options.fallbackInterval || this.fallbackInterval;\n\tthis.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,\"\"),10) || this.pollTimerInterval;\n\tthis.logging = \"logging\" in options ? options.logging : true;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\"syncer\" + ($tw.browser ? \"-browser\" : \"\") + ($tw.node ? \"-server\" : \"\") + (this.syncadaptor.name ? (\"-\" + this.syncadaptor.name) : \"\"),{\n\t\t\tcolour: \"cyan\",\n\t\t\tenable: this.logging\n\t\t});\n\t// Compile the dirty tiddler filter\n\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t// Record information for known tiddlers\n\tthis.readTiddlerInfo();\n\t// Tasks are {type: \"load\"/\"save\"/\"delete\", title:, queueTime:, lastModificationTime:}\n\tthis.taskQueue = {}; // Hashmap of tasks yet to be performed\n\tthis.taskInProgress = {}; // Hash of tasks in progress\n\tthis.taskTimerId = null; // Timer for task dispatch\n\tthis.pollTimerId = null; // Timer for polling server\n\t// Listen out for changes to tiddlers\n\tthis.wiki.addEventListener(\"change\",function(changes) {\n\t\tself.syncToServer(changes);\n\t});\n\t// Browser event handlers\n\tif($tw.browser && !this.disableUI) {\n\t\t// Set up our beforeunload handler\n\t\t$tw.addUnloadTask(function(event) {\n\t\t\tvar confirmationMessage;\n\t\t\tif(self.isDirty()) {\n\t\t\t\tconfirmationMessage = $tw.language.getString(\"UnsavedChangesWarning\");\n\t\t\t\tevent.returnValue = confirmationMessage; // Gecko\n\t\t\t}\n\t\t\treturn confirmationMessage;\n\t\t});\n\t\t// Listen out for login/logout/refresh events in the browser\n\t\t$tw.rootWidget.addEventListener(\"tm-login\",function() {\n\t\t\tself.handleLoginEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-logout\",function() {\n\t\t\tself.handleLogoutEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-server-refresh\",function() {\n\t\t\tself.handleRefreshEvent();\n\t\t});\n\t}\n\t// Listen out for lazyLoad events\n\tif(!this.disableUI) {\n\t\tthis.wiki.addEventListener(\"lazyLoad\",function(title) {\n\t\t\tself.handleLazyLoadEvent(title);\n\t\t});\t\t\n\t}\n\t// Get the login status\n\tthis.getStatus(function(err,isLoggedIn) {\n\t\t// Do a sync from the server\n\t\tself.syncFromServer();\n\t});\n}\n\n/*\nRead (or re-read) the latest tiddler info from the store\n*/\nSyncer.prototype.readTiddlerInfo = function() {\n\t// Hashmap by title of {revision:,changeCount:,adaptorInfo:}\n\tthis.tiddlerInfo = {};\n\t// Record information for known tiddlers\n\tvar self = this,\n\t\ttiddlers = this.filterFn.call(this.wiki);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tself.tiddlerInfo[title] = {\n\t\t\trevision: tiddler.fields.revision,\n\t\t\tadaptorInfo: self.syncadaptor && self.syncadaptor.getTiddlerInfo(tiddler),\n\t\t\tchangeCount: self.wiki.getChangeCount(title),\n\t\t\thasBeenLazyLoaded: false\n\t\t};\n\t});\n};\n\n/*\nCreate an tiddlerInfo structure if it doesn't already exist\n*/\nSyncer.prototype.createTiddlerInfo = function(title) {\n\tif(!$tw.utils.hop(this.tiddlerInfo,title)) {\n\t\tthis.tiddlerInfo[title] = {\n\t\t\trevision: null,\n\t\t\tadaptorInfo: {},\n\t\t\tchangeCount: -1,\n\t\t\thasBeenLazyLoaded: false\n\t\t};\n\t}\n};\n\n/*\nChecks whether the wiki is dirty (ie the window shouldn't be closed)\n*/\nSyncer.prototype.isDirty = function() {\n\treturn (this.numTasksInQueue() > 0) || (this.numTasksInProgress() > 0);\n};\n\n/*\nUpdate the document body with the class \"tc-dirty\" if the wiki has unsaved/unsynced changes\n*/\nSyncer.prototype.updateDirtyStatus = function() {\n\tif($tw.browser && !this.disableUI) {\n\t\t$tw.utils.toggleClass(document.body,\"tc-dirty\",this.isDirty());\n\t}\n};\n\n/*\nSave an incoming tiddler in the store, and updates the associated tiddlerInfo\n*/\nSyncer.prototype.storeTiddler = function(tiddlerFields,hasBeenLazyLoaded) {\n\t// Save the tiddler\n\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\tthis.wiki.addTiddler(tiddler);\n\t// Save the tiddler revision and changeCount details\n\tthis.tiddlerInfo[tiddlerFields.title] = {\n\t\trevision: tiddlerFields.revision,\n\t\tadaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler),\n\t\tchangeCount: this.wiki.getChangeCount(tiddlerFields.title),\n\t\thasBeenLazyLoaded: hasBeenLazyLoaded !== undefined ? hasBeenLazyLoaded : true\n\t};\n};\n\nSyncer.prototype.getStatus = function(callback) {\n\tvar self = this;\n\t// Check if the adaptor supports getStatus()\n\tif(this.syncadaptor && this.syncadaptor.getStatus) {\n\t\t// Mark us as not logged in\n\t\tthis.wiki.addTiddler({title: this.titleIsLoggedIn,text: \"no\"});\n\t\t// Get login status\n\t\tthis.syncadaptor.getStatus(function(err,isLoggedIn,username,isReadOnly,isAnonymous) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Set the various status tiddlers\n\t\t\tself.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? \"yes\" : \"no\"});\n\t\t\tself.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? \"yes\" : \"no\"});\n\t\t\tself.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? \"yes\" : \"no\"});\n\t\t\tif(isLoggedIn) {\n\t\t\t\tself.wiki.addTiddler({title: self.titleUserName,text: username || \"\"});\n\t\t\t}\n\t\t\t// Invoke the callback\n\t\t\tif(callback) {\n\t\t\t\tcallback(err,isLoggedIn,username);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tcallback(null,true,\"UNAUTHENTICATED\");\n\t}\n};\n\n/*\nSynchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date\n*/\nSyncer.prototype.syncFromServer = function() {\n\tif(this.syncadaptor && this.syncadaptor.getSkinnyTiddlers) {\n\t\tthis.logger.log(\"Retrieving skinny tiddler list\");\n\t\tvar self = this;\n\t\tif(this.pollTimerId) {\n\t\t\tclearTimeout(this.pollTimerId);\n\t\t\tthis.pollTimerId = null;\n\t\t}\n\t\tthis.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {\n\t\t\t// Trigger the next sync\n\t\t\tself.pollTimerId = setTimeout(function() {\n\t\t\t\tself.pollTimerId = null;\n\t\t\t\tself.syncFromServer.call(self);\n\t\t\t},self.pollTimerInterval);\n\t\t\t// Check for errors\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert($tw.language.getString(\"Error/RetrievingSkinny\") + \":\",err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Process each incoming tiddler\n\t\t\tfor(var t=0; t<tiddlers.length; t++) {\n\t\t\t\t// Get the incoming tiddler fields, and the existing tiddler\n\t\t\t\tvar tiddlerFields = tiddlers[t],\n\t\t\t\t\tincomingRevision = tiddlerFields.revision + \"\",\n\t\t\t\t\ttiddler = self.wiki.getTiddler(tiddlerFields.title),\n\t\t\t\t\ttiddlerInfo = self.tiddlerInfo[tiddlerFields.title],\n\t\t\t\t\tcurrRevision = tiddlerInfo ? tiddlerInfo.revision : null;\n\t\t\t\t// Ignore the incoming tiddler if it's the same as the revision we've already got\n\t\t\t\tif(currRevision !== incomingRevision) {\n\t\t\t\t\t// Do a full load if we've already got a fat version of the tiddler\n\t\t\t\t\tif(tiddler && tiddler.fields.text !== undefined) {\n\t\t\t\t\t\t// Do a full load of this tiddler\n\t\t\t\t\t\tself.enqueueSyncTask({\n\t\t\t\t\t\t\ttype: \"load\",\n\t\t\t\t\t\t\ttitle: tiddlerFields.title\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Load the skinny version of the tiddler\n\t\t\t\t\t\tself.storeTiddler(tiddlerFields,false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nSynchronise a set of changes to the server\n*/\nSyncer.prototype.syncToServer = function(changes) {\n\tvar self = this,\n\t\tnow = Date.now(),\n\t\tfilteredChanges = this.filterFn.call(this.wiki,function(callback) {\n\t\t\t$tw.utils.each(changes,function(change,title) {\n\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\tcallback(tiddler,title);\n\t\t\t});\n\t\t});\n\t$tw.utils.each(changes,function(change,title,object) {\n\t\t// Process the change if it is a deletion of a tiddler we're already syncing, or is on the filtered change list\n\t\tif((change.deleted && $tw.utils.hop(self.tiddlerInfo,title)) || filteredChanges.indexOf(title) !== -1) {\n\t\t\t// Queue a task to sync this tiddler\n\t\t\tself.enqueueSyncTask({\n\t\t\t\ttype: change.deleted ? \"delete\" : \"save\",\n\t\t\t\ttitle: title\n\t\t\t});\n\t\t}\n\t});\n};\n\n/*\nLazily load a skinny tiddler if we can\n*/\nSyncer.prototype.handleLazyLoadEvent = function(title) {\n\t// Don't lazy load the same tiddler twice\n\tvar info = this.tiddlerInfo[title];\n\tif(!info || !info.hasBeenLazyLoaded) {\n\t\t// Don't lazy load if the tiddler isn't included in the sync filter\n\t\tif(this.filterFn.call(this.wiki).indexOf(title) !== -1) {\n\t\t\tthis.createTiddlerInfo(title);\n\t\t\tthis.tiddlerInfo[title].hasBeenLazyLoaded = true;\n\t\t\t// Queue up a sync task to load this tiddler\n\t\t\tthis.enqueueSyncTask({\n\t\t\t\ttype: \"load\",\n\t\t\t\ttitle: title\n\t\t\t});\n\t\t}\n\t}\n};\n\n/*\nDispay a password prompt and allow the user to login\n*/\nSyncer.prototype.handleLoginEvent = function() {\n\tvar self = this;\n\tthis.getStatus(function(err,isLoggedIn,username) {\n\t\tif(!isLoggedIn) {\n\t\t\t$tw.passwordPrompt.createPrompt({\n\t\t\t\tserviceName: $tw.language.getString(\"LoginToTiddlySpace\"),\n\t\t\t\tcallback: function(data) {\n\t\t\t\t\tself.login(data.username,data.password,function(err,isLoggedIn) {\n\t\t\t\t\t\tself.syncFromServer();\n\t\t\t\t\t});\n\t\t\t\t\treturn true; // Get rid of the password prompt\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n};\n\n/*\nAttempt to login to TiddlyWeb.\n\tusername: username\n\tpassword: password\n\tcallback: invoked with arguments (err,isLoggedIn)\n*/\nSyncer.prototype.login = function(username,password,callback) {\n\tthis.logger.log(\"Attempting to login as\",username);\n\tvar self = this;\n\tif(this.syncadaptor.login) {\n\t\tthis.syncadaptor.login(username,password,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.getStatus(function(err,isLoggedIn,username) {\n\t\t\t\tif(callback) {\n\t\t\t\t\tcallback(null,isLoggedIn);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t} else {\n\t\tcallback(null,true);\n\t}\n};\n\n/*\nAttempt to log out of TiddlyWeb\n*/\nSyncer.prototype.handleLogoutEvent = function() {\n\tthis.logger.log(\"Attempting to logout\");\n\tvar self = this;\n\tif(this.syncadaptor.logout) {\n\t\tthis.syncadaptor.logout(function(err) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t} else {\n\t\t\t\tself.getStatus();\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nImmediately refresh from the server\n*/\nSyncer.prototype.handleRefreshEvent = function() {\n\tthis.syncFromServer();\n};\n\n/*\nQueue up a sync task. If there is already a pending task for the tiddler, just update the last modification time\n*/\nSyncer.prototype.enqueueSyncTask = function(task) {\n\tvar self = this,\n\t\tnow = Date.now();\n\t// Set the timestamps on this task\n\ttask.queueTime = now;\n\ttask.lastModificationTime = now;\n\t// Fill in some tiddlerInfo if the tiddler is one we haven't seen before\n\tthis.createTiddlerInfo(task.title);\n\t// Bail if this is a save and the tiddler is already at the changeCount that the server has\n\tif(task.type === \"save\" && this.wiki.getChangeCount(task.title) <= this.tiddlerInfo[task.title].changeCount) {\n\t\treturn;\n\t}\n\t// Check if this tiddler is already in the queue\n\tif($tw.utils.hop(this.taskQueue,task.title)) {\n\t\t// this.logger.log(\"Re-queueing up sync task with type:\",task.type,\"title:\",task.title);\n\t\tvar existingTask = this.taskQueue[task.title];\n\t\t// If so, just update the last modification time\n\t\texistingTask.lastModificationTime = task.lastModificationTime;\n\t\t// If the new task is a save then we upgrade the existing task to a save. Thus a pending load is turned into a save if the tiddler changes locally in the meantime. But a pending save is not modified to become a load\n\t\tif(task.type === \"save\" || task.type === \"delete\") {\n\t\t\texistingTask.type = task.type;\n\t\t}\n\t} else {\n\t\t// this.logger.log(\"Queuing up sync task with type:\",task.type,\"title:\",task.title);\n\t\t// If it is not in the queue, insert it\n\t\tthis.taskQueue[task.title] = task;\n\t\tthis.updateDirtyStatus();\n\t}\n\t// Process the queue\n\t$tw.utils.nextTick(function() {self.processTaskQueue.call(self);});\n};\n\n/*\nReturn the number of tasks in progress\n*/\nSyncer.prototype.numTasksInProgress = function() {\n\treturn $tw.utils.count(this.taskInProgress);\n};\n\n/*\nReturn the number of tasks in the queue\n*/\nSyncer.prototype.numTasksInQueue = function() {\n\treturn $tw.utils.count(this.taskQueue);\n};\n\n/*\nTrigger a timeout if one isn't already outstanding\n*/\nSyncer.prototype.triggerTimeout = function() {\n\tvar self = this;\n\tif(!this.taskTimerId) {\n\t\tthis.taskTimerId = setTimeout(function() {\n\t\t\tself.taskTimerId = null;\n\t\t\tself.processTaskQueue.call(self);\n\t\t},self.taskTimerInterval);\n\t}\n};\n\n/*\nProcess the task queue, performing the next task if appropriate\n*/\nSyncer.prototype.processTaskQueue = function() {\n\tvar self = this;\n\t// Only process a task if the sync adaptor is fully initialised and we're not already performing a task. If we are already performing a task then we'll dispatch the next one when it completes\n\tif((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress() === 0) {\n\t\t// Choose the next task to perform\n\t\tvar task = this.chooseNextTask();\n\t\t// Perform the task if we had one\n\t\tif(task) {\n\t\t\t// Remove the task from the queue and add it to the in progress list\n\t\t\tdelete this.taskQueue[task.title];\n\t\t\tthis.taskInProgress[task.title] = task;\n\t\t\tthis.updateDirtyStatus();\n\t\t\t// Dispatch the task\n\t\t\tthis.dispatchTask(task,function(err) {\n\t\t\t\tif(err) {\n\t\t\t\t\tself.logger.alert(\"Sync error while processing '\" + task.title + \"':\\n\" + err);\n\t\t\t\t}\n\t\t\t\t// Mark that this task is no longer in progress\n\t\t\t\tdelete self.taskInProgress[task.title];\n\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t// Process the next task\n\t\t\t\tself.processTaskQueue.call(self);\n\t\t\t});\n\t\t} else {\n\t\t\t// Make sure we've set a time if there wasn't a task to perform, but we've still got tasks in the queue\n\t\t\tif(this.numTasksInQueue() > 0) {\n\t\t\t\tthis.triggerTimeout();\n\t\t\t}\n\t\t}\n\t}\n};\n\n/*\nChoose the next applicable task\n*/\nSyncer.prototype.chooseNextTask = function() {\n\tvar self = this,\n\t\tcandidateTask = null,\n\t\tnow = Date.now();\n\t// Select the best candidate task\n\t$tw.utils.each(this.taskQueue,function(task,title) {\n\t\t// Exclude the task if there's one of the same name in progress\n\t\tif($tw.utils.hop(self.taskInProgress,title)) {\n\t\t\treturn;\n\t\t}\n\t\t// Exclude the task if it is a save and the tiddler has been modified recently, but not hit the fallback time\n\t\tif(task.type === \"save\" && (now - task.lastModificationTime) < self.throttleInterval &&\n\t\t\t(now - task.queueTime) < self.fallbackInterval) {\n\t\t\treturn;\n\t\t}\n\t\t// Exclude the task if it is newer than the current best candidate\n\t\tif(candidateTask && candidateTask.queueTime < task.queueTime) {\n\t\t\treturn;\n\t\t}\n\t\t// Now this is our best candidate\n\t\tcandidateTask = task;\n\t});\n\treturn candidateTask;\n};\n\n/*\nDispatch a task and invoke the callback\n*/\nSyncer.prototype.dispatchTask = function(task,callback) {\n\tvar self = this;\n\tif(task.type === \"save\") {\n\t\tvar changeCount = this.wiki.getChangeCount(task.title),\n\t\t\ttiddler = this.wiki.getTiddler(task.title);\n\t\tthis.logger.log(\"Dispatching 'save' task:\",task.title);\n\t\tif(tiddler) {\n\t\t\tthis.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) {\n\t\t\t\tif(err) {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t\t// Adjust the info stored about this tiddler\n\t\t\t\tself.tiddlerInfo[task.title] = {\n\t\t\t\t\tchangeCount: changeCount,\n\t\t\t\t\tadaptorInfo: adaptorInfo,\n\t\t\t\t\trevision: revision\n\t\t\t\t};\n\t\t\t\t// Invoke the callback\n\t\t\t\tcallback(null);\n\t\t\t},{\n\t\t\t\ttiddlerInfo: self.tiddlerInfo[task.title]\n\t\t\t});\n\t\t} else {\n\t\t\tthis.logger.log(\" Not Dispatching 'save' task:\",task.title,\"tiddler does not exist\");\n\t\t\treturn callback(null);\n\t\t}\n\t} else if(task.type === \"load\") {\n\t\t// Load the tiddler\n\t\tthis.logger.log(\"Dispatching 'load' task:\",task.title);\n\t\tthis.syncadaptor.loadTiddler(task.title,function(err,tiddlerFields) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\t// Store the tiddler\n\t\t\tif(tiddlerFields) {\n\t\t\t\tself.storeTiddler(tiddlerFields,true);\n\t\t\t}\n\t\t\t// Invoke the callback\n\t\t\tcallback(null);\n\t\t});\n\t} else if(task.type === \"delete\") {\n\t\t// Delete the tiddler\n\t\tthis.logger.log(\"Dispatching 'delete' task:\",task.title);\n\t\tthis.syncadaptor.deleteTiddler(task.title,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tdelete self.tiddlerInfo[task.title];\n\t\t\t// Invoke the callback\n\t\t\tcallback(null);\n\t\t},{\n\t\t\ttiddlerInfo: self.tiddlerInfo[task.title]\n\t\t});\n\t}\n};\n\nexports.Syncer = Syncer;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/tiddler.js": {
"title": "$:/core/modules/tiddler.js",
"text": "/*\\\ntitle: $:/core/modules/tiddler.js\ntype: application/javascript\nmodule-type: tiddlermethod\n\nExtension methods for the $tw.Tiddler object (constructor and methods required at boot time are in boot/boot.js)\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.hasTag = function(tag) {\n\treturn this.fields.tags && this.fields.tags.indexOf(tag) !== -1;\n};\n\nexports.isPlugin = function() {\n\treturn this.fields.type === \"application/json\" && this.hasField(\"plugin-type\");\n};\n\nexports.isDraft = function() {\n\treturn this.hasField(\"draft.of\");\n};\n\nexports.getFieldString = function(field) {\n\tvar value = this.fields[field];\n\t// Check for a missing field\n\tif(value === undefined || value === null) {\n\t\treturn \"\";\n\t}\n\t// Parse the field with the associated module (if any)\n\tvar fieldModule = $tw.Tiddler.fieldModules[field];\n\tif(fieldModule && fieldModule.stringify) {\n\t\treturn fieldModule.stringify.call(this,value);\n\t} else {\n\t\treturn value.toString();\n\t}\n};\n\n/*\nGet the value of a field as a list\n*/\nexports.getFieldList = function(field) {\n\tvar value = this.fields[field];\n\t// Check for a missing field\n\tif(value === undefined || value === null) {\n\t\treturn [];\n\t}\n\treturn $tw.utils.parseStringArray(value);\n};\n\n/*\nGet all the fields as a hashmap of strings. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStrings = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [];\n\tvar fields = {};\n\tfor(var field in this.fields) {\n\t\tif($tw.utils.hop(this.fields,field)) {\n\t\t\tif(exclude.indexOf(field) === -1) {\n\t\t\t\tfields[field] = this.getFieldString(field);\n\t\t\t}\n\t\t}\n\t}\n\treturn fields;\n};\n\n/*\nGet all the fields as a name:value block. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStringBlock = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [],\n\t\tfields = Object.keys(this.fields).sort(),\n\t\tresult = [];\n\tfor(var t=0; t<fields.length; t++) {\n\t\tvar field = fields[t];\n\t\tif(exclude.indexOf(field) === -1) {\n\t\t\tresult.push(field + \": \" + this.getFieldString(field));\n\t\t}\n\t}\n\treturn result.join(\"\\n\");\n};\n\nexports.getFieldDay = function(field) {\n\tif(this.cache && this.cache.day && $tw.utils.hop(this.cache.day,field) ) {\n\t\treturn this.cache.day[field];\n\t}\n\tvar day = \"\";\n\tif(this.fields[field]) {\n\t\tday = (new Date($tw.utils.parseDate(this.fields[field]))).setHours(0,0,0,0);\n\t}\n\tthis.cache.day = this.cache.day || {};\n\tthis.cache.day[field] = day;\n\treturn day;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "tiddlermethod"
},
"$:/core/modules/upgraders/plugins.js": {
"title": "$:/core/modules/upgraders/plugins.js",
"text": "/*\\\ntitle: $:/core/modules/upgraders/plugins.js\ntype: application/javascript\nmodule-type: upgrader\n\nUpgrader module that checks that plugins are newer than any already installed version\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar UPGRADE_LIBRARY_TITLE = \"$:/UpgradeLibrary\";\n\nvar BLOCKED_PLUGINS = {\n\t\"$:/themes/tiddlywiki/stickytitles\": {\n\t\tversions: [\"*\"]\n\t},\n\t\"$:/plugins/tiddlywiki/fullscreen\": {\n\t\tversions: [\"*\"]\n\t}\n};\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {},\n\t\tupgradeLibrary,\n\t\tgetLibraryTiddler = function(title) {\n\t\t\tif(!upgradeLibrary) {\n\t\t\t\tupgradeLibrary = wiki.getTiddlerData(UPGRADE_LIBRARY_TITLE,{});\n\t\t\t\tupgradeLibrary.tiddlers = upgradeLibrary.tiddlers || {};\n\t\t\t}\n\t\t\treturn upgradeLibrary.tiddlers[title];\n\t\t};\n\n\t// Go through all the incoming tiddlers\n\t$tw.utils.each(titles,function(title) {\n\t\tvar incomingTiddler = tiddlers[title];\n\t\t// Check if we're dealing with a plugin\n\t\tif(incomingTiddler && incomingTiddler[\"plugin-type\"] && incomingTiddler.version) {\n\t\t\t// Upgrade the incoming plugin if it is in the upgrade library\n\t\t\tvar libraryTiddler = getLibraryTiddler(title);\n\t\t\tif(libraryTiddler && libraryTiddler[\"plugin-type\"] && libraryTiddler.version) {\n\t\t\t\ttiddlers[title] = libraryTiddler;\n\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/Plugins/Upgraded\",{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Suppress the incoming plugin if it is older than the currently installed one\n\t\t\tvar existingTiddler = wiki.getTiddler(title);\n\t\t\tif(existingTiddler && existingTiddler.hasField(\"plugin-type\") && existingTiddler.hasField(\"version\")) {\n\t\t\t\t// Reject the incoming plugin by blanking all its fields\n\t\t\t\tif($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) {\n\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/Plugins/Suppressed/Version\",{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(incomingTiddler && incomingTiddler[\"plugin-type\"]) {\n\t\t\t// Check whether the plugin is on the blocked list\n\t\t\tvar blockInfo = BLOCKED_PLUGINS[title];\n\t\t\tif(blockInfo) {\n\t\t\t\tif(blockInfo.versions.indexOf(\"*\") !== -1 || (incomingTiddler.version && blockInfo.versions.indexOf(incomingTiddler.version) !== -1)) {\n\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/Plugins/Suppressed/Incompatible\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\treturn messages;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "upgrader"
},
"$:/core/modules/upgraders/system.js": {
"title": "$:/core/modules/upgraders/system.js",
"text": "/*\\\ntitle: $:/core/modules/upgraders/system.js\ntype: application/javascript\nmodule-type: upgrader\n\nUpgrader module that suppresses certain system tiddlers that shouldn't be imported\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar DONT_IMPORT_LIST = [\"$:/StoryList\",\"$:/HistoryList\"],\n\tDONT_IMPORT_PREFIX_LIST = [\"$:/temp/\",\"$:/state/\",\"$:/Import\"],\n\tWARN_IMPORT_PREFIX_LIST = [\"$:/core/modules/\"];\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {},\n\t\tshowAlert = false;\n\t// Check for tiddlers on our list\n\t$tw.utils.each(titles,function(title) {\n\t\tif(DONT_IMPORT_LIST.indexOf(title) !== -1) {\n\t\t\ttiddlers[title] = Object.create(null);\n\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/System/Suppressed\");\n\t\t} else {\n\t\t\tfor(var t=0; t<DONT_IMPORT_PREFIX_LIST.length; t++) {\n\t\t\t\tvar prefix = DONT_IMPORT_PREFIX_LIST[t];\n\t\t\t\tif(title.substr(0,prefix.length) === prefix) {\n\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/State/Suppressed\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(var t=0; t<WARN_IMPORT_PREFIX_LIST.length; t++) {\n\t\t\t\tvar prefix = WARN_IMPORT_PREFIX_LIST[t];\n\t\t\t\tif(title.substr(0,prefix.length) === prefix && wiki.isShadowTiddler(title)) {\n\t\t\t\t\tshowAlert = true;\n\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/System/Warning\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\tif(showAlert) {\n\t\tvar logger = new $tw.utils.Logger(\"import\");\n\t\tlogger.alert($tw.language.getString(\"Import/Upgrader/System/Alert\"));\n\t}\n\treturn messages;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "upgrader"
},
"$:/core/modules/upgraders/themetweaks.js": {
"title": "$:/core/modules/upgraders/themetweaks.js",
"text": "/*\\\ntitle: $:/core/modules/upgraders/themetweaks.js\ntype: application/javascript\nmodule-type: upgrader\n\nUpgrader module that handles the change in theme tweak storage introduced in 5.0.14-beta.\n\nPreviously, theme tweaks were stored in two data tiddlers:\n\n* $:/themes/tiddlywiki/vanilla/metrics\n* $:/themes/tiddlywiki/vanilla/settings\n\nNow, each tweak is stored in its own separate tiddler.\n\nThis upgrader copies any values from the old format to the new. The old data tiddlers are not deleted in case they have been used to store additional indexes.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar MAPPINGS = {\n\t\"$:/themes/tiddlywiki/vanilla/metrics\": {\n\t\t\"fontsize\": \"$:/themes/tiddlywiki/vanilla/metrics/fontsize\",\n\t\t\"lineheight\": \"$:/themes/tiddlywiki/vanilla/metrics/lineheight\",\n\t\t\"storyleft\": \"$:/themes/tiddlywiki/vanilla/metrics/storyleft\",\n\t\t\"storytop\": \"$:/themes/tiddlywiki/vanilla/metrics/storytop\",\n\t\t\"storyright\": \"$:/themes/tiddlywiki/vanilla/metrics/storyright\",\n\t\t\"storywidth\": \"$:/themes/tiddlywiki/vanilla/metrics/storywidth\",\n\t\t\"tiddlerwidth\": \"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\"\n\t},\n\t\"$:/themes/tiddlywiki/vanilla/settings\": {\n\t\t\"fontfamily\": \"$:/themes/tiddlywiki/vanilla/settings/fontfamily\"\n\t}\n};\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {};\n\t// Check for tiddlers on our list\n\t$tw.utils.each(titles,function(title) {\n\t\tvar mapping = MAPPINGS[title];\n\t\tif(mapping) {\n\t\t\tvar tiddler = new $tw.Tiddler(tiddlers[title]),\n\t\t\t\ttiddlerData = wiki.getTiddlerDataCached(tiddler,{});\n\t\t\tfor(var index in mapping) {\n\t\t\t\tvar mappedTitle = mapping[index];\n\t\t\t\tif(!tiddlers[mappedTitle] || tiddlers[mappedTitle].title !== mappedTitle) {\n\t\t\t\t\ttiddlers[mappedTitle] = {\n\t\t\t\t\t\ttitle: mappedTitle,\n\t\t\t\t\t\ttext: tiddlerData[index]\n\t\t\t\t\t};\n\t\t\t\t\tmessages[mappedTitle] = $tw.language.getString(\"Import/Upgrader/ThemeTweaks/Created\",{variables: {\n\t\t\t\t\t\tfrom: title + \"##\" + index\n\t\t\t\t\t}});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\treturn messages;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "upgrader"
},
"$:/core/modules/utils/base64-utf8/base64-utf8.module.js": {
"text": "(function(){// From https://gist.github.com/Nijikokun/5192472\n//\n// UTF8 Module\n//\n// Cleaner and modularized utf-8 encoding and decoding library for javascript.\n//\n// copyright: MIT\n// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com\n!function(r,e,o,t){void 0!==o.module&&o.module.exports?o.module.exports=e.apply(o):void 0!==o.define&&\"function\"===o.define&&o.define.amd?define(\"utf8\",[],e):o.utf8=e.apply(o)}(0,function(){return{encode:function(r){if(\"string\"!=typeof r)return r;r=r.replace(/\\r\\n/g,\"\\n\");for(var e,o=\"\",t=0;t<r.length;t++)(e=r.charCodeAt(t))<128?o+=String.fromCharCode(e):e>127&&e<2048?(o+=String.fromCharCode(e>>6|192),o+=String.fromCharCode(63&e|128)):(o+=String.fromCharCode(e>>12|224),o+=String.fromCharCode(e>>6&63|128),o+=String.fromCharCode(63&e|128));return o},decode:function(r){if(\"string\"!=typeof r)return r;for(var e=\"\",o=0,t=0;o<r.length;)(t=r.charCodeAt(o))<128?(e+=String.fromCharCode(t),o++):t>191&&t<224?(e+=String.fromCharCode((31&t)<<6|63&r.charCodeAt(o+1)),o+=2):(e+=String.fromCharCode((15&t)<<12|(63&r.charCodeAt(o+1))<<6|63&r.charCodeAt(o+2)),o+=3);return e}}},this),function(r,e,o,t){if(void 0!==o.module&&o.module.exports){if(t&&o.require)for(var n=0;n<t.length;n++)o[t[n]]=o.require(t[n]);o.module.exports=e.apply(o)}else void 0!==o.define&&\"function\"===o.define&&o.define.amd?define(\"base64\",t||[],e):o.base64=e.apply(o)}(0,function(r){var e=r||this.utf8,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";return{encode:function(r){if(void 0===e)throw{error:\"MissingMethod\",message:\"UTF8 Module is missing.\"};if(\"string\"!=typeof r)return r;r=e.encode(r);for(var t,n,i,d,f,a,h,c=\"\",u=0;u<r.length;)d=(t=r.charCodeAt(u++))>>2,f=(3&t)<<4|(n=r.charCodeAt(u++))>>4,a=(15&n)<<2|(i=r.charCodeAt(u++))>>6,h=63&i,isNaN(n)?a=h=64:isNaN(i)&&(h=64),c+=o.charAt(d)+o.charAt(f)+o.charAt(a)+o.charAt(h);return c},decode:function(r){if(void 0===e)throw{error:\"MissingMethod\",message:\"UTF8 Module is missing.\"};if(\"string\"!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\");for(var t,n,i,d,f,a,h=\"\",c=0;c<r.length;)t=o.indexOf(r.charAt(c++))<<2|(d=o.indexOf(r.charAt(c++)))>>4,n=(15&d)<<4|(f=o.indexOf(r.charAt(c++)))>>2,i=(3&f)<<6|(a=o.indexOf(r.charAt(c++))),h+=String.fromCharCode(t),64!=f&&(h+=String.fromCharCode(n)),64!=a&&(h+=String.fromCharCode(i));return e.decode(h)}}},this,[\"utf8\"]);}).call(exports);",
"type": "application/javascript",
"title": "$:/core/modules/utils/base64-utf8/base64-utf8.module.js",
"module-type": "library"
},
"$:/core/modules/utils/crypto.js": {
"title": "$:/core/modules/utils/crypto.js",
"text": "/*\\\ntitle: $:/core/modules/utils/crypto.js\ntype: application/javascript\nmodule-type: utils\n\nUtility functions related to crypto.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nLook for an encrypted store area in the text of a TiddlyWiki file\n*/\nexports.extractEncryptedStoreArea = function(text) {\n\tvar encryptedStoreAreaStartMarker = \"<pre id=\\\"encryptedStoreArea\\\" type=\\\"text/plain\\\" style=\\\"display:none;\\\">\",\n\t\tencryptedStoreAreaStart = text.indexOf(encryptedStoreAreaStartMarker);\n\tif(encryptedStoreAreaStart !== -1) {\n\t\tvar encryptedStoreAreaEnd = text.indexOf(\"</pre>\",encryptedStoreAreaStart);\n\t\tif(encryptedStoreAreaEnd !== -1) {\n\t\t\treturn $tw.utils.htmlDecode(text.substring(encryptedStoreAreaStart + encryptedStoreAreaStartMarker.length,encryptedStoreAreaEnd-1));\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nAttempt to extract the tiddlers from an encrypted store area using the current password. If the password is not provided then the password in the password store will be used\n*/\nexports.decryptStoreArea = function(encryptedStoreArea,password) {\n\tvar decryptedText = $tw.crypto.decrypt(encryptedStoreArea,password);\n\tif(decryptedText) {\n\t\tvar json = JSON.parse(decryptedText),\n\t\t\ttiddlers = [];\n\t\tfor(var title in json) {\n\t\t\tif(title !== \"$:/isEncrypted\") {\n\t\t\t\ttiddlers.push(json[title]);\n\t\t\t}\n\t\t}\n\t\treturn tiddlers;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n\n/*\nAttempt to extract the tiddlers from an encrypted store area using the current password. If that fails, the user is prompted for a password.\nencryptedStoreArea: text of the TiddlyWiki encrypted store area\ncallback: function(tiddlers) called with the array of decrypted tiddlers\n\nThe following configuration settings are supported:\n\n$tw.config.usePasswordVault: causes any password entered by the user to also be put into the system password vault\n*/\nexports.decryptStoreAreaInteractive = function(encryptedStoreArea,callback,options) {\n\t// Try to decrypt with the current password\n\tvar tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea);\n\tif(tiddlers) {\n\t\tcallback(tiddlers);\n\t} else {\n\t\t// Prompt for a new password and keep trying\n\t\t$tw.passwordPrompt.createPrompt({\n\t\t\tserviceName: \"Enter a password to decrypt the imported TiddlyWiki\",\n\t\t\tnoUserName: true,\n\t\t\tcanCancel: true,\n\t\t\tsubmitText: \"Decrypt\",\n\t\t\tcallback: function(data) {\n\t\t\t\t// Exit if the user cancelled\n\t\t\t\tif(!data) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// Attempt to decrypt the tiddlers\n\t\t\t\tvar tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea,data.password);\n\t\t\t\tif(tiddlers) {\n\t\t\t\t\tif($tw.config.usePasswordVault) {\n\t\t\t\t\t\t$tw.crypto.setPassword(data.password);\n\t\t\t\t\t}\n\t\t\t\t\tcallback(tiddlers);\n\t\t\t\t\t// Exit and remove the password prompt\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\t// We didn't decrypt everything, so continue to prompt for password\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/csv.js": {
"title": "$:/core/modules/utils/csv.js",
"text": "/*\\\ntitle: $:/core/modules/utils/csv.js\ntype: application/javascript\nmodule-type: utils\n\nA barebones CSV parser\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nParse a CSV string with a header row and return an array of hashmaps.\n*/\nexports.parseCsvStringWithHeader = function(text,options) {\n\toptions = options || {};\n\tvar separator = options.separator || \",\",\n\t\trows = text.split(/\\r?\\n/mg).map(function(row) {\n\t\t\treturn $tw.utils.trim(row);\n\t\t}).filter(function(row) {\n\t\t\treturn row !== \"\";\n\t\t});\n\tif(rows.length < 1) {\n\t\treturn \"Missing header row\";\n\t}\n\tvar headings = rows[0].split(separator),\n\t\tresults = [];\n\tfor(var row=1; row<rows.length; row++) {\n\t\tvar columns = rows[row].split(separator),\n\t\t\tcolumnResult = Object.create(null);\n\t\tif(columns.length !== headings.length) {\n\t\t\treturn \"Malformed CSV row '\" + rows[row] + \"'\";\n\t\t}\n\t\tfor(var column=0; column<columns.length; column++) {\n\t\t\tvar columnName = headings[column];\n\t\t\tcolumnResult[columnName] = $tw.utils.trim(columns[column] || \"\");\n\t\t}\n\t\tresults.push(columnResult);\t\t\t\n\t}\n\treturn results;\n}\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/diff-match-patch/diff_match_patch.js": {
"text": "(function(){function diff_match_patch(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0;\ndiff_match_patch.prototype.diff_main=function(a,b,c,d){\"undefined\"==typeof d&&(d=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error(\"Null input. (diff_main)\");if(a==b)return a?[[DIFF_EQUAL,a]]:[];\"undefined\"==typeof c&&(c=!0);var e=c,f=this.diff_commonPrefix(a,b);c=a.substring(0,f);a=a.substring(f);b=b.substring(f);f=this.diff_commonSuffix(a,b);var g=a.substring(a.length-f);a=a.substring(0,a.length-f);b=b.substring(0,b.length-f);a=this.diff_compute_(a,\nb,e,d);c&&a.unshift([DIFF_EQUAL,c]);g&&a.push([DIFF_EQUAL,g]);this.diff_cleanupMerge(a);return a};\ndiff_match_patch.prototype.diff_compute_=function(a,b,c,d){if(!a)return[[DIFF_INSERT,b]];if(!b)return[[DIFF_DELETE,a]];var e=a.length>b.length?a:b,f=a.length>b.length?b:a,g=e.indexOf(f);return-1!=g?(c=[[DIFF_INSERT,e.substring(0,g)],[DIFF_EQUAL,f],[DIFF_INSERT,e.substring(g+f.length)]],a.length>b.length&&(c[0][0]=c[2][0]=DIFF_DELETE),c):1==f.length?[[DIFF_DELETE,a],[DIFF_INSERT,b]]:(e=this.diff_halfMatch_(a,b))?(b=e[1],f=e[3],a=e[4],e=this.diff_main(e[0],e[2],c,d),c=this.diff_main(b,f,c,d),e.concat([[DIFF_EQUAL,\na]],c)):c&&100<a.length&&100<b.length?this.diff_lineMode_(a,b,d):this.diff_bisect_(a,b,d)};\ndiff_match_patch.prototype.diff_lineMode_=function(a,b,c){var d=this.diff_linesToChars_(a,b);a=d.chars1;b=d.chars2;d=d.lineArray;a=this.diff_main(a,b,!1,c);this.diff_charsToLines_(a,d);this.diff_cleanupSemantic(a);a.push([DIFF_EQUAL,\"\"]);for(var e=d=b=0,f=\"\",g=\"\";b<a.length;){switch(a[b][0]){case DIFF_INSERT:e++;g+=a[b][1];break;case DIFF_DELETE:d++;f+=a[b][1];break;case DIFF_EQUAL:if(1<=d&&1<=e){a.splice(b-d-e,d+e);b=b-d-e;d=this.diff_main(f,g,!1,c);for(e=d.length-1;0<=e;e--)a.splice(b,0,d[e]);b+=\nd.length}d=e=0;g=f=\"\"}b++}a.pop();return a};\ndiff_match_patch.prototype.diff_bisect_=function(a,b,c){for(var d=a.length,e=b.length,f=Math.ceil((d+e)/2),g=2*f,h=Array(g),l=Array(g),k=0;k<g;k++)h[k]=-1,l[k]=-1;h[f+1]=0;l[f+1]=0;k=d-e;for(var m=0!=k%2,p=0,x=0,w=0,q=0,t=0;t<f&&!((new Date).getTime()>c);t++){for(var v=-t+p;v<=t-x;v+=2){var n=f+v;var r=v==-t||v!=t&&h[n-1]<h[n+1]?h[n+1]:h[n-1]+1;for(var y=r-v;r<d&&y<e&&a.charAt(r)==b.charAt(y);)r++,y++;h[n]=r;if(r>d)x+=2;else if(y>e)p+=2;else if(m&&(n=f+k-v,0<=n&&n<g&&-1!=l[n])){var u=d-l[n];if(r>=\nu)return this.diff_bisectSplit_(a,b,r,y,c)}}for(v=-t+w;v<=t-q;v+=2){n=f+v;u=v==-t||v!=t&&l[n-1]<l[n+1]?l[n+1]:l[n-1]+1;for(r=u-v;u<d&&r<e&&a.charAt(d-u-1)==b.charAt(e-r-1);)u++,r++;l[n]=u;if(u>d)q+=2;else if(r>e)w+=2;else if(!m&&(n=f+k-v,0<=n&&n<g&&-1!=h[n]&&(r=h[n],y=f+r-n,u=d-u,r>=u)))return this.diff_bisectSplit_(a,b,r,y,c)}}return[[DIFF_DELETE,a],[DIFF_INSERT,b]]};\ndiff_match_patch.prototype.diff_bisectSplit_=function(a,b,c,d,e){var f=a.substring(0,c),g=b.substring(0,d);a=a.substring(c);b=b.substring(d);f=this.diff_main(f,g,!1,e);e=this.diff_main(a,b,!1,e);return f.concat(e)};\ndiff_match_patch.prototype.diff_linesToChars_=function(a,b){function c(a){for(var b=\"\",c=0,f=-1,g=d.length;f<a.length-1;){f=a.indexOf(\"\\n\",c);-1==f&&(f=a.length-1);var h=a.substring(c,f+1);c=f+1;(e.hasOwnProperty?e.hasOwnProperty(h):void 0!==e[h])?b+=String.fromCharCode(e[h]):(b+=String.fromCharCode(g),e[h]=g,d[g++]=h)}return b}var d=[],e={};d[0]=\"\";var f=c(a),g=c(b);return{chars1:f,chars2:g,lineArray:d}};\ndiff_match_patch.prototype.diff_charsToLines_=function(a,b){for(var c=0;c<a.length;c++){for(var d=a[c][1],e=[],f=0;f<d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join(\"\")}};diff_match_patch.prototype.diff_commonPrefix=function(a,b){if(!a||!b||a.charAt(0)!=b.charAt(0))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};\ndiff_match_patch.prototype.diff_commonSuffix=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};\ndiff_match_patch.prototype.diff_commonOverlap_=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c>d?a=a.substring(c-d):c<d&&(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=a.substring(c-e);f=b.indexOf(f);if(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}};\ndiff_match_patch.prototype.diff_halfMatch_=function(a,b){function c(a,b,c){for(var d=a.substring(c,c+Math.floor(a.length/4)),e=-1,g=\"\",h,k,l,m;-1!=(e=b.indexOf(d,e+1));){var p=f.diff_commonPrefix(a.substring(c),b.substring(e)),u=f.diff_commonSuffix(a.substring(0,c),b.substring(0,e));g.length<u+p&&(g=b.substring(e-u,e)+b.substring(e,e+p),h=a.substring(0,c-u),k=a.substring(c+p),l=b.substring(0,e-u),m=b.substring(e+p))}return 2*g.length>=a.length?[h,k,l,m,g]:null}if(0>=this.Diff_Timeout)return null;\nvar d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<d.length)return null;var f=this,g=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));if(g||d)g=d?g?g[4].length>d[4].length?g:d:d:g;else return null;if(a.length>b.length){d=g[0];e=g[1];var h=g[2];var l=g[3]}else h=g[0],l=g[1],d=g[2],e=g[3];return[d,e,h,l,g[4]]};\ndiff_match_patch.prototype.diff_cleanupSemantic=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=0,h=0,l=0,k=0;f<a.length;)a[f][0]==DIFF_EQUAL?(c[d++]=f,g=l,h=k,k=l=0,e=a[f][1]):(a[f][0]==DIFF_INSERT?l+=a[f][1].length:k+=a[f][1].length,e&&e.length<=Math.max(g,h)&&e.length<=Math.max(l,k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,d--,f=0<d?c[d-1]:-1,k=l=h=g=0,e=null,b=!0)),f++;b&&this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f<a.length;){if(a[f-1][0]==\nDIFF_DELETE&&a[f][0]==DIFF_INSERT){b=a[f-1][1];c=a[f][1];d=this.diff_commonOverlap_(b,c);e=this.diff_commonOverlap_(c,b);if(d>=e){if(d>=b.length/2||d>=c.length/2)a.splice(f,0,[DIFF_EQUAL,c.substring(0,d)]),a[f-1][1]=b.substring(0,b.length-d),a[f+1][1]=c.substring(d),f++}else if(e>=b.length/2||e>=c.length/2)a.splice(f,0,[DIFF_EQUAL,b.substring(0,e)]),a[f-1][0]=DIFF_INSERT,a[f-1][1]=c.substring(0,c.length-e),a[f+1][0]=DIFF_DELETE,a[f+1][1]=b.substring(e),f++;f++}f++}};\ndiff_match_patch.prototype.diff_cleanupSemanticLossless=function(a){function b(a,b){if(!a||!b)return 6;var c=a.charAt(a.length-1),d=b.charAt(0),e=c.match(diff_match_patch.nonAlphaNumericRegex_),f=d.match(diff_match_patch.nonAlphaNumericRegex_),g=e&&c.match(diff_match_patch.whitespaceRegex_),h=f&&d.match(diff_match_patch.whitespaceRegex_);c=g&&c.match(diff_match_patch.linebreakRegex_);d=h&&d.match(diff_match_patch.linebreakRegex_);var k=c&&a.match(diff_match_patch.blanklineEndRegex_),l=d&&b.match(diff_match_patch.blanklineStartRegex_);\nreturn k||l?5:c||d?4:e&&!g&&h?3:g||h?2:e||f?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==DIFF_EQUAL&&a[c+1][0]==DIFF_EQUAL){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],g=this.diff_commonSuffix(d,e);if(g){var h=e.substring(e.length-g);d=d.substring(0,d.length-g);e=h+e.substring(0,e.length-g);f=h+f}g=d;h=e;for(var l=f,k=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var m=b(d,e)+b(e,f);m>=k&&(k=m,g=d,h=e,l=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c-\n1,1),c--),a[c][1]=h,l?a[c+1][1]=l:(a.splice(c+1,1),c--))}c++}};diff_match_patch.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;diff_match_patch.whitespaceRegex_=/\\s/;diff_match_patch.linebreakRegex_=/[\\r\\n]/;diff_match_patch.blanklineEndRegex_=/\\n\\r?\\n$/;diff_match_patch.blanklineStartRegex_=/^\\r?\\n\\r?\\n/;\ndiff_match_patch.prototype.diff_cleanupEfficiency=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=!1,h=!1,l=!1,k=!1;f<a.length;)a[f][0]==DIFF_EQUAL?(a[f][1].length<this.Diff_EditCost&&(l||k)?(c[d++]=f,g=l,h=k,e=a[f][1]):(d=0,e=null),l=k=!1):(a[f][0]==DIFF_DELETE?k=!0:l=!0,e&&(g&&h&&l&&k||e.length<this.Diff_EditCost/2&&3==g+h+l+k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,e=null,g&&h?(l=k=!0,d=0):(d--,f=0<d?c[d-1]:-1,l=k=!1),b=!0)),f++;b&&this.diff_cleanupMerge(a)};\ndiff_match_patch.prototype.diff_cleanupMerge=function(a){a.push([DIFF_EQUAL,\"\"]);for(var b=0,c=0,d=0,e=\"\",f=\"\",g;b<a.length;)switch(a[b][0]){case DIFF_INSERT:d++;f+=a[b][1];b++;break;case DIFF_DELETE:c++;e+=a[b][1];b++;break;case DIFF_EQUAL:1<c+d?(0!==c&&0!==d&&(g=this.diff_commonPrefix(f,e),0!==g&&(0<b-c-d&&a[b-c-d-1][0]==DIFF_EQUAL?a[b-c-d-1][1]+=f.substring(0,g):(a.splice(0,0,[DIFF_EQUAL,f.substring(0,g)]),b++),f=f.substring(g),e=e.substring(g)),g=this.diff_commonSuffix(f,e),0!==g&&(a[b][1]=f.substring(f.length-\ng)+a[b][1],f=f.substring(0,f.length-g),e=e.substring(0,e.length-g))),0===c?a.splice(b-d,c+d,[DIFF_INSERT,f]):0===d?a.splice(b-c,c+d,[DIFF_DELETE,e]):a.splice(b-c-d,c+d,[DIFF_DELETE,e],[DIFF_INSERT,f]),b=b-c-d+(c?1:0)+(d?1:0)+1):0!==b&&a[b-1][0]==DIFF_EQUAL?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,c=d=0,f=e=\"\"}\"\"===a[a.length-1][1]&&a.pop();c=!1;for(b=1;b<a.length-1;)a[b-1][0]==DIFF_EQUAL&&a[b+1][0]==DIFF_EQUAL&&(a[b][1].substring(a[b][1].length-a[b-1][1].length)==a[b-1][1]?(a[b][1]=a[b-1][1]+a[b][1].substring(0,\na[b][1].length-a[b-1][1].length),a[b+1][1]=a[b-1][1]+a[b+1][1],a.splice(b-1,1),c=!0):a[b][1].substring(0,a[b+1][1].length)==a[b+1][1]&&(a[b-1][1]+=a[b+1][1],a[b][1]=a[b][1].substring(a[b+1][1].length)+a[b+1][1],a.splice(b+1,1),c=!0)),b++;c&&this.diff_cleanupMerge(a)};\ndiff_match_patch.prototype.diff_xIndex=function(a,b){var c=0,d=0,e=0,f=0,g;for(g=0;g<a.length;g++){a[g][0]!==DIFF_INSERT&&(c+=a[g][1].length);a[g][0]!==DIFF_DELETE&&(d+=a[g][1].length);if(c>b)break;e=c;f=d}return a.length!=g&&a[g][0]===DIFF_DELETE?f:f+(b-e)};\ndiff_match_patch.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&/g,d=/</g,e=/>/g,f=/\\n/g,g=0;g<a.length;g++){var h=a[g][0],l=a[g][1].replace(c,\"&\").replace(d,\"<\").replace(e,\">\").replace(f,\"¶<br>\");switch(h){case DIFF_INSERT:b[g]='<ins style=\"background:#e6ffe6;\">'+l+\"</ins>\";break;case DIFF_DELETE:b[g]='<del style=\"background:#ffe6e6;\">'+l+\"</del>\";break;case DIFF_EQUAL:b[g]=\"<span>\"+l+\"</span>\"}}return b.join(\"\")};\ndiff_match_patch.prototype.diff_text1=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_INSERT&&(b[c]=a[c][1]);return b.join(\"\")};diff_match_patch.prototype.diff_text2=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_DELETE&&(b[c]=a[c][1]);return b.join(\"\")};\ndiff_match_patch.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e<a.length;e++){var f=a[e][1];switch(a[e][0]){case DIFF_INSERT:c+=f.length;break;case DIFF_DELETE:d+=f.length;break;case DIFF_EQUAL:b+=Math.max(c,d),d=c=0}}return b+=Math.max(c,d)};\ndiff_match_patch.prototype.diff_toDelta=function(a){for(var b=[],c=0;c<a.length;c++)switch(a[c][0]){case DIFF_INSERT:b[c]=\"+\"+encodeURI(a[c][1]);break;case DIFF_DELETE:b[c]=\"-\"+a[c][1].length;break;case DIFF_EQUAL:b[c]=\"=\"+a[c][1].length}return b.join(\"\\t\").replace(/%20/g,\" \")};\ndiff_match_patch.prototype.diff_fromDelta=function(a,b){for(var c=[],d=0,e=0,f=b.split(/\\t/g),g=0;g<f.length;g++){var h=f[g].substring(1);switch(f[g].charAt(0)){case \"+\":try{c[d++]=[DIFF_INSERT,decodeURI(h)]}catch(k){throw Error(\"Illegal escape in diff_fromDelta: \"+h);}break;case \"-\":case \"=\":var l=parseInt(h,10);if(isNaN(l)||0>l)throw Error(\"Invalid number in diff_fromDelta: \"+h);h=a.substring(e,e+=l);\"=\"==f[g].charAt(0)?c[d++]=[DIFF_EQUAL,h]:c[d++]=[DIFF_DELETE,h];break;default:if(f[g])throw Error(\"Invalid diff operation in diff_fromDelta: \"+\nf[g]);}}if(e!=a.length)throw Error(\"Delta length (\"+e+\") does not equal source text length (\"+a.length+\").\");return c};diff_match_patch.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error(\"Null input. (match_main)\");c=Math.max(0,Math.min(c,a.length));return a==b?0:a.length?a.substring(c,c+b.length)==b?c:this.match_bitap_(a,b,c):-1};\ndiff_match_patch.prototype.match_bitap_=function(a,b,c){function d(a,d){var e=a/b.length,g=Math.abs(c-d);return f.Match_Distance?e+g/f.Match_Distance:g?1:e}if(b.length>this.Match_MaxBits)throw Error(\"Pattern too long for this browser.\");var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&&(g=Math.min(d(0,h),g),h=a.lastIndexOf(b,c+b.length),-1!=h&&(g=Math.min(d(0,h),g)));var l=1<<b.length-1;h=-1;for(var k,m,p=b.length+a.length,x,w=0;w<b.length;w++){k=0;for(m=p;k<m;)d(w,\nc+m)<=g?k=m:p=m,m=Math.floor((p-k)/2+k);p=m;k=Math.max(1,c-m+1);var q=Math.min(c+m,a.length)+b.length;m=Array(q+2);for(m[q+1]=(1<<w)-1;q>=k;q--){var t=e[a.charAt(q-1)];m[q]=0===w?(m[q+1]<<1|1)&t:(m[q+1]<<1|1)&t|(x[q+1]|x[q])<<1|1|x[q+1];if(m[q]&l&&(t=d(w,q-1),t<=g))if(g=t,h=q-1,h>c)k=Math.max(1,2*c-h);else break}if(d(w+1,c)>g)break;x=m}return h};\ndiff_match_patch.prototype.match_alphabet_=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=0;for(c=0;c<a.length;c++)b[a.charAt(c)]|=1<<a.length-c-1;return b};\ndiff_match_patch.prototype.patch_addContext_=function(a,b){if(0!=b.length){for(var c=b.substring(a.start2,a.start2+a.length1),d=0;b.indexOf(c)!=b.lastIndexOf(c)&&c.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,c=b.substring(a.start2-d,a.start2+a.length1+d);d+=this.Patch_Margin;(c=b.substring(a.start2-d,a.start2))&&a.diffs.unshift([DIFF_EQUAL,c]);(d=b.substring(a.start2+a.length1,a.start2+a.length1+d))&&a.diffs.push([DIFF_EQUAL,d]);a.start1-=c.length;a.start2-=\nc.length;a.length1+=c.length+d.length;a.length2+=c.length+d.length}};\ndiff_match_patch.prototype.patch_make=function(a,b,c){if(\"string\"==typeof a&&\"string\"==typeof b&&\"undefined\"==typeof c){var d=a;b=this.diff_main(d,b,!0);2<b.length&&(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b))}else if(a&&\"object\"==typeof a&&\"undefined\"==typeof b&&\"undefined\"==typeof c)b=a,d=this.diff_text1(b);else if(\"string\"==typeof a&&b&&\"object\"==typeof b&&\"undefined\"==typeof c)d=a;else if(\"string\"==typeof a&&\"string\"==typeof b&&c&&\"object\"==typeof c)d=a,b=c;else throw Error(\"Unknown call format to patch_make.\");\nif(0===b.length)return[];c=[];a=new diff_match_patch.patch_obj;for(var e=0,f=0,g=0,h=d,l=0;l<b.length;l++){var k=b[l][0],m=b[l][1];e||k===DIFF_EQUAL||(a.start1=f,a.start2=g);switch(k){case DIFF_INSERT:a.diffs[e++]=b[l];a.length2+=m.length;d=d.substring(0,g)+m+d.substring(g);break;case DIFF_DELETE:a.length1+=m.length;a.diffs[e++]=b[l];d=d.substring(0,g)+d.substring(g+m.length);break;case DIFF_EQUAL:m.length<=2*this.Patch_Margin&&e&&b.length!=l+1?(a.diffs[e++]=b[l],a.length1+=m.length,a.length2+=m.length):\nm.length>=2*this.Patch_Margin&&e&&(this.patch_addContext_(a,h),c.push(a),a=new diff_match_patch.patch_obj,e=0,h=d,f=g)}k!==DIFF_INSERT&&(f+=m.length);k!==DIFF_DELETE&&(g+=m.length)}e&&(this.patch_addContext_(a,h),c.push(a));return c};\ndiff_match_patch.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=new diff_match_patch.patch_obj;e.diffs=[];for(var f=0;f<d.diffs.length;f++)e.diffs[f]=d.diffs[f].slice();e.start1=d.start1;e.start2=d.start2;e.length1=d.length1;e.length2=d.length2;b[c]=e}return b};\ndiff_match_patch.prototype.patch_apply=function(a,b){if(0==a.length)return[b,[]];a=this.patch_deepCopy(a);var c=this.patch_addPadding(a);b=c+b+c;this.patch_splitMax(a);for(var d=0,e=[],f=0;f<a.length;f++){var g=a[f].start2+d,h=this.diff_text1(a[f].diffs),l=-1;if(h.length>this.Match_MaxBits){var k=this.match_main(b,h.substring(0,this.Match_MaxBits),g);-1!=k&&(l=this.match_main(b,h.substring(h.length-this.Match_MaxBits),g+h.length-this.Match_MaxBits),-1==l||k>=l)&&(k=-1)}else k=this.match_main(b,h,\ng);if(-1==k)e[f]=!1,d-=a[f].length2-a[f].length1;else if(e[f]=!0,d=k-g,g=-1==l?b.substring(k,k+h.length):b.substring(k,l+this.Match_MaxBits),h==g)b=b.substring(0,k)+this.diff_text2(a[f].diffs)+b.substring(k+h.length);else if(g=this.diff_main(h,g,!1),h.length>this.Match_MaxBits&&this.diff_levenshtein(g)/h.length>this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(g);h=0;var m;for(l=0;l<a[f].diffs.length;l++){var p=a[f].diffs[l];p[0]!==DIFF_EQUAL&&(m=this.diff_xIndex(g,h));p[0]===\nDIFF_INSERT?b=b.substring(0,k+m)+p[1]+b.substring(k+m):p[0]===DIFF_DELETE&&(b=b.substring(0,k+m)+b.substring(k+this.diff_xIndex(g,h+p[1].length)));p[0]!==DIFF_DELETE&&(h+=p[1].length)}}}b=b.substring(c.length,b.length-c.length);return[b,e]};\ndiff_match_patch.prototype.patch_addPadding=function(a){for(var b=this.Patch_Margin,c=\"\",d=1;d<=b;d++)c+=String.fromCharCode(d);for(d=0;d<a.length;d++)a[d].start1+=b,a[d].start2+=b;d=a[0];var e=d.diffs;if(0==e.length||e[0][0]!=DIFF_EQUAL)e.unshift([DIFF_EQUAL,c]),d.start1-=b,d.start2-=b,d.length1+=b,d.length2+=b;else if(b>e[0][1].length){var f=b-e[0][1].length;e[0][1]=c.substring(e[0][1].length)+e[0][1];d.start1-=f;d.start2-=f;d.length1+=f;d.length2+=f}d=a[a.length-1];e=d.diffs;0==e.length||e[e.length-\n1][0]!=DIFF_EQUAL?(e.push([DIFF_EQUAL,c]),d.length1+=b,d.length2+=b):b>e[e.length-1][1].length&&(f=b-e[e.length-1][1].length,e[e.length-1][1]+=c.substring(0,f),d.length1+=f,d.length2+=f);return c};\ndiff_match_patch.prototype.patch_splitMax=function(a){for(var b=this.Match_MaxBits,c=0;c<a.length;c++)if(!(a[c].length1<=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g=\"\";0!==d.diffs.length;){var h=new diff_match_patch.patch_obj,l=!0;h.start1=e-g.length;h.start2=f-g.length;\"\"!==g&&(h.length1=h.length2=g.length,h.diffs.push([DIFF_EQUAL,g]));for(;0!==d.diffs.length&&h.length1<b-this.Patch_Margin;){g=d.diffs[0][0];var k=d.diffs[0][1];g===DIFF_INSERT?(h.length2+=k.length,f+=k.length,h.diffs.push(d.diffs.shift()),\nl=!1):g===DIFF_DELETE&&1==h.diffs.length&&h.diffs[0][0]==DIFF_EQUAL&&k.length>2*b?(h.length1+=k.length,e+=k.length,l=!1,h.diffs.push([g,k]),d.diffs.shift()):(k=k.substring(0,b-h.length1-this.Patch_Margin),h.length1+=k.length,e+=k.length,g===DIFF_EQUAL?(h.length2+=k.length,f+=k.length):l=!1,h.diffs.push([g,k]),k==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(k.length))}g=this.diff_text2(h.diffs);g=g.substring(g.length-this.Patch_Margin);k=this.diff_text1(d.diffs).substring(0,\nthis.Patch_Margin);\"\"!==k&&(h.length1+=k.length,h.length2+=k.length,0!==h.diffs.length&&h.diffs[h.diffs.length-1][0]===DIFF_EQUAL?h.diffs[h.diffs.length-1][1]+=k:h.diffs.push([DIFF_EQUAL,k]));l||a.splice(++c,0,h)}}};diff_match_patch.prototype.patch_toText=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=a[c];return b.join(\"\")};\ndiff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split(\"\\n\");for(var c=0,d=/^@@ -(\\d+),?(\\d*) \\+(\\d+),?(\\d*) @@$/;c<a.length;){var e=a[c].match(d);if(!e)throw Error(\"Invalid patch string: \"+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);\"\"===e[2]?(f.start1--,f.length1=1):\"0\"==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);\"\"===e[4]?(f.start2--,f.length2=1):\"0\"==e[4]?f.length2=0:(f.start2--,f.length2=\nparseInt(e[4],10));for(c++;c<a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error(\"Illegal escape in patch_fromText: \"+g);}if(\"-\"==e)f.diffs.push([DIFF_DELETE,g]);else if(\"+\"==e)f.diffs.push([DIFF_INSERT,g]);else if(\" \"==e)f.diffs.push([DIFF_EQUAL,g]);else if(\"@\"==e)break;else if(\"\"!==e)throw Error('Invalid patch mode \"'+e+'\" in: '+g);c++}}return b};diff_match_patch.patch_obj=function(){this.diffs=[];this.start2=this.start1=null;this.length2=this.length1=0};\ndiff_match_patch.patch_obj.prototype.toString=function(){for(var a=[\"@@ -\"+(0===this.length1?this.start1+\",0\":1==this.length1?this.start1+1:this.start1+1+\",\"+this.length1)+\" +\"+(0===this.length2?this.start2+\",0\":1==this.length2?this.start2+1:this.start2+1+\",\"+this.length2)+\" @@\\n\"],b,c=0;c<this.diffs.length;c++){switch(this.diffs[c][0]){case DIFF_INSERT:b=\"+\";break;case DIFF_DELETE:b=\"-\";break;case DIFF_EQUAL:b=\" \"}a[c+1]=b+encodeURI(this.diffs[c][1])+\"\\n\"}return a.join(\"\").replace(/%20/g,\" \")};\nthis.diff_match_patch=diff_match_patch;this.DIFF_DELETE=DIFF_DELETE;this.DIFF_INSERT=DIFF_INSERT;this.DIFF_EQUAL=DIFF_EQUAL;\n}).call(exports);",
"type": "application/javascript",
"title": "$:/core/modules/utils/diff-match-patch/diff_match_patch.js",
"module-type": "library"
},
"$:/core/modules/utils/dom/animations/slide.js": {
"title": "$:/core/modules/utils/dom/animations/slide.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/animations/slide.js\ntype: application/javascript\nmodule-type: animation\n\nA simple slide animation that varies the height of the element\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nfunction slideOpen(domNode,options) {\n\toptions = options || {};\n\tvar duration = options.duration || $tw.utils.getAnimationDuration();\n\t// Get the current height of the domNode\n\tvar computedStyle = window.getComputedStyle(domNode),\n\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\tcurrPaddingBottom = parseInt(computedStyle.paddingBottom,10),\n\t\tcurrPaddingTop = parseInt(computedStyle.paddingTop,10),\n\t\tcurrHeight = domNode.offsetHeight;\n\t// Reset the margin once the transition is over\n\tsetTimeout(function() {\n\t\t$tw.utils.setStyle(domNode,[\n\t\t\t{transition: \"none\"},\n\t\t\t{marginBottom: \"\"},\n\t\t\t{marginTop: \"\"},\n\t\t\t{paddingBottom: \"\"},\n\t\t\t{paddingTop: \"\"},\n\t\t\t{height: \"auto\"},\n\t\t\t{opacity: \"\"}\n\t\t]);\n\t\tif(options.callback) {\n\t\t\toptions.callback();\n\t\t}\n\t},duration);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(domNode,[\n\t\t{transition: \"none\"},\n\t\t{marginTop: \"0px\"},\n\t\t{marginBottom: \"0px\"},\n\t\t{paddingTop: \"0px\"},\n\t\t{paddingBottom: \"0px\"},\n\t\t{height: \"0px\"},\n\t\t{opacity: \"0\"}\n\t]);\n\t$tw.utils.forceLayout(domNode);\n\t// Transition to the final position\n\t$tw.utils.setStyle(domNode,[\n\t\t{transition: \"margin-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"margin-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"height \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t{marginTop: currMarginTop + \"px\"},\n\t\t{paddingBottom: currPaddingBottom + \"px\"},\n\t\t{paddingTop: currPaddingTop + \"px\"},\n\t\t{height: currHeight + \"px\"},\n\t\t{opacity: \"1\"}\n\t]);\n}\n\nfunction slideClosed(domNode,options) {\n\toptions = options || {};\n\tvar duration = options.duration || $tw.utils.getAnimationDuration(),\n\t\tcurrHeight = domNode.offsetHeight;\n\t// Clear the properties we've set when the animation is over\n\tsetTimeout(function() {\n\t\t$tw.utils.setStyle(domNode,[\n\t\t\t{transition: \"none\"},\n\t\t\t{marginBottom: \"\"},\n\t\t\t{marginTop: \"\"},\n\t\t\t{paddingBottom: \"\"},\n\t\t\t{paddingTop: \"\"},\n\t\t\t{height: \"auto\"},\n\t\t\t{opacity: \"\"}\n\t\t]);\n\t\tif(options.callback) {\n\t\t\toptions.callback();\n\t\t}\n\t},duration);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(domNode,[\n\t\t{height: currHeight + \"px\"},\n\t\t{opacity: \"1\"}\n\t]);\n\t$tw.utils.forceLayout(domNode);\n\t// Transition to the final position\n\t$tw.utils.setStyle(domNode,[\n\t\t{transition: \"margin-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"margin-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"height \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{marginTop: \"0px\"},\n\t\t{marginBottom: \"0px\"},\n\t\t{paddingTop: \"0px\"},\n\t\t{paddingBottom: \"0px\"},\n\t\t{height: \"0px\"},\n\t\t{opacity: \"0\"}\n\t]);\n}\n\nexports.slide = {\n\topen: slideOpen,\n\tclose: slideClosed\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "animation"
},
"$:/core/modules/utils/dom/animator.js": {
"title": "$:/core/modules/utils/dom/animator.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/animator.js\ntype: application/javascript\nmodule-type: utils\n\nOrchestrates animations and transitions\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nfunction Animator() {\n\t// Get the registered animation modules\n\tthis.animations = {};\n\t$tw.modules.applyMethods(\"animation\",this.animations);\n}\n\nAnimator.prototype.perform = function(type,domNode,options) {\n\toptions = options || {};\n\t// Find an animation that can handle this type\n\tvar chosenAnimation;\n\t$tw.utils.each(this.animations,function(animation,name) {\n\t\tif($tw.utils.hop(animation,type)) {\n\t\t\tchosenAnimation = animation[type];\n\t\t}\n\t});\n\tif(!chosenAnimation) {\n\t\tchosenAnimation = function(domNode,options) {\n\t\t\tif(options.callback) {\n\t\t\t\toptions.callback();\n\t\t\t}\n\t\t};\n\t}\n\t// Call the animation\n\tchosenAnimation(domNode,options);\n};\n\nexports.Animator = Animator;\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/browser.js": {
"title": "$:/core/modules/utils/dom/browser.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/browser.js\ntype: application/javascript\nmodule-type: utils\n\nBrowser feature detection\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSet style properties of an element\n\telement: dom node\n\tstyles: ordered array of {name: value} pairs\n*/\nexports.setStyle = function(element,styles) {\n\tif(element.nodeType === 1) { // Element.ELEMENT_NODE\n\t\tfor(var t=0; t<styles.length; t++) {\n\t\t\tfor(var styleName in styles[t]) {\n\t\t\t\telement.style[$tw.utils.convertStyleNameToPropertyName(styleName)] = styles[t][styleName];\n\t\t\t}\n\t\t}\n\t}\n};\n\n/*\nConverts a standard CSS property name into the local browser-specific equivalent. For example:\n\t\"background-color\" --> \"backgroundColor\"\n\t\"transition\" --> \"webkitTransition\"\n*/\n\nvar styleNameCache = {}; // We'll cache the style name conversions\n\nexports.convertStyleNameToPropertyName = function(styleName) {\n\t// Return from the cache if we can\n\tif(styleNameCache[styleName]) {\n\t\treturn styleNameCache[styleName];\n\t}\n\t// Convert it by first removing any hyphens\n\tvar propertyName = $tw.utils.unHyphenateCss(styleName);\n\t// Then check if it needs a prefix\n\tif($tw.browser && document.body.style[propertyName] === undefined) {\n\t\tvar prefixes = [\"O\",\"MS\",\"Moz\",\"webkit\"];\n\t\tfor(var t=0; t<prefixes.length; t++) {\n\t\t\tvar prefixedName = prefixes[t] + propertyName.substr(0,1).toUpperCase() + propertyName.substr(1);\n\t\t\tif(document.body.style[prefixedName] !== undefined) {\n\t\t\t\tpropertyName = prefixedName;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t// Put it in the cache too\n\tstyleNameCache[styleName] = propertyName;\n\treturn propertyName;\n};\n\n/*\nConverts a JS format CSS property name back into the dashed form used in CSS declarations. For example:\n\t\"backgroundColor\" --> \"background-color\"\n\t\"webkitTransform\" --> \"-webkit-transform\"\n*/\nexports.convertPropertyNameToStyleName = function(propertyName) {\n\t// Rehyphenate the name\n\tvar styleName = $tw.utils.hyphenateCss(propertyName);\n\t// If there's a webkit prefix, add a dash (other browsers have uppercase prefixes, and so get the dash automatically)\n\tif(styleName.indexOf(\"webkit\") === 0) {\n\t\tstyleName = \"-\" + styleName;\n\t} else if(styleName.indexOf(\"-m-s\") === 0) {\n\t\tstyleName = \"-ms\" + styleName.substr(4);\n\t}\n\treturn styleName;\n};\n\n/*\nRound trip a stylename to a property name and back again. For example:\n\t\"transform\" --> \"webkitTransform\" --> \"-webkit-transform\"\n*/\nexports.roundTripPropertyName = function(propertyName) {\n\treturn $tw.utils.convertPropertyNameToStyleName($tw.utils.convertStyleNameToPropertyName(propertyName));\n};\n\n/*\nConverts a standard event name into the local browser specific equivalent. For example:\n\t\"animationEnd\" --> \"webkitAnimationEnd\"\n*/\n\nvar eventNameCache = {}; // We'll cache the conversions\n\nvar eventNameMappings = {\n\t\"transitionEnd\": {\n\t\tcorrespondingCssProperty: \"transition\",\n\t\tmappings: {\n\t\t\ttransition: \"transitionend\",\n\t\t\tOTransition: \"oTransitionEnd\",\n\t\t\tMSTransition: \"msTransitionEnd\",\n\t\t\tMozTransition: \"transitionend\",\n\t\t\twebkitTransition: \"webkitTransitionEnd\"\n\t\t}\n\t},\n\t\"animationEnd\": {\n\t\tcorrespondingCssProperty: \"animation\",\n\t\tmappings: {\n\t\t\tanimation: \"animationend\",\n\t\t\tOAnimation: \"oAnimationEnd\",\n\t\t\tMSAnimation: \"msAnimationEnd\",\n\t\t\tMozAnimation: \"animationend\",\n\t\t\twebkitAnimation: \"webkitAnimationEnd\"\n\t\t}\n\t}\n};\n\nexports.convertEventName = function(eventName) {\n\tif(eventNameCache[eventName]) {\n\t\treturn eventNameCache[eventName];\n\t}\n\tvar newEventName = eventName,\n\t\tmappings = eventNameMappings[eventName];\n\tif(mappings) {\n\t\tvar convertedProperty = $tw.utils.convertStyleNameToPropertyName(mappings.correspondingCssProperty);\n\t\tif(mappings.mappings[convertedProperty]) {\n\t\t\tnewEventName = mappings.mappings[convertedProperty];\n\t\t}\n\t}\n\t// Put it in the cache too\n\teventNameCache[eventName] = newEventName;\n\treturn newEventName;\n};\n\n/*\nReturn the names of the fullscreen APIs\n*/\nexports.getFullScreenApis = function() {\n\tvar d = document,\n\t\tdb = d.body,\n\t\tresult = {\n\t\t\"_requestFullscreen\": db.webkitRequestFullscreen !== undefined ? \"webkitRequestFullscreen\" :\n\t\t\t\t\t\t\tdb.mozRequestFullScreen !== undefined ? \"mozRequestFullScreen\" :\n\t\t\t\t\t\t\tdb.msRequestFullscreen !== undefined ? \"msRequestFullscreen\" :\n\t\t\t\t\t\t\tdb.requestFullscreen !== undefined ? \"requestFullscreen\" : \"\",\n\t\t\"_exitFullscreen\": d.webkitExitFullscreen !== undefined ? \"webkitExitFullscreen\" :\n\t\t\t\t\t\t\td.mozCancelFullScreen !== undefined ? \"mozCancelFullScreen\" :\n\t\t\t\t\t\t\td.msExitFullscreen !== undefined ? \"msExitFullscreen\" :\n\t\t\t\t\t\t\td.exitFullscreen !== undefined ? \"exitFullscreen\" : \"\",\n\t\t\"_fullscreenElement\": d.webkitFullscreenElement !== undefined ? \"webkitFullscreenElement\" :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \"mozFullScreenElement\" :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \"msFullscreenElement\" :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \"fullscreenElement\" : \"\",\n\t\t\"_fullscreenChange\": d.webkitFullscreenElement !== undefined ? \"webkitfullscreenchange\" :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \"mozfullscreenchange\" :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \"MSFullscreenChange\" :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \"fullscreenchange\" : \"\"\n\t};\n\tif(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement || !result._fullscreenChange) {\n\t\treturn null;\n\t} else {\n\t\treturn result;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/csscolorparser.js": {
"title": "$:/core/modules/utils/dom/csscolorparser.js",
"text": "// (c) Dean McNamee <dean@gmail.com>, 2012.\n//\n// https://github.com/deanm/css-color-parser-js\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n// IN THE SOFTWARE.\n\n// http://www.w3.org/TR/css3-color/\nvar kCSSColorTable = {\n \"transparent\": [0,0,0,0], \"aliceblue\": [240,248,255,1],\n \"antiquewhite\": [250,235,215,1], \"aqua\": [0,255,255,1],\n \"aquamarine\": [127,255,212,1], \"azure\": [240,255,255,1],\n \"beige\": [245,245,220,1], \"bisque\": [255,228,196,1],\n \"black\": [0,0,0,1], \"blanchedalmond\": [255,235,205,1],\n \"blue\": [0,0,255,1], \"blueviolet\": [138,43,226,1],\n \"brown\": [165,42,42,1], \"burlywood\": [222,184,135,1],\n \"cadetblue\": [95,158,160,1], \"chartreuse\": [127,255,0,1],\n \"chocolate\": [210,105,30,1], \"coral\": [255,127,80,1],\n \"cornflowerblue\": [100,149,237,1], \"cornsilk\": [255,248,220,1],\n \"crimson\": [220,20,60,1], \"cyan\": [0,255,255,1],\n \"darkblue\": [0,0,139,1], \"darkcyan\": [0,139,139,1],\n \"darkgoldenrod\": [184,134,11,1], \"darkgray\": [169,169,169,1],\n \"darkgreen\": [0,100,0,1], \"darkgrey\": [169,169,169,1],\n \"darkkhaki\": [189,183,107,1], \"darkmagenta\": [139,0,139,1],\n \"darkolivegreen\": [85,107,47,1], \"darkorange\": [255,140,0,1],\n \"darkorchid\": [153,50,204,1], \"darkred\": [139,0,0,1],\n \"darksalmon\": [233,150,122,1], \"darkseagreen\": [143,188,143,1],\n \"darkslateblue\": [72,61,139,1], \"darkslategray\": [47,79,79,1],\n \"darkslategrey\": [47,79,79,1], \"darkturquoise\": [0,206,209,1],\n \"darkviolet\": [148,0,211,1], \"deeppink\": [255,20,147,1],\n \"deepskyblue\": [0,191,255,1], \"dimgray\": [105,105,105,1],\n \"dimgrey\": [105,105,105,1], \"dodgerblue\": [30,144,255,1],\n \"firebrick\": [178,34,34,1], \"floralwhite\": [255,250,240,1],\n \"forestgreen\": [34,139,34,1], \"fuchsia\": [255,0,255,1],\n \"gainsboro\": [220,220,220,1], \"ghostwhite\": [248,248,255,1],\n \"gold\": [255,215,0,1], \"goldenrod\": [218,165,32,1],\n \"gray\": [128,128,128,1], \"green\": [0,128,0,1],\n \"greenyellow\": [173,255,47,1], \"grey\": [128,128,128,1],\n \"honeydew\": [240,255,240,1], \"hotpink\": [255,105,180,1],\n \"indianred\": [205,92,92,1], \"indigo\": [75,0,130,1],\n \"ivory\": [255,255,240,1], \"khaki\": [240,230,140,1],\n \"lavender\": [230,230,250,1], \"lavenderblush\": [255,240,245,1],\n \"lawngreen\": [124,252,0,1], \"lemonchiffon\": [255,250,205,1],\n \"lightblue\": [173,216,230,1], \"lightcoral\": [240,128,128,1],\n \"lightcyan\": [224,255,255,1], \"lightgoldenrodyellow\": [250,250,210,1],\n \"lightgray\": [211,211,211,1], \"lightgreen\": [144,238,144,1],\n \"lightgrey\": [211,211,211,1], \"lightpink\": [255,182,193,1],\n \"lightsalmon\": [255,160,122,1], \"lightseagreen\": [32,178,170,1],\n \"lightskyblue\": [135,206,250,1], \"lightslategray\": [119,136,153,1],\n \"lightslategrey\": [119,136,153,1], \"lightsteelblue\": [176,196,222,1],\n \"lightyellow\": [255,255,224,1], \"lime\": [0,255,0,1],\n \"limegreen\": [50,205,50,1], \"linen\": [250,240,230,1],\n \"magenta\": [255,0,255,1], \"maroon\": [128,0,0,1],\n \"mediumaquamarine\": [102,205,170,1], \"mediumblue\": [0,0,205,1],\n \"mediumorchid\": [186,85,211,1], \"mediumpurple\": [147,112,219,1],\n \"mediumseagreen\": [60,179,113,1], \"mediumslateblue\": [123,104,238,1],\n \"mediumspringgreen\": [0,250,154,1], \"mediumturquoise\": [72,209,204,1],\n \"mediumvioletred\": [199,21,133,1], \"midnightblue\": [25,25,112,1],\n \"mintcream\": [245,255,250,1], \"mistyrose\": [255,228,225,1],\n \"moccasin\": [255,228,181,1], \"navajowhite\": [255,222,173,1],\n \"navy\": [0,0,128,1], \"oldlace\": [253,245,230,1],\n \"olive\": [128,128,0,1], \"olivedrab\": [107,142,35,1],\n \"orange\": [255,165,0,1], \"orangered\": [255,69,0,1],\n \"orchid\": [218,112,214,1], \"palegoldenrod\": [238,232,170,1],\n \"palegreen\": [152,251,152,1], \"paleturquoise\": [175,238,238,1],\n \"palevioletred\": [219,112,147,1], \"papayawhip\": [255,239,213,1],\n \"peachpuff\": [255,218,185,1], \"peru\": [205,133,63,1],\n \"pink\": [255,192,203,1], \"plum\": [221,160,221,1],\n \"powderblue\": [176,224,230,1], \"purple\": [128,0,128,1],\n \"red\": [255,0,0,1], \"rosybrown\": [188,143,143,1],\n \"royalblue\": [65,105,225,1], \"saddlebrown\": [139,69,19,1],\n \"salmon\": [250,128,114,1], \"sandybrown\": [244,164,96,1],\n \"seagreen\": [46,139,87,1], \"seashell\": [255,245,238,1],\n \"sienna\": [160,82,45,1], \"silver\": [192,192,192,1],\n \"skyblue\": [135,206,235,1], \"slateblue\": [106,90,205,1],\n \"slategray\": [112,128,144,1], \"slategrey\": [112,128,144,1],\n \"snow\": [255,250,250,1], \"springgreen\": [0,255,127,1],\n \"steelblue\": [70,130,180,1], \"tan\": [210,180,140,1],\n \"teal\": [0,128,128,1], \"thistle\": [216,191,216,1],\n \"tomato\": [255,99,71,1], \"turquoise\": [64,224,208,1],\n \"violet\": [238,130,238,1], \"wheat\": [245,222,179,1],\n \"white\": [255,255,255,1], \"whitesmoke\": [245,245,245,1],\n \"yellow\": [255,255,0,1], \"yellowgreen\": [154,205,50,1]}\n\nfunction clamp_css_byte(i) { // Clamp to integer 0 .. 255.\n i = Math.round(i); // Seems to be what Chrome does (vs truncation).\n return i < 0 ? 0 : i > 255 ? 255 : i;\n}\n\nfunction clamp_css_float(f) { // Clamp to float 0.0 .. 1.0.\n return f < 0 ? 0 : f > 1 ? 1 : f;\n}\n\nfunction parse_css_int(str) { // int or percentage.\n if (str[str.length - 1] === '%')\n return clamp_css_byte(parseFloat(str) / 100 * 255);\n return clamp_css_byte(parseInt(str));\n}\n\nfunction parse_css_float(str) { // float or percentage.\n if (str[str.length - 1] === '%')\n return clamp_css_float(parseFloat(str) / 100);\n return clamp_css_float(parseFloat(str));\n}\n\nfunction css_hue_to_rgb(m1, m2, h) {\n if (h < 0) h += 1;\n else if (h > 1) h -= 1;\n\n if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;\n if (h * 2 < 1) return m2;\n if (h * 3 < 2) return m1 + (m2 - m1) * (2/3 - h) * 6;\n return m1;\n}\n\nfunction parseCSSColor(css_str) {\n // Remove all whitespace, not compliant, but should just be more accepting.\n var str = css_str.replace(/ /g, '').toLowerCase();\n\n // Color keywords (and transparent) lookup.\n if (str in kCSSColorTable) return kCSSColorTable[str].slice(); // dup.\n\n // #abc and #abc123 syntax.\n if (str[0] === '#') {\n if (str.length === 4) {\n var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xfff)) return null; // Covers NaN.\n return [((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),\n (iv & 0xf0) | ((iv & 0xf0) >> 4),\n (iv & 0xf) | ((iv & 0xf) << 4),\n 1];\n } else if (str.length === 7) {\n var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xffffff)) return null; // Covers NaN.\n return [(iv & 0xff0000) >> 16,\n (iv & 0xff00) >> 8,\n iv & 0xff,\n 1];\n }\n\n return null;\n }\n\n var op = str.indexOf('('), ep = str.indexOf(')');\n if (op !== -1 && ep + 1 === str.length) {\n var fname = str.substr(0, op);\n var params = str.substr(op+1, ep-(op+1)).split(',');\n var alpha = 1; // To allow case fallthrough.\n switch (fname) {\n case 'rgba':\n if (params.length !== 4) return null;\n alpha = parse_css_float(params.pop());\n // Fall through.\n case 'rgb':\n if (params.length !== 3) return null;\n return [parse_css_int(params[0]),\n parse_css_int(params[1]),\n parse_css_int(params[2]),\n alpha];\n case 'hsla':\n if (params.length !== 4) return null;\n alpha = parse_css_float(params.pop());\n // Fall through.\n case 'hsl':\n if (params.length !== 3) return null;\n var h = (((parseFloat(params[0]) % 360) + 360) % 360) / 360; // 0 .. 1\n // NOTE(deanm): According to the CSS spec s/l should only be\n // percentages, but we don't bother and let float or percentage.\n var s = parse_css_float(params[1]);\n var l = parse_css_float(params[2]);\n var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;\n var m1 = l * 2 - m2;\n return [clamp_css_byte(css_hue_to_rgb(m1, m2, h+1/3) * 255),\n clamp_css_byte(css_hue_to_rgb(m1, m2, h) * 255),\n clamp_css_byte(css_hue_to_rgb(m1, m2, h-1/3) * 255),\n alpha];\n default:\n return null;\n }\n }\n\n return null;\n}\n\ntry { exports.parseCSSColor = parseCSSColor } catch(e) { }\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom.js": {
"title": "$:/core/modules/utils/dom.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom.js\ntype: application/javascript\nmodule-type: utils\n\nVarious static DOM-related utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nDetermines whether element 'a' contains element 'b'\nCode thanks to John Resig, http://ejohn.org/blog/comparing-document-position/\n*/\nexports.domContains = function(a,b) {\n\treturn a.contains ?\n\t\ta !== b && a.contains(b) :\n\t\t!!(a.compareDocumentPosition(b) & 16);\n};\n\nexports.removeChildren = function(node) {\n\twhile(node.hasChildNodes()) {\n\t\tnode.removeChild(node.firstChild);\n\t}\n};\n\nexports.hasClass = function(el,className) {\n\treturn el && el.className && el.className.toString().split(\" \").indexOf(className) !== -1;\n};\n\nexports.addClass = function(el,className) {\n\tvar c = el.className.split(\" \");\n\tif(c.indexOf(className) === -1) {\n\t\tc.push(className);\n\t}\n\tel.className = c.join(\" \");\n};\n\nexports.removeClass = function(el,className) {\n\tvar c = el.className.split(\" \"),\n\t\tp = c.indexOf(className);\n\tif(p !== -1) {\n\t\tc.splice(p,1);\n\t\tel.className = c.join(\" \");\n\t}\n};\n\nexports.toggleClass = function(el,className,status) {\n\tif(status === undefined) {\n\t\tstatus = !exports.hasClass(el,className);\n\t}\n\tif(status) {\n\t\texports.addClass(el,className);\n\t} else {\n\t\texports.removeClass(el,className);\n\t}\n};\n\n/*\nGet the first parent element that has scrollbars or use the body as fallback.\n*/\nexports.getScrollContainer = function(el) {\n\tvar doc = el.ownerDocument;\n\twhile(el.parentNode) {\t\n\t\tel = el.parentNode;\n\t\tif(el.scrollTop) {\n\t\t\treturn el;\n\t\t}\n\t}\n\treturn doc.body;\n};\n\n/*\nGet the scroll position of the viewport\nReturns:\n\t{\n\t\tx: horizontal scroll position in pixels,\n\t\ty: vertical scroll position in pixels\n\t}\n*/\nexports.getScrollPosition = function(srcWindow) {\n\tvar scrollWindow = srcWindow || window;\n\tif(\"scrollX\" in scrollWindow) {\n\t\treturn {x: scrollWindow.scrollX, y: scrollWindow.scrollY};\n\t} else {\n\t\treturn {x: scrollWindow.document.documentElement.scrollLeft, y: scrollWindow.document.documentElement.scrollTop};\n\t}\n};\n\n/*\nAdjust the height of a textarea to fit its content, preserving scroll position, and return the height\n*/\nexports.resizeTextAreaToFit = function(domNode,minHeight) {\n\t// Get the scroll container and register the current scroll position\n\tvar container = $tw.utils.getScrollContainer(domNode),\n\t\tscrollTop = container.scrollTop;\n // Measure the specified minimum height\n\tdomNode.style.height = minHeight;\n\tvar measuredHeight = domNode.offsetHeight || parseInt(minHeight,10);\n\t// Set its height to auto so that it snaps to the correct height\n\tdomNode.style.height = \"auto\";\n\t// Calculate the revised height\n\tvar newHeight = Math.max(domNode.scrollHeight + domNode.offsetHeight - domNode.clientHeight,measuredHeight);\n\t// Only try to change the height if it has changed\n\tif(newHeight !== domNode.offsetHeight) {\n\t\tdomNode.style.height = newHeight + \"px\";\n\t\t// Make sure that the dimensions of the textarea are recalculated\n\t\t$tw.utils.forceLayout(domNode);\n\t\t// Set the container to the position we registered at the beginning\n\t\tcontainer.scrollTop = scrollTop;\n\t}\n\treturn newHeight;\n};\n\n/*\nGets the bounding rectangle of an element in absolute page coordinates\n*/\nexports.getBoundingPageRect = function(element) {\n\tvar scrollPos = $tw.utils.getScrollPosition(element.ownerDocument.defaultView),\n\t\tclientRect = element.getBoundingClientRect();\n\treturn {\n\t\tleft: clientRect.left + scrollPos.x,\n\t\twidth: clientRect.width,\n\t\tright: clientRect.right + scrollPos.x,\n\t\ttop: clientRect.top + scrollPos.y,\n\t\theight: clientRect.height,\n\t\tbottom: clientRect.bottom + scrollPos.y\n\t};\n};\n\n/*\nSaves a named password in the browser\n*/\nexports.savePassword = function(name,password) {\n\tvar done = false;\n\ttry {\n\t\twindow.localStorage.setItem(\"tw5-password-\" + name,password);\n\t\tdone = true;\n\t} catch(e) {\n\t}\n\tif(!done) {\n\t\t$tw.savedPasswords = $tw.savedPasswords || Object.create(null);\n\t\t$tw.savedPasswords[name] = password;\n\t}\n};\n\n/*\nRetrieve a named password from the browser\n*/\nexports.getPassword = function(name) {\n\tvar value;\n\ttry {\n\t\tvalue = window.localStorage.getItem(\"tw5-password-\" + name);\n\t} catch(e) {\n\t}\n\tif(value !== undefined) {\n\t\treturn value;\n\t} else {\n\t\treturn ($tw.savedPasswords || Object.create(null))[name] || \"\";\n\t}\n};\n\n/*\nForce layout of a dom node and its descendents\n*/\nexports.forceLayout = function(element) {\n\tvar dummy = element.offsetWidth;\n};\n\n/*\nPulse an element for debugging purposes\n*/\nexports.pulseElement = function(element) {\n\t// Event handler to remove the class at the end\n\telement.addEventListener($tw.browser.animationEnd,function handler(event) {\n\t\telement.removeEventListener($tw.browser.animationEnd,handler,false);\n\t\t$tw.utils.removeClass(element,\"pulse\");\n\t},false);\n\t// Apply the pulse class\n\t$tw.utils.removeClass(element,\"pulse\");\n\t$tw.utils.forceLayout(element);\n\t$tw.utils.addClass(element,\"pulse\");\n};\n\n/*\nAttach specified event handlers to a DOM node\ndomNode: where to attach the event handlers\nevents: array of event handlers to be added (see below)\nEach entry in the events array is an object with these properties:\nhandlerFunction: optional event handler function\nhandlerObject: optional event handler object\nhandlerMethod: optionally specifies object handler method name (defaults to `handleEvent`)\n*/\nexports.addEventListeners = function(domNode,events) {\n\t$tw.utils.each(events,function(eventInfo) {\n\t\tvar handler;\n\t\tif(eventInfo.handlerFunction) {\n\t\t\thandler = eventInfo.handlerFunction;\n\t\t} else if(eventInfo.handlerObject) {\n\t\t\tif(eventInfo.handlerMethod) {\n\t\t\t\thandler = function(event) {\n\t\t\t\t\teventInfo.handlerObject[eventInfo.handlerMethod].call(eventInfo.handlerObject,event);\n\t\t\t\t};\t\n\t\t\t} else {\n\t\t\t\thandler = eventInfo.handlerObject;\n\t\t\t}\n\t\t}\n\t\tdomNode.addEventListener(eventInfo.name,handler,false);\n\t});\n};\n\n/*\nGet the computed styles applied to an element as an array of strings of individual CSS properties\n*/\nexports.getComputedStyles = function(domNode) {\n\tvar textAreaStyles = window.getComputedStyle(domNode,null),\n\t\tstyleDefs = [],\n\t\tname;\n\tfor(var t=0; t<textAreaStyles.length; t++) {\n\t\tname = textAreaStyles[t];\n\t\tstyleDefs.push(name + \": \" + textAreaStyles.getPropertyValue(name) + \";\");\n\t}\n\treturn styleDefs;\n};\n\n/*\nApply a set of styles passed as an array of strings of individual CSS properties\n*/\nexports.setStyles = function(domNode,styleDefs) {\n\tdomNode.style.cssText = styleDefs.join(\"\");\n};\n\n/*\nCopy the computed styles from a source element to a destination element\n*/\nexports.copyStyles = function(srcDomNode,dstDomNode) {\n\t$tw.utils.setStyles(dstDomNode,$tw.utils.getComputedStyles(srcDomNode));\n};\n\n/*\nCopy plain text to the clipboard on browsers that support it\n*/\nexports.copyToClipboard = function(text,options) {\n\toptions = options || {};\n\tvar textArea = document.createElement(\"textarea\");\n\ttextArea.style.position = \"fixed\";\n\ttextArea.style.top = 0;\n\ttextArea.style.left = 0;\n\ttextArea.style.fontSize = \"12pt\";\n\ttextArea.style.width = \"2em\";\n\ttextArea.style.height = \"2em\";\n\ttextArea.style.padding = 0;\n\ttextArea.style.border = \"none\";\n\ttextArea.style.outline = \"none\";\n\ttextArea.style.boxShadow = \"none\";\n\ttextArea.style.background = \"transparent\";\n\ttextArea.value = text;\n\tdocument.body.appendChild(textArea);\n\ttextArea.select();\n\ttextArea.setSelectionRange(0,text.length);\n\tvar succeeded = false;\n\ttry {\n\t\tsucceeded = document.execCommand(\"copy\");\n\t} catch (err) {\n\t}\n\tif(!options.doNotNotify) {\n\t\t$tw.notifier.display(succeeded ? \"$:/language/Notifications/CopiedToClipboard/Succeeded\" : \"$:/language/Notifications/CopiedToClipboard/Failed\");\n\t}\n\tdocument.body.removeChild(textArea);\n};\n\nexports.getLocationPath = function() {\n\treturn window.location.toString().split(\"#\")[0];\n};\n\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/dragndrop.js": {
"title": "$:/core/modules/utils/dom/dragndrop.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/dragndrop.js\ntype: application/javascript\nmodule-type: utils\n\nBrowser data transfer utilities, used with the clipboard and drag and drop\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nOptions:\n\ndomNode: dom node to make draggable\ndragImageType: \"pill\" or \"dom\"\ndragTiddlerFn: optional function to retrieve the title of tiddler to drag\ndragFilterFn: optional function to retreive the filter defining a list of tiddlers to drag\nwidget: widget to use as the contect for the filter\n*/\nexports.makeDraggable = function(options) {\n\tvar dragImageType = options.dragImageType || \"dom\",\n\t\tdragImage,\n\t\tdomNode = options.domNode;\n\t// Make the dom node draggable (not necessary for anchor tags)\n\tif((domNode.tagName || \"\").toLowerCase() !== \"a\") {\n\t\tdomNode.setAttribute(\"draggable\",\"true\");\t\t\n\t}\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"dragstart\", handlerFunction: function(event) {\n\t\t\tif(event.dataTransfer === undefined) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// Collect the tiddlers being dragged\n\t\t\tvar dragTiddler = options.dragTiddlerFn && options.dragTiddlerFn(),\n\t\t\t\tdragFilter = options.dragFilterFn && options.dragFilterFn(),\n\t\t\t\ttitles = dragTiddler ? [dragTiddler] : [],\n\t\t\t \tstartActions = options.startActions;\n\t\t\tif(dragFilter) {\n\t\t\t\ttitles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));\n\t\t\t}\n\t\t\tvar titleString = $tw.utils.stringifyList(titles);\n\t\t\t// Check that we've something to drag\n\t\t\tif(titles.length > 0 && event.target === domNode) {\n\t\t\t\t// Mark the drag in progress\n\t\t\t\t$tw.dragInProgress = domNode;\n\t\t\t\t// Set the dragging class on the element being dragged\n\t\t\t\t$tw.utils.addClass(event.target,\"tc-dragging\");\n\t\t\t\t// Invoke drag-start actions if given\n\t\t\t\tif(startActions !== undefined) {\n\t\t\t\t\toptions.widget.invokeActionString(startActions,options.widget,event,{actionTiddler: titleString});\n\t\t\t\t}\n\t\t\t\t// Create the drag image elements\n\t\t\t\tdragImage = options.widget.document.createElement(\"div\");\n\t\t\t\tdragImage.className = \"tc-tiddler-dragger\";\n\t\t\t\tvar inner = options.widget.document.createElement(\"div\");\n\t\t\t\tinner.className = \"tc-tiddler-dragger-inner\";\n\t\t\t\tinner.appendChild(options.widget.document.createTextNode(\n\t\t\t\t\ttitles.length === 1 ? \n\t\t\t\t\t\ttitles[0] :\n\t\t\t\t\t\ttitles.length + \" tiddlers\"\n\t\t\t\t));\n\t\t\t\tdragImage.appendChild(inner);\n\t\t\t\toptions.widget.document.body.appendChild(dragImage);\n\t\t\t\t// Set the data transfer properties\n\t\t\t\tvar dataTransfer = event.dataTransfer;\n\t\t\t\t// Set up the image\n\t\t\t\tdataTransfer.effectAllowed = \"all\";\n\t\t\t\tif(dataTransfer.setDragImage) {\n\t\t\t\t\tif(dragImageType === \"pill\") {\n\t\t\t\t\t\tdataTransfer.setDragImage(dragImage.firstChild,-16,-16);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar r = domNode.getBoundingClientRect();\n\t\t\t\t\t\tdataTransfer.setDragImage(domNode,event.clientX-r.left,event.clientY-r.top);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Set up the data transfer\n\t\t\t\tif(dataTransfer.clearData) {\n\t\t\t\t\tdataTransfer.clearData();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tvar jsonData = [];\n\t\t\t\tif(titles.length > 1) {\n\t\t\t\t\ttitles.forEach(function(title) {\n\t\t\t\t\t\tjsonData.push(options.widget.wiki.getTiddlerAsJson(title));\n\t\t\t\t\t});\n\t\t\t\t\tjsonData = \"[\" + jsonData.join(\",\") + \"]\";\n\t\t\t\t} else {\n\t\t\t\t\tjsonData = options.widget.wiki.getTiddlerAsJson(titles[0]);\n\t\t\t\t}\n\t\t\t\t// IE doesn't like these content types\n\t\t\t\tif(!$tw.browser.isIE) {\n\t\t\t\t\tdataTransfer.setData(\"text/vnd.tiddler\",jsonData);\n\t\t\t\t\tdataTransfer.setData(\"text/plain\",titleString);\n\t\t\t\t\tdataTransfer.setData(\"text/x-moz-url\",\"data:text/vnd.tiddler,\" + encodeURIComponent(jsonData));\n\t\t\t\t}\n\t\t\t\tdataTransfer.setData(\"URL\",\"data:text/vnd.tiddler,\" + encodeURIComponent(jsonData));\n\t\t\t\tdataTransfer.setData(\"Text\",titleString);\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\treturn false;\n\t\t}},\n\t\t{name: \"dragend\", handlerFunction: function(event) {\n\t\t\tif(event.target === domNode) {\n\t\t\t\t// Collect the tiddlers being dragged\n\t\t\t\tvar dragTiddler = options.dragTiddlerFn && options.dragTiddlerFn(),\n\t\t\t\t\tdragFilter = options.dragFilterFn && options.dragFilterFn(),\n\t\t\t\t\ttitles = dragTiddler ? [dragTiddler] : [],\n\t\t\t \t\tendActions = options.endActions;\n\t\t\t\tif(dragFilter) {\n\t\t\t\t\ttitles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));\n\t\t\t\t}\n\t\t\t\tvar titleString = $tw.utils.stringifyList(titles);\n\t\t\t\t$tw.dragInProgress = null;\n\t\t\t\t// Invoke drag-end actions if given\n\t\t\t\tif(endActions !== undefined) {\n\t\t\t\t\toptions.widget.invokeActionString(endActions,options.widget,event,{actionTiddler: titleString});\n\t\t\t\t}\n\t\t\t\t// Remove the dragging class on the element being dragged\n\t\t\t\t$tw.utils.removeClass(event.target,\"tc-dragging\");\n\t\t\t\t// Delete the drag image element\n\t\t\t\tif(dragImage) {\n\t\t\t\t\tdragImage.parentNode.removeChild(dragImage);\n\t\t\t\t\tdragImage = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}}\n\t]);\n};\n\nexports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) {\n\t// Try each provided data type in turn\n\tif($tw.log.IMPORT) {\n\t\tconsole.log(\"Available data types:\");\n\t\tfor(var type=0; type<dataTransfer.types.length; type++) {\n\t\t\tconsole.log(\"type\",dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type]))\n\t\t}\n\t}\n\tfor(var t=0; t<importDataTypes.length; t++) {\n\t\tif(!$tw.browser.isIE || importDataTypes[t].IECompatible) {\n\t\t\t// Get the data\n\t\t\tvar dataType = importDataTypes[t];\n\t\t\t\tvar data = dataTransfer.getData(dataType.type);\n\t\t\t// Import the tiddlers in the data\n\t\t\tif(data !== \"\" && data !== null) {\n\t\t\t\tif($tw.log.IMPORT) {\n\t\t\t\t\tconsole.log(\"Importing data type '\" + dataType.type + \"', data: '\" + data + \"'\")\n\t\t\t\t}\n\t\t\t\tvar tiddlerFields = dataType.toTiddlerFieldsArray(data,fallbackTitle);\n\t\t\t\tcallback(tiddlerFields);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar importDataTypes = [\n\t{type: \"text/vnd.tiddler\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn parseJSONTiddlers(data,fallbackTitle);\n\t}},\n\t{type: \"URL\", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\t// Check for tiddler data URI\n\t\tvar match = decodeURIComponent(data).match(/^data\\:text\\/vnd\\.tiddler,(.*)/i);\n\t\tif(match) {\n\t\t\treturn parseJSONTiddlers(match[1],fallbackTitle);\n\t\t} else {\n\t\t\treturn [{title: fallbackTitle, text: data}]; // As URL string\n\t\t}\n\t}},\n\t{type: \"text/x-moz-url\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\t// Check for tiddler data URI\n\t\tvar match = decodeURIComponent(data).match(/^data\\:text\\/vnd\\.tiddler,(.*)/i);\n\t\tif(match) {\n\t\t\treturn parseJSONTiddlers(match[1],fallbackTitle);\n\t\t} else {\n\t\t\treturn [{title: fallbackTitle, text: data}]; // As URL string\n\t\t}\n\t}},\n\t{type: \"text/html\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"text/plain\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"Text\", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"text/uri-list\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}}\n];\n\nfunction parseJSONTiddlers(json,fallbackTitle) {\n\tvar data = JSON.parse(json);\n\tif(!$tw.utils.isArray(data)) {\n\t\tdata = [data];\n\t}\n\tdata.forEach(function(fields) {\n\t\tfields.title = fields.title || fallbackTitle;\n\t});\n\treturn data;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/http.js": {
"title": "$:/core/modules/utils/dom/http.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/http.js\ntype: application/javascript\nmodule-type: utils\n\nBrowser HTTP support\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nA quick and dirty HTTP function; to be refactored later. Options are:\n\turl: URL to retrieve\n\theaders: hashmap of headers to send\n\ttype: GET, PUT, POST etc\n\tcallback: function invoked with (err,data,xhr)\n\treturnProp: string name of the property to return as first argument of callback\n*/\nexports.httpRequest = function(options) {\n\tvar type = options.type || \"GET\",\n\t\theaders = options.headers || {accept: \"application/json\"},\n\t\treturnProp = options.returnProp || \"responseText\",\n\t\trequest = new XMLHttpRequest(),\n\t\tdata = \"\",\n\t\tf,results;\n\t// Massage the data hashmap into a string\n\tif(options.data) {\n\t\tif(typeof options.data === \"string\") { // Already a string\n\t\t\tdata = options.data;\n\t\t} else { // A hashmap of strings\n\t\t\tresults = [];\n\t\t\t$tw.utils.each(options.data,function(dataItem,dataItemTitle) {\n\t\t\t\tresults.push(dataItemTitle + \"=\" + encodeURIComponent(dataItem));\n\t\t\t});\n\t\t\tdata = results.join(\"&\");\n\t\t}\n\t}\n\t// Set up the state change handler\n\trequest.onreadystatechange = function() {\n\t\tif(this.readyState === 4) {\n\t\t\tif(this.status === 200 || this.status === 201 || this.status === 204) {\n\t\t\t\t// Success!\n\t\t\t\toptions.callback(null,this[returnProp],this);\n\t\t\t\treturn;\n\t\t\t}\n\t\t// Something went wrong\n\t\toptions.callback($tw.language.getString(\"Error/XMLHttpRequest\") + \": \" + this.status,null,this);\n\t\t}\n\t};\n\t// Make the request\n\trequest.open(type,options.url,true);\n\tif(headers) {\n\t\t$tw.utils.each(headers,function(header,headerTitle,object) {\n\t\t\trequest.setRequestHeader(headerTitle,header);\n\t\t});\n\t}\n\tif(data && !$tw.utils.hop(headers,\"Content-type\")) {\n\t\trequest.setRequestHeader(\"Content-type\",\"application/x-www-form-urlencoded; charset=UTF-8\");\n\t}\n\tif(!$tw.utils.hop(headers,\"X-Requested-With\")) {\n\t\trequest.setRequestHeader(\"X-Requested-With\",\"TiddlyWiki\");\n\t}\n\ttry {\n\t\trequest.send(data);\n\t} catch(e) {\n\t\toptions.callback(e,null,this);\n\t}\n\treturn request;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/keyboard.js": {
"title": "$:/core/modules/utils/dom/keyboard.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/keyboard.js\ntype: application/javascript\nmodule-type: utils\n\nKeyboard utilities; now deprecated. Instead, use $tw.keyboardManager\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n[\"parseKeyDescriptor\",\"checkKeyDescriptor\"].forEach(function(method) {\n\texports[method] = function() {\n\t\tif($tw.keyboardManager) {\n\t\t\treturn $tw.keyboardManager[method].apply($tw.keyboardManager,Array.prototype.slice.call(arguments,0));\n\t\t} else {\n\t\t\treturn null\n\t\t}\n\t};\n});\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/modal.js": {
"title": "$:/core/modules/utils/dom/modal.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/modal.js\ntype: application/javascript\nmodule-type: utils\n\nModal message mechanism\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nvar Modal = function(wiki) {\n\tthis.wiki = wiki;\n\tthis.modalCount = 0;\n};\n\n/*\nDisplay a modal dialogue\n\ttitle: Title of tiddler to display\n\toptions: see below\nOptions include:\n\tdownloadLink: Text of a big download link to include\n*/\nModal.prototype.display = function(title,options) {\n\toptions = options || {};\n\tthis.srcDocument = options.variables && (options.variables.rootwindow === \"true\" ||\n\t\t\t\toptions.variables.rootwindow === \"yes\") ? document :\n\t\t\t\t(options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document);\n\tthis.srcWindow = this.srcDocument.defaultView;\n\tvar self = this,\n\t\trefreshHandler,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\ttiddler = this.wiki.getTiddler(title);\n\t// Don't do anything if the tiddler doesn't exist\n\tif(!tiddler) {\n\t\treturn;\n\t}\n\t// Create the variables\n\tvar variables = $tw.utils.extend({currentTiddler: title},options.variables);\n\t// Create the wrapper divs\n\tvar wrapper = this.srcDocument.createElement(\"div\"),\n\t\tmodalBackdrop = this.srcDocument.createElement(\"div\"),\n\t\tmodalWrapper = this.srcDocument.createElement(\"div\"),\n\t\tmodalHeader = this.srcDocument.createElement(\"div\"),\n\t\theaderTitle = this.srcDocument.createElement(\"h3\"),\n\t\tmodalBody = this.srcDocument.createElement(\"div\"),\n\t\tmodalLink = this.srcDocument.createElement(\"a\"),\n\t\tmodalFooter = this.srcDocument.createElement(\"div\"),\n\t\tmodalFooterHelp = this.srcDocument.createElement(\"span\"),\n\t\tmodalFooterButtons = this.srcDocument.createElement(\"span\");\n\t// Up the modal count and adjust the body class\n\tthis.modalCount++;\n\tthis.adjustPageClass();\n\t// Add classes\n\t$tw.utils.addClass(wrapper,\"tc-modal-wrapper\");\n\t$tw.utils.addClass(modalBackdrop,\"tc-modal-backdrop\");\n\t$tw.utils.addClass(modalWrapper,\"tc-modal\");\n\t$tw.utils.addClass(modalHeader,\"tc-modal-header\");\n\t$tw.utils.addClass(modalBody,\"tc-modal-body\");\n\t$tw.utils.addClass(modalFooter,\"tc-modal-footer\");\n\t// Join them together\n\twrapper.appendChild(modalBackdrop);\n\twrapper.appendChild(modalWrapper);\n\tmodalHeader.appendChild(headerTitle);\n\tmodalWrapper.appendChild(modalHeader);\n\tmodalWrapper.appendChild(modalBody);\n\tmodalFooter.appendChild(modalFooterHelp);\n\tmodalFooter.appendChild(modalFooterButtons);\n\tmodalWrapper.appendChild(modalFooter);\n\t// Render the title of the message\n\tvar headerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \"subtitle\",\n\t\tmode: \"inline\",\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\tattributes: {\n\t\t\t\ttext: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: title\n\t\t}}}],\n\t\tparentWidget: $tw.rootWidget,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\theaderWidgetNode.render(headerTitle,null);\n\t// Render the body of the message\n\tvar bodyWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tparentWidget: $tw.rootWidget,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\tbodyWidgetNode.render(modalBody,null);\n\t// Setup the link if present\n\tif(options.downloadLink) {\n\t\tmodalLink.href = options.downloadLink;\n\t\tmodalLink.appendChild(this.srcDocument.createTextNode(\"Right-click to save changes\"));\n\t\tmodalBody.appendChild(modalLink);\n\t}\n\t// Render the footer of the message\n\tif(tiddler && tiddler.fields && tiddler.fields.help) {\n\t\tvar link = this.srcDocument.createElement(\"a\");\n\t\tlink.setAttribute(\"href\",tiddler.fields.help);\n\t\tlink.setAttribute(\"target\",\"_blank\");\n\t\tlink.setAttribute(\"rel\",\"noopener noreferrer\");\n\t\tlink.appendChild(this.srcDocument.createTextNode(\"Help\"));\n\t\tmodalFooterHelp.appendChild(link);\n\t\tmodalFooterHelp.style.float = \"left\";\n\t}\n\tvar footerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \"footer\",\n\t\tmode: \"inline\",\n\t\tchildren: [{\n\t\t\ttype: \"button\",\n\t\t\tattributes: {\n\t\t\t\tmessage: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: \"tm-close-tiddler\"\n\t\t\t\t}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\tattributes: {\n\t\t\t\t\ttext: {\n\t\t\t\t\t\ttype: \"string\",\n\t\t\t\t\t\tvalue: $tw.language.getString(\"Buttons/Close/Caption\")\n\t\t\t}}}\n\t\t]}],\n\t\tparentWidget: $tw.rootWidget,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\tfooterWidgetNode.render(modalFooterButtons,null);\n\t// Set up the refresh handler\n\trefreshHandler = function(changes) {\n\t\theaderWidgetNode.refresh(changes,modalHeader,null);\n\t\tbodyWidgetNode.refresh(changes,modalBody,null);\n\t\tfooterWidgetNode.refresh(changes,modalFooterButtons,null);\n\t};\n\tthis.wiki.addEventListener(\"change\",refreshHandler);\n\t// Add the close event handler\n\tvar closeHandler = function(event) {\n\t\t// Remove our refresh handler\n\t\tself.wiki.removeEventListener(\"change\",refreshHandler);\n\t\t// Decrease the modal count and adjust the body class\n\t\tself.modalCount--;\n\t\tself.adjustPageClass();\n\t\t// Force layout and animate the modal message away\n\t\t$tw.utils.forceLayout(modalBackdrop);\n\t\t$tw.utils.forceLayout(modalWrapper);\n\t\t$tw.utils.setStyle(modalBackdrop,[\n\t\t\t{opacity: \"0\"}\n\t\t]);\n\t\t$tw.utils.setStyle(modalWrapper,[\n\t\t\t{transform: \"translateY(\" + self.srcWindow.innerHeight + \"px)\"}\n\t\t]);\n\t\t// Set up an event for the transition end\n\t\tself.srcWindow.setTimeout(function() {\n\t\t\tif(wrapper.parentNode) {\n\t\t\t\t// Remove the modal message from the DOM\n\t\t\t\tself.srcDocument.body.removeChild(wrapper);\n\t\t\t}\n\t\t},duration);\n\t\t// Don't let anyone else handle the tm-close-tiddler message\n\t\treturn false;\n\t};\n\theaderWidgetNode.addEventListener(\"tm-close-tiddler\",closeHandler,false);\n\tbodyWidgetNode.addEventListener(\"tm-close-tiddler\",closeHandler,false);\n\tfooterWidgetNode.addEventListener(\"tm-close-tiddler\",closeHandler,false);\n\t// Set the initial styles for the message\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{opacity: \"0\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transformOrigin: \"0% 0%\"},\n\t\t{transform: \"translateY(\" + (-this.srcWindow.innerHeight) + \"px)\"}\n\t]);\n\t// Put the message into the document\n\tthis.srcDocument.body.appendChild(wrapper);\n\t// Set up animation for the styles\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{transition: \"opacity \" + duration + \"ms ease-out\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out\"}\n\t]);\n\t// Force layout\n\t$tw.utils.forceLayout(modalBackdrop);\n\t$tw.utils.forceLayout(modalWrapper);\n\t// Set final animated styles\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{opacity: \"0.7\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transform: \"translateY(0px)\"}\n\t]);\n};\n\nModal.prototype.adjustPageClass = function() {\n\tvar windowContainer = $tw.pageContainer ? ($tw.pageContainer === this.srcDocument.body.firstChild ? $tw.pageContainer : this.srcDocument.body.firstChild) : null;\n\tif(windowContainer) {\n\t\t$tw.utils.toggleClass(windowContainer,\"tc-modal-displayed\",this.modalCount > 0);\n\t}\n};\n\nexports.Modal = Modal;\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/notifier.js": {
"title": "$:/core/modules/utils/dom/notifier.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/notifier.js\ntype: application/javascript\nmodule-type: utils\n\nNotifier mechanism\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nvar Notifier = function(wiki) {\n\tthis.wiki = wiki;\n};\n\n/*\nDisplay a notification\n\ttitle: Title of tiddler containing the notification text\n\toptions: see below\nOptions include:\n*/\nNotifier.prototype.display = function(title,options) {\n\toptions = options || {};\n\t// Create the wrapper divs\n\tvar self = this,\n\t\tnotification = document.createElement(\"div\"),\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\trefreshHandler;\n\t// Don't do anything if the tiddler doesn't exist\n\tif(!tiddler) {\n\t\treturn;\n\t}\n\t// Add classes\n\t$tw.utils.addClass(notification,\"tc-notification\");\n\t// Create the variables\n\tvar variables = $tw.utils.extend({currentTiddler: title},options.variables);\n\t// Render the body of the notification\n\tvar widgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tparentWidget: $tw.rootWidget,\n\t\tdocument: document,\n\t\tvariables: variables,\n\t\timportPageMacros: true});\n\twidgetNode.render(notification,null);\n\trefreshHandler = function(changes) {\n\t\twidgetNode.refresh(changes,notification,null);\n\t};\n\tthis.wiki.addEventListener(\"change\",refreshHandler);\n\t// Set the initial styles for the notification\n\t$tw.utils.setStyle(notification,[\n\t\t{opacity: \"0\"},\n\t\t{transformOrigin: \"0% 0%\"},\n\t\t{transform: \"translateY(\" + (-window.innerHeight) + \"px)\"},\n\t\t{transition: \"opacity \" + duration + \"ms ease-out, \" + $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out\"}\n\t]);\n\t// Add the notification to the DOM\n\tdocument.body.appendChild(notification);\n\t// Force layout\n\t$tw.utils.forceLayout(notification);\n\t// Set final animated styles\n\t$tw.utils.setStyle(notification,[\n\t\t{opacity: \"1.0\"},\n\t\t{transform: \"translateY(0px)\"}\n\t]);\n\t// Set a timer to remove the notification\n\twindow.setTimeout(function() {\n\t\t// Remove our change event handler\n\t\tself.wiki.removeEventListener(\"change\",refreshHandler);\n\t\t// Force layout and animate the notification away\n\t\t$tw.utils.forceLayout(notification);\n\t\t$tw.utils.setStyle(notification,[\n\t\t\t{opacity: \"0.0\"},\n\t\t\t{transform: \"translateX(\" + (notification.offsetWidth) + \"px)\"}\n\t\t]);\n\t\t// Remove the modal message from the DOM once the transition ends\n\t\tsetTimeout(function() {\n\t\t\tif(notification.parentNode) {\n\t\t\t\tdocument.body.removeChild(notification);\n\t\t\t}\n\t\t},duration);\n\t},$tw.config.preferences.notificationDuration);\n};\n\nexports.Notifier = Notifier;\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/popup.js": {
"title": "$:/core/modules/utils/dom/popup.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/popup.js\ntype: application/javascript\nmodule-type: utils\n\nModule that creates a $tw.utils.Popup object prototype that manages popups in the browser\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nCreates a Popup object with these options:\n\trootElement: the DOM element to which the popup zapper should be attached\n*/\nvar Popup = function(options) {\n\toptions = options || {};\n\tthis.rootElement = options.rootElement || document.documentElement;\n\tthis.popups = []; // Array of {title:,wiki:,domNode:} objects\n};\n\n/*\nTrigger a popup open or closed. Parameters are in a hashmap:\n\ttitle: title of the tiddler where the popup details are stored\n\tdomNode: dom node to which the popup will be positioned (one of domNode or domNodeRect is required)\n\tdomNodeRect: rectangle to which the popup will be positioned\n\twiki: wiki\n\tforce: if specified, forces the popup state to true or false (instead of toggling it)\n\tfloating: if true, skips registering the popup, meaning that it will need manually clearing\n*/\nPopup.prototype.triggerPopup = function(options) {\n\t// Check if this popup is already active\n\tvar index = this.findPopup(options.title);\n\t// Compute the new state\n\tvar state = index === -1;\n\tif(options.force !== undefined) {\n\t\tstate = options.force;\n\t}\n\t// Show or cancel the popup according to the new state\n\tif(state) {\n\t\tthis.show(options);\n\t} else {\n\t\tthis.cancel(index);\n\t}\n};\n\nPopup.prototype.findPopup = function(title) {\n\tvar index = -1;\n\tfor(var t=0; t<this.popups.length; t++) {\n\t\tif(this.popups[t].title === title) {\n\t\t\tindex = t;\n\t\t}\n\t}\n\treturn index;\n};\n\nPopup.prototype.handleEvent = function(event) {\n\tif(event.type === \"click\") {\n\t\t// Find out what was clicked on\n\t\tvar info = this.popupInfo(event.target),\n\t\t\tcancelLevel = info.popupLevel - 1;\n\t\t// Don't remove the level that was clicked on if we clicked on a handle\n\t\tif(info.isHandle) {\n\t\t\tcancelLevel++;\n\t\t}\n\t\t// Cancel\n\t\tthis.cancel(cancelLevel);\n\t}\n};\n\n/*\nFind the popup level containing a DOM node. Returns:\npopupLevel: count of the number of nested popups containing the specified element\nisHandle: true if the specified element is within a popup handle\n*/\nPopup.prototype.popupInfo = function(domNode) {\n\tvar isHandle = false,\n\t\tpopupCount = 0,\n\t\tnode = domNode;\n\t// First check ancestors to see if we're within a popup handle\n\twhile(node) {\n\t\tif($tw.utils.hasClass(node,\"tc-popup-handle\")) {\n\t\t\tisHandle = true;\n\t\t\tpopupCount++;\n\t\t}\n\t\tif($tw.utils.hasClass(node,\"tc-popup-keep\")) {\n\t\t\tisHandle = true;\n\t\t}\n\t\tnode = node.parentNode;\n\t}\n\t// Then count the number of ancestor popups\n\tnode = domNode;\n\twhile(node) {\n\t\tif($tw.utils.hasClass(node,\"tc-popup\")) {\n\t\t\tpopupCount++;\n\t\t}\n\t\tnode = node.parentNode;\n\t}\n\tvar info = {\n\t\tpopupLevel: popupCount,\n\t\tisHandle: isHandle\n\t};\n\treturn info;\n};\n\n/*\nDisplay a popup by adding it to the stack\n*/\nPopup.prototype.show = function(options) {\n\t// Find out what was clicked on\n\tvar info = this.popupInfo(options.domNode);\n\t// Cancel any higher level popups\n\tthis.cancel(info.popupLevel);\n\n\t// Store the popup details if not already there\n\tif(!options.floating && this.findPopup(options.title) === -1) {\n\t\tthis.popups.push({\n\t\t\ttitle: options.title,\n\t\t\twiki: options.wiki,\n\t\t\tdomNode: options.domNode,\n\t\t\tnoStateReference: options.noStateReference\n\t\t});\n\t}\n\t// Set the state tiddler\n\tvar rect;\n\tif(options.domNodeRect) {\n\t\trect = options.domNodeRect;\n\t} else {\n\t\trect = {\n\t\t\tleft: options.domNode.offsetLeft,\n\t\t\ttop: options.domNode.offsetTop,\n\t\t\twidth: options.domNode.offsetWidth,\n\t\t\theight: options.domNode.offsetHeight\n\t\t};\n\t}\n\tvar popupRect = \"(\" + rect.left + \",\" + rect.top + \",\" + \n\t\t\t\trect.width + \",\" + rect.height + \")\";\n\tif(options.noStateReference) {\n\t\toptions.wiki.setText(options.title,\"text\",undefined,popupRect);\n\t} else {\n\t\toptions.wiki.setTextReference(options.title,popupRect);\n\t}\n\t// Add the click handler if we have any popups\n\tif(this.popups.length > 0) {\n\t\tthis.rootElement.addEventListener(\"click\",this,true);\t\t\n\t}\n};\n\n/*\nDetect if a Popup contains an input field that has focus\nReturns true or false\n*/\nPopup.prototype.detectInputWithinPopup = function(node) {\n\tvar withinPopup = false,\n\t currNode = node;\n\tfor(var i=0; i<this.popups.length; i++) {\n\t\tvar popup = (this.popups[i] && this.popups[i].domNode) ? this.popups[i].domNode : null;\n\t\twhile(node && popup) {\n\t\t\tif(node === popup || (node.classList && (node.classList.contains(\"tc-popup-keep\") || (node !== currNode && node.classList.contains(\"tc-popup-handle\"))))) {\n\t\t\t\twithinPopup = true;\n\t\t\t}\n\t\t\tnode = node.parentNode;\n\t\t}\n\t}\n\treturn withinPopup;\n};\n\n/*\nCancel all popups at or above a specified level or DOM node\nlevel: popup level to cancel (0 cancels all popups)\n*/\nPopup.prototype.cancel = function(level,focusedInputNode) {\n\tvar numPopups = this.popups.length;\n\tlevel = Math.max(0,Math.min(level,numPopups));\n\tfor(var t=level; t<numPopups; t++) {\n\t\tvar inputWithinPopup;\n\t\tif(focusedInputNode) {\n\t\t\tinputWithinPopup = this.detectInputWithinPopup(focusedInputNode);\n\t\t}\n\t\tif(!inputWithinPopup) {\n\t\t\tvar popup = this.popups.pop();\n\t\t \tif(popup.title) {\n\t\t\t\tif(popup.noStateReference) {\n\t\t\t\t\tpopup.wiki.deleteTiddler(popup.title);\n\t\t\t\t} else {\n\t\t\t\t\tpopup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);\n \t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(this.popups.length === 0) {\n\t\tthis.rootElement.removeEventListener(\"click\",this,false);\n\t}\n};\n\n/*\nReturns true if the specified title and text identifies an active popup\n*/\nPopup.prototype.readPopupState = function(text) {\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/;\n\treturn popupLocationRegExp.test(text);\n};\n\nexports.Popup = Popup;\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/dom/scroller.js": {
"title": "$:/core/modules/utils/dom/scroller.js",
"text": "/*\\\ntitle: $:/core/modules/utils/dom/scroller.js\ntype: application/javascript\nmodule-type: utils\n\nModule that creates a $tw.utils.Scroller object prototype that manages scrolling in the browser\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nEvent handler for when the `tm-scroll` event hits the document body\n*/\nvar PageScroller = function() {\n\tthis.idRequestFrame = null;\n\tthis.requestAnimationFrame = window.requestAnimationFrame ||\n\t\twindow.webkitRequestAnimationFrame ||\n\t\twindow.mozRequestAnimationFrame ||\n\t\tfunction(callback) {\n\t\t\treturn window.setTimeout(callback, 1000/60);\n\t\t};\n\tthis.cancelAnimationFrame = window.cancelAnimationFrame ||\n\t\twindow.webkitCancelAnimationFrame ||\n\t\twindow.webkitCancelRequestAnimationFrame ||\n\t\twindow.mozCancelAnimationFrame ||\n\t\twindow.mozCancelRequestAnimationFrame ||\n\t\tfunction(id) {\n\t\t\twindow.clearTimeout(id);\n\t\t};\n};\n\nPageScroller.prototype.isScrolling = function() {\n\treturn this.idRequestFrame !== null;\n}\n\nPageScroller.prototype.cancelScroll = function(srcWindow) {\n\tif(this.idRequestFrame) {\n\t\tthis.cancelAnimationFrame.call(srcWindow,this.idRequestFrame);\n\t\tthis.idRequestFrame = null;\n\t}\n};\n\n/*\nHandle an event\n*/\nPageScroller.prototype.handleEvent = function(event) {\n\tif(event.type === \"tm-scroll\") {\n\t\treturn this.scrollIntoView(event.target);\n\t}\n\treturn true;\n};\n\n/*\nHandle a scroll event hitting the page document\n*/\nPageScroller.prototype.scrollIntoView = function(element,callback) {\n\tvar self = this,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t srcWindow = element ? element.ownerDocument.defaultView : window;\n\t// Now get ready to scroll the body\n\tthis.cancelScroll(srcWindow);\n\tthis.startTime = Date.now();\n\t// Get the height of any position:fixed toolbars\n\tvar toolbar = srcWindow.document.querySelector(\".tc-adjust-top-of-scroll\"),\n\t\toffset = 0;\n\tif(toolbar) {\n\t\toffset = toolbar.offsetHeight;\n\t}\n\t// Get the client bounds of the element and adjust by the scroll position\n\tvar getBounds = function() {\n\t\t\tvar clientBounds = typeof callback === 'function' ? callback() : element.getBoundingClientRect(),\n\t\t\t\tscrollPosition = $tw.utils.getScrollPosition(srcWindow);\n\t\t\treturn {\n\t\t\t\tleft: clientBounds.left + scrollPosition.x,\n\t\t\t\ttop: clientBounds.top + scrollPosition.y - offset,\n\t\t\t\twidth: clientBounds.width,\n\t\t\t\theight: clientBounds.height\n\t\t\t};\n\t\t},\n\t\t// We'll consider the horizontal and vertical scroll directions separately via this function\n\t\t// targetPos/targetSize - position and size of the target element\n\t\t// currentPos/currentSize - position and size of the current scroll viewport\n\t\t// returns: new position of the scroll viewport\n\t\tgetEndPos = function(targetPos,targetSize,currentPos,currentSize) {\n\t\t\tvar newPos = targetPos;\n\t\t\t// If we are scrolling within 50 pixels of the top/left then snap to zero\n\t\t\tif(newPos < 50) {\n\t\t\t\tnewPos = 0;\n\t\t\t}\n\t\t\treturn newPos;\n\t\t},\n\t\tdrawFrame = function drawFrame() {\n\t\t\tvar t;\n\t\t\tif(duration <= 0) {\n\t\t\t\tt = 1;\n\t\t\t} else {\n\t\t\t\tt = ((Date.now()) - self.startTime) / duration;\t\n\t\t\t}\n\t\t\tif(t >= 1) {\n\t\t\t\tself.cancelScroll(srcWindow);\n\t\t\t\tt = 1;\n\t\t\t}\n\t\t\tt = $tw.utils.slowInSlowOut(t);\n\t\t\tvar scrollPosition = $tw.utils.getScrollPosition(srcWindow),\n\t\t\t\tbounds = getBounds(),\n\t\t\t\tendX = getEndPos(bounds.left,bounds.width,scrollPosition.x,srcWindow.innerWidth),\n\t\t\t\tendY = getEndPos(bounds.top,bounds.height,scrollPosition.y,srcWindow.innerHeight);\n\t\t\tsrcWindow.scrollTo(scrollPosition.x + (endX - scrollPosition.x) * t,scrollPosition.y + (endY - scrollPosition.y) * t);\n\t\t\tif(t < 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);\n\t\t\t}\n\t\t};\n\tdrawFrame();\n};\n\nexports.PageScroller = PageScroller;\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/edition-info.js": {
"title": "$:/core/modules/utils/edition-info.js",
"text": "/*\\\ntitle: $:/core/modules/utils/edition-info.js\ntype: application/javascript\nmodule-type: utils-node\n\nInformation about the available editions\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar fs = require(\"fs\"),\n\tpath = require(\"path\");\n\nvar editionInfo;\n\nexports.getEditionInfo = function() {\n\tif(!editionInfo) {\n\t\t// Enumerate the edition paths\n\t\tvar editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar);\n\t\teditionInfo = {};\n\t\tfor(var editionIndex=0; editionIndex<editionPaths.length; editionIndex++) {\n\t\t\tvar editionPath = editionPaths[editionIndex];\n\t\t\t// Enumerate the folders\n\t\t\tvar entries = fs.readdirSync(editionPath);\n\t\t\tfor(var entryIndex=0; entryIndex<entries.length; entryIndex++) {\n\t\t\t\tvar entry = entries[entryIndex];\n\t\t\t\t// Check if directories have a valid tiddlywiki.info\n\t\t\t\tif(!editionInfo[entry] && $tw.utils.isDirectory(path.resolve(editionPath,entry))) {\n\t\t\t\t\tvar info;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinfo = JSON.parse(fs.readFileSync(path.resolve(editionPath,entry,\"tiddlywiki.info\"),\"utf8\"));\n\t\t\t\t\t} catch(ex) {\n\t\t\t\t\t}\n\t\t\t\t\tif(info) {\n\t\t\t\t\t\teditionInfo[entry] = info;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn editionInfo;\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils-node"
},
"$:/core/modules/utils/fakedom.js": {
"title": "$:/core/modules/utils/fakedom.js",
"text": "/*\\\ntitle: $:/core/modules/utils/fakedom.js\ntype: application/javascript\nmodule-type: global\n\nA barebones implementation of DOM interfaces needed by the rendering mechanism.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Sequence number used to enable us to track objects for testing\nvar sequenceNumber = null;\n\nvar bumpSequenceNumber = function(object) {\n\tif(sequenceNumber !== null) {\n\t\tobject.sequenceNumber = sequenceNumber++;\n\t}\n};\n\nvar TW_TextNode = function(text) {\n\tbumpSequenceNumber(this);\n\tthis.textContent = text + \"\";\n};\n\nObject.defineProperty(TW_TextNode.prototype, \"nodeType\", {\n\tget: function() {\n\t\treturn 3;\n\t}\n});\n\nObject.defineProperty(TW_TextNode.prototype, \"formattedTextContent\", {\n\tget: function() {\n\t\treturn this.textContent.replace(/(\\r?\\n)/g,\"\");\n\t}\n});\n\nvar TW_Element = function(tag,namespace) {\n\tbumpSequenceNumber(this);\n\tthis.isTiddlyWikiFakeDom = true;\n\tthis.tag = tag;\n\tthis.attributes = {};\n\tthis.isRaw = false;\n\tthis.children = [];\n\tthis._style = {};\n\tthis.namespaceURI = namespace || \"http://www.w3.org/1999/xhtml\";\n};\n\nObject.defineProperty(TW_Element.prototype, \"style\", {\n\tget: function() {\n\t\treturn this._style;\n\t},\n\tset: function(str) {\n\t\tvar self = this;\n\t\tstr = str || \"\";\n\t\t$tw.utils.each(str.split(\";\"),function(declaration) {\n\t\t\tvar parts = declaration.split(\":\"),\n\t\t\t\tname = $tw.utils.trim(parts[0]),\n\t\t\t\tvalue = $tw.utils.trim(parts[1]);\n\t\t\tif(name && value) {\n\t\t\t\tself._style[$tw.utils.convertStyleNameToPropertyName(name)] = value;\n\t\t\t}\n\t\t});\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"nodeType\", {\n\tget: function() {\n\t\treturn 1;\n\t}\n});\n\nTW_Element.prototype.getAttribute = function(name) {\n\tif(this.isRaw) {\n\t\tthrow \"Cannot getAttribute on a raw TW_Element\";\n\t}\n\treturn this.attributes[name];\n};\n\nTW_Element.prototype.setAttribute = function(name,value) {\n\tif(this.isRaw) {\n\t\tthrow \"Cannot setAttribute on a raw TW_Element\";\n\t}\n\tthis.attributes[name] = value + \"\";\n};\n\nTW_Element.prototype.setAttributeNS = function(namespace,name,value) {\n\tthis.setAttribute(name,value);\n};\n\nTW_Element.prototype.removeAttribute = function(name) {\n\tif(this.isRaw) {\n\t\tthrow \"Cannot removeAttribute on a raw TW_Element\";\n\t}\n\tif($tw.utils.hop(this.attributes,name)) {\n\t\tdelete this.attributes[name];\n\t}\n};\n\nTW_Element.prototype.appendChild = function(node) {\n\tthis.children.push(node);\n\tnode.parentNode = this;\n};\n\nTW_Element.prototype.insertBefore = function(node,nextSibling) {\n\tif(nextSibling) {\n\t\tvar p = this.children.indexOf(nextSibling);\n\t\tif(p !== -1) {\n\t\t\tthis.children.splice(p,0,node);\n\t\t\tnode.parentNode = this;\n\t\t} else {\n\t\t\tthis.appendChild(node);\n\t\t}\n\t} else {\n\t\tthis.appendChild(node);\n\t}\n};\n\nTW_Element.prototype.removeChild = function(node) {\n\tvar p = this.children.indexOf(node);\n\tif(p !== -1) {\n\t\tthis.children.splice(p,1);\n\t}\n};\n\nTW_Element.prototype.hasChildNodes = function() {\n\treturn !!this.children.length;\n};\n\nObject.defineProperty(TW_Element.prototype, \"childNodes\", {\n\tget: function() {\n\t\treturn this.children;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"firstChild\", {\n\tget: function() {\n\t\treturn this.children[0];\n\t}\n});\n\nTW_Element.prototype.addEventListener = function(type,listener,useCapture) {\n\t// Do nothing\n};\n\nObject.defineProperty(TW_Element.prototype, \"tagName\", {\n\tget: function() {\n\t\treturn this.tag || \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"className\", {\n\tget: function() {\n\t\treturn this.attributes[\"class\"] || \"\";\n\t},\n\tset: function(value) {\n\t\tthis.attributes[\"class\"] = value + \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"value\", {\n\tget: function() {\n\t\treturn this.attributes.value || \"\";\n\t},\n\tset: function(value) {\n\t\tthis.attributes.value = value + \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"outerHTML\", {\n\tget: function() {\n\t\tvar output = [],attr,a,v;\n\t\toutput.push(\"<\",this.tag);\n\t\tif(this.attributes) {\n\t\t\tattr = [];\n\t\t\tfor(a in this.attributes) {\n\t\t\t\tattr.push(a);\n\t\t\t}\n\t\t\tattr.sort();\n\t\t\tfor(a=0; a<attr.length; a++) {\n\t\t\t\tv = this.attributes[attr[a]];\n\t\t\t\tif(v !== undefined) {\n\t\t\t\t\toutput.push(\" \",attr[a],\"=\\\"\",$tw.utils.htmlEncode(v),\"\\\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(this._style) {\n\t\t\tvar style = [];\n\t\t\tfor(var s in this._style) {\n\t\t\t\tstyle.push($tw.utils.convertPropertyNameToStyleName(s) + \":\" + this._style[s] + \";\");\n\t\t\t}\n\t\t\tif(style.length > 0) {\n\t\t\t\toutput.push(\" style=\\\"\",style.join(\"\"),\"\\\"\");\n\t\t\t}\n\t\t}\n\t\toutput.push(\">\");\n\t\tif($tw.config.htmlVoidElements.indexOf(this.tag) === -1) {\n\t\t\toutput.push(this.innerHTML);\n\t\t\toutput.push(\"</\",this.tag,\">\");\n\t\t}\n\t\treturn output.join(\"\");\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"innerHTML\", {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\treturn this.rawHTML;\n\t\t} else {\n\t\t\tvar b = [];\n\t\t\t$tw.utils.each(this.children,function(node) {\n\t\t\t\tif(node instanceof TW_Element) {\n\t\t\t\t\tb.push(node.outerHTML);\n\t\t\t\t} else if(node instanceof TW_TextNode) {\n\t\t\t\t\tb.push($tw.utils.htmlEncode(node.textContent));\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn b.join(\"\");\n\t\t}\n\t},\n\tset: function(value) {\n\t\tthis.isRaw = true;\n\t\tthis.rawHTML = value;\n\t\tthis.rawTextContent = null;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"textInnerHTML\", {\n\tset: function(value) {\n\t\tif(this.isRaw) {\n\t\t\tthis.rawTextContent = value;\n\t\t} else {\n\t\t\tthrow \"Cannot set textInnerHTML of a non-raw TW_Element\";\n\t\t}\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"textContent\", {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\tif(this.rawTextContent === null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn this.rawTextContent;\n\t\t\t}\n\t\t} else {\n\t\t\tvar b = [];\n\t\t\t$tw.utils.each(this.children,function(node) {\n\t\t\t\tb.push(node.textContent);\n\t\t\t});\n\t\t\treturn b.join(\"\");\n\t\t}\n\t},\n\tset: function(value) {\n\t\tthis.children = [new TW_TextNode(value)];\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"formattedTextContent\", {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\tvar b = [],\n\t\t\t\tisBlock = $tw.config.htmlBlockElements.indexOf(this.tag) !== -1;\n\t\t\tif(isBlock) {\n\t\t\t\tb.push(\"\\n\");\n\t\t\t}\n\t\t\tif(this.tag === \"li\") {\n\t\t\t\tb.push(\"* \");\n\t\t\t}\n\t\t\t$tw.utils.each(this.children,function(node) {\n\t\t\t\tb.push(node.formattedTextContent);\n\t\t\t});\n\t\t\tif(isBlock) {\n\t\t\t\tb.push(\"\\n\");\n\t\t\t}\n\t\t\treturn b.join(\"\");\n\t\t}\n\t}\n});\n\nvar document = {\n\tsetSequenceNumber: function(value) {\n\t\tsequenceNumber = value;\n\t},\n\tcreateElementNS: function(namespace,tag) {\n\t\treturn new TW_Element(tag,namespace);\n\t},\n\tcreateElement: function(tag) {\n\t\treturn new TW_Element(tag);\n\t},\n\tcreateTextNode: function(text) {\n\t\treturn new TW_TextNode(text);\n\t},\n\tcompatMode: \"CSS1Compat\", // For KaTeX to know that we're not a browser in quirks mode\n\tisTiddlyWikiFakeDom: true\n};\n\nexports.fakeDocument = document;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/utils/filesystem.js": {
"title": "$:/core/modules/utils/filesystem.js",
"text": "/*\\\ntitle: $:/core/modules/utils/filesystem.js\ntype: application/javascript\nmodule-type: utils-node\n\nFile system utilities\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar fs = require(\"fs\"),\n\tpath = require(\"path\");\n\n/*\nRecursively (and synchronously) copy a directory and all its content\n*/\nexports.copyDirectory = function(srcPath,dstPath) {\n\t// Remove any trailing path separators\n\tsrcPath = $tw.utils.removeTrailingSeparator(srcPath);\n\tdstPath = $tw.utils.removeTrailingSeparator(dstPath);\n\t// Create the destination directory\n\tvar err = $tw.utils.createDirectory(dstPath);\n\tif(err) {\n\t\treturn err;\n\t}\n\t// Function to copy a folder full of files\n\tvar copy = function(srcPath,dstPath) {\n\t\tvar srcStats = fs.lstatSync(srcPath),\n\t\t\tdstExists = fs.existsSync(dstPath);\n\t\tif(srcStats.isFile()) {\n\t\t\t$tw.utils.copyFile(srcPath,dstPath);\n\t\t} else if(srcStats.isDirectory()) {\n\t\t\tvar items = fs.readdirSync(srcPath);\n\t\t\tfor(var t=0; t<items.length; t++) {\n\t\t\t\tvar item = items[t],\n\t\t\t\t\terr = copy(srcPath + path.sep + item,dstPath + path.sep + item);\n\t\t\t\tif(err) {\n\t\t\t\t\treturn err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\tcopy(srcPath,dstPath);\n\treturn null;\n};\n\n/*\nCopy a file\n*/\nvar FILE_BUFFER_LENGTH = 64 * 1024,\n\tfileBuffer;\n\nexports.copyFile = function(srcPath,dstPath) {\n\t// Create buffer if required\n\tif(!fileBuffer) {\n\t\tfileBuffer = Buffer.alloc(FILE_BUFFER_LENGTH);\n\t}\n\t// Create any directories in the destination\n\t$tw.utils.createDirectory(path.dirname(dstPath));\n\t// Copy the file\n\tvar srcFile = fs.openSync(srcPath,\"r\"),\n\t\tdstFile = fs.openSync(dstPath,\"w\"),\n\t\tbytesRead = 1,\n\t\tpos = 0;\n\twhile (bytesRead > 0) {\n\t\tbytesRead = fs.readSync(srcFile,fileBuffer,0,FILE_BUFFER_LENGTH,pos);\n\t\tfs.writeSync(dstFile,fileBuffer,0,bytesRead);\n\t\tpos += bytesRead;\n\t}\n\tfs.closeSync(srcFile);\n\tfs.closeSync(dstFile);\n\treturn null;\n};\n\n/*\nRemove trailing path separator\n*/\nexports.removeTrailingSeparator = function(dirPath) {\n\tvar len = dirPath.length;\n\tif(dirPath.charAt(len-1) === path.sep) {\n\t\tdirPath = dirPath.substr(0,len-1);\n\t}\n\treturn dirPath;\n};\n\n/*\nRecursively create a directory\n*/\nexports.createDirectory = function(dirPath) {\n\tif(dirPath.substr(dirPath.length-1,1) !== path.sep) {\n\t\tdirPath = dirPath + path.sep;\n\t}\n\tvar pos = 1;\n\tpos = dirPath.indexOf(path.sep,pos);\n\twhile(pos !== -1) {\n\t\tvar subDirPath = dirPath.substr(0,pos);\n\t\tif(!$tw.utils.isDirectory(subDirPath)) {\n\t\t\ttry {\n\t\t\t\tfs.mkdirSync(subDirPath);\n\t\t\t} catch(e) {\n\t\t\t\treturn \"Error creating directory '\" + subDirPath + \"'\";\n\t\t\t}\n\t\t}\n\t\tpos = dirPath.indexOf(path.sep,pos + 1);\n\t}\n\treturn null;\n};\n\n/*\nRecursively create directories needed to contain a specified file\n*/\nexports.createFileDirectories = function(filePath) {\n\treturn $tw.utils.createDirectory(path.dirname(filePath));\n};\n\n/*\nRecursively delete a directory\n*/\nexports.deleteDirectory = function(dirPath) {\n\tif(fs.existsSync(dirPath)) {\n\t\tvar entries = fs.readdirSync(dirPath);\n\t\tfor(var entryIndex=0; entryIndex<entries.length; entryIndex++) {\n\t\t\tvar currPath = dirPath + path.sep + entries[entryIndex];\n\t\t\tif(fs.lstatSync(currPath).isDirectory()) {\n\t\t\t\t$tw.utils.deleteDirectory(currPath);\n\t\t\t} else {\n\t\t\t\tfs.unlinkSync(currPath);\n\t\t\t}\n\t\t}\n\tfs.rmdirSync(dirPath);\n\t}\n\treturn null;\n};\n\n/*\nCheck if a path identifies a directory\n*/\nexports.isDirectory = function(dirPath) {\n\treturn fs.existsSync(dirPath) && fs.statSync(dirPath).isDirectory();\n};\n\n/*\nCheck if a path identifies a directory that is empty\n*/\nexports.isDirectoryEmpty = function(dirPath) {\n\tif(!$tw.utils.isDirectory(dirPath)) {\n\t\treturn false;\n\t}\n\tvar files = fs.readdirSync(dirPath),\n\t\tempty = true;\n\t$tw.utils.each(files,function(file,index) {\n\t\tif(file.charAt(0) !== \".\") {\n\t\t\tempty = false;\n\t\t}\n\t});\n\treturn empty;\n};\n\n/*\nRecursively delete a tree of empty directories\n*/\nexports.deleteEmptyDirs = function(dirpath,callback) {\n\tvar self = this;\n\tfs.readdir(dirpath,function(err,files) {\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\tif(files.length > 0) {\n\t\t\treturn callback(null);\n\t\t}\n\t\tfs.rmdir(dirpath,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.deleteEmptyDirs(path.dirname(dirpath),callback);\n\t\t});\n\t});\n};\n\n/*\nCreate a fileInfo object for saving a tiddler:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\nOptions include:\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters\n*/\nexports.generateTiddlerFileInfo = function(tiddler,options) {\n\tvar fileInfo = {};\n\t// Check if the tiddler has any unsafe fields that can't be expressed in a .tid or .meta file: containing control characters, or leading/trailing whitespace\n\tvar hasUnsafeFields = false;\n\t$tw.utils.each(tiddler.getFieldStrings(),function(value,fieldName) {\n\t\tif(fieldName !== \"text\") {\n\t\t\thasUnsafeFields = hasUnsafeFields || /[\\x00-\\x1F]/mg.test(value);\n\t\t\thasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value);\n\t\t}\n\t});\n\t// Check for field values \n\tif(hasUnsafeFields) {\n\t\t// Save as a JSON file\n\t\tfileInfo.type = \"application/json\";\n\t\tfileInfo.hasMetaFile = false;\n\t} else {\n\t\t// Save as a .tid or a text/binary file plus a .meta file\n\t\tvar tiddlerType = tiddler.fields.type || \"text/vnd.tiddlywiki\";\n\t\tif(tiddlerType === \"text/vnd.tiddlywiki\") {\n\t\t\t// Save as a .tid file\n\t\t\tfileInfo.type = \"application/x-tiddler\";\n\t\t\tfileInfo.hasMetaFile = false;\n\t\t} else {\n\t\t\t// Save as a text/binary file and a .meta file\n\t\t\tfileInfo.type = tiddlerType;\n\t\t\tfileInfo.hasMetaFile = true;\n\t\t}\n\t}\n\t// Take the file extension from the tiddler content type\n\tvar contentTypeInfo = $tw.config.contentTypeInfo[fileInfo.type] || {extension: \"\"};\n\t// Generate the filepath\n\tfileInfo.filepath = $tw.utils.generateTiddlerFilepath(tiddler.fields.title,{\n\t\textension: contentTypeInfo.extension,\n\t\tdirectory: options.directory,\n\t\tpathFilters: options.pathFilters,\n\t\twiki: options.wiki\n\t});\n\treturn fileInfo;\n};\n\n/*\nGenerate the filepath for saving a tiddler\nOptions include:\n\textension: file extension to be added the finished filepath\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters\n*/\nexports.generateTiddlerFilepath = function(title,options) {\n\tvar self = this,\n\t\tdirectory = options.directory || \"\",\n\t\textension = options.extension || \"\",\n\t\tfilepath;\n\t// Check if any of the pathFilters applies\n\tif(options.pathFilters && options.wiki) {\n\t\t$tw.utils.each(options.pathFilters,function(filter) {\n\t\t\tif(!filepath) {\n\t\t\t\tvar source = options.wiki.makeTiddlerIterator([title]),\n\t\t\t\t\tresult = options.wiki.filterTiddlers(filter,null,source);\n\t\t\t\tif(result.length > 0) {\n\t\t\t\t\tfilepath = result[0];\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t// If not, generate a base pathname\n\tif(!filepath) {\n\t\tfilepath = title;\n\t\t// If the filepath already ends in the extension then remove it\n\t\tif(filepath.substring(filepath.length - extension.length) === extension) {\n\t\t\tfilepath = filepath.substring(0,filepath.length - extension.length);\n\t\t}\n\t\t// Remove any forward or backward slashes so we don't create directories\n\t\tfilepath = filepath.replace(/\\/|\\\\/g,\"_\");\n\t}\n\t// Don't let the filename start with a dot because such files are invisible on *nix\n\tfilepath = filepath.replace(/^\\./g,\"_\");\n\t// Remove any characters that can't be used in cross-platform filenames\n\tfilepath = $tw.utils.transliterate(filepath.replace(/<|>|\\:|\\\"|\\||\\?|\\*|\\^/g,\"_\"));\n\t// Truncate the filename if it is too long\n\tif(filepath.length > 200) {\n\t\tfilepath = filepath.substr(0,200);\n\t}\n\t// If the resulting filename is blank (eg because the title is just punctuation characters)\n\tif(!filepath) {\n\t\t// ...then just use the character codes of the title\n\t\tfilepath = \"\";\t\n\t\t$tw.utils.each(title.split(\"\"),function(char) {\n\t\t\tif(filepath) {\n\t\t\t\tfilepath += \"-\";\n\t\t\t}\n\t\t\tfilepath += char.charCodeAt(0).toString();\n\t\t});\n\t}\n\t// Add a uniquifier if the file already exists\n\tvar fullPath,\n\t\tcount = 0;\n\tdo {\n\t\tfullPath = path.resolve(directory,filepath + (count ? \"_\" + count : \"\") + extension);\n\t\tcount++;\n\t} while(fs.existsSync(fullPath));\n\t// Return the full path to the file\n\treturn fullPath;\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFile = function(tiddler,fileInfo,callback) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/plain\"] || {encoding: \"utf8\"};\n\t\tfs.writeFile(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tfs.writeFile(fileInfo.filepath + \".meta\",tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}),\"utf8\",callback);\n\t\t});\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \"application/x-tiddler\") {\n\t\t\tfs.writeFile(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}) + (!!tiddler.fields.text ? \"\\n\\n\" + tiddler.fields.text : \"\"),\"utf8\",callback);\n\t\t} else {\n\t\t\tfs.writeFile(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\"bag\"]})],null,$tw.config.preferences.jsonSpaces),\"utf8\",callback);\n\t\t}\n\t}\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFileSync = function(tiddler,fileInfo) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/plain\"] || {encoding: \"utf8\"};\n\t\tfs.writeFileSync(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding);\n\t\tfs.writeFileSync(fileInfo.filepath + \".meta\",tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}),\"utf8\");\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \"application/x-tiddler\") {\n\t\t\tfs.writeFileSync(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}) + (!!tiddler.fields.text ? \"\\n\\n\" + tiddler.fields.text : \"\"),\"utf8\");\n\t\t} else {\n\t\t\tfs.writeFileSync(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\"bag\"]})],null,$tw.config.preferences.jsonSpaces),\"utf8\");\n\t\t}\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils-node"
},
"$:/core/modules/utils/logger.js": {
"title": "$:/core/modules/utils/logger.js",
"text": "/*\\\ntitle: $:/core/modules/utils/logger.js\ntype: application/javascript\nmodule-type: utils\n\nA basic logging implementation\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar ALERT_TAG = \"$:/tags/Alert\";\n\n/*\nMake a new logger\n*/\nfunction Logger(componentName,options) {\n\toptions = options || {};\n\tthis.componentName = componentName || \"\";\n\tthis.colour = options.colour || \"white\";\n\tthis.enable = \"enable\" in options ? options.enable : true;\n}\n\n/*\nLog a message\n*/\nLogger.prototype.log = function(/* args */) {\n\tif(this.enable && console !== undefined && console.log !== undefined) {\n\t\treturn Function.apply.call(console.log, console, [$tw.utils.terminalColour(this.colour),this.componentName + \":\"].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour()));\n\t}\n};\n\n/*\nLog a structure as a table\n*/\nLogger.prototype.table = function(value) {\n\t(console.table || console.log)(value);\n};\n\n/*\nAlert a message\n*/\nLogger.prototype.alert = function(/* args */) {\n\tif(this.enable) {\n\t\t// Prepare the text of the alert\n\t\tvar text = Array.prototype.join.call(arguments,\" \");\n\t\t// Create alert tiddlers in the browser\n\t\tif($tw.browser) {\n\t\t\t// Check if there is an existing alert with the same text and the same component\n\t\t\tvar existingAlerts = $tw.wiki.getTiddlersWithTag(ALERT_TAG),\n\t\t\t\talertFields,\n\t\t\t\texistingCount,\n\t\t\t\tself = this;\n\t\t\t$tw.utils.each(existingAlerts,function(title) {\n\t\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\t\tif(tiddler.fields.text === text && tiddler.fields.component === self.componentName && tiddler.fields.modified && (!alertFields || tiddler.fields.modified < alertFields.modified)) {\n\t\t\t\t\t\talertFields = $tw.utils.extend({},tiddler.fields);\n\t\t\t\t}\n\t\t\t});\n\t\t\tif(alertFields) {\n\t\t\t\texistingCount = alertFields.count || 1;\n\t\t\t} else {\n\t\t\t\talertFields = {\n\t\t\t\t\ttitle: $tw.wiki.generateNewTitle(\"$:/temp/alerts/alert\",{prefix: \"\"}),\n\t\t\t\t\ttext: text,\n\t\t\t\t\ttags: [ALERT_TAG],\n\t\t\t\t\tcomponent: this.componentName\n\t\t\t\t};\n\t\t\t\texistingCount = 0;\n\t\t\t}\n\t\t\talertFields.modified = new Date();\n\t\t\tif(++existingCount > 1) {\n\t\t\t\talertFields.count = existingCount;\n\t\t\t} else {\n\t\t\t\talertFields.count = undefined;\n\t\t\t}\n\t\t\t$tw.wiki.addTiddler(new $tw.Tiddler(alertFields));\n\t\t\t// Log the alert as well\n\t\t\tthis.log.apply(this,Array.prototype.slice.call(arguments,0));\n\t\t} else {\n\t\t\t// Print an orange message to the console if not in the browser\n\t\t\tconsole.error(\"\\x1b[1;33m\" + text + \"\\x1b[0m\");\n\t\t}\t\t\n\t}\n};\n\nexports.Logger = Logger;\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/parsetree.js": {
"title": "$:/core/modules/utils/parsetree.js",
"text": "/*\\\ntitle: $:/core/modules/utils/parsetree.js\ntype: application/javascript\nmodule-type: utils\n\nParse tree utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.addAttributeToParseTreeNode = function(node,name,value) {\n\tnode.attributes = node.attributes || {};\n\tnode.attributes[name] = {type: \"string\", value: value};\n};\n\nexports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {\n\tif(node.attributes && node.attributes[name] && node.attributes[name].value !== undefined) {\n\t\treturn node.attributes[name].value;\n\t}\n\treturn defaultValue;\n};\n\nexports.addClassToParseTreeNode = function(node,classString) {\n\tvar classes = [];\n\tnode.attributes = node.attributes || {};\n\tnode.attributes[\"class\"] = node.attributes[\"class\"] || {type: \"string\", value: \"\"};\n\tif(node.attributes[\"class\"].type === \"string\") {\n\t\tif(node.attributes[\"class\"].value !== \"\") {\n\t\t\tclasses = node.attributes[\"class\"].value.split(\" \");\n\t\t}\n\t\tif(classString !== \"\") {\n\t\t\t$tw.utils.pushTop(classes,classString.split(\" \"));\n\t\t}\n\t\tnode.attributes[\"class\"].value = classes.join(\" \");\n\t}\n};\n\nexports.addStyleToParseTreeNode = function(node,name,value) {\n\t\tnode.attributes = node.attributes || {};\n\t\tnode.attributes.style = node.attributes.style || {type: \"string\", value: \"\"};\n\t\tif(node.attributes.style.type === \"string\") {\n\t\t\tnode.attributes.style.value += name + \":\" + value + \";\";\n\t\t}\n};\n\nexports.findParseTreeNode = function(nodeArray,search) {\n\tfor(var t=0; t<nodeArray.length; t++) {\n\t\tif(nodeArray[t].type === search.type && nodeArray[t].tag === search.tag) {\n\t\t\treturn nodeArray[t];\n\t\t}\n\t}\n\treturn undefined;\n};\n\n/*\nHelper to get the text of a parse tree node or array of nodes\n*/\nexports.getParseTreeText = function getParseTreeText(tree) {\n\tvar output = [];\n\tif($tw.utils.isArray(tree)) {\n\t\t$tw.utils.each(tree,function(node) {\n\t\t\toutput.push(getParseTreeText(node));\n\t\t});\n\t} else {\n\t\tif(tree.type === \"text\") {\n\t\t\toutput.push(tree.text);\n\t\t}\n\t\tif(tree.children) {\n\t\t\treturn getParseTreeText(tree.children);\n\t\t}\n\t}\n\treturn output.join(\"\");\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/performance.js": {
"title": "$:/core/modules/utils/performance.js",
"text": "/*\\\ntitle: $:/core/modules/utils/performance.js\ntype: application/javascript\nmodule-type: global\n\nPerformance measurement.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nfunction Performance(enabled) {\n\tthis.enabled = !!enabled;\n\tthis.measures = {}; // Hashmap by measurement name of {time:, invocations:}\n\tthis.logger = new $tw.utils.Logger(\"performance\");\n\tthis.showGreeting();\n}\n\nPerformance.prototype.showGreeting = function() {\n\tif($tw.browser) {\n\t\tthis.logger.log(\"Execute $tw.perf.log(); to see filter execution timings\");\t\t\n\t}\n};\n\n/*\nWrap performance reporting around a top level function\n*/\nPerformance.prototype.report = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tself.logger.log(name + \": \" + $tw.utils.timer(startTime).toFixed(2) + \"ms\");\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nPerformance.prototype.log = function() {\n\tvar self = this,\n\t\ttotalTime = 0,\n\t\torderedMeasures = Object.keys(this.measures).sort(function(a,b) {\n\t\t\tif(self.measures[a].time > self.measures[b].time) {\n\t\t\t\treturn -1;\n\t\t\t} else if (self.measures[a].time < self.measures[b].time) {\n\t\t\t\treturn + 1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\ttotalTime += self.measures[name].time;\n\t});\n\tvar results = []\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\tvar measure = self.measures[name];\n\t\tresults.push({name: name,invocations: measure.invocations, avgTime: measure.time / measure.invocations, totalTime: measure.time, percentTime: (measure.time / totalTime) * 100})\n\t});\n\tself.logger.table(results);\n};\n\n/*\nWrap performance measurements around a subfunction\n*/\nPerformance.prototype.measure = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tif(!(name in self.measures)) {\n\t\t\t\tself.measures[name] = {time: 0, invocations: 0};\n\t\t\t}\n\t\t\tself.measures[name].time += $tw.utils.timer(startTime);\n\t\t\tself.measures[name].invocations++;\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nexports.Performance = Performance;\n\n})();\n",
"type": "application/javascript",
"module-type": "global"
},
"$:/core/modules/utils/pluginmaker.js": {
"title": "$:/core/modules/utils/pluginmaker.js",
"text": "/*\\\ntitle: $:/core/modules/utils/pluginmaker.js\ntype: application/javascript\nmodule-type: utils\n\nA quick and dirty way to pack up plugins within the browser.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nRepack a plugin, and then delete any non-shadow payload tiddlers\n*/\nexports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {\n\tadditionalTiddlers = additionalTiddlers || [];\n\texcludeTiddlers = excludeTiddlers || [];\n\t// Get the plugin tiddler\n\tvar pluginTiddler = $tw.wiki.getTiddler(title);\n\tif(!pluginTiddler) {\n\t\tthrow \"No such tiddler as \" + title;\n\t}\n\t// Extract the JSON\n\tvar jsonPluginTiddler;\n\ttry {\n\t\tjsonPluginTiddler = JSON.parse(pluginTiddler.fields.text);\n\t} catch(e) {\n\t\tthrow \"Cannot parse plugin tiddler \" + title + \"\\n\" + $tw.language.getString(\"Error/Caption\") + \": \" + e;\n\t}\n\t// Get the list of tiddlers\n\tvar tiddlers = Object.keys(jsonPluginTiddler.tiddlers);\n\t// Add the additional tiddlers\n\t$tw.utils.pushTop(tiddlers,additionalTiddlers);\n\t// Remove any excluded tiddlers\n\tfor(var t=tiddlers.length-1; t>=0; t--) {\n\t\tif(excludeTiddlers.indexOf(tiddlers[t]) !== -1) {\n\t\t\ttiddlers.splice(t,1);\n\t\t}\n\t}\n\t// Pack up the tiddlers into a block of JSON\n\tvar plugins = {};\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = $tw.wiki.getTiddler(title),\n\t\t\tfields = {};\n\t\t$tw.utils.each(tiddler.fields,function (value,name) {\n\t\t\tfields[name] = tiddler.getFieldString(name);\n\t\t});\n\t\tplugins[title] = fields;\n\t});\n\t// Retrieve and bump the version number\n\tvar pluginVersion = $tw.utils.parseVersion(pluginTiddler.getFieldString(\"version\") || \"0.0.0\") || {\n\t\t\tmajor: \"0\",\n\t\t\tminor: \"0\",\n\t\t\tpatch: \"0\"\n\t\t};\n\tpluginVersion.patch++;\n\tvar version = pluginVersion.major + \".\" + pluginVersion.minor + \".\" + pluginVersion.patch;\n\tif(pluginVersion.prerelease) {\n\t\tversion += \"-\" + pluginVersion.prerelease;\n\t}\n\tif(pluginVersion.build) {\n\t\tversion += \"+\" + pluginVersion.build;\n\t}\n\t// Save the tiddler\n\t$tw.wiki.addTiddler(new $tw.Tiddler(pluginTiddler,{text: JSON.stringify({tiddlers: plugins},null,4), version: version}));\n\t// Delete any non-shadow constituent tiddlers\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tif($tw.wiki.tiddlerExists(title)) {\n\t\t\t$tw.wiki.deleteTiddler(title);\n\t\t}\n\t});\n\t// Trigger an autosave\n\t$tw.rootWidget.dispatchEvent({type: \"tm-auto-save-wiki\"});\n\t// Return a heartwarming confirmation\n\treturn \"Plugin \" + title + \" successfully saved\";\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/transliterate.js": {
"title": "$:/core/modules/utils/transliterate.js",
"text": "/*\\\ntitle: $:/core/modules/utils/transliterate.js\ntype: application/javascript\nmodule-type: utils\n\nTransliteration static utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nTransliterate string to ASCII\n\n(Some pairs taken from http://semplicewebsites.com/removing-accents-javascript)\n*/\nexports.transliterationPairs = {\n\t\"Á\":\"A\",\n\t\"Ă\":\"A\",\n\t\"Ắ\":\"A\",\n\t\"Ặ\":\"A\",\n\t\"Ằ\":\"A\",\n\t\"Ẳ\":\"A\",\n\t\"Ẵ\":\"A\",\n\t\"Ǎ\":\"A\",\n\t\"Â\":\"A\",\n\t\"Ấ\":\"A\",\n\t\"Ậ\":\"A\",\n\t\"Ầ\":\"A\",\n\t\"Ẩ\":\"A\",\n\t\"Ẫ\":\"A\",\n\t\"Ä\":\"A\",\n\t\"Ǟ\":\"A\",\n\t\"Ȧ\":\"A\",\n\t\"Ǡ\":\"A\",\n\t\"Ạ\":\"A\",\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\":\"y\",\n\t\"ź\":\"z\",\n\t\"ž\":\"z\",\n\t\"ẑ\":\"z\",\n\t\"ʑ\":\"z\",\n\t\"ⱬ\":\"z\",\n\t\"ż\":\"z\",\n\t\"ẓ\":\"z\",\n\t\"ȥ\":\"z\",\n\t\"ẕ\":\"z\",\n\t\"ᵶ\":\"z\",\n\t\"ᶎ\":\"z\",\n\t\"ʐ\":\"z\",\n\t\"ƶ\":\"z\",\n\t\"ɀ\":\"z\",\n\t\"ff\":\"ff\",\n\t\"ffi\":\"ffi\",\n\t\"ffl\":\"ffl\",\n\t\"fi\":\"fi\",\n\t\"fl\":\"fl\",\n\t\"ij\":\"ij\",\n\t\"œ\":\"oe\",\n\t\"st\":\"st\",\n\t\"ₐ\":\"a\",\n\t\"ₑ\":\"e\",\n\t\"ᵢ\":\"i\",\n\t\"ⱼ\":\"j\",\n\t\"ₒ\":\"o\",\n\t\"ᵣ\":\"r\",\n\t\"ᵤ\":\"u\",\n\t\"ᵥ\":\"v\",\n\t\"ₓ\":\"x\",\n\t\"Ё\":\"YO\",\n\t\"Й\":\"I\",\n\t\"Ц\":\"TS\",\n\t\"У\":\"U\",\n\t\"К\":\"K\",\n\t\"Е\":\"E\",\n\t\"Н\":\"N\",\n\t\"Г\":\"G\",\n\t\"Ш\":\"SH\",\n\t\"Щ\":\"SCH\",\n\t\"З\":\"Z\",\n\t\"Х\":\"H\",\n\t\"Ъ\":\"'\",\n\t\"ё\":\"yo\",\n\t\"й\":\"i\",\n\t\"ц\":\"ts\",\n\t\"у\":\"u\",\n\t\"к\":\"k\",\n\t\"е\":\"e\",\n\t\"н\":\"n\",\n\t\"г\":\"g\",\n\t\"ш\":\"sh\",\n\t\"щ\":\"sch\",\n\t\"з\":\"z\",\n\t\"х\":\"h\",\n\t\"ъ\":\"'\",\n\t\"Ф\":\"F\",\n\t\"Ы\":\"I\",\n\t\"В\":\"V\",\n\t\"А\":\"a\",\n\t\"П\":\"P\",\n\t\"Р\":\"R\",\n\t\"О\":\"O\",\n\t\"Л\":\"L\",\n\t\"Д\":\"D\",\n\t\"Ж\":\"ZH\",\n\t\"Э\":\"E\",\n\t\"ф\":\"f\",\n\t\"ы\":\"i\",\n\t\"в\":\"v\",\n\t\"а\":\"a\",\n\t\"п\":\"p\",\n\t\"р\":\"r\",\n\t\"о\":\"o\",\n\t\"л\":\"l\",\n\t\"д\":\"d\",\n\t\"ж\":\"zh\",\n\t\"э\":\"e\",\n\t\"Я\":\"Ya\",\n\t\"Ч\":\"CH\",\n\t\"С\":\"S\",\n\t\"М\":\"M\",\n\t\"И\":\"I\",\n\t\"Т\":\"T\",\n\t\"Ь\":\"'\",\n\t\"Б\":\"B\",\n\t\"Ю\":\"YU\",\n\t\"я\":\"ya\",\n\t\"ч\":\"ch\",\n\t\"с\":\"s\",\n\t\"м\":\"m\",\n\t\"и\":\"i\",\n\t\"т\":\"t\",\n\t\"ь\":\"'\",\n\t\"б\":\"b\",\n\t\"ю\":\"yu\"\n};\n\nexports.transliterate = function(str) {\n\treturn str.replace(/[^A-Za-z0-9\\[\\] ]/g,function(ch) {\n\t\treturn exports.transliterationPairs[ch] || ch\n\t});\n};\n\nexports.transliterateToSafeASCII = function(str) {\n\treturn str.replace(/[^\\x00-\\x7F]/g,function(ch) {\n\t\treturn exports.transliterationPairs[ch] || \"\"\n\t});\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/utils/utils.js": {
"title": "$:/core/modules/utils/utils.js",
"text": "/*\\\ntitle: $:/core/modules/utils/utils.js\ntype: application/javascript\nmodule-type: utils\n\nVarious static utility functions.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar base64utf8 = require(\"$:/core/modules/utils/base64-utf8/base64-utf8.module.js\");\n\n/*\nDisplay a message, in colour if we're on a terminal\n*/\nexports.log = function(text,colour) {\n\tconsole.log($tw.node ? exports.terminalColour(colour) + text + exports.terminalColour() : text);\n};\n\nexports.terminalColour = function(colour) {\n\tif(!$tw.browser && $tw.node && process.stdout.isTTY) {\n\t\tif(colour) {\n\t\t\tvar code = exports.terminalColourLookup[colour];\n\t\t\tif(code) {\n\t\t\t\treturn \"\\x1b[\" + code + \"m\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\\x1b[0m\"; // Cancel colour\n\t\t}\n\t}\n\treturn \"\";\n};\n\nexports.terminalColourLookup = {\n\t\"black\": \"0;30\",\n\t\"red\": \"0;31\",\n\t\"green\": \"0;32\",\n\t\"brown/orange\": \"0;33\",\n\t\"blue\": \"0;34\",\n\t\"purple\": \"0;35\",\n\t\"cyan\": \"0;36\",\n\t\"light gray\": \"0;37\"\n};\n\n/*\nDisplay a warning, in colour if we're on a terminal\n*/\nexports.warning = function(text) {\n\texports.log(text,\"brown/orange\");\n};\n\n/*\nReturn the integer represented by the str (string).\nReturn the dflt (default) parameter if str is not a base-10 number.\n*/\nexports.getInt = function(str,deflt) {\n\tvar i = parseInt(str,10);\n\treturn isNaN(i) ? deflt : i;\n}\n\n/*\nRepeatedly replaces a substring within a string. Like String.prototype.replace, but without any of the default special handling of $ sequences in the replace string\n*/\nexports.replaceString = function(text,search,replace) {\n\treturn text.replace(search,function() {\n\t\treturn replace;\n\t});\n};\n\n/*\nRepeats a string\n*/\nexports.repeat = function(str,count) {\n\tvar result = \"\";\n\tfor(var t=0;t<count;t++) {\n\t\tresult += str;\n\t}\n\treturn result;\n};\n\n/*\nTrim whitespace from the start and end of a string\nThanks to Steven Levithan, http://blog.stevenlevithan.com/archives/faster-trim-javascript\n*/\nexports.trim = function(str) {\n\tif(typeof str === \"string\") {\n\t\treturn str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n\t} else {\n\t\treturn str;\n\t}\n};\n\n/*\nConvert a string to sentence case (ie capitalise first letter)\n*/\nexports.toSentenceCase = function(str) {\n\treturn (str || \"\").replace(/^\\S/, function(c) {return c.toUpperCase();});\n}\n\n/*\nConvert a string to title case (ie capitalise each initial letter)\n*/\nexports.toTitleCase = function(str) {\n\treturn (str || \"\").replace(/(^|\\s)\\S/g, function(c) {return c.toUpperCase();});\n}\n\t\n/*\nFind the line break preceding a given position in a string\nReturns position immediately after that line break, or the start of the string\n*/\nexports.findPrecedingLineBreak = function(text,pos) {\n\tvar result = text.lastIndexOf(\"\\n\",pos - 1);\n\tif(result === -1) {\n\t\tresult = 0;\n\t} else {\n\t\tresult++;\n\t\tif(text.charAt(result) === \"\\r\") {\n\t\t\tresult++;\n\t\t}\n\t}\n\treturn result;\n};\n\n/*\nFind the line break following a given position in a string\n*/\nexports.findFollowingLineBreak = function(text,pos) {\n\t// Cut to just past the following line break, or to the end of the text\n\tvar result = text.indexOf(\"\\n\",pos);\n\tif(result === -1) {\n\t\tresult = text.length;\n\t} else {\n\t\tif(text.charAt(result) === \"\\r\") {\n\t\t\tresult++;\n\t\t}\n\t}\n\treturn result;\n};\n\n/*\nReturn the number of keys in an object\n*/\nexports.count = function(object) {\n\treturn Object.keys(object || {}).length;\n};\n\n/*\nDetermine whether an array-item is an object-property\n*/\nexports.hopArray = function(object,array) {\n\tfor(var i=0; i<array.length; i++) {\n\t\tif($tw.utils.hop(object,array[i])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nRemove entries from an array\n\tarray: array to modify\n\tvalue: a single value to remove, or an array of values to remove\n*/\nexports.removeArrayEntries = function(array,value) {\n\tvar t,p;\n\tif($tw.utils.isArray(value)) {\n\t\tfor(t=0; t<value.length; t++) {\n\t\t\tp = array.indexOf(value[t]);\n\t\t\tif(p !== -1) {\n\t\t\t\tarray.splice(p,1);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tp = array.indexOf(value);\n\t\tif(p !== -1) {\n\t\t\tarray.splice(p,1);\n\t\t}\n\t}\n};\n\n/*\nCheck whether any members of a hashmap are present in another hashmap\n*/\nexports.checkDependencies = function(dependencies,changes) {\n\tvar hit = false;\n\t$tw.utils.each(changes,function(change,title) {\n\t\tif($tw.utils.hop(dependencies,title)) {\n\t\t\thit = true;\n\t\t}\n\t});\n\treturn hit;\n};\n\nexports.extend = function(object /* [, src] */) {\n\t$tw.utils.each(Array.prototype.slice.call(arguments, 1), function(source) {\n\t\tif(source) {\n\t\t\tfor(var property in source) {\n\t\t\t\tobject[property] = source[property];\n\t\t\t}\n\t\t}\n\t});\n\treturn object;\n};\n\nexports.deepCopy = function(object) {\n\tvar result,t;\n\tif($tw.utils.isArray(object)) {\n\t\t// Copy arrays\n\t\tresult = object.slice(0);\n\t} else if(typeof object === \"object\") {\n\t\tresult = {};\n\t\tfor(t in object) {\n\t\t\tif(object[t] !== undefined) {\n\t\t\t\tresult[t] = $tw.utils.deepCopy(object[t]);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tresult = object;\n\t}\n\treturn result;\n};\n\nexports.extendDeepCopy = function(object,extendedProperties) {\n\tvar result = $tw.utils.deepCopy(object),t;\n\tfor(t in extendedProperties) {\n\t\tif(extendedProperties[t] !== undefined) {\n\t\t\tresult[t] = $tw.utils.deepCopy(extendedProperties[t]);\n\t\t}\n\t}\n\treturn result;\n};\n\nexports.deepFreeze = function deepFreeze(object) {\n\tvar property, key;\n\tif(object) {\n\t\tObject.freeze(object);\n\t\tfor(key in object) {\n\t\t\tproperty = object[key];\n\t\t\tif($tw.utils.hop(object,key) && (typeof property === \"object\") && !Object.isFrozen(property)) {\n\t\t\t\tdeepFreeze(property);\n\t\t\t}\n\t\t}\n\t}\n};\n\nexports.slowInSlowOut = function(t) {\n\treturn (1 - ((Math.cos(t * Math.PI) + 1) / 2));\n};\n\nexports.formatDateString = function(date,template) {\n\tvar result = \"\",\n\t\tt = template,\n\t\tmatches = [\n\t\t\t[/^0hh12/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getHours12(date));\n\t\t\t}],\n\t\t\t[/^wYYYY/, function() {\n\t\t\t\treturn $tw.utils.getYearForWeekNo(date);\n\t\t\t}],\n\t\t\t[/^hh12/, function() {\n\t\t\t\treturn $tw.utils.getHours12(date);\n\t\t\t}],\n\t\t\t[/^DDth/, function() {\n\t\t\t\treturn date.getDate() + $tw.utils.getDaySuffix(date);\n\t\t\t}],\n\t\t\t[/^YYYY/, function() {\n\t\t\t\treturn date.getFullYear();\n\t\t\t}],\n\t\t\t[/^0hh/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getHours());\n\t\t\t}],\n\t\t\t[/^0mm/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMinutes());\n\t\t\t}],\n\t\t\t[/^0ss/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getSeconds());\n\t\t\t}],\n\t\t\t[/^0XXX/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMilliseconds());\n\t\t\t}],\n\t\t\t[/^0DD/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getDate());\n\t\t\t}],\n\t\t\t[/^0MM/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMonth()+1);\n\t\t\t}],\n\t\t\t[/^0WW/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getWeek(date));\n\t\t\t}],\n\t\t\t[/^ddd/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Short/Day/\" + date.getDay());\n\t\t\t}],\n\t\t\t[/^mmm/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Short/Month/\" + (date.getMonth() + 1));\n\t\t\t}],\n\t\t\t[/^DDD/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Long/Day/\" + date.getDay());\n\t\t\t}],\n\t\t\t[/^MMM/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Long/Month/\" + (date.getMonth() + 1));\n\t\t\t}],\n\t\t\t[/^TZD/, function() {\n\t\t\t\tvar tz = date.getTimezoneOffset(),\n\t\t\t\tatz = Math.abs(tz);\n\t\t\t\treturn (tz < 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60);\n\t\t\t}],\n\t\t\t[/^wYY/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getYearForWeekNo(date) - 2000);\n\t\t\t}],\n\t\t\t[/^[ap]m/, function() {\n\t\t\t\treturn $tw.utils.getAmPm(date).toLowerCase();\n\t\t\t}],\n\t\t\t[/^hh/, function() {\n\t\t\t\treturn date.getHours();\n\t\t\t}],\n\t\t\t[/^mm/, function() {\n\t\t\t\treturn date.getMinutes();\n\t\t\t}],\n\t\t\t[/^ss/, function() {\n\t\t\t\treturn date.getSeconds();\n\t\t\t}],\n\t\t\t[/^XXX/, function() {\n\t\t\t\treturn date.getMilliseconds();\n\t\t\t}],\n\t\t\t[/^[AP]M/, function() {\n\t\t\t\treturn $tw.utils.getAmPm(date).toUpperCase();\n\t\t\t}],\n\t\t\t[/^DD/, function() {\n\t\t\t\treturn date.getDate();\n\t\t\t}],\n\t\t\t[/^MM/, function() {\n\t\t\t\treturn date.getMonth() + 1;\n\t\t\t}],\n\t\t\t[/^WW/, function() {\n\t\t\t\treturn $tw.utils.getWeek(date);\n\t\t\t}],\n\t\t\t[/^YY/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getFullYear() - 2000);\n\t\t\t}]\n\t\t];\n\t// If the user wants everything in UTC, shift the datestamp\n\t// Optimize for format string that essentially means\n\t// 'return raw UTC (tiddlywiki style) date string.'\n\tif(t.indexOf(\"[UTC]\") == 0 ) {\n\t\tif(t == \"[UTC]YYYY0MM0DD0hh0mm0ssXXX\")\n\t\t\treturn $tw.utils.stringifyDate(new Date());\n\t\tvar offset = date.getTimezoneOffset() ; // in minutes\n\t\tdate = new Date(date.getTime()+offset*60*1000) ;\n\t\tt = t.substr(5) ;\n\t}\n\twhile(t.length){\n\t\tvar matchString = \"\";\n\t\t$tw.utils.each(matches, function(m) {\n\t\t\tvar match = m[0].exec(t);\n\t\t\tif(match) {\n\t\t\t\tmatchString = m[1].call();\n\t\t\t\tt = t.substr(match[0].length);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tif(matchString) {\n\t\t\tresult += matchString;\n\t\t} else {\n\t\t\tresult += t.charAt(0);\n\t\t\tt = t.substr(1);\n\t\t}\n\t}\n\tresult = result.replace(/\\\\(.)/g,\"$1\");\n\treturn result;\n};\n\nexports.getAmPm = function(date) {\n\treturn $tw.language.getString(\"Date/Period/\" + (date.getHours() >= 12 ? \"pm\" : \"am\"));\n};\n\nexports.getDaySuffix = function(date) {\n\treturn $tw.language.getString(\"Date/DaySuffix/\" + date.getDate());\n};\n\nexports.getWeek = function(date) {\n\tvar dt = new Date(date.getTime());\n\tvar d = dt.getDay();\n\tif(d === 0) {\n\t\td = 7; // JavaScript Sun=0, ISO Sun=7\n\t}\n\tdt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week to calculate weekNo\n\tvar x = new Date(dt.getFullYear(),0,1);\n\tvar n = Math.floor((dt.getTime() - x.getTime()) / 86400000);\n\treturn Math.floor(n / 7) + 1;\n};\n\nexports.getYearForWeekNo = function(date) {\n\tvar dt = new Date(date.getTime());\n\tvar d = dt.getDay();\n\tif(d === 0) {\n\t\td = 7; // JavaScript Sun=0, ISO Sun=7\n\t}\n\tdt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week\n\treturn dt.getFullYear();\n};\n\nexports.getHours12 = function(date) {\n\tvar h = date.getHours();\n\treturn h > 12 ? h-12 : ( h > 0 ? h : 12 );\n};\n\n/*\nConvert a date delta in milliseconds into a string representation of \"23 seconds ago\", \"27 minutes ago\" etc.\n\tdelta: delta in milliseconds\nReturns an object with these members:\n\tdescription: string describing the delta period\n\tupdatePeriod: time in millisecond until the string will be inaccurate\n*/\nexports.getRelativeDate = function(delta) {\n\tvar futurep = false;\n\tif(delta < 0) {\n\t\tdelta = -1 * delta;\n\t\tfuturep = true;\n\t}\n\tvar units = [\n\t\t{name: \"Years\", duration: 365 * 24 * 60 * 60 * 1000},\n\t\t{name: \"Months\", duration: (365/12) * 24 * 60 * 60 * 1000},\n\t\t{name: \"Days\", duration: 24 * 60 * 60 * 1000},\n\t\t{name: \"Hours\", duration: 60 * 60 * 1000},\n\t\t{name: \"Minutes\", duration: 60 * 1000},\n\t\t{name: \"Seconds\", duration: 1000}\n\t];\n\tfor(var t=0; t<units.length; t++) {\n\t\tvar result = Math.floor(delta / units[t].duration);\n\t\tif(result >= 2) {\n\t\t\treturn {\n\t\t\t\tdelta: delta,\n\t\t\t\tdescription: $tw.language.getString(\n\t\t\t\t\t\"RelativeDate/\" + (futurep ? \"Future\" : \"Past\") + \"/\" + units[t].name,\n\t\t\t\t\t{variables:\n\t\t\t\t\t\t{period: result.toString()}\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t\tupdatePeriod: units[t].duration\n\t\t\t};\n\t\t}\n\t}\n\treturn {\n\t\tdelta: delta,\n\t\tdescription: $tw.language.getString(\n\t\t\t\"RelativeDate/\" + (futurep ? \"Future\" : \"Past\") + \"/Second\",\n\t\t\t{variables:\n\t\t\t\t{period: \"1\"}\n\t\t\t}\n\t\t),\n\t\tupdatePeriod: 1000\n\t};\n};\n\n// Convert & to \"&\", < to \"<\", > to \">\", \" to \""\"\nexports.htmlEncode = function(s) {\n\tif(s) {\n\t\treturn s.toString().replace(/&/mg,\"&\").replace(/</mg,\"<\").replace(/>/mg,\">\").replace(/\\\"/mg,\""\");\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\n// Converts all HTML entities to their character equivalents\nexports.entityDecode = function(s) {\n\tvar converter = String.fromCodePoint || String.fromCharCode,\n\t\te = s.substr(1,s.length-2), // Strip the & and the ;\n\t\tc;\n\tif(e.charAt(0) === \"#\") {\n\t\tif(e.charAt(1) === \"x\" || e.charAt(1) === \"X\") {\n\t\t\tc = parseInt(e.substr(2),16);\n\t\t} else {\n\t\t\tc = parseInt(e.substr(1),10);\n\t\t}\n\t\tif(isNaN(c)) {\n\t\t\treturn s;\n\t\t} else {\n\t\t\treturn converter(c);\n\t\t}\n\t} else {\n\t\tc = $tw.config.htmlEntities[e];\n\t\tif(c) {\n\t\t\treturn converter(c);\n\t\t} else {\n\t\t\treturn s; // Couldn't convert it as an entity, just return it raw\n\t\t}\n\t}\n};\n\nexports.unescapeLineBreaks = function(s) {\n\treturn s.replace(/\\\\n/mg,\"\\n\").replace(/\\\\b/mg,\" \").replace(/\\\\s/mg,\"\\\\\").replace(/\\r/mg,\"\");\n};\n\n/*\n * Returns an escape sequence for given character. Uses \\x for characters <=\n * 0xFF to save space, \\u for the rest.\n *\n * The code needs to be in sync with th code template in the compilation\n * function for \"action\" nodes.\n */\n// Copied from peg.js, thanks to David Majda\nexports.escape = function(ch) {\n\tvar charCode = ch.charCodeAt(0);\n\tif(charCode <= 0xFF) {\n\t\treturn '\\\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase());\n\t} else {\n\t\treturn '\\\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4);\n\t}\n};\n\n// Turns a string into a legal JavaScript string\n// Copied from peg.js, thanks to David Majda\nexports.stringify = function(s) {\n\t/*\n\t* ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string\n\t* literal except for the closing quote character, backslash, carriage return,\n\t* line separator, paragraph separator, and line feed. Any character may\n\t* appear in the form of an escape sequence.\n\t*\n\t* For portability, we also escape all non-ASCII characters.\n\t*/\n\treturn (s || \"\")\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\"/g, '\\\\\"') // double quote character\n\t\t.replace(/'/g, \"\\\\'\") // single quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(/[\\x00-\\x1f\\x80-\\uFFFF]/g, exports.escape); // non-ASCII characters\n};\n\n// Turns a string into a legal JSON string\n// Derived from peg.js, thanks to David Majda\nexports.jsonStringify = function(s) {\n\t// See http://www.json.org/\n\treturn (s || \"\")\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\"/g, '\\\\\"') // double quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(/\\x08/g, '\\\\b') // backspace\n\t\t.replace(/\\x0c/g, '\\\\f') // formfeed\n\t\t.replace(/\\t/g, '\\\\t') // tab\n\t\t.replace(/[\\x00-\\x1f\\x80-\\uFFFF]/g,function(s) {\n\t\t\treturn '\\\\u' + $tw.utils.pad(s.charCodeAt(0).toString(16).toUpperCase(),4);\n\t\t}); // non-ASCII characters\n};\n\n/*\nEscape the RegExp special characters with a preceding backslash\n*/\nexports.escapeRegExp = function(s) {\n return s.replace(/[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}]/g, '\\\\$&');\n};\n\n// Checks whether a link target is external, i.e. not a tiddler title\nexports.isLinkExternal = function(to) {\n\tvar externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\\s<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\b)/i;\n\treturn externalRegExp.test(to);\n};\n\nexports.nextTick = function(fn) {\n/*global window: false */\n\tif(typeof process === \"undefined\") {\n\t\t// Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts\n\t\twindow.setTimeout(fn,4);\n\t} else {\n\t\tprocess.nextTick(fn);\n\t}\n};\n\n/*\nConvert a hyphenated CSS property name into a camel case one\n*/\nexports.unHyphenateCss = function(propName) {\n\treturn propName.replace(/-([a-z])/gi, function(match0,match1) {\n\t\treturn match1.toUpperCase();\n\t});\n};\n\n/*\nConvert a camelcase CSS property name into a dashed one (\"backgroundColor\" --> \"background-color\")\n*/\nexports.hyphenateCss = function(propName) {\n\treturn propName.replace(/([A-Z])/g, function(match0,match1) {\n\t\treturn \"-\" + match1.toLowerCase();\n\t});\n};\n\n/*\nParse a text reference of one of these forms:\n* title\n* !!field\n* title!!field\n* title##index\n* etc\nReturns an object with the following fields, all optional:\n* title: tiddler title\n* field: tiddler field name\n* index: JSON property index\n*/\nexports.parseTextReference = function(textRef) {\n\t// Separate out the title, field name and/or JSON indices\n\tvar reTextRef = /(?:(.*?)!!(.+))|(?:(.*?)##(.+))|(.*)/mg,\n\t\tmatch = reTextRef.exec(textRef),\n\t\tresult = {};\n\tif(match && reTextRef.lastIndex === textRef.length) {\n\t\t// Return the parts\n\t\tif(match[1]) {\n\t\t\tresult.title = match[1];\n\t\t}\n\t\tif(match[2]) {\n\t\t\tresult.field = match[2];\n\t\t}\n\t\tif(match[3]) {\n\t\t\tresult.title = match[3];\n\t\t}\n\t\tif(match[4]) {\n\t\t\tresult.index = match[4];\n\t\t}\n\t\tif(match[5]) {\n\t\t\tresult.title = match[5];\n\t\t}\n\t} else {\n\t\t// If we couldn't parse it\n\t\tresult.title = textRef\n\t}\n\treturn result;\n};\n\n/*\nChecks whether a string is a valid fieldname\n*/\nexports.isValidFieldName = function(name) {\n\tif(!name || typeof name !== \"string\") {\n\t\treturn false;\n\t}\n\tname = name.toLowerCase().trim();\n\tvar fieldValidatorRegEx = /^[a-z0-9\\-\\._]+$/mg;\n\treturn fieldValidatorRegEx.test(name);\n};\n\n/*\nExtract the version number from the meta tag or from the boot file\n*/\n\n// Browser version\nexports.extractVersionInfo = function() {\n\tif($tw.packageInfo) {\n\t\treturn $tw.packageInfo.version;\n\t} else {\n\t\tvar metatags = document.getElementsByTagName(\"meta\");\n\t\tfor(var t=0; t<metatags.length; t++) {\n\t\t\tvar m = metatags[t];\n\t\t\tif(m.name === \"tiddlywiki-version\") {\n\t\t\t\treturn m.content;\n\t\t\t}\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nGet the animation duration in ms\n*/\nexports.getAnimationDuration = function() {\n\treturn parseInt($tw.wiki.getTiddlerText(\"$:/config/AnimationDuration\",\"400\"),10) || 0;\n};\n\n/*\nHash a string to a number\nDerived from http://stackoverflow.com/a/15710692\n*/\nexports.hashString = function(str) {\n\treturn str.split(\"\").reduce(function(a,b) {\n\t\ta = ((a << 5) - a) + b.charCodeAt(0);\n\t\treturn a & a;\n\t},0);\n};\n\n/*\nDecode a base64 string\n*/\nexports.base64Decode = function(string64) {\n\treturn base64utf8.base64.decode.call(base64utf8,string64);\n};\n\n/*\nEncode a string to base64\n*/\nexports.base64Encode = function(string64) {\n\treturn base64utf8.base64.encode.call(base64utf8,string64);\n};\n\n/*\nConvert a hashmap into a tiddler dictionary format sequence of name:value pairs\n*/\nexports.makeTiddlerDictionary = function(data) {\n\tvar output = [];\n\tfor(var name in data) {\n\t\toutput.push(name + \": \" + data[name]);\n\t}\n\treturn output.join(\"\\n\");\n};\n\n/*\nHigh resolution microsecond timer for profiling\n*/\nexports.timer = function(base) {\n\tvar m;\n\tif($tw.node) {\n\t\tvar r = process.hrtime();\n\t\tm = r[0] * 1e3 + (r[1] / 1e6);\n\t} else if(window.performance) {\n\t\tm = performance.now();\n\t} else {\n\t\tm = Date.now();\n\t}\n\tif(typeof base !== \"undefined\") {\n\t\tm = m - base;\n\t}\n\treturn m;\n};\n\n/*\nConvert text and content type to a data URI\n*/\nexports.makeDataUri = function(text,type) {\n\ttype = type || \"text/vnd.tiddlywiki\";\n\tvar typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo[\"text/plain\"],\n\t\tisBase64 = typeInfo.encoding === \"base64\",\n\t\tparts = [];\n\tparts.push(\"data:\");\n\tparts.push(type);\n\tparts.push(isBase64 ? \";base64\" : \"\");\n\tparts.push(\",\");\n\tparts.push(isBase64 ? text : encodeURIComponent(text));\n\treturn parts.join(\"\");\n};\n\n/*\nUseful for finding out the fully escaped CSS selector equivalent to a given tag. For example:\n\n$tw.utils.tagToCssSelector(\"$:/tags/Stylesheet\") --> tc-tagged-\\%24\\%3A\\%2Ftags\\%2FStylesheet\n*/\nexports.tagToCssSelector = function(tagName) {\n\treturn \"tc-tagged-\" + encodeURIComponent(tagName).replace(/[!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^`{\\|}~,]/mg,function(c) {\n\t\treturn \"\\\\\" + c;\n\t});\n};\n\n/*\nIE does not have sign function\n*/\nexports.sign = Math.sign || function(x) {\n\tx = +x; // convert to a number\n\tif (x === 0 || isNaN(x)) {\n\t\treturn x;\n\t}\n\treturn x > 0 ? 1 : -1;\n};\n\n/*\nIE does not have an endsWith function\n*/\nexports.strEndsWith = function(str,ending,position) {\n\tif(str.endsWith) {\n\t\treturn str.endsWith(ending,position);\n\t} else {\n\t\tif (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > str.length) {\n\t\t\tposition = str.length;\n\t\t}\n\t\tposition -= ending.length;\n\t\tvar lastIndex = str.indexOf(ending, position);\n\t\treturn lastIndex !== -1 && lastIndex === position;\n\t}\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "utils"
},
"$:/core/modules/widgets/action-createtiddler.js": {
"title": "$:/core/modules/widgets/action-createtiddler.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/action-createtiddler.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to create a new tiddler with a unique name and specified fields.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar CreateTiddlerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCreateTiddlerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCreateTiddlerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nCreateTiddlerWidget.prototype.execute = function() {\n\tthis.actionBaseTitle = this.getAttribute(\"$basetitle\");\n\tthis.actionSaveTitle = this.getAttribute(\"$savetitle\");\n\tthis.actionSaveDraftTitle = this.getAttribute(\"$savedrafttitle\");\n\tthis.actionTimestamp = this.getAttribute(\"$timestamp\",\"yes\") === \"yes\";\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nCreateTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) > 0) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nCreateTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar title = this.wiki.generateNewTitle(this.actionBaseTitle),\n\t\tfields = {},\n\t\tcreationFields,\n\t\tmodificationFields;\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \"$\") {\n\t\t\tfields[name] = attribute;\n\t\t}\n\t});\n\tif(this.actionTimestamp) {\n\t\tcreationFields = this.wiki.getCreationFields();\n\t\tmodificationFields = this.wiki.getModificationFields();\n\t}\n\tvar tiddler = this.wiki.addTiddler(new $tw.Tiddler(creationFields,fields,modificationFields,{title: title}));\n\tif(this.actionSaveTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveTitle,title,this.getVariable(\"currentTiddler\"));\n\t}\n\tif(this.actionSaveDraftTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(title),this.getVariable(\"currentTiddler\"));\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-createtiddler\"] = CreateTiddlerWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/action-deletefield.js": {
"title": "$:/core/modules/widgets/action-deletefield.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/action-deletefield.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to delete fields of a tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar DeleteFieldWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDeleteFieldWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDeleteFieldWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nDeleteFieldWidget.prototype.execute = function() {\n\tthis.actionTiddler = this.getAttribute(\"$tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.actionField = this.getAttribute(\"$field\");\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nDeleteFieldWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$tiddler\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nDeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar self = this,\n\t\ttiddler = this.wiki.getTiddler(self.actionTiddler),\n\t\tremoveFields = {},\n\t\thasChanged = false;\n\tif(this.actionField && tiddler) {\n\t\tremoveFields[this.actionField] = undefined;\n\t\tif(this.actionField in tiddler.fields) {\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\tif(tiddler) {\n\t\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\t\tif(name.charAt(0) !== \"$\" && name !== \"title\") {\n\t\t\t\tremoveFields[name] = undefined;\n\t\t\t\thasChanged = true;\n\t\t\t}\n\t\t});\n\t\tif(hasChanged) {\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,removeFields,this.wiki.getModificationFields()));\t\t\t\n\t\t}\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-deletefield\"] = DeleteFieldWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/action-deletetiddler.js": {
"title": "$:/core/modules/widgets/action-deletetiddler.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/action-deletetiddler.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to delete a tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar DeleteTiddlerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDeleteTiddlerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDeleteTiddlerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nDeleteTiddlerWidget.prototype.execute = function() {\n\tthis.actionFilter = this.getAttribute(\"$filter\");\n\tthis.actionTiddler = this.getAttribute(\"$tiddler\");\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nDeleteTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$filter\"] || changedAttributes[\"$tiddler\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nDeleteTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar tiddlers = [];\n\tif(this.actionFilter) {\n\t\ttiddlers = this.wiki.filterTiddlers(this.actionFilter,this);\n\t}\n\tif(this.actionTiddler) {\n\t\ttiddlers.push(this.actionTiddler);\n\t}\n\tfor(var t=0; t<tiddlers.length; t++) {\n\t\tthis.wiki.deleteTiddler(tiddlers[t]);\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-deletetiddler\"] = DeleteTiddlerWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/action-listops.js": {
"title": "$:/core/modules/widgets/action-listops.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/action-listops.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to apply list operations to any tiddler field (defaults to the 'list' field of the current tiddler)\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\nvar ActionListopsWidget = function(parseTreeNode, options) {\n\tthis.initialise(parseTreeNode, options);\n};\n/**\n * Inherit from the base widget class\n */\nActionListopsWidget.prototype = new Widget();\n/**\n * Render this widget into the DOM\n */\nActionListopsWidget.prototype.render = function(parent, nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n/**\n * Compute the internal state of the widget\n */\nActionListopsWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.target = this.getAttribute(\"$tiddler\", this.getVariable(\n\t\t\"currentTiddler\"));\n\tthis.filter = this.getAttribute(\"$filter\");\n\tthis.subfilter = this.getAttribute(\"$subfilter\");\n\tthis.listField = this.getAttribute(\"$field\", \"list\");\n\tthis.listIndex = this.getAttribute(\"$index\");\n\tthis.filtertags = this.getAttribute(\"$tags\");\n};\n/**\n * \tRefresh the widget by ensuring our attributes are up to date\n */\nActionListopsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.$tiddler || changedAttributes.$filter ||\n\t\tchangedAttributes.$subfilter || changedAttributes.$field ||\n\t\tchangedAttributes.$index || changedAttributes.$tags) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n/**\n * \tInvoke the action associated with this widget\n */\nActionListopsWidget.prototype.invokeAction = function(triggeringWidget,\n\tevent) {\n\t//Apply the specified filters to the lists\n\tvar field = this.listField,\n\t\tindex,\n\t\ttype = \"!!\",\n\t\tlist = this.listField;\n\tif(this.listIndex) {\n\t\tfield = undefined;\n\t\tindex = this.listIndex;\n\t\ttype = \"##\";\n\t\tlist = this.listIndex;\n\t}\n\tif(this.filter) {\n\t\tthis.wiki.setText(this.target, field, index, $tw.utils.stringifyList(\n\t\t\tthis.wiki\n\t\t\t.filterTiddlers(this.filter, this)));\n\t}\n\tif(this.subfilter) {\n\t\tvar subfilter = \"[list[\" + this.target + type + list + \"]] \" + this.subfilter;\n\t\tthis.wiki.setText(this.target, field, index, $tw.utils.stringifyList(\n\t\t\tthis.wiki\n\t\t\t.filterTiddlers(subfilter, this)));\n\t}\n\tif(this.filtertags) {\n\t\tvar tiddler = this.wiki.getTiddler(this.target),\n\t\t\toldtags = tiddler ? (tiddler.fields.tags || []).slice(0) : [],\n\t\t\ttagfilter = \"[list[\" + this.target + \"!!tags]] \" + this.filtertags,\n\t\t\tnewtags = this.wiki.filterTiddlers(tagfilter,this);\n\t\tif($tw.utils.stringifyList(oldtags.sort()) !== $tw.utils.stringifyList(newtags.sort())) {\n\t\t\tthis.wiki.setText(this.target,\"tags\",undefined,$tw.utils.stringifyList(newtags));\t\t\t\n\t\t}\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-listops\"] = ActionListopsWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/action-navigate.js": {
"title": "$:/core/modules/widgets/action-navigate.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/action-navigate.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to navigate to a tiddler\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar NavigateWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nNavigateWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nNavigateWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nNavigateWidget.prototype.execute = function() {\n\tthis.actionTo = this.getAttribute(\"$to\");\n\tthis.actionScroll = this.getAttribute(\"$scroll\");\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nNavigateWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$to\"] || changedAttributes[\"$scroll\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nNavigateWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tevent = event || {};\n\tvar bounds = triggeringWidget && triggeringWidget.getBoundingClientRect && triggeringWidget.getBoundingClientRect(),\n\t\tsuppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1);\n\tif(this.actionScroll === \"yes\") {\n\t\tsuppressNavigation = false;\n\t} else if(this.actionScroll === \"no\") {\n\t\tsuppressNavigation = true;\n\t}\n\tthis.dispatchEvent({\n\t\ttype: \"tm-navigate\",\n\t\tnavigateTo: this.actionTo === undefined ? this.getVariable(\"currentTiddler\") : this.actionTo,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tnavigateFromNode: triggeringWidget,\n\t\tnavigateFromClientRect: bounds && { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: suppressNavigation\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\"action-navigate\"] = NavigateWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/action-sendmessage.js": {
"title": "$:/core/modules/widgets/action-sendmessage.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/action-sendmessage.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to send a message\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar SendMessageWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSendMessageWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSendMessageWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nSendMessageWidget.prototype.execute = function() {\n\tthis.actionMessage = this.getAttribute(\"$message\");\n\tthis.actionParam = this.getAttribute(\"$param\");\n\tthis.actionName = this.getAttribute(\"$name\");\n\tthis.actionValue = this.getAttribute(\"$value\",\"\");\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nSendMessageWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(Object.keys(changedAttributes).length) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nSendMessageWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\t// Get the string parameter\n\tvar param = this.actionParam;\n\t// Assemble the attributes as a hashmap\n\tvar paramObject = Object.create(null);\n\tvar count = 0;\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \"$\") {\n\t\t\tparamObject[name] = attribute;\n\t\t\tcount++;\n\t\t}\n\t});\n\t// Add name/value pair if present\n\tif(this.actionName) {\n\t\tparamObject[this.actionName] = this.actionValue;\n\t}\n\t// Dispatch the message\n\tthis.dispatchEvent({\n\t\ttype: this.actionMessage,\n\t\tparam: param,\n\t\tparamObject: paramObject,\n\t\ttiddlerTitle: this.getVariable(\"currentTiddler\"),\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tevent: event\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\"action-sendmessage\"] = SendMessageWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/action-setfield.js": {
"title": "$:/core/modules/widgets/action-setfield.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/action-setfield.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to set a single field or index on a tiddler.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar SetFieldWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSetFieldWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSetFieldWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nSetFieldWidget.prototype.execute = function() {\n\tthis.actionTiddler = this.getAttribute(\"$tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.actionField = this.getAttribute(\"$field\");\n\tthis.actionIndex = this.getAttribute(\"$index\");\n\tthis.actionValue = this.getAttribute(\"$value\");\n\tthis.actionTimestamp = this.getAttribute(\"$timestamp\",\"yes\") === \"yes\";\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nSetFieldWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$tiddler\"] || changedAttributes[\"$field\"] || changedAttributes[\"$index\"] || changedAttributes[\"$value\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nSetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar self = this,\n\t\toptions = {};\n\toptions.suppressTimestamp = !this.actionTimestamp;\n\tif((typeof this.actionField == \"string\") || (typeof this.actionIndex == \"string\") || (typeof this.actionValue == \"string\")) {\n\t\tthis.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options);\n\t}\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \"$\") {\n\t\t\tself.wiki.setText(self.actionTiddler,name,undefined,attribute,options);\n\t\t}\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\"action-setfield\"] = SetFieldWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/browse.js": {
"title": "$:/core/modules/widgets/browse.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/browse.js\ntype: application/javascript\nmodule-type: widget\n\nBrowse widget for browsing for files to import\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar BrowseWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nBrowseWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nBrowseWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar domNode = this.document.createElement(\"input\");\n\tdomNode.setAttribute(\"type\",\"file\");\n\tif(this.browseMultiple) {\n\t\tdomNode.setAttribute(\"multiple\",\"multiple\");\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\"title\",this.tooltip);\n\t}\n\t// Nw.js supports \"nwsaveas\" to force a \"save as\" dialogue that allows a new or existing file to be selected\n\tif(this.nwsaveas) {\n\t\tdomNode.setAttribute(\"nwsaveas\",this.nwsaveas);\n\t}\n\t// Nw.js supports \"webkitdirectory\" and \"nwdirectory\" to allow a directory to be selected\n\tif(this.webkitdirectory) {\n\t\tdomNode.setAttribute(\"webkitdirectory\",this.webkitdirectory);\n\t}\n\tif(this.nwdirectory) {\n\t\tdomNode.setAttribute(\"nwdirectory\",this.nwdirectory);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\"change\",function (event) {\n\t\tif(self.message) {\n\t\t\tself.dispatchEvent({type: self.message, param: self.param, files: event.target.files});\n\t\t} else {\n\t\t\tself.wiki.readFiles(event.target.files,{\n\t\t\t\tcallback: function(tiddlerFieldsArray) {\n\t\t\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify(tiddlerFieldsArray)});\n\t\t\t\t},\n\t\t\t\tdeserializer: self.deserializer\n\t\t\t});\n\t\t}\n\t\treturn false;\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nBrowseWidget.prototype.execute = function() {\n\tthis.browseMultiple = this.getAttribute(\"multiple\");\n\tthis.deserializer = this.getAttribute(\"deserializer\");\n\tthis.message = this.getAttribute(\"message\");\n\tthis.param = this.getAttribute(\"param\");\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis.nwsaveas = this.getAttribute(\"nwsaveas\");\n\tthis.webkitdirectory = this.getAttribute(\"webkitdirectory\");\n\tthis.nwdirectory = this.getAttribute(\"nwdirectory\");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nBrowseWidget.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.browse = BrowseWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/button.js": {
"title": "$:/core/modules/widgets/button.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/button.js\ntype: application/javascript\nmodule-type: widget\n\nButton widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ButtonWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nButtonWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nButtonWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar tag = \"button\";\n\tif(this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {\n\t\ttag = this.buttonTag;\n\t}\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = this[\"class\"].split(\" \") || [],\n\t\tisPoppedUp = (this.popup || this.popupTitle) && this.isPoppedUp();\n\tif(this.selectedClass) {\n\t\tif((this.set || this.setTitle) && this.setTo && this.isSelected()) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\" \"));\n\t\t}\n\t\tif(isPoppedUp) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\" \"));\n\t\t}\n\t}\n\tif(isPoppedUp) {\n\t\t$tw.utils.pushTop(classes,\"tc-popup-handle\");\n\t}\n\tdomNode.className = classes.join(\" \");\n\t// Assign other attributes\n\tif(this.style) {\n\t\tdomNode.setAttribute(\"style\",this.style);\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\"title\",this.tooltip);\n\t}\n\tif(this[\"aria-label\"]) {\n\t\tdomNode.setAttribute(\"aria-label\",this[\"aria-label\"]);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\"click\",function (event) {\n\t\tvar handled = false;\n\t\tif(self.invokeActions(self,event)) {\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.to) {\n\t\t\tself.navigateTo(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.message) {\n\t\t\tself.dispatchMessage(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.popup || self.popupTitle) {\n\t\t\tself.triggerPopup(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.set || self.setTitle) {\n\t\t\tself.setTiddler();\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.actions) {\n\t\t\tself.invokeActionString(self.actions,self,event);\n\t\t}\n\t\tif(handled) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\treturn handled;\n\t},false);\n\t// Make it draggable if required\n\tif(this.dragTiddler || this.dragFilter) {\n\t\t$tw.utils.makeDraggable({\n\t\t\tdomNode: domNode,\n\t\t\tdragTiddlerFn: function() {return self.dragTiddler;},\n\t\t\tdragFilterFn: function() {return self.dragFilter;},\n\t\t\twidget: this\n\t\t});\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nWe don't allow actions to propagate because we trigger actions ourselves\n*/\nButtonWidget.prototype.allowActionPropagation = function() {\n\treturn false;\n};\n\nButtonWidget.prototype.getBoundingClientRect = function() {\n\treturn this.domNodes[0].getBoundingClientRect();\n};\n\nButtonWidget.prototype.isSelected = function() {\n return this.setTitle ? (this.setField ? this.wiki.getTiddler(this.setTitle).getFieldString(this.setField) === this.setTo :\n\t\t(this.setIndex ? this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex) === this.setTo :\n\t\t\tthis.wiki.getTiddlerText(this.setTitle))) || this.defaultSetValue || this.getVariable(\"currentTiddler\") :\n\t\tthis.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable(\"currentTiddler\")) === this.setTo;\n};\n\nButtonWidget.prototype.isPoppedUp = function() {\n\tvar tiddler = this.popupTitle ? this.wiki.getTiddler(this.popupTitle) : this.wiki.getTiddler(this.popup);\n\tvar result = tiddler && tiddler.fields.text ? $tw.popup.readPopupState(tiddler.fields.text) : false;\n\treturn result;\n};\n\nButtonWidget.prototype.navigateTo = function(event) {\n\tvar bounds = this.getBoundingClientRect();\n\tthis.dispatchEvent({\n\t\ttype: \"tm-navigate\",\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tnavigateFromNode: this,\n\t\tnavigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),\n\t\tevent: event\n\t});\n};\n\nButtonWidget.prototype.dispatchMessage = function(event) {\n\tthis.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(\"currentTiddler\"), event: event});\n};\n\nButtonWidget.prototype.triggerPopup = function(event) {\n\tif(this.popupTitle) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNodes[0],\n\t\t\ttitle: this.popupTitle,\n\t\t\twiki: this.wiki,\n\t\t\tnoStateReference: true\n\t\t});\n\t} else {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNodes[0],\n\t\t\ttitle: this.popup,\n\t\t\twiki: this.wiki\n\t\t});\n\t}\n};\n\nButtonWidget.prototype.setTiddler = function() {\n\tif(this.setTitle) {\n\t\tthis.setField ? this.wiki.setText(this.setTitle,this.setField,undefined,this.setTo) :\n\t\t\t\t(this.setIndex ? this.wiki.setText(this.setTitle,undefined,this.setIndex,this.setTo) :\n\t\t\t\tthis.wiki.setText(this.setTitle,\"text\",undefined,this.setTo));\n\t} else {\n\t\tthis.wiki.setTextReference(this.set,this.setTo,this.getVariable(\"currentTiddler\"));\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nButtonWidget.prototype.execute = function() {\n\t// Get attributes\n\tthis.actions = this.getAttribute(\"actions\");\n\tthis.to = this.getAttribute(\"to\");\n\tthis.message = this.getAttribute(\"message\");\n\tthis.param = this.getAttribute(\"param\");\n\tthis.set = this.getAttribute(\"set\");\n\tthis.setTo = this.getAttribute(\"setTo\");\n\tthis.popup = this.getAttribute(\"popup\");\n\tthis.hover = this.getAttribute(\"hover\");\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tthis[\"aria-label\"] = this.getAttribute(\"aria-label\");\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis.style = this.getAttribute(\"style\");\n\tthis.selectedClass = this.getAttribute(\"selectedClass\");\n\tthis.defaultSetValue = this.getAttribute(\"default\",\"\");\n\tthis.buttonTag = this.getAttribute(\"tag\");\n\tthis.dragTiddler = this.getAttribute(\"dragTiddler\");\n\tthis.dragFilter = this.getAttribute(\"dragFilter\");\n\tthis.setTitle = this.getAttribute(\"setTitle\");\n\tthis.setField = this.getAttribute(\"setField\");\n\tthis.setIndex = this.getAttribute(\"setIndex\");\n\tthis.popupTitle = this.getAttribute(\"popupTitle\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nButtonWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.to || changedAttributes.message || changedAttributes.param || changedAttributes.set || changedAttributes.setTo || changedAttributes.popup || changedAttributes.hover || changedAttributes[\"class\"] || changedAttributes.selectedClass || changedAttributes.style || changedAttributes.dragFilter || changedAttributes.dragTiddler || (this.set && changedTiddlers[this.set]) || (this.popup && changedTiddlers[this.popup]) || (this.popupTitle && changedTiddlers[this.popupTitle]) || changedAttributes.setTitle || changedAttributes.setField || changedAttributes.setIndex || changedAttributes.popupTitle) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.button = ButtonWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/checkbox.js": {
"title": "$:/core/modules/widgets/checkbox.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/checkbox.js\ntype: application/javascript\nmodule-type: widget\n\nCheckbox widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar CheckboxWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCheckboxWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCheckboxWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Create our elements\n\tthis.labelDomNode = this.document.createElement(\"label\");\n\tthis.labelDomNode.setAttribute(\"class\",this.checkboxClass);\n\tthis.inputDomNode = this.document.createElement(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"checkbox\");\n\tif(this.getValue()) {\n\t\tthis.inputDomNode.setAttribute(\"checked\",\"true\");\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\"span\");\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.labelDomNode,nextSibling);\n\tthis.renderChildren(this.spanDomNode,null);\n\tthis.domNodes.push(this.labelDomNode);\n};\n\nCheckboxWidget.prototype.getValue = function() {\n\tvar tiddler = this.wiki.getTiddler(this.checkboxTitle);\n\tif(tiddler) {\n\t\tif(this.checkboxTag) {\n\t\t\tif(this.checkboxInvertTag) {\n\t\t\t\treturn !tiddler.hasTag(this.checkboxTag);\n\t\t\t} else {\n\t\t\t\treturn tiddler.hasTag(this.checkboxTag);\n\t\t\t}\n\t\t}\n\t\tif(this.checkboxField) {\n\t\t\tvar value;\n\t\t\tif($tw.utils.hop(tiddler.fields,this.checkboxField)) {\n\t\t\t\tvalue = tiddler.fields[this.checkboxField] || \"\";\n\t\t\t} else {\n\t\t\t\tvalue = this.checkboxDefault || \"\";\n\t\t\t}\n\t\t\tif(value === this.checkboxChecked) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(value === this.checkboxUnchecked) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(this.checkboxIndex) {\n\t\t\tvar value = this.wiki.extractTiddlerDataItem(tiddler,this.checkboxIndex,this.checkboxDefault || \"\");\n\t\t\tif(value === this.checkboxChecked) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(value === this.checkboxUnchecked) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif(this.checkboxTag) {\n\t\t\treturn false;\n\t\t}\n\t\tif(this.checkboxField) {\n\t\t\tif(this.checkboxDefault === this.checkboxChecked) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(this.checkboxDefault === this.checkboxUnchecked) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nCheckboxWidget.prototype.handleChangeEvent = function(event) {\n\tvar checked = this.inputDomNode.checked,\n\t\ttiddler = this.wiki.getTiddler(this.checkboxTitle),\n\t\tfallbackFields = {text: \"\"},\n\t\tnewFields = {title: this.checkboxTitle},\n\t\thasChanged = false,\n\t\ttagCheck = false,\n\t\thasTag = tiddler && tiddler.hasTag(this.checkboxTag),\n\t\tvalue = checked ? this.checkboxChecked : this.checkboxUnchecked;\n\tif(this.checkboxTag && this.checkboxInvertTag === \"yes\") {\n\t\ttagCheck = hasTag === checked;\n\t} else {\n\t\ttagCheck = hasTag !== checked;\n\t}\n\t// Set the tag if specified\n\tif(this.checkboxTag && (!tiddler || tagCheck)) {\n\t\tnewFields.tags = tiddler ? (tiddler.fields.tags || []).slice(0) : [];\n\t\tvar pos = newFields.tags.indexOf(this.checkboxTag);\n\t\tif(pos !== -1) {\n\t\t\tnewFields.tags.splice(pos,1);\n\t\t}\n\t\tif(this.checkboxInvertTag === \"yes\" && !checked) {\n\t\t\tnewFields.tags.push(this.checkboxTag);\n\t\t} else if(this.checkboxInvertTag !== \"yes\" && checked) {\n\t\t\tnewFields.tags.push(this.checkboxTag);\n\t\t}\n\t\thasChanged = true;\n\t}\n\t// Set the field if specified\n\tif(this.checkboxField) {\n\t\tif(!tiddler || tiddler.fields[this.checkboxField] !== value) {\n\t\t\tnewFields[this.checkboxField] = value;\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\t// Set the index if specified\n\tif(this.checkboxIndex) {\n\t\tvar indexValue = this.wiki.extractTiddlerDataItem(this.checkboxTitle,this.checkboxIndex);\n\t\tif(!tiddler || indexValue !== value) {\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\tif(hasChanged) {\n\t\tif(this.checkboxIndex) {\n\t\t\tthis.wiki.setText(this.checkboxTitle,\"\",this.checkboxIndex,value);\n\t\t} else {\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields()));\n\t\t}\n\t}\n\t// Trigger actions\n\tif(this.checkboxActions) {\n\t\tthis.invokeActionString(this.checkboxActions,this,event);\n\t}\n\tif(this.checkboxCheckActions && checked) {\n\t\tthis.invokeActionString(this.checkboxCheckActions,this,event);\n\t}\n\tif(this.checkboxUncheckActions && !checked) {\n\t\tthis.invokeActionString(this.checkboxUncheckActions,this,event);\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nCheckboxWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.checkboxActions = this.getAttribute(\"actions\");\n\tthis.checkboxCheckActions = this.getAttribute(\"checkactions\");\n\tthis.checkboxUncheckActions = this.getAttribute(\"uncheckactions\");\n\tthis.checkboxTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.checkboxTag = this.getAttribute(\"tag\");\n\tthis.checkboxField = this.getAttribute(\"field\");\n\tthis.checkboxIndex = this.getAttribute(\"index\");\n\tthis.checkboxChecked = this.getAttribute(\"checked\");\n\tthis.checkboxUnchecked = this.getAttribute(\"unchecked\");\n\tthis.checkboxDefault = this.getAttribute(\"default\");\n\tthis.checkboxClass = this.getAttribute(\"class\",\"\");\n\tthis.checkboxInvertTag = this.getAttribute(\"invertTag\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nCheckboxWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.tag || changedAttributes.invertTag || changedAttributes.field || changedAttributes.index || changedAttributes.checked || changedAttributes.unchecked || changedAttributes[\"default\"] || changedAttributes[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.checkboxTitle]) {\n\t\t\tthis.inputDomNode.checked = this.getValue();\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.checkbox = CheckboxWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/codeblock.js": {
"title": "$:/core/modules/widgets/codeblock.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/codeblock.js\ntype: application/javascript\nmodule-type: widget\n\nCode block node widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar CodeBlockWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCodeBlockWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCodeBlockWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar codeNode = this.document.createElement(\"code\"),\n\t\tdomNode = this.document.createElement(\"pre\");\n\tcodeNode.appendChild(this.document.createTextNode(this.getAttribute(\"code\")));\n\tdomNode.appendChild(codeNode);\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.domNodes.push(domNode);\n\tif(this.postRender) {\n\t\tthis.postRender();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nCodeBlockWidget.prototype.execute = function() {\n\tthis.language = this.getAttribute(\"language\");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nCodeBlockWidget.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.codeblock = CodeBlockWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/count.js": {
"title": "$:/core/modules/widgets/count.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/count.js\ntype: application/javascript\nmodule-type: widget\n\nCount widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar CountWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nCountWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nCountWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar textNode = this.document.createTextNode(this.currentCount);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nCountWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.filter = this.getAttribute(\"filter\");\n\t// Execute the filter\n\tif(this.filter) {\n\t\tthis.currentCount = this.wiki.filterTiddlers(this.filter,this).length;\n\t} else {\n\t\tthis.currentCount = undefined;\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nCountWidget.prototype.refresh = function(changedTiddlers) {\n\t// Re-execute the filter to get the count\n\tthis.computeAttributes();\n\tvar oldCount = this.currentCount;\n\tthis.execute();\n\tif(this.currentCount !== oldCount) {\n\t\t// Regenerate and rerender the widget and replace the existing DOM node\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n\n};\n\nexports.count = CountWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/diff-text.js": {
"title": "$:/core/modules/widgets/diff-text.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/diff-text.js\ntype: application/javascript\nmodule-type: widget\n\nWidget to display a diff between two texts\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget,\n\tdmp = require(\"$:/core/modules/utils/diff-match-patch/diff_match_patch.js\");\n\nvar DiffTextWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDiffTextWidget.prototype = new Widget();\n\nDiffTextWidget.prototype.invisibleCharacters = {\n\t\"\\n\": \"↩︎\\n\",\n\t\"\\r\": \"⇠\",\n\t\"\\t\": \"⇥\\t\"\n};\n\n/*\nRender this widget into the DOM\n*/\nDiffTextWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create the diff\n\tvar dmpObject = new dmp.diff_match_patch(),\n\t\tdiffs = dmpObject.diff_main(this.getAttribute(\"source\"),this.getAttribute(\"dest\"));\n\t// Apply required cleanup\n\tswitch(this.getAttribute(\"cleanup\",\"semantic\")) {\n\t\tcase \"none\":\n\t\t\t// No cleanup\n\t\t\tbreak;\n\t\tcase \"efficiency\":\n\t\t\tdmpObject.diff_cleanupEfficiency(diffs);\n\t\t\tbreak;\n\t\tdefault: // case \"semantic\"\n\t\t\tdmpObject.diff_cleanupSemantic(diffs);\n\t\t\tbreak;\n\t}\n\t// Create the elements\n\tvar domContainer = this.document.createElement(\"div\"), \n\t\tdomDiff = this.createDiffDom(diffs);\n\tparent.insertBefore(domContainer,nextSibling);\n\t// Set variables\n\tthis.setVariable(\"diff-count\",diffs.reduce(function(acc,diff) {\n\t\tif(diff[0] !== dmp.DIFF_EQUAL) {\n\t\t\tacc++;\n\t\t}\n\t\treturn acc;\n\t},0).toString());\n\t// Render child widgets\n\tthis.renderChildren(domContainer,null);\n\t// Render the diff\n\tdomContainer.appendChild(domDiff);\n\t// Save our container\n\tthis.domNodes.push(domContainer);\n};\n\n/*\nCreate DOM elements representing a list of diffs\n*/\nDiffTextWidget.prototype.createDiffDom = function(diffs) {\n\tvar self = this;\n\t// Create the element and assign the attributes\n\tvar domPre = this.document.createElement(\"pre\"),\n\t\tdomCode = this.document.createElement(\"code\");\n\t$tw.utils.each(diffs,function(diff) {\n\t\tvar tag = diff[0] === dmp.DIFF_INSERT ? \"ins\" : (diff[0] === dmp.DIFF_DELETE ? \"del\" : \"span\"),\n\t\t\tclassName = diff[0] === dmp.DIFF_INSERT ? \"tc-diff-insert\" : (diff[0] === dmp.DIFF_DELETE ? \"tc-diff-delete\" : \"tc-diff-equal\"),\n\t\t\tdom = self.document.createElement(tag),\n\t\t\ttext = diff[1],\n\t\t\tcurrPos = 0,\n\t\t\tre = /([\\x00-\\x1F])/mg,\n\t\t\tmatch = re.exec(text),\n\t\t\tspan,\n\t\t\tprintable;\n\t\tdom.className = className;\n\t\twhile(match) {\n\t\t\tif(currPos < match.index) {\n\t\t\t\tdom.appendChild(self.document.createTextNode(text.slice(currPos,match.index)));\n\t\t\t}\n\t\t\tspan = self.document.createElement(\"span\");\n\t\t\tspan.className = \"tc-diff-invisible\";\n\t\t\tprintable = self.invisibleCharacters[match[0]] || (\"[0x\" + match[0].charCodeAt(0).toString(16) + \"]\");\n\t\t\tspan.appendChild(self.document.createTextNode(printable));\n\t\t\tdom.appendChild(span);\n\t\t\tcurrPos = match.index + match[0].length;\n\t\t\tmatch = re.exec(text);\n\t\t}\n\t\tif(currPos < text.length) {\n\t\t\tdom.appendChild(self.document.createTextNode(text.slice(currPos)));\n\t\t}\n\t\tdomCode.appendChild(dom);\n\t});\n\tdomPre.appendChild(domCode);\n\treturn domPre;\n};\n\n/*\nCompute the internal state of the widget\n*/\nDiffTextWidget.prototype.execute = function() {\n\t// Make child widgets\n\tvar parseTreeNodes;\n\tif(this.parseTreeNode && this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {\n\t\tparseTreeNodes = this.parseTreeNode.children;\n\t} else {\n\t\tparseTreeNodes = [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: \"$:/language/Diffs/CountMessage\"}\n\t\t\t}\n\t\t}];\n\t}\n\tthis.makeChildWidgets(parseTreeNodes);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDiffTextWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.source || changedAttributes.dest || changedAttributes.cleanup) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports[\"diff-text\"] = DiffTextWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/draggable.js": {
"title": "$:/core/modules/widgets/draggable.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/draggable.js\ntype: application/javascript\nmodule-type: widget\n\nDraggable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar DraggableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDraggableWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDraggableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Sanitise the specified tag\n\tvar tag = this.draggableTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \"div\";\n\t}\n\t// Create our element\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = [\"tc-draggable\"];\n\tif(this.draggableClasses) {\n\t\tclasses.push(this.draggableClasses);\n\t}\n\tdomNode.setAttribute(\"class\",classes.join(\" \"));\n\t// Add event handlers\n\t$tw.utils.makeDraggable({\n\t\tdomNode: domNode,\n\t\tdragTiddlerFn: function() {return self.getAttribute(\"tiddler\");},\n\t\tdragFilterFn: function() {return self.getAttribute(\"filter\");},\n\t\tstartActions: self.startActions,\n\t\tendActions: self.endActions,\n\t\twidget: this\n\t});\n\t// Insert the link into the DOM and render any children\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nDraggableWidget.prototype.execute = function() {\n\t// Pick up our attributes\n\tthis.draggableTag = this.getAttribute(\"tag\",\"div\");\n\tthis.draggableClasses = this.getAttribute(\"class\");\n\tthis.startActions = this.getAttribute(\"startactions\");\n\tthis.endActions = this.getAttribute(\"endactions\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDraggableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedTiddlers.tag || changedTiddlers[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.draggable = DraggableWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/droppable.js": {
"title": "$:/core/modules/widgets/droppable.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/droppable.js\ntype: application/javascript\nmodule-type: widget\n\nDroppable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar DroppableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDroppableWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDroppableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar tag = this.parseTreeNode.isBlock ? \"div\" : \"span\";\n\tif(this.droppableTag && $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) {\n\t\ttag = this.droppableTag;\n\t}\n\t// Create element and assign classes\n\tvar domNode = this.document.createElement(tag),\n\t\tclasses = (this[\"class\"] || \"\").split(\" \");\n\tclasses.push(\"tc-droppable\");\n\tdomNode.className = classes.join(\" \");\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"dragenter\", handlerObject: this, handlerMethod: \"handleDragEnterEvent\"},\n\t\t{name: \"dragover\", handlerObject: this, handlerMethod: \"handleDragOverEvent\"},\n\t\t{name: \"dragleave\", handlerObject: this, handlerMethod: \"handleDragLeaveEvent\"},\n\t\t{name: \"drop\", handlerObject: this, handlerMethod: \"handleDropEvent\"}\n\t]);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n\t// Stack of outstanding enter/leave events\n\tthis.currentlyEntered = [];\n};\n\nDroppableWidget.prototype.enterDrag = function(event) {\n\tif(this.currentlyEntered.indexOf(event.target) === -1) {\n\t\tthis.currentlyEntered.push(event.target);\n\t}\n\t// If we're entering for the first time we need to apply highlighting\n\t$tw.utils.addClass(this.domNodes[0],\"tc-dragover\");\n};\n\nDroppableWidget.prototype.leaveDrag = function(event) {\n\tvar pos = this.currentlyEntered.indexOf(event.target);\n\tif(pos !== -1) {\n\t\tthis.currentlyEntered.splice(pos,1);\n\t}\n\t// Remove highlighting if we're leaving externally. The hacky second condition is to resolve a problem with Firefox whereby there is an erroneous dragenter event if the node being dragged is within the dropzone\n\tif(this.currentlyEntered.length === 0 || (this.currentlyEntered.length === 1 && this.currentlyEntered[0] === $tw.dragInProgress)) {\n\t\tthis.currentlyEntered = [];\n\t\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n\t}\n};\n\nDroppableWidget.prototype.handleDragEnterEvent = function(event) {\n\tthis.enterDrag(event);\n\t// Tell the browser that we're ready to handle the drop\n\tevent.preventDefault();\n\t// Tell the browser not to ripple the drag up to any parent drop handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDragOverEvent = function(event) {\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\t// Tell the browser that we're still interested in the drop\n\tevent.preventDefault();\n\t// Set the drop effect\n\tevent.dataTransfer.dropEffect = this.droppableEffect;\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDragLeaveEvent = function(event) {\n\tthis.leaveDrag(event);\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDropEvent = function(event) {\n\tvar self = this;\n\tthis.leaveDrag(event);\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\tvar dataTransfer = event.dataTransfer;\n\t// Remove highlighting\n\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n\t// Try to import the various data types we understand\n\t$tw.utils.importDataTransfer(dataTransfer,null,function(fieldsArray) {\n\t\tfieldsArray.forEach(function(fields) {\n\t\t\tself.performActions(fields.title || fields.text,event);\n\t\t});\n\t});\n\t// Tell the browser that we handled the drop\n\tevent.preventDefault();\n\t// Stop the drop ripple up to any parent handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.performActions = function(title,event) {\n\tif(this.droppableActions) {\n\t\tvar modifierKey = event.ctrlKey && ! event.shiftKey ? \"ctrl\" : event.shiftKey && !event.ctrlKey ? \"shift\" : \n\t\t\t\tevent.ctrlKey && event.shiftKey ? \"ctrl-shift\" : \"normal\" ;\n\t\tthis.invokeActionString(this.droppableActions,this,event,{actionTiddler: title, modifier: modifierKey});\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDroppableWidget.prototype.execute = function() {\n\tthis.droppableActions = this.getAttribute(\"actions\");\n\tthis.droppableEffect = this.getAttribute(\"effect\",\"copy\");\n\tthis.droppableTag = this.getAttribute(\"tag\");\n\tthis.droppableClass = this.getAttribute(\"class\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDroppableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"class\"] || changedAttributes.tag) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.droppable = DroppableWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/dropzone.js": {
"title": "$:/core/modules/widgets/dropzone.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/dropzone.js\ntype: application/javascript\nmodule-type: widget\n\nDropzone widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar DropZoneWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDropZoneWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDropZoneWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar domNode = this.document.createElement(\"div\");\n\tdomNode.className = \"tc-dropzone\";\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"dragenter\", handlerObject: this, handlerMethod: \"handleDragEnterEvent\"},\n\t\t{name: \"dragover\", handlerObject: this, handlerMethod: \"handleDragOverEvent\"},\n\t\t{name: \"dragleave\", handlerObject: this, handlerMethod: \"handleDragLeaveEvent\"},\n\t\t{name: \"drop\", handlerObject: this, handlerMethod: \"handleDropEvent\"},\n\t\t{name: \"paste\", handlerObject: this, handlerMethod: \"handlePasteEvent\"},\n\t\t{name: \"dragend\", handlerObject: this, handlerMethod: \"handleDragEndEvent\"}\n\t]);\n\tdomNode.addEventListener(\"click\",function (event) {\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n\t// Stack of outstanding enter/leave events\n\tthis.currentlyEntered = [];\n};\n\nDropZoneWidget.prototype.enterDrag = function(event) {\n\tif(this.currentlyEntered.indexOf(event.target) === -1) {\n\t\tthis.currentlyEntered.push(event.target);\n\t}\n\t// If we're entering for the first time we need to apply highlighting\n\t$tw.utils.addClass(this.domNodes[0],\"tc-dragover\");\n};\n\nDropZoneWidget.prototype.leaveDrag = function(event) {\n\tvar pos = this.currentlyEntered.indexOf(event.target);\n\tif(pos !== -1) {\n\t\tthis.currentlyEntered.splice(pos,1);\n\t}\n\t// Remove highlighting if we're leaving externally\n\tif(this.currentlyEntered.length === 0) {\n\t\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n\t}\n};\n\nDropZoneWidget.prototype.handleDragEnterEvent = function(event) {\n\t// Check for this window being the source of the drag\n\tif($tw.dragInProgress) {\n\t\treturn false;\n\t}\n\tthis.enterDrag(event);\n\t// Tell the browser that we're ready to handle the drop\n\tevent.preventDefault();\n\t// Tell the browser not to ripple the drag up to any parent drop handlers\n\tevent.stopPropagation();\n};\n\nDropZoneWidget.prototype.handleDragOverEvent = function(event) {\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\t// Check for this window being the source of the drag\n\tif($tw.dragInProgress) {\n\t\treturn false;\n\t}\n\t// Tell the browser that we're still interested in the drop\n\tevent.preventDefault();\n\tevent.dataTransfer.dropEffect = \"copy\"; // Explicitly show this is a copy\n};\n\nDropZoneWidget.prototype.handleDragLeaveEvent = function(event) {\n\tthis.leaveDrag(event);\n};\n\nDropZoneWidget.prototype.handleDragEndEvent = function(event) {\n\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n};\n\nDropZoneWidget.prototype.handleDropEvent = function(event) {\n\tvar self = this,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify(tiddlerFieldsArray)});\n\t\t};\n\tthis.leaveDrag(event);\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].indexOf(event.target.tagName) !== -1) {\n\t\treturn false;\n\t}\n\t// Check for this window being the source of the drag\n\tif($tw.dragInProgress) {\n\t\treturn false;\n\t}\n\tvar self = this,\n\t\tdataTransfer = event.dataTransfer;\n\t// Remove highlighting\n\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n\t// Import any files in the drop\n\tvar numFiles = 0;\n\tif(dataTransfer.files) {\n\t\tnumFiles = this.wiki.readFiles(dataTransfer.files,{\n\t\t\tcallback: readFileCallback,\n\t\t\tdeserializer: this.dropzoneDeserializer\n\t\t});\n\t}\n\t// Try to import the various data types we understand\n\tif(numFiles === 0) {\n\t\t$tw.utils.importDataTransfer(dataTransfer,this.wiki.generateNewTitle(\"Untitled\"),readFileCallback);\n\t}\n\t// Tell the browser that we handled the drop\n\tevent.preventDefault();\n\t// Stop the drop ripple up to any parent handlers\n\tevent.stopPropagation();\n};\n\nDropZoneWidget.prototype.handlePasteEvent = function(event) {\n\tvar self = this,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify(tiddlerFieldsArray)});\n\t\t};\n\t// Let the browser handle it if we're in a textarea or input box\n\tif([\"TEXTAREA\",\"INPUT\"].indexOf(event.target.tagName) == -1 && !event.target.isContentEditable) {\n\t\tvar self = this,\n\t\t\titems = event.clipboardData.items;\n\t\t// Enumerate the clipboard items\n\t\tfor(var t = 0; t<items.length; t++) {\n\t\t\tvar item = items[t];\n\t\t\tif(item.kind === \"file\") {\n\t\t\t\t// Import any files\n\t\t\t\tthis.wiki.readFile(item.getAsFile(),{\n\t\t\t\t\tcallback: readFileCallback,\n\t\t\t\t\tdeserializer: this.dropzoneDeserializer\n\t\t\t\t});\n\t\t\t} else if(item.kind === \"string\") {\n\t\t\t\t// Create tiddlers from string items\n\t\t\t\tvar type = item.type;\n\t\t\t\titem.getAsString(function(str) {\n\t\t\t\t\tvar tiddlerFields = {\n\t\t\t\t\t\ttitle: self.wiki.generateNewTitle(\"Untitled\"),\n\t\t\t\t\t\ttext: str,\n\t\t\t\t\t\ttype: type\n\t\t\t\t\t};\n\t\t\t\t\tif($tw.log.IMPORT) {\n\t\t\t\t\t\tconsole.log(\"Importing string '\" + str + \"', type: '\" + type + \"'\");\n\t\t\t\t\t}\n\t\t\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify([tiddlerFields])});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\t// Tell the browser that we've handled the paste\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDropZoneWidget.prototype.execute = function() {\n\tthis.dropzoneDeserializer = this.getAttribute(\"deserializer\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDropZoneWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.dropzone = DropZoneWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/edit-binary.js": {
"title": "$:/core/modules/widgets/edit-binary.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/edit-binary.js\ntype: application/javascript\nmodule-type: widget\n\nEdit-binary widget; placeholder for editing binary tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar BINARY_WARNING_MESSAGE = \"$:/core/ui/BinaryWarning\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EditBinaryWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditBinaryWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditBinaryWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditBinaryWidget.prototype.execute = function() {\n\t// Construct the child widgets\n\tthis.makeChildWidgets([{\n\t\ttype: \"transclude\",\n\t\tattributes: {\n\t\t\ttiddler: {type: \"string\", value: BINARY_WARNING_MESSAGE}\n\t\t}\n\t}]);\n};\n\n/*\nRefresh by refreshing our child widget\n*/\nEditBinaryWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports[\"edit-binary\"] = EditBinaryWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/edit-bitmap.js": {
"title": "$:/core/modules/widgets/edit-bitmap.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/edit-bitmap.js\ntype: application/javascript\nmodule-type: widget\n\nEdit-bitmap widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Default image sizes\nvar DEFAULT_IMAGE_WIDTH = 600,\n\tDEFAULT_IMAGE_HEIGHT = 370,\n\tDEFAULT_IMAGE_TYPE = \"image/png\";\n\n// Configuration tiddlers\nvar LINE_WIDTH_TITLE = \"$:/config/BitmapEditor/LineWidth\",\n\tLINE_COLOUR_TITLE = \"$:/config/BitmapEditor/Colour\",\n\tLINE_OPACITY_TITLE = \"$:/config/BitmapEditor/Opacity\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EditBitmapWidget = function(parseTreeNode,options) {\n\t// Initialise the editor operations if they've not been done already\n\tif(!this.editorOperations) {\n\t\tEditBitmapWidget.prototype.editorOperations = {};\n\t\t$tw.modules.applyMethods(\"bitmapeditoroperation\",this.editorOperations);\n\t}\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditBitmapWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditBitmapWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Create the wrapper for the toolbar and render its content\n\tthis.toolbarNode = this.document.createElement(\"div\");\n\tthis.toolbarNode.className = \"tc-editor-toolbar\";\n\tparent.insertBefore(this.toolbarNode,nextSibling);\n\tthis.domNodes.push(this.toolbarNode);\n\t// Create the on-screen canvas\n\tthis.canvasDomNode = $tw.utils.domMaker(\"canvas\",{\n\t\tdocument: this.document,\n\t\t\"class\":\"tc-edit-bitmapeditor\",\n\t\teventListeners: [{\n\t\t\tname: \"touchstart\", handlerObject: this, handlerMethod: \"handleTouchStartEvent\"\n\t\t},{\n\t\t\tname: \"touchmove\", handlerObject: this, handlerMethod: \"handleTouchMoveEvent\"\n\t\t},{\n\t\t\tname: \"touchend\", handlerObject: this, handlerMethod: \"handleTouchEndEvent\"\n\t\t},{\n\t\t\tname: \"mousedown\", handlerObject: this, handlerMethod: \"handleMouseDownEvent\"\n\t\t},{\n\t\t\tname: \"mousemove\", handlerObject: this, handlerMethod: \"handleMouseMoveEvent\"\n\t\t},{\n\t\t\tname: \"mouseup\", handlerObject: this, handlerMethod: \"handleMouseUpEvent\"\n\t\t}]\n\t});\n\t// Set the width and height variables\n\tthis.setVariable(\"tv-bitmap-editor-width\",this.canvasDomNode.width + \"px\");\n\tthis.setVariable(\"tv-bitmap-editor-height\",this.canvasDomNode.height + \"px\");\n\t// Render toolbar child widgets\n\tthis.renderChildren(this.toolbarNode,null);\n\t// // Insert the elements into the DOM\n\tparent.insertBefore(this.canvasDomNode,nextSibling);\n\tthis.domNodes.push(this.canvasDomNode);\n\t// Load the image into the canvas\n\tif($tw.browser) {\n\t\tthis.loadCanvas();\n\t}\n\t// Add widget message listeners\n\tthis.addEventListeners([\n\t\t{type: \"tm-edit-bitmap-operation\", handler: \"handleEditBitmapOperationMessage\"}\n\t]);\n};\n\n/*\nHandle an edit bitmap operation message from the toolbar\n*/\nEditBitmapWidget.prototype.handleEditBitmapOperationMessage = function(event) {\n\t// Invoke the handler\n\tvar handler = this.editorOperations[event.param];\n\tif(handler) {\n\t\thandler.call(this,event);\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditBitmapWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.editTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nJust refresh the toolbar\n*/\nEditBitmapWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nSet the bitmap size variables and refresh the toolbar\n*/\nEditBitmapWidget.prototype.refreshToolbar = function() {\n\t// Set the width and height variables\n\tthis.setVariable(\"tv-bitmap-editor-width\",this.canvasDomNode.width + \"px\");\n\tthis.setVariable(\"tv-bitmap-editor-height\",this.canvasDomNode.height + \"px\");\n\t// Refresh each of our child widgets\n\t$tw.utils.each(this.children,function(childWidget) {\n\t\tchildWidget.refreshSelf();\n\t});\n};\n\nEditBitmapWidget.prototype.loadCanvas = function() {\n\tvar tiddler = this.wiki.getTiddler(this.editTitle),\n\t\tcurrImage = new Image();\n\t// Set up event handlers for loading the image\n\tvar self = this;\n\tcurrImage.onload = function() {\n\t\t// Copy the image to the on-screen canvas\n\t\tself.initCanvas(self.canvasDomNode,currImage.width,currImage.height,currImage);\n\t\t// And also copy the current bitmap to the off-screen canvas\n\t\tself.currCanvas = self.document.createElement(\"canvas\");\n\t\tself.initCanvas(self.currCanvas,currImage.width,currImage.height,currImage);\n\t\t// Set the width and height input boxes\n\t\tself.refreshToolbar();\n\t};\n\tcurrImage.onerror = function() {\n\t\t// Set the on-screen canvas size and clear it\n\t\tself.initCanvas(self.canvasDomNode,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);\n\t\t// Set the off-screen canvas size and clear it\n\t\tself.currCanvas = self.document.createElement(\"canvas\");\n\t\tself.initCanvas(self.currCanvas,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);\n\t\t// Set the width and height input boxes\n\t\tself.refreshToolbar();\n\t};\n\t// Get the current bitmap into an image object\n\tif(tiddler && tiddler.fields.type && tiddler.fields.text) {\n\t\tcurrImage.src = \"data:\" + tiddler.fields.type + \";base64,\" + tiddler.fields.text;\t\t\n\t} else {\n\t\tcurrImage.width = DEFAULT_IMAGE_WIDTH;\n\t\tcurrImage.height = DEFAULT_IMAGE_HEIGHT;\n\t\tcurrImage.onerror();\n\t}\n};\n\nEditBitmapWidget.prototype.initCanvas = function(canvas,width,height,image) {\n\tcanvas.width = width;\n\tcanvas.height = height;\n\tvar ctx = canvas.getContext(\"2d\");\n\tif(image) {\n\t\tctx.drawImage(image,0,0);\n\t} else {\n\t\tctx.fillStyle = \"#fff\";\n\t\tctx.fillRect(0,0,canvas.width,canvas.height);\n\t}\n};\n\n/*\n** Change the size of the canvas, preserving the current image\n*/\nEditBitmapWidget.prototype.changeCanvasSize = function(newWidth,newHeight) {\n\t// Create and size a new canvas\n\tvar newCanvas = this.document.createElement(\"canvas\");\n\tthis.initCanvas(newCanvas,newWidth,newHeight);\n\t// Copy the old image\n\tvar ctx = newCanvas.getContext(\"2d\");\n\tctx.drawImage(this.currCanvas,0,0);\n\t// Set the new canvas as the current one\n\tthis.currCanvas = newCanvas;\n\t// Set the size of the onscreen canvas\n\tthis.canvasDomNode.width = newWidth;\n\tthis.canvasDomNode.height = newHeight;\n\t// Paint the onscreen canvas with the offscreen canvas\n\tctx = this.canvasDomNode.getContext(\"2d\");\n\tctx.drawImage(this.currCanvas,0,0);\n};\n\n/*\n** Rotate the canvas left by 90 degrees\n*/\nEditBitmapWidget.prototype.rotateCanvasLeft = function() {\n\t// Get the current size of the image\n\tvar origWidth = this.currCanvas.width,\n\t\torigHeight = this.currCanvas.height;\n\t// Create and size a new canvas\n\tvar newCanvas = this.document.createElement(\"canvas\"),\n\t\tnewWidth = origHeight,\n\t\tnewHeight = origWidth;\n\tthis.initCanvas(newCanvas,newWidth,newHeight);\n\t// Copy the old image\n\tvar ctx = newCanvas.getContext(\"2d\");\n\tctx.save();\n\tctx.translate(newWidth / 2,newHeight / 2);\n\tctx.rotate(-Math.PI / 2);\n\tctx.drawImage(this.currCanvas,-origWidth / 2,-origHeight / 2);\n\tctx.restore();\n\t// Set the new canvas as the current one\n\tthis.currCanvas = newCanvas;\n\t// Set the size of the onscreen canvas\n\tthis.canvasDomNode.width = newWidth;\n\tthis.canvasDomNode.height = newHeight;\n\t// Paint the onscreen canvas with the offscreen canvas\n\tctx = this.canvasDomNode.getContext(\"2d\");\n\tctx.drawImage(this.currCanvas,0,0);\n};\n\nEditBitmapWidget.prototype.handleTouchStartEvent = function(event) {\n\tthis.brushDown = true;\n\tthis.strokeStart(event.touches[0].clientX,event.touches[0].clientY);\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleTouchMoveEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.strokeMove(event.touches[0].clientX,event.touches[0].clientY);\n\t}\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleTouchEndEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.brushDown = false;\n\t\tthis.strokeEnd();\n\t}\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleMouseDownEvent = function(event) {\n\tthis.strokeStart(event.clientX,event.clientY);\n\tthis.brushDown = true;\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nEditBitmapWidget.prototype.handleMouseMoveEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.strokeMove(event.clientX,event.clientY);\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEditBitmapWidget.prototype.handleMouseUpEvent = function(event) {\n\tif(this.brushDown) {\n\t\tthis.brushDown = false;\n\t\tthis.strokeEnd();\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn false;\n\t}\n\treturn true;\n};\n\nEditBitmapWidget.prototype.adjustCoordinates = function(x,y) {\n\tvar canvasRect = this.canvasDomNode.getBoundingClientRect(),\n\t\tscale = this.canvasDomNode.width/canvasRect.width;\n\treturn {x: (x - canvasRect.left) * scale, y: (y - canvasRect.top) * scale};\n};\n\nEditBitmapWidget.prototype.strokeStart = function(x,y) {\n\t// Start off a new stroke\n\tthis.stroke = [this.adjustCoordinates(x,y)];\n};\n\nEditBitmapWidget.prototype.strokeMove = function(x,y) {\n\tvar ctx = this.canvasDomNode.getContext(\"2d\"),\n\t\tt;\n\t// Add the new position to the end of the stroke\n\tthis.stroke.push(this.adjustCoordinates(x,y));\n\t// Redraw the previous image\n\tctx.drawImage(this.currCanvas,0,0);\n\t// Render the stroke\n\tctx.globalAlpha = parseFloat(this.wiki.getTiddlerText(LINE_OPACITY_TITLE,\"1.0\"));\n\tctx.strokeStyle = this.wiki.getTiddlerText(LINE_COLOUR_TITLE,\"#ff0\");\n\tctx.lineWidth = parseFloat(this.wiki.getTiddlerText(LINE_WIDTH_TITLE,\"3\"));\n\tctx.lineCap = \"round\";\n\tctx.lineJoin = \"round\";\n\tctx.beginPath();\n\tctx.moveTo(this.stroke[0].x,this.stroke[0].y);\n\tfor(t=1; t<this.stroke.length-1; t++) {\n\t\tvar s1 = this.stroke[t],\n\t\t\ts2 = this.stroke[t-1],\n\t\t\ttx = (s1.x + s2.x)/2,\n\t\t\tty = (s1.y + s2.y)/2;\n\t\tctx.quadraticCurveTo(s2.x,s2.y,tx,ty);\n\t}\n\tctx.stroke();\n};\n\nEditBitmapWidget.prototype.strokeEnd = function() {\n\t// Copy the bitmap to the off-screen canvas\n\tvar ctx = this.currCanvas.getContext(\"2d\");\n\tctx.drawImage(this.canvasDomNode,0,0);\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\nEditBitmapWidget.prototype.saveChanges = function() {\n\tvar tiddler = this.wiki.getTiddler(this.editTitle) || new $tw.Tiddler({title: this.editTitle,type: DEFAULT_IMAGE_TYPE});\n\t// data URIs look like \"data:<type>;base64,<text>\"\n\tvar dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type),\n\t\tposColon = dataURL.indexOf(\":\"),\n\t\tposSemiColon = dataURL.indexOf(\";\"),\n\t\tposComma = dataURL.indexOf(\",\"),\n\t\ttype = dataURL.substring(posColon+1,posSemiColon),\n\t\ttext = dataURL.substring(posComma+1);\n\tvar update = {type: type, text: text};\n\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields()));\n};\n\nexports[\"edit-bitmap\"] = EditBitmapWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/edit-shortcut.js": {
"title": "$:/core/modules/widgets/edit-shortcut.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/edit-shortcut.js\ntype: application/javascript\nmodule-type: widget\n\nWidget to display an editable keyboard shortcut\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EditShortcutWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditShortcutWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditShortcutWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.inputNode = this.document.createElement(\"input\");\n\t// Assign classes\n\tif(this.shortcutClass) {\n\t\tthis.inputNode.className = this.shortcutClass;\t\t\n\t}\n\t// Assign other attributes\n\tif(this.shortcutStyle) {\n\t\tthis.inputNode.setAttribute(\"style\",this.shortcutStyle);\n\t}\n\tif(this.shortcutTooltip) {\n\t\tthis.inputNode.setAttribute(\"title\",this.shortcutTooltip);\n\t}\n\tif(this.shortcutPlaceholder) {\n\t\tthis.inputNode.setAttribute(\"placeholder\",this.shortcutPlaceholder);\n\t}\n\tif(this.shortcutAriaLabel) {\n\t\tthis.inputNode.setAttribute(\"aria-label\",this.shortcutAriaLabel);\n\t}\n\t// Assign the current shortcut\n\tthis.updateInputNode();\n\t// Add event handlers\n\t$tw.utils.addEventListeners(this.inputNode,[\n\t\t{name: \"keydown\", handlerObject: this, handlerMethod: \"handleKeydownEvent\"}\n\t]);\n\t// Link into the DOM\n\tparent.insertBefore(this.inputNode,nextSibling);\n\tthis.domNodes.push(this.inputNode);\n\t// Focus the input Node if focus === \"yes\" or focus === \"true\"\n\tif(this.shortcutFocus === \"yes\" || this.shortcutFocus === \"true\") {\n\t\tthis.focus();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditShortcutWidget.prototype.execute = function() {\n\tthis.shortcutTiddler = this.getAttribute(\"tiddler\");\n\tthis.shortcutField = this.getAttribute(\"field\");\n\tthis.shortcutIndex = this.getAttribute(\"index\");\n\tthis.shortcutPlaceholder = this.getAttribute(\"placeholder\");\n\tthis.shortcutDefault = this.getAttribute(\"default\",\"\");\n\tthis.shortcutClass = this.getAttribute(\"class\");\n\tthis.shortcutStyle = this.getAttribute(\"style\");\n\tthis.shortcutTooltip = this.getAttribute(\"tooltip\");\n\tthis.shortcutAriaLabel = this.getAttribute(\"aria-label\");\n\tthis.shortcutFocus = this.getAttribute(\"focus\");\n};\n\n/*\nUpdate the value of the input node\n*/\nEditShortcutWidget.prototype.updateInputNode = function() {\n\tif(this.shortcutField) {\n\t\tvar tiddler = this.wiki.getTiddler(this.shortcutTiddler);\n\t\tif(tiddler && $tw.utils.hop(tiddler.fields,this.shortcutField)) {\n\t\t\tthis.inputNode.value = tiddler.getFieldString(this.shortcutField);\n\t\t} else {\n\t\t\tthis.inputNode.value = this.shortcutDefault;\n\t\t}\n\t} else if(this.shortcutIndex) {\n\t\tthis.inputNode.value = this.wiki.extractTiddlerDataItem(this.shortcutTiddler,this.shortcutIndex,this.shortcutDefault);\n\t} else {\n\t\tthis.inputNode.value = this.wiki.getTiddlerText(this.shortcutTiddler,this.shortcutDefault);\n\t}\n};\n\n/*\nHandle a dom \"keydown\" event\n*/\nEditShortcutWidget.prototype.handleKeydownEvent = function(event) {\n\t// Ignore shift, ctrl, meta, alt\n\tif(event.keyCode && $tw.keyboardManager.getModifierKeys().indexOf(event.keyCode) === -1) {\n\t\t// Get the shortcut text representation\n\t\tvar value = $tw.keyboardManager.getPrintableShortcuts([{\n\t\t\tctrlKey: event.ctrlKey,\n\t\t\tshiftKey: event.shiftKey,\n\t\t\taltKey: event.altKey,\n\t\t\tmetaKey: event.metaKey,\n\t\t\tkeyCode: event.keyCode\n\t\t}]);\n\t\tif(value.length > 0) {\n\t\t\tthis.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,value[0]);\n\t\t}\n\t\t// Ignore the keydown if it was already handled\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn true;\t\t\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nfocus the input node\n*/\nEditShortcutWidget.prototype.focus = function() {\n\tif(this.inputNode.focus && this.inputNode.select) {\n\t\tthis.inputNode.focus();\n\t\tthis.inputNode.select();\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget needed re-rendering\n*/\nEditShortcutWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes[\"default\"] || changedAttributes[\"class\"] || changedAttributes.style || changedAttributes.tooltip || changedAttributes[\"aria-label\"] || changedAttributes.focus) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedTiddlers[this.shortcutTiddler]) {\n\t\tthis.updateInputNode();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports[\"edit-shortcut\"] = EditShortcutWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/edit-text.js": {
"title": "$:/core/modules/widgets/edit-text.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/edit-text.js\ntype: application/javascript\nmodule-type: widget\n\nEdit-text widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar editTextWidgetFactory = require(\"$:/core/modules/editor/factory.js\").editTextWidgetFactory,\n\tFramedEngine = require(\"$:/core/modules/editor/engines/framed.js\").FramedEngine,\n\tSimpleEngine = require(\"$:/core/modules/editor/engines/simple.js\").SimpleEngine;\n\nexports[\"edit-text\"] = editTextWidgetFactory(FramedEngine,SimpleEngine);\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/edit.js": {
"title": "$:/core/modules/widgets/edit.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/edit.js\ntype: application/javascript\nmodule-type: widget\n\nEdit widget is a meta-widget chooses the appropriate actual editting widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EditWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n// Mappings from content type to editor type are stored in tiddlers with this prefix\nvar EDITOR_MAPPING_PREFIX = \"$:/config/EditorTypeMappings/\";\n\n/*\nCompute the internal state of the widget\n*/\nEditWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.editTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.editField = this.getAttribute(\"field\",\"text\");\n\tthis.editIndex = this.getAttribute(\"index\");\n\tthis.editClass = this.getAttribute(\"class\");\n\tthis.editPlaceholder = this.getAttribute(\"placeholder\");\n\tthis.editTabIndex = this.getAttribute(\"tabindex\");\n\t// Choose the appropriate edit widget\n\tthis.editorType = this.getEditorType();\n\t// Make the child widgets\n\tthis.makeChildWidgets([{\n\t\ttype: \"edit-\" + this.editorType,\n\t\tattributes: {\n\t\t\ttiddler: {type: \"string\", value: this.editTitle},\n\t\t\tfield: {type: \"string\", value: this.editField},\n\t\t\tindex: {type: \"string\", value: this.editIndex},\n\t\t\t\"class\": {type: \"string\", value: this.editClass},\n\t\t\t\"placeholder\": {type: \"string\", value: this.editPlaceholder},\n\t\t\t\"tabindex\": {type: \"string\", value: this.editTabIndex}\n\t\t},\n\t\tchildren: this.parseTreeNode.children\n\t}]);\n};\n\nEditWidget.prototype.getEditorType = function() {\n\t// Get the content type of the thing we're editing\n\tvar type;\n\tif(this.editField === \"text\") {\n\t\tvar tiddler = this.wiki.getTiddler(this.editTitle);\n\t\tif(tiddler) {\n\t\t\ttype = tiddler.fields.type;\n\t\t}\n\t}\n\ttype = type || \"text/vnd.tiddlywiki\";\n\tvar editorType = this.wiki.getTiddlerText(EDITOR_MAPPING_PREFIX + type);\n\tif(!editorType) {\n\t\tvar typeInfo = $tw.config.contentTypeInfo[type];\n\t\tif(typeInfo && typeInfo.encoding === \"base64\") {\n\t\t\teditorType = \"binary\";\n\t\t} else {\n\t\t\teditorType = \"text\";\n\t\t}\n\t}\n\treturn editorType;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEditWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// Refresh if an attribute has changed, or the type associated with the target tiddler has changed\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.tabindex || (changedTiddlers[this.editTitle] && this.getEditorType() !== this.editorType)) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.edit = EditWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/element.js": {
"title": "$:/core/modules/widgets/element.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/element.js\ntype: application/javascript\nmodule-type: widget\n\nElement widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ElementWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nElementWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nElementWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Neuter blacklisted elements\n\tvar tag = this.parseTreeNode.tag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \"safe-\" + tag;\n\t}\n\t// Adjust headings by the current base level\n\tvar headingLevel = [\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"].indexOf(tag);\n\tif(headingLevel !== -1) {\n\t\tvar baseLevel = parseInt(this.getVariable(\"tv-adjust-heading-level\",\"0\"),10) || 0;\n\t\theadingLevel = Math.min(Math.max(headingLevel + 1 + baseLevel,1),6);\n\t\ttag = \"h\" + headingLevel;\n\t}\n\t// Create the DOM node\n\tvar domNode = this.document.createElementNS(this.namespace,tag);\n\tthis.assignAttributes(domNode,{excludeEventAttributes: true});\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nElementWidget.prototype.execute = function() {\n\t// Select the namespace for the tag\n\tvar tagNamespaces = {\n\t\t\tsvg: \"http://www.w3.org/2000/svg\",\n\t\t\tmath: \"http://www.w3.org/1998/Math/MathML\",\n\t\t\tbody: \"http://www.w3.org/1999/xhtml\"\n\t\t};\n\tthis.namespace = tagNamespaces[this.parseTreeNode.tag];\n\tif(this.namespace) {\n\t\tthis.setVariable(\"namespace\",this.namespace);\n\t} else {\n\t\tthis.namespace = this.getVariable(\"namespace\",{defaultValue: \"http://www.w3.org/1999/xhtml\"});\n\t}\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nElementWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\thasChangedAttributes = $tw.utils.count(changedAttributes) > 0;\n\tif(hasChangedAttributes) {\n\t\t// Update our attributes\n\t\tthis.assignAttributes(this.domNodes[0],{excludeEventAttributes: true});\n\t}\n\treturn this.refreshChildren(changedTiddlers) || hasChangedAttributes;\n};\n\nexports.element = ElementWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/encrypt.js": {
"title": "$:/core/modules/widgets/encrypt.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/encrypt.js\ntype: application/javascript\nmodule-type: widget\n\nEncrypt widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EncryptWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEncryptWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEncryptWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar textNode = this.document.createTextNode(this.encryptedText);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEncryptWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.filter = this.getAttribute(\"filter\",\"[!is[system]]\");\n\t// Encrypt the filtered tiddlers\n\tvar tiddlers = this.wiki.filterTiddlers(this.filter),\n\t\tjson = {},\n\t\tself = this;\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title),\n\t\t\tjsonTiddler = {};\n\t\tfor(var f in tiddler.fields) {\n\t\t\tjsonTiddler[f] = tiddler.getFieldString(f);\n\t\t}\n\t\tjson[title] = jsonTiddler;\n\t});\n\tthis.encryptedText = $tw.utils.htmlEncode($tw.crypto.encrypt(JSON.stringify(json)));\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEncryptWidget.prototype.refresh = function(changedTiddlers) {\n\t// We don't need to worry about refreshing because the encrypt widget isn't for interactive use\n\treturn false;\n};\n\nexports.encrypt = EncryptWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/entity.js": {
"title": "$:/core/modules/widgets/entity.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/entity.js\ntype: application/javascript\nmodule-type: widget\n\nHTML entity widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EntityWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEntityWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEntityWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tvar entityString = this.getAttribute(\"entity\",this.parseTreeNode.entity || \"\"),\n\t\ttextNode = this.document.createTextNode($tw.utils.entityDecode(entityString));\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEntityWidget.prototype.execute = function() {\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEntityWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.entity) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports.entity = EntityWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/fieldmangler.js": {
"title": "$:/core/modules/widgets/fieldmangler.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/fieldmangler.js\ntype: application/javascript\nmodule-type: widget\n\nField mangler widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar FieldManglerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-remove-field\", handler: \"handleRemoveFieldEvent\"},\n\t\t{type: \"tm-add-field\", handler: \"handleAddFieldEvent\"},\n\t\t{type: \"tm-remove-tag\", handler: \"handleRemoveTagEvent\"},\n\t\t{type: \"tm-add-tag\", handler: \"handleAddTagEvent\"}\n\t]);\n};\n\n/*\nInherit from the base widget class\n*/\nFieldManglerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nFieldManglerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nFieldManglerWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.mangleTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nFieldManglerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nFieldManglerWidget.prototype.handleRemoveFieldEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\tdeletion = {};\n\tdeletion[event.param] = undefined;\n\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,deletion));\n\treturn true;\n};\n\nFieldManglerWidget.prototype.handleAddFieldEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\taddition = this.wiki.getModificationFields(),\n\t\thadInvalidFieldName = false,\n\t\taddField = function(name,value) {\n\t\t\tvar trimmedName = name.toLowerCase().trim();\n\t\t\tif(!$tw.utils.isValidFieldName(trimmedName)) {\n\t\t\t\tif(!hadInvalidFieldName) {\n\t\t\t\t\talert($tw.language.getString(\n\t\t\t\t\t\t\"InvalidFieldName\",\n\t\t\t\t\t\t{variables:\n\t\t\t\t\t\t\t{fieldName: trimmedName}\n\t\t\t\t\t\t}\n\t\t\t\t\t));\n\t\t\t\t\thadInvalidFieldName = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!value && tiddler) {\n\t\t\t\t\tvalue = tiddler.fields[trimmedName];\n\t\t\t\t}\n\t\t\t\taddition[trimmedName] = value || \"\";\n\t\t\t}\n\t\t\treturn;\n\t\t};\n\taddition.title = this.mangleTitle;\n\tif(typeof event.param === \"string\") {\n\t\taddField(event.param,\"\");\n\t}\n\tif(typeof event.paramObject === \"object\") {\n\t\tfor(var name in event.paramObject) {\n\t\t\taddField(name,event.paramObject[name]);\n\t\t}\n\t}\n\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,addition));\n\treturn true;\n};\n\nFieldManglerWidget.prototype.handleRemoveTagEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\tmodification = this.wiki.getModificationFields();\n\tif(tiddler && tiddler.fields.tags) {\n\t\tvar p = tiddler.fields.tags.indexOf(event.param);\n\t\tif(p !== -1) {\n\t\t\tmodification.tags = (tiddler.fields.tags || []).slice(0);\n\t\t\tmodification.tags.splice(p,1);\n\t\t\tif(modification.tags.length === 0) {\n\t\t\t\tmodification.tags = undefined;\n\t\t\t}\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));\n\t\t}\n\t}\n\treturn true;\n};\n\nFieldManglerWidget.prototype.handleAddTagEvent = function(event) {\n\tvar tiddler = this.wiki.getTiddler(this.mangleTitle),\n\t\tmodification = this.wiki.getModificationFields();\n\tif(tiddler && typeof event.param === \"string\") {\n\t\tvar tag = event.param.trim();\n\t\tif(tag !== \"\") {\n\t\t\tmodification.tags = (tiddler.fields.tags || []).slice(0);\n\t\t\t$tw.utils.pushTop(modification.tags,tag);\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));\t\t\t\n\t\t}\n\t} else if(typeof event.param === \"string\" && event.param.trim() !== \"\" && this.mangleTitle.trim() !== \"\") {\n\t\tvar tag = [];\n\t\ttag.push(event.param.trim());\n\t\tthis.wiki.addTiddler(new $tw.Tiddler({title: this.mangleTitle, tags: tag},modification));\n\t}\n\treturn true;\n};\n\nexports.fieldmangler = FieldManglerWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/fields.js": {
"title": "$:/core/modules/widgets/fields.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/fields.js\ntype: application/javascript\nmodule-type: widget\n\nFields widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar FieldsWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nFieldsWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nFieldsWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar textNode = this.document.createTextNode(this.text);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nFieldsWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.tiddlerTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.template = this.getAttribute(\"template\");\n\tthis.exclude = this.getAttribute(\"exclude\");\n\tthis.stripTitlePrefix = this.getAttribute(\"stripTitlePrefix\",\"no\") === \"yes\";\n\t// Get the value to display\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle);\n\t// Get the exclusion list\n\tvar exclude;\n\tif(this.exclude) {\n\t\texclude = this.exclude.split(\" \");\n\t} else {\n\t\texclude = [\"text\"]; \n\t}\n\t// Compose the template\n\tvar text = [];\n\tif(this.template && tiddler) {\n\t\tvar fields = [];\n\t\tfor(var fieldName in tiddler.fields) {\n\t\t\tif(exclude.indexOf(fieldName) === -1) {\n\t\t\t\tfields.push(fieldName);\n\t\t\t}\n\t\t}\n\t\tfields.sort();\n\t\tfor(var f=0; f<fields.length; f++) {\n\t\t\tfieldName = fields[f];\n\t\t\tif(exclude.indexOf(fieldName) === -1) {\n\t\t\t\tvar row = this.template,\n\t\t\t\t\tvalue = tiddler.getFieldString(fieldName);\n\t\t\t\tif(this.stripTitlePrefix && fieldName === \"title\") {\n\t\t\t\t\tvar reStrip = /^\\{[^\\}]+\\}(.+)/mg,\n\t\t\t\t\t\treMatch = reStrip.exec(value);\n\t\t\t\t\tif(reMatch) {\n\t\t\t\t\t\tvalue = reMatch[1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trow = $tw.utils.replaceString(row,\"$name$\",fieldName);\n\t\t\t\trow = $tw.utils.replaceString(row,\"$value$\",value);\n\t\t\t\trow = $tw.utils.replaceString(row,\"$encoded_value$\",$tw.utils.htmlEncode(value));\n\t\t\t\ttext.push(row);\n\t\t\t}\n\t\t}\n\t}\n\tthis.text = text.join(\"\");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nFieldsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude || changedAttributes.stripTitlePrefix || changedTiddlers[this.tiddlerTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports.fields = FieldsWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/image.js": {
"title": "$:/core/modules/widgets/image.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/image.js\ntype: application/javascript\nmodule-type: widget\n\nThe image widget displays an image referenced with an external URI or with a local tiddler title.\n\n```\n<$image src=\"TiddlerTitle\" width=\"320\" height=\"400\" class=\"classnames\">\n```\n\nThe image source can be the title of an existing tiddler or the URL of an external image.\n\nExternal images always generate an HTML `<img>` tag.\n\nTiddlers that have a _canonical_uri field generate an HTML `<img>` tag with the src attribute containing the URI.\n\nTiddlers that contain image data generate an HTML `<img>` tag with the src attribute containing a base64 representation of the image.\n\nTiddlers that contain wikitext could be rendered to a DIV of the usual size of a tiddler, and then transformed to the size requested.\n\nThe width and height attributes are interpreted as a number of pixels, and do not need to include the \"px\" suffix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ImageWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nImageWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nImageWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\t// Determine what type of image it is\n\tvar tag = \"img\", src = \"\",\n\t\ttiddler = this.wiki.getTiddler(this.imageSource);\n\tif(!tiddler) {\n\t\t// The source isn't the title of a tiddler, so we'll assume it's a URL\n\t\tsrc = this.getVariable(\"tv-get-export-image-link\",{params: [{name: \"src\",value: this.imageSource}],defaultValue: this.imageSource});\n\t} else {\n\t\t// Check if it is an image tiddler\n\t\tif(this.wiki.isImageTiddler(this.imageSource)) {\n\t\t\tvar type = tiddler.fields.type,\n\t\t\t\ttext = tiddler.fields.text,\n\t\t\t\t_canonical_uri = tiddler.fields._canonical_uri;\n\t\t\t// If the tiddler has body text then it doesn't need to be lazily loaded\n\t\t\tif(text) {\n\t\t\t\t// Render the appropriate element for the image type\n\t\t\t\tswitch(type) {\n\t\t\t\t\tcase \"application/pdf\":\n\t\t\t\t\t\ttag = \"embed\";\n\t\t\t\t\t\tsrc = \"data:application/pdf;base64,\" + text;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"image/svg+xml\":\n\t\t\t\t\t\tsrc = \"data:image/svg+xml,\" + encodeURIComponent(text);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsrc = \"data:\" + type + \";base64,\" + text;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if(_canonical_uri) {\n\t\t\t\tswitch(type) {\n\t\t\t\t\tcase \"application/pdf\":\n\t\t\t\t\t\ttag = \"embed\";\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"image/svg+xml\":\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\t\n\t\t\t} else {\n\t\t\t\t// Just trigger loading of the tiddler\n\t\t\t\tthis.wiki.getTiddlerText(this.imageSource);\n\t\t\t}\n\t\t}\n\t}\n\t// Create the element and assign the attributes\n\tvar domNode = this.document.createElement(tag);\n\tdomNode.setAttribute(\"src\",src);\n\tif(this.imageClass) {\n\t\tdomNode.setAttribute(\"class\",this.imageClass);\t\t\n\t}\n\tif(this.imageWidth) {\n\t\tdomNode.setAttribute(\"width\",this.imageWidth);\n\t}\n\tif(this.imageHeight) {\n\t\tdomNode.setAttribute(\"height\",this.imageHeight);\n\t}\n\tif(this.imageTooltip) {\n\t\tdomNode.setAttribute(\"title\",this.imageTooltip);\t\t\n\t}\n\tif(this.imageAlt) {\n\t\tdomNode.setAttribute(\"alt\",this.imageAlt);\t\t\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nImageWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.imageSource = this.getAttribute(\"source\");\n\tthis.imageWidth = this.getAttribute(\"width\");\n\tthis.imageHeight = this.getAttribute(\"height\");\n\tthis.imageClass = this.getAttribute(\"class\");\n\tthis.imageTooltip = this.getAttribute(\"tooltip\");\n\tthis.imageAlt = this.getAttribute(\"alt\");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nImageWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.source || changedAttributes.width || changedAttributes.height || changedAttributes[\"class\"] || changedAttributes.tooltip || changedTiddlers[this.imageSource]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\t\n\t}\n};\n\nexports.image = ImageWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/importvariables.js": {
"title": "$:/core/modules/widgets/importvariables.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/importvariables.js\ntype: application/javascript\nmodule-type: widget\n\nImport variable definitions from other tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ImportVariablesWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nImportVariablesWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nImportVariablesWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nImportVariablesWidget.prototype.execute = function(tiddlerList) {\n\tvar self = this;\n\t// Get our parameters\n\tthis.filter = this.getAttribute(\"filter\");\n\t// Compute the filter\n\tthis.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this);\n\t// Accumulate the <$set> widgets from each tiddler\n\tvar widgetStackStart,widgetStackEnd;\n\tfunction addWidgetNode(widgetNode) {\n\t\tif(widgetNode) {\n\t\t\tif(!widgetStackStart && !widgetStackEnd) {\n\t\t\t\twidgetStackStart = widgetNode;\n\t\t\t\twidgetStackEnd = widgetNode;\n\t\t\t} else {\n\t\t\t\twidgetStackEnd.children = [widgetNode];\n\t\t\t\twidgetStackEnd = widgetNode;\n\t\t\t}\n\t\t}\n\t}\n\t$tw.utils.each(this.tiddlerList,function(title) {\n\t\tvar parser = self.wiki.parseTiddler(title);\n\t\tif(parser) {\n\t\t\tvar parseTreeNode = parser.tree[0];\n\t\t\twhile(parseTreeNode && parseTreeNode.type === \"set\") {\n\t\t\t\taddWidgetNode({\n\t\t\t\t\ttype: \"set\",\n\t\t\t\t\tattributes: parseTreeNode.attributes,\n\t\t\t\t\tparams: parseTreeNode.params,\n\t\t\t\t\tisMacroDefinition: parseTreeNode.isMacroDefinition\n\t\t\t\t});\n\t\t\t\tparseTreeNode = parseTreeNode.children[0];\n\t\t\t}\n\t\t} \n\t});\n\t// Add our own children to the end of the pile\n\tvar parseTreeNodes;\n\tif(widgetStackStart && widgetStackEnd) {\n\t\tparseTreeNodes = [widgetStackStart];\n\t\twidgetStackEnd.children = this.parseTreeNode.children;\n\t} else {\n\t\tparseTreeNodes = this.parseTreeNode.children;\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets(parseTreeNodes);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nImportVariablesWidget.prototype.refresh = function(changedTiddlers) {\n\t// Recompute our attributes and the filter list\n\tvar changedAttributes = this.computeAttributes(),\n\t\ttiddlerList = this.wiki.filterTiddlers(this.getAttribute(\"filter\"),this);\n\t// Refresh if the filter has changed, or the list of tiddlers has changed, or any of the tiddlers in the list has changed\n\tfunction haveListedTiddlersChanged() {\n\t\tvar changed = false;\n\t\ttiddlerList.forEach(function(title) {\n\t\t\tif(changedTiddlers[title]) {\n\t\t\t\tchanged = true;\n\t\t\t}\n\t\t});\n\t\treturn changed;\n\t}\n\tif(changedAttributes.filter || !$tw.utils.isArrayEqual(this.tiddlerList,tiddlerList) || haveListedTiddlersChanged()) {\n\t\t// Compute the filter\n\t\tthis.removeChildDomNodes();\n\t\tthis.execute(tiddlerList);\n\t\tthis.renderChildren(this.parentDomNode,this.findNextSiblingDomNode());\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nexports.importvariables = ImportVariablesWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/keyboard.js": {
"title": "$:/core/modules/widgets/keyboard.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/keyboard.js\ntype: application/javascript\nmodule-type: widget\n\nKeyboard shortcut widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar KeyboardWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nKeyboardWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nKeyboardWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar tag = this.parseTreeNode.isBlock ? \"div\" : \"span\";\n\tif(this.tag && $tw.config.htmlUnsafeElements.indexOf(this.tag) === -1) {\n\t\ttag = this.tag;\n\t}\n\t// Create element\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = (this[\"class\"] || \"\").split(\" \");\n\tclasses.push(\"tc-keyboard\");\n\tdomNode.className = classes.join(\" \");\n\t// Add a keyboard event handler\n\tdomNode.addEventListener(\"keydown\",function (event) {\n\t\tif($tw.keyboardManager.checkKeyDescriptors(event,self.keyInfoArray)) {\n\t\t\tself.invokeActions(self,event);\n\t\t\tif(self.actions) {\n\t\t\t\tself.invokeActionString(self.actions,self,event);\n\t\t\t}\n\t\t\tself.dispatchMessage(event);\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nKeyboardWidget.prototype.dispatchMessage = function(event) {\n\tthis.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(\"currentTiddler\")});\n};\n\n/*\nCompute the internal state of the widget\n*/\nKeyboardWidget.prototype.execute = function() {\n\tvar self = this;\n\t// Get attributes\n\tthis.actions = this.getAttribute(\"actions\",\"\");\n\tthis.message = this.getAttribute(\"message\",\"\");\n\tthis.param = this.getAttribute(\"param\",\"\");\n\tthis.key = this.getAttribute(\"key\",\"\");\n\tthis.tag = this.getAttribute(\"tag\",\"\");\n\tthis.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tif(this.key.substr(0,2) === \"((\" && this.key.substr(-2,2) === \"))\") {\n\t\tthis.shortcutTiddlers = [];\n\t\tvar name = this.key.substring(2,this.key.length -2);\n\t\t$tw.utils.each($tw.keyboardManager.lookupNames,function(platformDescriptor) {\n\t\t\tself.shortcutTiddlers.push(\"$:/config/\" + platformDescriptor + \"/\" + name);\n\t\t});\n\t}\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nKeyboardWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.message || changedAttributes.param || changedAttributes.key || changedAttributes[\"class\"] || changedAttributes.tag) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\t// Update the keyInfoArray if one of its shortcut-config-tiddlers has changed\n\tif(this.shortcutTiddlers && $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers)) {\n\t\tthis.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.keyboard = KeyboardWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/link.js": {
"title": "$:/core/modules/widgets/link.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/link.js\ntype: application/javascript\nmodule-type: widget\n\nLink widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar LinkWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nLinkWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nLinkWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Get the value of the tv-wikilinks configuration macro\n\tvar wikiLinksMacro = this.getVariable(\"tv-wikilinks\"),\n\t\tuseWikiLinks = wikiLinksMacro ? (wikiLinksMacro.trim() !== \"no\") : true,\n\t\tmissingLinksEnabled = !(this.hideMissingLinks && this.isMissing && !this.isShadow);\n\t// Render the link if required\n\tif(useWikiLinks && missingLinksEnabled) {\n\t\tthis.renderLink(parent,nextSibling);\n\t} else {\n\t\t// Just insert the link text\n\t\tvar domNode = this.document.createElement(\"span\");\n\t\tparent.insertBefore(domNode,nextSibling);\n\t\tthis.renderChildren(domNode,null);\n\t\tthis.domNodes.push(domNode);\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nLinkWidget.prototype.renderLink = function(parent,nextSibling) {\n\tvar self = this;\n\t// Sanitise the specified tag\n\tvar tag = this.linkTag;\n\tif($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {\n\t\ttag = \"a\";\n\t}\n\t// Create our element\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = [];\n\tif(this.overrideClasses === undefined) {\n\t\tclasses.push(\"tc-tiddlylink\");\n\t\tif(this.isShadow) {\n\t\t\tclasses.push(\"tc-tiddlylink-shadow\");\n\t\t}\n\t\tif(this.isMissing && !this.isShadow) {\n\t\t\tclasses.push(\"tc-tiddlylink-missing\");\n\t\t} else {\n\t\t\tif(!this.isMissing) {\n\t\t\t\tclasses.push(\"tc-tiddlylink-resolves\");\n\t\t\t}\n\t\t}\n\t\tif(this.linkClasses) {\n\t\t\tclasses.push(this.linkClasses);\t\t\t\n\t\t}\n\t} else if(this.overrideClasses !== \"\") {\n\t\tclasses.push(this.overrideClasses)\n\t}\n\tif(classes.length > 0) {\n\t\tdomNode.setAttribute(\"class\",classes.join(\" \"));\n\t}\n\t// Set an href\n\tvar wikilinkTransformFilter = this.getVariable(\"tv-filter-export-link\"),\n\t\twikiLinkText;\n\tif(wikilinkTransformFilter) {\n\t\t// Use the filter to construct the href\n\t\twikiLinkText = this.wiki.filterTiddlers(wikilinkTransformFilter,this,function(iterator) {\n\t\t\titerator(self.wiki.getTiddler(self.to),self.to)\n\t\t})[0];\n\t} else {\n\t\t// Expand the tv-wikilink-template variable to construct the href\n\t\tvar wikiLinkTemplateMacro = this.getVariable(\"tv-wikilink-template\"),\n\t\t\twikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : \"#$uri_encoded$\";\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkTemplate,\"$uri_encoded$\",encodeURIComponent(this.to));\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkText,\"$uri_doubleencoded$\",encodeURIComponent(encodeURIComponent(this.to)));\n\t}\n\t// Override with the value of tv-get-export-link if defined\n\twikiLinkText = this.getVariable(\"tv-get-export-link\",{params: [{name: \"to\",value: this.to}],defaultValue: wikiLinkText});\n\tif(tag === \"a\") {\n\t\tdomNode.setAttribute(\"href\",wikiLinkText);\n\t}\n\t// Set the tabindex\n\tif(this.tabIndex) {\n\t\tdomNode.setAttribute(\"tabindex\",this.tabIndex);\n\t}\n\t// Set the tooltip\n\t// HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to \"<$transclude field='tooltip'><$transclude field='title'/></$transclude>\"\n\tvar tooltipWikiText = this.tooltip || this.getVariable(\"tv-wikilink-tooltip\");\n\tif(tooltipWikiText) {\n\t\tvar tooltipText = this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",tooltipWikiText,{\n\t\t\t\tparseAsInline: true,\n\t\t\t\tvariables: {\n\t\t\t\t\tcurrentTiddler: this.to\n\t\t\t\t},\n\t\t\t\tparentWidget: this\n\t\t\t});\n\t\tdomNode.setAttribute(\"title\",tooltipText);\n\t}\n\tif(this[\"aria-label\"]) {\n\t\tdomNode.setAttribute(\"aria-label\",this[\"aria-label\"]);\n\t}\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"click\", handlerObject: this, handlerMethod: \"handleClickEvent\"},\n\t]);\n\t// Make the link draggable if required\n\tif(this.draggable === \"yes\") {\n\t\t$tw.utils.makeDraggable({\n\t\t\tdomNode: domNode,\n\t\t\tdragTiddlerFn: function() {return self.to;},\n\t\t\twidget: this\n\t\t});\n\t}\n\t// Insert the link into the DOM and render any children\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nLinkWidget.prototype.handleClickEvent = function(event) {\n\t// Send the click on its way as a navigate event\n\tvar bounds = this.domNodes[0].getBoundingClientRect();\n\tthis.dispatchEvent({\n\t\ttype: \"tm-navigate\",\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tnavigateFromNode: this,\n\t\tnavigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),\n\t\tmetaKey: event.metaKey,\n\t\tctrlKey: event.ctrlKey,\n\t\taltKey: event.altKey,\n\t\tshiftKey: event.shiftKey\n\t});\n\tif(this.domNodes[0].hasAttribute(\"href\")) {\n\t\tevent.preventDefault();\n\t}\n\tevent.stopPropagation();\n\treturn false;\n};\n\n/*\nCompute the internal state of the widget\n*/\nLinkWidget.prototype.execute = function() {\n\t// Pick up our attributes\n\tthis.to = this.getAttribute(\"to\",this.getVariable(\"currentTiddler\"));\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis[\"aria-label\"] = this.getAttribute(\"aria-label\");\n\tthis.linkClasses = this.getAttribute(\"class\");\n\tthis.overrideClasses = this.getAttribute(\"overrideClass\");\n\tthis.tabIndex = this.getAttribute(\"tabindex\");\n\tthis.draggable = this.getAttribute(\"draggable\",\"yes\");\n\tthis.linkTag = this.getAttribute(\"tag\",\"a\");\n\t// Determine the link characteristics\n\tthis.isMissing = !this.wiki.tiddlerExists(this.to);\n\tthis.isShadow = this.wiki.isShadowTiddler(this.to);\n\tthis.hideMissingLinks = (this.getVariable(\"tv-show-missing-links\") || \"yes\") === \"no\";\n\t// Make the child widgets\n\tvar templateTree;\n\tif(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {\n\t\ttemplateTree = this.parseTreeNode.children;\n\t} else {\n\t\t// Default template is a link to the title\n\t\ttemplateTree = [{type: \"text\", text: this.to}];\n\t}\n\tthis.makeChildWidgets(templateTree);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nLinkWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.to || changedTiddlers[this.to] || changedAttributes[\"aria-label\"] || changedAttributes.tooltip) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.link = LinkWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/linkcatcher.js": {
"title": "$:/core/modules/widgets/linkcatcher.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/linkcatcher.js\ntype: application/javascript\nmodule-type: widget\n\nLinkcatcher widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar LinkCatcherWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-navigate\", handler: \"handleNavigateEvent\"}\n\t]);\n};\n\n/*\nInherit from the base widget class\n*/\nLinkCatcherWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nLinkCatcherWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nLinkCatcherWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.catchTo = this.getAttribute(\"to\");\n\tthis.catchMessage = this.getAttribute(\"message\");\n\tthis.catchSet = this.getAttribute(\"set\");\n\tthis.catchSetTo = this.getAttribute(\"setTo\");\n\tthis.catchActions = this.getAttribute(\"actions\");\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n\t// When executing actions we avoid trapping navigate events, so that we don't trigger ourselves recursively\n\tthis.executingActions = false;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nLinkCatcherWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.to || changedAttributes.message || changedAttributes.set || changedAttributes.setTo) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\n/*\nHandle a tm-navigate event\n*/\nLinkCatcherWidget.prototype.handleNavigateEvent = function(event) {\n\tif(!this.executingActions) {\n\t\t// Execute the actions\n\t\tif(this.catchTo) {\n\t\t\tthis.wiki.setTextReference(this.catchTo,event.navigateTo,this.getVariable(\"currentTiddler\"));\n\t\t}\n\t\tif(this.catchMessage && this.parentWidget) {\n\t\t\tthis.parentWidget.dispatchEvent({\n\t\t\t\ttype: this.catchMessage,\n\t\t\t\tparam: event.navigateTo,\n\t\t\t\tnavigateTo: event.navigateTo\n\t\t\t});\n\t\t}\n\t\tif(this.catchSet) {\n\t\t\tvar tiddler = this.wiki.getTiddler(this.catchSet);\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.catchSet, text: this.catchSetTo}));\n\t\t}\n\t\tif(this.catchActions) {\n\t\t\tthis.executingActions = true;\n\t\t\tthis.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo});\n\t\t\tthis.executingActions = false;\n\t\t}\n\t} else {\n\t\t// This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent\n\t\tthis.parentWidget.dispatchEvent({\n\t\t\ttype: \"tm-navigate\",\n\t\t\tparam: event.navigateTo,\n\t\t\tnavigateTo: event.navigateTo\n\t\t});\n\t}\n\treturn false;\n};\n\nexports.linkcatcher = LinkCatcherWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/list.js": {
"title": "$:/core/modules/widgets/list.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/list.js\ntype: application/javascript\nmodule-type: widget\n\nList and list item widgets\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\n/*\nThe list widget creates list element sub-widgets that reach back into the list widget for their configuration\n*/\n\nvar ListWidget = function(parseTreeNode,options) {\n\t// Initialise the storyviews if they've not been done already\n\tif(!this.storyViews) {\n\t\tListWidget.prototype.storyViews = {};\n\t\t$tw.modules.applyMethods(\"storyview\",this.storyViews);\n\t}\n\t// Main initialisation inherited from widget.js\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nListWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nListWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n\t// Construct the storyview\n\tvar StoryView = this.storyViews[this.storyViewName];\n\tif(this.storyViewName && !StoryView) {\n\t\tStoryView = this.storyViews[\"classic\"];\n\t}\n\tif(StoryView && !this.document.isTiddlyWikiFakeDom) {\n\t\tthis.storyview = new StoryView(this);\n\t} else {\n\t\tthis.storyview = null;\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nListWidget.prototype.execute = function() {\n\t// Get our attributes\n\tthis.template = this.getAttribute(\"template\");\n\tthis.editTemplate = this.getAttribute(\"editTemplate\");\n\tthis.variableName = this.getAttribute(\"variable\",\"currentTiddler\");\n\tthis.storyViewName = this.getAttribute(\"storyview\");\n\tthis.historyTitle = this.getAttribute(\"history\");\n\t// Compose the list elements\n\tthis.list = this.getTiddlerList();\n\tvar members = [],\n\t\tself = this;\n\t// Check for an empty list\n\tif(this.list.length === 0) {\n\t\tmembers = this.getEmptyMessage();\n\t} else {\n\t\t$tw.utils.each(this.list,function(title,index) {\n\t\t\tmembers.push(self.makeItemTemplate(title));\n\t\t});\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets(members);\n\t// Clear the last history\n\tthis.history = [];\n};\n\nListWidget.prototype.getTiddlerList = function() {\n\tvar defaultFilter = \"[!is[system]sort[title]]\";\n\treturn this.wiki.filterTiddlers(this.getAttribute(\"filter\",defaultFilter),this);\n};\n\nListWidget.prototype.getEmptyMessage = function() {\n\tvar emptyMessage = this.getAttribute(\"emptyMessage\",\"\"),\n\t\tparser = this.wiki.parseText(\"text/vnd.tiddlywiki\",emptyMessage,{parseAsInline: true});\n\tif(parser) {\n\t\treturn parser.tree;\n\t} else {\n\t\treturn [];\n\t}\n};\n\n/*\nCompose the template for a list item\n*/\nListWidget.prototype.makeItemTemplate = function(title) {\n\t// Check if the tiddler is a draft\n\tvar tiddler = this.wiki.getTiddler(title),\n\t\tisDraft = tiddler && tiddler.hasField(\"draft.of\"),\n\t\ttemplate = this.template,\n\t\ttemplateTree;\n\tif(isDraft && this.editTemplate) {\n\t\ttemplate = this.editTemplate;\n\t}\n\t// Compose the transclusion of the template\n\tif(template) {\n\t\ttemplateTree = [{type: \"transclude\", attributes: {tiddler: {type: \"string\", value: template}}}];\n\t} else {\n\t\tif(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {\n\t\t\ttemplateTree = this.parseTreeNode.children;\n\t\t} else {\n\t\t\t// Default template is a link to the title\n\t\t\ttemplateTree = [{type: \"element\", tag: this.parseTreeNode.isBlock ? \"div\" : \"span\", children: [{type: \"link\", attributes: {to: {type: \"string\", value: title}}, children: [\n\t\t\t\t\t{type: \"text\", text: title}\n\t\t\t]}]}];\n\t\t}\n\t}\n\t// Return the list item\n\treturn {type: \"listitem\", itemTitle: title, variableName: this.variableName, children: templateTree};\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nListWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\tresult;\n\t// Call the storyview\n\tif(this.storyview && this.storyview.refreshStart) {\n\t\tthis.storyview.refreshStart(changedTiddlers,changedAttributes);\n\t}\n\t// Completely refresh if any of our attributes have changed\n\tif(changedAttributes.filter || changedAttributes.template || changedAttributes.editTemplate || changedAttributes.emptyMessage || changedAttributes.storyview || changedAttributes.history) {\n\t\tthis.refreshSelf();\n\t\tresult = true;\n\t} else {\n\t\t// Handle any changes to the list\n\t\tresult = this.handleListChanges(changedTiddlers);\n\t\t// Handle any changes to the history stack\n\t\tif(this.historyTitle && changedTiddlers[this.historyTitle]) {\n\t\t\tthis.handleHistoryChanges();\n\t\t}\n\t}\n\t// Call the storyview\n\tif(this.storyview && this.storyview.refreshEnd) {\n\t\tthis.storyview.refreshEnd(changedTiddlers,changedAttributes);\n\t}\n\treturn result;\n};\n\n/*\nHandle any changes to the history list\n*/\nListWidget.prototype.handleHistoryChanges = function() {\n\t// Get the history data\n\tvar newHistory = this.wiki.getTiddlerDataCached(this.historyTitle,[]);\n\t// Ignore any entries of the history that match the previous history\n\tvar entry = 0;\n\twhile(entry < newHistory.length && entry < this.history.length && newHistory[entry].title === this.history[entry].title) {\n\t\tentry++;\n\t}\n\t// Navigate forwards to each of the new tiddlers\n\twhile(entry < newHistory.length) {\n\t\tif(this.storyview && this.storyview.navigateTo) {\n\t\t\tthis.storyview.navigateTo(newHistory[entry]);\n\t\t}\n\t\tentry++;\n\t}\n\t// Update the history\n\tthis.history = newHistory;\n};\n\n/*\nProcess any changes to the list\n*/\nListWidget.prototype.handleListChanges = function(changedTiddlers) {\n\t// Get the new list\n\tvar prevList = this.list;\n\tthis.list = this.getTiddlerList();\n\t// Check for an empty list\n\tif(this.list.length === 0) {\n\t\t// Check if it was empty before\n\t\tif(prevList.length === 0) {\n\t\t\t// If so, just refresh the empty message\n\t\t\treturn this.refreshChildren(changedTiddlers);\n\t\t} else {\n\t\t\t// Replace the previous content with the empty message\n\t\t\tfor(t=this.children.length-1; t>=0; t--) {\n\t\t\t\tthis.removeListItem(t);\n\t\t\t}\n\t\t\tvar nextSibling = this.findNextSiblingDomNode();\n\t\t\tthis.makeChildWidgets(this.getEmptyMessage());\n\t\t\tthis.renderChildren(this.parentDomNode,nextSibling);\n\t\t\treturn true;\n\t\t}\n\t} else {\n\t\t// If the list was empty then we need to remove the empty message\n\t\tif(prevList.length === 0) {\n\t\t\tthis.removeChildDomNodes();\n\t\t\tthis.children = [];\n\t\t}\n\t\t// Cycle through the list, inserting and removing list items as needed\n\t\tvar hasRefreshed = false;\n\t\tfor(var t=0; t<this.list.length; t++) {\n\t\t\tvar index = this.findListItem(t,this.list[t]);\n\t\t\tif(index === undefined) {\n\t\t\t\t// The list item must be inserted\n\t\t\t\tthis.insertListItem(t,this.list[t]);\n\t\t\t\thasRefreshed = true;\n\t\t\t} else {\n\t\t\t\t// There are intervening list items that must be removed\n\t\t\t\tfor(var n=index-1; n>=t; n--) {\n\t\t\t\t\tthis.removeListItem(n);\n\t\t\t\t\thasRefreshed = true;\n\t\t\t\t}\n\t\t\t\t// Refresh the item we're reusing\n\t\t\t\tvar refreshed = this.children[t].refresh(changedTiddlers);\n\t\t\t\thasRefreshed = hasRefreshed || refreshed;\n\t\t\t}\n\t\t}\n\t\t// Remove any left over items\n\t\tfor(t=this.children.length-1; t>=this.list.length; t--) {\n\t\t\tthis.removeListItem(t);\n\t\t\thasRefreshed = true;\n\t\t}\n\t\treturn hasRefreshed;\n\t}\n};\n\n/*\nFind the list item with a given title, starting from a specified position\n*/\nListWidget.prototype.findListItem = function(startIndex,title) {\n\twhile(startIndex < this.children.length) {\n\t\tif(this.children[startIndex].parseTreeNode.itemTitle === title) {\n\t\t\treturn startIndex;\n\t\t}\n\t\tstartIndex++;\n\t}\n\treturn undefined;\n};\n\n/*\nInsert a new list item at the specified index\n*/\nListWidget.prototype.insertListItem = function(index,title) {\n\t// Create, insert and render the new child widgets\n\tvar widget = this.makeChildWidget(this.makeItemTemplate(title));\n\twidget.parentDomNode = this.parentDomNode; // Hack to enable findNextSiblingDomNode() to work\n\tthis.children.splice(index,0,widget);\n\tvar nextSibling = widget.findNextSiblingDomNode();\n\twidget.render(this.parentDomNode,nextSibling);\n\t// Animate the insertion if required\n\tif(this.storyview && this.storyview.insert) {\n\t\tthis.storyview.insert(widget);\n\t}\n\treturn true;\n};\n\n/*\nRemove the specified list item\n*/\nListWidget.prototype.removeListItem = function(index) {\n\tvar widget = this.children[index];\n\t// Animate the removal if required\n\tif(this.storyview && this.storyview.remove) {\n\t\tthis.storyview.remove(widget);\n\t} else {\n\t\twidget.removeChildDomNodes();\n\t}\n\t// Remove the child widget\n\tthis.children.splice(index,1);\n};\n\nexports.list = ListWidget;\n\nvar ListItemWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nListItemWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nListItemWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nListItemWidget.prototype.execute = function() {\n\t// Set the current list item title\n\tthis.setVariable(this.parseTreeNode.variableName,this.parseTreeNode.itemTitle);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nListItemWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.listitem = ListItemWidget;\n\n})();",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/macrocall.js": {
"title": "$:/core/modules/widgets/macrocall.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/macrocall.js\ntype: application/javascript\nmodule-type: widget\n\nMacrocall widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar MacroCallWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nMacroCallWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nMacroCallWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nMacroCallWidget.prototype.execute = function() {\n\t// Get the parse type if specified\n\tthis.parseType = this.getAttribute(\"$type\",\"text/vnd.tiddlywiki\");\n\tthis.renderOutput = this.getAttribute(\"$output\",\"text/html\");\n\t// Merge together the parameters specified in the parse tree with the specified attributes\n\tvar params = this.parseTreeNode.params ? this.parseTreeNode.params.slice(0) : [];\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \"$\") {\n\t\t\tparams.push({name: name, value: attribute});\t\t\t\n\t\t}\n\t});\n\t// Get the macro value\n\tvar macroName = this.parseTreeNode.name || this.getAttribute(\"$name\"),\n\t\tvariableInfo = this.getVariableInfo(macroName,{params: params}),\n\t\ttext = variableInfo.text,\n\t\tparseTreeNodes;\n\t// Are we rendering to HTML?\n\tif(this.renderOutput === \"text/html\") {\n\t\t// If so we'll return the parsed macro\n\t\tvar parser = this.wiki.parseText(this.parseType,text,\n\t\t\t\t\t\t\t{parseAsInline: !this.parseTreeNode.isBlock});\n\t\tparseTreeNodes = parser ? parser.tree : [];\n\t\t// Wrap the parse tree in a vars widget assigning the parameters to variables named \"__paramname__\"\n\t\tvar attributes = {};\n\t\t$tw.utils.each(variableInfo.params,function(param) {\n\t\t\tvar name = \"__\" + param.name + \"__\";\n\t\t\tattributes[name] = {\n\t\t\t\tname: name,\n\t\t\t\ttype: \"string\",\n\t\t\t\tvalue: param.value\n\t\t\t};\n\t\t});\n\t\tparseTreeNodes = [{\n\t\t\ttype: \"vars\",\n\t\t\tattributes: attributes,\n\t\t\tchildren: parseTreeNodes\n\t\t}];\n\t} else {\n\t\t// Otherwise, we'll render the text\n\t\tvar plainText = this.wiki.renderText(\"text/plain\",this.parseType,text,{parentWidget: this});\n\t\tparseTreeNodes = [{type: \"text\", text: plainText}];\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets(parseTreeNodes);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nMacroCallWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) > 0) {\n\t\t// Rerender ourselves\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.macrocall = MacroCallWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/navigator.js": {
"title": "$:/core/modules/widgets/navigator.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/navigator.js\ntype: application/javascript\nmodule-type: widget\n\nNavigator widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar IMPORT_TITLE = \"$:/Import\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar NavigatorWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-navigate\", handler: \"handleNavigateEvent\"},\n\t\t{type: \"tm-edit-tiddler\", handler: \"handleEditTiddlerEvent\"},\n\t\t{type: \"tm-delete-tiddler\", handler: \"handleDeleteTiddlerEvent\"},\n\t\t{type: \"tm-save-tiddler\", handler: \"handleSaveTiddlerEvent\"},\n\t\t{type: \"tm-cancel-tiddler\", handler: \"handleCancelTiddlerEvent\"},\n\t\t{type: \"tm-close-tiddler\", handler: \"handleCloseTiddlerEvent\"},\n\t\t{type: \"tm-close-all-tiddlers\", handler: \"handleCloseAllTiddlersEvent\"},\n\t\t{type: \"tm-close-other-tiddlers\", handler: \"handleCloseOtherTiddlersEvent\"},\n\t\t{type: \"tm-new-tiddler\", handler: \"handleNewTiddlerEvent\"},\n\t\t{type: \"tm-import-tiddlers\", handler: \"handleImportTiddlersEvent\"},\n\t\t{type: \"tm-perform-import\", handler: \"handlePerformImportEvent\"},\n\t\t{type: \"tm-fold-tiddler\", handler: \"handleFoldTiddlerEvent\"},\n\t\t{type: \"tm-fold-other-tiddlers\", handler: \"handleFoldOtherTiddlersEvent\"},\n\t\t{type: \"tm-fold-all-tiddlers\", handler: \"handleFoldAllTiddlersEvent\"},\n\t\t{type: \"tm-unfold-all-tiddlers\", handler: \"handleUnfoldAllTiddlersEvent\"},\n\t\t{type: \"tm-rename-tiddler\", handler: \"handleRenameTiddlerEvent\"}\n\t]);\n};\n\n/*\nInherit from the base widget class\n*/\nNavigatorWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nNavigatorWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nNavigatorWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.storyTitle = this.getAttribute(\"story\");\n\tthis.historyTitle = this.getAttribute(\"history\");\n\tthis.setVariable(\"tv-story-list\",this.storyTitle);\n\tthis.setVariable(\"tv-history-list\",this.historyTitle);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nNavigatorWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.story || changedAttributes.history) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nNavigatorWidget.prototype.getStoryList = function() {\n\treturn this.storyTitle ? this.wiki.getTiddlerList(this.storyTitle) : null;\n};\n\nNavigatorWidget.prototype.saveStoryList = function(storyList) {\n\tif(this.storyTitle) {\n\t\tvar storyTiddler = this.wiki.getTiddler(this.storyTitle);\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\t\t{title: this.storyTitle},\n\t\t\tstoryTiddler,\n\t\t\t{list: storyList}\n\t\t));\t\t\n\t}\n};\n\nNavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) {\n\tif(storyList) {\n\t\tvar p = storyList.indexOf(title);\n\t\twhile(p !== -1) {\n\t\t\tstoryList.splice(p,1);\n\t\t\tp = storyList.indexOf(title);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) {\n\tif(storyList) {\n\t\tvar pos = storyList.indexOf(oldTitle);\n\t\tif(pos !== -1) {\n\t\t\tstoryList[pos] = newTitle;\n\t\t\tdo {\n\t\t\t\tpos = storyList.indexOf(oldTitle,pos + 1);\n\t\t\t\tif(pos !== -1) {\n\t\t\t\t\tstoryList.splice(pos,1);\n\t\t\t\t}\n\t\t\t} while(pos !== -1);\n\t\t} else {\n\t\t\tstoryList.splice(0,0,newTitle);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.addToStory = function(title,fromTitle) {\n\tif(this.storyTitle) {\n\t\tthis.wiki.addToStory(title,fromTitle,this.storyTitle,{\n\t\t\topenLinkFromInsideRiver: this.getAttribute(\"openLinkFromInsideRiver\",\"top\"),\n\t\t\topenLinkFromOutsideRiver: this.getAttribute(\"openLinkFromOutsideRiver\",\"top\")\n\t\t});\n\t}\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\n*/\nNavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {\n\tthis.wiki.addToHistory(title,fromPageRect,this.historyTitle);\n};\n\n/*\nHandle a tm-navigate event\n*/\nNavigatorWidget.prototype.handleNavigateEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\"th-navigating\",event);\n\tif(event.navigateTo) {\n\t\tthis.addToStory(event.navigateTo,event.navigateFromTitle);\n\t\tif(!event.navigateSuppressNavigation) {\n\t\t\tthis.addToHistory(event.navigateTo,event.navigateFromClientRect);\n\t\t}\n\t}\n\treturn false;\n};\n\n// Close a specified tiddler\nNavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle,\n\t\tstoryList = this.getStoryList();\n\t// Look for tiddlers with this title to close\n\tthis.removeTitleFromStory(storyList,title);\n\tthis.saveStoryList(storyList);\n\treturn false;\n};\n\n// Close all tiddlers\nNavigatorWidget.prototype.handleCloseAllTiddlersEvent = function(event) {\n\tthis.saveStoryList([]);\n\treturn false;\n};\n\n// Close other tiddlers\nNavigatorWidget.prototype.handleCloseOtherTiddlersEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle;\n\tthis.saveStoryList([title]);\n\treturn false;\n};\n\n// Place a tiddler in edit mode\nNavigatorWidget.prototype.handleEditTiddlerEvent = function(event) {\n\tvar editTiddler = $tw.hooks.invokeHook(\"th-editing-tiddler\",event);\n\tif(!editTiddler) {\n\t\treturn false;\n\t}\n\tvar self = this;\n\tfunction isUnmodifiedShadow(title) {\n\t\treturn self.wiki.isShadowTiddler(title) && !self.wiki.tiddlerExists(title);\n\t}\n\tfunction confirmEditShadow(title) {\n\t\treturn confirm($tw.language.getString(\n\t\t\t\"ConfirmEditShadowTiddler\",\n\t\t\t{variables:\n\t\t\t\t{title: title}\n\t\t\t}\n\t\t));\n\t}\n\tvar title = event.param || event.tiddlerTitle;\n\tif(isUnmodifiedShadow(title) && !confirmEditShadow(title)) {\n\t\treturn false;\n\t}\n\t// Replace the specified tiddler with a draft in edit mode\n\tvar draftTiddler = this.makeDraftTiddler(title);\n\t// Update the story and history if required\n\tif(!event.paramObject || event.paramObject.suppressNavigation !== \"yes\") {\n\t\tvar draftTitle = draftTiddler.fields.title,\n\t\t\tstoryList = this.getStoryList();\n\t\tthis.removeTitleFromStory(storyList,draftTitle);\n\t\tthis.replaceFirstTitleInStory(storyList,title,draftTitle);\n\t\tthis.addToHistory(draftTitle,event.navigateFromClientRect);\n\t\tthis.saveStoryList(storyList);\n\t\treturn false;\n\t}\n};\n\n// Delete a tiddler\nNavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {\n\t// Get the tiddler we're deleting\n\tvar title = event.param || event.tiddlerTitle,\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tstoryList = this.getStoryList(),\n\t\toriginalTitle = tiddler ? tiddler.fields[\"draft.of\"] : \"\",\n\t\toriginalTiddler = originalTitle ? this.wiki.getTiddler(originalTitle) : undefined,\n\t\tconfirmationTitle;\n\tif(!tiddler) {\n\t\treturn false;\n\t}\n\t// Check if the tiddler we're deleting is in draft mode\n\tif(originalTitle) {\n\t\t// If so, we'll prompt for confirmation referencing the original tiddler\n\t\tconfirmationTitle = originalTitle;\n\t} else {\n\t\t// If not a draft, then prompt for confirmation referencing the specified tiddler\n\t\tconfirmationTitle = title;\n\t}\n\t// Seek confirmation\n\tif((this.wiki.getTiddler(originalTitle) || (tiddler.fields.text || \"\") !== \"\") && !confirm($tw.language.getString(\n\t\t\t\t\"ConfirmDeleteTiddler\",\n\t\t\t\t{variables:\n\t\t\t\t\t{title: confirmationTitle}\n\t\t\t\t}\n\t\t\t))) {\n\t\treturn false;\n\t}\n\t// Delete the original tiddler\n\tif(originalTitle) {\n\t\tif(originalTiddler) {\n\t\t\t$tw.hooks.invokeHook(\"th-deleting-tiddler\",originalTiddler);\n\t\t}\n\t\tthis.wiki.deleteTiddler(originalTitle);\n\t\tthis.removeTitleFromStory(storyList,originalTitle);\n\t}\n\t// Invoke the hook function and delete this tiddler\n\t$tw.hooks.invokeHook(\"th-deleting-tiddler\",tiddler);\n\tthis.wiki.deleteTiddler(title);\n\t// Remove the closed tiddler from the story\n\tthis.removeTitleFromStory(storyList,title);\n\tthis.saveStoryList(storyList);\n\t// Trigger an autosave\n\t$tw.rootWidget.dispatchEvent({type: \"tm-auto-save-wiki\"});\n\treturn false;\n};\n\n/*\nCreate/reuse the draft tiddler for a given title\n*/\nNavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) {\n\t// See if there is already a draft tiddler for this tiddler\n\tvar draftTitle = this.wiki.findDraft(targetTitle);\n\tif(draftTitle) {\n\t\treturn this.wiki.getTiddler(draftTitle);\n\t}\n\t// Get the current value of the tiddler we're editing\n\tvar tiddler = this.wiki.getTiddler(targetTitle);\n\t// Save the initial value of the draft tiddler\n\tdraftTitle = this.generateDraftTitle(targetTitle);\n\tvar draftTiddler = new $tw.Tiddler(\n\t\t\ttiddler,\n\t\t\t{\n\t\t\t\ttitle: draftTitle,\n\t\t\t\t\"draft.title\": targetTitle,\n\t\t\t\t\"draft.of\": targetTitle\n\t\t\t},\n\t\t\tthis.wiki.getModificationFields()\n\t\t);\n\tthis.wiki.addTiddler(draftTiddler);\n\treturn draftTiddler;\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nNavigatorWidget.prototype.generateDraftTitle = function(title) {\n\treturn this.wiki.generateDraftTitle(title);\n};\n\n// Take a tiddler out of edit mode, saving the changes\nNavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle,\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tstoryList = this.getStoryList();\n\t// Replace the original tiddler with the draft\n\tif(tiddler) {\n\t\tvar draftTitle = (tiddler.fields[\"draft.title\"] || \"\").trim(),\n\t\t\tdraftOf = (tiddler.fields[\"draft.of\"] || \"\").trim();\n\t\tif(draftTitle) {\n\t\t\tvar isRename = draftOf !== draftTitle,\n\t\t\t\tisConfirmed = true;\n\t\t\tif(isRename && this.wiki.tiddlerExists(draftTitle)) {\n\t\t\t\tisConfirmed = confirm($tw.language.getString(\n\t\t\t\t\t\"ConfirmOverwriteTiddler\",\n\t\t\t\t\t{variables:\n\t\t\t\t\t\t{title: draftTitle}\n\t\t\t\t\t}\n\t\t\t\t));\n\t\t\t}\n\t\t\tif(isConfirmed) {\n\t\t\t\t// Create the new tiddler and pass it through the th-saving-tiddler hook\n\t\t\t\tvar newTiddler = new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,{\n\t\t\t\t\ttitle: draftTitle,\n\t\t\t\t\t\"draft.title\": undefined,\n\t\t\t\t\t\"draft.of\": undefined\n\t\t\t\t},this.wiki.getModificationFields());\n\t\t\t\tnewTiddler = $tw.hooks.invokeHook(\"th-saving-tiddler\",newTiddler);\n\t\t\t\tthis.wiki.addTiddler(newTiddler);\n\t\t\t\t// If enabled, relink references to renamed tiddler\n\t\t\t\tvar shouldRelink = this.getAttribute(\"relinkOnRename\",\"no\").toLowerCase().trim() === \"yes\";\n\t\t\t\tif(isRename && shouldRelink && this.wiki.tiddlerExists(draftOf)) {\nconsole.log(\"Relinking '\" + draftOf + \"' to '\" + draftTitle + \"'\");\n\t\t\t\t\tthis.wiki.relinkTiddler(draftOf,draftTitle);\n\t\t\t\t}\n\t\t\t\t// Remove the draft tiddler\n\t\t\t\tthis.wiki.deleteTiddler(title);\n\t\t\t\t// Remove the original tiddler if we're renaming it\n\t\t\t\tif(isRename) {\n\t\t\t\t\tthis.wiki.deleteTiddler(draftOf);\n\t\t\t\t}\n\t\t\t\t// #2381 always remove new title & old\n\t\t\t\tthis.removeTitleFromStory(storyList,draftTitle);\n\t\t\t\tthis.removeTitleFromStory(storyList,draftOf);\n\t\t\t\tif(!event.paramObject || event.paramObject.suppressNavigation !== \"yes\") {\n\t\t\t\t\t// Replace the draft in the story with the original\n\t\t\t\t\tthis.replaceFirstTitleInStory(storyList,title,draftTitle);\n\t\t\t\t\tthis.addToHistory(draftTitle,event.navigateFromClientRect);\n\t\t\t\t\tif(draftTitle !== this.storyTitle) {\n\t\t\t\t\t\tthis.saveStoryList(storyList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Trigger an autosave\n\t\t\t\t$tw.rootWidget.dispatchEvent({type: \"tm-auto-save-wiki\"});\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\n// Take a tiddler out of edit mode without saving the changes\nNavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\"th-cancelling-tiddler\", event);\n\t// Flip the specified tiddler from draft back to the original\n\tvar draftTitle = event.param || event.tiddlerTitle,\n\t\tdraftTiddler = this.wiki.getTiddler(draftTitle),\n\t\toriginalTitle = draftTiddler && draftTiddler.fields[\"draft.of\"];\n\tif(draftTiddler && originalTitle) {\n\t\t// Ask for confirmation if the tiddler text has changed\n\t\tvar isConfirmed = true,\n\t\t\toriginalTiddler = this.wiki.getTiddler(originalTitle),\n\t\t\tstoryList = this.getStoryList();\n\t\tif(this.wiki.isDraftModified(draftTitle)) {\n\t\t\tisConfirmed = confirm($tw.language.getString(\n\t\t\t\t\"ConfirmCancelTiddler\",\n\t\t\t\t{variables:\n\t\t\t\t\t{title: draftTitle}\n\t\t\t\t}\n\t\t\t));\n\t\t}\n\t\t// Remove the draft tiddler\n\t\tif(isConfirmed) {\n\t\t\tthis.wiki.deleteTiddler(draftTitle);\n\t\t\tif(!event.paramObject || event.paramObject.suppressNavigation !== \"yes\") {\n\t\t\t\tif(originalTiddler) {\n\t\t\t\t\tthis.replaceFirstTitleInStory(storyList,draftTitle,originalTitle);\n\t\t\t\t\tthis.addToHistory(originalTitle,event.navigateFromClientRect);\n\t\t\t\t} else {\n\t\t\t\t\tthis.removeTitleFromStory(storyList,draftTitle);\n\t\t\t\t}\n\t\t\t\tthis.saveStoryList(storyList);\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\n// Create a new draft tiddler\n// event.param can either be the title of a template tiddler, or a hashmap of fields.\n//\n// The title of the newly created tiddler follows these rules:\n// * If a hashmap was used and a title field was specified, use that title\n// * If a hashmap was used without a title field, use a default title, if necessary making it unique with a numeric suffix\n// * If a template tiddler was used, use the title of the template, if necessary making it unique with a numeric suffix\n//\n// If a draft of the target tiddler already exists then it is reused\nNavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\"th-new-tiddler\", event);\n\t// Get the story details\n\tvar storyList = this.getStoryList(),\n\t\ttemplateTiddler, additionalFields, title, draftTitle, existingTiddler;\n\t// Get the template tiddler (if any)\n\tif(typeof event.param === \"string\") {\n\t\t// Get the template tiddler\n\t\ttemplateTiddler = this.wiki.getTiddler(event.param);\n\t\t// Generate a new title\n\t\ttitle = this.wiki.generateNewTitle(event.param || $tw.language.getString(\"DefaultNewTiddlerTitle\"));\n\t}\n\t// Get the specified additional fields\n\tif(typeof event.paramObject === \"object\") {\n\t\tadditionalFields = event.paramObject;\n\t}\n\tif(typeof event.param === \"object\") { // Backwards compatibility with 5.1.3\n\t\tadditionalFields = event.param;\n\t}\n\tif(additionalFields && additionalFields.title) {\n\t\ttitle = additionalFields.title;\n\t}\n\t// Make a copy of the additional fields excluding any blank ones\n\tvar filteredAdditionalFields = $tw.utils.extend({},additionalFields);\n\tObject.keys(filteredAdditionalFields).forEach(function(fieldName) {\n\t\tif(filteredAdditionalFields[fieldName] === \"\") {\n\t\t\tdelete filteredAdditionalFields[fieldName];\n\t\t}\n\t});\n\t// Generate a title if we don't have one\n\ttitle = title || this.wiki.generateNewTitle($tw.language.getString(\"DefaultNewTiddlerTitle\"));\n\t// Find any existing draft for this tiddler\n\tdraftTitle = this.wiki.findDraft(title);\n\t// Pull in any existing tiddler\n\tif(draftTitle) {\n\t\texistingTiddler = this.wiki.getTiddler(draftTitle);\n\t} else {\n\t\tdraftTitle = this.generateDraftTitle(title);\n\t\texistingTiddler = this.wiki.getTiddler(title);\n\t}\n\t// Merge the tags\n\tvar mergedTags = [];\n\tif(existingTiddler && existingTiddler.fields.tags) {\n\t\t$tw.utils.pushTop(mergedTags,existingTiddler.fields.tags);\n\t}\n\tif(additionalFields && additionalFields.tags) {\n\t\t// Merge tags\n\t\tmergedTags = $tw.utils.pushTop(mergedTags,$tw.utils.parseStringArray(additionalFields.tags));\n\t}\n\tif(templateTiddler && templateTiddler.fields.tags) {\n\t\t// Merge tags\n\t\tmergedTags = $tw.utils.pushTop(mergedTags,templateTiddler.fields.tags);\n\t}\n\t// Save the draft tiddler\n\tvar draftTiddler = new $tw.Tiddler({\n\t\t\ttext: \"\",\n\t\t\t\"draft.title\": title\n\t\t},\n\t\ttemplateTiddler,\n\t\tadditionalFields,\n\t\tthis.wiki.getCreationFields(),\n\t\texistingTiddler,\n\t\tfilteredAdditionalFields,\n\t\t{\n\t\t\ttitle: draftTitle,\n\t\t\t\"draft.of\": title,\n\t\t\ttags: mergedTags\n\t\t},this.wiki.getModificationFields());\n\tthis.wiki.addTiddler(draftTiddler);\n\t// Update the story to insert the new draft at the top and remove any existing tiddler\n\tif(storyList && storyList.indexOf(draftTitle) === -1) {\n\t\tvar slot = storyList.indexOf(event.navigateFromTitle);\n\t\tif(slot === -1) {\n\t\t\tslot = this.getAttribute(\"openLinkFromOutsideRiver\",\"top\") === \"bottom\" ? storyList.length - 1 : slot;\n\t\t}\n\t\tstoryList.splice(slot + 1,0,draftTitle);\n\t}\n\tif(storyList && storyList.indexOf(title) !== -1) {\n\t\tstoryList.splice(storyList.indexOf(title),1);\n\t}\n\tthis.saveStoryList(storyList);\n\t// Add a new record to the top of the history stack\n\tthis.addToHistory(draftTitle);\n\treturn false;\n};\n\n// Import JSON tiddlers into a pending import tiddler\nNavigatorWidget.prototype.handleImportTiddlersEvent = function(event) {\n\t// Get the tiddlers\n\tvar tiddlers = [];\n\ttry {\n\t\ttiddlers = JSON.parse(event.param);\n\t} catch(e) {\n\t}\n\t// Get the current $:/Import tiddler\n\tvar importTiddler = this.wiki.getTiddler(IMPORT_TITLE),\n\t\timportData = this.wiki.getTiddlerData(IMPORT_TITLE,{}),\n\t\tnewFields = new Object({\n\t\t\ttitle: IMPORT_TITLE,\n\t\t\ttype: \"application/json\",\n\t\t\t\"plugin-type\": \"import\",\n\t\t\t\"status\": \"pending\"\n\t\t}),\n\t\tincomingTiddlers = [];\n\t// Process each tiddler\n\timportData.tiddlers = importData.tiddlers || {};\n\t$tw.utils.each(tiddlers,function(tiddlerFields) {\n\t\ttiddlerFields.title = $tw.utils.trim(tiddlerFields.title);\n\t\tvar title = tiddlerFields.title;\n\t\tif(title) {\n\t\t\tincomingTiddlers.push(title);\n\t\t\timportData.tiddlers[title] = tiddlerFields;\n\t\t}\n\t});\n\t// Give the active upgrader modules a chance to process the incoming tiddlers\n\tvar messages = this.wiki.invokeUpgraders(incomingTiddlers,importData.tiddlers);\n\t$tw.utils.each(messages,function(message,title) {\n\t\tnewFields[\"message-\" + title] = message;\n\t});\n\t// Deselect any suppressed tiddlers\n\t$tw.utils.each(importData.tiddlers,function(tiddler,title) {\n\t\tif($tw.utils.count(tiddler) === 0) {\n\t\t\tnewFields[\"selection-\" + title] = \"unchecked\";\n\t\t}\n\t});\n\t// Save the $:/Import tiddler\n\tnewFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);\n\tthis.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));\n\t// Update the story and history details\n\tif(this.getVariable(\"tv-auto-open-on-import\") !== \"no\") {\n\t\tvar storyList = this.getStoryList(),\n\t\t\thistory = [];\n\t\t// Add it to the story\n\t\tif(storyList && storyList.indexOf(IMPORT_TITLE) === -1) {\n\t\t\tstoryList.unshift(IMPORT_TITLE);\n\t\t}\n\t\t// And to history\n\t\thistory.push(IMPORT_TITLE);\n\t\t// Save the updated story and history\n\t\tthis.saveStoryList(storyList);\n\t\tthis.addToHistory(history);\n\t}\n\treturn false;\n};\n\n//\nNavigatorWidget.prototype.handlePerformImportEvent = function(event) {\n\tvar self = this,\n\t\timportTiddler = this.wiki.getTiddler(event.param),\n\t\timportData = this.wiki.getTiddlerDataCached(event.param,{tiddlers: {}}),\n\t\timportReport = [];\n\t// Add the tiddlers to the store\n\timportReport.push($tw.language.getString(\"Import/Imported/Hint\") + \"\\n\");\n\t$tw.utils.each(importData.tiddlers,function(tiddlerFields) {\n\t\tvar title = tiddlerFields.title;\n\t\tif(title && importTiddler && importTiddler.fields[\"selection-\" + title] !== \"unchecked\") {\n\t\t\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\t\t\ttiddler = $tw.hooks.invokeHook(\"th-importing-tiddler\",tiddler);\n\t\t\tself.wiki.addTiddler(tiddler);\n\t\t\timportReport.push(\"# [[\" + tiddlerFields.title + \"]]\");\n\t\t}\n\t});\n\t// Replace the $:/Import tiddler with an import report\n\tthis.wiki.addTiddler(new $tw.Tiddler({\n\t\ttitle: event.param,\n\t\ttext: importReport.join(\"\\n\"),\n\t\t\"status\": \"complete\"\n\t}));\n\t// Navigate to the $:/Import tiddler\n\tthis.addToHistory([event.param]);\n\t// Trigger an autosave\n\t$tw.rootWidget.dispatchEvent({type: \"tm-auto-save-wiki\"});\n};\n\nNavigatorWidget.prototype.handleFoldTiddlerEvent = function(event) {\n\tvar paramObject = event.paramObject || {};\n\tif(paramObject.foldedState) {\n\t\tvar foldedState = this.wiki.getTiddlerText(paramObject.foldedState,\"show\") === \"show\" ? \"hide\" : \"show\";\n\t\tthis.wiki.setText(paramObject.foldedState,\"text\",null,foldedState);\n\t}\n};\n\nNavigatorWidget.prototype.handleFoldOtherTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix;\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\"text\",null,event.param === title ? \"show\" : \"hide\");\n\t});\n};\n\nNavigatorWidget.prototype.handleFoldAllTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix || \"$:/state/folded/\";\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\"text\",null,\"hide\");\n\t});\n};\n\nNavigatorWidget.prototype.handleUnfoldAllTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix;\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\"text\",null,\"show\");\n\t});\n};\n\nNavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) {\n\tvar paramObject = event.paramObject || {},\n\t\tfrom = paramObject.from || event.tiddlerTitle,\n\t\tto = paramObject.to;\n\t$tw.wiki.renameTiddler(from,to);\n};\n\nexports.navigator = NavigatorWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/password.js": {
"title": "$:/core/modules/widgets/password.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/password.js\ntype: application/javascript\nmodule-type: widget\n\nPassword widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar PasswordWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nPasswordWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nPasswordWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Get the current password\n\tvar password = $tw.browser ? $tw.utils.getPassword(this.passwordName) || \"\" : \"\";\n\t// Create our element\n\tvar domNode = this.document.createElement(\"input\");\n\tdomNode.setAttribute(\"type\",\"password\");\n\tdomNode.setAttribute(\"value\",password);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nPasswordWidget.prototype.handleChangeEvent = function(event) {\n\tvar password = this.domNodes[0].value;\n\treturn $tw.utils.savePassword(this.passwordName,password);\n};\n\n/*\nCompute the internal state of the widget\n*/\nPasswordWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.passwordName = this.getAttribute(\"name\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nPasswordWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.name) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.password = PasswordWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/qualify.js": {
"title": "$:/core/modules/widgets/qualify.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/qualify.js\ntype: application/javascript\nmodule-type: widget\n\nQualify text to a variable \n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar QualifyWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nQualifyWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nQualifyWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nQualifyWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.qualifyName = this.getAttribute(\"name\");\n\tthis.qualifyTitle = this.getAttribute(\"title\");\n\t// Set context variable\n\tif(this.qualifyName) {\n\t\tthis.setVariable(this.qualifyName,this.qualifyTitle + \"-\" + this.getStateQualifier());\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nQualifyWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.name || changedAttributes.title) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.qualify = QualifyWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/radio.js": {
"title": "$:/core/modules/widgets/radio.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/radio.js\ntype: application/javascript\nmodule-type: widget\n\nSet a field or index at a given tiddler via radio buttons\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar RadioWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRadioWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRadioWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tvar isChecked = this.getValue() === this.radioValue;\n\t// Create our elements\n\tthis.labelDomNode = this.document.createElement(\"label\");\n\tthis.labelDomNode.setAttribute(\"class\",\n \t\t\"tc-radio \" + this.radioClass + (isChecked ? \" tc-radio-selected\" : \"\")\n \t);\n\tthis.inputDomNode = this.document.createElement(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"radio\");\n\tif(isChecked) {\n\t\tthis.inputDomNode.setAttribute(\"checked\",\"true\");\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\"span\");\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.labelDomNode,nextSibling);\n\tthis.renderChildren(this.spanDomNode,null);\n\tthis.domNodes.push(this.labelDomNode);\n};\n\nRadioWidget.prototype.getValue = function() {\n\tvar value,\n\t\ttiddler = this.wiki.getTiddler(this.radioTitle);\n\tif (this.radioIndex) {\n\t\tvalue = this.wiki.extractTiddlerDataItem(this.radioTitle,this.radioIndex);\n\t} else {\n\t\tvalue = tiddler && tiddler.getFieldString(this.radioField);\n\t}\n\treturn value;\n};\n\nRadioWidget.prototype.setValue = function() {\n\tif(this.radioIndex) {\n\t\tthis.wiki.setText(this.radioTitle,\"\",this.radioIndex,this.radioValue);\n\t} else {\n\t\tvar tiddler = this.wiki.getTiddler(this.radioTitle),\n\t\t\taddition = {};\n\t\taddition[this.radioField] = this.radioValue;\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields()));\n\t}\n};\n\nRadioWidget.prototype.handleChangeEvent = function(event) {\n\tif(this.inputDomNode.checked) {\n\t\tthis.setValue();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nRadioWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.radioTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.radioField = this.getAttribute(\"field\",\"text\");\n\tthis.radioIndex = this.getAttribute(\"index\");\n\tthis.radioValue = this.getAttribute(\"value\");\n\tthis.radioClass = this.getAttribute(\"class\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRadioWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.radioTitle]) {\n\t\t\tthis.inputDomNode.checked = this.getValue() === this.radioValue;\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.radio = RadioWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/range.js": {
"title": "$:/core/modules/widgets/range.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/range.js\ntype: application/javascript\nmodule-type: widget\n\nRange widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar RangeWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRangeWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRangeWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\t// Create our elements\n\tthis.inputDomNode = this.document.createElement(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"range\");\n\tthis.inputDomNode.setAttribute(\"class\",this.elementClass);\n\tif(this.minValue){\n\t\tthis.inputDomNode.setAttribute(\"min\", this.minValue);\n\t}\n\tif(this.maxValue){\n\t\tthis.inputDomNode.setAttribute(\"max\", this.maxValue);\n\t}\n\tif(this.increment){\n\t\tthis.inputDomNode.setAttribute(\"step\", this.increment);\n\t}\n\tthis.inputDomNode.value = this.getValue();\n\n\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \"input\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.inputDomNode,nextSibling);\n\tthis.domNodes.push(this.inputDomNode);\n};\n\nRangeWidget.prototype.getValue = function() {\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle),\n\t\tvalue = this.defaultValue;\n\tif(tiddler) {\n\t\tif($tw.utils.hop(tiddler.fields,this.tiddlerField)) {\n\t\t\tvalue = tiddler.fields[this.tiddlerField] || \"\";\n\t\t} else {\n\t\t\tvalue = this.defaultValue || \"\";\n\t\t}\n\t}\n\treturn value;\n};\n\nRangeWidget.prototype.handleChangeEvent = function(event) {\n\tthis.wiki.setText(this.tiddlerTitle ,this.tiddlerField, null,this.inputDomNode.value);\n};\n\n/*\nCompute the internal state of the widget\n*/\nRangeWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.tiddlerTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.tiddlerField = this.getAttribute(\"field\");\n\tthis.minValue = this.getAttribute(\"min\");\n\tthis.maxValue = this.getAttribute(\"max\");\n\tthis.increment = this.getAttribute(\"increment\");\n\tthis.defaultValue = this.getAttribute(\"default\");\n\tthis.elementClass = this.getAttribute(\"class\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRangeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes['min'] || changedAttributes['max'] || changedAttributes['increment'] || changedAttributes[\"default\"] || changedAttributes[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.tiddlerTitle]) {\n\t\t\tthis.inputDomNode.checked = this.getValue();\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.range = RangeWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/raw.js": {
"title": "$:/core/modules/widgets/raw.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/raw.js\ntype: application/javascript\nmodule-type: widget\n\nRaw widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar RawWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRawWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRawWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tvar div = this.document.createElement(\"div\");\n\tdiv.innerHTML=this.parseTreeNode.html;\n\tparent.insertBefore(div,nextSibling);\n\tthis.domNodes.push(div);\t\n};\n\n/*\nCompute the internal state of the widget\n*/\nRawWidget.prototype.execute = function() {\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRawWidget.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.raw = RawWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/reveal.js": {
"title": "$:/core/modules/widgets/reveal.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/reveal.js\ntype: application/javascript\nmodule-type: widget\n\nReveal widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar RevealWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRevealWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRevealWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar tag = this.parseTreeNode.isBlock ? \"div\" : \"span\";\n\tif(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {\n\t\ttag = this.revealTag;\n\t}\n\tvar domNode = this.document.createElement(tag);\n\tvar classes = this[\"class\"].split(\" \") || [];\n\tclasses.push(\"tc-reveal\");\n\tdomNode.className = classes.join(\" \");\n\tif(this.style) {\n\t\tdomNode.setAttribute(\"style\",this.style);\n\t}\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tif(!domNode.isTiddlyWikiFakeDom && this.type === \"popup\" && this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\"tc-popup\"); // Make sure that clicks don't dismiss popups within the revealed content\n\t}\n\tif(!this.isOpen) {\n\t\tdomNode.setAttribute(\"hidden\",\"true\");\n\t}\n\tthis.domNodes.push(domNode);\n};\n\nRevealWidget.prototype.positionPopup = function(domNode) {\n\tdomNode.style.position = \"absolute\";\n\tdomNode.style.zIndex = \"1000\";\n\tvar left,top;\n\tswitch(this.position) {\n\t\tcase \"left\":\n\t\t\tleft = this.popup.left - domNode.offsetWidth;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \"above\":\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \"aboveright\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top + this.popup.height - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \"right\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \"belowleft\":\n\t\t\tleft = this.popup.left + this.popup.width - domNode.offsetWidth;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t\tdefault: // Below\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t}\n\tif(!this.positionAllowNegative) {\n\t\tleft = Math.max(0,left);\n\t\ttop = Math.max(0,top);\n\t}\n\tdomNode.style.left = left + \"px\";\n\tdomNode.style.top = top + \"px\";\n};\n\n/*\nCompute the internal state of the widget\n*/\nRevealWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.state = this.getAttribute(\"state\");\n\tthis.revealTag = this.getAttribute(\"tag\");\n\tthis.type = this.getAttribute(\"type\");\n\tthis.text = this.getAttribute(\"text\");\n\tthis.position = this.getAttribute(\"position\");\n\tthis.positionAllowNegative = this.getAttribute(\"positionAllowNegative\") === \"yes\";\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tthis.style = this.getAttribute(\"style\",\"\");\n\tthis[\"default\"] = this.getAttribute(\"default\",\"\");\n\tthis.animate = this.getAttribute(\"animate\",\"no\");\n\tthis.retain = this.getAttribute(\"retain\",\"no\");\n\tthis.openAnimation = this.animate === \"no\" ? undefined : \"open\";\n\tthis.closeAnimation = this.animate === \"no\" ? undefined : \"close\";\n\t// Compute the title of the state tiddler and read it\n\tthis.stateTiddlerTitle = this.state;\n\tthis.stateTitle = this.getAttribute(\"stateTitle\");\n\tthis.stateField = this.getAttribute(\"stateField\");\n\tthis.stateIndex = this.getAttribute(\"stateIndex\");\n\tthis.readState();\n\t// Construct the child widgets\n\tvar childNodes = this.isOpen ? this.parseTreeNode.children : [];\n\tthis.hasChildNodes = this.isOpen;\n\tthis.makeChildWidgets(childNodes);\n};\n\n/*\nRead the state tiddler\n*/\nRevealWidget.prototype.readState = function() {\n\t// Read the information from the state tiddler\n\tvar state,\n\t defaultState = this[\"default\"];\n\tif(this.stateTitle) {\n\t\tvar stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);\n\t\tif(this.stateField) {\n\t\t\tstate = stateTitleTiddler ? stateTitleTiddler.getFieldString(this.stateField) || defaultState : defaultState;\n\t\t} else if(this.stateIndex) {\n\t\t\tstate = stateTitleTiddler ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) || defaultState : defaultState;\n\t\t} else if(stateTitleTiddler) {\n\t\t\tstate = this.wiki.getTiddlerText(this.stateTitle) || defaultState;\n\t\t} else {\n\t\t\tstate = defaultState;\n\t\t}\n\t} else {\n\t\tstate = this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this[\"default\"],this.getVariable(\"currentTiddler\")) : this[\"default\"];\n\t}\n\tif(state === null) {\n\t\tstate = this[\"default\"];\n\t}\n\tswitch(this.type) {\n\t\tcase \"popup\":\n\t\t\tthis.readPopupState(state);\n\t\t\tbreak;\n\t\tcase \"match\":\n\t\t\tthis.isOpen = this.text === state;\n\t\t\tbreak;\n\t\tcase \"nomatch\":\n\t\t\tthis.isOpen = this.text !== state;\n\t\t\tbreak;\n\t\tcase \"lt\":\n\t\t\tthis.isOpen = !!(this.compareStateText(state) < 0);\n\t\t\tbreak;\n\t\tcase \"gt\":\n\t\t\tthis.isOpen = !!(this.compareStateText(state) > 0);\n\t\t\tbreak;\n\t\tcase \"lteq\":\n\t\t\tthis.isOpen = !(this.compareStateText(state) > 0);\n\t\t\tbreak;\n\t\tcase \"gteq\":\n\t\t\tthis.isOpen = !(this.compareStateText(state) < 0);\n\t\t\tbreak;\n\t}\n};\n\nRevealWidget.prototype.compareStateText = function(state) {\n\treturn state.localeCompare(this.text,undefined,{numeric: true,sensitivity: \"case\"});\n};\n\nRevealWidget.prototype.readPopupState = function(state) {\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/,\n\t\tmatch = popupLocationRegExp.exec(state);\n\t// Check if the state matches the location regexp\n\tif(match) {\n\t\t// If so, we're open\n\t\tthis.isOpen = true;\n\t\t// Get the location\n\t\tthis.popup = {\n\t\t\tleft: parseFloat(match[1]),\n\t\t\ttop: parseFloat(match[2]),\n\t\t\twidth: parseFloat(match[3]),\n\t\t\theight: parseFloat(match[4])\n\t\t};\n\t} else {\n\t\t// If not, we're closed\n\t\tthis.isOpen = false;\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRevealWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes[\"default\"] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar currentlyOpen = this.isOpen;\n\t\tthis.readState();\n\t\tif(this.isOpen !== currentlyOpen) {\n\t\t\tif(this.retain === \"yes\") {\n\t\t\t\tthis.updateState();\n\t\t\t} else {\n\t\t\t\tthis.refreshSelf();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\n/*\nCalled by refresh() to dynamically show or hide the content\n*/\nRevealWidget.prototype.updateState = function() {\n\tvar self = this;\n\t// Read the current state\n\tthis.readState();\n\t// Construct the child nodes if needed\n\tvar domNode = this.domNodes[0];\n\tif(this.isOpen && !this.hasChildNodes) {\n\t\tthis.hasChildNodes = true;\n\t\tthis.makeChildWidgets(this.parseTreeNode.children);\n\t\tthis.renderChildren(domNode,null);\n\t}\n\t// Animate our DOM node\n\tif(!domNode.isTiddlyWikiFakeDom && this.type === \"popup\" && this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\"tc-popup\"); // Make sure that clicks don't dismiss popups within the revealed content\n\n\t}\n\tif(this.isOpen) {\n\t\tdomNode.removeAttribute(\"hidden\");\n $tw.anim.perform(this.openAnimation,domNode);\n\t} else {\n\t\t$tw.anim.perform(this.closeAnimation,domNode,{callback: function() {\n\t\t\t//make sure that the state hasn't changed during the close animation\n\t\t\tself.readState()\n\t\t\tif(!self.isOpen) {\n\t\t\t\tdomNode.setAttribute(\"hidden\",\"true\");\n\t\t\t}\n\t\t}});\n\t}\n};\n\nexports.reveal = RevealWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/scrollable.js": {
"title": "$:/core/modules/widgets/scrollable.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/scrollable.js\ntype: application/javascript\nmodule-type: widget\n\nScrollable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ScrollableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.scaleFactor = 1;\n\tthis.addEventListeners([\n\t\t{type: \"tm-scroll\", handler: \"handleScrollEvent\"}\n\t]);\n\tif($tw.browser) {\n\t\tthis.requestAnimationFrame = window.requestAnimationFrame ||\n\t\t\twindow.webkitRequestAnimationFrame ||\n\t\t\twindow.mozRequestAnimationFrame ||\n\t\t\tfunction(callback) {\n\t\t\t\treturn window.setTimeout(callback, 1000/60);\n\t\t\t};\n\t\tthis.cancelAnimationFrame = window.cancelAnimationFrame ||\n\t\t\twindow.webkitCancelAnimationFrame ||\n\t\t\twindow.webkitCancelRequestAnimationFrame ||\n\t\t\twindow.mozCancelAnimationFrame ||\n\t\t\twindow.mozCancelRequestAnimationFrame ||\n\t\t\tfunction(id) {\n\t\t\t\twindow.clearTimeout(id);\n\t\t\t};\n\t}\n};\n\n/*\nInherit from the base widget class\n*/\nScrollableWidget.prototype = new Widget();\n\nScrollableWidget.prototype.cancelScroll = function() {\n\tif(this.idRequestFrame) {\n\t\tthis.cancelAnimationFrame.call(window,this.idRequestFrame);\n\t\tthis.idRequestFrame = null;\n\t}\n};\n\n/*\nHandle a scroll event\n*/\nScrollableWidget.prototype.handleScrollEvent = function(event) {\n\t// Pass the scroll event through if our offsetsize is larger than our scrollsize\n\tif(this.outerDomNode.scrollWidth <= this.outerDomNode.offsetWidth && this.outerDomNode.scrollHeight <= this.outerDomNode.offsetHeight && this.fallthrough === \"yes\") {\n\t\treturn true;\n\t}\n\tthis.scrollIntoView(event.target);\n\treturn false; // Handled event\n};\n\n/*\nScroll an element into view\n*/\nScrollableWidget.prototype.scrollIntoView = function(element) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tthis.cancelScroll();\n\tthis.startTime = Date.now();\n\tvar scrollPosition = {\n\t\tx: this.outerDomNode.scrollLeft,\n\t\ty: this.outerDomNode.scrollTop\n\t};\n\t// Get the client bounds of the element and adjust by the scroll position\n\tvar scrollableBounds = this.outerDomNode.getBoundingClientRect(),\n\t\tclientTargetBounds = element.getBoundingClientRect(),\n\t\tbounds = {\n\t\t\tleft: clientTargetBounds.left + scrollPosition.x - scrollableBounds.left,\n\t\t\ttop: clientTargetBounds.top + scrollPosition.y - scrollableBounds.top,\n\t\t\twidth: clientTargetBounds.width,\n\t\t\theight: clientTargetBounds.height\n\t\t};\n\t// We'll consider the horizontal and vertical scroll directions separately via this function\n\tvar getEndPos = function(targetPos,targetSize,currentPos,currentSize) {\n\t\t\t// If the target is already visible then stay where we are\n\t\t\tif(targetPos >= currentPos && (targetPos + targetSize) <= (currentPos + currentSize)) {\n\t\t\t\treturn currentPos;\n\t\t\t// If the target is above/left of the current view, then scroll to its top/left\n\t\t\t} else if(targetPos <= currentPos) {\n\t\t\t\treturn targetPos;\n\t\t\t// If the target is smaller than the window and the scroll position is too far up, then scroll till the target is at the bottom of the window\n\t\t\t} else if(targetSize < currentSize && currentPos < (targetPos + targetSize - currentSize)) {\n\t\t\t\treturn targetPos + targetSize - currentSize;\n\t\t\t// If the target is big, then just scroll to the top\n\t\t\t} else if(currentPos < targetPos) {\n\t\t\t\treturn targetPos;\n\t\t\t// Otherwise, stay where we are\n\t\t\t} else {\n\t\t\t\treturn currentPos;\n\t\t\t}\n\t\t},\n\t\tendX = getEndPos(bounds.left,bounds.width,scrollPosition.x,this.outerDomNode.offsetWidth),\n\t\tendY = getEndPos(bounds.top,bounds.height,scrollPosition.y,this.outerDomNode.offsetHeight);\n\t// Only scroll if necessary\n\tif(endX !== scrollPosition.x || endY !== scrollPosition.y) {\n\t\tvar self = this,\n\t\t\tdrawFrame;\n\t\tdrawFrame = function () {\n\t\t\tvar t;\n\t\t\tif(duration <= 0) {\n\t\t\t\tt = 1;\n\t\t\t} else {\n\t\t\t\tt = ((Date.now()) - self.startTime) / duration;\t\n\t\t\t}\n\t\t\tif(t >= 1) {\n\t\t\t\tself.cancelScroll();\n\t\t\t\tt = 1;\n\t\t\t}\n\t\t\tt = $tw.utils.slowInSlowOut(t);\n\t\t\tself.outerDomNode.scrollLeft = scrollPosition.x + (endX - scrollPosition.x) * t;\n\t\t\tself.outerDomNode.scrollTop = scrollPosition.y + (endY - scrollPosition.y) * t;\n\t\t\tif(t < 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(window,drawFrame);\n\t\t\t}\n\t\t};\n\t\tdrawFrame();\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nScrollableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create elements\n\tthis.outerDomNode = this.document.createElement(\"div\");\n\t$tw.utils.setStyle(this.outerDomNode,[\n\t\t{overflowY: \"auto\"},\n\t\t{overflowX: \"auto\"},\n\t\t{webkitOverflowScrolling: \"touch\"}\n\t]);\n\tthis.innerDomNode = this.document.createElement(\"div\");\n\tthis.outerDomNode.appendChild(this.innerDomNode);\n\t// Assign classes\n\tthis.outerDomNode.className = this[\"class\"] || \"\";\n\t// Insert element\n\tparent.insertBefore(this.outerDomNode,nextSibling);\n\tthis.renderChildren(this.innerDomNode,null);\n\tthis.domNodes.push(this.outerDomNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nScrollableWidget.prototype.execute = function() {\n\t// Get attributes\n\tthis.fallthrough = this.getAttribute(\"fallthrough\",\"yes\");\n\tthis[\"class\"] = this.getAttribute(\"class\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nScrollableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.scrollable = ScrollableWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/select.js": {
"title": "$:/core/modules/widgets/select.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/select.js\ntype: application/javascript\nmodule-type: widget\n\nSelect widget:\n\n```\n<$select tiddler=\"MyTiddler\" field=\"text\">\n<$list filter=\"[tag[chapter]]\">\n<option value=<<currentTiddler>>>\n<$view field=\"description\"/>\n</option>\n</$list>\n</$select>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar SelectWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSelectWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSelectWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n\tthis.setSelectValue();\n\t$tw.utils.addEventListeners(this.getSelectDomNode(),[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\n\t]);\n};\n\n/*\nHandle a change event\n*/\nSelectWidget.prototype.handleChangeEvent = function(event) {\n\t// Get the new value and assign it to the tiddler\n\tif(this.selectMultiple == false) {\n\t\tvar value = this.getSelectDomNode().value;\n\t} else {\n\t\tvar value = this.getSelectValues()\n\t\t\t\tvalue = $tw.utils.stringifyList(value);\n\t}\n\tthis.wiki.setText(this.selectTitle,this.selectField,this.selectIndex,value);\n\t// Trigger actions\n\tif(this.selectActions) {\n\t\tthis.invokeActionString(this.selectActions,this,event);\n\t}\n};\n\n/*\nIf necessary, set the value of the select element to the current value\n*/\nSelectWidget.prototype.setSelectValue = function() {\n\tvar value = this.selectDefault;\n\t// Get the value\n\tif(this.selectIndex) {\n\t\tvalue = this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex,value);\n\t} else {\n\t\tvar tiddler = this.wiki.getTiddler(this.selectTitle);\n\t\tif(tiddler) {\n\t\t\tif(this.selectField === \"text\") {\n\t\t\t\t// Calling getTiddlerText() triggers lazy loading of skinny tiddlers\n\t\t\t\tvalue = this.wiki.getTiddlerText(this.selectTitle);\n\t\t\t} else {\n\t\t\t\tif($tw.utils.hop(tiddler.fields,this.selectField)) {\n\t\t\t\t\tvalue = tiddler.getFieldString(this.selectField);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif(this.selectField === \"title\") {\n\t\t\t\tvalue = this.selectTitle;\n\t\t\t}\n\t\t}\n\t}\n\t// Assign it to the select element if it's different than the current value\n\tif (this.selectMultiple) {\n\t\tvalue = value === undefined ? \"\" : value;\n\t\tvar select = this.getSelectDomNode();\n\t\tvar values = Array.isArray(value) ? value : $tw.utils.parseStringArray(value);\n\t\tfor(var i=0; i < select.children.length; i++){\n\t\t\tif(values.indexOf(select.children[i].value) != -1) {\n\t\t\t\tselect.children[i].selected = true;\n\t\t\t}\n\t\t}\n\t\t\n\t} else {\n\t\tvar domNode = this.getSelectDomNode();\n\t\tif(domNode.value !== value) {\n\t\t\tdomNode.value = value;\n\t\t}\n\t}\n};\n\n/*\nGet the DOM node of the select element\n*/\nSelectWidget.prototype.getSelectDomNode = function() {\n\treturn this.children[0].domNodes[0];\n};\n\n// Return an array of the selected opion values\n// select is an HTML select element\nSelectWidget.prototype.getSelectValues = function() {\n\tvar select, result, options, opt;\n\tselect = this.getSelectDomNode();\n\tresult = [];\n\toptions = select && select.options;\n\tfor (var i=0; i<options.length; i++) {\n\t\topt = options[i];\n\t\tif (opt.selected) {\n\t\t\tresult.push(opt.value || opt.text);\n\t\t}\n\t}\n\treturn result;\n}\n\n/*\nCompute the internal state of the widget\n*/\nSelectWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.selectActions = this.getAttribute(\"actions\");\n\tthis.selectTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.selectField = this.getAttribute(\"field\",\"text\");\n\tthis.selectIndex = this.getAttribute(\"index\");\n\tthis.selectClass = this.getAttribute(\"class\");\n\tthis.selectDefault = this.getAttribute(\"default\");\n\tthis.selectMultiple = this.getAttribute(\"multiple\", false);\n\tthis.selectSize = this.getAttribute(\"size\");\n\tthis.selectTooltip = this.getAttribute(\"tooltip\");\n\t// Make the child widgets\n\tvar selectNode = {\n\t\ttype: \"element\",\n\t\ttag: \"select\",\n\t\tchildren: this.parseTreeNode.children\n\t};\n\tif(this.selectClass) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"class\",this.selectClass);\n\t}\n\tif(this.selectMultiple) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"multiple\",\"multiple\");\n\t}\n\tif(this.selectSize) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"size\",this.selectSize);\n\t}\n\tif(this.selectTooltip) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"title\",this.selectTooltip);\n\t}\n\tthis.makeChildWidgets([selectNode]);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nSelectWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// If we're using a different tiddler/field/index then completely refresh ourselves\n\tif(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t// If the target tiddler value has changed, just update setting and refresh the children\n\t} else {\n\t\tvar childrenRefreshed = this.refreshChildren(changedTiddlers);\n\t\tif(changedTiddlers[this.selectTitle] || childrenRefreshed) {\n\t\t\tthis.setSelectValue();\n\t\t} \n\t\treturn childrenRefreshed;\n\t}\n};\n\nexports.select = SelectWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/set.js": {
"title": "$:/core/modules/widgets/set.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/set.js\ntype: application/javascript\nmodule-type: widget\n\nSet variable widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar SetWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nSetWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nSetWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nSetWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.setName = this.getAttribute(\"name\",\"currentTiddler\");\n\tthis.setFilter = this.getAttribute(\"filter\");\n\tthis.setSelect = this.getAttribute(\"select\");\n\tthis.setTiddler = this.getAttribute(\"tiddler\");\n\tthis.setSubTiddler = this.getAttribute(\"subtiddler\");\n\tthis.setField = this.getAttribute(\"field\");\n\tthis.setIndex = this.getAttribute(\"index\");\n\tthis.setValue = this.getAttribute(\"value\");\n\tthis.setEmptyValue = this.getAttribute(\"emptyValue\");\n\t// Set context variable\n\tthis.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nGet the value to be assigned\n*/\nSetWidget.prototype.getValue = function() {\n\tvar value = this.setValue;\n\tif(this.setTiddler) {\n\t\tvar tiddler;\n\t\tif(this.setSubTiddler) {\n\t\t\ttiddler = this.wiki.getSubTiddler(this.setTiddler,this.setSubTiddler);\n\t\t} else {\n\t\t\ttiddler = this.wiki.getTiddler(this.setTiddler);\t\t\t\n\t\t}\n\t\tif(!tiddler) {\n\t\t\tvalue = this.setEmptyValue;\n\t\t} else if(this.setField) {\n\t\t\tvalue = tiddler.getFieldString(this.setField) || this.setEmptyValue;\n\t\t} else if(this.setIndex) {\n\t\t\tvalue = this.wiki.extractTiddlerDataItem(this.setTiddler,this.setIndex,this.setEmptyValue);\n\t\t} else {\n\t\t\tvalue = tiddler.fields.text || this.setEmptyValue ;\n\t\t}\n\t} else if(this.setFilter) {\n\t\tvar results = this.wiki.filterTiddlers(this.setFilter,this);\n\t\tif(this.setValue == null) {\n\t\t\tvar select;\n\t\t\tif(this.setSelect) {\n\t\t\t\tselect = parseInt(this.setSelect,10);\n\t\t\t}\n\t\t\tif(select !== undefined) {\n\t\t\t\tvalue = results[select] || \"\";\n\t\t\t} else {\n\t\t\t\tvalue = $tw.utils.stringifyList(results);\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(results.length === 0 && this.setEmptyValue !== undefined) {\n\t\t\tvalue = this.setEmptyValue;\n\t\t}\n\t} else if(!value && this.setEmptyValue) {\n\t\tvalue = this.setEmptyValue;\n\t}\n\treturn value || \"\";\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nSetWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.name || changedAttributes.filter || changedAttributes.select || changedAttributes.tiddler || (this.setTiddler && changedTiddlers[this.setTiddler]) || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes.emptyValue ||\n\t (this.setFilter && this.getValue() != this.variables[this.setName].value)) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.setvariable = SetWidget;\nexports.set = SetWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/text.js": {
"title": "$:/core/modules/widgets/text.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/text.js\ntype: application/javascript\nmodule-type: widget\n\nText node widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar TextNodeWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nTextNodeWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nTextNodeWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar text = this.getAttribute(\"text\",this.parseTreeNode.text || \"\");\n\ttext = text.replace(/\\r/mg,\"\");\n\tvar textNode = this.document.createTextNode(text);\n\tparent.insertBefore(textNode,nextSibling);\n\tthis.domNodes.push(textNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nTextNodeWidget.prototype.execute = function() {\n\t// Nothing to do for a text node\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nTextNodeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.text) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports.text = TextNodeWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/tiddler.js": {
"title": "$:/core/modules/widgets/tiddler.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/tiddler.js\ntype: application/javascript\nmodule-type: widget\n\nTiddler widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar TiddlerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nTiddlerWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nTiddlerWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nTiddlerWidget.prototype.execute = function() {\n\tthis.tiddlerState = this.computeTiddlerState();\n\tthis.setVariable(\"currentTiddler\",this.tiddlerState.currentTiddler);\n\tthis.setVariable(\"missingTiddlerClass\",this.tiddlerState.missingTiddlerClass);\n\tthis.setVariable(\"shadowTiddlerClass\",this.tiddlerState.shadowTiddlerClass);\n\tthis.setVariable(\"systemTiddlerClass\",this.tiddlerState.systemTiddlerClass);\n\tthis.setVariable(\"tiddlerTagClasses\",this.tiddlerState.tiddlerTagClasses);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nCompute the tiddler state flags\n*/\nTiddlerWidget.prototype.computeTiddlerState = function() {\n\t// Get our parameters\n\tthis.tiddlerTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t// Compute the state\n\tvar state = {\n\t\tcurrentTiddler: this.tiddlerTitle || \"\",\n\t\tmissingTiddlerClass: (this.wiki.tiddlerExists(this.tiddlerTitle) || this.wiki.isShadowTiddler(this.tiddlerTitle)) ? \"tc-tiddler-exists\" : \"tc-tiddler-missing\",\n\t\tshadowTiddlerClass: this.wiki.isShadowTiddler(this.tiddlerTitle) ? \"tc-tiddler-shadow\" : \"\",\n\t\tsystemTiddlerClass: this.wiki.isSystemTiddler(this.tiddlerTitle) ? \"tc-tiddler-system\" : \"\",\n\t\ttiddlerTagClasses: this.getTagClasses()\n\t};\n\t// Compute a simple hash to make it easier to detect changes\n\tstate.hash = state.currentTiddler + state.missingTiddlerClass + state.shadowTiddlerClass + state.systemTiddlerClass + state.tiddlerTagClasses;\n\treturn state;\n};\n\n/*\nCreate a string of CSS classes derived from the tags of the current tiddler\n*/\nTiddlerWidget.prototype.getTagClasses = function() {\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle);\n\tif(tiddler) {\n\t\tvar tags = [];\n\t\t$tw.utils.each(tiddler.fields.tags,function(tag) {\n\t\t\ttags.push(\"tc-tagged-\" + encodeURIComponent(tag));\n\t\t});\n\t\treturn tags.join(\" \");\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\tnewTiddlerState = this.computeTiddlerState();\n\tif(changedAttributes.tiddler || newTiddlerState.hash !== this.tiddlerState.hash) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nexports.tiddler = TiddlerWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/transclude.js": {
"title": "$:/core/modules/widgets/transclude.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/transclude.js\ntype: application/javascript\nmodule-type: widget\n\nTransclude widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar TranscludeWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nTranscludeWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nTranscludeWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nTranscludeWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.transcludeTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.transcludeSubTiddler = this.getAttribute(\"subtiddler\");\n\tthis.transcludeField = this.getAttribute(\"field\");\n\tthis.transcludeIndex = this.getAttribute(\"index\");\n\tthis.transcludeMode = this.getAttribute(\"mode\");\n\t// Parse the text reference\n\tvar parseAsInline = !this.parseTreeNode.isBlock;\n\tif(this.transcludeMode === \"inline\") {\n\t\tparseAsInline = true;\n\t} else if(this.transcludeMode === \"block\") {\n\t\tparseAsInline = false;\n\t}\n\tvar parser = this.wiki.parseTextReference(\n\t\t\t\t\t\tthis.transcludeTitle,\n\t\t\t\t\t\tthis.transcludeField,\n\t\t\t\t\t\tthis.transcludeIndex,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparseAsInline: parseAsInline,\n\t\t\t\t\t\t\tsubTiddler: this.transcludeSubTiddler\n\t\t\t\t\t\t}),\n\t\tparseTreeNodes = parser ? parser.tree : this.parseTreeNode.children;\n\t// Set context variables for recursion detection\n\tvar recursionMarker = this.makeRecursionMarker();\n\tthis.setVariable(\"transclusion\",recursionMarker);\n\t// Check for recursion\n\tif(parser) {\n\t\tif(this.parentWidget && this.parentWidget.hasVariable(\"transclusion\",recursionMarker)) {\n\t\t\tparseTreeNodes = [{type: \"element\", tag: \"span\", attributes: {\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-error\"}\n\t\t\t}, children: [\n\t\t\t\t{type: \"text\", text: $tw.language.getString(\"Error/RecursiveTransclusion\")}\n\t\t\t]}];\n\t\t}\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets(parseTreeNodes);\n};\n\n/*\nCompose a string comprising the title, field and/or index to identify this transclusion for recursion detection\n*/\nTranscludeWidget.prototype.makeRecursionMarker = function() {\n\tvar output = [];\n\toutput.push(\"{\");\n\toutput.push(this.getVariable(\"currentTiddler\",{defaultValue: \"\"}));\n\toutput.push(\"|\");\n\toutput.push(this.transcludeTitle || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeField || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeIndex || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeSubTiddler || \"\");\n\toutput.push(\"}\");\n\treturn output.join(\"\");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nTranscludeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedTiddlers[this.transcludeTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\t\t\n\t}\n};\n\nexports.transclude = TranscludeWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/vars.js": {
"title": "$:/core/modules/widgets/vars.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/vars.js\ntype: application/javascript\nmodule-type: widget\n\nThis widget allows multiple variables to be set in one go:\n\n```\n\\define helloworld() Hello world!\n<$vars greeting=\"Hi\" me={{!!title}} sentence=<<helloworld>>>\n <<greeting>>! I am <<me>> and I say: <<sentence>>\n</$vars>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar VarsWidget = function(parseTreeNode,options) {\n\t// Call the constructor\n\tWidget.call(this);\n\t// Initialise\t\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nVarsWidget.prototype = Object.create(Widget.prototype);\n\n/*\nRender this widget into the DOM\n*/\nVarsWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nVarsWidget.prototype.execute = function() {\n\t// Parse variables\n\tvar self = this;\n\t$tw.utils.each(this.attributes,function(val,key) {\n\t\tif(key.charAt(0) !== \"$\") {\n\t\t\tself.setVariable(key,val);\n\t\t}\n\t});\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nVarsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(Object.keys(changedAttributes).length) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports[\"vars\"] = VarsWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/view.js": {
"title": "$:/core/modules/widgets/view.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/view.js\ntype: application/javascript\nmodule-type: widget\n\nView widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ViewWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nViewWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nViewWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tif(this.text) {\n\t\tvar textNode = this.document.createTextNode(this.text);\n\t\tparent.insertBefore(textNode,nextSibling);\n\t\tthis.domNodes.push(textNode);\n\t} else {\n\t\tthis.makeChildWidgets();\n\t\tthis.renderChildren(parent,nextSibling);\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nViewWidget.prototype.execute = function() {\n\t// Get parameters from our attributes\n\tthis.viewTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.viewSubtiddler = this.getAttribute(\"subtiddler\");\n\tthis.viewField = this.getAttribute(\"field\",\"text\");\n\tthis.viewIndex = this.getAttribute(\"index\");\n\tthis.viewFormat = this.getAttribute(\"format\",\"text\");\n\tthis.viewTemplate = this.getAttribute(\"template\",\"\");\n\tthis.viewMode = this.getAttribute(\"mode\",\"block\");\n\tswitch(this.viewFormat) {\n\t\tcase \"htmlwikified\":\n\t\t\tthis.text = this.getValueAsHtmlWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"plainwikified\":\n\t\t\tthis.text = this.getValueAsPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"htmlencodedplainwikified\":\n\t\t\tthis.text = this.getValueAsHtmlEncodedPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"htmlencoded\":\n\t\t\tthis.text = this.getValueAsHtmlEncoded();\n\t\t\tbreak;\n\t\tcase \"urlencoded\":\n\t\t\tthis.text = this.getValueAsUrlEncoded();\n\t\t\tbreak;\n\t\tcase \"doubleurlencoded\":\n\t\t\tthis.text = this.getValueAsDoubleUrlEncoded();\n\t\t\tbreak;\n\t\tcase \"date\":\n\t\t\tthis.text = this.getValueAsDate(this.viewTemplate);\n\t\t\tbreak;\n\t\tcase \"relativedate\":\n\t\t\tthis.text = this.getValueAsRelativeDate();\n\t\t\tbreak;\n\t\tcase \"stripcomments\":\n\t\t\tthis.text = this.getValueAsStrippedComments();\n\t\t\tbreak;\n\t\tcase \"jsencoded\":\n\t\t\tthis.text = this.getValueAsJsEncoded();\n\t\t\tbreak;\n\t\tdefault: // \"text\"\n\t\t\tthis.text = this.getValueAsText();\n\t\t\tbreak;\n\t}\n};\n\n/*\nThe various formatter functions are baked into this widget for the moment. Eventually they will be replaced by macro functions\n*/\n\n/*\nRetrieve the value of the widget. Options are:\nasString: Optionally return the value as a string\n*/\nViewWidget.prototype.getValue = function(options) {\n\toptions = options || {};\n\tvar value = options.asString ? \"\" : undefined;\n\tif(this.viewIndex) {\n\t\tvalue = this.wiki.extractTiddlerDataItem(this.viewTitle,this.viewIndex);\n\t} else {\n\t\tvar tiddler;\n\t\tif(this.viewSubtiddler) {\n\t\t\ttiddler = this.wiki.getSubTiddler(this.viewTitle,this.viewSubtiddler);\t\n\t\t} else {\n\t\t\ttiddler = this.wiki.getTiddler(this.viewTitle);\n\t\t}\n\t\tif(tiddler) {\n\t\t\tif(this.viewField === \"text\" && !this.viewSubtiddler) {\n\t\t\t\t// Calling getTiddlerText() triggers lazy loading of skinny tiddlers\n\t\t\t\tvalue = this.wiki.getTiddlerText(this.viewTitle);\n\t\t\t} else {\n\t\t\t\tif($tw.utils.hop(tiddler.fields,this.viewField)) {\n\t\t\t\t\tif(options.asString) {\n\t\t\t\t\t\tvalue = tiddler.getFieldString(this.viewField);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvalue = tiddler.fields[this.viewField];\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif(this.viewField === \"title\") {\n\t\t\t\tvalue = this.viewTitle;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\nViewWidget.prototype.getValueAsText = function() {\n\treturn this.getValue({asString: true});\n};\n\nViewWidget.prototype.getValueAsHtmlWikified = function(mode) {\n\treturn this.wiki.renderText(\"text/html\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsPlainWikified = function(mode) {\n\treturn this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsHtmlEncodedPlainWikified = function(mode) {\n\treturn $tw.utils.htmlEncode(this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\n\t\tparentWidget: this\n\t}));\n};\n\nViewWidget.prototype.getValueAsHtmlEncoded = function() {\n\treturn $tw.utils.htmlEncode(this.getValueAsText());\n};\n\nViewWidget.prototype.getValueAsUrlEncoded = function() {\n\treturn encodeURIComponent(this.getValueAsText());\n};\n\nViewWidget.prototype.getValueAsDoubleUrlEncoded = function() {\n\treturn encodeURIComponent(encodeURIComponent(this.getValueAsText()));\n};\n\nViewWidget.prototype.getValueAsDate = function(format) {\n\tformat = format || \"YYYY MM DD 0hh:0mm\";\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\treturn $tw.utils.formatDateString(value,format);\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\nViewWidget.prototype.getValueAsRelativeDate = function(format) {\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\treturn $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description;\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\nViewWidget.prototype.getValueAsStrippedComments = function() {\n\tvar lines = this.getValueAsText().split(\"\\n\"),\n\t\tout = [];\n\tfor(var line=0; line<lines.length; line++) {\n\t\tvar text = lines[line];\n\t\tif(!/^\\s*\\/\\/#/.test(text)) {\n\t\t\tout.push(text);\n\t\t}\n\t}\n\treturn out.join(\"\\n\");\n};\n\nViewWidget.prototype.getValueAsJsEncoded = function() {\n\treturn $tw.utils.stringify(this.getValueAsText());\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nViewWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.template || changedAttributes.format || changedTiddlers[this.viewTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports.view = ViewWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/widget.js": {
"title": "$:/core/modules/widgets/widget.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/widget.js\ntype: application/javascript\nmodule-type: widget\n\nWidget base class\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nCreate a widget object for a parse tree node\n\tparseTreeNode: reference to the parse tree node to be rendered\n\toptions: see below\nOptions include:\n\twiki: mandatory reference to wiki associated with this render tree\n\tparentWidget: optional reference to a parent renderer node for the context chain\n\tdocument: optional document object to use instead of global document\n*/\nvar Widget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInitialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses\n*/\nWidget.prototype.initialise = function(parseTreeNode,options) {\n\t// Bail if parseTreeNode is undefined, meaning that the widget constructor was called without any arguments so that it can be subclassed\n\tif(parseTreeNode === undefined) {\n\t\treturn;\n\t}\n\toptions = options || {};\n\t// Save widget info\n\tthis.parseTreeNode = parseTreeNode;\n\tthis.wiki = options.wiki;\n\tthis.parentWidget = options.parentWidget;\n\tthis.variablesConstructor = function() {};\n\tthis.variablesConstructor.prototype = this.parentWidget ? this.parentWidget.variables : {};\n\tthis.variables = new this.variablesConstructor();\n\tthis.document = options.document;\n\tthis.attributes = {};\n\tthis.children = [];\n\tthis.domNodes = [];\n\tthis.eventListeners = {};\n\t// Hashmap of the widget classes\n\tif(!this.widgetClasses) {\n\t\t// Get widget classes\n\t\tWidget.prototype.widgetClasses = $tw.modules.applyMethods(\"widget\");\n\t\t// Process any subclasses\n\t\t$tw.modules.forEachModuleOfType(\"widget-subclass\",function(title,module) {\n\t\t\tif(module.baseClass) {\n\t\t\t\tvar baseClass = Widget.prototype.widgetClasses[module.baseClass];\n\t\t\t\tif(!baseClass) {\n\t\t\t\t\tthrow \"Module '\" + title + \"' is attemping to extend a non-existent base class '\" + module.baseClass + \"'\";\n\t\t\t\t}\n\t\t\t\tvar subClass = module.constructor;\n\t\t\t\tsubClass.prototype = new baseClass();\n\t\t\t\t$tw.utils.extend(subClass.prototype,module.prototype);\n\t\t\t\tWidget.prototype.widgetClasses[module.name || module.baseClass] = subClass;\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nWidget.prototype.execute = function() {\n\tthis.makeChildWidgets();\n};\n\n/*\nSet the value of a context variable\nname: name of the variable\nvalue: value of the variable\nparams: array of {name:, default:} for each parameter\nisMacroDefinition: true if the variable is set via a \\define macro pragma (and hence should have variable substitution performed)\n*/\nWidget.prototype.setVariable = function(name,value,params,isMacroDefinition) {\n\tthis.variables[name] = {value: value, params: params, isMacroDefinition: !!isMacroDefinition};\n};\n\n/*\nGet the prevailing value of a context variable\nname: name of variable\noptions: see below\nOptions include\nparams: array of {name:, value:} for each parameter\ndefaultValue: default value if the variable is not defined\n\nReturns an object with the following fields:\n\nparams: array of {name:,value:} of parameters passed to wikitext variables\ntext: text of variable, with parameters properly substituted\n*/\nWidget.prototype.getVariableInfo = function(name,options) {\n\toptions = options || {};\n\tvar actualParams = options.params || [],\n\t\tparentWidget = this.parentWidget;\n\t// Check for the variable defined in the parent widget (or an ancestor in the prototype chain)\n\tif(parentWidget && name in parentWidget.variables) {\n\t\tvar variable = parentWidget.variables[name],\n\t\t\tvalue = variable.value,\n\t\t\tparams = this.resolveVariableParameters(variable.params,actualParams);\n\t\t// Substitute any parameters specified in the definition\n\t\t$tw.utils.each(params,function(param) {\n\t\t\tvalue = $tw.utils.replaceString(value,new RegExp(\"\\\\$\" + $tw.utils.escapeRegExp(param.name) + \"\\\\$\",\"mg\"),param.value);\n\t\t});\n\t\t// Only substitute variable references if this variable was defined with the \\define pragma\n\t\tif(variable.isMacroDefinition) {\n\t\t\tvalue = this.substituteVariableReferences(value);\t\t\t\n\t\t}\n\t\treturn {\n\t\t\ttext: value,\n\t\t\tparams: params\n\t\t};\n\t}\n\t// If the variable doesn't exist in the parent widget then look for a macro module\n\treturn {\n\t\ttext: this.evaluateMacroModule(name,actualParams,options.defaultValue)\n\t};\n};\n\n/*\nSimplified version of getVariableInfo() that just returns the text\n*/\nWidget.prototype.getVariable = function(name,options) {\n\treturn this.getVariableInfo(name,options).text;\n};\n\nWidget.prototype.resolveVariableParameters = function(formalParams,actualParams) {\n\tformalParams = formalParams || [];\n\tactualParams = actualParams || [];\n\tvar nextAnonParameter = 0, // Next candidate anonymous parameter in macro call\n\t\tparamInfo, paramValue,\n\t\tresults = [];\n\t// Step through each of the parameters in the macro definition\n\tfor(var p=0; p<formalParams.length; p++) {\n\t\t// Check if we've got a macro call parameter with the same name\n\t\tparamInfo = formalParams[p];\n\t\tparamValue = undefined;\n\t\tfor(var m=0; m<actualParams.length; m++) {\n\t\t\tif(actualParams[m].name === paramInfo.name) {\n\t\t\t\tparamValue = actualParams[m].value;\n\t\t\t}\n\t\t}\n\t\t// If not, use the next available anonymous macro call parameter\n\t\twhile(nextAnonParameter < actualParams.length && actualParams[nextAnonParameter].name) {\n\t\t\tnextAnonParameter++;\n\t\t}\n\t\tif(paramValue === undefined && nextAnonParameter < actualParams.length) {\n\t\t\tparamValue = actualParams[nextAnonParameter++].value;\n\t\t}\n\t\t// If we've still not got a value, use the default, if any\n\t\tparamValue = paramValue || paramInfo[\"default\"] || \"\";\n\t\t// Store the parameter name and value\n\t\tresults.push({name: paramInfo.name, value: paramValue});\n\t}\n\treturn results;\n};\n\nWidget.prototype.substituteVariableReferences = function(text) {\n\tvar self = this;\n\treturn (text || \"\").replace(/\\$\\(([^\\)\\$]+)\\)\\$/g,function(match,p1,offset,string) {\n\t\treturn self.getVariable(p1,{defaultValue: \"\"});\n\t});\n};\n\nWidget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue) {\n\tif($tw.utils.hop($tw.macros,name)) {\n\t\tvar macro = $tw.macros[name],\n\t\t\targs = [];\n\t\tif(macro.params.length > 0) {\n\t\t\tvar nextAnonParameter = 0, // Next candidate anonymous parameter in macro call\n\t\t\t\tparamInfo, paramValue;\n\t\t\t// Step through each of the parameters in the macro definition\n\t\t\tfor(var p=0; p<macro.params.length; p++) {\n\t\t\t\t// Check if we've got a macro call parameter with the same name\n\t\t\t\tparamInfo = macro.params[p];\n\t\t\t\tparamValue = undefined;\n\t\t\t\tfor(var m=0; m<actualParams.length; m++) {\n\t\t\t\t\tif(actualParams[m].name === paramInfo.name) {\n\t\t\t\t\t\tparamValue = actualParams[m].value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If not, use the next available anonymous macro call parameter\n\t\t\t\twhile(nextAnonParameter < actualParams.length && actualParams[nextAnonParameter].name) {\n\t\t\t\t\tnextAnonParameter++;\n\t\t\t\t}\n\t\t\t\tif(paramValue === undefined && nextAnonParameter < actualParams.length) {\n\t\t\t\t\tparamValue = actualParams[nextAnonParameter++].value;\n\t\t\t\t}\n\t\t\t\t// If we've still not got a value, use the default, if any\n\t\t\t\tparamValue = paramValue || paramInfo[\"default\"] || \"\";\n\t\t\t\t// Save the parameter\n\t\t\t\targs.push(paramValue);\n\t\t\t}\n\t\t}\n\t\telse for(var i=0; i<actualParams.length; ++i) {\n\t\t\targs.push(actualParams[i].value);\n\t\t}\n\t\treturn (macro.run.apply(this,args) || \"\").toString();\n\t} else {\n\t\treturn defaultValue;\n\t}\n};\n\n/*\nCheck whether a given context variable value exists in the parent chain\n*/\nWidget.prototype.hasVariable = function(name,value) {\n\tvar node = this;\n\twhile(node) {\n\t\tif($tw.utils.hop(node.variables,name) && node.variables[name].value === value) {\n\t\t\treturn true;\n\t\t}\n\t\tnode = node.parentWidget;\n\t}\n\treturn false;\n};\n\n/*\nConstruct a qualifying string based on a hash of concatenating the values of a given variable in the parent chain\n*/\nWidget.prototype.getStateQualifier = function(name) {\n\tthis.qualifiers = this.qualifiers || Object.create(null);\n\tname = name || \"transclusion\";\n\tif(this.qualifiers[name]) {\n\t\treturn this.qualifiers[name];\n\t} else {\n\t\tvar output = [],\n\t\t\tnode = this;\n\t\twhile(node && node.parentWidget) {\n\t\t\tif($tw.utils.hop(node.parentWidget.variables,name)) {\n\t\t\t\toutput.push(node.getVariable(name));\n\t\t\t}\n\t\t\tnode = node.parentWidget;\n\t\t}\n\t\tvar value = $tw.utils.hashString(output.join(\"\"));\n\t\tthis.qualifiers[name] = value;\n\t\treturn value;\n\t}\n};\n\n/*\nCompute the current values of the attributes of the widget. Returns a hashmap of the names of the attributes that have changed\n*/\nWidget.prototype.computeAttributes = function() {\n\tvar changedAttributes = {},\n\t\tself = this,\n\t\tvalue;\n\t$tw.utils.each(this.parseTreeNode.attributes,function(attribute,name) {\n\t\tif(attribute.type === \"filtered\") {\n\t\t\tvalue = self.wiki.filterTiddlers(attribute.filter,self)[0] || \"\";\n\t\t} else if(attribute.type === \"indirect\") {\n\t\t\tvalue = self.wiki.getTextReference(attribute.textReference,\"\",self.getVariable(\"currentTiddler\"));\n\t\t} else if(attribute.type === \"macro\") {\n\t\t\tvalue = self.getVariable(attribute.value.name,{params: attribute.value.params});\n\t\t} else { // String attribute\n\t\t\tvalue = attribute.value;\n\t\t}\n\t\t// Check whether the attribute has changed\n\t\tif(self.attributes[name] !== value) {\n\t\t\tself.attributes[name] = value;\n\t\t\tchangedAttributes[name] = true;\n\t\t}\n\t});\n\treturn changedAttributes;\n};\n\n/*\nCheck for the presence of an attribute\n*/\nWidget.prototype.hasAttribute = function(name) {\n\treturn $tw.utils.hop(this.attributes,name);\n};\n\n/*\nGet the value of an attribute\n*/\nWidget.prototype.getAttribute = function(name,defaultText) {\n\tif($tw.utils.hop(this.attributes,name)) {\n\t\treturn this.attributes[name];\n\t} else {\n\t\treturn defaultText;\n\t}\n};\n\n/*\nAssign the computed attributes of the widget to a domNode\noptions include:\nexcludeEventAttributes: ignores attributes whose name begins with \"on\"\n*/\nWidget.prototype.assignAttributes = function(domNode,options) {\n\toptions = options || {};\n\tvar self = this;\n\t$tw.utils.each(this.attributes,function(v,a) {\n\t\t// Check exclusions\n\t\tif(options.excludeEventAttributes && a.substr(0,2) === \"on\") {\n\t\t\tv = undefined;\n\t\t}\n\t\tif(v !== undefined) {\n\t\t\tvar b = a.split(\":\");\n\t\t\t// Setting certain attributes can cause a DOM error (eg xmlns on the svg element)\n\t\t\ttry {\n\t\t\t\tif (b.length == 2 && b[0] == \"xlink\"){\n\t\t\t\t\tdomNode.setAttributeNS(\"http://www.w3.org/1999/xlink\",b[1],v);\n\t\t\t\t} else {\n\t\t\t\t\tdomNode.setAttributeNS(null,a,v);\n\t\t\t\t}\n\t\t\t} catch(e) {\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nMake child widgets correspondng to specified parseTreeNodes\n*/\nWidget.prototype.makeChildWidgets = function(parseTreeNodes) {\n\tthis.children = [];\n\tvar self = this;\n\t$tw.utils.each(parseTreeNodes || (this.parseTreeNode && this.parseTreeNode.children),function(childNode) {\n\t\tself.children.push(self.makeChildWidget(childNode));\n\t});\n};\n\n/*\nConstruct the widget object for a parse tree node\n*/\nWidget.prototype.makeChildWidget = function(parseTreeNode) {\n\tvar WidgetClass = this.widgetClasses[parseTreeNode.type];\n\tif(!WidgetClass) {\n\t\tWidgetClass = this.widgetClasses.text;\n\t\tparseTreeNode = {type: \"text\", text: \"Undefined widget '\" + parseTreeNode.type + \"'\"};\n\t}\n\treturn new WidgetClass(parseTreeNode,{\n\t\twiki: this.wiki,\n\t\tvariables: {},\n\t\tparentWidget: this,\n\t\tdocument: this.document\n\t});\n};\n\n/*\nGet the next sibling of this widget\n*/\nWidget.prototype.nextSibling = function() {\n\tif(this.parentWidget) {\n\t\tvar index = this.parentWidget.children.indexOf(this);\n\t\tif(index !== -1 && index < this.parentWidget.children.length-1) {\n\t\t\treturn this.parentWidget.children[index+1];\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nGet the previous sibling of this widget\n*/\nWidget.prototype.previousSibling = function() {\n\tif(this.parentWidget) {\n\t\tvar index = this.parentWidget.children.indexOf(this);\n\t\tif(index !== -1 && index > 0) {\n\t\t\treturn this.parentWidget.children[index-1];\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRender the children of this widget into the DOM\n*/\nWidget.prototype.renderChildren = function(parent,nextSibling) {\n\tvar children = this.children;\n\tfor(var i = 0; i < children.length; i++) {\n\t\tchildren[i].render(parent,nextSibling);\n\t};\n};\n\n/*\nAdd a list of event listeners from an array [{type:,handler:},...]\n*/\nWidget.prototype.addEventListeners = function(listeners) {\n\tvar self = this;\n\t$tw.utils.each(listeners,function(listenerInfo) {\n\t\tself.addEventListener(listenerInfo.type,listenerInfo.handler);\n\t});\n};\n\n/*\nAdd an event listener\n*/\nWidget.prototype.addEventListener = function(type,handler) {\n\tvar self = this;\n\tif(typeof handler === \"string\") { // The handler is a method name on this widget\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn self[handler].call(self,event);\n\t\t};\n\t} else { // The handler is a function\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn handler.call(self,event);\n\t\t};\n\t}\n};\n\n/*\nDispatch an event to a widget. If the widget doesn't handle the event then it is also dispatched to the parent widget\n*/\nWidget.prototype.dispatchEvent = function(event) {\n\t// Dispatch the event if this widget handles it\n\tvar listener = this.eventListeners[event.type];\n\tif(listener) {\n\t\t// Don't propagate the event if the listener returned false\n\t\tif(!listener(event)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Dispatch the event to the parent widget\n\tif(this.parentWidget) {\n\t\treturn this.parentWidget.dispatchEvent(event);\n\t}\n\treturn true;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nRebuild a previously rendered widget\n*/\nWidget.prototype.refreshSelf = function() {\n\tvar nextSibling = this.findNextSiblingDomNode();\n\tthis.removeChildDomNodes();\n\tthis.render(this.parentDomNode,nextSibling);\n};\n\n/*\nRefresh all the children of a widget\n*/\nWidget.prototype.refreshChildren = function(changedTiddlers) {\n\tvar children = this.children,\n\t\trefreshed = false;\n\tfor (var i = 0; i < children.length; i++) {\n\t\trefreshed = children[i].refresh(changedTiddlers) || refreshed;\n\t}\n\treturn refreshed;\n};\n\n/*\nFind the next sibling in the DOM to this widget. This is done by scanning the widget tree through all next siblings and their descendents that share the same parent DOM node\n*/\nWidget.prototype.findNextSiblingDomNode = function(startIndex) {\n\t// Refer to this widget by its index within its parents children\n\tvar parent = this.parentWidget,\n\t\tindex = startIndex !== undefined ? startIndex : parent.children.indexOf(this);\nif(index === -1) {\n\tthrow \"node not found in parents children\";\n}\n\t// Look for a DOM node in the later siblings\n\twhile(++index < parent.children.length) {\n\t\tvar domNode = parent.children[index].findFirstDomNode();\n\t\tif(domNode) {\n\t\t\treturn domNode;\n\t\t}\n\t}\n\t// Go back and look for later siblings of our parent if it has the same parent dom node\n\tvar grandParent = parent.parentWidget;\n\tif(grandParent && parent.parentDomNode === this.parentDomNode) {\n\t\tindex = grandParent.children.indexOf(parent);\n\t\tif(index !== -1) {\n\t\t\treturn parent.findNextSiblingDomNode(index);\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nFind the first DOM node generated by a widget or its children\n*/\nWidget.prototype.findFirstDomNode = function() {\n\t// Return the first dom node of this widget, if we've got one\n\tif(this.domNodes.length > 0) {\n\t\treturn this.domNodes[0];\n\t}\n\t// Otherwise, recursively call our children\n\tfor(var t=0; t<this.children.length; t++) {\n\t\tvar domNode = this.children[t].findFirstDomNode();\n\t\tif(domNode) {\n\t\t\treturn domNode;\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRemove any DOM nodes created by this widget or its children\n*/\nWidget.prototype.removeChildDomNodes = function() {\n\t// If this widget has directly created DOM nodes, delete them and exit. This assumes that any child widgets are contained within the created DOM nodes, which would normally be the case\n\tif(this.domNodes.length > 0) {\n\t\t$tw.utils.each(this.domNodes,function(domNode) {\n\t\t\tdomNode.parentNode.removeChild(domNode);\n\t\t});\n\t\tthis.domNodes = [];\n\t} else {\n\t\t// Otherwise, ask the child widgets to delete their DOM nodes\n\t\t$tw.utils.each(this.children,function(childWidget) {\n\t\t\tchildWidget.removeChildDomNodes();\n\t\t});\n\t}\n};\n\n/*\nInvoke the action widgets that are descendents of the current widget.\n*/\nWidget.prototype.invokeActions = function(triggeringWidget,event) {\n\tvar handled = false;\n\t// For each child widget\n\tfor(var t=0; t<this.children.length; t++) {\n\t\tvar child = this.children[t];\n\t\t// Invoke the child if it is an action widget\n\t\tif(child.invokeAction) {\n\t\t\tchild.refreshSelf();\n\t\t\tif(child.invokeAction(triggeringWidget,event)) {\n\t\t\t\thandled = true;\n\t\t\t}\n\t\t}\n\t\t// Propagate through through the child if it permits it\n\t\tif(child.allowActionPropagation() && child.invokeActions(triggeringWidget,event)) {\n\t\t\thandled = true;\n\t\t}\n\t}\n\treturn handled;\n};\n\n/*\nInvoke the action widgets defined in a string\n*/\nWidget.prototype.invokeActionString = function(actions,triggeringWidget,event,variables) {\n\tactions = actions || \"\";\n\tvar parser = this.wiki.parseText(\"text/vnd.tiddlywiki\",actions,{\n\t\t\tparentWidget: this,\n\t\t\tdocument: this.document\n\t\t}),\n\t\twidgetNode = this.wiki.makeWidget(parser,{\n\t\t\tparentWidget: this,\n\t\t\tdocument: this.document,\n\t\t\tvariables: variables\n\t\t});\n\tvar container = this.document.createElement(\"div\");\n\twidgetNode.render(container,null);\n\treturn widgetNode.invokeActions(this,event);\n};\n\nWidget.prototype.allowActionPropagation = function() {\n\treturn true;\n};\n\nexports.widget = Widget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/widgets/wikify.js": {
"title": "$:/core/modules/widgets/wikify.js",
"text": "/*\\\ntitle: $:/core/modules/widgets/wikify.js\ntype: application/javascript\nmodule-type: widget\n\nWidget to wikify text into a variable\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar WikifyWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nWikifyWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nWikifyWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nWikifyWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.wikifyName = this.getAttribute(\"name\");\n\tthis.wikifyText = this.getAttribute(\"text\");\n\tthis.wikifyType = this.getAttribute(\"type\");\n\tthis.wikifyMode = this.getAttribute(\"mode\",\"block\");\n\tthis.wikifyOutput = this.getAttribute(\"output\",\"text\");\n\t// Create the parse tree\n\tthis.wikifyParser = this.wiki.parseText(this.wikifyType,this.wikifyText,{\n\t\t\tparseAsInline: this.wikifyMode === \"inline\"\n\t\t});\n\t// Create the widget tree \n\tthis.wikifyWidgetNode = this.wiki.makeWidget(this.wikifyParser,{\n\t\t\tdocument: $tw.fakeDocument,\n\t\t\tparentWidget: this\n\t\t});\n\t// Render the widget tree to the container\n\tthis.wikifyContainer = $tw.fakeDocument.createElement(\"div\");\n\tthis.wikifyWidgetNode.render(this.wikifyContainer,null);\n\tthis.wikifyResult = this.getResult();\n\t// Set context variable\n\tthis.setVariable(this.wikifyName,this.wikifyResult);\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nReturn the result string\n*/\nWikifyWidget.prototype.getResult = function() {\n\tvar result;\n\tswitch(this.wikifyOutput) {\n\t\tcase \"text\":\n\t\t\tresult = this.wikifyContainer.textContent;\n\t\t\tbreak;\n\t\tcase \"formattedtext\":\n\t\t\tresult = this.wikifyContainer.formattedTextContent;\n\t\t\tbreak;\n\t\tcase \"html\":\n\t\t\tresult = this.wikifyContainer.innerHTML;\n\t\t\tbreak;\n\t\tcase \"parsetree\":\n\t\t\tresult = JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces);\n\t\t\tbreak;\n\t\tcase \"widgettree\":\n\t\t\tresult = JSON.stringify(this.getWidgetTree(),0,$tw.config.preferences.jsonSpaces);\n\t\t\tbreak;\n\t}\n\treturn result;\n};\n\n/*\nReturn a string of the widget tree\n*/\nWikifyWidget.prototype.getWidgetTree = function() {\n\tvar copyNode = function(widgetNode,resultNode) {\n\t\t\tvar type = widgetNode.parseTreeNode.type;\n\t\t\tresultNode.type = type;\n\t\t\tswitch(type) {\n\t\t\t\tcase \"element\":\n\t\t\t\t\tresultNode.tag = widgetNode.parseTreeNode.tag;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"text\":\n\t\t\t\t\tresultNode.text = widgetNode.parseTreeNode.text;\n\t\t\t\t\tbreak;\t\n\t\t\t}\n\t\t\tif(Object.keys(widgetNode.attributes || {}).length > 0) {\n\t\t\t\tresultNode.attributes = {};\n\t\t\t\t$tw.utils.each(widgetNode.attributes,function(attr,attrName) {\n\t\t\t\t\tresultNode.attributes[attrName] = widgetNode.getAttribute(attrName);\n\t\t\t\t});\n\t\t\t}\n\t\t\tif(Object.keys(widgetNode.children || {}).length > 0) {\n\t\t\t\tresultNode.children = [];\n\t\t\t\t$tw.utils.each(widgetNode.children,function(widgetChildNode) {\n\t\t\t\t\tvar node = {};\n\t\t\t\t\tresultNode.children.push(node);\n\t\t\t\t\tcopyNode(widgetChildNode,node);\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tresults = {};\n\tcopyNode(this.wikifyWidgetNode,results);\n\treturn results;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nWikifyWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// Refresh ourselves entirely if any of our attributes have changed\n\tif(changedAttributes.name || changedAttributes.text || changedAttributes.type || changedAttributes.mode || changedAttributes.output) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\t// Refresh the widget tree\n\t\tif(this.wikifyWidgetNode.refresh(changedTiddlers)) {\n\t\t\t// Check if there was any change\n\t\t\tvar result = this.getResult();\n\t\t\tif(result !== this.wikifyResult) {\n\t\t\t\t// If so, save the change\n\t\t\t\tthis.wikifyResult = result;\n\t\t\t\tthis.setVariable(this.wikifyName,this.wikifyResult);\n\t\t\t\t// Refresh each of our child widgets\n\t\t\t\t$tw.utils.each(this.children,function(childWidget) {\n\t\t\t\t\tchildWidget.refreshSelf();\n\t\t\t\t});\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// Just refresh the children\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.wikify = WikifyWidget;\n\n})();\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/core/modules/wiki-bulkops.js": {
"title": "$:/core/modules/wiki-bulkops.js",
"text": "/*\\\ntitle: $:/core/modules/wiki-bulkops.js\ntype: application/javascript\nmodule-type: wikimethod\n\nBulk tiddler operations such as rename.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nRename a tiddler, and relink any tags or lists that reference it.\n*/\nfunction renameTiddler(fromTitle,toTitle,options) {\n\tfromTitle = (fromTitle || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\toptions = options || {};\n\tif(fromTitle && toTitle && fromTitle !== toTitle) {\n\t\t// Rename the tiddler itself\n\t\tvar oldTiddler = this.getTiddler(fromTitle),\n\t\t\tnewTiddler = new $tw.Tiddler(oldTiddler,{title: toTitle},this.getModificationFields());\n\t\tnewTiddler = $tw.hooks.invokeHook(\"th-renaming-tiddler\",newTiddler,oldTiddler);\n\t\tthis.addTiddler(newTiddler);\n\t\tthis.deleteTiddler(fromTitle);\n\t\t// Rename any tags or lists that reference it\n\t\tthis.relinkTiddler(fromTitle,toTitle,options)\n\t}\n}\n\n/*\nRelink any tags or lists that reference a given tiddler\n*/\nfunction relinkTiddler(fromTitle,toTitle,options) {\n\tvar self = this;\n\tfromTitle = (fromTitle || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\toptions = options || {};\n\tif(fromTitle && toTitle && fromTitle !== toTitle) {\n\t\tthis.each(function(tiddler,title) {\n\t\t\tvar type = tiddler.fields.type || \"\";\n\t\t\t// Don't touch plugins or JavaScript modules\n\t\t\tif(!tiddler.fields[\"plugin-type\"] && type !== \"application/javascript\") {\n\t\t\t\tvar tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined,\n\t\t\t\t\tlist = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined,\n\t\t\t\t\tisModified = false;\n\t\t\t\tif(!options.dontRenameInTags) {\n\t\t\t\t\t// Rename tags\n\t\t\t\t\t$tw.utils.each(tags,function (title,index) {\n\t\t\t\t\t\tif(title === fromTitle) {\nconsole.log(\"Renaming tag '\" + tags[index] + \"' to '\" + toTitle + \"' of tiddler '\" + tiddler.fields.title + \"'\");\n\t\t\t\t\t\t\ttags[index] = toTitle;\n\t\t\t\t\t\t\tisModified = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif(!options.dontRenameInLists) {\n\t\t\t\t\t// Rename lists\n\t\t\t\t\t$tw.utils.each(list,function (title,index) {\n\t\t\t\t\t\tif(title === fromTitle) {\nconsole.log(\"Renaming list item '\" + list[index] + \"' to '\" + toTitle + \"' of tiddler '\" + tiddler.fields.title + \"'\");\n\t\t\t\t\t\t\tlist[index] = toTitle;\n\t\t\t\t\t\t\tisModified = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif(isModified) {\n\t\t\t\t\tvar newTiddler = new $tw.Tiddler(tiddler,{tags: tags, list: list},self.getModificationFields())\n\t\t\t\t\tnewTiddler = $tw.hooks.invokeHook(\"th-relinking-tiddler\",newTiddler,tiddler);\n\t\t\t\t\tself.addTiddler(newTiddler);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n};\n\nexports.renameTiddler = renameTiddler;\nexports.relinkTiddler = relinkTiddler;\n\n})();\n",
"type": "application/javascript",
"module-type": "wikimethod"
},
"$:/core/modules/wiki.js": {
"title": "$:/core/modules/wiki.js",
"text": "/*\\\ntitle: $:/core/modules/wiki.js\ntype: application/javascript\nmodule-type: wikimethod\n\nExtension methods for the $tw.Wiki object\n\nAdds the following properties to the wiki object:\n\n* `eventListeners` is a hashmap by type of arrays of listener functions\n* `changedTiddlers` is a hashmap describing changes to named tiddlers since wiki change events were last dispatched. Each entry is a hashmap containing two fields:\n\tmodified: true/false\n\tdeleted: true/false\n* `changeCount` is a hashmap by tiddler title containing a numerical index that starts at zero and is incremented each time a tiddler is created changed or deleted\n* `caches` is a hashmap by tiddler title containing a further hashmap of named cache objects. Caches are automatically cleared when a tiddler is modified or deleted\n* `globalCache` is a hashmap by cache name of cache objects that are cleared whenever any tiddler change occurs\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nvar USER_NAME_TITLE = \"$:/status/UserName\",\n\tTIMESTAMP_DISABLE_TITLE = \"$:/config/TimestampDisable\";\n\n/*\nAdd available indexers to this wiki\n*/\nexports.addIndexersToWiki = function() {\n\tvar self = this;\n\t$tw.utils.each($tw.modules.applyMethods(\"indexer\"),function(Indexer,name) {\n\t\tself.addIndexer(new Indexer(self),name);\n\t});\n};\n\n/*\nGet the value of a text reference. Text references can have any of these forms:\n\t<tiddlertitle>\n\t<tiddlertitle>!!<fieldname>\n\t!!<fieldname> - specifies a field of the current tiddlers\n\t<tiddlertitle>##<index>\n*/\nexports.getTextReference = function(textRef,defaultText,currTiddlerTitle) {\n\tvar tr = $tw.utils.parseTextReference(textRef),\n\t\ttitle = tr.title || currTiddlerTitle;\n\tif(tr.field) {\n\t\tvar tiddler = this.getTiddler(title);\n\t\tif(tr.field === \"title\") { // Special case so we can return the title of a non-existent tiddler\n\t\t\treturn title;\n\t\t} else if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) {\n\t\t\treturn tiddler.getFieldString(tr.field);\n\t\t} else {\n\t\t\treturn defaultText;\n\t\t}\n\t} else if(tr.index) {\n\t\treturn this.extractTiddlerDataItem(title,tr.index,defaultText);\n\t} else {\n\t\treturn this.getTiddlerText(title,defaultText);\n\t}\n};\n\nexports.setTextReference = function(textRef,value,currTiddlerTitle) {\n\tvar tr = $tw.utils.parseTextReference(textRef),\n\t\ttitle = tr.title || currTiddlerTitle;\n\tthis.setText(title,tr.field,tr.index,value);\n};\n\nexports.setText = function(title,field,index,value,options) {\n\toptions = options || {};\n\tvar creationFields = options.suppressTimestamp ? {} : this.getCreationFields(),\n\t\tmodificationFields = options.suppressTimestamp ? {} : this.getModificationFields();\n\t// Check if it is a reference to a tiddler field\n\tif(index) {\n\t\tvar data = this.getTiddlerData(title,Object.create(null));\n\t\tif(value !== undefined) {\n\t\t\tdata[index] = value;\n\t\t} else {\n\t\t\tdelete data[index];\n\t\t}\n\t\tthis.setTiddlerData(title,data,modificationFields);\n\t} else {\n\t\tvar tiddler = this.getTiddler(title),\n\t\t\tfields = {title: title};\n\t\tfields[field || \"text\"] = value;\n\t\tthis.addTiddler(new $tw.Tiddler(creationFields,tiddler,fields,modificationFields));\n\t}\n};\n\nexports.deleteTextReference = function(textRef,currTiddlerTitle) {\n\tvar tr = $tw.utils.parseTextReference(textRef),\n\t\ttitle,tiddler,fields;\n\t// Check if it is a reference to a tiddler\n\tif(tr.title && !tr.field) {\n\t\tthis.deleteTiddler(tr.title);\n\t// Else check for a field reference\n\t} else if(tr.field) {\n\t\ttitle = tr.title || currTiddlerTitle;\n\t\ttiddler = this.getTiddler(title);\n\t\tif(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) {\n\t\t\tfields = Object.create(null);\n\t\t\tfields[tr.field] = undefined;\n\t\t\tthis.addTiddler(new $tw.Tiddler(tiddler,fields,this.getModificationFields()));\n\t\t}\n\t}\n};\n\nexports.addEventListener = function(type,listener) {\n\tthis.eventListeners = this.eventListeners || {};\n\tthis.eventListeners[type] = this.eventListeners[type] || [];\n\tthis.eventListeners[type].push(listener);\t\n};\n\nexports.removeEventListener = function(type,listener) {\n\tvar listeners = this.eventListeners[type];\n\tif(listeners) {\n\t\tvar p = listeners.indexOf(listener);\n\t\tif(p !== -1) {\n\t\t\tlisteners.splice(p,1);\n\t\t}\n\t}\n};\n\nexports.dispatchEvent = function(type /*, args */) {\n\tvar args = Array.prototype.slice.call(arguments,1),\n\t\tlisteners = this.eventListeners[type];\n\tif(listeners) {\n\t\tfor(var p=0; p<listeners.length; p++) {\n\t\t\tvar listener = listeners[p];\n\t\t\tlistener.apply(listener,args);\n\t\t}\n\t}\n};\n\n/*\nCauses a tiddler to be marked as changed, incrementing the change count, and triggers event handlers.\nThis method should be called after the changes it describes have been made to the wiki.tiddlers[] array.\n\ttitle: Title of tiddler\n\tisDeleted: defaults to false (meaning the tiddler has been created or modified),\n\t\ttrue if the tiddler has been deleted\n*/\nexports.enqueueTiddlerEvent = function(title,isDeleted) {\n\t// Record the touch in the list of changed tiddlers\n\tthis.changedTiddlers = this.changedTiddlers || Object.create(null);\n\tthis.changedTiddlers[title] = this.changedTiddlers[title] || Object.create(null);\n\tthis.changedTiddlers[title][isDeleted ? \"deleted\" : \"modified\"] = true;\n\t// Increment the change count\n\tthis.changeCount = this.changeCount || Object.create(null);\n\tif($tw.utils.hop(this.changeCount,title)) {\n\t\tthis.changeCount[title]++;\n\t} else {\n\t\tthis.changeCount[title] = 1;\n\t}\n\t// Trigger events\n\tthis.eventListeners = this.eventListeners || {};\n\tif(!this.eventsTriggered) {\n\t\tvar self = this;\n\t\t$tw.utils.nextTick(function() {\n\t\t\tvar changes = self.changedTiddlers;\n\t\t\tself.changedTiddlers = Object.create(null);\n\t\t\tself.eventsTriggered = false;\n\t\t\tif($tw.utils.count(changes) > 0) {\n\t\t\t\tself.dispatchEvent(\"change\",changes);\n\t\t\t}\n\t\t});\n\t\tthis.eventsTriggered = true;\n\t}\n};\n\nexports.getSizeOfTiddlerEventQueue = function() {\n\treturn $tw.utils.count(this.changedTiddlers);\n};\n\nexports.clearTiddlerEventQueue = function() {\n\tthis.changedTiddlers = Object.create(null);\n\tthis.changeCount = Object.create(null);\n};\n\nexports.getChangeCount = function(title) {\n\tthis.changeCount = this.changeCount || Object.create(null);\n\tif($tw.utils.hop(this.changeCount,title)) {\n\t\treturn this.changeCount[title];\n\t} else {\n\t\treturn 0;\n\t}\n};\n\n/*\nGenerate an unused title from the specified base\n*/\nexports.generateNewTitle = function(baseTitle,options) {\n\toptions = options || {};\n\tvar c = 0,\n\t\ttitle = baseTitle;\n\twhile(this.tiddlerExists(title) || this.isShadowTiddler(title) || this.findDraft(title)) {\n\t\ttitle = baseTitle + \n\t\t\t(options.prefix || \" \") + \n\t\t\t(++c);\n\t}\n\treturn title;\n};\n\nexports.isSystemTiddler = function(title) {\n\treturn title && title.indexOf(\"$:/\") === 0;\n};\n\nexports.isTemporaryTiddler = function(title) {\n\treturn title && title.indexOf(\"$:/temp/\") === 0;\n};\n\nexports.isImageTiddler = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\t\t\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/vnd.tiddlywiki\"];\n\t\treturn !!contentTypeInfo && contentTypeInfo.flags.indexOf(\"image\") !== -1;\n\t} else {\n\t\treturn null;\n\t}\n};\n\n/*\nLike addTiddler() except it will silently reject any plugin tiddlers that are older than the currently loaded version. Returns true if the tiddler was imported\n*/\nexports.importTiddler = function(tiddler) {\n\tvar existingTiddler = this.getTiddler(tiddler.fields.title);\n\t// Check if we're dealing with a plugin\n\tif(tiddler && tiddler.hasField(\"plugin-type\") && tiddler.hasField(\"version\") && existingTiddler && existingTiddler.hasField(\"plugin-type\") && existingTiddler.hasField(\"version\")) {\n\t\t// Reject the incoming plugin if it is older\n\t\tif(!$tw.utils.checkVersions(tiddler.fields.version,existingTiddler.fields.version)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Fall through to adding the tiddler\n\tthis.addTiddler(tiddler);\n\treturn true;\n};\n\n/*\nReturn a hashmap of the fields that should be set when a tiddler is created\n*/\nexports.getCreationFields = function() {\n\tif(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,\"\").toLowerCase() !== \"yes\") {\n\t\tvar fields = {\n\t\t\t\tcreated: new Date()\n\t\t\t},\n\t\t\tcreator = this.getTiddlerText(USER_NAME_TITLE);\n\t\tif(creator) {\n\t\t\tfields.creator = creator;\n\t\t}\n\t\treturn fields;\n\t} else {\n\t\treturn {};\n\t}\n};\n\n/*\nReturn a hashmap of the fields that should be set when a tiddler is modified\n*/\nexports.getModificationFields = function() {\n\tif(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,\"\").toLowerCase() !== \"yes\") {\n\t\tvar fields = Object.create(null),\n\t\t\tmodifier = this.getTiddlerText(USER_NAME_TITLE);\n\t\tfields.modified = new Date();\n\t\tif(modifier) {\n\t\t\tfields.modifier = modifier;\n\t\t}\n\t\treturn fields;\n\t} else {\n\t\treturn {};\n\t}\n};\n\n/*\nReturn a sorted array of tiddler titles. Options include:\nsortField: field to sort by\nexcludeTag: tag to exclude\nincludeSystem: whether to include system tiddlers (defaults to false)\n*/\nexports.getTiddlers = function(options) {\n\toptions = options || Object.create(null);\n\tvar self = this,\n\t\tsortField = options.sortField || \"title\",\n\t\ttiddlers = [], t, titles = [];\n\tthis.each(function(tiddler,title) {\n\t\tif(options.includeSystem || !self.isSystemTiddler(title)) {\n\t\t\tif(!options.excludeTag || !tiddler.hasTag(options.excludeTag)) {\n\t\t\t\ttiddlers.push(tiddler);\n\t\t\t}\n\t\t}\n\t});\n\ttiddlers.sort(function(a,b) {\n\t\tvar aa = a.fields[sortField].toLowerCase() || \"\",\n\t\t\tbb = b.fields[sortField].toLowerCase() || \"\";\n\t\tif(aa < bb) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(aa > bb) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t});\n\tfor(t=0; t<tiddlers.length; t++) {\n\t\ttitles.push(tiddlers[t].fields.title);\n\t}\n\treturn titles;\n};\n\nexports.countTiddlers = function(excludeTag) {\n\tvar tiddlers = this.getTiddlers({excludeTag: excludeTag});\n\treturn $tw.utils.count(tiddlers);\n};\n\n/*\nReturns a function iterator(callback) that iterates through the specified titles, and invokes the callback with callback(tiddler,title)\n*/\nexports.makeTiddlerIterator = function(titles) {\n\tvar self = this;\n\tif(!$tw.utils.isArray(titles)) {\n\t\ttitles = Object.keys(titles);\n\t} else {\n\t\ttitles = titles.slice(0);\n\t}\n\treturn function(callback) {\n\t\ttitles.forEach(function(title) {\n\t\t\tcallback(self.getTiddler(title),title);\n\t\t});\n\t};\n};\n\n/*\nSort an array of tiddler titles by a specified field\n\ttitles: array of titles (sorted in place)\n\tsortField: name of field to sort by\n\tisDescending: true if the sort should be descending\n\tisCaseSensitive: true if the sort should consider upper and lower case letters to be different\n*/\nexports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,isNumeric,isAlphaNumeric) {\n\tvar self = this;\n\ttitles.sort(function(a,b) {\n\t\tvar x,y,\n\t\t\tcompareNumbers = function(x,y) {\n\t\t\t\tvar result = \n\t\t\t\t\tisNaN(x) && !isNaN(y) ? (isDescending ? -1 : 1) :\n\t\t\t\t\t!isNaN(x) && isNaN(y) ? (isDescending ? 1 : -1) :\n\t\t\t\t\t\t\t\t\t\t\t(isDescending ? y - x : x - y);\n\t\t\t\treturn result;\n\t\t\t};\n\t\tif(sortField !== \"title\") {\n\t\t\tvar tiddlerA = self.getTiddler(a),\n\t\t\t\ttiddlerB = self.getTiddler(b);\n\t\t\tif(tiddlerA) {\n\t\t\t\ta = tiddlerA.fields[sortField] || \"\";\n\t\t\t} else {\n\t\t\t\ta = \"\";\n\t\t\t}\n\t\t\tif(tiddlerB) {\n\t\t\t\tb = tiddlerB.fields[sortField] || \"\";\n\t\t\t} else {\n\t\t\t\tb = \"\";\n\t\t\t}\n\t\t}\n\t\tx = Number(a);\n\t\ty = Number(b);\n\t\tif(isNumeric && (!isNaN(x) || !isNaN(y))) {\n\t\t\treturn compareNumbers(x,y);\n\t\t} else if(isAlphaNumeric) {\n\t\t\treturn isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: \"base\"}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: \"base\"});\n\t\t} else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) {\n\t\t\treturn isDescending ? b - a : a - b;\n\t\t} else {\n\t\t\ta = String(a);\n\t\t\tb = String(b);\n\t\t\tif(!isCaseSensitive) {\n\t\t\t\ta = a.toLowerCase();\n\t\t\t\tb = b.toLowerCase();\n\t\t\t}\n\t\t\treturn isDescending ? b.localeCompare(a) : a.localeCompare(b);\n\t\t}\n\t});\n};\n\n/*\nFor every tiddler invoke a callback(title,tiddler) with `this` set to the wiki object. Options include:\nsortField: field to sort by\nexcludeTag: tag to exclude\nincludeSystem: whether to include system tiddlers (defaults to false)\n*/\nexports.forEachTiddler = function(/* [options,]callback */) {\n\tvar arg = 0,\n\t\toptions = arguments.length >= 2 ? arguments[arg++] : {},\n\t\tcallback = arguments[arg++],\n\t\ttitles = this.getTiddlers(options),\n\t\tt, tiddler;\n\tfor(t=0; t<titles.length; t++) {\n\t\ttiddler = this.getTiddler(titles[t]);\n\t\tif(tiddler) {\n\t\t\tcallback.call(this,tiddler.fields.title,tiddler);\n\t\t}\n\t}\n};\n\n/*\nReturn an array of tiddler titles that are directly linked from the specified tiddler\n*/\nexports.getTiddlerLinks = function(title) {\n\tvar self = this;\n\t// We'll cache the links so they only get computed if the tiddler changes\n\treturn this.getCacheForTiddler(title,\"links\",function() {\n\t\t// Parse the tiddler\n\t\tvar parser = self.parseTiddler(title);\n\t\t// Count up the links\n\t\tvar links = [],\n\t\t\tcheckParseTree = function(parseTree) {\n\t\t\t\tfor(var t=0; t<parseTree.length; t++) {\n\t\t\t\t\tvar parseTreeNode = parseTree[t];\n\t\t\t\t\tif(parseTreeNode.type === \"link\" && parseTreeNode.attributes.to && parseTreeNode.attributes.to.type === \"string\") {\n\t\t\t\t\t\tvar value = parseTreeNode.attributes.to.value;\n\t\t\t\t\t\tif(links.indexOf(value) === -1) {\n\t\t\t\t\t\t\tlinks.push(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(parseTreeNode.children) {\n\t\t\t\t\t\tcheckParseTree(parseTreeNode.children);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\tif(parser) {\n\t\t\tcheckParseTree(parser.tree);\n\t\t}\n\t\treturn links;\n\t});\n};\n\n/*\nReturn an array of tiddler titles that link to the specified tiddler\n*/\nexports.getTiddlerBacklinks = function(targetTitle) {\n\tvar self = this,\n\t\tbacklinks = [];\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\tif(links.indexOf(targetTitle) !== -1) {\n\t\t\tbacklinks.push(title);\n\t\t}\n\t});\n\treturn backlinks;\n};\n\n/*\nReturn a hashmap of tiddler titles that are referenced but not defined. Each value is the number of times the missing tiddler is referenced\n*/\nexports.getMissingTitles = function() {\n\tvar self = this,\n\t\tmissing = [];\n// We should cache the missing tiddler list, even if we recreate it every time any tiddler is modified\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tif((!self.tiddlerExists(link) && !self.isShadowTiddler(link)) && missing.indexOf(link) === -1) {\n\t\t\t\tmissing.push(link);\n\t\t\t}\n\t\t});\n\t});\n\treturn missing;\n};\n\nexports.getOrphanTitles = function() {\n\tvar self = this,\n\t\torphans = this.getTiddlers();\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tvar p = orphans.indexOf(link);\n\t\t\tif(p !== -1) {\n\t\t\t\torphans.splice(p,1);\n\t\t\t}\n\t\t});\n\t});\n\treturn orphans; // Todo\n};\n\n/*\nRetrieves a list of the tiddler titles that are tagged with a given tag\n*/\nexports.getTiddlersWithTag = function(tag) {\n\t// Try to use the indexer\n\tvar self = this,\n\t\ttagIndexer = this.getIndexer(\"TagIndexer\"),\n\t\tresults = tagIndexer && tagIndexer.subIndexers[3].lookup(tag);\n\tif(!results) {\n\t\t// If not available, perform a manual scan\n\t\tresults = this.getGlobalCache(\"taglist-\" + tag,function() {\n\t\t\tvar tagmap = self.getTagMap();\n\t\t\treturn self.sortByList(tagmap[tag],tag);\n\t\t});\n\t}\n\treturn results;\n};\n\n/*\nGet a hashmap by tag of arrays of tiddler titles\n*/\nexports.getTagMap = function() {\n\tvar self = this;\n\treturn this.getGlobalCache(\"tagmap\",function() {\n\t\tvar tags = Object.create(null),\n\t\t\tstoreTags = function(tagArray,title) {\n\t\t\t\tif(tagArray) {\n\t\t\t\t\tfor(var index=0; index<tagArray.length; index++) {\n\t\t\t\t\t\tvar tag = tagArray[index];\n\t\t\t\t\t\tif($tw.utils.hop(tags,tag)) {\n\t\t\t\t\t\t\ttags[tag].push(title);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttags[tag] = [title];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\ttitle, tiddler;\n\t\t// Collect up all the tags\n\t\tself.eachShadow(function(tiddler,title) {\n\t\t\tif(!self.tiddlerExists(title)) {\n\t\t\t\ttiddler = self.getTiddler(title);\n\t\t\t\tstoreTags(tiddler.fields.tags,title);\n\t\t\t}\n\t\t});\n\t\tself.each(function(tiddler,title) {\n\t\t\tstoreTags(tiddler.fields.tags,title);\n\t\t});\n\t\treturn tags;\n\t});\n};\n\n/*\nLookup a given tiddler and return a list of all the tiddlers that include it in the specified list field\n*/\nexports.findListingsOfTiddler = function(targetTitle,fieldName) {\n\tfieldName = fieldName || \"list\";\n\tvar titles = [];\n\tthis.each(function(tiddler,title) {\n\t\tvar list = $tw.utils.parseStringArray(tiddler.fields[fieldName]);\n\t\tif(list && list.indexOf(targetTitle) !== -1) {\n\t\t\ttitles.push(title);\n\t\t}\n\t});\n\treturn titles;\n};\n\n/*\nSorts an array of tiddler titles according to an ordered list\n*/\nexports.sortByList = function(array,listTitle) {\n\tvar self = this,\n\t\treplacedTitles = Object.create(null);\n\tfunction replaceItem(title) {\n\t\tif(!$tw.utils.hop(replacedTitles, title)) {\n\t\t\treplacedTitles[title] = true;\n\t\t\tvar newPos = -1,\n\t\t\t\ttiddler = self.getTiddler(title);\n\t\t\tif(tiddler) {\n\t\t\t\tvar beforeTitle = tiddler.fields[\"list-before\"],\n\t\t\t\t\tafterTitle = tiddler.fields[\"list-after\"];\n\t\t\t\tif(beforeTitle === \"\") {\n\t\t\t\t\tnewPos = 0;\n\t\t\t\t} else if(afterTitle === \"\") {\n\t\t\t\t\tnewPos = titles.length;\n\t\t\t\t} else if(beforeTitle) {\n\t\t\t\t\treplaceItem(beforeTitle);\n\t\t\t\t\tnewPos = titles.indexOf(beforeTitle);\n\t\t\t\t} else if(afterTitle) {\n\t\t\t\t\treplaceItem(afterTitle);\n\t\t\t\t\tnewPos = titles.indexOf(afterTitle);\n\t\t\t\t\tif(newPos >= 0) {\n\t\t\t\t\t\t++newPos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// We get the currPos //after// figuring out the newPos, because recursive replaceItem calls might alter title's currPos\n\t\t\t\tvar currPos = titles.indexOf(title);\n\t\t\t\tif(newPos === -1) {\n\t\t\t\t\tnewPos = currPos;\n\t\t\t\t}\n\t\t\t\tif(currPos >= 0 && newPos !== currPos) {\n\t\t\t\t\ttitles.splice(currPos,1);\n\t\t\t\t\tif(newPos >= currPos) {\n\t\t\t\t\t\tnewPos--;\n\t\t\t\t\t}\n\t\t\t\t\ttitles.splice(newPos,0,title);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvar list = this.getTiddlerList(listTitle);\n\tif(!array || array.length === 0) {\n\t\treturn [];\n\t} else {\n\t\tvar titles = [], t, title;\n\t\t// First place any entries that are present in the list\n\t\tfor(t=0; t<list.length; t++) {\n\t\t\ttitle = list[t];\n\t\t\tif(array.indexOf(title) !== -1) {\n\t\t\t\ttitles.push(title);\n\t\t\t}\n\t\t}\n\t\t// Then place any remaining entries\n\t\tfor(t=0; t<array.length; t++) {\n\t\t\ttitle = array[t];\n\t\t\tif(list.indexOf(title) === -1) {\n\t\t\t\ttitles.push(title);\n\t\t\t}\n\t\t}\n\t\t// Finally obey the list-before and list-after fields of each tiddler in turn\n\t\tvar sortedTitles = titles.slice(0);\n\t\tfor(t=0; t<sortedTitles.length; t++) {\n\t\t\ttitle = sortedTitles[t];\n\t\t\treplaceItem(title);\n\t\t}\n\t\treturn titles;\n\t}\n};\n\nexports.getSubTiddler = function(title,subTiddlerTitle) {\n\tvar bundleInfo = this.getPluginInfo(title) || this.getTiddlerDataCached(title);\n\tif(bundleInfo && bundleInfo.tiddlers) {\n\t\tvar subTiddler = bundleInfo.tiddlers[subTiddlerTitle];\n\t\tif(subTiddler) {\n\t\t\treturn new $tw.Tiddler(subTiddler);\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRetrieve a tiddler as a JSON string of the fields\n*/\nexports.getTiddlerAsJson = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\n\t\tvar fields = Object.create(null);\n\t\t$tw.utils.each(tiddler.fields,function(value,name) {\n\t\t\tfields[name] = tiddler.getFieldString(name);\n\t\t});\n\t\treturn JSON.stringify(fields);\n\t} else {\n\t\treturn JSON.stringify({title: title});\n\t}\n};\n\nexports.getTiddlersAsJson = function(filter) {\n\tvar tiddlers = this.filterTiddlers(filter),\n\t\tdata = [];\n\tfor(var t=0;t<tiddlers.length; t++) {\n\t\tvar tiddler = this.getTiddler(tiddlers[t]);\n\t\tif(tiddler) {\n\t\t\tvar fields = new Object();\n\t\t\tfor(var field in tiddler.fields) {\n\t\t\t\tfields[field] = tiddler.getFieldString(field);\n\t\t\t}\n\t\t\tdata.push(fields);\n\t\t}\n\t}\n\treturn JSON.stringify(data,null,$tw.config.preferences.jsonSpaces);\n};\n\n/*\nGet the content of a tiddler as a JavaScript object. How this is done depends on the type of the tiddler:\n\napplication/json: the tiddler JSON is parsed into an object\napplication/x-tiddler-dictionary: the tiddler is parsed as sequence of name:value pairs\n\nOther types currently just return null.\n\ntitleOrTiddler: string tiddler title or a tiddler object\ndefaultData: default data to be returned if the tiddler is missing or doesn't contain data\n\nNote that the same value is returned for repeated calls for the same tiddler data. The value is frozen to prevent modification; otherwise modifications would be visible to all callers\n*/\nexports.getTiddlerDataCached = function(titleOrTiddler,defaultData) {\n\tvar self = this,\n\t\ttiddler = titleOrTiddler;\n\tif(!(tiddler instanceof $tw.Tiddler)) {\n\t\ttiddler = this.getTiddler(tiddler);\t\n\t}\n\tif(tiddler) {\n\t\treturn this.getCacheForTiddler(tiddler.fields.title,\"data\",function() {\n\t\t\t// Return the frozen value\n\t\t\tvar value = self.getTiddlerData(tiddler.fields.title,undefined);\n\t\t\t$tw.utils.deepFreeze(value);\n\t\t\treturn value;\n\t\t}) || defaultData;\n\t} else {\n\t\treturn defaultData;\n\t}\n};\n\n/*\nAlternative, uncached version of getTiddlerDataCached(). The return value can be mutated freely and reused\n*/\nexports.getTiddlerData = function(titleOrTiddler,defaultData) {\n\tvar tiddler = titleOrTiddler,\n\t\tdata;\n\tif(!(tiddler instanceof $tw.Tiddler)) {\n\t\ttiddler = this.getTiddler(tiddler);\t\n\t}\n\tif(tiddler && tiddler.fields.text) {\n\t\tswitch(tiddler.fields.type) {\n\t\t\tcase \"application/json\":\n\t\t\t\t// JSON tiddler\n\t\t\t\ttry {\n\t\t\t\t\tdata = JSON.parse(tiddler.fields.text);\n\t\t\t\t} catch(ex) {\n\t\t\t\t\treturn defaultData;\n\t\t\t\t}\n\t\t\t\treturn data;\n\t\t\tcase \"application/x-tiddler-dictionary\":\n\t\t\t\treturn $tw.utils.parseFields(tiddler.fields.text);\n\t\t}\n\t}\n\treturn defaultData;\n};\n\n/*\nExtract an indexed field from within a data tiddler\n*/\nexports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) {\n\tvar data = this.getTiddlerDataCached(titleOrTiddler,Object.create(null)),\n\t\ttext;\n\tif(data && $tw.utils.hop(data,index)) {\n\t\ttext = data[index];\n\t}\n\tif(typeof text === \"string\" || typeof text === \"number\") {\n\t\treturn text.toString();\n\t} else {\n\t\treturn defaultText;\n\t}\n};\n\n/*\nSet a tiddlers content to a JavaScript object. Currently this is done by setting the tiddler's type to \"application/json\" and setting the text to the JSON text of the data.\ntitle: title of tiddler\ndata: object that can be serialised to JSON\nfields: optional hashmap of additional tiddler fields to be set\n*/\nexports.setTiddlerData = function(title,data,fields) {\n\tvar existingTiddler = this.getTiddler(title),\n\t\tnewFields = {\n\t\t\ttitle: title\n\t};\n\tif(existingTiddler && existingTiddler.fields.type === \"application/x-tiddler-dictionary\") {\n\t\tnewFields.text = $tw.utils.makeTiddlerDictionary(data);\n\t} else {\n\t\tnewFields.type = \"application/json\";\n\t\tnewFields.text = JSON.stringify(data,null,$tw.config.preferences.jsonSpaces);\n\t}\n\tthis.addTiddler(new $tw.Tiddler(this.getCreationFields(),existingTiddler,fields,newFields,this.getModificationFields()));\n};\n\n/*\nReturn the content of a tiddler as an array containing each line\n*/\nexports.getTiddlerList = function(title,field,index) {\n\tif(index) {\n\t\treturn $tw.utils.parseStringArray(this.extractTiddlerDataItem(title,index,\"\"));\n\t}\n\tfield = field || \"list\";\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\n\t\treturn ($tw.utils.parseStringArray(tiddler.fields[field]) || []).slice(0);\n\t}\n\treturn [];\n};\n\n// Return a named global cache object. Global cache objects are cleared whenever a tiddler change occurs\nexports.getGlobalCache = function(cacheName,initializer) {\n\tthis.globalCache = this.globalCache || Object.create(null);\n\tif($tw.utils.hop(this.globalCache,cacheName)) {\n\t\treturn this.globalCache[cacheName];\n\t} else {\n\t\tthis.globalCache[cacheName] = initializer();\n\t\treturn this.globalCache[cacheName];\n\t}\n};\n\nexports.clearGlobalCache = function() {\n\tthis.globalCache = Object.create(null);\n};\n\n// Return the named cache object for a tiddler. If the cache doesn't exist then the initializer function is invoked to create it\nexports.getCacheForTiddler = function(title,cacheName,initializer) {\n\tthis.caches = this.caches || Object.create(null);\n\tvar caches = this.caches[title];\n\tif(caches && caches[cacheName]) {\n\t\treturn caches[cacheName];\n\t} else {\n\t\tif(!caches) {\n\t\t\tcaches = Object.create(null);\n\t\t\tthis.caches[title] = caches;\n\t\t}\n\t\tcaches[cacheName] = initializer();\n\t\treturn caches[cacheName];\n\t}\n};\n\n// Clear all caches associated with a particular tiddler, or, if the title is null, clear all the caches for all the tiddlers\nexports.clearCache = function(title) {\n\tif(title) {\n\t\tthis.caches = this.caches || Object.create(null);\n\t\tif($tw.utils.hop(this.caches,title)) {\n\t\t\tdelete this.caches[title];\n\t\t}\n\t} else {\n\t\tthis.caches = Object.create(null);\n\t}\n};\n\nexports.initParsers = function(moduleType) {\n\t// Install the parser modules\n\t$tw.Wiki.parsers = {};\n\tvar self = this;\n\t$tw.modules.forEachModuleOfType(\"parser\",function(title,module) {\n\t\tfor(var f in module) {\n\t\t\tif($tw.utils.hop(module,f)) {\n\t\t\t\t$tw.Wiki.parsers[f] = module[f]; // Store the parser class\n\t\t\t}\n\t\t}\n\t});\n\t// Use the generic binary parser for any binary types not registered so far\n\tif($tw.Wiki.parsers[\"application/octet-stream\"]) {\n\t\tObject.keys($tw.config.contentTypeInfo).forEach(function(type) {\n\t\t\tif(!$tw.utils.hop($tw.Wiki.parsers,type) && $tw.config.contentTypeInfo[type].encoding === \"base64\") {\n\t\t\t\t$tw.Wiki.parsers[type] = $tw.Wiki.parsers[\"application/octet-stream\"];\n\t\t\t}\n\t\t});\t\t\n\t}\n};\n\n/*\nParse a block of text of a specified MIME type\n\ttype: content type of text to be parsed\n\ttext: text\n\toptions: see below\nOptions include:\n\tparseAsInline: if true, the text of the tiddler will be parsed as an inline run\n\t_canonical_uri: optional string of the canonical URI of this content\n*/\nexports.parseText = function(type,text,options) {\n\ttext = text || \"\";\n\toptions = options || {};\n\t// Select a parser\n\tvar Parser = $tw.Wiki.parsers[type];\n\tif(!Parser && $tw.utils.getFileExtensionInfo(type)) {\n\t\tParser = $tw.Wiki.parsers[$tw.utils.getFileExtensionInfo(type).type];\n\t}\n\tif(!Parser) {\n\t\tParser = $tw.Wiki.parsers[options.defaultType || \"text/vnd.tiddlywiki\"];\n\t}\n\tif(!Parser) {\n\t\treturn null;\n\t}\n\t// Return the parser instance\n\treturn new Parser(type,text,{\n\t\tparseAsInline: options.parseAsInline,\n\t\twiki: this,\n\t\t_canonical_uri: options._canonical_uri\n\t});\n};\n\n/*\nParse a tiddler according to its MIME type\n*/\nexports.parseTiddler = function(title,options) {\n\toptions = $tw.utils.extend({},options);\n\tvar cacheType = options.parseAsInline ? \"inlineParseTree\" : \"blockParseTree\",\n\t\ttiddler = this.getTiddler(title),\n\t\tself = this;\n\treturn tiddler ? this.getCacheForTiddler(title,cacheType,function() {\n\t\t\tif(tiddler.hasField(\"_canonical_uri\")) {\n\t\t\t\toptions._canonical_uri = tiddler.fields._canonical_uri;\n\t\t\t}\n\t\t\treturn self.parseText(tiddler.fields.type,tiddler.fields.text,options);\n\t\t}) : null;\n};\n\nexports.parseTextReference = function(title,field,index,options) {\n\tvar tiddler,text;\n\tif(options.subTiddler) {\n\t\ttiddler = this.getSubTiddler(title,options.subTiddler);\n\t} else {\n\t\ttiddler = this.getTiddler(title);\n\t\tif(field === \"text\" || (!field && !index)) {\n\t\t\tthis.getTiddlerText(title); // Force the tiddler to be lazily loaded\n\t\t\treturn this.parseTiddler(title,options);\n\t\t}\n\t}\n\tif(field === \"text\" || (!field && !index)) {\n\t\tif(tiddler && tiddler.fields) {\n\t\t\treturn this.parseText(tiddler.fields.type,tiddler.fields.text,options);\t\t\t\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t} else if(field) {\n\t\tif(field === \"title\") {\n\t\t\ttext = title;\n\t\t} else {\n\t\t\tif(!tiddler || !tiddler.hasField(field)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttext = tiddler.fields[field];\n\t\t}\n\t\treturn this.parseText(\"text/vnd.tiddlywiki\",text.toString(),options);\n\t} else if(index) {\n\t\tthis.getTiddlerText(title); // Force the tiddler to be lazily loaded\n\t\ttext = this.extractTiddlerDataItem(tiddler,index,undefined);\n\t\tif(text === undefined) {\n\t\t\treturn null;\n\t\t}\n\t\treturn this.parseText(\"text/vnd.tiddlywiki\",text,options);\n\t}\n};\n\n/*\nMake a widget tree for a parse tree\nparser: parser object\noptions: see below\nOptions include:\ndocument: optional document to use\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.makeWidget = function(parser,options) {\n\toptions = options || {};\n\tvar widgetNode = {\n\t\t\ttype: \"widget\",\n\t\t\tchildren: []\n\t\t},\n\t\tcurrWidgetNode = widgetNode;\n\t// Create set variable widgets for each variable\n\t$tw.utils.each(options.variables,function(value,name) {\n\t\tvar setVariableWidget = {\n\t\t\ttype: \"set\",\n\t\t\tattributes: {\n\t\t\t\tname: {type: \"string\", value: name},\n\t\t\t\tvalue: {type: \"string\", value: value}\n\t\t\t},\n\t\t\tchildren: []\n\t\t};\n\t\tcurrWidgetNode.children = [setVariableWidget];\n\t\tcurrWidgetNode = setVariableWidget;\n\t});\n\t// Add in the supplied parse tree nodes\n\tcurrWidgetNode.children = parser ? parser.tree : [];\n\t// Create the widget\n\treturn new widget.widget(widgetNode,{\n\t\twiki: this,\n\t\tdocument: options.document || $tw.fakeDocument,\n\t\tparentWidget: options.parentWidget\n\t});\n};\n\n/*\nMake a widget tree for transclusion\ntitle: target tiddler title\noptions: as for wiki.makeWidget() plus:\noptions.field: optional field to transclude (defaults to \"text\")\noptions.mode: transclusion mode \"inline\" or \"block\"\noptions.children: optional array of children for the transclude widget\noptions.importVariables: optional importvariables filter string for macros to be included\noptions.importPageMacros: optional boolean; if true, equivalent to passing \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\" to options.importVariables\n*/\nexports.makeTranscludeWidget = function(title,options) {\n\toptions = options || {};\n\tvar parseTreeDiv = {tree: [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"div\",\n\t\t\tchildren: []}]},\n\t\tparseTreeImportVariables = {\n\t\t\ttype: \"importvariables\",\n\t\t\tattributes: {\n\t\t\t\tfilter: {\n\t\t\t\t\tname: \"filter\",\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t}\n\t\t\t},\n\t\t\tisBlock: false,\n\t\t\tchildren: []},\n\t\tparseTreeTransclude = {\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {\n\t\t\t\t\tname: \"tiddler\",\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: title}},\n\t\t\tisBlock: !options.parseAsInline};\n\tif(options.importVariables || options.importPageMacros) {\n\t\tif(options.importVariables) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = options.importVariables;\n\t\t} else if(options.importPageMacros) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\";\n\t\t}\n\t\tparseTreeDiv.tree[0].children.push(parseTreeImportVariables);\n\t\tparseTreeImportVariables.children.push(parseTreeTransclude);\n\t} else {\n\t\tparseTreeDiv.tree[0].children.push(parseTreeTransclude);\n\t}\n\tif(options.field) {\n\t\tparseTreeTransclude.attributes.field = {type: \"string\", value: options.field};\n\t}\n\tif(options.mode) {\n\t\tparseTreeTransclude.attributes.mode = {type: \"string\", value: options.mode};\n\t}\n\tif(options.children) {\n\t\tparseTreeTransclude.children = options.children;\n\t}\n\treturn $tw.wiki.makeWidget(parseTreeDiv,options);\n};\n\n/*\nParse text in a specified format and render it into another format\n\toutputType: content type for the output\n\ttextType: content type of the input text\n\ttext: input text\n\toptions: see below\nOptions include:\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.renderText = function(outputType,textType,text,options) {\n\toptions = options || {};\n\tvar parser = this.parseText(textType,text,options),\n\t\twidgetNode = this.makeWidget(parser,options);\n\tvar container = $tw.fakeDocument.createElement(\"div\");\n\twidgetNode.render(container,null);\n\treturn outputType === \"text/html\" ? container.innerHTML : container.textContent;\n};\n\n/*\nParse text from a tiddler and render it into another format\n\toutputType: content type for the output\n\ttitle: title of the tiddler to be rendered\n\toptions: see below\nOptions include:\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.renderTiddler = function(outputType,title,options) {\n\toptions = options || {};\n\tvar parser = this.parseTiddler(title,options),\n\t\twidgetNode = this.makeWidget(parser,options);\n\tvar container = $tw.fakeDocument.createElement(\"div\");\n\twidgetNode.render(container,null);\n\treturn outputType === \"text/html\" ? container.innerHTML : (outputType === \"text/plain-formatted\" ? container.formattedTextContent : container.textContent);\n};\n\n/*\nReturn an array of tiddler titles that match a search string\n\ttext: The text string to search for\n\toptions: see below\nOptions available:\n\tsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\n\texclude: An array of tiddler titles to exclude from the search\n\tinvert: If true returns tiddlers that do not contain the specified string\n\tcaseSensitive: If true forces a case sensitive search\n\tfield: If specified, restricts the search to the specified field, or an array of field names\n\tanchored: If true, forces all but regexp searches to be anchored to the start of text\n\texcludeField: If true, the field options are inverted to specify the fields that are not to be searched\n\tThe search mode is determined by the first of these boolean flags to be true\n\t\tliteral: searches for literal string\n\t\twhitespace: same as literal except runs of whitespace are treated as a single space\n\t\tregexp: treats the search term as a regular expression\n\t\twords: (default) treats search string as a list of tokens, and matches if all tokens are found, regardless of adjacency or ordering\n*/\nexports.search = function(text,options) {\n\toptions = options || {};\n\tvar self = this,\n\t\tt,\n\t\tinvert = !!options.invert;\n\t// Convert the search string into a regexp for each term\n\tvar terms, searchTermsRegExps,\n\t\tflags = options.caseSensitive ? \"\" : \"i\",\n\t\tanchor = options.anchored ? \"^\" : \"\";\n\tif(options.literal) {\n\t\tif(text.length === 0) {\n\t\t\tsearchTermsRegExps = null;\n\t\t} else {\n\t\t\tsearchTermsRegExps = [new RegExp(\"(\" + anchor + $tw.utils.escapeRegExp(text) + \")\",flags)];\n\t\t}\n\t} else if(options.whitespace) {\n\t\tterms = [];\n\t\t$tw.utils.each(text.split(/\\s+/g),function(term) {\n\t\t\tif(term) {\n\t\t\t\tterms.push($tw.utils.escapeRegExp(term));\n\t\t\t}\n\t\t});\n\t\tsearchTermsRegExps = [new RegExp(\"(\" + anchor + terms.join(\"\\\\s+\") + \")\",flags)];\n\t} else if(options.regexp) {\n\t\ttry {\n\t\t\tsearchTermsRegExps = [new RegExp(\"(\" + text + \")\",flags)];\t\t\t\n\t\t} catch(e) {\n\t\t\tsearchTermsRegExps = null;\n\t\t\tconsole.log(\"Regexp error parsing /(\" + text + \")/\" + flags + \": \",e);\n\t\t}\n\t} else {\n\t\tterms = text.split(/ +/);\n\t\tif(terms.length === 1 && terms[0] === \"\") {\n\t\t\tsearchTermsRegExps = null;\n\t\t} else {\n\t\t\tsearchTermsRegExps = [];\n\t\t\tfor(t=0; t<terms.length; t++) {\n\t\t\t\tsearchTermsRegExps.push(new RegExp(\"(\" + anchor + $tw.utils.escapeRegExp(terms[t]) + \")\",flags));\n\t\t\t}\n\t\t}\n\t}\n\t// Accumulate the array of fields to be searched or excluded from the search\n\tvar fields = [];\n\tif(options.field) {\n\t\tif($tw.utils.isArray(options.field)) {\n\t\t\t$tw.utils.each(options.field,function(fieldName) {\n\t\t\t\tif(fieldName) {\n\t\t\t\t\tfields.push(fieldName);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tfields.push(options.field);\n\t\t}\n\t}\n\t// Use default fields if none specified and we're not excluding fields (excluding fields with an empty field array is the same as searching all fields)\n\tif(fields.length === 0 && !options.excludeField) {\n\t\tfields.push(\"title\");\n\t\tfields.push(\"tags\");\n\t\tfields.push(\"text\");\n\t}\n\t// Function to check a given tiddler for the search term\n\tvar searchTiddler = function(title) {\n\t\tif(!searchTermsRegExps) {\n\t\t\treturn true;\n\t\t}\n\t\tvar notYetFound = searchTermsRegExps.slice();\n\n\t\tvar tiddler = self.getTiddler(title);\n\t\tif(!tiddler) {\n\t\t\ttiddler = new $tw.Tiddler({title: title, text: \"\", type: \"text/vnd.tiddlywiki\"});\n\t\t}\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type] || $tw.config.contentTypeInfo[\"text/vnd.tiddlywiki\"],\n\t\t\tsearchFields;\n\t\t// Get the list of fields we're searching\n\t\tif(options.excludeField) {\n\t\t\tsearchFields = Object.keys(tiddler.fields);\n\t\t\t$tw.utils.each(fields,function(fieldName) {\n\t\t\t\tvar p = searchFields.indexOf(fieldName);\n\t\t\t\tif(p !== -1) {\n\t\t\t\t\tsearchFields.splice(p,1);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsearchFields = fields;\n\t\t}\n\t\tfor(var fieldIndex=0; notYetFound.length>0 && fieldIndex<searchFields.length; fieldIndex++) {\n\t\t\t// Don't search the text field if the content type is binary\n\t\t\tvar fieldName = searchFields[fieldIndex];\n\t\t\tif(fieldName === \"text\" && contentTypeInfo.encoding !== \"utf8\") {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tvar str = tiddler.fields[fieldName],\n\t\t\t\tt;\n\t\t\tif(str) {\n\t\t\t\tif($tw.utils.isArray(str)) {\n\t\t\t\t\t// If the field value is an array, test each regexp against each field array entry and fail if each regexp doesn't match at least one field array entry\n\t\t\t\t\tfor(var s=0; s<str.length; s++) {\n\t\t\t\t\t\tfor(t=0; t<notYetFound.length;) {\n\t\t\t\t\t\t\tif(notYetFound[t].test(str[s])) {\n\t\t\t\t\t\t\t\tnotYetFound.splice(t, 1);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// If the field isn't an array, force it to a string and test each regexp against it and fail if any do not match\n\t\t\t\t\tstr = tiddler.getFieldString(fieldName);\n\t\t\t\t\tfor(t=0; t<notYetFound.length;) {\n\t\t\t\t\t\tif(notYetFound[t].test(str)) {\n\t\t\t\t\t\t\tnotYetFound.splice(t, 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tt++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn notYetFound.length == 0;\n\t};\n\t// Loop through all the tiddlers doing the search\n\tvar results = [],\n\t\tsource = options.source || this.each;\n\tsource(function(tiddler,title) {\n\t\tif(searchTiddler(title) !== options.invert) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\t// Remove any of the results we have to exclude\n\tif(options.exclude) {\n\t\tfor(t=0; t<options.exclude.length; t++) {\n\t\t\tvar p = results.indexOf(options.exclude[t]);\n\t\t\tif(p !== -1) {\n\t\t\t\tresults.splice(p,1);\n\t\t\t}\n\t\t}\n\t}\n\treturn results;\n};\n\n/*\nTrigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded.\n*/\nexports.getTiddlerText = function(title,defaultText) {\n\tvar tiddler = this.getTiddler(title);\n\t// Return undefined if the tiddler isn't found\n\tif(!tiddler) {\n\t\treturn defaultText;\n\t}\n\tif(tiddler.fields.text !== undefined) {\n\t\t// Just return the text if we've got it\n\t\treturn tiddler.fields.text;\n\t} else {\n\t\t// Tell any listeners about the need to lazily load this tiddler\n\t\tthis.dispatchEvent(\"lazyLoad\",title);\n\t\t// Indicate that the text is being loaded\n\t\treturn null;\n\t}\n};\n\n/*\nCheck whether the text of a tiddler matches a given value. By default, the comparison is case insensitive, and any spaces at either end of the tiddler text is trimmed\n*/\nexports.checkTiddlerText = function(title,targetText,options) {\n\toptions = options || {};\n\tvar text = this.getTiddlerText(title,\"\");\n\tif(!options.noTrim) {\n\t\ttext = text.trim();\n\t}\n\tif(!options.caseSensitive) {\n\t\ttext = text.toLowerCase();\n\t\ttargetText = targetText.toLowerCase();\n\t}\n\treturn text === targetText;\n}\n\n/*\nRead an array of browser File objects, invoking callback(tiddlerFieldsArray) once they're all read\n*/\nexports.readFiles = function(files,options) {\n\tvar callback;\n\tif(typeof options === \"function\") {\n\t\tcallback = options;\n\t\toptions = {};\n\t} else {\n\t\tcallback = options.callback;\n\t}\n\tvar result = [],\n\t\toutstanding = files.length,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tresult.push.apply(result,tiddlerFieldsArray);\n\t\t\tif(--outstanding === 0) {\n\t\t\t\tcallback(result);\n\t\t\t}\n\t\t};\n\tfor(var f=0; f<files.length; f++) {\n\t\tthis.readFile(files[f],$tw.utils.extend({},options,{callback: readFileCallback}));\n\t}\n\treturn files.length;\n};\n\n/*\nRead a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects\n*/\nexports.readFile = function(file,options) {\n\tvar callback;\n\tif(typeof options === \"function\") {\n\t\tcallback = options;\n\t\toptions = {};\n\t} else {\n\t\tcallback = options.callback;\n\t}\n\t// Get the type, falling back to the filename extension\n\tvar self = this,\n\t\ttype = file.type;\n\tif(type === \"\" || !type) {\n\t\tvar dotPos = file.name.lastIndexOf(\".\");\n\t\tif(dotPos !== -1) {\n\t\t\tvar fileExtensionInfo = $tw.utils.getFileExtensionInfo(file.name.substr(dotPos));\n\t\t\tif(fileExtensionInfo) {\n\t\t\t\ttype = fileExtensionInfo.type;\n\t\t\t}\n\t\t}\n\t}\n\t// Figure out if we're reading a binary file\n\tvar contentTypeInfo = $tw.config.contentTypeInfo[type],\n\t\tisBinary = contentTypeInfo ? contentTypeInfo.encoding === \"base64\" : false;\n\t// Log some debugging information\n\tif($tw.log.IMPORT) {\n\t\tconsole.log(\"Importing file '\" + file.name + \"', type: '\" + type + \"', isBinary: \" + isBinary);\n\t}\n\t// Give the hook a chance to process the drag\n\tif($tw.hooks.invokeHook(\"th-importing-file\",{\n\t\tfile: file,\n\t\ttype: type,\n\t\tisBinary: isBinary,\n\t\tcallback: callback\n\t}) !== true) {\n\t\tthis.readFileContent(file,type,isBinary,options.deserializer,callback);\n\t}\n};\n\n/*\nLower level utility to read the content of a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects\n*/\nexports.readFileContent = function(file,type,isBinary,deserializer,callback) {\n\tvar self = this;\n\t// Create the FileReader\n\tvar reader = new FileReader();\n\t// Onload\n\treader.onload = function(event) {\n\t\tvar text = event.target.result,\n\t\t\ttiddlerFields = {title: file.name || \"Untitled\", type: type};\n\t\tif(isBinary) {\n\t\t\tvar commaPos = text.indexOf(\",\");\n\t\t\tif(commaPos !== -1) {\n\t\t\t\ttext = text.substr(commaPos + 1);\n\t\t\t}\n\t\t}\n\t\t// Check whether this is an encrypted TiddlyWiki file\n\t\tvar encryptedJson = $tw.utils.extractEncryptedStoreArea(text);\n\t\tif(encryptedJson) {\n\t\t\t// If so, attempt to decrypt it with the current password\n\t\t\t$tw.utils.decryptStoreAreaInteractive(encryptedJson,function(tiddlers) {\n\t\t\t\tcallback(tiddlers);\n\t\t\t});\n\t\t} else {\n\t\t\t// Otherwise, just try to deserialise any tiddlers in the file\n\t\t\tcallback(self.deserializeTiddlers(type,text,tiddlerFields,{deserializer: deserializer}));\n\t\t}\n\t};\n\t// Kick off the read\n\tif(isBinary) {\n\t\treader.readAsDataURL(file);\n\t} else {\n\t\treader.readAsText(file);\n\t}\n};\n\n/*\nFind any existing draft of a specified tiddler\n*/\nexports.findDraft = function(targetTitle) {\n\tvar draftTitle = undefined;\n\tthis.forEachTiddler({includeSystem: true},function(title,tiddler) {\n\t\tif(tiddler.fields[\"draft.title\"] && tiddler.fields[\"draft.of\"] === targetTitle) {\n\t\t\tdraftTitle = title;\n\t\t}\n\t});\n\treturn draftTitle;\n}\n\n/*\nCheck whether the specified draft tiddler has been modified.\nIf the original tiddler doesn't exist, create a vanilla tiddler variable,\nto check if additional fields have been added.\n*/\nexports.isDraftModified = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(!tiddler.isDraft()) {\n\t\treturn false;\n\t}\n\tvar ignoredFields = [\"created\", \"modified\", \"title\", \"draft.title\", \"draft.of\"],\n\t\torigTiddler = this.getTiddler(tiddler.fields[\"draft.of\"]) || new $tw.Tiddler({text:\"\", tags:[]}),\n\t\ttitleModified = tiddler.fields[\"draft.title\"] !== tiddler.fields[\"draft.of\"];\n\treturn titleModified || !tiddler.isEqual(origTiddler,ignoredFields);\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\nhistoryTitle: title of history tiddler (defaults to $:/HistoryList)\n*/\nexports.addToHistory = function(title,fromPageRect,historyTitle) {\n\tif(historyTitle) {\n\t\tvar story = new $tw.Story({wiki: this, historyTitle: historyTitle});\n\t\tstory.addToHistory(title,fromPageRect);\t\t\n\t}\n};\n\n/*\nAdd a new tiddler to the story river\ntitle: a title string or an array of title strings\nfromTitle: the title of the tiddler from which the navigation originated\nstoryTitle: title of story tiddler (defaults to $:/StoryList)\noptions: see story.js\n*/\nexports.addToStory = function(title,fromTitle,storyTitle,options) {\n\tif(storyTitle) {\n\t\tvar story = new $tw.Story({wiki: this, storyTitle: storyTitle});\n\t\tstory.addToStory(title,fromTitle,options);\t\t\n\t}\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nexports.generateDraftTitle = function(title) {\n\tvar c = 0,\n\t\tdraftTitle,\n\t\tusername = this.getTiddlerText(\"$:/status/UserName\"),\n\t\tattribution = username ? \" by \" + username : \"\";\n\tdo {\n\t\tdraftTitle = \"Draft \" + (c ? (c + 1) + \" \" : \"\") + \"of '\" + title + \"'\" + attribution;\n\t\tc++;\n\t} while(this.tiddlerExists(draftTitle));\n\treturn draftTitle;\n};\n\n/*\nInvoke the available upgrader modules\ntitles: array of tiddler titles to be processed\ntiddlers: hashmap by title of tiddler fields of pending import tiddlers. These can be modified by the upgraders. An entry with no fields indicates a tiddler that was pending import has been suppressed. When entries are added to the pending import the tiddlers hashmap may have entries that are not present in the titles array\nReturns a hashmap of messages keyed by tiddler title.\n*/\nexports.invokeUpgraders = function(titles,tiddlers) {\n\t// Collect up the available upgrader modules\n\tvar self = this;\n\tif(!this.upgraderModules) {\n\t\tthis.upgraderModules = [];\n\t\t$tw.modules.forEachModuleOfType(\"upgrader\",function(title,module) {\n\t\t\tif(module.upgrade) {\n\t\t\t\tself.upgraderModules.push(module);\n\t\t\t}\n\t\t});\n\t}\n\t// Invoke each upgrader in turn\n\tvar messages = {};\n\tfor(var t=0; t<this.upgraderModules.length; t++) {\n\t\tvar upgrader = this.upgraderModules[t],\n\t\t\tupgraderMessages = upgrader.upgrade(this,titles,tiddlers);\n\t\t$tw.utils.extend(messages,upgraderMessages);\n\t}\n\treturn messages;\n};\n\n})();\n\n",
"type": "application/javascript",
"module-type": "wikimethod"
},
"$:/palettes/Blanca": {
"title": "$:/palettes/Blanca",
"name": "Blanca",
"description": "A clean white palette to let you focus",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #66cccc\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #999999\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #ffffff\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #7897f3\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #ccc\nsidebar-foreground-shadow: rgba(255,255,255, 0.8)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #ffffff\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #7897f3\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #eeeeee\ntab-border-selected: #cccccc\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffeedd\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: #eee\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #ff9900\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\n"
},
"$:/palettes/Blue": {
"title": "$:/palettes/Blue",
"name": "Blue",
"description": "A blue theme",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333353\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #999999\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #ddddff\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #ffffff\nsidebar-foreground-shadow: rgba(255,255,255, 0.8)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #5959c0\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: #ccccdd\ntab-border-selected: #ccccdd\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #eeeeff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #666666\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #ffffff\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #ffffff\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #5959c0\ntoolbar-new-button: #5eb95e\ntoolbar-options-button: rgb(128, 88, 165)\ntoolbar-save-button: #0e90d2\ntoolbar-info-button: #0e90d2\ntoolbar-edit-button: rgb(243, 123, 29)\ntoolbar-close-button: #dd514c\ntoolbar-delete-button: #dd514c\ntoolbar-cancel-button: rgb(243, 123, 29)\ntoolbar-done-button: #5eb95e\nuntagged-background: #999999\nvery-muted-foreground: #888888\n"
},
"$:/palettes/Muted": {
"title": "$:/palettes/Muted",
"name": "Muted",
"description": "Bright tiddlers on a muted background",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #bbb\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #6f6f70\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #29a6ee\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #c2c1c2\nsidebar-foreground-shadow: rgba(255,255,255,0)\nsidebar-foreground: #d3d2d4\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #6f6f70\nsidebar-tab-background: #666667\nsidebar-tab-border-selected: #999\nsidebar-tab-border: #515151\nsidebar-tab-divider: #999\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: #999\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #d1d0d2\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #d5ad34\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #999999\nvery-muted-foreground: #888888\n"
},
"$:/palettes/ContrastLight": {
"title": "$:/palettes/ContrastLight",
"name": "Contrast (Light)",
"description": "High contrast and unambiguous (light version)",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #00a\nexternal-link-foreground: #00e\nforeground: #000\nmessage-background: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #000\ntag-foreground: #fff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour foreground>>\nvery-muted-foreground: #888888\n"
},
"$:/palettes/ContrastDark": {
"title": "$:/palettes/ContrastDark",
"name": "Contrast (Dark)",
"description": "High contrast and unambiguous (dark version)",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #000\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #00a\nexternal-link-foreground: #00e\nforeground: #fff\nmessage-background: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #fff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour foreground>>\nvery-muted-foreground: #888888\n"
},
"$:/palettes/DarkPhotos": {
"title": "$:/palettes/DarkPhotos",
"created": "20150402111612188",
"description": "Good with dark photo backgrounds",
"modified": "20150402112344080",
"name": "DarkPhotos",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: \nbutton-foreground: \nbutton-border: \ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #ddd\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #336438\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #ccf\nsidebar-controls-foreground: #fff\nsidebar-foreground-shadow: rgba(0,0,0, 0.5)\nsidebar-foreground: #fff\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #eee\nsidebar-tab-background-selected: rgba(255,255,255, 0.8)\nsidebar-tab-background: rgba(255,255,255, 0.4)\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: rgba(255,255,255, 0.2)\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #aaf\nsidebar-tiddler-link-foreground: #ddf\nsite-title-foreground: #fff\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #999999\nvery-muted-foreground: #888888\n"
},
"$:/palettes/Nord": {
"title": "$:/palettes/Nord",
"name": "Nord",
"description": "An arctic, north-bluish color palette.",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"license": "MIT, arcticicestudio, https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md",
"text": "alert-background: #D08770\nalert-border: #D08770\nalert-highlight: #B48EAD\nalert-muted-foreground: #4C566A\nbackground: #3b4252\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: #4C566A\nbutton-foreground: #D8DEE9\nbutton-border: transparent\ncode-background: #2E3440\ncode-border: #2E3440\ncode-foreground: #BF616A\ndiff-delete-background: #BF616A\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #A3BE8C\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #BF616A\ndownload-background: #A3BE8C\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #ECEFF4\ndropdown-tab-background: #4C566A\ndropzone-background: #A3BE8C\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #5E81AC\nexternal-link-foreground: #8FBCBB\nforeground: #d8dee9\nmessage-background: #2E3440\nmessage-border: #2E3440\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #3b4252\nmodal-footer-background: #3b4252\nmodal-footer-border: #3b4252\nmodal-header-border: #3b4252\nmuted-foreground: #4C566A\nnotification-background: <<colour primary>>\nnotification-border: #EBCB8B\npage-background: #2e3440\npre-background: #2E3440\npre-border: #2E3440\nprimary: #5E81AC\nselect-tag-background: #3b4252\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #4C566A\nsidebar-controls-foreground: #3B4252\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #D8DEE9\nsidebar-muted-foreground-hover: #4C566A\nsidebar-muted-foreground: #4C566A\nsidebar-tab-background-selected: #ECEFF4\nsidebar-tab-background: #4C566A\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #4C566A\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #4C566A\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #A3BE8C\nsidebar-tiddler-link-foreground: #81A1C1\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ECEFF4\ntab-background: #4C566A\ntab-border-selected: #4C566A\ntab-border: #4C566A\ntab-divider: #4C566A\ntab-foreground-selected: #4C566A\ntab-foreground: #D8DEE9\ntable-border: #4C566A\ntable-footer-background: #2e3440\ntable-header-background: #2e3440\ntag-background: #A3BE8C\ntag-foreground: #4C566A\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: \ntiddler-controls-foreground-selected: #EBCB8B\ntiddler-controls-foreground: #4C566A\ntiddler-editor-background: #2e3440\ntiddler-editor-border-image: #2e3440\ntiddler-editor-border: #2e3440\ntiddler-editor-fields-even: #2e3440\ntiddler-editor-fields-odd: #2e3440\ntiddler-info-background: #2e3440\ntiddler-info-border: #2e3440\ntiddler-info-tab-background: #2e3440\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #4C566A\ntiddler-title-foreground: #81A1C1\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #2d3038\nvery-muted-foreground: #2d3038\n"
},
"$:/palettes/Rocker": {
"title": "$:/palettes/Rocker",
"name": "Rocker",
"description": "A dark theme",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #999999\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #000\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #cc0000\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #ffffff\nsidebar-foreground-shadow: rgba(255,255,255, 0.0)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #000\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #ffbb99\nsidebar-tiddler-link-foreground: #cc0000\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffbb99\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #cc0000\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\n"
},
"$:/palettes/SolarFlare": {
"title": "$:/palettes/SolarFlare",
"name": "Solar Flare",
"description": "Warm, relaxing earth colours",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": ": Background Tones\n\nbase03: #002b36\nbase02: #073642\n\n: Content Tones\n\nbase01: #586e75\nbase00: #657b83\nbase0: #839496\nbase1: #93a1a1\n\n: Background Tones\n\nbase2: #eee8d5\nbase3: #fdf6e3\n\n: Accent Colors\n\nyellow: #b58900\norange: #cb4b16\nred: #dc322f\nmagenta: #d33682\nviolet: #6c71c4\nblue: #268bd2\ncyan: #2aa198\ngreen: #859900\n\n: Additional Tones (RA)\n\nbase10: #c0c4bb\nviolet-muted: #7c81b0\nblue-muted: #4e7baa\n\nyellow-hot: #ffcc44\norange-hot: #eb6d20\nred-hot: #ff2222\nblue-hot: #2298ee\ngreen-hot: #98ee22\n\n: Palette\n\n: Do not use colour macro for background and foreground\nbackground: #fdf6e3\n download-foreground: <<colour background>>\n dragger-foreground: <<colour background>>\n dropdown-background: <<colour background>>\n modal-background: <<colour background>>\n sidebar-foreground-shadow: <<colour background>>\n tiddler-background: <<colour background>>\n tiddler-border: <<colour background>>\n tiddler-link-background: <<colour background>>\n tab-background-selected: <<colour background>>\n dropdown-tab-background-selected: <<colour tab-background-selected>>\nforeground: #657b83\n dragger-background: <<colour foreground>>\n tab-foreground: <<colour foreground>>\n tab-foreground-selected: <<colour tab-foreground>>\n sidebar-tab-foreground-selected: <<colour tab-foreground-selected>>\n sidebar-tab-foreground: <<colour tab-foreground>>\n sidebar-button-foreground: <<colour foreground>>\n sidebar-controls-foreground: <<colour foreground>>\n sidebar-foreground: <<colour foreground>>\n: base03\n: base02\n: base01\n alert-muted-foreground: <<colour base01>>\n: base00\n code-foreground: <<colour base00>>\n message-foreground: <<colour base00>>\n tag-foreground: <<colour base00>>\n: base0\n sidebar-tiddler-link-foreground: <<colour base0>>\n: base1\n muted-foreground: <<colour base1>>\n blockquote-bar: <<colour muted-foreground>>\n dropdown-border: <<colour muted-foreground>>\n sidebar-muted-foreground: <<colour muted-foreground>>\n tiddler-title-foreground: <<colour muted-foreground>>\n site-title-foreground: <<colour tiddler-title-foreground>>\n: base2\n modal-footer-background: <<colour base2>>\n page-background: <<colour base2>>\n modal-backdrop: <<colour page-background>>\n notification-background: <<colour page-background>>\n code-background: <<colour page-background>>\n code-border: <<colour code-background>>\n pre-background: <<colour page-background>>\n pre-border: <<colour pre-background>>\n sidebar-tab-background-selected: <<colour page-background>>\n table-header-background: <<colour base2>>\n tag-background: <<colour base2>>\n tiddler-editor-background: <<colour base2>>\n tiddler-info-background: <<colour base2>>\n tiddler-info-tab-background: <<colour base2>>\n tab-background: <<colour base2>>\n dropdown-tab-background: <<colour tab-background>>\n: base3\n alert-background: <<colour base3>>\n message-background: <<colour base3>>\n: yellow\n: orange\n: red\n: magenta\n alert-highlight: <<colour magenta>>\n: violet\n external-link-foreground: <<colour violet>>\n: blue\n: cyan\n: green\n: base10\n tiddler-controls-foreground: <<colour base10>>\n: violet-muted\n external-link-foreground-visited: <<colour violet-muted>>\n: blue-muted\n primary: <<colour blue-muted>>\n download-background: <<colour primary>>\n tiddler-link-foreground: <<colour primary>>\n\nalert-border: #b99e2f\ndirty-indicator: #ff0000\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nmessage-border: #cfd6e6\nmodal-border: #999999\nselect-tag-background:\nselect-tag-foreground:\nsidebar-controls-foreground-hover:\nsidebar-muted-foreground-hover:\nsidebar-tab-background: #ded8c5\nsidebar-tiddler-link-foreground-hover:\nstatic-alert-foreground: #aaaaaa\ntab-border: #cccccc\n modal-footer-border: <<colour tab-border>>\n modal-header-border: <<colour tab-border>>\n notification-border: <<colour tab-border>>\n sidebar-tab-border: <<colour tab-border>>\n tab-border-selected: <<colour tab-border>>\n sidebar-tab-border-selected: <<colour tab-border-selected>>\ntab-divider: #d8d8d8\n sidebar-tab-divider: <<colour tab-divider>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-border: #dddddd\ntiddler-subtitle-foreground: #c0c0c0\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\n"
},
"$:/palettes/SolarizedLight": {
"title": "$:/palettes/SolarizedLight",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"description": "Precision colors for machines and people",
"license": "MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE",
"name": "SolarizedLight",
"text": "alert-background: #eee8d5\nalert-border: #073642\nalert-highlight: #cb4b16\nalert-muted-foreground: #586e75\nbackground: #fdf6e3\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: #cb4b16\nbutton-foreground: #fdf6e3\nbutton-border: transparent\ncode-background: #eee8d5\ncode-border: #93a1a1\ncode-foreground: #d33682\ndiff-delete-background: #BF616A\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #859900\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #D08770\ndownload-background: #859900\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #fdf6e3\ndropdown-tab-background: #93a1a1\ndropzone-background: #859900\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: #d33682\nexternal-link-foreground-visited: #b58900\nexternal-link-foreground: #cb4b16\nforeground: #839496\nmessage-background: #586e75\nmessage-border: #586e75\nmessage-foreground: #eee8d5\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #eee8d5\nmodal-footer-background: #eee8d5\nmodal-footer-border: #eee8d5\nmodal-header-border: #eee8d5\nmuted-foreground: #93a1a1\nnotification-background: #EBCB8B\nnotification-border: #D08770\npage-background: #eee8d5\npre-background: #eee8d5\npre-border: #93a1a1\nprimary: #2aa198\nselect-tag-background: #eee8d5\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: #eee8d5\nsidebar-controls-foreground-hover: #268bd2\nsidebar-controls-foreground: #586e75\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #839496\nsidebar-muted-foreground-hover: #657b83\nsidebar-muted-foreground: #93a1a1\nsidebar-tab-background-selected: #eee8d5\nsidebar-tab-background: #839496\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #657b83\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #839496\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #859900\nsidebar-tiddler-link-foreground: #268bd2\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #dc322f\ntab-background-selected: #fdf6e3\ntab-background: #839496\ntab-border-selected: #93a1a1\ntab-border: #93a1a1\ntab-divider: #fdf6e3\ntab-foreground-selected: #839496\ntab-foreground: #eee8d5\ntable-border: #657b83\ntable-footer-background: #657b83\ntable-header-background: #93a1a1\ntag-background: #6c71c4\ntag-foreground: #eee8d5\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #b58900\ntiddler-controls-foreground-selected: #b58900\ntiddler-controls-foreground: #073642\ntiddler-editor-background: #eee8d5\ntiddler-editor-border-image: #eee8d5\ntiddler-editor-border: #eee8d5\ntiddler-editor-fields-even: #eee8d5\ntiddler-editor-fields-odd: #fdf6e3\ntiddler-info-background: #eee8d5\ntiddler-info-border: #eee8d5\ntiddler-info-tab-background: #586e75\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #586e75\ntiddler-title-foreground: #073642\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #839496\nvery-muted-foreground: #93a1a1\n"
},
"$:/palettes/SpartanDay": {
"title": "$:/palettes/SpartanDay",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"description": "Cold, spartan day colors",
"name": "Spartan Day",
"text": "alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #FAFAFA\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: #ececec\ncode-border: #ececec\ncode-foreground: \ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #FFFFFF\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #F5F5F5\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: \nexternal-link-foreground: \nforeground: rgba(0, 0, 0, 0.87)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(0, 0, 0, 0.54)\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour very-muted-foreground>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(0, 0, 0, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #f4f4f4\npre-background: #ececec\npre-border: #ececec\nprimary: #3949ab\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #aeaeae\nsidebar-controls-foreground: #c6c6c6\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground: rgba(0, 0, 0, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87)\nsidebar-tab-foreground: rgba(0, 0, 0, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87)\nsidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54)\nsite-title-foreground: rgba(0, 0, 0, 0.87)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(0, 0, 0, 0.87)\ntab-foreground: rgba(0, 0, 0, 0.54)\ntable-border: #d8d8d8\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: #f9f9f9\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: #e8e7e7\ntiddler-editor-fields-even: rgba(0, 0, 0, 0.1)\ntiddler-editor-fields-odd: rgba(0, 0, 0, 0.04)\ntiddler-info-background: #F5F5F5\ntiddler-info-border: #F5F5F5\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #000000\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(0, 0, 0, 0.12)\n"
},
"$:/palettes/SpartanNight": {
"title": "$:/palettes/SpartanNight",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"description": "Dark spartan colors",
"name": "Spartan Night",
"text": "alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #303030\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: <<colour pre-background>>\ncode-border: <<colour pre-border>>\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #424242\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #050505\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #7c318c\nexternal-link-foreground: #9e3eb3\nforeground: rgba(255, 255, 255, 0.7)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: <<colour page-background>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour background>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(255, 255, 255, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #212121\npre-background: #2a2a2a\npre-border: transparent\nprimary: #5656f3\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #494949\nsidebar-controls-foreground: #5d5d5d\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: rgba(255, 255, 255, 0.7)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #3a3a3a\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: rgb(55,55,55)\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #454545\ntiddler-info-border: #454545\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(255, 255, 255, 0.12)\n"
},
"$:/palettes/Twilight": {
"title": "$:/palettes/Twilight",
"tags": "$:/tags/Palette",
"author": "Thomas Elmiger",
"type": "application/x-tiddler-dictionary",
"name": "Twilight",
"description": "Delightful, soft darkness.",
"text": "alert-background: rgb(255, 255, 102)\nalert-border: rgb(232, 232, 125)\nalert-highlight: rgb(255, 51, 51)\nalert-muted-foreground: rgb(224, 82, 82)\nbackground: rgb(38, 38, 38)\nblockquote-bar: rgba(240, 196, 117, 0.7)\nbutton-background: rgb(63, 63, 63)\nbutton-border: rgb(127, 127, 127)\nbutton-foreground: rgb(179, 179, 179)\ncode-background: rgba(0,0,0,0.03)\ncode-border: rgba(0,0,0,0.08)\ncode-foreground: rgb(255, 94, 94)\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: rgb(255, 94, 94)\ndownload-background: #19a974\ndownload-foreground: rgb(38, 38, 38)\ndragger-background: rgb(179, 179, 179)\ndragger-foreground: rgb(38, 38, 38)\ndropdown-background: rgb(38, 38, 38)\ndropdown-border: rgb(255, 255, 255)\ndropdown-tab-background: rgba(0,0,0,.1)\ndropdown-tab-background-selected: rgba(255,255,255,1)\ndropzone-background: #9eebcf\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: rgb(179, 179, 255)\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: rgb(153, 153, 255)\nforeground: rgb(179, 179, 179)\nmessage-background: <<colour tag-foreground>>\nmessage-border: #96ccff\nmessage-foreground: <<colour tag-background>>\nmodal-backdrop: rgb(179, 179, 179)\nmodal-background: rgb(38, 38, 38)\nmodal-border: rgba(0,0,0,.5)\nmodal-footer-background: #f4f4f4\nmodal-footer-border: rgba(0,0,0,.1)\nmodal-header-border: rgba(0,0,0,.2)\nmuted-foreground: rgb(255, 255, 255)\nnotification-background: <<colour tag-foreground>>\nnotification-border: <<colour tag-background>>\npage-background: rgb(26, 26, 26)\npre-background: rgb(25, 25, 25)\npre-border: rgba(0,0,0,.2)\nprimary: rgb(255, 201, 102)\nselect-tag-background: \nselect-tag-foreground: \nsidebar-button-foreground: rgb(179, 179, 179)\nsidebar-controls-foreground: rgb(153, 153, 153)\nsidebar-controls-foreground-hover: <<colour tiddler-controls-foreground-hover>>\nsidebar-foreground: rgb(141, 141, 141)\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: rgba(0, 0, 0, 0.5)\nsidebar-muted-foreground-hover: rgb(141, 141, 141)\nsidebar-tab-background: rgba(141, 141, 141, 0.2)\nsidebar-tab-background-selected: rgb(26, 26, 26)\nsidebar-tab-border: rgb(127, 127, 127)\nsidebar-tab-border-selected: rgb(127, 127, 127)\nsidebar-tab-divider: rgb(127, 127, 127)\nsidebar-tab-foreground: rgb(179, 179, 179)\nsidebar-tab-foreground-selected: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground-hover: rgb(115, 115, 115)\nsite-title-foreground: rgb(255, 201, 102)\nstatic-alert-foreground: rgba(0,0,0,.3)\ntab-background: rgba(0,0,0,0.125)\ntab-background-selected: rgb(38, 38, 38)\ntab-border: rgb(255, 201, 102)\ntab-border-selected: rgb(255, 201, 102)\ntab-divider: rgb(255, 201, 102)\ntab-foreground: rgb(179, 179, 179)\ntab-foreground-selected: rgb(179, 179, 179)\ntable-border: rgba(255,255,255,.3)\ntable-footer-background: rgba(0,0,0,.4)\ntable-header-background: rgba(0,0,0,.1)\ntag-background: rgb(255, 201, 102)\ntag-foreground: rgb(25, 25, 25)\ntiddler-background: rgb(38, 38, 38)\ntiddler-border: rgba(240, 196, 117, 0.7)\ntiddler-controls-foreground: rgb(128, 128, 128)\ntiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8)\ntiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9)\ntiddler-editor-background: rgb(33, 33, 33)\ntiddler-editor-border: rgb(63, 63, 63)\ntiddler-editor-border-image: rgb(25, 25, 25)\ntiddler-editor-fields-even: rgb(33, 33, 33)\ntiddler-editor-fields-odd: rgb(28, 28, 28)\ntiddler-info-background: rgb(43, 43, 43)\ntiddler-info-border: rgb(25, 25, 25)\ntiddler-info-tab-background: rgb(43, 43, 43)\ntiddler-link-background: rgb(38, 38, 38)\ntiddler-link-foreground: rgb(204, 204, 255)\ntiddler-subtitle-foreground: rgb(255, 255, 255)\ntiddler-title-foreground: rgb(255, 192, 76)\ntoolbar-cancel-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-done-button: \ntoolbar-edit-button: \ntoolbar-info-button: \ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \nuntagged-background: rgb(255, 255, 255)\nvery-muted-foreground: rgba(240, 196, 117, 0.7)\n"
},
"$:/palettes/Vanilla": {
"title": "$:/palettes/Vanilla",
"name": "Vanilla",
"description": "Pale and unobtrusive",
"tags": "$:/tags/Palette",
"type": "application/x-tiddler-dictionary",
"text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #fff\ndropdown-tab-background: #ececec\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #0000aa\nexternal-link-foreground: #0000ee\nforeground: #333333\nmessage-background: #ecf2ff\nmessage-border: #cfd6e6\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #bbb\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #f4f4f4\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #000000\nsidebar-controls-foreground: #aaaaaa\nsidebar-foreground-shadow: rgba(255,255,255, 0.8)\nsidebar-foreground: #acacac\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: #c0c0c0\nsidebar-tab-background-selected: #f4f4f4\nsidebar-tab-background: #e0e0e0\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: #e4e4e4\nsidebar-tab-foreground-selected:\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #999999\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #888888\ntiddler-controls-foreground-selected: #444444\ntiddler-controls-foreground: #cccccc\ntiddler-editor-background: #f8f8f8\ntiddler-editor-border-image: #ffffff\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: #e0e8e0\ntiddler-editor-fields-odd: #f0f4f0\ntiddler-info-background: #f8f8f8\ntiddler-info-border: #dddddd\ntiddler-info-tab-background: #f8f8f8\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\n"
},
"$:/core/readme": {
"title": "$:/core/readme",
"text": "This plugin contains TiddlyWiki's core components, comprising:\n\n* JavaScript code modules\n* Icons\n* Templates needed to create TiddlyWiki's user interface\n* British English (''en-GB'') translations of the localisable strings used by the core\n"
},
"$:/library/sjcl.js/license": {
"title": "$:/library/sjcl.js/license",
"type": "text/plain",
"text": "SJCL is open. You can use, modify and redistribute it under a BSD\nlicense or under the GNU GPL, version 2.0.\n\n---------------------------------------------------------------------\n\nhttp://opensource.org/licenses/BSD-2-Clause\n\nCopyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at\nStanford University. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in the\ndocumentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS\nIS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\nTO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n---------------------------------------------------------------------\n\nhttp://opensource.org/licenses/GPL-2.0\n\nThe Stanford Javascript Crypto Library (hosted here on GitHub) is a\nproject by the Stanford Computer Security Lab to build a secure,\npowerful, fast, small, easy-to-use, cross-browser library for\ncryptography in Javascript.\n\nCopyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at\nStanford University.\n\nThis program is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the\nFree Software Foundation; either version 2 of the License, or (at your\noption) any later version.\n\nThis program is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General\nPublic License for more details.\n\nYou should have received a copy of the GNU General Public License along\nwith this program; if not, write to the Free Software Foundation, Inc.,\n59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"
},
"$:/core/templates/MOTW.html": {
"title": "$:/core/templates/MOTW.html",
"text": "\\rules only filteredtranscludeinline transcludeinline entity\n<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->\n<!-- saved from url=(0021)https://tiddlywiki.com --> "
},
"$:/core/templates/alltiddlers.template.html": {
"title": "$:/core/templates/alltiddlers.template.html",
"type": "text/vnd.tiddlywiki-html",
"text": "<!-- This template is provided for backwards compatibility with older versions of TiddlyWiki -->\n\n<$set name=\"exportFilter\" value=\"[!is[system]sort[title]]\">\n\n{{$:/core/templates/exporters/StaticRiver}}\n\n</$set>\n"
},
"$:/core/templates/canonical-uri-external-image": {
"title": "$:/core/templates/canonical-uri-external-image",
"text": "<!--\n\nThis template is used to assign the ''_canonical_uri'' field to external images.\n\nChange the `./images/` part to a different base URI. The URI can be relative or absolute.\n\n-->\n./images/<$view field=\"title\" format=\"doubleurlencoded\"/>"
},
"$:/core/templates/canonical-uri-external-raw": {
"title": "$:/core/templates/canonical-uri-external-raw",
"text": "<!--\n\nThis template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory\n\n-->\n<$view field=\"title\" format=\"doubleurlencoded\"/>"
},
"$:/core/templates/canonical-uri-external-text": {
"title": "$:/core/templates/canonical-uri-external-text",
"text": "<!--\n\nThis template is used to assign the ''_canonical_uri'' field to external text files.\n\nChange the `./text/` part to a different base URI. The URI can be relative or absolute.\n\n-->\n./text/<$view field=\"title\" format=\"doubleurlencoded\"/>.tid"
},
"$:/core/templates/css-tiddler": {
"title": "$:/core/templates/css-tiddler",
"text": "<!--\n\nThis template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields.\n\n-->`<style`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/css\">`<$view field=\"text\" format=\"text\" />`</style>`"
},
"$:/core/templates/exporters/CsvFile": {
"title": "$:/core/templates/exporters/CsvFile",
"tags": "$:/tags/Exporter",
"description": "{{$:/language/Exporters/CsvFile}}",
"extension": ".csv",
"text": "\\define renderContent()\n<$text text=<<csvtiddlers filter:\"\"\"$(exportFilter)$\"\"\" format:\"quoted-comma-sep\">>/>\n\\end\n<<renderContent>>\n"
},
"$:/core/templates/exporters/JsonFile": {
"title": "$:/core/templates/exporters/JsonFile",
"tags": "$:/tags/Exporter",
"description": "{{$:/language/Exporters/JsonFile}}",
"extension": ".json",
"text": "\\define renderContent()\n<$text text=<<jsontiddlers filter:\"\"\"$(exportFilter)$\"\"\">>/>\n\\end\n<<renderContent>>\n"
},
"$:/core/templates/exporters/StaticRiver": {
"title": "$:/core/templates/exporters/StaticRiver",
"tags": "$:/tags/Exporter",
"description": "{{$:/language/Exporters/StaticRiver}}",
"extension": ".html",
"text": "\\define tv-wikilink-template() #$uri_encoded$\n\\define tv-config-toolbar-icons() no\n\\define tv-config-toolbar-text() no\n\\define tv-config-toolbar-class() tc-btn-invisible\n\\rules only filteredtranscludeinline transcludeinline\n<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n<section class=\"tc-story-river\">\n{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}}\n</section>\n</body>\n</html>\n"
},
"$:/core/templates/exporters/StaticRiver/Content": {
"title": "$:/core/templates/exporters/StaticRiver/Content",
"text": "\\define renderContent()\n{{{ $(exportFilter)$ ||$:/core/templates/static-tiddler}}}\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n<<renderContent>>\n"
},
"$:/core/templates/exporters/TidFile": {
"title": "$:/core/templates/exporters/TidFile",
"tags": "$:/tags/Exporter",
"description": "{{$:/language/Exporters/TidFile}}",
"extension": ".tid",
"text": "\\define renderContent()\n{{{ $(exportFilter)$ +[limit[1]] ||$:/core/templates/tid-tiddler}}}\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n<<renderContent>>"
},
"$:/core/save/all-external-js": {
"title": "$:/core/save/all-external-js",
"text": "\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5-external-js.html}}\n"
},
"$:/core/templates/tiddlywiki5.js": {
"title": "$:/core/templates/tiddlywiki5.js",
"text": "\\rules only filteredtranscludeinline transcludeinline codeinline\n\n/*\n{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}}\n`*/\n`<!--~~ Library modules ~~-->\n{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}}\n<!--~~ Boot prefix ~~-->\n{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}}\n<!--~~ Core plugin ~~-->\n{{$:/core/templates/tiddlywiki5.js/tiddlers}}\n<!--~~ Boot kernel ~~-->\n{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}}\n"
},
"$:/core/templates/tiddlywiki5.js/tiddlers": {
"title": "$:/core/templates/tiddlywiki5.js/tiddlers",
"text": "`\n$tw.preloadTiddlerArray(`<$text text=<<jsontiddlers \"[[$:/core]]\">>/>`);\n$tw.preloadTiddlerArray([{\n\ttitle: \"$:/config/SaveWikiButton/Template\",\n\ttext: \"$:/core/save/all-external-js\"\n}]);\n`\n"
},
"$:/core/templates/tiddlywiki5-external-js.html": {
"title": "$:/core/templates/tiddlywiki5-external-js.html",
"text": "\\rules only filteredtranscludeinline transcludeinline\n<!doctype html>\n{{$:/core/templates/MOTW.html}}<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"{{$:/core/copyright.txt}}\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/core/wiki/rawmarkup]] [all[shadows+tiddlers]tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}\n</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n{{$:/core/templates/static.area}}\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n{{$:/core/templates/store.area.template.html}}\n<!--~~ Raw markup for the bottom of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}\n</body>\n<script src=\"%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js\" onerror=\"alert('Error: Cannot load tiddlywiki.js');\"></script>\n</html>\n"
},
"$:/core/templates/html-div-tiddler": {
"title": "$:/core/templates/html-div-tiddler",
"text": "<!--\n\nThis template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields.\n\n-->`<div`<$fields template=' $name$=\"$encoded_value$\"'></$fields>`>\n<pre>`<$view field=\"text\" format=\"htmlencoded\" />`</pre>\n</div>`\n"
},
"$:/core/templates/html-tiddler": {
"title": "$:/core/templates/html-tiddler",
"text": "<!--\n\nThis template is used for saving tiddlers as raw HTML\n\n--><$view field=\"text\" format=\"htmlwikified\" />"
},
"$:/core/templates/javascript-tiddler": {
"title": "$:/core/templates/javascript-tiddler",
"text": "<!--\n\nThis template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields.\n\n-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\">`<$view field=\"text\" format=\"text\" />`</script>`"
},
"$:/core/templates/json-tiddler": {
"title": "$:/core/templates/json-tiddler",
"text": "<!--\n\nThis template is used for saving tiddlers as raw JSON\n\n--><$text text=<<jsontiddler>>/>"
},
"$:/core/templates/module-tiddler": {
"title": "$:/core/templates/module-tiddler",
"text": "<!--\n\nThis template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields. The body of the tiddler is wrapped in a call to the `$tw.modules.define` function in order to define the body of the tiddler as a module\n\n-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\" data-module=\"yes\">$tw.modules.define(\"`<$view field=\"title\" format=\"jsencoded\" />`\",\"`<$view field=\"module-type\" format=\"jsencoded\" />`\",function(module,exports,require) {`<$view field=\"text\" format=\"text\" />`});\n</script>`"
},
"$:/core/templates/plain-text-tiddler": {
"title": "$:/core/templates/plain-text-tiddler",
"text": "<$view field=\"text\" format=\"text\" />"
},
"$:/core/templates/raw-static-tiddler": {
"title": "$:/core/templates/raw-static-tiddler",
"text": "<!--\n\nThis template is used for saving tiddlers as static HTML\n\n--><$view field=\"text\" format=\"plainwikified\" />"
},
"$:/core/save/all": {
"title": "$:/core/save/all",
"text": "\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"
},
"$:/core/save/empty": {
"title": "$:/core/save/empty",
"text": "\\define saveTiddlerFilter()\n[is[system]] -[prefix[$:/state/popup/]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"
},
"$:/core/save/lazy-all": {
"title": "$:/core/save/lazy-all",
"text": "\\define saveTiddlerFilter()\n[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] \n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"
},
"$:/core/save/lazy-images": {
"title": "$:/core/save/lazy-images",
"text": "\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]] \n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"
},
"$:/core/templates/server/static.sidebar.wikitext": {
"title": "$:/core/templates/server/static.sidebar.wikitext",
"text": "\\whitespace trim\n<div class=\"tc-sidebar-scrollable\" style=\"overflow: auto;\">\n<div class=\"tc-sidebar-header\">\n<h1 class=\"tc-site-title\">\n<$transclude tiddler=\"$:/SiteTitle\"/>\n</h1>\n<div class=\"tc-site-subtitle\">\n<$transclude tiddler=\"$:/SiteSubtitle\"/>\n</div>\n<h2>\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$list filter={{$:/DefaultTiddlers}}>\n<div class=\"tc-menu-list-subitem\">\n<$link><$text text=<<currentTiddler>>/></$link>\n</div>\n</$list>\n</div>\n<!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in\n<h2>\n{{$:/language/SideBar/Recent/Caption}}\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n</div>\n</div>\n</div>\n-->\n"
},
"$:/core/templates/server/static.tiddler.html": {
"title": "$:/core/templates/server/static.tiddler.html",
"text": "\\whitespace trim\n\\define tv-wikilink-template() $uri_encoded$\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content={{$:/core/templates/version}} />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css\">\n<title><$view field=\"caption\" format=\"plainwikified\"><$view field=\"title\"/></$view>: <$view tiddler=\"$:/core/wiki/title\" format=\"plainwikified\"/></title>\n</head>\n<body class=\"tc-body\">\n<$transclude tiddler=\"$:/core/templates/server/static.sidebar.wikitext\" mode=\"inline\"/>\n<section class=\"tc-story-river\">\n<div class=\"tc-tiddler-frame\">\n<$transclude tiddler=\"$:/core/templates/server/static.tiddler.wikitext\" mode=\"inline\"/>\n</div>\n</section>\n</body>\n</html>"
},
"$:/core/templates/server/static.tiddler.wikitext": {
"title": "$:/core/templates/server/static.tiddler.wikitext",
"text": "\\whitespace trim\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<h2><$text text=<<currentTiddler>>/></h2>\n</div>\n</div>\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}}>\n<$view field=\"modifier\"/>\n</$link> <$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n<div class=\"tc-tags-wrapper\">\n<$list filter=\"[all[current]tags[]sort[title]]\">\n<a href={{{ [<currentTiddler>encodeuricomponent[]] }}}>\n<$macrocall $name=\"tag-pill\" tag=<<currentTiddler>>/>\n</a>\n</$list>\n</div>\n<div class=\"tc-tiddler-body\">\n<$transclude mode=\"block\"/>\n</div>\n"
},
"$:/core/templates/single.tiddler.window": {
"title": "$:/core/templates/single.tiddler.window",
"text": "<$set name=\"themeTitle\" value={{$:/view}}>\n\n<$set name=\"tempCurrentTiddler\" value=<<currentTiddler>>>\n\n<$set name=\"currentTiddler\" value={{$:/language}}>\n\n<$set name=\"languageTitle\" value={{!!name}}>\n\n<$set name=\"currentTiddler\" value=<<tempCurrentTiddler>>>\n\n<$importvariables filter=\"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\">\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n\n<$transclude mode=\"block\"/>\n\n</$navigator>\n\n</$importvariables>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</$set>\n\n"
},
"$:/core/templates/split-recipe": {
"title": "$:/core/templates/split-recipe",
"text": "<$list filter=\"[!is[system]]\">\ntiddler: <$view field=\"title\" format=\"urlencoded\"/>.tid\n</$list>\n"
},
"$:/core/templates/static-tiddler": {
"title": "$:/core/templates/static-tiddler",
"text": "<a name=<<currentTiddler>>>\n<$transclude tiddler=\"$:/core/ui/ViewTemplate\"/>\n</a>"
},
"$:/core/templates/static.area": {
"title": "$:/core/templates/static.area",
"text": "<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawStaticContent]!has[draft.of]] ||$:/core/templates/raw-static-tiddler}}}\n{{$:/core/templates/static.content||$:/core/templates/html-tiddler}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\nThis file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted.\n</$reveal>\n"
},
"$:/core/templates/static.content": {
"title": "$:/core/templates/static.content",
"text": "<!-- For Google, and people without JavaScript-->\nThis [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers:\n\n<ul>\n<$list filter=<<saveTiddlerFilter>>>\n<li><$view field=\"title\" format=\"text\"></$view></li>\n</$list>\n</ul>\n"
},
"$:/core/templates/static.template.css": {
"title": "$:/core/templates/static.template.css",
"text": "{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}}\n\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n"
},
"$:/core/templates/static.template.html": {
"title": "$:/core/templates/static.template.html",
"type": "text/vnd.tiddlywiki-html",
"text": "\\define tv-wikilink-template() static/$uri_doubleencoded$.html\n\\define tv-config-toolbar-icons() no\n\\define tv-config-toolbar-text() no\n\\define tv-config-toolbar-class() tc-btn-invisible\n\\rules only filteredtranscludeinline transcludeinline\n<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}\n</body>\n</html>\n"
},
"$:/core/templates/static.tiddler.html": {
"title": "$:/core/templates/static.tiddler.html",
"text": "\\define tv-wikilink-template() $uri_doubleencoded$.html\n\\define tv-config-toolbar-icons() no\n\\define tv-config-toolbar-text() no\n\\define tv-config-toolbar-class() tc-btn-invisible\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n`<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"static.css\">\n<title>`<$view field=\"caption\"><$view field=\"title\"/></$view>: {{$:/core/wiki/title}}`</title>\n</head>\n<body class=\"tc-body\">\n`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`\n<section class=\"tc-story-river\">\n`<$view tiddler=\"$:/core/ui/ViewTemplate\" format=\"htmlwikified\"/>`\n</section>\n</body>\n</html>\n`"
},
"$:/core/templates/store.area.template.html": {
"title": "$:/core/templates/store.area.template.html",
"text": "<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n`<div id=\"storeArea\" style=\"display:none;\">`\n<$list filter=<<saveTiddlerFilter>> template=\"$:/core/templates/html-div-tiddler\"/>\n`</div>`\n</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n`<!--~~ Encrypted tiddlers ~~-->`\n`<pre id=\"encryptedStoreArea\" type=\"text/plain\" style=\"display:none;\">`\n<$encrypt filter=<<saveTiddlerFilter>>/>\n`</pre>`\n</$reveal>"
},
"$:/core/templates/tid-tiddler": {
"title": "$:/core/templates/tid-tiddler",
"text": "<!--\n\nThis template is used for saving tiddlers in TiddlyWeb *.tid format\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>`\n`<$view field=\"text\" format=\"text\" />"
},
"$:/core/templates/tiddler-metadata": {
"title": "$:/core/templates/tiddler-metadata",
"text": "<!--\n\nThis template is used for saving tiddler metadata *.meta files\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>"
},
"$:/core/templates/tiddlywiki5.html": {
"title": "$:/core/templates/tiddlywiki5.html",
"text": "<$set name=\"saveTiddlerAndShadowsFilter\" filter=\"[subfilter<saveTiddlerFilter>] [subfilter<saveTiddlerFilter>plugintiddlers[]]\">\n`<!doctype html>\n`{{$:/core/templates/MOTW.html}}`<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n`{{{ [<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}`\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"`{{$:/core/copyright.txt}}`\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>`{{$:/core/wiki/title}}`</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}`\n</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}`\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}`\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n`{{$:/core/templates/static.area}}`\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n`{{$:/core/templates/store.area.template.html}}`\n<!--~~ Library modules ~~-->\n<div id=\"libraryModules\" style=\"display:none;\">\n`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}`\n</div>\n<!--~~ Boot kernel prologue ~~-->\n<div id=\"bootKernelPrefix\" style=\"display:none;\">\n`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Boot kernel ~~-->\n<div id=\"bootKernel\" style=\"display:none;\">\n`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Raw markup for the bottom of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}`\n</body>\n</html>`\n"
},
"$:/core/templates/version": {
"title": "$:/core/templates/version",
"text": "<<version>>"
},
"$:/core/templates/wikified-tiddler": {
"title": "$:/core/templates/wikified-tiddler",
"text": "<$transclude />"
},
"$:/core/ui/AboveStory/tw2-plugin-check": {
"title": "$:/core/ui/AboveStory/tw2-plugin-check",
"tags": "$:/tags/AboveStory",
"text": "\\define lingo-base() $:/language/AboveStory/ClassicPlugin/\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]limit[1]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n<ul>\n\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]]\">\n\n<li>\n\n<$link><$view field=\"title\"/></$link>\n\n</li>\n\n</$list>\n\n</ul>\n\n</div>\n\n</$list>\n"
},
"$:/core/ui/Actions/new-image": {
"title": "$:/core/ui/Actions/new-image",
"tags": "$:/tags/Actions",
"description": "create a new image tiddler",
"text": "\\define get-type()\nimage/$(imageType)$\n\\end\n<$vars imageType={{$:/config/NewImageType}}>\n<$action-sendmessage $message=\"tm-new-tiddler\" type=<<get-type>>/>\n</$vars>\n"
},
"$:/core/ui/Actions/new-journal": {
"title": "$:/core/ui/Actions/new-journal",
"tags": "$:/tags/Actions",
"description": "create a new journal tiddler",
"text": "<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags}} journalText={{$:/config/NewJournal/Text}}>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$reveal type=\"nomatch\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalTags>> text={{{ [<journalTitle>get[]] }}}/>\n</$reveal>\n<$reveal type=\"match\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalTags>> text=<<journalText>>/>\n</$reveal>\n</$wikify>\n</$vars>\n"
},
"$:/core/ui/Actions/new-tiddler": {
"title": "$:/core/ui/Actions/new-tiddler",
"tags": "$:/tags/Actions",
"description": "create a new empty tiddler",
"text": "<$action-sendmessage $message=\"tm-new-tiddler\"/>\n"
},
"$:/core/ui/AdvancedSearch/Filter": {
"title": "$:/core/ui/AdvancedSearch/Filter",
"tags": "$:/tags/AdvancedSearch",
"caption": "{{$:/language/Search/Filter/Caption}}",
"text": "\\define lingo-base() $:/language/Search/\n<<lingo Filter/Hint>>\n\n<div class=\"tc-search tc-advanced-search\">\n<$edit-text tiddler=\"$:/temp/advancedsearch\" type=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}}/>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]\"><$transclude/></$list>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\n<div class=\"tc-search-results\">\n<<lingo Filter/Matches>>\n<$list filter={{$:/temp/advancedsearch}} template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$set>\n</$reveal>\n"
},
"$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear": {
"title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear",
"tags": "$:/tags/AdvancedSearch/FilterButton",
"text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n"
},
"$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete": {
"title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete",
"tags": "$:/tags/AdvancedSearch/FilterButton",
"text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button popup=<<qualify \"$:/state/filterDeleteDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/delete-button}}\n</$button>\n</$reveal>\n\n<$reveal state=<<qualify \"$:/state/filterDeleteDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<div class=\"tc-dropdown-item-plain\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\nAre you sure you wish to delete <<resultCount>> tiddler(s)?\n</$set>\n</div>\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn\">\n<$action-deletetiddler $filter={{$:/temp/advancedsearch}}/>\nDelete these tiddlers\n</$button>\n</div>\n</div>\n</div>\n</$reveal>\n"
},
"$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown": {
"title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown",
"tags": "$:/tags/AdvancedSearch/FilterButton",
"text": "<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/filterDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</span>\n\n<$reveal state=<<qualify \"$:/state/filterDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher to=\"$:/temp/advancedsearch\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Filter]]\"><$link to={{!!filter}}><$transclude field=\"description\"/></$link>\n</$list>\n</div>\n</div>\n</$linkcatcher>\n</$set>\n</$reveal>\n"
},
"$:/core/ui/AdvancedSearch/Filter/FilterButtons/export": {
"title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/export",
"tags": "$:/tags/AdvancedSearch/FilterButton",
"text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$macrocall $name=\"exportButton\" exportFilter={{$:/temp/advancedsearch}} lingoBase=\"$:/language/Buttons/ExportTiddlers/\"/>\n</$reveal>\n"
},
"$:/core/ui/AdvancedSearch/Shadows": {
"title": "$:/core/ui/AdvancedSearch/Shadows",
"tags": "$:/tags/AdvancedSearch",
"caption": "{{$:/language/Search/Shadows/Caption}}",
"text": "\\define lingo-base() $:/language/Search/\n<$linkcatcher to=\"$:/temp/advancedsearch\">\n\n<<lingo Shadows/Hint>>\n\n<div class=\"tc-search\">\n<$edit-text tiddler=\"$:/temp/advancedsearch\" type=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}}/>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n</$linkcatcher>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo Shadows/Matches>>\n\n<$list filter=\"[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n"
},
"$:/core/ui/AdvancedSearch/Standard": {
"title": "$:/core/ui/AdvancedSearch/Standard",
"tags": "$:/tags/AdvancedSearch",
"caption": "{{$:/language/Search/Standard/Caption}}",
"text": "\\define lingo-base() $:/language/Search/\n<$linkcatcher to=\"$:/temp/advancedsearch\">\n\n<<lingo Standard/Hint>>\n\n<div class=\"tc-search\">\n<$edit-text tiddler=\"$:/temp/advancedsearch\" type=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}}/>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n</$linkcatcher>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$set name=\"searchTiddler\" value=\"$:/temp/advancedsearch\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}}/>\n</$list>\n</$set>\n</$list>\n</$reveal>\n"
},
"$:/core/ui/AdvancedSearch/System": {
"title": "$:/core/ui/AdvancedSearch/System",
"tags": "$:/tags/AdvancedSearch",
"caption": "{{$:/language/Search/System/Caption}}",
"text": "\\define lingo-base() $:/language/Search/\n<$linkcatcher to=\"$:/temp/advancedsearch\">\n\n<<lingo System/Hint>>\n\n<div class=\"tc-search\">\n<$edit-text tiddler=\"$:/temp/advancedsearch\" type=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}}/>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n</$linkcatcher>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo System/Matches>>\n\n<$list filter=\"[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n"
},
"$:/AdvancedSearch": {
"title": "$:/AdvancedSearch",
"icon": "$:/core/images/advanced-search-button",
"color": "#bbb",
"text": "<div class=\"tc-advanced-search\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]\" \"$:/core/ui/AdvancedSearch/System\">>\n</div>\n"
},
"$:/core/ui/AlertTemplate": {
"title": "$:/core/ui/AlertTemplate",
"text": "<div class=\"tc-alert\">\n<div class=\"tc-alert-toolbar\">\n<$button class=\"tc-btn-invisible\"><$action-deletetiddler $tiddler=<<currentTiddler>>/>{{$:/core/images/delete-button}}</$button>\n</div>\n<div class=\"tc-alert-subtitle\">\n<$view field=\"component\"/> - <$view field=\"modified\" format=\"date\" template=\"0hh:0mm:0ss DD MM YYYY\"/> <$reveal type=\"nomatch\" state=\"!!count\" text=\"\"><span class=\"tc-alert-highlight\">({{$:/language/Count}}: <$view field=\"count\"/>)</span></$reveal>\n</div>\n<div class=\"tc-alert-body\">\n\n<$transclude/>\n\n</div>\n</div>\n"
},
"$:/core/ui/BinaryWarning": {
"title": "$:/core/ui/BinaryWarning",
"text": "\\define lingo-base() $:/language/BinaryWarning/\n<div class=\"tc-binary-warning\">\n\n<<lingo Prompt>>\n\n</div>\n"
},
"$:/core/ui/Components/plugin-info": {
"title": "$:/core/ui/Components/plugin-info",
"text": "\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n\\define popup-state-macro()\n$(qualified-state)$-$(currentTiddler)$\n\\end\n\n\\define tabs-state-macro()\n$(popup-state)$-$(pluginInfoType)$\n\\end\n\n\\define plugin-icon-title()\n$(currentTiddler)$/icon\n\\end\n\n\\define plugin-disable-title()\n$:/config/Plugins/Disabled/$(currentTiddler)$\n\\end\n\n\\define plugin-table-body(type,disabledMessage,default-popup-state)\n<div class=\"tc-plugin-info-chunk tc-small-icon\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>\n<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\n</$transclude>\n</div>\n<div class=\"tc-plugin-info-chunk\">\n<h1>\n''<$view field=\"description\"><$view field=\"title\"/></$view>'' $disabledMessage$\n</h1>\n<h2>\n<$view field=\"title\"/>\n</h2>\n<h2>\n<div><em><$view field=\"version\"/></em></div>\n</h2>\n</div>\n\\end\n\n\\define plugin-info(type,default-popup-state)\n<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info tc-plugin-info-disabled\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\" disabledMessage:\"<$macrocall $name='lingo' title='Disabled/Status'/>\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>> default=\"\"\"$default-popup-state$\"\"\">\n<div class=\"tc-plugin-info-dropdown\">\n<div class=\"tc-plugin-info-dropdown-body\">\n<$list filter=\"[all[current]] -[[$:/core]]\">\n<div style=\"float:right;\">\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"yes\" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>\n<<lingo Disable/Caption>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"no\" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>\n<<lingo Enable/Caption>>\n</$button>\n</$reveal>\n</div>\n</$list>\n<$set name=\"tabsList\" filter=\"[<currentTiddler>list[]] contents\">\n<$macrocall $name=\"tabs\" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template=\"$:/core/ui/PluginInfo\"/>\n</$set>\n</div>\n</div>\n</$reveal>\n</$set>\n\\end\n\n<$macrocall $name=\"plugin-info\" type=<<plugin-type>> default-popup-state=<<default-popup-state>>/>\n"
},
"$:/core/ui/Components/tag-link": {
"title": "$:/core/ui/Components/tag-link",
"text": "<$link>\n<$set name=\"backgroundColor\" value={{!!color}}>\n<span style=<<tag-styles>> class=\"tc-tag-label\">\n<$view field=\"title\" format=\"text\"/>\n</span>\n</$set>\n</$link>"
},
"$:/core/ui/ControlPanel/Advanced": {
"title": "$:/core/ui/ControlPanel/Advanced",
"tags": "$:/tags/ControlPanel/Info",
"caption": "{{$:/language/ControlPanel/Advanced/Caption}}",
"text": "{{$:/language/ControlPanel/Advanced/Hint}}\n\n<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]\" \"$:/core/ui/ControlPanel/TiddlerFields\">>\n</div>\n"
},
"$:/core/ui/ControlPanel/Appearance": {
"title": "$:/core/ui/ControlPanel/Appearance",
"tags": "$:/tags/ControlPanel",
"caption": "{{$:/language/ControlPanel/Appearance/Caption}}",
"text": "{{$:/language/ControlPanel/Appearance/Hint}}\n\n<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]\" \"$:/core/ui/ControlPanel/Theme\">>\n</div>\n"
},
"$:/core/ui/ControlPanel/Basics": {
"title": "$:/core/ui/ControlPanel/Basics",
"tags": "$:/tags/ControlPanel/Info",
"caption": "{{$:/language/ControlPanel/Basics/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Basics/\n\n\\define show-filter-count(filter)\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $value=\"\"\"$filter$\"\"\"/>\n<$action-setfield $tiddler=\"$:/state/tab--1498284803\" $value=\"$:/core/ui/AdvancedSearch/Filter\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n''<$count filter=\"\"\"$filter$\"\"\"/>''\n{{$:/core/images/advanced-search-button}}\n</$button>\n\\end\n\n|<<lingo Version/Prompt>> |''<<version>>'' |\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/status/UserName\"><<lingo Username/Prompt>></$link> |<$edit-text tiddler=\"$:/status/UserName\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/AnimationDuration\"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler=\"$:/config/AnimationDuration\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\" class=\"tc-edit-texteditor\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n|<$link to=\"$:/language/DefaultNewTiddlerTitle\"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/language/DefaultNewTiddlerTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Title\"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/config/NewJournal/Title\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Text\"><<lingo NewJournal/Text/Prompt>></$link> |<$edit tiddler=\"$:/config/NewJournal/Text\" tag=\"textarea\" class=\"tc-edit-texteditor\" default=\"\"/> |\n|<$link to=\"$:/config/NewJournal/Tags\"><<lingo NewJournal/Tags/Prompt>></$link> |<$edit-text tiddler=\"$:/config/NewJournal/Tags\" default=\"\" tag=\"input\"/> |\n|<<lingo Language/Prompt>> |{{$:/snippets/minilanguageswitcher}} |\n|<<lingo Tiddlers/Prompt>> |<<show-filter-count \"[!is[system]sort[title]]\">> |\n|<<lingo Tags/Prompt>> |<<show-filter-count \"[tags[]sort[title]]\">> |\n|<<lingo SystemTiddlers/Prompt>> |<<show-filter-count \"[is[system]sort[title]]\">> |\n|<<lingo ShadowTiddlers/Prompt>> |<<show-filter-count \"[all[shadows]sort[title]]\">> |\n|<<lingo OverriddenShadowTiddlers/Prompt>> |<<show-filter-count \"[is[tiddler]is[shadow]sort[title]]\">> |\n"
},
"$:/core/ui/ControlPanel/EditorTypes": {
"title": "$:/core/ui/ControlPanel/EditorTypes",
"tags": "$:/tags/ControlPanel/Advanced",
"caption": "{{$:/language/ControlPanel/EditorTypes/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/EditorTypes/\n\n<<lingo Hint>>\n\n<table>\n<tbody>\n<tr>\n<th><<lingo Type/Caption>></th>\n<th><<lingo Editor/Caption>></th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]\">\n<tr>\n<td>\n<$link>\n<$list filter=\"[all[current]removeprefix[$:/config/EditorTypeMappings/]]\">\n<$text text={{!!title}}/>\n</$list>\n</$link>\n</td>\n<td>\n<$view field=\"text\"/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"
},
"$:/core/ui/ControlPanel/Info": {
"title": "$:/core/ui/ControlPanel/Info",
"tags": "$:/tags/ControlPanel",
"caption": "{{$:/language/ControlPanel/Info/Caption}}",
"text": "{{$:/language/ControlPanel/Info/Hint}}\n\n<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]\" \"$:/core/ui/ControlPanel/Basics\">>\n</div>\n"
},
"$:/core/ui/ControlPanel/KeyboardShortcuts": {
"title": "$:/core/ui/ControlPanel/KeyboardShortcuts",
"tags": "$:/tags/ControlPanel",
"caption": "{{$:/language/ControlPanel/KeyboardShortcuts/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/\n\n\\define new-shortcut(title)\n<div class=\"tc-dropdown-item-plain\">\n<$edit-shortcut tiddler=\"$title$\" placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus=\"true\" style=\"width:auto;\"/> <$button>\n<<lingo Add/Caption>>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"[{$title$}]\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"$title$\"\n/>\n</$button>\n</div>\n\\end\n\n\\define shortcut-list-item(caption)\n<td>\n</td>\n<td style=\"text-align:right;font-size:0.7em;\">\n<<lingo Platform/$caption$>>\n</td>\n<td>\n<div style=\"position:relative;\">\n<$button popup=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> class=\"tc-btn-invisible\">\n{{$:/core/images/edit-button}}\n</$button>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutTitle)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\n<$reveal state=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown tc-popup-keep\">\n<$list filter=\"[list[$(shortcutTitle)$!!text]sort[title]]\" variable=\"shortcut\" emptyMessage=\"\"\"\n<div class=\"tc-dropdown-item-plain\">\n//<<lingo NoShortcuts/Caption>>//\n</div>\n\"\"\">\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn-invisible\" tooltip=<<lingo Remove/Hint>>>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"+[remove<shortcut>]\"\n/>\n×\n</$button>\n<kbd>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts=<<shortcut>>/>\n</kbd>\n</div>\n</$list>\n<hr/>\n<$macrocall $name=\"new-shortcut\" title=<<qualify \"$:/state/new-shortcut/$(shortcutTitle)$\">>/>\n</div>\n</div>\n</$reveal>\n</div>\n</td>\n\\end\n\n\\define shortcut-list(caption,prefix)\n<tr>\n<$list filter=\"[[$prefix$$(shortcutName)$]]\" variable=\"shortcutTitle\">\n<<shortcut-list-item \"$caption$\">>\n</$list>\n</tr>\n\\end\n\n\\define shortcut-editor()\n<<shortcut-list \"All\" \"$:/config/shortcuts/\">>\n<<shortcut-list \"Mac\" \"$:/config/shortcuts-mac/\">>\n<<shortcut-list \"NonMac\" \"$:/config/shortcuts-not-mac/\">>\n<<shortcut-list \"Linux\" \"$:/config/shortcuts-linux/\">>\n<<shortcut-list \"NonLinux\" \"$:/config/shortcuts-not-linux/\">>\n<<shortcut-list \"Windows\" \"$:/config/shortcuts-windows/\">>\n<<shortcut-list \"NonWindows\" \"$:/config/shortcuts-not-windows/\">>\n\\end\n\n\\define shortcut-preview()\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\\end\n\n\\define shortcut-item-inner()\n<tr>\n<td>\n<$reveal type=\"nomatch\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"open\"\n/>\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"close\"\n/>\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n''<$text text=<<shortcutName>>/>''\n</td>\n<td>\n<$transclude tiddler=\"$:/config/ShortcutInfo/$(shortcutName)$\"/>\n</td>\n<td>\n<$list filter=\"$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/\" variable=\"shortcutPrefix\">\n<<shortcut-preview>>\n</$list>\n</td>\n</tr>\n<$set name=\"dropdownState\" value={{$(dropdownStateTitle)$}}>\n<$list filter=\"[<dropdownState>match[open]]\" variable=\"listItem\">\n<<shortcut-editor>>\n</$list>\n</$set>\n\\end\n\n\\define shortcut-item()\n<$set name=\"dropdownStateTitle\" value=<<qualify \"$:/state/dropdown/keyboardshortcut/$(shortcutName)$\">>>\n<<shortcut-item-inner>>\n</$set>\n\\end\n\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]\" variable=\"shortcutName\">\n<<shortcut-item>>\n</$list>\n</tbody>\n</table>\n"
},
"$:/core/ui/ControlPanel/LoadedModules": {
"title": "$:/core/ui/ControlPanel/LoadedModules",
"tags": "$:/tags/ControlPanel/Advanced",
"caption": "{{$:/language/ControlPanel/LoadedModules/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/\n<<lingo LoadedModules/Hint>>\n\n{{$:/snippets/modules}}\n"
},
"$:/core/ui/ControlPanel/Modals/AddPlugins": {
"title": "$:/core/ui/ControlPanel/Modals/AddPlugins",
"subtitle": "{{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/Add/Caption}}",
"text": "\\define install-plugin-button()\n<$button>\n<$action-sendmessage $message=\"tm-load-plugin-from-library\" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"installedVersion\" emptyMessage=\"\"\"{{$:/language/ControlPanel/Plugins/Install/Caption}}\"\"\">\n{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}\n</$list>\n</$button>\n\\end\n\n\\define popup-state-macro()\n$:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$\n\\end\n\n\\define display-plugin-info(type)\n<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<div class=\"tc-plugin-info\">\n<div class=\"tc-plugin-info-chunk tc-small-icon\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk\">\n<$list filter=\"[<assetInfo>has[icon]]\" emptyMessage=\"\"\"<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\"\"\">\n<img src={{$(assetInfo)$!!icon}}/>\n</$list>\n</div>\n<div class=\"tc-plugin-info-chunk\">\n<h1><$view tiddler=<<assetInfo>> field=\"description\"/></h1>\n<h2><$view tiddler=<<assetInfo>> field=\"original-title\"/></h2>\n<div><em><$view tiddler=<<assetInfo>> field=\"version\"/></em></div>\n</div>\n<div class=\"tc-plugin-info-chunk\">\n<<install-plugin-button>>\n</div>\n</div>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>>>\n<div class=\"tc-plugin-info-dropdown\">\n<div class=\"tc-plugin-info-dropdown-message\">\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"installedVersion\" emptyMessage=\"\"\"{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}\"\"\">\n<em>\n{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}\n</em>\n</$list>\n</div>\n<div class=\"tc-plugin-info-dropdown-body\">\n<$transclude tiddler=<<assetInfo>> field=\"readme\" mode=\"block\"/>\n</div>\n</div>\n</$reveal>\n</$set>\n\\end\n\n\\define load-plugin-library-button()\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-load-plugin-library\" url={{!!url}} infoTitlePrefix=\"$:/temp/RemoteAssetInfo/\"/>\n{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}}\n</$button>\n\\end\n\n\\define display-server-assets(type)\n{{$:/language/Search/Search}}: <$edit-text tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" default=\"\" type=\"search\" tag=\"input\"/>\n<$reveal state=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n<div class=\"tc-plugin-library-listing\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[description]]\" variable=\"assetInfo\">\n<<display-plugin-info \"$type$\">>\n</$list>\n</div>\n\\end\n\n\\define display-server-connection()\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]\" variable=\"connectionTiddler\" emptyMessage=<<load-plugin-library-button>>>\n\n<<tabs \"[[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]\" \"$:/core/ui/ControlPanel/Plugins/Add/Plugins\">>\n\n</$list>\n\\end\n\n\\define close-library-button()\n<$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''>\n<$button class='tc-btn-big-green'>\n<$action-sendmessage $message=\"tm-unload-plugin-library\" url={{!!url}}/>\n{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}}\n<$action-deletetiddler $filter=\"[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]\"/>\n</$button>\n</$reveal>\n\\end\n\n\\define plugin-library-listing()\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\">\n<div class=\"tc-plugin-library\">\n\n!! <$link><$transclude field=\"caption\"><$view field=\"title\"/></$transclude></$link>\n\n//<$view field=\"url\"/>//\n\n<$transclude/>\n\n<$set name=PluginLibraryURL value={{!!url}}>\n<<close-library-button>>\n</$set>\n\n<<display-server-connection>>\n</div>\n</$list>\n\\end\n\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<div>\n<<plugin-library-listing>>\n</div>\n"
},
"$:/core/ui/ControlPanel/Palette": {
"title": "$:/core/ui/ControlPanel/Palette",
"tags": "$:/tags/ControlPanel/Appearance",
"caption": "{{$:/language/ControlPanel/Palette/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Palette/\n\n{{$:/snippets/paletteswitcher}}\n\n<$reveal type=\"nomatch\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"yes\"><<lingo ShowEditor/Caption>></$button>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"no\"><<lingo HideEditor/Caption>></$button>\n{{$:/PaletteManager}}\n\n</$reveal>\n\n"
},
"$:/core/ui/ControlPanel/Parsing": {
"title": "$:/core/ui/ControlPanel/Parsing",
"tags": "$:/tags/ControlPanel/Advanced",
"caption": "{{$:/language/ControlPanel/Parsing/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Parsing/\n\n\\define toggle(Type)\n<$checkbox\ntiddler=\"\"\"$:/config/WikiParserRules/$Type$/$(rule)$\"\"\"\nfield=\"text\"\nchecked=\"enable\"\nunchecked=\"disable\"\ndefault=\"enable\">\n<<rule>>\n</$checkbox>\n\\end\n\n\\define rules(type,Type)\n<$list filter=\"[wikiparserrules[$type$]]\" variable=\"rule\">\n<dd><<toggle $Type$>></dd>\n</$list>\n\\end\n\n<<lingo Hint>>\n\n<dl>\n<dt><<lingo Pragma/Caption>></dt>\n<<rules pragma Pragma>>\n<dt><<lingo Inline/Caption>></dt>\n<<rules inline Inline>>\n<dt><<lingo Block/Caption>></dt>\n<<rules block Block>>\n</dl>"
},
"$:/core/ui/ControlPanel/Plugins/Add/Languages": {
"title": "$:/core/ui/ControlPanel/Plugins/Add/Languages",
"caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[language]]\"/>)",
"text": "<<display-server-assets language>>\n"
},
"$:/core/ui/ControlPanel/Plugins/Add/Plugins": {
"title": "$:/core/ui/ControlPanel/Plugins/Add/Plugins",
"caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[plugin]]\"/>)",
"text": "<<display-server-assets plugin>>\n"
},
"$:/core/ui/ControlPanel/Plugins/Add/Themes": {
"title": "$:/core/ui/ControlPanel/Plugins/Add/Themes",
"caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[theme]]\"/>)",
"text": "<<display-server-assets theme>>\n"
},
"$:/core/ui/ControlPanel/Plugins/AddPlugins": {
"title": "$:/core/ui/ControlPanel/Plugins/AddPlugins",
"text": "\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n<$button message=\"tm-modal\" param=\"$:/core/ui/ControlPanel/Modals/AddPlugins\" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class=\"tc-btn-big-green tc-primary-btn\">\n{{$:/core/images/download-button}} <<lingo Add/Caption>>\n</$button>\n"
},
"$:/core/ui/ControlPanel/Plugins/Installed/Languages": {
"title": "$:/core/ui/ControlPanel/Plugins/Installed/Languages",
"caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[language]]\"/>)",
"text": "<<plugin-table language>>\n"
},
"$:/core/ui/ControlPanel/Plugins/Installed/Plugins": {
"title": "$:/core/ui/ControlPanel/Plugins/Installed/Plugins",
"caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[plugin]]\"/>)",
"text": "<<plugin-table plugin>>\n"
},
"$:/core/ui/ControlPanel/Plugins/Installed/Themes": {
"title": "$:/core/ui/ControlPanel/Plugins/Installed/Themes",
"caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[theme]]\"/>)",
"text": "<<plugin-table theme>>\n"
},
"$:/core/ui/ControlPanel/Plugins": {
"title": "$:/core/ui/ControlPanel/Plugins",
"tags": "$:/tags/ControlPanel",
"caption": "{{$:/language/ControlPanel/Plugins/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n\\define plugin-table(type)\n<$set name=\"plugin-type\" value=\"\"\"$type$\"\"\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n<$list filter=\"[!has[draft.of]plugin-type[$type$]sort[description]]\" emptyMessage=<<lingo \"Empty/Hint\">> template=\"$:/core/ui/Components/plugin-info\"/>\n</$set>\n</$set>\n\\end\n\n{{$:/core/ui/ControlPanel/Plugins/AddPlugins}}\n\n<<lingo Installed/Hint>>\n\n<<tabs \"[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]\" \"$:/core/ui/ControlPanel/Plugins/Installed/Plugins\">>\n"
},
"$:/core/ui/ControlPanel/Saving/DownloadSaver": {
"title": "$:/core/ui/ControlPanel/Saving/DownloadSaver",
"tags": "$:/tags/ControlPanel/Saving",
"caption": "{{$:/language/ControlPanel/Saving/DownloadSaver/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/\n\n<<lingo Hint>>\n\n!! <$link to=\"$:/config/DownloadSaver/AutoSave\"><<lingo AutoSave/Hint>></$link>\n\n<$checkbox tiddler=\"$:/config/DownloadSaver/AutoSave\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <<lingo AutoSave/Description>> </$checkbox>\n"
},
"$:/core/ui/ControlPanel/Saving/General": {
"title": "$:/core/ui/ControlPanel/Saving/General",
"tags": "$:/tags/ControlPanel/Saving",
"caption": "{{$:/language/ControlPanel/Saving/General/Caption}}",
"list-before": "",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/\n\n{{$:/language/ControlPanel/Saving/General/Hint}}\n\n!! <$link to=\"$:/config/AutoSave\"><<lingo AutoSave/Caption>></$link>\n\n<<lingo AutoSave/Hint>>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"yes\"> <<lingo AutoSave/Enabled/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"no\"> <<lingo AutoSave/Disabled/Description>> </$radio>\n"
},
"$:/core/ui/ControlPanel/Saving/GitHub": {
"title": "$:/core/ui/ControlPanel/Saving/GitHub",
"tags": "$:/tags/ControlPanel/Saving",
"caption": "{{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitHub\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitHub/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitHub/Password>> |<$password name=\"github\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitHub/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitHub/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitHub/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitHub/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitHub/ServerURL\" default=\"https://api.github.com\" tag=\"input\"/> |"
},
"$:/core/ui/ControlPanel/Saving/GitLab": {
"title": "$:/core/ui/ControlPanel/Saving/GitLab",
"tags": "$:/tags/ControlPanel/Saving",
"caption": "{{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitLab\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitLab/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitLab/Password>> |<$password name=\"gitlab\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitLab/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitLab/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitLab/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitLab/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitLab/ServerURL\" default=\"https://gitlab.com/api/v4\" tag=\"input\"/> |"
},
"$:/core/ui/ControlPanel/Saving/TiddlySpot": {
"title": "$:/core/ui/ControlPanel/Saving/TiddlySpot",
"tags": "$:/tags/ControlPanel/Saving",
"caption": "{{$:/language/ControlPanel/Saving/TiddlySpot/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/\n\n\\define backupURL()\nhttp://$(userName)$.tiddlyspot.com/backup/\n\\end\n\\define backupLink()\n<$reveal type=\"nomatch\" state=\"$:/UploadName\" text=\"\">\n<$set name=\"userName\" value={{$:/UploadName}}>\n<$reveal type=\"match\" state=\"$:/UploadURL\" text=\"\">\n<<backupURL>>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/UploadURL\" text=\"\">\n<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>>\n</$reveal>\n</$set>\n</$reveal>\n\\end\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/UploadName\" default=\"\" tag=\"input\"/> |\n|<<lingo Password>> |<$password name=\"upload\"/> |\n|<<lingo Backups>> |<<backupLink>> |\n\n''<<lingo Advanced/Heading>>''\n\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/UploadURL\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/UploadFilename\" default=\"index.html\" tag=\"input\"/> |\n|<<lingo UploadDir>> |<$edit-text tiddler=\"$:/UploadDir\" default=\".\" tag=\"input\"/> |\n|<<lingo BackupDir>> |<$edit-text tiddler=\"$:/UploadBackupDir\" default=\".\" tag=\"input\"/> |\n\n<<lingo TiddlySpot/Hint>>"
},
"$:/core/ui/ControlPanel/Saving": {
"title": "$:/core/ui/ControlPanel/Saving",
"tags": "$:/tags/ControlPanel",
"caption": "{{$:/language/ControlPanel/Saving/Caption}}",
"text": "{{$:/language/ControlPanel/Saving/Hint}}\n\n<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]\" \"$:/core/ui/ControlPanel/Saving/General\">>\n</div>\n"
},
"$:/core/buttonstyles/Borderless": {
"title": "$:/core/buttonstyles/Borderless",
"tags": "$:/tags/ToolbarButtonStyle",
"caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless}}",
"text": "tc-btn-invisible"
},
"$:/core/buttonstyles/Boxed": {
"title": "$:/core/buttonstyles/Boxed",
"tags": "$:/tags/ToolbarButtonStyle",
"caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed}}",
"text": "tc-btn-boxed"
},
"$:/core/buttonstyles/Rounded": {
"title": "$:/core/buttonstyles/Rounded",
"tags": "$:/tags/ToolbarButtonStyle",
"caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded}}",
"text": "tc-btn-rounded"
},
"$:/core/ui/ControlPanel/Settings/CamelCase": {
"title": "$:/core/ui/ControlPanel/Settings/CamelCase",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/CamelCase/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/WikiParserRules/Inline/wikilink\" field=\"text\" checked=\"enable\" unchecked=\"disable\" default=\"enable\"> <$link to=\"$:/config/WikiParserRules/Inline/wikilink\"><<lingo Description>></$link> </$checkbox>\n"
},
"$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab": {
"title": "$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab",
"caption": "{{$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption}}",
"tags": "$:/tags/ControlPanel/Settings",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/\n\n<$link to=\"$:/config/DefaultMoreSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultMoreSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n"
},
"$:/core/ui/ControlPanel/Settings/DefaultSidebarTab": {
"title": "$:/core/ui/ControlPanel/Settings/DefaultSidebarTab",
"caption": "{{$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption}}",
"tags": "$:/tags/ControlPanel/Settings",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/\n\n<$link to=\"$:/config/DefaultSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n"
},
"$:/core/ui/ControlPanel/Settings/EditorToolbar": {
"title": "$:/core/ui/ControlPanel/Settings/EditorToolbar",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/EditorToolbar/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/TextEditor/EnableToolbar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/TextEditor/EnableToolbar\"><<lingo Description>></$link> </$checkbox>\n\n"
},
"$:/core/ui/ControlPanel/Settings/InfoPanelMode": {
"title": "$:/core/ui/ControlPanel/Settings/InfoPanelMode",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/InfoPanelMode/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/\n<$link to=\"$:/config/TiddlerInfo/Mode\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"popup\"> <<lingo Popup/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"sticky\"> <<lingo Sticky/Description>> </$radio>\n"
},
"$:/core/ui/ControlPanel/Settings/LinkToBehaviour": {
"title": "$:/core/ui/ControlPanel/Settings/LinkToBehaviour",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/\n\n<$link to=\"$:/config/Navigation/openLinkFromInsideRiver\"><<lingo \"InsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromInsideRiver\">\n <option value=\"above\"><<lingo \"OpenAbove\">></option>\n <option value=\"below\"><<lingo \"OpenBelow\">></option>\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n\n<$link to=\"$:/config/Navigation/openLinkFromOutsideRiver\"><<lingo \"OutsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromOutsideRiver\">\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n"
},
"$:/core/ui/ControlPanel/Settings/MissingLinks": {
"title": "$:/core/ui/ControlPanel/Settings/MissingLinks",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/MissingLinks/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/MissingLinks\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/MissingLinks\"><<lingo Description>></$link> </$checkbox>\n\n"
},
"$:/core/ui/ControlPanel/Settings/NavigationAddressBar": {
"title": "$:/core/ui/ControlPanel/Settings/NavigationAddressBar",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/NavigationAddressBar/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/\n\n<$link to=\"$:/config/Navigation/UpdateAddressBar\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permaview\"> <<lingo Permaview/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permalink\"> <<lingo Permalink/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"no\"> <<lingo No/Description>> </$radio>\n"
},
"$:/core/ui/ControlPanel/Settings/NavigationHistory": {
"title": "$:/core/ui/ControlPanel/Settings/NavigationHistory",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/NavigationHistory/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/\n<$link to=\"$:/config/Navigation/UpdateHistory\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"no\"> <<lingo No/Description>> </$radio>\n"
},
"$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode": {
"title": "$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/CopyToClipboard\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/CopyToClipboard\"><<lingo CopyToClipboard/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\"><<lingo UpdateAddressBar/Description>></$link> </$checkbox>\n"
},
"$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation": {
"title": "$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Performance/Instrumentation\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Performance/Instrumentation\"><<lingo Description>></$link> </$checkbox>\n"
},
"$:/core/ui/ControlPanel/Settings/TitleLinks": {
"title": "$:/core/ui/ControlPanel/Settings/TitleLinks",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/TitleLinks/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/\n<$link to=\"$:/config/Tiddlers/TitleLinks\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"no\"> <<lingo No/Description>> </$radio>\n"
},
"$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle": {
"title": "$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/\n<$link to=\"$:/config/Toolbar/ButtonClass\"><<lingo \"Hint\">></$link>\n\n<$select tiddler=\"$:/config/Toolbar/ButtonClass\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]\">\n<option value={{!!text}}>{{!!caption}}</option>\n</$list>\n</$select>\n"
},
"$:/core/ui/ControlPanel/Settings/ToolbarButtons": {
"title": "$:/core/ui/ControlPanel/Settings/ToolbarButtons",
"tags": "$:/tags/ControlPanel/Settings",
"caption": "{{$:/language/ControlPanel/Settings/ToolbarButtons/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Icons\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Toolbar/Icons\"><<lingo Icons/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Text\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Toolbar/Text\"><<lingo Text/Description>></$link> </$checkbox>\n"
},
"$:/core/ui/ControlPanel/Settings": {
"title": "$:/core/ui/ControlPanel/Settings",
"tags": "$:/tags/ControlPanel",
"caption": "{{$:/language/ControlPanel/Settings/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/Settings/\n\n<<lingo Hint>>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\">\n\n<div style=\"border-top:1px solid #eee;\">\n\n!! <$link><$transclude field=\"caption\"/></$link>\n\n<$transclude/>\n\n</div>\n\n</$list>\n"
},
"$:/core/ui/ControlPanel/StoryView": {
"title": "$:/core/ui/ControlPanel/StoryView",
"tags": "$:/tags/ControlPanel/Appearance",
"caption": "{{$:/language/ControlPanel/StoryView/Caption}}",
"text": "{{$:/snippets/viewswitcher}}\n"
},
"$:/core/ui/ControlPanel/Stylesheets": {
"title": "$:/core/ui/ControlPanel/Stylesheets",
"tags": "$:/tags/ControlPanel/Advanced",
"caption": "{{$:/language/ControlPanel/Stylesheets/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo Stylesheets/Hint>>\n\n{{$:/snippets/peek-stylesheets}}\n"
},
"$:/core/ui/ControlPanel/Theme": {
"title": "$:/core/ui/ControlPanel/Theme",
"tags": "$:/tags/ControlPanel/Appearance",
"caption": "{{$:/language/ControlPanel/Theme/Caption}}",
"text": "{{$:/snippets/themeswitcher}}\n"
},
"$:/core/ui/ControlPanel/TiddlerFields": {
"title": "$:/core/ui/ControlPanel/TiddlerFields",
"tags": "$:/tags/ControlPanel/Advanced",
"caption": "{{$:/language/ControlPanel/TiddlerFields/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo TiddlerFields/Hint>>\n\n{{$:/snippets/allfields}}"
},
"$:/core/ui/ControlPanel/Toolbars/EditToolbar": {
"title": "$:/core/ui/ControlPanel/Toolbars/EditToolbar",
"tags": "$:/tags/ControlPanel/Toolbars",
"caption": "{{$:/language/ControlPanel/Toolbars/EditToolbar/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>"
},
"$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate": {
"title": "$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate",
"text": "\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"><$transclude tiddler={{!!icon}}/></span> <$transclude field=\"caption\"/> -- <i class=\"tc-muted\"><$transclude field=\"description\"/></i>\n</$draggable>\n"
},
"$:/core/ui/ControlPanel/Toolbars/EditorToolbar": {
"title": "$:/core/ui/ControlPanel/Toolbars/EditorToolbar",
"tags": "$:/tags/ControlPanel/Toolbars",
"caption": "{{$:/language/ControlPanel/Toolbars/EditorToolbar/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditorToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}}\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditorToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate\"/>\n"
},
"$:/core/ui/ControlPanel/Toolbars/ItemTemplate": {
"title": "$:/core/ui/ControlPanel/Toolbars/ItemTemplate",
"text": "\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"> <$transclude field=\"caption\"/> <i class=\"tc-muted\">-- <$transclude field=\"description\"/></i></span>\n</$draggable>\n"
},
"$:/core/ui/ControlPanel/Toolbars/PageControls": {
"title": "$:/core/ui/ControlPanel/Toolbars/PageControls",
"tags": "$:/tags/ControlPanel/Toolbars",
"caption": "{{$:/language/ControlPanel/Toolbars/PageControls/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/PageControlButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/PageControls/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/PageControls\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n"
},
"$:/core/ui/ControlPanel/Toolbars/ViewToolbar": {
"title": "$:/core/ui/ControlPanel/Toolbars/ViewToolbar",
"tags": "$:/tags/ControlPanel/Toolbars",
"caption": "{{$:/language/ControlPanel/Toolbars/ViewToolbar/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/ViewToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/ViewToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n"
},
"$:/core/ui/ControlPanel/Toolbars": {
"title": "$:/core/ui/ControlPanel/Toolbars",
"tags": "$:/tags/ControlPanel/Appearance",
"caption": "{{$:/language/ControlPanel/Toolbars/Caption}}",
"text": "{{$:/language/ControlPanel/Toolbars/Hint}}\n\n<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]\" \"$:/core/ui/ControlPanel/Toolbars/ViewToolbar\" \"$:/state/tabs/controlpanel/toolbars\" \"tc-vertical\">>\n</div>\n"
},
"$:/ControlPanel": {
"title": "$:/ControlPanel",
"icon": "$:/core/images/options-button",
"color": "#bbb",
"text": "<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]\" \"$:/core/ui/ControlPanel/Info\">>\n</div>\n"
},
"$:/core/ui/DefaultSearchResultList": {
"title": "$:/core/ui/DefaultSearchResultList",
"tags": "$:/tags/SearchResults",
"caption": "{{$:/language/Search/DefaultResults/Caption}}",
"text": "\\define searchResultList()\n//<small>{{$:/language/Search/Matches/Title}}</small>//\n\n<$list filter=\"[!is[system]search:title{$(searchTiddler)$}sort[title]limit[250]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n\n//<small>{{$:/language/Search/Matches/All}}</small>//\n\n<$list filter=\"[!is[system]search{$(searchTiddler)$}sort[title]limit[250]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n\n\\end\n<<searchResultList>>\n"
},
"$:/core/ui/EditTemplate/body/preview/diffs-current": {
"title": "$:/core/ui/EditTemplate/body/preview/diffs-current",
"tags": "$:/tags/EditPreview",
"caption": "differences from current",
"list-after": "$:/core/ui/EditTemplate/body/preview/output",
"text": "<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n"
},
"$:/core/ui/EditTemplate/body/preview/diffs-shadow": {
"title": "$:/core/ui/EditTemplate/body/preview/diffs-shadow",
"tags": "$:/tags/EditPreview",
"caption": "differences from shadow (if any)",
"list-after": "$:/core/ui/EditTemplate/body/preview/output",
"text": "<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n"
},
"$:/core/ui/EditTemplate/body/preview/output": {
"title": "$:/core/ui/EditTemplate/body/preview/output",
"tags": "$:/tags/EditPreview",
"caption": "{{$:/language/EditTemplate/Body/Preview/Type/Output}}",
"text": "<$set name=\"tv-tiddler-preview\" value=\"yes\">\n\n<$transclude />\n\n</$set>\n"
},
"$:/state/showeditpreview": {
"title": "$:/state/showeditpreview",
"text": "no"
},
"$:/core/ui/EditTemplate/body/editor": {
"title": "$:/core/ui/EditTemplate/body/editor",
"text": "<$edit\n\n field=\"text\"\n class=\"tc-edit-texteditor\"\n placeholder={{$:/language/EditTemplate/Body/Placeholder}}\n tabindex={{$:/config/EditTabIndex}}\n\n><$set\n\n name=\"targetTiddler\"\n value=<<currentTiddler>>\n\n><$list\n\n filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]\"\n\n><$reveal\n\n type=\"nomatch\"\n state=<<config-visibility-title>>\n text=\"hide\"\n class=\"tc-text-editor-toolbar-item-wrapper\"\n\n><$transclude\n\n tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\"\n mode=\"inline\"\n\n/></$reveal></$list></$set></$edit>\n"
},
"$:/core/ui/EditTemplate/body/toolbar/button": {
"title": "$:/core/ui/EditTemplate/body/toolbar/button",
"text": "\\define toolbar-button-icon()\n<$list\n\n filter=\"[all[current]!has[custom-icon]]\"\n variable=\"no-custom-icon\"\n\n><$transclude\n\n tiddler={{!!icon}}\n\n/></$list>\n\\end\n\n\\define toolbar-button-tooltip()\n{{!!description}}<$macrocall $name=\"displayshortcuts\" $output=\"text/plain\" shortcuts={{!!shortcuts}} prefix=\"` - [\" separator=\"] [\" suffix=\"]`\"/>\n\\end\n\n\\define toolbar-button()\n<$list\n\n filter={{!!condition}}\n variable=\"list-condition\"\n\n><$wikify\n\n name=\"tooltip-text\"\n text=<<toolbar-button-tooltip>>\n mode=\"inline\"\n output=\"text\"\n\n><$list\n\n filter=\"[all[current]!has[dropdown]]\"\n variable=\"no-dropdown\"\n\n><$button\n\n class=\"tc-btn-invisible $(buttonClasses)$\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button></$list><$list\n\n filter=\"[all[current]has[dropdown]]\"\n variable=\"dropdown\"\n\n><$set\n\n name=\"dropdown-state\"\n value=<<qualify \"$:/state/EditorToolbarDropdown\">>\n\n><$button\n\n popup=<<dropdown-state>>\n class=\"tc-popup-keep tc-btn-invisible $(buttonClasses)$\"\n selectedClass=\"tc-selected\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button><$reveal\n\n state=<<dropdown-state>>\n type=\"popup\"\n position=\"below\"\n animate=\"yes\"\n tag=\"span\"\n\n><div\n\n class=\"tc-drop-down tc-popup-keep\"\n\n><$transclude\n\n tiddler={{!!dropdown}}\n mode=\"block\"\n\n/></div></$reveal></$set></$list></$wikify></$list>\n\\end\n\n\\define toolbar-button-outer()\n<$set\n\n name=\"buttonClasses\"\n value={{!!button-classes}}\n\n><<toolbar-button>></$set>\n\\end\n\n<<toolbar-button-outer>>"
},
"$:/core/ui/EditTemplate/body": {
"title": "$:/core/ui/EditTemplate/body",
"tags": "$:/tags/EditTemplate",
"text": "\\define lingo-base() $:/language/EditTemplate/Body/\n\\define config-visibility-title()\n$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$\n\\end\n<$list filter=\"[all[current]has[_canonical_uri]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo External/Hint>>\n\n<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>\n\n<$edit-text field=\"_canonical_uri\" class=\"tc-edit-fields\" tabindex={{$:/config/EditTabIndex}}></$edit-text>\n\n</div>\n\n</$list>\n\n<$list filter=\"[all[current]!has[_canonical_uri]]\">\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\">\n\n<div class=\"tc-tiddler-preview\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n<div class=\"tc-tiddler-preview-preview\">\n\n<$transclude tiddler={{$:/state/editpreviewtype}} mode=\"inline\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/preview/output\" mode=\"inline\"/>\n\n</$transclude>\n\n</div>\n\n</div>\n\n</$reveal>\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n</$reveal>\n\n</$list>\n"
},
"$:/core/ui/EditTemplate/controls": {
"title": "$:/core/ui/EditTemplate/controls",
"tags": "$:/tags/EditTemplate",
"text": "\\define config-title()\n$:/config/EditToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title tc-tiddler-edit-title\">\n<$view field=\"title\"/>\n<span class=\"tc-tiddler-controls tc-titlebar\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$transclude tiddler=<<listItem>>/></$reveal></$list></span>\n<div style=\"clear: both;\"></div>\n</div>\n"
},
"$:/core/ui/EditTemplate/fields": {
"title": "$:/core/ui/EditTemplate/fields",
"tags": "$:/tags/EditTemplate",
"text": "\\define lingo-base() $:/language/EditTemplate/\n\\define config-title()\n$:/config/EditTemplateFields/Visibility/$(currentField)$\n\\end\n\n\\define config-filter()\n[[hide]] -[title{$(config-title)$}]\n\\end\n\n\\define new-field()\n<$vars name={{$:/temp/newfieldname}}>\n<$reveal type=\"nomatch\" text=\"\" default=<<name>>>\n<$button>\n<$action-sendmessage $message=\"tm-add-field\"\n$name=<<name>>\n$value={{$:/temp/newfieldvalue}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldname\"/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldvalue\"/>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" text=\"\" default=<<name>>>\n<$button>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n</$vars>\n\\end\n\\whitespace trim\n\n<div class=\"tc-edit-fields\">\n<table class=\"tc-edit-fields\">\n<tbody>\n<$list filter=\"[all[current]fields[]] +[sort[title]]\" variable=\"currentField\" storyview=\"pop\">\n<$list filter=<<config-filter>> variable=\"temp\">\n<tr class=\"tc-edit-field\">\n<td class=\"tc-edit-field-name\">\n<$text text=<<currentField>>/>:</td>\n<td class=\"tc-edit-field-value\">\n<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}}/>\n</td>\n<td class=\"tc-edit-field-remove\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<<currentField>>/>\n{{$:/core/images/delete-button}}\n</$button>\n</td>\n</tr>\n</$list>\n</$list>\n</tbody>\n</table>\n</div>\n\n<$fieldmangler>\n<div class=\"tc-edit-field-add\">\n<em class=\"tc-edit\">\n<<lingo Fields/Add/Prompt>> \n</em>\n<span class=\"tc-edit-field-add-name\">\n<$edit-text tiddler=\"$:/temp/newfieldname\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}}/>\n</span> \n<$button popup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> \n<$reveal state=<<qualify \"$:/state/popup/field-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher to=\"$:/temp/newfieldname\">\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/User>>\n</div>\n<$list filter=\"[!is[shadow]!is[system]fields[]search:title{$:/temp/newfieldname}sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\" variable=\"currentField\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/System>>\n</div>\n<$list filter=\"[fields[]search:title{$:/temp/newfieldname}sort[]] -[!is[shadow]!is[system]fields[]]\" variable=\"currentField\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n</$linkcatcher>\n</$set>\n</div>\n</$reveal>\n<span class=\"tc-edit-field-add-value\">\n<$edit-text tiddler=\"$:/temp/newfieldvalue\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\"tc-edit-texteditor\" tabindex={{$:/config/EditTabIndex}}/>\n</span> \n<span class=\"tc-edit-field-add-button\">\n<$macrocall $name=\"new-field\"/>\n</span>\n</div>\n</$fieldmangler>\n"
},
"$:/core/ui/EditTemplate/shadow": {
"title": "$:/core/ui/EditTemplate/shadow",
"tags": "$:/tags/EditTemplate",
"text": "\\define lingo-base() $:/language/EditTemplate/Shadow/\n\\define pluginLinkBody()\n<$link to=\"\"\"$(pluginTitle)$\"\"\">\n<$text text=\"\"\"$(pluginTitle)$\"\"\"/>\n</$link>\n\\end\n<$list filter=\"[all[current]get[draft.of]is[shadow]!is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>\n\n<$list filter=\"[all[current]get[draft.of]is[shadow]is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo OverriddenWarning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>"
},
"$:/core/ui/EditTemplate/tags": {
"title": "$:/core/ui/EditTemplate/tags",
"tags": "$:/tags/EditTemplate",
"text": "\\whitespace trim\n\n\\define lingo-base() $:/language/EditTemplate/\n\n\\define tag-styles()\nbackground-color:$(backgroundColor)$;\nfill:$(foregroundColor)$;\ncolor:$(foregroundColor)$;\n\\end\n\n\\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon)\n\\whitespace trim\n<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<span style=<<tag-styles>> class=\"tc-tag-label tc-tag-list-item\">\n<$transclude tiddler=\"\"\"$icon$\"\"\"/> <$view field=\"title\" format=\"text\" />\n<$button message=\"tm-remove-tag\" param={{!!title}} class=\"tc-btn-invisible tc-remove-tag-button\">{{$:/core/images/close-button}}</$button>\n</span>\n</$vars>\n\\end\n\n\\define tag-body(colour,palette,icon)\n<$macrocall $name=\"tag-body-inner\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon=\"\"\"$icon$\"\"\"/>\n\\end\n\n\\define tag-picker-actions()\n<$action-listops\n\t$tiddler=<<currentTiddler>>\n\t$field=\"tags\"\n\t$subfilter=\"[<tag>] [all[current]tags[]]\"\n/>\n\\end\n\n<div class=\"tc-edit-tags\">\n<$fieldmangler>\n<$list filter=\"[all[current]tags[]sort[title]]\" storyview=\"pop\">\n<$macrocall $name=\"tag-body\" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/>\n</$list>\n</$fieldmangler>\n<$set name=\"tabIndex\" value={{$:/config/EditTabIndex}}>\n<$macrocall $name=\"tag-picker\" actions=<<tag-picker-actions>>/>\n</$set>\n</div>\n"
},
"$:/core/ui/EditTemplate/title": {
"title": "$:/core/ui/EditTemplate/title",
"tags": "$:/tags/EditTemplate",
"text": "<$edit-text field=\"draft.title\" class=\"tc-titlebar tc-edit-texteditor\" focus=\"true\" tabindex={{$:/config/EditTabIndex}}/>\n\n<$vars pattern=\"\"\"[\\|\\[\\]{}]\"\"\" bad-chars=\"\"\"`| [ ] { }`\"\"\">\n\n<$list filter=\"[all[current]regexp:draft.title<pattern>]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n</div>\n\n</$list>\n\n</$vars>\n\n<$reveal state=\"!!draft.title\" type=\"nomatch\" text={{!!draft.of}} tag=\"div\">\n\n<$list filter=\"[{!!draft.title}!is[missing]]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n</div>\n\n</$list>\n\n<$list filter=\"[{!!draft.of}!is[missing]]\" variable=\"listItem\">\n\n<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\n\n<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>\n\n<$list filter=\"[title<fromTitle>backlinks[]limit[1]]\" variable=\"listItem\">\n\n<$vars stateTiddler=<<qualify \"$:/state/edit/references\">> >\n\n<$reveal type=\"nomatch\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"show\" class=\"tc-btn-invisible\">{{$:/core/images/right-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"hide\" class=\"tc-btn-invisible\">{{$:/core/images/down-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$tiddler tiddler=<<fromTitle>> >\n<$transclude tiddler=\"$:/core/ui/TiddlerInfo/References\"/>\n</$tiddler>\n</$reveal>\n\n</$vars>\n\n</$list>\n\n</$vars>\n\n</$list>\n\n</$reveal>\n"
},
"$:/core/ui/EditTemplate/type": {
"title": "$:/core/ui/EditTemplate/type",
"tags": "$:/tags/EditTemplate",
"text": "\\define lingo-base() $:/language/EditTemplate/\n<div class=\"tc-type-selector\"><$fieldmangler>\n<em class=\"tc-edit\"><<lingo Type/Prompt>></em> <$edit-text field=\"type\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-edit-typeeditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}}/> <$button popup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <$button message=\"tm-remove-field\" param=\"type\" class=\"tc-btn-invisible tc-btn-icon\" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}</$button>\n</$fieldmangler></div>\n\n<div class=\"tc-block-dropdown-wrapper\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$reveal state=<<qualify \"$:/state/popup/type-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$linkcatcher to=\"!!type\">\n<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'>\n<div class=\"tc-dropdown-item\">\n<$text text={{!!group}}/>\n</div>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]]\"><$link to={{!!name}}><$view field=\"description\"/> (<$view field=\"name\"/>)</$link>\n</$list>\n</$list>\n</$linkcatcher>\n</div>\n</$reveal>\n</$set>\n</div>\n"
},
"$:/core/ui/EditTemplate": {
"title": "$:/core/ui/EditTemplate",
"text": "\\define actions()\n<$action-sendmessage $message=\"tm-add-tag\" $param={{$:/temp/NewTagName}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/NewTagName\"/>\n<$action-sendmessage $message=\"tm-add-field\" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldname\"/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldvalue\"/>\n<$action-sendmessage $message=\"tm-save-tiddler\"/>\n\\end\n\\define frame-classes()\ntc-tiddler-frame tc-tiddler-edit-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$\n\\end\n<div class=<<frame-classes>> data-tiddler-title=<<currentTiddler>>>\n<$fieldmangler>\n<$set name=\"storyTiddler\" value=<<currentTiddler>>>\n<$keyboard key=\"((cancel-edit-tiddler))\" message=\"tm-cancel-tiddler\">\n<$keyboard key=\"((save-tiddler))\" actions=<<actions>>>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>>/>\n</$set>\n</$list>\n</$keyboard>\n</$keyboard>\n</$set>\n</$fieldmangler>\n</div>\n"
},
"$:/core/ui/Buttons/cancel": {
"title": "$:/core/ui/Buttons/cancel",
"tags": "$:/tags/EditToolbar",
"caption": "{{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}",
"description": "{{$:/language/Buttons/Cancel/Hint}}",
"text": "<$button message=\"tm-cancel-tiddler\" tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/cancel-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/delete": {
"title": "$:/core/ui/Buttons/delete",
"tags": "$:/tags/EditToolbar $:/tags/ViewToolbar",
"caption": "{{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}",
"description": "{{$:/language/Buttons/Delete/Hint}}",
"text": "<$button message=\"tm-delete-tiddler\" tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/delete-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Delete/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/save": {
"title": "$:/core/ui/Buttons/save",
"tags": "$:/tags/EditToolbar",
"caption": "{{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}",
"description": "{{$:/language/Buttons/Save/Hint}}",
"text": "<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-add-tag\" $param={{$:/temp/NewTagName}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/NewTagName\"/>\n<$action-sendmessage $message=\"tm-add-field\" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldname\"/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldvalue\"/>\n<$action-sendmessage $message=\"tm-save-tiddler\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/done-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Save/Caption}}/></span>\n</$list>\n</$button></$fieldmangler>\n"
},
"$:/core/ui/EditorToolbar/bold": {
"title": "$:/core/ui/EditorToolbar/bold",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/bold",
"caption": "{{$:/language/Buttons/Bold/Caption}}",
"description": "{{$:/language/Buttons/Bold/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((bold))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"''\"\n\tsuffix=\"''\"\n/>\n"
},
"$:/core/ui/EditorToolbar/clear-dropdown": {
"title": "$:/core/ui/EditorToolbar/clear-dropdown",
"text": "''{{$:/language/Buttons/Clear/Hint}}''\n\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"clear\"\n\tcolour=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n\n</div>\n"
},
"$:/core/ui/EditorToolbar/clear": {
"title": "$:/core/ui/EditorToolbar/clear",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/erase",
"caption": "{{$:/language/Buttons/Clear/Caption}}",
"description": "{{$:/language/Buttons/Clear/Hint}}",
"condition": "[<targetTiddler>is[image]]",
"dropdown": "$:/core/ui/EditorToolbar/clear-dropdown",
"text": ""
},
"$:/core/ui/EditorToolbar/editor-height-dropdown": {
"title": "$:/core/ui/EditorToolbar/editor-height-dropdown",
"text": "\\define lingo-base() $:/language/Buttons/EditorHeight/\n''<<lingo Hint>>''\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"auto\"> {{$:/core/images/auto-height}} <<lingo Caption/Auto>></$radio>\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"fixed\"> {{$:/core/images/fixed-height}} <<lingo Caption/Fixed>> <$edit-text tag=\"input\" tiddler=\"$:/config/TextEditor/EditorHeight/Height\" default=\"100px\"/></$radio>\n"
},
"$:/core/ui/EditorToolbar/editor-height": {
"title": "$:/core/ui/EditorToolbar/editor-height",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/fixed-height",
"custom-icon": "yes",
"caption": "{{$:/language/Buttons/EditorHeight/Caption}}",
"description": "{{$:/language/Buttons/EditorHeight/Hint}}",
"condition": "[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] +[first[]]",
"dropdown": "$:/core/ui/EditorToolbar/editor-height-dropdown",
"text": "<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n{{$:/core/images/fixed-height}}\n</$reveal>\n<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n{{$:/core/images/auto-height}}\n</$reveal>\n"
},
"$:/core/ui/EditorToolbar/excise-dropdown": {
"title": "$:/core/ui/EditorToolbar/excise-dropdown",
"text": "\\define lingo-base() $:/language/Buttons/Excise/\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<<lingo Caption/NewTitle>> <$edit-text tag=\"input\" tiddler=\"$config-title$/new-title\" default=\"\" focus=\"true\"/>\n\n<$set name=\"new-title\" value={{$config-title$/new-title}}>\n<$list filter=\"\"\"[<new-title>is[tiddler]]\"\"\">\n<div class=\"tc-error\">\n<<lingo Caption/TiddlerExists>>\n</div>\n</$list>\n</$set>\n\n<$checkbox tiddler=\"\"\"$config-title$/tagnew\"\"\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"false\"> <<lingo Caption/Tag>></$checkbox>\n\n<<lingo Caption/Replace>> <$select tiddler=\"\"\"$config-title$/type\"\"\" default=\"transclude\">\n<option value=\"link\"><<lingo Caption/Replace/Link>></option>\n<option value=\"transclude\"><<lingo Caption/Replace/Transclusion>></option>\n<option value=\"macro\"><<lingo Caption/Replace/Macro>></option>\n</$select>\n\n<$reveal state=\"\"\"$config-title$/type\"\"\" type=\"match\" text=\"macro\">\n<<lingo Caption/MacroName>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/macro-title\"\"\" default=\"translink\"/>\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"excise\"\n\ttitle={{$config-title$/new-title}}\n\ttype={{$config-title$/type}}\n\tmacro={{$config-title$/macro-title}}\n\ttagnew={{$config-title$/tagnew}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"$config-title$/new-title\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Excise>>\n</$button>\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Excise/\">>/>\n"
},
"$:/core/ui/EditorToolbar/excise": {
"title": "$:/core/ui/EditorToolbar/excise",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/excise",
"caption": "{{$:/language/Buttons/Excise/Caption}}",
"description": "{{$:/language/Buttons/Excise/Hint}}",
"condition": "[<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]",
"shortcuts": "((excise))",
"dropdown": "$:/core/ui/EditorToolbar/excise-dropdown",
"text": ""
},
"$:/core/ui/EditorToolbar/heading-1": {
"title": "$:/core/ui/EditorToolbar/heading-1",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/heading-1",
"caption": "{{$:/language/Buttons/Heading1/Caption}}",
"description": "{{$:/language/Buttons/Heading1/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"button-classes": "tc-text-editor-toolbar-item-start-group",
"shortcuts": "((heading-1))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"1\"\n/>\n"
},
"$:/core/ui/EditorToolbar/heading-2": {
"title": "$:/core/ui/EditorToolbar/heading-2",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/heading-2",
"caption": "{{$:/language/Buttons/Heading2/Caption}}",
"description": "{{$:/language/Buttons/Heading2/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((heading-2))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"2\"\n/>\n"
},
"$:/core/ui/EditorToolbar/heading-3": {
"title": "$:/core/ui/EditorToolbar/heading-3",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/heading-3",
"caption": "{{$:/language/Buttons/Heading3/Caption}}",
"description": "{{$:/language/Buttons/Heading3/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((heading-3))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"3\"\n/>\n"
},
"$:/core/ui/EditorToolbar/heading-4": {
"title": "$:/core/ui/EditorToolbar/heading-4",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/heading-4",
"caption": "{{$:/language/Buttons/Heading4/Caption}}",
"description": "{{$:/language/Buttons/Heading4/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((heading-4))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"4\"\n/>\n"
},
"$:/core/ui/EditorToolbar/heading-5": {
"title": "$:/core/ui/EditorToolbar/heading-5",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/heading-5",
"caption": "{{$:/language/Buttons/Heading5/Caption}}",
"description": "{{$:/language/Buttons/Heading5/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((heading-5))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"5\"\n/>\n"
},
"$:/core/ui/EditorToolbar/heading-6": {
"title": "$:/core/ui/EditorToolbar/heading-6",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/heading-6",
"caption": "{{$:/language/Buttons/Heading6/Caption}}",
"description": "{{$:/language/Buttons/Heading6/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((heading-6))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"6\"\n/>\n"
},
"$:/core/ui/EditorToolbar/italic": {
"title": "$:/core/ui/EditorToolbar/italic",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/italic",
"caption": "{{$:/language/Buttons/Italic/Caption}}",
"description": "{{$:/language/Buttons/Italic/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((italic))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"//\"\n\tsuffix=\"//\"\n/>\n"
},
"$:/core/ui/EditorToolbar/line-width-dropdown": {
"title": "$:/core/ui/EditorToolbar/line-width-dropdown",
"text": "\\define lingo-base() $:/language/Buttons/LineWidth/\n\n\\define toolbar-line-width-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(line-width)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/LineWidth\"\n\t$value=\"$(line-width)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"display: inline-block; margin: 4px calc(80px - $(line-width)$); background-color: #000; width: calc(100px + $(line-width)$ * 2); height: $(line-width)$; border-radius: 120px; vertical-align: middle;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(line-width)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/LineWidth\" type=\"match\" text=\"\"\"$(line-width)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/LineWidths}} variable=\"line-width\">\n\n<<toolbar-line-width-inner>>\n\n</$list>\n"
},
"$:/core/ui/EditorToolbar/line-width": {
"title": "$:/core/ui/EditorToolbar/line-width",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/line-width",
"caption": "{{$:/language/Buttons/LineWidth/Caption}}",
"description": "{{$:/language/Buttons/LineWidth/Hint}}",
"condition": "[<targetTiddler>is[image]]",
"dropdown": "$:/core/ui/EditorToolbar/line-width-dropdown",
"text": "<$text text={{$:/config/BitmapEditor/LineWidth}}/>"
},
"$:/core/ui/EditorToolbar/link-dropdown": {
"title": "$:/core/ui/EditorToolbar/link-dropdown",
"text": "\\define lingo-base() $:/language/Buttons/Link/\n\n\\define add-link-actions()\n<$action-sendmessage $message=\"tm-edit-text-operation\" $param=\"make-link\" text={{$(linkTiddler)$}} />\n<$action-deletetiddler $tiddler=<<dropdown-state>> />\n<$action-deletetiddler $tiddler=<<searchTiddler>> />\n<$action-deletetiddler $tiddler=<<linkTiddler>> />\n\\end\n\n\\define external-link()\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\" actions=<<add-link-actions>>>\n{{$:/core/images/chevron-right}}\n</$button>\n\\end\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<$vars searchTiddler=\"\"\"$config-title$/search\"\"\" linkTiddler=\"\"\"$config-title$/link\"\"\" linktext=\"\" >\n\n<$vars linkTiddler=<<searchTiddler>>>\n<$keyboard key=\"ENTER\" actions=<<add-link-actions>>>\n<$edit-text tiddler=<<searchTiddler>> type=\"search\" tag=\"input\" focus=\"true\" placeholder={{$:/language/Search/Search}} default=\"\"/>\n<$reveal tag=\"span\" state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n<<external-link>>\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\">\n<$action-setfield $tiddler=<<searchTiddler>> text=\"\" />\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</$keyboard>\n</$vars>\n\n<$reveal tag=\"div\" state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n\n<$linkcatcher actions=<<add-link-actions>> to=<<linkTiddler>>>\n\n{{$:/core/ui/SearchResults}}\n\n</$linkcatcher>\n\n</$reveal>\n\n</$vars>\n\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Link/\">>/>"
},
"$:/core/ui/EditorToolbar/link": {
"title": "$:/core/ui/EditorToolbar/link",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/link",
"caption": "{{$:/language/Buttons/Link/Caption}}",
"description": "{{$:/language/Buttons/Link/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"button-classes": "tc-text-editor-toolbar-item-start-group",
"shortcuts": "((link))",
"dropdown": "$:/core/ui/EditorToolbar/link-dropdown",
"text": ""
},
"$:/core/ui/EditorToolbar/linkify": {
"title": "$:/core/ui/EditorToolbar/linkify",
"caption": "{{$:/language/Buttons/Linkify/Caption}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"description": "{{$:/language/Buttons/Linkify/Hint}}",
"icon": "$:/core/images/linkify",
"list-before": "$:/core/ui/EditorToolbar/mono-block",
"shortcuts": "((linkify))",
"tags": "$:/tags/EditorToolbar",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"[[\"\n\tsuffix=\"]]\"\n/>\n"
},
"$:/core/ui/EditorToolbar/list-bullet": {
"title": "$:/core/ui/EditorToolbar/list-bullet",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/list-bullet",
"caption": "{{$:/language/Buttons/ListBullet/Caption}}",
"description": "{{$:/language/Buttons/ListBullet/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((list-bullet))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"*\"\n\tcount=\"1\"\n/>\n"
},
"$:/core/ui/EditorToolbar/list-number": {
"title": "$:/core/ui/EditorToolbar/list-number",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/list-number",
"caption": "{{$:/language/Buttons/ListNumber/Caption}}",
"description": "{{$:/language/Buttons/ListNumber/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((list-number))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"#\"\n\tcount=\"1\"\n/>\n"
},
"$:/core/ui/EditorToolbar/mono-block": {
"title": "$:/core/ui/EditorToolbar/mono-block",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/mono-block",
"caption": "{{$:/language/Buttons/MonoBlock/Caption}}",
"description": "{{$:/language/Buttons/MonoBlock/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"button-classes": "tc-text-editor-toolbar-item-start-group",
"shortcuts": "((mono-block))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n```\"\n\tsuffix=\"```\"\n/>\n"
},
"$:/core/ui/EditorToolbar/mono-line": {
"title": "$:/core/ui/EditorToolbar/mono-line",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/mono-line",
"caption": "{{$:/language/Buttons/MonoLine/Caption}}",
"description": "{{$:/language/Buttons/MonoLine/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((mono-line))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"`\"\n\tsuffix=\"`\"\n/>\n"
},
"$:/core/ui/EditorToolbar/more-dropdown": {
"title": "$:/core/ui/EditorToolbar/more-dropdown",
"text": "\\define config-title()\n$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$\n\\end\n\n\\define conditional-button()\n<$list filter={{$(toolbarItem)$!!condition}} variable=\"condition\">\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\" mode=\"inline\"/> <$transclude tiddler=<<toolbarItem>> field=\"description\"/>\n</$list>\n\\end\n\n<div class=\"tc-text-editor-toolbar-more\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]\">\n<$reveal type=\"match\" state=<<config-visibility-title>> text=\"hide\" tag=\"div\">\n<<conditional-button>>\n</$reveal>\n</$list>\n</div>\n"
},
"$:/core/ui/EditorToolbar/more": {
"title": "$:/core/ui/EditorToolbar/more",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/down-arrow",
"caption": "{{$:/language/Buttons/More/Caption}}",
"description": "{{$:/language/Buttons/More/Hint}}",
"condition": "[<targetTiddler>]",
"dropdown": "$:/core/ui/EditorToolbar/more-dropdown",
"text": ""
},
"$:/core/ui/EditorToolbar/opacity-dropdown": {
"title": "$:/core/ui/EditorToolbar/opacity-dropdown",
"text": "\\define lingo-base() $:/language/Buttons/Opacity/\n\n\\define toolbar-opacity-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(opacity)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Opacity\"\n\t$value=\"$(opacity)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(opacity)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/Opacity\" type=\"match\" text=\"\"\"$(opacity)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n\\define toolbar-opacity()\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/Opacities}} variable=\"opacity\">\n\n<<toolbar-opacity-inner>>\n\n</$list>\n\\end\n\n<$set name=\"current-paint-colour\" value={{$:/config/BitmapEditor/Colour}}>\n\n<$set name=\"current-opacity\" value={{$:/config/BitmapEditor/Opacity}}>\n\n<<toolbar-opacity>>\n\n</$set>\n\n</$set>\n"
},
"$:/core/ui/EditorToolbar/opacity": {
"title": "$:/core/ui/EditorToolbar/opacity",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/opacity",
"caption": "{{$:/language/Buttons/Opacity/Caption}}",
"description": "{{$:/language/Buttons/Opacity/Hint}}",
"condition": "[<targetTiddler>is[image]]",
"dropdown": "$:/core/ui/EditorToolbar/opacity-dropdown",
"text": "<$text text={{$:/config/BitmapEditor/Opacity}}/>\n"
},
"$:/core/ui/EditorToolbar/paint-dropdown": {
"title": "$:/core/ui/EditorToolbar/paint-dropdown",
"text": "''{{$:/language/Buttons/Paint/Hint}}''\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Colour\"\n\t$value=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n"
},
"$:/core/ui/EditorToolbar/paint": {
"title": "$:/core/ui/EditorToolbar/paint",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/paint",
"caption": "{{$:/language/Buttons/Paint/Caption}}",
"description": "{{$:/language/Buttons/Paint/Hint}}",
"condition": "[<targetTiddler>is[image]]",
"dropdown": "$:/core/ui/EditorToolbar/paint-dropdown",
"text": "\\define toolbar-paint()\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\\end\n<$set name=\"colour-picker-value\" value={{$:/config/BitmapEditor/Colour}}>\n<<toolbar-paint>>\n</$set>\n"
},
"$:/core/ui/EditorToolbar/picture-dropdown": {
"title": "$:/core/ui/EditorToolbar/picture-dropdown",
"text": "\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n''{{$:/language/Buttons/Picture/Hint}}''\n\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext=<<replacement-text>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n"
},
"$:/core/ui/EditorToolbar/picture": {
"title": "$:/core/ui/EditorToolbar/picture",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/picture",
"caption": "{{$:/language/Buttons/Picture/Caption}}",
"description": "{{$:/language/Buttons/Picture/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((picture))",
"dropdown": "$:/core/ui/EditorToolbar/picture-dropdown",
"text": ""
},
"$:/core/ui/EditorToolbar/preview-type-dropdown": {
"title": "$:/core/ui/EditorToolbar/preview-type-dropdown",
"text": "\\define preview-type-button()\n<$button tag=\"a\">\n\n<$action-setfield $tiddler=\"$:/state/editpreviewtype\" $value=\"$(previewType)$\"/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$transclude tiddler=<<previewType>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<previewType>> field=\"title\" mode=\"inline\"/>\n\n</$transclude> \n\n<$reveal tag=\"span\" state=\"$:/state/editpreviewtype\" type=\"match\" text=<<previewType>> default=\"$:/core/ui/EditTemplate/body/preview/output\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]\" variable=\"previewType\">\n\n<<preview-type-button>>\n\n</$list>\n"
},
"$:/core/ui/EditorToolbar/preview-type": {
"title": "$:/core/ui/EditorToolbar/preview-type",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/chevron-down",
"caption": "{{$:/language/Buttons/PreviewType/Caption}}",
"description": "{{$:/language/Buttons/PreviewType/Hint}}",
"condition": "[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]butfirst[]limit[1]]",
"button-classes": "tc-text-editor-toolbar-item-adjunct",
"dropdown": "$:/core/ui/EditorToolbar/preview-type-dropdown"
},
"$:/core/ui/EditorToolbar/preview": {
"title": "$:/core/ui/EditorToolbar/preview",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/preview-open",
"custom-icon": "yes",
"caption": "{{$:/language/Buttons/Preview/Caption}}",
"description": "{{$:/language/Buttons/Preview/Hint}}",
"condition": "[<targetTiddler>]",
"button-classes": "tc-text-editor-toolbar-item-start-group",
"shortcuts": "((preview))",
"text": "<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-open}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"no\"/>\n</$reveal>\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-closed}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"yes\"/>\n</$reveal>\n"
},
"$:/core/ui/EditorToolbar/quote": {
"title": "$:/core/ui/EditorToolbar/quote",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/quote",
"caption": "{{$:/language/Buttons/Quote/Caption}}",
"description": "{{$:/language/Buttons/Quote/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((quote))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n<<<\"\n\tsuffix=\"<<<\"\n/>\n"
},
"$:/core/ui/EditorToolbar/rotate-left": {
"title": "$:/core/ui/EditorToolbar/rotate-left",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/rotate-left",
"caption": "{{$:/language/Buttons/RotateLeft/Caption}}",
"description": "{{$:/language/Buttons/RotateLeft/Hint}}",
"condition": "[<targetTiddler>is[image]]",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"rotate-left\"\n/>\n"
},
"$:/core/ui/EditorToolbar/size-dropdown": {
"title": "$:/core/ui/EditorToolbar/size-dropdown",
"text": "\\define lingo-base() $:/language/Buttons/Size/\n\n\\define toolbar-button-size-preset(config-title)\n<$set name=\"width\" filter=\"$(sizePair)$ +[first[]]\">\n\n<$set name=\"height\" filter=\"$(sizePair)$ +[last[]]\">\n\n<$button tag=\"a\">\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n\t$value=<<width>>\n/>\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n\t$value=<<height>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/presets-popup\"\"\"\n/>\n\n<$text text=<<width>>/> × <$text text=<<height>>/>\n\n</$button>\n\n</$set>\n\n</$set>\n\\end\n\n\\define toolbar-button-size(config-title)\n''{{$:/language/Buttons/Size/Hint}}''\n\n<<lingo Caption/Width>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-width\"\"\" default=<<tv-bitmap-editor-width>> focus=\"true\" size=\"8\"/> <<lingo Caption/Height>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-height\"\"\" default=<<tv-bitmap-editor-height>> size=\"8\"/> <$button popup=\"\"\"$config-title$/presets-popup\"\"\" class=\"tc-btn-invisible tc-popup-keep\" style=\"width: auto; display: inline-block; background-colour: inherit;\" selectedClass=\"tc-selected\">\n{{$:/core/images/down-arrow}}\n</$button>\n\n<$reveal tag=\"span\" state=\"\"\"$config-title$/presets-popup\"\"\" type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down tc-popup-keep\">\n\n<$list filter={{$:/config/BitmapEditor/ImageSizes}} variable=\"sizePair\">\n\n<$macrocall $name=\"toolbar-button-size-preset\" config-title=\"$config-title$\"/>\n\n</$list>\n\n</div>\n\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"resize\"\n\twidth={{$config-title$/new-width}}\n\theight={{$config-title$/new-height}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Resize>>\n</$button>\n\\end\n\n<$macrocall $name=\"toolbar-button-size\" config-title=<<qualify \"$:/state/Size/\">>/>\n"
},
"$:/core/ui/EditorToolbar/size": {
"title": "$:/core/ui/EditorToolbar/size",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/size",
"caption": "{{$:/language/Buttons/Size/Caption}}",
"description": "{{$:/language/Buttons/Size/Hint}}",
"condition": "[<targetTiddler>is[image]]",
"dropdown": "$:/core/ui/EditorToolbar/size-dropdown",
"text": ""
},
"$:/core/ui/EditorToolbar/stamp-dropdown": {
"title": "$:/core/ui/EditorToolbar/stamp-dropdown",
"text": "\\define toolbar-button-stamp-inner()\n<$button tag=\"a\">\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext={{$(snippetTitle)$}}\n/>\n\n</$list>\n\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}}\nsuffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}}\n/>\n\n</$list>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$view tiddler=<<snippetTitle>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<snippetTitle>> field=\"title\" mode=\"inline\"/>\n\n</$view>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]\" variable=\"snippetTitle\">\n\n<<toolbar-button-stamp-inner>>\n\n</$list>\n\n----\n\n<$button tag=\"a\">\n\n<$action-sendmessage\n\t$message=\"tm-new-tiddler\"\n\ttags=\"$:/tags/TextEditor/Snippet\"\n\tcaption={{$:/language/Buttons/Stamp/New/Title}}\n\ttext={{$:/language/Buttons/Stamp/New/Text}}\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<em>\n\n<$text text={{$:/language/Buttons/Stamp/Caption/New}}/>\n\n</em>\n\n</$button>\n"
},
"$:/core/ui/EditorToolbar/stamp": {
"title": "$:/core/ui/EditorToolbar/stamp",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/stamp",
"caption": "{{$:/language/Buttons/Stamp/Caption}}",
"description": "{{$:/language/Buttons/Stamp/Hint}}",
"condition": "[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] +[first[]]",
"shortcuts": "((stamp))",
"dropdown": "$:/core/ui/EditorToolbar/stamp-dropdown",
"text": ""
},
"$:/core/ui/EditorToolbar/strikethrough": {
"title": "$:/core/ui/EditorToolbar/strikethrough",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/strikethrough",
"caption": "{{$:/language/Buttons/Strikethrough/Caption}}",
"description": "{{$:/language/Buttons/Strikethrough/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((strikethrough))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"~~\"\n\tsuffix=\"~~\"\n/>\n"
},
"$:/core/ui/EditorToolbar/subscript": {
"title": "$:/core/ui/EditorToolbar/subscript",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/subscript",
"caption": "{{$:/language/Buttons/Subscript/Caption}}",
"description": "{{$:/language/Buttons/Subscript/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((subscript))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\",,\"\n\tsuffix=\",,\"\n/>\n"
},
"$:/core/ui/EditorToolbar/superscript": {
"title": "$:/core/ui/EditorToolbar/superscript",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/superscript",
"caption": "{{$:/language/Buttons/Superscript/Caption}}",
"description": "{{$:/language/Buttons/Superscript/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((superscript))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"^^\"\n\tsuffix=\"^^\"\n/>\n"
},
"$:/core/ui/EditorToolbar/transcludify": {
"title": "$:/core/ui/EditorToolbar/transcludify",
"caption": "{{$:/language/Buttons/Transcludify/Caption}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"description": "{{$:/language/Buttons/Transcludify/Hint}}",
"icon": "$:/core/images/transcludify",
"list-before": "$:/core/ui/EditorToolbar/mono-block",
"shortcuts": "((transcludify))",
"tags": "$:/tags/EditorToolbar",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"{{\"\n\tsuffix=\"}}\"\n/>\n"
},
"$:/core/ui/EditorToolbar/underline": {
"title": "$:/core/ui/EditorToolbar/underline",
"tags": "$:/tags/EditorToolbar",
"icon": "$:/core/images/underline",
"caption": "{{$:/language/Buttons/Underline/Caption}}",
"description": "{{$:/language/Buttons/Underline/Hint}}",
"condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
"shortcuts": "((underline))",
"text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"__\"\n\tsuffix=\"__\"\n/>\n"
},
"$:/core/Filters/AllTags": {
"title": "$:/core/Filters/AllTags",
"tags": "$:/tags/Filter",
"filter": "[tags[]!is[system]sort[title]]",
"description": "{{$:/language/Filters/AllTags}}",
"text": ""
},
"$:/core/Filters/AllTiddlers": {
"title": "$:/core/Filters/AllTiddlers",
"tags": "$:/tags/Filter",
"filter": "[!is[system]sort[title]]",
"description": "{{$:/language/Filters/AllTiddlers}}",
"text": ""
},
"$:/core/Filters/Drafts": {
"title": "$:/core/Filters/Drafts",
"tags": "$:/tags/Filter",
"filter": "[has[draft.of]sort[title]]",
"description": "{{$:/language/Filters/Drafts}}",
"text": ""
},
"$:/core/Filters/Missing": {
"title": "$:/core/Filters/Missing",
"tags": "$:/tags/Filter",
"filter": "[all[missing]sort[title]]",
"description": "{{$:/language/Filters/Missing}}",
"text": ""
},
"$:/core/Filters/Orphans": {
"title": "$:/core/Filters/Orphans",
"tags": "$:/tags/Filter",
"filter": "[all[orphans]sort[title]]",
"description": "{{$:/language/Filters/Orphans}}",
"text": ""
},
"$:/core/Filters/OverriddenShadowTiddlers": {
"title": "$:/core/Filters/OverriddenShadowTiddlers",
"tags": "$:/tags/Filter",
"filter": "[is[shadow]]",
"description": "{{$:/language/Filters/OverriddenShadowTiddlers}}",
"text": ""
},
"$:/core/Filters/RecentSystemTiddlers": {
"title": "$:/core/Filters/RecentSystemTiddlers",
"tags": "$:/tags/Filter",
"filter": "[has[modified]!sort[modified]limit[50]]",
"description": "{{$:/language/Filters/RecentSystemTiddlers}}",
"text": ""
},
"$:/core/Filters/RecentTiddlers": {
"title": "$:/core/Filters/RecentTiddlers",
"tags": "$:/tags/Filter",
"filter": "[!is[system]has[modified]!sort[modified]limit[50]]",
"description": "{{$:/language/Filters/RecentTiddlers}}",
"text": ""
},
"$:/core/Filters/SessionTiddlers": {
"title": "$:/core/Filters/SessionTiddlers",
"tags": "$:/tags/Filter",
"filter": "[haschanged[]]",
"description": "{{$:/language/Filters/SessionTiddlers}}",
"text": ""
},
"$:/core/Filters/ShadowTiddlers": {
"title": "$:/core/Filters/ShadowTiddlers",
"tags": "$:/tags/Filter",
"filter": "[all[shadows]sort[title]]",
"description": "{{$:/language/Filters/ShadowTiddlers}}",
"text": ""
},
"$:/core/Filters/StoryList": {
"title": "$:/core/Filters/StoryList",
"tags": "$:/tags/Filter",
"filter": "[list[$:/StoryList]] -$:/AdvancedSearch",
"description": "{{$:/language/Filters/StoryList}}",
"text": ""
},
"$:/core/Filters/SystemTags": {
"title": "$:/core/Filters/SystemTags",
"tags": "$:/tags/Filter",
"filter": "[all[shadows+tiddlers]tags[]is[system]sort[title]]",
"description": "{{$:/language/Filters/SystemTags}}",
"text": ""
},
"$:/core/Filters/SystemTiddlers": {
"title": "$:/core/Filters/SystemTiddlers",
"tags": "$:/tags/Filter",
"filter": "[is[system]sort[title]]",
"description": "{{$:/language/Filters/SystemTiddlers}}",
"text": ""
},
"$:/core/Filters/TypedTiddlers": {
"title": "$:/core/Filters/TypedTiddlers",
"tags": "$:/tags/Filter",
"filter": "[!is[system]has[type]each[type]sort[type]] -[type[text/vnd.tiddlywiki]]",
"description": "{{$:/language/Filters/TypedTiddlers}}",
"text": ""
},
"$:/core/ui/ImportListing": {
"title": "$:/core/ui/ImportListing",
"text": "\\define lingo-base() $:/language/Import/\n\n\\define messageField()\nmessage-$(payloadTiddler)$\n\\end\n\n\\define selectionField()\nselection-$(payloadTiddler)$\n\\end\n\n\\define previewPopupState()\n$(currentTiddler)$!!popup-$(payloadTiddler)$\n\\end\n\n\\define select-all-actions()\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>\n</$list>\n\\end\n\n<table>\n<tbody>\n<tr>\n<th>\n<$checkbox tiddler=\"$:/state/import/select-all\" field=\"text\" checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" actions=<<select-all-actions>>>\n<<lingo Listing/Select/Caption>>\n</$checkbox>\n</th>\n<th>\n<<lingo Listing/Title/Caption>>\n</th>\n<th>\n<<lingo Listing/Status/Caption>>\n</th>\n</tr>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<tr>\n<td>\n<$checkbox field=<<selectionField>> checked=\"checked\" unchecked=\"unchecked\" default=\"checked\"/>\n</td>\n<td>\n<$reveal type=\"nomatch\" stateTitle=<<previewPopupState>> text=\"yes\" tag=\"div\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" setTitle=<<previewPopupState>> setTo=\"yes\">\n{{$:/core/images/right-arrow}} <$text text=<<payloadTiddler>>/>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<previewPopupState>> text=\"yes\" tag=\"div\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" setTitle=<<previewPopupState>> setTo=\"no\">\n{{$:/core/images/down-arrow}} <$text text=<<payloadTiddler>>/>\n</$button>\n</$reveal>\n</td>\n<td>\n<$view field=<<messageField>>/>\n</td>\n</tr>\n<tr>\n<td colspan=\"3\">\n<$reveal type=\"match\" text=\"yes\" stateTitle=<<previewPopupState>> tag=\"div\">\n<$list filter=\"[{$:/state/importpreviewtype}has[text]]\" variable=\"listItem\" emptyMessage={{$:/core/ui/ImportPreviews/Text}}>\n<$transclude tiddler={{$:/state/importpreviewtype}}/>\n</$list>\n</$reveal>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"
},
"$:/core/ui/ImportPreviews/Diff": {
"title": "$:/core/ui/ImportPreviews/Diff",
"tags": "$:/tags/ImportPreview",
"caption": "{{$:/language/Import/Listing/Preview/Diff}}",
"text": "<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>>/>\n"
},
"$:/core/ui/ImportPreviews/DiffFields": {
"title": "$:/core/ui/ImportPreviews/DiffFields",
"tags": "$:/tags/ImportPreview",
"caption": "{{$:/language/Import/Listing/Preview/DiffFields}}",
"text": "<$macrocall $name=\"compareTiddlers\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>> exclude=\"text\"/>\n"
},
"$:/core/ui/ImportPreviews/Fields": {
"title": "$:/core/ui/ImportPreviews/Fields",
"tags": "$:/tags/ImportPreview",
"caption": "{{$:/language/Import/Listing/Preview/Fields}}",
"text": "<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[<payloadTiddler>subtiddlerfields<currentTiddler>sort[]] -text\" variable=\"fieldName\">\n<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<fieldName>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<fieldName>> tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>>/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"
},
"$:/core/ui/ImportPreviews/Text": {
"title": "$:/core/ui/ImportPreviews/Text",
"tags": "$:/tags/ImportPreview",
"caption": "{{$:/language/Import/Listing/Preview/Text}}",
"text": "<$transclude tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> mode=\"block\"/>\n"
},
"$:/core/ui/ImportPreviews/TextRaw": {
"title": "$:/core/ui/ImportPreviews/TextRaw",
"tags": "$:/tags/ImportPreview",
"caption": "{{$:/language/Import/Listing/Preview/TextRaw}}",
"text": "<pre><code><$view tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> /></code></pre>"
},
"$:/core/ui/KeyboardShortcuts/advanced-search": {
"title": "$:/core/ui/KeyboardShortcuts/advanced-search",
"tags": "$:/tags/KeyboardShortcut",
"key": "((advanced-search))",
"text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\"[data-tiddler-title=\"$:/AdvancedSearch\"] .tc-search input\"\"\"/>\n</$navigator>\n"
},
"$:/core/ui/KeyboardShortcuts/new-image": {
"title": "$:/core/ui/KeyboardShortcuts/new-image",
"tags": "$:/tags/KeyboardShortcut",
"key": "((new-image))",
"text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-image}}\n</$navigator>\n"
},
"$:/core/ui/KeyboardShortcuts/new-journal": {
"title": "$:/core/ui/KeyboardShortcuts/new-journal",
"tags": "$:/tags/KeyboardShortcut",
"key": "((new-journal))",
"text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-journal}}\n</$navigator>\n"
},
"$:/core/ui/KeyboardShortcuts/new-tiddler": {
"title": "$:/core/ui/KeyboardShortcuts/new-tiddler",
"tags": "$:/tags/KeyboardShortcut",
"key": "((new-tiddler))",
"text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-tiddler}}\n</$navigator>\n"
},
"$:/core/ui/KeyboardShortcuts/sidebar-search": {
"title": "$:/core/ui/KeyboardShortcuts/sidebar-search",
"tags": "$:/tags/KeyboardShortcut",
"key": "((sidebar-search))",
"text": "<$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-search input\"/>\n"
},
"$:/core/ui/KeyboardShortcut/toggle-sidebar": {
"title": "$:/core/ui/KeyboardShortcut/toggle-sidebar",
"tags": "$:/tags/KeyboardShortcut",
"key": "((toggle-sidebar))",
"text": "<$list filter=\"[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]\" emptyMessage=\"\"\"\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"yes\"/>\n\"\"\">\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"no\"/>\n</$list>\n"
},
"$:/core/ui/ListItemTemplate": {
"title": "$:/core/ui/ListItemTemplate",
"text": "<div class=\"tc-menu-list-item\">\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</div>"
},
"$:/Manager/ItemMain/Fields": {
"title": "$:/Manager/ItemMain/Fields",
"tags": "$:/tags/Manager/ItemMain",
"caption": "{{$:/language/Manager/Item/Fields}}",
"text": "<table>\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n"
},
"$:/Manager/ItemMain/RawText": {
"title": "$:/Manager/ItemMain/RawText",
"tags": "$:/tags/Manager/ItemMain",
"caption": "{{$:/language/Manager/Item/RawText}}",
"text": "<pre><code><$view/></code></pre>\n"
},
"$:/Manager/ItemMain/WikifiedText": {
"title": "$:/Manager/ItemMain/WikifiedText",
"tags": "$:/tags/Manager/ItemMain",
"caption": "{{$:/language/Manager/Item/WikifiedText}}",
"text": "<$transclude mode=\"block\"/>\n"
},
"$:/Manager/ItemSidebar/Colour": {
"title": "$:/Manager/ItemSidebar/Colour",
"tags": "$:/tags/Manager/ItemSidebar",
"caption": "{{$:/language/Manager/Item/Colour}}",
"text": "\\define swatch-styles()\nheight: 1em;\nbackground-color: $(colour)$\n\\end\n\n<$vars colour={{!!color}}>\n<p style=<<swatch-styles>>/>\n</$vars>\n<p>\n<$edit-text field=\"color\" tag=\"input\" type=\"color\"/> / <$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/>\n</p>\n"
},
"$:/Manager/ItemSidebar/Icon": {
"title": "$:/Manager/ItemSidebar/Icon",
"tags": "$:/tags/Manager/ItemSidebar",
"caption": "{{$:/language/Manager/Item/Icon}}",
"text": "<p>\n<div class=\"tc-manager-icon-editor\">\n<$button popup=<<qualify \"$:/state/popup/image-picker\">> class=\"tc-btn-invisible\">\n<$transclude tiddler={{!!icon}}>\n{{$:/language/Manager/Item/Icon/None}}\n</$transclude>\n</$button>\n<div class=\"tc-block-dropdown-wrapper\" style=\"position: static;\">\n<$reveal state=<<qualify \"$:/state/popup/image-picker\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-popup\">\n<div class=\"tc-block-dropdown tc-popup-keep\" style=\"width: 80%; left: 10%; right: 10%; padding: 0.5em;\">\n<$macrocall $name=\"image-picker-include-tagged-images\" actions=\"\"\"\n<$action-setfield $field=\"icon\" $value=<<imageTitle>>/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/image-picker\">>/>\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n</div>\n</p>\n"
},
"$:/Manager/ItemSidebar/Tags": {
"title": "$:/Manager/ItemSidebar/Tags",
"tags": "$:/tags/Manager/ItemSidebar",
"caption": "{{$:/language/Manager/Item/Tags}}",
"text": "\\define tag-checkbox-actions()\n<$action-listops\n\t$tiddler=\"$:/config/Manager/RecentTags\"\n\t$subfilter=\"[<tag>] [list[$:/config/Manager/RecentTags]] +[limit[12]]\"\n/>\n\\end\n\n\\define tag-picker-actions()\n<<tag-checkbox-actions>>\n<$action-listops\n\t$tiddler=<<currentTiddler>>\n\t$field=\"tags\"\n\t$subfilter=\"[<tag>] [all[current]tags[]]\"\n/>\n\\end\n\n<p>\n<$list filter=\"[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] \" variable=\"tag\">\n<div>\n<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>\n<$macrocall $name=\"tag-pill\" tag=<<tag>>/>\n</$checkbox>\n</div>\n</$list>\n</p>\n<p>\n<$macrocall $name=\"tag-picker\" actions=<<tag-picker-actions>>/>\n</p>\n"
},
"$:/Manager/ItemSidebar/Tools": {
"title": "$:/Manager/ItemSidebar/Tools",
"tags": "$:/tags/Manager/ItemSidebar",
"caption": "{{$:/language/Manager/Item/Tools}}",
"text": "<p>\n<$button to=<<currentTiddler>>>{{$:/core/images/link}} open</$button>\n</p>\n<p>\n<$button message=\"tm-edit-tiddler\" param=<<currentTiddler>>>{{$:/core/images/edit-button}} edit</$button>\n</p>\n"
},
"$:/Manager": {
"title": "$:/Manager",
"icon": "$:/core/images/list",
"color": "#bbb",
"text": "\\define lingo-base() $:/language/Manager/\n\n\\define list-item-content-item()\n<div class=\"tc-manager-list-item-content-item\">\n\t<$vars state-title=\"\"\"$:/state/popup/manager/item/$(listItem)$\"\"\">\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"hide\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/down-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"nomatch\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"show\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/right-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\" class=\"tc-manager-list-item-content-item-body\">\n\t\t\t<$transclude tiddler=<<listItem>>/>\n\t\t</$reveal>\n\t</$vars>\n</div>\n\\end\n\n<div class=\"tc-manager-wrapper\">\n\t<div class=\"tc-manager-controls\">\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Show/Prompt>> <$select tiddler=\"$:/config/Manager/Show\" default=\"tiddlers\">\n\t\t\t\t<option value=\"tiddlers\"><<lingo Controls/Show/Option/Tiddlers>></option>\n\t\t\t\t<option value=\"tags\"><<lingo Controls/Show/Option/Tags>></option>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Search/Prompt>> <$edit-text tiddler=\"$:/config/Manager/Filter\" tag=\"input\" default=\"\" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/FilterByTag/Prompt>> <$select tiddler=\"$:/config/Manager/Tag\" default=\"\">\n\t\t\t\t<option value=\"\"><<lingo Controls/FilterByTag/None>></option>\n\t\t\t\t<$list filter=\"[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]\" variable=\"tag\">\n\t\t\t\t\t<option value=<<tag>>><$text text=<<tag>>/></option>\n\t\t\t\t</$list>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Sort/Prompt>> <$select tiddler=\"$:/config/Manager/Sort\" default=\"title\">\n\t\t\t\t<optgroup label=\"Common\">\n\t\t\t\t\t<$list filter=\"title modified modifier created creator created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t\t<optgroup label=\"All\">\n\t\t\t\t\t<$list filter=\"[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t</$select>\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/Order\" field=\"text\" checked=\"reverse\" unchecked=\"forward\" default=\"forward\">\n\t\t\t\t<<lingo Controls/Order/Prompt>>\n\t\t\t</$checkbox>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/System\" field=\"text\" checked=\"\" unchecked=\"system\" default=\"system\">\n\t\t\t\t{{$:/language/SystemTiddlers/Include/Prompt}}\n\t\t\t</$checkbox>\n\t\t</div>\n\t</div>\n\t<div class=\"tc-manager-list\">\n\t\t<$list filter=\"[all{$:/config/Manager/Show}!is{$:/config/Manager/System}search{$:/config/Manager/Filter}tag:strict{$:/config/Manager/Tag}sort{$:/config/Manager/Sort}order{$:/config/Manager/Order}]\">\n\t\t\t<$vars transclusion=<<currentTiddler>>>\n\t\t\t\t<div style=\"tc-manager-list-item\">\n\t\t\t\t\t<$button popup=<<qualify \"$:/state/manager/popup\">> class=\"tc-btn-invisible tc-manager-list-item-heading\" selectedClass=\"tc-manager-list-item-heading-selected\">\n\t\t\t\t\t\t<$text text=<<currentTiddler>>/>\n\t\t\t\t\t</$button>\n\t\t\t\t\t<$reveal state=<<qualify \"$:/state/manager/popup\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-manager-list-item-content tc-popup-handle\">\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-tiddler\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-sidebar\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</$reveal>\n\t\t\t\t</div>\n\t\t\t</$vars>\n\t\t</$list>\n\t</div>\n</div>\n"
},
"$:/core/ui/MissingTemplate": {
"title": "$:/core/ui/MissingTemplate",
"text": "<div class=\"tc-tiddler-missing\">\n<$button popup=<<qualify \"$:/state/popup/missing\">> class=\"tc-btn-invisible tc-missing-tiddler-label\">\n<$view field=\"title\" format=\"text\" />\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/missing\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n<hr>\n<$list filter=\"[all[current]backlinks[]sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n</div>\n"
},
"$:/core/ui/MoreSideBar/All": {
"title": "$:/core/ui/MoreSideBar/All",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/All/Caption}}",
"text": "<$list filter={{$:/core/Filters/AllTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/MoreSideBar/Drafts": {
"title": "$:/core/ui/MoreSideBar/Drafts",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Drafts/Caption}}",
"text": "<$list filter={{$:/core/Filters/Drafts!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/MoreSideBar/Explorer": {
"title": "$:/core/ui/MoreSideBar/Explorer",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Explorer/Caption}}",
"text": "<<tree \"$:/\">>\n"
},
"$:/core/ui/MoreSideBar/Missing": {
"title": "$:/core/ui/MoreSideBar/Missing",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Missing/Caption}}",
"text": "<$list filter={{$:/core/Filters/Missing!!filter}} template=\"$:/core/ui/MissingTemplate\"/>\n"
},
"$:/core/ui/MoreSideBar/Orphans": {
"title": "$:/core/ui/MoreSideBar/Orphans",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Orphans/Caption}}",
"text": "<$list filter={{$:/core/Filters/Orphans!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/MoreSideBar/Plugins": {
"title": "$:/core/ui/MoreSideBar/Plugins",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/ControlPanel/Plugins/Caption}}",
"text": "\n{{$:/language/ControlPanel/Plugins/Installed/Hint}}\n\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]\" \"$:/core/ui/MoreSideBar/Plugins/Plugins\">>\n"
},
"$:/core/ui/MoreSideBar/Recent": {
"title": "$:/core/ui/MoreSideBar/Recent",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Recent/Caption}}",
"text": "<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n"
},
"$:/core/ui/MoreSideBar/Shadows": {
"title": "$:/core/ui/MoreSideBar/Shadows",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Shadows/Caption}}",
"text": "<$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/MoreSideBar/System": {
"title": "$:/core/ui/MoreSideBar/System",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/System/Caption}}",
"text": "<$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/MoreSideBar/Tags": {
"title": "$:/core/ui/MoreSideBar/Tags",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Tags/Caption}}",
"text": "<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n{{$:/core/ui/Buttons/tag-manager}}\n\n</$set>\n\n</$set>\n\n</$set>\n\n<$list filter={{$:/core/Filters/AllTags!!filter}}>\n\n<$transclude tiddler=\"$:/core/ui/TagTemplate\"/>\n\n</$list>\n\n<hr class=\"tc-untagged-separator\">\n\n{{$:/core/ui/UntaggedTemplate}}\n"
},
"$:/core/ui/MoreSideBar/Types": {
"title": "$:/core/ui/MoreSideBar/Types",
"tags": "$:/tags/MoreSideBar",
"caption": "{{$:/language/SideBar/Types/Caption}}",
"text": "<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}>\n<div class=\"tc-menu-list-item\">\n<$view field=\"type\"/>\n<$list filter=\"[type{!!type}!is[system]sort[title]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}><$view field=\"title\"/></$link>\n</div>\n</$list>\n</div>\n</$list>\n"
},
"$:/core/ui/MoreSideBar/Plugins/Languages": {
"title": "$:/core/ui/MoreSideBar/Plugins/Languages",
"tags": "$:/tags/MoreSideBar/Plugins",
"caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}}",
"text": "<$list filter=\"[!has[draft.of]plugin-type[language]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n"
},
"$:/core/ui/MoreSideBar/Plugins/Plugins": {
"title": "$:/core/ui/MoreSideBar/Plugins/Plugins",
"tags": "$:/tags/MoreSideBar/Plugins",
"caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}}",
"text": "<$list filter=\"[!has[draft.of]plugin-type[plugin]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}>>/>\n"
},
"$:/core/ui/MoreSideBar/Plugins/Theme": {
"title": "$:/core/ui/MoreSideBar/Plugins/Theme",
"tags": "$:/tags/MoreSideBar/Plugins",
"caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}}",
"text": "<$list filter=\"[!has[draft.of]plugin-type[theme]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n"
},
"$:/core/ui/Buttons/advanced-search": {
"title": "$:/core/ui/Buttons/advanced-search",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/advanced-search-button}} {{$:/language/Buttons/AdvancedSearch/Caption}}",
"description": "{{$:/language/Buttons/AdvancedSearch/Hint}}",
"text": "\\define control-panel-button(class)\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/advanced-search-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n"
},
"$:/core/ui/Buttons/close-all": {
"title": "$:/core/ui/Buttons/close-all",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}",
"description": "{{$:/language/Buttons/CloseAll/Hint}}",
"text": "<$button message=\"tm-close-all-tiddlers\" tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/CloseAll/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/control-panel": {
"title": "$:/core/ui/Buttons/control-panel",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}",
"description": "{{$:/language/Buttons/ControlPanel/Hint}}",
"text": "\\define control-panel-button(class)\n<$button to=\"$:/ControlPanel\" tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/options-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/ControlPanel]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n"
},
"$:/core/ui/Buttons/encryption": {
"title": "$:/core/ui/Buttons/encryption",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Caption}}",
"description": "{{$:/language/Buttons/Encryption/Hint}}",
"text": "<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-clear-password\" tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/locked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-set-password\" tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/unlocked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>"
},
"$:/core/ui/Buttons/export-page": {
"title": "$:/core/ui/Buttons/export-page",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/export-button}} {{$:/language/Buttons/ExportPage/Caption}}",
"description": "{{$:/language/Buttons/ExportPage/Hint}}",
"text": "<$macrocall $name=\"exportButton\" exportFilter=\"[!is[system]sort[title]]\" lingoBase=\"$:/language/Buttons/ExportPage/\"/>"
},
"$:/core/ui/Buttons/fold-all": {
"title": "$:/core/ui/Buttons/fold-all",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/fold-all-button}} {{$:/language/Buttons/FoldAll/Caption}}",
"description": "{{$:/language/Buttons/FoldAll/Hint}}",
"text": "<$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FoldAll/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/full-screen": {
"title": "$:/core/ui/Buttons/full-screen",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}",
"description": "{{$:/language/Buttons/FullScreen/Hint}}",
"text": "<$button message=\"tm-full-screen\" tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/full-screen-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FullScreen/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/home": {
"title": "$:/core/ui/Buttons/home",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}",
"description": "{{$:/language/Buttons/Home/Hint}}",
"text": "<$button message=\"tm-home\" tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/home-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Home/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/import": {
"title": "$:/core/ui/Buttons/import",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}",
"description": "{{$:/language/Buttons/Import/Hint}}",
"text": "<div class=\"tc-file-input-wrapper\">\n<$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/import-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Import/Caption}}/></span>\n</$list>\n</$button>\n<$browse tooltip={{$:/language/Buttons/Import/Hint}}/>\n</div>"
},
"$:/core/ui/Buttons/language": {
"title": "$:/core/ui/Buttons/language",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}",
"description": "{{$:/language/Buttons/Language/Hint}}",
"text": "\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/language\">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value={{$:/language}}>\n<$image source=<<flag-title>>/>\n</$set>\n</span>\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Language/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/language\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/languageswitcher}}\n</div>\n</$reveal>"
},
"$:/core/ui/Buttons/manager": {
"title": "$:/core/ui/Buttons/manager",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/list}} {{$:/language/Buttons/Manager/Caption}}",
"description": "{{$:/language/Buttons/Manager/Hint}}",
"text": "\\define manager-button(class)\n<$button to=\"$:/Manager\" tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/list}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Manager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Manager]]\" emptyMessage=<<manager-button>>>\n<<manager-button \"tc-selected\">>\n</$list>\n"
},
"$:/core/ui/Buttons/more-page-actions": {
"title": "$:/core/ui/Buttons/more-page-actions",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}",
"description": "{{$:/language/Buttons/More/Hint}}",
"text": "\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/More/Caption}}/></span>\n</$list>\n</$button><$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"below\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>"
},
"$:/core/ui/Buttons/new-image": {
"title": "$:/core/ui/Buttons/new-image",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/new-image-button}} {{$:/language/Buttons/NewImage/Caption}}",
"description": "{{$:/language/Buttons/NewImage/Hint}}",
"text": "<$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-image}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-image-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewImage/Caption}}/></span>\n</$list>\n</$button>\n"
},
"$:/core/ui/Buttons/new-journal": {
"title": "$:/core/ui/Buttons/new-journal",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}",
"description": "{{$:/language/Buttons/NewJournal/Hint}}",
"text": "\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-journal}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span>\n</$list>\n</$button>\n\\end\n<<journalButton>>\n"
},
"$:/core/ui/Buttons/new-tiddler": {
"title": "$:/core/ui/Buttons/new-tiddler",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}",
"description": "{{$:/language/Buttons/NewTiddler/Hint}}",
"text": "<$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewTiddler/Caption}}/></span>\n</$list>\n</$button>\n"
},
"$:/core/ui/Buttons/palette": {
"title": "$:/core/ui/Buttons/palette",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/palette}} {{$:/language/Buttons/Palette/Caption}}",
"description": "{{$:/language/Buttons/Palette/Hint}}",
"text": "<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/palette\">> tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/palette}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Palette/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/palette\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\" style=\"font-size:0.7em;\">\n{{$:/snippets/paletteswitcher}}\n</div>\n</$reveal>"
},
"$:/core/ui/Buttons/print": {
"title": "$:/core/ui/Buttons/print",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/print-button}} {{$:/language/Buttons/Print/Caption}}",
"description": "{{$:/language/Buttons/Print/Hint}}",
"text": "<$button message=\"tm-print\" tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/print-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Print/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/refresh": {
"title": "$:/core/ui/Buttons/refresh",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}",
"description": "{{$:/language/Buttons/Refresh/Hint}}",
"text": "<$button message=\"tm-browser-refresh\" tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/refresh-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Refresh/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/save-wiki": {
"title": "$:/core/ui/Buttons/save-wiki",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}",
"description": "{{$:/language/Buttons/SaveWiki/Hint}}",
"text": "<$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"site-title\" text={{$:/config/SaveWikiButton/Filename}}>\n<$action-sendmessage $message=\"tm-save-wiki\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\n</$wikify>\n<span class=\"tc-dirty-indicator\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/save-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span>\n</$list>\n</span>\n</$button>"
},
"$:/core/ui/Buttons/storyview": {
"title": "$:/core/ui/Buttons/storyview",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/storyview-classic}} {{$:/language/Buttons/StoryView/Caption}}",
"description": "{{$:/language/Buttons/StoryView/Hint}}",
"text": "\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/storyview\">> tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<$set name=\"storyview\" value={{$:/view}}>\n<$transclude tiddler=<<icon>>/>\n</$set>\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/StoryView/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/storyview\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/viewswitcher}}\n</div>\n</$reveal>"
},
"$:/core/ui/Buttons/tag-manager": {
"title": "$:/core/ui/Buttons/tag-manager",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}",
"description": "{{$:/language/Buttons/TagManager/Hint}}",
"text": "\\define control-panel-button(class)\n<$button to=\"$:/TagManager\" tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/tag-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/TagManager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/TagManager]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n"
},
"$:/core/ui/Buttons/theme": {
"title": "$:/core/ui/Buttons/theme",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}",
"description": "{{$:/language/Buttons/Theme/Hint}}",
"text": "<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/theme\">> tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/theme-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Theme/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/theme\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$linkcatcher to=\"$:/theme\">\n{{$:/snippets/themeswitcher}}\n</$linkcatcher>\n</div>\n</$reveal>"
},
"$:/core/ui/Buttons/timestamp": {
"title": "$:/core/ui/Buttons/timestamp",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/timestamp-on}} {{$:/language/Buttons/Timestamp/Caption}}",
"description": "{{$:/language/Buttons/Timestamp/Hint}}",
"text": "<$reveal type=\"nomatch\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"yes\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-on}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/On/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"no\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-off}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>"
},
"$:/core/ui/Buttons/unfold-all": {
"title": "$:/core/ui/Buttons/unfold-all",
"tags": "$:/tags/PageControls",
"caption": "{{$:/core/images/unfold-all-button}} {{$:/language/Buttons/UnfoldAll/Caption}}",
"description": "{{$:/language/Buttons/UnfoldAll/Hint}}",
"text": "<$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-unfold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/UnfoldAll/Caption}}/></span>\n</$list>\n</$button>"
},
"$:/core/ui/PageTemplate/pagecontrols": {
"title": "$:/core/ui/PageTemplate/pagecontrols",
"text": "\\whitespace trim\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-page-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"hidden\" value=<<config-title>>>\n<$list filter=\"[<hidden>!text[hide]]\" storyview=\"pop\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n</$set>\n</$list>\n</$set>\n</$list>\n</div>\n"
},
"$:/core/ui/PageStylesheet": {
"title": "$:/core/ui/PageStylesheet",
"text": "\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$set name=\"currentTiddler\" value={{$:/language}}>\n\n<$set name=\"languageTitle\" value={{!!name}}>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\n</$set>\n\n</$set>\n"
},
"$:/core/ui/PageTemplate/alerts": {
"title": "$:/core/ui/PageTemplate/alerts",
"tags": "$:/tags/PageTemplate",
"text": "<div class=\"tc-alerts\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]\" template=\"$:/core/ui/AlertTemplate\" storyview=\"pop\"/>\n\n</div>\n"
},
"$:/core/ui/PageTemplate/drafts": {
"title": "$:/core/ui/PageTemplate/drafts",
"tags": "$:/tags/PageTemplate",
"text": "\\whitespace trim\n<$reveal state=\"$:/status/IsReadOnly\" type=\"nomatch\" text=\"yes\" tag=\"div\" class=\"tc-drafts-list\">\n<$list filter=\"[has[draft.of]!sort[modified]] -[list[$:/StoryList]]\">\n<$link>\n{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/>\n</$link>\n</$list>\n</$reveal>\n"
},
"$:/core/ui/PageTemplate/pluginreloadwarning": {
"title": "$:/core/ui/PageTemplate/pluginreloadwarning",
"tags": "$:/tags/PageTemplate",
"text": "\\define lingo-base() $:/language/\n\n<$list filter=\"[has[plugin-type]haschanged[]!plugin-type[import]limit[1]]\">\n\n<$reveal type=\"nomatch\" state=\"$:/temp/HidePluginWarning\" text=\"yes\">\n\n<div class=\"tc-plugin-reload-warning\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<<lingo PluginReloadWarning>> <$button set=\"$:/temp/HidePluginWarning\" setTo=\"yes\" class=\"tc-btn-invisible\">{{$:/core/images/close-button}}</$button>\n\n</$set>\n\n</div>\n\n</$reveal>\n\n</$list>\n"
},
"$:/core/ui/PageTemplate/sidebar": {
"title": "$:/core/ui/PageTemplate/sidebar",
"tags": "$:/tags/PageTemplate",
"text": "\\whitespace trim\n\\define config-title()\n$:/config/SideBarSegments/Visibility/$(listItem)$\n\\end\n\n<$scrollable fallthrough=\"no\" class=\"tc-sidebar-scrollable\">\n\n<div class=\"tc-sidebar-header\">\n\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]\" variable=\"listItem\">\n\n<$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\" tag=\"div\">\n\n<$transclude tiddler=<<listItem>> mode=\"block\"/>\n\n</$reveal>\n\n</$list>\n\n</$reveal>\n\n</div>\n\n</$scrollable>\n"
},
"$:/core/ui/PageTemplate/story": {
"title": "$:/core/ui/PageTemplate/story",
"tags": "$:/tags/PageTemplate",
"text": "\\whitespace trim\n<section class=\"tc-story-river\">\n\n<section class=\"story-backdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n<$list filter=\"[list[$:/StoryList]]\" history=\"$:/HistoryList\" template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>\n\n<section class=\"story-frontdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n</section>\n"
},
"$:/core/ui/PageTemplate/topleftbar": {
"title": "$:/core/ui/PageTemplate/topleftbar",
"tags": "$:/tags/PageTemplate",
"text": "<span class=\"tc-topbar tc-topbar-left\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n"
},
"$:/core/ui/PageTemplate/toprightbar": {
"title": "$:/core/ui/PageTemplate/toprightbar",
"tags": "$:/tags/PageTemplate",
"text": "<span class=\"tc-topbar tc-topbar-right\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n"
},
"$:/core/ui/PageTemplate": {
"title": "$:/core/ui/PageTemplate",
"text": "\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$set name=\"tv-config-toolbar-icons\" value={{$:/config/Toolbar/Icons}}>\n\n<$set name=\"tv-config-toolbar-text\" value={{$:/config/Toolbar/Text}}>\n\n<$set name=\"tv-config-toolbar-class\" value={{$:/config/Toolbar/ButtonClass}}>\n\n<$set name=\"tv-show-missing-links\" value={{$:/config/MissingLinks}}>\n\n<$set name=\"storyviewTitle\" value={{$:/view}}>\n\n<$set name=\"languageTitle\" value={{{ [{$:/language}get[name]] }}}>\n\n<div class=<<containerClasses>>>\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n\n<$dropzone>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]\" variable=\"listItem\">\n\n<$transclude tiddler=<<listItem>>/>\n\n</$list>\n\n</$dropzone>\n\n</$navigator>\n\n</div>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</$set>\n"
},
"$:/PaletteManager": {
"title": "$:/PaletteManager",
"text": "\\define lingo-base() $:/language/ControlPanel/Palette/Editor/\n\\define describePaletteColour(colour)\n<$transclude tiddler=\"$:/language/Docs/PaletteColours/$colour$\"><$text text=\"$colour$\"/></$transclude>\n\\end\n\\define edit-colour-placeholder()\n edit $(colourName)$\n\\end\n\\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$ \n\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n<$wikify name=\"name\" text=\"\"\"$macrocall$\"\"\">\n<<name>>\n</$wikify>\n\\end\n\\define delete-colour-index-actions() <$action-setfield $index=<<colourName>>/>\n\\define palette-manager-colour-row-segment()\n\\whitespace trim\n<$edit-text index=<<colourName>> tag=\"input\" placeholder=<<edit-colour-placeholder>> default=\"\"/>\n<br>\n<$edit-text index=<<colourName>> type=\"color\" tag=\"input\" class=\"tc-palette-manager-colour-input\"/>\n<$list filter=\"[<currentTiddler>getindex<colourName>removeprefix[<<]removesuffix[>>]] [<currentTiddler>getindex<colourName>removeprefix[<$]removesuffix[/>]]\" variable=\"ignore\">\n<$set name=\"state\" value={{{ [[$:/state/palettemanager/]addsuffix<currentTiddler>addsuffix[/]addsuffix<colourName>] }}}>\n<$wikify name=\"newColourName\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall={{{ [<currentTiddler>getindex<colourName>] }}}/>\"\"\">\n<$reveal state=<<state>> type=\"nomatch\" text=\"show\">\n<$button tooltip=<<colour-tooltip show>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" set=<<state>> setTo=\"show\">{{$:/core/images/down-arrow}} <$text text=<<newColourName>>/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$button tooltip=<<colour-tooltip hide>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" actions=\"\"\"<$action-deletetiddler $tiddler=<<state>>/>\"\"\">{{$:/core/images/up-arrow}} <$text text=<<newColourName>>/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$set name=\"colourName\" value=<<newColourName>>>\n<br>\n<<palette-manager-colour-row-segment>>\n<br><br>\n</$set>\n</$reveal>\n</$wikify>\n</$set>\n</$list>\n\\end\n\\define palette-manager-colour-row()\n\\whitespace trim\n<tr>\n<td>\n<span style=\"float:right;\">\n<$button tooltip=<<lingo Delete/Hint>> aria-label=<<lingo Delete/Hint>> class=\"tc-btn-invisible\" actions=<<delete-colour-index-actions>>>\n{{$:/core/images/delete-button}}</$button>\n</span>\n''<$macrocall $name=\"describePaletteColour\" colour=<<colourName>>/>''<br/>\n<$macrocall $name=\"colourName\" $output=\"text/plain\"/>\n</td>\n<td>\n<<palette-manager-colour-row-segment>>\n</td>\n</tr>\n\\end\n\\define palette-manager-table()\n\\whitespace trim\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]\" variable=\"colourName\">\n<$list filter=\"[<currentTiddler>indexes[]removeprefix<colourName>suffix[]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$list filter=\"[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]\" variable=\"ignore\">\n<<palette-manager-colour-row>>\n</$list>\n\"\"\">\n<<palette-manager-colour-row>>\n</$list>\n</$list>\n</tbody>\n</table>\n\\end\n<$set name=\"currentTiddler\" value={{$:/palette}}>\n\n<<lingo Prompt>> <$link to={{$:/palette}}><$macrocall $name=\"currentTiddler\" $output=\"text/plain\"/></$link>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\" variable=\"listItem\">\n<<lingo Prompt/Modified>>\n<$button message=\"tm-delete-tiddler\" param={{$:/palette}}><<lingo Reset/Caption>></$button>\n</$list>\n\n<$list filter=\"[all[current]is[shadow]!is[tiddler]]\" variable=\"listItem\">\n<<lingo Clone/Prompt>>\n</$list>\n\n<$button message=\"tm-new-tiddler\" param={{$:/palette}}><<lingo Clone/Caption>></$button>\n\n<$checkbox tiddler=\"$:/state/palettemanager/showexternal\" field=\"text\" checked=\"yes\" unchecked=\"no\"> <<lingo Names/External/Show>></$checkbox>\n\n<<palette-manager-table>>\n"
},
"$:/core/ui/PluginInfo": {
"title": "$:/core/ui/PluginInfo",
"text": "\\define localised-info-tiddler-title()\n$(currentTiddler)$/$(languageTitle)$/$(currentTab)$\n\\end\n\\define info-tiddler-title()\n$(currentTiddler)$/$(currentTab)$\n\\end\n\\define default-tiddler-title()\n$:/core/ui/PluginInfo/Default/$(currentTab)$\n\\end\n<$transclude tiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<default-tiddler-title>> mode=\"block\">\n{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}}\n</$transclude>\n</$transclude>\n</$transclude>\n</$transclude>\n"
},
"$:/core/ui/PluginInfo/Default/contents": {
"title": "$:/core/ui/PluginInfo/Default/contents",
"text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</li>\n</$list>\n</ul>\n"
},
"$:/core/ui/PluginListItemTemplate": {
"title": "$:/core/ui/PluginListItemTemplate",
"text": "<div class=\"tc-menu-list-item\">\n<$link to={{!!title}}>\n<$view field=\"description\">\n<$view field=\"title\"/>\n</$view>\n</$link>\n</div>"
},
"$:/core/ui/SearchResults": {
"title": "$:/core/ui/SearchResults",
"text": "<div class=\"tc-search-results\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\"\"\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}}/>\n\n</$list>\n\n</div>\n"
},
"$:/core/ui/SideBar/More": {
"title": "$:/core/ui/SideBar/More",
"tags": "$:/tags/SideBar",
"caption": "{{$:/language/SideBar/More/Caption}}",
"text": "<div class=\"tc-more-sidebar\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\" default={{$:/config/DefaultMoreSidebarTab}} state=\"$:/state/tab/moresidebar\" class=\"tc-vertical\" />\n</div>"
},
"$:/core/ui/SideBar/Open": {
"title": "$:/core/ui/SideBar/Open",
"tags": "$:/tags/SideBar",
"caption": "{{$:/language/SideBar/Open/Caption}}",
"text": "\\whitespace trim\n\\define lingo-base() $:/language/CloseAll/\n\n\\define drop-actions()\n<$action-listops $tiddler=<<tv-story-list>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define placeholder()\n<div class=\"tc-droppable-placeholder\"/>\n\\end\n\n\\define droppable-item(button)\n\\whitespace trim\n<$droppable actions=<<drop-actions>>>\n<<placeholder>>\n<div>\n$button$\n</div>\n</$droppable>\n\\end\n\n<div class=\"tc-sidebar-tab-open\">\n<$list filter=\"[list<tv-story-list>]\" history=<<tv-history-list>> storyview=\"pop\">\n<div class=\"tc-sidebar-tab-open-item\">\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=\"tc-btn-invisible tc-btn-mini\">{{$:/core/images/close-button}}</$button> <$link to={{!!title}}><$view field=\"title\"/></$link>\"\"\"/>\n</div>\n</$list>\n<$tiddler tiddler=\"\">\n<div>\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-all-tiddlers\" class=\"tc-btn-invisible tc-btn-mini\"><<lingo Button>></$button>\"\"\"/>\n</div>\n</$tiddler>\n</div>\n"
},
"$:/core/ui/SideBar/Recent": {
"title": "$:/core/ui/SideBar/Recent",
"tags": "$:/tags/SideBar",
"caption": "{{$:/language/SideBar/Recent/Caption}}",
"text": "<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n"
},
"$:/core/ui/SideBar/Tools": {
"title": "$:/core/ui/SideBar/Tools",
"tags": "$:/tags/SideBar",
"caption": "{{$:/language/SideBar/Tools/Caption}}",
"text": "\\define lingo-base() $:/language/ControlPanel/\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n\n<<lingo Basics/Version/Prompt>> <<version>>\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n\n<div style=\"position:relative;\" class={{{ [<listItem>encodeuricomponent[]addprefix[tc-btn-]] }}}>\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</div>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n"
},
"$:/core/ui/SideBarLists": {
"title": "$:/core/ui/SideBarLists",
"text": "<$transclude tiddler=\"$:/core/ui/SideBarSegments/search\"/>\n\n<$transclude tiddler=\"$:/core/ui/SideBarSegments/tabs\"/>\n\n"
},
"$:/core/ui/SideBarSegments/page-controls": {
"title": "$:/core/ui/SideBarSegments/page-controls",
"tags": "$:/tags/SideBarSegment",
"text": "{{||$:/core/ui/PageTemplate/pagecontrols}}\n"
},
"$:/core/ui/SideBarSegments/search": {
"title": "$:/core/ui/SideBarSegments/search",
"tags": "$:/tags/SideBarSegment",
"text": "<div class=\"tc-sidebar-lists tc-sidebar-search\">\n\n<$set name=\"searchTiddler\" value=\"$:/temp/search\">\n<div class=\"tc-search\">\n<$edit-text tiddler=\"$:/temp/search\" type=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify \"$:/state/popup/search-dropdown\">> class=\"tc-popup-handle\"/>\n<$reveal state=\"$:/temp/search\" type=\"nomatch\" text=\"\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search}}/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\" />\n{{$:/core/images/close-button}}\n</$button>\n<$button popup=<<qualify \"$:/state/popup/search-dropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n<$list filter=\"[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$set name=\"searchTerm\" value={{{ [<searchTiddler>get[text]] }}}>\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[!is[system]search<searchTerm>]\"/>\"\"\">\n{{$:/language/Search/Matches}}\n</$set>\n</$set>\n</$list>\n</$button>\n</$reveal>\n<$reveal state=\"$:/temp/search\" type=\"match\" text=\"\">\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown-wrapper\" state=\"$:/temp/search\" type=\"nomatch\" text=\"\">\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown tc-search-drop-down tc-popup-handle\" state=<<qualify \"$:/state/popup/search-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n\n<$list filter=\"[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n{{$:/core/ui/SearchResults}}\n\n</$list>\n\n</$reveal>\n\n</$reveal>\n\n</$set>\n\n</div>\n"
},
"$:/core/ui/SideBarSegments/site-subtitle": {
"title": "$:/core/ui/SideBarSegments/site-subtitle",
"tags": "$:/tags/SideBarSegment",
"text": "<div class=\"tc-site-subtitle\">\n\n<$transclude tiddler=\"$:/SiteSubtitle\" mode=\"inline\"/>\n\n</div>\n"
},
"$:/core/ui/SideBarSegments/site-title": {
"title": "$:/core/ui/SideBarSegments/site-title",
"tags": "$:/tags/SideBarSegment",
"text": "<h1 class=\"tc-site-title\">\n\n<$transclude tiddler=\"$:/SiteTitle\" mode=\"inline\"/>\n\n</h1>\n"
},
"$:/core/ui/SideBarSegments/tabs": {
"title": "$:/core/ui/SideBarSegments/tabs",
"tags": "$:/tags/SideBarSegment",
"text": "<div class=\"tc-sidebar-lists tc-sidebar-tabs\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\" default={{$:/config/DefaultSidebarTab}} state=\"$:/state/tab/sidebar\" />\n\n</div>\n"
},
"$:/TagManager": {
"title": "$:/TagManager",
"icon": "$:/core/images/tag-button",
"color": "#bbb",
"text": "\\define lingo-base() $:/language/TagManager/\n\\define iconEditorTab(type)\n<$list filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]\">\n<$link to={{!!title}}>\n<$transclude/> <$view field=\"title\"/>\n</$link>\n</$list>\n\\end\n\\define iconEditor(title)\n<div class=\"tc-drop-down-wrapper\">\n<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$linkcatcher actions=\"\"\"<$action-setfield $tiddler=<<__title__>> icon=<<navigateTo>>/>\"\"\">\n<<iconEditorTab type:\"!\">>\n<hr/>\n<<iconEditorTab type:\"\">>\n</$linkcatcher>\n</div>\n</$reveal>\n</div>\n\\end\n\\define toggleButton(state)\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"closed\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"open\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"open\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"closed\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n\\end\n<table class=\"tc-tag-manager-table\">\n<tbody>\n<tr>\n<th><<lingo Colour/Heading>></th>\n<th class=\"tc-tag-manager-tag\"><<lingo Tag/Heading>></th>\n<th><<lingo Count/Heading>></th>\n<th><<lingo Icon/Heading>></th>\n<th><<lingo Info/Heading>></th>\n</tr>\n<$list filter=\"[tags[]!is[system]sort[title]]\">\n<tr>\n<td><$edit-text field=\"color\" tag=\"input\" type=\"color\"/></td>\n<td>{{||$:/core/ui/TagTemplate}}</td>\n<td><$count filter=\"[all[current]tagging[]]\"/></td>\n<td>\n<$macrocall $name=\"iconEditor\" title={{!!title}}/>\n</td>\n<td>\n<$macrocall $name=\"toggleButton\" state={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} /> \n</td>\n</tr>\n<tr>\n<td></td>\n<td colspan=\"4\">\n<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} type=\"match\" text=\"open\" default=\"\">\n<table>\n<tbody>\n<tr><td><<lingo Colour/Heading>></td><td><$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/></td></tr>\n<tr><td><<lingo Icon/Heading>></td><td><$edit-text field=\"icon\" tag=\"input\" size=\"45\"/></td></tr>\n</tbody>\n</table>\n</$reveal>\n</td>\n</tr>\n</$list>\n<tr>\n<td></td>\n<td style=\"position:relative;\">\n{{$:/core/ui/UntaggedTemplate}}\n</td>\n<td>\n<small class=\"tc-menu-list-count\"><$count filter=\"[untagged[]!is[system]] -[tags[]]\"/></small>\n</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n"
},
"$:/core/ui/TagTemplate": {
"title": "$:/core/ui/TagTemplate",
"text": "\\whitespace trim\n<span class=\"tc-tag-list-item\">\n<$set name=\"transclusion\" value=<<currentTiddler>>>\n<$macrocall $name=\"tag-pill-body\" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag=\"\"\"$button\"\"\" element-attributes=\"\"\"popup=<<qualify \"$:/state/popup/tag\">> dragFilter='[all[current]tagging[]]' tag='span'\"\"\"/>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\" animate=\"yes\" class=\"tc-drop-down\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]\" variable=\"listItem\"> \n<$transclude tiddler=<<listItem>>/> \n</$list>\n<hr>\n<$macrocall $name=\"list-tagged-draggable\" tag=<<currentTiddler>>/>\n</$reveal>\n</$set>\n</span>\n"
},
"$:/core/ui/TiddlerFieldTemplate": {
"title": "$:/core/ui/TiddlerFieldTemplate",
"text": "<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<listItem>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<listItem>>/>\n</td>\n</tr>"
},
"$:/core/ui/TiddlerFields": {
"title": "$:/core/ui/TiddlerFields",
"text": "<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n"
},
"$:/core/ui/TiddlerInfo/Advanced/PluginInfo": {
"title": "$:/core/ui/TiddlerInfo/Advanced/PluginInfo",
"tags": "$:/tags/TiddlerInfo/Advanced",
"text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<$list filter=\"[all[current]has[plugin-type]]\">\n\n! <<lingo Heading>>\n\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</li>\n</$list>\n</ul>\n\n</$list>\n"
},
"$:/core/ui/TiddlerInfo/Advanced/ShadowInfo": {
"title": "$:/core/ui/TiddlerInfo/Advanced/ShadowInfo",
"tags": "$:/tags/TiddlerInfo/Advanced",
"text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/\n<$set name=\"infoTiddler\" value=<<currentTiddler>>>\n\n''<<lingo Heading>>''\n\n<$list filter=\"[all[current]!is[shadow]]\">\n\n<<lingo NotShadow/Hint>>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]]\">\n\n<<lingo Shadow/Hint>>\n\n<$list filter=\"[all[current]shadowsource[]]\">\n\n<$set name=\"pluginTiddler\" value=<<currentTiddler>>>\n<<lingo Shadow/Source>>\n</$set>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\">\n\n<<lingo OverriddenShadow/Hint>>\n\n</$list>\n\n\n</$list>\n</$set>\n"
},
"$:/core/ui/TiddlerInfo/Advanced": {
"title": "$:/core/ui/TiddlerInfo/Advanced",
"tags": "$:/tags/TiddlerInfo",
"caption": "{{$:/language/TiddlerInfo/Advanced/Caption}}",
"text": "<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]\" variable=\"listItem\">\n<$transclude tiddler=<<listItem>>/>\n\n</$list>\n"
},
"$:/core/ui/TiddlerInfo/Fields": {
"title": "$:/core/ui/TiddlerInfo/Fields",
"tags": "$:/tags/TiddlerInfo",
"caption": "{{$:/language/TiddlerInfo/Fields/Caption}}",
"text": "<$transclude tiddler=\"$:/core/ui/TiddlerFields\"/>\n"
},
"$:/core/ui/TiddlerInfo/List": {
"title": "$:/core/ui/TiddlerInfo/List",
"tags": "$:/tags/TiddlerInfo",
"caption": "{{$:/language/TiddlerInfo/List/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[list{!!title}]\" emptyMessage=<<lingo List/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/TiddlerInfo/Listed": {
"title": "$:/core/ui/TiddlerInfo/Listed",
"tags": "$:/tags/TiddlerInfo",
"caption": "{{$:/language/TiddlerInfo/Listed/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]listed[]!is[system]]\" emptyMessage=<<lingo Listed/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/TiddlerInfo/References": {
"title": "$:/core/ui/TiddlerInfo/References",
"tags": "$:/tags/TiddlerInfo",
"caption": "{{$:/language/TiddlerInfo/References/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]backlinks[]sort[title]]\" emptyMessage=<<lingo References/Empty>> template=\"$:/core/ui/ListItemTemplate\">\n</$list>"
},
"$:/core/ui/TiddlerInfo/Tagging": {
"title": "$:/core/ui/TiddlerInfo/Tagging",
"tags": "$:/tags/TiddlerInfo",
"caption": "{{$:/language/TiddlerInfo/Tagging/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]tagging[]]\" emptyMessage=<<lingo Tagging/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"
},
"$:/core/ui/TiddlerInfo/Tools": {
"title": "$:/core/ui/TiddlerInfo/Tools",
"tags": "$:/tags/TiddlerInfo",
"caption": "{{$:/language/TiddlerInfo/Tools/Caption}}",
"text": "\\define lingo-base() $:/language/TiddlerInfo/\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\">\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n"
},
"$:/core/ui/TiddlerInfo": {
"title": "$:/core/ui/TiddlerInfo",
"text": "<div style=\"position:relative;\">\n<div class=\"tc-tiddler-controls\" style=\"position:absolute;right:0;\">\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n</div>\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]\" default={{$:/config/TiddlerInfo/Default}}/>"
},
"$:/core/ui/TopBar/menu": {
"title": "$:/core/ui/TopBar/menu",
"tags": "$:/tags/TopRightBar",
"text": "<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"no\">\n<$button set=\"$:/state/sidebar\" setTo=\"no\" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class=\"tc-btn-invisible\">{{$:/core/images/chevron-right}}</$button>\n</$reveal>\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"no\">\n<$button set=\"$:/state/sidebar\" setTo=\"yes\" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class=\"tc-btn-invisible\">{{$:/core/images/chevron-left}}</$button>\n</$reveal>\n"
},
"$:/core/ui/UntaggedTemplate": {
"title": "$:/core/ui/UntaggedTemplate",
"text": "\\define lingo-base() $:/language/SideBar/\n<$button popup=<<qualify \"$:/state/popup/tag\">> class=\"tc-btn-invisible tc-untagged-label tc-tag-label\">\n<<lingo Tags/Untagged/Caption>>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\">\n<div class=\"tc-drop-down\">\n<$list filter=\"[untagged[]!is[system]] -[tags[]] +[sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n"
},
"$:/core/ui/ViewTemplate/body": {
"title": "$:/core/ui/ViewTemplate/body",
"tags": "$:/tags/ViewTemplate",
"text": "<$reveal tag=\"div\" class=\"tc-tiddler-body\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[current]!has[plugin-type]!field:hide-body[yes]]\">\n\n<$transclude>\n\n<$transclude tiddler=\"$:/language/MissingTiddler/Hint\"/>\n\n</$transclude>\n\n</$list>\n\n</$reveal>\n"
},
"$:/core/ui/ViewTemplate/classic": {
"title": "$:/core/ui/ViewTemplate/classic",
"tags": "$:/tags/ViewTemplate $:/tags/EditTemplate",
"text": "\\define lingo-base() $:/language/ClassicWarning/\n<$list filter=\"[all[current]type[text/x-tiddlywiki]]\">\n<div class=\"tc-message-box\">\n\n<<lingo Hint>>\n\n<$button set=\"!!type\" setTo=\"text/vnd.tiddlywiki\"><<lingo Upgrade/Caption>></$button>\n\n</div>\n</$list>\n"
},
"$:/core/ui/ViewTemplate/import": {
"title": "$:/core/ui/ViewTemplate/import",
"tags": "$:/tags/ViewTemplate",
"text": "\\define lingo-base() $:/language/Import/\n\n\\define buttons()\n<$button message=\"tm-delete-tiddler\" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>\n<$button message=\"tm-perform-import\" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>\n<<lingo Listing/Preview>> <$select tiddler=\"$:/state/importpreviewtype\" default=\"$:/core/ui/ImportPreviews/Text\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]\">\n<option value=<<currentTiddler>>>{{!!caption}}</option>\n</$list>\n</$select>\n\\end\n\n<$list filter=\"[all[current]field:plugin-type[import]]\">\n\n<div class=\"tc-import\">\n\n<<lingo Listing/Hint>>\n\n<<buttons>>\n\n{{||$:/core/ui/ImportListing}}\n\n<<buttons>>\n\n</div>\n\n</$list>\n"
},
"$:/core/ui/ViewTemplate/plugin": {
"title": "$:/core/ui/ViewTemplate/plugin",
"tags": "$:/tags/ViewTemplate",
"text": "<$list filter=\"[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]\">\n<$set name=\"plugin-type\" value={{!!plugin-type}}>\n<$set name=\"default-popup-state\" value=\"yes\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n{{||$:/core/ui/Components/plugin-info}}\n</$set>\n</$set>\n</$set>\n</$list>\n"
},
"$:/core/ui/ViewTemplate/subtitle": {
"title": "$:/core/ui/ViewTemplate/subtitle",
"tags": "$:/tags/ViewTemplate",
"text": "<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}}>\n<$view field=\"modifier\"/>\n</$link> <$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n</$reveal>\n"
},
"$:/core/ui/ViewTemplate/tags": {
"title": "$:/core/ui/ViewTemplate/tags",
"tags": "$:/tags/ViewTemplate",
"text": "<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-tags-wrapper\"><$list filter=\"[all[current]tags[]sort[title]]\" template=\"$:/core/ui/TagTemplate\" storyview=\"pop\"/></div>\n</$reveal>\n"
},
"$:/core/ui/ViewTemplate/title": {
"title": "$:/core/ui/ViewTemplate/title",
"tags": "$:/tags/ViewTemplate",
"text": "\\define title-styles()\nfill:$(foregroundColor)$;\n\\end\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<span class=\"tc-tiddler-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list>\n</span>\n<$set name=\"tv-wikilinks\" value={{$:/config/Tiddlers/TitleLinks}}>\n<$link>\n<$set name=\"foregroundColor\" value={{!!color}}>\n<span class=\"tc-tiddler-title-icon\" style=<<title-styles>>>\n<$transclude tiddler={{!!icon}}/>\n</span>\n</$set>\n<$list filter=\"[all[current]removeprefix[$:/]]\">\n<h2 class=\"tc-title\" title={{$:/language/SystemTiddler/Tooltip}}>\n<span class=\"tc-system-title-prefix\">$:/</span><$text text=<<currentTiddler>>/>\n</h2>\n</$list>\n<$list filter=\"[all[current]!prefix[$:/]]\">\n<h2 class=\"tc-title\">\n<$view field=\"title\"/>\n</h2>\n</$list>\n</$link>\n</$set>\n</div>\n\n<$reveal type=\"nomatch\" text=\"\" default=\"\" state=<<tiddlerInfoState>> class=\"tc-tiddler-info tc-popup-handle\" animate=\"yes\" retain=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>> mode=\"block\"/></$list>\n\n</$reveal>\n</div>"
},
"$:/core/ui/ViewTemplate/unfold": {
"title": "$:/core/ui/ViewTemplate/unfold",
"tags": "$:/tags/ViewTemplate",
"text": "<$reveal tag=\"div\" type=\"nomatch\" state=\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar\" text=\"hide\">\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=\"tc-fold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-up}}\n</$button>\n</$reveal>\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"show\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=\"tc-unfold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</$reveal>\n"
},
"$:/core/ui/ViewTemplate": {
"title": "$:/core/ui/ViewTemplate",
"text": "\\define folded-state()\n$:/state/folded/$(currentTiddler)$\n\\end\n<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify \"$:/state/popup/tiddler-info\">>><div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>>/></$list>\n</div>\n</$vars>\n"
},
"$:/core/ui/Buttons/clone": {
"title": "$:/core/ui/Buttons/clone",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}",
"description": "{{$:/language/Buttons/Clone/Hint}}",
"text": "\\whitespace trim\n<$button message=\"tm-new-tiddler\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/clone-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Clone/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/close-others": {
"title": "$:/core/ui/Buttons/close-others",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}",
"description": "{{$:/language/Buttons/CloseOthers/Hint}}",
"text": "\\whitespace trim\n<$button message=\"tm-close-other-tiddlers\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/CloseOthers/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/close": {
"title": "$:/core/ui/Buttons/close",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}",
"description": "{{$:/language/Buttons/Close/Hint}}",
"text": "\\whitespace trim\n<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Close/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/edit": {
"title": "$:/core/ui/Buttons/edit",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}",
"description": "{{$:/language/Buttons/Edit/Hint}}",
"text": "\\whitespace trim\n<$button message=\"tm-edit-tiddler\" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/edit-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Edit/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/export-tiddler": {
"title": "$:/core/ui/Buttons/export-tiddler",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}}",
"description": "{{$:/language/Buttons/ExportTiddler/Hint}}",
"text": "\\define makeExportFilter()\n[[$(currentTiddler)$]]\n\\end\n<$macrocall $name=\"exportButton\" exportFilter=<<makeExportFilter>> lingoBase=\"$:/language/Buttons/ExportTiddler/\" baseFilename=<<currentTiddler>>/>"
},
"$:/core/ui/Buttons/fold-bar": {
"title": "$:/core/ui/Buttons/fold-bar",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/chevron-up}} {{$:/language/Buttons/Fold/FoldBar/Caption}}",
"description": "{{$:/language/Buttons/Fold/FoldBar/Hint}}",
"text": "<!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button -->"
},
"$:/core/ui/Buttons/fold-others": {
"title": "$:/core/ui/Buttons/fold-others",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/fold-others-button}} {{$:/language/Buttons/FoldOthers/Caption}}",
"description": "{{$:/language/Buttons/FoldOthers/Hint}}",
"text": "\\whitespace trim\n<$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-other-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/FoldOthers/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/fold": {
"title": "$:/core/ui/Buttons/fold",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}",
"description": "{{$:/language/Buttons/Fold/Hint}}",
"text": "\\whitespace trim\n<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Fold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Unfold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n"
},
"$:/core/ui/Buttons/info": {
"title": "$:/core/ui/Buttons/info",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}",
"description": "{{$:/language/Buttons/Info/Hint}}",
"text": "\\whitespace trim\n\\define button-content()\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/info-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Info/Caption}}/>\n</span>\n</$list>\n\\end\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"popup\">\n<$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$reveal state=<<tiddlerInfoState>> type=\"match\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"yes\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=<<tiddlerInfoState>> type=\"nomatch\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n</$reveal>"
},
"$:/core/ui/Buttons/more-tiddler-actions": {
"title": "$:/core/ui/Buttons/more-tiddler-actions",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}",
"description": "{{$:/language/Buttons/More/Hint}}",
"text": "\\whitespace trim\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/More/Caption}}/>\n</span>\n</$list>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>"
},
"$:/core/ui/Buttons/new-here": {
"title": "$:/core/ui/Buttons/new-here",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}",
"description": "{{$:/language/Buttons/NewHere/Hint}}",
"text": "\\whitespace trim\n\\define newHereActions()\n<$set name=\"tags\" filter=\"[<currentTiddler>]\">\n<$action-sendmessage $message=\"tm-new-tiddler\" tags=<<tags>>/>\n</$set>\n\\end\n\\define newHereButton()\n<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-here-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewHere/Caption}}/>\n</span>\n</$list>\n</$button>\n\\end\n<<newHereButton>>"
},
"$:/core/ui/Buttons/new-journal-here": {
"title": "$:/core/ui/Buttons/new-journal-here",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}",
"description": "{{$:/language/Buttons/NewJournalHere/Hint}}",
"text": "\\whitespace trim\n\\define journalButtonTags()\n[[$(currentTiddlerTag)$]] $(journalTags)$\n\\end\n\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalButtonTags>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>\n</span>\n</$list>\n</$wikify>\n</$button>\n\\end\n<$set name=\"journalTitleTemplate\" value={{$:/config/NewJournal/Title}}>\n<$set name=\"journalTags\" value={{$:/config/NewJournal/Tags}}>\n<$set name=\"currentTiddlerTag\" value=<<currentTiddler>>>\n<<journalButton>>\n</$set>\n</$set>\n</$set>"
},
"$:/core/ui/Buttons/open-window": {
"title": "$:/core/ui/Buttons/open-window",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/open-window}} {{$:/language/Buttons/OpenWindow/Caption}}",
"description": "{{$:/language/Buttons/OpenWindow/Hint}}",
"text": "\\whitespace trim\n<$button message=\"tm-open-window\" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/open-window}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/OpenWindow/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/permalink": {
"title": "$:/core/ui/Buttons/permalink",
"tags": "$:/tags/ViewToolbar",
"caption": "{{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}",
"description": "{{$:/language/Buttons/Permalink/Hint}}",
"text": "\\whitespace trim\n<$button message=\"tm-permalink\" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permalink-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permalink/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/core/ui/Buttons/permaview": {
"title": "$:/core/ui/Buttons/permaview",
"tags": "$:/tags/ViewToolbar $:/tags/PageControls",
"caption": "{{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}",
"description": "{{$:/language/Buttons/Permaview/Hint}}",
"text": "\\whitespace trim\n<$button message=\"tm-permaview\" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permaview-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permaview/Caption}}/>\n</span>\n</$list>\n</$button>"
},
"$:/DefaultTiddlers": {
"title": "$:/DefaultTiddlers",
"text": "GettingStarted\n"
},
"$:/temp/advancedsearch": {
"title": "$:/temp/advancedsearch",
"text": ""
},
"$:/snippets/allfields": {
"title": "$:/snippets/allfields",
"text": "\\define renderfield(title)\n<tr class=\"tc-view-field\"><td class=\"tc-view-field-name\">''$title$'':</td><td class=\"tc-view-field-value\">//{{$:/language/Docs/Fields/$title$}}//</td></tr>\n\\end\n<table class=\"tc-view-field-table\"><tbody><$list filter=\"[fields[]sort[title]]\" variable=\"listItem\"><$macrocall $name=\"renderfield\" title=<<listItem>>/></$list>\n</tbody></table>\n"
},
"$:/config/AnimationDuration": {
"title": "$:/config/AnimationDuration",
"text": "400"
},
"$:/config/AutoSave": {
"title": "$:/config/AutoSave",
"text": "yes"
},
"$:/config/BitmapEditor/Colour": {
"title": "$:/config/BitmapEditor/Colour",
"text": "#444"
},
"$:/config/BitmapEditor/ImageSizes": {
"title": "$:/config/BitmapEditor/ImageSizes",
"text": "[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]"
},
"$:/config/BitmapEditor/LineWidth": {
"title": "$:/config/BitmapEditor/LineWidth",
"text": "3px"
},
"$:/config/BitmapEditor/LineWidths": {
"title": "$:/config/BitmapEditor/LineWidths",
"text": "0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px"
},
"$:/config/BitmapEditor/Opacities": {
"title": "$:/config/BitmapEditor/Opacities",
"text": "0.01 0.025 0.05 0.075 0.1 0.15 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0"
},
"$:/config/BitmapEditor/Opacity": {
"title": "$:/config/BitmapEditor/Opacity",
"text": "1.0"
},
"$:/config/DefaultMoreSidebarTab": {
"title": "$:/config/DefaultMoreSidebarTab",
"text": "$:/core/ui/MoreSideBar/Tags"
},
"$:/config/DefaultSidebarTab": {
"title": "$:/config/DefaultSidebarTab",
"text": "$:/core/ui/SideBar/Open"
},
"$:/config/DownloadSaver/AutoSave": {
"title": "$:/config/DownloadSaver/AutoSave",
"text": "no"
},
"$:/config/Drafts/TypingTimeout": {
"title": "$:/config/Drafts/TypingTimeout",
"text": "400"
},
"$:/config/EditTemplateFields/Visibility/title": {
"title": "$:/config/EditTemplateFields/Visibility/title",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/tags": {
"title": "$:/config/EditTemplateFields/Visibility/tags",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/text": {
"title": "$:/config/EditTemplateFields/Visibility/text",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/creator": {
"title": "$:/config/EditTemplateFields/Visibility/creator",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/created": {
"title": "$:/config/EditTemplateFields/Visibility/created",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/modified": {
"title": "$:/config/EditTemplateFields/Visibility/modified",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/modifier": {
"title": "$:/config/EditTemplateFields/Visibility/modifier",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/type": {
"title": "$:/config/EditTemplateFields/Visibility/type",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/draft.title": {
"title": "$:/config/EditTemplateFields/Visibility/draft.title",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/draft.of": {
"title": "$:/config/EditTemplateFields/Visibility/draft.of",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/revision": {
"title": "$:/config/EditTemplateFields/Visibility/revision",
"text": "hide"
},
"$:/config/EditTemplateFields/Visibility/bag": {
"title": "$:/config/EditTemplateFields/Visibility/bag",
"text": "hide"
},
"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4": {
"title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4",
"text": "hide"
},
"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5": {
"title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5",
"text": "hide"
},
"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6": {
"title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6",
"text": "hide"
},
"$:/config/EditorTypeMappings/image/gif": {
"title": "$:/config/EditorTypeMappings/image/gif",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/image/webp": {
"title": "$:/config/EditorTypeMappings/image/webp",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/image/heic": {
"title": "$:/config/EditorTypeMappings/image/heic",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/image/heif": {
"title": "$:/config/EditorTypeMappings/image/heif",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/image/jpeg": {
"title": "$:/config/EditorTypeMappings/image/jpeg",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/image/jpg": {
"title": "$:/config/EditorTypeMappings/image/jpg",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/image/png": {
"title": "$:/config/EditorTypeMappings/image/png",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/image/x-icon": {
"title": "$:/config/EditorTypeMappings/image/x-icon",
"text": "bitmap"
},
"$:/config/EditorTypeMappings/text/vnd.tiddlywiki": {
"title": "$:/config/EditorTypeMappings/text/vnd.tiddlywiki",
"text": "text"
},
"$:/config/Manager/Show": {
"title": "$:/config/Manager/Show",
"text": "tiddlers"
},
"$:/config/Manager/Filter": {
"title": "$:/config/Manager/Filter",
"text": ""
},
"$:/config/Manager/Order": {
"title": "$:/config/Manager/Order",
"text": "forward"
},
"$:/config/Manager/Sort": {
"title": "$:/config/Manager/Sort",
"text": "title"
},
"$:/config/Manager/System": {
"title": "$:/config/Manager/System",
"text": "system"
},
"$:/config/Manager/Tag": {
"title": "$:/config/Manager/Tag",
"text": ""
},
"$:/state/popup/manager/item/$:/Manager/ItemMain/RawText": {
"title": "$:/state/popup/manager/item/$:/Manager/ItemMain/RawText",
"text": "hide"
},
"$:/config/MissingLinks": {
"title": "$:/config/MissingLinks",
"text": "yes"
},
"$:/config/Navigation/UpdateAddressBar": {
"title": "$:/config/Navigation/UpdateAddressBar",
"text": "no"
},
"$:/config/Navigation/UpdateHistory": {
"title": "$:/config/Navigation/UpdateHistory",
"text": "no"
},
"$:/config/NewImageType": {
"title": "$:/config/NewImageType",
"text": "jpeg"
},
"$:/config/OfficialPluginLibrary": {
"title": "$:/config/OfficialPluginLibrary",
"tags": "$:/tags/PluginLibrary",
"url": "https://tiddlywiki.com/library/v5.1.21/index.html",
"caption": "{{$:/language/OfficialPluginLibrary}}",
"text": "{{$:/language/OfficialPluginLibrary/Hint}}\n"
},
"$:/config/Navigation/openLinkFromInsideRiver": {
"title": "$:/config/Navigation/openLinkFromInsideRiver",
"text": "below"
},
"$:/config/Navigation/openLinkFromOutsideRiver": {
"title": "$:/config/Navigation/openLinkFromOutsideRiver",
"text": "top"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme",
"text": "hide"
},
"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all": {
"title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all",
"text": "hide"
},
"$:/config/Performance/Instrumentation": {
"title": "$:/config/Performance/Instrumentation",
"text": "no"
},
"$:/config/SaveWikiButton/Template": {
"title": "$:/config/SaveWikiButton/Template",
"text": "$:/core/save/all"
},
"$:/config/SaverFilter": {
"title": "$:/config/SaverFilter",
"text": "[all[]] -[[$:/HistoryList]] -[[$:/StoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]"
},
"$:/config/Search/AutoFocus": {
"title": "$:/config/Search/AutoFocus",
"text": "true"
},
"$:/config/Search/MinLength": {
"title": "$:/config/Search/MinLength",
"text": "3"
},
"$:/config/SearchResults/Default": {
"title": "$:/config/SearchResults/Default",
"text": "$:/core/ui/DefaultSearchResultList"
},
"$:/config/ShortcutInfo/advanced-search": {
"title": "$:/config/ShortcutInfo/advanced-search",
"text": "{{$:/language/Buttons/AdvancedSearch/Hint}}"
},
"$:/config/ShortcutInfo/bold": {
"title": "$:/config/ShortcutInfo/bold",
"text": "{{$:/language/Buttons/Bold/Hint}}"
},
"$:/config/ShortcutInfo/cancel-edit-tiddler": {
"title": "$:/config/ShortcutInfo/cancel-edit-tiddler",
"text": "{{$:/language/Buttons/Cancel/Hint}}"
},
"$:/config/ShortcutInfo/excise": {
"title": "$:/config/ShortcutInfo/excise",
"text": "{{$:/language/Buttons/Excise/Hint}}"
},
"$:/config/ShortcutInfo/heading-1": {
"title": "$:/config/ShortcutInfo/heading-1",
"text": "{{$:/language/Buttons/Heading1/Hint}}"
},
"$:/config/ShortcutInfo/heading-2": {
"title": "$:/config/ShortcutInfo/heading-2",
"text": "{{$:/language/Buttons/Heading2/Hint}}"
},
"$:/config/ShortcutInfo/heading-3": {
"title": "$:/config/ShortcutInfo/heading-3",
"text": "{{$:/language/Buttons/Heading3/Hint}}"
},
"$:/config/ShortcutInfo/heading-4": {
"title": "$:/config/ShortcutInfo/heading-4",
"text": "{{$:/language/Buttons/Heading4/Hint}}"
},
"$:/config/ShortcutInfo/heading-5": {
"title": "$:/config/ShortcutInfo/heading-5",
"text": "{{$:/language/Buttons/Heading5/Hint}}"
},
"$:/config/ShortcutInfo/heading-6": {
"title": "$:/config/ShortcutInfo/heading-6",
"text": "{{$:/language/Buttons/Heading6/Hint}}"
},
"$:/config/ShortcutInfo/italic": {
"title": "$:/config/ShortcutInfo/italic",
"text": "{{$:/language/Buttons/Italic/Hint}}"
},
"$:/config/ShortcutInfo/link": {
"title": "$:/config/ShortcutInfo/link",
"text": "{{$:/language/Buttons/Link/Hint}}"
},
"$:/config/ShortcutInfo/list-bullet": {
"title": "$:/config/ShortcutInfo/list-bullet",
"text": "{{$:/language/Buttons/ListBullet/Hint}}"
},
"$:/config/ShortcutInfo/list-number": {
"title": "$:/config/ShortcutInfo/list-number",
"text": "{{$:/language/Buttons/ListNumber/Hint}}"
},
"$:/config/ShortcutInfo/mono-block": {
"title": "$:/config/ShortcutInfo/mono-block",
"text": "{{$:/language/Buttons/MonoBlock/Hint}}"
},
"$:/config/ShortcutInfo/mono-line": {
"title": "$:/config/ShortcutInfo/mono-line",
"text": "{{$:/language/Buttons/MonoLine/Hint}}"
},
"$:/config/ShortcutInfo/new-image": {
"title": "$:/config/ShortcutInfo/new-image",
"text": "{{$:/language/Buttons/NewImage/Hint}}"
},
"$:/config/ShortcutInfo/new-journal": {
"title": "$:/config/ShortcutInfo/new-journal",
"text": "{{$:/language/Buttons/NewJournal/Hint}}"
},
"$:/config/ShortcutInfo/new-tiddler": {
"title": "$:/config/ShortcutInfo/new-tiddler",
"text": "{{$:/language/Buttons/NewTiddler/Hint}}"
},
"$:/config/ShortcutInfo/picture": {
"title": "$:/config/ShortcutInfo/picture",
"text": "{{$:/language/Buttons/Picture/Hint}}"
},
"$:/config/ShortcutInfo/preview": {
"title": "$:/config/ShortcutInfo/preview",
"text": "{{$:/language/Buttons/Preview/Hint}}"
},
"$:/config/ShortcutInfo/quote": {
"title": "$:/config/ShortcutInfo/quote",
"text": "{{$:/language/Buttons/Quote/Hint}}"
},
"$:/config/ShortcutInfo/save-tiddler": {
"title": "$:/config/ShortcutInfo/save-tiddler",
"text": "{{$:/language/Buttons/Save/Hint}}"
},
"$:/config/ShortcutInfo/sidebar-search": {
"title": "$:/config/ShortcutInfo/sidebar-search",
"text": "{{$:/language/Buttons/SidebarSearch/Hint}}"
},
"$:/config/ShortcutInfo/stamp": {
"title": "$:/config/ShortcutInfo/stamp",
"text": "{{$:/language/Buttons/Stamp/Hint}}"
},
"$:/config/ShortcutInfo/strikethrough": {
"title": "$:/config/ShortcutInfo/strikethrough",
"text": "{{$:/language/Buttons/Strikethrough/Hint}}"
},
"$:/config/ShortcutInfo/subscript": {
"title": "$:/config/ShortcutInfo/subscript",
"text": "{{$:/language/Buttons/Subscript/Hint}}"
},
"$:/config/ShortcutInfo/superscript": {
"title": "$:/config/ShortcutInfo/superscript",
"text": "{{$:/language/Buttons/Superscript/Hint}}"
},
"$:/config/ShortcutInfo/toggle-sidebar": {
"title": "$:/config/ShortcutInfo/toggle-sidebar",
"text": "{{$:/language/Buttons/ToggleSidebar/Hint}}"
},
"$:/config/ShortcutInfo/underline": {
"title": "$:/config/ShortcutInfo/underline",
"text": "{{$:/language/Buttons/Underline/Hint}}"
},
"$:/config/SyncFilter": {
"title": "$:/config/SyncFilter",
"text": "[is[tiddler]] -[[$:/HistoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]"
},
"$:/config/Tags/MinLength": {
"title": "$:/config/Tags/MinLength",
"text": "0"
},
"$:/config/TextEditor/EditorHeight/Height": {
"title": "$:/config/TextEditor/EditorHeight/Height",
"text": "400px"
},
"$:/config/TextEditor/EditorHeight/Mode": {
"title": "$:/config/TextEditor/EditorHeight/Mode",
"text": "auto"
},
"$:/config/TiddlerInfo/Default": {
"title": "$:/config/TiddlerInfo/Default",
"text": "$:/core/ui/TiddlerInfo/Fields"
},
"$:/config/TiddlerInfo/Mode": {
"title": "$:/config/TiddlerInfo/Mode",
"text": "popup"
},
"$:/config/Tiddlers/TitleLinks": {
"title": "$:/config/Tiddlers/TitleLinks",
"text": "no"
},
"$:/config/Toolbar/ButtonClass": {
"title": "$:/config/Toolbar/ButtonClass",
"text": "tc-btn-invisible"
},
"$:/config/Toolbar/Icons": {
"title": "$:/config/Toolbar/Icons",
"text": "yes"
},
"$:/config/Toolbar/Text": {
"title": "$:/config/Toolbar/Text",
"text": "no"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions",
"text": "show"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar",
"text": "hide"
},
"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others": {
"title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others",
"text": "hide"
},
"$:/config/shortcuts-mac/bold": {
"title": "$:/config/shortcuts-mac/bold",
"text": "meta-B"
},
"$:/config/shortcuts-mac/italic": {
"title": "$:/config/shortcuts-mac/italic",
"text": "meta-I"
},
"$:/config/shortcuts-mac/underline": {
"title": "$:/config/shortcuts-mac/underline",
"text": "meta-U"
},
"$:/config/shortcuts-mac/new-image": {
"title": "$:/config/shortcuts-mac/new-image",
"text": "ctrl-I"
},
"$:/config/shortcuts-mac/new-journal": {
"title": "$:/config/shortcuts-mac/new-journal",
"text": "ctrl-J"
},
"$:/config/shortcuts-mac/new-tiddler": {
"title": "$:/config/shortcuts-mac/new-tiddler",
"text": "ctrl-N"
},
"$:/config/shortcuts-not-mac/bold": {
"title": "$:/config/shortcuts-not-mac/bold",
"text": "ctrl-B"
},
"$:/config/shortcuts-not-mac/italic": {
"title": "$:/config/shortcuts-not-mac/italic",
"text": "ctrl-I"
},
"$:/config/shortcuts-not-mac/underline": {
"title": "$:/config/shortcuts-not-mac/underline",
"text": "ctrl-U"
},
"$:/config/shortcuts-not-mac/new-image": {
"title": "$:/config/shortcuts-not-mac/new-image",
"text": "alt-I"
},
"$:/config/shortcuts-not-mac/new-journal": {
"title": "$:/config/shortcuts-not-mac/new-journal",
"text": "alt-J"
},
"$:/config/shortcuts-not-mac/new-tiddler": {
"title": "$:/config/shortcuts-not-mac/new-tiddler",
"text": "alt-N"
},
"$:/config/shortcuts/advanced-search": {
"title": "$:/config/shortcuts/advanced-search",
"text": "ctrl-shift-A"
},
"$:/config/shortcuts/cancel-edit-tiddler": {
"title": "$:/config/shortcuts/cancel-edit-tiddler",
"text": "escape"
},
"$:/config/shortcuts/excise": {
"title": "$:/config/shortcuts/excise",
"text": "ctrl-E"
},
"$:/config/shortcuts/sidebar-search": {
"title": "$:/config/shortcuts/sidebar-search",
"text": "ctrl-shift-F"
},
"$:/config/shortcuts/heading-1": {
"title": "$:/config/shortcuts/heading-1",
"text": "ctrl-1"
},
"$:/config/shortcuts/heading-2": {
"title": "$:/config/shortcuts/heading-2",
"text": "ctrl-2"
},
"$:/config/shortcuts/heading-3": {
"title": "$:/config/shortcuts/heading-3",
"text": "ctrl-3"
},
"$:/config/shortcuts/heading-4": {
"title": "$:/config/shortcuts/heading-4",
"text": "ctrl-4"
},
"$:/config/shortcuts/heading-5": {
"title": "$:/config/shortcuts/heading-5",
"text": "ctrl-5"
},
"$:/config/shortcuts/heading-6": {
"title": "$:/config/shortcuts/heading-6",
"text": "ctrl-6"
},
"$:/config/shortcuts/link": {
"title": "$:/config/shortcuts/link",
"text": "ctrl-L"
},
"$:/config/shortcuts/linkify": {
"title": "$:/config/shortcuts/linkify",
"text": "alt-shift-L"
},
"$:/config/shortcuts/list-bullet": {
"title": "$:/config/shortcuts/list-bullet",
"text": "ctrl-shift-L"
},
"$:/config/shortcuts/list-number": {
"title": "$:/config/shortcuts/list-number",
"text": "ctrl-shift-N"
},
"$:/config/shortcuts/mono-block": {
"title": "$:/config/shortcuts/mono-block",
"text": "ctrl-shift-M"
},
"$:/config/shortcuts/mono-line": {
"title": "$:/config/shortcuts/mono-line",
"text": "ctrl-M"
},
"$:/config/shortcuts/picture": {
"title": "$:/config/shortcuts/picture",
"text": "ctrl-shift-I"
},
"$:/config/shortcuts/preview": {
"title": "$:/config/shortcuts/preview",
"text": "alt-P"
},
"$:/config/shortcuts/quote": {
"title": "$:/config/shortcuts/quote",
"text": "ctrl-Q"
},
"$:/config/shortcuts/save-tiddler": {
"title": "$:/config/shortcuts/save-tiddler",
"text": "ctrl+enter"
},
"$:/config/shortcuts/stamp": {
"title": "$:/config/shortcuts/stamp",
"text": "ctrl-S"
},
"$:/config/shortcuts/strikethrough": {
"title": "$:/config/shortcuts/strikethrough",
"text": "ctrl-T"
},
"$:/config/shortcuts/subscript": {
"title": "$:/config/shortcuts/subscript",
"text": "ctrl-shift-B"
},
"$:/config/shortcuts/superscript": {
"title": "$:/config/shortcuts/superscript",
"text": "ctrl-shift-P"
},
"$:/config/shortcuts/toggle-sidebar": {
"title": "$:/config/shortcuts/toggle-sidebar",
"text": "alt-shift-S"
},
"$:/config/shortcuts/transcludify": {
"title": "$:/config/shortcuts/transcludify",
"text": "alt-shift-T"
},
"$:/config/ui/EditTemplate": {
"title": "$:/config/ui/EditTemplate",
"text": "$:/core/ui/EditTemplate"
},
"$:/config/ui/ViewTemplate": {
"title": "$:/config/ui/ViewTemplate",
"text": "$:/core/ui/ViewTemplate"
},
"$:/config/WikiParserRules/Inline/wikilink": {
"title": "$:/config/WikiParserRules/Inline/wikilink",
"text": "enable"
},
"$:/snippets/currpalettepreview": {
"title": "$:/snippets/currpalettepreview",
"text": "\\define swatchStyle()\nbackground-color: $(swatchColour)$;\n\\end\n\\define swatch()\n<$set name=\"swatchColour\" value={{##$(colour)$}}\n><div class=\"tc-swatch\" style=<<swatchStyle>> title=<<colour>>/></$set>\n\\end\n<div class=\"tc-swatches-horiz\"><$list filter=\"\nforeground\nbackground\nmuted-foreground\nprimary\npage-background\ntab-background\ntiddler-info-background\n\" variable=\"colour\"><<swatch>></$list></div>"
},
"$:/snippets/download-wiki-button": {
"title": "$:/snippets/download-wiki-button",
"text": "\\define lingo-base() $:/language/ControlPanel/Tools/Download/\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-download-file\" $param=\"$:/core/save/all\" filename=\"index.html\"/>\n<<lingo Full/Caption>> {{$:/core/images/save-button}}\n</$button>"
},
"$:/language": {
"title": "$:/language",
"text": "$:/languages/en-GB"
},
"$:/snippets/languageswitcher": {
"title": "$:/snippets/languageswitcher",
"text": "\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n\n<$linkcatcher to=\"$:/language\">\n<div class=\"tc-chooser tc-language-chooser\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[description]]\">\n<$set name=\"cls\" filter=\"[all[current]field:title{$:/language}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$link>\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value=<<currentTiddler>>>\n<$transclude subtiddler=<<flag-title>>>\n<$list filter=\"[all[current]field:title[$:/languages/en-GB]]\">\n<$transclude tiddler=\"$:/languages/en-GB/icon\"/>\n</$list>\n</$transclude>\n</$set>\n</span>\n<$view field=\"description\">\n<$view field=\"name\">\n<$view field=\"title\"/>\n</$view>\n</$view>\n</$link>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"
},
"$:/core/macros/CSS": {
"title": "$:/core/macros/CSS",
"tags": "$:/tags/Macro",
"text": "\\define colour(name)\n<$transclude tiddler={{$:/palette}} index=\"$name$\"><$transclude tiddler=\"$:/palettes/Vanilla\" index=\"$name$\"/></$transclude>\n\\end\n\n\\define color(name)\n<<colour $name$>>\n\\end\n\n\\define box-shadow(shadow)\n``\n -webkit-box-shadow: $shadow$;\n -moz-box-shadow: $shadow$;\n box-shadow: $shadow$;\n``\n\\end\n\n\\define filter(filter)\n``\n -webkit-filter: $filter$;\n -moz-filter: $filter$;\n filter: $filter$;\n``\n\\end\n\n\\define transition(transition)\n``\n -webkit-transition: $transition$;\n -moz-transition: $transition$;\n transition: $transition$;\n``\n\\end\n\n\\define transform-origin(origin)\n``\n -webkit-transform-origin: $origin$;\n -moz-transform-origin: $origin$;\n transform-origin: $origin$;\n``\n\\end\n\n\\define background-linear-gradient(gradient)\n``\nbackground-image: linear-gradient($gradient$);\nbackground-image: -o-linear-gradient($gradient$);\nbackground-image: -moz-linear-gradient($gradient$);\nbackground-image: -webkit-linear-gradient($gradient$);\nbackground-image: -ms-linear-gradient($gradient$);\n``\n\\end\n\n\\define column-count(columns)\n``\n-moz-column-count: $columns$;\n-webkit-column-count: $columns$;\ncolumn-count: $columns$;\n``\n\\end\n\n\\define datauri(title)\n<$macrocall $name=\"makedatauri\" type={{$title$!!type}} text={{$title$}}/>\n\\end\n\n\\define if-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-no-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-background-attachment(text)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" type=\"nomatch\" text=\"\">$text$</$reveal>\n\\end\n"
},
"$:/core/macros/colour-picker": {
"title": "$:/core/macros/colour-picker",
"tags": "$:/tags/Macro",
"text": "\\define colour-picker-update-recent()\n<$action-listops\n\t$tiddler=\"$:/config/ColourPicker/Recent\"\n\t$subfilter=\"$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]\"\n/>\n\\end\n\n\\define colour-picker-inner(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(colour-picker-value)$\"\"\">\n\n$(colour-picker-update-recent)$\n\n$actions$\n\n<div style=\"background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;\"/>\n\n</$button>\n\\end\n\n\\define colour-picker-recent-inner(actions)\n<$set name=\"colour-picker-value\" value=\"$(recentColour)$\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\\end\n\n\\define colour-picker-recent(actions)\n{{$:/language/ColourPicker/Recent}} <$list filter=\"[list[$:/config/ColourPicker/Recent]]\" variable=\"recentColour\">\n<$macrocall $name=\"colour-picker-recent-inner\" actions=\"\"\"$actions$\"\"\"/></$list>\n\\end\n\n\\define colour-picker(actions)\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker-recent\" actions=\"\"\"$actions$\"\"\"/>\n\n---\n\n<$list filter=\"LightPink Pink Crimson LavenderBlush PaleVioletRed HotPink DeepPink MediumVioletRed Orchid Thistle Plum Violet Magenta Fuchsia DarkMagenta Purple MediumOrchid DarkViolet DarkOrchid Indigo BlueViolet MediumPurple MediumSlateBlue SlateBlue DarkSlateBlue Lavender GhostWhite Blue MediumBlue MidnightBlue DarkBlue Navy RoyalBlue CornflowerBlue LightSteelBlue LightSlateGrey SlateGrey DodgerBlue AliceBlue SteelBlue LightSkyBlue SkyBlue DeepSkyBlue LightBlue PowderBlue CadetBlue Azure LightCyan PaleTurquoise Cyan Aqua DarkTurquoise DarkSlateGrey DarkCyan Teal MediumTurquoise LightSeaGreen Turquoise Aquamarine MediumAquamarine MediumSpringGreen MintCream SpringGreen MediumSeaGreen SeaGreen Honeydew LightGreen PaleGreen DarkSeaGreen LimeGreen Lime ForestGreen Green DarkGreen Chartreuse LawnGreen GreenYellow DarkOliveGreen YellowGreen OliveDrab Beige LightGoldenrodYellow Ivory LightYellow Yellow Olive DarkKhaki LemonChiffon PaleGoldenrod Khaki Gold Cornsilk Goldenrod DarkGoldenrod FloralWhite OldLace Wheat Moccasin Orange PapayaWhip BlanchedAlmond NavajoWhite AntiqueWhite Tan BurlyWood Bisque DarkOrange Linen Peru PeachPuff SandyBrown Chocolate SaddleBrown Seashell Sienna LightSalmon Coral OrangeRed DarkSalmon Tomato MistyRose Salmon Snow LightCoral RosyBrown IndianRed Red Brown FireBrick DarkRed Maroon White WhiteSmoke Gainsboro LightGrey Silver DarkGrey Grey DimGrey Black\" variable=\"colour-picker-value\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\n---\n\n<$edit-text tiddler=\"$:/config/ColourPicker/New\" tag=\"input\" default=\"\" placeholder=\"\"/> \n<$edit-text tiddler=\"$:/config/ColourPicker/New\" type=\"color\" tag=\"input\"/>\n<$set name=\"colour-picker-value\" value={{$:/config/ColourPicker/New}}>\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\n</div>\n\n\\end\n"
},
"$:/core/macros/copy-to-clipboard": {
"title": "$:/core/macros/copy-to-clipboard",
"tags": "$:/tags/Macro",
"text": "\\define copy-to-clipboard(src,class:\"tc-btn-invisible\",style)\n<$button class=<<__class__>> style=<<__style__>> message=\"tm-copy-to-clipboard\" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>\n{{$:/core/images/copy-clipboard}} <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>\n</$button>\n\\end\n\n\\define copy-to-clipboard-above-right(src,class:\"tc-btn-invisible\",style)\n<div style=\"position: relative;\">\n<div style=\"position: absolute; bottom: 0; right: 0;\">\n<$macrocall $name=\"copy-to-clipboard\" src=<<__src__>> class=<<__class__>> style=<<__style__>>/>\n</div>\n</div>\n\\end\n\n"
},
"$:/core/macros/diff": {
"title": "$:/core/macros/diff",
"tags": "$:/tags/Macro",
"text": "\\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle)\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>>>\n<$diff-text source=<<source>> dest=<<dest>>/>\n</$set>\n</$set>\n\\end\n\n\\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude)\n<table class=\"tc-diff-tiddlers\">\n<tbody>\n<$set name=\"sourceFields\" filter=\"[<__sourceTiddlerTitle__>fields[]sort[]]\">\n<$set name=\"destFields\" filter=\"[<__destSubTiddlerTitle__>subtiddlerfields<__destTiddlerTitle__>sort[]]\">\n<$list filter=\"[enlist<sourceFields>] [enlist<destFields>] -[enlist<__exclude__>] +[sort[]]\" variable=\"fieldName\">\n<tr>\n<th>\n<$text text=<<fieldName>>/> \n</th>\n<td>\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>> field=<<fieldName>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>> field=<<fieldName>>>\n<$diff-text source=<<source>> dest=<<dest>>>\n</$diff-text>\n</$set>\n</$set>\n</td>\n</tr>\n</$list>\n</$set>\n</$set>\n</tbody>\n</table>\n\\end\n"
},
"$:/core/macros/dumpvariables": {
"title": "$:/core/macros/dumpvariables",
"tags": "$:/tags/Macro",
"text": "\\define dumpvariables()\n<ul>\n<$list filter=\"[variables[]]\" variable=\"varname\">\n<li>\n<strong><code><$text text=<<varname>>/></code></strong>:<br/>\n<$codeblock code={{{ [<varname>getvariable[]] }}}/>\n</li>\n</$list>\n</ul>\n\\end\n"
},
"$:/core/macros/export": {
"title": "$:/core/macros/export",
"tags": "$:/tags/Macro",
"text": "\\define exportButtonFilename(baseFilename)\n$baseFilename$$(extension)$\n\\end\n\n\\define exportButton(exportFilter:\"[!is[system]sort[title]]\",lingoBase,baseFilename:\"tiddlers\")\n<span class=\"tc-popup-keep\"><$button popup=<<qualify \"$:/state/popup/export\">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/export-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$lingoBase$Caption}}/></span>\n</$list>\n</$button></span><$reveal state=<<qualify \"$:/state/popup/export\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Exporter]]\">\n<$set name=\"extension\" value={{!!extension}}>\n<$button class=\"tc-btn-invisible\">\n<$action-sendmessage $message=\"tm-download-file\" $param=<<currentTiddler>> exportFilter=\"\"\"$exportFilter$\"\"\" filename=<<exportButtonFilename \"\"\"$baseFilename$\"\"\">>/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/export\">>/>\n<$transclude field=\"description\"/>\n</$button>\n</$set>\n</$list>\n</div>\n</$reveal>\n\\end\n"
},
"$:/core/macros/image-picker": {
"title": "$:/core/macros/image-picker",
"created": "20170715180840889",
"modified": "20170715180914005",
"tags": "$:/tags/Macro",
"type": "text/vnd.tiddlywiki",
"text": "\\define image-picker-thumbnail(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(imageTitle)$\"\"\">\n$actions$\n<$transclude tiddler=<<imageTitle>>/>\n</$button>\n\\end\n\n\\define image-picker-list(filter,actions)\n<$list filter=\"\"\"$filter$\"\"\" variable=\"imageTitle\">\n<$macrocall $name=\"image-picker-thumbnail\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\\end\n\n\\define image-picker(actions,filter:\"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]\",subfilter:\"\")\n<div class=\"tc-image-chooser\">\n<$vars state-system=<<qualify \"$:/state/image-picker/system\">>>\n<$checkbox tiddler=<<state-system>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"hide\">\n{{$:/language/SystemTiddlers/Include/Prompt}}\n</$checkbox>\n<$reveal state=<<state-system>> type=\"match\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$ +[!is[system]]\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n<$reveal state=<<state-system>> type=\"nomatch\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n</$vars>\n</div>\n\\end\n\n\\define image-picker-include-tagged-images(actions)\n<$macrocall $name=\"image-picker\" filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n"
},
"$:/core/macros/lingo": {
"title": "$:/core/macros/lingo",
"tags": "$:/tags/Macro",
"text": "\\define lingo-base()\n$:/language/\n\\end\n\n\\define lingo(title)\n{{$(lingo-base)$$title$}}\n\\end\n"
},
"$:/core/macros/list": {
"title": "$:/core/macros/list",
"tags": "$:/tags/Macro",
"text": "\\define list-links(filter,type:\"ul\",subtype:\"li\",class:\"\",emptyMessage)\n\\whitespace trim\n<$type$ class=\"$class$\">\n<$list filter=\"$filter$\" emptyMessage=<<__emptyMessage__>>>\n<$subtype$>\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$subtype$>\n</$list>\n</$type$>\n\\end\n\n\\define list-links-draggable-drop-actions()\n<$action-listops $tiddler=<<targetTiddler>> $field=<<targetField>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define list-links-draggable(tiddler,field:\"list\",type:\"ul\",subtype:\"li\",class:\"\",itemTemplate)\n\\whitespace trim\n<span class=\"tc-links-draggable-list\">\n<$vars targetTiddler=\"\"\"$tiddler$\"\"\" targetField=\"\"\"$field$\"\"\">\n<$type$ class=\"$class$\">\n<$list filter=\"[list[$tiddler$!!$field$]]\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"\"\"$subtype$\"\"\">\n<div class=\"tc-droppable-placeholder\"/>\n<div>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$transclude>\n</div>\n</$droppable>\n</$list>\n</$type$>\n<$tiddler tiddler=\"\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"div\">\n<div class=\"tc-droppable-placeholder\">\n \n</div>\n<div style=\"height:0.5em;\"/>\n</$droppable>\n</$tiddler>\n</$vars>\n</span>\n\\end\n\n\\define list-tagged-draggable-drop-actions(tag)\n<!-- Save the current ordering of the tiddlers with this tag -->\n<$set name=\"order\" filter=\"[<__tag__>tagging[]]\">\n<!-- Remove any list-after or list-before fields from the tiddlers with this tag -->\n<$list filter=\"[<__tag__>tagging[]]\">\n<$action-deletefield $field=\"list-before\"/>\n<$action-deletefield $field=\"list-after\"/>\n</$list>\n<!-- Save the new order to the Tag Tiddler -->\n<$action-listops $tiddler=<<__tag__>> $field=\"list\" $filter=\"+[enlist<order>] +[insertbefore:currentTiddler<actionTiddler>]\"/>\n<!-- Make sure the newly added item has the right tag -->\n<!-- Removing this line makes dragging tags within the dropdown work as intended -->\n<!--<$action-listops $tiddler=<<actionTiddler>> $tags=<<__tag__>>/>-->\n<!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag -->\n<$list filter=\"[<actionTiddler>!contains:tags<__tag__>]\">\n<$fieldmangler tiddler=<<actionTiddler>>>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__tag__>>/>\n</$fieldmangler>\n</$list>\n</$set>\n\\end\n\n\\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:\"div\")\n\\whitespace trim\n<span class=\"tc-tagged-draggable-list\">\n<$set name=\"tag\" value=<<__tag__>>>\n<$list filter=\"[<__tag__>tagging[]$subFilter$]\" emptyMessage=<<__emptyMessage__>>>\n<$elementTag$ class=\"tc-menu-list-item\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\">\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</$transclude>\n</$elementTag$>\n</$droppable>\n</$elementTag$>\n</$list>\n<$tiddler tiddler=\"\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\">\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$ style=\"height:0.5em;\">\n</$elementTag$>\n</$droppable>\n</$tiddler>\n</$set>\n</span>\n\\end\n"
},
"$:/core/macros/tabs": {
"title": "$:/core/macros/tabs",
"tags": "$:/tags/Macro",
"text": "\\define tabs(tabsList,default,state:\"$:/state/tab\",class,template,buttonTemplate,retain)\n<div class=\"tc-tab-set $class$\">\n<div class=\"tc-tab-buttons $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\" storyview=\"pop\"><$set name=\"save-currentTiddler\" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<qualify \"$state$\">> setTo=<<currentTab>> default=\"$default$\" selectedClass=\"tc-tab-selected\" tooltip={{!!tooltip}}>\n<$tiddler tiddler=<<save-currentTiddler>>>\n<$set name=\"tv-wikilinks\" value=\"no\">\n<$transclude tiddler=\"$buttonTemplate$\" mode=\"inline\">\n<$transclude tiddler=<<currentTab>> field=\"caption\">\n<$macrocall $name=\"currentTab\" $type=\"text/plain\" $output=\"text/plain\"/>\n</$transclude>\n</$transclude>\n</$set></$tiddler></$button></$tiddler></$set></$list>\n</div>\n<div class=\"tc-tab-divider $class$\"/>\n<div class=\"tc-tab-content $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\">\n\n<$reveal type=\"match\" state=<<qualify \"$state$\">> text=<<currentTab>> default=\"$default$\" retain=\"\"\"$retain$\"\"\">\n\n<$transclude tiddler=\"$template$\" mode=\"block\">\n\n<$transclude tiddler=<<currentTab>> mode=\"block\"/>\n\n</$transclude>\n\n</$reveal>\n\n</$list>\n</div>\n</div>\n\\end\n"
},
"$:/core/macros/tag-picker": {
"title": "$:/core/macros/tag-picker",
"tags": "$:/tags/Macro",
"text": "\\define add-tag-actions()\n<$action-sendmessage $message=\"tm-add-tag\" $param={{$:/temp/NewTagName}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/NewTagName\"/>\n\\end\n\n\\define tag-button()\n<$button class=\"tc-btn-invisible\" tag=\"a\">\n$(actions)$\n<$action-deletetiddler $tiddler=\"$:/temp/NewTagName\"/>\n<$macrocall $name=\"tag-pill\" tag=<<tag>>/>\n</$button>\n\\end\n\n\\define tag-picker(actions)\n<$set name=\"actions\" value=\"\"\"$actions$\"\"\">\n<div class=\"tc-edit-add-tag\">\n<span class=\"tc-add-tag-name\">\n<$keyboard key=\"ENTER\" actions=<<add-tag-actions>>>\n<$edit-text tiddler=\"$:/temp/NewTagName\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex=<<tabIndex>>/>\n</$keyboard>\n</span> <$button popup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <span class=\"tc-add-tag-button\">\n<$set name=\"tag\" value={{$:/temp/NewTagName}}>\n<$button set=\"$:/temp/NewTagName\" setTo=\"\" class=\"\">\n$actions$\n<$action-deletetiddler $tiddler=\"$:/temp/NewTagName\"/>\n{{$:/language/EditTemplate/Tags/Add/Button}}\n</$button>\n</$set>\n</span>\n</div>\n<div class=\"tc-block-dropdown-wrapper\">\n<$reveal state=<<qualify \"$:/state/popup/tags-auto-complete\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown\">\n<$list filter=\"[{$:/temp/NewTagName}minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=\"[tags[]!is[system]search:title{$:/temp/NewTagName}sort[]]\" variable=\"tag\">\n<<tag-button>>\n</$list></$list>\n<hr>\n<$list filter=\"[{$:/temp/NewTagName}minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=\"[tags[]is[system]search:title{$:/temp/NewTagName}sort[]]\" variable=\"tag\">\n<<tag-button>>\n</$list></$list>\n</div>\n</$reveal>\n</div>\n</$set>\n\\end\n"
},
"$:/core/macros/tag": {
"title": "$:/core/macros/tag",
"tags": "$:/tags/Macro",
"text": "\\define tag-pill-styles()\nbackground-color:$(backgroundColor)$;\nfill:$(foregroundColor)$;\ncolor:$(foregroundColor)$;\n\\end\n\n\\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions)\n<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<$element-tag$ $element-attributes$ class=\"tc-tag-label tc-btn-invisible\" style=<<tag-pill-styles>>>\n$actions$<$transclude tiddler=\"\"\"$icon$\"\"\"/> <$view tiddler=<<__tag__>> field=\"title\" format=\"text\" />\n</$element-tag$>\n</$vars>\n\\end\n\n\\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)\n<$macrocall $name=\"tag-pill-inner\" tag=<<__tag__>> icon=\"\"\"$icon$\"\"\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n\n\\define tag-pill(tag,element-tag:\"span\",element-attributes:\"\",actions:\"\")\n<span class=\"tc-tag-list-item\">\n<$macrocall $name=\"tag-pill-body\" tag=<<__tag__>> icon={{{ [<__tag__>get[icon]] }}} colour={{{ [<__tag__>get[color]] }}} palette={{$:/palette}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</span>\n\\end\n\n\\define tag(tag)\n{{$tag$||$:/core/ui/TagTemplate}}\n\\end\n"
},
"$:/core/macros/thumbnails": {
"title": "$:/core/macros/thumbnails",
"tags": "$:/tags/Macro",
"text": "\\define thumbnail(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<$link to=\"\"\"$link$\"\"\"><div class=\"tc-thumbnail-wrapper\">\n<div class=\"tc-thumbnail-image\" style=\"width:$width$px;height:$height$px;\"><$reveal type=\"nomatch\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" style=\"width:$width$px;height:$height$px;\">\n[img[$image$]]\n</$reveal><$reveal type=\"match\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" class=\"tc-thumbnail-background\" style=\"width:$width$px;height:$height$px;background-color:$background-color$;\"></$reveal></div><div class=\"tc-thumbnail-icon\" style=\"fill:$color$;color:$color$;\">\n$icon$\n</div><div class=\"tc-thumbnail-caption\">\n$caption$\n</div>\n</div></$link>\n\\end\n\n\\define thumbnail-right(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<div class=\"tc-thumbnail-right-wrapper\"><<thumbnail \"\"\"$link$\"\"\" \"\"\"$icon$\"\"\" \"\"\"$color$\"\"\" \"\"\"$background-color$\"\"\" \"\"\"$image$\"\"\" \"\"\"$caption$\"\"\" \"\"\"$width$\"\"\" \"\"\"$height$\"\"\">></div>\n\\end\n\n\\define list-thumbnails(filter,width:\"280\",height:\"157\")\n<$list filter=\"\"\"$filter$\"\"\"><$macrocall $name=\"thumbnail\" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width=\"\"\"$width$\"\"\" height=\"\"\"$height$\"\"\"/></$list>\n\\end\n"
},
"$:/core/macros/timeline": {
"title": "$:/core/macros/timeline",
"created": "20141212105914482",
"modified": "20141212110330815",
"tags": "$:/tags/Macro",
"text": "\\define timeline-title()\n<!-- Override this macro with a global macro \n of the same name if you need to change \n how titles are displayed on the timeline \n -->\n<$view field=\"title\"/>\n\\end\n\\define timeline(limit:\"100\",format:\"DDth MMM YYYY\",subfilter:\"\",dateField:\"modified\")\n<div class=\"tc-timeline\">\n<$list filter=\"[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]\">\n<div class=\"tc-menu-list-item\">\n<$view field=\"$dateField$\" format=\"date\" template=\"$format$\"/>\n<$list filter=\"[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}>\n<<timeline-title>>\n</$link>\n</div>\n</$list>\n</div>\n</$list>\n</div>\n\\end\n"
},
"$:/core/macros/toc": {
"title": "$:/core/macros/toc",
"tags": "$:/tags/Macro",
"text": "\\define toc-caption()\n<$set name=\"tv-wikilinks\" value=\"no\">\n <$transclude field=\"caption\">\n <$view field=\"title\"/>\n </$transclude>\n</$set>\n\\end\n\n\\define toc-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<ol class=\"tc-toc\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$vars item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=\"<$link><$view field='caption'><$view field='title'/></$view></$link>\">\n <<toc-caption>>\n </$list>\n <$macrocall $name=\"toc-body\" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </li>\n </$set>\n </$set>\n </$vars>\n </$list>\n</ol>\n\\end\n\n\\define toc(tag,sort:\"\",itemClassFilter:\"\")\n<$macrocall $name=\"toc-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> />\n\\end\n\n\\define toc-linked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$link>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-expandable-empty-message()\n<$macrocall $name=\"toc-linked-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-expandable(tag,sort:\"\",itemClassFilter:\"\",exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=<<toc-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"\"\"itemClassFilter\"\"\" exclude=<<excluded>> path=<<path>> />\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-linked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\" >\n <li class=<<toc-item-class>>>\n <$link>\n <$list filter=\"[all[current]tagging[]limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n </$list>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]tagging[]limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button> <$view field='caption'><$view field='title'/></$view>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n </$list>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-selective-expandable-empty-message()\n<$macrocall $name=\"toc-linked-selective-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-selective-expandable(tag,sort:\"\",itemClassFilter,exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-selective-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" variable=\"ignore\" emptyMessage=<<toc-selective-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-selective-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-tabbed-external-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}>\n <div class=\"tc-tabbed-table-of-contents\">\n <$linkcatcher to=<<__selectedTiddler__>>>\n <div class=\"tc-table-of-contents\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"[all[current]] -[<__selectedTiddler__>get[text]]\"/>\n </div>\n </$linkcatcher>\n <div class=\"tc-tabbed-table-of-contents-content\">\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"nomatch\" text=\"\">\n <$transclude mode=\"block\" tiddler=<<__template__>>>\n <h1><<toc-caption>></h1>\n <$transclude mode=\"block\">$missingText$</$transclude>\n </$transclude>\n </$reveal>\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"match\" text=\"\">\n $unselectedText$\n </$reveal>\n </div>\n </div>\n</$tiddler>\n\\end\n\n\\define toc-tabbed-internal-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$linkcatcher to=<<__selectedTiddler__>>>\n <$macrocall $name=\"toc-tabbed-external-nav\" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>>/>\n</$linkcatcher>\n\\end\n\n"
},
"$:/core/macros/translink": {
"title": "$:/core/macros/translink",
"tags": "$:/tags/Macro",
"text": "\\define translink(title,mode:\"block\")\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;\">\n<$link to=\"\"\"$title$\"\"\">\n<$text text=\"\"\"$title$\"\"\"/>\n</$link>\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;\">\n<$transclude tiddler=\"\"\"$title$\"\"\" mode=\"$mode$\">\n\"<$text text=\"\"\"$title$\"\"\"/>\" is missing\n</$transclude>\n</div>\n</div>\n\\end\n"
},
"$:/core/macros/tree": {
"title": "$:/core/macros/tree",
"tags": "$:/tags/Macro",
"text": "\\define leaf-link(full-title,chunk,separator: \"/\")\n<$link to=<<__full-title__>>><$text text=<<__chunk__>>/></$link>\n\\end\n\n\\define leaf-node(prefix,chunk)\n<li>\n<$list filter=\"[<__prefix__>addsuffix<__chunk__>is[shadow]] [<__prefix__>addsuffix<__chunk__>is[tiddler]]\" variable=\"full-title\">\n<$list filter=\"[<full-title>removeprefix<__prefix__>]\" variable=\"chunk\">\n<span>{{$:/core/images/file}}</span> <$macrocall $name=\"leaf-link\" full-title=<<full-title>> chunk=<<chunk>>/>\n</$list>\n</$list>\n</li>\n\\end\n\n\\define branch-node(prefix,chunk,separator: \"/\")\n<li>\n<$set name=\"reveal-state\" value={{{ [[$:/state/tree/]addsuffix<__prefix__>addsuffix<__chunk__>] }}}>\n<$reveal type=\"nomatch\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"show\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"hide\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<span>(<$count filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>removeprefix<__chunk__>] -[<__prefix__>addsuffix<__chunk__>]\"/>)</span>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$macrocall $name=\"tree-node\" prefix={{{ [<__prefix__>addsuffix<__chunk__>] }}} separator=<<__separator__>>/>\n</$reveal>\n</$set>\n</li>\n\\end\n\n\\define tree-node(prefix,separator: \"/\")\n<ol>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]!suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"leaf-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"branch-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n</ol>\n\\end\n\n\\define tree(prefix: \"$:/\",separator: \"/\")\n<div class=\"tc-tree\">\n<span><$text text=<<__prefix__>>/></span>\n<div>\n<$macrocall $name=\"tree-node\" prefix=<<__prefix__>> separator=<<__separator__>>/>\n</div>\n</div>\n\\end\n"
},
"$:/core/macros/utils": {
"title": "$:/core/macros/utils",
"text": "\\define colour(colour)\n$colour$\n\\end\n"
},
"$:/snippets/minilanguageswitcher": {
"title": "$:/snippets/minilanguageswitcher",
"text": "<$select tiddler=\"$:/language\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"description\"><$view field=\"name\"><$view field=\"title\"/></$view></$view></option>\n</$list>\n</$select>"
},
"$:/snippets/minithemeswitcher": {
"title": "$:/snippets/minithemeswitcher",
"text": "\\define lingo-base() $:/language/ControlPanel/Theme/\n<<lingo Prompt>> <$select tiddler=\"$:/theme\">\n<$list filter=\"[plugin-type[theme]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"name\"><$view field=\"title\"/></$view></option>\n</$list>\n</$select>"
},
"$:/snippets/modules": {
"title": "$:/snippets/modules",
"text": "\\define describeModuleType(type)\n{{$:/language/Docs/ModuleTypes/$type$}}\n\\end\n<$list filter=\"[moduletypes[]]\">\n\n!! <$macrocall $name=\"currentTiddler\" $type=\"text/plain\" $output=\"text/plain\"/>\n\n<$macrocall $name=\"describeModuleType\" type=<<currentTiddler>>/>\n\n<ul><$list filter=\"[all[current]modules[]]\"><li><$link><<currentTiddler>></$link>\n</li>\n</$list>\n</ul>\n</$list>\n"
},
"$:/palette": {
"title": "$:/palette",
"text": "$:/palettes/Vanilla"
},
"$:/snippets/paletteeditor": {
"title": "$:/snippets/paletteeditor",
"text": "<$transclude tiddler=\"$:/PaletteManager\"/>\n"
},
"$:/snippets/palettepreview": {
"title": "$:/snippets/palettepreview",
"text": "<$set name=\"currentTiddler\" value={{$:/palette}}>\n{{||$:/snippets/currpalettepreview}}\n</$set>\n"
},
"$:/snippets/paletteswitcher": {
"title": "$:/snippets/paletteswitcher",
"text": "<$linkcatcher to=\"$:/palette\">\n<div class=\"tc-chooser\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]\"><$set name=\"cls\" filter=\"[all[current]prefix{$:/palette}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' - <$view field=\"description\" format=\"text\"/>{{||$:/snippets/currpalettepreview}}</$link>\n</div></$set>\n</$list>\n</div>\n</$linkcatcher>\n"
},
"$:/snippets/peek-stylesheets": {
"title": "$:/snippets/peek-stylesheets",
"text": "\\define expandable-stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$vars state=<<qualify \"$:/state/peek-stylesheets/open/\">>>\n<$set name=\"state\" value={{{ [<state>addsuffix<currentTiddler>] }}}>\n<li>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"no\" class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"yes\" class=\"tc-btn-invisible\">\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"div\">\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</$reveal>\n</li>\n</$set>\n</$vars>\n</$list>\n</ol>\n\\end\n\n\\define stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<li>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</li>\n</$list>\n</ol>\n\\end\n\n<$vars modeState=<<qualify \"$:/state/peek-stylesheets/mode/\">>>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"expanded\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"restored\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}</$button>\n</$reveal>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<expandable-stylesheets-list>>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<stylesheets-list>>\n</$reveal>\n\n</$vars>\n"
},
"$:/temp/search": {
"title": "$:/temp/search",
"text": ""
},
"$:/tags/AdvancedSearch": {
"title": "$:/tags/AdvancedSearch",
"list": "[[$:/core/ui/AdvancedSearch/Standard]] [[$:/core/ui/AdvancedSearch/System]] [[$:/core/ui/AdvancedSearch/Shadows]] [[$:/core/ui/AdvancedSearch/Filter]]"
},
"$:/tags/AdvancedSearch/FilterButton": {
"title": "$:/tags/AdvancedSearch/FilterButton",
"list": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown $:/core/ui/AdvancedSearch/Filter/FilterButtons/clear $:/core/ui/AdvancedSearch/Filter/FilterButtons/export $:/core/ui/AdvancedSearch/Filter/FilterButtons/delete"
},
"$:/tags/ControlPanel": {
"title": "$:/tags/ControlPanel",
"list": "$:/core/ui/ControlPanel/Info $:/core/ui/ControlPanel/Appearance $:/core/ui/ControlPanel/Settings $:/core/ui/ControlPanel/Saving $:/core/ui/ControlPanel/Plugins $:/core/ui/ControlPanel/Tools $:/core/ui/ControlPanel/Internals"
},
"$:/tags/ControlPanel/Info": {
"title": "$:/tags/ControlPanel/Info",
"list": "$:/core/ui/ControlPanel/Basics $:/core/ui/ControlPanel/Advanced"
},
"$:/tags/ControlPanel/Plugins": {
"title": "$:/tags/ControlPanel/Plugins",
"list": "[[$:/core/ui/ControlPanel/Plugins/Installed]] [[$:/core/ui/ControlPanel/Plugins/Add]]"
},
"$:/tags/EditTemplate": {
"title": "$:/tags/EditTemplate",
"list": "[[$:/core/ui/EditTemplate/controls]] [[$:/core/ui/EditTemplate/title]] [[$:/core/ui/EditTemplate/tags]] [[$:/core/ui/EditTemplate/shadow]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/EditTemplate/body]] [[$:/core/ui/EditTemplate/type]] [[$:/core/ui/EditTemplate/fields]]"
},
"$:/tags/EditToolbar": {
"title": "$:/tags/EditToolbar",
"list": "[[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/cancel]] [[$:/core/ui/Buttons/save]]"
},
"$:/tags/EditorToolbar": {
"title": "$:/tags/EditorToolbar",
"list": "$:/core/ui/EditorToolbar/paint $:/core/ui/EditorToolbar/opacity $:/core/ui/EditorToolbar/line-width $:/core/ui/EditorToolbar/rotate-left $:/core/ui/EditorToolbar/clear $:/core/ui/EditorToolbar/bold $:/core/ui/EditorToolbar/italic $:/core/ui/EditorToolbar/strikethrough $:/core/ui/EditorToolbar/underline $:/core/ui/EditorToolbar/superscript $:/core/ui/EditorToolbar/subscript $:/core/ui/EditorToolbar/mono-line $:/core/ui/EditorToolbar/mono-block $:/core/ui/EditorToolbar/quote $:/core/ui/EditorToolbar/list-bullet $:/core/ui/EditorToolbar/list-number $:/core/ui/EditorToolbar/heading-1 $:/core/ui/EditorToolbar/heading-2 $:/core/ui/EditorToolbar/heading-3 $:/core/ui/EditorToolbar/heading-4 $:/core/ui/EditorToolbar/heading-5 $:/core/ui/EditorToolbar/heading-6 $:/core/ui/EditorToolbar/link $:/core/ui/EditorToolbar/excise $:/core/ui/EditorToolbar/picture $:/core/ui/EditorToolbar/stamp $:/core/ui/EditorToolbar/size $:/core/ui/EditorToolbar/editor-height $:/core/ui/EditorToolbar/more $:/core/ui/EditorToolbar/preview $:/core/ui/EditorToolbar/preview-type"
},
"$:/tags/Manager/ItemMain": {
"title": "$:/tags/Manager/ItemMain",
"list": "$:/Manager/ItemMain/WikifiedText $:/Manager/ItemMain/RawText $:/Manager/ItemMain/Fields"
},
"$:/tags/Manager/ItemSidebar": {
"title": "$:/tags/Manager/ItemSidebar",
"list": "$:/Manager/ItemSidebar/Tags $:/Manager/ItemSidebar/Colour $:/Manager/ItemSidebar/Icon $:/Manager/ItemSidebar/Tools"
},
"$:/tags/MoreSideBar": {
"title": "$:/tags/MoreSideBar",
"list": "[[$:/core/ui/MoreSideBar/All]] [[$:/core/ui/MoreSideBar/Recent]] [[$:/core/ui/MoreSideBar/Tags]] [[$:/core/ui/MoreSideBar/Missing]] [[$:/core/ui/MoreSideBar/Drafts]] [[$:/core/ui/MoreSideBar/Orphans]] [[$:/core/ui/MoreSideBar/Types]] [[$:/core/ui/MoreSideBar/System]] [[$:/core/ui/MoreSideBar/Shadows]] [[$:/core/ui/MoreSideBar/Explorer]] [[$:/core/ui/MoreSideBar/Plugins]]",
"text": ""
},
"$:/tags/PageControls": {
"title": "$:/tags/PageControls",
"list": "[[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/fold-all]] [[$:/core/ui/Buttons/unfold-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/new-image]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/manager]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/timestamp]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/print]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]]"
},
"$:/tags/PageTemplate": {
"title": "$:/tags/PageTemplate",
"list": "[[$:/core/ui/PageTemplate/topleftbar]] [[$:/core/ui/PageTemplate/toprightbar]] [[$:/core/ui/PageTemplate/sidebar]] [[$:/core/ui/PageTemplate/story]] [[$:/core/ui/PageTemplate/alerts]]",
"text": ""
},
"$:/tags/SideBar": {
"title": "$:/tags/SideBar",
"list": "[[$:/core/ui/SideBar/Open]] [[$:/core/ui/SideBar/Recent]] [[$:/core/ui/SideBar/Tools]] [[$:/core/ui/SideBar/More]]",
"text": ""
},
"$:/tags/SideBarSegment": {
"title": "$:/tags/SideBarSegment",
"list": "[[$:/core/ui/SideBarSegments/site-title]] [[$:/core/ui/SideBarSegments/site-subtitle]] [[$:/core/ui/SideBarSegments/page-controls]] [[$:/core/ui/SideBarSegments/search]] [[$:/core/ui/SideBarSegments/tabs]]"
},
"$:/tags/TiddlerInfo": {
"title": "$:/tags/TiddlerInfo",
"list": "[[$:/core/ui/TiddlerInfo/Tools]] [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]]",
"text": ""
},
"$:/tags/TiddlerInfo/Advanced": {
"title": "$:/tags/TiddlerInfo/Advanced",
"list": "[[$:/core/ui/TiddlerInfo/Advanced/ShadowInfo]] [[$:/core/ui/TiddlerInfo/Advanced/PluginInfo]]"
},
"$:/tags/ViewTemplate": {
"title": "$:/tags/ViewTemplate",
"list": "[[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/unfold]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]]"
},
"$:/tags/ViewToolbar": {
"title": "$:/tags/ViewToolbar",
"list": "[[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]"
},
"$:/snippets/themeswitcher": {
"title": "$:/snippets/themeswitcher",
"text": "<$linkcatcher to=\"$:/theme\">\n<div class=\"tc-chooser\"><$list filter=\"[plugin-type[theme]sort[title]]\"><$set name=\"cls\" filter=\"[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' <$view field=\"description\" format=\"text\"/></$link></div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"
},
"$:/core/wiki/title": {
"title": "$:/core/wiki/title",
"text": "{{$:/SiteTitle}} --- {{$:/SiteSubtitle}}"
},
"$:/view": {
"title": "$:/view",
"text": "classic"
},
"$:/snippets/viewswitcher": {
"title": "$:/snippets/viewswitcher",
"text": "\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<$linkcatcher to=\"$:/view\">\n<div class=\"tc-chooser\">\n<$list filter=\"[storyviews[]]\" variable=\"storyview\">\n<$set name=\"cls\" filter=\"[<storyview>prefix{$:/view}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$link to=<<storyview>>>\n<$transclude tiddler=<<icon>>/>\n<$text text=<<storyview>>/>\n</$link>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"
}
}
}
<div class="tc-alerts">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]" template="$:/core/ui/AlertTemplate" storyview="pop"/>
</div>
\whitespace trim
<$reveal state="$:/status/IsReadOnly" type="nomatch" text="yes" tag="div" class="tc-drafts-list">
<$list filter="[has[draft.of]!sort[modified]] -[list[$:/StoryList]]">
<$link>
{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/>
</$link>
</$list>
</$reveal>
\define lingo-base() $:/language/
<$list filter="[has[plugin-type]haschanged[]!plugin-type[import]limit[1]]">
<$reveal type="nomatch" state="$:/temp/HidePluginWarning" text="yes">
<div class="tc-plugin-reload-warning">
<$set name="tv-config-toolbar-class" value="">
<<lingo PluginReloadWarning>> <$button set="$:/temp/HidePluginWarning" setTo="yes" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button>
</$set>
</div>
</$reveal>
</$list>
\whitespace trim
\define config-title()
$:/config/SideBarSegments/Visibility/$(listItem)$
\end
<$scrollable fallthrough="no" class="tc-sidebar-scrollable">
<div class="tc-sidebar-header">
<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes" retain="yes" animate="yes">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">
<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div">
<$transclude tiddler=<<listItem>> mode="block"/>
</$reveal>
</$list>
</$reveal>
</div>
</$scrollable>
\whitespace trim
<section class="tc-story-river">
<section class="story-backdrop">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]">
<$transclude/>
</$list>
</section>
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>
<section class="story-frontdrop">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]">
<$transclude/>
</$list>
</section>
</section>
<span class="tc-topbar tc-topbar-left">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]" variable="listItem" storyview="pop">
<$transclude tiddler=<<listItem>> mode="inline"/>
</$list>
</span>
<span class="tc-topbar tc-topbar-right">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]" variable="listItem" storyview="pop">
<$transclude tiddler=<<listItem>> mode="inline"/>
</$list>
</span>
Startpage_Index_Placeholder
TOC:tags
<pre>/* add custom extensions by tagging your stylesheet [[$:/tags/FontAwesome]].
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: local("FontAwesome"), url(data:application/font-woff;base64,d09GRgABAAAAARdUAA4AAAAB3OwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABRAAAABwAAAAcbQLSdUdERUYAAAFgAAAAHgAAAB4AJwIzT1MvMgAAAYAAAAA+AAAAYIg2egFjbWFwAAABwAAAAVIAAALCyQOgrGdhc3AAAAMUAAAACAAAAAj//wADZ2x5ZgAAAxwAAP5RAAGx7AUuRy9oZWFkAAEBcAAAADMAAAA2CeYVl2hoZWEAAQGkAAAAIQAAACQO+QooaG10eAABAcgAAAKOAAAIqjpiEzxsb2NhAAEEWAAABEoAAARcGM6ExG1heHAAAQikAAAAHwAAACAClgIcbmFtZQABCMQAAAGYAAADgDJ2hNRwb3N0AAEKXAAADPAAABWe3VxBO3dlYmYAARdMAAAABgAAAAY1blTBAAAAAQAAAADQyg1XAAAAAMtR3zAAAAAA0Obl7QABAAAADAAAABYAAAACAAEAAQIsAAEABAAAAAIAAAAAeNpjYGbTYpzAwMrAwtLDYszAwNAGoZmKGRgYuxjwgILKomIGBwaFrwxsDP+BfDYGRpAwI5ISBQZGALtECDMAAHjazZG7SgNhEIVnY7xjZrwnKusmaCcqPkAI2IcUNhbGFKmDTyA+gfgEsqU2QcRCRMTKMqQUIRewsDLOWY1387saCCjYCIIDc4YDh/lghojaqNkTZPlK1rHvrE8ftFx/ZilB7TRFD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dc1II0ig+nfGP8HGCqBOUpp2VPFUVIAU/c0IhTudp+vyI/btwNZYzTGTbmpU3ljgP+4eDzH08YdFb02UfLw8tY74TMpGXN9bKaI5/6K5Mg2fVBxtabG/wU51eptolH1tdaWWXTA6NAhjoiuiLkrtZNEX0RAxHrIvTPtoPt/Wvsa6vNI0MBDbvSFdBQQEMBDQU0FNBwWBz11jRiLFpHRFdEL1vtrLZ0+iIGItZFCKi9JkK+tgXUFlC7J8IUIYi2INqCaOe2nb2Wt4LrCK4juI7gOoLrCK4juI7gOrJTV3bqCqIriK4gurl5B/IFD7TzVs8QaDff8oCZt/28lcV7skZPdu3Jrj3Ztac/CLSXQ8+RjU3Z2JRlTQGZAjIFZArIFJApIFNM7QuiL4i+IPqC6OemHtTfBNQfsL+n+puABvJhIKCBgAbyYSDbDGSbQV8m26LJNgNBrAtiXRDCi57woie86AkvesKLnvCiJ7zorQtiKIihIIQUvaEghr3itKOvkUnBmv4gCCGFyaRg0RbREdEV0RNhiuiLGIhYFzEsbShOm6wKJUxZyxRKmEIJUyhhCiVMoYQplDDbsklHNukIQshgChlMIYMpZDCFDKaQwRQymEIGU8hgChlMIYMpZDAlfZldQXQF0RWEcMDsDv8LkjDfogABVME1bQAA) format("woff");
font-weight: normal;
font-style: normal;
}
.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-genderless:before,.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}
<$list filter="[tag[$:/tags/FontAwesome]]">
<$transclude>
</$list>
</pre>
doc-links-manual-howto/doc-links-manual-howto.github.io
doc-links-manual-howto/doc-links-manual-howt
The following tiddlers were imported:
# [[CalendarPlugin]]
# [[CheckboxPlugin]]
# [[DatePlugin]]
# [[DatePluginConfig]]
# [[DefaultTiddlers]]
# [[Deprecated functions]]
# [[Dynamic TextArea Height]]
# [[Edit Your ...]]
# [[Edit Your Elements]]
# [[Edit Your Wrappers]]
# [[Edit the wiki text in the view mode]]
# [[EditFieldPlugin]]
# [[Editable Elements]]
# [[Editable Objects]]
# [[Editable Wrappers]]
# [[Event Handler -- .changed()]]
# [[Examples]]
# [[ExternalTiddlersPlugin]]
# [[FoldHeadingsPlugin]]
# [[HTML entities in a TextArea]]
# [[HTMLFormattingPlugin]]
# [[Handsontable Demo]]
# [[HandsontablePlugin]]
# [[ImageSizePlugin]]
# [[InlineJavascriptPlugin]]
# [[Issues and Problems]]
# [[LoadRemoteFileThroughProxy]]
# [[Locating the character]]
# [[MainMenu]]
# [[Matching the two halves]]
# [[MathJaxPlugin]]
# [[NestedSlidersPlugin]]
# [[Partial Recalculation]]
# [[PasswordOptionsPlugin]]
# [[PlayerPlugin]]
# [[Positioning Issue: Where is the mighty mouse?]]
# [[Problem with SyntaxHighlighterPlugin3]]
# [[Release Note -- Head]]
# [[Release Note v3.0.0]]
# [[Release Note v3.0.1]]
# [[Release Note v3.0.2]]
# [[Release Note v3.0.3]]
# [[Release Note v3.1.0]]
# [[Release Note v3.2.0]]
# [[Release Note v3.2.1]]
# [[Release Note v3.2.2]]
# [[Release Note v3.2.3]]
# [[Release Note v3.2.4]]
# [[Release Note v3.2.5]]
# [[ShBrushCSS.js]]
# [[ShBrushJScript.js]]
# [[ShBrushPlain.js]]
# [[ShBrushPython.js]]
# [[ShBrushXml.js]]
# [[ShCore.css]]
# [[ShCore.js]]
# [[ShThemeDefault.css]]
# [[SinglePageModePlugin]]
# [[SiteSubtitle]]
# [[SiteTitle]]
# [[StyleSheet]]
# [[SyntaxHighlighterPlugin3]]
# [[SystemSettings]]
# [[TWtcalc.1.0.10]]
# [[Table Cell Alignment]]
# [[TableSortingPlugin]]
# [[Testing a numeric expression -- isnumeric -- The Crazy Version!]]
# [[The focus issue]]
# [[The focusing borders]]
# [[The-tweaky-TiddlyWiki-options]]
# [[TransclusionSupport--How To]]
# [[TransclusionSupport--PartialTransclusion]]
# [[Transposing a table -- backward thinking]]
# [[TspotSetupPlugin]]
# [[UndoPlugin]]
# [[UploadLog]]
# [[UploadPlugin]]
# [[ViewTemplate]]
# [[Working-with-MathJaxPlugin]]
# [[twve--Example--Blockquotes]]
# [[twve--Example--Code]]
# [[twve--Example--Folded Sections]]
# [[twve--Example--Headings]]
# [[twve--Example--List Items]]
# [[twve--Example--MathJax--Displayed]]
# [[twve--Example--NestedSlidersPlugin]]
# [[twve--Example--Over Width Inline Elements]]
# [[twve--Example--Plain Text]]
# [[twve--Example--Preformatted]]
# [[twve--Example--Styled Text]]
# [[twve--Example--The Options Menu]]
# [[twve--Example--Transclusion Instructions]]
# [[twve--Example--Transclusion--Content]]
# [[twve--Example--Transclusion--Macros]]
# [[twve--Example--Transclusion--Self Inclusion]]
# [[twve--Example--Wrappers]]
# [[twve--Example.slices]]
# [[twve.core]]
# [[twve.core Examples]]
# [[twve.core.min]]
# [[twve.debug]]
# [[twve.debug.min]]
# [[twve.editable]]
# [[twve.element]]
# [[twve.extra]]
# [[twve.extra Examples]]
# [[twve.extra.min]]
# [[twve.leveledElement]]
# [[twve.selector]]
# [[twve.table]]
# [[twve.table Examples]]
# [[twve.table--Example--A Simple Table]]
# [[twve.table--Example--Copy and Paste]]
# [[twve.table--Example--Insertion, Deletion, and Exchange]]
# [[twve.table--Example--Large Table]]
# [[twve.table--Example--Missing Cells and Keyboard Navigation]]
# [[twve.table--Example--Multi-lined Content]]
# [[twve.table--Example--Sorting]]
# [[twve.table--Example--Spanned Cells and Keyboard Navigation]]
# [[twve.table--Example--Transclusion]]
# [[twve.table--Example--Transposition]]
# [[twve.table.min]]
# [[twve.tablelarge]]
# [[twve.tablelarge.min]]
# [[twve.tags]]
# [[twve.tcalc]]
# [[twve.tcalc Examples]]
# [[twve.tcalc--Defining Your Own Functions]]
# [[twve.tcalc--Example--Auto-djustment of Cell References]]
# [[twve.tcalc--Example--Commonly Used Funtions]]
# [[twve.tcalc--Example--Date and Time]]
# [[twve.tcalc--Example--IF and COUNT]]
# [[twve.tcalc--Example--Less Commonly Used Funtions]]
# [[twve.tcalc--Example--Simple Arithmetics]]
# [[twve.tcalc--Example--Simple Statistics]]
# [[twve.tcalc--Example--The Javascript Math Funtions]]
# [[twve.tcalc.min]]
# [[twve.wrapper]]
# [[$:/plugins/gt6796c/rocklib]]
# [[$:/plugins/gt6796c/mermaid-tw5]]
# [[$:/plugins/gt6796c/graph-tw5]]
# [[$:/plugins/gt6796c/flowchart-tw5]]
alert-background: #D08770
alert-border: #D08770
alert-highlight: #B48EAD
alert-muted-foreground: #4C566A
background: rgba(33,33,33,66)
blockquote-bar: <<colour muted-foreground>>
button-background: rgba(128,128,128,128)
button-foreground: #260c0c
button-border: transparent
code-background: #000000
code-border: #2E3440
code-foreground: #84ee35
diff-delete-background: #BF616A
diff-delete-foreground: <<colour foreground>>
diff-equal-background:
diff-equal-foreground: <<colour foreground>>
diff-insert-background: #909e85
diff-insert-foreground: <<colour foreground>>
diff-invisible-background:
diff-invisible-foreground: <<colour muted-foreground>>
dirty-indicator: #BF616A
download-background: #A3BE8C
download-foreground: <<colour background>>
dragger-background: <<colour foreground>>
dragger-foreground: #acbb08
dropdown-background: <<colour background>>
dropdown-border: #ff530b
dropdown-tab-background-selected: #ce4646
dropdown-tab-background: #4e525a
dropzone-background: #A3BE8C
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #5E81AC
external-link-foreground: #8FBCBB
foreground: rgba(66,23,99)
message-background: #2E3440
message-border: #2E3440
message-foreground: #547599
modal-backdrop: <<colour foreground>>
modal-background: <<colour background>>
modal-border: #e4ff00
modal-footer-background: #3b4252
modal-footer-border: #3b4252
modal-header-border: #3b4252
muted-foreground: #ffd432
notification-background: <<colour primary>>
notification-border: #EBCB8B
page-background: #303030
pre-background: #2E3440
pre-border: #2E3440
primary: #71a2dd
select-tag-background: #3f4007
select-tag-foreground: <<colour foreground>>
sidebar-button-foreground: #000000
sidebar-controls-foreground-hover: #00ffbc
sidebar-controls-foreground: #b6e95e
sidebar-foreground-shadow: #d71e1e
sidebar-foreground: #e3b5ed
sidebar-muted-foreground-hover: #4C566A
sidebar-muted-foreground: rgba(12,41,00,99)
sidebar-tab-background-selected: #080926
sidebar-tab-background: #000000
sidebar-tab-border-selected: <<colour tab-border-selected>>
sidebar-tab-border: #4C566A
sidebar-tab-divider: <<colour page-background>>
sidebar-tab-foreground-selected: #ffffff
sidebar-tab-foreground: <<colour tab-foreground>>
sidebar-tiddler-link-foreground-hover: #eef1ec
sidebar-tiddler-link-foreground: #97ffce
site-title-foreground: #19d038
static-alert-foreground: #B48EAD
tab-background-selected: rgba(23,42,0,88)
tab-background: #2b4f96
tab-border-selected: #009aff
tab-border: #f4e700
tab-divider: #4C566A
tab-foreground-selected: #1ad529
tab-foreground: #2bbafd
table-border: #4C566A
table-footer-background: #2e3440
table-header-background: #2e3440
tag-background: #A3BE8C
tag-foreground: #85bb28
tiddler-background: rgba(23,5,19,0.85)
tiddler-border: #caff00
tiddler-controls-foreground-hover: rgba(23,5,19,0.91)
tiddler-controls-foreground-selected: #b78c34
tiddler-controls-foreground: #6e3a3a
tiddler-editor-background: #2e3440
tiddler-editor-border-image: #2e3440
tiddler-editor-border: #2e3440
tiddler-editor-fields-even: #2e3440
tiddler-editor-fields-odd: #2e3440
tiddler-info-background: #2e3440
tiddler-info-border: #2e3440
tiddler-info-tab-background: #2e3440
tiddler-link-background: <<colour background>>
tiddler-link-foreground: #9395c9
tiddler-subtitle-foreground: #4C566A
tiddler-title-foreground: #ffd9d9
toolbar-new-button:
toolbar-options-button: #dd9d19
toolbar-save-button: #17a027
toolbar-info-button:
toolbar-edit-button: #e0b0b0
toolbar-close-button: #00ff96
toolbar-delete-button: #ff000f
toolbar-cancel-button: #ffc100
toolbar-done-button: #f1ff00
untagged-background: #2d3038
very-muted-foreground: #2d3038
violet:
//============================================================================
//============================================================================
// ForEachTiddlerPlugin
//============================================================================
//============================================================================
// Only install once
if (!version.extensions.ForEachTiddlerPlugin) {
if (!window.abego) window.abego = {};
version.extensions.ForEachTiddlerPlugin = {
major: 1, minor: 0, revision: 8,
date: new Date(2007,3,12),
source: "http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin",
licence: "[[BSD open source license (abego Software)|http://www.abego-software.de/legal/apl-v10.html]]",
copyright: "Copyright (c) abego Software GmbH, 2005-2007 (www.abego-software.de)"
};
// For backward compatibility with TW 1.2.x
//
if (!TiddlyWiki.prototype.forEachTiddler) {
TiddlyWiki.prototype.forEachTiddler = function(callback) {
for(var t in this.tiddlers) {
callback.call(this,t,this.tiddlers[t]);
}
};
}
//============================================================================
// forEachTiddler Macro
//============================================================================
version.extensions.forEachTiddler = {
major: 1, minor: 0, revision: 8, date: new Date(2007,3,12), provider: "http://tiddlywiki.abego-software.de"};
// ---------------------------------------------------------------------------
// Configurations and constants
// ---------------------------------------------------------------------------
config.macros.forEachTiddler = {
// Standard Properties
label: "forEachTiddler",
prompt: "Perform actions on a (sorted) selection of tiddlers",
// actions
actions: {
addToList: {},
write: {}
}
};
// ---------------------------------------------------------------------------
// The forEachTiddler Macro Handler
// ---------------------------------------------------------------------------
config.macros.forEachTiddler.getContainingTiddler = function(e) {
while(e && !hasClass(e,"tiddler"))
e = e.parentNode;
var title = e ? e.getAttribute("tiddler") : null;
return title ? store.getTiddler(title) : null;
};
config.macros.forEachTiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
// config.macros.forEachTiddler.traceMacroCall(place,macroName,params,wikifier,paramString,tiddler);
if (!tiddler) tiddler = config.macros.forEachTiddler.getContainingTiddler(place);
// --- Parsing ------------------------------------------
var i = 0; // index running over the params
// Parse the "in" clause
var tiddlyWikiPath = undefined;
if ((i < params.length) && params[i] == "in") {
i++;
if (i >= params.length) {
this.handleError(place, "TiddlyWiki path expected behind 'in'.");
return;
}
tiddlyWikiPath = this.paramEncode((i < params.length) ? params[i] : "");
i++;
}
// Parse the where clause
var whereClause ="true";
if ((i < params.length) && params[i] == "where") {
i++;
whereClause = this.paramEncode((i < params.length) ? params[i] : "");
i++;
}
// Parse the sort stuff
var sortClause = null;
var sortAscending = true;
if ((i < params.length) && params[i] == "sortBy") {
i++;
if (i >= params.length) {
this.handleError(place, "sortClause missing behind 'sortBy'.");
return;
}
sortClause = this.paramEncode(params[i]);
i++;
if ((i < params.length) && (params[i] == "ascending" || params[i] == "descending")) {
sortAscending = params[i] == "ascending";
i++;
}
}
// Parse the script
var scriptText = null;
if ((i < params.length) && params[i] == "script") {
i++;
scriptText = this.paramEncode((i < params.length) ? params[i] : "");
i++;
}
// Parse the action.
// When we are already at the end use the default action
var actionName = "addToList";
if (i < params.length) {
if (!config.macros.forEachTiddler.actions[params[i]]) {
this.handleError(place, "Unknown action '"+params[i]+"'.");
return;
} else {
actionName = params[i];
i++;
}
}
// Get the action parameter
// (the parsing is done inside the individual action implementation.)
var actionParameter = params.slice(i);
// --- Processing ------------------------------------------
try {
this.performMacro({
place: place,
inTiddler: tiddler,
whereClause: whereClause,
sortClause: sortClause,
sortAscending: sortAscending,
actionName: actionName,
actionParameter: actionParameter,
scriptText: scriptText,
tiddlyWikiPath: tiddlyWikiPath});
} catch (e) {
this.handleError(place, e);
}
};
// Returns an object with properties "tiddlers" and "context".
// tiddlers holds the (sorted) tiddlers selected by the parameter,
// context the context of the execution of the macro.
//
// The action is not yet performed.
//
// @parameter see performMacro
//
config.macros.forEachTiddler.getTiddlersAndContext = function(parameter) {
var context = config.macros.forEachTiddler.createContext(parameter.place, parameter.whereClause, parameter.sortClause, parameter.sortAscending, parameter.actionName, parameter.actionParameter, parameter.scriptText, parameter.tiddlyWikiPath, parameter.inTiddler);
var tiddlyWiki = parameter.tiddlyWikiPath ? this.loadTiddlyWiki(parameter.tiddlyWikiPath) : store;
context["tiddlyWiki"] = tiddlyWiki;
// Get the tiddlers, as defined by the whereClause
var tiddlers = this.findTiddlers(parameter.whereClause, context, tiddlyWiki);
context["tiddlers"] = tiddlers;
// Sort the tiddlers, when sorting is required.
if (parameter.sortClause) {
this.sortTiddlers(tiddlers, parameter.sortClause, parameter.sortAscending, context);
}
return {tiddlers: tiddlers, context: context};
};
// Returns the (sorted) tiddlers selected by the parameter.
//
// The action is not yet performed.
//
// @parameter see performMacro
//
config.macros.forEachTiddler.getTiddlers = function(parameter) {
return this.getTiddlersAndContext(parameter).tiddlers;
};
// Performs the macros with the given parameter.
//
// @param parameter holds the parameter of the macro as separate properties.
// The following properties are supported:
//
// place
// whereClause
// sortClause
// sortAscending
// actionName
// actionParameter
// scriptText
// tiddlyWikiPath
//
// All properties are optional.
// For most actions the place property must be defined.
//
config.macros.forEachTiddler.performMacro = function(parameter) {
var tiddlersAndContext = this.getTiddlersAndContext(parameter);
// Perform the action
var actionName = parameter.actionName ? parameter.actionName : "addToList";
var action = config.macros.forEachTiddler.actions[actionName];
if (!action) {
this.handleError(parameter.place, "Unknown action '"+actionName+"'.");
return;
}
var actionHandler = action.handler;
actionHandler(parameter.place, tiddlersAndContext.tiddlers, parameter.actionParameter, tiddlersAndContext.context);
};
// ---------------------------------------------------------------------------
// The actions
// ---------------------------------------------------------------------------
// Internal.
//
// --- The addToList Action -----------------------------------------------
//
config.macros.forEachTiddler.actions.addToList.handler = function(place, tiddlers, parameter, context) {
// Parse the parameter
var p = 0;
// Check for extra parameters
if (parameter.length > p) {
config.macros.forEachTiddler.createExtraParameterErrorElement(place, "addToList", parameter, p);
return;
}
// Perform the action.
var list = document.createElement("ul");
place.appendChild(list);
for (var i = 0; i < tiddlers.length; i++) {
var tiddler = tiddlers[i];
var listItem = document.createElement("li");
list.appendChild(listItem);
createTiddlyLink(listItem, tiddler.title, true);
}
};
abego.parseNamedParameter = function(name, parameter, i) {
var beginExpression = null;
if ((i < parameter.length) && parameter[i] == name) {
i++;
if (i >= parameter.length) {
throw "Missing text behind '%0'".format([name]);
}
return config.macros.forEachTiddler.paramEncode(parameter[i]);
}
return null;
}
// Internal.
//
// --- The write Action ---------------------------------------------------
//
config.macros.forEachTiddler.actions.write.handler = function(place, tiddlers, parameter, context) {
// Parse the parameter
var p = 0;
if (p >= parameter.length) {
this.handleError(place, "Missing expression behind 'write'.");
return;
}
var textExpression = config.macros.forEachTiddler.paramEncode(parameter[p]);
p++;
// Parse the "begin" option
var beginExpression = abego.parseNamedParameter("begin", parameter, p);
if (beginExpression !== null)
p += 2;
var endExpression = abego.parseNamedParameter("end", parameter, p);
if (endExpression !== null)
p += 2;
var noneExpression = abego.parseNamedParameter("none", parameter, p);
if (noneExpression !== null)
p += 2;
// Parse the "toFile" option
var filename = null;
var lineSeparator = undefined;
if ((p < parameter.length) && parameter[p] == "toFile") {
p++;
if (p >= parameter.length) {
this.handleError(place, "Filename expected behind 'toFile' of 'write' action.");
return;
}
filename = config.macros.forEachTiddler.getLocalPath(config.macros.forEachTiddler.paramEncode(parameter[p]));
p++;
if ((p < parameter.length) && parameter[p] == "withLineSeparator") {
p++;
if (p >= parameter.length) {
this.handleError(place, "Line separator text expected behind 'withLineSeparator' of 'write' action.");
return;
}
lineSeparator = config.macros.forEachTiddler.paramEncode(parameter[p]);
p++;
}
}
// Check for extra parameters
if (parameter.length > p) {
config.macros.forEachTiddler.createExtraParameterErrorElement(place, "write", parameter, p);
return;
}
// Perform the action.
var func = config.macros.forEachTiddler.getEvalTiddlerFunction(textExpression, context);
var count = tiddlers.length;
var text = "";
if (count > 0 && beginExpression)
text += config.macros.forEachTiddler.getEvalTiddlerFunction(beginExpression, context)(undefined, context, count, undefined);
for (var i = 0; i < count; i++) {
var tiddler = tiddlers[i];
text += func(tiddler, context, count, i);
}
if (count > 0 && endExpression)
text += config.macros.forEachTiddler.getEvalTiddlerFunction(endExpression, context)(undefined, context, count, undefined);
if (count == 0 && noneExpression)
text += config.macros.forEachTiddler.getEvalTiddlerFunction(noneExpression, context)(undefined, context, count, undefined);
if (filename) {
if (lineSeparator !== undefined) {
lineSeparator = lineSeparator.replace(/\\n/mg, "\n").replace(/\\r/mg, "\r");
text = text.replace(/\n/mg,lineSeparator);
}
saveFile(filename, convertUnicodeToUTF8(text));
} else {
var wrapper = createTiddlyElement(place, "span");
wikify(text, wrapper, null/* highlightRegExp */, context.inTiddler);
}
};
// ---------------------------------------------------------------------------
// Helpers
// ---------------------------------------------------------------------------
// Internal.
//
config.macros.forEachTiddler.createContext = function(placeParam, whereClauseParam, sortClauseParam, sortAscendingParam, actionNameParam, actionParameterParam, scriptText, tiddlyWikiPathParam, inTiddlerParam) {
return {
place : placeParam,
whereClause : whereClauseParam,
sortClause : sortClauseParam,
sortAscending : sortAscendingParam,
script : scriptText,
actionName : actionNameParam,
actionParameter : actionParameterParam,
tiddlyWikiPath : tiddlyWikiPathParam,
inTiddler : inTiddlerParam, // the tiddler containing the <<forEachTiddler ...>> macro call.
viewerTiddler : config.macros.forEachTiddler.getContainingTiddler(placeParam) // the tiddler showing the forEachTiddler result
};
};
// Internal.
//
// Returns a TiddlyWiki with the tiddlers loaded from the TiddlyWiki of
// the given path.
//
config.macros.forEachTiddler.loadTiddlyWiki = function(path, idPrefix) {
if (!idPrefix) {
idPrefix = "store";
}
var lenPrefix = idPrefix.length;
// Read the content of the given file
var content = loadFile(this.getLocalPath(path));
if(content === null) {
throw "TiddlyWiki '"+path+"' not found.";
}
var tiddlyWiki = new TiddlyWiki();
// Starting with TW 2.2 there is a helper function to import the tiddlers
if (tiddlyWiki.importTiddlyWiki) {
if (!tiddlyWiki.importTiddlyWiki(content))
throw "File '"+path+"' is not a TiddlyWiki.";
tiddlyWiki.dirty = false;
return tiddlyWiki;
}
// The legacy code, for TW < 2.2
// Locate the storeArea div's
var posOpeningDiv = content.indexOf(startSaveArea);
var posClosingDiv = content.lastIndexOf(endSaveArea);
if((posOpeningDiv == -1) || (posClosingDiv == -1)) {
throw "File '"+path+"' is not a TiddlyWiki.";
}
var storageText = content.substr(posOpeningDiv + startSaveArea.length, posClosingDiv);
// Create a "div" element that contains the storage text
var myStorageDiv = document.createElement("div");
myStorageDiv.innerHTML = storageText;
myStorageDiv.normalize();
// Create all tiddlers in a new TiddlyWiki
// (following code is modified copy of TiddlyWiki.prototype.loadFromDiv)
var store = myStorageDiv.childNodes;
for(var t = 0; t < store.length; t++) {
var e = store[t];
var title = null;
if(e.getAttribute)
title = e.getAttribute("tiddler");
if(!title && e.id && e.id.substr(0,lenPrefix) == idPrefix)
title = e.id.substr(lenPrefix);
if(title && title !== "") {
var tiddler = tiddlyWiki.createTiddler(title);
tiddler.loadFromDiv(e,title);
}
}
tiddlyWiki.dirty = false;
return tiddlyWiki;
};
// Internal.
//
// Returns a function that has a function body returning the given javaScriptExpression.
// The function has the parameters:
//
// (tiddler, context, count, index)
//
config.macros.forEachTiddler.getEvalTiddlerFunction = function (javaScriptExpression, context) {
var script = context["script"];
var functionText = "var theFunction = function(tiddler, context, count, index) { return "+javaScriptExpression+"}";
var fullText = (script ? script+";" : "")+functionText+";theFunction;";
return eval(fullText);
};
// Internal.
//
config.macros.forEachTiddler.findTiddlers = function(whereClause, context, tiddlyWiki) {
var result = [];
var func = config.macros.forEachTiddler.getEvalTiddlerFunction(whereClause, context);
tiddlyWiki.forEachTiddler(function(title,tiddler) {
if (func(tiddler, context, undefined, undefined)) {
result.push(tiddler);
}
});
return result;
};
// Internal.
//
config.macros.forEachTiddler.createExtraParameterErrorElement = function(place, actionName, parameter, firstUnusedIndex) {
var message = "Extra parameter behind '"+actionName+"':";
for (var i = firstUnusedIndex; i < parameter.length; i++) {
message += " "+parameter[i];
}
this.handleError(place, message);
};
// Internal.
//
config.macros.forEachTiddler.sortAscending = function(tiddlerA, tiddlerB) {
var result =
(tiddlerA.forEachTiddlerSortValue == tiddlerB.forEachTiddlerSortValue)
? 0
: (tiddlerA.forEachTiddlerSortValue < tiddlerB.forEachTiddlerSortValue)
? -1
: +1;
return result;
};
// Internal.
//
config.macros.forEachTiddler.sortDescending = function(tiddlerA, tiddlerB) {
var result =
(tiddlerA.forEachTiddlerSortValue == tiddlerB.forEachTiddlerSortValue)
? 0
: (tiddlerA.forEachTiddlerSortValue < tiddlerB.forEachTiddlerSortValue)
? +1
: -1;
return result;
};
// Internal.
//
config.macros.forEachTiddler.sortTiddlers = function(tiddlers, sortClause, ascending, context) {
// To avoid evaluating the sortClause whenever two items are compared
// we pre-calculate the sortValue for every item in the array and store it in a
// temporary property ("forEachTiddlerSortValue") of the tiddlers.
var func = config.macros.forEachTiddler.getEvalTiddlerFunction(sortClause, context);
var count = tiddlers.length;
var i;
for (i = 0; i < count; i++) {
var tiddler = tiddlers[i];
tiddler.forEachTiddlerSortValue = func(tiddler,context, undefined, undefined);
}
// Do the sorting
tiddlers.sort(ascending ? this.sortAscending : this.sortDescending);
// Delete the temporary property that holds the sortValue.
for (i = 0; i < tiddlers.length; i++) {
delete tiddlers[i].forEachTiddlerSortValue;
}
};
// Internal.
//
config.macros.forEachTiddler.trace = function(message) {
displayMessage(message);
};
// Internal.
//
config.macros.forEachTiddler.traceMacroCall = function(place,macroName,params) {
var message ="<<"+macroName;
for (var i = 0; i < params.length; i++) {
message += " "+params[i];
}
message += ">>";
displayMessage(message);
};
// Internal.
//
// Creates an element that holds an error message
//
config.macros.forEachTiddler.createErrorElement = function(place, exception) {
var message = (exception.description) ? exception.description : exception.toString();
return createTiddlyElement(place,"span",null,"forEachTiddlerError","<<forEachTiddler ...>>: "+message);
};
// Internal.
//
// @param place [may be null]
//
config.macros.forEachTiddler.handleError = function(place, exception) {
if (place) {
this.createErrorElement(place, exception);
} else {
throw exception;
}
};
// Internal.
//
// Encodes the given string.
//
// Replaces
// "$))" to ">>"
// "$)" to ">"
//
config.macros.forEachTiddler.paramEncode = function(s) {
var reGTGT = new RegExp("\\$\\)\\)","mg");
var reGT = new RegExp("\\$\\)","mg");
return s.replace(reGTGT, ">>").replace(reGT, ">");
};
// Internal.
//
// Returns the given original path (that is a file path, starting with "file:")
// as a path to a local file, in the systems native file format.
//
// Location information in the originalPath (i.e. the "#" and stuff following)
// is stripped.
//
config.macros.forEachTiddler.getLocalPath = function(originalPath) {
// Remove any location part of the URL
var hashPos = originalPath.indexOf("#");
if(hashPos != -1)
originalPath = originalPath.substr(0,hashPos);
// Convert to a native file format assuming
// "file:///x:/path/path/path..." - pc local file --> "x:\path\path\path..."
// "file://///server/share/path/path/path..." - FireFox pc network file --> "\\server\share\path\path\path..."
// "file:///path/path/path..." - mac/unix local file --> "/path/path/path..."
// "file://server/share/path/path/path..." - pc network file --> "\\server\share\path\path\path..."
var localPath;
if(originalPath.charAt(9) == ":") // pc local file
localPath = unescape(originalPath.substr(8)).replace(new RegExp("/","g"),"\\");
else if(originalPath.indexOf("file://///") === 0) // FireFox pc network file
localPath = "\\\\" + unescape(originalPath.substr(10)).replace(new RegExp("/","g"),"\\");
else if(originalPath.indexOf("file:///") === 0) // mac/unix local file
localPath = unescape(originalPath.substr(7));
else if(originalPath.indexOf("file:/") === 0) // mac/unix local file
localPath = unescape(originalPath.substr(5));
else // pc network file
localPath = "\\\\" + unescape(originalPath.substr(7)).replace(new RegExp("/","g"),"\\");
return localPath;
};
// ---------------------------------------------------------------------------
// Stylesheet Extensions (may be overridden by local StyleSheet)
// ---------------------------------------------------------------------------
//
setStylesheet(
".forEachTiddlerError{color: #ffffff;background-color: #880000;}",
"forEachTiddler");
//============================================================================
// End of forEachTiddler Macro
//============================================================================
//============================================================================
// String.startsWith Function
//============================================================================
//
// Returns true if the string starts with the given prefix, false otherwise.
//
version.extensions["String.startsWith"] = {major: 1, minor: 0, revision: 0, date: new Date(2005,11,20), provider: "http://tiddlywiki.abego-software.de"};
//
String.prototype.startsWith = function(prefix) {
var n = prefix.length;
return (this.length >= n) && (this.slice(0, n) == prefix);
};
//============================================================================
// String.endsWith Function
//============================================================================
//
// Returns true if the string ends with the given suffix, false otherwise.
//
version.extensions["String.endsWith"] = {major: 1, minor: 0, revision: 0, date: new Date(2005,11,20), provider: "http://tiddlywiki.abego-software.de"};
//
String.prototype.endsWith = function(suffix) {
var n = suffix.length;
return (this.length >= n) && (this.right(n) == suffix);
};
//============================================================================
// String.contains Function
//============================================================================
//
// Returns true when the string contains the given substring, false otherwise.
//
version.extensions["String.contains"] = {major: 1, minor: 0, revision: 0, date: new Date(2005,11,20), provider: "http://tiddlywiki.abego-software.de"};
//
String.prototype.contains = function(substring) {
return this.indexOf(substring) >= 0;
};
//============================================================================
// Array.indexOf Function
//============================================================================
//
// Returns the index of the first occurance of the given item in the array or
// -1 when no such item exists.
//
// @param item [may be null]
//
version.extensions["Array.indexOf"] = {major: 1, minor: 0, revision: 0, date: new Date(2005,11,20), provider: "http://tiddlywiki.abego-software.de"};
//
Array.prototype.indexOf = function(item) {
for (var i = 0; i < this.length; i++) {
if (this[i] == item) {
return i;
}
}
return -1;
};
//============================================================================
// Array.contains Function
//============================================================================
//
// Returns true when the array contains the given item, otherwise false.
//
// @param item [may be null]
//
version.extensions["Array.contains"] = {major: 1, minor: 0, revision: 0, date: new Date(2005,11,20), provider: "http://tiddlywiki.abego-software.de"};
//
Array.prototype.contains = function(item) {
return (this.indexOf(item) >= 0);
};
//============================================================================
// Array.containsAny Function
//============================================================================
//
// Returns true when the array contains at least one of the elements
// of the item. Otherwise (or when items contains no elements) false is returned.
//
version.extensions["Array.containsAny"] = {major: 1, minor: 0, revision: 0, date: new Date(2005,11,20), provider: "http://tiddlywiki.abego-software.de"};
//
Array.prototype.containsAny = function(items) {
for(var i = 0; i < items.length; i++) {
if (this.contains(items[i])) {
return true;
}
}
return false;
};
//============================================================================
// Array.containsAll Function
//============================================================================
//
// Returns true when the array contains all the items, otherwise false.
//
// When items is null false is returned (even if the array contains a null).
//
// @param items [may be null]
//
version.extensions["Array.containsAll"] = {major: 1, minor: 0, revision: 0, date: new Date(2005,11,20), provider: "http://tiddlywiki.abego-software.de"};
//
Array.prototype.containsAll = function(items) {
for(var i = 0; i < items.length; i++) {
if (!this.contains(items[i])) {
return false;
}
}
return true;
};
} // of "install only once"
// Used Globals (for JSLint) ==============
// ... DOM
/*global document */
// ... TiddlyWiki Core
/*global convertUnicodeToUTF8, createTiddlyElement, createTiddlyLink,
displayMessage, endSaveArea, hasClass, loadFile, saveFile,
startSaveArea, store, wikify */
{
"tiddlers": {
"$:/plugins/bimlas/disqus/README/CHANGELOG": {
"title": "$:/plugins/bimlas/disqus/README/CHANGELOG",
"tags": "",
"type": "text/vnd.tiddlywiki",
"text": "I'm trying to follow the rules of [[Semantic Versioning|https://semver.org/]].\n\n!! 1.1.2\n\n[[See GitLab for detailed change history of this release|https://gitlab.com/bimlas/tw5-disqus/compare/v1.0.0...v1.1.2]]\n\n* [[Added|https://gitlab.com/bimlas/tw5-disqus/merge_requests/2]] toolbar button for jumping to Disqus comments\n* [[Fixed|https://gitlab.com/bimlas/tw5-disqus/merge_requests/1]] generation of static pages\n* [[Changed|https://gitlab.com/bimlas/tw5-disqus/commit/324be06048616b6753729d0607b0fd7c7c6b6c4f]] Disqus icon to SVG format\n\n!! 1.0.0\n\n* First public release\n"
},
"$:/plugins/bimlas/disqus/README/FAQ": {
"title": "$:/plugins/bimlas/disqus/README/FAQ",
"tags": "",
"type": "text/vnd.tiddlywiki",
"text": "! Frequently asked questions\n\n!! Can I use on \"read only\" on wiki?\n\nDisqus is responsible for storing and managing comments, there is nothing to store in ~TiddlyWiki other than settings.\n\n!! Will I be notified when a new comment is posted?\n\nIt depends on your [[Disqus settings|https://help.disqus.com/user-profile/updating-your-disqus-settings]].\n\n!! The links in the email notification do not work\n\nDisqus does not handle permalinks (that's how ~TiddlyWiki identifies tiddlers), so the `#` character has been removed from the URL. Add `#` to the end of your website URL before the tiddler title. For example if the mail contains https://tiddlywiki.com/PermaLinks, write to https://tiddlywiki.com/#PermaLinks.\n\n!! Counters do not always appear\n\nI don't know the reason, but it seems that until we open a conversation thread, the corresponding counter cannot be polled, so the default text will appear (you can define it in the plugin settings)."
},
"$:/plugins/bimlas/disqus/README/README": {
"title": "$:/plugins/bimlas/disqus/README/README",
"tags": "",
"type": "text/vnd.tiddlywiki",
"text": "! Disqus comments\n\nUse this plugin to give your visitors the opportunity to comment on your\ntiddlers without changing the wiki itself. See the bottom of this tiddler for example.\n\n* https://gitlab.com/bimlas/tw5-disqus (main repository)\n* https://github.com/bimlas/tw5-disqus (mirror, ''please add a star if you like the plugin'')\n\n[[Disqus|https://disqus.com/]] is a networked community platform used by hundreds of thousands\nof sites all over the web. With Disqus, your website gains a feature-rich\ncomment system complete with social network integration, advanced\nadministration and moderation options, and other extensive community functions.\n\n!! Installation instructions\n\nTo add the plugin to your own ~TiddlyWiki5, just drag this link to the browser window:\n\n$:/plugins/bimlas/disqus\n\nFor other installation options see the repositories above.\n\n//Select the next tab to continue.//\n"
},
"$:/plugins/bimlas/disqus/README/setup": {
"title": "$:/plugins/bimlas/disqus/README/setup",
"tags": "",
"type": "text/vnd.tiddlywiki",
"text": "! Setup\n\nBefore you using the plugin, you need to create the Disqus forum to your wiki.\n\n* Make yourself a [[Disqus account|https://disqus.com/]] if you don't already have one.\n* When it ask about \"What would you like to do with Disqus?\", select \"I want to install Disqus on my site\"\n* Fill out the form and copy the shortname (unique Disqus URL) under the website name to the [[settings of the plugin|$:/plugins/bimlas/disqus/settings/settings]]\n* Select your Disqus plan (free / paid)\n* You can skip the platform selection (Wordpress, Blogger, etc.) and continue with configuration\n* Fill out the website URL and copy to the [[settings of the plugin|$:/plugins/bimlas/disqus/settings/settings]]\n* Complete the setup and refresh your wiki\n* If not works, you probably forgot to press \"Dismiss Setup\" on the \"Setup Complete!\" page on Disqus\n\n//Select the next tab to continue.//\n"
},
"$:/plugins/bimlas/disqus/images/disqus.svg": {
"title": "$:/plugins/bimlas/disqus/images/disqus.svg",
"text": "<svg class=\"tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"28 28 145 145\">\n<path d=\"M102.535 167.5c-16.518 0-31.621-6.036-43.298-16.021L30.5 155.405l11.102-27.401A67.658 67.658 0 0 1 35.564 100c0-37.277 29.984-67.5 66.971-67.5 36.984 0 66.965 30.223 66.965 67.5 0 37.284-29.98 67.5-66.965 67.5zm36.567-67.693v-.188c0-19.478-13.736-33.367-37.42-33.367h-25.58v67.5h25.201c23.868.001 37.799-14.468 37.799-33.945zm-37.138 17.361h-7.482V82.841h7.482c10.989 0 18.283 6.265 18.283 17.07v.188c0 10.896-7.294 17.069-18.283 17.069z\"/>\n</svg>\n"
},
"$:/plugins/bimlas/disqus/macro/comments": {
"title": "$:/plugins/bimlas/disqus/macro/comments",
"text": "/*\\\nmodule-type: macro\ntags: $:/tags/Macro\ntitle: $:/plugins/bimlas/disqus/macro/comments\ntype: application/javascript\n\nDisplay Disqus comments\n\n\\*/\n(function() {\n\n\t/*jslint node: true, browser: true */\n\t/*global $tw: false */\n\t\"use strict\";\n\n\tvar LOADER_ID = \"DISQUS-LOADER\";\n\tvar THREAD_ID = \"disqus_thread\";\n\n\texports.name = \"disqus-comments\";\n\n\texports.params = [\n\t\t{\"name\": \"current\"},\n\t];\n\n\t/*\n\tRun the macro\n\t*/\n\texports.run = function(current) {\n\t\t// Interactive DOM not available when generating static pages\n\t\tif (!$tw.browser) return;\n\n\t\t/* Remove current Disqus */\n\t\tvar current_disqus = document.getElementById(LOADER_ID);\n\t\tif(current_disqus !== null) {\n\t\t\t(document.head || document.body).removeChild(current_disqus);\n\t\t}\n\n\t\twindow.disqus_config = function() {\n\t\t\tthis.page.url = $tw.wiki.getTiddlerText('$:/config/bimlas/disqus/url') + encodeURIComponent(current);\n\t\t};\n\n\t\t/* Load Disqus */\n\t\tvar loader = document.createElement('script');\n\t\tloader.src = 'https://' + $tw.wiki.getTiddlerText('$:/config/bimlas/disqus/shortname') + '.disqus.com/embed.js';\n\t\tloader.id = LOADER_ID;\n\t\tloader.setAttribute('data-timestamp', (new Date()).toString());\n\t\t(document.head || document.body).appendChild(loader);\n\n\t\t$tw.utils.nextTick(function() {\n\t\t\t$tw.rootWidget.dispatchEvent({\n\t\t\t\ttype: \"disqus-did-insert-element\",\n\t\t\t\ttarget: document.getElementById(THREAD_ID)\n\t\t\t});\n\t\t});\n\n\t\treturn '<div id=\"' + THREAD_ID + '\"></div>'\n\t};\n\n})();\n",
"module-type": "macro",
"tags": "$:/tags/Macro",
"type": "application/javascript"
},
"$:/plugins/bimlas/disqus/macro/counter": {
"title": "$:/plugins/bimlas/disqus/macro/counter",
"text": "/*\\\nmodule-type: macro\ntags: $:/tags/Macro\ntitle: $:/plugins/bimlas/disqus/macro/counter\ntype: application/javascript\n\nDisplay Disqus comments counter\n\n\\*/\n(function() {\n\n\t/*jslint node: true, browser: true */\n\t/*global $tw: false */\n\t\"use strict\";\n\n\texports.name = \"disqus-counter\";\n\n\texports.params = [\n\t\t{\"name\": \"current\"},\n\t];\n\n\t/*\n\tRun the macro\n\t*/\n\texports.run = function(current) {\n\t\t// Interactive DOM not available when generating static pages\n\t\tif (!$tw.browser) return;\n\n\t\t/* Get counter loader */\n\t\tif(document.getElementById(\"dsq-count-scr\") === null) {\n\t\t\tvar loader = document.createElement('script');\n\t\t\tloader.src = 'https://' + $tw.wiki.getTiddlerText('$:/config/bimlas/disqus/shortname') + '.disqus.com/count.js';\n\t\t\tloader.id = 'dsq-count-scr';\n\t\t\tloader.setAttribute('async','');\n\t\t\tdocument.head.appendChild(loader);\n\t\t}\n\n\t\t/* Update newly added counters */\n\t\t$tw.hooks.addHook(\"th-page-refreshed\", function() {\n\t\t\tif (window.DISQUSWIDGETS) {\n\t\t\t\twindow.DISQUSWIDGETS.getCount({reset: true});\n\t\t\t}\n\t\t});\n\n\t\treturn '(<span class=\"disqus-comment-count\" data-disqus-url=\"' + $tw.wiki.getTiddlerText('$:/config/bimlas/disqus/url') + encodeURIComponent(current) + '\">' + $tw.wiki.getTiddlerText('$:/config/bimlas/disqus/counter-default') + '</span>)';\n\t};\n\n})();\n",
"module-type": "macro",
"tags": "$:/tags/Macro",
"type": "application/javascript"
},
"$:/config/bimlas/disqus/counter-default": {
"title": "$:/config/bimlas/disqus/counter-default",
"tags": "",
"type": "text/vnd.tiddlywiki",
"text": "?"
},
"$:/config/bimlas/disqus/filter": {
"title": "$:/config/bimlas/disqus/filter",
"tags": "",
"type": "text/vnd.tiddlywiki",
"text": "[!is[system]]"
},
"$:/plugins/bimlas/disqus/settings/settings": {
"title": "$:/plugins/bimlas/disqus/settings/settings",
"tags": "$:/tags/ControlPanel",
"type": "text/vnd.tiddlywiki",
"caption": "Disqus",
"text": "<$list filter=\"[[$:/ControlPanel]!is[current]]\">\n Configuration for the plugin can be done from within the Disqus tab in the [[ControlPanel|$:/ControlPanel]] as well.\n</$list>\n<$list filter=\"[[$:/ControlPanel]is[current]]\">\n Configuration for the [[Disqus plugin|$:/plugins/bimlas/disqus]].\n</$list>\n\n|[[Website shortname (from unique Disqus URL)|$:/config/bimlas/disqus/shortname]]<blockquote>''Needs restart''<br/>If you can't find it, [[have a look at the help|https://help.disqus.com/installation/whats-a-shortname]]</blockquote> |<$edit-text tiddler=\"$:/config/bimlas/disqus/shortname\" default=\"\" tag=\"input\"/><br/>//For example https://SHORTNAME.disqus.com/ // |\n|[[Website URL|$:/config/bimlas/disqus/url]] |<$edit-text tiddler=\"$:/config/bimlas/disqus/url\" default=\"\" tag=\"input\"/><br/>//For example https://me.github.io/ (don't forget to add trailing slash) or https://tiddlywiki.com/empty.html // |\n|[[Counter default text|$:/config/bimlas/disqus/counter-default]]<blockquote>Default text if tiddler thread has not yet been created (probably does not contain any comments) or can not connect to Disqus</blockquote> |<$edit-text tiddler=\"$:/config/bimlas/disqus/counter-default\" default=\"\" tag=\"input\"/> |\n|[[Filter|$:/config/bimlas/disqus/filter]]<blockquote>Which tiddlers would you like to comment on?</blockquote> |<$edit-text tiddler=\"$:/config/bimlas/disqus/filter\" default=\"\" tag=\"input\"/> |"
},
"$:/plugins/bimlas/disqus/stylesheet": {
"title": "$:/plugins/bimlas/disqus/stylesheet",
"tags": "$:/tags/Stylesheet",
"type": "text/css",
"text": ".bimlas-disqus-toggle {\n\tdisplay: block;\n\twidth: 100%;\n\ttext-align: right;\n}\n\n.bimlas-disqus-toggle img {\n\theight: 1rem;\n}\n"
},
"$:/plugins/bimlas/disqus/template": {
"title": "$:/plugins/bimlas/disqus/template",
"tags": "$:/tags/ViewTemplate",
"type": "text/vnd.tiddlywiki",
"text": "<$list filter=\"[all[current]subfilter{$:/config/bimlas/disqus/filter}]\" variable=\"doNotOverrideCurrent\">\n\t<$set name=\"stateTiddler\" value=\"$:/state/bimlas/disqus\">\n\t\t<$reveal type=\"nomatch\" state=<<stateTiddler>> text=<<currentTiddler>>>\n\t\t\t@@.bimlas-disqus-toggle\n\t\t\t\t<$button class=\"tc-btn-invisible\" set=<<stateTiddler>> setTo=<<currentTiddler>> >\n\t\t\t\t\t{{$:/core/images/down-arrow}}\n\t\t\t\t\t{{$:/plugins/bimlas/disqus/images/disqus.svg}}\n\t\t\t\t\tShow Disqus comments\n\t\t\t\t</$button>\n\t\t\t\t<$macrocall $name=\"disqus-counter\" current=<<currentTiddler>>/>\n\t\t\t@@\n\t\t</$reveal>\n\t\t<$reveal type=\"match\" state=<<stateTiddler>> text=<<currentTiddler>>>\n\t\t\t@@.bimlas-disqus-toggle\n\t\t\t\t<$button class=\"tc-btn-invisible\" set=<<stateTiddler>> setTo=\"\">\n\t\t\t\t\t{{$:/core/images/up-arrow}}\n\t\t\t\t\t{{$:/plugins/bimlas/disqus/images/disqus.svg}}\n\t\t\t\t\tHide Disqus comments\n\t\t\t\t</$button>\n\t\t\t\t<$macrocall $name=\"disqus-counter\" current=<<currentTiddler>>/>\n\t\t\t@@\n\n\t\t\t<$macrocall $name=\"disqus-comments\" current=<<currentTiddler>>/>\n\n\t\t</$reveal>\n\t</$set>\n</$list>\n"
},
"$:/plugins/bimlas/disqus/viewtoolbar/disqus-open-listener.js": {
"title": "$:/plugins/bimlas/disqus/viewtoolbar/disqus-open-listener.js",
"text": "/*\\\ntitle: $:/plugins/bimlas/disqus/viewtoolbar/disqus-open-listener.js\ntype: application/javascript\nmodule-type: startup\n\nAdd event listener for Disqus toolbar button\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"open-disqus\";\nexports.synchronous = true;\n\nexports.startup = function() {\n\t$tw.rootWidget.addEventListener(\"disqus-did-insert-element\", function(event) {\n\t\t$tw.pageScroller.scrollIntoView(event.target);\n\t});\n};\n\n})();\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/plugins/bimlas/disqus/viewtoolbar/disqus-open": {
"title": "$:/plugins/bimlas/disqus/viewtoolbar/disqus-open",
"tags": "$:/tags/ViewToolbar",
"type": "text/vnd.tiddlywiki",
"caption": "{{$:/core/images/add-comment}} disqus comments",
"description": "View Disqus comments",
"list-before": "$:/core/ui/Buttons/info",
"text": "\\whitespace trim\n<$list filter=\"[all[current]subfilter{$:/config/bimlas/disqus/filter}]\" variable=\"doNotOverrideCurrent\">\n\t<$button tooltip=\"View Disqus comments\" aria-label=\"disqus comments\" class=<<tv-config-toolbar-class>> set=\"$:/state/bimlas/disqus\" setTo=<<currentTiddler>> >\n\t\t<$list filter=\"[<tv-config-toolbar-icons>prefix[yes]]\">\n\t\t\t{{$:/plugins/bimlas/disqus/images/disqus.svg}}\n\t\t</$list>\n\t\t<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n\t\t\t<span class=\"tc-btn-text\">\n\t\t\t\t<$text text=\" \"/>\n\t\t\t\t<$text text=\"view disqus comments\"/>\n\t\t\t</span>\n\t\t</$list>\n\t</$button>\n</$list>\n"
}
}
}
{
"tiddlers": {
"$:/plugins/bimlas/kin-filter/README/concept.svg": {
"title": "$:/plugins/bimlas/kin-filter/README/concept.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" color-interpolation=\"auto\" height=\"492\" width=\"576\" stroke-linecap=\"square\" stroke=\"#000000\" font-family=\"Dialog\" font-size=\"12\" stroke-miterlimit=\"10\"><style><![CDATA[.C{stroke:none}.E{stroke-miterlimit:1.45000005}.F{fill:none}.I{stroke-linecap:butt}.G{fill:#f1c122}.L{font-size:26.667px}.M{fill:#4f4f4f}.D{fill:#d84100}.H{fill:#006eff}]]></style><defs><clipPath id=\"A\"><path d=\"M-15-15h630v745H-15z\"/></clipPath></defs><g clip-path=\"url(#A)\" shape-rendering=\"geometricPrecision\" text-rendering=\"geometricPrecision\"><rect class=\"C D\" x=\"15.917\" height=\"40\" rx=\"4\" width=\"40\" y=\"161.955\"/><rect class=\"E F\" x=\"15.917\" height=\"40\" rx=\"4\" width=\"40\" y=\"161.955\"/><rect class=\"C D\" height=\"40\" rx=\"4\" width=\"80\" y=\"191.955\" x=\"95.917\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"80\" y=\"191.955\" x=\"95.917\"/><rect class=\"C D\" height=\"40\" rx=\"4\" width=\"40\" y=\"191.526\" x=\"204.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"191.526\" x=\"204.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"371.526\" x=\"284.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"371.526\" x=\"284.242\"/><rect class=\"C\" height=\"40\" rx=\"4\" width=\"40\" y=\"251.526\" x=\"284.242\" fill=\"#008b00\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"251.526\" x=\"284.242\"/><rect class=\"C H\" height=\"40\" rx=\"4\" width=\"80\" y=\"281.526\" x=\"384.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"80\" y=\"281.526\" x=\"384.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"131.955\" x=\"95.917\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"131.955\" x=\"95.917\"/><rect class=\"C H\" height=\"40\" rx=\"4\" width=\"40\" y=\"221.526\" x=\"384.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"221.526\" x=\"384.242\"/><rect class=\"C H\" height=\"40\" rx=\"4\" width=\"40\" y=\"221.526\" x=\"504.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"221.526\" x=\"504.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"101.526\" x=\"284.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"101.526\" x=\"284.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"131.526\" x=\"384.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"131.526\" x=\"384.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"60\" y=\"71.526\" x=\"384.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"60\" y=\"71.526\" x=\"384.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"11.526\" x=\"284.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"11.526\" x=\"284.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"401.526\" x=\"384.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"401.526\" x=\"384.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"161.526\" x=\"504.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"161.526\" x=\"504.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"40\" y=\"101.526\" x=\"504.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"40\" y=\"101.526\" x=\"504.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"80\" y=\"341.526\" x=\"384.242\"/><rect class=\"E F\" height=\"40\" rx=\"4\" width=\"80\" y=\"341.526\" x=\"384.242\"/><rect class=\"C G\" height=\"40\" rx=\"4\" width=\"60\" y=\"11.526\" x=\"384.242\"/><g class=\"E F\"><rect height=\"40\" rx=\"4\" width=\"60\" y=\"11.526\" x=\"384.242\"/><g class=\"I\"><path d=\"M64.54 181.955h12.03v30h19.35\"/></g></g><path class=\"C\" d=\"M55.887 181.955l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M183.636 211.526h20.33\" stroke-width=\".731\"/><path class=\"C\" d=\"M175.897 211.525l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M252.69 211.526h12.03v180h19.984\"/><path class=\"C\" d=\"M244.212 211.526l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M252.69 211.526h12.03v60h19.984\"/><path class=\"C\" d=\"M324.25 271.526l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M332.703 271.526h32.018v30h20\"/><path d=\"M324.25 391.66l12-5-3 5 3 5z\" class=\"C\"/><path class=\"E F I\" d=\"M64.887 181.955H76.57v-30h19.4m236.723 119.57h32.018v-30h19.984m48.025.001h72.02\"/><path class=\"C\" d=\"M423.72 241.526l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M252.69 211.526h12.03v-90h19.984\"/><path class=\"C\" d=\"M323.728 121.526l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M332.703 121.526h32.018v30h19.984\"/><path class=\"E F I\" d=\"M332.703 121.526h32.018v-30h20m-132.03 120h12.03v-180h19.984\"/><path class=\"C\" d=\"M323.728 31.526l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M332.703 391.526h32.018v30h19.984m48.02-270h51.996v30h19.984\"/><path class=\"E F I\" d=\"M432.725 151.526h51.996v-30h19.984\"/><path class=\"C\" d=\"M423.725 151.526l12-5-3 5 3 5z\"/><path class=\"E F I\" d=\"M332.703 391.526h32.018v-30h20m-51.993-330h51.98\"/></g><g class=\"C\" letter-spacing=\"0\" word-spacing=\"0\" font-family=\"sans-serif\"><text class=\"L\" y=\"481.371\" x=\"259.32\" xml:space=\"preserve\"><tspan class=\"M\" y=\"481.371\" x=\"259.32\">DEPTH</tspan></text><g font-size=\"40\"><text y=\"481.371\" x=\"395.524\" xml:space=\"preserve\"><tspan class=\"L M\" y=\"481.371\" x=\"395.524\">1</tspan></text><text y=\"481.547\" x=\"516.117\" xml:space=\"preserve\"><tspan class=\"L M\" y=\"481.547\" x=\"516.117\">2</tspan></text><text xml:space=\"preserve\" x=\"215.524\" y=\"481.371\"><tspan class=\"L M\" x=\"215.524\" y=\"481.371\">1</tspan></text><text xml:space=\"preserve\" x=\"107.792\" y=\"481.547\"><tspan class=\"L M\" x=\"107.792\" y=\"481.547\">2</tspan></text><text y=\"481.358\" x=\"27.486\" xml:space=\"preserve\"><tspan class=\"L M\" y=\"481.358\" x=\"27.486\">3</tspan></text><text y=\"325.27\" x=\"268.643\" xml:space=\"preserve\"><tspan class=\"L\" y=\"325.27\" x=\"268.643\" fill=\"#008b00\">BASE</tspan></text><text xml:space=\"preserve\" x=\"506.384\" y=\"325.27\"><tspan class=\"L H\" x=\"506.384\" y=\"325.27\">TO</tspan></text><text y=\"325.27\" x=\"96.958\" xml:space=\"preserve\"><tspan class=\"L D\" y=\"325.27\" x=\"96.958\">FROM</tspan></text></g></g></svg>",
"type": "image/svg+xml",
"tags": "picture"
},
"A": {
"title": "A",
"tags": "kin-example-top"
},
"B": {
"title": "B",
"tags": "A"
},
"C": {
"title": "C",
"tags": "B",
"list": "D"
},
"D": {
"title": "D",
"tags": "C",
"list": "E"
},
"E": {
"title": "E",
"tags": "C",
"list": "G"
},
"F": {
"title": "F",
"tags": "B"
},
"G": {
"title": "G",
"tags": "F"
},
"H": {
"title": "H",
"tags": "F"
},
"$:/plugins/bimlas/kin-filter/README/examples": {
"title": "$:/plugins/bimlas/kin-filter/README/examples",
"type": "text/vnd.tiddlywiki",
"text": "\\define item-class(highlightfilter) <$list filter=\"[[kin-example-top]kin::to[]subfilter<__highlightfilter__>is[current]first[]]\">highlighted-toc-item</$list>\n\n\\define kin-example-with-toc(n,eg,ie)\n <div class=\"doc-example\">\n `$eg$`\n <dd>→ $ie$</dd>\n <$list filter=\"[title<.state-prefix>addsuffix{!!title}addsuffix[/]addsuffix[$n$]]\" variable=\".state\">\n <$reveal state=<<.state>> type=\"nomatch\" text=\"show\">\n <dl>\n <dd><$button set=<<.state>> setTo=\"show\">Try it</$button></dd>\n </dl>\n </$reveal>\n <$reveal state=<<.state>> type=\"match\" text=\"show\">\n <dl>\n <dd><$button set=<<.state>> setTo=\"\">Hide</$button></dd>\n </dl>\n <blockquote class=\"doc-example-result\">\n <ul><$list filter=\"[[kin-example-top]kin::to[]subfilter<__eg__>sort[]]\" emptyMessage=\"(empty)\">\n <li><$link><$view field=\"title\"/></$link></li>\n </$list></ul>\n Results highlighted in the tree:\n\n <<kin-toc \"$eg$\">>\n </blockquote>\n </$reveal>\n </$list>\n </div>\n\\end\n\n\\define each-level(highlightfilter)\n <li>\n <$wikify name=\"transcluded-item-class\" text=\"\"\"<$macrocall $name=\"item-class\" highlightfilter=<<__highlightfilter__>>/>\"\"\">\n <$link class=<<transcluded-item-class>> ><<currentTiddler>></$link>\n </$wikify>\n <ul>\n <$list filter=\"[[kin-example-top]kin::to[]tag<currentTiddler>]\">\n <$macrocall $name=\"each-level\" highlightfilter=<<__highlightfilter__>>/>\n </$list>\n </ul>\n </li>\n\\end\n\n\\define kin-toc(highlightfilter)\n <$tiddler tiddler=\"kin-example-top\">\n <ul>\n <$macrocall $name=\"each-level\" highlightfilter=<<__highlightfilter__>>/>\n </ul>\n </$tiddler>\n\\end\n\n<style>\n .highlighted-toc-item {\n color: red !important;\n }\n</style>\n\nExample tree (to really understand, look at the tiddlers):\n\n<<kin-toc \"!is[current]\">>\n\n''The tree'' below the examples only helps in understanding the filter, it ''is not part of the output''.\n\n''Feel free to edit [[this tiddler|$:/plugins/bimlas/kin-filter/README/examples]] to test your own filter expressions as well!'' If you want to undo the changes you made, just delete the tiddler, it will restore itself to its initial state.\n\n<<kin-example-with-toc 1 \"[kin[C]]\" \"input titles which are family members of the parameter title\">>\n<<kin-example-with-toc 2 \"[kin[C]kin[F]]\" \"common family members of each of the specified titles (intersection)\">>\n<<kin-example-with-toc 3 \"[kin[C]!kin[F]]\" \"difference of families of the specified titles (complement)\">>\n<<kin-example-with-toc 4 \"[[C]] [[F]] +[kin[]]\" \"collected titles which are family members of any of the input tiddlers (union)\">>\n<<kin-example-with-toc 5 \"[kin::to[B]]\" \"successors of the given tiddler\">>\n<<kin-example-with-toc 6 \"[kin::from[E]kin::to[B]]\" \"subset of the family tree\">>\n<<kin-example-with-toc 7 \"[kin::from:2[E]]\" \"ancestors of the given tiddler until the given depth\">>\n<<kin-example-with-toc 8 \"[kin:tags:from[G]]\" \"ancestors of tiddler based on `tags` field (`tags` points to parents)\">>\n<<kin-example-with-toc 9 \"[kin:list:to[G]]\" \"ancestors of tiddler based on `list` field (`list` point to children)\">>\n"
},
"$:/plugins/bimlas/kin-filter/README/syntax": {
"title": "$:/plugins/bimlas/kin-filter/README/syntax",
"type": "text/vnd.tiddlywiki",
"text": "! Kin filter operator\n\n* https://gitlab.com/bimlas/tw5-kin-filter (official repository)\n* https://github.com/bimlas/tw5-kin-filter (mirror, please give a star if you like it)\n\nThe purpose of the ''kin'' operator with examples:\n\n* Finds related tags, related tiddlers in any depth\n* Finds out where base tiddler originates and what other elements originate from it\n* Finds the ancestors and successors of a family member\n* Finds the \"leaves\" of the branch of the base tiddler in a tree-like structure (where the base tiddler is a leaf)\n* Finds the super- and subsets / groups of a mathematical set (where the base tiddler is a set)\n\n[img[$:/plugins/bimlas/kin-filter/README/concept.svg]]\n\n|''input''|a [[selection of titles|https://tiddlywiki.com/#Title%20Selection]]|\n|''suffix''|the ''kin'' operator uses a rich suffix, see below for details|\n|''parameter''|''B'' base tiddler title or nothing|\n|''output''|''with parameter B''<br>» those input titles which are ''kin with B'' <br>''without B''<br>» ''all'' tiddler titles which are ''kin with input titles'' (treat input titles as base tiddlers)|\n|''`!` output''|''with parameter B''<br>» those input titles which are ''//NOT// kin with B''<br>''without parameter B''<br>» ignored|\n\nThe ''kin'' operator uses an extended syntax that permits multiple fields and flags to be passed:\n\n```\n[kin:<field>:<direction>:<depth>[<operand>]]\n```\n\n* ''field'': name of the [[field|https://tiddlywiki.com/#TiddlerFields]] which connecting tiddlers (assumed to be a [[title list|https://tiddlywiki.com/#Title%20List]], defaulting to `tags`)\n* ''direction'': collect the tiddler titles in this direction relative to the base tiddler\n** ''from'': collect kins of base tiddler pointing from it (including the base tiddler title itself)\n** ''to'': collect kins of base tiddler pointing to it (including the base tiddler title itself)\n** ''with'': (the default) union of the aboves\n* ''depth'': maximum depth of the collected labels in the tree structure relative to the base tiddler (a positive number, not limited by default)\n* ''operand'': filter operand, the base tiddler\n\n''kin'' is a [[modifier|https://tiddlywiki.com/#Selection%20Constructors]], but without ''B'' parameter is a [[constructor|https://tiddlywiki.com/#Selection%20Constructors]].\n\n!! Installation instructions\n\nTo add the plugin to your own ~TiddlyWiki5, just drag this link to the browser window:\n\n$:/plugins/bimlas/kin-filter\n\nFor other installation options see the repositories above.\n\n//Select the next tab to continue.//\n"
},
"$:/plugins/bimlas/kin-filter/kin.js": {
"title": "$:/plugins/bimlas/kin-filter/kin.js",
"text": "/*\\\ntitle: $:/plugins/bimlas/kin-filter/kin.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFinds out where a tiddler originates from and what other tiddlers originate from it\n\n\\*/\n(function() {\n\n\t/*jslint node: true, browser: true */\n\t/*global $tw: true */\n\t\"use strict\";\n\n\tfunction collectTitlesRecursively(baseTiddler,baseTitle,options) {\n\t\tvar cacheName = \"kin-filter-\" + baseTitle + \"-\" + options.fieldName + \"-\",\n\t\t\ttitlesPointingFromBase = {},\n\t\t\ttitlesPointingToBase = {},\n\t\t\tresultsFrom = [],\n\t\t\tresultsTo = [];\n\n\t\t/* Copy of findListingsOfTiddler, but it's searching in shadows as well. */\n\t\tfunction findListingsOfTiddler(targetTitle,fieldName) {\n\t\t\tfieldName = fieldName || \"list\";\n\t\t\tvar titles = [];\n\t\t\toptions.wiki.eachTiddlerPlusShadows(function(tiddler,title) {\n\t\t\t\tvar list = $tw.utils.parseStringArray(tiddler.fields[fieldName]);\n\t\t\t\tif(list && list.indexOf(targetTitle) !== -1) {\n\t\t\t\t\ttitles.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn titles;\n\t\t}\n\n\t\tfunction addToResultsIfNotFoundAlready(alreadyFound,title,depth) {\n\t\t\tif(title in alreadyFound) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\talreadyFound[title] = depth;\n\t\t\treturn true\n\t\t}\n\n\t\tfunction collectTitlesPointingFrom(tiddler,title,currentDepth) {\n\t\t\tif(addToResultsIfNotFoundAlready(titlesPointingFromBase,title,currentDepth)) {\n\t\t\t\tcurrentDepth += 1;\n\t\t\t\tif(tiddler) {\n\t\t\t\t\t$tw.utils.each(tiddler.getFieldList(options.fieldName),function(targetTitle) {\n\t\t\t\t\t\tcollectTitlesPointingFrom(options.wiki.getTiddler(targetTitle),targetTitle,currentDepth);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfunction collectTitlesPointingTo(title,currentDepth) {\n\t\t\tif(addToResultsIfNotFoundAlready(titlesPointingToBase,title,currentDepth)) {\n\t\t\t\tcurrentDepth += 1;\n\t\t\t\t$tw.utils.each(findListingsOfTiddler(title,options.fieldName),function(targetTitle) {\n\t\t\t\t\tcollectTitlesPointingTo(targetTitle,currentDepth);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tfunction getObjectKeysByExpression(object,callback) {\n\t\t\tvar key,\n\t\t\t\tresults = [];\n\t\t\tfor (key in object) {\n\t\t\t\tif (object.hasOwnProperty(key) && callback(object[key])) {\n\t\t\t\t\tresults.push(key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn results;\n\t\t}\n\n\t\tfunction getResultsInGivenDepth(cachedData) {\n\t\t\tif(options.depth) {\n\t\t\t\treturn getObjectKeysByExpression(cachedData,function(value) {\n\t\t\t\t\treturn value <= options.depth;\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\treturn Object.keys(cachedData);\n\t\t\t}\n\t\t}\n\n\t\tif((options.direction === \"from\") || (options.direction === \"with\")) {\n\t\t\tresultsFrom = $tw.wiki.getGlobalCache(cacheName + \"from\",function() {\n\t\t\t\tcollectTitlesPointingFrom(baseTiddler,baseTitle,0);\n\t\t\t\treturn titlesPointingFromBase;\n\t\t\t});\n\t\t\tresultsFrom = getResultsInGivenDepth(resultsFrom);\n\t\t}\n\t\tif((options.direction === \"to\") || (options.direction === \"with\")) {\n\t\t\tresultsTo = $tw.wiki.getGlobalCache(cacheName + \"to\",function() {\n\t\t\t\tcollectTitlesPointingTo(baseTitle,0);\n\t\t\t\treturn titlesPointingToBase;\n\t\t\t});\n\t\t\tresultsTo = getResultsInGivenDepth(resultsTo);\n\t\t}\n\t\treturn $tw.utils.pushTop(resultsFrom,resultsTo);\n\t}\n\n\t/*\n\tExport our filter function\n\t*/\n\texports.kin = function(source,operator,options) {\n\t\tvar results = [],\n\t\t\tneedsExclusion = operator.prefix === \"!\",\n\t\t\tsuffixes = operator.suffixes || [],\n\t\t\tfilterOptions = {\n\t\t\t\twiki: options.wiki,\n\t\t\t\tfieldName: ((suffixes[0] || [])[0] || \"tags\").toLowerCase(),\n\t\t\t\tdirection: ((suffixes[1] || [])[0] || \"with\").toLowerCase(),\n\t\t\t\tdepth: Number((suffixes[2] || [])[0]),\n\t\t\t};\n\n\t\tif((operator.operand === \"\") && (needsExclusion)) {\n\t\t\treturn [];\n\t\t}\n\n\t\tif(operator.operand !== \"\") {\n\t\t\tvar baseTitle = operator.operand,\n\t\t\t\tbaseTiddler = options.wiki.getTiddler(baseTitle),\n\t\t\t\tfoundTitles = collectTitlesRecursively(baseTiddler,baseTitle,filterOptions);\n\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(needsExclusion === (foundTitles.indexOf(title) === -1)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tresults = $tw.utils.pushTop(results,collectTitlesRecursively(tiddler,title,filterOptions));\n\t\t\t});\n\t\t}\n\n\t\treturn results;\n\t}\n})();\n",
"type": "application/javascript",
"module-type": "filteroperator"
}
}
}
{
"tiddlers": {
"$:/plugins/felixhayashi/hotzone/config.js": {
"title": "$:/plugins/felixhayashi/hotzone/config.js",
"text": "/*\\\n\ntitle: $:/plugins/felixhayashi/hotzone/config.js\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n(function(){\"use strict\";exports.config={classNames:{storyRiver:\"tc-story-river\",tiddlerFrame:\"tc-tiddler-frame\",tiddlerTitle:\"tc-title\"},references:{userConfig:\"$:/config/hotzone/focusOffset\",focussedTiddlerStore:\"$:/temp/focussedTiddler\"},checkbackTime:$tw.utils.getAnimationDuration()}})();",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/hotzone/hotzone.js": {
"title": "$:/plugins/felixhayashi/hotzone/hotzone.js",
"text": "/*\\\n\ntitle: $:/plugins/felixhayashi/hotzone/hotzone.js\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n(function(){\"use strict\";exports.name=\"hotzone\";exports.platforms=[\"browser\"];exports.after=[\"story\"];exports.synchronous=true;exports.startup=function(){var t=require(\"$:/plugins/felixhayashi/hotzone/config.js\").config;var e=null;var i=false;var r=document.getElementsByClassName(t.classNames.storyRiver)[0];var s=$tw.wiki.getTiddlerData(t.references.userConfig,{});var a=isNaN(parseInt(s.focusOffset))?150:parseInt(s.focusOffset);var n=function(e,i,r){if(!(e instanceof Element))return;if(!$tw.utils.hasClass(e,t.classNames.tiddlerFrame))return;var s=e.getElementsByClassName(t.classNames.tiddlerTitle)[0];if(s){var a=s.innerText||s.textContent;return a.trim()}};var o=function(t){if(!i){i=true;window.setTimeout(f,t||0)}};var l=function(e,i){$tw.wiki.addTiddler(new $tw.Tiddler({title:t.references.focussedTiddlerStore,text:e},$tw.wiki.getModificationFields()));if(i){var r=document.getElementsByClassName(\"hzone-focus\")[0];if(r){$tw.utils.removeClass(r,\"hzone-focus\")}$tw.utils.addClass(i,\"hzone-focus\")}};var f=function(){i=false;var s=$tw.wiki.getTiddler(\"$:/StoryList\");if(s&&s.fields.list.length){var o=null;var f=Number.MAX_VALUE;var d=r.children;var u=t.classNames.tiddlerFrame;for(var c=d.length;c--;){if($tw.utils.hasClass(d[c],u)){var v=d[c].getBoundingClientRect();var w=Math.min(Math.abs(a-v.top),Math.abs(a-v.bottom));if(w<f){o=d[c];f=w}}}var m=n(o);if(m!==e&&$tw.wiki.getTiddler(m)){e=m;l(e,o);return}}else if(e){e=\"\";l(e)}};var d=function(t){if(t[\"$:/HistoryList\"]){if(!$tw.wiki.tiddlerExists(\"$:/HistoryList\"))return;var e=$tw.wiki.getTiddler(\"$:/HistoryList\").fields[\"current-tiddler\"];var i=$tw.wiki.getTiddlerList(\"$:/StoryList\");var r=i.indexOf(e)>=0;if(!r)return;o($tw.utils.getAnimationDuration()+100)}else if(t[\"$:/StoryList\"]){o($tw.utils.getAnimationDuration()+100)}};var u=function(t){o(250)};$tw.wiki.addEventListener(\"change\",d);window.addEventListener(\"scroll\",u,false);u()}})();",
"type": "application/javascript",
"module-type": "startup"
},
"$:/plugins/felixhayashi/hotzone/Configuration": {
"title": "$:/plugins/felixhayashi/hotzone/Configuration",
"text": "Please see the [[GitHub page|https://github.com/felixhayashi/TW5-HotZone]] for more information on the options.\n\nSave and reload the wiki to activate changes.\n\n<table>\n <tr>\n <th align=\"left\">Focus offset:</th>\n <td><$edit-text tiddler=\"$:/config/hotzone/focusOffset\" tag=\"input\" default=\"71px\" /></td>\n </tr>\n</table>"
},
"$:/temp/focussedTiddler": {
"title": "$:/temp/focussedTiddler"
},
"$:/plugins/felixhayashi/hotzone/License": {
"title": "$:/plugins/felixhayashi/hotzone/License",
"text": "This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-HotZone/blob/master/LICENSE"
},
"$:/plugins/felixhayashi/hotzone/Readme": {
"title": "$:/plugins/felixhayashi/hotzone/Readme",
"text": "Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-HotZone]] for more information."
}
}
}
{
"tiddlers": {
"$:/plugins/felixhayashi/tiddlymap/layout": {
"text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \n\nbody .tc-page-container-wrapper.tc-modal-displayed{-webkit-filter:inherit;-moz-filter:inherit;filter:inherit}body .tc-modal-wrapper{z-index:1010}body .tc-modal-wrapper .tc-modal-header svg{vertical-align:sub}body .tc-modal-wrapper .tc-modal-header h3{line-height:10px}body .tc-modal-wrapper .tc-modal-body{min-height:250px;max-height:70vh;padding-top:0px;padding-bottom:0px;overflow:auto}body .tc-modal-wrapper .tc-modal-footer{padding:8px}body .tc-modal-wrapper .tc-modal-footer .tmap-dialog-button{font-weight:bold}body .tc-modal-wrapper .tc-modal-footer .tmap-hidden-close-button{display:none}table.tmap-table tr:nth-child(odd),.tc-modal-body table.tmap-config-table tr:nth-child(odd){background-color:#F0F0F0}table.tmap-table tr:nth-child(even),.tc-modal-body table.tmap-config-table tr:nth-child(even){background-color:#FFFFFF}.tmap-save-canvas-preview{text-align:center}.tmap-save-canvas-preview img{background-color:white;border:1px solid lightgray;max-width:100%;max-height:100px}.tmap-list-separator{display:block;background-color:#efefef;margin:10px 0 5px 0;cursor:default;border-bottom:1px dotted gray;font-weight:bold;font-size:0.8em}.tmap-unicode-icon{width:1em;display:inline-block;text-align:center;color:black}html .tmap-link{color:#5778D8}html .tmap-link:hover{color:white;background:#5778D8}html .tmap-small-list,html .tmap-smaller-list,html .tmap-very-small-list{overflow:auto;min-height:2em;max-height:9em;display:block}html .tmap-smaller-list{max-height:7em}html .tmap-very-small-list{max-height:5empx}html .tc-tiddler-controls button.tmap-active-button svg{fill:#888888}html #tmap-node-filter-dialog #tmap-filter-tips{font-size:0.8em}html #tmap-node-filter-dialog textarea{height:100px;max-height:300px;overflow:auto;width:100%;font-size:11px;font-family:\"Courier New\", Courier, monospace}@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}){.tc-sidebar-scrollable .tmap-desktop-editor .tmap-widget:not(.tmap-fullscreen){display:none}}@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}){.tc-sidebar-scrollable .tmap-mobile-editor{display:none}.tc-modal-wrapper{z-index:1010}.tc-modal-wrapper .tc-modal{boder:1px solid #999999;left:calc(50% - 400px);width:802px}.tc-modal-wrapper .tc-modal-body{left:calc(50% - 400px);width:800px}}@-o-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@keyframes flash fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@keyframes flash fadeout-keyframes{0%{opacity:1}100%{opacity:0}}.tmap-config-widget{background:#F0F0F0;padding:5px;margin:5px 0;box-sizing:border-box;display:block}.tmap-config-widget .vis-network{display:none}.tmap-config-widget .vis-configuration-wrapper{width:100%}.tmap-config-widget .vis-configuration-wrapper .vis-config-rangeinput{height:inherit;margin-left:4px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item{width:100%;height:inherit;background:none;padding-left:0px;left:0}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item.tmap-vis-config-item-active .vis-config-label::after{content:\"(inherited)\";position:absolute;display:inline-block;margin-left:10px;-o-animation:fadein-keyframes 1s;-moz-animation:fadein-keyframes 1s;-webkit-animation:fadein-keyframes 1s;animation:fadein-keyframes 1s;content:\"✔\";color:green;font-weight:bold;font-size:15px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item button.tmap-config-item-reset{vertical-align:top;margin-left:5px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-range{width:150px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-range::-moz-range-track{width:150px !important}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-label{width:150px}.tmap-config-widget::after{clear:both;content:\"\";display:block}.tmap-flash-message{border:1px solid lightgray;padding:5px;margin:6px 0;display:block;color:#333333}.tmap-flash-message.tmap-info,.tmap-flash-message.tmap-plain,.tmap-flash-message.tmap-neutral{background:#F0F0F0}.tmap-flash-message.tmap-info::before,.tmap-flash-message.tmap-plain::before,.tmap-flash-message.tmap-neutral::before{content:\"i\";display:inline-block;border-radius:50%;width:0.8em;border:2px solid;font-family:serif;text-align:center;height:0.8em;font-weight:bold;line-height:0.8em;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-valid,.tmap-flash-message.tmap-success{background:#D1EED4}.tmap-flash-message.tmap-valid::before,.tmap-flash-message.tmap-success::before{content:\"i\";display:inline-block;border-radius:50%;width:0.8em;border:2px solid;font-family:serif;text-align:center;height:0.8em;font-weight:bold;line-height:0.8em;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-warning{background:#FFF6D1}.tmap-flash-message.tmap-warning::before{content:\"\";display:inline-block;background:url(<<tmap \"datauri\" \"$:/core/images/warning\" \"\">>);display:inline-block;width:1em;height:1em;background-size:100% 100%;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-malformed,.tmap-flash-message.tmap-invalid,.tmap-flash-message.tmap-danger{background:#EED5D1}.tmap-flash-message.tmap-malformed::before,.tmap-flash-message.tmap-invalid::before,.tmap-flash-message.tmap-danger::before{content:\"\";display:inline-block;background:url(<<tmap \"datauri\" \"$:/core/images/warning\" \"\">>);display:inline-block;width:1em;height:1em;background-size:100% 100%;vertical-align:text-top;margin-right:2px}.tmap-widget{background:#FFFFFF;width:auto;position:relative;border:1px dotted lightgray;padding:2px;color:#666;display:block}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active){cursor:pointer}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active) .vis-navigation{display:none}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active):hover:before{color:gray;background:white;content:\"Click to use\";font-size:14px;font-weight:bold;right:calc(50% - 65px - 5px);position:absolute;text-align:center;top:calc(50% - 14px - 5px);width:130px;z-index:2000;padding:5px;pointer-events:none;background-color:rgba(255,255,255,0.3)}.tmap-widget .tmap-loading-bar{display:none;position:absolute;text-align:center;font-size:2em;padding:10px;top:50%;background:rgba(245,245,245,0.5);z-index:1;width:250px;margin:auto;left:0px;right:0px}.tmap-widget .tmap-vis-graph{height:calc(100% - 35px)}.tmap-widget.tmap-no-buttons .vis-navigation{display:none}.tmap-widget.tmap-advanced-editor .tmap-topbar{background:#d6d9d8}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-active-button{color:#488DCD}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-active-button svg{fill:#488DCD}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-unicode-button{font-size:1.5em;vertical-align:bottom}.tmap-widget .tmap-menu-bar{width:100%}.tmap-widget .tmap-topbar{background:#F5F5F5;border-bottom:1px solid lightgray;padding:3px 5px;height:35px;position:relative}.tmap-widget .tmap-topbar .tmap-view-label{width:100%;text-align:center;font-weight:bold;padding-top:3px}.tmap-widget .tmap-topbar .tmap-focus-button{position:absolute;right:10px;top:6px}.tmap-widget .tmap-topbar .tmap-focus-button input{width:140px}.tmap-widget .tmap-topbar .tmap-search-dropdown{position:relative}.tmap-widget .tmap-topbar .tmap-search-dropdown .tc-drop-down{position:absolute;z-index:999;right:0px}.tmap-widget .tmap-topbar [hidden]{display:none}.tmap-widget .tmap-topbar select{width:30%;max-width:200px;word-wrap:initial;padding:0px}.tmap-widget .tmap-topbar button{line-height:inherit;color:#666}.tmap-widget .tmap-topbar>*{display:inline-block}.tmap-widget .tmap-topbar .tmap-separator:after{color:#bdbdbd;margin:3px;content:\" | \"}.tmap-widget .tmap-topbar .tc-edit-add-tag .tc-add-tag-name input{width:70%}.tmap-widget .tmap-topbar .tc-sidebar-header{text-shadow:none}.tmap-widget .tmap-topbar .tc-edit-tags{border:none;padding:inherit;box-shadow:none}.tmap-widget.tmap-static-mode .tmap-topbar{height:initial}.tmap-widget.tmap-static-mode .tmap-vis-graph{text-align:center;cursor:not-allowed}.tmap-widget.tmap-static-mode .tmap-vis-graph:not(.tmap-graph-placeholder):hover::before{box-shadow:10px 10px 5px lightgray;color:gray;background:white;content:\"Static\";font-size:18px;font-weight:bold;left:50%;margin-left:-100px;position:absolute;text-align:center;top:50px;width:200px;z-index:2000;padding:5px;pointer-events:none}.tmap-widget.tmap-static-mode .tmap-vis-graph.tmap-graph-placeholder::before{content:\"No Preview\";display:block;text-align:center;padding:20px}.tmap-widget .tc-drop-down{min-width:170px;max-width:210px;padding:5px;margin:5px 0}.tmap-widget .tc-drop-down button,.tmap-widget .tc-drop-down a{padding:0 2px;text-decoration:none}.tmap-widget .tc-drop-down button:hover,.tmap-widget .tc-drop-down a:hover{color:#ffffff}.tmap-widget .tc-drop-down button svg,.tmap-widget .tc-drop-down a svg{vertical-align:middle}.tmap-widget .tc-block-dropdown{width:370px;min-width:370px;padding:5px;margin:15px 0 0 -370px}.tmap-widget .tc-block-dropdown a{display:inline;padding:0px}.tmap-widget.tmap-plain-design{border:none;padding:0px}.tmap-widget.tmap-plain-design .tmap-topbar{display:none}.tc-sidebar-scrollable .tmap-widget{position:absolute;min-height:350px}.tmap-widget div.vis-network .vis-edit-mode{height:26px}.tmap-widget div.vis-network .vis-manipulation{height:34px;border-top:1px solid #d6d9d8;background:rgba(245,245,245,0.7)}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled{right:15px}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled.tmap-fullscreen-button{bottom:90px;background-image:url(<<tmap \"datauri\" \"$:/plugins/felixhayashi/tiddlymap/media/fullscreen.png\" \"\">>)}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled.tmap-halfscreen-button{bottom:130px;background-image:url(<<tmap \"datauri\" \"$:/plugins/felixhayashi/tiddlymap/media/halfscreen.png\" \"\">>)}.tmap-widget div.vis-network .vis-navigation .vis-button:hover{box-shadow:0 0 3px 3px rgba(75,75,75,0.3)}.tmap-widget div.vis-network .vis-navigation .vis-button:hover:before{background:beige;display:block;color:black;padding:3px;position:relative;border:1px solid lightgray;width:80px;left:-100px;top:-50px;z-index:1000;text-align:center}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-up:before{left:30px;content:\"Scroll up\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-down:before{left:30px;content:\"Scroll down\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-right:before{left:30px;content:\"Scroll right\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-left:before{left:30px;content:\"Scroll left\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomOut:before{content:\"Zoom out\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomIn:before{content:\"Zoom in\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomExtends:before{content:\"Fit whole graph\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.tmap-fullscreen-button:before{content:\"Toggle Fullscreen\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.tmap-halfscreen-button:before{content:\"Toggle Halfscreen\"}.tc-dropzone>.tc-story-river .tmap-widget .vis-navigation .tmap-halfscreen-button{display:none}.tc-dropzone>.tc-story-river .tmap-widget:not(.tmap-fullscreen) .vis-navigation .vis-button{display:none}.tc-dropzone>.tc-story-river .tmap-widget:hover .vis-navigation .vis-button.tmap-fullscreen-button{display:block}.tc-dropzone>.tc-story-river .tmap-widget:hover .vis-navigation .vis-button.vis-zoomExtends{display:block}body.tmap-has-fullscreen-widget{overflow:hidden}body.tmap-has-fullscreen-widget .tmap-widget.tmap-fullscreen{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important}body.tmap-has-fullscreen-widget .tc-dropzone>*.tmap-has-fullscreen-widget{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important}body.tmap-has-fullscreen-widget .tc-dropzone>*:not(.tmap-has-fullscreen-widget){display:none}body.tmap-has-halfscreen-widget .tmap-widget.tmap-halfscreen{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important;position:absolute !important;border-left:1px solid lightgray !important}.tc-modal-footer .tmap-hidden-close-button{display:none}.tmap-modal-content{position:relative;padding:1em 0;padding-top:0}.tmap-modal-content table tr td{vertical-align:top}.tmap-modal-content :not(pre)>code{padding:1px;font-size:0.9em;position:relative;top:-1px}.tmap-modal-content :not(pre)>code{color:#666}.tmap-modal-content .tc-tab-set .tc-tab-content{margin-top:0.5em}.tmap-modal-content .tc-image-button{font-size:14px}.tmap-modal-content fieldset{margin:0px}.tmap-modal-content fieldset legend{font-weight:bold}.tc-modal-body .tmap-modal-editor>p{margin:0px}.tc-modal-body .tmap-modal-editor .tmap-template-select select{width:50%}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame{margin:auto;width:auto}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame .tc-tiddler-controls{display:none}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame .tc-tiddler-title{display:none}.tc-modal-body table{margin:6px 0;border:none;width:100%}.tc-modal-body table td,.tc-modal-body table th{border:1px solid lightgray}.tc-modal-body table.tmap-key-value-table th{width:30%;background-color:#F0F0F0}.tc-modal-body table.tmap-config-table.tmap-large-input tr td:last-child{width:20%}.tc-modal-body table.tmap-config-table.tmap-small-input tr td:last-child{width:60%}.tc-modal-body table.tmap-config-table tr td{border:none;vertical-align:top;padding:5px}.tc-modal-body table.tmap-config-table tr td:first-child{width:15%}.tc-modal-body table.tmap-config-table tr td:last-child{width:40%}.tc-modal-body table.tmap-config-table tr td input:not([type=radio]),.tc-modal-body table.tmap-config-table tr td textarea,.tc-modal-body table.tmap-config-table tr td select{width:100%;word-wrap:normal}.tc-modal-body table.tmap-config-table tr td textarea{height:100%}.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch input,.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch textarea,.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch select{width:auto}.tc-modal-body table.tmap-config-table tr td div.tmap-button-wrapper{text-align:center}.tc-modal-body table.tmap-config-table tr td .tmap-note{margin-top:0.5em}.tc-modal-body table.tmap-config-table tr td .tmap-description{font-style:italic}#tmap-element-type-manager>div:first-child{height:50vh;float:left;width:21%;background:linear-gradient(90deg, #f5f5f5 0%, #fff 50%)}#tmap-element-type-manager>div:first-child .tmap-searchbar{padding:1em 0 0 0}#tmap-element-type-manager>div:first-child .tmap-searchbar input{width:calc(100% - 36px)}#tmap-element-type-manager>div:first-child .tmap-searchbar button{width:30px;float:right}#tmap-element-type-manager>div:first-child ul{height:calc(100% - 65px);overflow:auto;margin-top:1em;padding:0}#tmap-element-type-manager>div:first-child ul.no-bullets li{list-style:none}#tmap-element-type-manager>div:first-child ul li{white-space:nowrap}#tmap-element-type-manager>div:first-child ul li .tmap-ranking{width:30px;display:inline-block}#tmap-element-type-manager>div:last-child{height:100%;width:calc(79% - 15px);float:right}#tmap-element-type-manager>div:last-child .tc-tab-set .tc-tab-content{overflow:auto;height:50vh}.tmap-manage-node-types .tmap-edge-type-specific{display:none !important}.tmap-manage-edge-types .tmap-node-type-specific{display:none !important}.tmap-modal-fullscreen-editor .tc-tab-content p{margin:1em 0}.tmap-has-pending-template{background-color:#C1EDC4}#tmap-search-table td{border:none;padding-left:0px}#tmap-search-table td:first-child{width:30px}#tmap-search-table b{display:inline-block;width:40px;text-align:right}#tmap-search-table ul{padding-left:20px;margin:1em 0 0 0}#tmap-search-table ul li{list-style:inherit}#tmap-search-table ul button{text-align:left}button.tmap-go-back{margin-bottom:1em;font-weight:bold}.tmap-badges>span,.tmap-badge{background:gray;font-size:11px;color:white;padding:3px 4px;display:inline-block;font-weight:bold;border-radius:2px;line-height:1em;cursor:help}.tmap-badges>span.tmap-red-flag,.tmap-badge.tmap-red-flag{background:red}.tmap-popup{display:none;position:absolute;opacity:0;transition:opacity 0.3s ease}.tmap-popup.tmap-popup-active{opacity:1}.tmap-tooltip{box-shadow:3px 3px 10px rgba(0,0,0,0.2);min-width:100px;min-height:50px;max-width:<<tmap option config.sys.popups.width>>;max-height:<<tmap option config.sys.popups.height>>;padding:5px;resize:both;overflow:auto;cursor:auto;font-family:verdana;font-size:14px;background-color:#f5f4ed;border:1px solid #808074;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.tmap-tooltip[style*=\"height\"]{max-height:none !important}.tmap-tooltip[style*=\"width\"]{max-width:none !important}.tmap-quick-connect{font-size:0.7em}.tmap-quick-connect p{padding-left:0;padding-right:0}.tmap-quick-connect .tc-drop-down{padding:5px;width:250px;white-space:normal;line-height:1em;position:absolute;z-index:1000;right:50px;background:linear-gradient(45deg, #f5f5f5 0%, #fff 50%, #f5f5f5 100%)}.tmap-quick-connect .tc-drop-down:first-child{padding-top:0;margin-top:0}.tmap-quick-connect .tc-drop-down .title{margin:1.5em 0 0.5em 0;font-weight:bold;color:gray}.tmap-quick-connect .tc-drop-down select{width:80px;word-wrap:initial}.tmap-quick-connect .tc-drop-down table{width:100%;border:none;margin:0.5em 0}.tmap-quick-connect .tc-drop-down table td,.tmap-quick-connect .tc-drop-down table th{padding:3px 3px 3px 0;vertical-align:middle;font-weight:normal;border:none}.tmap-quick-connect .tc-drop-down table td table,.tmap-quick-connect .tc-drop-down table th table{margin:0}.tmap-quick-connect .tc-drop-down .tmap-quick-connect-search-bar,.tmap-quick-connect .tc-drop-down .tmap-quick-connect-existing-bar{background:#F1F1F1;margin-top:0;border-bottom:1px solid #D5D5D5;border-top:1px solid #D5D5D5}.tmap-quick-connect .tc-drop-down table.tmap-quick-connect-search-bar td,.tmap-quick-connect .tc-drop-down th{padding:5px}.tmap-quick-connect .tc-drop-down .tmap-quick-connect-existing-bar{padding:5px}.tmap-quick-connect .tc-drop-down .tmap-connection-table th,.tmap-quick-connect .tc-drop-down .tmap-connection-table td{text-align:left;padding:1px 1px 1px 0}.tmap-quick-connect .tc-drop-down .tmap-connection-table button{width:20px;padding:0px}.tmap-quick-connect .tc-drop-down .tmap-scroll-table{height:120px;overflow:auto;display:block}.tmap-quick-connect .tc-drop-down hr{border:0;height:0;border-top:1px solid rgba(0,0,0,0.1);border-bottom:1px solid rgba(255,255,255,0.3)}.tmap-quick-connect .tc-drop-down a{display:inline;padding:0;color:#5778d8;background:transparent}.tmap-quick-connect .tc-drop-down a:hover{background:transparent;color:#5778d8;text-decoration:underline}.tmap-quick-connect .tc-drop-down button{display:inline-block;padding:0px 3px;text-align:center;color:#333333;line-height:1.0}.tmap-quick-connect .tc-drop-down button:hover{color:#ffffff}.tmap-quick-connect .tc-drop-down button svg{fill:inherit}.tmap-quick-connect .tc-drop-down button svg:hover{fill:#ffffff}\n",
"title": "$:/plugins/felixhayashi/tiddlymap/layout",
"type": "text/vnd.tiddlywiki",
"tags": [
"$:/tags/Stylesheet"
]
},
"$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(r,t,i){if(t)e(r.prototype,t);if(i)e(r,i);return r}}();/* @preserve TW-Guard */ /* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */\n/* @preserve TW-Guard */var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}var AbstractEdgeTypeSubscriber=function(){function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=t.priority,n=i===undefined?0:i,a=t.skipOthers,s=a===undefined?true:a,u=t.ignore,l=u===undefined?false:u;_classCallCheck(this,e);this.allEdgeTypes=r;this.priority=n;this.skipOthers=s;this.ignore=l}_createClass(e,[{key:\"setTracker\",value:function e(r){this.tracker=r}},{key:\"loadEdges\",value:function e(r,t,i){throw new _exception.MissingOverrideError(this,\"loadEdges\")}},{key:\"canHandle\",value:function e(r){throw new _exception.MissingOverrideError(this,\"canHandle\")}},{key:\"insertEdge\",value:function e(r,t,i){}},{key:\"deleteEdge\",value:function e(r,t,i){}}]);return e}();exports.default=AbstractEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/AbstractEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(r,t,i){if(t)e(r.prototype,t);if(i)e(r,i);return r}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _AbstractRefEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\");var _AbstractRefEdgeTypeSubscriber2=_interopRequireDefault(_AbstractRefEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,r){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return r&&(typeof r===\"object\"||typeof r===\"function\")?r:e}function _inherits(e,r){if(typeof r!==\"function\"&&r!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof r)}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(r)Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var AbstractMagicEdgeTypeSubscriber=function(e){_inherits(r,e);function r(e,t){_classCallCheck(this,r);var i=_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));i.edgeTypesByFieldName=_utils2.default.makeHashMap();for(var a in e){var n=e[a];if(i.canHandle(n)){i.edgeTypesByFieldName[n.name]=n}}return i}_createClass(r,[{key:\"getReferencesFromField\",value:function e(r,t,i){throw new _exception.MissingOverrideError(this,\"getReferencesFromField\")}},{key:\"getReferences\",value:function e(r,t,i){var a=_utils2.default.makeHashMap();var n=r.fields;for(var s in n){var u=this.edgeTypesByFieldName[s];if(!u||i&&!i[u.id])continue;var o=this.getReferencesFromField(r,s,t);if(o&&o.length){a[u.id]=o}}return a}}]);return r}(_AbstractRefEdgeTypeSubscriber2.default);exports.default=AbstractMagicEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/AbstractMagicEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _AbstractEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\");var _AbstractEdgeTypeSubscriber2=_interopRequireDefault(_AbstractEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var AbstractRefEdgeTypeSubscriber=function(e){_inherits(t,e);function t(){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}_createClass(t,[{key:\"loadEdges\",value:function e(t,r,i){var a=this.getReferences(t,r,i);if(!a||!_utils2.default.hasElements(a))return;var s=t.fields[\"tmap.id\"];var n=$tm.tracker.getIdsByTiddlers();var u=this.allEdgeTypes;var l=_utils2.default.getTiddlerRef(t);var o=_utils2.default.makeHashMap();for(var f in a){var c=a[f];if(!c){continue}var p=u[f];for(var d=c.length;d--;){var _=c[d];if(!_||!$tw.wiki.tiddlerExists(_)||_utils2.default.isSystemOrDraft(_)||r&&!r[_]){continue}var b=p.id+$tw.utils.hashString(l+_);o[b]=new _Edge2.default(s,n[_],p.id,b)}}return o}},{key:\"getReferences\",value:function e(t,r,i){throw new _exception.MissingOverrideError(this,\"getReferences\")}}]);return t}(_AbstractEdgeTypeSubscriber2.default);exports.default=AbstractRefEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/AbstractRefEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var s=r[t];s.enumerable=s.enumerable||false;s.configurable=true;if(\"value\"in s)s.writable=true;Object.defineProperty(e,s.key,s)}}return function(r,t,s){if(t)e(r.prototype,t);if(s)e(r,s);return r}}();function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeTypeSubscriberRegistry=function(){function e(r,t,s){_classCallCheck(this,e);this.subscriberClasses=r;this.tracker=s;this.updateIndex(t)}_createClass(e,[{key:\"getAllForType\",value:function e(r){var t=this.allSubscribers;var s=[];for(var i=0,a=t.length;i<a;i++){if(t[i].canHandle(r)){s.push(t[i]);if(t[i].skipOthers){break}}}return s}},{key:\"getAll\",value:function e(){return this.allSubscribers}},{key:\"updateIndex\",value:function e(r){var t=[];var s=this.subscriberClasses;for(var i in s){var a=new s[i](r);a.setTracker(this.tracker);if(a.ignore===true){continue}t.push(a)}t.sort(function(e,r){return r.priority-e.priority});this.allSubscribers=t}}]);return e}();exports.default=EdgeTypeSubscriberRegistry;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/EdgeTypeSubscriberRegistry.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/tmap": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/tmap",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.TmapEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _AbstractEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\");var _AbstractEdgeTypeSubscriber2=_interopRequireDefault(_AbstractEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/tmap\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var TmapEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:0},r)))}_createClass(t,[{key:\"loadEdges\",value:function e(t,r,i){var a=_utils2.default.parseFieldData(t,\"tmap.edges\");if(!a){return}var n=this.tracker.getTiddlersByIds();var u=t.fields[\"tmap.id\"];var s=_utils2.default.makeHashMap();for(var l in a){var o=a[l];var d=n[o.to];if(d&&(!r||r[d])&&(!i||i[o.type])){s[l]=new _Edge2.default(u,o.to,o.type,l)}}return s}},{key:\"insertEdge\",value:function e(t,r,i){var a=_utils2.default.parseFieldData(t,\"tmap.edges\",{});r.id=r.id||_utils2.default.genUUID();a[r.id]={to:r.to,type:i.id};_utils2.default.writeFieldData(t,\"tmap.edges\",a,$tm.config.sys.jsonIndentation);return r}},{key:\"deleteEdge\",value:function e(t,r,i){if(!r.id)return;var a=_utils2.default.parseFieldData(t,\"tmap.edges\",{});delete a[r.id];_utils2.default.writeFieldData(t,\"tmap.edges\",a,$tm.config.sys.jsonIndentation);return r}},{key:\"canHandle\",value:function e(t){return true}}]);return t}(_AbstractEdgeTypeSubscriber2.default);exports.TmapEdgeTypeSubscriber=TmapEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/TmapEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "tmap.edgetypehandler"
},
"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.FieldEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _AbstractMagicEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\");var _AbstractMagicEdgeTypeSubscriber2=_interopRequireDefault(_AbstractMagicEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var FieldEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.namespace===\"tw-field\"}},{key:\"getReferencesFromField\",value:function e(t,r,i){return[t.fields[r]]}},{key:\"insertEdge\",value:function e(t,r,i){var n=this.tracker.getTiddlerById(r.to);if(n==null){return}_utils2.default.setField(t,i.name,n);return r}},{key:\"deleteEdge\",value:function e(t,r,i){var n=this.tracker.getTiddlerById(r.to);if(n==null){return}_utils2.default.setField(t,i.name,undefined);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.FieldEdgeTypeSubscriber=FieldEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/magicEdgeTypeSubscriber/FieldEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "tmap.edgetypehandler"
},
"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.FilterEdgeTypeSubstriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _AbstractMagicEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\");var _AbstractMagicEdgeTypeSubscriber2=_interopRequireDefault(_AbstractMagicEdgeTypeSubscriber);var _widget=require(\"$:/core/modules/widgets/widget.js\");var _widget2=_interopRequireDefault(_widget);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var FilterEdgeTypeSubstriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.namespace===\"tw-filter\"}},{key:\"getReferencesFromField\",value:function e(t,r,i){var n=t.fields[r];var a=new _widget2.default.widget({});a.setVariable(\"currentTiddler\",t.fields.title);var u=new _widget2.default.widget({},{parentWidget:a});var s=_utils2.default.getMatches(n,i,u);return s}},{key:\"insertEdge\",value:function e(t,r,i){if(!r.to){return}var n=i.name;var a=t.fields[n]||\"\";var u=this.tracker.getTiddlerById(r.to);var s=$tw.utils.stringifyList([u]);if(a.length>0){s=\" \"+s}_utils2.default.setField(t,n,a+s);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.FilterEdgeTypeSubstriber=FilterEdgeTypeSubstriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/magicEdgeTypeSubscriber/FilterEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "tmap.edgetypehandler"
},
"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.ListEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _AbstractMagicEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\");var _AbstractMagicEdgeTypeSubscriber2=_interopRequireDefault(_AbstractMagicEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var ListEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.namespace===\"tw-list\"}},{key:\"getReferencesFromField\",value:function e(t,r,i){return $tw.utils.parseStringArray(t.fields[r])}},{key:\"insertEdge\",value:function e(t,r,i){if(!r.to){return}var n=i.name;var s=$tw.utils.parseStringArray(t.fields[n]);s=(s||[]).slice();var a=this.tracker.getTiddlerById(r.to);s.push(a);_utils2.default.setField(t,n,$tw.utils.stringifyList(s));return r}},{key:\"deleteEdge\",value:function e(t,r,i){var n=$tw.utils.parseStringArray(t.fields[i.name]);n=(n||[]).slice();var s=this.tracker.getTiddlerById(r.to);var a=n.indexOf(s);if(a>-1){n.splice(a,1)}var u=void 0;if(n.length>0){u=$tw.utils.stringifyList(n)}_utils2.default.setField(t,i.name,u);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.ListEdgeTypeSubscriber=ListEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/magicEdgeTypeSubscriber/ListEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "tmap.edgetypehandler"
},
"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.LinkEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var _AbstractRefEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\");var _AbstractRefEdgeTypeSubscriber2=_interopRequireDefault(_AbstractRefEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var LinkEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:20},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.id===\"tw-body:link\"}},{key:\"getReferences\",value:function e(t,r,n){if(n&&!n[\"tw-body:link\"]){return}var i=$tw.wiki.getTiddlerLinks(t.fields.title);if(!i||!i.length){return}return{\"tw-body:link\":i}}}]);return t}(_AbstractRefEdgeTypeSubscriber2.default);exports.LinkEdgeTypeSubscriber=LinkEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/refEdgeTypeSubscriber/LinkEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "tmap.edgetypehandler"
},
"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.TranscludeEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t){if(Object.prototype.hasOwnProperty.call(t,n)){e[n]=t[n]}}}return e};var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(r,t,n){if(t)e(r.prototype,t);if(n)e(r,n);return r}}();var _AbstractRefEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\");var _AbstractRefEdgeTypeSubscriber2=_interopRequireDefault(_AbstractRefEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,r){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return r&&(typeof r===\"object\"||typeof r===\"function\")?r:e}function _inherits(e,r){if(typeof r!==\"function\"&&r!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof r)}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(r)Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var TranscludeEdgeTypeSubscriber=function(e){_inherits(r,e);function r(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,r);return _possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,_extends({priority:20,ignore:typeof $tw.wiki.getTiddlerTranscludes!==\"function\"},t)))}_createClass(r,[{key:\"canHandle\",value:function e(r){return r.id===\"tw-body:transclude\"}},{key:\"getReferences\",value:function e(r,t,n){if(n&&!n[\"tw-body:transclude\"]){return}var i=$tw.wiki.getTiddlerTranscludes(r.fields.title);if(!i||!i.length){return}return{\"tw-body:transclude\":i}}}]);return r}(_AbstractRefEdgeTypeSubscriber2.default);exports.TranscludeEdgeTypeSubscriber=TranscludeEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/refEdgeTypeSubscriber/TranscludeEdgeTypeSubscriber.js.map\n",
"type": "application/javascript",
"module-type": "tmap.edgetypehandler"
},
"$:/plugins/felixhayashi/tiddlymap/js/Edge": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/Edge",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Edge\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var Edge=function e(t,i,s,l){_classCallCheck(this,e);this.from=t;this.to=i;this.type=s;this.id=l||_utils2.default.genUUID()};exports.default=Edge;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/Edge.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/EdgeType": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/EdgeType",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var _MapElementType2=require(\"$:/plugins/felixhayashi/tiddlymap/js/MapElementType\");var _MapElementType3=_interopRequireDefault(_MapElementType2);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/EdgeType\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeType=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);var n=t.getIdParts(e),o=n.marker,a=n.namespace,i=n.name;e=t.getId(o,a,i);var l=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,env.path.edgeTypes,t.fieldMeta,r));l.id=e;l.marker=o;l.name=i;l.namespace=a;var u=(l.style||{}).arrows;if(u){l.invertedArrow=isArrowEnabled(u,\"from\");l.toArrow=isArrowEnabled(u,\"to\")||isArrowEnabled(u,\"middle\");l.biArrow=l.invertedArrow===l.toArrow;if(l.biArrow){l.toArrow=true;l.invertedArrow=true}}else{l.toArrow=true}Object.freeze(l);return l}_createClass(t,[{key:\"getLabel\",value:function e(){return this.label||this.name}}],[{key:\"getIdParts\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"\";t=_utils2.default.getWithoutPrefix(t,env.path.edgeTypes+\"/\");var r=t.match(edgeTypeRegex)||[];return{marker:r[1]||\"\",namespace:r[3]&&r[2]||\"\",name:r[3]||r[2]||\"\"}}},{key:\"getId\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"\";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"\";var n=arguments[2];return n?t+(r&&r+\":\")+n:\"tmap:unknown\"}}]);return t}(_MapElementType3.default);EdgeType.getInstance=function(e){return e instanceof EdgeType?e:new EdgeType(e)};EdgeType.fieldMeta=_extends({},_MapElementType3.default.fieldMeta,{label:{},\"show-label\":{}});var isArrowEnabled=function e(t,r){var n=t[r];if(n==null&&r===\"to\"){return true}return(typeof n===\"undefined\"?\"undefined\":_typeof(n))===\"object\"?n.enabled!==false:n===true};var edgeTypeRegex=new RegExp(\"^(_?)([^:_][^:]*):?([^:]*)\");exports.default=EdgeType;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/EdgeType.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/MapElementType": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/MapElementType",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(t){return typeof t}:function(t){return t&&typeof Symbol===\"function\"&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t};var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var l=e[i];l.enumerable=l.enumerable||false;l.configurable=true;if(\"value\"in l)l.writable=true;Object.defineProperty(t,l.key,l)}}return function(e,i,l){if(i)t(e.prototype,i);if(l)t(e,l);return e}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/MapElementType\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _classCallCheck(t,e){if(!(t instanceof e)){throw new TypeError(\"Cannot call a class as a function\")}}var MapElementType=function(){function t(e,i,l,s){_classCallCheck(this,t);this.id=e;this.root=i;this._fieldMeta=l;this.fullPath=this.root+\"/\"+this.id;this.isShipped=$tw.wiki.getSubTiddler($tm.path.pluginRoot,this.fullPath);this._load(s||this.fullPath)}_createClass(t,[{key:\"_load\",value:function t(e){if(!e){return}if(typeof e===\"string\"){var i=_utils2.default.startsWith(e,this.root);var l=i?e:this.root+\"/\"+e;this._loadFromTiddler(l)}else if(e instanceof $tw.Tiddler){this._loadFromTiddler(e)}else if((typeof e===\"undefined\"?\"undefined\":_typeof(e))===\"object\"){for(var s in this._fieldMeta){this[s]=e[s]}}}},{key:\"_loadFromTiddler\",value:function t(e){var i=_utils2.default.getTiddler(e);if(!i){return}var l=$tw.wiki.getSubTiddler($tm.path.pluginRoot,this.fullPath)||{};var s=$tw.utils.extend({},l.fields,i.fields);for(var r in this._fieldMeta){var a=this._fieldMeta[r].parse;var f=s[r];this[r]=a?a.call(this,f):f}}},{key:\"exists\",value:function t(){return _utils2.default.tiddlerExists(this.fullPath)}},{key:\"setStyle\",value:function t(e,i){if(typeof e===\"string\"){e=_utils2.default.parseJSON(e)}if((typeof e===\"undefined\"?\"undefined\":_typeof(e))===\"object\"){if(i){_utils2.default.merge(this.style,e)}else{this.style=e}}}},{key:\"save\",value:function t(e,i){if(!e){e=this.fullPath}else if(typeof e!==\"string\"){return}var l={title:e,text:\"\"};if(!_utils2.default.startsWith(e,this.root)){l.id=this.id}for(var s in this._fieldMeta){var r=this._fieldMeta[s].stringify;l[s]=r?r.call(this,this[s]):this[s]}if(!this.exists()){Object.assign(l,$tw.wiki.getCreationFields())}if(i!==true){Object.assign(l,$tw.wiki.getModificationFields())}$tw.wiki.addTiddler(new $tw.Tiddler(l))}}]);return t}();MapElementType.fieldMeta={description:{},style:{parse:_utils2.default.parseJSON,stringify:JSON.stringify},modified:{},created:{}};exports.default=MapElementType;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/MapElementType.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/NodeType": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/NodeType",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var _MapElementType2=require(\"$:/plugins/felixhayashi/tiddlymap/js/MapElementType\");var _MapElementType3=_interopRequireDefault(_MapElementType2);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/NodeType\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var NodeType=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);e=typeof e===\"string\"?_utils2.default.getWithoutPrefix(e,$tm.path.nodeTypes+\"/\"):\"tmap:unknown\";var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,$tm.path.nodeTypes,t.fieldMeta,r));Object.freeze(n);return n}_createClass(t,[{key:\"getInheritors\",value:function e(t){return this.scope?_utils2.default.getMatches(this.scope,t||$tw.wiki.allTitles()):[]}}]);return t}(_MapElementType3.default);NodeType.getInstance=function(e){return e instanceof NodeType?e:new NodeType(e)};NodeType.fieldMeta=_extends({},_MapElementType3.default.fieldMeta,{view:{},priority:{parse:function e(t){return isNaN(t)?1:parseInt(t)},stringify:function e(t){return _utils2.default.isInteger(t)?t.toString():\"1\"}},scope:{stringify:_utils2.default.getWithoutNewLines},\"fa-icon\":{},\"tw-icon\":{}});exports.default=NodeType;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/NodeType.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var ViewAbstraction=function(){function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,e);if(t instanceof e){return t}this._registerPaths(t);if(i.isCreate){if(!this.configTRef){var r=_utils2.default.getRandomLabel({plural:true});this.configTRef=$tw.wiki.generateNewTitle($tm.path.views+\"/\"+r)}this._createView(i)}else if(!e.exists(this.getRoot())){throw new ResourceNotFoundException(\"ViewAbstraction\",t)}}_createClass(e,[{key:\"isLocked\",value:function e(){return $tw.wiki.isShadowTiddler(this.configTRef)}},{key:\"update\",value:function e(t){var i=t.changedTiddlers;if(t[env.path.edgeTypes]||_utils2.default.hasKeyWithPrefix(i,this.getRoot())){this._clearCaches();return true}return false}},{key:\"addPlaceholder\",value:function e(t){_utils2.default.cp(_utils2.default.getTiddlerRef(t),this.snapshotTRef,true)}},{key:\"exists\",value:function t(){return e.exists(this)}},{key:\"getRoot\",value:function e(){return this.configTRef}},{key:\"getCreationDate\",value:function e(t){var i=$tw.wiki.getTiddler(this.configTRef).fields[\"created\"];if(t){return i instanceof Date?$tw.utils.formatDateString(i,\"DDth MMM YYYY\"):\"\"}return i}},{key:\"getLabel\",value:function e(){return _utils2.default.getBasename(this.configTRef)}},{key:\"destroy\",value:function e(){_utils2.default.deleteTiddlers(_utils2.default.getMatches(\"[prefix[\"+this.configTRef+\"]]\"))}},{key:\"getOccurrences\",value:function e(){var t=\"[regexp:text[<\\\\$(tiddlymap|tmap).*?view=.\"+this.getLabel()+\"..*?>]]\";return _utils2.default.getMatches(t)}},{key:\"rename\",value:function t(i){if(typeof i!==\"string\"){return false}if(_utils2.default.inArray(\"/\",i)){$tm.notify('A view name must not contain any \"/\"');return false}var r=this.getLabel();var a=env.path.views+\"/\"+i;var n=this.getRoot();_utils2.default.mv(n,a,true);if($tm.config.sys.defaultView===r){_utils2.default.setEntry($tm.ref.sysUserConf,\"defaultView\",i)}if($tm.config.sys.liveTab.fallbackView===r){_utils2.default.setEntry($tm.ref.sysUserConf,\"liveTab.fallbackView\",i)}$tw.wiki.each(function(t,a){if(t.fields[\"tmap.open-view\"]===r){_utils2.default.setField(a,\"tmap.open-view\",i);return}if(e.exists(a)){var n=new e(a);var l=n.getNodeData();for(var s in l){if(l[s][\"open-view\"]===r){l[s][\"open-view\"]=i}}n.saveNodeData(l)}});this._clearCaches();this._registerPaths(i)}},{key:\"isEnabled\",value:function e(t){return _utils2.default.isTrue(this.getConfig(t),false)}},{key:\"getConfig\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.configTRef,\"tmap-config\",function(){var e=_utils2.default.getTiddler(i.configTRef).fields;return _utils2.default.getPropertiesByPrefix(e,\"config.\")});var a=t&&_utils2.default.startsWith(t,\"config.\")?t:\"config.\"+t;return t?r[a]:r}},{key:\"setConfig\",value:function e(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++){i[r]=arguments[r]}if(i[0]==null){return}if(i.length===1&&_typeof(i[0])===\"object\"){for(var a in i[0]){this.setConfig(a,i[0][a])}}else if(i.length===2&&typeof i[0]===\"string\"){var n=_utils2.default.getWithoutPrefix(i[0],\"config.\");var l=i[1];if(l===undefined){return}var s=this.getConfig();if(l===null){$tm.logger(\"debug\",\"Removing config\",n);delete s[\"config.\"+n]}else{if(n===\"edge_type_namespace\"){var o=l.match(/[^:]+/);l=o?o[0]:\"\"}}$tm.logger(\"log\",\"Setting config\",n,l);s[\"config.\"+n]=l;$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(this.configTRef),s))}else{throw new(Function.prototype.bind.apply(_exception.InvalidArgumentException,[null].concat(i)))}}},{key:\"isLiveView\",value:function e(){return this.getLabel()===$tm.misc.liveViewLabel}},{key:\"_isNodeIncludedById\",value:function t(i){var r=$tw.utils.escapeRegExp(e._getNodeIdFilterPart(i));return this.getNodeFilter(\"raw\").match(r)}},{key:\"setNodeFilter\",value:function e(t,i){t=t.replace(/[\\n\\r]/g,\" \");if(this.getNodeFilter(\"raw\")===t){return}_utils2.default.setField(this.nodeFilterTRef,\"filter\",t);$tm.logger(\"debug\",\"Node filter set to\",t)}},{key:\"setEdgeTypeFilter\",value:function e(t){t=t.replace(/[\\n\\r]/g,\" \");if(this.getEdgeTypeFilter(\"raw\")===t){return}_utils2.default.setField(this.edgeTypeFilterTRef,\"filter\",t);$tm.logger(\"debug\",\"Edge filter set to\",t)}},{key:\"addNode\",value:function t(i){if(!this._isNodeIncludedById(i)){if(_utils2.default.isTrue($tm.config.sys.alwaysAddNodeIdToViewFilter)||!_utils2.default.isMatch(i.tRef,this.getNodeFilter(\"compiled\"))){var r=e._getNodeIdFilterPart(i);var a=\" \";this.setNodeFilter(this.getNodeFilter(\"raw\")+a+r)}this.saveNodePosition(i)}}},{key:\"removeNode\",value:function t(i){if(!this._isNodeIncludedById(i)){return false}var r=e._getNodeIdFilterPart(i);var a=this.getNodeFilter(\"raw\").replace(r,\"\");this.setNodeFilter(a);if(this.getNodeData(i)){this.saveNodeData(i,null)}return true}},{key:\"getEdgeTypeFilter\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.edgeTypeFilterTRef,\"tmap-edgeTypeFilter\",function(){var e=$tm.indeces.allETy;var t=Object.keys(e);var r=$tw.wiki.getTiddler(i.edgeTypeFilterTRef);var a={};a.raw=r&&r.fields.filter||\"\";a.pretty=_utils2.default.getPrettyFilter(a.raw);a.matches=_utils2.default.getEdgeTypeMatches(a.raw,e);a.whitelist=_utils2.default.getLookupTable(a.matches);return a});return t?r[t]:r}},{key:\"isEdgeTypeVisible\",value:function e(t){return _utils2.default.isEdgeTypeMatch(_EdgeType2.default.getInstance(t).id,this.getEdgeTypeFilter(\"raw\"))}},{key:\"getNodeFilter\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.nodeFilterTRef,\"tmap-nodeFilter\",function(){var e=_utils2.default.makeHashMap();var t=$tw.wiki.getTiddler(i.nodeFilterTRef);e.raw=t&&t.fields.filter||\"\";e.pretty=_utils2.default.getPrettyFilter(e.raw);e.compiled=$tw.wiki.compileFilter(e.raw);return e});return t?r[t]:r}},{key:\"getNodeData\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.mapTRef,\"tmap-map\",function(){return _utils2.default.parseFieldData(i.mapTRef,\"text\",{})});return t?r[t]:r}},{key:\"equals\",value:function t(i){return i===this||e.exists(i)&&new e(i).getRoot()===this.getRoot()}},{key:\"saveNodeData\",value:function e(){var t=this.getNodeData();for(var i=arguments.length,r=Array(i),a=0;a<i;a++){r[a]=arguments[a]}if(r.length===2){if(_typeof(r[1])===\"object\"){if(r[1]===null){delete t[r[0]]}else{t[r[0]]=Object.assign(t[r[0]]||{},r[1])}}}else if(r.length===1&&_typeof(r[0])===\"object\"){$tm.logger(\"log\",\"Storing data in\",this.mapTRef);Object.assign(t,r[0])}else{throw new(Function.prototype.bind.apply(_exception.InvalidArgumentException,[null].concat(r)))}_utils2.default.writeFieldData(this.mapTRef,\"text\",t,$tm.config.sys.jsonIndentation)}},{key:\"saveNodePosition\",value:function e(t){if(t.id&&t.x!=null&&t.y!=null){this.saveNodeData(t.id,{x:t.x,y:t.y})}}},{key:\"saveNodePositions\",value:function e(t){var i=this.getNodeData();for(var r in t){i[r]=i[r]||{};i[r].x=t[r].x;i[r].y=t[r].y}this.saveNodeData(i)}},{key:\"setCentralTopic\",value:function e(t){this.setConfig(\"central-topic\",t)}},{key:\"saveNodeStyle\",value:function e(t,i){var r=this.getNodeData(t)||{};var a={x:r.x,y:r.y};for(var n in r){delete r[n]}this.saveNodeData(t,_extends({},i,a))}},{key:\"_registerPaths\",value:function t(i,r){this.configTRef=e._getRootPath(i);this.mapTRef=this.configTRef+\"/map\";this.nodeFilterTRef=this.configTRef+\"/filter/nodes\";this.edgeTypeFilterTRef=this.configTRef+\"/filter/edges\";this.snapshotTRef=this.getRoot()+\"/snapshot\"}},{key:\"_clearCaches\",value:function e(){_utils2.default.getMatches(\"[prefix[\"+this.getRoot()+\"]]\").forEach(function(e){$tw.wiki.clearCache(e)})}},{key:\"_createView\",value:function t(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=i.isForce,a=i.protoView,n=i.isHidden;if(e.exists(this)){if(!r){return}this.destroy()}if(e.exists(a)){_utils2.default.cp(new e(a).getRoot(),this.configTRef,true)}var l={title:this.configTRef,id:_utils2.default.genUUID()};if(!n){l[$tm.field.viewMarker]=true}$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(this.configTRef),l));this.setEdgeTypeFilter(env.filter.defaultEdgeTypeFilter)}}],[{key:\"_getNodeIdFilterPart\",value:function e(t){var i=(typeof t===\"undefined\"?\"undefined\":_typeof(t))===\"object\"?t.id:t;return\"[field:tmap.id[\"+i+\"]]\"}},{key:\"_getRootPath\",value:function t(i){if(i instanceof e){return i.configTRef}if(i instanceof $tw.Tiddler){i=i.fields.title}if(typeof i===\"string\"){var r=_utils2.default.getWithoutPrefix(i,$tm.path.views+\"/\");if(r&&!_utils2.default.hasSubString(r,\"/\")){return $tm.path.views+\"/\"+r}}}},{key:\"exists\",value:function t(i){if(!i){return false}if(i instanceof e){i=i.configTRef}else{i=e._getRootPath(i)}return _utils2.default.tiddlerExists(i)}}]);return e}();exports.default=ViewAbstraction;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/ViewAbstraction.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/Popup": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/Popup",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Popup(e,t){t=t||{};this._parentDomNode=e;this._domNode=document.createElement(\"div\");this._domNode.style.display=\"none\";this._domNode.className=\"tmap-popup\";this._parentDomNode.appendChild(this._domNode);$tw.utils.addClass(this._domNode,t.className);this._isEnabled=true;this._isPreventShowOrHide=false;this._isHideOnClick=!!t.hideOnClick;this._timeoutShow=null;this._timeoutHide=null;this._isDisplayNoneAfterAnimation=true;var i=parseInt(t.leavingDelay);this._hideDelayLeavingPopup=_utils2.default.isInteger(i)?i:200;i=parseInt(t.hideDelay);this._hideDelay=_utils2.default.isInteger(i)?i:200;i=parseInt(t.showDelay);this._showDelay=_utils2.default.isInteger(i)?i:200;_utils2.default.bindTo(this,[\"_show\",\"_hide\",\"_handleEnter\",\"_handleLeave\",\"_handleAnimationEnd\",\"_handleClick\"]);this._listeners={mouseenter:this._handleEnter,mouseleave:this._handleLeave,click:[this._handleClick,true]};var s=this._handleAnimationEnd;this._listeners[$tw.utils.convertEventName(\"animationEnd\")]=s;this._listeners[$tw.utils.convertEventName(\"transitionEnd\")]=s;_utils2.default.setDomListeners(\"add\",this._domNode,this._listeners,false)}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Popup\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */Popup.prototype._handleEnter=function(e){this._isPreventShowOrHide=true};Popup.prototype._handleLeave=function(e){this._isPreventShowOrHide=false;this.hide(this._hideDelayLeavingPopup)};Popup.prototype._handleClick=function(e){if(this._isHideOnClick){this._hide(true)}};Popup.prototype._handleAnimationEnd=function(){if(this._isDisplayNoneAfterAnimation){this._domNode.style.display=\"none\"}};Popup.prototype._hide=function(e){if(!e&&this._isPreventShowOrHide)return;this._isDisplayNoneAfterAnimation=true;this._isPreventShowOrHide=false;$tw.utils.removeClass(this._domNode,\"tmap-popup-active\")};Popup.prototype._show=function(e,t){if(this._isPreventShowOrHide||$tm.mouse.ctrlKey||!this._isEnabled){return}this._domNode.style.display=\"none\";$tw.utils.removeClass(this._domNode,\"tmap-popup-active\");this._domNode.removeAttribute(\"style\");_utils2.default.removeDOMChildNodes(this._domNode);var i=this._domNode.appendChild(document.createElement(\"div\"));if(typeof t===\"function\"){t(e,i)}else{i.innerHTML=t}if(!i.childNodes.length)return;var s=this._parentDomNode.getBoundingClientRect();var o=$tm.mouse.clientX;var n=$tm.mouse.clientY;this._domNode.style.display=\"block\";var d=this._domNode.getBoundingClientRect();var l=s.right-(o+d.width);var h=o-d.width-s.left;var a=l>h;var u=s.bottom-(n+d.height);var r=n-d.height-s.top;var p=u>r;var _=a?-15:d.width+15;var m=p?-15:d.height+15;this._domNode.style.left=o-s.left-_+\"px\";this._domNode.style.top=n-s.top-m+\"px\";this._isDisplayNoneAfterAnimation=false;$tw.utils.addClass(this._domNode,\"tmap-popup-active\")};Popup.prototype.show=function(e,t,i){this._clearTimeouts();i=_utils2.default.isInteger(i)?i:this._showDelay;this._timeoutShow=setTimeout(this._show,i,e,t)};Popup.prototype.hide=function(e,t){this._clearTimeouts();e=_utils2.default.isInteger(e)?e:this._hideDelay;if(t||e===0){this._hide(t)}else{this._timeoutHide=setTimeout(this._hide,e,t)}};Popup.prototype.setEnabled=function(e){this._isEnabled=e};Popup.prototype.isShown=function(){return this._domNode.style.display===\"block\"};Popup.prototype._clearTimeouts=function(){clearTimeout(this._timeoutShow);clearTimeout(this._timeoutHide);this._timeoutShow=undefined;this._timeoutHide=undefined};exports.default=Popup;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/Popup.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}return function(e,i,n){if(i)t(e.prototype,i);if(n)t(e,n);return e}}();function _classCallCheck(t,e){if(!(t instanceof e)){throw new TypeError(\"Cannot call a class as a function\")}}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle\ntype: application/SelectionRectangle\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var SelectionRectangle=function(){function t(e,i){_classCallCheck(this,t);this.x1=e;this.x2=e;this.y1=i;this.y2=i}_createClass(t,[{key:\"span\",value:function t(e,i){this.x2=e;this.y2=i}},{key:\"getWidth\",value:function t(){return this.x2-this.x1}},{key:\"getHeight\",value:function t(){return this.y2-this.y1}},{key:\"getRect\",value:function t(){return[this.x1,this.y1,this.getWidth(),this.getHeight()]}},{key:\"isPointWithin\",value:function t(e){var i=e.x,n=e.y;var a=this.x1,r=this.x2,s=this.y1,u=this.y2;var h=Math.min(a,r);var c=Math.max(a,r);var l=Math.min(s,u);var o=Math.max(s,u);return h<i&&i<c&&l<n&&n<o}}]);return t}();exports.default=SelectionRectangle;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/SelectionRectangle.js.map\n",
"type": "application/SelectionRectangle",
"module-type": "library"
},
"/home/felo/projects/Tiddlywiki/TiddlyWiki5/plugins/felixhayashi/tiddlymap/js/lib/TypeDefs.js": {
"title": "/home/felo/projects/Tiddlywiki/TiddlyWiki5/plugins/felixhayashi/tiddlymap/js/lib/TypeDefs.js",
"text": "\"use strict\";\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/TypeDefs.js.map\n"
},
"$:/plugins/felixhayashi/tiddlymap/js/config/vis": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/config/vis",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/config/vis\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var visConfig={locale:\"en_EN\",clickToUse:false,autoResize:false,height:\"100%\",width:\"100%\",configure:{enabled:false},interaction:{dragNodes:true,dragView:true,hideEdgesOnDrag:false,hideNodesOnDrag:false,hover:true,navigationButtons:true,multiselect:true,selectable:true,selectConnectedEdges:true,tooltipDelay:600,zoomView:false,keyboard:{enabled:false,speed:{x:10,y:10,zoom:.02},bindToWindow:false}},manipulation:{initiallyActive:true},nodes:{shape:\"box\",shadow:{enabled:false},color:{border:\"#2B7CE9\",background:\"#97C2FC\"}},edges:{smooth:{enabled:true},color:{color:\"#848484\",inherit:false},arrows:{to:{enabled:true}}},physics:{forceAtlas2Based:{gravitationalConstant:-300,springLength:0,springConstant:.2,centralGravity:.015,damping:.4},solver:\"forceAtlas2Based\",stabilization:{enabled:true,iterations:1e3,updateInterval:10,onlyDynamicEdges:false,fit:false}}};exports.default=visConfig;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/VisConfig.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/lib/environment": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/lib/environment",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _extends=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var l in a){if(Object.prototype.hasOwnProperty.call(a,l)){e[l]=a[l]}}}return e};\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/environment\ntype: application/javascript\n module-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var path=exports.path={pluginRoot:\"$:/plugins/felixhayashi/tiddlymap\",edgeTypes:\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes\",nodeTypes:\"$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes\",views:\"$:/plugins/felixhayashi/tiddlymap/graph/views\",options:\"$:/plugins/felixhayashi/tiddlymap/config\",dialogs:\"$:/plugins/felixhayashi/tiddlymap/dialog\",footers:\"$:/plugins/felixhayashi/tiddlymap/dialogFooter\",tempRoot:\"$:/temp/tmap\",tempStates:\"$:/temp/tmap/state\",tempPopups:\"$:/temp/tmap/state/popup\",localHolders:\"$:/temp/tmap/holders\"};var ref=exports.ref={defaultViewHolder:\"$:/plugins/felixhayashi/tiddlymap/misc/defaultViewHolder\",graphBar:\"$:/plugins/felixhayashi/tiddlymap/misc/advancedEditorBar\",sysUserConf:\"$:/plugins/felixhayashi/tiddlymap/config/sys/user\",visUserConf:\"$:/plugins/felixhayashi/tiddlymap/config/vis/user\",welcomeFlag:\"$:/plugins/felixhayashi/tiddlymap/flag/welcome\",focusButton:\"$:/plugins/felixhayashi/tiddlymap/misc/focusButton\",sysMeta:\"$:/plugins/felixhayashi/tiddlymap/misc/meta\",liveTab:\"$:/plugins/felixhayashi/tiddlymap/hook/liveTab\",mainEditor:\"$:/plugins/felixhayashi/tiddlymap/hook/editor\",sidebarBreakpoint:\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\"};var misc=exports.misc={unknownEdgeLabel:\"tmap:undefined\",liveViewLabel:\"Live View\",defaultViewLabel:\"Default\",mainEditorId:\"main_editor\",arrows:{in:\"⇦\",out:\"➡\",bi:\"⇄\"}};var config=exports.config={sys:{field:{nodeLabel:\"caption\",nodeIcon:\"icon\",nodeInfo:\"description\",viewMarker:\"isview\"},liveTab:{fallbackView:misc.liveViewLabel},suppressedDialogs:{},edgeClickBehaviour:\"manager\",debug:\"false\",notifications:\"true\",popups:{enabled:\"true\",delay:\"600\",width:\"240px\",height:\"140px\"},jsonIndentation:\"1\",alwaysAddNodeIdToViewFilter:\"true\",editNodeOnCreate:\"false\",singleClickMode:\"false\",nodeFilterNeighbours:\"false\",editorMenuBar:{showNeighScopeButton:\"true\",showRasterMenuButton:\"true\",showScreenshotButton:\"true\"}}};var filter=exports.filter={nodeTypes:\"[prefix[\"+path.nodeTypes+\"]]\",edgeTypes:\"[prefix[\"+path.edgeTypes+\"]]\",views:\"[\"+config.sys.field.viewMarker+\"[true]]\",defaultEdgeTypeFilter:\"-[prefix[_]] -[[tw-body:link]] -[[tw-list:tags]] -[[tw-list:list]]\"};var allSelector=\"[all[tiddlers+shadows]!has[draft.of]]\";var s={allEdgeTypes:allSelector+\" +\"+filter.edgeTypes,allNodeTypes:allSelector+\" +\"+filter.nodeTypes,allViews:allSelector+\" +\"+filter.views,allPotentialNodes:\"[all[tiddlers]!is[system]!has[draft.of]]\"};var selector=exports.selector=_extends({},s,{allEdgeTypesById:s.allEdgeTypes+\" +[removeprefix[\"+path.edgeTypes+\"/]]\",allNodeTypesById:s.allNodeTypes+\" +[removeprefix[\"+path.nodeTypes+\"/]]\",allViewsByLabel:s.allViews+\" +[removeprefix[\"+path.views+\"/]]\"});\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/environment.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/exception": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/exception",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function r(r,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||false;o.configurable=true;if(\"value\"in o)o.writable=true;Object.defineProperty(r,o.key,o)}}return function(t,e,o){if(e)r(t.prototype,e);if(o)r(t,o);return t}}();function _classCallCheck(r,t){if(!(r instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(r,t){if(!r){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:r}function _inherits(r,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/exception\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var TiddlyMapError=function(r){_inherits(t,r);function t(r,e){_classCallCheck(this,t);var o=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));o.payload=e;return o}_createClass(t,[{key:\"getPayload\",value:function r(){return this.payload}}]);return t}(Error);var EnvironmentError=exports.EnvironmentError=function(r){_inherits(t,r);function t(r){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"Critical parts of the underlying system changed: \"+r))}return t}(TiddlyMapError);var DependencyError=exports.DependencyError=function(r){_inherits(t,r);function t(r){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"TiddlyMap cannot run without: : \"+r))}return t}(TiddlyMapError);var MissingOverrideError=exports.MissingOverrideError=function(r){_inherits(t,r);function t(r,e){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.constructor.name+' does not override method \"'+e+'\"'))}return t}(TiddlyMapError);var ResourceNotFoundException=exports.ResourceNotFoundException=function(r){_inherits(t,r);function t(r){_classCallCheck(this,t);for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++){o[n-1]=arguments[n]}return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"Cannot resolve \"+r,o))}return t}(TiddlyMapError);var InvalidArgumentException=exports.InvalidArgumentException=function(r){_inherits(t,r);function t(){_classCallCheck(this,t);for(var r=arguments.length,e=Array(r),o=0;o<r;o++){e[o]=arguments[o]}return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"Invalid or missing argument provided\",e))}return t}(TiddlyMapError);\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/exceptions.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/URL": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/URL",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/URL\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */\n/**\n * <<<\n * Lightweight URL manipulation with JavaScript. This library is\n * independent of any other libraries and has pretty simple interface\n * and lightweight code-base. Some ideas of query string parsing\n * had been taken from Jan Wolter.\"\n *\n * @see http://unixpapa.com/js/querystring.html\n * @license MIT\n * @author Mykhailo Stadnyk <mikhus@gmail.com>\n * <<< https://github.com/Mikhus/jsurl\n *\n * @class\n * @param {string} url\n */function Url(t){this.paths=function(t){var e=\"\",r=0,o;if(t&&t.length&&t+\"\"!==t){if(this.isAbsolute()){e=\"/\"}for(o=t.length;r<o;r++){t[r]=encode(t[r])}this.path=e+t.join(\"/\")}t=(this.path.charAt(0)===\"/\"?this.path.slice(1):this.path).split(\"/\");for(r=0,o=t.length;r<o;r++){t[r]=decode(t[r])}return t};this.encode=encode;this.decode=decode;this.isAbsolute=function(){return this.protocol||this.path.charAt(0)===\"/\"};this.toString=function(){return(this.protocol&&this.protocol+\"://\")+(this.user&&encode(this.user)+(this.pass&&\":\"+encode(this.pass))+\"@\")+(this.host&&this.host)+(this.port&&\":\"+this.port)+(this.path&&this.path)+(this.query.toString()&&\"?\"+this.query)+(this.hash&&\"#\"+encode(this.hash))};parse(this,t)}var map={protocol:\"protocol\",host:\"hostname\",port:\"port\",path:\"pathname\",query:\"search\",hash:\"hash\"},defaultPorts={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},parse=function t(e,r){var o=document,s=o.createElement(\"a\"),r=r||o.location.href,i=r.match(/\\/\\/(.*?)(?::(.*?))?@/)||[],n;s.href=r;for(n in map){e[n]=s[map[n]]||\"\"}e.protocol=e.protocol.replace(/:$/,\"\");e.query=e.query.replace(/^\\?/,\"\");e.hash=decode(e.hash.replace(/^#/,\"\"));e.user=decode(i[1]||\"\");e.pass=decode(i[2]||\"\");e.port=defaultPorts[e.protocol]==e.port||e.port==0?\"\":e.port;if(!e.protocol&&!/^([a-z]+:)?\\/\\//.test(r)){var h=new Url(o.location.href.match(/(.*\\/)/)[0]),a=h.path.split(\"/\"),p=e.path.split(\"/\"),c=[\"protocol\",\"user\",\"pass\",\"host\",\"port\"],f=c.length;a.pop();for(n=0;n<f;n++){e[c[n]]=h[c[n]]}while(p[0]==\"..\"){a.pop();p.shift()}e.path=(r.charAt(0)!=\"/\"?a.join(\"/\"):\"\")+\"/\"+p.join(\"/\")}else{e.path=e.path.replace(/^\\/?/,\"/\")}e.paths((e.path.charAt(0)==\"/\"?e.path.slice(1):e.path).split(\"/\"));parseQs(e)},encode=function t(e){return encodeURIComponent(e).replace(/'/g,\"%27\")},decode=function t(e){e=e.replace(/\\+/g,\" \");e=e.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi,function(t,e,r,o){var s=parseInt(e,16)-224,i=parseInt(r,16)-128;if(s==0&&i<32){return t}var n=parseInt(o,16)-128,h=(s<<12)+(i<<6)+n;if(h>65535){return t}return String.fromCharCode(h)});e=e.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(t,e,r){var o=parseInt(e,16)-192;if(o<2){return t}var s=parseInt(r,16)-128;return String.fromCharCode((o<<6)+s)});e=e.replace(/%([0-7][0-9a-f])/gi,function(t,e){return String.fromCharCode(parseInt(e,16))});return e},parseQs=function t(e){var r=e.query;e.query=new function(t){var e=/([^=&]+)(=([^&]*))?/g,r;while(r=e.exec(t)){var o=decodeURIComponent(r[1].replace(/\\+/g,\" \")),s=r[3]?decode(r[3]):\"\";if(this[o]!=null){if(!(this[o]instanceof Array)){this[o]=[this[o]]}this[o].push(s)}else{this[o]=s}}this.clear=function(){for(var t in this){if(!(this[t]instanceof Function)){delete this[t]}}};this.count=function(){var t=0,e;for(e in this){if(!(this[e]instanceof Function)){t++}}return t};this.isEmpty=function(){return this.count()===0};this.toString=function(){var t=\"\",e=encode,r,o;for(r in this){if(this[r]instanceof Function){continue}if(this[r]instanceof Array){var s=this[r].length;if(s){for(o=0;o<s;o++){t+=t?\"&\":\"\";t+=e(r)+\"=\"+e(this[r][o])}}else{t+=(t?\"&\":\"\")+e(r)+\"=\"}}else{t+=t?\"&\":\"\";t+=e(r)+\"=\"+e(this[r])}}return t}}(r)};exports.default=Url;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/url.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.bindTo=exports.getNearestRasterPosition=exports.mod=exports.removeDOMChildNodes=exports.setDomListeners=exports.merge=exports.getRandomLabel=exports.getFirstElementByClassName=exports.getImgFromWeb=exports.pickRandom=exports.hasKeyWithPrefix=exports.getWithoutPrefix=exports.getPropertiesByPrefix=exports.removeArrayElement=exports.isTrue=exports.replaceAll=exports.isInteger=exports.findAndRemoveClassNames=exports.getAncestorWithClass=exports.makeHashMap=exports.getWithoutNewLines=exports.joinAndWrap=exports.parseJSON=exports.hasSubString=exports.inArray=exports.getRandomInt=exports.isEqual=exports.identity=exports.base64=exports.startsWith=exports.getBasename=exports.escapeRegex=exports.hasElements=exports.ucFirst=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var ucFirst=exports.ucFirst=function e(t){return t&&t[0].toUpperCase()+t.slice(1)};var hasElements=exports.hasElements=function e(t){return Object.keys(t).length>0};var escapeRegex=exports.escapeRegex=function e(t){return t.replace(/[-$^?.+*[\\]\\\\(){}|]/g,\"\\\\$&\")};var getBasename=exports.getBasename=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"/\";return t.substring(t.lastIndexOf(r)+1)};var startsWith=exports.startsWith=function e(t,r){return t.substring(0,r.length)===r};var base64=exports.base64=typeof window===\"undefined\"?function(e){return new Buffer(e).toString(\"base64\")}:window.btoa.bind(window);var identity=exports.identity=function e(t){return(typeof t===\"undefined\"?\"undefined\":_typeof(t))===\"object\"&&t!==null?JSON.stringify(Object.keys(t).sort().map(function(e){return[e,t[e]]})):null};var isEqual=exports.isEqual=function e(t,r){return identity(t)===identity(r)};var getRandomInt=exports.getRandomInt=function e(t,r){return Math.floor(Math.random()*(r-t)+t)};var inArray=exports.inArray=function e(t,r){return r.indexOf(t)!==-1};var hasSubString=exports.hasSubString=function e(t,r){return t.indexOf(r)!==-1};var parseJSON=exports.parseJSON=function e(t,r){try{return JSON.parse(t)}catch(e){return r}};var joinAndWrap=exports.joinAndWrap=function e(t,r,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\" \";return r+t.join(n+o+r)+n};var getWithoutNewLines=exports.getWithoutNewLines=function e(t){return typeof t===\"string\"?t.replace(/[\\n\\r]/g,\" \"):t};var makeHashMap=exports.makeHashMap=function e(t){var r=Object.create(null);Object.defineProperty(r,\"hasOwnProperty\",{enumerable:false,configurable:false,writable:false,value:Object.prototype.hasOwnProperty.bind(r)});if(t){for(var n in t){if(t.hasOwnProperty(n)){r[n]=t[n]}}}return r};var getAncestorWithClass=exports.getAncestorWithClass=function e(t,r){if((typeof t===\"undefined\"?\"undefined\":_typeof(t))!==\"object\"||typeof r!==\"string\"){return}while(t.parentNode&&t.parentNode!==document){t=t.parentNode;if(t.classList.contains(r)){return t}}};var findAndRemoveClassNames=exports.findAndRemoveClassNames=function e(t){for(var r=t.length;r--;){var n=document.getElementsByClassName(t[r]);for(var o=n.length;o--;){n[o].classList.remove(t[r])}}};var isInteger=exports.isInteger=Number.isInteger||function(e){return typeof e===\"number\"&&isFinite(e)&&Math.floor(e)===e};var replaceAll=exports.replaceAll=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"\";var n=arguments[2];for(var o=n.length;o--;){var s=n[o];var i=r;if(Array.isArray(s)){i=s[1];s=s[0]}t=t.replace(s,i)}return t};var isTrue=exports.isTrue=function e(t,r){if(t==null){return!!r}else if(typeof t===\"string\"){var n=parseInt(t);return isNaN(n)?t===\"true\":n!==0}else if(typeof t===\"boolean\"){return t}else if(typeof t===\"number\"){return n!==0}return false};var removeArrayElement=exports.removeArrayElement=function e(t,r){var n=t.indexOf(r);if(n>-1){return t.splice(n,1)[0]}};var getPropertiesByPrefix=exports.getPropertiesByPrefix=function e(t,r,n){var o=makeHashMap();for(var s in t){if(startsWith(s,r)){o[n?s.substr(r.length):s]=t[s]}}return o};var getWithoutPrefix=exports.getWithoutPrefix=function e(t,r){return startsWith(t,r)?t.substr(r.length):t};var hasKeyWithPrefix=exports.hasKeyWithPrefix=function e(t,r){for(var n in t){if(startsWith(n,r)){return true}}return false};var pickRandom=exports.pickRandom=function e(t){return t[getRandomInt(0,t.length-1)]};var getImgFromWeb=exports.getImgFromWeb=function e(t,r){if(!t||typeof r!==\"function\")return;var n=new XMLHttpRequest;n.open(\"GET\",t,true);n.responseType=\"blob\";n.onerror=function(e){console.log(e)};n.onload=function(e){if(this.readyState===4&&(this.status===200||this.status===0&&this.response.size>0)){var t=this.response;r(window.URL.createObjectURL(t))}};try{n.send()}catch(e){console.log(e)}};var getFirstElementByClassName=exports.getFirstElementByClassName=function e(t,r,n){var o=(r||document).getElementsByClassName(t)[0];if(!o&&(typeof n===\"boolean\"?n:true)){var s='Missing element with class \"'+t+'\" inside '+r;throw new _exception.EnvironmentError(s)}return o};var getRandomLabel=exports.getRandomLabel=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=pickRandom([\"exciting\",\"notable\",\"epic\",\"new\",\"fancy\",\"great\",\"cool\",\"fresh\",\"funky\",\"clever\"]);var n=(t.object||pickRandom([\"concept\",\"idea\",\"thought\",\"topic\",\"subject\"]))+(t.plural?\"s\":\"\");return\"My \"+r+\" \"+n};var _merge=function e(t,r){if((typeof t===\"undefined\"?\"undefined\":_typeof(t))!==\"object\"){t={}}for(var n in r){if(r.hasOwnProperty(n)){if(r[n]!=null){t[n]=_typeof(r[n])===\"object\"?e(t[n],r[n]):r[n]}}}return t};var merge=exports.merge=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++){n[o-1]=arguments[o]}for(var s=0,i=n.length;s<i;s++){var a=n[s];if(a!=null&&(typeof a===\"undefined\"?\"undefined\":_typeof(a))===\"object\"){t=_merge(t,a)}}return t};var setDomListeners=exports.setDomListeners=function e(t,r,n,o){o=typeof o===\"boolean\"?o:false;t=t+\"EventListener\";for(var s in n){var i=n[s];if(typeof i===\"function\"){r[t](s,i,o)}else{r[t](s,i[0],typeof i[1]===\"boolean\"?i[1]:o)}}};var removeDOMChildNodes=exports.removeDOMChildNodes=function e(t){for(var r=t.childNodes.length;r--;){t.removeChild(t.childNodes[r])}};var mod=exports.mod=function e(t,r){var n=t%r;return Math.floor(n>=0?n:n+r)};var getNearestRasterPosition=exports.getNearestRasterPosition=function e(t,r){var n=t.x,o=t.y;var s=r/2;var i=mod(n,r);var a=mod(o,r);return{x:i<s?n-i:n-i+r,y:a<s?o-a:o-a+r}};var bindTo=exports.bindTo=function e(t,r){for(var n=r.length;n--;){var o=t[r[n]];t[r[n]]=o.bind(t)}};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/basic.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var generateDraftTitle=exports.generateDraftTitle=function e(n){var r=0,t=void 0;do{t=\"Draft \"+(r?r+1+\" \":\"\")+\"of '\"+n+\"'\";r++}while($tw.wiki.tiddlerExists(t));return t};var makeDraftTiddler=exports.makeDraftTiddler=function e(n){var r=$tw.wiki.findDraft(n);if(r){return $tw.wiki.getTiddler(r)}var t=$tw.wiki.getTiddler(n);r=generateDraftTitle(n);var l=new $tw.Tiddler(t,{title:r,\"draft.title\":n,\"draft.of\":n},$tw.wiki.getModificationFields());$tw.wiki.addTiddler(l);return l};var getFullScreenApis=exports.getFullScreenApis=function e(){var n=document,r=n.body,t={_requestFullscreen:r.webkitRequestFullscreen!==undefined?\"webkitRequestFullscreen\":r.mozRequestFullScreen!==undefined?\"mozRequestFullScreen\":r.msRequestFullscreen!==undefined?\"msRequestFullscreen\":r.requestFullscreen!==undefined?\"requestFullscreen\":\"\",_exitFullscreen:n.webkitExitFullscreen!==undefined?\"webkitExitFullscreen\":n.mozCancelFullScreen!==undefined?\"mozCancelFullScreen\":n.msExitFullscreen!==undefined?\"msExitFullscreen\":n.exitFullscreen!==undefined?\"exitFullscreen\":\"\",_fullscreenElement:n.webkitFullscreenElement!==undefined?\"webkitFullscreenElement\":n.mozFullScreenElement!==undefined?\"mozFullScreenElement\":n.msFullscreenElement!==undefined?\"msFullscreenElement\":n.fullscreenElement!==undefined?\"fullscreenElement\":\"\",_fullscreenChange:n.webkitFullscreenElement!==undefined?\"webkitfullscreenchange\":n.mozFullScreenElement!==undefined?\"mozfullscreenchange\":n.msFullscreenElement!==undefined?\"MSFullscreenChange\":n.fullscreenElement!==undefined?\"fullscreenchange\":\"\"};if(!t._requestFullscreen||!t._exitFullscreen||!t._fullscreenElement){return null}else{return t}};var flatten=exports.flatten=function e(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=r.delimiter||\".\";var l=r.prefix||\"\";var i={};function u(e,n){Object.keys(e).forEach(function(f){var s=e[f];var c=r.safe&&Array.isArray(s);var a=Object.prototype.toString.call(s);var d=a===\"[object Object]\"||a===\"[object Array]\";var o=n?n+t+f:l+f;if(!c&&d){return u(s,o)}i[o]=s})}u(n);return i};var unflatten=exports.unflatten=function e(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=r.delimiter||\".\";var l={};if(Object.prototype.toString.call(n)!==\"[object Object]\"){return n}function i(e){var n=Number(e);return isNaN(n)||e.indexOf(\".\")!==-1?e:n}Object.keys(n).forEach(function(u){var f=u.split(t);var s=i(f.shift());var c=i(f[0]);var a=l;while(c!==undefined){if(a[s]===undefined){a[s]=typeof c===\"number\"&&!r.object?[]:{}}a=a[s];if(f.length>0){s=i(f.shift());c=i(f[0])}}a[s]=e(n[u],r)});return l};var genUUID=exports.genUUID=function(){var e=\"0123456789abcdefghijklmnopqrstuvwxyz\".split(\"\");return function(){var n=e,r=new Array(36);var t=0,l;for(var i=0;i<36;i++){if(i==8||i==13||i==18||i==23){r[i]=\"-\"}else if(i==14){r[i]=\"4\"}else{if(t<=2)t=33554432+Math.random()*16777216|0;l=t&15;t=t>>4;r[i]=n[i==19?l&3|8:l]}}return r.join(\"\")}}();\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/thirdParty.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.getSnapshotTitle=exports.getArrayValuesAsHashmapKeys=exports.getLookupTable=exports.keyOfItemWithProperty=exports.keysOfItemsWithProperty=exports.getDublicates=exports.getId=exports.refreshDataSet=exports.drawRaster=exports.getPrettyFilter=exports.groupByProperty=exports.isEdgeTypeMatch=exports.getEdgeTypeMatches=exports.getDataUri=exports.convert=exports.getValues=exports.getIterableCollection=exports.getLabel=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _basic=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\");var basicUtils=_interopRequireWildcard(_basic);var _wiki=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki\");var wikiUtils=_interopRequireWildcard(_wiki);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var getLabel=exports.getLabel=function e(t,r){var i=wikiUtils.getTiddler(t);return(i&&i.fields[r]?i.fields[r]:i.fields.title).replace(\"\\\\n\",\"\\n\")};var getIterableCollection=exports.getIterableCollection=function e(t){return t instanceof _vis2.default.DataSet?t.get():t};var getValues=exports.getValues=function e(t){if(Array.isArray(t)){return t}else if(t instanceof _vis2.default.DataSet){return t.get({returnType:\"Array\"})}var r=[];var i=Object.keys(t);for(var a=i.length;a--;){r.push(t[i[a]])}return r};var convert=exports.convert=function e(t,r){if((typeof t===\"undefined\"?\"undefined\":_typeof(t))!==\"object\"){throw new _exception.InvalidArgumentException(t,r)}if(r===\"object\"){r=\"hashmap\"}var i={array:function e(t){return getValues(t)},hashmap:function e(t){return t instanceof _vis2.default.DataSet?t.get({returnType:\"Object\"}):t},dataset:function e(t){return t instanceof _vis2.default.DataSet?t:!Array.isArray(t)?getValues(t):new _vis2.default.DataSet(t)}};return i[r](t)};var getDataUri=exports.getDataUri=function e(t,r,i){var a=wikiUtils.getTiddler(t);r=r||a.fields.type||\"image/svg+xml\";var s=a.fields.text;var o=$tw.config.contentTypeInfo[r].encoding;if(r===\"image/svg+xml\"){s=s.replace(/\\r?\\n|\\r/g,\" \");if(!basicUtils.hasSubString(\"xmlns\",s)){s=s.replace(/<svg/,'<svg xmlns=\"http://www.w3.org/2000/svg\"')}}if(i&&o!==\"base64\"){o=\"base64\";s=basicUtils.base64(s)}return\"data:\"+r+\";\"+o+\",\"+s};var eTyFiltAutoPrefix=\"[all[]] \";var getEdgeTypeMatches=exports.getEdgeTypeMatches=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"\";var r=arguments[1];if(!r){r=wikiUtils.getTiddlersByPrefix($tm.path.edgeTypes+\"/\",{iterator:\"eachTiddlerPlusShadows\",removePrefix:true})}if(r!=null&&!Array.isArray(r)){r=Object.keys(r)}return wikiUtils.getMatches(eTyFiltAutoPrefix+t,r)};var isEdgeTypeMatch=exports.isEdgeTypeMatch=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"\";return wikiUtils.isMatch(t,eTyFiltAutoPrefix+r)};var groupByProperty=exports.groupByProperty=function e(t,r){t=getIterableCollection(t);var i=basicUtils.makeHashMap();var a=Object.keys(t);for(var s in a){var o=t[a[s]];var n=o[r];if(n==null){throw\"Cannot group by property \"+r}else{if(!Array.isArray(i[n])){i[n]=[]}i[n].push(o)}}return i};var getPrettyFilter=exports.getPrettyFilter=function e(t){t=t.trim().replace(\"][\",\"] [\");var r=/[+-]?\\[.+?[\\]\\}\\>]\\]/g;var i=t.match(r);t=t.replace(r,\" [] \").trim();var a=t.split(/\\s+/);var s=0;var o=[];for(var n=0,l=a.length;n<l;n++){o[n]=a[n]===\"[]\"?i[s++]:a[n]}return o.join(\"\\n\")};var drawRaster=exports.drawRaster=function e(t,r,i,a){var s=arguments.length>4&&arguments[4]!==undefined?arguments[4]:\"#D9D9D9\";var o=basicUtils.getNearestRasterPosition(i,a),n=o.x,l=o.y;var u=t.canvas.width/r;var p=t.canvas.height/r;var f=a*2;var v=Math.ceil(u/a/2)*a+f;var c=Math.ceil(p/a/2)*a+f;var y=n-v;var g=n+v;var d=l-c;var h=l+c;t.beginPath();for(var b=y;b<g;b+=a){t.moveTo(b,d);t.lineTo(b,h)}for(var x=d;x<=h;x+=a){t.moveTo(y,x);t.lineTo(g,x)}t.strokeStyle=s;t.fillStyle=s;t.stroke()};var refreshDataSet=exports.refreshDataSet=function e(t,r){var i=t.get({returnType:\"Object\"});var a=[];var s=[];var o=[];var n=[];for(var l in r){if(i[l]){if(basicUtils.isEqual(i[l],r[l])){continue}s.push(l);t.remove(l)}else{a.push(l)}if(r[l].x===undefined){o.push(l)}t.add(r[l])}for(var u in i){if(!r[u]){n.push(u);t.remove(u)}}return{withoutPosition:o,inserted:a,updated:s,removed:n}};var getId=exports.getId=function e(t){return wikiUtils.getTiddler(t).fields[\"tmap.id\"]};var getDublicates=exports.getDublicates=function e(t){var r=getId(t);if(!r){return[]}var i=wikiUtils.getTiddlersWithField(\"tmap.id\",r,{limit:2});delete i[wikiUtils.getTiddlerRef(t)];return Object.keys(i)};var keysOfItemsWithProperty=exports.keysOfItemsWithProperty=function e(t,r,i,a){t=getIterableCollection(t);var s=Object.keys(t);var o=[];a=typeof a===\"number\"?a:s.length;for(var n=0,l=s.length;n<l;n++){var u=s[n];if(_typeof(t[u])===\"object\"&&t[u][r]){if(!i||t[u][r]===i){o.push(u);if(o.length===a){break}}}}return o};var keyOfItemWithProperty=exports.keyOfItemWithProperty=function e(t,r,i){return keysOfItemsWithProperty(t,r,i,1)[0]};var getLookupTable=exports.getLookupTable=function e(t,r){t=getIterableCollection(t);var i=basicUtils.makeHashMap();var a=Object.keys(t);for(var s=0,o=a.length;s<o;s++){var n=a[s];var l=r?t[n][r]:t[n];var u=typeof l===\"undefined\"?\"undefined\":_typeof(l);if(u===\"string\"&&l!==\"\"||u===\"number\"){if(!i[l]){i[l]=r?t[n]:true;continue}}throw new Error('Cannot use \"'+l+'\" as lookup table index')}return i};var getArrayValuesAsHashmapKeys=exports.getArrayValuesAsHashmapKeys=getLookupTable;var getSnapshotTitle=exports.getSnapshotTitle=function e(t,r){return\"Snapshot – \"+t+\" (\"+(new Date).toDateString()+\").\"+(r||\"png\")};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/tmap.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/utils": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/utils",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.utils=undefined;var _extends=Object.assign||function(i){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t){if(Object.prototype.hasOwnProperty.call(t,e)){i[e]=t[e]}}}return i};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/utils\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _basic=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\");var basicUtils=_interopRequireWildcard(_basic);var _thirdParty=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty\");var thirdPartyUtils=_interopRequireWildcard(_thirdParty);var _wiki=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki\");var wikiUtils=_interopRequireWildcard(_wiki);var _tmap=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap\");var tMapUtils=_interopRequireWildcard(_tmap);function _interopRequireWildcard(i){if(i&&i.__esModule){return i}else{var r={};if(i!=null){for(var t in i){if(Object.prototype.hasOwnProperty.call(i,t))r[t]=i[t]}}r.default=i;return r}}var utils=exports.utils=_extends({},basicUtils,thirdPartyUtils,wikiUtils,tMapUtils);exports.default=utils;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/utils.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.touch=exports.addTiddler=exports.getTiddlersByPrefix=exports.getTiddlerWithField=exports.getTiddlersWithField=exports.deleteByPrefix=exports.cp=exports.mv=exports.addTWlisteners=exports.getChildWidgetByProperty=exports.getMergedTiddlers=exports.isSystemOrDraft=exports.isDraft=exports.setText=exports.getText=exports.isLeftVersionGreater=exports.getEntry=exports.setEntry=exports.clone=exports.writeFieldData=exports.parseFieldData=exports.isPreviewed=exports.notify=exports.registerTransclude=exports.getElementNode=exports.getTiddlerNode=exports.getTranscludeNode=exports.isMatch=exports.getMatches=exports.moveFieldValues=exports.deleteTiddlers=exports.setField=exports.setSidebarTab=exports.tiddlerExists=exports.getField=exports.getTiddler=exports.getTiddlerRef=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _basic=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\");var basicUtils=_interopRequireWildcard(_basic);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var getTiddlerRef=exports.getTiddlerRef=function e(t){if(t instanceof $tw.Tiddler){return t.fields.title}else if(typeof t===\"string\"){return t}else{throw new _exception.InvalidArgumentException(t)}};var getTiddler=exports.getTiddler=function e(t){return $tw.wiki.getTiddler(t instanceof $tw.Tiddler?t.fields.title:t)};var getField=exports.getField=function e(t,r){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"\";var d=getTiddler(t);return!d?i:d.fields[r]||i};var tiddlerExists=exports.tiddlerExists=function e(t){if(!t){return false}var r=getTiddlerRef(t);return Boolean(r&&($tw.wiki.tiddlerExists(r)||$tw.wiki.isShadowTiddler(r)))};var setSidebarTab=exports.setSidebarTab=function e(t){setText(getTiddlersByPrefix(\"$:/state/tab/sidebar-\")[0],t)};var setField=exports.setField=function e(t,r,i){if(!t||!r){return}var d=getTiddlerRef(t);var s=_defineProperty({title:d},r,i);var n=$tw.wiki.getTiddler(d,true);if(r!==\"text\"&&n&&!n.fields.text){s.text=\"\"}n=new $tw.Tiddler(n,s);$tw.wiki.addTiddler(n);return n};var deleteTiddlers=exports.deleteTiddlers=function e(t){var r=Object.keys(t);var i=$tw.wiki.getTiddlerList(\"$:/StoryList\");for(var d=r.length;d--;){var s=getTiddlerRef(t[r[d]]);if(!$tw.wiki.tiddlerExists(t[r[d]])){continue}var n=i.indexOf(s);if(n!==-1){i.splice(n,1);setField(\"$:/StoryList\",\"list\",i)}$tw.wiki.deleteTiddler(s)}};var moveFieldValues=exports.moveFieldValues=function e(t,r,i,d,s){if(t===r)return;var n=s||$tw.wiki.allTitles();for(var l=n.length;l--;){var a=getTiddler(n[l]);if(a.isDraft()||!a.fields[t]){continue}if(!d&&$tw.wiki.isSystemTiddler(n[l])){continue}var o=_defineProperty({},r,a.fields[t]);if(i){o[t]=undefined}$tw.wiki.addTiddler(new $tw.Tiddler(a,o))}};var getMatches=exports.getMatches=function e(t,r,i){var d=undefined;var s=$tw.wiki;if(typeof t===\"string\"){t=s.compileFilter(t)}if(r!=null&&(typeof r===\"undefined\"?\"undefined\":_typeof(r))===\"object\"){if(!Array.isArray(r)){r=Object.keys(r)}d=function e(t){for(var i=r.length;i--;){var d=s.getTiddler(r[i]);t(d,r[i])}}}return t.call(s,d,i)};var isMatch=exports.isMatch=function e(t,r){return getTiddlerRef(t)===getMatches(r,[getTiddlerRef(t)])[0]};var getTranscludeNode=exports.getTranscludeNode=function e(t,r){return{type:\"transclude\",attributes:{tiddler:{type:\"string\",value:getTiddlerRef(t)}},children:[],isBlock:!!r}};var getTiddlerNode=exports.getTiddlerNode=function e(t){return{type:\"tiddler\",attributes:{tiddler:{type:\"string\",value:getTiddlerRef(t)}},children:[]}};var getElementNode=exports.getElementNode=function e(t,r,i){return{type:\"element\",tag:t,attributes:{class:{type:\"string\",value:r}},children:i?[{type:\"text\",text:i}]:[]}};var registerTransclude=exports.registerTransclude=function e(t,r,i){basicUtils.removeArrayElement(t.children,t[r]);t[r]=t.makeChildWidget(getTranscludeNode(i,true));t.children.push(t[r]);return t[r]};var notify=exports.notify=function e(t){var r=\"$:/temp/tiddlymap/notify\";$tw.wiki.addTiddler(new $tw.Tiddler({title:r,text:t}));$tw.notifier.display(r)};var isPreviewed=exports.isPreviewed=function e(t){if(!t){return false}if(t.domNode.isTiddlyWikiFakeDom){return true}if(t.getVariable(\"tv-tiddler-preview\")){return true}else{var r=\"tc-tiddler-preview-preview\";return!!basicUtils.getAncestorWithClass(t.parentDomNode,r)}};var parseFieldData=exports.parseFieldData=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"text\";var i=arguments[2];var d=getTiddler(t);if(!d){return i}return basicUtils.parseJSON(d.fields[r],i)};var writeFieldData=exports.writeFieldData=function e(t,r,i,d){if((typeof i===\"undefined\"?\"undefined\":_typeof(i))!==\"object\"){return}d=parseInt(d);d=d>0&&r===\"text\"?d:0;setField(t,r,JSON.stringify(i,null,d))};var clone=exports.clone=function e(t,r){setField(t,\"title\",r)};var setEntry=exports.setEntry=function e(t,r,i){$tw.wiki.setText(getTiddlerRef(t),null,r,i)};var getEntry=exports.getEntry=function e(t,r,i){var d=$tw.wiki.getTiddlerData(getTiddlerRef(t),{});return d[r]==null?i:d[r]};var isLeftVersionGreater=exports.isLeftVersionGreater=function e(t,r){return t!==r&&$tw.utils.checkVersions(t,r)};var getText=exports.getText=function e(t,r){return getField(t,\"text\",r)};var setText=exports.setText=function e(t,r){setField(t,\"text\",r)};var isDraft=exports.isDraft=function e(t){var r=getTiddler(t);return r&&r.isDraft()};var isSystemOrDraft=exports.isSystemOrDraft=function e(t){return $tw.wiki.isSystemTiddler(getTiddlerRef(t))||isDraft(t)};var getMergedTiddlers=exports.getMergedTiddlers=function e(t,r){if(!Array.isArray(t)){return}for(var i=t.length;i--;){t[i]=getTiddler(t[i])}if(!t.length){return}t.push({title:r||t[0].fields.title},$tw.wiki.getModificationFields(),$tw.wiki.getCreationFields());t.unshift(null);return new(Function.prototype.bind.apply($tw.Tiddler,t))};var getChildWidgetByProperty=exports.getChildWidgetByProperty=function e(t,r,i){var d=t.children;for(var s=d.length;s--;){var n=d[s];if(n[r]===i){return n}else{n=e(n,r,i);if(n){return n}}}};var addTWlisteners=exports.addTWlisteners=function e(t,r,i){for(var d in t){r.addEventListener(d,t[d].bind(i))}};var mv=exports.mv=function e(t,r,i,d){if(t===r||!t||!r){return}i=typeof i===\"boolean\"?i:false;d=typeof d===\"boolean\"?d:true;var s=getTiddlersByPrefix(t);var n=basicUtils.makeHashMap();for(var l=s.length;l--;){var a=s[l];var o=a.replace(t,r);if($tw.wiki.tiddlerExists(o)&&!i){return}n[a]=o}for(var f in n){setField(f,\"title\",n[f]);if(d){$tw.wiki.deleteTiddler(f)}}return n};var cp=exports.cp=function e(t,r,i){return mv(t,r,i,false)};var deleteByPrefix=exports.deleteByPrefix=function e(t,r){if(!t){return}r=r||$tw.wiki.allTitles();var i=[];for(var d=r.length;d--;){if(basicUtils.startsWith(r[d],t)){$tw.wiki.deleteTiddler(r[d]);i.push(i[d])}}return i};var getTiddlersWithField=exports.getTiddlersWithField=function e(t,r){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var d=i.tiddlers||$tw.wiki.allTitles();var s=i.isIncludeDrafts===true;var n=basicUtils.makeHashMap();var l=Object.keys(d);var a=$tw.utils.hop;var o=i.limit||0;for(var f=l.length;f--;){var u=getTiddler(d[l[f]]);var p=u.fields;if(a(p,t)&&(!a(p,\"draft.of\")||s)){if(!r||p[t]===r){n[p.title]=u;if(--o===0){break}}}}return n};var getTiddlerWithField=exports.getTiddlerWithField=function e(t,r){return Object.keys(getTiddlersWithField(t,r,{limit:1}))[0]};var getTiddlersByPrefix=exports.getTiddlersByPrefix=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=r.removePrefix===true;var d=[];var s=$tw.wiki[r.iterator||\"each\"];s(function(e,r){if(basicUtils.startsWith(r,t)){d.push(i?basicUtils.getWithoutPrefix(r,t):r)}});return d};var addTiddler=exports.addTiddler=function e(t,r){var i=getTiddler(t);if(!r&&i){return i}i=new $tw.Tiddler({title:t,text:\"\"},$tw.wiki.getModificationFields(),$tw.wiki.getCreationFields());$tw.wiki.addTiddler(i);return i};var touch=exports.touch=function e(t){if(!t){return}var r=new $tw.Tiddler(getTiddler(t),$tw.wiki.getModificationFields());$tw.wiki.addTiddler(r)};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/wiki.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/macro/tmap": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/macro/tmap",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.params=exports.name=exports.run=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\ntitle: $:/plugins/felixhayashi/tiddlymap/js/macro/tmap\ntype: application/javascript\nmodule-type: macro\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var name=\"tmap\";var params=getParamSlots(5);function run(){this.substVarRefs=this.substituteVariableReferences;var e=command[arguments[0]];var t=null;if(typeof e===\"function\"){var r=Array.prototype.slice.call(arguments,1);t=e.apply(this,r)}return typeof t===\"string\"?t:\"\"}function getParamSlots(e){var t=[];for(var r=0;r<e;r++){t.push({name:\"arg\"+r})}return t}var command=_utils2.default.makeHashMap();command.basename=function(e){var t=this.getVariable(\"currentTiddler\");return _utils2.default.getBasename(t,e)};command.datauri=function(e,t){return _utils2.default.getDataUri(e,t,true)};command.testJSON=function(e){var t=$tw.wiki.getTiddler(this.getVariable(\"currentTiddler\"));try{JSON.parse(t.fields[e]);return\"valid\"}catch(e){return\"malformed\"}};command.splitAndSelect=function(e,t){var r=this.getVariable(\"currentTiddler\");var a=r.split(e)[t];return a!=null?a:r};command.concat=function(){var e=\"\";for(var t=1,r=arguments.length;t<r;t++){e+=arguments[t]}return e};command.uuid=function(){return _utils2.default.genUUID()};command.regRepl=function(){var e=this.substVarRefs(arguments[0]);var t=arguments[1];var r=this.substVarRefs(arguments[2]);var a=this.substVarRefs(arguments[4]);return e.replace(new RegExp(t,a),r)};command.halfOfString=function(){var e=this.substVarRefs(arguments[0]);if(!e){return\"\"}return e.substr(0,Math.ceil(e.length/2))};command.isETyVisible=function(e,t){e=new _ViewAbstraction2.default(e);var r=command.getETyId.call(this,e,t);return\"\"+e.isEdgeTypeVisible(r)};command.getETyId=function(e,t){e=new _ViewAbstraction2.default(e);var r=_EdgeType2.default.getInstance(t||this.getVariable(\"currentTiddler\"));if(!r.namespace){var a=_EdgeType2.default.getIdParts(r.id),n=a.marker,i=a.name;var u=e.getConfig(\"edge_type_namespace\");r=_EdgeType2.default.getInstance(_EdgeType2.default.getId(n,u,i))}return r.id};command.scale=function(){var e=\"\";for(var t=1,r=parseInt(arguments[0]);t<r;t++){e+=\"[[\"+t+\"]]\"}return e};command.mergeFields=function(){var e=_utils2.default.getTiddler(arguments[0]);var t=arguments[1];var r=arguments[2]||\" \";if(!e)return;var a=_utils2.default.getPropertiesByPrefix(e.fields,t);var n=\"\";for(var i in a){if(typeof a[i]===\"string\"){n+=a[i]+r}}return n};command.option=function(e,t){if(typeof $tm==\"undefined\"){return\"\"}var r=$tm;var a=e.split(\".\");for(var n=0;n<a.length;n++){if((typeof r===\"undefined\"?\"undefined\":_typeof(r))==\"object\"&&r[a[n]]){r=r[a[n]]}}if(t&&typeof r===\"string\"&&_utils2.default.hasSubString(t)&&r.lastIndexOf(t)+t.length===r.length){r=r+t}return r};exports.run=run;exports.name=name;exports.params=params;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/macro/MapMacro.js.map\n",
"type": "application/javascript",
"module-type": "macro"
},
"$:/plugins/felixhayashi/tiddlymap/js/Adapter": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/Adapter",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Adapter\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);var _contrastcolour=require(\"$:/core/modules/macros/contrastcolour.js\");function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){if(t in e){Object.defineProperty(e,t,{value:i,enumerable:true,configurable:true,writable:true})}else{e[t]=i}return e}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var Adapter=function(){function e(t,i){_classCallCheck(this,e);this.getTiddlerById=t.getTiddlerById.bind(t);this.getId=t.getIdByTiddler.bind(t);this.assignId=t.assignId.bind(t);this.edgeTypeSubscriberRegistry=i;this.indeces=$tm.indeces;this.wiki=$tw.wiki;this.visShapesWithTextInside=_utils2.default.getLookupTable([\"ellipse\",\"circle\",\"database\",\"box\",\"text\"])}_createClass(e,[{key:\"deleteEdge\",value:function e(t){return this._processEdge(t,\"delete\")}},{key:\"insertEdge\",value:function e(t){return this._processEdge(t,\"insert\")}},{key:\"deleteEdges\",value:function e(t){t=_utils2.default.convert(t,\"array\");for(var i=t.length;i--;){this.deleteEdge(t[i])}}},{key:\"_processEdge\",value:function e(t,i){$tm.logger(\"debug\",\"Edge\",i,t);var r=this.getTiddlerById(t.from);if(!r||!_utils2.default.tiddlerExists(r)){return}var a=_utils2.default.getTiddler(r);var s=this.indeces.allETy[t.type]||_EdgeType2.default.getInstance(t.type);var l=this.edgeTypeSubscriberRegistry.getAllForType(s);var n=i+\"Edge\";for(var o=l.length;o--;){l[o][n](a,t,s)}if(i===\"insert\"&&!s.exists()){s.save()}return t}},{key:\"getAdjacencyList\",value:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};$tm.start(\"Creating adjacency list\");if(!i.edges){var r=_utils2.default.getMatches(env.selector.allPotentialNodes);i.edges=this.getEdgesForSet(r,i.toWL,i.typeWL)}var a=_utils2.default.groupByProperty(i.edges,t||\"to\");$tm.stop(\"Creating adjacency list\");return a}},{key:\"getNeighbours\",value:function e(t){var i=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};$tm.start(\"Get neighbours\");var a=r.addProperties,s=r.toWL,l=r.typeWL,n=r.steps;var o=this.indeces.allETy;var d=_utils2.default.getArrayValuesAsHashmapKeys(t);var u=_ViewAbstraction2.default.exists(r.view)?new _ViewAbstraction2.default(r.view):null;var f=_utils2.default.makeHashMap();var g=_utils2.default.makeHashMap();var c=parseInt(n)>0?n:1;var v=r.direction||u&&u.getConfig(\"neighbourhood_directions\");var y=!v||v===\"both\";var h=y||v===\"in\";var p=y||v===\"out\";var _=u&&\"[all[]] \"+u.getNodeFilter(\"raw\");var b=this.getAdjacencyList(\"to\",r);var m=function e(t,r,s){f[t.id]=t;var l=i.getTiddlerById(t[r]);if(u&&_utils2.default.isTrue($tm.config.sys.nodeFilterNeighbours)&&!_utils2.default.isMatch(l,_)){return}if(!d[l]){d[l]=true;var n=i.makeNode(l,a);if(n){g[n.id]=n;s.push(l)}}};var w=void 0;for(w=0;w<c&&t.length;w++){var T=[];for(var k=t.length;k--;){if(_utils2.default.isSystemOrDraft(t[k])){continue}var E=this.getEdges(t[k],s,l);for(var N in E){var A=o[E[N].type];if(y||p&&A.toArrow||h&&A.invertedArrow){m(E[N],\"to\",T)}}var I=b[this.getId(t[k])];if(!I){continue}for(var x=I.length;x--;){var S=o[I[x].type];if(y||h&&S.toArrow||p&&S.invertedArrow){m(I[x],\"from\",T)}}}t=T}var j={nodes:g,edges:f};$tm.logger(\"debug\",\"Retrieved neighbourhood\",j,\"steps\",w);$tm.stop(\"Get neighbours\");return j}},{key:\"getGraph\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i=t.view,r=t.filter,a=t.edgeTypeWL,s=t.neighbourhoodScope;$tm.start(\"Assembling Graph\");i=_ViewAbstraction2.default.exists(i)?new _ViewAbstraction2.default(i):null;var l=_utils2.default.getMatches(r||i&&i.getNodeFilter(\"compiled\"));var n=parseInt(s||i&&i.getConfig(\"neighbourhood_scope\"));var o=a||i&&i.getEdgeTypeFilter(\"whitelist\");var d=_utils2.default.getArrayValuesAsHashmapKeys(l);var u={edges:this.getEdgesForSet(l,d,o),nodes:this.selectNodesByReferences(l,{view:i,outputType:\"hashmap\"})};if(n){var f=this.getNeighbours(l,{steps:n,view:i,typeWL:o,addProperties:{group:\"tmap:neighbour\"}});Object.assign(u.nodes,f.nodes);Object.assign(u.edges,f.edges);if(i&&i.isEnabled(\"show_inter_neighbour_edges\")){var g=this.getTiddlersByIds(f.nodes);var c=_utils2.default.getArrayValuesAsHashmapKeys(g);Object.assign(u.edges,this.getEdgesForSet(g,c))}}removeObsoleteViewData(u.nodes,i);this.attachStylesToNodes(u.nodes,i);$tm.stop(\"Assembling Graph\");$tm.logger(\"debug\",\"Assembled graph:\",u);return u}},{key:\"getEdges\",value:function e(t,i,r){var a=_utils2.default.getTiddler(t);if(!a||_utils2.default.isSystemOrDraft(a)){return}var s=this.indeces.allETy;var l=_utils2.default.makeHashMap();var n=this.edgeTypeSubscriberRegistry.getAll();for(var o=0,d=n.length;o<d;o++){Object.assign(l,n[o].loadEdges(a,i,r))}for(var u in l){var f=l[u];if(!f.from||!f.to){continue}var g=s[f.type]||_EdgeType2.default.getInstance(f.type);addStyleToEdge(l[u],g);l[u]=f}return l}},{key:\"getEdgesForSet\",value:function e(t,i,r){var a=_utils2.default.makeHashMap();for(var s=t.length;s--;){Object.assign(a,this.getEdges(t[s],i,r))}return a}},{key:\"selectEdgesByType\",value:function e(t){var i=_utils2.default.makeHashMap(_defineProperty({},_EdgeType2.default.getInstance(t).id,true));return this.getEdgesForSet(this.getAllPotentialNodes(),null,i)}},{key:\"getAllPotentialNodes\",value:function e(){return _utils2.default.getMatches($tm.selector.allPotentialNodes)}},{key:\"_processEdgesWithType\",value:function e(t,i){var r=i.action,a=i.newName;t=_EdgeType2.default.getInstance(t);$tm.logger(\"debug\",\"Processing edges\",t,r);var s=this.selectEdgesByType(t);if(r===\"rename\"){new _EdgeType2.default(a,t).save()}for(var l in s){this._processEdge(s[l],\"delete\");if(r===\"rename\"){s[l].type=a;this._processEdge(s[l],\"insert\")}}this.wiki.deleteTiddler(t.fullPath)}},{key:\"selectNodesByReferences\",value:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=i.addProperties,a=i.outputType;var s=_utils2.default.makeHashMap();var l=Object.keys(t);for(var n=l.length;n--;){var o=this.makeNode(t[l[n]],r);if(o){s[o.id]=o}}return _utils2.default.convert(s,a)}},{key:\"selectNodesByIds\",value:function e(t,i){var r=this.getTiddlersByIds(t);return this.selectNodesByReferences(r,i)}},{key:\"selectNodeById\",value:function e(t,i){i=Object.assign({},i,{outputType:\"hashmap\"});var r=this.selectNodesByIds([t],i);return r[t]}},{key:\"removeNodeType\",value:function e(t){t=_NodeType2.default.getInstance(t);this.wiki.deleteTiddler(t.fullPath)}},{key:\"makeNode\",value:function e(t,i){var r=_utils2.default.getTiddler(t);if(!r||_utils2.default.isSystemOrDraft(r))return;var a=_utils2.default.merge({},i);a.id=this.assignId(r);a.tRef=r.fields.title;var s=r.fields[$tm.field.nodeLabel];a.label=(s&&$tm.field.nodeLabel!==\"title\"?this.wiki.renderText(\"text/plain\",\"text/vnd-tiddlywiki\",s):r.fields.title).replace(\"\\\\n\",\"\\n\");return a}},{key:\"getInheritedNodeStyles\",value:function e(t){var i=this.getTiddlersByIds(t);var r={};var a=this.indeces.glNTy;for(var s=a.length;s--;){var l=a[s];var n=[];if(l.id===\"tmap:neighbour\"){for(var o in t){if(t[o].group===\"tmap:neighbour\"){n.push(this.getTiddlerById(o))}}}else{n=l.getInheritors(i)}for(var d=n.length;d--;){var u=n[d];var f=r[u]=r[u]||{};f.style=_utils2.default.merge(f.style||{},l.style);if(l[\"fa-icon\"]){f[\"fa-icon\"]=l[\"fa-icon\"]}else if(l[\"tw-icon\"]){f[\"tw-icon\"]=l[\"tw-icon\"]}}}return r}},{key:\"attachStylesToNodes\",value:function e(t,i){i=_ViewAbstraction2.default.exists(i)?new _ViewAbstraction2.default(i):null;var r=this.getInheritedNodeStyles(t);var a=i?i.getNodeData():_utils2.default.makeHashMap();var s=i&&!i.isEnabled(\"physics_mode\");for(var l in t){var n=this.getTiddlerById(l);var o=this.wiki.getTiddler(n);var d=o.fields;var u=t[l];var f=void 0;var g=r[n];if(g){_utils2.default.merge(u,g.style);f=getIcon(g[\"fa-icon\"],g[\"tw-icon\"])}if(d.color){u.color=d.color}if(d[\"tmap.style\"]){_utils2.default.merge(u,_utils2.default.parseJSON(d[\"tmap.style\"]))}f=getIcon(d[\"tmap.fa-icon\"],d[\"icon\"])||f;var c=a[l];if(c){_utils2.default.merge(u,c);if(s){u.fixed={x:u.x!=null,y:u.y!=null}}f=getIcon(c[\"fa-icon\"],c[\"tw-icon\"])||f}var v=u.color!==null&&_typeof(u.color)===\"object\";var y=v?u.color.background:u.color;u.color={background:y,border:v?u.color.border:undefined};addNodeIcon(u,f);u.font=u.font||{};if(u.shape&&!this.visShapesWithTextInside[u.shape]){u.font.color=\"black\"}else if(!u.font.color&&y){u.font.color=(0,_contrastcolour.run)(y,y,\"black\",\"white\")}if(u.shape===\"icon\"&&_typeof(u.icon)===\"object\"){u.icon.color=y}}if(i){var h=t[i.getConfig(\"central-topic\")];if(h){_utils2.default.merge(h,this.indeces.glNTyById[\"tmap:central-topic\"].style)}}}},{key:\"deleteNode\",value:function e(t){if(!t){return}var i=(typeof t===\"undefined\"?\"undefined\":_typeof(t))===\"object\"?t.id:t;var r=this.getTiddlerById(i);if(r){_utils2.default.deleteTiddlers([r])}var a=_utils2.default.getMatches(env.selector.allViews);for(var s=a.length;s--;){var l=new _ViewAbstraction2.default(a[s]);l.removeNode(i)}var n=this.getNeighbours([r]);this.deleteEdges(n.edges)}},{key:\"deleteNodes\",value:function e(t){for(var i=t.length;i--;){this.deleteNode(t[i])}}},{key:\"insertNode\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var i=arguments[1];var r=arguments[2];t.label=this.wiki.generateNewTitle(t.label||_utils2.default.getRandomLabel());var a=new $tw.Tiddler({text:\"\"},r,{title:t.label,\"tmap.id\":null},this.wiki.getModificationFields(),this.wiki.getCreationFields());this.wiki.addTiddler(a);t=this.makeNode(a,t);if(_ViewAbstraction2.default.exists(i)){new _ViewAbstraction2.default(i).addNode(t)}return t}},{key:\"getTiddlersByIds\",value:function e(t){if(Array.isArray(t)){t=_utils2.default.getArrayValuesAsHashmapKeys(t)}else if(t instanceof _vis2.default.DataSet){t=_utils2.default.getLookupTable(t,\"id\")}var i=[];for(var r in t){var a=this.getTiddlerById(r);if(a){i.push(a)}}return i}}]);return e}();var getFAdigits=function e(t){return t.length===4?t:t.substr(3,4)};var addNodeIcon=function e(t,i){if(!i){return}if(i.fa){t.shape=\"icon\";t.icon={shape:\"icon\",face:\"FontAwesome\",color:t.color,code:String.fromCharCode(\"0x\"+getFAdigits(i.fa))};if(t.size){t.icon.size=t.size}return}if(i.tw){var r=_utils2.default.getTiddler(i.tw);if(!r){return}if(r.fields[\"_canonical_uri\"]){t.image=r.fields[\"_canonical_uri\"];t.shape=\"image\"}else if(r.fields.text){t.image=_utils2.default.getDataUri(r);t.shape=\"image\"}}};var removeObsoleteViewData=function e(t,i){if(!_ViewAbstraction2.default.exists(i)||!t){return}i=new _ViewAbstraction2.default(i);var r=i.getNodeData();var a=0;for(var s in r){if(t[s]===undefined&&r[s]!=null){r[s]=undefined;a++}}if(a){$tm.logger(\"debug\",\"[Cleanup]\",\"Removed obsolete node data:\",i.getLabel(),a);i.saveNodeData(r)}};var addStyleToEdge=function e(t,i){t=Object.assign(t,i.style);if(_utils2.default.isTrue(i[\"show-label\"],true)){t.label=i.getLabel()}};var getIcon=function e(t,i){return t&&{fa:t}||i&&{tw:i}};exports.default=Adapter;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Adapter.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/CallbackManager",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||false;l.configurable=true;if(\"value\"in l)l.writable=true;Object.defineProperty(e,l.key,l)}}return function(t,a,l){if(a)e(t.prototype,a);if(l)e(t,l);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/CallbackManager\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var CallbackManager=function(){function e(){_classCallCheck(this,e);this.callbacks=_utils2.default.makeHashMap();this.logger=$tm.logger;this.wiki=$tw.wiki}_createClass(e,[{key:\"add\",value:function e(t,a){var l=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;this.logger(\"debug\",'A callback was registered for changes of \"'+t+'\"');this.callbacks[t]={execute:a,isDeleteOnCall:l}}},{key:\"remove\",value:function e(t){if(!t){return}if(typeof t===\"string\"){t=[t]}for(var a=t.length;a--;){var l=t[a];if(this.callbacks[l]){this.logger(\"debug\",'Deleting callback for \"'+l+'\"');delete this.callbacks[l]}}}},{key:\"refresh\",value:function e(t){if(this.callbacks.length==0){return}for(var a in t){if(!this.callbacks[a]){continue}if(this.wiki.getTiddler(a)){this.logger(\"debug\",\"Executing a callback for: \"+a);this.callbacks[a].execute(a);if(!this.callbacks.isDeleteOnCall){continue}}this.remove(a)}}}]);return e}();exports.default=CallbackManager;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/CallbackManager.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/startup/caretaker": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/startup/caretaker",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.startup=exports.synchronous=exports.before=exports.after=exports.platforms=exports.name=undefined;var _rebuilders;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/startup/caretaker\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _vis=require(\"$:/plugins/felixhayashi/tiddlymap/js/config/vis\");var _vis2=_interopRequireDefault(_vis);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Fixer=require(\"$:/plugins/felixhayashi/tiddlymap/js/Fixer\");var _Fixer2=_interopRequireDefault(_Fixer);var _Adapter=require(\"$:/plugins/felixhayashi/tiddlymap/js/Adapter\");var _Adapter2=_interopRequireDefault(_Adapter);var _tracker=require(\"$:/plugins/felixhayashi/tiddlymap/js/services/tracker\");var _tracker2=_interopRequireDefault(_tracker);var _EdgeTypeSubscriberRegistry=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry\");var _EdgeTypeSubscriberRegistry2=_interopRequireDefault(_EdgeTypeSubscriberRegistry);var _DialogManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/DialogManager\");var _DialogManager2=_interopRequireDefault(_DialogManager);var _CallbackManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\");var _CallbackManager2=_interopRequireDefault(_CallbackManager);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _vis3=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis4=_interopRequireDefault(_vis3);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);var _URL=require(\"$:/plugins/felixhayashi/tiddlymap/js/URL\");var _URL2=_interopRequireDefault(_URL);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var init=function e(){window.$tm=_extends({},env,{utils:_utils2.default,url:new _URL2.default(window.location.href)});cleanup();registerPublicClasses($tm);updateGlobals($tm);createMetaFile($tm.logger);var t=attachIndeces($tm);var r=getInitializedServices(t);Object.assign($tm,r);loadDefaultView($tm.config.sys.defaultView);r.fixer.fix();$tm.registry=[];setInterval(routineCheck,5e3);registerChangeListener($tm.callbackManager);registerMousemoveListener();registerClickListener();if($tm.url.query[\"tmap-enlarged\"]){prepareFullscreenStart($tm.url)}$tm.logger(\"warn\",\"TiddlyMap's caretaker successfully started\")};var getInitializedServices=function e(t){var r=new _tracker2.default(d);var i=$tw.modules.applyMethods(\"tmap.edgetypehandler\");var a=new _EdgeTypeSubscriberRegistry2.default(i,t.allETy,r);var s=new _Adapter2.default(r,a);var l=new _CallbackManager2.default;var n=new _DialogManager2.default(l);var d=new _Fixer2.default(s,$tm.logger,t.glNTy);return{edgeTypeSubscriberRegistry:a,tracker:r,adapter:s,callbackManager:l,dialogManager:n,fixer:d}};var registerPublicClasses=function e(t){t.keycharm=_vis4.default.keycharm;t.NodeType=_NodeType2.default;t.EdgeType=_EdgeType2.default;t.ViewAbstraction=_ViewAbstraction2.default};var attachOptions=function e(t){var r=t;if(!r.config)r.config=_utils2.default.makeHashMap();r.config.sys=_utils2.default.merge(r.config.sys,_utils2.default.unflatten($tw.wiki.getTiddlerData(env.ref.sysUserConf)));r.config.vis=_utils2.default.merge({},_vis2.default,_utils2.default.parseFieldData(env.ref.visUserConf));if(!r.field)r.field=_utils2.default.makeHashMap();$tw.utils.extend(r.field,r.config.sys.field)};var attachIndeces=function e(t){$tm.start(\"Attaching Indeces\");t.indeces=t.indeces||{};updateNodeTypesIndeces(t.indeces);updateEdgeTypesIndeces(t.indeces);$tm.stop(\"Attaching Indeces\");return t.indeces};var updateNodeTypesIndeces=function e(t){t=t||$tm.indeces;var r=$tm.path.nodeTypes;var i=t.glNTy=[];var a=t.glNTyById=_utils2.default.makeHashMap();$tw.wiki.eachTiddlerPlusShadows(function(e,t){if(_utils2.default.startsWith(t,r)){var s=_NodeType2.default.getInstance(t);a[s.id]=s;i.push(s)}});i.sort(function(e,t){return e.priority-t.priority})};var updateEdgeTypesIndeces=function e(t){t=t||$tm.indeces;var r=$tm.path.edgeTypes;var i=t.allETy=_utils2.default.makeHashMap();$tw.wiki.eachTiddlerPlusShadows(function(e,t){if(_utils2.default.startsWith(t,r)){var a=_EdgeType2.default.getInstance(t);i[a.id]=a}});if($tm.edgeTypeSubscriberRegistry){$tm.edgeTypeSubscriberRegistry.updateIndex(i)}};var attachFunctions=function e(t){var r=t;var i=function e(){};if(_utils2.default.isTrue($tm.config.sys.debug,false)&&console){r.logger=function(){if(arguments.length<2)return;var e=Array.prototype.slice.call(arguments);var t=e.shift(e);var r=console.hasOwnProperty(t)?t:\"debug\";console[r].apply(console,e)};r.start=function(e){console.time(\"[timer] \"+e)};r.stop=function(e){console.timeEnd(\"[timer] \"+e)}}else{r.logger=r.start=r.stop=i}r.notify=_utils2.default.isTrue($tm.config.sys.notifications)?_utils2.default.notify:i};var routineCheck=function e(){for(var t=$tm.registry.length;t--;){var r=$tm.registry[t];if(!r.destruct||!r.isZombieWidget)return;if(r.isZombieWidget()){$tm.logger(\"warn\",\"a widget will be removed\");$tm.registry.splice(t,1);r.destruct()}}};var dispatchUpdates=function e(t){var r=$tm.registry;for(var i=r.length;i--;){var a=r[i];if(a.update&&a.isZombieWidget&&!a.isZombieWidget()){a.update(t)}}};var checkForClone=function e(t){var r=_utils2.default.getDublicates(t);if(!r.length){return}_utils2.default.setField(t,\"tmap.edges\",undefined);$tm.tracker.assignId(t,true);$tm.dialogManager.open(\"dublicateIdInfo\",{param:{changedTiddler:t.fields.title,filter:_utils2.default.joinAndWrap(r,\"[[\",\"]]\"),id:_utils2.default.getId(t)}})};var updateGlobals=function e(t){attachOptions($tm);attachFunctions($tm);$tm.logger(\"warn\",\"Rebuilt globals\")};var lastCurrentTiddler=null;var updateLiveViewTrigger=function e(t){if(t[\"$:/HistoryList\"]){var r=_utils2.default.getField(\"$:/HistoryList\",\"current-tiddler\")}else if(t[\"$:/temp/focussedTiddler\"]){var r=_utils2.default.getField(\"$:/temp/focussedTiddler\",\"text\")}if(r!=null&&lastCurrentTiddler!==r){lastCurrentTiddler=r;_utils2.default.setField(\"$:/temp/tmap/currentTiddler\",\"text\",r)}};var printChanges=function e(t,r){if(!_utils2.default.isTrue($tm.config.sys.debug,false))return;$tm.logger(\"warn\",\"=== Refresh \"+r+\" ===\");for(var i in t){var a=t[i].deleted?\"[Deleted]\":\"[Modified]\";$tm.logger(\"warn\",a,i,$tw.wiki.getTiddler(i))}};var registerMousemoveListener=function e(){$tm.mouse={};var t=function e(t){$tm.mouse=t};window.addEventListener(\"mousemove\",t,false)};var registerClickListener=function e(){var t=$tm.path.tempPopups;window.addEventListener(\"click\",function(e){var r=_utils2.default.getTiddlersByPrefix(t);for(var i=r.length;i--;){if(_utils2.default.getText(r[i]))break}if(i===-1)return;if(!$tw.utils.hasClass(e.target,\"tc-drop-down\")&&!_utils2.default.getAncestorWithClass(e.target,\"tc-drop-down\")){for(var i=r.length;i--;){_utils2.default.setText(r[i],\"\")}}},false)};var registerChangeListener=function e(t){var r=0;$tw.wiki.addEventListener(\"change\",function(e){$tm.start(\"Caretaker handling changes\");printChanges(e,r++);t.refresh(e);var i={changedTiddlers:{}};for(var a in e){var s=_utils2.default.getTiddler(a);if(s&&s.isDraft()){continue}var l=handleTiddlerChange(a,s,i);if(l){i.changedTiddlers[a]=e[a]}}dispatchUpdates(i);updateLiveViewTrigger(e);$tm.stop(\"Caretaker handling changes\")})};var rebuilders=(_rebuilders={},_defineProperty(_rebuilders,env.path.options,updateGlobals),_defineProperty(_rebuilders,env.path.nodeTypes,updateNodeTypesIndeces),_defineProperty(_rebuilders,env.path.edgeTypes,updateEdgeTypesIndeces),_rebuilders);var handleTiddlerChange=function e(t,r,i){if($tw.wiki.isSystemTiddler(t)){for(var a in rebuilders){if(_utils2.default.startsWith(t,a)&&!i[a]){$tm.logger(\"warn\",\"[System change]\",a);rebuilders[a]();i[a]=true}}}else if(r){if(r.fields.text===undefined){$tw.wiki.dispatchEvent(\"lazyLoad\",t);return false}checkForClone(r);$tm.tracker.assignId(r)}else{var s=$tm.tracker.getIdByTiddler(t);if(!s){return false}var l=_utils2.default.getTiddlerWithField(\"tmap.id\",s);if(l){$tm.logger(\"warn\",\"[Renamed]\",t,\"into\",l)}else{$tm.adapter.deleteNode(s)}}return true};var cleanup=function e(){_utils2.default.deleteByPrefix(\"$:/temp/felixhayashi\");_utils2.default.deleteByPrefix(\"$:/temp/tiddlymap\");_utils2.default.deleteByPrefix(\"$:/temp/tmap\")};var loadDefaultView=function e(t){if(t){_utils2.default.setText(env.ref.defaultViewHolder,$tm.config.sys.defaultView)}};var prepareFullscreenStart=function e(t){var r=env.ref,i=r.mainEditor,a=r.defaultViewHolder;_utils2.default.setSidebarTab(i);if(_ViewAbstraction2.default.exists(t)){t=new _ViewAbstraction2.default(t);_utils2.default.setField(a,\"text\",t.getLabel())}};var createMetaFile=function e(t){if(_utils2.default.tiddlerExists(env.ref.sysMeta)){return}t(\"warn\",\"Creating meta file\");var r=$tw.wiki.getTiddler(env.path.pluginRoot);$tw.wiki.setTiddlerData(env.ref.sysMeta,{originalVersion:r.fields.version,dataStructureState:\"0.6.9\",showWelcomeMessage:true})};var name=exports.name=\"tmap.caretaker\";var platforms=exports.platforms=[\"browser\"];var after=exports.after=[\"startup\"];var before=exports.before=[\"rootwidget\"];var synchronous=exports.synchronous=true;var startup=exports.startup=init;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Caretaker.js.map\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/plugins/felixhayashi/tiddlymap/js/DialogManager": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/DialogManager",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||false;l.configurable=true;if(\"value\"in l)l.writable=true;Object.defineProperty(e,l.key,l)}}return function(t,a,l){if(a)e(t.prototype,a);if(l)e(t,l);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/DialogManager\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _CallbackManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\");var _CallbackManager2=_interopRequireDefault(_CallbackManager);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var DialogManager=function(){function e(t,a){_classCallCheck(this,e);this.callbackManager=t;this.context=a}_createClass(e,[{key:\"open\",value:function t(a){var l=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments[2];if(_utils2.default.isTrue($tm.config.sys.suppressedDialogs[a],false)){$tm.logger(\"warning\",\"Suppressed dialog\",a);return}$tm.logger(\"debug\",\"Dialog param object\",l);if(typeof i===\"function\"&&this.context){i=i.bind(this.context)}var r=$tm.path.tempRoot+\"/dialog-\"+_utils2.default.genUUID();var n=_utils2.default.getTiddler($tm.path.dialogs+\"/\"+a);var u={title:r,buttons:n.fields[\"buttons\"]||\"ok_cancel\",classes:\"tmap-modal-content \"+n.fields[\"classes\"],output:r+\"/output\",result:r+\"/result\",temp:r+\"/temp\",template:n.fields.title,templateId:a,currentTiddler:r+\"/output\",text:_utils2.default.getText($tm.path.dialogs)};_utils2.default.touch(u.output);if(l.dialog){if(l.dialog.preselects){$tw.wiki.addTiddler(new $tw.Tiddler({title:u.output},_utils2.default.flatten(l.dialog.preselects)));delete l.dialog.preselects}_utils2.default.merge(u,l.dialog)}u.footer=_utils2.default.getText($tm.path.footers);u=_utils2.default.flatten(u);l=_utils2.default.flatten(l);var s=function t(a){e.getElement(\"hidden-close-button\").click();var l=$tw.wiki.getTiddler(a);var n=l.fields.text;var s=null;if(n){s=$tw.wiki.getTiddler(u.output)}else{$tm.notify(\"operation cancelled\")}if(typeof i===\"function\"){i(n,s)}_utils2.default.deleteByPrefix(r)};this.callbackManager.add(u.result,s,true);var o=new $tw.Tiddler(n,l,u);$tw.wiki.addTiddler(o);$tm.logger(\"debug\",\"Opening dialog\",o);$tw.rootWidget.dispatchEvent({type:\"tm-modal\",param:o.fields.title,paramObject:o.fields});e.addKeyBindings();return o}}],[{key:\"getElement\",value:function e(t){return _utils2.default.getFirstElementByClassName(\"tmap-\"+t)}},{key:\"addKeyBindings\",value:function t(){var a=$tm.keycharm({container:_utils2.default.getFirstElementByClassName(\"tc-modal\")});var l=/tmap-triggers-(.+?)-on-(.+?)(?:\\s|$)/;var i=document.getElementsByClassName(\"tmap-trigger-field\");var r=function t(r){var n=i[r].className.split(\" \");var u=function t(i){var r=n[i].match(l);if(!r){return\"continue\"}var u=r[1];var s=r[2];var o=e.getElement(u);if(!o){return\"continue\"}a.bind(s,function(){if(document.getElementsByClassName(n[i]).length){o.click()}})};for(var s=n.length;s--;){var o=u(s);if(o===\"continue\")continue}};for(var n=i.length;n--;){r(n)}}}]);return e}();exports.default=DialogManager;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/DialogManager.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/Fixer": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/Fixer",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Fixer\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var Fixer=function(){function e(t,i,r){_classCallCheck(this,e);this.adapter=t;this.logger=i;this.wiki=$tw.wiki;this.glNTy=r}_createClass(e,[{key:\"moveEdges\",value:function e(t,i){var r=_utils2.default.getTiddlersByPrefix(t);for(var a=0;a<r.length;a++){var u=_utils2.default.getBasename(r[a]);if(u===\"__noname__\"){u=\"tmap:unknown\"}u=_EdgeType2.default.getInstance(u);if(!u.exists()){u.save()}var n=this.wiki.getTiddlerData(r[a]);for(var s=0;s<n.length;s++){n[s].type=(i?i+\":\":\"\")+u.id;this.adapter.insertEdge(n[s])}this.wiki.deleteTiddler(r[a])}}},{key:\"executeUpgrade\",value:function e(t,i,r){if(!_utils2.default.isLeftVersionGreater(t,i)){return}this.logger(\"debug\",\"Upgrading data structure to \"+t);var a=r();_utils2.default.setEntry(env.ref.sysMeta,\"dataStructureState\",t);return a}},{key:\"fixId\",value:function e(){var t=this.wiki.getTiddlerData(env.ref.sysMeta,{});this.executeUpgrade(\"0.9.2\",t.dataStructureState,function(){if(_utils2.default.isLeftVersionGreater(\"0.9.2\",t.originalVersion)){var e=\"$:/plugins/felixhayashi/tiddlymap/config/sys/user\";var i=_utils2.default.getEntry(e,\"field.nodeId\",\"tmap.id\");_utils2.default.moveFieldValues(i,\"tmap.id\",true,false)}})}},{key:\"fix\",value:function e(){var t=this;var i=this.wiki.getTiddlerData(env.ref.sysMeta,{});this.logger(\"debug\",\"Fixer is started\");this.logger(\"debug\",\"Data-structure currently in use: \",i.dataStructureState);this.executeUpgrade(\"0.7.0\",i.dataStructureState,function(){t.moveEdges(\"$:/plugins/felixhayashi/tiddlymap/graph/edges\",null);var e=env.selector.allViews;var i=_utils2.default.getMatches(e);for(var r=0;r<i.length;r++){var a=new _ViewAbstraction2.default(i[r]);t.moveEdges(a.getRoot()+\"/graph/edges\",a)}});this.executeUpgrade(\"0.7.32\",i.dataStructureState,function(){if(!_ViewAbstraction2.default.exists(\"Live View\")){return}var e=new _ViewAbstraction2.default(\"Live View\");e.setNodeFilter(\"[field:title{$:/temp/tmap/currentTiddler}]\",true);e.setConfig({\"refresh-trigger\":null,\"refresh-triggers\":$tw.utils.stringifyList([\"$:/temp/tmap/currentTiddler\"])})});this.executeUpgrade(\"0.9.0\",i.dataStructureState,function(){var e=env.ref.visUserConf;var i=_utils2.default.unflatten(t.wiki.getTiddlerData(e,{}));if(_typeof(i.groups)===\"object\"){var r=_NodeType2.default.getInstance(\"tmap:neighbour\");r.setStyle(i.groups[\"neighbours\"]);r.save();delete i.groups;t.wiki.setTiddlerData(e,i)}});this.fixId();this.executeUpgrade(\"0.9.16\",i.dataStructureState,function(){for(var e=t.glNTy.length;e--;){t.glNTy[e].save(null,true)}});this.executeUpgrade(\"0.10.3\",i.dataStructureState,function(){var e=env.ref.liveTab;if(_utils2.default.getTiddler(e).hasTag(\"$:/tags/SideBar\")){this.wiki.deleteTiddler(e);_utils2.default.setField(e,\"tags\",\"$:/tags/SideBar\")}});this.executeUpgrade(\"0.11.0\",i.dataStructureState,function(){var e=_utils2.default.getMatches(env.selector.allViews);for(var t=e.length;t--;){var i=new _ViewAbstraction2.default(e[t]);var r=i.getEdgeTypeFilter(\"raw\");var a=\"edge_type_namespace\";i.setConfig(a,i.getConfig(a));var u=env.filter.defaultEdgeTypeFilter;if(r){var n=env.path.edgeTypes;r=_utils2.default.replaceAll(r,\"\",[n,n+\"/\",\"[prefix[\"+n+\"]]\",\"[prefix[\"+n+\"/]]\",[\"[suffix[tw-body:link]]\",\"[[tw-body:link]]\"],[\"[suffix[tw-list:tags]]\",\"[[tw-list:tags]]\"],[\"[suffix[tw-list:list]]\",\"[[tw-body:list]]\"],[\"[suffix[tmap:unknown]]\",\"[[tmap:unknown]]\"],[\"[suffix[unknown]]\",\"[[tmap:unknown]]\"]]);u=\"-[prefix[_]] \"+r}i.setEdgeTypeFilter(u)}})}}]);return e}();exports.default=Fixer;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Fixer.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/startup/listener": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/startup/listener",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.startup=exports.synchronous=exports.before=exports.after=exports.platforms=exports.name=undefined;var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _vis=require(\"$:/plugins/felixhayashi/tiddlymap/js/config/vis\");var _vis2=_interopRequireDefault(_vis);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var handleCancelDialog=function e(t){var a=t.param;_utils2.default.setField(a,\"text\",\"\")};\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/startup/listener\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var handleClearTiddler=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},a=t.paramObject;var r=a.title,d=a.keep;if(!r)return;var i=_utils2.default.getTiddler(r);var l=i?i.fields:{};var s=d?d.split():[];var n={title:r,text:\"\"};for(var p=s.length;p--;){var o=s[p];n[o]=l[o]}$tw.wiki.deleteTiddler(r);$tw.wiki.addTiddler(new $tw.Tiddler(n))};var handleMixTiddlers=function e(t){var a=t.paramObject,r=a===undefined?{}:a;var d=r.tiddlers,i=r.output;if(!d||!i)return;var l=$tw.utils.parseStringArray(d);var s=_utils2.default.getMergedTiddlers(l,i);$tw.wiki.addTiddler(s)};var handleConfirmDialog=function e(t){var a=t.param;_utils2.default.setField(a,\"text\",\"1\")};var handleSuppressDialog=function e(t){var a=t.paramObject;var r=a.dialog,d=a.suppress;if(_utils2.default.isTrue(d,false)){_utils2.default.setEntry($tm.ref.sysUserConf,\"suppressedDialogs.\"+r,true)}};var handleDownloadGraph=function e(t){var a=t.paramObject;var r=a.view;var d=$tm.adapter.getGraph({view:r});d.nodes=_utils2.default.convert(d.nodes,\"array\");d.edges=_utils2.default.convert(d.edges,\"array\");var i=\"$:/temp/tmap/export\";_utils2.default.setField(i,\"text\",JSON.stringify(d,null,2));$tw.rootWidget.dispatchEvent({type:\"tm-download-file\",param:i,paramObject:{filename:r+\".json\"}})};var handleConfigureSystem=function e(){var t=_utils2.default.getMatches($tm.selector.allPotentialNodes);var a=$tm.adapter.getEdgesForSet(t);var r=$tw.wiki.getTiddler($tm.path.pluginRoot).fields;var d=$tw.wiki.getTiddlerData($tm.ref.sysMeta);var i=_utils2.default.getTiddler($tm.ref.liveTab).hasTag(\"$:/tags/SideBar\");var l={numberOfNodes:\"\"+t.length,numberOfEdges:\"\"+Object.keys(a).length,pluginVersion:\"v\"+r.version,dataStructureVersion:\"v\"+d.dataStructureState,dialog:{preselects:{liveTab:\"\"+i,\"vis-inherited\":JSON.stringify(_vis2.default),\"config.vis\":_utils2.default.getText($tm.ref.visUserConf),\"config.sys\":$tm.config.sys}}};$tm.dialogManager.open(\"globalConfig\",l,function(e,t){if(!e)return;var a=_utils2.default.getPropertiesByPrefix(t.fields,\"config.sys.\",true);$tw.wiki.setTiddlerData($tm.ref.sysUserConf,a);if(_utils2.default.isTrue(t.fields.liveTab,false)){_utils2.default.setField($tm.ref.liveTab,\"tags\",\"$:/tags/SideBar\")}else{$tw.wiki.deleteTiddler($tm.ref.liveTab)}_utils2.default.setField($tm.ref.visUserConf,\"text\",t.fields[\"config.vis\"])})};var handleGenerateWidget=function e(t){var a=t.paramObject,r=a===undefined?{}:a;var d={dialog:{preselects:{\"var.view\":r.view||$tm.misc.defaultViewLabel}}};$tm.dialogManager.open(\"widgetCodeGenerator\",d)};var handleRemoveEdge=function e(t){var a=t.paramObject;$tm.adapter.deleteEdge(a)};var handleCreateEdge=function e(t){var a=t.paramObject;var r=a.from,d=a.to,i=a.force;if(!r||!d)return;if(_utils2.default.tiddlerExists(r)&&_utils2.default.tiddlerExists(d)||i){_utils2.default.addTiddler(d);_utils2.default.addTiddler(r);var l=new _Edge2.default($tm.adapter.makeNode(r).id,$tm.adapter.makeNode(d).id,a.label,a.id);$tm.adapter.insertEdge(l);$tm.notify(\"Edge inserted\")}};var handleOpenTypeManager=function e(t){var a=t.type,r=t.paramObject,d=r===undefined?{}:r;var i=a.match(/tmap:tm-(.*)/)[1];if(i===\"manage-edge-types\"){var l=\"Edge-Type Manager\";var s=$tm.selector.allEdgeTypes;var n=$tm.path.edgeTypes}else{var l=\"Node-Type Manager\";var s=$tm.selector.allNodeTypes;var n=$tm.path.nodeTypes}var p={mode:i,topic:l,searchSelector:s,typeRootPath:n};var o=$tm.dialogManager.open(\"MapElementTypeManager\",p);if(d.type){handleLoadTypeForm({paramObject:{mode:i,id:d.type,output:o.fields[\"output\"]}})}};var handleLoadTypeForm=function e(t){var a=t.paramObject,r=a.mode,d=a.id,i=a.output;var l=i;var s=r===\"manage-edge-types\"?_EdgeType2.default.getInstance(d):_NodeType2.default.getInstance(d);s.save(l,true);if(r===\"manage-edge-types\"){var n=$tm.adapter.selectEdgesByType(s);var p=Object.keys(n).length;_utils2.default.setField(l,\"temp.usageCount\",p)}$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(l),{typeTRef:s.fullPath,\"temp.idImmutable\":s.isShipped?\"true\":\"\",\"temp.newId\":s.id,\"vis-inherited\":JSON.stringify($tm.config.vis)}));_utils2.default.deleteByPrefix(\"$:/state/tabs/MapElementTypeManager\")};var handleSaveTypeForm=function e(t){var a=t.paramObject;var r=_utils2.default.getTiddler(a.output);if(!r)return;var d=r.fields.id;var i=a.mode;if(_utils2.default.isTrue(r.fields[\"temp.deleteType\"],false)){deleteType(i,d,r)}else{saveType(i,d,r)}};var deleteType=function e(t,a,r){var d=t===\"manage-edge-types\"?_EdgeType2.default.getInstance(a):_NodeType2.default.getInstance(a);$tm.logger(\"debug\",\"Deleting type\",d);if(t===\"manage-edge-types\"){$tm.adapter._processEdgesWithType(d,{action:\"delete\"})}else{$tm.adapter.removeNodeType(d)}$tw.wiki.addTiddler(new $tw.Tiddler({title:_utils2.default.getTiddlerRef(r)}));$tm.notify(\"Deleted type\")};var saveType=function e(t,a,r){var d=_utils2.default.getTiddler(r);var i=t===\"manage-edge-types\"?_EdgeType2.default:_NodeType2.default;var l=new i(a,d);l.save();var s=d.fields[\"temp.newId\"];if(s&&s!==d.fields[\"id\"]){if(t===\"manage-edge-types\"){$tm.adapter._processEdgesWithType(l,{action:\"rename\",newName:s})}else{new _NodeType2.default(s,l).save();$tw.wiki.deleteTiddler(l.fullPath)}_utils2.default.setField(d,\"id\",s)}$tm.notify(\"Saved type data\")};var handleCreateType=function e(t){var a=t.paramObject,r=a.mode,d=a.id,i=d===undefined?\"New type\":d,l=a.output;var s=r===\"manage-edge-types\"?new _EdgeType2.default(i):new _NodeType2.default(i);s.save();handleLoadTypeForm({paramObject:{id:s.id,mode:r,output:l}})};var name=exports.name=\"tmap.listener\";var platforms=exports.platforms=[\"browser\"];var after=exports.after=[\"rootwidget\",\"tmap.caretaker\"];var before=exports.before=[\"story\"];var synchronous=exports.synchronous=true;var startup=exports.startup=function e(){_utils2.default.addTWlisteners({\"tmap:tm-remove-edge\":handleRemoveEdge,\"tmap:tm-load-type-form\":handleLoadTypeForm,\"tmap:tm-save-type-form\":handleSaveTypeForm,\"tmap:tm-create-type\":handleCreateType,\"tmap:tm-create-edge\":handleCreateEdge,\"tmap:tm-suppress-dialog\":handleSuppressDialog,\"tmap:tm-generate-widget\":handleGenerateWidget,\"tmap:tm-download-graph\":handleDownloadGraph,\"tmap:tm-configure-system\":handleConfigureSystem,\"tmap:tm-manage-edge-types\":handleOpenTypeManager,\"tmap:tm-manage-node-types\":handleOpenTypeManager,\"tmap:tm-cancel-dialog\":handleCancelDialog,\"tmap:tm-clear-tiddler\":handleClearTiddler,\"tmap:tm-merge-tiddlers\":handleMixTiddlers,\"tmap:tm-confirm-dialog\":handleConfirmDialog},$tw.rootWidget,undefined)};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Listener.js.map\n",
"type": "application/javascript",
"module-type": "startup"
},
"$:/plugins/felixhayashi/tiddlymap/js/services/tracker": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/services/tracker",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/services/tracker\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var Tracker=function(){function e(t){_classCallCheck(this,e);this.wiki=$tw.wiki;this.logger=$tm.logger;this._createIndex()}_createClass(e,[{key:\"_createIndex\",value:function e(){var t=this.tById={};var i=this.idByT={};this.wiki.each(function(e,r){if(_utils2.default.isSystemOrDraft(e)){return}var l=e.fields[\"tmap.id\"];if(!l){l=_utils2.default.genUUID();_utils2.default.setField(e,\"tmap.id\",l)}t[l]=r;i[r]=l})}},{key:\"assignId\",value:function e(t,i){var r=_utils2.default.getTiddler(t);if(!r){throw new ResourceNotFoundException(t)}var l=r.fields[\"tmap.id\"];if(!l||i){l=_utils2.default.genUUID();_utils2.default.setField(r,\"tmap.id\",l);this.logger(\"info\",\"Assigning new id to\",r.fields.title)}this.tById[l]=r.fields.title;this.idByT[r.fields.title]=l;return l}},{key:\"getIdByTiddler\",value:function e(t){return this.idByT[_utils2.default.getTiddlerRef(t)]}},{key:\"getIdsByTiddlers\",value:function e(){return this.idByT}},{key:\"getTiddlersByIds\",value:function e(){return this.tById}},{key:\"getTiddlerById\",value:function e(t){return this.tById[t]}}]);return e}();exports.default=Tracker;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Tracker.js.map\n",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/tiddlymap/js/widget/MapConfigWidget": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/widget/MapConfigWidget",
"text": "\"use strict\";var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/MapConfigWidget\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _widget=require(\"$:/core/modules/widgets/widget.js\");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function MapConfigWidget(e,t){_widget.widget.call(this);this.initialise(e,t);this.computeAttributes()}MapConfigWidget.prototype=Object.create(_widget.widget.prototype);MapConfigWidget.prototype.render=function(e,t){this.parentDomNode=e;if(!this.domNode){this.domNode=this.document.createElement(\"div\");$tw.utils.addClass(this.domNode,\"tmap-config-widget\");e.insertBefore(this.domNode,t)}if(this.network){this.network.destroy()}this.networkContainer=document.createElement(\"div\");this.domNode.appendChild(this.networkContainer);this.refreshTrigger=this.getAttribute(\"refresh-trigger\");this.pipeTRef=this.getVariable(\"currentTiddler\");this.inheritedFields=$tw.utils.parseStringArray(this.getAttribute(\"inherited\"));this.extensionTField=this.getAttribute(\"extension\");this.mode=this.getAttribute(\"mode\");for(var i=0;i<this.inheritedFields.length;i++){var s=this.inheritedFields[i];var n=_utils2.default.parseFieldData(this.pipeTRef,s,{});if(this.mode===\"manage-edge-types\"){if(!n.edges){n={edges:n}}}else if(this.mode===\"manage-node-types\"){if(!n.nodes){n={nodes:n}}}this.inherited=_utils2.default.merge(this.inherited,n)}this.extension=_utils2.default.parseFieldData(this.pipeTRef,this.extensionTField,{});if(this.mode===\"manage-edge-types\"){if(!this.extension.edges){this.extension={edges:this.extension}}}else if(this.mode===\"manage-node-types\"){if(!this.extension.nodes){this.extension={nodes:this.extension}}}var r=_utils2.default.isTrue(this.getAttribute(\"save-only-changes\"));this.changes=r?{}:this.extension;var o={nodes:[],edges:[]};var a=_utils2.default.merge({},this.inherited,this.extension);$tw.utils.extend(a,{configure:{enabled:true,showButton:false,filter:this.getOptionFilter(this.mode)}});this.network=new _vis2.default.Network(this.networkContainer,o,a);this.network.on(\"configChange\",this.handleConfigChange.bind(this));var l=this.parentDomNode.getBoundingClientRect().height;this.parentDomNode.style[\"height\"]=l+\"px\";var h=this.handleResetEvent.bind(this);this.networkContainer.addEventListener(\"reset\",h,false);$tm.registry.push(this);this.enhanceConfigurator()};MapConfigWidget.prototype.handleResetEvent=function(e){var t={};t[e.detail.trigger.path]=null;this.handleConfigChange(t)};MapConfigWidget.prototype.handleConfigChange=function(e){var t=_utils2.default.flatten(this.changes);var i=_utils2.default.flatten(e);var s=Object.keys(_utils2.default.flatten(e))[0];var n=i[s]===null;if(n){t[s]=undefined;this.changes=_utils2.default.unflatten(t)}else{this.changes=_utils2.default.merge(this.changes,e)}var r=_utils2.default.merge({},this.changes);if(this.mode===\"manage-node-types\"){r=r[\"nodes\"]}if(this.mode===\"manage-edge-types\"){r=r[\"edges\"]}_utils2.default.writeFieldData(this.pipeTRef,this.extensionTField,r,$tm.config.sys.jsonIndentation);var o=\"vis-configuration-wrapper\";var a=this.networkContainer.getElementsByClassName(o)[0];a.style.height=a.getBoundingClientRect().height+\"px\";if(n){window.setTimeout(this.refresh.bind(this),0)}else{window.setTimeout(this.enhanceConfigurator.bind(this),50)}};MapConfigWidget.prototype.enhanceConfigurator=function(){var e=\"vis-configuration-wrapper\";var t=this.networkContainer.getElementsByClassName(e)[0].children;var i=[];var s=_utils2.default.flatten(this.changes);for(var n=0;n<t.length;n++){if(!t[n].classList.contains(\"vis-config-item\"))continue;var r=new VisConfElement(t[n],i,n);i.push(r);if(r.level===0)continue;r.setActive(!!s[r.path])}};function VisConfElement(e,t,i){var s=\"getElementsByClassName\";this.el=e;this.labelEl=e[s](\"vis-config-label\")[0]||e[s](\"vis-config-header\")[0]||e;var n=this.labelEl.innerText||this.labelEl.textContent;this.label=n&&n.match(/([a-zA-Z0-9]+)/)[1];this.level=parseInt(e.className.match(/.*vis-config-s(.).*/)[1])||0;this.path=this.label;if(this.level>0){for(var r=i;r--;){var o=t[r];if(o.level<this.level){this.path=o.path+\".\"+this.path;break}}}}VisConfElement.prototype.setActive=function(e){if(!e)return;var t=\"tmap-vis-config-item-\"+(e?\"active\":\"inactive\");$tw.utils.addClass(this.el,t);if(e){var i=document.createElement(\"button\");i.innerHTML=\"reset\";i.className=\"tmap-config-item-reset\";var s=this;i.addEventListener(\"click\",function(e){e.currentTarget.dispatchEvent(new CustomEvent(\"reset\",{detail:{trigger:s},bubbles:true,cancelable:true}))},false);this.el.appendChild(i)}};MapConfigWidget.prototype.getOptionFilter=function(e){var t={nodes:{borderWidth:true,borderWidthSelected:true,color:{background:true,border:true},font:{color:true,size:true},icon:true,labelHighlightBold:false,shadow:true,shape:true,shapeProperties:{borderDashes:true},size:true},edges:{arrows:true,color:true,dashes:true,font:true,labelHighlightBold:false,length:true,selfReferenceSize:false,shadow:true,smooth:true,width:true},interaction:{hideEdgesOnDrag:true,hideNodesOnDrag:true,tooltipDelay:true},layout:{hierarchical:false},manipulation:{initiallyActive:true},physics:{forceAtlas2Based:{gravitationalConstant:true,springLength:true,springConstant:true,damping:true,centralGravity:true}}};if(e===\"manage-edge-types\"){t={edges:t.edges}}else if(e===\"manage-node-types\"){t={nodes:t.nodes}}else{t.edges.arrows=false}return function(e,i){i=i.concat([e]);var s=t;for(var n=0,r=i.length;n<r;n++){if(s[i[n]]===true){return true}else if(s[i[n]]==null){return false}s=s[i[n]]}return false}};MapConfigWidget.prototype.isZombieWidget=function(){return!document.body.contains(this.parentDomNode)};MapConfigWidget.prototype.destruct=function(){if(this.network){this.network.destroy()}};MapConfigWidget.prototype.refresh=function(e){if(this.isZombieWidget()||!this.network)return;if(!e||e[this.refreshTrigger]){this.refreshSelf();return true}};MapConfigWidget.prototype.setNull=function(e){for(var t in e){if(_typeof(e[t])==\"object\"){this.setNull(e[t])}else{e[t]=undefined}}};exports[\"tmap-config\"]=MapConfigWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/ConfigurationWidget.js.map\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidgetItem": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidgetItem",
"text": "\"use strict\";var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _widget=require(\"$:/core/modules/widgets/widget.js\");var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidgetItem\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeListItemWidget=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));i.arrows=$tm.misc.arrows;return i}_createClass(t,[{key:\"execute\",value:function e(){var t=this.parseTreeNode;var r=$tm.tracker.getTiddlerById(t.neighbour.id);var i=_utils2.default.flatten(t.edge);for(var o in i){if(typeof i[o]===\"string\"){this.setVariable(\"edge.\"+o,i[o])}}this.setVariable(\"currentTiddler\",r);this.setVariable(\"neighbour\",r);var n=$tm.indeces.allETy[i.type];var s=i.to===t.neighbour.id?\"to\":\"from\";var a=s;if(n.biArrow){a=\"bi\"}else{if(s===\"to\"&&n.invertedArrow){a=\"from\"}else if(s===\"from\"&&n.invertedArrow){a=\"to\"}}this.setVariable(\"direction\",a);this.setVariable(\"directionSymbol\",a===\"bi\"?this.arrows.bi:a===\"from\"?this.arrows.in:this.arrows.out);this.makeChildWidgets()}},{key:\"refresh\",value:function e(t){return this.refreshChildren(t)}}]);return t}(_widget.widget);exports[\"tmap-edgelistitem\"]=EdgeListItemWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/EdgeListItemWidget.js.map\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidget": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidget",
"text": "\"use strict\";var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _widget=require(\"$:/core/modules/widgets/widget.js\");var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidget\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeListWidget=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}_createClass(t,[{key:\"render\",value:function e(t,r){this.parentDomNode=t;this.computeAttributes();this.execute();this.renderChildren(t,r)}},{key:\"execute\",value:function e(){var t=[this.getVariable(\"currentTiddler\")];var r=this.getAttribute(\"filter\",\"\");var i=this.getAttribute(\"direction\",\"both\");var s=$tm.indeces.allETy;var n=_utils2.default.getEdgeTypeMatches(r,s);var u={typeWL:_utils2.default.getLookupTable(n),direction:i};var o=$tm.adapter.getNeighbours(t,u),a=o.nodes,l=o.edges;var f=[];for(var c in l){var h=l[c];var p=a[h.to]||a[h.from];if(!p){continue}f.push({type:\"tmap-edgelistitem\",edge:h,typeWL:u.typeWL,neighbour:p,children:this.parseTreeNode.children})}if(!f.length){this.wasEmpty=true;f=this.getEmptyMessage()}else if(this.wasEmpty){this.removeChildDomNodes()}this.makeChildWidgets(f)}},{key:\"getEmptyMessage\",value:function e(){var t=this.wiki.parseText(\"text/vnd.tiddlywiki\",this.getAttribute(\"emptyMessage\",\"\"),{parseAsInline:true});return t?t.tree:[]}},{key:\"refresh\",value:function e(t){var r=this.computeAttributes();if(_utils2.default.hasElements(r)){this.refreshSelf();return true}for(var i in t){if(!_utils2.default.isSystemOrDraft(i)){this.refreshSelf();return true}}return this.refreshChildren(t)}}]);return t}(_widget.widget);exports[\"tmap-connections\"]=EdgeListWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/EdgeListWidget.js.map\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/plugins/felixhayashi/tiddlymap/js/widget/MapWidget": {
"title": "$:/plugins/felixhayashi/tiddlymap/js/widget/MapWidget",
"text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.tiddlymap=exports.tmap=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i){if(Object.prototype.hasOwnProperty.call(i,a)){e[a]=i[a]}}}return e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||false;a.configurable=true;if(\"value\"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}return function(t,i,a){if(i)e(t.prototype,i);if(a)e(t,a);return t}}();var _CallbackManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\");var _CallbackManager2=_interopRequireDefault(_CallbackManager);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _Popup=require(\"$:/plugins/felixhayashi/tiddlymap/js/Popup\");var _Popup2=_interopRequireDefault(_Popup);var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _widget=require(\"$:/core/modules/widgets/widget.js\");var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _SelectionRectangle=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle\");var _SelectionRectangle2=_interopRequireDefault(_SelectionRectangle);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){if(t in e){Object.defineProperty(e,t,{value:i,enumerable:true,configurable:true,writable:true})}else{e[t]=i}return e}function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++){i[t]=e[t]}return i}else{return Array.from(e)}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/MapWidget\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var MapWidget=function(e){_inherits(t,e);function t(e,i){_classCallCheck(this,t);var a=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));a.getAttr=a.getAttribute;a.isDebug=_utils2.default.isTrue($tm.config.sys.debug,false);_utils2.default.bindTo(a,[\"constructTooltip\",\"handleResizeEvent\",\"handleClickEvent\",\"handleCanvasKeyup\",\"handleCanvasKeydown\",\"handleCanvasScroll\",\"handleCanvasMouseMove\",\"handleWidgetKeyup\",\"handleWidgetKeydown\",\"handleTriggeredRefresh\",\"handleContextMenu\"]);a.callbackManager=new _CallbackManager2.default;a.computeAttributes();a.editorMode=a.getAttr(\"editor\");a.clickToUse=_utils2.default.isTrue(a.getAttr(\"click-to-use\"),false);a.id=a.getAttr(\"object-id\")||a.getStateQualifier();a.widgetPopupsPath=$tm.path.tempPopups+\"/\"+a.id;if(a.editorMode){_utils2.default.addTWlisteners({\"tmap:tm-create-view\":a.handleCreateView,\"tmap:tm-rename-view\":a.handleRenameView,\"tmap:tm-delete-view\":a.handleDeleteView,\"tmap:tm-delete-element\":a.handleDeleteElement,\"tmap:tm-edit-view\":a.handleEditView,\"tmap:tm-generate-widget\":a.handleGenerateWidget,\"tmap:tm-toggle-central-topic\":a.handleSetCentralTopic,\"tmap:tm-save-canvas\":a.handleSaveCanvas},a,a)}_utils2.default.addTWlisteners({\"tmap:tm-focus-node\":a.handleFocusNode,\"tmap:tm-reset-focus\":a.repaintGraph},a,a);a.visListeners={click:a.handleVisSingleClickEvent,doubleClick:a.handleVisDoubleClickEvent,stabilized:a.handleVisStabilizedEvent,selectNode:a.handleVisSelectNode,deselectNode:a.handleVisDeselectNode,dragStart:a.handleVisDragStart,dragEnd:a.handleVisDragEnd,hoverNode:a.handleVisHoverElement,hoverEdge:a.handleVisHoverElement,blurNode:a.handleVisBlurElement,blurEdge:a.handleVisBlurElement,beforeDrawing:a.handleVisBeforeDrawing,afterDrawing:a.handleVisAfterDrawing,stabilizationProgress:a.handleVisLoading,stabilizationIterationsDone:a.handleVisLoadingDone};a.windowDomListeners={resize:[a.handleResizeEvent,false],click:[a.handleClickEvent,false],mousemove:[a.handleCanvasMouseMove,true]};a.canvasDomListeners={keyup:[a.handleCanvasKeyup,true],keydown:[a.handleCanvasKeydown,true],mousewheel:[a.handleCanvasScroll,true],DOMMouseScroll:[a.handleCanvasScroll,true],contextmenu:[a.handleContextMenu,true],MozMousePixelScroll:[a.handleExtraCanvasScroll,true]};a.widgetDomListeners={keyup:[a.handleWidgetKeyup,true],keydown:[a.handleWidgetKeydown,true]};a.conVector={from:null,to:null};return a}_createClass(t,[{key:\"handleConnectionEvent\",value:function e(t,i){var a=this;var s=this.view.getEdgeTypeFilter();var r={fromLabel:$tm.adapter.selectNodeById(t.from).label,toLabel:$tm.adapter.selectNodeById(t.to).label,view:this.view.getLabel(),eTyFilter:s.raw};$tm.dialogManager.open(\"getEdgeType\",r,function(e,r){if(e){var n=_utils2.default.getText(r);var o=_EdgeType2.default.getInstance(n);if(!o.namespace){var l=_EdgeType2.default.getIdParts(o.id),d=l.marker,u=l.name;var h=a.view.getConfig(\"edge_type_namespace\");o=_EdgeType2.default.getInstance(_EdgeType2.default.getId(d,h,u))}if(!o.exists()){o.save()}t.type=o.id;$tm.adapter.insertEdge(t);a.isPreventZoomOnNextUpdate=true;if(!a.view.isEdgeTypeVisible(o)){$tm.dialogManager.open(\"edgeNotVisible\",{type:o.id,view:a.view.getLabel(),eTyFilter:s.pretty})}}if(typeof i===\"function\"){i(e)}})}},{key:\"checkForFreshInstall\",value:function e(){if(!_utils2.default.getEntry($tm.ref.sysMeta,\"showWelcomeMessage\",true)){return}_utils2.default.setEntry($tm.ref.sysMeta,\"showWelcomeMessage\",false);var t={dialog:{preselects:{\"config.storyview\":\"true\",\"config.navigation\":\"true\",\"config.sidebar\":\"true\",\"config.demo\":\"true\"}}};$tm.dialogManager.open(\"welcome\",t,function(e,t){var i=_utils2.default.getPropertiesByPrefix(t.fields,\"config.\",true);if(i[\"storyview\"]&&_utils2.default.tiddlerExists(\"$:/plugins/felixhayashi/topstoryview\")){_utils2.default.setText(\"$:/view\",\"top\")}if(i[\"navigation\"]){_utils2.default.setText(\"$:/config/Navigation/openLinkFromInsideRiver\",\"above\");_utils2.default.setText(\"$:/config/Navigation/openLinkFromOutsideRiver\",\"top\")}if(i[\"sidebar\"]){_utils2.default.setText(\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\",\"fixed-fluid\")}if(i[\"demo\"]){var a=$tm.misc.defaultViewLabel;var s=$tm.adapter.insertNode({label:\"Have fun with\",x:0,y:0},a);var r=$tm.adapter.insertNode({label:\"TiddlyMap!!\",x:100,y:100},a);$tm.adapter.insertEdge({from:s.id,to:r.id})}if(Object.keys(i).length){_utils2.default.touch(\"$:/plugins/felixhayashi/tiddlymap\")}})}},{key:\"openStandardConfirmDialog\",value:function e(t,i){var a={message:i};$tm.dialogManager.open(\"getConfirmation\",a,t)}},{key:\"logger\",value:function e(t,i){if(this.isDebug){var a=Array.prototype.slice.call(arguments,1);a.unshift(\"@\"+this.id);a.unshift(t);$tm.logger.apply(this,a)}}},{key:\"render\",value:function e(t,i){this.parentDomNode=t;this.domNode=this.document.createElement(\"div\");t.insertBefore(this.domNode,i);this.registerClassNames(this.domNode);this.viewHolderRef=this.getViewHolderRef();this.view=this.getView();this.graphBarDomNode=this.document.createElement(\"div\");$tw.utils.addClass(this.graphBarDomNode,\"tmap-topbar\");this.domNode.appendChild(this.graphBarDomNode);this.graphDomNode=this.document.createElement(\"div\");this.domNode.appendChild(this.graphDomNode);$tw.utils.addClass(this.graphDomNode,\"tmap-vis-graph\");if(_utils2.default.isPreviewed(this)){$tw.utils.addClass(this.domNode,\"tmap-static-mode\");this.renderPreview(this.graphBarDomNode,this.graphDomNode)}else{this.renderFullWidget(this.domNode,this.graphBarDomNode,this.graphDomNode)}}},{key:\"renderPreview\",value:function e(t,i){var a=this.view.getRoot()+\"/snapshot\";var s=_utils2.default.getTiddler(a);var r=this.document.createElement(\"span\");r.innerHTML=this.view.getLabel();r.className=\"tmap-view-label\";t.appendChild(r);if(s){var n=this.makeChildWidget(_utils2.default.getTranscludeNode(a),true);n.renderChildren(i,null)}else{$tw.utils.addClass(i,\"tmap-graph-placeholder\")}}},{key:\"renderFullWidget\",value:function e(t,i,a){_utils2.default.setDomListeners(\"add\",window,this.windowDomListeners);_utils2.default.setDomListeners(\"add\",t,this.widgetDomListeners);this.addLoadingBar(this.domNode);this.tooltip=new _Popup2.default(this.domNode,{className:\"tmap-tooltip\",showDelay:$tm.config.sys.popups.delay});this.contextMenu=new _Popup2.default(this.domNode,{className:\"tmap-context-menu\",showDelay:0,hideOnClick:true,leavingDelay:999999});this.sidebar=_utils2.default.getFirstElementByClassName(\"tc-sidebar-scrollable\");this.isInSidebar=this.sidebar&&!this.domNode.isTiddlyWikiFakeDom&&this.sidebar.contains(this.domNode);this.rebuildEditorBar(i);this.initAndRenderGraph(a);$tm.registry.push(this);this.reloadRefreshTriggers();this.checkForFreshInstall();if(this.id===$tm.misc.mainEditorId){var s=$tm.url;if(s&&s.query[\"tmap-enlarged\"]){this.toggleEnlargedMode(s.query[\"tmap-enlarged\"])}}}},{key:\"registerClassNames\",value:function e(t){var i=$tw.utils.addClass;i(t,\"tmap-widget\");if(this.clickToUse){i(t,\"tmap-click-to-use\")}if(this.getAttr(\"editor\")===\"advanced\"){i(t,\"tmap-advanced-editor\")}if(this.getAttr(\"design\")===\"plain\"){i(t,\"tmap-plain-design\")}if(!_utils2.default.isTrue(this.getAttr(\"show-buttons\"),true)){i(t,\"tmap-no-buttons\")}if(this.getAttr(\"class\")){i(t,this.getAttr(\"class\"))}}},{key:\"addLoadingBar\",value:function e(t){this.graphLoadingBarDomNode=this.document.createElement(\"progress\");$tw.utils.addClass(this.graphLoadingBarDomNode,\"tmap-loading-bar\");t.appendChild(this.graphLoadingBarDomNode)}},{key:\"rebuildEditorBar\",value:function e(){this.removeChildDomNodes();var t=this.view;var i=\"tmap-unicode-button\";var a=i+\" tmap-active-button\";var s={widgetQualifier:this.getStateQualifier(),widgetTempPath:this.widgetTempPath,widgetPopupsPath:this.widgetPopupsPath,isViewBound:String(this.isViewBound()),viewRoot:t.getRoot(),viewLabel:t.getLabel(),viewHolder:this.getViewHolderRef(),edgeTypeFilter:t.edgeTypeFilterTRef,allEdgesFilter:$tm.selector.allEdgeTypes,neighScopeBtnClass:t.isEnabled(\"neighbourhood_scope\")?a:i,rasterMenuBtnClass:t.isEnabled(\"raster\")?a:i};for(var r in s){this.setVariable(r,s[r])}var n=_utils2.default.getTiddlerNode(t.getRoot());if(this.editorMode===\"advanced\"){n.children.push(_utils2.default.getTranscludeNode($tm.ref.graphBar))}else{var o=_utils2.default.getElementNode(\"span\",\"tmap-view-label\",t.getLabel());n.children.push(o)}n.children.push(_utils2.default.getTranscludeNode($tm.ref.focusButton));this.makeChildWidgets([n]);this.renderChildren(this.graphBarDomNode,this.graphBarDomNode.firstChild)}},{key:\"refresh\",value:function e(t){return false}},{key:\"update\",value:function e(t){if(!this.network||this.isZombieWidget()||_utils2.default.isPreviewed(this)){return}var i=t.changedTiddlers;this.callbackManager.refresh(i);if(this.isViewSwitched(i)||this.hasChangedAttributes()||t[env.path.options]||i[this.view.getRoot()]){this.logger(\"warn\",\"View switched config changed\");this.isPreventZoomOnNextUpdate=false;this.view=this.getView(true);this.reloadRefreshTriggers();this.rebuildEditorBar();this.reloadBackgroundImage();this.initAndRenderGraph(this.graphDomNode)}else{var a=this.view.update(t);if(a){this.logger(\"warn\",\"View components modified\");this.rebuildGraph({resetFocus:{delay:1e3,duration:1e3}})}else{if(t[env.path.nodeTypes]||this.hasChangedElements(i)){this.rebuildGraph()}this.refreshChildren(i)}}}},{key:\"hidePopups\",value:function e(t,i){this.tooltip.hide(t,i);this.contextMenu.hide(0,true)}},{key:\"reloadRefreshTriggers\",value:function e(){this.callbackManager.remove(this.refreshTriggers);var t=this.getAttr(\"refresh-triggers\")||this.view.getConfig(\"refresh-triggers\");this.refreshTriggers=$tw.utils.parseStringArray(t)||[];this.logger(\"debug\",\"Registering refresh trigger\",this.refreshTriggers);for(var i=this.refreshTriggers.length;i--;){this.callbackManager.add(this.refreshTriggers[i],this.handleTriggeredRefresh,false)}}},{key:\"rebuildGraph\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i=t.resetFocus;if(_utils2.default.isPreviewed(this)){return}this.logger(\"debug\",\"Rebuilding graph\");this.hidePopups(0,true);this.hasNetworkStabilized=false;var a=this.rebuildGraphData();if(a.changedNodes.withoutPosition.length){i=i||{delay:1e3,duration:1e3};if(!this.view.isEnabled(\"physics_mode\")){var s=this.visOptions.physics;s[s.solver].centralGravity=.25;this.network.setOptions(this.visOptions)}}if(!_utils2.default.hasElements(this.graphData.nodesById)){return}if(i){if(!this.isPreventZoomOnNextUpdate){this.network.stabilize();this.resetFocus=i}this.isPreventZoomOnNextUpdate=false}}},{key:\"getContainer\",value:function e(){return this.domNode}},{key:\"rebuildGraphData\",value:function e(){$tm.start(\"Reloading Network\");var t=$tm.adapter.getGraph({view:this.view});var i=_utils2.default.refreshDataSet(this.graphData.nodes,t.nodes);var a=_utils2.default.refreshDataSet(this.graphData.edges,t.edges);this.graphData.nodesById=t.nodes;this.graphData.edgesById=t.edges;_utils2.default.setField(\"$:/temp/tmap/nodes/\"+this.view.getLabel(),\"list\",$tm.adapter.getTiddlersByIds(t.nodes));$tm.stop(\"Reloading Network\");return{changedEdges:a,changedNodes:i}}},{key:\"isViewBound\",value:function e(){return _utils2.default.startsWith(this.getViewHolderRef(),$tm.path.localHolders)}},{key:\"isViewSwitched\",value:function e(t){return!_ViewAbstraction2.default.exists(this.view)||t[this.getViewHolderRef()]}},{key:\"hasChangedAttributes\",value:function e(){return Object.keys(this.computeAttributes()).length}},{key:\"hasChangedElements\",value:function e(t){var i=[];var a=this.graphData.nodesById;var s=this.view.isEnabled(\"neighbourhood_scope\");for(var r in t){if(_utils2.default.isSystemOrDraft(r)){continue}if(a[$tm.adapter.getId(r)]||s){return true}if(t[r].modified){i.push(r)}}if(i.length){var n=this.view.getNodeFilter(\"compiled\");var o=_utils2.default.getMatches(n,i);return!!o.length}}},{key:\"initAndRenderGraph\",value:function e(t){var i=this;if(this.network){this._destructVis()}this.logger(\"info\",\"Initializing and rendering the graph\");if(!this.isInSidebar){this.callbackManager.add(\"$:/state/sidebar\",this.handleResizeEvent)}this.visOptions=this.getVisOptions();this.graphData={nodes:new _vis2.default.DataSet,edges:new _vis2.default.DataSet,nodesById:_utils2.default.makeHashMap(),edgesById:_utils2.default.makeHashMap()};this.tooltip.setEnabled(_utils2.default.isTrue($tm.config.sys.popups.enabled,true));this.network=new _vis2.default.Network(t,this.graphData,this.visOptions);this.canvas=t.getElementsByTagName(\"canvas\")[0];this.networkDomNode=_utils2.default.getFirstElementByClassName(\"vis-network\",t,true);this.canvas.tabIndex=0;for(var a in this.visListeners){this.network.on(a,this.visListeners[a].bind(this))}this.addGraphButtons({\"fullscreen-button\":function e(){i.toggleEnlargedMode(\"fullscreen\")},\"halfscreen-button\":function e(){i.toggleEnlargedMode(\"halfscreen\")}});_utils2.default.setDomListeners(\"add\",this.canvas,this.canvasDomListeners);this.reloadBackgroundImage();this.rebuildGraph({resetFocus:{delay:0,duration:0}});this.handleResizeEvent();this.canvas.focus()}},{key:\"handleCanvasKeyup\",value:function e(t){var i=this;var a=this.network.getSelectedNodes();if(t.ctrlKey){t.preventDefault();if(t.keyCode===88){if(this.editorMode){this.handleAddNodesToClipboard(\"move\")}else{$tm.notify(\"Map is read only!\")}}else if(t.keyCode===67){this.handleAddNodesToClipboard(\"copy\")}else if(t.keyCode===86){this.handlePasteNodesFromClipboard()}else if(t.keyCode===65){var s=Object.keys(this.graphData.nodesById);this.network.selectNodes(s)}else if(t.keyCode===49||t.keyCode===50){if(a.length!==1)return;var r=t.keyCode===49?\"from\":\"to\";$tm.notify(_utils2.default.ucFirst(r)+\"-part selected\");this.conVector[r]=a[0];if(this.conVector.from&&this.conVector.to){this.handleConnectionEvent(this.conVector,function(){i.conVector={from:null,to:null}})}}}else{if(t.keyCode===13){if(a.length!==1)return;this.openTiddlerWithId(a[0])}}}},{key:\"handleCanvasKeydown\",value:function e(t){if(t.altKey||t.metaKey){t.preventDefault();if(t.keyCode>=48&&t.keyCode<=57){var i=String.fromCharCode(t.keyCode);this.view.setConfig(\"neighbourhood_scope\",i)}}else{if(t.keyCode===46){t.preventDefault();this.handleRemoveElements(this.network.getSelection())}}}},{key:\"handleDeleteElement\",value:function e(t){var i=t.paramObject.id;var a=i?[i]:this.network.getSelectedNodes();this.handleRemoveElements({nodes:a})}},{key:\"handleCanvasMouseMove\",value:function e(t){var i=this.network;if(!(t.ctrlKey&&t.buttons)){if(this.selectRect){this.selectRect=null;var a=i.getSelectedNodes();$tm.notify(a.length+\" nodes selected\");i.redraw()}return}t.preventDefault();t.stopPropagation();if(!this.domNode.contains(t.target)){return}var s=i.DOMtoCanvas({x:t.offsetX,y:t.offsetY});if(!this.selectRect){this.selectRect=new _SelectionRectangle2.default(s.x,s.y)}this.selectRect.span(s.x,s.y);var r=i.getPositions();var n=i.getSelectedNodes();for(var o in r){if(this.selectRect.isPointWithin(r[o])&&!_utils2.default.inArray(o,n)){n.push(o)}}i.selectNodes(n);this.assignActiveStyle(n);i.redraw()}},{key:\"handleCanvasScroll\",value:function e(t){var i=!!(this.isInSidebar||t.ctrlKey||this.enlargedMode||this.clickToUse&&this.networkDomNode.classList.contains(\"vis-active\"));var a=this.visOptions.interaction;var s=i===a.zoomView;if(i||!s){t.preventDefault()}if(!s){t.stopPropagation();a.zoomView=i;this.network.setOptions({interaction:{zoomView:i}});return false}}},{key:\"handleExtraCanvasScroll\",value:function e(t){t.preventDefault()}},{key:\"handleContextMenu\",value:function e(t){var i=this;t.preventDefault();var a=this.network;this.hidePopups(0,true);var s=a.getNodeAt({x:t.offsetX,y:t.offsetY});if(!s)return;var r=a.getSelectedNodes();if(!_utils2.default.inArray(s,r)){r=[s];a.selectNodes(r)}this.contextMenu.show(r,function(e,t){var a=e.length>1?\"multi\":\"single\";var s=\"$:/plugins/felixhayashi/tiddlymap/editor/contextMenu/node\";_utils2.default.registerTransclude(i,\"contextMenuWidget\",s);i.contextMenuWidget.setVariable(\"mode\",a);i.contextMenuWidget.render(t)})}},{key:\"handleWidgetKeyup\",value:function e(t){}},{key:\"handleWidgetKeydown\",value:function e(t){if(t.ctrlKey){t.preventDefault();if(t.keyCode===70){t.preventDefault();var i=this.widgetPopupsPath+\"/focus\";_utils2.default.setText(i,_utils2.default.getText(i)?\"\":\"1\")}else{return}}else if(t.keyCode===120){t.preventDefault();this.toggleEnlargedMode(\"halfscreen\")}else if(t.keyCode===121){t.preventDefault();this.toggleEnlargedMode(\"fullscreen\")}else if(t.keyCode===27){t.preventDefault();_utils2.default.deleteByPrefix(this.widgetPopupsPath)}else{return}this.canvas.focus()}},{key:\"handlePasteNodesFromClipboard\",value:function e(){if(!this.editorMode){$tm.notify(\"Map is read only!\");return}if(!$tm.clipBoard||$tm.clipBoard.type!==\"nodes\"){$tm.notify(\"TiddlyMap clipboad is empty!\")}var t=$tm.clipBoard.nodes;var i=Object.keys(t);for(var a=i.length;a--;){var s=i[a];if(this.graphData.nodesById[s]){continue}this.view.addNode(t[s]);this.graphData.nodes.update({id:s})}this.network.selectNodes(i);this.rebuildGraph({resetFocus:{delay:0,duration:0}});$tm.notify(\"pasted \"+i.length+\" nodes into map.\")}},{key:\"handleAddNodesToClipboard\",value:function e(t){var i=this.network.getSelectedNodes();if(!i.length){return}$tm.clipBoard={type:\"nodes\",nodes:this.graphData.nodes.get(i,{returnType:\"Object\"})};$tm.notify(\"Copied \"+i.length+\" nodes to clipboard\");if(t===\"move\"){for(var a=i.length;a--;){this.view.removeNode(i[a])}}this.isPreventZoomOnNextUpdate=true}},{key:\"getVisOptions\",value:function e(){var t=this;var i=$tm.config.vis;var a=_utils2.default.parseJSON(this.view.getConfig(\"vis\"));var s=_utils2.default.merge({},i,a);s.clickToUse=this.clickToUse;s.manipulation.enabled=!!this.editorMode;s.manipulation.deleteNode=function(e,i){t.handleRemoveElements(e);t.resetVisManipulationBar(i)};s.manipulation.deleteEdge=function(e,i){t.handleRemoveElements(e);t.resetVisManipulationBar(i)};s.manipulation.addEdge=function(e,i){t.handleConnectionEvent(e);t.resetVisManipulationBar(i)};s.manipulation.addNode=function(e,i){t.handleInsertNode(e);t.resetVisManipulationBar(i)};s.manipulation.editNode=function(e,i){t.handleEditNode(e);t.resetVisManipulationBar(i)};s.interaction.zoomView=!!(this.isInSidebar||this.enlargedMode);s.manipulation.editEdge=false;var r=s.physics;r[r.solver]=r[r.solver]||{};r.stabilization.iterations=1e3;this.logger(\"debug\",\"Loaded graph options\",s);return s}},{key:\"resetVisManipulationBar\",value:function e(t){if(t){t(null)}this.network.disableEditMode();this.network.enableEditMode()}},{key:\"isVisInEditMode\",value:function e(){return this.graphDomNode.getElementsByClassName(\"vis-button vis-back\").length>0}},{key:\"handleCreateView\",value:function e(){var t=this;var i={view:this.view.getLabel()};$tm.dialogManager.open(\"createView\",i,function(e,i){if(!e)return;var a=_utils2.default.getField(i,\"name\");var s=_utils2.default.getField(i,\"clone\",false);if(_ViewAbstraction2.default.exists(a)){$tm.notify(\"Forbidden! View already exists!\");return}if(s&&t.view.isLiveView()){$tm.notify(\"Forbidden to clone the live view!\");return}var r=new _ViewAbstraction2.default(a,{isCreate:true,protoView:s?t.view:null});t.setView(r)})}},{key:\"handleRenameView\",value:function e(){var t=this;if(this.view.isLocked()){$tm.notify(\"Forbidden!\");return}var i=this.view.getOccurrences();var a={count:i.length.toString(),refFilter:_utils2.default.joinAndWrap(i,\"[[\",\"]]\")};$tm.dialogManager.open(\"renameView\",a,function(e,i){if(!e){return}var a=_utils2.default.getText(i);if(!a){$tm.notify(\"Invalid name!\")}else if(_ViewAbstraction2.default.exists(a)){$tm.notify(\"Forbidden! View already exists!\")}else{t.view.rename(a);t.setView(t.view)}})}},{key:\"handleEditView\",value:function e(){var t=this;var i=JSON.stringify($tm.config.vis);var a=this.graphData;var s=this.view.getConfig();var r={\"filter.prettyNodeFltr\":this.view.getNodeFilter(\"pretty\"),\"filter.prettyEdgeFltr\":this.view.getEdgeTypeFilter(\"pretty\"),\"vis-inherited\":i};var n={view:this.view.getLabel(),createdOn:this.view.getCreationDate(true),numberOfNodes:Object.keys(a.nodesById).length.toString(),numberOfEdges:Object.keys(a.edgesById).length.toString(),dialog:{preselects:$tw.utils.extend({},s,r)}};$tm.dialogManager.open(\"configureView\",n,function(e,i){if(!e){return}var a=_utils2.default.getPropertiesByPrefix(i.fields,\"config.\",true);var s=t.view.getConfig(\"background_image\");t.view.setConfig(a);if(a[\"physics_mode\"]&&!t.view.isEnabled(\"physics_mode\")){t.view.saveNodePositions(t.network.getPositions())}var r=t.view.getConfig(\"background_image\");if(r&&r!==s){$tm.notify(\"Background changed! You may need to zoom out a bit.\")}var n=_utils2.default.getField(i,\"filter.prettyNodeFltr\",\"\");var o=_utils2.default.getField(i,\"filter.prettyEdgeFltr\",\"\");t.view.setNodeFilter(n);t.view.setEdgeTypeFilter(o)})}},{key:\"handleSaveCanvas\",value:function e(){var t=this;var i=\"$:/temp/tmap/snapshot\";this.createAndSaveSnapshot(i);var a=_utils2.default.getSnapshotTitle(this.view.getLabel(),\"png\");var s={dialog:{snapshot:i,width:this.canvas.width.toString(),height:this.canvas.height.toString(),preselects:{name:a,action:\"download\"}}};$tm.dialogManager.open(\"saveCanvas\",s,function(e,s){if(!e)return;a=s.fields.name||a;var r=s.fields.action;if(r===\"download\"){t.handleDownloadSnapshot(a)}else if(r===\"wiki\"){_utils2.default.cp(i,a,true);t.dispatchEvent({type:\"tm-navigate\",navigateTo:a})}else if(r===\"placeholder\"){t.view.addPlaceholder(i)}$tw.wiki.deleteTiddler(\"$:/temp/tmap/snapshot\")})}},{key:\"handleDownloadSnapshot\",value:function e(t){var i=this.document.createElement(\"a\");var a=this.view.getLabel();i.download=t||_utils2.default.getSnapshotTitle(a,\"png\");i.href=this.getSnapshot();var s=new MouseEvent(\"click\");i.dispatchEvent(s)}},{key:\"createAndSaveSnapshot\",value:function e(t){var i=t||this.view.getRoot()+\"/snapshot\";$tw.wiki.addTiddler(new $tw.Tiddler({title:i,type:\"image/png\",text:this.getSnapshot(true)},$tw.wiki.getCreationFields(),$tw.wiki.getModificationFields()));return i}},{key:\"getSnapshot\",value:function e(t){var i=this.canvas.toDataURL(\"image/png\");return t?_utils2.default.getWithoutPrefix(i,\"data:image/png;base64,\"):i}},{key:\"handleDeleteView\",value:function e(){var t=this;var i=this.view.getLabel();if(this.view.isLocked()){$tm.notify(\"Forbidden!\");return}var a=this.view.getOccurrences();if(a.length){var s={count:a.length.toString(),refFilter:_utils2.default.joinAndWrap(a,\"[[\",\"]]\")};$tm.dialogManager.open(\"cannotDeleteViewDialog\",s);return}var r=\"\\n You are about to delete the view ''\"+i+\"''\\n (no tiddler currently references this view).\\n \";this.openStandardConfirmDialog(function(e){if(!e){return}t.view.destroy();t.setView($tm.misc.defaultViewLabel);var a='view \"'+i+\"' deleted\";t.logger(\"debug\",a);$tm.notify(a)},r)}},{key:\"handleTriggeredRefresh\",value:function e(t){this.logger(\"log\",t,\"Triggered a refresh\");if(this.id===\"live_tab\"){var i=_utils2.default.getTiddler(_utils2.default.getText(t));if(i){var a=i.fields[\"tmap.open-view\"]||$tm.config.sys.liveTab.fallbackView;if(a&&a!==this.view.getLabel()){this.setView(a);return}}}this.rebuildGraph({resetFocus:{delay:1e3,duration:1e3}})}},{key:\"handleRemoveElements\",value:function e(t){var i=t.nodes,a=t.edges;if(i.length){this.handleRemoveNodes(i)}else if(a.length){this.handleRemoveEdges(a)}this.resetVisManipulationBar()}},{key:\"handleRemoveEdges\",value:function e(t){$tm.adapter.deleteEdges(this.graphData.edges.get(t));$tm.notify(\"edge\"+(t.length>1?\"s\":\"\")+\" removed\")}},{key:\"handleRemoveNodes\",value:function e(t){var i=this;var a=$tm.adapter.getTiddlersByIds(t);var s={count:t.length.toString(),tiddlers:$tw.utils.stringifyList(a),dialog:{preselects:{\"delete-from\":\"filter\"}}};$tm.dialogManager.open(\"deleteNodeDialog\",s,function(e,a){if(!e)return;var s=0;for(var r=t.length;r--;){var n=i.view.removeNode(t[r]);if(n){s++}}if(a.fields[\"delete-from\"]===\"system\"){$tm.adapter.deleteNodes(t);s=t.length}i.isPreventZoomOnNextUpdate=true;$tm.notify(\"\\n Removed \"+s+\"\\n of \"+t.length+\"\\n from \"+a.fields[\"delete-from\"]+\"\\n \")})}},{key:\"toggleEnlargedMode\",value:function e(t){if(!this.isInSidebar&&t===\"halfscreen\"){return}this.logger(\"log\",\"Toggled graph enlargement\");var i=this.enlargedMode;if(i){this.network.setOptions({clickToUse:this.clickToUse});_utils2.default.findAndRemoveClassNames([\"tmap-has-\"+i+\"-widget\",\"tmap-\"+i]);this.enlargedMode=null;document.body.scrollTop=this.scrollTop}if(!i||i!==t&&(t===\"fullscreen\"||t===\"halfscreen\"&&!this.isInSidebar)){this.scrollTop=document.body.scrollTop;this.enlargedMode=t;var a=this.isInSidebar?this.sidebar:_utils2.default.getFirstElementByClassName(\"tc-story-river\");$tw.utils.addClass(this.document.body,\"tmap-has-\"+t+\"-widget\");$tw.utils.addClass(a,\"tmap-has-\"+t+\"-widget\");$tw.utils.addClass(this.domNode,\"tmap-\"+t);this.network.setOptions({clickToUse:false});$tm.notify(\"Toggled \"+t+\" mode\")}this.handleResizeEvent()}},{key:\"handleGenerateWidget\",value:function e(t){$tw.rootWidget.dispatchEvent({type:\"tmap:tm-generate-widget\",paramObject:{view:this.view.getLabel()}})}},{key:\"handleSetCentralTopic\",value:function e(t){var i=t.paramObject;var a=i.id||this.network.getSelectedNodes()[0];if(a===this.view.getConfig(\"central-topic\")){a=\"\"}this.view.setCentralTopic(a)}},{key:\"handleVisStabilizedEvent\",value:function e(t){if(this.hasNetworkStabilized){return}this.hasNetworkStabilized=true;this.logger(\"log\",\"Network stabilized after\",t.iterations,\"iterations\");if(!this.view.isEnabled(\"physics_mode\")){var i=this.graphData.nodesById;var a=[];for(var s in i){if(i[s].x===undefined){a.push(s)}}if(a.length){this.setNodesMoveable(a,false);$tm.notify(a.length+\" nodes were added to the graph\")}var r=this.visOptions.physics;r[r.solver].centralGravity=0;this.network.setOptions(this.visOptions)}if(this.resetFocus){this.fitGraph(this.resetFocus.delay,this.resetFocus.duration);this.resetFocus=null}}},{key:\"handleFocusNode\",value:function e(t){var i=t.param;this.network.focus($tm.adapter.getId(i),{scale:1.5,animation:true})}},{key:\"isZombieWidget\",value:function e(){return this.domNode.isTiddlyWikiFakeDom===true||!this.document.body.contains(this.getContainer())}},{key:\"fitGraph\",value:function e(){var t=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;clearTimeout(this.activeFitTimeout);var s=function e(){if(t.isZombieWidget()){return}t.network.redraw();t.network.fit({animation:{duration:a,easingFunction:\"easeOutQuart\"}})};this.activeFitTimeout=setTimeout(s,i)}},{key:\"handleInsertNode\",value:function e(t){var i=this;$tm.dialogManager.open(\"addNodeToMap\",{},function(e,a){if(!e){return}var s=_utils2.default.getField(a,\"draft.title\");if(_utils2.default.tiddlerExists(s)){if(_utils2.default.isMatch(s,i.view.getNodeFilter(\"compiled\"))){$tm.notify(\"Node already exists\");return}else{t=$tm.adapter.makeNode(s,t);i.view.addNode(t)}}else{var r=new $tw.Tiddler(a,{\"draft.title\":null});t.label=s;$tm.adapter.insertNode(t,i.view,r)}i.isPreventZoomOnNextUpdate=true})}},{key:\"handleEditNode\",value:function e(t){var i=this;var a=$tm.tracker.getTiddlerById(t.id);var s=_utils2.default.getTiddler(a);var r=JSON.stringify($tm.config.vis);var n=this.view.getConfig(\"vis\");var o={};o[t.id]=t;var l=$tm.adapter.getInheritedNodeStyles(o);var d=JSON.stringify(l[a]);var u=JSON.stringify(_utils2.default.merge({},{color:s.fields[\"color\"]},_utils2.default.parseJSON(s.fields[\"tmap.style\"])));var h=this.view.getLabel();var g=_extends({},this.view.getNodeData(t.id));delete g.x;delete g.y;var f={view:h,tiddler:s.fields.title,tidColor:s.fields[\"color\"],tidIcon:s.fields[$tm.field.nodeIcon]||s.fields[\"tmap.fa-icon\"],tidLabelField:\"global.\"+$tm.field.nodeLabel,tidIconField:\"global.\"+$tm.field.nodeIcon,dialog:{preselects:{\"inherited-global-default-style\":r,\"inherited-local-default-style\":n,\"inherited-group-styles\":d,\"global.tmap.style\":u,\"local-node-style\":JSON.stringify(g)}}};var v=function e(t,i,a){for(var s=a.length;s--;){f.dialog.preselects[t+\".\"+a[s]]=i[a[s]]||\"\"}};v(\"local\",g,[\"label\",\"tw-icon\",\"fa-icon\",\"open-view\"]);v(\"global\",s.fields,[$tm.field.nodeLabel,$tm.field.nodeIcon,\"tmap.fa-icon\",\"tmap.open-view\"]);$tm.dialogManager.open(\"editNode\",f,function(e,s){if(!e)return;var r=s.fields;var n=_utils2.default.getPropertiesByPrefix(r,\"global.\",true);for(var o in n){_utils2.default.setField(a,o,n[o]||undefined)}var l=_utils2.default.getPropertiesByPrefix(r,\"local.\",true);var d=_utils2.default.parseJSON(r[\"local-node-style\"],{});for(var u in l){d[u]=l[u]||undefined}i.view.saveNodeStyle(t.id,d);i.isPreventZoomOnNextUpdate=true})}},{key:\"handleVisSingleClickEvent\",value:function e(t){var i=_utils2.default.isTrue($tm.config.sys.singleClickMode);if(i&&!this.editorMode){this.handleOpenMapElementEvent(t)}}},{key:\"handleVisDoubleClickEvent\",value:function e(t){if(t.nodes.length||t.edges.length){if(this.editorMode||!_utils2.default.isTrue($tm.config.sys.singleClickMode)){this.handleOpenMapElementEvent(t)}}else{if(this.editorMode){this.handleInsertNode(t.pointer.canvas)}}}},{key:\"handleOpenMapElementEvent\",value:function e(t){var i=t.nodes,a=t.edges;if(i.length){var s=this.graphData.nodesById[i[0]];if(s[\"open-view\"]){$tm.notify(\"Switching view\");this.setView(s[\"open-view\"])}else{this.openTiddlerWithId(i[0])}}else if(a.length){this.logger(\"debug\",\"Clicked on an Edge\");var r=this.graphData.edgesById[a[0]].type;this.handleEditEdgeType(r)}else{return}this.hidePopups(0,true)}},{key:\"handleEditEdgeType\",value:function e(t){if(!this.editorMode)return;var i=$tm.config.sys.edgeClickBehaviour;if(i!==\"manager\")return;$tw.rootWidget.dispatchEvent({type:\"tmap:tm-manage-edge-types\",paramObject:{type:t}})}},{key:\"handleResizeEvent\",value:function e(t){if(this.isZombieWidget())return;var i=this.getAttr(\"height\");var a=this.getAttr(\"width\");if(this.isInSidebar){var s=this.domNode.getBoundingClientRect();var r=15;a=document.body.clientWidth-s.left-r+\"px\";var n=parseInt(this.getAttr(\"bottom-spacing\"))||15;var o=window.innerHeight-s.top;i=o-n+\"px\"}this.domNode.style.height=i||\"300px\";this.domNode.style.width=a;this.repaintGraph()}},{key:\"handleClickEvent\",value:function e(t){if(this.isZombieWidget()||!this.network)return;if(!this.graphDomNode.contains(t.target)){var i=this.network.getSelection();if(i.nodes.length||i.edges.length){this.logger(\"debug\",\"Clicked outside; deselecting nodes/edges\");this.network.selectNodes([]);this.resetVisManipulationBar()}}else{this.canvas.focus()}if(t.button!==2){this.contextMenu.hide(0,true)}}},{key:\"handleVisSelectNode\",value:function e(t){var i=t.nodes;if(!this.isDraggingAllowed(i)){return}this.assignActiveStyle(i)}},{key:\"isDraggingAllowed\",value:function e(t){var i=t.nodes;return this.editorMode||this.view.isEnabled(\"physics_mode\")}},{key:\"assignActiveStyle\",value:function e(t){if(!Array.isArray(t))t=[t];var i=this.visOptions.nodes.color;for(var a=t.length;a--;){var s=t[a];var r=this.graphData.nodesById[s];var n=_utils2.default.merge({},i,r.color);this.graphData.nodes.update({id:s,color:{highlight:n,hover:n}})}}},{key:\"handleVisDeselectNode\",value:function e(t){}},{key:\"handleVisDragEnd\",value:function e(t){var i=t.nodes;if(!i.length){return}if(i.length===1&&this.view.isEnabled(\"raster\")){var a=this.network.getPositions()[i[0]];this.graphData.nodes.update(_extends({id:i[0]},_utils2.default.getNearestRasterPosition(a,parseInt(this.view.getConfig(\"raster\")))))}this.draggedNode=null;this.setNodesMoveable(i,false)}},{key:\"handleVisBeforeDrawing\",value:function e(t){var i=this.view,a=this.network,s=this.backgroundImage;if(s){t.drawImage(s,0,0)}if(i.isEnabled(\"raster\")){_utils2.default.drawRaster(t,a.getScale(),a.getViewPosition(),parseInt(i.getConfig(\"raster\")))}}},{key:\"handleVisAfterDrawing\",value:function e(t){if(this.selectRect){var i=this.selectRect.getRect();t.beginPath();t.globalAlpha=.5;t.fillStyle=\"#EAFFEF\";t.fillRect.apply(t,_toConsumableArray(i));t.beginPath();t.globalAlpha=1;t.strokeStyle=\"#B4D9BD\";t.strokeRect.apply(t,_toConsumableArray(i))}if(this.draggedNode&&this.view.isEnabled(\"raster\")){var a=this.network.getPositions()[this.draggedNode];var s=_utils2.default.getNearestRasterPosition(a,parseInt(this.view.getConfig(\"raster\")));t.strokeStyle=\"green\";t.fillStyle=\"green\";t.beginPath();t.moveTo(a.x,a.y);t.lineTo(s.x,s.y);t.stroke();t.beginPath();t.arc(s.x,s.y,5,0,Math.PI*2);t.fill()}}},{key:\"constructTooltip\",value:function e(t,i){var a=_utils2.default.parseJSON(t);var s=a.node||a.edge;var r=null;var n=\"text/html\";var o=\"text/vnd-tiddlywiki\";if(a.node){var l=$tm.tracker.getTiddlerById(s);var d=_utils2.default.getTiddler(l);var u=d.fields[$tm.field.nodeInfo];if(u){i.innerHTML=$tw.wiki.renderText(n,o,u)}else if(d.fields.text){_utils2.default.registerTransclude(this,\"tooltipWidget\",l);this.tooltipWidget.setVariable(\"tv-tiddler-preview\",\"yes\");this.tooltipWidget.render(i)}else{i.innerHTML=l}}else{var h=this.graphData.edgesById[s];var g=$tm.indeces.allETy[h.type];if(g.description){r=$tw.wiki.renderText(n,o,g.description)}i.innerHTML=r||g.label||g.id}}},{key:\"handleVisHoverElement\",value:function e(t){if($tm.mouse.buttons)return;var i=t.node||t.edge;var a=JSON.stringify(t);if(t.node){this.assignActiveStyle(i)}if(!this.isVisInEditMode()&&!this.contextMenu.isShown()){var s=this.constructTooltip;this.tooltip.show(a,s)}}},{key:\"handleVisBlurElement\",value:function e(t){this.tooltip.hide()}},{key:\"handleVisLoading\",value:function e(t){var i=t.total,a=t.iterations;this.graphLoadingBarDomNode.style.display=\"block\";this.graphLoadingBarDomNode.setAttribute(\"max\",i);this.graphLoadingBarDomNode.setAttribute(\"value\",a)}},{key:\"handleVisLoadingDone\",value:function e(t){this.graphLoadingBarDomNode.style.display=\"none\"}},{key:\"handleVisDragStart\",value:function e(t){var i=t.nodes;if(!i.length||!this.isDraggingAllowed(i)){return}this.hidePopups(0,true);this.assignActiveStyle(i);this.setNodesMoveable(i,true);if(i.length===1){this.draggedNode=i[0]}}},{key:\"destruct\",value:function e(){_utils2.default.setDomListeners(\"remove\",window,this.windowDomListeners);_utils2.default.setDomListeners(\"remove\",this.domNode,this.widgetDomListeners);this._destructVis()}},{key:\"_destructVis\",value:function e(){if(!this.network)return;_utils2.default.setDomListeners(\"remove\",this.canvas,this.canvasDomListeners);this.network.destroy();this.network=null}},{key:\"openTiddlerWithId\",value:function e(t){var i=this;var a=$tm.tracker.getTiddlerById(t);this.logger(\"debug\",\"Opening tiddler\",a,\"with id\",t);if(this.enlargedMode===\"fullscreen\"){var s=$tw.wiki.findDraft(a);var r=!!s;if(!r){var n=\"tm-edit-tiddler\";this.dispatchEvent({type:n,tiddlerTitle:a});s=$tw.wiki.findDraft(a)}var o={draftTRef:s,originalTRef:a};$tm.dialogManager.open(\"fullscreenTiddlerEditor\",o,function(e,t){if(e){var n=\"tm-save-tiddler\";i.dispatchEvent({type:n,tiddlerTitle:s})}else if(!r){_utils2.default.deleteTiddlers([s])}var o=\"tm-close-tiddler\";i.dispatchEvent({type:o,tiddlerTitle:a})})}else{var l=this.domNode.getBoundingClientRect();this.dispatchEvent({type:\"tm-navigate\",navigateTo:a,navigateFromTitle:this.getVariable(\"storyTiddler\"),navigateFromNode:this,navigateFromClientRect:{top:l.top,left:l.left,width:l.width,right:l.right,bottom:l.bottom,height:l.height}})}}},{key:\"getViewHolderRef\",value:function e(){if(this.viewHolderRef){return this.viewHolderRef}this.logger(\"info\",\"Retrieving or generating the view holder reference\");var t=this.getAttr(\"view\");var i=null;if(t){this.logger(\"log\",'User wants to bind view \"'+t+\"' to graph\");var a=$tm.path.views+\"/\"+t;if($tw.wiki.getTiddler(a)){i=$tm.path.localHolders+\"/\"+_utils2.default.genUUID();this.logger(\"log\",'Created an independent temporary view holder \"'+i+'\"');_utils2.default.setText(i,a);this.logger(\"log\",'View \"'+a+\"' inserted into independend holder\")}else{this.logger(\"log\",'View \"'+t+'\" does not exist')}}if(!i){this.logger(\"log\",\"Using default (global) view holder\");i=$tm.ref.defaultViewHolder}return i}},{key:\"setView\",value:function e(t,i){if(!_ViewAbstraction2.default.exists(t)){return}t=new _ViewAbstraction2.default(t);var a=t.getLabel();i=i||this.viewHolderRef;this.logger(\"info\",'Inserting view \"'+a+'\" into holder \"'+i+'\"');$tw.wiki.addTiddler(new $tw.Tiddler({title:i,text:a}));this.update({changedTiddlers:_defineProperty({},i,true)})}},{key:\"getView\",value:function e(t){if(!t&&this.view){return this.view}var i=this.getViewHolderRef();var a=_utils2.default.getText(i);this.logger(\"debug\",\"Retrieved view from holder\");var s=void 0;if(_ViewAbstraction2.default.exists(a)){s=new _ViewAbstraction2.default(a)}else{this.logger(\"debug\",'Warning: View \"'+a+\"\\\" doesn't exist. Default is used instead.\");s=new _ViewAbstraction2.default(\"Default\")}return s}},{key:\"reloadBackgroundImage\",value:function e(t){var i=this;this.backgroundImage=null;var a=this.view.getConfig(\"background_image\");var s=_utils2.default.getTiddler(a);if(!s&&!a)return;var r=new Image;var n=function e(t){r.src=t};r.onload=function(){i.backgroundImage=r;i.repaintGraph()};if(s){var o=s.fields[\"_canonical_uri\"];if(o){_utils2.default.getImgFromWeb(o,n)}else if(s.fields.text){r.src=$tw.utils.makeDataUri(s.fields.text,s.fields.type)}}else if(a){_utils2.default.getImgFromWeb(a,n)}}},{key:\"repaintGraph\",value:function e(){var t=$tw.utils.hasClass(this.document.body,\"tmap-has-fullscreen-widget\");if(this.network&&(!t||t&&this.enlargedMode)){this.logger(\"info\",\"Repainting the whole graph\");this.network.redraw();this.fitGraph(0,1e3)}}},{key:\"setGraphButtonEnabled\",value:function e(t,i){var a=\"vis-button tmap-\"+t;var s=_utils2.default.getFirstElementByClassName(a,this.domNode);$tw.utils.toggleClass(s,\"tmap-button-enabled\",i)}},{key:\"setNodesMoveable\",value:function e(t,i){if(!t||!t.length||this.view.isEnabled(\"physics_mode\")){return}var a=[];var s=!i;for(var r=t.length;r--;){a.push({id:t[r],fixed:{x:s,y:s}})}this.graphData.nodes.update(a);if(s){this.logger(\"debug\",\"Fixing\",a.length,\"nodes\");this.view.saveNodePositions(this.network.getPositions());this.isPreventZoomOnNextUpdate=true}}},{key:\"addGraphButtons\",value:function e(t){var i=_utils2.default.getFirstElementByClassName(\"vis-navigation\",this.domNode);for(var a in t){var s=this.document.createElement(\"div\");s.className=\"vis-button tmap-\"+a;s.addEventListener(\"click\",t[a].bind(this),false);i.appendChild(s);this.setGraphButtonEnabled(a,true)}}}]);return t}(_widget.widget);exports.tmap=MapWidget;exports.tiddlymap=MapWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/MapWidget.js.map\n",
"type": "application/javascript",
"module-type": "widget"
},
"$:/plugins/felixhayashi/tiddlymap/license": {
"title": "$:/plugins/felixhayashi/tiddlymap/license",
"subtitle": "License",
"caption": "License",
"text": "\\rules except wikilink\n\n!! TiddlyMap\n\nCopyright (c) 2014, Felix Küppers\nAll rights reserved.\n\nTiddlyMap is licensed under the [[BSD 2-Clause License|http://opensource.org/licenses/BSD-2-Clause]]. For the exact license terms, please visit [[https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/LICENSE]]. \n\n!! TiddlyWiki\n\nCreated by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright © Jeremy Ruston 2004-2007 Copyright © UnaMesa Association 2007-2014\n\nPublished under the following [licenses](https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses):\n\n# BSD 3-clause \"New\" or \"Revised\" License (including any right to adopt any future version of a license if permitted)\n# Creative Commons Attribution 3.0 (including any right to adopt any future version of a license if permitted)\n\n!! Vis.js\n\nCopyright (c) 2014 [Almende B.V.](https://github.com/almende/vis)\n\nPublished under the following licenses:\n\n# Apache License Version 2.0, January 2004 http://www.apache.org/licenses/\n# MIT License (MIT)\n"
},
"$:/plugins/felixhayashi/tiddlymap/readme": {
"title": "$:/plugins/felixhayashi/tiddlymap/readme",
"text": "* Please refer to the project-readme hosted at [[https://github.com/felixhayashi/TW5-TiddlyMap]].\n* A demo with several examples and explanations can be found at [[http://tiddlymap.org]]."
},
"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tmap:unknown": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tmap:unknown",
"description": "Automatically assigned to an edge that does not have a type assigned",
"style": "{\"color\":\"gray\"}",
"show-label": "false"
},
"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-body:link": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-body:link",
"description": "A link that is contained in the tiddler's body pointing to another resource.",
"style": "{\"color\":\"orange\", \"dashes\":true}",
"label": "links to",
"text": ""
},
"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:list": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:list",
"description": "Contained in a list of this tiddler",
"style": "{ \"color\": \"red\", \"dashes\":true}",
"label": "listed in",
"text": ""
},
"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:tags": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:tags",
"description": "A tag that refers to a tiddler of the same name.",
"style": "{ \"color\": \"darkslategray\", \"dashes\":true}",
"label": "tagged with"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/default": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/default",
"caption": "Overview",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-plain\">\n Please visit the [[online docs|http://tiddlymap.org/Documentation]]\n for more information about the available global options.\n</div>\n<table class=\"tmap-key-value-table\">\n <tr>\n <th align=\"left\">Plugin version</th>\n <td><<pluginVersion>></td>\n </tr>\n<!--\n <tr>\n <th align=\"left\">Datastructure version</th>\n <td><<dataStructureVersion>></td>\n </tr>\n-->\n <tr>\n <th align=\"left\">Nodes in system</th>\n <td><<numberOfNodes>></td>\n </tr>\n <tr>\n <th align=\"left\">Edges in system</th>\n <td><<numberOfEdges>></td>\n </tr>\n</table>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/editor": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/editor",
"caption": "Editor",
"text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Neighbour­hood menu\"\n field:\"config.sys.editorMenuBar.showNeighScopeButton\"\n descr:\"Show or hide the neighbourhood menu button.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Screen­shot menu\"\n field:\"config.sys.editorMenuBar.showScreenshotButton\"\n descr:\"Show or hide the screenshot menu button.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Raster­ menu\"\n field:\"config.sys.editorMenuBar.showRasterMenuButton\"\n descr:\"Show or hide the raster menu button.\">>\n</table>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/fields": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/fields",
"caption": "Field settings",
"text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"Node-icon field\"\n field:\"config.sys.field.nodeIcon\" \n descr:\"Local image used as node image in the graphs.\">>\n <<tmap-row type:\"input-text\"\n title:\"Node-label field\"\n field:\"config.sys.field.nodeLabel\" \n descr:\"Alternative node label to use instead of the title.\">>\n <<tmap-row type:\"input-text\"\n title:\"Node-info field\"\n field:\"config.sys.field.nodeInfo\" \n descr:\"Field used as tooltip when hovering over a node in a graph.\"\n note:\"It is prohibited to use the text field here.\">>\n</table> \n\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/interaction": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/interaction",
"caption": "Interaction & behaviour",
"text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"Default startup view\"\n field=\"config.sys.defaultView\"\n nochoice=\"Last view used at startup\"\n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"The view to display at startup\" />\n <<tmap-row type:\"input-checkbox\"\n title:\"Show popups\"\n field:\"config.sys.popups.enabled\"\n descr:\"Set this to true if you want to see automatic\n popups in the map.\">>\n <$list filter=\"[config.sys.popups.enabled[true]]\">\n <<tmap-row type:\"input-text\"\n title:\"Popup delay\"\n field:\"config.sys.popups.delay\"\n descr:\"The time in miliseconds that needs to pass after\n a tooltip is triggered.\">>\n <<tmap-row type:\"input-text\"\n title:\"Popup width\"\n field:\"config.sys.popups.width\"\n descr:\"The default max-width of the popup.\"\n note:\"Make sure you added the desired unit (e.g. `px`).\n Requires a wiki refresh.\">>\n <<tmap-row type:\"input-text\"\n title:\"Popup height\"\n field:\"config.sys.popups.height\"\n descr:\"The default max-height of the popup.\"\n note:\"Make sure you added desired the unit (e.g. `px`).\n Requires a wiki refresh.\">>\n </$list>\n <<tmap-row type:\"input-checkbox\"\n title:\"Allow single click mode\"\n field:\"config.sys.singleClickMode\"\n descr:\"A single click on a node is sufficient to open the\n corresponding tiddler.\"\n note:\"Drag and drop will still work and does not cause a\n tiddler to be opened. Single click is never active in\n the map editor.\">>\n <<tmap-row type:\"input-select\"\n title:\"Edge click behaviour\"\n field:\"config.sys.edgeClickBehaviour\"\n selectFilter:\"[[nothing|Nothing]]\n [[manager|Open edge-type manager]]\"\n descr:\"What should happen when you click on an edge?\">>\n <<tmap-row type:\"input-select\" title:\"Raster size\" field:\"config.sys.raster\"\n selectFilter:\"[[|disabled]] [[5|5px]] [[10|10px]] [[15|15px]] [[20|20px]] [[30|30px]] [[40|40px]]\"\n descr:\"Snap nodes to an invisible raster of the given size after drag'n'drop.\"\n note:\"Only works when the view is not in floating mode\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Apply node-filter to neighbours\"\n field:\"config.sys.nodeFilterNeighbours\"\n descr:\"If checked, neighbours displayed in the map will be filtered\n by the view's node-filter. Otherwise the node-filter will only be used\n to filter the original set of nodes in the map\">>\n</table>\n\n!! Suppressed dialogs\n\n<div class=\"tmap-flash-message tmap-plain\">\n Dialogs that you decided to suppress in the past are listed here.\n Remove the checkmark to enable dialogs again.\n</div>\n\n<table class=\"tmap-config-table\">\n <$list\n filter=\"[<output>fields[]prefix[config.sys.suppressedDialogs]]\"\n emptyMessage=\"–\">\n <$set name=\"dialogName\" value=<<tmap basename \".\">>>\n <$macrocall $name=\"tmap-row\"\n type=\"input-checkbox\"\n title=\"Suppress '$(dialogName)$' dialog\"\n field=<<currentTiddler>> />\n </$set>\n <br />\n </$list>\n</table>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/liveTab": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/liveTab",
"caption": "Live tab",
"text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Live tab\"\n field:\"liveTab\" \n descr:\"Show or hide the live tab in the sidebar.\">>\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"Fallback view\"\n field=\"config.sys.liveTab.fallbackView\" \n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"The view to display in the sidebar's live tab in\n case the current tiddler did not specify a view\n to open.\" />\n</table>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig",
"subtitle": "{{$:/core/images/options-button}} Global configuration of TiddlyMap",
"classes": "tmap-remove-top-space",
"text": "\\rules except wikilink\n\n<$macrocall $name=\"tabs\"\n default=<<concat \"$(template)$/default\">>\n tabsList=\"[all[shadows]prefix<template>] -[<template>]\"\n/>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/verbosity": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/verbosity",
"caption": "Verbosity",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-plain\">\n Here you can restrict the system's talkativeness.\n</div>\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Debug output\"\n field:\"config.sys.debug\" \n descr:\"Set this to true if you want debug information to be\n displayed in the browser console.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show notifications\"\n field:\"config.sys.notifications\" \n descr:\"Set this to true if you want to receive fade-out\n notifications for important events.\">>\n</table> "
},
"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/vis": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/vis",
"classes": "tmap-remove-top-space",
"caption": "Graph",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n The global vis configurations will affect all views and their\n elements (nodes and edges) unless they are overridden on a lower\n level. All options below are documented at\n [[vis.js.org|http://visjs.org/docs/network]].\n</div>\n<div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on\n the graph. Other options are visible, yet, inactive.\n</div>\n<$tmap-config\n mode=\"manage-config\"\n inherited=\"vis-inherited\"\n extension=\"config.vis\" />"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/configureView/default": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/default",
"caption": "Overview",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n All configurations __only__ affect this view.\n</div>\n\n<table class=\"tmap-key-value-table\">\n <tr>\n <th align=\"left\">Created on</th>\n <td><<createdOn>></td>\n </tr>\n <tr>\n <th align=\"left\">Nodes contained in graph</th>\n <td><<numberOfNodes>></td>\n </tr>\n <tr>\n <th align=\"left\">Edges contained in graph</th>\n <td><<numberOfEdges>></td>\n </tr>\n</table>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters",
"caption": "Edit filters",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n Completely new to filters? Please read\n [[Introduction to filter notation|http://tiddlywiki.com/#Introduction%20to%20filter%20notation]]\n first.\n</div>\n\n<fieldset>\n <legend>Filters <sup>[1]</sup></legend>\n <table class=\"tmap-config-table tmap-large-input\">\n <<tmap-row type:\"input-textarea\"\n title:\"Node filter\"\n field:\"filter.prettyNodeFltr\"\n descr:\"In the map, only those tiddlers that match this filter\n are shown. Drafts and system tiddlers are automatically\n excluded.\">>\n <<tmap-row type:\"input-textarea\"\n title:\"Edge-type filter\"\n field:\"filter.prettyEdgeFltr\" \n descr:\"Only edges with a type that matches the filter are shown.\">>\n </table> \n</fieldset>\n\n---\n\n<sup>[1]</sup> In the editors above, a new line is equivalent to a space symbol.<br />\n<sup>[2]</sup> It is suggested to read\n[[Node and edge-type filters|http://tiddlymap.org#Node%20and%20edge-type%20filters]]\nand [[Edge-type namespaces|http://tiddlymap.org#Node%20and%20edge-type%20filters]]\nbefore using Tiddlymap's filter editor."
},
"$:/plugins/felixhayashi/tiddlymap/dialog/configureView/layout": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/layout",
"caption": "Layout",
"text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Floating nodes\"\n field:\"config.physics_mode\" \n descr:\"Set this to true if you want your nodes to freely\n swirl around.\">>\n <<tmap-row type:\"input-text\"\n title:\"Background image\"\n field:\"config.background_image\" \n descr:\"The title of an image tiddler to be used as background\n in the view.\"\n note:\"You can also use an image url directly, however, the\n image needs be stored under the same domain as your wiki.\n Otherwise, it won't be displayed!\">>\n</table>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/configureView/namespace": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/namespace",
"caption": "Namespace",
"text": "\\rules except wikilink\n\n<table class=\"tmap-config-table tmap-small-input\">\n <<tmap-row type:\"input-text\"\n title:\"Edge-type namespace\"\n field:\"config.edge_type_namespace\" \n descr:\"A namespace (like `foaf` in `foaf:knows`) that will be\n automatically added to all edge types you create in\n this view. The namespace is only added if the types\n do not exist yet and do not have a namespace assigned yet.\n Namespaces are always hidden in the graph.\"\n note:\"Most likely, you don't want the edges created with this\n namespace to leak into other views, moreover, you don't\n want edges that do not possess the namespace ever to be\n shown here. In this case, use a private marker (`_`)\n in front of your namespace, e.g. `_mynamespace` and use\n an appropriate edge type filter, i.e. `+[prefix[_mynamespace]]`\n For further information see:\n \n * [[Edge-type namespaces|http://tiddlymap.org/#Edge-type%20namespaces]]\n * [[Private edge types|http://tiddlymap.org/#Private%20edge%20types]]\n \">>\n</table>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/configureView": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView",
"subtitle": "{{$:/core/images/options-button}} View configuration -- <<view>>",
"text": "\\rules except wikilink\n\n\\define privateEdgeTypes() [[private edge-types|http://tiddlymap.org/#Private%20edge%20types]]\n\n<$macrocall $name=\"tabs\"\n default=<<concat \"$(template)$/default\">>\n tabsList=\"[all[shadows]prefix<template>] -[<template>]\"\n/>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/configureView/vis": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/vis",
"caption": "Graph",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n The local vis configurations will affect all\n elements (nodes and edges) of this view, unless they are\n overridden on a lower level. All options below are documented at\n [[vis.js.org|http://visjs.org/docs/network]].\n</div>\n<div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on the\n graph. Other options are visible, yet, inactive.\n</div>\n<$tmap-config\n mode=\"manage-config\"\n inherited=\"vis-inherited\"\n extension=\"config.vis\" />"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/getEdgeType": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/getEdgeType",
"subtitle": "{{$:/plugins/felixhayashi/tiddlymap/icon}} Edge type specification",
"text": "\\rules except wikilink\n\\rules except underscore\n\n\\define filter() $(allEdgeTypes)$ +[search:title[$(term)$]]\n\n\\define badge(color, label, tooltip)\n<span style=\"background: $color$\" title=\"$tooltip$\">$label$</span>\n\\end\n\n\\define badges()\n<$tiddler tiddler={{!!text}}>\n<$set name=\"id\" value=<<tmap \"getETyId\" \"$(view)$\">>>\n<$set name=\"isVisible\" value=<<tmap \"isETyVisible\" \"$(view)$\">>>\n<div class=\"tmap-badges\">\n <span\n style=\"background: darkslategray\"\n title=\"Your input translates into this id.\">\n <<id>>\n </span>\n <$list filter=\"[<isVisible>regexp[true]]\">\n <<badge \"green\" \"visible\" \"Matches your view's filter\">>\n </$list>\n <$list filter=\"[<isVisible>regexp[false]]\">\n <<badge \"red\" \"not visible\" \"Doesn't match your view's filter\">>\n </$list>\n <$list filter=\"[<id>!regexp[^tmap:unknown$]]\" variable=\"item\">\n <$list filter=\"[<id>regexp[^_]]\">\n <<badge \"purple\" \"private\" \"Not shown in other views per default\">>\n </$list>\n <$list filter=\"[<id>regexp[.+:.+]]\">\n <<badge \"orange\" \"namespace\" \"This type is prefixed with a proper namespace\">>\n </$list>\n </$list>\n</div>\n</$set>\n</$set>\n</$tiddler>\n\\end\n\n\\define search()\n<p>\n You are about to connect \"<$text text=\"$(fromLabel)$\" />\"\n with \"<$text text=\"$(toLabel)$\" />\". Please specify a type.\n</p>\n<table id=\"tmap-search-table\">\n <tr>\n <td><b>Type:</b></td>\n <td>\n <$edit-text\n focus=\"true\"\n field=\"text\"\n type=\"text\"\n tag=\"input\"\n default=\"\"\n class=\"tmap-trigger-field\n tmap-triggers-ok-button-on-enter\n tmap-triggers-cancel-button-on-esc\" />\n <<badges>>\n </td>\n </tr>\n <tr>\n <td></td>\n <td>\n <$set name=\"term\" value={{!!text}}>\n <$set name=\"allEdgeTypes\" value=<<tmap \"option\" \"selector.allEdgeTypesById\">>>\n <ul class=\"tmap-small-list\">\n <$list filter=<<filter>>>\n <li>\n <$button class=\"tc-btn-invisible tmap-link\">\n <$view field=\"title\" />\n <$action-setfield $tiddler=<<output>> text={{!!title}} />\n </$button>\n </li>\n </$list>\n </ul>\n </$set>\n </$set>\n </td>\n </tr>\n</table>\n\\end\n\n<$list filter=\"[<temp>!has[more]]\" variable=\"item\"><<search>></$list>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/addNodeToMap": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/addNodeToMap",
"subtitle": "{{$:/core/images/tag-button}} Add node",
"classes": "tmap-modal-add-node",
"text": "\\rules except wikilink\n\n\\define backButtonText() back to list\n\\define outputAndTemplate() [[$(output)$]] [[$(template)$]]\n\n\\define editor()\n <$button class=\"tmap-go-back tc-btn-invisible\">\n {{$:/core/images/chevron-left}} <<backButtonText>>\n <$action-deletefield $tiddler=<<temp>> more template />\n <$action-sendmessage\n $message=\"tmap:tm-clear-tiddler\"\n keep=\"draft.title\"\n title=<<output>> />\n </$button>\n\n <$list filter=\"[<output>get[draft.title]is[tiddler]]\">\n <div class=\"tmap-flash-message tmap-warning\">\n Tiddler already exists! Use another title or click\n \"<<backButtonText>>\" to cancel your edit.\n </div>\n </$list>\n\n <div class=\"tmap-modal-editor\">\n <table class=\"tmap-config-table\">\n <tr class=\"tmap-template-select\">\n <td>Template</td>\n <td>\n <$select\n tiddler=<<temp>>\n field=\"template\">\n <option value=\"\"></option>\n <$list filter=<<tmap \"option\" \"selector.allPotentialNodes\">>>\n <option><$view field=\"title\" /></option>\n </$list>\n </$select>\n <$button>Load\n <$action-sendmessage\n $message=\"tmap:tm-clear-tiddler\"\n keep=\"draft.title\"\n title=<<output>> />\n <$list filter=\"[<temp>get[template]]\" variable=\"template\">\n <$action-sendmessage\n $message=\"tmap:tm-merge-tiddlers\"\n tiddlers=<<outputAndTemplate>>\n output=<<output>> />\n <$action-deletefield $tiddler=<<output>> tmap.id tmap.edges />\n </$list>\n </$button>\n </td>\n <td>Press the \"load\" button to activate the template.</td>\n </tr>\n </table>\n <$importvariables filter=\"[all[tiddlers+shadows]prefix[$:/core/macros/]]\">\n <$set name=\"currentTiddler\" value=<<output>>>\n <$transclude tiddler=\"$:/core/ui/EditTemplate\" mode=\"block\" />\n </$set>\n </$importvariables>\n </div>\n\\end\n\n\\define search()\n<p>Add an existing tiddler to the map or create a new one.</p>\n<table id=\"tmap-search-table\">\n <tr>\n <td><b>Title:</b></td>\n <td>\n <$edit-text\n tiddler=<<output>>\n field=\"draft.title\"\n focus=\"true\"\n type=\"text\"\n tag=\"input\"\n default=\"\"\n class=\"tmap-trigger-field\n tmap-triggers-ok-button-on-enter\n tmap-triggers-cancel-button-on-esc\" />\n <$list filter=\"[<output>get[draft.title]!is[tiddler]]\">\n <$button\n tooltip=\"The tiddler does not exist yet and you may edit it\n before it is added to the map\">\n {{$:/core/images/edit-button}}\n <$action-setfield $tiddler=<<temp>> more=\"true\" />\n </$button> <sup>[1]</sup>\n </$list>\n </td>\n </tr>\n <tr>\n <td></td>\n <td>\n <$set name=\"term\" value={{!!draft.title}}>\n <ul class=\"tmap-small-list\">\n <$list filter=\"[search:title<term>!is[system]!has[draft.of]]\">\n <li>\n <$button class=\"tc-btn-invisible tmap-link\">\n <$view field=\"title\" />\n <$action-setfield $tiddler=<<output>> draft.title={{!!title}} />\n </$button>\n </li>\n </$list>\n </ul>\n </$set>\n </td>\n </tr>\n</table>\n\n<$list filter=\"[<output>get[draft.title]!is[tiddler]]\">\n<hr />\n<sup>[1]</sup>\n<small>\n The tiddler does not exist yet and you may edit it\n before it is added to the map\n</small>\n</$list>\n\\end\n\n<$list filter=\"[<temp>!has[more]]\" variable=\"item\"><<search>></$list>\n<$list filter=\"[<temp>has[more]]\" variable=\"item\"><<editor>></$list>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/cannotDeleteViewDialog": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/cannotDeleteViewDialog",
"subtitle": "{{$:/core/images/locked-padlock}} You cannot delete this view!",
"buttons": "ok",
"text": "\\rules except wikilink\n\nIt is not possible to delete the current view as ''<<count>>'' tiddlers\nare referencing it. To delete the view you must first remove the tiddlymap\nwidgets in the tiddlers listed below or change their view attributes.\n\n''References''\n\n<ul>\n<$list filter=<<refFilter>> variable=\"item\">\n <li><$link><<item>></$link></li>\n</$list>\n</ul>\n\nAfter the references are removed, you may delete the view.\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/getConfirmation": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/getConfirmation",
"subtitle": "{{$:/core/images/import-button}} You must confirm in order to proceed!",
"text": "\\rules except wikilink\n\n<<message>>\n\n''Are you really sure you want to do this?''"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/createView": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/createView",
"subtitle": "{{$:/core/images/new-button}} Creating a new view",
"text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"View name\"\n field:\"name\"\n focus:\"true\"\n class:\"tmap-trigger-field\n tmap-triggers-ok-button-on-enter\n tmap-triggers-cancel-button-on-esc\"\n descr:\"The name for the new view. If no name is entered,\n the program will invent one for you.\"\n note:\"You cannot override an existing view. In this case,\n you need to delete the old view first! You must no use\n slashes (`/`) in the name.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Clone view\"\n field:\"clone\"\n descr:\"Use the view that is currently displayed in the\n editor as blueprint. The view will be an __exact__\n clone of the current one, only with a different\n name.\">>\n</table>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/deleteNodeDialog": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/deleteNodeDialog",
"subtitle": "{{$:/core/images/delete-button}} You are about to delete <<count>> nodes",
"text": "\\rules except wikilink\n\n''Please choose an option or abort:''\n\n<$radio tiddler=<<output>> field=\"delete-from\" value=\"system\">\n Delete nodes from system <sup>[1]</sup>\n</$radio><br />\n<$radio tiddler=<<output>> field=\"delete-from\" value=\"filter\">\n Delete nodes from graph's filter <sup>[2]</sup>\n</$radio>\n\nThe following nodes will be deleted:\n\n<ul>\n<$list filter=<<tiddlers>>>\n <li><$view tiddler={{!!title}} field=\"title\" /></li>\n</$list>\n</ul>\n\n---\n\n<sup>[1]</sup>\n<small>This will delete all nodes, their corresponding tiddlers and all connected edges.</small><br/>\n<sup>[2]</sup>\n<small>''Important:'' Removing a node from the graph's filter only works, if the node has been added in the map editor per double click or via \"Add Node\". If the node hasn't been added as mentioned above, you need to change the underlying tiddler in a way that it doesn't match your filter anymore, if you don't want it to be displayed in the graph.</small>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/dublicateIdInfo": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/dublicateIdInfo",
"subtitle": "{{$:/core/images/info-button}} Dublicate id detected",
"buttons": "ok_suppress",
"text": "\\rules except wikilink\n\nTiddlyMap requires the value of the id field (\"tmap.id\") to be\nunique in order to correctly identify nodes and tiddlers.\n\nThe id of the \"<<param.changedTiddler>>\" already exists for these tiddlers:\n\n<ul>\n<$list filter=<<param.filter>> variable=\"item\">\n <li><$link><<item>></$link></li>\n</$list>\n</ul>\n\nTherefore TiddlyMap\n\n* assigned a new id to tiddler \"<<param.changedTiddler>>\"\n* removed all edges from \"<<param.changedTiddler>>\"\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/edgeNotVisible": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/edgeNotVisible",
"subtitle": "{{$:/core/images/info-button}} Edge will not be visible in view \"<<view>>\"",
"buttons": "ok_suppress",
"text": "\\rules except wikilink\n\nYou just created an edge of type\n<code><$text text=<<type>> /></code> that will not be\nvisible in this view because it doesn't match your\nedge-type filter settings.\n\nThe current edge-type filter of view \"<<view>>\" looks like this:\n\n<pre><code><$text text=<<eTyFilter>> /></code></pre>\n\nTo have the newly added type displayed in your view, adjust your\nedge-type filter accordingly. \n\nSome suggestions:\n\n<ul>\n <li>\n Explicitly add the type to the filter:\n <code><$text text=\"[[\" /><$text text=<<type>> /><$text text=\"]]\" /></code>\n </li>\n <li>\n <$set\n filter=\"[<type>regexp[:]splitbefore[:]]\"\n name=\"prefix\"\n emptyValue=<<tmap halfOfString \"$(type)$\">>>\n Add a filter rule (e.g. a prefix filter) that will match\n your type: <code>[prefix[<<prefix>>]]</code>\n </$set>\n </li>\n <li>Make your current view-filter less restrictive.</li>\n</ul>\n\nFor further information, please see:\n[[Node and edge-type filters|http://tiddlymap.org#Node%20and%20edge-type%20filters]]."
},
"$:/plugins/felixhayashi/tiddlymap/dialog/editNode/default": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/editNode/default",
"caption": "Global node style",
"classes": "tmap-remove-top-space",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n A node's ''global configuration''\n (also referred to as //global individual config//) defines its\n individual appearance and behaviour in all views.\n</div>\n<<maybeShowTidColorWarning>>\n \n<$macrocall $name=\"sharedSettings\"\n twIconField=<<tidIconField>>\n faIconField=\"global.tmap.fa-icon\"\n labelField=<<tidLabelField>> />\n\n<$macrocall $name=\"visConfiguration\"\n mode=\"manage-node-types\"\n extensionField=\"global.tmap.style\"\n styleName=\"node's global style\"\n inheritedList=\"[[inherited-global-default-style]]\n [[inherited-local-default-style]]\n [[inherited-group-styles]]\" />"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/editNode/local": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/editNode/local",
"caption": "Local node style",
"classes": "tmap-remove-top-space",
"text": "\\rules except wikilink\n \n<div class=\"tmap-flash-message tmap-info\">\n The ''local node configuration'' \n (also referred to as //view-specific node configuration//)\n overrides the //global individual configuration// and only affects\n the node's appearance and behaviour in the current view.\n</div>\n<<maybeShowTidColorWarning>>\n\n<fieldset>\n <legend>Behaviour</legend>\n <table class=\"tmap-config-table\">\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"Open view\"\n field=\"local.open-view\"\n nochoice=\"Disabled\"\n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"Clicking on this node will open the specified\n view instead of the tiddler represented by this node.\" />\n </table>\n</fieldset>\n\n<$macrocall $name=\"sharedSettings\"\n twIconField=\"local.tw-icon\"\n faIconField=\"local.fa-icon\"\n labelField=\"local.label\" />\n \n<$macrocall $name=\"visConfiguration\"\n mode=\"manage-node-types\"\n extensionField=\"local-node-style\"\n styleName=\"node's local style\"\n inheritedList=\"[[inherited-global-default-style]]\n [[inherited-local-default-style]]\n [[inherited-group-styles]]\n [[global.tmap.style]]\" />"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/editNode": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/editNode",
"subtitle": "{{$:/core/images/edit-button}} Editing style of node \"<<tiddler>>\"",
"classes": "tmap-remove-top-space",
"text": "\\rules except wikilink\n\n\\define maybeShowTidColorWarning()\n <$list filter=\"[<tidColor>regexp[.+]]\">\n <div class=\"tmap-flash-message tmap-warning\">\n You have set the tiddler's color\n field to \"<<tidColor>>\". This value will be completely ignored\n when you change node's color properties in the vis editor below.\n </div>\n </$list>\n\\end\n\n\\define iconSettings(twIconField, faIconField)\n <fieldset>\n <legend>Icon Settings</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"TW-icon\"\n field:\"$twIconField$\"\n descr:\"A tiddlywiki image reference.\n For example '$:/core/icon' for Movotun Jack.\">>\n <<tmap-row type:\"input-text\"\n title:\"FA-icon\"\n field:\"$faIconField$\"\n descr:\"A Font Awesome icon code.\n For example 'f206' for the bicycle symbol.\">>\n </table>\n </fieldset>\n\\end\n\n\\define sharedSettings(twIconField, faIconField, labelField)\n <fieldset>\n <legend>General Settings</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"Label\"\n field:\"$labelField$\"\n descr:\"Use this value as node label.\">>\n </table>\n </fieldset>\n <!-- display icon fieldset -->\n <<iconSettings \"$twIconField$\" \"$faIconField$\">> \n\\end\n\n<$macrocall\n $name=\"tabs\"\n default=<<concat \"$(template)$/default\">>\n tabsList=\"[all[shadows]prefix<template>] -[<template>]\"\n/>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft",
"caption": "Draft",
"text": "\\rules except wikilink\n\n<div class=\"tmap-modal-editor\">\n <$importvariables filter=\"[all[tiddlers+shadows]prefix[$:/core/macros/]]\">\n <$set name=\"currentTiddler\" value=<<draftTRef>> >\n <$transclude tiddler=\"$:/core/ui/EditTemplate\" field=\"text\" mode=\"block\" />\n </$set>\n </$importvariables>\n</div>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/original": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/original",
"caption": "Current Version",
"text": "\\rules except wikilink\n\n<div class=\"tmap-modal-editor\">\n <$importvariables filter=\"[all[tiddlers+shadows]prefix[$:/core/macros/]]\">\n <$set name=\"currentTiddler\" value=<<originalTRef>> >\n <$transclude tiddler=\"$:/core/ui/ViewTemplate\" field=\"text\" mode=\"block\" />\n </$set>\n </$importvariables>\n</div>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor",
"subtitle": "{{$:/core/images/edit-button}} <<originalTRef>>",
"classes": "tmap-modal-fullscreen-editor tmap-remove-top-space",
"text": "\\rules except wikilink\n\n\\define defaultTab() $:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/original\n\n<$macrocall $name=\"tabs\"\n default=<<defaultTab>>\n tabsList=\"[all[shadows]prefix[$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/]]\" />"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/fieldChanged": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/fieldChanged",
"subtitle": "{{$:/core/images/info-button}} The field \"<<name>>\" changed",
"text": "\\rules except wikilink\n\nYou changed the field \"<<name>>\" from \"<<oldValue>>\" to \"<<newValue>>\".\n\nIt is recommended to let TiddlyMap copy all values from the former field \"<<oldValue>>\" to the new field \"<<newValue>>\" so the data stored in \"<<oldValue>>\" is not lost. This operation has to be done now or never.\n\nDo you want to move each tiddler's existing \"<<oldValue>>\" value to \"<<newValue>>\"? Please note that any value currently stored in \"<<newValue>>\" would consequently be overridden and the old field \"<<oldValue>>\" would be eventually removed!"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenNotSupported": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenNotSupported",
"subtitle": "{{$:/core/images/info-button}} Your machine does not support fullscreen",
"buttons": "ok_suppress",
"text": "\\rules except wikilink\n\nPlease have a look [[here|http://caniuse.com/#feat=fullscreen]] to see a list of supported devices/browsers.\n\nSorry for this :("
},
"$:/plugins/felixhayashi/tiddlymap/dialog/renameView": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/renameView",
"subtitle": "{{$:/core/images/tag-button}} Please specify a view name",
"text": "\\rules except wikilink\n\n''Name:''\n<$edit-text focus=\"true\" tiddler=<<output>> field=\"text\" type=\"text\" tag=\"input\" default=\"\"\n class=\"tmap-trigger-field tmap-triggers-ok-button-on-enter\" />\n\nNote that ''<<count>>'' tiddlers are referencing this view.\n\n<$reveal type=\"nomatch\" text=\"0\" default=<<count>>>\n\nRenaming the view will cause the reference to be invalid.\nIt is recommended to first remove the tiddlymap widgets in\nthe tiddlers listed below or change their view attributes\naccordingly.\n\n''References''\n\n<ul>\n<$list filter=<<refFilter>> variable=\"item\">\n <li><$text text=<<item>> /></li>\n</$list>\n</ul>\n\n</$reveal>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/saveCanvas": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/saveCanvas",
"subtitle": "{{$:/core/images/options-button}} Save a snapshot image of view \"<<view>>\"",
"text": "\\rules except wikilink\n\n\\define preview()\n<div class=\"tmap-save-canvas-preview\">\n <$transclude tiddler=<<snapshot>> /><br />\n Measures: <<width>> × <<height>>\n</div>\n\\end\n\n<table class=\"tmap-config-table\">\n<!--\n <<tmap-row type:\"input-text\"\n title:\"Name\"\n field:\"name\">\n-->\n<$macrocall $name=\"tmap-row\"\n type=\"input-text\"\n title=\"Name\"\n field=\"name\"\n descr=<<preview>> />\n</table>\n\n<fieldset><legend>Options</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-radio\"\n title:\"Action\"\n field:\"action\" \n selectFilter:\"[[download|Download]]\n [[wiki|Save in wiki]]\n [[placeholder|Use as placeholder for this view]]\"\n descr:\"Save the image by downloading it to your computer or\n save it as a tiddler in your wiki.<br /><br />\n A third option is to make TiddlyMap use this image as\n placeholder for the current view. Placeholders are used\n when tiddlers are exported in form of static html\n or when editing a tiddler while having the preview\n shown. In this case the title input is ignored.\">>\n </table>\n</fieldset>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog",
"text": "\\rules except wikilink\n\n<div class=<<classes>>>\n<$importvariables\n filter=\"[[$:/plugins/felixhayashi/tiddlymap/misc/macros]]\n [[$:/core/macros/tabs]]\">\n<$transclude tiddler=<<template>> mode=\"block\" />\n</$importvariables>\n</div>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/welcome": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/welcome",
"subtitle": "{{$:/core/images/info-button }} Welcome",
"buttons": "ok",
"text": "\\rules except wikilink\n\nIt seems that you freshly installed TiddlyMap.\n\n* In case you need any help, please consult the [[online docs|http://tiddlymap.org#Documentation]] first.\n* You are welcome to create an [[issue|https://github.com/felixhayashi/TW5-TiddlyMap/issues]] at GitHub for any bug you discover.\n* Make sure to revisit the [[demo site|http://tiddlymap.org]] to see whether your version is up-to-date.\n* If you like TiddlyMap, please give it a star at [[GitHub|https://github.com/felixhayashi/TW5-TiddlyMap]] or tell your friends about it :)\n* ''Please note:'' TiddlyMap is distributed under the [[BSD 2-Clause License|http://opensource.org/licenses/BSD-2-Clause]], which belongs to the same license family, as the license used by TiddlyWiki. By using this plugin you agree to the product's [[License Terms|https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/LICENSE]].\n\nEnjoy!\n\n---\n\nTiddlyMap will configure your wiki for optimal use. Everything can be changed back later by you, via the TiddlyWiki configurations panel, so no worries. If you checked some of the options below, please save & restart after closing this dialog.\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Optimize storyview\"\n field:\"config.storyview\"\n descr:\"Sets the storyview to 'top' for optimal scrolling.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Optimize sidebar\"\n field:\"config.sidebar\"\n descr:\"Sets sidebar layout to 'fixed-fluid' for larger editor.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Optimize navigation\"\n field:\"config.navigation\"\n descr:\"Sets navigation style to open tiddlers at top for better map navigation.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Create demo welcome map\"\n field:\"config.demo\"\n descr:\"Creates a little hello world welcome map for you.\">>\n</table>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/widgetCodeGenerator": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/widgetCodeGenerator",
"subtitle": "{{$:/core/images/permalink-button}} Widget Code Generator",
"buttons": "close",
"text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n Use the code below to embed a view in a tiddler.\n</div>\n\n<pre style=\"white-space: normal;\">\n<$tmap\n\n<$list filter=\"[<output>has[var.view]]\">\n view=\"<$view field='var.view' />\"</$list>\n<$list filter=\"[<output>field:var.click-to-use[true]]\">\n click-to-use=\"true\"</$list>\n<$list filter=\"[<output>has[var.editor]]\">\n editor=\"<$view field='var.editor' />\"</$list>\n<$list filter=\"[<output>has[var.width]]\">\n width=\"<$view field='var.width' />\"</$list>\n<$list filter=\"[<output>has[var.height]]\">\n height=\"<$view field='var.height' />\"</$list>\n<$list filter=\"[<output>has[var.class]]\">\n class=\"<$view field='var.class' />\"</$list>\n<$list filter=\"[<output>field:var.show-buttons[false]]\">\n show-buttons=\"false\"</$list>\n<$list filter=\"[<output>has[var.design]]\">\n design=\"<$view field='var.design' />\"</$list>></$tmap>\n</pre>\n\n<fieldset>\n <legend>Parameters</legend> \n <table class=\"tmap-config-table\">\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"View\"\n field=\"var.view\"\n nochoice=\" \"\n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"The view to bind the wiedget to\" />\n <<tmap-row type:\"input-select\"\n title:\"Editor bar\"\n field:\"var.editor\"\n selectFilter:\"[[|Hidden]]\n [[vis|Simple]]\n [[advanced|Advanced]]\"\n descr:\"Whether the widget should act as an editor or not.\">>\n <<tmap-row type:\"input-select\"\n title:\"Design\"\n field:\"var.design\"\n selectFilter:\"[[|Normal]]\n [[plain|Plain]]\"\n descr:\"Usually a header is displayed and borders. Plain\n design will only show the mere graph.\">>\n <<tmap-row type:\"input-text\"\n title:\"Height\"\n field:\"var.height\"\n descr:\"Graph's height in css units. Defaults to '300px'.\">>\n <<tmap-row type:\"input-text\"\n title:\"Width\"\n field:\"var.width\"\n descr:\"Graph's width in css units. Defaults to '100%'.\">>\n <<tmap-row type:\"input-text\"\n title:\"Class\"\n field:\"var.class\"\n descr:\"A custom class to apply your own css.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Click to use\"\n field:\"var.click-to-use\"\n default:\"false\"\n descr:\"A click is needed to enable the graph.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show buttons\"\n field:\"var.show-buttons\"\n default:\"true\"\n descr:\"Show or hide the graph's navigation buttons.\">>\n </table>\n</fieldset>"
},
"$:/plugins/felixhayashi/tiddlymap/dialogFooter/close": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/close",
"text": "\\rules except wikilink\n\n<$button class=\"tmap-dialog-button tmap-close-button\" tooltip=\"Close this dialog\">Close\n\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n \n</$button>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok",
"text": "\\rules except wikilink\n\n<$button class=\"tmap-dialog-button tmap-ok-button\" tooltip=\"Confirm dialog\">OK\n\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n \n</$button>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_cancel": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_cancel",
"text": "\\rules except wikilink\n\n<$transclude tiddler=\"$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok\" mode=\"inline\" />\n<$button class=\"tmap-dialog-button tmap-cancel-button\" tooltip=\"Close dialog without saving\">Cancel\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"\" />\n</$button>\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_suppress": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_suppress",
"text": "\\rules except wikilink\n\n<$set name=\"currentTiddler\" value=<<title>> >\n\n<$checkbox field=\"suppress\" checked=\"1\" unchecked=\"0\" default=\"0\"> Do not show this dialog again</$checkbox>\n<$button class=\"tmap-dialog-button tmap-ok-button\" tooltip=\"Confirm this dialog\">OK\n\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n \n <!-- suppress dialog in the future -->\n <$action-sendmessage $message=\"tmap:tm-suppress-dialog\"\n dialog=<<templateId>>\n suppress={{!!suppress}} />\n \n</$button>\n\n</$set>"
},
"$:/plugins/felixhayashi/tiddlymap/dialogFooter": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter",
"text": "\\rules except wikilink\n\n\\define footer() $:/plugins/felixhayashi/tiddlymap/dialogFooter/$(buttons)$\n\n<$transclude tiddler=<<footer>> />\n\n<!-- we need this button to be able to close a tiddler from outside programmatically -->\n<$button class=\"tmap-hidden-close-button\" message=\"tm-close-tiddler\" />"
},
"$:/plugins/felixhayashi/tiddlymap/dialogFooter/element_type_manager": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/element_type_manager",
"text": "\\rules except wikilink\n\n<$button\n class=\"tmap-dialog-button tmap-save-button\"\n tooltip=\"Save the current changes\">Save\n <$action-sendmessage\n $message=\"tmap:tm-save-type-form\"\n mode=<<mode>>\n output=<<output>> />\n</$button>\n<$button\n class=\"tmap-dialog-button tmap-cancel-button\"\n tooltip=\"Cancel the most resent changes and exit\">Quit\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n</$button>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/deleteType": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/deleteType",
"caption": "Removal",
"text": "\\rules except wikilink\n\n\\define manage-edge-types()\n <$macrocall $name=\"tmap-row\"\n type=\"input-checkbox\"\n title=\"Delete type\"\n field=\"temp.deleteType\"\n default={{!id}}\n readonly={{!!temp.idImmutable}}\n descr=\"If you want to delete this type, set this to true\n and click the save button afterwards. Predefined system\n types cannot be deleted.\" note=\"Consequently, all edges\n of this type will be deleted.\" />\n\\end\n\n\\define manage-node-types()\n <$macrocall $name=\"tmap-row\"\n type=\"input-checkbox\"\n title=\"Delete type\"\n field=\"temp.deleteType\"\n default={{!id}}\n readonly={{!!temp.idImmutable}}\n descr=\"If you want to delete this type, set this to true and\n click the save button afterwards. Predefined system\n types cannot be deleted.\" />\n\\end\n\n<table class=\"tmap-config-table\"><$macrocall $name=<<mode>> /></table>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/description": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/description",
"caption": "Description",
"text": "\\rules except wikilink\n\n\\define manage-edge-types()\n <<tmap-row type:\"input-textarea\"\n title:\"Description\"\n field:\"description\"\n descr:\"An optional description for this type. The\n description will be displayed as tooltip when\n moving the mouse over an edge of this type.\">>\n\\end\n\n\\define manage-node-types()\n <<tmap-row type:\"input-textarea\"\n title:\"Description\"\n field:\"description\" \n descr:\"An optional description for this type.\">>\n\\end\n\n<table class=\"tmap-config-table\">\n <$macrocall $name=<<mode>> />\n</table>\n\n"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/generalSettings": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/generalSettings",
"caption": "General",
"text": "\\rules except wikilink\n\n\\define manage-edge-types()\n <<tmap-row type:\"input-text\"\n title:\"Label\"\n field:\"label\" \n descr:\"An optional alias used as edge-label.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show label\"\n field:\"show-label\"\n default:\"true\"\n descr:\"If unchecked, no edge label will be displayed.\">>\n\\end\n\\define manage-node-types()\n <$list filter=\"[<currentTiddler>!regexp:id[tmap:]]\">\n <<tmap-row type:\"input-textarea\"\n title:\"Scope\"\n field:\"scope\" \n descr:\"A filter expression that defines, which nodes inherit\n this node-type and its style.\">>\n </$list>\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\" \n title=\"Priority\"\n field=\"priority\"\n selectFilter=<<tmap \"scale\" \"100\">>\n descr=\"When a type has a a higher priority than another type,\n its style will override the other style\" />\n\\end\n\n<table class=\"tmap-config-table\">\n <$macrocall\n $name=\"tmap-row\"\n title=\"Identifier\"\n field=\"temp.newId\"\n type=\"input-text\"\n default={{!!id}}\n readonly={{!!temp.idImmutable}}\n descr=\"A unique identifier\"\n />\n <$macrocall $name=<<mode>> />\n</table>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/overview": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/overview",
"caption": "Overview",
"text": "\\rules except wikilink\n\n\\define date(f) <$view field=$f$ format=\"date\" template=\"DDth mmm hh:mm:ss\"/>\n\n! <$link to={{!!typeTRef}}><$view field=\"id\" /></$link>\n\n<table class=\"tmap-key-value-table\">\n <tr>\n <th align=\"left\">Created on</th>\n <td>\n <<date \"created\">>\n </td>\n </tr>\n <tr>\n <th align=\"left\">Modified on</th>\n <td><<date \"modified\">></td>\n </tr>\n <tr>\n <th align=\"left\">Usage count</th>\n <td>\n <span class=\"tmap-edge-type-specific\">\n <$view field=\"temp.usageCount\" />\n </span>\n <span class=\"tmap-node-type-specific\">\n <$count filter={{!!scope}}>0</$count>\n </span>\n </td>\n </tr>\n</table>\n\n<$view field=\"description\">//No description available//</$view>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/styling": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/styling",
"caption": "Styling",
"text": "\\rules except wikilink\n\n\\define url()\n <$set\n filter=\"[<mode>prefix[manage-edge-types]]\"\n name=\"module\"\n value=\"edges\"\n emptyValue=\"nodes\">\n [[visjs.org|http://visjs.org/docs/network/$(module)$]]\n </$set>\n\\end\n\n<fieldset class=\"tmap-node-type-specific\">\n <legend>Icon Settings</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"TW-icon\"\n field:\"tw-icon\"\n descr:\"A tiddlywiki image reference.\n For example '$:/core/icon' for Movotun Jack.\">>\n <<tmap-row type:\"input-text\"\n title:\"FA-icon\"\n field:\"fa-icon\"\n descr:\"A Font Awesome icon code.\n For example 'f206' for the bicycle symbol.\">>\n </table>\n</fieldset>\n\n<fieldset><legend>Visjs styles</legend>\n <div class=\"tmap-flash-message tmap-info\">\n All visjs options below are documented at <<url>>.\n </div>\n <div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on\n the graph. Other options are visible, yet, inactive.\n </div>\n <$tmap-config\n mode=<<mode>>\n inherited=\"vis-inherited\"\n extension=\"style\" />\n</fieldset>"
},
"$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager": {
"title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager",
"subtitle": "{{$:/core/images/tag-button}} <<topic>>",
"buttons": "element_type_manager",
"classes": "tmap-remove-top-space",
"text": "\\rules except wikilink\n\n\\define defaultTab()\n$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/overview\n\\end\n\n\\define settingsTab()\n$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/generalSettings\n\\end\n\n\\define tabsFilter()\n[all[shadows]prefix[$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/]]\n\\end\n\n\\define searchFilter()\n$(searchSelector)$\n+[sort[title]nsort[priority]]\n+[removeprefix<typeRootPath>removeprefix[/]]\n+[search:title{$:/temp/tmap/MapElementTypeSearch}]\n\\end\n\n\\define managerClass() tmap-$(mode)$\n\n\\define typePath() $(typeRootPath)$/$(id)$\n\n<div id=\"tmap-element-type-manager\" class=<<managerClass>>>\n <div>\n <div class=\"tmap-searchbar\">\n <$edit-text\n focus=\"true\"\n tiddler=\"$:/temp/tmap/MapElementTypeSearch\"\n type=\"text\"\n tag=\"input\"\n default=\"\" />\n <$list filter=\"[{$:/temp/tmap/MapElementTypeSearch}regexp[.+]]\n +[addprefix[/]]\n +[addprefix<typeRootPath>]\n +[!is[tiddler]!is[shadow]]\">\n <$button tooltip=\"Create a new type of this name\">\n {{$:/core/images/new-button}}\n <$action-sendmessage\n $message=\"tmap:tm-create-type\"\n mode=<<mode>>\n id={{$:/temp/tmap/MapElementTypeSearch}}\n output=<<output>> />\n <$action-setfield $tiddler=\"$:/temp/tmap/MapElementTypeSearch\" text=\"\" />\n </$button>\n </$list>\n\n </div>\n <ul>\n <$list\n filter=<<searchFilter>>\n emptyMessage=<<noTypeFound>>\n variable=\"id\">\n <li>\n <span class=\"tmap-ranking tmap-node-type-specific\">\n # <$view tiddler=<<typePath>> field=\"priority\">1</$view>\n </span>\n <$button class=\"tc-btn-invisible tmap-link\"><<id>>\n <$action-setfield\n $tiddler=<<qualify \"$:/state/tabs/MapElementTypeManager\">>\n text=<<defaultTab>> />\n <$action-sendmessage\n $message=\"tmap:tm-load-type-form\"\n id=<<id>>\n mode=<<mode>>\n output=<<output>> />\n </$button>\n </li>\n </$list>\n </ul>\n </div>\n <div>\n <$reveal type=\"nomatch\" text=\"\" default={{!!id}} >\n <$macrocall\n $name=\"tabs\"\n default=<<defaultTab>>\n state=\"$:/state/tabs/MapElementTypeManager\"\n tabsList=<<tabsFilter>> />\n </$reveal>\n <$reveal type=\"match\" text=\"\" default={{!!id}} >\n <div class=\"tmap-flash-message tmap-info\">\n Please select a type from the list or create a new one by\n entering the type name in the search field on the left.\n </div>\n <div class=\"tmap-flash-message tmap-info tmap-node-type-specific\">\n The number next to the node-type label represents it's priority.\n </div>\n </$reveal>\n </div>\n</div>\n"
},
"$:/plugins/felixhayashi/tiddlymap/editor/contextMenu/node": {
"title": "$:/plugins/felixhayashi/tiddlymap/editor/contextMenu/node",
"text": "\\define single()\n <$list filter=\"\n [[tmap:tm-toggle-central-topic, $:/core/images/star-filled, Toggle central topic]]\n [[tmap:tm-delete-element, $:/core/images/delete-button, Delete node]]\">\n <$button class=\"tc-btn-invisible\">\n <$action-sendmessage $message=<<tmap \"splitAndSelect\" \", \" \"0\">> />\n <$transclude tiddler=<<tmap \"splitAndSelect\" \", \" \"1\">> />\n <<tmap \"splitAndSelect\" \", \" \"2\">>\n </$button>\n </$list>\n\\end\n\n\\define multi()\n <$list filter=\"\n [[tmap:tm-delete-element, $:/core/images/delete-button, Delete selected nodes]]\">\n <$button class=\"tc-btn-invisible\">\n <$action-sendmessage $message=<<tmap \"splitAndSelect\" \", \" \"0\">> />\n <$transclude tiddler=<<tmap \"splitAndSelect\" \", \" \"1\">> />\n <<tmap \"splitAndSelect\" \", \" \"2\">>\n </$button>\n </$list>\n\\end\n\n<div class=\"tc-drop-down\">\n <$macrocall $name=<<mode>> />\n</div>"
},
"$:/plugins/felixhayashi/tiddlymap/misc/advancedEditorBar": {
"title": "$:/plugins/felixhayashi/tiddlymap/misc/advancedEditorBar",
"text": "\\rules except wikilink\n\\define showEdgeField() show-$(curEdgeId)$\n\n<!-- === View Switcher ========================================== -->\n\n<div class=\"tmap-menu-bar\">\n View:\n <$reveal type=\"match\" text=\"false\" default=<<isViewBound>> >\n <$select\n tiddler=<<viewHolder>>\n field=\"text\"\n default=<<viewLabel>> >\n <$list filter=<<tmap \"option\" \"selector.allViewsByLabel\">> >\n <option value={{!!title}}>\n <$view tiddler={{!!title}} field=\"title\" />\n </option>\n </$list>\n </$select>\n </$reveal>\n <$reveal type=\"match\" text=\"true\" default=<<isViewBound>> >\n <b><<viewLabel>></b>\n </$reveal>\n\n<!-- === Menu =================================================== -->\n\n <$button\n popup=<<qualify \"$:/temp/menu\">>\n tooltip=\"Open the Menu\">{{$:/core/images/menu-button}}\n </$button>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/menu\">> >\n <div class=\"tc-drop-down\">\n <a href=\"http://tiddlymap.org#Documentation\" target=\"_blank\">\n {{$:/core/images/info-button}} Open online help\n </a>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-create-view\">\n {{$:/core/images/new-button}} Create new view\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-generate-widget\">\n {{$:/core/images/permalink-button}} Grab widget code\n </$button>\n <div class=\"tmap-list-separator\">Global configurations:</div>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-configure-system\">\n {{$:/core/images/options-button}} Configure TiddlyMap\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-manage-edge-types\">\n <span class=\"tmap-unicode-icon\">◭</span> Manage edge-types\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-manage-node-types\">\n <span class=\"tmap-unicode-icon\">▢</span> Manage node-types\n </$button>\n <div class=\"tmap-view-actions\">\n <div class=\"tmap-list-separator\">Actions for this view:</div>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-edit-view\">\n {{$:/core/images/options-button}} Configure view\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-rename-view\">\n {{$:/core/images/tag-button}} Rename view\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-delete-view\">\n {{$:/core/images/delete-button}} Delete view\n </$button>\n </div>\n </div>\n </$reveal>\n\n<!-- === Neighbourhood menu ===================================== -->\n\n <$reveal\n type=\"match\"\n text=\"true\"\n default=<<tmap \"option\"\n \"config.sys.editorMenuBar.showNeighScopeButton\">>>\n <$button\n class=<<neighScopeBtnClass>>\n tooltip=\"Change the neighbourhood scope\"\n popup=<<qualify \"$:/temp/neighScope\">>>\n ☀\n </$button>\n </$reveal>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/neighScope\">> >\n <div class=\"tc-drop-down\">\n <div class=\"tmap-list-separator\">Neighbourhood scope</div>\n <$button class=\"tc-btn-invisible\">None\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.neighbourhood_scope=\"\" />\n </$button>\n <$list filter=\"[[1|1 step distance]]\n [[2|2 step distance]]\n [[3|3 step distance]]\n [[4|4 step distance]]\n [[5|5 step distance]]\">\n <$button class=\"tc-btn-invisible\">\n <<tmap \"splitAndSelect\" \"|\" \"1\">>\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.neighbourhood_scope=<<tmap \"splitAndSelect\" \"|\" \"0\">> />\n </$button>\n </$list>\n <$button class=\"tc-btn-invisible\">No limit\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.neighbourhood_scope=\"100\" />\n </$button>\n <div class=\"tmap-list-separator\">Neighbourhood traversal</div>\n <$radio field=\"config.neighbourhood_directions\" value=\"in\"> Incoming</$radio><br />\n <$radio field=\"config.neighbourhood_directions\" value=\"out\"> Outgoing</$radio><br />\n <$radio field=\"config.neighbourhood_directions\" value=\"\"> Both</$radio>\n <div class=\"tmap-list-separator\">Other</div>\n <$checkbox field=\"config.show_inter_neighbour_edges\"\n checked=\"true\" unchecked=\"false\"> Inter-neighbour edges</$checkbox>\n\n </div>\n </$reveal>\n\n<!-- === Export menu ============================================ -->\n\n <$reveal\n type=\"match\"\n text=\"true\"\n default=<<tmap \"option\" \"config.sys.editorMenuBar.showScreenshotButton\">>>\n <$button tooltip=\"Open the map-export menu\" popup=<<qualify \"$:/temp/mapExport\">>>\n {{$:/core/images/download-button}}\n </$button>\n </$reveal>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/mapExport\">>>\n <div class=\"tc-drop-down\">\n <$button\n class=\"tc-btn-invisible\"\n tooltip=\"Export the graph and all its elements\n in form of a JSON file\">\n {{$:/core/images/permalink-button}} Save as JSON file\n <$action-sendmessage\n $message=\"tmap:tm-download-graph\"\n view=<<viewLabel>> />\n </$button>\n <$button\n class=\"tc-btn-invisible\"\n tooltip=\"Create a png image to download or save it\n as image or view-placeholder in your wiki\">\n {{$:/core/images/palette}} Save as png image\n <$action-sendmessage $message=\"tmap:tm-save-canvas\" />\n </$button>\n </div>\n </$reveal>\n\n<!-- === Raster menu ============================================ -->\n\n <$reveal\n type=\"match\"\n text=\"true\"\n default=<<tmap \"option\" \"config.sys.editorMenuBar.showRasterMenuButton\">>>\n <$button\n tooltip=\"Change the raster of your map\"\n class=<<rasterMenuBtnClass>>\n popup=<<qualify \"$:/temp/rasterMenu\">>>\n ⩩\n </$button>\n </$reveal>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/rasterMenu\">>>\n <div class=\"tc-drop-down\">\n <$button class=\"tc-btn-invisible\">Disable raster\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.raster=\"\" />\n </$button>\n <div class=\"tmap-list-separator\">Raster sizes</div>\n <$list filter=\"[[50|50px]]\n [[75|75px]]\n [[100|100px]]\n [[150|150px]]\">\n <$button class=\"tc-btn-invisible\">\n <<tmap \"splitAndSelect\" \"|\" \"1\">>\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.raster=<<tmap \"splitAndSelect\" \"|\" \"0\">> />\n </$button>\n </$list>\n </div>\n </$reveal>\n\n</div>\n"
},
"$:/plugins/felixhayashi/tiddlymap/misc/focusButton": {
"title": "$:/plugins/felixhayashi/tiddlymap/misc/focusButton",
"text": "\\define filter() [list[$:/temp/tmap/nodes/$(viewLabel)$]search:title{$:/temp/tmap/bar/search}]\n\\define concat(str) $str$\n\n\\define state() $(widgetPopupsPath)$/focus\n\n<div class=\"tmap-focus-button\">\n <$reveal type=\"match\" state=<<state>> text=\"\">\n <$button\n tooltip=\"Zoom on a specific node\"\n class=<<tv-config-toolbar-class>>>{{$:/core/images/advanced-search-button}}\n <$action-setfield $tiddler=\"$:/temp/tmap/bar/search\" text=\"\" />\n <$action-setfield $tiddler=<<state>> text=\"1\" />\n </$button>\n </$reveal>\n <$reveal type=\"nomatch\" state=<<state>> text=\"\">\n <$button\n tooltip=\"Close zoom popup\"\n class=<<tv-config-toolbar-class>>>{{$:/core/images/advanced-search-button}}\n <$action-setfield $tiddler=<<state>> text=\"\" />\n </$button>\n <div class=\"tmap-search-dropdown\">\n <div class=\"tc-drop-down\">\n <$edit-text\n focus=\"true\"\n tiddler=\"$:/temp/tmap/bar/search\"\n field=\"text\"\n type=\"text\"\n tag=\"input\"\n default=\"\" />\n <small><$count filter=<<filter>> /> results</small>\n <hr />\n <div class=\"tmap-very-small-list\">\n <$list filter=<<filter>>\n variable=\"item\"\n emptyMessage=\"//No results//\">\n <$button\n class=\"tc-btn-invisible\"\n message=\"tmap:tm-focus-node\"\n param=<<item>>>\n <$view tiddler=<<item>> field=\"title\" />\n </$button>\n </$list>\n </div>\n </div>\n </div>\n </$reveal>\n</div>"
},
"$:/plugins/felixhayashi/tiddlymap/hook/editor": {
"title": "$:/plugins/felixhayashi/tiddlymap/hook/editor",
"caption": "Map",
"tags": "$:/tags/SideBar",
"text": "\\define width() calc(100% - 15px)\n\n<div class=\"tmap-mobile-editor\">\n <div class=\"tmap-flash-message tmap-warning\">\n The editor is not displayed in mobile mode.\n </div>\n</div>\n<div class=\"tmap-desktop-editor\">\n <$tiddlymap\n class=\"tmap-sidebar-map-editor\"\n editor=\"advanced\"\n object-id=\"main_editor\"\n click-to-use=\"false\">\n </$tiddlymap>\n</div>"
},
"$:/plugins/felixhayashi/tiddlymap/hook/liveTab": {
"title": "$:/plugins/felixhayashi/tiddlymap/hook/liveTab",
"caption": "Live",
"text": "\\define width() calc(100% - 15px)\n\n<div class=\"tmap-mobile-editor\">\n <div class=\"tmap-flash-message tmap-warning\">\n The live tab is not displayed in mobile mode.\n </div>\n</div>\n<div class=\"tmap-desktop-editor\">\n <$set name=\"view\"\n filter=\"[{$:/temp/tmap/currentTiddler}get[tmap.open-view]]\"\n emptyValue=<<tmap \"option\" \"config.sys.liveTab.fallbackView\">>>\n <div>\n <$tiddlymap\n view=<<view>>\n click-to-use=\"false\"\n refresh-triggers=\"$:/temp/tmap/currentTiddler\"\n object-id=\"live_tab\">\n </$tiddlymap>\n </div>\n </$set> \n</div>"
},
"$:/plugins/felixhayashi/tiddlymap/misc/quickConnectButton": {
"title": "$:/plugins/felixhayashi/tiddlymap/misc/quickConnectButton",
"tags": "$:/tags/ViewToolbar",
"description": "{{$:/language/Buttons/TiddlyMap/Hint}}",
"caption": "{{$:/plugins/felixhayashi/tiddlymap/icon}} {{$:/language/Buttons/TiddlyMap/Caption}}",
"text": "\\define buttonClass() $(tv-config-toolbar-class)$ $(additional-classes)$\n\n\\define nonExistentItem()\n<<item>> <span style=\"color: #9E9E9E\">(will be created)</span>\n\\end\n\n\\define noConnectionsMsg()\n<tr><td colspan=\"4\">//No connections found!//</td></tr>\n\\end\n\n\\define normalSearchFilter()\n[!is[system]!has[draft.of]search:title{$:/temp/quickConnectSearch}sortcs[title]limit[50]]\n\\end\n\n\\define regexSearchFilter()\n[!is[system]!has[draft.of]regexp{$:/temp/quickConnectSearch}sortcs[title]limit[50]]\n\\end\n\n\\define showButton(state)\n<$button set=\"$:/temp/tmap/state/popup/quickConnect\"\n setTo=\"$state$\" tooltip={{$:/language/Buttons/TiddlyMap/Hint}} \n aria-label={{$:/language/Buttons/TiddlyMap/Caption}}\n class=<<buttonClass>>>\n<$list filter=\"[<tv-config-toolbar-icons>prefix[yes]]\">{{$:/plugins/felixhayashi/tiddlymap/icon}}</$list>\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/TiddlyMap/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n\\define searchResults()\n<td>\n <$button tooltip=\"Create incoming edge\">\n <<tmap \"option\" \"misc.arrows.in\">>\n <$action-sendmessage $message=\"tmap:tm-create-edge\"\n from=<<item>>\n to=<<currentTiddler>>\n force=\"true\"\n label={{$:/temp/quickConnectSearch/type}}\n view={{$:/temp/quickConnectSearch/view}} />\n </$button>\n</td>\n<td>\n <$button tooltip=\"Create outgoing edge\">\n <<tmap \"option\" \"misc.arrows.out\">>\n <$action-sendmessage $message=\"tmap:tm-create-edge\"\n from=<<currentTiddler>>\n to=<<item>>\n force=\"true\"\n label={{$:/temp/quickConnectSearch/type}}\n view={{$:/temp/quickConnectSearch/view}} />\n </$button>\n</td>\n<td>\n <$list\n filter=\"[<item>is[tiddler]]\"\n emptyMessage=<<nonExistentItem>>>\n <$view tiddler=<<item>> field=\"title\" />\n </$list>\n</td>\n\\end\n\n\\define hidePopup()\n<$macrocall $name=\"showButton\" state=<<qualify>> />\n\\end\n\n\\define showPopup()\n<$set name=\"additional-classes\" value=\"tmap-active-button\">\n <$macrocall $name=\"showButton\" state=\"\" />\n</$set>\n<$set\n name=\"searchFilter\"\n filter=\"[field:title[$:/state/tmap/tid-toolbar]has[re-filter]]\"\n value=<<regexSearchFilter>>\n emptyValue=<<normalSearchFilter>>>\n<div class=\"tmap-quick-connect tc-reveal tc-popup\">\n <div class=\"tc-drop-down\">\n <div class=\"title\">Create connection</div>\n <table class=\"tmap-quick-connect-search-bar\">\n <tr>\n <td>Type:</td>\n <td>\n <$edit-text\n tiddler=\"$:/temp/quickConnectSearch/type\"\n field=\"text\"\n type=\"text\"\n tag=\"input\"\n default=\"\" />\n <$select tiddler=\"$:/temp/quickConnectSearch/type\" default=\"\">\n <option></option>\n <$list filter=<<tmap \"option\" \"selector.allEdgeTypesById\">>>\n <option>{{!!title}}</option>\n </$list>\n </$select>\n </td>\n </tr>\n <tr>\n <td>Search:</td>\n <td>\n <$edit-text tiddler=\"$:/temp/quickConnectSearch\" type=\"text\" tag=\"input\" default=\"\"></$edit-text>\n <$checkbox\n tiddler=\"$:/state/tmap/tid-toolbar\"\n field=\"re-filter\"\n checked=\"1\"\n unchecked=\"\"\n default=\"\"> regexp\n </$checkbox>\n<!--\n <small>(<$count filter=<<searchFilter>> /> results)</small>\n-->\n </td>\n </tr>\n </table>\n <table class=\"tmap-create-connection-table\">\n <tr>\n <td colspan=\"2\">\n <table class=\"tmap-very-small-list\">\n <$list\n filter=<<searchFilter>>\n variable=\"item\">\n <tr><<searchResults>></tr>\n </$list>\n <tr>\n <$list filter=\"[{$:/temp/quickConnectSearch}regexp[.+]] -[is[tiddler]]\" variable=\"item\">\n <<searchResults>>\n </$list>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n <div class=\"title\">Existing Connections</div>\n <div class=\"tmap-quick-connect-existing-bar\">\n <$select\n tiddler=\"$:/state/tmap/tid-toolbar\"\n field=\"direction\"\n default=\"both\">\n <option value=\"both\">both</option>\n <option value=\"in\">incoming</option>\n <option value=\"out\">outgoing</option>\n </$select>\n <$checkbox\n tiddler=\"$:/state/tmap/tid-toolbar\"\n field=\"filter.links\"\n checked=\"-[[tw-body:link]]\"\n unchecked=\"\"\n default=\"\"> hide links\n </$checkbox>\n </div>\n <table class=\"tmap-connection-table\">\n<!--\n <tr>\n <th></th>\n <th>Tiddler</th>\n <th>Type</th>\n <th></th>\n </tr>\n-->\n \n <$tmap-connections\n filter=<<tmap mergeFields \"$:/state/tmap/tid-toolbar\" \"filter.\">>\n direction={{$:/state/tmap/tid-toolbar!!direction}}\n emptyMessage=<<noConnectionsMsg>>>\n <tr>\n <td title=<<direction>>><<directionSymbol>></td>\n <td><$link to=<<neighbour>>><$view field=\"title\" /></$link></td>\n <td><<edge.type>></td>\n <td>\n <$button\n tooltip=\"Delete this connection\"\n class=\"tc-btn-invisible\">{{$:/core/images/close-button}}\n <$action-sendmessage $message=\"tmap:tm-remove-edge\"\n id=<<edge.id>>\n from=<<edge.from>>\n to=<<edge.to>>\n type=<<edge.type>> />\n </$button>\n </td>\n </tr>\n </$tmap-connections>\n </table> \n </div>\n</div>\n</$set>\n\\end\n\n<$list filter=\"[all[current]is[tiddler]]\"><$list filter=\"[{$:/temp/tmap/state/popup/quickConnect}prefix<qualify>]\" variable=\"item\" emptyMessage=<<hidePopup>>><<showPopup>></$list></$list>"
},
"$:/plugins/felixhayashi/tiddlymap/media/fullscreen.png": {
"title": "$:/plugins/felixhayashi/tiddlymap/media/fullscreen.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5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RTLIxEolsefr06bOampqp1UCHhoYabty44Tbyerarq8u3bJc5MjJyxel0liqK0qTrulXX9XfXrl3714YNGwrqNCcnJ63Xrl1zhsPhOsMeT/l8Pl/BDX13d/enAL4zLA4WiyWlaVpi8+bNaVVVF8rKyjJ5G5yZmXknkUhYdF1/b25uTs2fOkge6uzsPL/iI4zf75fHjx93KoryjclkgtGfgSQMI0B+YovvSXbV19efdrvdKz/CvDyBbDbbTPITkjtFRBOR54ZPclJEbgL4weFw/LYcMK9/AFcdm7xTEIntAAAAAElFTkSuQmCC"
},
"$:/plugins/felixhayashi/tiddlymap/media/halfscreen.png": {
"title": "$:/plugins/felixhayashi/tiddlymap/media/halfscreen.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/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5vsMvjiVAoFCra0IfD4XdI9hWmhPXr16eqq6unqqqq0i6X6155eXnW/jEdmUymzLIsZzKZfHlmZsZVqMkkD3Z3d/cveoQxDEMePHjQLSIfa5oGkrArz/wYU3guNBu7+/Ts2LHjE7/fv/gR5skDzM3NvSYibwNoVkq5STqUUiCZJTmhlBrO5/Nf+ny+HxcCFvQ3ae6MHdgDqpkAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/tiddlymap/icon": {
"title": "$:/plugins/felixhayashi/tiddlymap/icon",
"tags": "$:/tags/Image",
"text": "<svg\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:cc=\"http://creativecommons.org/ns#\"\n xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n xmlns:svg=\"http://www.w3.org/2000/svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n class=\"tc-image-tiddlymap-button tc-image-button\"\n version=\"1.1\"\n width=\"22pt\"\n height=\"22pt\"\n viewBox=\"0 0 128 128\">\n <defs\n id=\"defs4\">\n <marker\n refX=\"0\"\n refY=\"0\"\n orient=\"auto\"\n id=\"Arrow1Lend\"\n style=\"overflow:visible\">\n <path\n d=\"M 0,0 5,-5 -12.5,0 5,5 0,0 z\"\n transform=\"matrix(-0.8,0,0,-0.8,-10,0)\"\n id=\"path3850\"\n style=\"fill-rule:evenodd;stroke:#000000;stroke-width:1pt\" />\n </marker>\n <marker\n refX=\"0\"\n refY=\"0\"\n orient=\"auto\"\n id=\"Arrow1Lstart\"\n style=\"overflow:visible\">\n <path\n d=\"M 0,0 5,-5 -12.5,0 5,5 0,0 z\"\n transform=\"matrix(0.8,0,0,0.8,10,0)\"\n id=\"path3847\"\n style=\"fill-rule:evenodd;stroke:#000000;stroke-width:1pt\" />\n </marker>\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4329\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4321\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4315\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4307\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4299\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4293\" />\n </defs>\n <g\n transform=\"translate(0,-1024.5289)\"\n id=\"layer1\">\n <path\n d=\"m 17.867073,4.5821643 a 3.7249374,3.7249374 0 1 1 -7.449875,0 3.7249374,3.7249374 0 1 1 7.449875,0 z\"\n transform=\"matrix(-6.3328802,0,0,6.2775831,193.9581,1100.3667)\"\n id=\"path4139-1-14\"\n style=\"fill-opacity:1;fill-rule:nonzero\" />\n <path\n d=\"M 77.450496,1064.5069 C 58.849552,1025.9634 15.704158,1023.3858 2.8821873e-7,1034.558 L 0.02388589,1035.2674 C 24.502636,1022.2072 44.810725,1042.1507 60.163934,1074.112 z\"\n id=\"path4337\"\n style=\"fill-opacity:1;stroke-width:0.58181816;stroke-miterlimit:4;stroke-dasharray:none;marker-start:none;marker-end:none\" />\n <path\n d=\"m 12.878637,11.280739 4.75937,-2.7478243 4.759371,-2.7478236 0,5.4956479 0,5.495648 -4.759371,-2.747824 z\"\n transform=\"matrix(4.6545455,0,0,4.6545455,-13.580429,1027.7638)\"\n id=\"path3004\"\n style=\"fill-opacity:1;fill-rule:nonzero\" />\n </g>\n <metadata\n id=\"metadata3772\">\n <rdf:RDF>\n <cc:Work\n rdf:about=\"\">\n <dc:title></dc:title>\n <dc:format>image/svg+xml</dc:format>\n <dc:type\n rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\n </cc:Work>\n </rdf:RDF>\n </metadata>\n</svg>\n"
},
"$:/plugins/felixhayashi/tiddlymap/media/surface.png": {
"title": "$:/plugins/felixhayashi/tiddlymap/media/surface.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90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sc3higntY7w1DgC4cbtRZem65l/dflFd01GpvXnHFkIgeMZaWr4v9sj+Z77CZMrg0sKoD4jFV17sBYAgSAITQ5Dk2TLP2QuA+p4TaP2412K/yaTMZ7/CDCzgfElcIhEvJNAMiSQdEasESSBiB4PrBIsSctOx8XHTiocC9up/PG8QrAaKLngAAAAASUVORK5CYII="
},
"$:/language/Buttons/TiddlyMap/Caption": {
"title": "$:/language/Buttons/TiddlyMap/Caption",
"text": "tiddlymap"
},
"$:/language/Buttons/TiddlyMap/Hint": {
"title": "$:/language/Buttons/TiddlyMap/Hint",
"text": "Toggle TiddlyMap actions"
},
"$:/plugins/felixhayashi/tiddlymap/misc/macros": {
"title": "$:/plugins/felixhayashi/tiddlymap/misc/macros",
"text": "\\define concat(str) $str$\n\n\\define input-text(field, index, default, readonly, class, focus)\n <$reveal type=\"match\" text=\"\" default=\"$readonly$\">\n <$edit-text\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n type=\"text\"\n tag=\"input\"\n default=\"$default$\"\n focus=\"$focus$\"\n class=\"$class$\" />\n </$reveal>\n <$reveal type=\"nomatch\" text=\"\" default=\"$readonly$\">\n <input type=\"text\" value=\"$default$\" readonly=\"true\" disabled=\"true\" />\n </$reveal>\n\\end\n\n\\define input-button(field, index, default, default, label:\"Proceed\")\n <div class=\"tmap-button-wrapper\">\n <$button>$label$\n <$action-setfield $tiddler=<<output>> $field=\"$field$\" index=\"$index$\" $value=\"$default$\" />\n </$button>\n </div>\n\\end\n\n\\define input-textarea(field, index, default, default, class, focus)\n <$edit-text\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n autoHeight=\"no\"\n type=\"text\"\n tag=\"textarea\"\n default=\"$default$\"\n class=\"$class$\"\n focus=\"$focus$\" />\n\\end\n\n\\define input-checkbox(field, index, readonly, default)\n <$reveal type=\"match\" text=\"\" default=\"$readonly$\">\n <$checkbox\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n checked=\"true\"\n unchecked=\"false\"\n default=\"$default$\" />\n </$reveal>\n <$reveal type=\"nomatch\" text=\"\" default=\"$readonly$\">\n <input type=\"checkbox\" value=\"$default$\" readonly=\"true\" disabled=\"true\" />\n </$reveal>\n\\end\n\n\\define input-multi-checkbox(selectFilter, invert:\"no\", default)\n <div class=\"tmap-no-stretch\">\n <$list\n filter=\"$selectFilter$\"\n emptyMessage=\"– This list contains no items –\">\n <$checkbox\n tiddler=<<output>>\n tag=<<tmap \"splitAndSelect\" \"|\" \"0\">>>\n <$view\n tiddler=<<tmap \"splitAndSelect\" \"|\" \"1\">>\n field=\"title\" />\n </$checkbox><br />\n </$list>\n </div>\n\\end\n\n\\define input-select(field, index, selectFilter, default, nochoice)\n <$select\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n default=\"$default$\">\n <$set name=\"nochoice\" value=\"$nochoice$\">\n <$list filter=\"[<nochoice>regexp[.+]]\">\n <option value=\"\"><b><<nochoice>></b></option>\n </$list>\n </$set>\n <$list filter=\"$selectFilter$\">\n <option value=<<tmap \"splitAndSelect\" \"|\" \"0\">> >\n <$view tiddler=<<tmap \"splitAndSelect\" \"|\" \"1\">> field=\"title\" />\n </option>\n </$list>\n </$select>\n\\end\n\n\\define input-radio(field, index, selectFilter, default)\n <$list filter=\"$selectFilter$\">\n <$radio\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n value=<<tmap \"splitAndSelect\" \"|\" \"0\">>>\n <<tmap \"splitAndSelect\" \"|\" \"1\">>\n </$radio><br />\n </$list>\n\\end\n\n\\define tmap-row(title, field, index, type, descr, note, label, default, readonly, reset, selectFilter, nochoice, invert, class, focus)\n <tr>\n <td class=\"tmap-title\">$title$:</td>\n <td>\n <<$type$\n field:\"$field$\"\n index:\"$index$\"\n readonly:\"$readonly$\"\n default:\"$default$\"\n label:\"$label$\"\n invert:\"$invert$\"\n selectFilter:\"$selectFilter$\"\n nochoice:\"$nochoice$\"\n focus:\"$focus$\"\n class:\"$class$\">>\n <$reveal type=\"match\" text=\"true\" default=\"$reset$\">\n <$button>reset\n <$action-setfield $tiddler=<<output>> $field=\"$field$\" $index=\"$index$\" $value=\"$default$\" />\n </$button>\n </$reveal>\n </td>\n <td>\n <span class=\"tmap-description\">$descr$</span>\n <$reveal type=\"nomatch\" text=\"\" default=\"$note$\">\n <div class=\"tmap-note\">''Note:'' $note$</div>\n </$reveal>\n </td>\n </tr>\n\\end\n\n\\define visConfiguration(inheritedList, extensionField, styleName:\"style\")\n <fieldset><legend>Visjs configurations ($styleName$)</legend>\n <div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on\n the graph. Other options are visible, yet, inactive.\n </div>\n <$tmap-config\n mode=\"manage-node-types\"\n inherited=\"$inheritedList$\"\n extension=\"$extensionField$\" />\n </fieldset>\n\\end\n"
},
"$:/plugins/felixhayashi/tiddlymap/misc/defaultViewHolder": {
"title": "$:/plugins/felixhayashi/tiddlymap/misc/defaultViewHolder",
"text": "Default"
},
"$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:central-topic": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:central-topic",
"description": "The style is applied to the node that you marked as central topic in a map.",
"style": "{\"font\":{\"size\":22,\"color\":\"rgba(0,0,0,1)\"},\"shape\":\"star\"}"
},
"$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:neighbour": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:neighbour",
"description": "Neighbours are all nodes that are not part of the original set of nodes (\"matches\") but are connected (either outgoing or incoming) to a node of the original set.",
"style": "{\"color\":\"#565656\"}"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/edges": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/edges"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/nodes": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/nodes"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Default": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Default",
"config.physics_mode": "false",
"isview": "true"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/edges": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/edges",
"filter": "[prefix[$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes]]",
"text": "\n\n"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/nodes": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/nodes",
"filter": "[field:title{$:/temp/tmap/currentTiddler}]"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Live View": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View",
"config.neighbourhood_scope": "1",
"config.refresh-triggers": "$:/temp/tmap/currentTiddler",
"config.physics_mode": "true",
"config.vis": "{\"physics\":{\"forceAtlas2Based\":{\"springLength\":0,\"springConstant\":0.09}}}",
"isview": "true"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search/filter/nodes": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search/filter/nodes",
"filter": "[!is[system]search{$:/temp/search}] [!is[system]search:tags{$:/temp/search}] [!is[system]search:text{$:/temp/search}limit[10]]"
},
"$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search": {
"title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search",
"config.refresh-triggers": "$:/temp/search",
"config.neighbourhood_scope": "1",
"config.physics_mode": "true"
}
}
}
{
"field.nodeLabel": "caption",
"field.nodeIcon": "icon",
"field.nodeInfo": "description",
"field.viewMarker": "isview",
"liveTab.fallbackView": "Live View",
"suppressedDialogs.dublicateIdInfo": true,
"edgeClickBehaviour": "manager",
"debug": "false",
"notifications": "true",
"popups.enabled": "true",
"popups.delay": "600",
"popups.width": "240px",
"popups.height": "140px",
"jsonIndentation": "1",
"alwaysAddNodeIdToViewFilter": "true",
"editNodeOnCreate": "false",
"singleClickMode": "false",
"nodeFilterNeighbours": "false",
"editorMenuBar.showNeighScopeButton": "true",
"editorMenuBar.showRasterMenuButton": "true",
"editorMenuBar.showScreenshotButton": "true"
}
{"edges":{"font":{"background":"rgba(162,180,255,1)"}}}
{
"0c731e31-51af-4057-a7fa-09bf5ef5c659": {
"x": -500,
"y": -200
},
"13151442-c218-4951-ac42-95027f2f6cb3": {
"x": 35,
"y": 163
},
"983ab72b-d2b0-4ff9-bbcd-d46531ea2e75": {
"x": -300,
"y": -50
},
"2fa8d405-c59b-4774-bfcf-261f94686255": {
"x": -450,
"y": 0
},
"951f7d3a-92c8-4fe2-b404-14519170283e": {
"x": 208,
"y": 4
},
"0c57fdfc-6099-4402-acd6-edb0748a9b75": {
"x": 197,
"y": 70
},
"5fd160ff-cf49-4931-b34a-7f873b6e075a": {
"x": 207,
"y": -57
},
"bc417179-2c26-41c3-b249-dc57c0f70672": {
"x": 19,
"y": -172
},
"37531d1f-2bc6-444a-8bc1-dd2a078694b9": {
"x": -158,
"y": 36
},
"af371ded-3c50-4607-bc59-9af1598e3fe8": {
"x": -88,
"y": -101
},
"c04fc46a-6f32-4406-8206-954c56e55813": {
"x": -27,
"y": 76
},
"8dc53f1f-25d1-4339-a729-d85ee5ea79fa": {
"x": -130,
"y": 149
},
"c209217e-ebfd-456b-a450-4941cb2bdef8": {
"x": 15,
"y": -104
},
"1ce8ef8b-a594-4cc7-8f04-f3d08a5ec61d": {
"x": 77,
"y": 24
},
"e9fbdeac-7bd8-44d3-8e46-a10918056b5a": {
"x": -157,
"y": -25
},
"6baf4164-d09e-4d85-8114-26f6bef55acc": {
"x": -78,
"y": -187
},
"edfd24cf-8f80-46fb-9f35-145771dccefe": {
"x": -7,
"y": 196
},
"c39ea913-e0de-4296-b47a-c5b665aefb54": {
"x": 152,
"y": -63
},
"b6c1c429-676f-42d4-a646-5c1d586d3834": {
"x": -39,
"y": -138
},
"6b92648b-695a-46a9-ba13-cfe59d8a7276": {
"x": -95,
"y": -34
},
"dc01131d-2b6c-44ba-9725-32f40131cc22": {
"x": -75,
"y": 168
},
"36652508-716f-43ea-a5a3-6c1deaeb0fb2": {
"x": -100,
"y": 32
},
"9b673637-294c-4da6-97ef-56c84cc38a40": {
"x": -8,
"y": 259
},
"58396e3e-a920-4a18-9d57-8a6f11801ba9": {
"x": -209,
"y": 9
},
"b58e7b09-63a3-4733-8842-f1ce72ad7b43": {
"x": 108,
"y": 294
},
"5f0078fa-6de1-4274-9a09-4284cc0af28f": {
"x": 132,
"y": 229
},
"318d3b2c-13af-4b0e-88a8-259969c4f09d": {
"x": 294,
"y": 113
},
"9d20714f-6504-487d-8f81-ede21cde5b52": {
"x": -144,
"y": 93
},
"08a2a9d4-95d0-4a69-9704-96d0446171c6": {
"x": 55,
"y": 250
},
"5b6db4ab-af98-4aa8-ac6a-69693fdc8575": {
"x": -152,
"y": -87
},
"d4390528-1e72-4fc6-be8e-cedfa2231b1f": {
"x": 237,
"y": -111
},
"0fe71cba-f56a-4991-b437-c352650d0cce": {
"x": -171,
"y": -186
},
"729b2724-3bbf-446b-93de-a264c8594f62": {
"x": 232,
"y": 131
},
"ffabbd87-fd36-4d6f-b07f-b2224044a09b": {
"x": 261,
"y": 51
},
"02b6796a-3703-4d3a-b3cb-d9a48f7fa030": {
"x": 197,
"y": -246
},
"e30a126b-0b6b-4845-97c6-dcd33c7f776a": {
"x": -214,
"y": -78
},
"164c6aa5-66af-45bb-a7c7-f913abf06f59": {
"x": 317,
"y": -18
},
"e4e2afa0-443c-4e01-a861-8508809a5a7c": {
"x": -181,
"y": 246
},
"b87b33b1-2eed-4479-a3ac-598860a54c76": {
"x": -204,
"y": 99
},
"bd8b556c-0e76-4943-8d72-7b61bdb486f2": {
"x": -275,
"y": 100
},
"add0e5ba-21db-4956-bff8-79297ba21693": {
"x": 302,
"y": -84
},
"64469bb8-5cc0-4499-b533-de921270b3fe": {
"x": -226,
"y": -212
},
"5c8810e5-e452-4d2f-bcca-c2a8143d584f": {
"x": 271,
"y": 14
},
"d9b24228-64cd-4044-92ec-cef5777fc033": {
"x": -284,
"y": -125
},
"bd432cf9-4ad1-49a9-8e6d-20560671ad99": {
"x": 151,
"y": 19
},
"bb99bd31-f611-419b-9972-92b5d0f004c5": {
"x": 256,
"y": 193
},
"3bb94ce6-e23c-47b6-ac64-f596d8abe076": {
"x": -151,
"y": -281
},
"b700871f-506d-4185-8f9c-ccea6e0866df": {
"x": 136,
"y": -160
},
"2060054e-18ec-4c33-a398-d85cda7644f7": {
"x": -232,
"y": -148
},
"27376152-633a-4fdd-bcba-92e9a6c622a6": {
"x": 270,
"y": -167
},
"e875801e-8841-487b-a3f6-a177f97765d7": {
"x": -206,
"y": -40
},
"68628630-8b3e-48ce-a62f-b558d0ca1eb7": {
"x": 140,
"y": -277
},
"61a041b7-7881-421d-9003-c300f7e383dd": {
"x": 56,
"y": 113
},
"165748c0-af94-4b99-9ba7-35995810b39d": {
"x": 139,
"y": -218
},
"d50ae27a-34a5-4958-ae23-3796772ca82b": {
"x": -238,
"y": 190
},
"b2a11950-b852-4b05-8970-2eb289786735": {
"x": -28,
"y": -312
},
"ed6e1a0a-b6ef-4261-abea-436a6ca31f32": {
"x": 144,
"y": 177
},
"3daf8131-5f33-4703-be3c-a94a116c3cb4": {
"x": 218,
"y": -195
},
"fe142fda-365c-430a-a2ca-333a555dc813": {
"x": -129,
"y": 215
},
"d0540e98-d29f-4a03-9d75-2540235a5f8d": {
"x": 94,
"y": -173
},
"c29a3f6e-f999-4bad-89cb-6ea80fb92cbf": {
"x": 222,
"y": 246
},
"0b2d018b-fdba-4106-9f6b-3b64013073ca": {
"x": -101,
"y": -228
},
"da6239bc-357d-4a60-8cd3-216684ee1353": {
"x": 12,
"y": 95
},
"d8475f82-45e8-4c32-946a-9f92a9563e0c": {
"x": 7,
"y": -15
},
"f23b6296-182a-408f-b890-e84427b1cc1f": {
"x": 233,
"y": -149
},
"7c314a5f-448c-4987-b4d1-da7ed8dab070": {
"x": 72,
"y": 206
},
"b5b400e8-dbf0-452f-bc6f-404276244748": {
"x": 13,
"y": -243
},
"03c2c84b-da84-4231-900b-95b94eed6440": {
"x": -1,
"y": 314
},
"00021bfa-eb00-45a6-b676-f354691db5bc": {
"x": -140,
"y": -229
},
"a1395c3a-8588-46ab-8b50-b285e5ea2439": {
"x": 56,
"y": 312
},
"a2a4b975-07b6-4a43-a0e2-3123bd26bfa8": {
"x": 314,
"y": 70
},
"4665fa20-4d27-4812-b8ef-4f526e1c99ca": {
"x": -145,
"y": 285
},
"c18d74a9-077f-4470-9ba4-30bf28ead3f1": {
"x": -235,
"y": 130
},
"cd72925a-aca3-4408-b82f-46f48050b880": {
"x": -199,
"y": -253
},
"51e575a5-8090-4c4f-af0c-2a4000abda33": {
"x": 172,
"y": 248
},
"8266ef25-dd63-4967-b030-2520343a1d03": {
"x": -195,
"y": -122
},
"6fc8f059-5766-4294-ab9b-4c4f5cb86b65": {
"x": 84,
"y": -108
},
"e79cbba8-2bbb-458d-93f3-6e3ddeee2953": {
"x": -76,
"y": 96
},
"8bed3c66-44ad-4379-88f2-59c07e6afbc3": {
"x": 296,
"y": -121
},
"d9035271-f600-493e-98a3-825136cde9c7": {
"x": -88,
"y": 256
},
"8e7e7f47-892e-41cb-8efe-757c321c21de": {
"x": -21,
"y": -216
},
"81db1ebb-862c-45c7-82cc-7b504da7ad2f": {
"x": -55,
"y": 208
},
"a29e7248-b009-44ef-8de8-e76271943d55": {
"x": 238,
"y": -31
},
"1b3742bf-a20c-4cf6-baaa-03c57d5a3d05": {
"x": -296,
"y": 138
},
"a99780ee-6a92-4b67-98d4-9c38d37043e5": {
"x": -115,
"y": -141
},
"da7c2e9f-a28b-471d-90ee-14a3245badd1": {
"x": 99,
"y": 63
},
"68398c9c-599e-4dab-b8e2-fd6b1ee3fac9": {
"x": 70,
"y": -248
},
"3ff12a23-88a4-4f52-981f-d4bda99aac58": {
"x": 113,
"y": 117
},
"a61ee500-75af-4d7c-8d34-2177e268f6e7": {
"x": -67,
"y": -288
},
"6d89489d-99ce-4fa5-b1f9-135ea427d962": {
"x": -185,
"y": 174
},
"56e5471f-7301-42cf-a11b-98dce49ef3b7": {
"x": -34,
"y": 18
},
"c344ca4f-fef9-4a6d-8115-54224dec5f8b": {
"x": 94,
"y": -36
},
"1a1e034a-086d-4047-80a5-5994d58fdc90": {
"x": -33,
"y": -57
},
"8a6ca400-1e71-4fa5-afe7-640843bb4f19": {
"x": 49,
"y": -306
},
"153896b5-c6ff-4dbf-a975-3d0342862c7c": {
"x": -286,
"y": 23
},
"25ec2d10-b861-4626-83f6-98438f7c33e8": {
"x": 170,
"y": 129
},
"21ed9d46-312c-47a3-bbbb-33b6df7a28de": {
"x": -71,
"y": 309
},
"d4b895dc-41db-41a2-937d-5d191f19d592": {
"x": 231,
"y": -243
},
"deef27b1-5d60-4c26-8118-03ba359409ad": {
"x": 44,
"y": -56
}
}
{
"originalVersion": "0.16.1+9773",
"dataStructureState": "0.11.0",
"showWelcomeMessage": false
}
{
"tiddlers": {
"$:/plugins/felixhayashi/topstoryview/config.js": {
"title": "$:/plugins/felixhayashi/topstoryview/config.js",
"text": "/*\\\n\ntitle: $:/plugins/felixhayashi/topstoryview/config.js\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n(function(){\"use strict\";exports.config={classNames:{storyRiver:\"tc-story-river\",backDrop:\"story-backdrop\",tiddlerFrame:\"tc-tiddler-frame\",tiddlerTitle:\"tc-title\"},references:{userConfig:\"$:/config/topStoryView\",focussedTiddlerStore:\"$:/temp/focussedTiddler\",refreshTrigger:\"$:/temp/focussedTiddler/refresh\"},checkbackTime:$tw.utils.getAnimationDuration()}})();",
"type": "application/javascript",
"module-type": "library"
},
"$:/plugins/felixhayashi/topstoryview/layout": {
"text": "html .tc-story-river:after {\n content: \"\";\n display: block; }\n",
"title": "$:/plugins/felixhayashi/topstoryview/layout",
"type": "text/vnd.tiddlywiki",
"tags": [
"$:/tags/Stylesheet"
]
},
"$:/plugins/felixhayashi/topstoryview/Configuration": {
"title": "$:/plugins/felixhayashi/topstoryview/Configuration",
"text": "Please see the [[GitHub page|https://github.com/felixhayashi/TW5-TopStoryView]] for more information on the options.\n\nSave and reload the wiki to activate changes.\n\n<table>\n <tr>\n <th align=\"left\">Scroll offset:</th>\n <td><$edit-text tiddler=\"$:/config/topStoryView\" field=\"scroll-offset\" tag=\"input\" default=\"150px\" /></td>\n </tr>\n</table>"
},
"$:/plugins/felixhayashi/topstoryview/License": {
"title": "$:/plugins/felixhayashi/topstoryview/License",
"text": "This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-TopStoryView/blob/master/LICENSE"
},
"$:/plugins/felixhayashi/topstoryview/Readme": {
"title": "$:/plugins/felixhayashi/topstoryview/Readme",
"text": "Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-TopStoryView]] for more information."
},
"$:/plugins/felixhayashi/topstoryview/top.js": {
"title": "$:/plugins/felixhayashi/topstoryview/top.js",
"text": "/*\\\ntitle: $:/plugins/felixhayashi/topstoryview/top.js\ntype: application/javascript\nmodule-type: storyview\n\nViews the story as a linear sequence\n\n@preserve\n\n\\*/\n(function(){\"use strict\";var t=require(\"$:/plugins/felixhayashi/topstoryview/config.js\").config;var e=\"cubic-bezier(0.645, 0.045, 0.355, 1)\";var i=function(e){this.listWidget=e;this.pageScroller=new $tw.utils.PageScroller;this.pageScroller.scrollIntoView=this.scrollIntoView;this.pageScroller.storyRiverDomNode=document.getElementsByClassName(t.classNames.storyRiver)[0];var i=$tw.wiki.getTiddler(t.references.userConfig);var o=i?i.fields:{};$tw.hooks.addHook(\"th-opening-default-tiddlers-list\",this.hookOpenDefaultTiddlers);var r=parseInt(o[\"scroll-offset\"]);this.pageScroller.scrollOffset=isNaN(r)?71:r;this.recalculateBottomSpace()};i.prototype.refreshStart=function(t,e){};i.prototype.refreshEnd=function(t,e){};i.prototype.hookOpenDefaultTiddlers=function(t){return t};i.prototype.navigateTo=function(t){var e=this.listWidget.findListItem(0,t.title);if(e===undefined)return;var i=this.listWidget.children[e];var o=i.findFirstDomNode();if(!(o instanceof Element))return;this.pageScroller.scrollIntoView(o)};i.prototype.insert=function(t){if(!t)return;var e=t.findFirstDomNode();if(!(e instanceof Element))return;this.startInsertAnimation(e,function(){this.recalculateBottomSpace()}.bind(this))};i.prototype.remove=function(t){if(!t)return;var e=t.findFirstDomNode();if(!(e instanceof Element)){t.removeChildDomNodes();return}var i=this.getLastFrame()===e;this.startRemoveAnimation(t,e,function(){t.removeChildDomNodes();this.recalculateBottomSpace();if(i){this.pageScroller.scrollIntoView(this.getLastFrame())}}.bind(this))};i.prototype.getLastFrame=function(){var t=this.listWidget.children[this.listWidget.children.length-1];return t?t.findFirstDomNode():null};i.prototype.recalculateBottomSpace=function(){var t=this.pageScroller.storyRiverDomNode;if(this.getLastFrame()){var e=this.getLastFrame().getBoundingClientRect();var i=window.innerHeight;if(e.height<i){t.style[\"paddingBottom\"]=i-e.height+\"px\";return}}t.style[\"paddingBottom\"]=\"\"};i.prototype.scrollIntoView=function(t){if(this.preventNextScrollAttempt){this.preventNextScrollAttempt=false}if(!t)return;var e=$tw.utils.getAnimationDuration();this.cancelScroll();this.startTime=Date.now();var i=$tw.utils.getScrollPosition();var o=t.getBoundingClientRect(),r={left:o.left+i.x,top:o.top+i.y,width:o.width,height:o.height};var n=function(t,e,i,o){if(t<=i){return t}else if(e<o&&i<t+e-o){return t+e-o}else if(i<t){return t}else{return i}},s=n(r.left,r.width,i.x,window.innerWidth),a=r.top-this.scrollOffset;if(s!==i.x||a!==i.y){var l=this,c;c=function(){var t;if(e<=0){t=1}else{t=(Date.now()-l.startTime)/e}if(t>=1){l.cancelScroll();t=1}t=$tw.utils.slowInSlowOut(t);window.scrollTo(i.x+(s-i.x)*t,i.y+(a-i.y)*t);if(t<1){l.idRequestFrame=l.requestAnimationFrame.call(window,c)}};c()}};i.prototype.startInsertAnimation=function(t,i){var o=$tw.utils.getAnimationDuration();var r=window.getComputedStyle(t),n=parseInt(r.marginBottom,10),s=parseInt(r.marginTop,10),a=t.offsetHeight+s;setTimeout(function(){$tw.utils.setStyle(t,[{transition:\"none\"},{marginBottom:\"\"}]);i()},o);$tw.utils.setStyle(t,[{transition:\"none\"},{marginBottom:-a+\"px\"},{opacity:\"0.0\"}]);$tw.utils.forceLayout(t);$tw.utils.setStyle(t,[{transition:\"opacity \"+o+\"ms \"+e+\", \"+\"margin-bottom \"+o+\"ms \"+e},{marginBottom:n+\"px\"},{opacity:\"1.0\"}])};i.prototype.startRemoveAnimation=function(t,i,o){var r=$tw.utils.getAnimationDuration();var n=i.offsetWidth,s=window.getComputedStyle(i),a=parseInt(s.marginBottom,10),l=parseInt(s.marginTop,10),c=i.offsetHeight+l;setTimeout(o,r);$tw.utils.setStyle(i,[{transition:\"none\"},{transform:\"translateX(0px)\"},{marginBottom:a+\"px\"},{opacity:\"1.0\"}]);$tw.utils.forceLayout(i);$tw.utils.setStyle(i,[{transition:$tw.utils.roundTripPropertyName(\"transform\")+\" \"+r+\"ms \"+e+\", \"+\"opacity \"+r+\"ms \"+e+\", \"+\"margin-bottom \"+r+\"ms \"+e},{transform:\"translateX(-\"+n+\"px)\"},{marginBottom:-c+\"px\"},{opacity:\"0.0\"}])};exports.top=i})();",
"type": "application/javascript",
"module-type": "storyview"
}
}
}
{
"tiddlers": {
"$:/plugins/felixhayashi/vis/img/network/acceptDeleteIcon.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/acceptDeleteIcon.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZC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CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz450LuoAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAATUSURBVHjajJZtTJVlGMd/13U/z+F4sBQOCiovZiMt8YiKZrMtypdh09StbLOtzA1RUmuTkppzIilJOB0Oa21tbaV+6UP5Mlnm5heVkfhyQJ1ONITAkAMqcTDonNOHA6g9qF3b/eF5/vf18r/u676uWwoLC3G73QCoKiICgIhQeGejVw3LMOTIP0xGdRQAFi1E9DyGSkLsKxtWEmAQuXfvHrJlyxZiYmIQkQHjeac/jjfKBsJ8YlnRzQKIgBoIh8ByaRSICAilRCjdk1UeAIhEIogIPT09SFFRER6PZ4DByqr1+WpRoYAquKYuqCPz9SZeeCVA4vggAC2XPVw54eXi0WTOH8yIslIIs+bryTsq+hl0d3cjxcXFuN1uVJVVp9dvEigSwP3iYj9vfV7L6IldPE5uXvZwcKuPsz/7+qLc/I1vexFA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21IJR9ZhXOuxXGAZBvKv/Uui8wELVHYgUn44bdWNfmKRSIRgMIiUlJQQGxs78Krof7oYY8jt2TUCy3oH0XmI+MAejW0gYpoxxg/mF4zu3a8rbvXrPuigq6uLfwcA6IKAIsDf9kIAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/img/network/addNodeIcon.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/addNodeIcon.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAA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4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICA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DcZmKvkJxk8JHC9rKh+KVhOsD4+Dj+MwADIf8n5m4xGwAAAABJRU5ErkJggg=="
},
"$:/plugins/felixhayashi/vis/img/network/backIcon.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/backIcon.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBC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UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4jq1U/AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5Jf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W5OIh7nK5jjLGKq1W69vDhw8rRqMxMjc3t2t5eXnX5ORklc/nM+fl5SWnpqa+0uv1K/n5+Ws6nW5NluXNd15e3ppOp1uz2WyzZ86cGQ0Gg6ZAIFCZzWZ/lYjokRDiuN/vt7W0tMw3NTUpbrd78P79++5gMFgRiUTKHj58WMYYQ3V19etTp05tq6Lp6Wkb5xxCiEfc7XZPM8a6FxcXTfX19a/1en2Gcy5qamreNjY2/qGq6joRZe12+9Tp06e3JY/FYgWPHz8+mhvr3/CWlpbk+vp6PmOseWVlBS6XS9GSJUkSdrs93NDQ8Oe+ffvC/8fJIyMjddFo9Esi6pVleVjT2m0A8Hq9zqGhIefnjoknT544A4GAM/eDbxMReFNTE0pKSpKqqsaI6Pj8/LxVVdWM3W6PfCr5xMTE1zllXS0uLn6aSqXAGxsbodPpoNfrn6uqCs75EUVRrJFIZMfevXsXdTrdxseIE4mEPDIyUu/3++tynd8yGo29RIR0Og26fv06ioqKwBgD5xzv3r27zBjrIyJIkgSHwzFZWVmp7NmzJ1ZaWpoAgGg0WqgoSvHMzIw1GAw6tvjhitFo7NPW5fv370Hd3d0oKCgA53zTQMvLy+VCiKuSJH0rSdLmztZytIWv5RPRD0T0Y3Fx8dzWfby6ugopHo//w4mcc8iyPMc5v5FOp7/PZrOdQohWInIC2C2EgBBigYi8Qoifs9lsv06nWyIiaFxagXg8jr8GAGxuIe7LBeWhAAAAAElFTkSuQmCC"
},
"$:/plugins/felixhayashi/vis/img/network/connectIcon.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/connectIcon.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN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M0UzMTE5NDhCRDEzRTJCRTc5OUExPC9zdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ubxs+AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAUtSURBVHjajJZ/bNT1Gcdfz/P53PV6B4W7VltLqdAaplIOiMOoyxxJCSs/Gv/yB4gzJroAosmmDklwkYWR0bQsdmkykoojTpcsWYLxD/lRZdMQkTHRtkLZRqG0tIVe7662vTu43n32x/VKZ/jh89cn38/zvN7P5/l88zwf2blzJz6fDwARQUSm1n8s31CM0/VAnbNmsUPuAsDpgEO+Bg4C7//iyv5hvmMiQiqVQpqamvB6vVNwEeG1JZtCBrYi/MrkAwDNgjhwAlbzICBLA0rDb0+/839C6XQaaWxspLCw8Dp86cbNmqVFJQddE6KzdjZ9D89g+B6fSyCOcyn1nxil+O9xKg5HqWFSHGXLjrP7W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3LSjrWltD94CyufF/4kQgPuVz2Lz93+dDRa9eu5QQ8Hg8/iXee+Dy4CKMs7xqn4nwKz9IirhQqmVuB42m8ey+x7LMoD6iAON782eChhqmRuXfvXgKBAKqKqtI0/8nNKrQI4BVYXkzHgzPpC88gWuHL/caXrhLoGiN0apSKr0ZZRBZM7q2w5ZnLR1oAnHOMjY0hra2tFBQUYIyZmstvVT1Z6eDlAuEVq7merxmwueNPDXy9PvybjKP5mctHLk4/XTKZRJqbm/H7/VNw1VyEMYbW4FN3WNWnnchKoy5sHeVGBRX6VWi3ymFx7r11Ix8MTX/y5C2RSPC/AQB61erowbpqSwAAAABJRU5ErkJggg=="
},
"$:/plugins/felixhayashi/vis/img/network/cross.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/cross.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7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3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjc8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NzwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+cZUZMwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAA2ElEQVR42gDLADT/AS0tLUQFBQUVFxcXtPHx8fPl5eUNCAgITCkpKesEHx8fGgYGBjH+/v4a+Pj4qgQEBFU6OjodMTExzwQUFBSvEBAQEfX19SD19fVqNDQ0CElJSd/9/f2vAwEBAfrn5+fkBwcHLRYWFgsXFxfz29vbo9LS0uwDDQ0NDfPz81orKysXIyMj+ODg4Avh4eEa/f391gMkJCRYPz8/KUhISOMCAgKh8fHxHRsbGx4UFBQQBDk5OeY7Ozv7CAgItPb29vMEBASaJSUlTQ0NDesDAEwpT0Ko8Ri2AAAAAElFTkSuQmCC"
},
"$:/plugins/felixhayashi/vis/img/network/cross2.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/cross2.png",
"type": "image/png",
"text": "iVBORw0KGgoAAA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lNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8cGhvdG9zaG9wOklDQ1Byb2ZpbGU+c1JHQiBJRUM2MTk2Ni0yLjE8L3Bob3Rvc2hvcDpJQ0NQcm9maWxlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj41PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjU8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PvQ0yV0AAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAHZJREFUeNoAaQCW/wE1NTWrERER3+3t7Xbp6emKOTk5IgQtLS3kBAQEdfLy8ipOTk5LQ0NDkAE0NDQAEhISxiEhITkTExPH9PT0OgMGBgaPMzMzVS8vL7XU1NRC7+/vEQNfX19lUFBQtfPz82EEBAQMNTU1HwMAMI4nIAoe9RQAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/img/network/deleteIcon.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/deleteIcon.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4aYJzYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYGSURBVHjalJZ7UJTnFcZ/73m/72PdJY1RbhoQp6lkXRAvmIYxdCUadLVOozPNtGObap1JsKipjiShbdoRbeKEiQHpQK3xj0xa03aamTbaTGyAYV1QGeqFi+JyiZFLAlmESBkWRmS3fyzslGkmnZ5/v/M873Oe75zzvqqoqAibzQaAiKCUAkApRdHIK/NFsx2NR91nOSILADDoJyzNaM4xxbtvPHh0iC+JiYkJ1OHDh4mJiUEp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dAW1VKVMHty0kA5Bb48BycJn/LjWFGbLv4thvvb53kFvjJ+XEdWkPfjQVR/CcNKYgGMc8JWt5Fa2j+MIPPuyI2pa4IoHSkt6vLIuRaQ9q32khzt4GCxtNu6k46GeiIR2lIfDQQsafPzq1LGRGL9Gk9d+vrwewvfHPQOoexQVjxdB/auk/zmaUMdsfz6bVUtIalT7bxveP1ZHh6GPDPYeSzeD69kcpIfxymFWLNrka+ljhBTWkWwz2JiJT84YHnz2iPx0P20PkmRF5i6HYiwZFJsn/YzdezbzE3cQibY5xV266z6RfXohakb+xB9CjanCD9qTbW7Grk4WV38VZm0l6dhQiEw9taHSuDqrS0FIfDwXM3X9mHMsvRAk/sauDpQy38P+GtzOTGB9mEpkD0C2dS8n8zOjqK9ng8WJZFU+JTjasGvaCNXPpvJBPoMlm0OoDNMfWVxONfWNSUPUZ7TUQ56tCZlPwSgMnJSVRpaSmxsbFE1raw82ZxAZZRQUiBYUKGp5UlOX2krBzmoUVjiIKhHge9rfPo+Wcy3ZeXIYASgL1/X5RfMXMvj46OosrLy7HZbGitUUohIuzoem0RofALaOsghgWGjky0MiJTL8b0lOvI8hN1DKXKP0jd3TNTWDgcJhgMoo4ePYrD4Yi+KmaeLlprnrtXFo9h/AAlG1AqE8yFmBrC+jO0bgH9EVpO/1F2Dc5g//OAsbEx/j0Af+USsQynL1UAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/img/network/downArrow.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/downArrow.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZ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BycvKDYDCoD4VCH0UiEUM6dyPi562trd+99y+Mw+Ggly9ftjLGvlGpVAsVCCKCnAjeuK3S74h4orq6+p/19fXv/wuTuYBkMvkJIn6KiFYi4olIJ4NmEHGEiPoB4IbFYul9FzDdfgOenj3/W2qSyQAAAABJRU5ErkJggg=="
},
"$:/plugins/felixhayashi/vis/img/network/editIcon.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/editIcon.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHT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T4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgIC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gh0P7B3ioW/B0iGiCGiwXbCuOHFSJys6AbYFye2T+xWhT3WYJEIoH/DQBMw3kes8OJPgAAAABJRU5ErkJggg=="
},
"$:/plugins/felixhayashi/vis/img/network/leftArrow.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/leftArrow.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBC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jkYgsFArl2u12jd/vT19aWvpBMBjM5Xn+G57nN6zXg4ODDbFYTCZJ0q+poKDgC0QEn8/HjY2NydeadOjQocfd3d39ZWVlToZhSBTFqsnJyQoAALVaPbsRdHJyUh4IBDgigubm5i8Zk8kE9fX1zxHxvfn5eWxsbHSvNZlhGKmmpsbNcZwnMzMzrFKpnu7du9eiUqkCG4EHBgbqw+GwHAA6T548OcIAAJSUlFi2bNnSGwgE5LFYLK7RaL5dL4hcLo+q1Wofz/P+bdu2LWwixe8+efJECwAQi8XeN5lMEgMAIIqiJAiCFxHbPR6PUiaTzRUWFobfxr212+1Fw8PDe5In/8Oenp6vX+lArFarvbGxMRMRdzmdztK3Abfb7UWDg4PvJa/QJxcuXPh41Z7LYrF83tTUlIOITU6nszQej8d37Njx7feBmkymd1NfKknSn7u6ujrX7TLNZvNnOp0uk2GYXV6vV+n1erMyMjKicrl8U53m1NRU7t27dwWHw6FNpveTzs7Ozk039N3d3b8AgOspNVIoFDM8z7uLi4t9HMdFZDJZPCWDfr9/q9vtVni93qJQKMStqFofnjt37i9v/AtjNBppYWHhHMMwv2dZNnWlABFflr81JLOrtrb2T3v27HnzX5jXF5BIJHYj4iFE3ElEPBHlJEFBRJwiohEA+IcgCPfWA6bsv6nEjVSaQsrEAAAAAElFTkSuQmCC"
},
"$:/plugins/felixhayashi/vis/img/network/minus.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/minus.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcA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ASCaTDiEELly40Ps2pu3u7j6RTqcd5r3FYsnmF10qmUmgUEu1rZRMa0mGYcwwsz2TyRTZbLY5AJBleWJyctLR1tZ2otC8helvKb8vnpyZYbVaJ8z2p0+fFuX7ZpiZh5kZuq6XFCSK6w6HY+JlvpUkacn2wgUSEWw228S+ffuum/M+fvy4JN83JDHzLSJqHB4etm/fvn0CACoqKqa7urp+XGkzJxIJe96Ft5iIfgGAWCzmWu19rOu6K7/tfuWysrI/iAjJZFJ+8OCBdbWgIyMj1unpaZmZ4fV6/+Senh6DiPwAMDAw4Fkt8L179zx5//ubmppyLz6xmZnzeXNvvnjx4taVhgaDwa1jY2ObAWB+fv78Qj7WNM1QVTVBRK26rjstFssTl8uVWQno4ODghhs3bjTlv/zjXV1dd/9VgYTD4cEdO3YUE1FDNBrdtBLwwcHBDcFgsDm/hc50dnaeXrLmun379pW6urpSIqqLRqObstlstrKycvJNoNeuXdtqvqlhGOc7Ojr8r6wyQ6HQ5fr6+mIhREMikXAmEol31q5d+9xqtS6r0hwdHV139epVNRKJ1OTNe8bv9/uXXdCfOnXqUwDfmdHIbrePK4oS37hxY1KW5VmLxZI1w2AqlXo3Ho/bE4nEhnQ6LZuRi4iOt7e3f//avzCBQIDn5ubahRDfSJKEfH0GIlrIvy8JmR21tbXfNjU1vf4vzOIF5HK5RiL6mIh2MrPCzKV50AwRjTLzTQA/qap6/VVAU/8Apxa13K97LqUAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/img/network/plus.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/plus.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAM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AASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/img/network/rightArrow.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/rightArrow.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSH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jabLY9JXNubq4kkUgwhBCwWq3D1OPxQH19/QYifri5uYkNDQ3h/YiVSuV2eXn5QnFxceLw4cPR5ubmiZaWFo5SumeTd//+/XpBEEoAoLujo2OUZhVlXCaTfZ5IJEqSyWTKaDSu5EOu1+vjBoMhVlJS8sYOxe121zx+/Lg2W/UfeTyeDAUACAQCGZZlI4jYzvO8Ri6Xr2q1WuF97Md+v798ZGSkJbsCPu3t7f3ulQ7E5/P5GxoaihDRGgwGDe+D3O/3l7vd7g+zTd+XTqfzi117rvHx8W8tFosSES3BYNCQSqVSVVVVK+9C6vF4asSZZjKZaz09Pd1v7DLHxsa+bmxsLKKUWiORiCYSiRQXFhZu7ZdHEfPz86UPHjxgOY6rzYb3y+7u7u68G/orV650AsAtUbVUKtWSXq8PHz16NMYwzL/kcnlKlMF4PP69cDisikQi5evr64x46kDETy9fvvyHtz7CuFwusr29fZlS+htRJimlgIhAKX1lf859RsSeurq637e0tLz9EWanA+l0uhkRf4SITYQQPSFEmSVaQ8R5QsgoAPyNZVnvmwhF/BfnjYAmDVlf5AAAAABJRU5ErkJggg=="
},
"$:/plugins/felixhayashi/vis/img/network/upArrow.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/upArrow.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8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EQ8EZVKoHlEHCMiDwB8KgjCNy8DZux/ivJJxnpJh8sAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/img/network/zoomExtends.png": {
"title": "$:/plugins/felixhayashi/vis/img/network/zoomExtends.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv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rs3bqz6kJiYmLB2nLXR19fnu3///lZT5SRJ8MSJExARJJPJd0ieURQF+/fvDzY0NETxK8j169c9vb29KkkYhvGu0+k8YxgGlMbGRpBEUVHR9fn5+QKS9eFweEtRUdGD8vLy2deF9vX1Wbv/ZLyx/2NPYttiRgQCgWxUFhYW9jx58sRJsi4cDm9Jp9PpysrK734JtL+/3zc0NPR7M5hOTjQOdJBE+dTWxZoeCASWNOiFhYXdT58+LRCR+ng8viEejxfm5+fPFxcXr6rTvHfvXsnly5d/Fw6Hq83U++R249UOkcXDw/Pd4o5tuVFsjSUlJZ26rkcA/OvOnTuVk5OTlS6XS6uoqIhu2rQp4Xa754qKitJWGUwmk2ui0agrHo97ZmZm3DmNwruhwJUzQmXxK4Ivqppt+YoNw7DgZ3Rd/xzA+wD+qeu6W9d19+jo6JLjL7eoWNeGYfyN5KehwJWM0NSDIGN8vzI4V0pKSjIi0qXr+qcAGkj+yTCMXSQrDMNwmodCCsA9ERki+R8A/5toHMgoVAASxItcFr4osT8Aaa5QMU/uqTYAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/img/timeline/delete.png": {
"title": "$:/plugins/felixhayashi/vis/img/timeline/delete.png",
"type": "image/png",
"text": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAAEAAAABAAXMatwwAAAVRJREFUOMt108FKG1EUBuBvYtxbRGwxiGBXeYCW0mVpDSKVvIJ0F/syJsFdn6GCkaZ9gro3G1u0ILQgheJKRUwXPQNnxvTAcGf+c/7/nPvfO8UEKLCFJg5w31aNqGtgG3c4xLSZyP0QgI8Tpu0quQhyPwTgsBnkAVYD3MM9DibVId5GbiW+B+VIt7hJha1IdhPWDayVsBvcFtHlDYZ4mgou8D7e+zXyN/TwuUhjbkSXLHIZ61KNvItxaYyayBDrZsf36DyGdilQE+ngA57UyD+xg08luTSxHvP/wRuRewDm7uV9WJ4hsBy5rczJJm7G/tcS6VesjxN2Hj4c5S10Qj2Tz/AunrOEr0VtB+Z6vMJ+zfkfcVQjnMbRvcRC5B/hBU4auMbVjBFHCRsFdp6wK1yXHjz37xItRuejfFQ1nwb4HXVfs4nPYsQv0p+oKlLgNf7gGP4Cw4ZUK7kMJVEAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDExLTA1LTE2VDExOjM1OjIxKzAyOjAw9uVF5gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wNS0xNlQxMTozNToyMSswMjowMIe4/VoAAAAASUVORK5CYII="
},
"$:/plugins/felixhayashi/vis/readme": {
"title": "$:/plugins/felixhayashi/vis/readme",
"text": "! TW5-Vis.js\n\nA tiddlywiki plugin for the vis.js library.\n\n---\n\n! Notes on Copyright\n\n!! TiddlyWiki\n\nCreated by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright © Jeremy Ruston 2004-2007 Copyright © UnaMesa Association 2007-2014\n\nPublished under the following [licenses](https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses):\n\n1. BSD 3-clause \"New\" or \"Revised\" License (including any right to adopt any future version of a license if permitted)\n2. Creative Commons Attribution 3.0 (including any right to adopt any future version of a license if permitted)\n\n!! The **vis.js** library\n\nCopyright (c) 2014 [Almende B.V.](https://github.com/almende/vis)\n\nPublished under the following licenses:\n\n1. Apache License Version 2.0, January 2004 http://www.apache.org/licenses/\n2. MIT License (MIT)\n"
},
"$:/plugins/felixhayashi/vis/vis.css": {
"title": "$:/plugins/felixhayashi/vis/vis.css",
"type": "text/vnd.tiddlywiki",
"tags": "$:/tags/Stylesheet",
"text": "\\rules except list\n\n\\define datauri(title)\n<$macrocall $name=\"makedatauri\" type={{$title$!!type}} text={{$title$}}/>\n\\end\n\n.vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}.vis [class*=\"span\"]{min-height:0;width:auto}div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper::after{clear:both;content:\"\";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:bold}div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid white;background-color:rgba(0,0,0,0);width:300px;height:20px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dedede',endColorstr='#c8c8c8',GradientType=0);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2 0,#385380 100%);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(to bottom,#3876c2 0,#385380 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#3876c2',endColorstr='#385380',GradientType=0);box-shadow:#111927 0 0 1px 0;margin-top:-7px}input.vis-configuration.vis-config-range:focus{outline:0}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(to bottom,#9d9d9d 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9d9d9d',endColorstr='#c8c8c8',GradientType=0)}input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dedede',endColorstr='#c8c8c8',GradientType=0);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}input.vis-configuration.vis-config-range::-moz-range-thumb{border:0;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid white;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{border:0;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{position:absolute;background:rgba(57,76,89,0.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.vis-configuration-popup:after,.vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:\" \";height:0;width:0;position:absolute;pointer-events:none}.vis-configuration-popup:after{border-color:rgba(136,183,213,0);border-left-color:rgba(57,76,89,0.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0);border-left-color:#f2faff;border-width:12px;margin-top:-12px}div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,0.2);pointer-events:none;z-index:5}div.vis-color-picker{position:absolute;top:0;left:30px;margin-top:-140px;margin-left:30px;width:310px;height:444px;z-index:1;padding:10px;border-radius:15px;background-color:#fff;display:none;box-shadow:rgba(0,0,0,0.5) 0 0 10px 0}div.vis-color-picker div.vis-arrow{position:absolute;top:147px;left:5px}div.vis-color-picker div.vis-arrow::after,div.vis-color-picker div.vis-arrow::before{right:100%;top:50%;border:solid transparent;content:\" \";height:0;width:0;position:absolute;pointer-events:none}div.vis-color-picker div.vis-arrow:after{border-color:rgba(255,255,255,0);border-right-color:#fff;border-width:30px;margin-top:-30px}div.vis-color-picker div.vis-color{position:absolute;width:289px;height:289px;cursor:pointer}div.vis-color-picker div.vis-brightness{position:absolute;top:313px}div.vis-color-picker div.vis-opacity{position:absolute;top:350px}div.vis-color-picker div.vis-selector{position:absolute;top:137px;left:137px;width:15px;height:15px;border-radius:15px;border:1px solid #fff;background:#4c4c4c;background:-moz-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-o-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-ms-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:linear-gradient(to bottom,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4c4c4c',endColorstr='#131313',GradientType=0)}div.vis-color-picker div.vis-new-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,0.1);border-radius:5px;top:380px;left:159px;text-align:right;padding-right:2px;font-size:10px;color:rgba(0,0,0,0.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-initial-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,0.1);border-radius:5px;top:380px;left:10px;text-align:left;padding-left:2px;font-size:10px;color:rgba(0,0,0,0.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-label{position:absolute;width:300px;left:10px}div.vis-color-picker div.vis-label.vis-brightness{top:300px}div.vis-color-picker div.vis-label.vis-opacity{top:338px}div.vis-color-picker div.vis-button{position:absolute;width:68px;height:25px;border-radius:10px;vertical-align:middle;text-align:center;line-height:25px;top:410px;border:2px solid #d9d9d9;background-color:#f7f7f7;cursor:pointer}div.vis-color-picker div.vis-button.vis-cancel{left:5px}div.vis-color-picker div.vis-button.vis-load{left:82px}div.vis-color-picker div.vis-button.vis-apply{left:159px}div.vis-color-picker div.vis-button.vis-save{left:236px}div.vis-color-picker input.vis-range{width:290px;height:20px}div.vis-network div.vis-manipulation{box-sizing:content-box;border-width:0;border-bottom:1px;border-style:solid;border-color:#d6d9d8;background:#fff;background:-moz-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(48%,#fcfcfc),color-stop(50%,#fafafa),color-stop(100%,#fcfcfc));background:-webkit-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-o-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-ms-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:linear-gradient(to bottom,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#fcfcfc',GradientType=0);padding-top:4px;position:absolute;left:0;top:0;width:100%;height:28px}div.vis-network div.vis-edit-mode{position:absolute;left:0;top:5px;height:30px}div.vis-network div.vis-close{position:absolute;right:0;top:0;width:30px;height:30px;background-position:20px 3px;background-repeat:no-repeat;background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/cross.png\">>);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-close:hover{opacity:.6}div.vis-network div.vis-manipulation div.vis-button,div.vis-network div.vis-edit-mode div.vis-button{float:left;font-family:verdana;font-size:12px;-moz-border-radius:15px;border-radius:15px;display:inline-block;background-position:0 0;background-repeat:no-repeat;height:24px;margin-left:10px;cursor:pointer;padding:0 8px 0 8px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-manipulation div.vis-button:hover{box-shadow:1px 1px 8px rgba(0,0,0,0.20)}div.vis-network div.vis-manipulation div.vis-button:active{box-shadow:1px 1px 8px rgba(0,0,0,0.50)}div.vis-network div.vis-manipulation div.vis-button.vis-back{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/backIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-button.vis-none:hover{box-shadow:1px 1px 8px rgba(0,0,0,0.0);cursor:default}div.vis-network div.vis-manipulation div.vis-button.vis-none:active{box-shadow:1px 1px 8px rgba(0,0,0,0.0)}div.vis-network div.vis-manipulation div.vis-button.vis-none{padding:0}div.vis-network div.vis-manipulation div.notification{margin:2px;font-weight:bold}div.vis-network div.vis-manipulation div.vis-button.vis-add{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/addNodeIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-button.vis-edit,div.vis-network div.vis-edit-mode div.vis-button.vis-edit{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/editIcon.png\">>)}div.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode{background-color:#fcfcfc;border:1px solid #ccc}div.vis-network div.vis-manipulation div.vis-button.vis-connect{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/connectIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-button.vis-delete{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/deleteIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-label,div.vis-network div.vis-edit-mode div.vis-label{margin:0 0 0 23px;line-height:25px}div.vis-network div.vis-manipulation div.vis-separator-line{float:left;display:inline-block;width:1px;height:21px;background-color:#bdbdbd;margin:0 7px 0 15px}div.vis-network div.vis-navigation div.vis-button{width:34px;height:34px;-moz-border-radius:17px;border-radius:17px;position:absolute;display:inline-block;background-position:2px 2px;background-repeat:no-repeat;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-navigation div.vis-button:hover{box-shadow:0 0 3px 3px rgba(56,207,21,0.30)}div.vis-network div.vis-navigation div.vis-button:active{box-shadow:0 0 1px 3px rgba(56,207,21,0.95)}div.vis-network div.vis-navigation div.vis-button.vis-up{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/upArrow.png\">>);bottom:50px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-down{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/downArrow.png\">>);bottom:10px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-left{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/leftArrow.png\">>);bottom:10px;left:15px}div.vis-network div.vis-navigation div.vis-button.vis-right{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/rightArrow.png\">>);bottom:10px;left:95px}div.vis-network div.vis-navigation div.vis-button.vis-zoomIn{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/plus.png\">>);bottom:10px;right:15px}div.vis-network div.vis-navigation div.vis-button.vis-zoomOut{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/minus.png\">>);bottom:10px;right:55px}div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/zoomExtends.png\">>);bottom:50px;right:15px}.vis-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.vis-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:white;font-weight:bold;text-align:center;background:#3876c2}.vis-rolling-mode-btn:before{content:\"\\26F6\"}.vis-rolling-mode-btn:hover{opacity:1}.vis-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor{border-color:#e5e5e5}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major{border-color:#bfbfbf}.vis-data-axis .vis-y-axis.vis-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-major.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-minor.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.vis-data-axis .vis-y-axis.vis-title.vis-measure{padding:0;margin:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title.vis-left{bottom:0;-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.vis-data-axis .vis-y-axis.vis-title.vis-right{bottom:0;-webkit-transform-origin:right bottom;-moz-transform-origin:right bottom;-ms-transform-origin:right bottom;-o-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.vis-legend{background-color:rgba(247,252,255,0.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px rgba(154,154,154,0.55)}.vis-legend-text{white-space:nowrap;display:inline-block}.vis-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.vis-item.vis-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.vis-editable.vis-selected{cursor:move}.vis-item.vis-point.vis-selected{background-color:#fff785}.vis-item.vis-box{text-align:center;border-style:solid;border-radius:2px}.vis-item.vis-point{background:0}.vis-item.vis-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.vis-item.vis-range{border-style:solid;border-radius:2px;box-sizing:border-box}.vis-item.vis-background{border:0;background-color:rgba(213,221,246,0.4);box-sizing:border-box;padding:0;margin:0}.vis-item .vis-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.vis-item-visible-frame{white-space:nowrap}.vis-item.vis-range .vis-item-content{position:relative;display:inline-block}.vis-item.vis-background .vis-item-content{position:absolute;display:inline-block}.vis-item.vis-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.vis-item .vis-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.vis-item .vis-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:white;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.vis-item .vis-delete,.vis-item .vis-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;-moz-transition:background .2s linear;-ms-transition:background .2s linear;-o-transition:background .2s linear;transition:background .2s linear}.vis-item .vis-delete{right:-24px}.vis-item .vis-delete-rtl{left:-24px}.vis-item .vis-delete:after,.vis-item .vis-delete-rtl:after{content:\"\\00D7\";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:bold;-webkit-transition:color .2s linear;-moz-transition:color .2s linear;-ms-transition:color .2s linear;-o-transition:color .2s linear;transition:color .2s linear}.vis-item .vis-delete:hover,.vis-item .vis-delete-rtl:hover{background:red}.vis-item .vis-delete:hover:after,.vis-item .vis-delete-rtl:hover:after{color:white}.vis-item .vis-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.vis-item.vis-range .vis-drag-left{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;left:-4px;cursor:w-resize}.vis-item.vis-range .vis-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;right:-4px;cursor:e-resize}.vis-range.vis-item.vis-readonly .vis-drag-left,.vis-range.vis-item.vis-readonly .vis-drag-right{cursor:auto}.vis-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.vis-itemset .vis-background,.vis-itemset .vis-foreground{position:absolute;width:100%;height:100%;overflow:visible}.vis-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.vis-foreground .vis-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.vis-foreground .vis-group:last-child{border-bottom:0}.vis-nesting-group{cursor:pointer}.vis-nested-group{background:#f5f5f5}.vis-label.vis-nesting-group.expanded:before{content:\"\\25BC\"}.vis-label.vis-nesting-group.collapsed-rtl:before{content:\"\\25C0\"}.vis-label.vis-nesting-group.collapsed:before{content:\"\\25B6\"}.vis-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-labelset{position:relative;overflow:hidden;box-sizing:border-box}.vis-labelset .vis-label{position:relative;left:0;top:0;width:100%;color:#4d4d4d;box-sizing:border-box}.vis-labelset .vis-label{border-bottom:1px solid #bfbfbf}.vis-labelset .vis-label.draggable{cursor:pointer}.vis-labelset .vis-label:last-child{border-bottom:0}.vis-labelset .vis-label .vis-inner{display:inline-block;padding:5px}.vis-labelset .vis-label .vis-inner.vis-hidden{padding:0}.vis-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right,.vis-panel.vis-top,.vis-panel.vis-bottom{border:1px #bfbfbf}.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.vis-left.vis-panel.vis-vertical-scroll,.vis-right.vis-panel.vis-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.vis-left.vis-panel.vis-vertical-scroll{direction:rtl}.vis-left.vis-panel.vis-vertical-scroll .vis-content{direction:ltr}.vis-right.vis-panel.vis-vertical-scroll{direction:ltr}.vis-right.vis-panel.vis-vertical-scroll .vis-content{direction:rtl}.vis-panel.vis-center,.vis-panel.vis-top,.vis-panel.vis-bottom{border-left-style:solid;border-right-style:solid}.vis-background{overflow:hidden}.vis-panel>.vis-content{position:relative}.vis-panel .vis-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,0.8)}.vis-panel .vis-shadow.vis-top{top:-1px;left:0}.vis-panel .vis-shadow.vis-bottom{bottom:-1px;left:0}.vis-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.vis-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.vis-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.vis-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.vis-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.vis-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.vis-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.vis-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.vis-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.vis-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.vis-timeline .vis-fill{fill-opacity:.1;stroke:none}.vis-timeline .vis-bar{fill-opacity:.5;stroke-width:1px}.vis-timeline .vis-point{stroke-width:2px;fill-opacity:1.0}.vis-timeline .vis-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.vis-timeline .vis-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.vis-timeline .vis-icon-fill{fill-opacity:.3;stroke:none}.vis-time-axis{position:relative;overflow:hidden}.vis-time-axis.vis-foreground{top:0;left:0;width:100%}.vis-time-axis.vis-background{position:absolute;top:0;left:0;width:100%;height:100%}.vis-time-axis .vis-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.vis-time-axis .vis-text.vis-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.vis-time-axis .vis-grid.vis-vertical{position:absolute;border-left:1px solid}.vis-time-axis .vis-grid.vis-vertical-rtl{position:absolute;border-right:1px solid}.vis-time-axis .vis-grid.vis-minor{border-color:#e5e5e5}.vis-time-axis .vis-grid.vis-major{border-color:#bfbfbf}.vis-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}"
},
"$:/plugins/felixhayashi/vis/vis.js": {
"title": "$:/plugins/felixhayashi/vis/vis.js",
"text": "/*\\\ntitle: $:/plugins/felixhayashi/vis/vis.js\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\\*/\n\n/*** TO AVOID STRANGE LIB ERRORS FROM BUBBLING UP *****************/\n\nif($tw.boot.tasks.trapErrors) {\n\n var defaultHandler = window.onerror;\n window.onerror = function(errorMsg, url, lineNumber) {\n \n if(errorMsg.indexOf(\"NS_ERROR_NOT_AVAILABLE\") !== -1\n && url == \"$:/plugins/felixhayashi/vis/vis.js\") {\n \n var text = \"Strange firefox related vis.js error (see #125)\";\n console.error(text, arguments);\n \n } else if(errorMsg.indexOf(\"Permission denied to access property\") !== -1) {\n \n var text = \"Strange firefox related vis.js error (see #163)\";\n console.error(text, arguments);\n \n } else if(defaultHandler) {\n \n defaultHandler.apply(this, arguments);\n \n }\n \n }\n \n}\n\n/******************************************************************/\n\n/**\n * vis.js\n * https://github.com/almende/vis\n *\n * A dynamic, browser-based visualization library.\n *\n * @version 4.21.0\n * @date 2017-10-12\n *\n * @license\n * Copyright (C) 2011-2017 Almende B.V, http://almende.com\n *\n * Vis.js is dual licensed under both\n *\n * * The Apache 2.0 License\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * and\n *\n * * The MIT License\n * http://opensource.org/licenses/MIT\n *\n * Vis.js may be distributed under either license.\n */\n\"use strict\";(function webpackUniversalModuleDefinition(root,factory){if(typeof exports===\"object\"&&typeof module===\"object\")module.exports=factory();else if(typeof define===\"function\"&&define.amd)define([],factory);else if(typeof exports===\"object\")exports[\"vis\"]=factory();else root[\"vis\"]=factory()})(this,function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter})}};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module[\"default\"]}:function getModuleExports(){return module};__webpack_require__.d(getter,\"a\",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p=\"\";return __webpack_require__(__webpack_require__.s=123)}([function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;exports.default=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\")}}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _defineProperty=__webpack_require__(169);var _defineProperty2=_interopRequireDefault(_defineProperty);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\"value\"in descriptor)descriptor.writable=true;(0,_defineProperty2.default)(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}()},function(module,exports,__webpack_require__){\"use strict\";var _getIterator2=__webpack_require__(77);var _getIterator3=_interopRequireDefault(_getIterator2);var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var moment=__webpack_require__(9);var uuid=__webpack_require__(157);exports.isNumber=function(object){return object instanceof Number||typeof object==\"number\"};exports.recursiveDOMDelete=function(DOMobject){if(DOMobject){while(DOMobject.hasChildNodes()===true){exports.recursiveDOMDelete(DOMobject.firstChild);DOMobject.removeChild(DOMobject.firstChild)}}};exports.giveRange=function(min,max,total,value){if(max==min){return.5}else{var scale=1/(max-min);return Math.max(0,(value-min)*scale)}};exports.isString=function(object){return object instanceof String||typeof object==\"string\"};exports.isDate=function(object){if(object instanceof Date){return true}else if(exports.isString(object)){var match=ASPDateRegex.exec(object);if(match){return true}else if(!isNaN(Date.parse(object))){return true}}return false};exports.randomUUID=function(){return uuid.v4()};exports.assignAllKeys=function(obj,value){for(var prop in obj){if(obj.hasOwnProperty(prop)){if((0,_typeof3[\"default\"])(obj[prop])!==\"object\"){obj[prop]=value}}}};function copyOrDelete(a,b,prop,allowDeletion){var doDeletion=false;if(allowDeletion===true){doDeletion=b[prop]===null&&a[prop]!==undefined}if(doDeletion){delete a[prop]}else{a[prop]=b[prop]}}exports.fillIfDefined=function(a,b){var allowDeletion=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;for(var prop in a){if(b[prop]!==undefined){if(b[prop]===null||(0,_typeof3[\"default\"])(b[prop])!==\"object\"){copyOrDelete(a,b,prop,allowDeletion)}else{if((0,_typeof3[\"default\"])(a[prop])===\"object\"){exports.fillIfDefined(a[prop],b[prop],allowDeletion)}}}}};exports.extend=function(a,b){for(var i=1;i<arguments.length;i++){var other=arguments[i];for(var prop in other){if(other.hasOwnProperty(prop)){a[prop]=other[prop]}}}return a};exports.selectiveExtend=function(props,a,b){if(!Array.isArray(props)){throw new Error(\"Array with property names expected as first argument\")}for(var i=2;i<arguments.length;i++){var other=arguments[i];for(var p=0;p<props.length;p++){var prop=props[p];if(other&&other.hasOwnProperty(prop)){a[prop]=other[prop]}}}return a};exports.selectiveDeepExtend=function(props,a,b){var allowDeletion=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Array.isArray(b)){throw new TypeError(\"Arrays are not supported by deepExtend\")}for(var p=0;p<props.length;p++){var prop=props[p];if(b.hasOwnProperty(prop)){if(b[prop]&&b[prop].constructor===Object){if(a[prop]===undefined){a[prop]={}}if(a[prop].constructor===Object){exports.deepExtend(a[prop],b[prop],false,allowDeletion)}else{copyOrDelete(a,b,prop,allowDeletion)}}else if(Array.isArray(b[prop])){throw new TypeError(\"Arrays are not supported by deepExtend\")}else{copyOrDelete(a,b,prop,allowDeletion)}}}return a};exports.selectiveNotDeepExtend=function(propsToExclude,a,b){var allowDeletion=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Array.isArray(b)){throw new TypeError(\"Arrays are not supported by deepExtend\")}for(var prop in b){if(!b.hasOwnProperty(prop))continue;if(propsToExclude.indexOf(prop)!==-1)continue;if(b[prop]&&b[prop].constructor===Object){if(a[prop]===undefined){a[prop]={}}if(a[prop].constructor===Object){exports.deepExtend(a[prop],b[prop])}else{copyOrDelete(a,b,prop,allowDeletion)}}else if(Array.isArray(b[prop])){a[prop]=[];for(var i=0;i<b[prop].length;i++){a[prop].push(b[prop][i])}}else{copyOrDelete(a,b,prop,allowDeletion)}}return a};exports.deepExtend=function(a,b){var protoExtend=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var allowDeletion=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;for(var prop in b){if(b.hasOwnProperty(prop)||protoExtend===true){if(b[prop]&&b[prop].constructor===Object){if(a[prop]===undefined){a[prop]={}}if(a[prop].constructor===Object){exports.deepExtend(a[prop],b[prop],protoExtend)}else{copyOrDelete(a,b,prop,allowDeletion)}}else if(Array.isArray(b[prop])){a[prop]=[];for(var i=0;i<b[prop].length;i++){a[prop].push(b[prop][i])}}else{copyOrDelete(a,b,prop,allowDeletion)}}}return a};exports.equalArray=function(a,b){if(a.length!=b.length)return false;for(var i=0,len=a.length;i<len;i++){if(a[i]!=b[i])return false}return true};exports.convert=function(object,type){var match;if(object===undefined){return undefined}if(object===null){return null}if(!type){return object}if(!(typeof type===\"string\")&&!(type instanceof String)){throw new Error(\"Type must be a string\")}switch(type){case\"boolean\":case\"Boolean\":return Boolean(object);case\"number\":case\"Number\":if(exports.isString(object)&&!isNaN(Date.parse(object))){return moment(object).valueOf()}else{return Number(object.valueOf())}case\"string\":case\"String\":return String(object);case\"Date\":if(exports.isNumber(object)){return new Date(object)}if(object instanceof Date){return new Date(object.valueOf())}else if(moment.isMoment(object)){return new Date(object.valueOf())}if(exports.isString(object)){match=ASPDateRegex.exec(object);if(match){return new Date(Number(match[1]))}else{return moment(new Date(object)).toDate()}}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type Date\")}case\"Moment\":if(exports.isNumber(object)){return moment(object)}if(object instanceof Date){return moment(object.valueOf())}else if(moment.isMoment(object)){return moment(object)}if(exports.isString(object)){match=ASPDateRegex.exec(object);if(match){return moment(Number(match[1]))}else{return moment(object)}}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type Date\")}case\"ISODate\":if(exports.isNumber(object)){return new Date(object)}else if(object instanceof Date){return object.toISOString()}else if(moment.isMoment(object)){return object.toDate().toISOString()}else if(exports.isString(object)){match=ASPDateRegex.exec(object);if(match){return new Date(Number(match[1])).toISOString()}else{return moment(object).format()}}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type ISODate\")}case\"ASPDate\":if(exports.isNumber(object)){return\"/Date(\"+object+\")/\"}else if(object instanceof Date){return\"/Date(\"+object.valueOf()+\")/\"}else if(exports.isString(object)){match=ASPDateRegex.exec(object);var value;if(match){value=new Date(Number(match[1])).valueOf()}else{value=new Date(object).valueOf()}return\"/Date(\"+value+\")/\"}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type ASPDate\")}default:throw new Error('Unknown type \"'+type+'\"')}};var ASPDateRegex=/^\\/?Date\\((\\-?\\d+)/i;exports.getType=function(object){var type=typeof object===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(object);if(type==\"object\"){if(object===null){return\"null\"}if(object instanceof Boolean){return\"Boolean\"}if(object instanceof Number){return\"Number\"}if(object instanceof String){return\"String\"}if(Array.isArray(object)){return\"Array\"}if(object instanceof Date){return\"Date\"}return\"Object\"}else if(type==\"number\"){return\"Number\"}else if(type==\"boolean\"){return\"Boolean\"}else if(type==\"string\"){return\"String\"}else if(type===undefined){return\"undefined\"}return type};exports.copyAndExtendArray=function(arr,newValue){var newArr=[];for(var i=0;i<arr.length;i++){newArr.push(arr[i])}newArr.push(newValue);return newArr};exports.copyArray=function(arr){var newArr=[];for(var i=0;i<arr.length;i++){newArr.push(arr[i])}return newArr};exports.getAbsoluteLeft=function(elem){return elem.getBoundingClientRect().left};exports.getAbsoluteRight=function(elem){return elem.getBoundingClientRect().right};exports.getAbsoluteTop=function(elem){return elem.getBoundingClientRect().top};exports.addClassName=function(elem,classNames){var classes=elem.className.split(\" \");var newClasses=classNames.split(\" \");classes=classes.concat(newClasses.filter(function(className){return classes.indexOf(className)<0}));elem.className=classes.join(\" \")};exports.removeClassName=function(elem,classNames){var classes=elem.className.split(\" \");var oldClasses=classNames.split(\" \");classes=classes.filter(function(className){return oldClasses.indexOf(className)<0});elem.className=classes.join(\" \")};exports.forEach=function(object,callback){var i,len;if(Array.isArray(object)){for(i=0,len=object.length;i<len;i++){callback(object[i],i,object)}}else{for(i in object){if(object.hasOwnProperty(i)){callback(object[i],i,object)}}}};exports.toArray=function(object){var array=[];for(var prop in object){if(object.hasOwnProperty(prop))array.push(object[prop])}return array};exports.updateProperty=function(object,key,value){if(object[key]!==value){object[key]=value;return true}else{return false}};exports.throttle=function(fn){var scheduled=false;return function throttled(){if(!scheduled){scheduled=true;requestAnimationFrame(function(){scheduled=false;fn()})}}};exports.addEventListener=function(element,action,listener,useCapture){if(element.addEventListener){if(useCapture===undefined)useCapture=false;if(action===\"mousewheel\"&&navigator.userAgent.indexOf(\"Firefox\")>=0){action=\"DOMMouseScroll\"}element.addEventListener(action,listener,useCapture)}else{element.attachEvent(\"on\"+action,listener)}};exports.removeEventListener=function(element,action,listener,useCapture){if(element.removeEventListener){if(useCapture===undefined)useCapture=false;if(action===\"mousewheel\"&&navigator.userAgent.indexOf(\"Firefox\")>=0){action=\"DOMMouseScroll\"}element.removeEventListener(action,listener,useCapture)}else{element.detachEvent(\"on\"+action,listener)}};exports.preventDefault=function(event){if(!event)event=window.event;if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}};exports.getTarget=function(event){if(!event){event=window.event}var target;if(event.target){target=event.target}else if(event.srcElement){target=event.srcElement}if(target.nodeType!=undefined&&target.nodeType==3){target=target.parentNode}return target};exports.hasParent=function(element,parent){var e=element;while(e){if(e===parent){return true}e=e.parentNode}return false};exports.option={};exports.option.asBoolean=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(value!=null){return value!=false}return defaultValue||null};exports.option.asNumber=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(value!=null){return Number(value)||defaultValue||null}return defaultValue||null};exports.option.asString=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(value!=null){return String(value)}return defaultValue||null};exports.option.asSize=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(exports.isString(value)){return value}else if(exports.isNumber(value)){return value+\"px\"}else{return defaultValue||null}};exports.option.asElement=function(value,defaultValue){if(typeof value==\"function\"){value=value()}return value||defaultValue||null};exports.hexToRGB=function(hex){var shorthandRegex=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;hex=hex.replace(shorthandRegex,function(m,r,g,b){return r+r+g+g+b+b});var result=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);return result?{r:parseInt(result[1],16),g:parseInt(result[2],16),b:parseInt(result[3],16)}:null};exports.overrideOpacity=function(color,opacity){var rgb;if(color.indexOf(\"rgba\")!=-1){return color}else if(color.indexOf(\"rgb\")!=-1){rgb=color.substr(color.indexOf(\"(\")+1).replace(\")\",\"\").split(\",\");return\"rgba(\"+rgb[0]+\",\"+rgb[1]+\",\"+rgb[2]+\",\"+opacity+\")\"}else{rgb=exports.hexToRGB(color);if(rgb==null){return color}else{return\"rgba(\"+rgb.r+\",\"+rgb.g+\",\"+rgb.b+\",\"+opacity+\")\"}}};exports.RGBToHex=function(red,green,blue){return\"#\"+((1<<24)+(red<<16)+(green<<8)+blue).toString(16).slice(1)};exports.parseColor=function(color){var c;if(exports.isString(color)===true){if(exports.isValidRGB(color)===true){var rgb=color.substr(4).substr(0,color.length-5).split(\",\").map(function(value){return parseInt(value)});color=exports.RGBToHex(rgb[0],rgb[1],rgb[2])}if(exports.isValidHex(color)===true){var hsv=exports.hexToHSV(color);var lighterColorHSV={h:hsv.h,s:hsv.s*.8,v:Math.min(1,hsv.v*1.02)};var darkerColorHSV={h:hsv.h,s:Math.min(1,hsv.s*1.25),v:hsv.v*.8};var darkerColorHex=exports.HSVToHex(darkerColorHSV.h,darkerColorHSV.s,darkerColorHSV.v);var lighterColorHex=exports.HSVToHex(lighterColorHSV.h,lighterColorHSV.s,lighterColorHSV.v);c={background:color,border:darkerColorHex,highlight:{background:lighterColorHex,border:darkerColorHex},hover:{background:lighterColorHex,border:darkerColorHex}}}else{c={background:color,border:color,highlight:{background:color,border:color},hover:{background:color,border:color}}}}else{c={};c.background=color.background||undefined;c.border=color.border||undefined;if(exports.isString(color.highlight)){c.highlight={border:color.highlight,background:color.highlight}}else{c.highlight={};c.highlight.background=color.highlight&&color.highlight.background||undefined;c.highlight.border=color.highlight&&color.highlight.border||undefined}if(exports.isString(color.hover)){c.hover={border:color.hover,background:color.hover}}else{c.hover={};c.hover.background=color.hover&&color.hover.background||undefined;c.hover.border=color.hover&&color.hover.border||undefined}}return c};exports.RGBToHSV=function(red,green,blue){red=red/255;green=green/255;blue=blue/255;var minRGB=Math.min(red,Math.min(green,blue));var maxRGB=Math.max(red,Math.max(green,blue));if(minRGB==maxRGB){return{h:0,s:0,v:minRGB}}var d=red==minRGB?green-blue:blue==minRGB?red-green:blue-red;var h=red==minRGB?3:blue==minRGB?1:5;var hue=60*(h-d/(maxRGB-minRGB))/360;var saturation=(maxRGB-minRGB)/maxRGB;var value=maxRGB;return{h:hue,s:saturation,v:value}};var cssUtil={split:function split(cssText){var styles={};cssText.split(\";\").forEach(function(style){if(style.trim()!=\"\"){var parts=style.split(\":\");var key=parts[0].trim();var value=parts[1].trim();styles[key]=value}});return styles},join:function join(styles){return(0,_keys2[\"default\"])(styles).map(function(key){return key+\": \"+styles[key]}).join(\"; \")}};exports.addCssText=function(element,cssText){var currentStyles=cssUtil.split(element.style.cssText);var newStyles=cssUtil.split(cssText);var styles=exports.extend(currentStyles,newStyles);element.style.cssText=cssUtil.join(styles)};exports.removeCssText=function(element,cssText){var styles=cssUtil.split(element.style.cssText);var removeStyles=cssUtil.split(cssText);for(var key in removeStyles){if(removeStyles.hasOwnProperty(key)){delete styles[key]}}element.style.cssText=cssUtil.join(styles)};exports.HSVToRGB=function(h,s,v){var r,g,b;var i=Math.floor(h*6);var f=h*6-i;var p=v*(1-s);var q=v*(1-f*s);var t=v*(1-(1-f)*s);switch(i%6){case 0:r=v,g=t,b=p;break;case 1:r=q,g=v,b=p;break;case 2:r=p,g=v,b=t;break;case 3:r=p,g=q,b=v;break;case 4:r=t,g=p,b=v;break;case 5:r=v,g=p,b=q;break}return{r:Math.floor(r*255),g:Math.floor(g*255),b:Math.floor(b*255)}};exports.HSVToHex=function(h,s,v){var rgb=exports.HSVToRGB(h,s,v);return exports.RGBToHex(rgb.r,rgb.g,rgb.b)};exports.hexToHSV=function(hex){var rgb=exports.hexToRGB(hex);return exports.RGBToHSV(rgb.r,rgb.g,rgb.b)};exports.isValidHex=function(hex){var isOk=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(hex);return isOk};exports.isValidRGB=function(rgb){rgb=rgb.replace(\" \",\"\");var isOk=/rgb\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)/i.test(rgb);return isOk};exports.isValidRGBA=function(rgba){rgba=rgba.replace(\" \",\"\");var isOk=/rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(.{1,3})\\)/i.test(rgba);return isOk};exports.selectiveBridgeObject=function(fields,referenceObject){if(referenceObject!==null&&(typeof referenceObject===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(referenceObject))===\"object\"){var objectTo=(0,_create2[\"default\"])(referenceObject);for(var i=0;i<fields.length;i++){if(referenceObject.hasOwnProperty(fields[i])){if((0,_typeof3[\"default\"])(referenceObject[fields[i]])==\"object\"){objectTo[fields[i]]=exports.bridgeObject(referenceObject[fields[i]])}}}return objectTo}else{return null}};exports.bridgeObject=function(referenceObject){if(referenceObject!==null&&(typeof referenceObject===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(referenceObject))===\"object\"){var objectTo=(0,_create2[\"default\"])(referenceObject);if(referenceObject instanceof Element){objectTo=referenceObject}else{objectTo=(0,_create2[\"default\"])(referenceObject);for(var i in referenceObject){if(referenceObject.hasOwnProperty(i)){if((0,_typeof3[\"default\"])(referenceObject[i])==\"object\"){objectTo[i]=exports.bridgeObject(referenceObject[i])}}}}return objectTo}else{return null}};exports.insertSort=function(a,compare){for(var i=0;i<a.length;i++){var k=a[i];for(var j=i;j>0&&compare(k,a[j-1])<0;j--){a[j]=a[j-1]}a[j]=k}return a};exports.mergeOptions=function(mergeTarget,options,option){var globalOptions=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var isPresent=function isPresent(obj){return obj!==null&&obj!==undefined};var isObject=function isObject(obj){return obj!==null&&(typeof obj===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(obj))===\"object\"};var isEmpty=function isEmpty(obj){for(var x in obj){if(obj.hasOwnProperty(x))return false}return true};if(!isObject(mergeTarget)){throw new Error(\"Parameter mergeTarget must be an object\")}if(!isObject(options)){throw new Error(\"Parameter options must be an object\")}if(!isPresent(option)){throw new Error(\"Parameter option must have a value\")}if(!isObject(globalOptions)){throw new Error(\"Parameter globalOptions must be an object\")}var doMerge=function doMerge(target,options,option){if(!isObject(target[option])){target[option]={}}var src=options[option];var dst=target[option];for(var prop in src){if(src.hasOwnProperty(prop)){dst[prop]=src[prop]}}};var srcOption=options[option];var globalPassed=isObject(globalOptions)&&!isEmpty(globalOptions);var globalOption=globalPassed?globalOptions[option]:undefined;var globalEnabled=globalOption?globalOption.enabled:undefined;if(srcOption===undefined){return}if(typeof srcOption===\"boolean\"){if(!isObject(mergeTarget[option])){mergeTarget[option]={}}mergeTarget[option].enabled=srcOption;return}if(srcOption===null&&!isObject(mergeTarget[option])){if(isPresent(globalOption)){mergeTarget[option]=(0,_create2[\"default\"])(globalOption)}else{return}}if(!isObject(srcOption)){return}var enabled=true;if(srcOption.enabled!==undefined){enabled=srcOption.enabled}else{if(globalEnabled!==undefined){enabled=globalOption.enabled}}doMerge(mergeTarget,options,option);mergeTarget[option].enabled=enabled};exports.binarySearchCustom=function(orderedItems,comparator,field,field2){var maxIterations=1e4;var iteration=0;var low=0;var high=orderedItems.length-1;while(low<=high&&iteration<maxIterations){var middle=Math.floor((low+high)/2);var item=orderedItems[middle];var value=field2===undefined?item[field]:item[field][field2];var searchResult=comparator(value);if(searchResult==0){return middle}else if(searchResult==-1){low=middle+1}else{high=middle-1}iteration++}return-1};exports.binarySearchValue=function(orderedItems,target,field,sidePreference,comparator){var maxIterations=1e4;var iteration=0;var low=0;var high=orderedItems.length-1;var prevValue,value,nextValue,middle;comparator=comparator!=undefined?comparator:function(a,b){return a==b?0:a<b?-1:1};while(low<=high&&iteration<maxIterations){middle=Math.floor(.5*(high+low));prevValue=orderedItems[Math.max(0,middle-1)][field];value=orderedItems[middle][field];nextValue=orderedItems[Math.min(orderedItems.length-1,middle+1)][field];if(comparator(value,target)==0){return middle}else if(comparator(prevValue,target)<0&&comparator(value,target)>0){return sidePreference==\"before\"?Math.max(0,middle-1):middle}else if(comparator(value,target)<0&&comparator(nextValue,target)>0){return sidePreference==\"before\"?middle:Math.min(orderedItems.length-1,middle+1)}else{if(comparator(value,target)<0){low=middle+1}else{high=middle-1}}iteration++}return-1};exports.easingFunctions={linear:function linear(t){return t},easeInQuad:function easeInQuad(t){return t*t},easeOutQuad:function easeOutQuad(t){return t*(2-t)},easeInOutQuad:function easeInOutQuad(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function easeInCubic(t){return t*t*t},easeOutCubic:function easeOutCubic(t){return--t*t*t+1},easeInOutCubic:function easeInOutCubic(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function easeInQuart(t){return t*t*t*t},easeOutQuart:function easeOutQuart(t){return 1- --t*t*t*t},easeInOutQuart:function easeInOutQuart(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function easeInQuint(t){return t*t*t*t*t},easeOutQuint:function easeOutQuint(t){return 1+--t*t*t*t*t},easeInOutQuint:function easeInOutQuint(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};exports.getScrollBarWidth=function(){var inner=document.createElement(\"p\");inner.style.width=\"100%\";inner.style.height=\"200px\";var outer=document.createElement(\"div\");outer.style.position=\"absolute\";outer.style.top=\"0px\";outer.style.left=\"0px\";outer.style.visibility=\"hidden\";outer.style.width=\"200px\";outer.style.height=\"150px\";outer.style.overflow=\"hidden\";outer.appendChild(inner);document.body.appendChild(outer);var w1=inner.offsetWidth;outer.style.overflow=\"scroll\";var w2=inner.offsetWidth;if(w1==w2)w2=outer.clientWidth;document.body.removeChild(outer);return w1-w2};exports.topMost=function(pile,accessors){var candidate=void 0;if(!Array.isArray(accessors)){accessors=[accessors]}var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=(0,_getIterator3[\"default\"])(pile),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var member=_step.value;if(member){candidate=member[accessors[0]];for(var i=1;i<accessors.length;i++){if(candidate){candidate=candidate[accessors[i]]}else{continue}}if(typeof candidate!=\"undefined\"){break}}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator[\"return\"]){_iterator[\"return\"]()}}finally{if(_didIteratorError){throw _iteratorError}}}return candidate}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(194),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(self,call){if(!self){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return call&&((typeof call===\"undefined\"?\"undefined\":(0,_typeof3.default)(call))===\"object\"||typeof call===\"function\")?call:self}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _setPrototypeOf=__webpack_require__(196);var _setPrototypeOf2=_interopRequireDefault(_setPrototypeOf);var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(subClass,superClass){if(typeof superClass!==\"function\"&&superClass!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+(typeof superClass===\"undefined\"?\"undefined\":(0,_typeof3.default)(superClass)))}subClass.prototype=(0,_create2.default)(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(subClass,superClass):subClass.__proto__=superClass}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _iterator=__webpack_require__(142);var _iterator2=_interopRequireDefault(_iterator);var _symbol=__webpack_require__(144);var _symbol2=_interopRequireDefault(_symbol);var _typeof=typeof _symbol2.default===\"function\"&&typeof _iterator2.default===\"symbol\"?function(obj){return typeof obj}:function(obj){return obj&&typeof _symbol2.default===\"function\"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?\"symbol\":typeof obj};function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=typeof _symbol2.default===\"function\"&&_typeof(_iterator2.default)===\"symbol\"?function(obj){return typeof obj===\"undefined\"?\"undefined\":_typeof(obj)}:function(obj){return obj&&typeof _symbol2.default===\"function\"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?\"symbol\":typeof obj===\"undefined\"?\"undefined\":_typeof(obj)}},function(module,exports){var core=module.exports={version:\"2.5.1\"};if(typeof __e==\"number\")__e=core},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(140),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";module.exports=typeof window!==\"undefined\"&&window[\"moment\"]||__webpack_require__(154)},function(module,exports,__webpack_require__){\"use strict\";function hammerMock(){var noop=function noop(){};return{on:noop,off:noop,destroy:noop,emit:noop,get:function get(m){return{set:noop}}}}if(typeof window!==\"undefined\"){var propagating=__webpack_require__(175);var Hammer=window[\"Hammer\"]||__webpack_require__(176);module.exports=propagating(Hammer,{preventDefault:\"mouse\"})}else{module.exports=function(){return hammerMock()}}},function(module,exports,__webpack_require__){\"use strict\";var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Queue=__webpack_require__(43);function DataSet(data,options){if(data&&!Array.isArray(data)){options=data;data=null}this._options=options||{};this._data={};this.length=0;this._fieldId=this._options.fieldId||\"id\";this._type={};if(this._options.type){var fields=(0,_keys2[\"default\"])(this._options.type);for(var i=0,len=fields.length;i<len;i++){var field=fields[i];var value=this._options.type[field];if(value==\"Date\"||value==\"ISODate\"||value==\"ASPDate\"){this._type[field]=\"Date\"}else{this._type[field]=value}}}this._subscribers={};if(data){this.add(data)}this.setOptions(options)}DataSet.prototype.setOptions=function(options){if(options&&options.queue!==undefined){if(options.queue===false){if(this._queue){this._queue.destroy();delete this._queue}}else{if(!this._queue){this._queue=Queue.extend(this,{replace:[\"add\",\"update\",\"remove\"]})}if((0,_typeof3[\"default\"])(options.queue)===\"object\"){this._queue.setOptions(options.queue)}}}};DataSet.prototype.on=function(event,callback){var subscribers=this._subscribers[event];if(!subscribers){subscribers=[];this._subscribers[event]=subscribers}subscribers.push({callback:callback})};DataSet.prototype.off=function(event,callback){var subscribers=this._subscribers[event];if(subscribers){this._subscribers[event]=subscribers.filter(function(listener){return listener.callback!=callback})}};DataSet.prototype._trigger=function(event,params,senderId){if(event==\"*\"){throw new Error(\"Cannot trigger event *\")}var subscribers=[];if(event in this._subscribers){subscribers=subscribers.concat(this._subscribers[event])}if(\"*\"in this._subscribers){subscribers=subscribers.concat(this._subscribers[\"*\"])}for(var i=0,len=subscribers.length;i<len;i++){var subscriber=subscribers[i];if(subscriber.callback){subscriber.callback(event,params,senderId||null)}}};DataSet.prototype.add=function(data,senderId){var addedIds=[],id,me=this;if(Array.isArray(data)){for(var i=0,len=data.length;i<len;i++){id=me._addItem(data[i]);addedIds.push(id)}}else if(data&&(typeof data===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(data))===\"object\"){id=me._addItem(data);addedIds.push(id)}else{throw new Error(\"Unknown dataType\")}if(addedIds.length){this._trigger(\"add\",{items:addedIds},senderId)}return addedIds};DataSet.prototype.update=function(data,senderId){var addedIds=[];var updatedIds=[];var oldData=[];var updatedData=[];var me=this;var fieldId=me._fieldId;var addOrUpdate=function addOrUpdate(item){var id=item[fieldId];if(me._data[id]){var oldItem=util.extend({},me._data[id]);id=me._updateItem(item);updatedIds.push(id);updatedData.push(item);oldData.push(oldItem)}else{id=me._addItem(item);addedIds.push(id)}};if(Array.isArray(data)){for(var i=0,len=data.length;i<len;i++){if(data[i]&&(0,_typeof3[\"default\"])(data[i])===\"object\"){addOrUpdate(data[i])}else{console.warn(\"Ignoring input item, which is not an object at index \"+i)}}}else if(data&&(typeof data===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(data))===\"object\"){addOrUpdate(data)}else{throw new Error(\"Unknown dataType\")}if(addedIds.length){this._trigger(\"add\",{items:addedIds},senderId)}if(updatedIds.length){var props={items:updatedIds,oldData:oldData,data:updatedData};this._trigger(\"update\",props,senderId)}return addedIds.concat(updatedIds)};DataSet.prototype.get=function(args){var me=this;var id,ids,options;var firstType=util.getType(arguments[0]);if(firstType==\"String\"||firstType==\"Number\"){id=arguments[0];options=arguments[1]}else if(firstType==\"Array\"){\nids=arguments[0];options=arguments[1]}else{options=arguments[0]}var returnType;if(options&&options.returnType){var allowedValues=[\"Array\",\"Object\"];returnType=allowedValues.indexOf(options.returnType)==-1?\"Array\":options.returnType}else{returnType=\"Array\"}var type=options&&options.type||this._options.type;var filter=options&&options.filter;var items=[],item,itemIds,itemId,i,len;if(id!=undefined){item=me._getItem(id,type);if(item&&filter&&!filter(item)){item=null}}else if(ids!=undefined){for(i=0,len=ids.length;i<len;i++){item=me._getItem(ids[i],type);if(!filter||filter(item)){items.push(item)}}}else{itemIds=(0,_keys2[\"default\"])(this._data);for(i=0,len=itemIds.length;i<len;i++){itemId=itemIds[i];item=me._getItem(itemId,type);if(!filter||filter(item)){items.push(item)}}}if(options&&options.order&&id==undefined){this._sort(items,options.order)}if(options&&options.fields){var fields=options.fields;if(id!=undefined){item=this._filterFields(item,fields)}else{for(i=0,len=items.length;i<len;i++){items[i]=this._filterFields(items[i],fields)}}}if(returnType==\"Object\"){var result={},resultant;for(i=0,len=items.length;i<len;i++){resultant=items[i];result[resultant.id]=resultant}return result}else{if(id!=undefined){return item}else{return items}}};DataSet.prototype.getIds=function(options){var data=this._data,filter=options&&options.filter,order=options&&options.order,type=options&&options.type||this._options.type,itemIds=(0,_keys2[\"default\"])(data),i,len,id,item,items,ids=[];if(filter){if(order){items=[];for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(filter(item)){items.push(item)}}this._sort(items,order);for(i=0,len=items.length;i<len;i++){ids.push(items[i][this._fieldId])}}else{for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(filter(item)){ids.push(item[this._fieldId])}}}}else{if(order){items=[];for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];items.push(data[id])}this._sort(items,order);for(i=0,len=items.length;i<len;i++){ids.push(items[i][this._fieldId])}}else{for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=data[id];ids.push(item[this._fieldId])}}}return ids};DataSet.prototype.getDataSet=function(){return this};DataSet.prototype.forEach=function(callback,options){var filter=options&&options.filter,type=options&&options.type||this._options.type,data=this._data,itemIds=(0,_keys2[\"default\"])(data),i,len,item,id;if(options&&options.order){var items=this.get(options);for(i=0,len=items.length;i<len;i++){item=items[i];id=item[this._fieldId];callback(item,id)}}else{for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(!filter||filter(item)){callback(item,id)}}}};DataSet.prototype.map=function(callback,options){var filter=options&&options.filter,type=options&&options.type||this._options.type,mappedItems=[],data=this._data,itemIds=(0,_keys2[\"default\"])(data),i,len,id,item;for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(!filter||filter(item)){mappedItems.push(callback(item,id))}}if(options&&options.order){this._sort(mappedItems,options.order)}return mappedItems};DataSet.prototype._filterFields=function(item,fields){if(!item){return item}var filteredItem={},itemFields=(0,_keys2[\"default\"])(item),len=itemFields.length,i,field;if(Array.isArray(fields)){for(i=0;i<len;i++){field=itemFields[i];if(fields.indexOf(field)!=-1){filteredItem[field]=item[field]}}}else{for(i=0;i<len;i++){field=itemFields[i];if(fields.hasOwnProperty(field)){filteredItem[fields[field]]=item[field]}}}return filteredItem};DataSet.prototype._sort=function(items,order){if(util.isString(order)){var name=order;items.sort(function(a,b){var av=a[name];var bv=b[name];return av>bv?1:av<bv?-1:0})}else if(typeof order===\"function\"){items.sort(order)}else{throw new TypeError(\"Order must be a function or a string\")}};DataSet.prototype.remove=function(id,senderId){var removedIds=[],removedItems=[],ids=[],i,len,itemId,item;ids=Array.isArray(id)?id:[id];for(i=0,len=ids.length;i<len;i++){item=this._remove(ids[i]);if(item){itemId=item[this._fieldId];if(itemId!=undefined){removedIds.push(itemId);removedItems.push(item)}}}if(removedIds.length){this._trigger(\"remove\",{items:removedIds,oldData:removedItems},senderId)}return removedIds};DataSet.prototype._remove=function(id){var item,ident;if(util.isNumber(id)||util.isString(id)){ident=id}else if(id&&(typeof id===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(id))===\"object\"){ident=id[this._fieldId]}if(ident!==undefined&&this._data[ident]){item=this._data[ident];delete this._data[ident];this.length--;return item}return null};DataSet.prototype.clear=function(senderId){var i,len;var ids=(0,_keys2[\"default\"])(this._data);var items=[];for(i=0,len=ids.length;i<len;i++){items.push(this._data[ids[i]])}this._data={};this.length=0;this._trigger(\"remove\",{items:ids,oldData:items},senderId);return ids};DataSet.prototype.max=function(field){var data=this._data,itemIds=(0,_keys2[\"default\"])(data),max=null,maxField=null,i,len;for(i=0,len=itemIds.length;i<len;i++){var id=itemIds[i];var item=data[id];var itemField=item[field];if(itemField!=null&&(!max||itemField>maxField)){max=item;maxField=itemField}}return max};DataSet.prototype.min=function(field){var data=this._data,itemIds=(0,_keys2[\"default\"])(data),min=null,minField=null,i,len;for(i=0,len=itemIds.length;i<len;i++){var id=itemIds[i];var item=data[id];var itemField=item[field];if(itemField!=null&&(!min||itemField<minField)){min=item;minField=itemField}}return min};DataSet.prototype.distinct=function(field){var data=this._data;var itemIds=(0,_keys2[\"default\"])(data);var values=[];var fieldType=this._options.type&&this._options.type[field]||null;var count=0;var i,j,len;for(i=0,len=itemIds.length;i<len;i++){var id=itemIds[i];var item=data[id];var value=item[field];var exists=false;for(j=0;j<count;j++){if(values[j]==value){exists=true;break}}if(!exists&&value!==undefined){values[count]=value;count++}}if(fieldType){for(i=0,len=values.length;i<len;i++){values[i]=util.convert(values[i],fieldType)}}return values};DataSet.prototype._addItem=function(item){var id=item[this._fieldId];if(id!=undefined){if(this._data[id]){throw new Error(\"Cannot add item: item with id \"+id+\" already exists\")}}else{id=util.randomUUID();item[this._fieldId]=id}var d={},fields=(0,_keys2[\"default\"])(item),i,len;for(i=0,len=fields.length;i<len;i++){var field=fields[i];var fieldType=this._type[field];d[field]=util.convert(item[field],fieldType)}this._data[id]=d;this.length++;return id};DataSet.prototype._getItem=function(id,types){var field,value,i,len;var raw=this._data[id];if(!raw){return null}var converted={},fields=(0,_keys2[\"default\"])(raw);if(types){for(i=0,len=fields.length;i<len;i++){field=fields[i];value=raw[field];converted[field]=util.convert(value,types[field])}}else{for(i=0,len=fields.length;i<len;i++){field=fields[i];value=raw[field];converted[field]=value}}if(!converted[this._fieldId]){converted[this._fieldId]=raw.id}return converted};DataSet.prototype._updateItem=function(item){var id=item[this._fieldId];if(id==undefined){throw new Error(\"Cannot update item: item has no id (item: \"+(0,_stringify2[\"default\"])(item)+\")\")}var d=this._data[id];if(!d){throw new Error(\"Cannot update item: no item with id \"+id+\" found\")}var fields=(0,_keys2[\"default\"])(item);for(var i=0,len=fields.length;i<len;i++){var field=fields[i];var fieldType=this._type[field];d[field]=util.convert(item[field],fieldType)}return id};module.exports=DataSet},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DataSet=__webpack_require__(11);function DataView(data,options){this._data=null;this._ids={};this.length=0;this._options=options||{};this._fieldId=\"id\";this._subscribers={};var me=this;this.listener=function(){me._onEvent.apply(me,arguments)};this.setData(data)}DataView.prototype.setData=function(data){var ids,id,i,len,items;if(this._data){if(this._data.off){this._data.off(\"*\",this.listener)}ids=this._data.getIds({filter:this._options&&this._options.filter});items=[];for(i=0,len=ids.length;i<len;i++){items.push(this._data._data[ids[i]])}this._ids={};this.length=0;this._trigger(\"remove\",{items:ids,oldData:items})}this._data=data;if(this._data){this._fieldId=this._options.fieldId||this._data&&this._data.options&&this._data.options.fieldId||\"id\";ids=this._data.getIds({filter:this._options&&this._options.filter});for(i=0,len=ids.length;i<len;i++){id=ids[i];this._ids[id]=true}this.length=ids.length;this._trigger(\"add\",{items:ids});if(this._data.on){this._data.on(\"*\",this.listener)}}};DataView.prototype.refresh=function(){var id,i,len;var ids=this._data.getIds({filter:this._options&&this._options.filter}),oldIds=(0,_keys2[\"default\"])(this._ids),newIds={},addedIds=[],removedIds=[],removedItems=[];for(i=0,len=ids.length;i<len;i++){id=ids[i];newIds[id]=true;if(!this._ids[id]){addedIds.push(id);this._ids[id]=true}}for(i=0,len=oldIds.length;i<len;i++){id=oldIds[i];if(!newIds[id]){removedIds.push(id);removedItems.push(this._data._data[id]);delete this._ids[id]}}this.length+=addedIds.length-removedIds.length;if(addedIds.length){this._trigger(\"add\",{items:addedIds})}if(removedIds.length){this._trigger(\"remove\",{items:removedIds,oldData:removedItems})}};DataView.prototype.get=function(args){var me=this;var ids,options,data;var firstType=util.getType(arguments[0]);if(firstType==\"String\"||firstType==\"Number\"||firstType==\"Array\"){ids=arguments[0];options=arguments[1];data=arguments[2]}else{options=arguments[0];data=arguments[1]}var viewOptions=util.extend({},this._options,options);if(this._options.filter&&options&&options.filter){viewOptions.filter=function(item){return me._options.filter(item)&&options.filter(item)}}var getArguments=[];if(ids!=undefined){getArguments.push(ids)}getArguments.push(viewOptions);getArguments.push(data);return this._data&&this._data.get.apply(this._data,getArguments)};DataView.prototype.getIds=function(options){var ids;if(this._data){var defaultFilter=this._options.filter;var filter;if(options&&options.filter){if(defaultFilter){filter=function filter(item){return defaultFilter(item)&&options.filter(item)}}else{filter=options.filter}}else{filter=defaultFilter}ids=this._data.getIds({filter:filter,order:options&&options.order})}else{ids=[]}return ids};DataView.prototype.map=function(callback,options){var mappedItems=[];if(this._data){var defaultFilter=this._options.filter;var filter;if(options&&options.filter){if(defaultFilter){filter=function filter(item){return defaultFilter(item)&&options.filter(item)}}else{filter=options.filter}}else{filter=defaultFilter}mappedItems=this._data.map(callback,{filter:filter,order:options&&options.order})}else{mappedItems=[]}return mappedItems};DataView.prototype.getDataSet=function(){var dataSet=this;while(dataSet instanceof DataView){dataSet=dataSet._data}return dataSet||null};DataView.prototype._onEvent=function(event,params,senderId){var i,len,id,item;var ids=params&¶ms.items;var addedIds=[],updatedIds=[],removedIds=[],oldItems=[],updatedItems=[],removedItems=[];if(ids&&this._data){switch(event){case\"add\":for(i=0,len=ids.length;i<len;i++){id=ids[i];item=this.get(id);if(item){this._ids[id]=true;addedIds.push(id)}}break;case\"update\":for(i=0,len=ids.length;i<len;i++){id=ids[i];item=this.get(id);if(item){if(this._ids[id]){updatedIds.push(id);updatedItems.push(params.data[i]);oldItems.push(params.oldData[i])}else{this._ids[id]=true;addedIds.push(id)}}else{if(this._ids[id]){delete this._ids[id];removedIds.push(id);removedItems.push(params.oldData[i])}else{}}}break;case\"remove\":for(i=0,len=ids.length;i<len;i++){id=ids[i];if(this._ids[id]){delete this._ids[id];removedIds.push(id);removedItems.push(params.oldData[i])}}break}this.length+=addedIds.length-removedIds.length;if(addedIds.length){this._trigger(\"add\",{items:addedIds},senderId)}if(updatedIds.length){this._trigger(\"update\",{items:updatedIds,oldData:oldItems,data:updatedItems},senderId)}if(removedIds.length){this._trigger(\"remove\",{items:removedIds,oldData:removedItems},senderId)}}};DataView.prototype.on=DataSet.prototype.on;DataView.prototype.off=DataSet.prototype.off;DataView.prototype._trigger=DataSet.prototype._trigger;DataView.prototype.subscribe=DataView.prototype.on;DataView.prototype.unsubscribe=DataView.prototype.off;module.exports=DataView},function(module,exports,__webpack_require__){var store=__webpack_require__(57)(\"wks\");var uid=__webpack_require__(40);var Symbol=__webpack_require__(18).Symbol;var USE_SYMBOL=typeof Symbol==\"function\";var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)(\"Symbol.\"+name))};$exports.store=store},function(module,exports,__webpack_require__){\"use strict\";exports.prepareElements=function(JSONcontainer){for(var elementType in JSONcontainer){if(JSONcontainer.hasOwnProperty(elementType)){JSONcontainer[elementType].redundant=JSONcontainer[elementType].used;JSONcontainer[elementType].used=[]}}};exports.cleanupElements=function(JSONcontainer){for(var elementType in JSONcontainer){if(JSONcontainer.hasOwnProperty(elementType)){if(JSONcontainer[elementType].redundant){for(var i=0;i<JSONcontainer[elementType].redundant.length;i++){JSONcontainer[elementType].redundant[i].parentNode.removeChild(JSONcontainer[elementType].redundant[i])}JSONcontainer[elementType].redundant=[]}}}};exports.resetElements=function(JSONcontainer){exports.prepareElements(JSONcontainer);exports.cleanupElements(JSONcontainer);exports.prepareElements(JSONcontainer)};exports.getSVGElement=function(elementType,JSONcontainer,svgContainer){var element;if(JSONcontainer.hasOwnProperty(elementType)){if(JSONcontainer[elementType].redundant.length>0){element=JSONcontainer[elementType].redundant[0];JSONcontainer[elementType].redundant.shift()}else{element=document.createElementNS(\"http://www.w3.org/2000/svg\",elementType);svgContainer.appendChild(element)}}else{element=document.createElementNS(\"http://www.w3.org/2000/svg\",elementType);JSONcontainer[elementType]={used:[],redundant:[]};svgContainer.appendChild(element)}JSONcontainer[elementType].used.push(element);return element};exports.getDOMElement=function(elementType,JSONcontainer,DOMContainer,insertBefore){var element;if(JSONcontainer.hasOwnProperty(elementType)){if(JSONcontainer[elementType].redundant.length>0){element=JSONcontainer[elementType].redundant[0];JSONcontainer[elementType].redundant.shift()}else{element=document.createElement(elementType);if(insertBefore!==undefined){DOMContainer.insertBefore(element,insertBefore)}else{DOMContainer.appendChild(element)}}}else{element=document.createElement(elementType);JSONcontainer[elementType]={used:[],redundant:[]};if(insertBefore!==undefined){DOMContainer.insertBefore(element,insertBefore)}else{DOMContainer.appendChild(element)}}JSONcontainer[elementType].used.push(element);return element};exports.drawPoint=function(x,y,groupTemplate,JSONcontainer,svgContainer,labelObj){var point;if(groupTemplate.style==\"circle\"){point=exports.getSVGElement(\"circle\",JSONcontainer,svgContainer);point.setAttributeNS(null,\"cx\",x);point.setAttributeNS(null,\"cy\",y);point.setAttributeNS(null,\"r\",.5*groupTemplate.size)}else{point=exports.getSVGElement(\"rect\",JSONcontainer,svgContainer);point.setAttributeNS(null,\"x\",x-.5*groupTemplate.size);point.setAttributeNS(null,\"y\",y-.5*groupTemplate.size);point.setAttributeNS(null,\"width\",groupTemplate.size);point.setAttributeNS(null,\"height\",groupTemplate.size)}if(groupTemplate.styles!==undefined){point.setAttributeNS(null,\"style\",groupTemplate.styles)}point.setAttributeNS(null,\"class\",groupTemplate.className+\" vis-point\");if(labelObj){var label=exports.getSVGElement(\"text\",JSONcontainer,svgContainer);if(labelObj.xOffset){x=x+labelObj.xOffset}if(labelObj.yOffset){y=y+labelObj.yOffset}if(labelObj.content){label.textContent=labelObj.content}if(labelObj.className){label.setAttributeNS(null,\"class\",labelObj.className+\" vis-label\")}label.setAttributeNS(null,\"x\",x);label.setAttributeNS(null,\"y\",y)}return point};exports.drawBar=function(x,y,width,height,className,JSONcontainer,svgContainer,style){if(height!=0){if(height<0){height*=-1;y-=height}var rect=exports.getSVGElement(\"rect\",JSONcontainer,svgContainer);rect.setAttributeNS(null,\"x\",x-.5*width);rect.setAttributeNS(null,\"y\",y);rect.setAttributeNS(null,\"width\",width);rect.setAttributeNS(null,\"height\",height);rect.setAttributeNS(null,\"class\",className);if(style){rect.setAttributeNS(null,\"style\",style)}}}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.printStyle=undefined;var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var errorFound=false;var allOptions=void 0;var printStyle=\"background: #FFeeee; color: #dd0000\";var Validator=function(){function Validator(){(0,_classCallCheck3[\"default\"])(this,Validator)}(0,_createClass3[\"default\"])(Validator,null,[{key:\"validate\",value:function validate(options,referenceOptions,subObject){errorFound=false;allOptions=referenceOptions;var usedOptions=referenceOptions;if(subObject!==undefined){usedOptions=referenceOptions[subObject]}Validator.parse(options,usedOptions,[]);return errorFound}},{key:\"parse\",value:function parse(options,referenceOptions,path){for(var option in options){if(options.hasOwnProperty(option)){Validator.check(option,options,referenceOptions,path)}}}},{key:\"check\",value:function check(option,options,referenceOptions,path){if(referenceOptions[option]===undefined&&referenceOptions.__any__===undefined){Validator.getSuggestion(option,referenceOptions,path);return}var referenceOption=option;var is_object=true;if(referenceOptions[option]===undefined&&referenceOptions.__any__!==undefined){referenceOption=\"__any__\";is_object=Validator.getType(options[option])===\"object\"}else{}var refOptionObj=referenceOptions[referenceOption];if(is_object&&refOptionObj.__type__!==undefined){refOptionObj=refOptionObj.__type__}Validator.checkFields(option,options,referenceOptions,referenceOption,refOptionObj,path)}},{key:\"checkFields\",value:function checkFields(option,options,referenceOptions,referenceOption,refOptionObj,path){var log=function log(message){console.log(\"%c\"+message+Validator.printLocation(path,option),printStyle)};var optionType=Validator.getType(options[option]);var refOptionType=refOptionObj[optionType];if(refOptionType!==undefined){if(Validator.getType(refOptionType)===\"array\"&&refOptionType.indexOf(options[option])===-1){log('Invalid option detected in \"'+option+'\".'+\" Allowed values are:\"+Validator.print(refOptionType)+' not \"'+options[option]+'\". ');errorFound=true}else if(optionType===\"object\"&&referenceOption!==\"__any__\"){path=util.copyAndExtendArray(path,option);Validator.parse(options[option],referenceOptions[referenceOption],path)}}else if(refOptionObj[\"any\"]===undefined){log('Invalid type received for \"'+option+'\". Expected: '+Validator.print((0,_keys2[\"default\"])(refOptionObj))+\". Received [\"+optionType+'] \"'+options[option]+'\"');errorFound=true}}},{key:\"getType\",value:function getType(object){var type=typeof object===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(object);if(type===\"object\"){if(object===null){return\"null\"}if(object instanceof Boolean){return\"boolean\"}if(object instanceof Number){return\"number\"}if(object instanceof String){return\"string\"}if(Array.isArray(object)){return\"array\"}if(object instanceof Date){return\"date\"}if(object.nodeType!==undefined){return\"dom\"}if(object._isAMomentObject===true){return\"moment\"}return\"object\"}else if(type===\"number\"){return\"number\"}else if(type===\"boolean\"){return\"boolean\"}else if(type===\"string\"){return\"string\"}else if(type===undefined){return\"undefined\"}return type}},{key:\"getSuggestion\",value:function getSuggestion(option,options,path){var localSearch=Validator.findInOptions(option,options,path,false);var globalSearch=Validator.findInOptions(option,allOptions,[],true);var localSearchThreshold=8;var globalSearchThreshold=4;var msg=void 0;if(localSearch.indexMatch!==undefined){msg=\" in \"+Validator.printLocation(localSearch.path,option,\"\")+'Perhaps it was incomplete? Did you mean: \"'+localSearch.indexMatch+'\"?\\n\\n'}else if(globalSearch.distance<=globalSearchThreshold&&localSearch.distance>globalSearch.distance){msg=\" in \"+Validator.printLocation(localSearch.path,option,\"\")+\"Perhaps it was misplaced? Matching option found at: \"+Validator.printLocation(globalSearch.path,globalSearch.closestMatch,\"\")}else if(localSearch.distance<=localSearchThreshold){msg='. Did you mean \"'+localSearch.closestMatch+'\"?'+Validator.printLocation(localSearch.path,option)}else{msg=\". Did you mean one of these: \"+Validator.print((0,_keys2[\"default\"])(options))+Validator.printLocation(path,option)}console.log('%cUnknown option detected: \"'+option+'\"'+msg,printStyle);errorFound=true}},{key:\"findInOptions\",value:function findInOptions(option,options,path){var recursive=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var min=1e9;var closestMatch=\"\";var closestMatchPath=[];var lowerCaseOption=option.toLowerCase();var indexMatch=undefined;for(var op in options){var distance=void 0;if(options[op].__type__!==undefined&&recursive===true){var result=Validator.findInOptions(option,options[op],util.copyAndExtendArray(path,op));if(min>result.distance){closestMatch=result.closestMatch;closestMatchPath=result.path;min=result.distance;indexMatch=result.indexMatch}}else{if(op.toLowerCase().indexOf(lowerCaseOption)!==-1){indexMatch=op}distance=Validator.levenshteinDistance(option,op);if(min>distance){closestMatch=op;closestMatchPath=util.copyArray(path);min=distance}}}return{closestMatch:closestMatch,path:closestMatchPath,distance:min,indexMatch:indexMatch}}},{key:\"printLocation\",value:function printLocation(path,option){var prefix=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"Problem value found at: \\n\";var str=\"\\n\\n\"+prefix+\"options = {\\n\";for(var i=0;i<path.length;i++){for(var j=0;j<i+1;j++){str+=\" \"}str+=path[i]+\": {\\n\"}for(var _j=0;_j<path.length+1;_j++){str+=\" \"}str+=option+\"\\n\";for(var _i=0;_i<path.length+1;_i++){for(var _j2=0;_j2<path.length-_i;_j2++){str+=\" \"}str+=\"}\\n\"}return str+\"\\n\\n\"}},{key:\"print\",value:function print(options){return(0,_stringify2[\"default\"])(options).replace(/(\\\")|(\\[)|(\\])|(,\"__type__\")/g,\"\").replace(/(\\,)/g,\", \")}},{key:\"levenshteinDistance\",value:function levenshteinDistance(a,b){if(a.length===0)return b.length;if(b.length===0)return a.length;var matrix=[];var i;for(i=0;i<=b.length;i++){matrix[i]=[i]}var j;for(j=0;j<=a.length;j++){matrix[0][j]=j}for(i=1;i<=b.length;i++){for(j=1;j<=a.length;j++){if(b.charAt(i-1)==a.charAt(j-1)){matrix[i][j]=matrix[i-1][j-1]}else{matrix[i][j]=Math.min(matrix[i-1][j-1]+1,Math.min(matrix[i][j-1]+1,matrix[i-1][j]+1))}}}return matrix[b.length][a.length]}}]);return Validator}();exports[\"default\"]=Validator;exports.printStyle=printStyle},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);function Component(body,options){this.options=null;this.props=null}Component.prototype.setOptions=function(options){if(options){util.extend(this.options,options)}};Component.prototype.redraw=function(){return false};Component.prototype.destroy=function(){};Component.prototype._isResized=function(){var resized=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;this.props._previousWidth=this.props.width;this.props._previousHeight=this.props.height;return resized};module.exports=Component},function(module,exports,__webpack_require__){var global=__webpack_require__(18);var core=__webpack_require__(7);var ctx=__webpack_require__(80);var hide=__webpack_require__(26);var PROTOTYPE=\"prototype\";var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var IS_WRAP=type&$export.W;var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE];var target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE];var key,own,out;if(IS_GLOBAL)source=name;for(key in source){own=!IS_FORCED&&target&&target[key]!==undefined;if(own&&key in exports)continue;out=own?target[key]:source[key];exports[key]=IS_GLOBAL&&typeof target[key]!=\"function\"?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};F[PROTOTYPE]=C[PROTOTYPE];return F}(out):IS_PROTO&&typeof out==\"function\"?ctx(Function.call,out):out;if(IS_PROTO){(exports.virtual||(exports.virtual={}))[key]=out;if(type&$export.R&&expProto&&!expProto[key])hide(expProto,key,out)}}};$export.F=1;$export.G=2;$export.S=4;$export.P=8;$export.B=16;$export.W=32;$export.U=64;$export.R=128;module.exports=$export},function(module,exports){var global=module.exports=typeof window!=\"undefined\"&&window.Math==Math?window:typeof self!=\"undefined\"&&self.Math==Math?self:Function(\"return this\")();if(typeof __g==\"number\")__g=global},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(160),__esModule:true}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var IE8_DOM_DEFINE=__webpack_require__(81);var toPrimitive=__webpack_require__(53);var dP=Object.defineProperty;exports.f=__webpack_require__(21)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if(\"get\"in Attributes||\"set\"in Attributes)throw TypeError(\"Accessors not supported!\");if(\"value\"in Attributes)O[P]=Attributes.value;return O}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(28)(function(){return Object.defineProperty({},\"a\",{get:function(){return 7}}).a!=7})},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var NodeBase=function(){function NodeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,NodeBase);this.body=body;this.labelModule=labelModule;this.setOptions(options);this.top=undefined;this.left=undefined;this.height=undefined;this.width=undefined;this.radius=undefined;this.margin=undefined;this.refreshNeeded=true;this.boundingBox={top:0,left:0,right:0,bottom:0}}(0,_createClass3[\"default\"])(NodeBase,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"_setMargins\",value:function _setMargins(labelModule){this.margin={};if(this.options.margin){if((0,_typeof3[\"default\"])(this.options.margin)==\"object\"){this.margin.top=this.options.margin.top;this.margin.right=this.options.margin.right;this.margin.bottom=this.options.margin.bottom;this.margin.left=this.options.margin.left}else{this.margin.top=this.options.margin;this.margin.right=this.options.margin;this.margin.bottom=this.options.margin;this.margin.left=this.options.margin}}labelModule.adjustSizes(this.margin)}},{key:\"_distanceToBorder\",value:function _distanceToBorder(ctx,angle){var borderWidth=this.options.borderWidth;this.resize(ctx);return Math.min(Math.abs(this.width/2/Math.cos(angle)),Math.abs(this.height/2/Math.sin(angle)))+borderWidth}},{key:\"enableShadow\",value:function enableShadow(ctx,values){if(values.shadow){ctx.shadowColor=values.shadowColor;ctx.shadowBlur=values.shadowSize;ctx.shadowOffsetX=values.shadowX;ctx.shadowOffsetY=values.shadowY}}},{key:\"disableShadow\",value:function disableShadow(ctx,values){if(values.shadow){ctx.shadowColor=\"rgba(0,0,0,0)\";ctx.shadowBlur=0;ctx.shadowOffsetX=0;ctx.shadowOffsetY=0}}},{key:\"enableBorderDashes\",value:function enableBorderDashes(ctx,values){if(values.borderDashes!==false){if(ctx.setLineDash!==undefined){var dashes=values.borderDashes;if(dashes===true){dashes=[5,15]}ctx.setLineDash(dashes)}else{console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");this.options.shapeProperties.borderDashes=false;values.borderDashes=false}}}},{key:\"disableBorderDashes\",value:function disableBorderDashes(ctx,values){if(values.borderDashes!==false){if(ctx.setLineDash!==undefined){ctx.setLineDash([0])}else{console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");this.options.shapeProperties.borderDashes=false;values.borderDashes=false}}}},{key:\"needsRefresh\",value:function needsRefresh(selected,hover){if(this.refreshNeeded===true){this.refreshNeeded=false;return true}return this.width===undefined||this.labelModule.differentState(selected,hover)}},{key:\"initContextForDraw\",value:function initContextForDraw(ctx,values){var borderWidth=values.borderWidth/this.body.view.scale;ctx.lineWidth=Math.min(this.width,borderWidth);ctx.strokeStyle=values.borderColor;ctx.fillStyle=values.color}},{key:\"performStroke\",value:function performStroke(ctx,values){var borderWidth=values.borderWidth/this.body.view.scale;ctx.save();if(borderWidth>0){this.enableBorderDashes(ctx,values);ctx.stroke();this.disableBorderDashes(ctx,values)}ctx.restore()}},{key:\"performFill\",value:function performFill(ctx,values){this.enableShadow(ctx,values);ctx.fill();this.disableShadow(ctx,values);this.performStroke(ctx,values)}},{key:\"_addBoundingBoxMargin\",value:function _addBoundingBoxMargin(margin){this.boundingBox.left-=margin;this.boundingBox.top-=margin;this.boundingBox.bottom+=margin;this.boundingBox.right+=margin}},{key:\"_updateBoundingBox\",value:function _updateBoundingBox(x,y,ctx,selected,hover){if(ctx!==undefined){this.resize(ctx,selected,hover)}this.left=x-this.width/2;this.top=y-this.height/2;this.boundingBox.left=this.left;this.boundingBox.top=this.top;this.boundingBox.bottom=this.top+this.height;this.boundingBox.right=this.left+this.width}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y,ctx,selected,hover){this._updateBoundingBox(x,y,ctx,selected,hover)}},{key:\"getDimensionsFromLabel\",value:function getDimensionsFromLabel(ctx,selected,hover){this.textSize=this.labelModule.getTextSize(ctx,selected,hover);var width=this.textSize.width;var height=this.textSize.height;var DEFAULT_SIZE=14;if(width===0){width=DEFAULT_SIZE;height=DEFAULT_SIZE}return{width:width,height:height}}}]);return NodeBase}();exports[\"default\"]=NodeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2)\n;var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ShapeBase=function(_NodeBase){(0,_inherits3[\"default\"])(ShapeBase,_NodeBase);function ShapeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,ShapeBase);return(0,_possibleConstructorReturn3[\"default\"])(this,(ShapeBase.__proto__||(0,_getPrototypeOf2[\"default\"])(ShapeBase)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(ShapeBase,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;var values=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{size:this.options.size};if(this.needsRefresh(selected,hover)){this.labelModule.getTextSize(ctx,selected,hover);var size=2*values.size;this.width=size;this.height=size;this.radius=.5*this.width}}},{key:\"_drawShape\",value:function _drawShape(ctx,shape,sizeMultiplier,x,y,selected,hover,values){this.resize(ctx,selected,hover,values);this.left=x-this.width/2;this.top=y-this.height/2;this.initContextForDraw(ctx,values);ctx[shape](x,y,values.size);this.performFill(ctx,values);if(this.options.label!==undefined){this.labelModule.calculateLabelSize(ctx,selected,hover,x,y,\"hanging\");var yLabel=y+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(ctx,x,yLabel,selected,hover,\"hanging\")}this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.size;this.boundingBox.left=x-this.options.size;this.boundingBox.right=x+this.options.size;this.boundingBox.bottom=y+this.options.size;if(this.options.label!==undefined&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height)}}}]);return ShapeBase}(_NodeBase3[\"default\"]);exports[\"default\"]=ShapeBase},function(module,exports,__webpack_require__){var IObject=__webpack_require__(78);var defined=__webpack_require__(51);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){var dP=__webpack_require__(20);var createDesc=__webpack_require__(39);module.exports=__webpack_require__(21)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);module.exports=function(it){if(!isObject(it))throw TypeError(it+\" is not an object!\");return it}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(138),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _isIterable2=__webpack_require__(188);var _isIterable3=_interopRequireDefault(_isIterable2);var _getIterator2=__webpack_require__(77);var _getIterator3=_interopRequireDefault(_getIterator2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=(0,_getIterator3.default)(arr),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i[\"return\"])_i[\"return\"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if((0,_isIterable3.default)(Object(arr))){return sliceIterator(arr,i)}else{throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}}()},function(module,exports){module.exports={}},function(module,exports){module.exports=function(it){return typeof it===\"object\"?it!==null:typeof it===\"function\"}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(84);var enumBugKeys=__webpack_require__(58);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){\"use strict\";function Point3d(x,y,z){this.x=x!==undefined?x:0;this.y=y!==undefined?y:0;this.z=z!==undefined?z:0}Point3d.subtract=function(a,b){var sub=new Point3d;sub.x=a.x-b.x;sub.y=a.y-b.y;sub.z=a.z-b.z;return sub};Point3d.add=function(a,b){var sum=new Point3d;sum.x=a.x+b.x;sum.y=a.y+b.y;sum.z=a.z+b.z;return sum};Point3d.avg=function(a,b){return new Point3d((a.x+b.x)/2,(a.y+b.y)/2,(a.z+b.z)/2)};Point3d.crossProduct=function(a,b){var crossproduct=new Point3d;crossproduct.x=a.y*b.z-a.z*b.y;crossproduct.y=a.z*b.x-a.x*b.z;crossproduct.z=a.x*b.y-a.y*b.x;return crossproduct};Point3d.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};module.exports=Point3d},function(module,exports,__webpack_require__){\"use strict\";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(root,factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__===\"function\"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else if(typeof exports===\"object\"){module.exports=factory()}else{root.keycharm=factory()}})(this,function(){function keycharm(options){var preventDefault=options&&options.preventDefault||false;var container=options&&options.container||window;var _exportFunctions={};var _bound={keydown:{},keyup:{}};var _keys={};var i;for(i=97;i<=122;i++){_keys[String.fromCharCode(i)]={code:65+(i-97),shift:false}}for(i=65;i<=90;i++){_keys[String.fromCharCode(i)]={code:i,shift:true}}for(i=0;i<=9;i++){_keys[\"\"+i]={code:48+i,shift:false}}for(i=1;i<=12;i++){_keys[\"F\"+i]={code:111+i,shift:false}}for(i=0;i<=9;i++){_keys[\"num\"+i]={code:96+i,shift:false}}_keys[\"num*\"]={code:106,shift:false};_keys[\"num+\"]={code:107,shift:false};_keys[\"num-\"]={code:109,shift:false};_keys[\"num/\"]={code:111,shift:false};_keys[\"num.\"]={code:110,shift:false};_keys[\"left\"]={code:37,shift:false};_keys[\"up\"]={code:38,shift:false};_keys[\"right\"]={code:39,shift:false};_keys[\"down\"]={code:40,shift:false};_keys[\"space\"]={code:32,shift:false};_keys[\"enter\"]={code:13,shift:false};_keys[\"shift\"]={code:16,shift:undefined};_keys[\"esc\"]={code:27,shift:false};_keys[\"backspace\"]={code:8,shift:false};_keys[\"tab\"]={code:9,shift:false};_keys[\"ctrl\"]={code:17,shift:false};_keys[\"alt\"]={code:18,shift:false};_keys[\"delete\"]={code:46,shift:false};_keys[\"pageup\"]={code:33,shift:false};_keys[\"pagedown\"]={code:34,shift:false};_keys[\"=\"]={code:187,shift:false};_keys[\"-\"]={code:189,shift:false};_keys[\"]\"]={code:221,shift:false};_keys[\"[\"]={code:219,shift:false};var down=function(event){handleEvent(event,\"keydown\")};var up=function(event){handleEvent(event,\"keyup\")};var handleEvent=function(event,type){if(_bound[type][event.keyCode]!==undefined){var bound=_bound[type][event.keyCode];for(var i=0;i<bound.length;i++){if(bound[i].shift===undefined){bound[i].fn(event)}else if(bound[i].shift==true&&event.shiftKey==true){bound[i].fn(event)}else if(bound[i].shift==false&&event.shiftKey==false){bound[i].fn(event)}}if(preventDefault==true){event.preventDefault()}}};_exportFunctions.bind=function(key,callback,type){if(type===undefined){type=\"keydown\"}if(_keys[key]===undefined){throw new Error(\"unsupported key: \"+key)}if(_bound[type][_keys[key].code]===undefined){_bound[type][_keys[key].code]=[]}_bound[type][_keys[key].code].push({fn:callback,shift:_keys[key].shift})};_exportFunctions.bindAll=function(callback,type){if(type===undefined){type=\"keydown\"}for(var key in _keys){if(_keys.hasOwnProperty(key)){_exportFunctions.bind(key,callback,type)}}};_exportFunctions.getKey=function(event){for(var key in _keys){if(_keys.hasOwnProperty(key)){if(event.shiftKey==true&&_keys[key].shift==true&&event.keyCode==_keys[key].code){return key}else if(event.shiftKey==false&&_keys[key].shift==false&&event.keyCode==_keys[key].code){return key}else if(event.keyCode==_keys[key].code&&key==\"shift\"){return key}}}return\"unknown key, currently not supported\"};_exportFunctions.unbind=function(key,callback,type){if(type===undefined){type=\"keydown\"}if(_keys[key]===undefined){throw new Error(\"unsupported key: \"+key)}if(callback!==undefined){var newBindings=[];var bound=_bound[type][_keys[key].code];if(bound!==undefined){for(var i=0;i<bound.length;i++){if(!(bound[i].fn==callback&&bound[i].shift==_keys[key].shift)){newBindings.push(_bound[type][_keys[key].code][i])}}}_bound[type][_keys[key].code]=newBindings}else{_bound[type][_keys[key].code]=[]}};_exportFunctions.reset=function(){_bound={keydown:{},keyup:{}}};_exportFunctions.destroy=function(){_bound={keydown:{},keyup:{}};container.removeEventListener(\"keydown\",down,true);container.removeEventListener(\"keyup\",up,true)};container.addEventListener(\"keydown\",down,true);container.addEventListener(\"keyup\",up,true);return _exportFunctions}return keycharm})},function(module,exports,__webpack_require__){\"use strict\";exports.convertHiddenOptions=function(moment,body,hiddenDates){if(hiddenDates&&!Array.isArray(hiddenDates)){return exports.convertHiddenOptions(moment,body,[hiddenDates])}body.hiddenDates=[];if(hiddenDates){if(Array.isArray(hiddenDates)==true){for(var i=0;i<hiddenDates.length;i++){if(hiddenDates[i].repeat===undefined){var dateItem={};dateItem.start=moment(hiddenDates[i].start).toDate().valueOf();dateItem.end=moment(hiddenDates[i].end).toDate().valueOf();body.hiddenDates.push(dateItem)}}body.hiddenDates.sort(function(a,b){return a.start-b.start})}}};exports.updateHiddenDates=function(moment,body,hiddenDates){if(hiddenDates&&!Array.isArray(hiddenDates)){return exports.updateHiddenDates(moment,body,[hiddenDates])}if(hiddenDates&&body.domProps.centerContainer.width!==undefined){exports.convertHiddenOptions(moment,body,hiddenDates);var start=moment(body.range.start);var end=moment(body.range.end);var totalRange=body.range.end-body.range.start;var pixelTime=totalRange/body.domProps.centerContainer.width;for(var i=0;i<hiddenDates.length;i++){if(hiddenDates[i].repeat!==undefined){var startDate=moment(hiddenDates[i].start);var endDate=moment(hiddenDates[i].end);if(startDate._d==\"Invalid Date\"){throw new Error(\"Supplied start date is not valid: \"+hiddenDates[i].start)}if(endDate._d==\"Invalid Date\"){throw new Error(\"Supplied end date is not valid: \"+hiddenDates[i].end)}var duration=endDate-startDate;if(duration>=4*pixelTime){var offset=0;var runUntil=end.clone();switch(hiddenDates[i].repeat){case\"daily\":if(startDate.day()!=endDate.day()){offset=1}startDate.dayOfYear(start.dayOfYear());startDate.year(start.year());startDate.subtract(7,\"days\");endDate.dayOfYear(start.dayOfYear());endDate.year(start.year());endDate.subtract(7-offset,\"days\");runUntil.add(1,\"weeks\");break;case\"weekly\":var dayOffset=endDate.diff(startDate,\"days\");var day=startDate.day();startDate.date(start.date());startDate.month(start.month());startDate.year(start.year());endDate=startDate.clone();startDate.day(day);endDate.day(day);endDate.add(dayOffset,\"days\");startDate.subtract(1,\"weeks\");endDate.subtract(1,\"weeks\");runUntil.add(1,\"weeks\");break;case\"monthly\":if(startDate.month()!=endDate.month()){offset=1}startDate.month(start.month());startDate.year(start.year());startDate.subtract(1,\"months\");endDate.month(start.month());endDate.year(start.year());endDate.subtract(1,\"months\");endDate.add(offset,\"months\");runUntil.add(1,\"months\");break;case\"yearly\":if(startDate.year()!=endDate.year()){offset=1}startDate.year(start.year());startDate.subtract(1,\"years\");endDate.year(start.year());endDate.subtract(1,\"years\");endDate.add(offset,\"years\");runUntil.add(1,\"years\");break;default:console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\",hiddenDates[i].repeat);return}while(startDate<runUntil){body.hiddenDates.push({start:startDate.valueOf(),end:endDate.valueOf()});switch(hiddenDates[i].repeat){case\"daily\":startDate.add(1,\"days\");endDate.add(1,\"days\");break;case\"weekly\":startDate.add(1,\"weeks\");endDate.add(1,\"weeks\");break;case\"monthly\":startDate.add(1,\"months\");endDate.add(1,\"months\");break;case\"yearly\":startDate.add(1,\"y\");endDate.add(1,\"y\");break;default:console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\",hiddenDates[i].repeat);return}}body.hiddenDates.push({start:startDate.valueOf(),end:endDate.valueOf()})}}}exports.removeDuplicates(body);var startHidden=exports.isHidden(body.range.start,body.hiddenDates);var endHidden=exports.isHidden(body.range.end,body.hiddenDates);var rangeStart=body.range.start;var rangeEnd=body.range.end;if(startHidden.hidden==true){rangeStart=body.range.startToFront==true?startHidden.startDate-1:startHidden.endDate+1}if(endHidden.hidden==true){rangeEnd=body.range.endToFront==true?endHidden.startDate-1:endHidden.endDate+1}if(startHidden.hidden==true||endHidden.hidden==true){body.range._applyRange(rangeStart,rangeEnd)}}};exports.removeDuplicates=function(body){var hiddenDates=body.hiddenDates;var safeDates=[];for(var i=0;i<hiddenDates.length;i++){for(var j=0;j<hiddenDates.length;j++){if(i!=j&&hiddenDates[j].remove!=true&&hiddenDates[i].remove!=true){if(hiddenDates[j].start>=hiddenDates[i].start&&hiddenDates[j].end<=hiddenDates[i].end){hiddenDates[j].remove=true}else if(hiddenDates[j].start>=hiddenDates[i].start&&hiddenDates[j].start<=hiddenDates[i].end){hiddenDates[i].end=hiddenDates[j].end;hiddenDates[j].remove=true}else if(hiddenDates[j].end>=hiddenDates[i].start&&hiddenDates[j].end<=hiddenDates[i].end){hiddenDates[i].start=hiddenDates[j].start;hiddenDates[j].remove=true}}}}for(i=0;i<hiddenDates.length;i++){if(hiddenDates[i].remove!==true){safeDates.push(hiddenDates[i])}}body.hiddenDates=safeDates;body.hiddenDates.sort(function(a,b){return a.start-b.start})};exports.printDates=function(dates){for(var i=0;i<dates.length;i++){console.log(i,new Date(dates[i].start),new Date(dates[i].end),dates[i].start,dates[i].end,dates[i].remove)}};exports.stepOverHiddenDates=function(moment,timeStep,previousTime){var stepInHidden=false;var currentValue=timeStep.current.valueOf();for(var i=0;i<timeStep.hiddenDates.length;i++){var startDate=timeStep.hiddenDates[i].start;var endDate=timeStep.hiddenDates[i].end;if(currentValue>=startDate&¤tValue<endDate){stepInHidden=true;break}}if(stepInHidden==true&¤tValue<timeStep._end.valueOf()&¤tValue!=previousTime){var prevValue=moment(previousTime);var newValue=moment(endDate);if(prevValue.year()!=newValue.year()){timeStep.switchedYear=true}else if(prevValue.month()!=newValue.month()){timeStep.switchedMonth=true}else if(prevValue.dayOfYear()!=newValue.dayOfYear()){timeStep.switchedDay=true}timeStep.current=newValue}};exports.toScreen=function(Core,time,width){var conversion;if(Core.body.hiddenDates.length==0){conversion=Core.range.conversion(width);return(time.valueOf()-conversion.offset)*conversion.scale}else{var hidden=exports.isHidden(time,Core.body.hiddenDates);if(hidden.hidden==true){time=hidden.startDate}var duration=exports.getHiddenDurationBetween(Core.body.hiddenDates,Core.range.start,Core.range.end);if(time<Core.range.start){conversion=Core.range.conversion(width,duration);var hiddenBeforeStart=exports.getHiddenDurationBeforeStart(Core.body.hiddenDates,time,conversion.offset);time=Core.options.moment(time).toDate().valueOf();time=time+hiddenBeforeStart;return-(conversion.offset-time.valueOf())*conversion.scale}else if(time>Core.range.end){var rangeAfterEnd={start:Core.range.start,end:time};time=exports.correctTimeForHidden(Core.options.moment,Core.body.hiddenDates,rangeAfterEnd,time);conversion=Core.range.conversion(width,duration);return(time.valueOf()-conversion.offset)*conversion.scale}else{time=exports.correctTimeForHidden(Core.options.moment,Core.body.hiddenDates,Core.range,time);conversion=Core.range.conversion(width,duration);return(time.valueOf()-conversion.offset)*conversion.scale}}};exports.toTime=function(Core,x,width){if(Core.body.hiddenDates.length==0){var conversion=Core.range.conversion(width);return new Date(x/conversion.scale+conversion.offset)}else{var hiddenDuration=exports.getHiddenDurationBetween(Core.body.hiddenDates,Core.range.start,Core.range.end);var totalDuration=Core.range.end-Core.range.start-hiddenDuration;var partialDuration=totalDuration*x/width;var accumulatedHiddenDuration=exports.getAccumulatedHiddenDuration(Core.body.hiddenDates,Core.range,partialDuration);return new Date(accumulatedHiddenDuration+partialDuration+Core.range.start)}};exports.getHiddenDurationBetween=function(hiddenDates,start,end){var duration=0;for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=start&&endDate<end){duration+=endDate-startDate}}return duration};exports.getHiddenDurationBeforeStart=function(hiddenDates,start,end){var duration=0;for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=start&&endDate<=end){duration+=endDate-startDate}}return duration};exports.correctTimeForHidden=function(moment,hiddenDates,range,time){time=moment(time).toDate().valueOf();time-=exports.getHiddenDurationBefore(moment,hiddenDates,range,time);return time};exports.getHiddenDurationBefore=function(moment,hiddenDates,range,time){var timeOffset=0;time=moment(time).toDate().valueOf();for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=range.start&&endDate<range.end){if(time>=endDate){timeOffset+=endDate-startDate}}}return timeOffset};exports.getAccumulatedHiddenDuration=function(hiddenDates,range,requiredDuration){var hiddenDuration=0;var duration=0;var previousPoint=range.start;for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=range.start&&endDate<range.end){duration+=startDate-previousPoint;previousPoint=endDate;if(duration>=requiredDuration){break}else{hiddenDuration+=endDate-startDate}}}return hiddenDuration};exports.snapAwayFromHidden=function(hiddenDates,time,direction,correctionEnabled){var isHidden=exports.isHidden(time,hiddenDates);if(isHidden.hidden==true){if(direction<0){if(correctionEnabled==true){return isHidden.startDate-(isHidden.endDate-time)-1}else{return isHidden.startDate-1}}else{if(correctionEnabled==true){return isHidden.endDate+(time-isHidden.startDate)+1}else{return isHidden.endDate+1}}}else{return time}};exports.isHidden=function(time,hiddenDates){for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(time>=startDate&&time<endDate){return{hidden:true,startDate:startDate,endDate:endDate}}}return{hidden:false,startDate:startDate,endDate:endDate}}},function(module,exports,__webpack_require__){\"use strict\";exports.onTouch=function(hammer,callback){callback.inputHandler=function(event){if(event.isFirst){callback(event)}};hammer.on(\"hammer.input\",callback.inputHandler)};exports.onRelease=function(hammer,callback){callback.inputHandler=function(event){if(event.isFinal){callback(event)}};return hammer.on(\"hammer.input\",callback.inputHandler)};exports.offTouch=function(hammer,callback){hammer.off(\"hammer.input\",callback.inputHandler)};exports.offRelease=exports.offTouch;exports.disablePreventDefaultVertically=function(pinchRecognizer){var TOUCH_ACTION_PAN_Y=\"pan-y\";pinchRecognizer.getTouchAction=function(){return[TOUCH_ACTION_PAN_Y]};return pinchRecognizer}},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var util=__webpack_require__(2);var moment=__webpack_require__(9);function Item(data,conversion,options){this.id=null;this.parent=null;this.data=data;this.dom=null;this.conversion=conversion||{};this.options=options||{};this.selected=false;this.displayed=false;this.groupShowing=true;this.dirty=true;this.top=null;this.right=null;this.left=null;this.width=null;this.height=null;this.editable=null;this._updateEditStatus()}Item.prototype.stack=true;Item.prototype.select=function(){this.selected=true;this.dirty=true;if(this.displayed)this.redraw()};Item.prototype.unselect=function(){this.selected=false;this.dirty=true;if(this.displayed)this.redraw()};Item.prototype.setData=function(data){var groupChanged=data.group!=undefined&&this.data.group!=data.group;if(groupChanged&&this.parent!=null){this.parent.itemSet._moveToGroup(this,data.group)}if(this.parent){this.parent.stackDirty=true}var subGroupChanged=data.subgroup!=undefined&&this.data.subgroup!=data.subgroup;if(subGroupChanged&&this.parent!=null){this.parent.changeSubgroup(this,this.data.subgroup,data.subgroup)}this.data=data;this._updateEditStatus();this.dirty=true;if(this.displayed)this.redraw()};Item.prototype.setParent=function(parent){if(this.displayed){this.hide();this.parent=parent;if(this.parent){this.show()}}else{this.parent=parent}};Item.prototype.isVisible=function(range){return false};Item.prototype.show=function(){return false};Item.prototype.hide=function(){return false};Item.prototype.redraw=function(){};Item.prototype.repositionX=function(){};Item.prototype.repositionY=function(){};Item.prototype._repaintDragCenter=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragCenter){var me=this;var dragCenter=document.createElement(\"div\");dragCenter.className=\"vis-drag-center\";dragCenter.dragCenterItem=this;var hammer=new Hammer(dragCenter);hammer.on(\"tap\",function(event){me.parent.itemSet.body.emitter.emit(\"click\",{event:event,item:me.id})});hammer.on(\"doubletap\",function(event){event.stopPropagation();me.parent.itemSet._onUpdateItem(me);me.parent.itemSet.body.emitter.emit(\"doubleClick\",{event:event,item:me.id})});if(this.dom.box){if(this.dom.dragLeft){this.dom.box.insertBefore(dragCenter,this.dom.dragLeft)}else{this.dom.box.appendChild(dragCenter)}}else if(this.dom.point){this.dom.point.appendChild(dragCenter)}this.dom.dragCenter=dragCenter}else if(!this.selected&&this.dom.dragCenter){if(this.dom.dragCenter.parentNode){this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter)}this.dom.dragCenter=null}};Item.prototype._repaintDeleteButton=function(anchor){var editable=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&editable&&!this.dom.deleteButton){var me=this;var deleteButton=document.createElement(\"div\");if(this.options.rtl){deleteButton.className=\"vis-delete-rtl\"}else{deleteButton.className=\"vis-delete\"}deleteButton.title=\"Delete this item\";new Hammer(deleteButton).on(\"tap\",function(event){event.stopPropagation();me.parent.removeFromDataSet(me)});anchor.appendChild(deleteButton);this.dom.deleteButton=deleteButton}else if(!this.selected&&this.dom.deleteButton){if(this.dom.deleteButton.parentNode){this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton)}this.dom.deleteButton=null}};Item.prototype._repaintOnItemUpdateTimeTooltip=function(anchor){if(!this.options.tooltipOnItemUpdateTime)return;var editable=(this.options.editable.updateTime||this.data.editable===true)&&this.data.editable!==false;if(this.selected&&editable&&!this.dom.onItemUpdateTimeTooltip){var onItemUpdateTimeTooltip=document.createElement(\"div\");onItemUpdateTimeTooltip.className=\"vis-onUpdateTime-tooltip\";anchor.appendChild(onItemUpdateTimeTooltip);this.dom.onItemUpdateTimeTooltip=onItemUpdateTimeTooltip}else if(!this.selected&&this.dom.onItemUpdateTimeTooltip){if(this.dom.onItemUpdateTimeTooltip.parentNode){this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip)}this.dom.onItemUpdateTimeTooltip=null}if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?\"visible\":\"hidden\";if(this.options.rtl){this.dom.onItemUpdateTimeTooltip.style.right=this.dom.content.style.right}else{this.dom.onItemUpdateTimeTooltip.style.left=this.dom.content.style.left}var tooltipOffset=50;var scrollTop=this.parent.itemSet.body.domProps.scrollTop;var itemDistanceFromTop;if(this.options.orientation.item==\"top\"){itemDistanceFromTop=this.top}else{itemDistanceFromTop=this.parent.height-this.top-this.height}var isCloseToTop=itemDistanceFromTop+this.parent.top-tooltipOffset<-scrollTop;if(isCloseToTop){this.dom.onItemUpdateTimeTooltip.style.bottom=\"\";this.dom.onItemUpdateTimeTooltip.style.top=this.height+2+\"px\"}else{this.dom.onItemUpdateTimeTooltip.style.top=\"\";this.dom.onItemUpdateTimeTooltip.style.bottom=this.height+2+\"px\"}var content;var templateFunction;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){templateFunction=this.options.tooltipOnItemUpdateTime.template.bind(this);content=templateFunction(this.data)}else{content=\"start: \"+moment(this.data.start).format(\"MM/DD/YYYY hh:mm\");if(this.data.end){content+=\"<br> end: \"+moment(this.data.end).format(\"MM/DD/YYYY hh:mm\")}}this.dom.onItemUpdateTimeTooltip.innerHTML=content}};Item.prototype._updateContents=function(element){var content;var changed;var templateFunction;var itemVisibleFrameContent;var visibleFrameTemplateFunction;var itemData=this.parent.itemSet.itemsData.get(this.id);var frameElement=this.dom.box||this.dom.point;var itemVisibleFrameContentElement=frameElement.getElementsByClassName(\"vis-item-visible-frame\")[0];if(this.options.visibleFrameTemplate){visibleFrameTemplateFunction=this.options.visibleFrameTemplate.bind(this);itemVisibleFrameContent=visibleFrameTemplateFunction(itemData,frameElement)}else{itemVisibleFrameContent=\"\"}if(itemVisibleFrameContentElement){if(itemVisibleFrameContent instanceof Object&&!(itemVisibleFrameContent instanceof Element)){visibleFrameTemplateFunction(itemData,itemVisibleFrameContentElement)}else{changed=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(itemVisibleFrameContent);if(changed){if(itemVisibleFrameContent instanceof Element){itemVisibleFrameContentElement.innerHTML=\"\";itemVisibleFrameContentElement.appendChild(itemVisibleFrameContent)}else if(itemVisibleFrameContent!=undefined){itemVisibleFrameContentElement.innerHTML=itemVisibleFrameContent}else{if(!(this.data.type==\"background\"&&this.data.content===undefined)){throw new Error('Property \"content\" missing in item '+this.id)}}this.itemVisibleFrameContent=itemVisibleFrameContent}}}if(this.options.template){templateFunction=this.options.template.bind(this);content=templateFunction(itemData,element,this.data)}else{content=this.data.content}if(content instanceof Object&&!(content instanceof Element)){templateFunction(itemData,element)}else{changed=this._contentToString(this.content)!==this._contentToString(content);if(changed){if(content instanceof Element){element.innerHTML=\"\";element.appendChild(content)}else if(content!=undefined){element.innerHTML=content}else{if(!(this.data.type==\"background\"&&this.data.content===undefined)){throw new Error('Property \"content\" missing in item '+this.id)}}this.content=content}}};Item.prototype._updateDataAttributes=function(element){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var attributes=[];if(Array.isArray(this.options.dataAttributes)){attributes=this.options.dataAttributes}else if(this.options.dataAttributes==\"all\"){attributes=(0,_keys2[\"default\"])(this.data)}else{return}for(var i=0;i<attributes.length;i++){var name=attributes[i];var value=this.data[name];if(value!=null){element.setAttribute(\"data-\"+name,value)}else{element.removeAttribute(\"data-\"+name)}}}};Item.prototype._updateStyle=function(element){if(this.style){util.removeCssText(element,this.style);this.style=null}if(this.data.style){util.addCssText(element,this.data.style);this.style=this.data.style}};Item.prototype._contentToString=function(content){if(typeof content===\"string\")return content;if(content&&\"outerHTML\"in content)return content.outerHTML;return content};Item.prototype._updateEditStatus=function(){if(this.options){if(typeof this.options.editable===\"boolean\"){this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}}else if((0,_typeof3[\"default\"])(this.options.editable)===\"object\"){this.editable={};util.selectiveExtend([\"updateTime\",\"updateGroup\",\"remove\"],this.editable,this.options.editable)}}if(!this.options||!this.options.editable||this.options.editable.overrideItems!==true){if(this.data){if(typeof this.data.editable===\"boolean\"){this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}}else if((0,_typeof3[\"default\"])(this.data.editable)===\"object\"){this.editable={};util.selectiveExtend([\"updateTime\",\"updateGroup\",\"remove\"],this.editable,this.data.editable)}}}};Item.prototype.getWidthLeft=function(){return 0};Item.prototype.getWidthRight=function(){return 0};Item.prototype.getTitle=function(){return this.data.title};module.exports=Item},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return\"Symbol(\".concat(key===undefined?\"\":key,\")_\",(++id+px).toString(36))}},function(module,exports,__webpack_require__){var defined=__webpack_require__(51);module.exports=function(it){return Object(defined(it))}},function(module,exports){exports.f={}.propertyIsEnumerable},function(module,exports,__webpack_require__){\"use strict\";function Queue(options){this.delay=null;this.max=Infinity;this._queue=[];this._timeout=null;this._extended=null;this.setOptions(options)}Queue.prototype.setOptions=function(options){if(options&&typeof options.delay!==\"undefined\"){this.delay=options.delay}if(options&&typeof options.max!==\"undefined\"){this.max=options.max}this._flushIfNeeded()};Queue.extend=function(object,options){var queue=new Queue(options);if(object.flush!==undefined){throw new Error(\"Target object already has a property flush\")}object.flush=function(){queue.flush()};var methods=[{name:\"flush\",original:undefined}];if(options&&options.replace){for(var i=0;i<options.replace.length;i++){var name=options.replace[i];methods.push({name:name,original:object[name]});queue.replace(object,name)}}queue._extended={object:object,methods:methods};return queue};Queue.prototype.destroy=function(){this.flush();if(this._extended){var object=this._extended.object;var methods=this._extended.methods;for(var i=0;i<methods.length;i++){var method=methods[i];if(method.original){object[method.name]=method.original}else{delete object[method.name]}}this._extended=null}};Queue.prototype.replace=function(object,method){var me=this;var original=object[method];if(!original){throw new Error(\"Method \"+method+\" undefined\")}object[method]=function(){var args=[];for(var i=0;i<arguments.length;i++){args[i]=arguments[i]}me.queue({args:args,fn:original,context:this})}};Queue.prototype.queue=function(entry){if(typeof entry===\"function\"){this._queue.push({fn:entry})}else{this._queue.push(entry)}this._flushIfNeeded()};Queue.prototype._flushIfNeeded=function(){\nif(this._queue.length>this.max){this.flush()}clearTimeout(this._timeout);if(this.queue.length>0&&typeof this.delay===\"number\"){var me=this;this._timeout=setTimeout(function(){me.flush()},this.delay)}};Queue.prototype.flush=function(){while(this._queue.length>0){var entry=this._queue.shift();entry.fn.apply(entry.context||entry.fn,entry.args||[])}};module.exports=Queue},function(module,exports){module.exports=Emitter;function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype){obj[key]=Emitter.prototype[key]}return obj}Emitter.prototype.on=Emitter.prototype.addEventListener=function(event,fn){this._callbacks=this._callbacks||{};(this._callbacks[event]=this._callbacks[event]||[]).push(fn);return this};Emitter.prototype.once=function(event,fn){var self=this;this._callbacks=this._callbacks||{};function on(){self.off(event,on);fn.apply(this,arguments)}on.fn=fn;this.on(event,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(event,fn){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var callbacks=this._callbacks[event];if(!callbacks)return this;if(1==arguments.length){delete this._callbacks[event];return this}var cb;for(var i=0;i<callbacks.length;i++){cb=callbacks[i];if(cb===fn||cb.fn===fn){callbacks.splice(i,1);break}}return this};Emitter.prototype.emit=function(event){this._callbacks=this._callbacks||{};var args=[].slice.call(arguments,1),callbacks=this._callbacks[event];if(callbacks){callbacks=callbacks.slice(0);for(var i=0,len=callbacks.length;i<len;++i){callbacks[i].apply(this,args)}}return this};Emitter.prototype.listeners=function(event){this._callbacks=this._callbacks||{};return this._callbacks[event]||[]};Emitter.prototype.hasListeners=function(event){return!!this.listeners(event).length}},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Component=__webpack_require__(16);var TimeStep=__webpack_require__(66);var DateUtil=__webpack_require__(36);var moment=__webpack_require__(9);function TimeAxis(body,options){this.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}};this.props={range:{start:0,end:0,minimumStep:0},lineTop:0};this.defaultOptions={orientation:{axis:\"bottom\"},showMinorLabels:true,showMajorLabels:true,maxMinorChars:7,format:TimeStep.FORMAT,moment:moment,timeAxis:null};this.options=util.extend({},this.defaultOptions);this.body=body;this._create();this.setOptions(options)}TimeAxis.prototype=new Component;TimeAxis.prototype.setOptions=function(options){if(options){util.selectiveExtend([\"showMinorLabels\",\"showMajorLabels\",\"maxMinorChars\",\"hiddenDates\",\"timeAxis\",\"moment\",\"rtl\"],this.options,options);util.selectiveDeepExtend([\"format\"],this.options,options);if(\"orientation\"in options){if(typeof options.orientation===\"string\"){this.options.orientation.axis=options.orientation}else if((0,_typeof3[\"default\"])(options.orientation)===\"object\"&&\"axis\"in options.orientation){this.options.orientation.axis=options.orientation.axis}}if(\"locale\"in options){if(typeof moment.locale===\"function\"){moment.locale(options.locale)}else{moment.lang(options.locale)}}}};TimeAxis.prototype._create=function(){this.dom.foreground=document.createElement(\"div\");this.dom.background=document.createElement(\"div\");this.dom.foreground.className=\"vis-time-axis vis-foreground\";this.dom.background.className=\"vis-time-axis vis-background\"};TimeAxis.prototype.destroy=function(){if(this.dom.foreground.parentNode){this.dom.foreground.parentNode.removeChild(this.dom.foreground)}if(this.dom.background.parentNode){this.dom.background.parentNode.removeChild(this.dom.background)}this.body=null};TimeAxis.prototype.redraw=function(){var props=this.props;var foreground=this.dom.foreground;var background=this.dom.background;var parent=this.options.orientation.axis==\"top\"?this.body.dom.top:this.body.dom.bottom;var parentChanged=foreground.parentNode!==parent;this._calculateCharSize();var showMinorLabels=this.options.showMinorLabels&&this.options.orientation.axis!==\"none\";var showMajorLabels=this.options.showMajorLabels&&this.options.orientation.axis!==\"none\";props.minorLabelHeight=showMinorLabels?props.minorCharHeight:0;props.majorLabelHeight=showMajorLabels?props.majorCharHeight:0;props.height=props.minorLabelHeight+props.majorLabelHeight;props.width=foreground.offsetWidth;props.minorLineHeight=this.body.domProps.root.height-props.majorLabelHeight-(this.options.orientation.axis==\"top\"?this.body.domProps.bottom.height:this.body.domProps.top.height);props.minorLineWidth=1;props.majorLineHeight=props.minorLineHeight+props.majorLabelHeight;props.majorLineWidth=1;var foregroundNextSibling=foreground.nextSibling;var backgroundNextSibling=background.nextSibling;foreground.parentNode&&foreground.parentNode.removeChild(foreground);background.parentNode&&background.parentNode.removeChild(background);foreground.style.height=this.props.height+\"px\";this._repaintLabels();if(foregroundNextSibling){parent.insertBefore(foreground,foregroundNextSibling)}else{parent.appendChild(foreground)}if(backgroundNextSibling){this.body.dom.backgroundVertical.insertBefore(background,backgroundNextSibling)}else{this.body.dom.backgroundVertical.appendChild(background)}return this._isResized()||parentChanged};TimeAxis.prototype._repaintLabels=function(){var orientation=this.options.orientation.axis;var start=util.convert(this.body.range.start,\"Number\");var end=util.convert(this.body.range.end,\"Number\");var timeLabelsize=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf();var minimumStep=timeLabelsize-DateUtil.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this.body.range,timeLabelsize);minimumStep-=this.body.util.toTime(0).valueOf();var step=new TimeStep(new Date(start),new Date(end),minimumStep,this.body.hiddenDates,this.options);step.setMoment(this.options.moment);if(this.options.format){step.setFormat(this.options.format)}if(this.options.timeAxis){step.setScale(this.options.timeAxis)}this.step=step;var dom=this.dom;dom.redundant.lines=dom.lines;dom.redundant.majorTexts=dom.majorTexts;dom.redundant.minorTexts=dom.minorTexts;dom.lines=[];dom.majorTexts=[];dom.minorTexts=[];var current;var next;var x;var xNext;var isMajor;var nextIsMajor;var showMinorGrid;var width=0,prevWidth;var line;var labelMinor;var xFirstMajorLabel=undefined;var count=0;var MAX=1e3;var className;step.start();next=step.getCurrent();xNext=this.body.util.toScreen(next);while(step.hasNext()&&count<MAX){count++;isMajor=step.isMajor();className=step.getClassName();labelMinor=step.getLabelMinor();current=next;x=xNext;step.next();next=step.getCurrent();nextIsMajor=step.isMajor();xNext=this.body.util.toScreen(next);prevWidth=width;width=xNext-x;switch(step.scale){case\"week\":showMinorGrid=true;break;default:showMinorGrid=width>=prevWidth*.4;break}if(this.options.showMinorLabels&&showMinorGrid){var label=this._repaintMinorText(x,labelMinor,orientation,className);label.style.width=width+\"px\"}if(isMajor&&this.options.showMajorLabels){if(x>0){if(xFirstMajorLabel==undefined){xFirstMajorLabel=x}label=this._repaintMajorText(x,step.getLabelMajor(),orientation,className)}line=this._repaintMajorLine(x,width,orientation,className)}else{if(showMinorGrid){line=this._repaintMinorLine(x,width,orientation,className)}else{if(line){line.style.width=parseInt(line.style.width)+width+\"px\"}}}}if(count===MAX&&!warnedForOverflow){console.warn(\"Something is wrong with the Timeline scale. Limited drawing of grid lines to \"+MAX+\" lines.\");warnedForOverflow=true}if(this.options.showMajorLabels){var leftTime=this.body.util.toTime(0),leftText=step.getLabelMajor(leftTime),widthText=leftText.length*(this.props.majorCharWidth||10)+10;if(xFirstMajorLabel==undefined||widthText<xFirstMajorLabel){this._repaintMajorText(0,leftText,orientation,className)}}util.forEach(this.dom.redundant,function(arr){while(arr.length){var elem=arr.pop();if(elem&&elem.parentNode){elem.parentNode.removeChild(elem)}}})};TimeAxis.prototype._repaintMinorText=function(x,text,orientation,className){var label=this.dom.redundant.minorTexts.shift();if(!label){var content=document.createTextNode(\"\");label=document.createElement(\"div\");label.appendChild(content);this.dom.foreground.appendChild(label)}this.dom.minorTexts.push(label);label.innerHTML=text;label.style.top=orientation==\"top\"?this.props.majorLabelHeight+\"px\":\"0\";if(this.options.rtl){label.style.left=\"\";label.style.right=x+\"px\"}else{label.style.left=x+\"px\"}label.className=\"vis-text vis-minor \"+className;return label};TimeAxis.prototype._repaintMajorText=function(x,text,orientation,className){var label=this.dom.redundant.majorTexts.shift();if(!label){var content=document.createElement(\"div\");label=document.createElement(\"div\");label.appendChild(content);this.dom.foreground.appendChild(label)}label.childNodes[0].innerHTML=text;label.className=\"vis-text vis-major \"+className;label.style.top=orientation==\"top\"?\"0\":this.props.minorLabelHeight+\"px\";if(this.options.rtl){label.style.left=\"\";label.style.right=x+\"px\"}else{label.style.left=x+\"px\"}this.dom.majorTexts.push(label);return label};TimeAxis.prototype._repaintMinorLine=function(x,width,orientation,className){var line=this.dom.redundant.lines.shift();if(!line){line=document.createElement(\"div\");this.dom.background.appendChild(line)}this.dom.lines.push(line);var props=this.props;if(orientation==\"top\"){line.style.top=props.majorLabelHeight+\"px\"}else{line.style.top=this.body.domProps.top.height+\"px\"}line.style.height=props.minorLineHeight+\"px\";if(this.options.rtl){line.style.left=\"\";line.style.right=x-props.minorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical-rtl vis-minor \"+className}else{line.style.left=x-props.minorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical vis-minor \"+className}line.style.width=width+\"px\";return line};TimeAxis.prototype._repaintMajorLine=function(x,width,orientation,className){var line=this.dom.redundant.lines.shift();if(!line){line=document.createElement(\"div\");this.dom.background.appendChild(line)}this.dom.lines.push(line);var props=this.props;if(orientation==\"top\"){line.style.top=\"0\"}else{line.style.top=this.body.domProps.top.height+\"px\"}if(this.options.rtl){line.style.left=\"\";line.style.right=x-props.majorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical-rtl vis-major \"+className}else{line.style.left=x-props.majorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical vis-major \"+className}line.style.height=props.majorLineHeight+\"px\";line.style.width=width+\"px\";return line};TimeAxis.prototype._calculateCharSize=function(){if(!this.dom.measureCharMinor){this.dom.measureCharMinor=document.createElement(\"DIV\");this.dom.measureCharMinor.className=\"vis-text vis-minor vis-measure\";this.dom.measureCharMinor.style.position=\"absolute\";this.dom.measureCharMinor.appendChild(document.createTextNode(\"0\"));this.dom.foreground.appendChild(this.dom.measureCharMinor)}this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight;this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth;if(!this.dom.measureCharMajor){this.dom.measureCharMajor=document.createElement(\"DIV\");this.dom.measureCharMajor.className=\"vis-text vis-major vis-measure\";this.dom.measureCharMajor.style.position=\"absolute\";this.dom.measureCharMajor.appendChild(document.createTextNode(\"0\"));this.dom.foreground.appendChild(this.dom.measureCharMajor)}this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight;this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth};var warnedForOverflow=false;module.exports=TimeAxis},function(module,exports,__webpack_require__){\"use strict\";var Hammer=__webpack_require__(10);var util=__webpack_require__(2);var Component=__webpack_require__(16);var moment=__webpack_require__(9);var locales=__webpack_require__(98);function CustomTime(body,options){this.body=body;this.defaultOptions={moment:moment,locales:locales,locale:\"en\",id:undefined,title:undefined};this.options=util.extend({},this.defaultOptions);if(options&&options.time){this.customTime=options.time}else{this.customTime=new Date}this.eventParams={};this.setOptions(options);this._create()}CustomTime.prototype=new Component;CustomTime.prototype.setOptions=function(options){if(options){util.selectiveExtend([\"moment\",\"locale\",\"locales\",\"id\"],this.options,options)}};CustomTime.prototype._create=function(){var bar=document.createElement(\"div\");bar[\"custom-time\"]=this;bar.className=\"vis-custom-time \"+(this.options.id||\"\");bar.style.position=\"absolute\";bar.style.top=\"0px\";bar.style.height=\"100%\";this.bar=bar;var drag=document.createElement(\"div\");drag.style.position=\"relative\";drag.style.top=\"0px\";drag.style.left=\"-10px\";drag.style.height=\"100%\";drag.style.width=\"20px\";function onMouseWheel(e){this.body.range._onMouseWheel(e)}if(drag.addEventListener){drag.addEventListener(\"mousewheel\",onMouseWheel.bind(this),false);drag.addEventListener(\"DOMMouseScroll\",onMouseWheel.bind(this),false)}else{drag.attachEvent(\"onmousewheel\",onMouseWheel.bind(this))}bar.appendChild(drag);this.hammer=new Hammer(drag);this.hammer.on(\"panstart\",this._onDragStart.bind(this));this.hammer.on(\"panmove\",this._onDrag.bind(this));this.hammer.on(\"panend\",this._onDragEnd.bind(this));this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_HORIZONTAL})};CustomTime.prototype.destroy=function(){this.hide();this.hammer.destroy();this.hammer=null;this.body=null};CustomTime.prototype.redraw=function(){var parent=this.body.dom.backgroundVertical;if(this.bar.parentNode!=parent){if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}parent.appendChild(this.bar)}var x=this.body.util.toScreen(this.customTime);var locale=this.options.locales[this.options.locale];if(!locale){if(!this.warned){console.log(\"WARNING: options.locales['\"+this.options.locale+\"'] not found. See http://visjs.org/docs/timeline/#Localization\");this.warned=true}locale=this.options.locales[\"en\"]}var title=this.options.title;if(title===undefined){title=locale.time+\": \"+this.options.moment(this.customTime).format(\"dddd, MMMM Do YYYY, H:mm:ss\");title=title.charAt(0).toUpperCase()+title.substring(1)}else if(typeof title===\"function\"){title=title.call(this.customTime)}this.bar.style.left=x+\"px\";this.bar.title=title;return false};CustomTime.prototype.hide=function(){if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}};CustomTime.prototype.setCustomTime=function(time){this.customTime=util.convert(time,\"Date\");this.redraw()};CustomTime.prototype.getCustomTime=function(){return new Date(this.customTime.valueOf())};CustomTime.prototype.setCustomTitle=function(title){this.options.title=title};CustomTime.prototype._onDragStart=function(event){this.eventParams.dragging=true;this.eventParams.customTime=this.customTime;event.stopPropagation()};CustomTime.prototype._onDrag=function(event){if(!this.eventParams.dragging)return;var x=this.body.util.toScreen(this.eventParams.customTime)+event.deltaX;var time=this.body.util.toTime(x);this.setCustomTime(time);this.body.emitter.emit(\"timechange\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:event});event.stopPropagation()};CustomTime.prototype._onDragEnd=function(event){if(!this.eventParams.dragging)return;this.body.emitter.emit(\"timechanged\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:event});event.stopPropagation()};CustomTime.customTimeFromTarget=function(event){var target=event.target;while(target){if(target.hasOwnProperty(\"custom-time\")){return target[\"custom-time\"]}target=target.parentNode}return null};module.exports=CustomTime},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Label=__webpack_require__(117)[\"default\"];var ComponentUtil=__webpack_require__(48)[\"default\"];var Box=__webpack_require__(193)[\"default\"];var Circle=__webpack_require__(200)[\"default\"];var CircularImage=__webpack_require__(201)[\"default\"];var Database=__webpack_require__(202)[\"default\"];var Diamond=__webpack_require__(203)[\"default\"];var Dot=__webpack_require__(204)[\"default\"];var Ellipse=__webpack_require__(205)[\"default\"];var Icon=__webpack_require__(206)[\"default\"];var Image=__webpack_require__(207)[\"default\"];var Square=__webpack_require__(208)[\"default\"];var Hexagon=__webpack_require__(209)[\"default\"];var Star=__webpack_require__(210)[\"default\"];var Text=__webpack_require__(211)[\"default\"];var Triangle=__webpack_require__(212)[\"default\"];var TriangleDown=__webpack_require__(213)[\"default\"];var _require=__webpack_require__(15),printStyle=_require.printStyle;var Node=function(){function Node(options,body,imagelist,grouplist,globalOptions,defaultOptions){(0,_classCallCheck3[\"default\"])(this,Node);this.options=util.bridgeObject(globalOptions);this.globalOptions=globalOptions;this.defaultOptions=defaultOptions;this.body=body;this.edges=[];this.id=undefined;this.imagelist=imagelist;this.grouplist=grouplist;this.x=undefined;this.y=undefined;this.baseSize=this.options.size;this.baseFontSize=this.options.font.size;this.predefinedPosition=false;this.selected=false;this.hover=false;this.labelModule=new Label(this.body,this.options,false);this.setOptions(options)}(0,_createClass3[\"default\"])(Node,[{key:\"attachEdge\",value:function attachEdge(edge){if(this.edges.indexOf(edge)===-1){this.edges.push(edge)}}},{key:\"detachEdge\",value:function detachEdge(edge){var index=this.edges.indexOf(edge);if(index!=-1){this.edges.splice(index,1)}}},{key:\"setOptions\",value:function setOptions(options){var currentShape=this.options.shape;if(!options){return}if(options.id!==undefined){this.id=options.id}if(this.id===undefined){throw new Error(\"Node must have an id\")}Node.checkMass(options,this.id);if(options.x!==undefined){if(options.x===null){this.x=undefined;this.predefinedPosition=false}else{this.x=parseInt(options.x);this.predefinedPosition=true}}if(options.y!==undefined){if(options.y===null){this.y=undefined;this.predefinedPosition=false}else{this.y=parseInt(options.y);this.predefinedPosition=true}}if(options.size!==undefined){this.baseSize=options.size}if(options.value!==undefined){options.value=parseFloat(options.value)}Node.parseOptions(this.options,options,true,this.globalOptions,this.grouplist);var pile=[options,this.options,this.defaultOptions];this.chooser=ComponentUtil.choosify(\"node\",pile);this._load_images();this.updateLabelModule(options);this.updateShape(currentShape);return options.hidden!==undefined||options.physics!==undefined}},{key:\"_load_images\",value:function _load_images(){if(this.options.shape!==\"circularImage\"&&this.options.shape!==\"image\"){return}if(this.options.image===undefined){throw new Error(\"Option image must be defined for node type '\"+this.options.shape+\"'\")}if(this.imagelist===undefined){throw new Error(\"Internal Error: No images provided\")}if(typeof this.options.image===\"string\"){this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id)}else{if(this.options.image.unselected===undefined){throw new Error(\"No unselected image provided\")}this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id);if(this.options.image.selected!==undefined){this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id)}else{this.imageObjAlt=undefined}}}},{key:\"getFormattingValues\",value:function getFormattingValues(){var values={color:this.options.color.background,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover){if(this.chooser===true){if(this.selected){values.borderWidth*=2;values.color=this.options.color.highlight.background;values.borderColor=this.options.color.highlight.border;values.shadow=this.options.shadow.enabled}else if(this.hover){values.color=this.options.color.hover.background;values.borderColor=this.options.color.hover.border;values.shadow=this.options.shadow.enabled}}else if(typeof this.chooser===\"function\"){this.chooser(values,this.options.id,this.selected,this.hover);if(values.shadow===false){if(values.shadowColor!==this.options.shadow.color||values.shadowSize!==this.options.shadow.size||values.shadowX!==this.options.shadow.x||values.shadowY!==this.options.shadow.y){values.shadow=true}}}}else{values.shadow=this.options.shadow.enabled}return values}},{key:\"updateLabelModule\",value:function updateLabelModule(options){if(this.options.label===undefined||this.options.label===null){this.options.label=\"\"}Node.updateGroupOptions(this.options,options,this.grouplist);var currentGroup=this.grouplist.get(this.options.group,false);var pile=[options,this.options,currentGroup,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,pile);if(this.labelModule.baseSize!==undefined){this.baseFontSize=this.labelModule.baseSize}}},{key:\"updateShape\",value:function updateShape(currentShape){if(currentShape===this.options.shape&&this.shape){this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt)}else{switch(this.options.shape){case\"box\":this.shape=new Box(this.options,this.body,this.labelModule);break;case\"circle\":this.shape=new Circle(this.options,this.body,this.labelModule);break;case\"circularImage\":this.shape=new CircularImage(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case\"database\":this.shape=new Database(this.options,this.body,this.labelModule);break;case\"diamond\":this.shape=new Diamond(this.options,this.body,this.labelModule);break;case\"dot\":this.shape=new Dot(this.options,this.body,this.labelModule);break;case\"ellipse\":this.shape=new Ellipse(this.options,this.body,this.labelModule);break;case\"icon\":this.shape=new Icon(this.options,this.body,this.labelModule);break;case\"image\":this.shape=new Image(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case\"square\":this.shape=new Square(this.options,this.body,this.labelModule);break;case\"hexagon\":this.shape=new Hexagon(this.options,this.body,this.labelModule);break;case\"star\":this.shape=new Star(this.options,this.body,this.labelModule);break;case\"text\":this.shape=new Text(this.options,this.body,this.labelModule);break;case\"triangle\":this.shape=new Triangle(this.options,this.body,this.labelModule);break;case\"triangleDown\":this.shape=new TriangleDown(this.options,this.body,this.labelModule);break;default:this.shape=new Ellipse(this.options,this.body,this.labelModule);break}}this.needsRefresh()}},{key:\"select\",value:function select(){this.selected=true;this.needsRefresh()}},{key:\"unselect\",value:function unselect(){this.selected=false;this.needsRefresh()}},{key:\"needsRefresh\",value:function needsRefresh(){this.shape.refreshNeeded=true}},{key:\"getTitle\",value:function getTitle(){return this.options.title}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this.shape.distanceToBorder(ctx,angle)}},{key:\"isFixed\",value:function isFixed(){return this.options.fixed.x&&this.options.fixed.y}},{key:\"isSelected\",value:function isSelected(){return this.selected}},{key:\"getValue\",value:function getValue(){return this.options.value}},{key:\"getLabelSize\",value:function getLabelSize(){return this.labelModule.size()}},{key:\"setValueRange\",value:function setValueRange(min,max,total){if(this.options.value!==undefined){var scale=this.options.scaling.customScalingFunction(min,max,total,this.options.value);var sizeDiff=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===true){var fontDiff=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+scale*fontDiff}this.options.size=this.options.scaling.min+scale*sizeDiff}else{this.options.size=this.baseSize;this.options.font.size=this.baseFontSize}this.updateLabelModule()}},{key:\"draw\",value:function draw(ctx){var values=this.getFormattingValues();this.shape.draw(ctx,this.x,this.y,this.selected,this.hover,values)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(ctx){this.shape.updateBoundingBox(this.x,this.y,ctx)}},{key:\"resize\",value:function resize(ctx){var values=this.getFormattingValues();this.shape.resize(ctx,this.selected,this.hover,values)}},{key:\"getItemsOnPoint\",value:function getItemsOnPoint(point){var ret=[];if(this.labelModule.visible()){if(ComponentUtil.pointInRect(this.labelModule.getSize(),point)){ret.push({nodeId:this.id,labelId:0})}}if(ComponentUtil.pointInRect(this.shape.boundingBox,point)){ret.push({nodeId:this.id})}return ret}},{key:\"isOverlappingWith\",value:function isOverlappingWith(obj){return this.shape.left<obj.right&&this.shape.left+this.shape.width>obj.left&&this.shape.top<obj.bottom&&this.shape.top+this.shape.height>obj.top}},{key:\"isBoundingBoxOverlappingWith\",value:function isBoundingBoxOverlappingWith(obj){return this.shape.boundingBox.left<obj.right&&this.shape.boundingBox.right>obj.left&&this.shape.boundingBox.top<obj.bottom&&this.shape.boundingBox.bottom>obj.top}}],[{key:\"updateGroupOptions\",value:function updateGroupOptions(parentOptions,newOptions,groupList){if(groupList===undefined)return;var group=parentOptions.group;if(newOptions!==undefined&&newOptions.group!==undefined&&group!==newOptions.group){throw new Error(\"updateGroupOptions: group values in options don't match.\")}var hasGroup=typeof group===\"number\"||typeof group===\"string\"&&group!=\"\";if(!hasGroup)return;var groupObj=groupList.get(group);util.selectiveNotDeepExtend([\"font\"],parentOptions,groupObj);parentOptions.color=util.parseColor(parentOptions.color)}},{key:\"parseOptions\",value:function parseOptions(parentOptions,newOptions){var allowDeletion=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var globalOptions=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var groupList=arguments[4];var fields=[\"color\",\"fixed\",\"shadow\"];util.selectiveNotDeepExtend(fields,parentOptions,newOptions,allowDeletion);Node.checkMass(newOptions);util.mergeOptions(parentOptions,newOptions,\"shadow\",globalOptions);if(newOptions.color!==undefined&&newOptions.color!==null){var parsedColor=util.parseColor(newOptions.color);util.fillIfDefined(parentOptions.color,parsedColor)}else if(allowDeletion===true&&newOptions.color===null){parentOptions.color=util.bridgeObject(globalOptions.color)}if(newOptions.fixed!==undefined&&newOptions.fixed!==null){if(typeof newOptions.fixed===\"boolean\"){parentOptions.fixed.x=newOptions.fixed;parentOptions.fixed.y=newOptions.fixed}else{if(newOptions.fixed.x!==undefined&&typeof newOptions.fixed.x===\"boolean\"){parentOptions.fixed.x=newOptions.fixed.x}if(newOptions.fixed.y!==undefined&&typeof newOptions.fixed.y===\"boolean\"){parentOptions.fixed.y=newOptions.fixed.y}}}if(allowDeletion===true&&newOptions.font===null){parentOptions.font=util.bridgeObject(globalOptions.font)}Node.updateGroupOptions(parentOptions,newOptions,groupList);if(newOptions.scaling!==undefined){util.mergeOptions(parentOptions.scaling,newOptions.scaling,\"label\",globalOptions.scaling)}}},{key:\"checkMass\",value:function checkMass(options,id){if(options.mass!==undefined&&options.mass<=0){var strId=\"\";if(id!==undefined){strId=\" in node id: \"+id}console.log(\"%cNegative or zero mass disallowed\"+strId+\", setting mass to 1.\",printStyle);options.mass=1}}}]);return Node}();exports[\"default\"]=Node},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var ComponentUtil=function(){function ComponentUtil(){(0,_classCallCheck3[\"default\"])(this,ComponentUtil)}(0,_createClass3[\"default\"])(ComponentUtil,null,[{key:\"choosify\",value:function choosify(subOption,pile){var allowed=[\"node\",\"edge\",\"label\"];var value=true;var chosen=util.topMost(pile,\"chosen\");if(typeof chosen===\"boolean\"){value=chosen}else if((typeof chosen===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(chosen))===\"object\"){if(allowed.indexOf(subOption)===-1){throw new Error(\"choosify: subOption '\"+subOption+\"' should be one of \"+\"'\"+allowed.join(\"', '\")+\"'\")}var chosenEdge=util.topMost(pile,[\"chosen\",subOption]);if(typeof chosenEdge===\"boolean\"||typeof chosenEdge===\"function\"){value=chosenEdge}}return value}},{key:\"pointInRect\",value:function pointInRect(rect,point,rotationPoint){if(rect.width<=0||rect.height<=0){return false}if(rotationPoint!==undefined){var tmp={x:point.x-rotationPoint.x,y:point.y-rotationPoint.y};if(rotationPoint.angle!==0){var angle=-rotationPoint.angle;var tmp2={x:Math.cos(angle)*tmp.x-Math.sin(angle)*tmp.y,y:Math.sin(angle)*tmp.x+Math.cos(angle)*tmp.y};point=tmp2}else{point=tmp}}var right=rect.x+rect.width;var bottom=rect.y+rect.width;return rect.left<point.x&&right>point.x&&rect.top<point.y&&bottom>point.y}},{key:\"isValidLabel\",value:function isValidLabel(text){return typeof text===\"string\"&&text!==\"\"}}]);return ComponentUtil}();exports[\"default\"]=ComponentUtil},function(module,exports,__webpack_require__){__webpack_require__(125);var global=__webpack_require__(18);var hide=__webpack_require__(26);var Iterators=__webpack_require__(31);var TO_STRING_TAG=__webpack_require__(13)(\"toStringTag\");var DOMIterables=(\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,\"+\"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,\"+\"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,\"+\"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,\"+\"TextTrackList,TouchList\").split(\",\");for(var i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i];var Collection=global[NAME];var proto=Collection&&Collection.prototype;if(proto&&!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=Iterators.Array}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports){module.exports=function(it){if(it==undefined)throw TypeError(\"Can't call method on \"+it);return it}},function(module,exports){module.exports=true},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)==\"function\"&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)==\"function\"&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)==\"function\"&&!isObject(val=fn.call(it)))return val;throw TypeError(\"Can't convert object to primitive value\")}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var dPs=__webpack_require__(130);var enumBugKeys=__webpack_require__(58);var IE_PROTO=__webpack_require__(56)(\"IE_PROTO\")\n;var Empty=function(){};var PROTOTYPE=\"prototype\";var createDict=function(){var iframe=__webpack_require__(82)(\"iframe\");var i=enumBugKeys.length;var lt=\"<\";var gt=\">\";var iframeDocument;iframe.style.display=\"none\";__webpack_require__(134).appendChild(iframe);iframe.src=\"javascript:\";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+\"script\"+gt+\"document.F=Object\"+lt+\"/script\"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict()};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty;Empty[PROTOTYPE]=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:dPs(result,Properties)}},function(module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var shared=__webpack_require__(57)(\"keys\");var uid=__webpack_require__(40);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var global=__webpack_require__(18);var SHARED=\"__core-js_shared__\";var store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module,exports){module.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(module,exports,__webpack_require__){var def=__webpack_require__(20).f;var has=__webpack_require__(22);var TAG=__webpack_require__(13)(\"toStringTag\");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag})}},function(module,exports,__webpack_require__){\"use strict\";var $at=__webpack_require__(135)(true);__webpack_require__(79)(String,\"String\",function(iterated){this._t=String(iterated);this._i=0},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false}})},function(module,exports,__webpack_require__){exports.f=__webpack_require__(13)},function(module,exports,__webpack_require__){var global=__webpack_require__(18);var core=__webpack_require__(7);var LIBRARY=__webpack_require__(52);var wksExt=__webpack_require__(61);var defineProperty=__webpack_require__(20).f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});if(name.charAt(0)!=\"_\"&&!(name in $Symbol))defineProperty($Symbol,name,{value:wksExt.f(name)})}},function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var moment=__webpack_require__(9);var Component=__webpack_require__(16);var DateUtil=__webpack_require__(36);function Range(body,options){var now=moment().hours(0).minutes(0).seconds(0).milliseconds(0);var start=now.clone().add(-3,\"days\").valueOf();var end=now.clone().add(3,\"days\").valueOf();this.millisecondsPerPixelCache=undefined;if(options===undefined){this.start=start;this.end=end}else{this.start=options.start||start;this.end=options.end||end}this.rolling=false;this.body=body;this.deltaDifference=0;this.scaleOffset=0;this.startToFront=false;this.endToFront=true;this.defaultOptions={rtl:false,start:null,end:null,moment:moment,direction:\"horizontal\",moveable:true,zoomable:true,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:false,offset:.5}};this.options=util.extend({},this.defaultOptions);this.props={touch:{}};this.animationTimer=null;this.body.emitter.on(\"panstart\",this._onDragStart.bind(this));this.body.emitter.on(\"panmove\",this._onDrag.bind(this));this.body.emitter.on(\"panend\",this._onDragEnd.bind(this));this.body.emitter.on(\"mousewheel\",this._onMouseWheel.bind(this));this.body.emitter.on(\"touch\",this._onTouch.bind(this));this.body.emitter.on(\"pinch\",this._onPinch.bind(this));this.body.dom.rollingModeBtn.addEventListener(\"click\",this.startRolling.bind(this));this.setOptions(options)}Range.prototype=new Component;Range.prototype.setOptions=function(options){if(options){var fields=[\"animation\",\"direction\",\"min\",\"max\",\"zoomMin\",\"zoomMax\",\"moveable\",\"zoomable\",\"moment\",\"activate\",\"hiddenDates\",\"zoomKey\",\"rtl\",\"showCurrentTime\",\"rollingMode\",\"horizontalScroll\"];util.selectiveExtend(fields,this.options,options);if(options.rollingMode&&options.rollingMode.follow){this.startRolling()}if(\"start\"in options||\"end\"in options){this.setRange(options.start,options.end)}}};function validateDirection(direction){if(direction!=\"horizontal\"&&direction!=\"vertical\"){throw new TypeError('Unknown direction \"'+direction+'\". '+'Choose \"horizontal\" or \"vertical\".')}}Range.prototype.startRolling=function(){var me=this;function update(){me.stopRolling();me.rolling=true;var interval=me.end-me.start;var t=util.convert(new Date,\"Date\").valueOf();var start=t-interval*me.options.rollingMode.offset;var end=t+interval*(1-me.options.rollingMode.offset);var options={animation:false};me.setRange(start,end,options);var scale=me.conversion(me.body.domProps.center.width).scale;interval=1/scale/10;if(interval<30)interval=30;if(interval>1e3)interval=1e3;me.body.dom.rollingModeBtn.style.visibility=\"hidden\";me.currentTimeTimer=setTimeout(update,interval)}update()};Range.prototype.stopRolling=function(){if(this.currentTimeTimer!==undefined){clearTimeout(this.currentTimeTimer);this.rolling=false;this.body.dom.rollingModeBtn.style.visibility=\"visible\"}};Range.prototype.setRange=function(start,end,options,callback,frameCallback){if(!options){options={}}if(options.byUser!==true){options.byUser=false}var me=this;var finalStart=start!=undefined?util.convert(start,\"Date\").valueOf():null;var finalEnd=end!=undefined?util.convert(end,\"Date\").valueOf():null;this._cancelAnimation();this.millisecondsPerPixelCache=undefined;if(options.animation){var initStart=this.start;var initEnd=this.end;var duration=(0,_typeof3[\"default\"])(options.animation)===\"object\"&&\"duration\"in options.animation?options.animation.duration:500;var easingName=(0,_typeof3[\"default\"])(options.animation)===\"object\"&&\"easingFunction\"in options.animation?options.animation.easingFunction:\"easeInOutQuad\";var easingFunction=util.easingFunctions[easingName];if(!easingFunction){throw new Error(\"Unknown easing function \"+(0,_stringify2[\"default\"])(easingName)+\". \"+\"Choose from: \"+(0,_keys2[\"default\"])(util.easingFunctions).join(\", \"))}var initTime=(new Date).valueOf();var anyChanged=false;var next=function next(){if(!me.props.touch.dragging){var now=(new Date).valueOf();var time=now-initTime;var ease=easingFunction(time/duration);var done=time>duration;var s=done||finalStart===null?finalStart:initStart+(finalStart-initStart)*ease;var e=done||finalEnd===null?finalEnd:initEnd+(finalEnd-initEnd)*ease;changed=me._applyRange(s,e);DateUtil.updateHiddenDates(me.options.moment,me.body,me.options.hiddenDates);anyChanged=anyChanged||changed;var params={start:new Date(me.start),end:new Date(me.end),byUser:options.byUser,event:options.event};if(frameCallback){frameCallback(ease,changed,done)}if(changed){me.body.emitter.emit(\"rangechange\",params)}if(done){if(anyChanged){me.body.emitter.emit(\"rangechanged\",params);if(callback){return callback()}}}else{me.animationTimer=setTimeout(next,20)}}};return next()}else{var changed=this._applyRange(finalStart,finalEnd);DateUtil.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates);if(changed){var params={start:new Date(this.start),end:new Date(this.end),byUser:options.byUser,event:options.event};this.body.emitter.emit(\"rangechange\",params);clearTimeout(me.timeoutID);me.timeoutID=setTimeout(function(){me.body.emitter.emit(\"rangechanged\",params)},200);if(callback){return callback()}}}};Range.prototype.getMillisecondsPerPixel=function(){if(this.millisecondsPerPixelCache===undefined){this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth}return this.millisecondsPerPixelCache};Range.prototype._cancelAnimation=function(){if(this.animationTimer){clearTimeout(this.animationTimer);this.animationTimer=null}};Range.prototype._applyRange=function(start,end){var newStart=start!=null?util.convert(start,\"Date\").valueOf():this.start,newEnd=end!=null?util.convert(end,\"Date\").valueOf():this.end,max=this.options.max!=null?util.convert(this.options.max,\"Date\").valueOf():null,min=this.options.min!=null?util.convert(this.options.min,\"Date\").valueOf():null,diff;if(isNaN(newStart)||newStart===null){throw new Error('Invalid start \"'+start+'\"')}if(isNaN(newEnd)||newEnd===null){throw new Error('Invalid end \"'+end+'\"')}if(newEnd<newStart){newEnd=newStart}if(min!==null){if(newStart<min){diff=min-newStart;newStart+=diff;newEnd+=diff;if(max!=null){if(newEnd>max){newEnd=max}}}}if(max!==null){if(newEnd>max){diff=newEnd-max;newStart-=diff;newEnd-=diff;if(min!=null){if(newStart<min){newStart=min}}}}if(this.options.zoomMin!==null){var zoomMin=parseFloat(this.options.zoomMin);if(zoomMin<0){zoomMin=0}if(newEnd-newStart<zoomMin){var compensation=.5;if(this.end-this.start===zoomMin&&newStart>=this.start-compensation&&newEnd<=this.end){newStart=this.start;newEnd=this.end}else{diff=zoomMin-(newEnd-newStart);newStart-=diff/2;newEnd+=diff/2}}}if(this.options.zoomMax!==null){var zoomMax=parseFloat(this.options.zoomMax);if(zoomMax<0){zoomMax=0}if(newEnd-newStart>zoomMax){if(this.end-this.start===zoomMax&&newStart<this.start&&newEnd>this.end){newStart=this.start;newEnd=this.end}else{diff=newEnd-newStart-zoomMax;newStart+=diff/2;newEnd-=diff/2}}}var changed=this.start!=newStart||this.end!=newEnd;if(!(newStart>=this.start&&newStart<=this.end||newEnd>=this.start&&newEnd<=this.end)&&!(this.start>=newStart&&this.start<=newEnd||this.end>=newStart&&this.end<=newEnd)){this.body.emitter.emit(\"checkRangedItems\")}this.start=newStart;this.end=newEnd;return changed};Range.prototype.getRange=function(){return{start:this.start,end:this.end}};Range.prototype.conversion=function(width,totalHidden){return Range.conversion(this.start,this.end,width,totalHidden)};Range.conversion=function(start,end,width,totalHidden){if(totalHidden===undefined){totalHidden=0}if(width!=0&&end-start!=0){return{offset:start,scale:width/(end-start-totalHidden)}}else{return{offset:0,scale:1}}};Range.prototype._onDragStart=function(event){this.deltaDifference=0;this.previousDelta=0;if(!this.options.moveable)return;if(!this._isInsideRange(event))return;if(!this.props.touch.allowDragging)return;this.stopRolling();this.props.touch.start=this.start;this.props.touch.end=this.end;this.props.touch.dragging=true;if(this.body.dom.root){this.body.dom.root.style.cursor=\"move\"}};Range.prototype._onDrag=function(event){if(!event)return;if(!this.props.touch.dragging)return;if(!this.options.moveable)return;if(!this.props.touch.allowDragging)return;var direction=this.options.direction;validateDirection(direction);var delta=direction==\"horizontal\"?event.deltaX:event.deltaY;delta-=this.deltaDifference;var interval=this.props.touch.end-this.props.touch.start;var duration=DateUtil.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);interval-=duration;var width=direction==\"horizontal\"?this.body.domProps.center.width:this.body.domProps.center.height;var diffRange;if(this.options.rtl){diffRange=delta/width*interval}else{diffRange=-delta/width*interval}var newStart=this.props.touch.start+diffRange;var newEnd=this.props.touch.end+diffRange;var safeStart=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newStart,this.previousDelta-delta,true);var safeEnd=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newEnd,this.previousDelta-delta,true);if(safeStart!=newStart||safeEnd!=newEnd){this.deltaDifference+=delta;this.props.touch.start=safeStart;this.props.touch.end=safeEnd;this._onDrag(event);return}this.previousDelta=delta;this._applyRange(newStart,newEnd);var startDate=new Date(this.start);var endDate=new Date(this.end);this.body.emitter.emit(\"rangechange\",{start:startDate,end:endDate,byUser:true,event:event});this.body.emitter.emit(\"panmove\")};Range.prototype._onDragEnd=function(event){if(!this.props.touch.dragging)return;if(!this.options.moveable)return;if(!this.props.touch.allowDragging)return;this.props.touch.dragging=false;if(this.body.dom.root){this.body.dom.root.style.cursor=\"auto\"}this.body.emitter.emit(\"rangechanged\",{start:new Date(this.start),end:new Date(this.end),byUser:true,event:event})};Range.prototype._onMouseWheel=function(event){var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120}else if(event.detail){delta=-event.detail/3}if(this.options.zoomKey&&!event[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable){return}if(!(this.options.zoomable&&this.options.moveable))return;if(!this._isInsideRange(event))return;if(delta){var scale;if(delta<0){scale=1-delta/5}else{scale=1/(1+delta/5)}var pointerDate;if(this.rolling){pointerDate=this.start+(this.end-this.start)*this.options.rollingMode.offset}else{var pointer=this.getPointer({x:event.clientX,y:event.clientY},this.body.dom.center);pointerDate=this._pointerToDate(pointer)}this.zoom(scale,pointerDate,delta,event);event.preventDefault()}};Range.prototype._onTouch=function(event){this.props.touch.start=this.start;this.props.touch.end=this.end;this.props.touch.allowDragging=true;this.props.touch.center=null;this.scaleOffset=0;this.deltaDifference=0;util.preventDefault(event)};Range.prototype._onPinch=function(event){if(!(this.options.zoomable&&this.options.moveable))return;util.preventDefault(event);this.props.touch.allowDragging=false;if(!this.props.touch.center){this.props.touch.center=this.getPointer(event.center,this.body.dom.center)}this.stopRolling();var scale=1/(event.scale+this.scaleOffset);var centerDate=this._pointerToDate(this.props.touch.center);var hiddenDuration=DateUtil.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var hiddenDurationBefore=DateUtil.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,centerDate);var hiddenDurationAfter=hiddenDuration-hiddenDurationBefore;var newStart=centerDate-hiddenDurationBefore+(this.props.touch.start-(centerDate-hiddenDurationBefore))*scale;var newEnd=centerDate+hiddenDurationAfter+(this.props.touch.end-(centerDate+hiddenDurationAfter))*scale;this.startToFront=1-scale<=0;this.endToFront=scale-1<=0;var safeStart=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newStart,1-scale,true);var safeEnd=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newEnd,scale-1,true);if(safeStart!=newStart||safeEnd!=newEnd){this.props.touch.start=safeStart;this.props.touch.end=safeEnd;this.scaleOffset=1-event.scale;newStart=safeStart;newEnd=safeEnd}var options={animation:false,byUser:true,event:event};this.setRange(newStart,newEnd,options);this.startToFront=false;this.endToFront=true};Range.prototype._isInsideRange=function(event){var clientX=event.center?event.center.x:event.clientX;var x;if(this.options.rtl){x=clientX-util.getAbsoluteLeft(this.body.dom.centerContainer)}else{x=util.getAbsoluteRight(this.body.dom.centerContainer)-clientX}var time=this.body.util.toTime(x);return time>=this.start&&time<=this.end};Range.prototype._pointerToDate=function(pointer){var conversion;var direction=this.options.direction;validateDirection(direction);if(direction==\"horizontal\"){return this.body.util.toTime(pointer.x).valueOf()}else{var height=this.body.domProps.center.height;conversion=this.conversion(height);return pointer.y/conversion.scale+conversion.offset}};Range.prototype.getPointer=function(touch,element){if(this.options.rtl){return{x:util.getAbsoluteRight(element)-touch.x,y:touch.y-util.getAbsoluteTop(element)}}else{return{x:touch.x-util.getAbsoluteLeft(element),y:touch.y-util.getAbsoluteTop(element)}}};Range.prototype.zoom=function(scale,center,delta,event){if(center==null){center=(this.start+this.end)/2}var hiddenDuration=DateUtil.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var hiddenDurationBefore=DateUtil.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,center);var hiddenDurationAfter=hiddenDuration-hiddenDurationBefore;var newStart=center-hiddenDurationBefore+(this.start-(center-hiddenDurationBefore))*scale;var newEnd=center+hiddenDurationAfter+(this.end-(center+hiddenDurationAfter))*scale;this.startToFront=delta>0?false:true;this.endToFront=-delta>0?false:true;var safeStart=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newStart,delta,true);var safeEnd=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newEnd,-delta,true);if(safeStart!=newStart||safeEnd!=newEnd){newStart=safeStart;newEnd=safeEnd}var options={animation:false,byUser:true,event:event};this.setRange(newStart,newEnd,options);this.startToFront=false;this.endToFront=true};Range.prototype.move=function(delta){var diff=this.end-this.start;var newStart=this.start+diff*delta;var newEnd=this.end+diff*delta;this.start=newStart;this.end=newEnd};Range.prototype.moveTo=function(moveTo){var center=(this.start+this.end)/2;var diff=center-moveTo;var newStart=this.start-diff;var newEnd=this.end-diff;var options={animation:false,byUser:true,event:null};this.setRange(newStart,newEnd,options)};module.exports=Range},function(module,exports,__webpack_require__){\"use strict\";var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Emitter=__webpack_require__(44);var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var util=__webpack_require__(2);var TimeAxis=__webpack_require__(45);var Activator=__webpack_require__(97);var DateUtil=__webpack_require__(36);var CustomTime=__webpack_require__(46);function Core(){}Emitter(Core.prototype);Core.prototype._create=function(container){this.dom={};this.dom.container=container;this.dom.root=document.createElement(\"div\");this.dom.background=document.createElement(\"div\");this.dom.backgroundVertical=document.createElement(\"div\");this.dom.backgroundHorizontal=document.createElement(\"div\");this.dom.centerContainer=document.createElement(\"div\");this.dom.leftContainer=document.createElement(\"div\");this.dom.rightContainer=document.createElement(\"div\");this.dom.center=document.createElement(\"div\");this.dom.left=document.createElement(\"div\");this.dom.right=document.createElement(\"div\");this.dom.top=document.createElement(\"div\");this.dom.bottom=document.createElement(\"div\");this.dom.shadowTop=document.createElement(\"div\");this.dom.shadowBottom=document.createElement(\"div\");this.dom.shadowTopLeft=document.createElement(\"div\");this.dom.shadowBottomLeft=document.createElement(\"div\");this.dom.shadowTopRight=document.createElement(\"div\");this.dom.shadowBottomRight=document.createElement(\"div\");this.dom.rollingModeBtn=document.createElement(\"div\");this.dom.root.className=\"vis-timeline\";this.dom.background.className=\"vis-panel vis-background\";this.dom.backgroundVertical.className=\"vis-panel vis-background vis-vertical\";this.dom.backgroundHorizontal.className=\"vis-panel vis-background vis-horizontal\";this.dom.centerContainer.className=\"vis-panel vis-center\";this.dom.leftContainer.className=\"vis-panel vis-left\";this.dom.rightContainer.className=\"vis-panel vis-right\";this.dom.top.className=\"vis-panel vis-top\";this.dom.bottom.className=\"vis-panel vis-bottom\";this.dom.left.className=\"vis-content\";this.dom.center.className=\"vis-content\";this.dom.right.className=\"vis-content\";this.dom.shadowTop.className=\"vis-shadow vis-top\";this.dom.shadowBottom.className=\"vis-shadow vis-bottom\";this.dom.shadowTopLeft.className=\"vis-shadow vis-top\";this.dom.shadowBottomLeft.className=\"vis-shadow vis-bottom\";this.dom.shadowTopRight.className=\"vis-shadow vis-top\";this.dom.shadowBottomRight.className=\"vis-shadow vis-bottom\";this.dom.rollingModeBtn.className=\"vis-rolling-mode-btn\";this.dom.root.appendChild(this.dom.background);this.dom.root.appendChild(this.dom.backgroundVertical);this.dom.root.appendChild(this.dom.backgroundHorizontal);this.dom.root.appendChild(this.dom.centerContainer);this.dom.root.appendChild(this.dom.leftContainer);this.dom.root.appendChild(this.dom.rightContainer);this.dom.root.appendChild(this.dom.top);this.dom.root.appendChild(this.dom.bottom);this.dom.root.appendChild(this.dom.bottom);this.dom.root.appendChild(this.dom.rollingModeBtn);this.dom.centerContainer.appendChild(this.dom.center);this.dom.leftContainer.appendChild(this.dom.left);this.dom.rightContainer.appendChild(this.dom.right);this.dom.centerContainer.appendChild(this.dom.shadowTop);this.dom.centerContainer.appendChild(this.dom.shadowBottom);this.dom.leftContainer.appendChild(this.dom.shadowTopLeft);this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft);this.dom.rightContainer.appendChild(this.dom.shadowTopRight);this.dom.rightContainer.appendChild(this.dom.shadowBottomRight);this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0};this.on(\"rangechange\",function(){if(this.initialDrawDone===true){this._redraw()}}.bind(this));this.on(\"rangechanged\",function(){if(!this.initialRangeChangeDone){this.initialRangeChangeDone=true}}.bind(this));this.on(\"touch\",this._onTouch.bind(this));this.on(\"panmove\",this._onDrag.bind(this));var me=this;this._origRedraw=this._redraw.bind(this);this._redraw=util.throttle(this._origRedraw);this.on(\"_change\",function(properties){if(me.itemSet&&me.itemSet.initialItemSetDrawn&&properties&&properties.queue==true){me._redraw()}else{me._origRedraw()}});this.hammer=new Hammer(this.dom.root);var pinchRecognizer=this.hammer.get(\"pinch\").set({enable:true});hammerUtil.disablePreventDefaultVertically(pinchRecognizer);this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_HORIZONTAL});this.listeners={};var events=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];events.forEach(function(type){var listener=function listener(event){if(me.isActive()){me.emit(type,event)}};me.hammer.on(type,listener);me.listeners[type]=listener});hammerUtil.onTouch(this.hammer,function(event){me.emit(\"touch\",event)}.bind(this));hammerUtil.onRelease(this.hammer,function(event){me.emit(\"release\",event)}.bind(this));function onMouseWheel(event){if(this.isActive()){this.emit(\"mousewheel\",event)}var deltaX=0;var deltaY=0;if(\"detail\"in event){deltaY=event.detail*-1}if(\"wheelDelta\"in event){deltaY=event.wheelDelta}if(\"wheelDeltaY\"in event){deltaY=event.wheelDeltaY}if(\"wheelDeltaX\"in event){deltaX=event.wheelDeltaX*-1}if(\"axis\"in event&&event.axis===event.HORIZONTAL_AXIS){deltaX=deltaY*-1;deltaY=0}if(\"deltaY\"in event){deltaY=event.deltaY*-1}if(\"deltaX\"in event){deltaX=event.deltaX}if(!this.options.zoomKey||event[this.options.zoomKey])return;event.preventDefault();if(this.options.verticalScroll&&Math.abs(deltaY)>=Math.abs(deltaX)){var current=this.props.scrollTop;var adjusted=current+deltaY;if(this.isActive()){this._setScrollTop(adjusted);this._redraw();this.emit(\"scroll\",event)}}else if(this.options.horizontalScroll){var delta=Math.abs(deltaX)>=Math.abs(deltaY)?deltaX:deltaY;var diff=delta/120*(this.range.end-this.range.start)/20;var newStart=this.range.start+diff;var newEnd=this.range.end+diff;var options={animation:false,byUser:true,event:event};this.range.setRange(newStart,newEnd,options)}}if(this.dom.centerContainer.addEventListener){this.dom.centerContainer.addEventListener(\"mousewheel\",onMouseWheel.bind(this),false);this.dom.centerContainer.addEventListener(\"DOMMouseScroll\",onMouseWheel.bind(this),false)}else{this.dom.centerContainer.attachEvent(\"onmousewheel\",onMouseWheel.bind(this))}function onMouseScrollSide(event){if(!me.options.verticalScroll)return;event.preventDefault();if(me.isActive()){var adjusted=-event.target.scrollTop;me._setScrollTop(adjusted);me._redraw();me.emit(\"scrollSide\",event)}}this.dom.left.parentNode.addEventListener(\"scroll\",onMouseScrollSide.bind(this));this.dom.right.parentNode.addEventListener(\"scroll\",onMouseScrollSide.bind(this));var itemAddedToTimeline=false;function handleDragOver(event){if(event.preventDefault){event.preventDefault()}if(!event.target.className.indexOf(\"vis\")>-1)return;if(itemAddedToTimeline)return;event.dataTransfer.dropEffect=\"move\";itemAddedToTimeline=true;return false}function handleDrop(event){if(event.preventDefault){event.preventDefault()}if(event.stopPropagation){event.stopPropagation()}try{var itemData=JSON.parse(event.dataTransfer.getData(\"text\"));if(!itemData||!itemData.content)return}catch(err){return false}itemAddedToTimeline=false;event.center={x:event.clientX,y:event.clientY};if(itemData.target!==\"item\"){me.itemSet._onAddItem(event)}else{me.itemSet._onDropObjectOnItem(event)}me.emit(\"drop\",me.getEventProperties(event));return false}this.dom.center.addEventListener(\"dragover\",handleDragOver.bind(this),false);this.dom.center.addEventListener(\"drop\",handleDrop.bind(this),false);this.customTimes=[];this.touch={};this.redrawCount=0;this.initialDrawDone=false;this.initialRangeChangeDone=false;if(!container)throw new Error(\"No container provided\");container.appendChild(this.dom.root)};Core.prototype.setOptions=function(options){if(options){var fields=[\"width\",\"height\",\"minHeight\",\"maxHeight\",\"autoResize\",\"start\",\"end\",\"clickToUse\",\"dataAttributes\",\"hiddenDates\",\"locale\",\"locales\",\"moment\",\"rtl\",\"zoomKey\",\"horizontalScroll\",\"verticalScroll\"];util.selectiveExtend(fields,this.options,options);this.dom.rollingModeBtn.style.visibility=\"hidden\";if(this.options.rtl){this.dom.container.style.direction=\"rtl\";this.dom.backgroundVertical.className=\"vis-panel vis-background vis-vertical-rtl\"}if(this.options.verticalScroll){if(this.options.rtl){this.dom.rightContainer.className=\"vis-panel vis-right vis-vertical-scroll\"}else{this.dom.leftContainer.className=\"vis-panel vis-left vis-vertical-scroll\"}}if((0,_typeof3[\"default\"])(this.options.orientation)!==\"object\"){this.options.orientation={item:undefined,axis:undefined}}if(\"orientation\"in options){if(typeof options.orientation===\"string\"){this.options.orientation={item:options.orientation,axis:options.orientation}}else if((0,_typeof3[\"default\"])(options.orientation)===\"object\"){if(\"item\"in options.orientation){this.options.orientation.item=options.orientation.item}if(\"axis\"in options.orientation){this.options.orientation.axis=options.orientation.axis}}}if(this.options.orientation.axis===\"both\"){if(!this.timeAxis2){var timeAxis2=this.timeAxis2=new TimeAxis(this.body);timeAxis2.setOptions=function(options){var _options=options?util.extend({},options):{};_options.orientation=\"top\";TimeAxis.prototype.setOptions.call(timeAxis2,_options)};this.components.push(timeAxis2)}}else{if(this.timeAxis2){var index=this.components.indexOf(this.timeAxis2);if(index!==-1){this.components.splice(index,1)}this.timeAxis2.destroy();this.timeAxis2=null}}if(typeof options.drawPoints==\"function\"){options.drawPoints={onRender:options.drawPoints}}if(\"hiddenDates\"in this.options){DateUtil.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates)}if(\"clickToUse\"in options){if(options.clickToUse){if(!this.activator){this.activator=new Activator(this.dom.root)}}else{if(this.activator){this.activator.destroy();delete this.activator}}}if(\"showCustomTime\"in options){throw new Error(\"Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])\")}this._initAutoResize()}this.components.forEach(function(component){return component.setOptions(options)});if(\"configure\"in options){if(!this.configurator){this.configurator=this._createConfigurator()}this.configurator.setOptions(options.configure);var appliedOptions=util.deepExtend({},this.options);this.components.forEach(function(component){util.deepExtend(appliedOptions,component.options)});this.configurator.setModuleOptions({global:appliedOptions})}this._redraw()};Core.prototype.isActive=function(){return!this.activator||this.activator.active};Core.prototype.destroy=function(){this.setItems(null);this.setGroups(null);this.off();this._stopAutoResize();if(this.dom.root.parentNode){this.dom.root.parentNode.removeChild(this.dom.root)}this.dom=null;if(this.activator){this.activator.destroy();delete this.activator}for(var event in this.listeners){if(this.listeners.hasOwnProperty(event)){delete this.listeners[event]}}this.listeners=null;this.hammer=null;this.components.forEach(function(component){return component.destroy()});this.body=null};Core.prototype.setCustomTime=function(time,id){var customTimes=this.customTimes.filter(function(component){return id===component.options.id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}if(customTimes.length>0){customTimes[0].setCustomTime(time)}};Core.prototype.getCustomTime=function(id){var customTimes=this.customTimes.filter(function(component){return component.options.id===id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}return customTimes[0].getCustomTime()};Core.prototype.setCustomTimeTitle=function(title,id){var customTimes=this.customTimes.filter(function(component){return component.options.id===id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}if(customTimes.length>0){return customTimes[0].setCustomTitle(title)}};Core.prototype.getEventProperties=function(event){return{event:event}};Core.prototype.addCustomTime=function(time,id){var timestamp=time!==undefined?util.convert(time,\"Date\").valueOf():new Date;var exists=this.customTimes.some(function(customTime){return customTime.options.id===id});if(exists){throw new Error(\"A custom time with id \"+(0,_stringify2[\"default\"])(id)+\" already exists\")}var customTime=new CustomTime(this.body,util.extend({},this.options,{time:timestamp,id:id}));this.customTimes.push(customTime);this.components.push(customTime);this._redraw();return id};Core.prototype.removeCustomTime=function(id){var customTimes=this.customTimes.filter(function(bar){return bar.options.id===id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}customTimes.forEach(function(customTime){this.customTimes.splice(this.customTimes.indexOf(customTime),1);this.components.splice(this.components.indexOf(customTime),1);customTime.destroy()}.bind(this))};Core.prototype.getVisibleItems=function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]};Core.prototype.fit=function(options,callback){var range=this.getDataRange();if(range.min===null&&range.max===null){return}var interval=range.max-range.min;var min=new Date(range.min.valueOf()-interval*.01);var max=new Date(range.max.valueOf()+interval*.01);var animation=options&&options.animation!==undefined?options.animation:true;this.range.setRange(min,max,{animation:animation},callback)};Core.prototype.getDataRange=function(){throw new Error(\"Cannot invoke abstract method getDataRange\")};Core.prototype.setWindow=function(start,end,options,callback){if(typeof arguments[2]==\"function\"){callback=arguments[2];options={}}var animation;var range;if(arguments.length==1){range=arguments[0];animation=range.animation!==undefined?range.animation:true;this.range.setRange(range.start,range.end,{animation:animation})}else if(arguments.length==2&&typeof arguments[1]==\"function\"){range=arguments[0];callback=arguments[1];animation=range.animation!==undefined?range.animation:true\n;this.range.setRange(range.start,range.end,{animation:animation},callback)}else{animation=options&&options.animation!==undefined?options.animation:true;this.range.setRange(start,end,{animation:animation},callback)}};Core.prototype.moveTo=function(time,options,callback){if(typeof arguments[1]==\"function\"){callback=arguments[1];options={}}var interval=this.range.end-this.range.start;var t=util.convert(time,\"Date\").valueOf();var start=t-interval/2;var end=t+interval/2;var animation=options&&options.animation!==undefined?options.animation:true;this.range.setRange(start,end,{animation:animation},callback)};Core.prototype.getWindow=function(){var range=this.range.getRange();return{start:new Date(range.start),end:new Date(range.end)}};Core.prototype.zoomIn=function(percentage,options,callback){if(!percentage||percentage<0||percentage>1)return;if(typeof arguments[1]==\"function\"){callback=arguments[1];options={}}var range=this.getWindow();var start=range.start.valueOf();var end=range.end.valueOf();var interval=end-start;var newInterval=interval/(1+percentage);var distance=(interval-newInterval)/2;var newStart=start+distance;var newEnd=end-distance;this.setWindow(newStart,newEnd,options,callback)};Core.prototype.zoomOut=function(percentage,options,callback){if(!percentage||percentage<0||percentage>1)return;if(typeof arguments[1]==\"function\"){callback=arguments[1];options={}}var range=this.getWindow();var start=range.start.valueOf();var end=range.end.valueOf();var interval=end-start;var newStart=start-interval*percentage/2;var newEnd=end+interval*percentage/2;this.setWindow(newStart,newEnd,options,callback)};Core.prototype.redraw=function(){this._redraw()};Core.prototype._redraw=function(){this.redrawCount++;var resized=false;var options=this.options;var props=this.props;var dom=this.dom;if(!dom||!dom.container||dom.root.offsetWidth==0)return;DateUtil.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates);if(options.orientation==\"top\"){util.addClassName(dom.root,\"vis-top\");util.removeClassName(dom.root,\"vis-bottom\")}else{util.removeClassName(dom.root,\"vis-top\");util.addClassName(dom.root,\"vis-bottom\")}dom.root.style.maxHeight=util.option.asSize(options.maxHeight,\"\");dom.root.style.minHeight=util.option.asSize(options.minHeight,\"\");dom.root.style.width=util.option.asSize(options.width,\"\");props.border.left=(dom.centerContainer.offsetWidth-dom.centerContainer.clientWidth)/2;props.border.right=props.border.left;props.border.top=(dom.centerContainer.offsetHeight-dom.centerContainer.clientHeight)/2;props.border.bottom=props.border.top;props.borderRootHeight=dom.root.offsetHeight-dom.root.clientHeight;props.borderRootWidth=dom.root.offsetWidth-dom.root.clientWidth;if(dom.centerContainer.clientHeight===0){props.border.left=props.border.top;props.border.right=props.border.left}if(dom.root.clientHeight===0){props.borderRootWidth=props.borderRootHeight}props.center.height=dom.center.offsetHeight;props.left.height=dom.left.offsetHeight;props.right.height=dom.right.offsetHeight;props.top.height=dom.top.clientHeight||-props.border.top;props.bottom.height=dom.bottom.clientHeight||-props.border.bottom;var contentHeight=Math.max(props.left.height,props.center.height,props.right.height);var autoHeight=props.top.height+contentHeight+props.bottom.height+props.borderRootHeight+props.border.top+props.border.bottom;dom.root.style.height=util.option.asSize(options.height,autoHeight+\"px\");props.root.height=dom.root.offsetHeight;props.background.height=props.root.height-props.borderRootHeight;var containerHeight=props.root.height-props.top.height-props.bottom.height-props.borderRootHeight;props.centerContainer.height=containerHeight;props.leftContainer.height=containerHeight;props.rightContainer.height=props.leftContainer.height;props.root.width=dom.root.offsetWidth;props.background.width=props.root.width-props.borderRootWidth;if(!this.initialDrawDone){props.scrollbarWidth=util.getScrollBarWidth()}if(options.verticalScroll){if(options.rtl){props.left.width=dom.leftContainer.clientWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth+props.scrollbarWidth||-props.border.right}else{props.left.width=dom.leftContainer.clientWidth+props.scrollbarWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth||-props.border.right}}else{props.left.width=dom.leftContainer.clientWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth||-props.border.right}this._setDOM();var offset=this._updateScrollTop();if(options.orientation.item!=\"top\"){offset+=Math.max(props.centerContainer.height-props.center.height-props.border.top-props.border.bottom,0)}dom.center.style.top=offset+\"px\";var visibilityTop=props.scrollTop==0?\"hidden\":\"\";var visibilityBottom=props.scrollTop==props.scrollTopMin?\"hidden\":\"\";dom.shadowTop.style.visibility=visibilityTop;dom.shadowBottom.style.visibility=visibilityBottom;dom.shadowTopLeft.style.visibility=visibilityTop;dom.shadowBottomLeft.style.visibility=visibilityBottom;dom.shadowTopRight.style.visibility=visibilityTop;dom.shadowBottomRight.style.visibility=visibilityBottom;if(options.verticalScroll){dom.rightContainer.className=\"vis-panel vis-right vis-vertical-scroll\";dom.leftContainer.className=\"vis-panel vis-left vis-vertical-scroll\";dom.shadowTopRight.style.visibility=\"hidden\";dom.shadowBottomRight.style.visibility=\"hidden\";dom.shadowTopLeft.style.visibility=\"hidden\";dom.shadowBottomLeft.style.visibility=\"hidden\";dom.left.style.top=\"0px\";dom.right.style.top=\"0px\"}if(!options.verticalScroll||props.center.height<props.centerContainer.height){dom.left.style.top=offset+\"px\";dom.right.style.top=offset+\"px\";dom.rightContainer.className=dom.rightContainer.className.replace(new RegExp(\"(?:^|\\\\s)\"+\"vis-vertical-scroll\"+\"(?:\\\\s|$)\"),\" \");dom.leftContainer.className=dom.leftContainer.className.replace(new RegExp(\"(?:^|\\\\s)\"+\"vis-vertical-scroll\"+\"(?:\\\\s|$)\"),\" \");props.left.width=dom.leftContainer.clientWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth||-props.border.right;this._setDOM()}var contentsOverflow=props.center.height>props.centerContainer.height;this.hammer.get(\"pan\").set({direction:contentsOverflow?Hammer.DIRECTION_ALL:Hammer.DIRECTION_HORIZONTAL});this.components.forEach(function(component){resized=component.redraw()||resized});var MAX_REDRAW=5;if(resized){if(this.redrawCount<MAX_REDRAW){this.body.emitter.emit(\"_change\");return}else{console.log(\"WARNING: infinite loop in redraw?\")}}else{this.redrawCount=0}this.body.emitter.emit(\"changed\")};Core.prototype._setDOM=function(){var props=this.props;var dom=this.dom;props.leftContainer.width=props.left.width;props.rightContainer.width=props.right.width;var centerWidth=props.root.width-props.left.width-props.right.width-props.borderRootWidth;props.center.width=centerWidth;props.centerContainer.width=centerWidth;props.top.width=centerWidth;props.bottom.width=centerWidth;dom.background.style.height=props.background.height+\"px\";dom.backgroundVertical.style.height=props.background.height+\"px\";dom.backgroundHorizontal.style.height=props.centerContainer.height+\"px\";dom.centerContainer.style.height=props.centerContainer.height+\"px\";dom.leftContainer.style.height=props.leftContainer.height+\"px\";dom.rightContainer.style.height=props.rightContainer.height+\"px\";dom.background.style.width=props.background.width+\"px\";dom.backgroundVertical.style.width=props.centerContainer.width+\"px\";dom.backgroundHorizontal.style.width=props.background.width+\"px\";dom.centerContainer.style.width=props.center.width+\"px\";dom.top.style.width=props.top.width+\"px\";dom.bottom.style.width=props.bottom.width+\"px\";dom.background.style.left=\"0\";dom.background.style.top=\"0\";dom.backgroundVertical.style.left=props.left.width+props.border.left+\"px\";dom.backgroundVertical.style.top=\"0\";dom.backgroundHorizontal.style.left=\"0\";dom.backgroundHorizontal.style.top=props.top.height+\"px\";dom.centerContainer.style.left=props.left.width+\"px\";dom.centerContainer.style.top=props.top.height+\"px\";dom.leftContainer.style.left=\"0\";dom.leftContainer.style.top=props.top.height+\"px\";dom.rightContainer.style.left=props.left.width+props.center.width+\"px\";dom.rightContainer.style.top=props.top.height+\"px\";dom.top.style.left=props.left.width+\"px\";dom.top.style.top=\"0\";dom.bottom.style.left=props.left.width+\"px\";dom.bottom.style.top=props.top.height+props.centerContainer.height+\"px\";dom.center.style.left=\"0\";dom.left.style.left=\"0\";dom.right.style.left=\"0\"};Core.prototype.repaint=function(){throw new Error(\"Function repaint is deprecated. Use redraw instead.\")};Core.prototype.setCurrentTime=function(time){if(!this.currentTime){throw new Error(\"Option showCurrentTime must be true\")}this.currentTime.setCurrentTime(time)};Core.prototype.getCurrentTime=function(){if(!this.currentTime){throw new Error(\"Option showCurrentTime must be true\")}return this.currentTime.getCurrentTime()};Core.prototype._toTime=function(x){return DateUtil.toTime(this,x,this.props.center.width)};Core.prototype._toGlobalTime=function(x){return DateUtil.toTime(this,x,this.props.root.width)};Core.prototype._toScreen=function(time){return DateUtil.toScreen(this,time,this.props.center.width)};Core.prototype._toGlobalScreen=function(time){return DateUtil.toScreen(this,time,this.props.root.width)};Core.prototype._initAutoResize=function(){if(this.options.autoResize==true){this._startAutoResize()}else{this._stopAutoResize()}};Core.prototype._startAutoResize=function(){var me=this;this._stopAutoResize();this._onResize=function(){if(me.options.autoResize!=true){me._stopAutoResize();return}if(me.dom.root){if(me.dom.root.offsetWidth!=me.props.lastWidth||me.dom.root.offsetHeight!=me.props.lastHeight){me.props.lastWidth=me.dom.root.offsetWidth;me.props.lastHeight=me.dom.root.offsetHeight;me.props.scrollbarWidth=util.getScrollBarWidth();me.body.emitter.emit(\"_change\")}}};util.addEventListener(window,\"resize\",this._onResize);if(me.dom.root){me.props.lastWidth=me.dom.root.offsetWidth;me.props.lastHeight=me.dom.root.offsetHeight}this.watchTimer=setInterval(this._onResize,1e3)};Core.prototype._stopAutoResize=function(){if(this.watchTimer){clearInterval(this.watchTimer);this.watchTimer=undefined}if(this._onResize){util.removeEventListener(window,\"resize\",this._onResize);this._onResize=null}};Core.prototype._onTouch=function(event){this.touch.allowDragging=true;this.touch.initialScrollTop=this.props.scrollTop};Core.prototype._onPinch=function(event){this.touch.allowDragging=false};Core.prototype._onDrag=function(event){if(!event)return;if(!this.touch.allowDragging)return;var delta=event.deltaY;var oldScrollTop=this._getScrollTop();var newScrollTop=this._setScrollTop(this.touch.initialScrollTop+delta);if(this.options.verticalScroll){this.dom.left.parentNode.scrollTop=-this.props.scrollTop;this.dom.right.parentNode.scrollTop=-this.props.scrollTop}if(newScrollTop!=oldScrollTop){this.emit(\"verticalDrag\")}};Core.prototype._setScrollTop=function(scrollTop){this.props.scrollTop=scrollTop;this._updateScrollTop();return this.props.scrollTop};Core.prototype._updateScrollTop=function(){var scrollTopMin=Math.min(this.props.centerContainer.height-this.props.center.height,0);if(scrollTopMin!=this.props.scrollTopMin){if(this.options.orientation.item!=\"top\"){this.props.scrollTop+=scrollTopMin-this.props.scrollTopMin}this.props.scrollTopMin=scrollTopMin}if(this.props.scrollTop>0)this.props.scrollTop=0;if(this.props.scrollTop<scrollTopMin)this.props.scrollTop=scrollTopMin;if(this.options.verticalScroll){this.dom.left.parentNode.scrollTop=-this.props.scrollTop;this.dom.right.parentNode.scrollTop=-this.props.scrollTop}return this.props.scrollTop};Core.prototype._getScrollTop=function(){return this.props.scrollTop};Core.prototype._createConfigurator=function(){throw new Error(\"Cannot invoke abstract method _createConfigurator\")};module.exports=Core},function(module,exports,__webpack_require__){\"use strict\";var moment=__webpack_require__(9);var DateUtil=__webpack_require__(36);var util=__webpack_require__(2);function TimeStep(start,end,minimumStep,hiddenDates,options){this.moment=moment;this.current=this.moment();this._start=this.moment();this._end=this.moment();this.autoScale=true;this.scale=\"day\";this.step=1;this.setRange(start,end,minimumStep);this.switchedDay=false;this.switchedMonth=false;this.switchedYear=false;if(Array.isArray(hiddenDates)){this.hiddenDates=hiddenDates}else if(hiddenDates!=undefined){this.hiddenDates=[hiddenDates]}else{this.hiddenDates=[]}this.format=TimeStep.FORMAT;this.options=options?options:{}}TimeStep.FORMAT={minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",week:\"w\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",week:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}};TimeStep.prototype.setMoment=function(moment){this.moment=moment;this.current=this.moment(this.current.valueOf());this._start=this.moment(this._start.valueOf());this._end=this.moment(this._end.valueOf())};TimeStep.prototype.setFormat=function(format){var defaultFormat=util.deepExtend({},TimeStep.FORMAT);this.format=util.deepExtend(defaultFormat,format)};TimeStep.prototype.setRange=function(start,end,minimumStep){if(!(start instanceof Date)||!(end instanceof Date)){throw\"No legal start or end date in method setRange\"}this._start=start!=undefined?this.moment(start.valueOf()):new Date;this._end=end!=undefined?this.moment(end.valueOf()):new Date;if(this.autoScale){this.setMinimumStep(minimumStep)}};TimeStep.prototype.start=function(){this.current=this._start.clone();this.roundToMinor()};TimeStep.prototype.roundToMinor=function(){if(this.scale==\"week\"){this.current.weekday(0)}switch(this.scale){case\"year\":this.current.year(this.step*Math.floor(this.current.year()/this.step));this.current.month(0);case\"month\":this.current.date(1);case\"week\":case\"day\":case\"weekday\":this.current.hours(0);case\"hour\":this.current.minutes(0);case\"minute\":this.current.seconds(0);case\"second\":this.current.milliseconds(0)}if(this.step!=1){switch(this.scale){case\"millisecond\":this.current.subtract(this.current.milliseconds()%this.step,\"milliseconds\");break;case\"second\":this.current.subtract(this.current.seconds()%this.step,\"seconds\");break;case\"minute\":this.current.subtract(this.current.minutes()%this.step,\"minutes\");break;case\"hour\":this.current.subtract(this.current.hours()%this.step,\"hours\");break;case\"weekday\":case\"day\":this.current.subtract((this.current.date()-1)%this.step,\"day\");break;case\"week\":this.current.subtract(this.current.week()%this.step,\"week\");break;case\"month\":this.current.subtract(this.current.month()%this.step,\"month\");break;case\"year\":this.current.subtract(this.current.year()%this.step,\"year\");break;default:break}}};TimeStep.prototype.hasNext=function(){return this.current.valueOf()<=this._end.valueOf()};TimeStep.prototype.next=function(){var prev=this.current.valueOf();switch(this.scale){case\"millisecond\":this.current.add(this.step,\"millisecond\");break;case\"second\":this.current.add(this.step,\"second\");break;case\"minute\":this.current.add(this.step,\"minute\");break;case\"hour\":this.current.add(this.step,\"hour\");if(this.current.month()<6){this.current.subtract(this.current.hours()%this.step,\"hour\")}else{if(this.current.hours()%this.step!==0){this.current.add(this.step-this.current.hours()%this.step,\"hour\")}}break;case\"weekday\":case\"day\":this.current.add(this.step,\"day\");break;case\"week\":if(this.current.weekday()!==0){this.current.weekday(0);this.current.add(this.step,\"week\")}else if(this.options.showMajorLabels===false){this.current.add(this.step,\"week\")}else{var nextWeek=this.current.clone();nextWeek.add(1,\"week\");if(nextWeek.isSame(this.current,\"month\")){this.current.add(this.step,\"week\")}else{this.current.add(this.step,\"week\");this.current.date(1)}}break;case\"month\":this.current.add(this.step,\"month\");break;case\"year\":this.current.add(this.step,\"year\");break;default:break}if(this.step!=1){switch(this.scale){case\"millisecond\":if(this.current.milliseconds()>0&&this.current.milliseconds()<this.step)this.current.milliseconds(0);break;case\"second\":if(this.current.seconds()>0&&this.current.seconds()<this.step)this.current.seconds(0);break;case\"minute\":if(this.current.minutes()>0&&this.current.minutes()<this.step)this.current.minutes(0);break;case\"hour\":if(this.current.hours()>0&&this.current.hours()<this.step)this.current.hours(0);break;case\"weekday\":case\"day\":if(this.current.date()<this.step+1)this.current.date(1);break;case\"week\":if(this.current.week()<this.step)this.current.week(1);break;case\"month\":if(this.current.month()<this.step)this.current.month(0);break;case\"year\":break;default:break}}if(this.current.valueOf()==prev){this.current=this._end.clone()}this.switchedDay=false;this.switchedMonth=false;this.switchedYear=false;DateUtil.stepOverHiddenDates(this.moment,this,prev)};TimeStep.prototype.getCurrent=function(){return this.current};TimeStep.prototype.setScale=function(params){if(params&&typeof params.scale==\"string\"){this.scale=params.scale;this.step=params.step>0?params.step:1;this.autoScale=false}};TimeStep.prototype.setAutoScale=function(enable){this.autoScale=enable};TimeStep.prototype.setMinimumStep=function(minimumStep){if(minimumStep==undefined){return}var stepYear=1e3*60*60*24*30*12;var stepMonth=1e3*60*60*24*30;var stepDay=1e3*60*60*24;var stepHour=1e3*60*60;var stepMinute=1e3*60;var stepSecond=1e3;var stepMillisecond=1;if(stepYear*1e3>minimumStep){this.scale=\"year\";this.step=1e3}if(stepYear*500>minimumStep){this.scale=\"year\";this.step=500}if(stepYear*100>minimumStep){this.scale=\"year\";this.step=100}if(stepYear*50>minimumStep){this.scale=\"year\";this.step=50}if(stepYear*10>minimumStep){this.scale=\"year\";this.step=10}if(stepYear*5>minimumStep){this.scale=\"year\";this.step=5}if(stepYear>minimumStep){this.scale=\"year\";this.step=1}if(stepMonth*3>minimumStep){this.scale=\"month\";this.step=3}if(stepMonth>minimumStep){this.scale=\"month\";this.step=1}if(stepDay*5>minimumStep){this.scale=\"day\";this.step=5}if(stepDay*2>minimumStep){this.scale=\"day\";this.step=2}if(stepDay>minimumStep){this.scale=\"day\";this.step=1}if(stepDay/2>minimumStep){this.scale=\"weekday\";this.step=1}if(stepHour*4>minimumStep){this.scale=\"hour\";this.step=4}if(stepHour>minimumStep){this.scale=\"hour\";this.step=1}if(stepMinute*15>minimumStep){this.scale=\"minute\";this.step=15}if(stepMinute*10>minimumStep){this.scale=\"minute\";this.step=10}if(stepMinute*5>minimumStep){this.scale=\"minute\";this.step=5}if(stepMinute>minimumStep){this.scale=\"minute\";this.step=1}if(stepSecond*15>minimumStep){this.scale=\"second\";this.step=15}if(stepSecond*10>minimumStep){this.scale=\"second\";this.step=10}if(stepSecond*5>minimumStep){this.scale=\"second\";this.step=5}if(stepSecond>minimumStep){this.scale=\"second\";this.step=1}if(stepMillisecond*200>minimumStep){this.scale=\"millisecond\";this.step=200}if(stepMillisecond*100>minimumStep){this.scale=\"millisecond\";this.step=100}if(stepMillisecond*50>minimumStep){this.scale=\"millisecond\";this.step=50}if(stepMillisecond*10>minimumStep){this.scale=\"millisecond\";this.step=10}if(stepMillisecond*5>minimumStep){this.scale=\"millisecond\";this.step=5}if(stepMillisecond>minimumStep){this.scale=\"millisecond\";this.step=1}};TimeStep.snap=function(date,scale,step){var clone=moment(date);if(scale==\"year\"){var year=clone.year()+Math.round(clone.month()/12);clone.year(Math.round(year/step)*step);clone.month(0);clone.date(0);clone.hours(0);clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"month\"){if(clone.date()>15){clone.date(1);clone.add(1,\"month\")}else{clone.date(1)}clone.hours(0);clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"week\"){if(clone.weekday()>2){clone.weekday(0);clone.add(1,\"week\")}else{clone.weekday(0)}clone.hours(0);clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"day\"){switch(step){case 5:case 2:clone.hours(Math.round(clone.hours()/24)*24);break;default:clone.hours(Math.round(clone.hours()/12)*12);break}clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"weekday\"){switch(step){case 5:case 2:clone.hours(Math.round(clone.hours()/12)*12);break;default:clone.hours(Math.round(clone.hours()/6)*6);break}clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"hour\"){switch(step){case 4:clone.minutes(Math.round(clone.minutes()/60)*60);break;default:clone.minutes(Math.round(clone.minutes()/30)*30);break}clone.seconds(0);clone.milliseconds(0)}else if(scale==\"minute\"){switch(step){case 15:case 10:clone.minutes(Math.round(clone.minutes()/5)*5);clone.seconds(0);break;case 5:clone.seconds(Math.round(clone.seconds()/60)*60);break;default:clone.seconds(Math.round(clone.seconds()/30)*30);break}clone.milliseconds(0)}else if(scale==\"second\"){switch(step){case 15:case 10:clone.seconds(Math.round(clone.seconds()/5)*5);clone.milliseconds(0);break;case 5:clone.milliseconds(Math.round(clone.milliseconds()/1e3)*1e3);break;default:clone.milliseconds(Math.round(clone.milliseconds()/500)*500);break}}else if(scale==\"millisecond\"){var _step=step>5?step/2:1;clone.milliseconds(Math.round(clone.milliseconds()/_step)*_step)}return clone};TimeStep.prototype.isMajor=function(){if(this.switchedYear==true){switch(this.scale){case\"year\":case\"month\":case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return true;default:return false}}else if(this.switchedMonth==true){switch(this.scale){case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return true;default:return false}}else if(this.switchedDay==true){switch(this.scale){case\"millisecond\":case\"second\":case\"minute\":case\"hour\":return true;default:return false}}var date=this.moment(this.current);switch(this.scale){case\"millisecond\":return date.milliseconds()==0;case\"second\":return date.seconds()==0;case\"minute\":return date.hours()==0&&date.minutes()==0;case\"hour\":return date.hours()==0;case\"weekday\":case\"day\":return date.date()==1;case\"week\":return date.date()==1;case\"month\":return date.month()==0;case\"year\":return false;default:return false}};TimeStep.prototype.getLabelMinor=function(date){if(date==undefined){date=this.current}if(date instanceof Date){date=this.moment(date)}if(typeof this.format.minorLabels===\"function\"){return this.format.minorLabels(date,this.scale,this.step)}var format=this.format.minorLabels[this.scale];switch(this.scale){case\"week\":if(this.isMajor()&&date.weekday()!==0){return\"\"}default:return format&&format.length>0?this.moment(date).format(format):\"\"}};TimeStep.prototype.getLabelMajor=function(date){if(date==undefined){date=this.current}if(date instanceof Date){date=this.moment(date)}if(typeof this.format.majorLabels===\"function\"){return this.format.majorLabels(date,this.scale,this.step)}var format=this.format.majorLabels[this.scale];return format&&format.length>0?this.moment(date).format(format):\"\"};TimeStep.prototype.getClassName=function(){var _moment=this.moment;var m=this.moment(this.current);var current=m.locale?m.locale(\"en\"):m.lang(\"en\");var step=this.step;var classNames=[];function even(value){return value/step%2==0?\" vis-even\":\" vis-odd\"}function today(date){if(date.isSame(new Date,\"day\")){return\" vis-today\"}if(date.isSame(_moment().add(1,\"day\"),\"day\")){return\" vis-tomorrow\"}if(date.isSame(_moment().add(-1,\"day\"),\"day\")){return\" vis-yesterday\"}return\"\"}function currentWeek(date){return date.isSame(new Date,\"week\")?\" vis-current-week\":\"\"}function currentMonth(date){return date.isSame(new Date,\"month\")?\" vis-current-month\":\"\"}function currentYear(date){return date.isSame(new Date,\"year\")?\" vis-current-year\":\"\"}switch(this.scale){case\"millisecond\":classNames.push(today(current));classNames.push(even(current.milliseconds()));break;case\"second\":classNames.push(today(current));classNames.push(even(current.seconds()));break;case\"minute\":classNames.push(today(current));classNames.push(even(current.minutes()));break;case\"hour\":classNames.push(\"vis-h\"+current.hours()+(this.step==4?\"-h\"+(current.hours()+4):\"\"));classNames.push(today(current));classNames.push(even(current.hours()));break;case\"weekday\":classNames.push(\"vis-\"+current.format(\"dddd\").toLowerCase());classNames.push(today(current));classNames.push(currentWeek(current));classNames.push(even(current.date()));break;case\"day\":classNames.push(\"vis-day\"+current.date());classNames.push(\"vis-\"+current.format(\"MMMM\").toLowerCase());classNames.push(today(current));classNames.push(currentMonth(current));classNames.push(this.step<=2?today(current):\"\");classNames.push(this.step<=2?\"vis-\"+current.format(\"dddd\").toLowerCase():\"\");classNames.push(even(current.date()-1));break;case\"week\":classNames.push(\"vis-week\"+current.format(\"w\"));classNames.push(currentWeek(current));classNames.push(even(current.week()));break;case\"month\":classNames.push(\"vis-\"+current.format(\"MMMM\").toLowerCase());classNames.push(currentMonth(current));classNames.push(even(current.month()));break;case\"year\":classNames.push(\"vis-year\"+current.year());classNames.push(currentYear(current));classNames.push(even(current.year()));break}return classNames.filter(String).join(\" \")};module.exports=TimeStep},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);var Component=__webpack_require__(16);var moment=__webpack_require__(9);var locales=__webpack_require__(98);function CurrentTime(body,options){this.body=body;this.defaultOptions={rtl:false,showCurrentTime:true,moment:moment,locales:locales,locale:\"en\"};this.options=util.extend({},this.defaultOptions);this.offset=0;this._create();this.setOptions(options)}CurrentTime.prototype=new Component;CurrentTime.prototype._create=function(){var bar=document.createElement(\"div\");bar.className=\"vis-current-time\";bar.style.position=\"absolute\";bar.style.top=\"0px\";bar.style.height=\"100%\";this.bar=bar};CurrentTime.prototype.destroy=function(){this.options.showCurrentTime=false;this.redraw();this.body=null};CurrentTime.prototype.setOptions=function(options){if(options){util.selectiveExtend([\"rtl\",\"showCurrentTime\",\"moment\",\"locale\",\"locales\"],this.options,options)}};CurrentTime.prototype.redraw=function(){if(this.options.showCurrentTime){var parent=this.body.dom.backgroundVertical;if(this.bar.parentNode!=parent){if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}parent.appendChild(this.bar);this.start()}var now=this.options.moment((new Date).valueOf()+this.offset);var x=this.body.util.toScreen(now);var locale=this.options.locales[this.options.locale];if(!locale){if(!this.warned){console.log(\"WARNING: options.locales['\"+this.options.locale+\"'] not found. See http://visjs.org/docs/timeline/#Localization\");this.warned=true}locale=this.options.locales[\"en\"]}var title=locale.current+\" \"+locale.time+\": \"+now.format(\"dddd, MMMM Do YYYY, H:mm:ss\");title=title.charAt(0).toUpperCase()+title.substring(1);if(this.options.rtl){this.bar.style.right=x+\"px\"}else{this.bar.style.left=x+\"px\"}this.bar.title=title}else{if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}this.stop()}return false};CurrentTime.prototype.start=function(){var me=this;function update(){me.stop();var scale=me.body.range.conversion(me.body.domProps.center.width).scale;var interval=1/scale/10;if(interval<30)interval=30;if(interval>1e3)interval=1e3;me.redraw();me.body.emitter.emit(\"currentTimeTick\");me.currentTimeTimer=setTimeout(update,interval)}update()};CurrentTime.prototype.stop=function(){if(this.currentTimeTimer!==undefined){clearTimeout(this.currentTimeTimer);delete this.currentTimeTimer}};CurrentTime.prototype.setCurrentTime=function(time){var t=util.convert(time,\"Date\").valueOf();var now=(new Date).valueOf();this.offset=t-now;this.redraw()};CurrentTime.prototype.getCurrentTime=function(){return new Date((new Date).valueOf()+this.offset)};module.exports=CurrentTime},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var stack=__webpack_require__(100);function Group(groupId,data,itemSet){this.groupId=groupId;this.subgroups={};this.subgroupStack={};this.subgroupStackAll=false;this.doInnerStack=false;this.subgroupIndex=0;this.subgroupOrderer=data&&data.subgroupOrder;this.itemSet=itemSet;this.isVisible=null;this.stackDirty=true;if(data&&data.nestedGroups){this.nestedGroups=data.nestedGroups;if(data.showNested==false){this.showNested=false}else{this.showNested=true}}if(data&&data.subgroupStack){if(typeof data.subgroupStack===\"boolean\"){this.doInnerStack=data.subgroupStack;this.subgroupStackAll=data.subgroupStack}else{for(var key in data.subgroupStack){this.subgroupStack[key]=data.subgroupStack[key];this.doInnerStack=this.doInnerStack||data.subgroupStack[key]}}}this.nestedInGroup=null;this.dom={};this.props={label:{width:0,height:0}};this.className=null;this.items={};this.visibleItems=[];this.itemsInRange=[];this.orderedItems={byStart:[],byEnd:[]};this.checkRangedItems=false;var me=this;this.itemSet.body.emitter.on(\"checkRangedItems\",function(){me.checkRangedItems=true});this._create();this.setData(data)}Group.prototype._create=function(){var label=document.createElement(\"div\");if(this.itemSet.options.groupEditable.order){label.className=\"vis-label draggable\"}else{label.className=\"vis-label\"}this.dom.label=label;var inner=document.createElement(\"div\");inner.className=\"vis-inner\";label.appendChild(inner);this.dom.inner=inner;var foreground=document.createElement(\"div\");foreground.className=\"vis-group\";foreground[\"timeline-group\"]=this;this.dom.foreground=foreground;this.dom.background=document.createElement(\"div\");this.dom.background.className=\"vis-group\";this.dom.axis=document.createElement(\"div\");this.dom.axis.className=\"vis-group\";this.dom.marker=document.createElement(\"div\");this.dom.marker.style.visibility=\"hidden\";this.dom.marker.style.position=\"absolute\";this.dom.marker.innerHTML=\"\";this.dom.background.appendChild(this.dom.marker)};Group.prototype.setData=function(data){var content;var templateFunction;if(this.itemSet.options&&this.itemSet.options.groupTemplate){templateFunction=this.itemSet.options.groupTemplate.bind(this);content=templateFunction(data,this.dom.inner)}else{content=data&&data.content}if(content instanceof Element){this.dom.inner.appendChild(content);while(this.dom.inner.firstChild){this.dom.inner.removeChild(this.dom.inner.firstChild)}this.dom.inner.appendChild(content)}else if(content instanceof Object){templateFunction(data,this.dom.inner)}else if(content!==undefined&&content!==null){this.dom.inner.innerHTML=content}else{this.dom.inner.innerHTML=this.groupId||\"\"}this.dom.label.title=data&&data.title||\"\";if(!this.dom.inner.firstChild){util.addClassName(this.dom.inner,\"vis-hidden\")}else{util.removeClassName(this.dom.inner,\"vis-hidden\")}if(data&&data.nestedGroups){if(!this.nestedGroups||this.nestedGroups!=data.nestedGroups){this.nestedGroups=data.nestedGroups}if(data.showNested!==undefined||this.showNested===undefined){if(data.showNested==false){this.showNested=false}else{this.showNested=true}}util.addClassName(this.dom.label,\"vis-nesting-group\");var collapsedDirClassName=this.itemSet.options.rtl?\"collapsed-rtl\":\"collapsed\";if(this.showNested){util.removeClassName(this.dom.label,collapsedDirClassName);util.addClassName(this.dom.label,\"expanded\")}else{util.removeClassName(this.dom.label,\"expanded\");util.addClassName(this.dom.label,collapsedDirClassName)}}else if(this.nestedGroups){this.nestedGroups=null;collapsedDirClassName=this.itemSet.options.rtl?\"collapsed-rtl\":\"collapsed\";util.removeClassName(this.dom.label,collapsedDirClassName);util.removeClassName(this.dom.label,\"expanded\");util.removeClassName(this.dom.label,\"vis-nesting-group\")}if(data&&data.nestedInGroup){util.addClassName(this.dom.label,\"vis-nested-group\");if(this.itemSet.options&&this.itemSet.options.rtl){this.dom.inner.style.paddingRight=\"30px\"}else{\nthis.dom.inner.style.paddingLeft=\"30px\"}}var className=data&&data.className||null;if(className!=this.className){if(this.className){util.removeClassName(this.dom.label,this.className);util.removeClassName(this.dom.foreground,this.className);util.removeClassName(this.dom.background,this.className);util.removeClassName(this.dom.axis,this.className)}util.addClassName(this.dom.label,className);util.addClassName(this.dom.foreground,className);util.addClassName(this.dom.background,className);util.addClassName(this.dom.axis,className);this.className=className}if(this.style){util.removeCssText(this.dom.label,this.style);this.style=null}if(data&&data.style){util.addCssText(this.dom.label,data.style);this.style=data.style}};Group.prototype.getLabelWidth=function(){return this.props.label.width};Group.prototype._didMarkerHeightChange=function(){var markerHeight=this.dom.marker.clientHeight;if(markerHeight!=this.lastMarkerHeight){this.lastMarkerHeight=markerHeight;var redrawQueue={};var redrawQueueLength=0;util.forEach(this.items,function(item,key){item.dirty=true;if(item.displayed){var returnQueue=true;redrawQueue[key]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[key].length}});var needRedraw=redrawQueueLength>0;if(needRedraw){for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns){fns[i]()})}}return true}};Group.prototype._calculateGroupSizeAndPosition=function(){var offsetTop=this.dom.foreground.offsetTop;var offsetLeft=this.dom.foreground.offsetLeft;var offsetWidth=this.dom.foreground.offsetWidth;this.top=offsetTop;this.right=offsetLeft;this.width=offsetWidth};Group.prototype._redrawItems=function(forceRestack,lastIsVisible,margin,range){var restack=forceRestack||this.stackDirty||this.isVisible&&!lastIsVisible;if(restack){var visibleSubgroups={};var subgroup=null;if(typeof this.itemSet.options.order===\"function\"){var me=this;var limitSize=false;var redrawQueue={};var redrawQueueLength=0;util.forEach(this.items,function(item,key){if(!item.displayed){var returnQueue=true;redrawQueue[key]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[key].length;me.visibleItems.push(item)}});var needRedraw=redrawQueueLength>0;if(needRedraw){for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns){fns[i]()})}}util.forEach(this.items,function(item){item.repositionX(limitSize)});if(this.doInnerStack&&this.itemSet.options.stackSubgroups){for(subgroup in this.subgroups){visibleSubgroups[subgroup]=this.subgroups[subgroup].items.slice().sort(function(a,b){return me.itemSet.options.order(a.data,b.data)})}stack.stackSubgroupsWithInnerStack(visibleSubgroups,margin,this.subgroups)}else{var customOrderedItems=this.orderedItems.byStart.slice().sort(function(a,b){return me.itemSet.options.order(a.data,b.data)});stack.stack(customOrderedItems,margin,true)}this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,range)}else{this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,range);if(this.itemSet.options.stack){if(this.doInnerStack&&this.itemSet.options.stackSubgroups){for(subgroup in this.subgroups){visibleSubgroups[subgroup]=this.subgroups[subgroup].items}stack.stackSubgroupsWithInnerStack(visibleSubgroups,margin,this.subgroups)}else{stack.stack(this.visibleItems,margin,true)}}else{stack.nostack(this.visibleItems,margin,this.subgroups,this.itemSet.options.stackSubgroups)}}this.stackDirty=false}};Group.prototype._didResize=function(resized,height){resized=util.updateProperty(this,\"height\",height)||resized;var labelWidth=this.dom.inner.clientWidth;var labelHeight=this.dom.inner.clientHeight;resized=util.updateProperty(this.props.label,\"width\",labelWidth)||resized;resized=util.updateProperty(this.props.label,\"height\",labelHeight)||resized;return resized};Group.prototype._applyGroupHeight=function(height){this.dom.background.style.height=height+\"px\";this.dom.foreground.style.height=height+\"px\";this.dom.label.style.height=height+\"px\"};Group.prototype._updateItemsVerticalPosition=function(margin){for(var i=0,ii=this.visibleItems.length;i<ii;i++){var item=this.visibleItems[i];item.repositionY(margin);if(!this.isVisible&&this.groupId!=\"__background__\"){if(item.displayed)item.hide()}}};Group.prototype.redraw=function(range,margin,forceRestack,returnQueue){var resized=false;var lastIsVisible=this.isVisible;var height;var queue=[function(){forceRestack=this._didMarkerHeightChange.bind(this)}.bind(this),this._updateSubGroupHeights.bind(this,margin),this._calculateGroupSizeAndPosition.bind(this),function(){this.isVisible=this._isGroupVisible.bind(this)(range,margin)}.bind(this),function(){this._redrawItems.bind(this)(forceRestack,lastIsVisible,margin,range)}.bind(this),this._updateSubgroupsSizes.bind(this),function(){height=this._calculateHeight.bind(this)(margin)}.bind(this),this._calculateGroupSizeAndPosition.bind(this),function(){resized=this._didResize.bind(this)(resized,height)}.bind(this),function(){this._applyGroupHeight.bind(this)(height)}.bind(this),function(){this._updateItemsVerticalPosition.bind(this)(margin)}.bind(this),function(){if(!this.isVisible&&this.height){resized=false}return resized}];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};Group.prototype._updateSubGroupHeights=function(margin){if((0,_keys2[\"default\"])(this.subgroups).length>0){var me=this;this.resetSubgroups();util.forEach(this.visibleItems,function(item){if(item.data.subgroup!==undefined){me.subgroups[item.data.subgroup].height=Math.max(me.subgroups[item.data.subgroup].height,item.height+margin.item.vertical);me.subgroups[item.data.subgroup].visible=true}})}};Group.prototype._isGroupVisible=function(range,margin){return this.top<=range.body.domProps.centerContainer.height-range.body.domProps.scrollTop+margin.axis&&this.top+this.height+margin.axis>=-range.body.domProps.scrollTop};Group.prototype._calculateHeight=function(margin){var height;var itemsInRange=this.visibleItems;if(itemsInRange.length>0){var min=itemsInRange[0].top;var max=itemsInRange[0].top+itemsInRange[0].height;util.forEach(itemsInRange,function(item){min=Math.min(min,item.top);max=Math.max(max,item.top+item.height)});if(min>margin.axis){var offset=min-margin.axis;max-=offset;util.forEach(itemsInRange,function(item){item.top-=offset})}height=max+margin.item.vertical/2}else{height=0}height=Math.max(height,this.props.label.height);return height};Group.prototype.show=function(){if(!this.dom.label.parentNode){this.itemSet.dom.labelSet.appendChild(this.dom.label)}if(!this.dom.foreground.parentNode){this.itemSet.dom.foreground.appendChild(this.dom.foreground)}if(!this.dom.background.parentNode){this.itemSet.dom.background.appendChild(this.dom.background)}if(!this.dom.axis.parentNode){this.itemSet.dom.axis.appendChild(this.dom.axis)}};Group.prototype.hide=function(){var label=this.dom.label;if(label.parentNode){label.parentNode.removeChild(label)}var foreground=this.dom.foreground;if(foreground.parentNode){foreground.parentNode.removeChild(foreground)}var background=this.dom.background;if(background.parentNode){background.parentNode.removeChild(background)}var axis=this.dom.axis;if(axis.parentNode){axis.parentNode.removeChild(axis)}};Group.prototype.add=function(item){this.items[item.id]=item;item.setParent(this);this.stackDirty=true;if(item.data.subgroup!==undefined){this._addToSubgroup(item);this.orderSubgroups()}if(this.visibleItems.indexOf(item)==-1){var range=this.itemSet.body.range;this._checkIfVisible(item,this.visibleItems,range)}};Group.prototype._addToSubgroup=function(item,subgroupId){subgroupId=subgroupId||item.data.subgroup;if(subgroupId!=undefined&&this.subgroups[subgroupId]===undefined){this.subgroups[subgroupId]={height:0,top:0,start:item.data.start,end:item.data.end||item.data.start,visible:false,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[subgroupId]||false};this.subgroupIndex++}if(new Date(item.data.start)<new Date(this.subgroups[subgroupId].start)){this.subgroups[subgroupId].start=item.data.start}var itemEnd=item.data.end||item.data.start;if(new Date(itemEnd)>new Date(this.subgroups[subgroupId].end)){this.subgroups[subgroupId].end=itemEnd}this.subgroups[subgroupId].items.push(item)};Group.prototype._updateSubgroupsSizes=function(){var me=this;if(me.subgroups){for(var subgroup in me.subgroups){var initialEnd=me.subgroups[subgroup].items[0].data.end||me.subgroups[subgroup].items[0].data.start;var newStart=me.subgroups[subgroup].items[0].data.start;var newEnd=initialEnd-1;me.subgroups[subgroup].items.forEach(function(item){if(new Date(item.data.start)<new Date(newStart)){newStart=item.data.start}var itemEnd=item.data.end||item.data.start;if(new Date(itemEnd)>new Date(newEnd)){newEnd=itemEnd}});me.subgroups[subgroup].start=newStart;me.subgroups[subgroup].end=new Date(newEnd-1)}}};Group.prototype.orderSubgroups=function(){if(this.subgroupOrderer!==undefined){var sortArray=[];var subgroup;if(typeof this.subgroupOrderer==\"string\"){for(subgroup in this.subgroups){sortArray.push({subgroup:subgroup,sortField:this.subgroups[subgroup].items[0].data[this.subgroupOrderer]})}sortArray.sort(function(a,b){return a.sortField-b.sortField})}else if(typeof this.subgroupOrderer==\"function\"){for(subgroup in this.subgroups){sortArray.push(this.subgroups[subgroup].items[0].data)}sortArray.sort(this.subgroupOrderer)}if(sortArray.length>0){for(var i=0;i<sortArray.length;i++){this.subgroups[sortArray[i].subgroup].index=i}}}};Group.prototype.resetSubgroups=function(){for(var subgroup in this.subgroups){if(this.subgroups.hasOwnProperty(subgroup)){this.subgroups[subgroup].visible=false;this.subgroups[subgroup].height=0}}};Group.prototype.remove=function(item){delete this.items[item.id];item.setParent(null);this.stackDirty=true;var index=this.visibleItems.indexOf(item);if(index!=-1)this.visibleItems.splice(index,1);if(item.data.subgroup!==undefined){this._removeFromSubgroup(item);this.orderSubgroups()}};Group.prototype._removeFromSubgroup=function(item,subgroupId){subgroupId=subgroupId||item.data.subgroup;if(subgroupId!=undefined){var subgroup=this.subgroups[subgroupId];if(subgroup){var itemIndex=subgroup.items.indexOf(item);if(itemIndex>=0){subgroup.items.splice(itemIndex,1);if(!subgroup.items.length){delete this.subgroups[subgroupId]}else{this._updateSubgroupsSizes()}}}}};Group.prototype.removeFromDataSet=function(item){this.itemSet.removeItem(item.id)};Group.prototype.order=function(){var array=util.toArray(this.items);var startArray=[];var endArray=[];for(var i=0;i<array.length;i++){if(array[i].data.end!==undefined){endArray.push(array[i])}startArray.push(array[i])}this.orderedItems={byStart:startArray,byEnd:endArray};stack.orderByStart(this.orderedItems.byStart);stack.orderByEnd(this.orderedItems.byEnd)};Group.prototype._updateItemsInRange=function(orderedItems,oldVisibleItems,range){var visibleItems=[];var visibleItemsLookup={};var interval=(range.end-range.start)/4;var lowerBound=range.start-interval;var upperBound=range.end+interval;var searchFunction=function searchFunction(value){if(value<lowerBound){return-1}else if(value<=upperBound){return 0}else{return 1}};if(oldVisibleItems.length>0){for(var i=0;i<oldVisibleItems.length;i++){this._checkIfVisibleWithReference(oldVisibleItems[i],visibleItems,visibleItemsLookup,range)}}var initialPosByStart=util.binarySearchCustom(orderedItems.byStart,searchFunction,\"data\",\"start\");this._traceVisible(initialPosByStart,orderedItems.byStart,visibleItems,visibleItemsLookup,function(item){return item.data.start<lowerBound||item.data.start>upperBound});if(this.checkRangedItems==true){this.checkRangedItems=false;for(i=0;i<orderedItems.byEnd.length;i++){this._checkIfVisibleWithReference(orderedItems.byEnd[i],visibleItems,visibleItemsLookup,range)}}else{var initialPosByEnd=util.binarySearchCustom(orderedItems.byEnd,searchFunction,\"data\",\"end\");this._traceVisible(initialPosByEnd,orderedItems.byEnd,visibleItems,visibleItemsLookup,function(item){return item.data.end<lowerBound||item.data.end>upperBound})}var redrawQueue={};var redrawQueueLength=0;for(i=0;i<visibleItems.length;i++){var item=visibleItems[i];if(!item.displayed){var returnQueue=true;redrawQueue[i]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[i].length}}var needRedraw=redrawQueueLength>0;if(needRedraw){for(var j=0;j<redrawQueueLength;j++){util.forEach(redrawQueue,function(fns){fns[j]()})}}for(i=0;i<visibleItems.length;i++){visibleItems[i].repositionX()}return visibleItems};Group.prototype._traceVisible=function(initialPos,items,visibleItems,visibleItemsLookup,breakCondition){if(initialPos!=-1){var i,item;for(i=initialPos;i>=0;i--){item=items[i];if(breakCondition(item)){break}else{if(visibleItemsLookup[item.id]===undefined){visibleItemsLookup[item.id]=true;visibleItems.push(item)}}}for(i=initialPos+1;i<items.length;i++){item=items[i];if(breakCondition(item)){break}else{if(visibleItemsLookup[item.id]===undefined){visibleItemsLookup[item.id]=true;visibleItems.push(item)}}}}};Group.prototype._checkIfVisible=function(item,visibleItems,range){if(item.isVisible(range)){if(!item.displayed)item.show();item.repositionX();visibleItems.push(item)}else{if(item.displayed)item.hide()}};Group.prototype._checkIfVisibleWithReference=function(item,visibleItems,visibleItemsLookup,range){if(item.isVisible(range)){if(visibleItemsLookup[item.id]===undefined){visibleItemsLookup[item.id]=true;visibleItems.push(item)}}else{if(item.displayed)item.hide()}};Group.prototype.changeSubgroup=function(item,oldSubgroup,newSubgroup){this._removeFromSubgroup(item,oldSubgroup);this._addToSubgroup(item,newSubgroup);this.orderSubgroups()};module.exports=Group},function(module,exports,__webpack_require__){\"use strict\";var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Group=__webpack_require__(68);function BackgroundGroup(groupId,data,itemSet){Group.call(this,groupId,data,itemSet);this.width=0;this.height=0;this.top=0;this.left=0}BackgroundGroup.prototype=(0,_create2[\"default\"])(Group.prototype);BackgroundGroup.prototype.redraw=function(range,margin,forceRestack){var resized=false;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,range);this.width=this.dom.background.offsetWidth;this.dom.background.style.height=\"0\";for(var i=0,ii=this.visibleItems.length;i<ii;i++){var item=this.visibleItems[i];item.repositionY(margin)}return resized};BackgroundGroup.prototype.show=function(){if(!this.dom.background.parentNode){this.itemSet.dom.background.appendChild(this.dom.background)}};module.exports=BackgroundGroup},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);function RangeItem(data,conversion,options){this.props={content:{width:0}};this.overflow=false;this.options=options;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data.id)}if(data.end==undefined){throw new Error('Property \"end\" missing in item '+data.id)}}Item.call(this,data,conversion,options)}RangeItem.prototype=new Item(null,null,null);RangeItem.prototype.baseClassName=\"vis-item vis-range\";RangeItem.prototype.isVisible=function(range){return this.data.start<range.end&&this.data.end>range.start};RangeItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.box=document.createElement(\"div\");this.dom.frame=document.createElement(\"div\");this.dom.frame.className=\"vis-item-overflow\";this.dom.box.appendChild(this.dom.frame);this.dom.visibleFrame=document.createElement(\"div\");this.dom.visibleFrame.className=\"vis-item-visible-frame\";this.dom.box.appendChild(this.dom.visibleFrame);this.dom.content=document.createElement(\"div\");this.dom.content.className=\"vis-item-content\";this.dom.frame.appendChild(this.dom.content);this.dom.box[\"timeline-item\"]=this;this.dirty=true}};RangeItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.box.parentNode){var foreground=this.parent.dom.foreground;if(!foreground){throw new Error(\"Cannot redraw item: parent has no foreground container element\")}foreground.appendChild(this.dom.box)}this.displayed=true};RangeItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.box);this._updateStyle(this.dom.box);var editable=this.editable.updateTime||this.editable.updateGroup;var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(editable?\" vis-editable\":\" vis-readonly\");this.dom.box.className=this.baseClassName+className;this.dom.content.style.maxWidth=\"none\"}};RangeItem.prototype._getDomComponentsSizes=function(){this.overflow=window.getComputedStyle(this.dom.frame).overflow!==\"hidden\";return{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}};RangeItem.prototype._updateDomComponentsSizes=function(sizes){this.props.content.width=sizes.content.width;this.height=sizes.box.height;this.dom.content.style.maxWidth=\"\";this.dirty=false};RangeItem.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box);this._repaintDeleteButton(this.dom.box);this._repaintDragCenter();this._repaintDragLeft();this._repaintDragRight()};RangeItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes.bind(this)()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};RangeItem.prototype.show=function(){if(!this.displayed){this.redraw()}};RangeItem.prototype.hide=function(){if(this.displayed){var box=this.dom.box;if(box.parentNode){box.parentNode.removeChild(box)}this.displayed=false}};RangeItem.prototype.repositionX=function(limitSize){var parentWidth=this.parent.width;var start=this.conversion.toScreen(this.data.start);var end=this.conversion.toScreen(this.data.end);var align=this.data.align===undefined?this.options.align:this.data.align;var contentStartPosition;var contentWidth;if(this.data.limitSize!==false&&(limitSize===undefined||limitSize===true)){if(start<-parentWidth){start=-parentWidth}if(end>2*parentWidth){end=2*parentWidth}}var boxWidth=Math.max(end-start+.5,1);if(this.overflow){if(this.options.rtl){this.right=start}else{this.left=start}this.width=boxWidth+this.props.content.width;contentWidth=this.props.content.width}else{if(this.options.rtl){this.right=start}else{this.left=start}this.width=boxWidth;contentWidth=Math.min(end-start,this.props.content.width)}if(this.options.rtl){this.dom.box.style.right=this.right+\"px\"}else{this.dom.box.style.left=this.left+\"px\"}this.dom.box.style.width=boxWidth+\"px\";switch(align){case\"left\":if(this.options.rtl){this.dom.content.style.right=\"0\"}else{this.dom.content.style.left=\"0\"}break;case\"right\":if(this.options.rtl){this.dom.content.style.right=Math.max(boxWidth-contentWidth,0)+\"px\"}else{this.dom.content.style.left=Math.max(boxWidth-contentWidth,0)+\"px\"}break;case\"center\":if(this.options.rtl){this.dom.content.style.right=Math.max((boxWidth-contentWidth)/2,0)+\"px\"}else{this.dom.content.style.left=Math.max((boxWidth-contentWidth)/2,0)+\"px\"}break;default:if(this.overflow){if(end>0){contentStartPosition=Math.max(-start,0)}else{contentStartPosition=-contentWidth}}else{if(start<0){contentStartPosition=-start}else{contentStartPosition=0}}if(this.options.rtl){this.dom.content.style.right=contentStartPosition+\"px\"}else{this.dom.content.style.left=contentStartPosition+\"px\";this.dom.content.style.width=\"calc(100% - \"+contentStartPosition+\"px)\"}}};RangeItem.prototype.repositionY=function(){var orientation=this.options.orientation.item;var box=this.dom.box;if(orientation==\"top\"){box.style.top=this.top+\"px\"}else{box.style.top=this.parent.height-this.top-this.height+\"px\"}};RangeItem.prototype._repaintDragLeft=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragLeft){var dragLeft=document.createElement(\"div\");dragLeft.className=\"vis-drag-left\";dragLeft.dragLeftItem=this;this.dom.box.appendChild(dragLeft);this.dom.dragLeft=dragLeft}else if(!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragLeft){if(this.dom.dragLeft.parentNode){this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft)}this.dom.dragLeft=null}};RangeItem.prototype._repaintDragRight=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragRight){var dragRight=document.createElement(\"div\");dragRight.className=\"vis-drag-right\";dragRight.dragRightItem=this;this.dom.box.appendChild(dragRight);this.dom.dragRight=dragRight}else if(!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragRight){if(this.dom.dragRight.parentNode){this.dom.dragRight.parentNode.removeChild(this.dom.dragRight)}this.dom.dragRight=null}};module.exports=RangeItem},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var ColorPicker=__webpack_require__(179)[\"default\"];var Configurator=function(){function Configurator(parentModule,defaultContainer,configureOptions){var pixelRatio=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;(0,_classCallCheck3[\"default\"])(this,Configurator);this.parent=parentModule;this.changedOptions=[];this.container=defaultContainer;this.allowCreation=false;this.options={};this.initialized=false;this.popupCounter=0;this.defaultOptions={enabled:false,filter:true,container:undefined,showButton:true};util.extend(this.options,this.defaultOptions);this.configureOptions=configureOptions;this.moduleOptions={};this.domElements=[];this.popupDiv={};this.popupLimit=5;this.popupHistory={};this.colorPicker=new ColorPicker(pixelRatio);this.wrapper=undefined}(0,_createClass3[\"default\"])(Configurator,[{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){this.popupHistory={};this._removePopup();var enabled=true;if(typeof options===\"string\"){this.options.filter=options}else if(options instanceof Array){this.options.filter=options.join()}else if((typeof options===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(options))===\"object\"){if(options.container!==undefined){this.options.container=options.container}if(options.filter!==undefined){this.options.filter=options.filter}if(options.showButton!==undefined){this.options.showButton=options.showButton}if(options.enabled!==undefined){enabled=options.enabled}}else if(typeof options===\"boolean\"){this.options.filter=true;enabled=options}else if(typeof options===\"function\"){this.options.filter=options;enabled=true}if(this.options.filter===false){enabled=false}this.options.enabled=enabled}this._clean()}},{key:\"setModuleOptions\",value:function setModuleOptions(moduleOptions){this.moduleOptions=moduleOptions;if(this.options.enabled===true){this._clean();if(this.options.container!==undefined){this.container=this.options.container}this._create()}}},{key:\"_create\",value:function _create(){var _this=this;this._clean();this.changedOptions=[];var filter=this.options.filter;var counter=0;var show=false;for(var option in this.configureOptions){if(this.configureOptions.hasOwnProperty(option)){this.allowCreation=false;show=false;if(typeof filter===\"function\"){show=filter(option,[]);show=show||this._handleObject(this.configureOptions[option],[option],true)}else if(filter===true||filter.indexOf(option)!==-1){show=true}if(show!==false){this.allowCreation=true;if(counter>0){this._makeItem([])}this._makeHeader(option);this._handleObject(this.configureOptions[option],[option])}counter++}}if(this.options.showButton===true){var generateButton=document.createElement(\"div\");generateButton.className=\"vis-configuration vis-config-button\";generateButton.innerHTML=\"generate options\";generateButton.onclick=function(){_this._printOptions()};generateButton.onmouseover=function(){generateButton.className=\"vis-configuration vis-config-button hover\"};generateButton.onmouseout=function(){generateButton.className=\"vis-configuration vis-config-button\"};this.optionsContainer=document.createElement(\"div\");this.optionsContainer.className=\"vis-configuration vis-config-option-container\";this.domElements.push(this.optionsContainer);this.domElements.push(generateButton)}this._push()}},{key:\"_push\",value:function _push(){this.wrapper=document.createElement(\"div\");this.wrapper.className=\"vis-configuration-wrapper\";this.container.appendChild(this.wrapper);for(var i=0;i<this.domElements.length;i++){this.wrapper.appendChild(this.domElements[i])}this._showPopupIfNeeded()}},{key:\"_clean\",value:function _clean(){for(var i=0;i<this.domElements.length;i++){this.wrapper.removeChild(this.domElements[i])}if(this.wrapper!==undefined){this.container.removeChild(this.wrapper);this.wrapper=undefined}this.domElements=[];this._removePopup()}},{key:\"_getValue\",value:function _getValue(path){var base=this.moduleOptions;for(var i=0;i<path.length;i++){if(base[path[i]]!==undefined){base=base[path[i]]}else{base=undefined;break}}return base}},{key:\"_makeItem\",value:function _makeItem(path){if(this.allowCreation===true){var item=document.createElement(\"div\");item.className=\"vis-configuration vis-config-item vis-config-s\"+path.length;for(var _len=arguments.length,domElements=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){domElements[_key-1]=arguments[_key]}domElements.forEach(function(element){item.appendChild(element)});this.domElements.push(item);return this.domElements.length}return 0}},{key:\"_makeHeader\",value:function _makeHeader(name){var div=document.createElement(\"div\");div.className=\"vis-configuration vis-config-header\";div.innerHTML=name;this._makeItem([],div)}},{key:\"_makeLabel\",value:function _makeLabel(name,path){var objectLabel=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var div=document.createElement(\"div\");div.className=\"vis-configuration vis-config-label vis-config-s\"+path.length;if(objectLabel===true){div.innerHTML=\"<i><b>\"+name+\":</b></i>\"}else{div.innerHTML=name+\":\"}return div}},{key:\"_makeDropdown\",value:function _makeDropdown(arr,value,path){var select=document.createElement(\"select\");select.className=\"vis-configuration vis-config-select\";var selectedValue=0;if(value!==undefined){if(arr.indexOf(value)!==-1){selectedValue=arr.indexOf(value)}}for(var i=0;i<arr.length;i++){var option=document.createElement(\"option\");option.value=arr[i];if(i===selectedValue){option.selected=\"selected\"}option.innerHTML=arr[i];select.appendChild(option)}var me=this;select.onchange=function(){me._update(this.value,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,select)}},{key:\"_makeRange\",value:function _makeRange(arr,value,path){var defaultValue=arr[0];var min=arr[1];var max=arr[2];var step=arr[3];var range=document.createElement(\"input\");range.className=\"vis-configuration vis-config-range\";try{range.type=\"range\";range.min=min;range.max=max}catch(err){}range.step=step;var popupString=\"\";var popupValue=0;if(value!==undefined){var factor=1.2;if(value<0&&value*factor<min){range.min=Math.ceil(value*factor);popupValue=range.min;popupString=\"range increased\"}else if(value/factor<min){range.min=Math.ceil(value/factor);popupValue=range.min;popupString=\"range increased\"}if(value*factor>max&&max!==1){range.max=Math.ceil(value*factor);popupValue=range.max;popupString=\"range increased\"}range.value=value}else{range.value=defaultValue}var input=document.createElement(\"input\");input.className=\"vis-configuration vis-config-rangeinput\";input.value=range.value;var me=this;range.onchange=function(){input.value=this.value;me._update(Number(this.value),path)};range.oninput=function(){input.value=this.value};var label=this._makeLabel(path[path.length-1],path);var itemIndex=this._makeItem(path,label,range,input);if(popupString!==\"\"&&this.popupHistory[itemIndex]!==popupValue){this.popupHistory[itemIndex]=popupValue;this._setupPopup(popupString,itemIndex)}}},{key:\"_setupPopup\",value:function _setupPopup(string,index){var _this2=this;if(this.initialized===true&&this.allowCreation===true&&this.popupCounter<this.popupLimit){var div=document.createElement(\"div\");div.id=\"vis-configuration-popup\";div.className=\"vis-configuration-popup\";div.innerHTML=string;div.onclick=function(){_this2._removePopup()};this.popupCounter+=1;this.popupDiv={html:div,index:index}}}},{key:\"_removePopup\",value:function _removePopup(){if(this.popupDiv.html!==undefined){this.popupDiv.html.parentNode.removeChild(this.popupDiv.html);clearTimeout(this.popupDiv.hideTimeout);clearTimeout(this.popupDiv.deleteTimeout);this.popupDiv={}}}},{key:\"_showPopupIfNeeded\",value:function _showPopupIfNeeded(){var _this3=this;if(this.popupDiv.html!==undefined){var correspondingElement=this.domElements[this.popupDiv.index];var rect=correspondingElement.getBoundingClientRect();this.popupDiv.html.style.left=rect.left+\"px\";this.popupDiv.html.style.top=rect.top-30+\"px\";document.body.appendChild(this.popupDiv.html);this.popupDiv.hideTimeout=setTimeout(function(){_this3.popupDiv.html.style.opacity=0},1500);this.popupDiv.deleteTimeout=setTimeout(function(){_this3._removePopup()},1800)}}},{key:\"_makeCheckbox\",value:function _makeCheckbox(defaultValue,value,path){var checkbox=document.createElement(\"input\");checkbox.type=\"checkbox\";checkbox.className=\"vis-configuration vis-config-checkbox\";checkbox.checked=defaultValue;if(value!==undefined){checkbox.checked=value;if(value!==defaultValue){if((typeof defaultValue===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(defaultValue))===\"object\"){if(value!==defaultValue.enabled){this.changedOptions.push({path:path,value:value})}}else{this.changedOptions.push({path:path,value:value})}}}var me=this;checkbox.onchange=function(){me._update(this.checked,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,checkbox)}},{key:\"_makeTextInput\",value:function _makeTextInput(defaultValue,value,path){var checkbox=document.createElement(\"input\");checkbox.type=\"text\";checkbox.className=\"vis-configuration vis-config-text\";checkbox.value=value;if(value!==defaultValue){this.changedOptions.push({path:path,value:value})}var me=this;checkbox.onchange=function(){me._update(this.value,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,checkbox)}},{key:\"_makeColorField\",value:function _makeColorField(arr,value,path){var _this4=this;var defaultColor=arr[1];var div=document.createElement(\"div\");value=value===undefined?defaultColor:value;if(value!==\"none\"){div.className=\"vis-configuration vis-config-colorBlock\";div.style.backgroundColor=value}else{div.className=\"vis-configuration vis-config-colorBlock none\"}value=value===undefined?defaultColor:value;div.onclick=function(){_this4._showColorPicker(value,div,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,div)}},{key:\"_showColorPicker\",value:function _showColorPicker(value,div,path){var _this5=this;div.onclick=function(){};this.colorPicker.insertTo(div);this.colorPicker.show();this.colorPicker.setColor(value);this.colorPicker.setUpdateCallback(function(color){\nvar colorString=\"rgba(\"+color.r+\",\"+color.g+\",\"+color.b+\",\"+color.a+\")\";div.style.backgroundColor=colorString;_this5._update(colorString,path)});this.colorPicker.setCloseCallback(function(){div.onclick=function(){_this5._showColorPicker(value,div,path)}})}},{key:\"_handleObject\",value:function _handleObject(obj){var path=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var checkOnly=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var show=false;var filter=this.options.filter;var visibleInSet=false;for(var subObj in obj){if(obj.hasOwnProperty(subObj)){show=true;var item=obj[subObj];var newPath=util.copyAndExtendArray(path,subObj);if(typeof filter===\"function\"){show=filter(subObj,path);if(show===false){if(!(item instanceof Array)&&typeof item!==\"string\"&&typeof item!==\"boolean\"&&item instanceof Object){this.allowCreation=false;show=this._handleObject(item,newPath,true);this.allowCreation=checkOnly===false}}}if(show!==false){visibleInSet=true;var value=this._getValue(newPath);if(item instanceof Array){this._handleArray(item,value,newPath)}else if(typeof item===\"string\"){this._makeTextInput(item,value,newPath)}else if(typeof item===\"boolean\"){this._makeCheckbox(item,value,newPath)}else if(item instanceof Object){var draw=true;if(path.indexOf(\"physics\")!==-1){if(this.moduleOptions.physics.solver!==subObj){draw=false}}if(draw===true){if(item.enabled!==undefined){var enabledPath=util.copyAndExtendArray(newPath,\"enabled\");var enabledValue=this._getValue(enabledPath);if(enabledValue===true){var label=this._makeLabel(subObj,newPath,true);this._makeItem(newPath,label);visibleInSet=this._handleObject(item,newPath)||visibleInSet}else{this._makeCheckbox(item,enabledValue,newPath)}}else{var _label=this._makeLabel(subObj,newPath,true);this._makeItem(newPath,_label);visibleInSet=this._handleObject(item,newPath)||visibleInSet}}}else{console.error(\"dont know how to handle\",item,subObj,newPath)}}}}return visibleInSet}},{key:\"_handleArray\",value:function _handleArray(arr,value,path){if(typeof arr[0]===\"string\"&&arr[0]===\"color\"){this._makeColorField(arr,value,path);if(arr[1]!==value){this.changedOptions.push({path:path,value:value})}}else if(typeof arr[0]===\"string\"){this._makeDropdown(arr,value,path);if(arr[0]!==value){this.changedOptions.push({path:path,value:value})}}else if(typeof arr[0]===\"number\"){this._makeRange(arr,value,path);if(arr[0]!==value){this.changedOptions.push({path:path,value:Number(value)})}}}},{key:\"_update\",value:function _update(value,path){var options=this._constructOptions(value,path);if(this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit){this.parent.body.emitter.emit(\"configChange\",options)}this.initialized=true;this.parent.setOptions(options)}},{key:\"_constructOptions\",value:function _constructOptions(value,path){var optionsObj=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var pointer=optionsObj;value=value===\"true\"?true:value;value=value===\"false\"?false:value;for(var i=0;i<path.length;i++){if(path[i]!==\"global\"){if(pointer[path[i]]===undefined){pointer[path[i]]={}}if(i!==path.length-1){pointer=pointer[path[i]]}else{pointer[path[i]]=value}}}return optionsObj}},{key:\"_printOptions\",value:function _printOptions(){var options=this.getOptions();this.optionsContainer.innerHTML=\"<pre>var options = \"+(0,_stringify2[\"default\"])(options,null,2)+\"</pre>\"}},{key:\"getOptions\",value:function getOptions(){var options={};for(var i=0;i<this.changedOptions.length;i++){this._constructOptions(this.changedOptions[i].value,this.changedOptions[i].path,options)}return options}}]);return Configurator}();exports[\"default\"]=Configurator},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DOMutil=__webpack_require__(14);function Points(groupId,options){}Points.draw=function(dataset,group,framework,offset){offset=offset||0;var callback=getCallback(framework,group);for(var i=0;i<dataset.length;i++){if(!callback){DOMutil.drawPoint(dataset[i].screen_x+offset,dataset[i].screen_y,getGroupTemplate(group),framework.svgElements,framework.svg,dataset[i].label)}else{var callbackResult=callback(dataset[i],group);if(callbackResult===true||(typeof callbackResult===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(callbackResult))===\"object\"){DOMutil.drawPoint(dataset[i].screen_x+offset,dataset[i].screen_y,getGroupTemplate(group,callbackResult),framework.svgElements,framework.svg,dataset[i].label)}}}};Points.drawIcon=function(group,x,y,iconWidth,iconHeight,framework){var fillHeight=iconHeight*.5;var outline=DOMutil.getSVGElement(\"rect\",framework.svgElements,framework.svg);outline.setAttributeNS(null,\"x\",x);outline.setAttributeNS(null,\"y\",y-fillHeight);outline.setAttributeNS(null,\"width\",iconWidth);outline.setAttributeNS(null,\"height\",2*fillHeight);outline.setAttributeNS(null,\"class\",\"vis-outline\");DOMutil.drawPoint(x+.5*iconWidth,y,getGroupTemplate(group),framework.svgElements,framework.svg)};function getGroupTemplate(group,callbackResult){callbackResult=typeof callbackResult===\"undefined\"?{}:callbackResult;return{style:callbackResult.style||group.options.drawPoints.style,styles:callbackResult.styles||group.options.drawPoints.styles,size:callbackResult.size||group.options.drawPoints.size,className:callbackResult.className||group.className}}function getCallback(framework,group){var callback=undefined;if(framework.options&&framework.options.drawPoints&&framework.options.drawPoints.onRender&&typeof framework.options.drawPoints.onRender==\"function\"){callback=framework.options.drawPoints.onRender}if(group.group.options&&group.group.options.drawPoints&&group.group.options.drawPoints.onRender&&typeof group.group.options.drawPoints.onRender==\"function\"){callback=group.group.options.drawPoints.onRender}return callback}module.exports=Points},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CircleImageBase=function(_NodeBase){(0,_inherits3[\"default\"])(CircleImageBase,_NodeBase);function CircleImageBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,CircleImageBase);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(CircleImageBase.__proto__||(0,_getPrototypeOf2[\"default\"])(CircleImageBase)).call(this,options,body,labelModule));_this.labelOffset=0;_this.selected=false;return _this}(0,_createClass3[\"default\"])(CircleImageBase,[{key:\"setOptions\",value:function setOptions(options,imageObj,imageObjAlt){this.options=options;if(!(imageObj===undefined&&imageObjAlt===undefined)){this.setImages(imageObj,imageObjAlt)}}},{key:\"setImages\",value:function setImages(imageObj,imageObjAlt){if(imageObjAlt&&this.selected){this.imageObj=imageObjAlt;this.imageObjAlt=imageObj}else{this.imageObj=imageObj;this.imageObjAlt=imageObjAlt}}},{key:\"switchImages\",value:function switchImages(selected){var selection_changed=selected&&!this.selected||!selected&&this.selected;this.selected=selected;if(this.imageObjAlt!==undefined&&selection_changed){var imageTmp=this.imageObj;this.imageObj=this.imageObjAlt;this.imageObjAlt=imageTmp}}},{key:\"_resizeImage\",value:function _resizeImage(){var width,height;if(this.options.shapeProperties.useImageSize===false){var ratio_width=1;var ratio_height=1;if(this.imageObj.width&&this.imageObj.height){if(this.imageObj.width>this.imageObj.height){ratio_width=this.imageObj.width/this.imageObj.height}else{ratio_height=this.imageObj.height/this.imageObj.width}}width=this.options.size*2*ratio_width;height=this.options.size*2*ratio_height}else{width=this.imageObj.width;height=this.imageObj.height}this.width=width;this.height=height;this.radius=.5*this.width}},{key:\"_drawRawCircle\",value:function _drawRawCircle(ctx,x,y,values){this.initContextForDraw(ctx,values);ctx.circle(x,y,values.size);this.performFill(ctx,values)}},{key:\"_drawImageAtPosition\",value:function _drawImageAtPosition(ctx,values){if(this.imageObj.width!=0){ctx.globalAlpha=1;this.enableShadow(ctx,values);var factor=1;if(this.options.shapeProperties.interpolation===true){factor=this.imageObj.width/this.width/this.body.view.scale}this.imageObj.drawImageAtPosition(ctx,factor,this.left,this.top,this.width,this.height);this.disableShadow(ctx,values)}}},{key:\"_drawImageLabel\",value:function _drawImageLabel(ctx,x,y,selected,hover){var yLabel;var offset=0;if(this.height!==undefined){offset=this.height*.5;var labelDimensions=this.labelModule.getTextSize(ctx,selected,hover);if(labelDimensions.lineCount>=1){offset+=labelDimensions.height/2}}yLabel=y+offset;if(this.options.label){this.labelOffset=offset}this.labelModule.draw(ctx,x,yLabel,selected,hover,\"hanging\")}}]);return CircleImageBase}(_NodeBase3[\"default\"]);exports[\"default\"]=CircleImageBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Label=__webpack_require__(117)[\"default\"];var ComponentUtil=__webpack_require__(48)[\"default\"];var CubicBezierEdge=__webpack_require__(215)[\"default\"];var BezierEdgeDynamic=__webpack_require__(217)[\"default\"];var BezierEdgeStatic=__webpack_require__(218)[\"default\"];var StraightEdge=__webpack_require__(219)[\"default\"];var Edge=function(){function Edge(options,body,globalOptions,defaultOptions){(0,_classCallCheck3[\"default\"])(this,Edge);if(body===undefined){throw new Error(\"No body provided\")}this.options=util.bridgeObject(globalOptions);this.globalOptions=globalOptions;this.defaultOptions=defaultOptions;this.body=body;this.id=undefined;this.fromId=undefined;this.toId=undefined;this.selected=false;this.hover=false;this.labelDirty=true;this.baseWidth=this.options.width;this.baseFontSize=this.options.font.size;this.from=undefined;this.to=undefined;this.edgeType=undefined;this.connected=false;this.labelModule=new Label(this.body,this.options,true);this.setOptions(options)}(0,_createClass3[\"default\"])(Edge,[{key:\"setOptions\",value:function setOptions(options){if(!options){return}Edge.parseOptions(this.options,options,true,this.globalOptions);if(options.id!==undefined){this.id=options.id}if(options.from!==undefined){this.fromId=options.from}if(options.to!==undefined){this.toId=options.to}if(options.title!==undefined){this.title=options.title}if(options.value!==undefined){options.value=parseFloat(options.value)}var pile=[options,this.options,this.defaultOptions];this.chooser=ComponentUtil.choosify(\"edge\",pile);this.updateLabelModule(options);var dataChanged=this.updateEdgeType();this._setInteractionWidths();this.connect();if(options.hidden!==undefined||options.physics!==undefined){dataChanged=true}return dataChanged}},{key:\"getFormattingValues\",value:function getFormattingValues(){var toArrow=this.options.arrows.to===true||this.options.arrows.to.enabled===true;var fromArrow=this.options.arrows.from===true||this.options.arrows.from.enabled===true;var middleArrow=this.options.arrows.middle===true||this.options.arrows.middle.enabled===true;var inheritsColor=this.options.color.inherit;var values={toArrow:toArrow,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,middleArrow:middleArrow,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,fromArrow:fromArrow,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,arrowStrikethrough:this.options.arrowStrikethrough,color:inheritsColor?undefined:this.options.color.color,inheritsColor:inheritsColor,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width};if(this.selected||this.hover){if(this.chooser===true){if(this.selected){var selectedWidth=this.options.selectionWidth;if(typeof selectedWidth===\"function\"){values.width=selectedWidth(values.width)}else if(typeof selectedWidth===\"number\"){values.width+=selectedWidth}values.width=Math.max(values.width,.3/this.body.view.scale);values.color=this.options.color.highlight;values.shadow=this.options.shadow.enabled}else if(this.hover){var hoverWidth=this.options.hoverWidth;if(typeof hoverWidth===\"function\"){values.width=hoverWidth(values.width)}else if(typeof hoverWidth===\"number\"){values.width+=hoverWidth}values.width=Math.max(values.width,.3/this.body.view.scale);values.color=this.options.color.hover;values.shadow=this.options.shadow.enabled}}else if(typeof this.chooser===\"function\"){this.chooser(values,this.options.id,this.selected,this.hover);if(values.color!==undefined){values.inheritsColor=false}if(values.shadow===false){if(values.shadowColor!==this.options.shadow.color||values.shadowSize!==this.options.shadow.size||values.shadowX!==this.options.shadow.x||values.shadowY!==this.options.shadow.y){values.shadow=true}}}}else{values.shadow=this.options.shadow.enabled;values.width=Math.max(values.width,.3/this.body.view.scale)}return values}},{key:\"updateLabelModule\",value:function updateLabelModule(options){var pile=[options,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,pile);if(this.labelModule.baseSize!==undefined){this.baseFontSize=this.labelModule.baseSize}}},{key:\"updateEdgeType\",value:function updateEdgeType(){var smooth=this.options.smooth;var dataChanged=false;var changeInType=true;if(this.edgeType!==undefined){if(this.edgeType instanceof BezierEdgeDynamic&&smooth.enabled===true&&smooth.type===\"dynamic\"||this.edgeType instanceof CubicBezierEdge&&smooth.enabled===true&&smooth.type===\"cubicBezier\"||this.edgeType instanceof BezierEdgeStatic&&smooth.enabled===true&&smooth.type!==\"dynamic\"&&smooth.type!==\"cubicBezier\"||this.edgeType instanceof StraightEdge&&smooth.type.enabled===false){changeInType=false}if(changeInType===true){dataChanged=this.cleanup()}}if(changeInType===true){if(smooth.enabled===true){if(smooth.type===\"dynamic\"){dataChanged=true;this.edgeType=new BezierEdgeDynamic(this.options,this.body,this.labelModule)}else if(smooth.type===\"cubicBezier\"){this.edgeType=new CubicBezierEdge(this.options,this.body,this.labelModule)}else{this.edgeType=new BezierEdgeStatic(this.options,this.body,this.labelModule)}}else{this.edgeType=new StraightEdge(this.options,this.body,this.labelModule)}}else{this.edgeType.setOptions(this.options)}return dataChanged}},{key:\"connect\",value:function connect(){this.disconnect();this.from=this.body.nodes[this.fromId]||undefined;this.to=this.body.nodes[this.toId]||undefined;this.connected=this.from!==undefined&&this.to!==undefined;if(this.connected===true){this.from.attachEdge(this);this.to.attachEdge(this)}else{if(this.from){this.from.detachEdge(this)}if(this.to){this.to.detachEdge(this)}}this.edgeType.connect()}},{key:\"disconnect\",value:function disconnect(){if(this.from){this.from.detachEdge(this);this.from=undefined}if(this.to){this.to.detachEdge(this);this.to=undefined}this.connected=false}},{key:\"getTitle\",value:function getTitle(){return this.title}},{key:\"isSelected\",value:function isSelected(){return this.selected}},{key:\"getValue\",value:function getValue(){return this.options.value}},{key:\"setValueRange\",value:function setValueRange(min,max,total){if(this.options.value!==undefined){var scale=this.options.scaling.customScalingFunction(min,max,total,this.options.value);var widthDiff=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===true){var fontDiff=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+scale*fontDiff}this.options.width=this.options.scaling.min+scale*widthDiff}else{this.options.width=this.baseWidth;this.options.font.size=this.baseFontSize}this._setInteractionWidths();this.updateLabelModule()}},{key:\"_setInteractionWidths\",value:function _setInteractionWidths(){if(typeof this.options.hoverWidth===\"function\"){this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width)}else{this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width}if(typeof this.options.selectionWidth===\"function\"){this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width)}else{this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}}},{key:\"draw\",value:function draw(ctx){var values=this.getFormattingValues();if(values.hidden){return}var viaNode=this.edgeType.getViaNode();var arrowData={};this.edgeType.fromPoint=this.edgeType.from;this.edgeType.toPoint=this.edgeType.to;if(values.fromArrow){arrowData.from=this.edgeType.getArrowData(ctx,\"from\",viaNode,this.selected,this.hover,values);if(values.arrowStrikethrough===false)this.edgeType.fromPoint=arrowData.from.core}if(values.toArrow){arrowData.to=this.edgeType.getArrowData(ctx,\"to\",viaNode,this.selected,this.hover,values);if(values.arrowStrikethrough===false)this.edgeType.toPoint=arrowData.to.core}if(values.middleArrow){arrowData.middle=this.edgeType.getArrowData(ctx,\"middle\",viaNode,this.selected,this.hover,values)}this.edgeType.drawLine(ctx,values,this.selected,this.hover,viaNode);this.drawArrows(ctx,arrowData,values);this.drawLabel(ctx,viaNode)}},{key:\"drawArrows\",value:function drawArrows(ctx,arrowData,values){if(values.fromArrow){this.edgeType.drawArrowHead(ctx,values,this.selected,this.hover,arrowData.from)}if(values.middleArrow){this.edgeType.drawArrowHead(ctx,values,this.selected,this.hover,arrowData.middle)}if(values.toArrow){this.edgeType.drawArrowHead(ctx,values,this.selected,this.hover,arrowData.to)}}},{key:\"drawLabel\",value:function drawLabel(ctx,viaNode){if(this.options.label!==undefined){var node1=this.from;var node2=this.to;if(this.labelModule.differentState(this.selected,this.hover)){this.labelModule.getTextSize(ctx,this.selected,this.hover)}if(node1.id!=node2.id){this.labelModule.pointToSelf=false;var point=this.edgeType.getPoint(.5,viaNode);ctx.save();var rotationPoint=this._getRotation(ctx);if(rotationPoint.angle!=0){ctx.translate(rotationPoint.x,rotationPoint.y);ctx.rotate(rotationPoint.angle)}this.labelModule.draw(ctx,point.x,point.y,this.selected,this.hover);ctx.restore()}else{this.labelModule.pointToSelf=true;var x,y;var radius=this.options.selfReferenceSize;if(node1.shape.width>node1.shape.height){x=node1.x+node1.shape.width*.5;y=node1.y-radius}else{x=node1.x+radius;y=node1.y-node1.shape.height*.5}point=this._pointOnCircle(x,y,radius,.125);this.labelModule.draw(ctx,point.x,point.y,this.selected,this.hover)}}}},{key:\"getItemsOnPoint\",value:function getItemsOnPoint(point){var ret=[];if(this.labelModule.visible()){var rotationPoint=this._getRotation();if(ComponentUtil.pointInRect(this.labelModule.getSize(),point,rotationPoint)){ret.push({edgeId:this.id,labelId:0})}}var obj={left:point.x,top:point.y};if(this.isOverlappingWith(obj)){ret.push({edgeId:this.id})}return ret}},{key:\"isOverlappingWith\",value:function isOverlappingWith(obj){if(this.connected){var distMax=10;var xFrom=this.from.x;var yFrom=this.from.y;var xTo=this.to.x;var yTo=this.to.y;var xObj=obj.left;var yObj=obj.top;var dist=this.edgeType.getDistanceToEdge(xFrom,yFrom,xTo,yTo,xObj,yObj);return dist<distMax}else{return false}}},{key:\"_getRotation\",value:function _getRotation(ctx){var viaNode=this.edgeType.getViaNode();var point=this.edgeType.getPoint(.5,viaNode);if(ctx!==undefined){this.labelModule.calculateLabelSize(ctx,this.selected,this.hover,point.x,point.y)}var ret={x:point.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()){return ret}if(this.options.font.align===\"horizontal\"){return ret}var dy=this.from.y-this.to.y;var dx=this.from.x-this.to.x;var angle=Math.atan2(dy,dx);if(angle<-1&&dx<0||angle>0&&dx<0){angle+=Math.PI}ret.angle=angle;return ret}},{key:\"_pointOnCircle\",value:function _pointOnCircle(x,y,radius,percentage){var angle=percentage*2*Math.PI;return{x:x+radius*Math.cos(angle),y:y-radius*Math.sin(angle)}}},{key:\"select\",value:function select(){this.selected=true}},{key:\"unselect\",value:function unselect(){this.selected=false}},{key:\"cleanup\",value:function cleanup(){return this.edgeType.cleanup()}},{key:\"remove\",value:function remove(){this.cleanup();this.disconnect();delete this.body.edges[this.id]}},{key:\"endPointsValid\",value:function endPointsValid(){return this.body.nodes[this.fromId]!==undefined&&this.body.nodes[this.toId]!==undefined}}],[{key:\"parseOptions\",value:function parseOptions(parentOptions,newOptions){var allowDeletion=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var globalOptions=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var copyFromGlobals=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var fields=[\"arrowStrikethrough\",\"id\",\"from\",\"hidden\",\"hoverWidth\",\"labelHighlightBold\",\"length\",\"line\",\"opacity\",\"physics\",\"scaling\",\"selectionWidth\",\"selfReferenceSize\",\"to\",\"title\",\"value\",\"width\",\"font\",\"chosen\",\"widthConstraint\"];util.selectiveDeepExtend(fields,parentOptions,newOptions,allowDeletion);if(ComponentUtil.isValidLabel(newOptions.label)){parentOptions.label=newOptions.label}else{parentOptions.label=undefined}util.mergeOptions(parentOptions,newOptions,\"smooth\",globalOptions);util.mergeOptions(parentOptions,newOptions,\"shadow\",globalOptions);if(newOptions.dashes!==undefined&&newOptions.dashes!==null){parentOptions.dashes=newOptions.dashes}else if(allowDeletion===true&&newOptions.dashes===null){parentOptions.dashes=(0,_create2[\"default\"])(globalOptions.dashes)}if(newOptions.scaling!==undefined&&newOptions.scaling!==null){if(newOptions.scaling.min!==undefined){parentOptions.scaling.min=newOptions.scaling.min}if(newOptions.scaling.max!==undefined){parentOptions.scaling.max=newOptions.scaling.max}util.mergeOptions(parentOptions.scaling,newOptions.scaling,\"label\",globalOptions.scaling)}else if(allowDeletion===true&&newOptions.scaling===null){parentOptions.scaling=(0,_create2[\"default\"])(globalOptions.scaling)}if(newOptions.arrows!==undefined&&newOptions.arrows!==null){if(typeof newOptions.arrows===\"string\"){var arrows=newOptions.arrows.toLowerCase();parentOptions.arrows.to.enabled=arrows.indexOf(\"to\")!=-1;parentOptions.arrows.middle.enabled=arrows.indexOf(\"middle\")!=-1;parentOptions.arrows.from.enabled=arrows.indexOf(\"from\")!=-1}else if((0,_typeof3[\"default\"])(newOptions.arrows)===\"object\"){util.mergeOptions(parentOptions.arrows,newOptions.arrows,\"to\",globalOptions.arrows);util.mergeOptions(parentOptions.arrows,newOptions.arrows,\"middle\",globalOptions.arrows);util.mergeOptions(parentOptions.arrows,newOptions.arrows,\"from\",globalOptions.arrows)}else{throw new Error(\"The arrow newOptions can only be an object or a string. Refer to the documentation. You used:\"+(0,_stringify2[\"default\"])(newOptions.arrows))}}else if(allowDeletion===true&&newOptions.arrows===null){parentOptions.arrows=(0,_create2[\"default\"])(globalOptions.arrows)}if(newOptions.color!==undefined&&newOptions.color!==null){var fromColor=newOptions.color;var toColor=parentOptions.color;if(copyFromGlobals){util.deepExtend(toColor,globalOptions.color,false,allowDeletion)}else{for(var i in toColor){if(toColor.hasOwnProperty(i)){delete toColor[i]}}}if(util.isString(toColor)){toColor.color=toColor;toColor.highlight=toColor;toColor.hover=toColor;toColor.inherit=false;if(fromColor.opacity===undefined){toColor.opacity=1}}else{var colorsDefined=false;if(fromColor.color!==undefined){toColor.color=fromColor.color;colorsDefined=true}if(fromColor.highlight!==undefined){toColor.highlight=fromColor.highlight;colorsDefined=true}if(fromColor.hover!==undefined){toColor.hover=fromColor.hover;colorsDefined=true}if(fromColor.inherit!==undefined){toColor.inherit=fromColor.inherit}if(fromColor.opacity!==undefined){toColor.opacity=Math.min(1,Math.max(0,fromColor.opacity))}if(colorsDefined===true){toColor.inherit=false}else{if(toColor.inherit===undefined){toColor.inherit=\"from\"}}}}else if(allowDeletion===true&&newOptions.color===null){parentOptions.color=util.bridgeObject(globalOptions.color)}if(allowDeletion===true&&newOptions.font===null){parentOptions.font=util.bridgeObject(globalOptions.font)}}}]);return Edge}();exports[\"default\"]=Edge},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _EdgeBase2=__webpack_require__(118);var _EdgeBase3=_interopRequireDefault(_EdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BezierEdgeBase=function(_EdgeBase){(0,_inherits3[\"default\"])(BezierEdgeBase,_EdgeBase);function BezierEdgeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,BezierEdgeBase);return(0,_possibleConstructorReturn3[\"default\"])(this,(BezierEdgeBase.__proto__||(0,_getPrototypeOf2[\"default\"])(BezierEdgeBase)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(BezierEdgeBase,[{key:\"_findBorderPositionBezier\",value:function _findBorderPositionBezier(nearNode,ctx){var viaNode=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this._getViaCoordinates();var maxIterations=10;var iteration=0;var low=0;var high=1;var pos,angle,distanceToBorder,distanceToPoint,difference;var threshold=.2;var node=this.to;var from=false;if(nearNode.id===this.from.id){node=this.from;from=true}while(low<=high&&iteration<maxIterations){var middle=(low+high)*.5;pos=this.getPoint(middle,viaNode);angle=Math.atan2(node.y-pos.y,node.x-pos.x);distanceToBorder=node.distanceToBorder(ctx,angle);distanceToPoint=Math.sqrt(Math.pow(pos.x-node.x,2)+Math.pow(pos.y-node.y,2));difference=distanceToBorder-distanceToPoint;if(Math.abs(difference)<threshold){break}else if(difference<0){if(from===false){low=middle}else{high=middle}}else{if(from===false){high=middle}else{low=middle}}iteration++}pos.t=middle;return pos}},{key:\"_getDistanceToBezierEdge\",value:function _getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,via){var minDistance=1e9;var distance=void 0;var i=void 0,t=void 0,x=void 0,y=void 0;var lastX=x1;var lastY=y1;for(i=1;i<10;i++){t=.1*i;x=Math.pow(1-t,2)*x1+2*t*(1-t)*via.x+Math.pow(t,2)*x2;y=Math.pow(1-t,2)*y1+2*t*(1-t)*via.y+Math.pow(t,2)*y2;if(i>0){distance=this._getDistanceToLine(lastX,lastY,x,y,x3,y3);minDistance=distance<minDistance?distance:minDistance}lastX=x;lastY=y}return minDistance}},{key:\"_bezierCurve\",value:function _bezierCurve(ctx,values,viaNode1,viaNode2){var hasNode1=viaNode1!==undefined&&viaNode1.x!==undefined;var hasNode2=viaNode2!==undefined&&viaNode2.x!==undefined;ctx.beginPath();ctx.moveTo(this.fromPoint.x,this.fromPoint.y);if(hasNode1&&hasNode2){ctx.bezierCurveTo(viaNode1.x,viaNode1.y,viaNode2.x,viaNode2.y,this.toPoint.x,this.toPoint.y)}else if(hasNode1){ctx.quadraticCurveTo(viaNode1.x,viaNode1.y,this.toPoint.x,this.toPoint.y)}else{ctx.lineTo(this.toPoint.x,this.toPoint.y)}this.enableShadow(ctx,values);ctx.stroke();this.disableShadow(ctx,values)}},{key:\"getViaNode\",value:function getViaNode(){return this._getViaCoordinates()}}]);return BezierEdgeBase}(_EdgeBase3[\"default\"]);exports[\"default\"]=BezierEdgeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=function(){function NetworkUtil(){(0,_classCallCheck3[\"default\"])(this,NetworkUtil)}(0,_createClass3[\"default\"])(NetworkUtil,null,[{key:\"getRange\",value:function getRange(allNodes){var specificNodes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var minY=1e9,maxY=-1e9,minX=1e9,maxX=-1e9,node;if(specificNodes.length>0){for(var i=0;i<specificNodes.length;i++){node=allNodes[specificNodes[i]];if(minX>node.shape.boundingBox.left){minX=node.shape.boundingBox.left}if(maxX<node.shape.boundingBox.right){maxX=node.shape.boundingBox.right}if(minY>node.shape.boundingBox.top){minY=node.shape.boundingBox.top}if(maxY<node.shape.boundingBox.bottom){maxY=node.shape.boundingBox.bottom}}}if(minX===1e9&&maxX===-1e9&&minY===1e9&&maxY===-1e9){minY=0,maxY=0,minX=0,maxX=0}return{minX:minX,maxX:maxX,minY:minY,maxY:maxY}}},{key:\"getRangeCore\",value:function getRangeCore(allNodes){var specificNodes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var minY=1e9,maxY=-1e9,minX=1e9,maxX=-1e9,node;if(specificNodes.length>0){for(var i=0;i<specificNodes.length;i++){node=allNodes[specificNodes[i]];if(minX>node.x){minX=node.x}if(maxX<node.x){maxX=node.x}if(minY>node.y){minY=node.y}if(maxY<node.y){maxY=node.y}}}if(minX===1e9&&maxX===-1e9&&minY===1e9&&maxY===-1e9){minY=0,maxY=0,minX=0,maxX=0}return{minX:minX,maxX:maxX,minY:minY,maxY:maxY}}},{key:\"findCenter\",value:function findCenter(range){return{x:.5*(range.maxX+range.minX),y:.5*(range.maxY+range.minY)}}},{key:\"cloneOptions\",value:function cloneOptions(item,type){var clonedOptions={};if(type===undefined||type===\"node\"){util.deepExtend(clonedOptions,item.options,true);clonedOptions.x=item.x;clonedOptions.y=item.y;clonedOptions.amountOfConnections=item.edges.length}else{util.deepExtend(clonedOptions,item.options,true)}return clonedOptions}}]);return NetworkUtil}();exports[\"default\"]=NetworkUtil},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(124),__esModule:true}},function(module,exports,__webpack_require__){var cof=__webpack_require__(50);module.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(it){return cof(it)==\"String\"?it.split(\"\"):Object(it)}},function(module,exports,__webpack_require__){\"use strict\";var LIBRARY=__webpack_require__(52);var $export=__webpack_require__(17);var redefine=__webpack_require__(83);var hide=__webpack_require__(26);var has=__webpack_require__(22);var Iterators=__webpack_require__(31);var $iterCreate=__webpack_require__(129);var setToStringTag=__webpack_require__(59);var getPrototypeOf=__webpack_require__(85);var ITERATOR=__webpack_require__(13)(\"iterator\");var BUGGY=!([].keys&&\"next\"in[].keys())\n;var FF_ITERATOR=\"@@iterator\";var KEYS=\"keys\";var VALUES=\"values\";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+\" Iterator\";var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod(\"entries\"):undefined;var $anyNative=NAME==\"Array\"?proto.entries||$native:$native;var methods,key,IteratorPrototype;if($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){setToStringTag(IteratorPrototype,TAG,true);if(!LIBRARY&&!has(IteratorPrototype,ITERATOR))hide(IteratorPrototype,ITERATOR,returnThis)}}if(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this)}}if((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default)}Iterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key])}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods)}return methods}},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(128);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(21)&&!__webpack_require__(28)(function(){return Object.defineProperty(__webpack_require__(82)(\"div\"),\"a\",{get:function(){return 7}}).a!=7})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);var document=__webpack_require__(18).document;var is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(26)},function(module,exports,__webpack_require__){var has=__webpack_require__(22);var toIObject=__webpack_require__(25);var arrayIndexOf=__webpack_require__(131)(false);var IE_PROTO=__webpack_require__(56)(\"IE_PROTO\");module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key)}return result}},function(module,exports,__webpack_require__){var has=__webpack_require__(22);var toObject=__webpack_require__(41);var IE_PROTO=__webpack_require__(56)(\"IE_PROTO\");var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor==\"function\"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var cof=__webpack_require__(50);var TAG=__webpack_require__(13)(\"toStringTag\");var ARG=cof(function(){return arguments}())==\"Arguments\";var tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return it===undefined?\"Undefined\":it===null?\"Null\":typeof(T=tryGet(O=Object(it),TAG))==\"string\"?T:ARG?cof(O):(B=cof(O))==\"Object\"&&typeof O.callee==\"function\"?\"Arguments\":B}},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);var core=__webpack_require__(7);var fails=__webpack_require__(28);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY];var exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1)}),\"Object\",exp)}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(84);var hiddenKeys=__webpack_require__(58).concat(\"length\",\"prototype\");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys)}},function(module,exports,__webpack_require__){var pIE=__webpack_require__(42);var createDesc=__webpack_require__(39);var toIObject=__webpack_require__(25);var toPrimitive=__webpack_require__(53);var has=__webpack_require__(22);var IE8_DOM_DEFINE=__webpack_require__(81);var gOPD=Object.getOwnPropertyDescriptor;exports.f=__webpack_require__(21)?gOPD:function getOwnPropertyDescriptor(O,P){O=toIObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return gOPD(O,P)}catch(e){}if(has(O,P))return createDesc(!pIE.f.call(O,P),O[P])}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(162),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";function Point2d(x,y){this.x=x!==undefined?x:0;this.y=y!==undefined?y:0}module.exports=Point2d},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);function Slider(container,options){if(container===undefined){throw new Error(\"No container element defined\")}this.container=container;this.visible=options&&options.visible!=undefined?options.visible:true;if(this.visible){this.frame=document.createElement(\"DIV\");this.frame.style.width=\"100%\";this.frame.style.position=\"relative\";this.container.appendChild(this.frame);this.frame.prev=document.createElement(\"INPUT\");this.frame.prev.type=\"BUTTON\";this.frame.prev.value=\"Prev\";this.frame.appendChild(this.frame.prev);this.frame.play=document.createElement(\"INPUT\");this.frame.play.type=\"BUTTON\";this.frame.play.value=\"Play\";this.frame.appendChild(this.frame.play);this.frame.next=document.createElement(\"INPUT\");this.frame.next.type=\"BUTTON\";this.frame.next.value=\"Next\";this.frame.appendChild(this.frame.next);this.frame.bar=document.createElement(\"INPUT\");this.frame.bar.type=\"BUTTON\";this.frame.bar.style.position=\"absolute\";this.frame.bar.style.border=\"1px solid red\";this.frame.bar.style.width=\"100px\";this.frame.bar.style.height=\"6px\";this.frame.bar.style.borderRadius=\"2px\";this.frame.bar.style.MozBorderRadius=\"2px\";this.frame.bar.style.border=\"1px solid #7F7F7F\";this.frame.bar.style.backgroundColor=\"#E5E5E5\";this.frame.appendChild(this.frame.bar);this.frame.slide=document.createElement(\"INPUT\");this.frame.slide.type=\"BUTTON\";this.frame.slide.style.margin=\"0px\";this.frame.slide.value=\" \";this.frame.slide.style.position=\"relative\";this.frame.slide.style.left=\"-100px\";this.frame.appendChild(this.frame.slide);var me=this;this.frame.slide.onmousedown=function(event){me._onMouseDown(event)};this.frame.prev.onclick=function(event){me.prev(event)};this.frame.play.onclick=function(event){me.togglePlay(event)};this.frame.next.onclick=function(event){me.next(event)}}this.onChangeCallback=undefined;this.values=[];this.index=undefined;this.playTimeout=undefined;this.playInterval=1e3;this.playLoop=true}Slider.prototype.prev=function(){var index=this.getIndex();if(index>0){index--;this.setIndex(index)}};Slider.prototype.next=function(){var index=this.getIndex();if(index<this.values.length-1){index++;this.setIndex(index)}};Slider.prototype.playNext=function(){var start=new Date;var index=this.getIndex();if(index<this.values.length-1){index++;this.setIndex(index)}else if(this.playLoop){index=0;this.setIndex(index)}var end=new Date;var diff=end-start;var interval=Math.max(this.playInterval-diff,0);var me=this;this.playTimeout=setTimeout(function(){me.playNext()},interval)};Slider.prototype.togglePlay=function(){if(this.playTimeout===undefined){this.play()}else{this.stop()}};Slider.prototype.play=function(){if(this.playTimeout)return;this.playNext();if(this.frame){this.frame.play.value=\"Stop\"}};Slider.prototype.stop=function(){clearInterval(this.playTimeout);this.playTimeout=undefined;if(this.frame){this.frame.play.value=\"Play\"}};Slider.prototype.setOnChangeCallback=function(callback){this.onChangeCallback=callback};Slider.prototype.setPlayInterval=function(interval){this.playInterval=interval};Slider.prototype.getPlayInterval=function(){return this.playInterval};Slider.prototype.setPlayLoop=function(doLoop){this.playLoop=doLoop};Slider.prototype.onChange=function(){if(this.onChangeCallback!==undefined){this.onChangeCallback()}};Slider.prototype.redraw=function(){if(this.frame){this.frame.bar.style.top=this.frame.clientHeight/2-this.frame.bar.offsetHeight/2+\"px\";this.frame.bar.style.width=this.frame.clientWidth-this.frame.prev.clientWidth-this.frame.play.clientWidth-this.frame.next.clientWidth-30+\"px\";var left=this.indexToLeft(this.index);this.frame.slide.style.left=left+\"px\"}};Slider.prototype.setValues=function(values){this.values=values;if(this.values.length>0)this.setIndex(0);else this.index=undefined};Slider.prototype.setIndex=function(index){if(index<this.values.length){this.index=index;this.redraw();this.onChange()}else{throw new Error(\"Index out of range\")}};Slider.prototype.getIndex=function(){return this.index};Slider.prototype.get=function(){return this.values[this.index]};Slider.prototype._onMouseDown=function(event){var leftButtonDown=event.which?event.which===1:event.button===1;if(!leftButtonDown)return;this.startClientX=event.clientX;this.startSlideX=parseFloat(this.frame.slide.style.left);this.frame.style.cursor=\"move\";var me=this;this.onmousemove=function(event){me._onMouseMove(event)};this.onmouseup=function(event){me._onMouseUp(event)};util.addEventListener(document,\"mousemove\",this.onmousemove);util.addEventListener(document,\"mouseup\",this.onmouseup);util.preventDefault(event)};Slider.prototype.leftToIndex=function(left){var width=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;var x=left-3;var index=Math.round(x/width*(this.values.length-1));if(index<0)index=0;if(index>this.values.length-1)index=this.values.length-1;return index};Slider.prototype.indexToLeft=function(index){var width=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;var x=index/(this.values.length-1)*width;var left=x+3;return left};Slider.prototype._onMouseMove=function(event){var diff=event.clientX-this.startClientX;var x=this.startSlideX+diff;var index=this.leftToIndex(x);this.setIndex(index);util.preventDefault()};Slider.prototype._onMouseUp=function(event){this.frame.style.cursor=\"auto\";util.removeEventListener(document,\"mousemove\",this.onmousemove);util.removeEventListener(document,\"mouseup\",this.onmouseup);util.preventDefault()};module.exports=Slider},function(module,exports,__webpack_require__){\"use strict\";function StepNumber(start,end,step,prettyStep){this._start=0;this._end=0;this._step=1;this.prettyStep=true;this.precision=5;this._current=0;this.setRange(start,end,step,prettyStep)}StepNumber.prototype.isNumeric=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};StepNumber.prototype.setRange=function(start,end,step,prettyStep){if(!this.isNumeric(start)){throw new Error(\"Parameter 'start' is not numeric; value: \"+start)}if(!this.isNumeric(end)){throw new Error(\"Parameter 'end' is not numeric; value: \"+start)}if(!this.isNumeric(step)){throw new Error(\"Parameter 'step' is not numeric; value: \"+start)}this._start=start?start:0;this._end=end?end:0;this.setStep(step,prettyStep)};StepNumber.prototype.setStep=function(step,prettyStep){if(step===undefined||step<=0)return;if(prettyStep!==undefined)this.prettyStep=prettyStep;if(this.prettyStep===true)this._step=StepNumber.calculatePrettyStep(step);else this._step=step};StepNumber.calculatePrettyStep=function(step){var log10=function log10(x){return Math.log(x)/Math.LN10};var step1=Math.pow(10,Math.round(log10(step))),step2=2*Math.pow(10,Math.round(log10(step/2))),step5=5*Math.pow(10,Math.round(log10(step/5)));var prettyStep=step1;if(Math.abs(step2-step)<=Math.abs(prettyStep-step))prettyStep=step2;if(Math.abs(step5-step)<=Math.abs(prettyStep-step))prettyStep=step5;if(prettyStep<=0){prettyStep=1}return prettyStep};StepNumber.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))};StepNumber.prototype.getStep=function(){return this._step};StepNumber.prototype.start=function(checkFirst){if(checkFirst===undefined){checkFirst=false}this._current=this._start-this._start%this._step;if(checkFirst){if(this.getCurrent()<this._start){this.next()}}};StepNumber.prototype.next=function(){this._current+=this._step};StepNumber.prototype.end=function(){return this._current>this._end};module.exports=StepNumber},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Camera=__webpack_require__(95);var Point3d=__webpack_require__(34);var STYLE={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9};var STYLENAME={dot:STYLE.DOT,\"dot-line\":STYLE.DOTLINE,\"dot-color\":STYLE.DOTCOLOR,\"dot-size\":STYLE.DOTSIZE,line:STYLE.LINE,grid:STYLE.GRID,surface:STYLE.SURFACE,bar:STYLE.BAR,\"bar-color\":STYLE.BARCOLOR,\"bar-size\":STYLE.BARSIZE};var OPTIONKEYS=[\"width\",\"height\",\"filterLabel\",\"legendLabel\",\"xLabel\",\"yLabel\",\"zLabel\",\"xValueLabel\",\"yValueLabel\",\"zValueLabel\",\"showXAxis\",\"showYAxis\",\"showZAxis\",\"showGrid\",\"showPerspective\",\"showShadow\",\"keepAspectRatio\",\"verticalRatio\",\"dotSizeRatio\",\"dotSizeMinFraction\",\"dotSizeMaxFraction\",\"showAnimationControls\",\"animationInterval\",\"animationPreload\",\"animationAutoStart\",\"axisColor\",\"gridColor\",\"xCenter\",\"yCenter\"];var PREFIXEDOPTIONKEYS=[\"xBarWidth\",\"yBarWidth\",\"valueMin\",\"valueMax\",\"xMin\",\"xMax\",\"xStep\",\"yMin\",\"yMax\",\"yStep\",\"zMin\",\"zMax\",\"zStep\"];var DEFAULTS=undefined;function isEmpty(obj){for(var prop in obj){if(obj.hasOwnProperty(prop))return false}return true}function capitalize(str){if(str===undefined||str===\"\"||typeof str!=\"string\"){return str}return str.charAt(0).toUpperCase()+str.slice(1)}function prefixFieldName(prefix,fieldName){if(prefix===undefined||prefix===\"\"){return fieldName}return prefix+capitalize(fieldName)}function forceCopy(src,dst,fields,prefix){var srcKey;var dstKey;for(var i=0;i<fields.length;++i){srcKey=fields[i];dstKey=prefixFieldName(prefix,srcKey);dst[dstKey]=src[srcKey]}}function safeCopy(src,dst,fields,prefix){var srcKey;var dstKey;for(var i=0;i<fields.length;++i){srcKey=fields[i];if(src[srcKey]===undefined)continue;dstKey=prefixFieldName(prefix,srcKey);dst[dstKey]=src[srcKey]}}function setDefaults(src,dst){if(src===undefined||isEmpty(src)){throw new Error(\"No DEFAULTS passed\")}if(dst===undefined){throw new Error(\"No dst passed\")}DEFAULTS=src;forceCopy(src,dst,OPTIONKEYS);forceCopy(src,dst,PREFIXEDOPTIONKEYS,\"default\");setSpecialSettings(src,dst);dst.margin=10;dst.showGrayBottom=false;dst.showTooltip=false;dst.onclick_callback=null;dst.eye=new Point3d(0,0,-1)}function setOptions(options,dst){if(options===undefined){return}if(dst===undefined){throw new Error(\"No dst passed\")}if(DEFAULTS===undefined||isEmpty(DEFAULTS)){throw new Error(\"DEFAULTS not set for module Settings\")}safeCopy(options,dst,OPTIONKEYS);safeCopy(options,dst,PREFIXEDOPTIONKEYS,\"default\");setSpecialSettings(options,dst)}function setSpecialSettings(src,dst){if(src.backgroundColor!==undefined){setBackgroundColor(src.backgroundColor,dst)}setDataColor(src.dataColor,dst);setStyle(src.style,dst);setShowLegend(src.showLegend,dst);setCameraPosition(src.cameraPosition,dst);if(src.tooltip!==undefined){dst.showTooltip=src.tooltip}if(src.onclick!=undefined){dst.onclick_callback=src.onclick}if(src.tooltipStyle!==undefined){util.selectiveDeepExtend([\"tooltipStyle\"],dst,src)}}function setShowLegend(showLegend,dst){if(showLegend===undefined){var isAutoByDefault=DEFAULTS.showLegend===undefined;if(isAutoByDefault){var isLegendGraphStyle=dst.style===STYLE.DOTCOLOR||dst.style===STYLE.DOTSIZE;dst.showLegend=isLegendGraphStyle}else{}}else{dst.showLegend=showLegend}}function getStyleNumberByName(styleName){var number=STYLENAME[styleName];if(number===undefined){return-1}return number}function checkStyleNumber(style){var valid=false;for(var n in STYLE){if(STYLE[n]===style){valid=true;break}}return valid}function setStyle(style,dst){if(style===undefined){return}var styleNumber;if(typeof style===\"string\"){styleNumber=getStyleNumberByName(style);if(styleNumber===-1){throw new Error(\"Style '\"+style+\"' is invalid\")}}else{if(!checkStyleNumber(style)){throw new Error(\"Style '\"+style+\"' is invalid\")}styleNumber=style}dst.style=styleNumber}function setBackgroundColor(backgroundColor,dst){var fill=\"white\";var stroke=\"gray\";var strokeWidth=1;if(typeof backgroundColor===\"string\"){fill=backgroundColor;stroke=\"none\";strokeWidth=0}else if((typeof backgroundColor===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(backgroundColor))===\"object\"){if(backgroundColor.fill!==undefined)fill=backgroundColor.fill;if(backgroundColor.stroke!==undefined)stroke=backgroundColor.stroke;if(backgroundColor.strokeWidth!==undefined)strokeWidth=backgroundColor.strokeWidth}else{throw new Error(\"Unsupported type of backgroundColor\")}dst.frame.style.backgroundColor=fill;dst.frame.style.borderColor=stroke;dst.frame.style.borderWidth=strokeWidth+\"px\";dst.frame.style.borderStyle=\"solid\"}function setDataColor(dataColor,dst){if(dataColor===undefined){return}if(dst.dataColor===undefined){dst.dataColor={}}if(typeof dataColor===\"string\"){dst.dataColor.fill=dataColor;dst.dataColor.stroke=dataColor}else{if(dataColor.fill){dst.dataColor.fill=dataColor.fill}if(dataColor.stroke){dst.dataColor.stroke=dataColor.stroke}if(dataColor.strokeWidth!==undefined){dst.dataColor.strokeWidth=dataColor.strokeWidth}}}function setCameraPosition(cameraPosition,dst){var camPos=cameraPosition;if(camPos===undefined){return}if(dst.camera===undefined){dst.camera=new Camera}dst.camera.setArmRotation(camPos.horizontal,camPos.vertical);dst.camera.setArmLength(camPos.distance)}module.exports.STYLE=STYLE;module.exports.setDefaults=setDefaults;module.exports.setOptions=setOptions;module.exports.setCameraPosition=setCameraPosition},function(module,exports,__webpack_require__){\"use strict\";var _sign=__webpack_require__(165);var _sign2=_interopRequireDefault(_sign);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Point3d=__webpack_require__(34);function Camera(){this.armLocation=new Point3d;this.armRotation={};this.armRotation.horizontal=0;this.armRotation.vertical=0;this.armLength=1.7;this.cameraOffset=new Point3d;this.offsetMultiplier=.6;this.cameraLocation=new Point3d;this.cameraRotation=new Point3d(.5*Math.PI,0,0);this.calculateCameraOrientation()}Camera.prototype.setOffset=function(x,y){var abs=Math.abs,sign=_sign2[\"default\"],mul=this.offsetMultiplier,border=this.armLength*mul;if(abs(x)>border){x=sign(x)*border}if(abs(y)>border){y=sign(y)*border}this.cameraOffset.x=x;this.cameraOffset.y=y;this.calculateCameraOrientation()};Camera.prototype.getOffset=function(){return this.cameraOffset};Camera.prototype.setArmLocation=function(x,y,z){this.armLocation.x=x;this.armLocation.y=y;this.armLocation.z=z;this.calculateCameraOrientation()};Camera.prototype.setArmRotation=function(horizontal,vertical){if(horizontal!==undefined){this.armRotation.horizontal=horizontal}if(vertical!==undefined){this.armRotation.vertical=vertical;if(this.armRotation.vertical<0)this.armRotation.vertical=0;if(this.armRotation.vertical>.5*Math.PI)this.armRotation.vertical=.5*Math.PI}if(horizontal!==undefined||vertical!==undefined){this.calculateCameraOrientation()}};Camera.prototype.getArmRotation=function(){var rot={};rot.horizontal=this.armRotation.horizontal;rot.vertical=this.armRotation.vertical;return rot};Camera.prototype.setArmLength=function(length){if(length===undefined)return;this.armLength=length;if(this.armLength<.71)this.armLength=.71;if(this.armLength>5)this.armLength=5;this.setOffset(this.cameraOffset.x,this.cameraOffset.y);this.calculateCameraOrientation()};Camera.prototype.getArmLength=function(){return this.armLength};Camera.prototype.getCameraLocation=function(){return this.cameraLocation};Camera.prototype.getCameraRotation=function(){return this.cameraRotation};Camera.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical);this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical);this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical);this.cameraRotation.x=Math.PI/2-this.armRotation.vertical;this.cameraRotation.y=0;this.cameraRotation.z=-this.armRotation.horizontal;var xa=this.cameraRotation.x;var za=this.cameraRotation.z;var dx=this.cameraOffset.x;var dy=this.cameraOffset.y;var sin=Math.sin,cos=Math.cos;this.cameraLocation.x=this.cameraLocation.x+dx*cos(za)+dy*-sin(za)*cos(xa);this.cameraLocation.y=this.cameraLocation.y+dx*sin(za)+dy*cos(za)*cos(xa);this.cameraLocation.z=this.cameraLocation.z+dy*sin(xa)};module.exports=Camera},function(module,exports,__webpack_require__){\"use strict\";var DataView=__webpack_require__(12);function Filter(dataGroup,column,graph){this.dataGroup=dataGroup;this.column=column;this.graph=graph;this.index=undefined;this.value=undefined;this.values=dataGroup.getDistinctValues(this.column);if(this.values.length>0){this.selectValue(0)}this.dataPoints=[];this.loaded=false;this.onLoadCallback=undefined;if(graph.animationPreload){this.loaded=false;this.loadInBackground()}else{this.loaded=true}}Filter.prototype.isLoaded=function(){return this.loaded};Filter.prototype.getLoadedProgress=function(){var len=this.values.length;var i=0;while(this.dataPoints[i]){i++}return Math.round(i/len*100)};Filter.prototype.getLabel=function(){return this.graph.filterLabel};Filter.prototype.getColumn=function(){return this.column};Filter.prototype.getSelectedValue=function(){if(this.index===undefined)return undefined;return this.values[this.index]};Filter.prototype.getValues=function(){return this.values};Filter.prototype.getValue=function(index){if(index>=this.values.length)throw new Error(\"Index out of range\");return this.values[index]};Filter.prototype._getDataPoints=function(index){if(index===undefined)index=this.index;if(index===undefined)return[];var dataPoints;if(this.dataPoints[index]){dataPoints=this.dataPoints[index]}else{var f={};f.column=this.column;f.value=this.values[index];var dataView=new DataView(this.dataGroup.getDataSet(),{filter:function filter(item){return item[f.column]==f.value}}).get();dataPoints=this.dataGroup._getDataPoints(dataView);this.dataPoints[index]=dataPoints}return dataPoints};Filter.prototype.setOnLoadCallback=function(callback){this.onLoadCallback=callback};Filter.prototype.selectValue=function(index){if(index>=this.values.length)throw new Error(\"Index out of range\");this.index=index;this.value=this.values[index]};Filter.prototype.loadInBackground=function(index){if(index===undefined)index=0;var frame=this.graph.frame;if(index<this.values.length){if(frame.progress===undefined){frame.progress=document.createElement(\"DIV\");frame.progress.style.position=\"absolute\";frame.progress.style.color=\"gray\";frame.appendChild(frame.progress)}var progress=this.getLoadedProgress();frame.progress.innerHTML=\"Loading animation... \"+progress+\"%\";frame.progress.style.bottom=60+\"px\";frame.progress.style.left=10+\"px\";var me=this;setTimeout(function(){me.loadInBackground(index+1)},10);this.loaded=false}else{this.loaded=true;if(frame.progress!==undefined){frame.removeChild(frame.progress);frame.progress=undefined}if(this.onLoadCallback)this.onLoadCallback()}};module.exports=Filter},function(module,exports,__webpack_require__){\"use strict\";var keycharm=__webpack_require__(35);var Emitter=__webpack_require__(44);var Hammer=__webpack_require__(10);var util=__webpack_require__(2);function Activator(container){this.active=false;this.dom={container:container};this.dom.overlay=document.createElement(\"div\");this.dom.overlay.className=\"vis-overlay\";this.dom.container.appendChild(this.dom.overlay);this.hammer=Hammer(this.dom.overlay);this.hammer.on(\"tap\",this._onTapOverlay.bind(this));var me=this;var events=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];events.forEach(function(event){me.hammer.on(event,function(event){event.stopPropagation()})});if(document&&document.body){this.onClick=function(event){if(!_hasParent(event.target,container)){me.deactivate()}};document.body.addEventListener(\"click\",this.onClick)}if(this.keycharm!==undefined){this.keycharm.destroy()}this.keycharm=keycharm();this.escListener=this.deactivate.bind(this)}Emitter(Activator.prototype);Activator.current=null;Activator.prototype.destroy=function(){this.deactivate();this.dom.overlay.parentNode.removeChild(this.dom.overlay);if(this.onClick){document.body.removeEventListener(\"click\",this.onClick)}this.hammer.destroy();this.hammer=null};Activator.prototype.activate=function(){if(Activator.current){Activator.current.deactivate()}Activator.current=this;this.active=true;this.dom.overlay.style.display=\"none\";util.addClassName(this.dom.container,\"vis-active\");this.emit(\"change\");this.emit(\"activate\");this.keycharm.bind(\"esc\",this.escListener)};Activator.prototype.deactivate=function(){this.active=false;this.dom.overlay.style.display=\"\";util.removeClassName(this.dom.container,\"vis-active\");this.keycharm.unbind(\"esc\",this.escListener);this.emit(\"change\");this.emit(\"deactivate\")};Activator.prototype._onTapOverlay=function(event){this.activate();event.stopPropagation()};function _hasParent(element,parent){while(element){if(element===parent){return true}element=element.parentNode}return false}module.exports=Activator},function(module,exports,__webpack_require__){\"use strict\";exports[\"en\"]={current:\"current\",time:\"time\"};exports[\"en_EN\"]=exports[\"en\"];exports[\"en_US\"]=exports[\"en\"];exports[\"it\"]={current:\"attuale\",time:\"tempo\"};exports[\"it_IT\"]=exports[\"it\"];exports[\"it_CH\"]=exports[\"it\"];exports[\"nl\"]={current:\"huidige\",time:\"tijd\"};exports[\"nl_NL\"]=exports[\"nl\"];exports[\"nl_BE\"]=exports[\"nl\"];exports[\"de\"]={current:\"Aktuelle\",time:\"Zeit\"};exports[\"de_DE\"]=exports[\"de\"];exports[\"fr\"]={current:\"actuel\",time:\"heure\"};exports[\"fr_FR\"]=exports[\"fr\"];exports[\"fr_CA\"]=exports[\"fr\"];exports[\"fr_BE\"]=exports[\"fr\"];exports[\"es\"]={current:\"corriente\",time:\"hora\"};exports[\"es_ES\"]=exports[\"es\"]},function(module,exports,__webpack_require__){\"use strict\";var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var TimeStep=__webpack_require__(66);var Component=__webpack_require__(16);var Group=__webpack_require__(68);var BackgroundGroup=__webpack_require__(69);var BoxItem=__webpack_require__(101);var PointItem=__webpack_require__(102);var RangeItem=__webpack_require__(70);var BackgroundItem=__webpack_require__(103);var Popup=__webpack_require__(104)[\"default\"];var UNGROUPED=\"__ungrouped__\";var BACKGROUND=\"__background__\";function ItemSet(body,options){this.body=body;this.defaultOptions={type:null,orientation:{item:\"bottom\"},align:\"auto\",stack:true,stackSubgroups:true,groupOrderSwap:function groupOrderSwap(fromGroup,toGroup,groups){var targetOrder=toGroup.order;toGroup.order=fromGroup.order;fromGroup.order=targetOrder},groupOrder:\"order\",selectable:true,multiselect:false,itemsAlwaysDraggable:{item:false,range:false},editable:{updateTime:false,updateGroup:false,add:false,remove:false,overrideItems:false},groupEditable:{order:false,add:false,remove:false},snap:TimeStep.snap,onDropObjectOnItem:function onDropObjectOnItem(objectData,item,callback){callback(item)},onAdd:function onAdd(item,callback){callback(item)},onUpdate:function onUpdate(item,callback){callback(item)},onMove:function onMove(item,callback){callback(item)},onRemove:function onRemove(item,callback){callback(item)},onMoving:function onMoving(item,callback){callback(item)},onAddGroup:function onAddGroup(item,callback){callback(item)},onMoveGroup:function onMoveGroup(item,callback){callback(item)},onRemoveGroup:function onRemoveGroup(item,callback){callback(item)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:true,tooltip:{followMouse:false,overflowMethod:\"flip\"},tooltipOnItemUpdateTime:false};this.options=util.extend({},this.defaultOptions);this.options.rtl=options.rtl;this.itemOptions={type:{start:\"Date\",end:\"Date\"}};this.conversion={toScreen:body.util.toScreen,toTime:body.util.toTime};this.dom={};this.props={};this.hammer=null;var me=this;this.itemsData=null;this.groupsData=null;this.itemListeners={add:function add(event,params,senderId){me._onAdd(params.items)},update:function update(event,params,senderId){me._onUpdate(params.items)},remove:function remove(event,params,senderId){me._onRemove(params.items)}};this.groupListeners={add:function add(event,params,senderId){me._onAddGroups(params.items);if(me.groupsData&&me.groupsData.length>0){var groupsData=me.groupsData.getDataSet();groupsData.get().forEach(function(groupData){if(groupData.nestedGroups){if(groupData.showNested!=false){groupData.showNested=true}var updatedGroups=[];groupData.nestedGroups.forEach(function(nestedGroupId){var updatedNestedGroup=groupsData.get(nestedGroupId);if(!updatedNestedGroup){return}updatedNestedGroup.nestedInGroup=groupData.id;if(groupData.showNested==false){updatedNestedGroup.visible=false}updatedGroups=updatedGroups.concat(updatedNestedGroup)});groupsData.update(updatedGroups,senderId)}})}},update:function update(event,params,senderId){me._onUpdateGroups(params.items)},remove:function remove(event,params,senderId){me._onRemoveGroups(params.items)}};this.items={};this.groups={};this.groupIds=[];this.selection=[];this.popup=null;this.touchParams={};this.groupTouchParams={};this._create();this.setOptions(options)}ItemSet.prototype=new Component;ItemSet.types={background:BackgroundItem,box:BoxItem,range:RangeItem,point:PointItem};ItemSet.prototype._create=function(){var frame=document.createElement(\"div\");frame.className=\"vis-itemset\";frame[\"timeline-itemset\"]=this;this.dom.frame=frame;var background=document.createElement(\"div\");background.className=\"vis-background\";frame.appendChild(background);this.dom.background=background;var foreground=document.createElement(\"div\");foreground.className=\"vis-foreground\";frame.appendChild(foreground);this.dom.foreground=foreground;var axis=document.createElement(\"div\");axis.className=\"vis-axis\";this.dom.axis=axis;var labelSet=document.createElement(\"div\");labelSet.className=\"vis-labelset\";this.dom.labelSet=labelSet;this._updateUngrouped();var backgroundGroup=new BackgroundGroup(BACKGROUND,null,this);backgroundGroup.show();this.groups[BACKGROUND]=backgroundGroup;this.hammer=new Hammer(this.body.dom.centerContainer);this.hammer.on(\"hammer.input\",function(event){if(event.isFirst){this._onTouch(event)}}.bind(this));this.hammer.on(\"panstart\",this._onDragStart.bind(this));this.hammer.on(\"panmove\",this._onDrag.bind(this));this.hammer.on(\"panend\",this._onDragEnd.bind(this));this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_HORIZONTAL});this.hammer.on(\"tap\",this._onSelectItem.bind(this));this.hammer.on(\"press\",this._onMultiSelectItem.bind(this));this.hammer.on(\"doubletap\",this._onAddItem.bind(this));if(this.options.rtl){\nthis.groupHammer=new Hammer(this.body.dom.rightContainer)}else{this.groupHammer=new Hammer(this.body.dom.leftContainer)}this.groupHammer.on(\"tap\",this._onGroupClick.bind(this));this.groupHammer.on(\"panstart\",this._onGroupDragStart.bind(this));this.groupHammer.on(\"panmove\",this._onGroupDrag.bind(this));this.groupHammer.on(\"panend\",this._onGroupDragEnd.bind(this));this.groupHammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_VERTICAL});this.body.dom.centerContainer.addEventListener(\"mouseover\",this._onMouseOver.bind(this));this.body.dom.centerContainer.addEventListener(\"mouseout\",this._onMouseOut.bind(this));this.body.dom.centerContainer.addEventListener(\"mousemove\",this._onMouseMove.bind(this));this.body.dom.centerContainer.addEventListener(\"contextmenu\",this._onDragEnd.bind(this));this.body.dom.centerContainer.addEventListener(\"mousewheel\",this._onMouseWheel.bind(this));this.show()};ItemSet.prototype.setOptions=function(options){if(options){var fields=[\"type\",\"rtl\",\"align\",\"order\",\"stack\",\"stackSubgroups\",\"selectable\",\"multiselect\",\"multiselectPerGroup\",\"groupOrder\",\"dataAttributes\",\"template\",\"groupTemplate\",\"visibleFrameTemplate\",\"hide\",\"snap\",\"groupOrderSwap\",\"showTooltips\",\"tooltip\",\"tooltipOnItemUpdateTime\"];util.selectiveExtend(fields,this.options,options);if(\"itemsAlwaysDraggable\"in options){if(typeof options.itemsAlwaysDraggable===\"boolean\"){this.options.itemsAlwaysDraggable.item=options.itemsAlwaysDraggable;this.options.itemsAlwaysDraggable.range=false}else if((0,_typeof3[\"default\"])(options.itemsAlwaysDraggable)===\"object\"){util.selectiveExtend([\"item\",\"range\"],this.options.itemsAlwaysDraggable,options.itemsAlwaysDraggable);if(!this.options.itemsAlwaysDraggable.item){this.options.itemsAlwaysDraggable.range=false}}}if(\"orientation\"in options){if(typeof options.orientation===\"string\"){this.options.orientation.item=options.orientation===\"top\"?\"top\":\"bottom\"}else if((0,_typeof3[\"default\"])(options.orientation)===\"object\"&&\"item\"in options.orientation){this.options.orientation.item=options.orientation.item}}if(\"margin\"in options){if(typeof options.margin===\"number\"){this.options.margin.axis=options.margin;this.options.margin.item.horizontal=options.margin;this.options.margin.item.vertical=options.margin}else if((0,_typeof3[\"default\"])(options.margin)===\"object\"){util.selectiveExtend([\"axis\"],this.options.margin,options.margin);if(\"item\"in options.margin){if(typeof options.margin.item===\"number\"){this.options.margin.item.horizontal=options.margin.item;this.options.margin.item.vertical=options.margin.item}else if((0,_typeof3[\"default\"])(options.margin.item)===\"object\"){util.selectiveExtend([\"horizontal\",\"vertical\"],this.options.margin.item,options.margin.item)}}}}if(\"editable\"in options){if(typeof options.editable===\"boolean\"){this.options.editable.updateTime=options.editable;this.options.editable.updateGroup=options.editable;this.options.editable.add=options.editable;this.options.editable.remove=options.editable;this.options.editable.overrideItems=false}else if((0,_typeof3[\"default\"])(options.editable)===\"object\"){util.selectiveExtend([\"updateTime\",\"updateGroup\",\"add\",\"remove\",\"overrideItems\"],this.options.editable,options.editable)}}if(\"groupEditable\"in options){if(typeof options.groupEditable===\"boolean\"){this.options.groupEditable.order=options.groupEditable;this.options.groupEditable.add=options.groupEditable;this.options.groupEditable.remove=options.groupEditable}else if((0,_typeof3[\"default\"])(options.groupEditable)===\"object\"){util.selectiveExtend([\"order\",\"add\",\"remove\"],this.options.groupEditable,options.groupEditable)}}var addCallback=function(name){var fn=options[name];if(fn){if(!(fn instanceof Function)){throw new Error(\"option \"+name+\" must be a function \"+name+\"(item, callback)\")}this.options[name]=fn}}.bind(this);[\"onDropObjectOnItem\",\"onAdd\",\"onUpdate\",\"onRemove\",\"onMove\",\"onMoving\",\"onAddGroup\",\"onMoveGroup\",\"onRemoveGroup\"].forEach(addCallback);this.markDirty()}};ItemSet.prototype.markDirty=function(options){this.groupIds=[];if(options&&options.refreshItems){util.forEach(this.items,function(item){item.dirty=true;if(item.displayed)item.redraw()})}};ItemSet.prototype.destroy=function(){this.hide();this.setItems(null);this.setGroups(null);this.hammer=null;this.body=null;this.conversion=null};ItemSet.prototype.hide=function(){if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}if(this.dom.axis.parentNode){this.dom.axis.parentNode.removeChild(this.dom.axis)}if(this.dom.labelSet.parentNode){this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}};ItemSet.prototype.show=function(){if(!this.dom.frame.parentNode){this.body.dom.center.appendChild(this.dom.frame)}if(!this.dom.axis.parentNode){this.body.dom.backgroundVertical.appendChild(this.dom.axis)}if(!this.dom.labelSet.parentNode){if(this.options.rtl){this.body.dom.right.appendChild(this.dom.labelSet)}else{this.body.dom.left.appendChild(this.dom.labelSet)}}};ItemSet.prototype.setSelection=function(ids){var i,ii,id,item;if(ids==undefined)ids=[];if(!Array.isArray(ids))ids=[ids];for(i=0,ii=this.selection.length;i<ii;i++){id=this.selection[i];item=this.items[id];if(item)item.unselect()}this.selection=[];for(i=0,ii=ids.length;i<ii;i++){id=ids[i];item=this.items[id];if(item){this.selection.push(id);item.select()}}};ItemSet.prototype.getSelection=function(){return this.selection.concat([])};ItemSet.prototype.getVisibleItems=function(){var range=this.body.range.getRange();var right,left;if(this.options.rtl){right=this.body.util.toScreen(range.start);left=this.body.util.toScreen(range.end)}else{left=this.body.util.toScreen(range.start);right=this.body.util.toScreen(range.end)}var ids=[];for(var groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){var group=this.groups[groupId];var rawVisibleItems=group.isVisible?group.visibleItems:[];for(var i=0;i<rawVisibleItems.length;i++){var item=rawVisibleItems[i];if(this.options.rtl){if(item.right<left&&item.right+item.width>right){ids.push(item.id)}}else{if(item.left<right&&item.left+item.width>left){ids.push(item.id)}}}}}return ids};ItemSet.prototype._deselect=function(id){var selection=this.selection;for(var i=0,ii=selection.length;i<ii;i++){if(selection[i]==id){selection.splice(i,1);break}}};ItemSet.prototype.redraw=function(){var margin=this.options.margin,range=this.body.range,asSize=util.option.asSize,options=this.options,orientation=options.orientation.item,resized=false,frame=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top;if(this.options.rtl){this.props.right=this.body.domProps.right.width+this.body.domProps.border.right}else{this.props.left=this.body.domProps.left.width+this.body.domProps.border.left}frame.className=\"vis-itemset\";resized=this._orderGroups()||resized;var visibleInterval=range.end-range.start;var zoomed=visibleInterval!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth;var scrolled=range.start!=this.lastRangeStart;var changedStackOption=options.stack!=this.lastStack;var changedStackSubgroupsOption=options.stackSubgroups!=this.lastStackSubgroups;var forceRestack=zoomed||scrolled||changedStackOption||changedStackSubgroupsOption;this.lastVisibleInterval=visibleInterval;this.lastRangeStart=range.start;this.lastStack=options.stack;this.lastStackSubgroups=options.stackSubgroups;this.props.lastWidth=this.props.width;var firstGroup=this._firstGroup();var firstMargin={item:margin.item,axis:margin.axis};var nonFirstMargin={item:margin.item,axis:margin.item.vertical/2};var height=0;var minHeight=margin.axis+margin.item.vertical;this.groups[BACKGROUND].redraw(range,nonFirstMargin,forceRestack);var redrawQueue={};var redrawQueueLength=0;util.forEach(this.groups,function(group,key){if(key===BACKGROUND)return;var groupMargin=group==firstGroup?firstMargin:nonFirstMargin;var returnQueue=true;redrawQueue[key]=group.redraw(range,groupMargin,forceRestack,returnQueue);redrawQueueLength=redrawQueue[key].length});var needRedraw=redrawQueueLength>0;if(needRedraw){var redrawResults={};for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns,key){redrawResults[key]=fns[i]()})}util.forEach(this.groups,function(group,key){if(key===BACKGROUND)return;var groupResized=redrawResults[key];resized=groupResized||resized;height+=group.height});height=Math.max(height,minHeight)}height=Math.max(height,minHeight);frame.style.height=asSize(height);this.props.width=frame.offsetWidth;this.props.height=height;this.dom.axis.style.top=asSize(orientation==\"top\"?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height);if(this.options.rtl){this.dom.axis.style.right=\"0\"}else{this.dom.axis.style.left=\"0\"}this.initialItemSetDrawn=true;resized=this._isResized()||resized;return resized};ItemSet.prototype._firstGroup=function(){var firstGroupIndex=this.options.orientation.item==\"top\"?0:this.groupIds.length-1;var firstGroupId=this.groupIds[firstGroupIndex];var firstGroup=this.groups[firstGroupId]||this.groups[UNGROUPED];return firstGroup||null};ItemSet.prototype._updateUngrouped=function(){var ungrouped=this.groups[UNGROUPED];var item,itemId;if(this.groupsData){if(ungrouped){ungrouped.hide();delete this.groups[UNGROUPED];for(itemId in this.items){if(this.items.hasOwnProperty(itemId)){item=this.items[itemId];item.parent&&item.parent.remove(item);var groupId=this._getGroupId(item.data);var group=this.groups[groupId];group&&group.add(item)||item.hide()}}}}else{if(!ungrouped){var id=null;var data=null;ungrouped=new Group(id,data,this);this.groups[UNGROUPED]=ungrouped;for(itemId in this.items){if(this.items.hasOwnProperty(itemId)){item=this.items[itemId];ungrouped.add(item)}}ungrouped.show()}}};ItemSet.prototype.getLabelSet=function(){return this.dom.labelSet};ItemSet.prototype.setItems=function(items){var me=this,ids,oldItemsData=this.itemsData;if(!items){this.itemsData=null}else if(items instanceof DataSet||items instanceof DataView){this.itemsData=items}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(oldItemsData){util.forEach(this.itemListeners,function(callback,event){oldItemsData.off(event,callback)});ids=oldItemsData.getIds();this._onRemove(ids)}if(this.itemsData){var id=this.id;util.forEach(this.itemListeners,function(callback,event){me.itemsData.on(event,callback,id)});ids=this.itemsData.getIds();this._onAdd(ids);this._updateUngrouped()}this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype.getItems=function(){return this.itemsData};ItemSet.prototype.setGroups=function(groups){var me=this,ids;if(this.groupsData){util.forEach(this.groupListeners,function(callback,event){me.groupsData.off(event,callback)});ids=this.groupsData.getIds();this.groupsData=null;this._onRemoveGroups(ids)}if(!groups){this.groupsData=null}else if(groups instanceof DataSet||groups instanceof DataView){this.groupsData=groups}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(this.groupsData){var groupsData=this.groupsData;if(this.groupsData instanceof DataView){groupsData=this.groupsData.getDataSet()}groupsData.get().forEach(function(group){if(group.nestedGroups){group.nestedGroups.forEach(function(nestedGroupId){var updatedNestedGroup=groupsData.get(nestedGroupId);updatedNestedGroup.nestedInGroup=group.id;if(group.showNested==false){updatedNestedGroup.visible=false}groupsData.update(updatedNestedGroup)})}});var id=this.id;util.forEach(this.groupListeners,function(callback,event){me.groupsData.on(event,callback,id)});ids=this.groupsData.getIds();this._onAddGroups(ids)}this._updateUngrouped();this._order();this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype.getGroups=function(){return this.groupsData};ItemSet.prototype.removeItem=function(id){var item=this.itemsData.get(id),dataset=this.itemsData.getDataSet();if(item){this.options.onRemove(item,function(item){if(item){dataset.remove(id)}})}};ItemSet.prototype._getType=function(itemData){return itemData.type||this.options.type||(itemData.end?\"range\":\"box\")};ItemSet.prototype._getGroupId=function(itemData){var type=this._getType(itemData);if(type==\"background\"&&itemData.group==undefined){return BACKGROUND}else{return this.groupsData?itemData.group:UNGROUPED}};ItemSet.prototype._onUpdate=function(ids){var me=this;ids.forEach(function(id){var itemData=me.itemsData.get(id,me.itemOptions);var item=me.items[id];var type=itemData?me._getType(itemData):null;var constructor=ItemSet.types[type];var selected;if(item){if(!constructor||!(item instanceof constructor)){selected=item.selected;me._removeItem(item);item=null}else{me._updateItem(item,itemData)}}if(!item&&itemData){if(constructor){item=new constructor(itemData,me.conversion,me.options);item.id=id;me._addItem(item);if(selected){this.selection.push(id);item.select()}}else if(type==\"rangeoverflow\"){throw new TypeError('Item type \"rangeoverflow\" is deprecated. Use css styling instead: '+\".vis-item.vis-range .vis-item-content {overflow: visible;}\")}else{throw new TypeError('Unknown item type \"'+type+'\"')}}}.bind(this));this._order();this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype._onAdd=ItemSet.prototype._onUpdate;ItemSet.prototype._onRemove=function(ids){var count=0;var me=this;ids.forEach(function(id){var item=me.items[id];if(item){count++;me._removeItem(item)}});if(count){this._order();this.body.emitter.emit(\"_change\",{queue:true})}};ItemSet.prototype._order=function(){util.forEach(this.groups,function(group){group.order()})};ItemSet.prototype._onUpdateGroups=function(ids){this._onAddGroups(ids)};ItemSet.prototype._onAddGroups=function(ids){var me=this;ids.forEach(function(id){var groupData=me.groupsData.get(id);var group=me.groups[id];if(!group){if(id==UNGROUPED||id==BACKGROUND){throw new Error(\"Illegal group id. \"+id+\" is a reserved id.\")}var groupOptions=(0,_create2[\"default\"])(me.options);util.extend(groupOptions,{height:null});group=new Group(id,groupData,me);me.groups[id]=group;for(var itemId in me.items){if(me.items.hasOwnProperty(itemId)){var item=me.items[itemId];if(item.data.group==id){group.add(item)}}}group.order();group.show()}else{group.setData(groupData)}});this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype._onRemoveGroups=function(ids){var groups=this.groups;ids.forEach(function(id){var group=groups[id];if(group){group.hide();delete groups[id]}});this.markDirty();this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype._orderGroups=function(){if(this.groupsData){var groupIds=this.groupsData.getIds({order:this.options.groupOrder});groupIds=this._orderNestedGroups(groupIds);var changed=!util.equalArray(groupIds,this.groupIds);if(changed){var groups=this.groups;groupIds.forEach(function(groupId){groups[groupId].hide()});groupIds.forEach(function(groupId){groups[groupId].show()});this.groupIds=groupIds}return changed}else{return false}};ItemSet.prototype._orderNestedGroups=function(groupIds){var newGroupIdsOrder=[];groupIds.forEach(function(groupId){var groupData=this.groupsData.get(groupId);if(!groupData.nestedInGroup){newGroupIdsOrder.push(groupId)}if(groupData.nestedGroups){var nestedGroups=this.groupsData.get({filter:function filter(nestedGroup){return nestedGroup.nestedInGroup==groupId},order:this.options.groupOrder});var nestedGroupIds=nestedGroups.map(function(nestedGroup){return nestedGroup.id});newGroupIdsOrder=newGroupIdsOrder.concat(nestedGroupIds)}},this);return newGroupIdsOrder};ItemSet.prototype._addItem=function(item){this.items[item.id]=item;var groupId=this._getGroupId(item.data);var group=this.groups[groupId];if(!group){item.groupShowing=false}else if(group&&group.data&&group.data.showNested){item.groupShowing=true}if(group)group.add(item)};ItemSet.prototype._updateItem=function(item,itemData){item.setData(itemData);var groupId=this._getGroupId(item.data);var group=this.groups[groupId];if(!group){item.groupShowing=false}else if(group&&group.data&&group.data.showNested){item.groupShowing=true}};ItemSet.prototype._removeItem=function(item){item.hide();delete this.items[item.id];var index=this.selection.indexOf(item.id);if(index!=-1)this.selection.splice(index,1);item.parent&&item.parent.remove(item)};ItemSet.prototype._constructByEndArray=function(array){var endArray=[];for(var i=0;i<array.length;i++){if(array[i]instanceof RangeItem){endArray.push(array[i])}}return endArray};ItemSet.prototype._onTouch=function(event){this.touchParams.item=this.itemFromTarget(event);this.touchParams.dragLeftItem=event.target.dragLeftItem||false;this.touchParams.dragRightItem=event.target.dragRightItem||false;this.touchParams.itemProps=null};ItemSet.prototype._getGroupIndex=function(groupId){for(var i=0;i<this.groupIds.length;i++){if(groupId==this.groupIds[i])return i}};ItemSet.prototype._onDragStart=function(event){if(this.touchParams.itemIsDragging){return}var item=this.touchParams.item||null;var me=this;var props;if(item&&(item.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup){return}if(item.editable!=null&&!item.editable.updateTime&&!item.editable.updateGroup&&!this.options.editable.overrideItems){return}var dragLeftItem=this.touchParams.dragLeftItem;var dragRightItem=this.touchParams.dragRightItem;this.touchParams.itemIsDragging=true;this.touchParams.selectedItem=item;if(dragLeftItem){props={item:dragLeftItem,initialX:event.center.x,dragLeft:true,data:this._cloneItemData(item.data)};this.touchParams.itemProps=[props]}else if(dragRightItem){props={item:dragRightItem,initialX:event.center.x,dragRight:true,data:this._cloneItemData(item.data)};this.touchParams.itemProps=[props]}else if(this.options.editable.add&&(event.srcEvent.ctrlKey||event.srcEvent.metaKey)){this._onDragStartAddItem(event)}else{if(this.groupIds.length<1){this.redraw()}var baseGroupIndex=this._getGroupIndex(item.data.group);var itemsToDrag=this.options.itemsAlwaysDraggable.item&&!item.selected?[item.id]:this.getSelection();this.touchParams.itemProps=itemsToDrag.map(function(id){var item=me.items[id];var groupIndex=me._getGroupIndex(item.data.group);return{item:item,initialX:event.center.x,groupOffset:baseGroupIndex-groupIndex,data:this._cloneItemData(item.data)}}.bind(this))}event.stopPropagation()}else if(this.options.editable.add&&(event.srcEvent.ctrlKey||event.srcEvent.metaKey)){this._onDragStartAddItem(event)}};ItemSet.prototype._onDragStartAddItem=function(event){var xAbs;var x;var snap=this.options.snap||null;if(this.options.rtl){xAbs=util.getAbsoluteRight(this.dom.frame);x=xAbs-event.center.x+10}else{xAbs=util.getAbsoluteLeft(this.dom.frame);x=event.center.x-xAbs-10}var time=this.body.util.toTime(x);var scale=this.body.util.getScale();var step=this.body.util.getStep();var start=snap?snap(time,scale,step):time;var end=start;var itemData={type:\"range\",start:start,end:end,content:\"new item\"};var id=util.randomUUID();itemData[this.itemsData._fieldId]=id;var group=this.groupFromTarget(event);if(group){itemData.group=group.groupId}var newItem=new RangeItem(itemData,this.conversion,this.options);newItem.id=id;newItem.data=this._cloneItemData(itemData);this._addItem(newItem);this.touchParams.selectedItem=newItem;var props={item:newItem,initialX:event.center.x,data:newItem.data};if(this.options.rtl){props.dragLeft=true}else{props.dragRight=true}this.touchParams.itemProps=[props];event.stopPropagation()};ItemSet.prototype._onDrag=function(event){if(this.touchParams.itemProps){event.stopPropagation();var me=this;var snap=this.options.snap||null;var xOffset;if(this.options.rtl){xOffset=this.body.dom.root.offsetLeft+this.body.domProps.right.width}else{xOffset=this.body.dom.root.offsetLeft+this.body.domProps.left.width}var scale=this.body.util.getScale();var step=this.body.util.getStep();var selectedItem=this.touchParams.selectedItem;var updateGroupAllowed=(this.options.editable.overrideItems||selectedItem.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&selectedItem.editable!=null&&selectedItem.editable.updateGroup;var newGroupBase=null;if(updateGroupAllowed&&selectedItem){if(selectedItem.data.group!=undefined){var group=me.groupFromTarget(event);if(group){newGroupBase=this._getGroupIndex(group.groupId)}}}this.touchParams.itemProps.forEach(function(props){var current=me.body.util.toTime(event.center.x-xOffset);var initial=me.body.util.toTime(props.initialX-xOffset);var offset;var initialStart;var initialEnd;var start;var end;if(this.options.rtl){offset=-(current-initial)}else{offset=current-initial}var itemData=this._cloneItemData(props.item.data);if(props.item.editable!=null&&!props.item.editable.updateTime&&!props.item.editable.updateGroup&&!me.options.editable.overrideItems){return}var updateTimeAllowed=(this.options.editable.overrideItems||selectedItem.editable==null)&&this.options.editable.updateTime||!this.options.editable.overrideItems&&selectedItem.editable!=null&&selectedItem.editable.updateTime;if(updateTimeAllowed){if(props.dragLeft){if(this.options.rtl){if(itemData.end!=undefined){initialEnd=util.convert(props.data.end,\"Date\");end=new Date(initialEnd.valueOf()+offset);itemData.end=snap?snap(end,scale,step):end}}else{if(itemData.start!=undefined){initialStart=util.convert(props.data.start,\"Date\");start=new Date(initialStart.valueOf()+offset);itemData.start=snap?snap(start,scale,step):start}}}else if(props.dragRight){if(this.options.rtl){if(itemData.start!=undefined){initialStart=util.convert(props.data.start,\"Date\");start=new Date(initialStart.valueOf()+offset);itemData.start=snap?snap(start,scale,step):start}}else{if(itemData.end!=undefined){initialEnd=util.convert(props.data.end,\"Date\");end=new Date(initialEnd.valueOf()+offset);itemData.end=snap?snap(end,scale,step):end}}}else{if(itemData.start!=undefined){initialStart=util.convert(props.data.start,\"Date\").valueOf();start=new Date(initialStart+offset);if(itemData.end!=undefined){initialEnd=util.convert(props.data.end,\"Date\");var duration=initialEnd.valueOf()-initialStart.valueOf();itemData.start=snap?snap(start,scale,step):start;itemData.end=new Date(itemData.start.valueOf()+duration)}else{itemData.start=snap?snap(start,scale,step):start}}}}if(updateGroupAllowed&&!props.dragLeft&&!props.dragRight&&newGroupBase!=null){if(itemData.group!=undefined){var newOffset=newGroupBase-props.groupOffset;newOffset=Math.max(0,newOffset);newOffset=Math.min(me.groupIds.length-1,newOffset);itemData.group=me.groupIds[newOffset]}}itemData=this._cloneItemData(itemData);me.options.onMoving(itemData,function(itemData){if(itemData){props.item.setData(this._cloneItemData(itemData,\"Date\"))}}.bind(this))}.bind(this));this.body.emitter.emit(\"_change\")}};ItemSet.prototype._moveToGroup=function(item,groupId){var group=this.groups[groupId];if(group&&group.groupId!=item.data.group){var oldGroup=item.parent;oldGroup.remove(item);oldGroup.order();item.data.group=group.groupId;group.add(item);group.order()}};ItemSet.prototype._onDragEnd=function(event){this.touchParams.itemIsDragging=false;if(this.touchParams.itemProps){event.stopPropagation();var me=this;var dataset=this.itemsData.getDataSet();var itemProps=this.touchParams.itemProps;this.touchParams.itemProps=null;itemProps.forEach(function(props){var id=props.item.id;var exists=me.itemsData.get(id,me.itemOptions)!=null;if(!exists){me.options.onAdd(props.item.data,function(itemData){me._removeItem(props.item);if(itemData){me.itemsData.getDataSet().add(itemData)}me.body.emitter.emit(\"_change\")})}else{var itemData=this._cloneItemData(props.item.data);me.options.onMove(itemData,function(itemData){if(itemData){itemData[dataset._fieldId]=id;dataset.update(itemData)}else{props.item.setData(props.data);me.body.emitter.emit(\"_change\")}})}}.bind(this))}};ItemSet.prototype._onGroupClick=function(event){var group=this.groupFromTarget(event);if(!group||!group.nestedGroups)return;var groupsData=this.groupsData.getDataSet();var nestingGroup=groupsData.get(group.groupId);if(nestingGroup.showNested==undefined){nestingGroup.showNested=true}nestingGroup.showNested=!nestingGroup.showNested;var nestedGroups=groupsData.get(group.nestedGroups).map(function(nestedGroup){nestedGroup.visible=nestingGroup.showNested;return nestedGroup});groupsData.update(nestedGroups.concat(nestingGroup));if(nestingGroup.showNested){util.removeClassName(group.dom.label,\"collapsed\");util.addClassName(group.dom.label,\"expanded\")}else{util.removeClassName(group.dom.label,\"expanded\");var collapsedDirClassName=this.options.rtl?\"collapsed-rtl\":\"collapsed\";util.addClassName(group.dom.label,collapsedDirClassName)}};ItemSet.prototype._onGroupDragStart=function(event){if(this.options.groupEditable.order){this.groupTouchParams.group=this.groupFromTarget(event);if(this.groupTouchParams.group){event.stopPropagation();this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})}}};ItemSet.prototype._onGroupDrag=function(event){if(this.options.groupEditable.order&&this.groupTouchParams.group){event.stopPropagation();var groupsData=this.groupsData;if(this.groupsData instanceof DataView){groupsData=this.groupsData.getDataSet()}var group=this.groupFromTarget(event);if(group&&group.height!=this.groupTouchParams.group.height){var movingUp=group.top<this.groupTouchParams.group.top;var clientY=event.center?event.center.y:event.clientY;var targetGroupTop=util.getAbsoluteTop(group.dom.foreground);var draggedGroupHeight=this.groupTouchParams.group.height;if(movingUp){if(targetGroupTop+draggedGroupHeight<clientY){return}}else{var targetGroupHeight=group.height;if(targetGroupTop+targetGroupHeight-draggedGroupHeight>clientY){return}}}if(group&&group!=this.groupTouchParams.group){var targetGroup=groupsData.get(group.groupId);var draggedGroup=groupsData.get(this.groupTouchParams.group.groupId);if(draggedGroup&&targetGroup){this.options.groupOrderSwap(draggedGroup,targetGroup,groupsData);groupsData.update(draggedGroup);groupsData.update(targetGroup)}var newOrder=groupsData.getIds({order:this.options.groupOrder});if(!util.equalArray(newOrder,this.groupTouchParams.originalOrder)){var origOrder=this.groupTouchParams.originalOrder;var draggedId=this.groupTouchParams.group.groupId;var numGroups=Math.min(origOrder.length,newOrder.length);var curPos=0;var newOffset=0;var orgOffset=0;while(curPos<numGroups){while(curPos+newOffset<numGroups&&curPos+orgOffset<numGroups&&newOrder[curPos+newOffset]==origOrder[curPos+orgOffset]){curPos++}if(curPos+newOffset>=numGroups){break}if(newOrder[curPos+newOffset]==draggedId){newOffset=1}else if(origOrder[curPos+orgOffset]==draggedId){orgOffset=1}else{var slippedPosition=newOrder.indexOf(origOrder[curPos+orgOffset]);var switchGroup=groupsData.get(newOrder[curPos+newOffset]);var shouldBeGroup=groupsData.get(origOrder[curPos+orgOffset]);this.options.groupOrderSwap(switchGroup,shouldBeGroup,groupsData);groupsData.update(switchGroup);groupsData.update(shouldBeGroup);var switchGroupId=newOrder[curPos+newOffset];newOrder[curPos+newOffset]=origOrder[curPos+orgOffset];newOrder[slippedPosition]=switchGroupId;curPos++}}}}}};ItemSet.prototype._onGroupDragEnd=function(event){if(this.options.groupEditable.order&&this.groupTouchParams.group){event.stopPropagation();var me=this;var id=me.groupTouchParams.group.groupId;var dataset=me.groupsData.getDataSet();var groupData=util.extend({},dataset.get(id));me.options.onMoveGroup(groupData,function(groupData){if(groupData){groupData[dataset._fieldId]=id;dataset.update(groupData)}else{var newOrder=dataset.getIds({order:me.options.groupOrder});if(!util.equalArray(newOrder,me.groupTouchParams.originalOrder)){var origOrder=me.groupTouchParams.originalOrder;var numGroups=Math.min(origOrder.length,newOrder.length);var curPos=0;while(curPos<numGroups){while(curPos<numGroups&&newOrder[curPos]==origOrder[curPos]){curPos++}if(curPos>=numGroups){break}var slippedPosition=newOrder.indexOf(origOrder[curPos]);var switchGroup=dataset.get(newOrder[curPos]);var shouldBeGroup=dataset.get(origOrder[curPos]);me.options.groupOrderSwap(switchGroup,shouldBeGroup,dataset);dataset.update(switchGroup);dataset.update(shouldBeGroup);var switchGroupId=newOrder[curPos];newOrder[curPos]=origOrder[curPos];newOrder[slippedPosition]=switchGroupId;curPos++}}}});me.body.emitter.emit(\"groupDragged\",{groupId:id})}};ItemSet.prototype._onSelectItem=function(event){if(!this.options.selectable)return;var ctrlKey=event.srcEvent&&(event.srcEvent.ctrlKey||event.srcEvent.metaKey);var shiftKey=event.srcEvent&&event.srcEvent.shiftKey;if(ctrlKey||shiftKey){this._onMultiSelectItem(event);return}var oldSelection=this.getSelection();var item=this.itemFromTarget(event);var selection=item?[item.id]:[];this.setSelection(selection);var newSelection=this.getSelection();if(newSelection.length>0||oldSelection.length>0){this.body.emitter.emit(\"select\",{items:newSelection,event:event})}};ItemSet.prototype._onMouseOver=function(event){var item=this.itemFromTarget(event);if(!item)return;var related=this.itemFromRelatedTarget(event);if(item===related){return}var title=item.getTitle();if(this.options.showTooltips&&title){if(this.popup==null){this.popup=new Popup(this.body.dom.root,this.options.tooltip.overflowMethod||\"flip\")}this.popup.setText(title);var container=this.body.dom.centerContainer;this.popup.setPosition(event.clientX-util.getAbsoluteLeft(container)+container.offsetLeft,event.clientY-util.getAbsoluteTop(container)+container.offsetTop);this.popup.show()}else{if(this.popup!=null){this.popup.hide()}}this.body.emitter.emit(\"itemover\",{item:item.id,event:event})};ItemSet.prototype._onMouseOut=function(event){var item=this.itemFromTarget(event);if(!item)return;var related=this.itemFromRelatedTarget(event);if(item===related){return}if(this.popup!=null){this.popup.hide()}this.body.emitter.emit(\"itemout\",{item:item.id,event:event})};ItemSet.prototype._onMouseMove=function(event){var item=this.itemFromTarget(event);if(!item)return;if(this.options.showTooltips&&this.options.tooltip.followMouse){if(this.popup){if(!this.popup.hidden){var container=this.body.dom.centerContainer;this.popup.setPosition(event.clientX-util.getAbsoluteLeft(container)+container.offsetLeft,event.clientY-util.getAbsoluteTop(container)+container.offsetTop);this.popup.show()}}}};ItemSet.prototype._onMouseWheel=function(event){if(this.touchParams.itemIsDragging){this._onDragEnd(event)}};ItemSet.prototype._onUpdateItem=function(item){if(!this.options.selectable)return;if(!this.options.editable.add)return;var me=this;if(item){var itemData=me.itemsData.get(item.id);this.options.onUpdate(itemData,function(itemData){if(itemData){me.itemsData.getDataSet().update(itemData)}})}};ItemSet.prototype._onDropObjectOnItem=function(event){var item=this.itemFromTarget(event);var objectData=JSON.parse(event.dataTransfer.getData(\"text\"));this.options.onDropObjectOnItem(objectData,item)};ItemSet.prototype._onAddItem=function(event){if(!this.options.selectable)return;if(!this.options.editable.add)return;var me=this;var snap=this.options.snap||null;var xAbs;var x;if(this.options.rtl){xAbs=util.getAbsoluteRight(this.dom.frame);x=xAbs-event.center.x}else{xAbs=util.getAbsoluteLeft(this.dom.frame);x=event.center.x-xAbs}var start=this.body.util.toTime(x);var scale=this.body.util.getScale();var step=this.body.util.getStep();var end;var newItemData;if(event.type==\"drop\"){newItemData=JSON.parse(event.dataTransfer.getData(\"text\"));newItemData.content=newItemData.content?newItemData.content:\"new item\";newItemData.start=newItemData.start?newItemData.start:snap?snap(start,scale,step):start;newItemData.type=newItemData.type||\"box\";newItemData[this.itemsData._fieldId]=newItemData.id||util.randomUUID();if(newItemData.type==\"range\"&&!newItemData.end){end=this.body.util.toTime(x+this.props.width/5);newItemData.end=snap?snap(end,scale,step):end}}else{newItemData={start:snap?snap(start,scale,step):start,content:\"new item\"};newItemData[this.itemsData._fieldId]=util.randomUUID();if(this.options.type===\"range\"){\nend=this.body.util.toTime(x+this.props.width/5);newItemData.end=snap?snap(end,scale,step):end}}var group=this.groupFromTarget(event);if(group){newItemData.group=group.groupId}newItemData=this._cloneItemData(newItemData);this.options.onAdd(newItemData,function(item){if(item){me.itemsData.getDataSet().add(item);if(event.type==\"drop\"){me.setSelection([item.id])}}})};ItemSet.prototype._onMultiSelectItem=function(event){if(!this.options.selectable)return;var item=this.itemFromTarget(event);if(item){var selection=this.options.multiselect?this.getSelection():[];var shiftKey=event.srcEvent&&event.srcEvent.shiftKey||false;if(shiftKey&&this.options.multiselect){var itemGroup=this.itemsData.get(item.id).group;var lastSelectedGroup=undefined;if(this.options.multiselectPerGroup){if(selection.length>0){lastSelectedGroup=this.itemsData.get(selection[0]).group}}if(!this.options.multiselectPerGroup||lastSelectedGroup==undefined||lastSelectedGroup==itemGroup){selection.push(item.id)}var range=ItemSet._getItemRange(this.itemsData.get(selection,this.itemOptions));if(!this.options.multiselectPerGroup||lastSelectedGroup==itemGroup){selection=[];for(var id in this.items){if(this.items.hasOwnProperty(id)){var _item=this.items[id];var start=_item.data.start;var end=_item.data.end!==undefined?_item.data.end:start;if(start>=range.min&&end<=range.max&&(!this.options.multiselectPerGroup||lastSelectedGroup==this.itemsData.get(_item.id).group)&&!(_item instanceof BackgroundItem)){selection.push(_item.id)}}}}}else{var index=selection.indexOf(item.id);if(index==-1){selection.push(item.id)}else{selection.splice(index,1)}}this.setSelection(selection);this.body.emitter.emit(\"select\",{items:this.getSelection(),event:event})}};ItemSet._getItemRange=function(itemsData){var max=null;var min=null;itemsData.forEach(function(data){if(min==null||data.start<min){min=data.start}if(data.end!=undefined){if(max==null||data.end>max){max=data.end}}else{if(max==null||data.start>max){max=data.start}}});return{min:min,max:max}};ItemSet.prototype.itemFromElement=function(element){var cur=element;while(cur){if(cur.hasOwnProperty(\"timeline-item\")){return cur[\"timeline-item\"]}cur=cur.parentNode}return null};ItemSet.prototype.itemFromTarget=function(event){return this.itemFromElement(event.target)};ItemSet.prototype.itemFromRelatedTarget=function(event){return this.itemFromElement(event.relatedTarget)};ItemSet.prototype.groupFromTarget=function(event){var clientY=event.center?event.center.y:event.clientY;var groupIds=this.groupIds;if(groupIds.length<=0&&this.groupsData){groupIds=this.groupsData.getIds({order:this.options.groupOrder})}for(var i=0;i<groupIds.length;i++){var groupId=groupIds[i];var group=this.groups[groupId];var foreground=group.dom.foreground;var top=util.getAbsoluteTop(foreground);if(clientY>top&&clientY<top+foreground.offsetHeight){return group}if(this.options.orientation.item===\"top\"){if(i===this.groupIds.length-1&&clientY>top){return group}}else{if(i===0&&clientY<top+foreground.offset){return group}}}return null};ItemSet.itemSetFromTarget=function(event){var target=event.target;while(target){if(target.hasOwnProperty(\"timeline-itemset\")){return target[\"timeline-itemset\"]}target=target.parentNode}return null};ItemSet.prototype._cloneItemData=function(itemData,type){var clone=util.extend({},itemData);if(!type){type=this.itemsData.getDataSet()._options.type}if(clone.start!=undefined){clone.start=util.convert(clone.start,type&&type.start||\"Date\")}if(clone.end!=undefined){clone.end=util.convert(clone.end,type&&type.end||\"Date\")}return clone};module.exports=ItemSet},function(module,exports,__webpack_require__){\"use strict\";var EPSILON=.001;exports.orderByStart=function(items){items.sort(function(a,b){return a.data.start-b.data.start})};exports.orderByEnd=function(items){items.sort(function(a,b){var aTime=\"end\"in a.data?a.data.end:a.data.start,bTime=\"end\"in b.data?b.data.end:b.data.start;return aTime-bTime})};exports.stack=function(items,margin,force){if(force){for(var i=0;i<items.length;i++){items[i].top=null}}for(var i=0;i<items.length;i++){var item=items[i];if(item.stack&&item.top===null){item.top=margin.axis;do{var collidingItem=null;for(var j=0,jj=items.length;j<jj;j++){var other=items[j];if(other.top!==null&&other!==item&&other.stack&&exports.collision(item,other,margin.item,other.options.rtl)){collidingItem=other;break}}if(collidingItem!=null){item.top=collidingItem.top+collidingItem.height+margin.item.vertical}}while(collidingItem)}}};exports.substack=function(items,margin,subgroup){for(var i=0;i<items.length;i++){items[i].top=null}var subgroupHeight=subgroup.height;for(i=0;i<items.length;i++){var item=items[i];if(item.stack&&item.top===null){item.top=item.baseTop;do{var collidingItem=null;for(var j=0,jj=items.length;j<jj;j++){var other=items[j];if(other.top!==null&&other!==item&&exports.collision(item,other,margin.item,other.options.rtl)){collidingItem=other;break}}if(collidingItem!=null){item.top=collidingItem.top+collidingItem.height+margin.item.vertical}if(item.top+item.height>subgroupHeight){subgroupHeight=item.top+item.height}}while(collidingItem)}}subgroup.height=subgroupHeight-subgroup.top+.5*margin.item.vertical};exports.nostack=function(items,margin,subgroups,stackSubgroups){for(var i=0;i<items.length;i++){if(items[i].data.subgroup==undefined){items[i].top=margin.item.vertical}else if(items[i].data.subgroup!==undefined&&stackSubgroups){var newTop=0;for(var subgroup in subgroups){if(subgroups.hasOwnProperty(subgroup)){if(subgroups[subgroup].visible==true&&subgroups[subgroup].index<subgroups[items[i].data.subgroup].index){newTop+=subgroups[subgroup].height;subgroups[items[i].data.subgroup].top=newTop}}}items[i].top=newTop+.5*margin.item.vertical}}if(!stackSubgroups){exports.stackSubgroups(items,margin,subgroups)}};exports.stackSubgroups=function(items,margin,subgroups){for(var subgroup in subgroups){if(subgroups.hasOwnProperty(subgroup)){subgroups[subgroup].top=0;do{var collidingItem=null;for(var otherSubgroup in subgroups){if(subgroups[otherSubgroup].top!==null&&otherSubgroup!==subgroup&&subgroups[subgroup].index>subgroups[otherSubgroup].index&&exports.collisionByTimes(subgroups[subgroup],subgroups[otherSubgroup])){collidingItem=subgroups[otherSubgroup];break}}if(collidingItem!=null){subgroups[subgroup].top=collidingItem.top+collidingItem.height}}while(collidingItem)}}for(var i=0;i<items.length;i++){if(items[i].data.subgroup!==undefined){items[i].top=subgroups[items[i].data.subgroup].top+.5*margin.item.vertical}}};exports.stackSubgroupsWithInnerStack=function(subgroupItems,margin,subgroups){var doSubStack=false;var subgroupOrder=[];for(var subgroup in subgroups){if(subgroups[subgroup].hasOwnProperty(\"index\")){subgroupOrder[subgroups[subgroup].index]=subgroup}else{subgroupOrder.push(subgroup)}}for(var j=0;j<subgroupOrder.length;j++){subgroup=subgroupOrder[j];if(subgroups.hasOwnProperty(subgroup)){doSubStack=doSubStack||subgroups[subgroup].stack;subgroups[subgroup].top=0;for(var otherSubgroup in subgroups){if(subgroups[otherSubgroup].visible&&subgroups[subgroup].index>subgroups[otherSubgroup].index){subgroups[subgroup].top+=subgroups[otherSubgroup].height}}var items=subgroupItems[subgroup];for(var i=0;i<items.length;i++){if(items[i].data.subgroup!==undefined){items[i].top=subgroups[items[i].data.subgroup].top+.5*margin.item.vertical;if(subgroups[subgroup].stack){items[i].baseTop=items[i].top}}}if(doSubStack&&subgroups[subgroup].stack){exports.substack(subgroupItems[subgroup],margin,subgroups[subgroup])}}}};exports.collision=function(a,b,margin,rtl){if(rtl){return a.right-margin.horizontal+EPSILON<b.right+b.width&&a.right+a.width+margin.horizontal-EPSILON>b.right&&a.top-margin.vertical+EPSILON<b.top+b.height&&a.top+a.height+margin.vertical-EPSILON>b.top}else{return a.left-margin.horizontal+EPSILON<b.left+b.width&&a.left+a.width+margin.horizontal-EPSILON>b.left&&a.top-margin.vertical+EPSILON<b.top+b.height&&a.top+a.height+margin.vertical-EPSILON>b.top}};exports.collisionByTimes=function(a,b){return a.start<=b.start&&a.end>=b.start&&a.top<b.top+b.height&&a.top+a.height>b.top||b.start<=a.start&&b.end>=a.start&&b.top<a.top+a.height&&b.top+b.height>a.top}},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);function BoxItem(data,conversion,options){this.props={dot:{width:0,height:0},line:{width:0,height:0}};this.options=options;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data)}}Item.call(this,data,conversion,options)}BoxItem.prototype=new Item(null,null,null);BoxItem.prototype.isVisible=function(range){var isVisible;var align=this.options.align;var widthInMs=this.width*range.getMillisecondsPerPixel();if(align==\"right\"){isVisible=this.data.start.getTime()>range.start&&this.data.start.getTime()-widthInMs<range.end}else if(align==\"left\"){isVisible=this.data.start.getTime()+widthInMs>range.start&&this.data.start.getTime()<range.end}else{isVisible=this.data.start.getTime()+widthInMs/2>range.start&&this.data.start.getTime()-widthInMs/2<range.end}return isVisible};BoxItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.box=document.createElement(\"DIV\");this.dom.content=document.createElement(\"DIV\");this.dom.content.className=\"vis-item-content\";this.dom.box.appendChild(this.dom.content);this.dom.line=document.createElement(\"DIV\");this.dom.line.className=\"vis-line\";this.dom.dot=document.createElement(\"DIV\");this.dom.dot.className=\"vis-dot\";this.dom.box[\"timeline-item\"]=this;this.dirty=true}};BoxItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.box.parentNode){var foreground=this.parent.dom.foreground;if(!foreground)throw new Error(\"Cannot redraw item: parent has no foreground container element\");foreground.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var background=this.parent.dom.background;if(!background)throw new Error(\"Cannot redraw item: parent has no background container element\");background.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var axis=this.parent.dom.axis;if(!background)throw new Error(\"Cannot redraw item: parent has no axis container element\");axis.appendChild(this.dom.dot)}this.displayed=true};BoxItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.box);this._updateStyle(this.dom.box);var editable=this.editable.updateTime||this.editable.updateGroup;var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(editable?\" vis-editable\":\" vis-readonly\");this.dom.box.className=\"vis-item vis-box\"+className;this.dom.line.className=\"vis-item vis-line\"+className;this.dom.dot.className=\"vis-item vis-dot\"+className}};BoxItem.prototype._getDomComponentsSizes=function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}};BoxItem.prototype._updateDomComponentsSizes=function(sizes){if(this.options.rtl){this.dom.box.style.right=\"0px\"}else{this.dom.box.style.left=\"0px\"}this.props.dot.height=sizes.dot.height;this.props.dot.width=sizes.dot.width;this.props.line.width=sizes.line.width;this.width=sizes.box.width;this.height=sizes.box.height;if(this.options.rtl){this.dom.box.style.right=sizes.previous.right}else{this.dom.box.style.left=sizes.previous.left}this.dirty=false};BoxItem.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box);this._repaintDragCenter();this._repaintDeleteButton(this.dom.box)};BoxItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};BoxItem.prototype.show=function(){if(!this.displayed){this.redraw()}};BoxItem.prototype.hide=function(){if(this.displayed){var dom=this.dom;if(dom.box.parentNode)dom.box.parentNode.removeChild(dom.box);if(dom.line.parentNode)dom.line.parentNode.removeChild(dom.line);if(dom.dot.parentNode)dom.dot.parentNode.removeChild(dom.dot);this.displayed=false}};BoxItem.prototype.repositionX=function(){var start=this.conversion.toScreen(this.data.start);var align=this.options.align;if(align==\"right\"){if(this.options.rtl){this.right=start-this.width;this.dom.box.style.right=this.right+\"px\";this.dom.line.style.right=start-this.props.line.width+\"px\";this.dom.dot.style.right=start-this.props.line.width/2-this.props.dot.width/2+\"px\"}else{this.left=start-this.width;this.dom.box.style.left=this.left+\"px\";this.dom.line.style.left=start-this.props.line.width+\"px\";this.dom.dot.style.left=start-this.props.line.width/2-this.props.dot.width/2+\"px\"}}else if(align==\"left\"){if(this.options.rtl){this.right=start;this.dom.box.style.right=this.right+\"px\";this.dom.line.style.right=start+\"px\";this.dom.dot.style.right=start+this.props.line.width/2-this.props.dot.width/2+\"px\"}else{this.left=start;this.dom.box.style.left=this.left+\"px\";this.dom.line.style.left=start+\"px\";this.dom.dot.style.left=start+this.props.line.width/2-this.props.dot.width/2+\"px\"}}else{if(this.options.rtl){this.right=start-this.width/2;this.dom.box.style.right=this.right+\"px\";this.dom.line.style.right=start-this.props.line.width+\"px\";this.dom.dot.style.right=start-this.props.dot.width/2+\"px\"}else{this.left=start-this.width/2;this.dom.box.style.left=this.left+\"px\";this.dom.line.style.left=start-this.props.line.width/2+\"px\";this.dom.dot.style.left=start-this.props.dot.width/2+\"px\"}}};BoxItem.prototype.repositionY=function(){var orientation=this.options.orientation.item;var box=this.dom.box;var line=this.dom.line;var dot=this.dom.dot;if(orientation==\"top\"){box.style.top=(this.top||0)+\"px\";line.style.top=\"0\";line.style.height=this.parent.top+this.top+1+\"px\";line.style.bottom=\"\"}else{var itemSetHeight=this.parent.itemSet.props.height;var lineHeight=itemSetHeight-this.parent.top-this.parent.height+this.top;box.style.top=(this.parent.height-this.top-this.height||0)+\"px\";line.style.top=itemSetHeight-lineHeight+\"px\";line.style.bottom=\"0\"}dot.style.top=-this.props.dot.height/2+\"px\"};BoxItem.prototype.getWidthLeft=function(){return this.width/2};BoxItem.prototype.getWidthRight=function(){return this.width/2};module.exports=BoxItem},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);function PointItem(data,conversion,options){this.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}};this.options=options;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data)}}Item.call(this,data,conversion,options)}PointItem.prototype=new Item(null,null,null);PointItem.prototype.isVisible=function(range){var widthInMs=this.width*range.getMillisecondsPerPixel();return this.data.start.getTime()+widthInMs>range.start&&this.data.start<range.end};PointItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.point=document.createElement(\"div\");this.dom.content=document.createElement(\"div\");this.dom.content.className=\"vis-item-content\";this.dom.point.appendChild(this.dom.content);this.dom.dot=document.createElement(\"div\");this.dom.point.appendChild(this.dom.dot);this.dom.point[\"timeline-item\"]=this;this.dirty=true}};PointItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.point.parentNode){var foreground=this.parent.dom.foreground;if(!foreground){throw new Error(\"Cannot redraw item: parent has no foreground container element\")}foreground.appendChild(this.dom.point)}this.displayed=true};PointItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.point);this._updateStyle(this.dom.point);var editable=this.editable.updateTime||this.editable.updateGroup;var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(editable?\" vis-editable\":\" vis-readonly\");this.dom.point.className=\"vis-item vis-point\"+className;this.dom.dot.className=\"vis-item vis-dot\"+className}};PointItem.prototype._getDomComponentsSizes=function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}};PointItem.prototype._updateDomComponentsSizes=function(sizes){this.props.dot.width=sizes.dot.width;this.props.dot.height=sizes.dot.height;this.props.content.height=sizes.content.height;if(this.options.rtl){this.dom.content.style.marginRight=2*this.props.dot.width+\"px\"}else{this.dom.content.style.marginLeft=2*this.props.dot.width+\"px\"}this.width=sizes.point.width;this.height=sizes.point.height;this.dom.dot.style.top=(this.height-this.props.dot.height)/2+\"px\";if(this.options.rtl){this.dom.dot.style.right=this.props.dot.width/2+\"px\"}else{this.dom.dot.style.left=this.props.dot.width/2+\"px\"}this.dirty=false};PointItem.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point);this._repaintDragCenter();this._repaintDeleteButton(this.dom.point)};PointItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};PointItem.prototype.show=function(){if(!this.displayed){this.redraw()}};PointItem.prototype.hide=function(){if(this.displayed){if(this.dom.point.parentNode){this.dom.point.parentNode.removeChild(this.dom.point)}this.displayed=false}};PointItem.prototype.repositionX=function(){var start=this.conversion.toScreen(this.data.start);if(this.options.rtl){this.right=start-this.props.dot.width;this.dom.point.style.right=this.right+\"px\"}else{this.left=start-this.props.dot.width;this.dom.point.style.left=this.left+\"px\"}};PointItem.prototype.repositionY=function(){var orientation=this.options.orientation.item;var point=this.dom.point;if(orientation==\"top\"){point.style.top=this.top+\"px\"}else{point.style.top=this.parent.height-this.top-this.height+\"px\"}};PointItem.prototype.getWidthLeft=function(){return this.props.dot.width};PointItem.prototype.getWidthRight=function(){return this.props.dot.width};module.exports=PointItem},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);var BackgroundGroup=__webpack_require__(69);var RangeItem=__webpack_require__(70);function BackgroundItem(data,conversion,options){this.props={content:{width:0}};this.overflow=false;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data.id)}if(data.end==undefined){throw new Error('Property \"end\" missing in item '+data.id)}}Item.call(this,data,conversion,options)}BackgroundItem.prototype=new Item(null,null,null);BackgroundItem.prototype.baseClassName=\"vis-item vis-background\";BackgroundItem.prototype.stack=false;BackgroundItem.prototype.isVisible=function(range){return this.data.start<range.end&&this.data.end>range.start};BackgroundItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.box=document.createElement(\"div\");this.dom.frame=document.createElement(\"div\");this.dom.frame.className=\"vis-item-overflow\";this.dom.box.appendChild(this.dom.frame);this.dom.content=document.createElement(\"div\");this.dom.content.className=\"vis-item-content\";this.dom.frame.appendChild(this.dom.content);this.dirty=true}};BackgroundItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.box.parentNode){var background=this.parent.dom.background;if(!background){throw new Error(\"Cannot redraw item: parent has no background container element\")}background.appendChild(this.dom.box)}this.displayed=true};BackgroundItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.content);this._updateStyle(this.dom.box);var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\");this.dom.box.className=this.baseClassName+className}};BackgroundItem.prototype._getDomComponentsSizes=function(){this.overflow=window.getComputedStyle(this.dom.content).overflow!==\"hidden\";return{content:{width:this.dom.content.offsetWidth}}};BackgroundItem.prototype._updateDomComponentsSizes=function(sizes){this.props.content.width=sizes.content.width;this.height=0;this.dirty=false};BackgroundItem.prototype._repaintDomAdditionals=function(){};BackgroundItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes.bind(this)()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};BackgroundItem.prototype.show=RangeItem.prototype.show;BackgroundItem.prototype.hide=RangeItem.prototype.hide;BackgroundItem.prototype.repositionX=RangeItem.prototype.repositionX;BackgroundItem.prototype.repositionY=function(margin){var height;var orientation=this.options.orientation.item;if(this.data.subgroup!==undefined){var itemSubgroup=this.data.subgroup;this.dom.box.style.height=this.parent.subgroups[itemSubgroup].height+\"px\";if(orientation==\"top\"){this.dom.box.style.top=this.parent.top+this.parent.subgroups[itemSubgroup].top+\"px\"}else{this.dom.box.style.top=this.parent.top+this.parent.height-this.parent.subgroups[itemSubgroup].top-this.parent.subgroups[itemSubgroup].height+\"px\"}this.dom.box.style.bottom=\"\"}else{if(this.parent instanceof BackgroundGroup){height=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height);this.dom.box.style.bottom=orientation==\"bottom\"?\"0\":\"\";this.dom.box.style.top=orientation==\"top\"?\"0\":\"\"}else{height=this.parent.height;this.dom.box.style.top=this.parent.top+\"px\";this.dom.box.style.bottom=\"\"}}this.dom.box.style.height=height+\"px\"};module.exports=BackgroundItem},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Popup=function(){function Popup(container,overflowMethod){(0,_classCallCheck3[\"default\"])(this,Popup);this.container=container;this.overflowMethod=overflowMethod||\"cap\";this.x=0;this.y=0;this.padding=5;this.hidden=false;this.frame=document.createElement(\"div\");this.frame.className=\"vis-tooltip\";this.container.appendChild(this.frame)}(0,_createClass3[\"default\"])(Popup,[{key:\"setPosition\",value:function setPosition(x,y){this.x=parseInt(x);this.y=parseInt(y)}},{key:\"setText\",value:function setText(content){if(content instanceof Element){this.frame.innerHTML=\"\";this.frame.appendChild(content)}else{this.frame.innerHTML=content}}},{key:\"show\",value:function show(doShow){if(doShow===undefined){doShow=true}if(doShow===true){var height=this.frame.clientHeight;var width=this.frame.clientWidth;var maxHeight=this.frame.parentNode.clientHeight;var maxWidth=this.frame.parentNode.clientWidth;var left=0,top=0;if(this.overflowMethod==\"flip\"){var isLeft=false,isTop=true;if(this.y-height<this.padding){isTop=false}if(this.x+width>maxWidth-this.padding){isLeft=true}if(isLeft){left=this.x-width}else{left=this.x}if(isTop){top=this.y-height}else{top=this.y}}else{top=this.y-height;if(top+height+this.padding>maxHeight){top=maxHeight-height-this.padding}if(top<this.padding){top=this.padding}left=this.x;if(left+width+this.padding>maxWidth){left=maxWidth-width-this.padding}if(left<this.padding){left=this.padding}}this.frame.style.left=left+\"px\";this.frame.style.top=top+\"px\";this.frame.style.visibility=\"visible\";this.hidden=false}else{this.hide()}}},{key:\"hide\",value:function hide(){this.hidden=true;this.frame.style.left=\"0\";this.frame.style.top=\"0\";this.frame.style.visibility=\"hidden\"}},{key:\"destroy\",value:function destroy(){this.frame.parentNode.removeChild(this.frame)}}]);return Popup}();exports[\"default\"]=Popup},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var array=\"array\";var date=\"date\";var object=\"object\";var dom=\"dom\";var moment=\"moment\";var any=\"any\";var allOptions={configure:{enabled:{boolean:bool},filter:{boolean:bool,function:\"function\"},container:{dom:dom},__type__:{object:object,boolean:bool,function:\"function\"}},align:{string:string},rtl:{boolean:bool,undefined:\"undefined\"},rollingMode:{follow:{boolean:bool},offset:{number:number,undefined:\"undefined\"},__type__:{object:object}},verticalScroll:{boolean:bool,undefined:\"undefined\"},horizontalScroll:{boolean:bool,undefined:\"undefined\"},autoResize:{boolean:bool},throttleRedraw:{number:number},clickToUse:{boolean:bool},dataAttributes:{string:string,array:array},editable:{add:{boolean:bool,undefined:\"undefined\"},remove:{boolean:bool,undefined:\"undefined\"},updateGroup:{boolean:bool,undefined:\"undefined\"},updateTime:{boolean:bool,undefined:\"undefined\"},overrideItems:{boolean:bool,undefined:\"undefined\"},__type__:{boolean:bool,object:object}},end:{number:number,date:date,string:string,moment:moment},format:{minorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},week:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object,function:\"function\"}},majorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},week:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object,function:\"function\"}},__type__:{object:object}},moment:{function:\"function\"},groupOrder:{string:string,function:\"function\"},groupEditable:{add:{boolean:bool,undefined:\"undefined\"},remove:{boolean:bool,undefined:\"undefined\"},order:{boolean:bool,undefined:\"undefined\"},__type__:{boolean:bool,object:object}},groupOrderSwap:{function:\"function\"},height:{string:string,number:number},hiddenDates:{start:{date:date,number:number,string:string,moment:moment},end:{date:date,number:number,string:string,moment:moment},repeat:{string:string},__type__:{object:object,array:array}},itemsAlwaysDraggable:{item:{boolean:bool,undefined:\"undefined\"},range:{boolean:bool,undefined:\"undefined\"},__type__:{boolean:bool,object:object}},limitSize:{boolean:bool},locale:{string:string},locales:{__any__:{any:any},__type__:{object:object}},margin:{axis:{number:number},item:{horizontal:{number:number,undefined:\"undefined\"},vertical:{number:number,undefined:\"undefined\"},__type__:{object:object,number:number}},__type__:{object:object,number:number}},max:{date:date,number:number,string:string,moment:moment},maxHeight:{number:number,string:string},maxMinorChars:{number:number},min:{date:date,number:number,string:string,moment:moment},minHeight:{number:number,string:string},moveable:{boolean:bool},multiselect:{boolean:bool},multiselectPerGroup:{boolean:bool},onAdd:{function:\"function\"},onDropObjectOnItem:{function:\"function\"},onUpdate:{function:\"function\"},onMove:{function:\"function\"},onMoving:{function:\"function\"},onRemove:{function:\"function\"},onAddGroup:{function:\"function\"},onMoveGroup:{function:\"function\"},onRemoveGroup:{function:\"function\"},onInitialDrawComplete:{function:\"function\"},order:{function:\"function\"},orientation:{axis:{string:string,undefined:\"undefined\"},item:{string:string,undefined:\"undefined\"},__type__:{string:string,object:object}},selectable:{boolean:bool},showCurrentTime:{boolean:bool},showMajorLabels:{boolean:bool},showMinorLabels:{boolean:bool},stack:{boolean:bool},stackSubgroups:{boolean:bool},snap:{function:\"function\",null:\"null\"},start:{date:date,number:number,string:string,moment:moment},template:{function:\"function\"},groupTemplate:{function:\"function\"},visibleFrameTemplate:{string:string,function:\"function\"},showTooltips:{boolean:bool},tooltip:{followMouse:{boolean:bool},overflowMethod:{string:[\"cap\",\"flip\"]},__type__:{object:object}},tooltipOnItemUpdateTime:{template:{function:\"function\"},__type__:{boolean:bool,object:object}},timeAxis:{scale:{string:string,undefined:\"undefined\"},step:{number:number,undefined:\"undefined\"},__type__:{object:object}},type:{string:string},width:{string:string,number:number},zoomable:{boolean:bool},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"]},zoomMax:{number:number},zoomMin:{number:number},__type__:{object:object}};var configureOptions={global:{align:[\"center\",\"left\",\"right\"],direction:false,autoResize:true,clickToUse:false,editable:{add:false,remove:false,updateGroup:false,updateTime:false},end:\"\",format:{minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",week:\"w\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",week:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}},groupsDraggable:false,height:\"\",locale:\"\",margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:\"\",maxHeight:\"\",maxMinorChars:[7,0,20,1],min:\"\",minHeight:\"\",moveable:false,multiselect:false,multiselectPerGroup:false,orientation:{axis:[\"both\",\"bottom\",\"top\"],item:[\"bottom\",\"top\"]},selectable:true,showCurrentTime:false,showMajorLabels:true,showMinorLabels:true,stack:true,stackSubgroups:true,start:\"\",showTooltips:true,tooltip:{followMouse:false,overflowMethod:\"flip\"},tooltipOnItemUpdateTime:false,type:[\"box\",\"point\",\"range\",\"background\"],width:\"100%\",zoomable:true,zoomKey:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1]}};exports.allOptions=allOptions;exports.configureOptions=configureOptions},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DOMutil=__webpack_require__(14);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Component=__webpack_require__(16);var DataAxis=__webpack_require__(107);var GraphGroup=__webpack_require__(109);var Legend=__webpack_require__(112);var Bars=__webpack_require__(110)\n;var Lines=__webpack_require__(111);var Points=__webpack_require__(72);var UNGROUPED=\"__ungrouped__\";function LineGraph(body,options){this.id=util.randomUUID();this.body=body;this.defaultOptions={yAxisOrientation:\"left\",defaultGroup:\"default\",sort:true,sampling:true,stack:false,graphHeight:\"400px\",shaded:{enabled:false,orientation:\"bottom\"},style:\"line\",barChart:{width:50,sideBySide:false,align:\"center\"},interpolation:{enabled:true,parametrization:\"centripetal\",alpha:.5},drawPoints:{enabled:true,size:6,style:\"square\"},dataAxis:{},legend:{},groups:{visibility:{}}};this.options=util.extend({},this.defaultOptions);this.dom={};this.props={};this.hammer=null;this.groups={};this.abortedGraphUpdate=false;this.updateSVGheight=false;this.updateSVGheightOnResize=false;this.forceGraphUpdate=true;var me=this;this.itemsData=null;this.groupsData=null;this.itemListeners={add:function add(event,params,senderId){me._onAdd(params.items)},update:function update(event,params,senderId){me._onUpdate(params.items)},remove:function remove(event,params,senderId){me._onRemove(params.items)}};this.groupListeners={add:function add(event,params,senderId){me._onAddGroups(params.items)},update:function update(event,params,senderId){me._onUpdateGroups(params.items)},remove:function remove(event,params,senderId){me._onRemoveGroups(params.items)}};this.items={};this.selection=[];this.lastStart=this.body.range.start;this.touchParams={};this.svgElements={};this.setOptions(options);this.groupsUsingDefaultStyles=[0];this.body.emitter.on(\"rangechanged\",function(){me.lastStart=me.body.range.start;me.svg.style.left=util.option.asSize(-me.props.width);me.forceGraphUpdate=true;me.redraw.call(me)});this._create();this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}LineGraph.prototype=new Component;LineGraph.prototype._create=function(){var frame=document.createElement(\"div\");frame.className=\"vis-line-graph\";this.dom.frame=frame;this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.svg.style.position=\"relative\";this.svg.style.height=(\"\"+this.options.graphHeight).replace(\"px\",\"\")+\"px\";this.svg.style.display=\"block\";frame.appendChild(this.svg);this.options.dataAxis.orientation=\"left\";this.yAxisLeft=new DataAxis(this.body,this.options.dataAxis,this.svg,this.options.groups);this.options.dataAxis.orientation=\"right\";this.yAxisRight=new DataAxis(this.body,this.options.dataAxis,this.svg,this.options.groups);delete this.options.dataAxis.orientation;this.legendLeft=new Legend(this.body,this.options.legend,\"left\",this.options.groups);this.legendRight=new Legend(this.body,this.options.legend,\"right\",this.options.groups);this.show()};LineGraph.prototype.setOptions=function(options){if(options){var fields=[\"sampling\",\"defaultGroup\",\"stack\",\"height\",\"graphHeight\",\"yAxisOrientation\",\"style\",\"barChart\",\"dataAxis\",\"sort\",\"groups\"];if(options.graphHeight===undefined&&options.height!==undefined){this.updateSVGheight=true;this.updateSVGheightOnResize=true}else if(this.body.domProps.centerContainer.height!==undefined&&options.graphHeight!==undefined){if(parseInt((options.graphHeight+\"\").replace(\"px\",\"\"))<this.body.domProps.centerContainer.height){this.updateSVGheight=true}}util.selectiveDeepExtend(fields,this.options,options);util.mergeOptions(this.options,options,\"interpolation\");util.mergeOptions(this.options,options,\"drawPoints\");util.mergeOptions(this.options,options,\"shaded\");util.mergeOptions(this.options,options,\"legend\");if(options.interpolation){if((0,_typeof3[\"default\"])(options.interpolation)==\"object\"){if(options.interpolation.parametrization){if(options.interpolation.parametrization==\"uniform\"){this.options.interpolation.alpha=0}else if(options.interpolation.parametrization==\"chordal\"){this.options.interpolation.alpha=1}else{this.options.interpolation.parametrization=\"centripetal\";this.options.interpolation.alpha=.5}}}}if(this.yAxisLeft){if(options.dataAxis!==undefined){this.yAxisLeft.setOptions(this.options.dataAxis);this.yAxisRight.setOptions(this.options.dataAxis)}}if(this.legendLeft){if(options.legend!==undefined){this.legendLeft.setOptions(this.options.legend);this.legendRight.setOptions(this.options.legend)}}if(this.groups.hasOwnProperty(UNGROUPED)){this.groups[UNGROUPED].setOptions(options)}}if(this.dom.frame){this.forceGraphUpdate=true;this.body.emitter.emit(\"_change\",{queue:true})}};LineGraph.prototype.hide=function(){if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}};LineGraph.prototype.show=function(){if(!this.dom.frame.parentNode){this.body.dom.center.appendChild(this.dom.frame)}};LineGraph.prototype.setItems=function(items){var me=this,ids,oldItemsData=this.itemsData;if(!items){this.itemsData=null}else if(items instanceof DataSet||items instanceof DataView){this.itemsData=items}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(oldItemsData){util.forEach(this.itemListeners,function(callback,event){oldItemsData.off(event,callback)});ids=oldItemsData.getIds();this._onRemove(ids)}if(this.itemsData){var id=this.id;util.forEach(this.itemListeners,function(callback,event){me.itemsData.on(event,callback,id)});ids=this.itemsData.getIds();this._onAdd(ids)}};LineGraph.prototype.setGroups=function(groups){var me=this;var ids;if(this.groupsData){util.forEach(this.groupListeners,function(callback,event){me.groupsData.off(event,callback)});ids=this.groupsData.getIds();this.groupsData=null;for(var i=0;i<ids.length;i++){this._removeGroup(ids[i])}}if(!groups){this.groupsData=null}else if(groups instanceof DataSet||groups instanceof DataView){this.groupsData=groups}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(this.groupsData){var id=this.id;util.forEach(this.groupListeners,function(callback,event){me.groupsData.on(event,callback,id)});ids=this.groupsData.getIds();this._onAddGroups(ids)}};LineGraph.prototype._onUpdate=function(ids){this._updateAllGroupData(ids)};LineGraph.prototype._onAdd=function(ids){this._onUpdate(ids)};LineGraph.prototype._onRemove=function(ids){this._onUpdate(ids)};LineGraph.prototype._onUpdateGroups=function(groupIds){this._updateAllGroupData(null,groupIds)};LineGraph.prototype._onAddGroups=function(groupIds){this._onUpdateGroups(groupIds)};LineGraph.prototype._onRemoveGroups=function(groupIds){for(var i=0;i<groupIds.length;i++){this._removeGroup(groupIds[i])}this.forceGraphUpdate=true;this.body.emitter.emit(\"_change\",{queue:true})};LineGraph.prototype._removeGroup=function(groupId){if(this.groups.hasOwnProperty(groupId)){if(this.groups[groupId].options.yAxisOrientation==\"right\"){this.yAxisRight.removeGroup(groupId);this.legendRight.removeGroup(groupId);this.legendRight.redraw()}else{this.yAxisLeft.removeGroup(groupId);this.legendLeft.removeGroup(groupId);this.legendLeft.redraw()}delete this.groups[groupId]}};LineGraph.prototype._updateGroup=function(group,groupId){if(!this.groups.hasOwnProperty(groupId)){this.groups[groupId]=new GraphGroup(group,groupId,this.options,this.groupsUsingDefaultStyles);if(this.groups[groupId].options.yAxisOrientation==\"right\"){this.yAxisRight.addGroup(groupId,this.groups[groupId]);this.legendRight.addGroup(groupId,this.groups[groupId])}else{this.yAxisLeft.addGroup(groupId,this.groups[groupId]);this.legendLeft.addGroup(groupId,this.groups[groupId])}}else{this.groups[groupId].update(group);if(this.groups[groupId].options.yAxisOrientation==\"right\"){this.yAxisRight.updateGroup(groupId,this.groups[groupId]);this.legendRight.updateGroup(groupId,this.groups[groupId]);this.yAxisLeft.removeGroup(groupId);this.legendLeft.removeGroup(groupId)}else{this.yAxisLeft.updateGroup(groupId,this.groups[groupId]);this.legendLeft.updateGroup(groupId,this.groups[groupId]);this.yAxisRight.removeGroup(groupId);this.legendRight.removeGroup(groupId)}}this.legendLeft.redraw();this.legendRight.redraw()};LineGraph.prototype._updateAllGroupData=function(ids,groupIds){if(this.itemsData!=null){var groupsContent={};var items=this.itemsData.get();var fieldId=this.itemsData._fieldId;var idMap={};if(ids){ids.map(function(id){idMap[id]=id})}var groupCounts={};for(var i=0;i<items.length;i++){var item=items[i];var groupId=item.group;if(groupId===null||groupId===undefined){groupId=UNGROUPED}groupCounts.hasOwnProperty(groupId)?groupCounts[groupId]++:groupCounts[groupId]=1}var existingItemsMap={};if(!groupIds&&ids){for(groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){group=this.groups[groupId];var existing_items=group.getItems();groupsContent[groupId]=existing_items.filter(function(item){existingItemsMap[item[fieldId]]=item[fieldId];return item[fieldId]!==idMap[item[fieldId]]});var newLength=groupCounts[groupId];groupCounts[groupId]-=groupsContent[groupId].length;if(groupsContent[groupId].length<newLength){groupsContent[groupId][newLength-1]={}}}}}for(i=0;i<items.length;i++){item=items[i];groupId=item.group;if(groupId===null||groupId===undefined){groupId=UNGROUPED}if(!groupIds&&ids&&item[fieldId]!==idMap[item[fieldId]]&&existingItemsMap.hasOwnProperty(item[fieldId])){continue}if(!groupsContent.hasOwnProperty(groupId)){groupsContent[groupId]=new Array(groupCounts[groupId])}var extended=util.bridgeObject(item);extended.x=util.convert(item.x,\"Date\");extended.end=util.convert(item.end,\"Date\");extended.orginalY=item.y;extended.y=Number(item.y);extended[fieldId]=item[fieldId];var index=groupsContent[groupId].length-groupCounts[groupId]--;groupsContent[groupId][index]=extended}for(groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){if(!groupsContent.hasOwnProperty(groupId)){groupsContent[groupId]=new Array(0)}}}for(groupId in groupsContent){if(groupsContent.hasOwnProperty(groupId)){if(groupsContent[groupId].length==0){if(this.groups.hasOwnProperty(groupId)){this._removeGroup(groupId)}}else{var group=undefined;if(this.groupsData!=undefined){group=this.groupsData.get(groupId)}if(group==undefined){group={id:groupId,content:this.options.defaultGroup+groupId}}this._updateGroup(group,groupId);this.groups[groupId].setItems(groupsContent[groupId])}}}this.forceGraphUpdate=true;this.body.emitter.emit(\"_change\",{queue:true})}};LineGraph.prototype.redraw=function(){var resized=false;this.props.width=this.dom.frame.offsetWidth;this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom;resized=this._isResized()||resized;var visibleInterval=this.body.range.end-this.body.range.start;var zoomed=visibleInterval!=this.lastVisibleInterval;this.lastVisibleInterval=visibleInterval;if(resized==true){this.svg.style.width=util.option.asSize(3*this.props.width);this.svg.style.left=util.option.asSize(-this.props.width);if((this.options.height+\"\").indexOf(\"%\")!=-1||this.updateSVGheightOnResize==true){this.updateSVGheight=true}}if(this.updateSVGheight==true){if(this.options.graphHeight!=this.props.height+\"px\"){this.options.graphHeight=this.props.height+\"px\";this.svg.style.height=this.props.height+\"px\"}this.updateSVGheight=false}else{this.svg.style.height=(\"\"+this.options.graphHeight).replace(\"px\",\"\")+\"px\"}if(resized==true||zoomed==true||this.abortedGraphUpdate==true||this.forceGraphUpdate==true){resized=this._updateGraph()||resized;this.forceGraphUpdate=false}else{if(this.lastStart!=0){var offset=this.body.range.start-this.lastStart;var range=this.body.range.end-this.body.range.start;if(this.props.width!=0){var rangePerPixelInv=this.props.width/range;var xOffset=offset*rangePerPixelInv;this.svg.style.left=-this.props.width-xOffset+\"px\"}}}this.legendLeft.redraw();this.legendRight.redraw();return resized};LineGraph.prototype._getSortedGroupIds=function(){var grouplist=[];for(var groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){var group=this.groups[groupId];if(group.visible==true&&(this.options.groups.visibility[groupId]===undefined||this.options.groups.visibility[groupId]==true)){grouplist.push({id:groupId,zIndex:group.options.zIndex})}}}util.insertSort(grouplist,function(a,b){var az=a.zIndex;var bz=b.zIndex;if(az===undefined)az=0;if(bz===undefined)bz=0;return az==bz?0:az<bz?-1:1});var groupIds=new Array(grouplist.length);for(var i=0;i<grouplist.length;i++){groupIds[i]=grouplist[i].id}return groupIds};LineGraph.prototype._updateGraph=function(){DOMutil.prepareElements(this.svgElements);if(this.props.width!=0&&this.itemsData!=null){var group,i;var groupRanges={};var changeCalled=false;var minDate=this.body.util.toGlobalTime(-this.body.domProps.root.width);var maxDate=this.body.util.toGlobalTime(2*this.body.domProps.root.width);var groupIds=this._getSortedGroupIds();if(groupIds.length>0){var groupsData={};this._getRelevantData(groupIds,groupsData,minDate,maxDate);this._applySampling(groupIds,groupsData);for(i=0;i<groupIds.length;i++){this._convertXcoordinates(groupsData[groupIds[i]])}this._getYRanges(groupIds,groupsData,groupRanges);changeCalled=this._updateYAxis(groupIds,groupRanges);if(changeCalled==true){DOMutil.cleanupElements(this.svgElements);this.abortedGraphUpdate=true;return true}this.abortedGraphUpdate=false;var below=undefined;for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(this.options.stack===true&&this.options.style===\"line\"){if(group.options.excludeFromStacking==undefined||!group.options.excludeFromStacking){if(below!=undefined){this._stack(groupsData[group.id],groupsData[below.id]);if(group.options.shaded.enabled==true&&group.options.shaded.orientation!==\"group\"){if(group.options.shaded.orientation==\"top\"&&below.options.shaded.orientation!==\"group\"){below.options.shaded.orientation=\"group\";below.options.shaded.groupId=group.id}else{group.options.shaded.orientation=\"group\";group.options.shaded.groupId=below.id}}}below=group}}this._convertYcoordinates(groupsData[groupIds[i]],group)}var paths={};for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(group.options.style===\"line\"&&group.options.shaded.enabled==true){var dataset=groupsData[groupIds[i]];if(dataset==null||dataset.length==0){continue}if(!paths.hasOwnProperty(groupIds[i])){paths[groupIds[i]]=Lines.calcPath(dataset,group)}if(group.options.shaded.orientation===\"group\"){var subGroupId=group.options.shaded.groupId;if(groupIds.indexOf(subGroupId)===-1){console.log(group.id+\": Unknown shading group target given:\"+subGroupId);continue}if(!paths.hasOwnProperty(subGroupId)){paths[subGroupId]=Lines.calcPath(groupsData[subGroupId],this.groups[subGroupId])}Lines.drawShading(paths[groupIds[i]],group,paths[subGroupId],this.framework)}else{Lines.drawShading(paths[groupIds[i]],group,undefined,this.framework)}}}Bars.draw(groupIds,groupsData,this.framework);for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(groupsData[groupIds[i]].length>0){switch(group.options.style){case\"line\":if(!paths.hasOwnProperty(groupIds[i])){paths[groupIds[i]]=Lines.calcPath(groupsData[groupIds[i]],group)}Lines.draw(paths[groupIds[i]],group,this.framework);case\"point\":case\"points\":if(group.options.style==\"point\"||group.options.style==\"points\"||group.options.drawPoints.enabled==true){Points.draw(groupsData[groupIds[i]],group,this.framework)}break;case\"bar\":default:}}}}}DOMutil.cleanupElements(this.svgElements);return false};LineGraph.prototype._stack=function(data,subData){var index,dx,dy,subPrevPoint,subNextPoint;index=0;for(var j=0;j<data.length;j++){subPrevPoint=undefined;subNextPoint=undefined;for(var k=index;k<subData.length;k++){if(subData[k].x===data[j].x){subPrevPoint=subData[k];subNextPoint=subData[k];index=k;break}else if(subData[k].x>data[j].x){subNextPoint=subData[k];if(k==0){subPrevPoint=subNextPoint}else{subPrevPoint=subData[k-1]}index=k;break}}if(subNextPoint===undefined){subPrevPoint=subData[subData.length-1];subNextPoint=subData[subData.length-1]}dx=subNextPoint.x-subPrevPoint.x;dy=subNextPoint.y-subPrevPoint.y;if(dx==0){data[j].y=data[j].orginalY+subNextPoint.y}else{data[j].y=data[j].orginalY+dy/dx*(data[j].x-subPrevPoint.x)+subPrevPoint.y}}};LineGraph.prototype._getRelevantData=function(groupIds,groupsData,minDate,maxDate){var group,i,j,item;if(groupIds.length>0){for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];var itemsData=group.getItems();if(group.options.sort==true){var dateComparator=function dateComparator(a,b){return a.getTime()==b.getTime()?0:a<b?-1:1};var first=Math.max(0,util.binarySearchValue(itemsData,minDate,\"x\",\"before\",dateComparator));var last=Math.min(itemsData.length,util.binarySearchValue(itemsData,maxDate,\"x\",\"after\",dateComparator)+1);if(last<=0){last=itemsData.length}var dataContainer=new Array(last-first);for(j=first;j<last;j++){item=group.itemsData[j];dataContainer[j-first]=item}groupsData[groupIds[i]]=dataContainer}else{groupsData[groupIds[i]]=group.itemsData}}}};LineGraph.prototype._applySampling=function(groupIds,groupsData){var group;if(groupIds.length>0){for(var i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(group.options.sampling==true){var dataContainer=groupsData[groupIds[i]];if(dataContainer.length>0){var increment=1;var amountOfPoints=dataContainer.length;var xDistance=this.body.util.toGlobalScreen(dataContainer[dataContainer.length-1].x)-this.body.util.toGlobalScreen(dataContainer[0].x);var pointsPerPixel=amountOfPoints/xDistance;increment=Math.min(Math.ceil(.2*amountOfPoints),Math.max(1,Math.round(pointsPerPixel)));var sampledData=new Array(amountOfPoints);for(var j=0;j<amountOfPoints;j+=increment){var idx=Math.round(j/increment);sampledData[idx]=dataContainer[j]}groupsData[groupIds[i]]=sampledData.splice(0,Math.round(amountOfPoints/increment))}}}}};LineGraph.prototype._getYRanges=function(groupIds,groupsData,groupRanges){var groupData,group,i;var combinedDataLeft=[];var combinedDataRight=[];var options;if(groupIds.length>0){for(i=0;i<groupIds.length;i++){groupData=groupsData[groupIds[i]];options=this.groups[groupIds[i]].options;if(groupData.length>0){group=this.groups[groupIds[i]];if(options.stack===true&&options.style===\"bar\"){if(options.yAxisOrientation===\"left\"){combinedDataLeft=combinedDataLeft.concat(groupData)}else{combinedDataRight=combinedDataRight.concat(groupData)}}else{groupRanges[groupIds[i]]=group.getYRange(groupData,groupIds[i])}}}Bars.getStackedYRange(combinedDataLeft,groupRanges,groupIds,\"__barStackLeft\",\"left\");Bars.getStackedYRange(combinedDataRight,groupRanges,groupIds,\"__barStackRight\",\"right\")}};LineGraph.prototype._updateYAxis=function(groupIds,groupRanges){var resized=false;var yAxisLeftUsed=false;var yAxisRightUsed=false;var minLeft=1e9,minRight=1e9,maxLeft=-1e9,maxRight=-1e9,minVal,maxVal;if(groupIds.length>0){for(var i=0;i<groupIds.length;i++){var group=this.groups[groupIds[i]];if(group&&group.options.yAxisOrientation!=\"right\"){yAxisLeftUsed=true;minLeft=1e9;maxLeft=-1e9}else if(group&&group.options.yAxisOrientation){yAxisRightUsed=true;minRight=1e9;maxRight=-1e9}}for(i=0;i<groupIds.length;i++){if(groupRanges.hasOwnProperty(groupIds[i])){if(groupRanges[groupIds[i]].ignore!==true){minVal=groupRanges[groupIds[i]].min;maxVal=groupRanges[groupIds[i]].max;if(groupRanges[groupIds[i]].yAxisOrientation!=\"right\"){yAxisLeftUsed=true;minLeft=minLeft>minVal?minVal:minLeft;maxLeft=maxLeft<maxVal?maxVal:maxLeft}else{yAxisRightUsed=true;minRight=minRight>minVal?minVal:minRight;maxRight=maxRight<maxVal?maxVal:maxRight}}}}if(yAxisLeftUsed==true){this.yAxisLeft.setRange(minLeft,maxLeft)}if(yAxisRightUsed==true){this.yAxisRight.setRange(minRight,maxRight)}}resized=this._toggleAxisVisiblity(yAxisLeftUsed,this.yAxisLeft)||resized;resized=this._toggleAxisVisiblity(yAxisRightUsed,this.yAxisRight)||resized;if(yAxisRightUsed==true&&yAxisLeftUsed==true){this.yAxisLeft.drawIcons=true;this.yAxisRight.drawIcons=true}else{this.yAxisLeft.drawIcons=false;this.yAxisRight.drawIcons=false}this.yAxisRight.master=!yAxisLeftUsed;this.yAxisRight.masterAxis=this.yAxisLeft;if(this.yAxisRight.master==false){if(yAxisRightUsed==true){this.yAxisLeft.lineOffset=this.yAxisRight.width}else{this.yAxisLeft.lineOffset=0}resized=this.yAxisLeft.redraw()||resized;resized=this.yAxisRight.redraw()||resized}else{resized=this.yAxisRight.redraw()||resized}var tempGroups=[\"__barStackLeft\",\"__barStackRight\",\"__lineStackLeft\",\"__lineStackRight\"];for(i=0;i<tempGroups.length;i++){if(groupIds.indexOf(tempGroups[i])!=-1){groupIds.splice(groupIds.indexOf(tempGroups[i]),1)}}return resized};LineGraph.prototype._toggleAxisVisiblity=function(axisUsed,axis){var changed=false;if(axisUsed==false){if(axis.dom.frame.parentNode&&axis.hidden==false){axis.hide();changed=true}}else{if(!axis.dom.frame.parentNode&&axis.hidden==true){axis.show();changed=true}}return changed};LineGraph.prototype._convertXcoordinates=function(datapoints){var toScreen=this.body.util.toScreen;for(var i=0;i<datapoints.length;i++){datapoints[i].screen_x=toScreen(datapoints[i].x)+this.props.width;datapoints[i].screen_y=datapoints[i].y;if(datapoints[i].end!=undefined){datapoints[i].screen_end=toScreen(datapoints[i].end)+this.props.width}else{datapoints[i].screen_end=undefined}}};LineGraph.prototype._convertYcoordinates=function(datapoints,group){var axis=this.yAxisLeft;var svgHeight=Number(this.svg.style.height.replace(\"px\",\"\"));if(group.options.yAxisOrientation==\"right\"){axis=this.yAxisRight}for(var i=0;i<datapoints.length;i++){datapoints[i].screen_y=Math.round(axis.convertValue(datapoints[i].y))}group.setZeroPosition(Math.min(svgHeight,axis.convertValue(0)))};module.exports=LineGraph},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DOMutil=__webpack_require__(14);var Component=__webpack_require__(16);var DataScale=__webpack_require__(108);function DataAxis(body,options,svg,linegraphOptions){this.id=util.randomUUID();this.body=body;this.defaultOptions={orientation:\"left\",showMinorLabels:true,showMajorLabels:true,icons:false,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:\"40px\",visible:true,alignZeros:true,left:{range:{min:undefined,max:undefined},format:function format(value){return\"\"+parseFloat(value.toPrecision(3))},title:{text:undefined,style:undefined}},right:{range:{min:undefined,max:undefined},format:function format(value){return\"\"+parseFloat(value.toPrecision(3))},title:{text:undefined,style:undefined}}};this.linegraphOptions=linegraphOptions;this.linegraphSVG=svg;this.props={};this.DOMelements={lines:{},labels:{},title:{}};this.dom={};this.scale=undefined;this.range={start:0,end:0};this.options=util.extend({},this.defaultOptions);this.conversionFactor=1;this.setOptions(options);this.width=Number((\"\"+this.options.width).replace(\"px\",\"\"));this.minWidth=this.width;this.height=this.linegraphSVG.getBoundingClientRect().height;this.hidden=false;this.stepPixels=25;this.zeroCrossing=-1;this.amountOfSteps=-1;this.lineOffset=0;this.master=true;this.masterAxis=null;this.svgElements={};this.iconsRemoved=false;this.groups={};this.amountOfGroups=0;this._create();this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups};var me=this;this.body.emitter.on(\"verticalDrag\",function(){me.dom.lineContainer.style.top=me.body.domProps.scrollTop+\"px\"})}DataAxis.prototype=new Component;DataAxis.prototype.addGroup=function(label,graphOptions){if(!this.groups.hasOwnProperty(label)){this.groups[label]=graphOptions}this.amountOfGroups+=1};DataAxis.prototype.updateGroup=function(label,graphOptions){if(!this.groups.hasOwnProperty(label)){this.amountOfGroups+=1}this.groups[label]=graphOptions};DataAxis.prototype.removeGroup=function(label){if(this.groups.hasOwnProperty(label)){delete this.groups[label];this.amountOfGroups-=1}};DataAxis.prototype.setOptions=function(options){if(options){var redraw=false;if(this.options.orientation!=options.orientation&&options.orientation!==undefined){redraw=true}var fields=[\"orientation\",\"showMinorLabels\",\"showMajorLabels\",\"icons\",\"majorLinesOffset\",\"minorLinesOffset\",\"labelOffsetX\",\"labelOffsetY\",\"iconWidth\",\"width\",\"visible\",\"left\",\"right\",\"alignZeros\"];util.selectiveDeepExtend(fields,this.options,options);this.minWidth=Number((\"\"+this.options.width).replace(\"px\",\"\"));if(redraw===true&&this.dom.frame){this.hide();this.show()}}};DataAxis.prototype._create=function(){this.dom.frame=document.createElement(\"div\");this.dom.frame.style.width=this.options.width;this.dom.frame.style.height=this.height;this.dom.lineContainer=document.createElement(\"div\");this.dom.lineContainer.style.width=\"100%\";this.dom.lineContainer.style.height=this.height;this.dom.lineContainer.style.position=\"relative\";this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.svg.style.position=\"absolute\";this.svg.style.top=\"0px\";this.svg.style.height=\"100%\";this.svg.style.width=\"100%\";this.svg.style.display=\"block\";this.dom.frame.appendChild(this.svg)};DataAxis.prototype._redrawGroupIcons=function(){DOMutil.prepareElements(this.svgElements);var x;var iconWidth=this.options.iconWidth;var iconHeight=15;var iconOffset=4;var y=iconOffset+.5*iconHeight;if(this.options.orientation===\"left\"){x=iconOffset}else{x=this.width-iconWidth-iconOffset}var groupArray=(0,_keys2[\"default\"])(this.groups);groupArray.sort(function(a,b){return a<b?-1:1});for(var i=0;i<groupArray.length;i++){var groupId=groupArray[i];if(this.groups[groupId].visible===true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]===true)){this.groups[groupId].getLegend(iconWidth,iconHeight,this.framework,x,y);y+=iconHeight+iconOffset}}DOMutil.cleanupElements(this.svgElements);this.iconsRemoved=false};DataAxis.prototype._cleanupIcons=function(){if(this.iconsRemoved===false){DOMutil.prepareElements(this.svgElements);DOMutil.cleanupElements(this.svgElements);this.iconsRemoved=true}};DataAxis.prototype.show=function(){this.hidden=false;if(!this.dom.frame.parentNode){if(this.options.orientation===\"left\"){this.body.dom.left.appendChild(this.dom.frame)}else{this.body.dom.right.appendChild(this.dom.frame)}}if(!this.dom.lineContainer.parentNode){this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer)}};DataAxis.prototype.hide=function(){this.hidden=true;if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}if(this.dom.lineContainer.parentNode){this.dom.lineContainer.parentNode.removeChild(this.dom.lineContainer)}};DataAxis.prototype.setRange=function(start,end){this.range.start=start;this.range.end=end};DataAxis.prototype.redraw=function(){var resized=false;var activeGroups=0;this.dom.lineContainer.style.top=this.body.domProps.scrollTop+\"px\";for(var groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){if(this.groups[groupId].visible===true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]===true)){activeGroups++}}}if(this.amountOfGroups===0||activeGroups===0){this.hide()}else{this.show();this.height=Number(this.linegraphSVG.style.height.replace(\"px\",\"\"));this.dom.lineContainer.style.height=this.height+\"px\";this.width=this.options.visible===true?Number((\"\"+this.options.width).replace(\"px\",\"\")):0;var props=this.props;var frame=this.dom.frame;frame.className=\"vis-data-axis\";this._calculateCharSize();var orientation=this.options.orientation;var showMinorLabels=this.options.showMinorLabels;var showMajorLabels=this.options.showMajorLabels;props.minorLabelHeight=showMinorLabels?props.minorCharHeight:0;props.majorLabelHeight=showMajorLabels?props.majorCharHeight:0;props.minorLineWidth=this.body.dom.backgroundHorizontal.offsetWidth-this.lineOffset-this.width+2*this.options.minorLinesOffset;props.minorLineHeight=1;props.majorLineWidth=this.body.dom.backgroundHorizontal.offsetWidth-this.lineOffset-this.width+2*this.options.majorLinesOffset;props.majorLineHeight=1;if(orientation===\"left\"){frame.style.top=\"0\";frame.style.left=\"0\";frame.style.bottom=\"\";frame.style.width=this.width+\"px\";frame.style.height=this.height+\"px\";this.props.width=this.body.domProps.left.width;this.props.height=this.body.domProps.left.height}else{frame.style.top=\"\";frame.style.bottom=\"0\";frame.style.left=\"0\";frame.style.width=this.width+\"px\";frame.style.height=this.height+\"px\";this.props.width=this.body.domProps.right.width;this.props.height=this.body.domProps.right.height}resized=this._redrawLabels();resized=this._isResized()||resized;if(this.options.icons===true){this._redrawGroupIcons()}else{this._cleanupIcons()}this._redrawTitle(orientation)}return resized};DataAxis.prototype._redrawLabels=function(){var _this=this;var resized=false;DOMutil.prepareElements(this.DOMelements.lines);DOMutil.prepareElements(this.DOMelements.labels);var orientation=this.options[\"orientation\"];var customRange=this.options[orientation].range!=undefined?this.options[orientation].range:{};var autoScaleEnd=true;if(customRange.max!=undefined){this.range.end=customRange.max;autoScaleEnd=false}var autoScaleStart=true;if(customRange.min!=undefined){this.range.start=customRange.min;autoScaleStart=false}this.scale=new DataScale(this.range.start,this.range.end,autoScaleStart,autoScaleEnd,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[orientation].format);if(this.master===false&&this.masterAxis!=undefined){this.scale.followScale(this.masterAxis.scale)}this.maxLabelSize=0;var lines=this.scale.getLines();lines.forEach(function(line){var y=line.y;var isMajor=line.major;if(_this.options[\"showMinorLabels\"]&&isMajor===false){_this._redrawLabel(y-2,line.val,orientation,\"vis-y-axis vis-minor\",_this.props.minorCharHeight)}if(isMajor){if(y>=0){_this._redrawLabel(y-2,line.val,orientation,\"vis-y-axis vis-major\",_this.props.majorCharHeight)}}if(_this.master===true){if(isMajor){_this._redrawLine(y,orientation,\"vis-grid vis-horizontal vis-major\",_this.options.majorLinesOffset,_this.props.majorLineWidth)}else{_this._redrawLine(y,orientation,\"vis-grid vis-horizontal vis-minor\",_this.options.minorLinesOffset,_this.props.minorLineWidth)}}});var titleWidth=0;if(this.options[orientation].title!==undefined&&this.options[orientation].title.text!==undefined){titleWidth=this.props.titleCharHeight}var offset=this.options.icons===true?Math.max(this.options.iconWidth,titleWidth)+this.options.labelOffsetX+15:titleWidth+this.options.labelOffsetX+15;if(this.maxLabelSize>this.width-offset&&this.options.visible===true){this.width=this.maxLabelSize+offset;this.options.width=this.width+\"px\";DOMutil.cleanupElements(this.DOMelements.lines);DOMutil.cleanupElements(this.DOMelements.labels);this.redraw();resized=true}else if(this.maxLabelSize<this.width-offset&&this.options.visible===true&&this.width>this.minWidth){this.width=Math.max(this.minWidth,this.maxLabelSize+offset);this.options.width=this.width+\"px\";DOMutil.cleanupElements(this.DOMelements.lines);DOMutil.cleanupElements(this.DOMelements.labels);this.redraw();resized=true}else{DOMutil.cleanupElements(this.DOMelements.lines);DOMutil.cleanupElements(this.DOMelements.labels);resized=false}return resized};DataAxis.prototype.convertValue=function(value){return this.scale.convertValue(value)};DataAxis.prototype.screenToValue=function(x){return this.scale.screenToValue(x)};DataAxis.prototype._redrawLabel=function(y,text,orientation,className,characterHeight){var label=DOMutil.getDOMElement(\"div\",this.DOMelements.labels,this.dom.frame);label.className=className;label.innerHTML=text;if(orientation===\"left\"){label.style.left=\"-\"+this.options.labelOffsetX+\"px\";label.style.textAlign=\"right\"}else{label.style.right=\"-\"+this.options.labelOffsetX+\"px\";label.style.textAlign=\"left\"}label.style.top=y-.5*characterHeight+this.options.labelOffsetY+\"px\";text+=\"\";var largestWidth=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);if(this.maxLabelSize<text.length*largestWidth){this.maxLabelSize=text.length*largestWidth}};DataAxis.prototype._redrawLine=function(y,orientation,className,offset,width){if(this.master===true){\nvar line=DOMutil.getDOMElement(\"div\",this.DOMelements.lines,this.dom.lineContainer);line.className=className;line.innerHTML=\"\";if(orientation===\"left\"){line.style.left=this.width-offset+\"px\"}else{line.style.right=this.width-offset+\"px\"}line.style.width=width+\"px\";line.style.top=y+\"px\"}};DataAxis.prototype._redrawTitle=function(orientation){DOMutil.prepareElements(this.DOMelements.title);if(this.options[orientation].title!==undefined&&this.options[orientation].title.text!==undefined){var title=DOMutil.getDOMElement(\"div\",this.DOMelements.title,this.dom.frame);title.className=\"vis-y-axis vis-title vis-\"+orientation;title.innerHTML=this.options[orientation].title.text;if(this.options[orientation].title.style!==undefined){util.addCssText(title,this.options[orientation].title.style)}if(orientation===\"left\"){title.style.left=this.props.titleCharHeight+\"px\"}else{title.style.right=this.props.titleCharHeight+\"px\"}title.style.width=this.height+\"px\"}DOMutil.cleanupElements(this.DOMelements.title)};DataAxis.prototype._calculateCharSize=function(){if(!(\"minorCharHeight\"in this.props)){var textMinor=document.createTextNode(\"0\");var measureCharMinor=document.createElement(\"div\");measureCharMinor.className=\"vis-y-axis vis-minor vis-measure\";measureCharMinor.appendChild(textMinor);this.dom.frame.appendChild(measureCharMinor);this.props.minorCharHeight=measureCharMinor.clientHeight;this.props.minorCharWidth=measureCharMinor.clientWidth;this.dom.frame.removeChild(measureCharMinor)}if(!(\"majorCharHeight\"in this.props)){var textMajor=document.createTextNode(\"0\");var measureCharMajor=document.createElement(\"div\");measureCharMajor.className=\"vis-y-axis vis-major vis-measure\";measureCharMajor.appendChild(textMajor);this.dom.frame.appendChild(measureCharMajor);this.props.majorCharHeight=measureCharMajor.clientHeight;this.props.majorCharWidth=measureCharMajor.clientWidth;this.dom.frame.removeChild(measureCharMajor)}if(!(\"titleCharHeight\"in this.props)){var textTitle=document.createTextNode(\"0\");var measureCharTitle=document.createElement(\"div\");measureCharTitle.className=\"vis-y-axis vis-title vis-measure\";measureCharTitle.appendChild(textTitle);this.dom.frame.appendChild(measureCharTitle);this.props.titleCharHeight=measureCharTitle.clientHeight;this.props.titleCharWidth=measureCharTitle.clientWidth;this.dom.frame.removeChild(measureCharTitle)}};module.exports=DataAxis},function(module,exports,__webpack_require__){\"use strict\";function DataScale(start,end,autoScaleStart,autoScaleEnd,containerHeight,majorCharHeight){var zeroAlign=arguments.length>6&&arguments[6]!==undefined?arguments[6]:false;var formattingFunction=arguments.length>7&&arguments[7]!==undefined?arguments[7]:false;this.majorSteps=[1,2,5,10];this.minorSteps=[.25,.5,1,2];this.customLines=null;this.containerHeight=containerHeight;this.majorCharHeight=majorCharHeight;this._start=start;this._end=end;this.scale=1;this.minorStepIdx=-1;this.magnitudefactor=1;this.determineScale();this.zeroAlign=zeroAlign;this.autoScaleStart=autoScaleStart;this.autoScaleEnd=autoScaleEnd;this.formattingFunction=formattingFunction;if(autoScaleStart||autoScaleEnd){var me=this;var roundToMinor=function roundToMinor(value){var rounded=value-value%(me.magnitudefactor*me.minorSteps[me.minorStepIdx]);if(value%(me.magnitudefactor*me.minorSteps[me.minorStepIdx])>.5*(me.magnitudefactor*me.minorSteps[me.minorStepIdx])){return rounded+me.magnitudefactor*me.minorSteps[me.minorStepIdx]}else{return rounded}};if(autoScaleStart){this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx];this._start=roundToMinor(this._start)}if(autoScaleEnd){this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx];this._end=roundToMinor(this._end)}this.determineScale()}}DataScale.prototype.setCharHeight=function(majorCharHeight){this.majorCharHeight=majorCharHeight};DataScale.prototype.setHeight=function(containerHeight){this.containerHeight=containerHeight};DataScale.prototype.determineScale=function(){var range=this._end-this._start;this.scale=this.containerHeight/range;var minimumStepValue=this.majorCharHeight/this.scale;var orderOfMagnitude=range>0?Math.round(Math.log(range)/Math.LN10):0;this.minorStepIdx=-1;this.magnitudefactor=Math.pow(10,orderOfMagnitude);var start=0;if(orderOfMagnitude<0){start=orderOfMagnitude}var solutionFound=false;for(var l=start;Math.abs(l)<=Math.abs(orderOfMagnitude);l++){this.magnitudefactor=Math.pow(10,l);for(var j=0;j<this.minorSteps.length;j++){var stepSize=this.magnitudefactor*this.minorSteps[j];if(stepSize>=minimumStepValue){solutionFound=true;this.minorStepIdx=j;break}}if(solutionFound===true){break}}};DataScale.prototype.is_major=function(value){return value%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0};DataScale.prototype.getStep=function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]};DataScale.prototype.getFirstMajor=function(){var majorStep=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(majorStep-this._start%majorStep)%majorStep)};DataScale.prototype.formatValue=function(current){var returnValue=current.toPrecision(5);if(typeof this.formattingFunction===\"function\"){returnValue=this.formattingFunction(current)}if(typeof returnValue===\"number\"){return\"\"+returnValue}else if(typeof returnValue===\"string\"){return returnValue}else{return current.toPrecision(5)}};DataScale.prototype.getLines=function(){var lines=[];var step=this.getStep();var bottomOffset=(step-this._start%step)%step;for(var i=this._start+bottomOffset;this._end-i>1e-5;i+=step){if(i!=this._start){lines.push({major:this.is_major(i),y:this.convertValue(i),val:this.formatValue(i)})}}return lines};DataScale.prototype.followScale=function(other){var oldStepIdx=this.minorStepIdx;var oldStart=this._start;var oldEnd=this._end;var me=this;var increaseMagnitude=function increaseMagnitude(){me.magnitudefactor*=2};var decreaseMagnitude=function decreaseMagnitude(){me.magnitudefactor/=2};if(other.minorStepIdx<=1&&this.minorStepIdx<=1||other.minorStepIdx>1&&this.minorStepIdx>1){}else if(other.minorStepIdx<this.minorStepIdx){this.minorStepIdx=1;if(oldStepIdx==2){increaseMagnitude()}else{increaseMagnitude();increaseMagnitude()}}else{this.minorStepIdx=2;if(oldStepIdx==1){decreaseMagnitude()}else{decreaseMagnitude();decreaseMagnitude()}}var otherZero=other.convertValue(0);var otherStep=other.getStep()*other.scale;var done=false;var count=0;while(!done&&count++<5){this.scale=otherStep/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var newRange=this.containerHeight/this.scale;this._start=oldStart;this._end=this._start+newRange;var myOriginalZero=this._end*this.scale;var majorStep=this.magnitudefactor*this.majorSteps[this.minorStepIdx];var majorOffset=this.getFirstMajor()-other.getFirstMajor();if(this.zeroAlign){var zeroOffset=otherZero-myOriginalZero;this._end+=zeroOffset/this.scale;this._start=this._end-newRange}else{if(!this.autoScaleStart){this._start+=majorStep-majorOffset/this.scale;this._end=this._start+newRange}else{this._start-=majorOffset/this.scale;this._end=this._start+newRange}}if(!this.autoScaleEnd&&this._end>oldEnd+1e-5){decreaseMagnitude();done=false;continue}if(!this.autoScaleStart&&this._start<oldStart-1e-5){if(this.zeroAlign&&oldStart>=0){console.warn(\"Can't adhere to given 'min' range, due to zeroalign\")}else{decreaseMagnitude();done=false;continue}}if(this.autoScaleStart&&this.autoScaleEnd&&newRange<oldEnd-oldStart){increaseMagnitude();done=false;continue}done=true}};DataScale.prototype.convertValue=function(value){return this.containerHeight-(value-this._start)*this.scale};DataScale.prototype.screenToValue=function(pixels){return(this.containerHeight-pixels)/this.scale+this._start};module.exports=DataScale},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Bars=__webpack_require__(110);var Lines=__webpack_require__(111);var Points=__webpack_require__(72);function GraphGroup(group,groupId,options,groupsUsingDefaultStyles){this.id=groupId;var fields=[\"sampling\",\"style\",\"sort\",\"yAxisOrientation\",\"barChart\",\"drawPoints\",\"shaded\",\"interpolation\",\"zIndex\",\"excludeFromStacking\",\"excludeFromLegend\"];this.options=util.selectiveBridgeObject(fields,options);this.usingDefaultStyle=group.className===undefined;this.groupsUsingDefaultStyles=groupsUsingDefaultStyles;this.zeroPosition=0;this.update(group);if(this.usingDefaultStyle==true){this.groupsUsingDefaultStyles[0]+=1}this.itemsData=[];this.visible=group.visible===undefined?true:group.visible}GraphGroup.prototype.setItems=function(items){if(items!=null){this.itemsData=items;if(this.options.sort==true){util.insertSort(this.itemsData,function(a,b){return a.x>b.x?1:-1})}}else{this.itemsData=[]}};GraphGroup.prototype.getItems=function(){return this.itemsData};GraphGroup.prototype.setZeroPosition=function(pos){this.zeroPosition=pos};GraphGroup.prototype.setOptions=function(options){if(options!==undefined){var fields=[\"sampling\",\"style\",\"sort\",\"yAxisOrientation\",\"barChart\",\"zIndex\",\"excludeFromStacking\",\"excludeFromLegend\"];util.selectiveDeepExtend(fields,this.options,options);if(typeof options.drawPoints==\"function\"){options.drawPoints={onRender:options.drawPoints}}util.mergeOptions(this.options,options,\"interpolation\");util.mergeOptions(this.options,options,\"drawPoints\");util.mergeOptions(this.options,options,\"shaded\");if(options.interpolation){if((0,_typeof3[\"default\"])(options.interpolation)==\"object\"){if(options.interpolation.parametrization){if(options.interpolation.parametrization==\"uniform\"){this.options.interpolation.alpha=0}else if(options.interpolation.parametrization==\"chordal\"){this.options.interpolation.alpha=1}else{this.options.interpolation.parametrization=\"centripetal\";this.options.interpolation.alpha=.5}}}}}};GraphGroup.prototype.update=function(group){this.group=group;this.content=group.content||\"graph\";this.className=group.className||this.className||\"vis-graph-group\"+this.groupsUsingDefaultStyles[0]%10;this.visible=group.visible===undefined?true:group.visible;this.style=group.style;this.setOptions(group.options)};GraphGroup.prototype.getLegend=function(iconWidth,iconHeight,framework,x,y){if(framework==undefined||framework==null){var svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");framework={svg:svg,svgElements:{},options:this.options,groups:[this]}}if(x==undefined||x==null){x=0}if(y==undefined||y==null){y=.5*iconHeight}switch(this.options.style){case\"line\":Lines.drawIcon(this,x,y,iconWidth,iconHeight,framework);break;case\"points\":case\"point\":Points.drawIcon(this,x,y,iconWidth,iconHeight,framework);break;case\"bar\":Bars.drawIcon(this,x,y,iconWidth,iconHeight,framework);break}return{icon:framework.svg,label:this.content,orientation:this.options.yAxisOrientation}};GraphGroup.prototype.getYRange=function(groupData){var yMin=groupData[0].y;var yMax=groupData[0].y;for(var j=0;j<groupData.length;j++){yMin=yMin>groupData[j].y?groupData[j].y:yMin;yMax=yMax<groupData[j].y?groupData[j].y:yMax}return{min:yMin,max:yMax,yAxisOrientation:this.options.yAxisOrientation}};module.exports=GraphGroup},function(module,exports,__webpack_require__){\"use strict\";var DOMutil=__webpack_require__(14);var Points=__webpack_require__(72);function Bargraph(groupId,options){}Bargraph.drawIcon=function(group,x,y,iconWidth,iconHeight,framework){var fillHeight=iconHeight*.5;var outline=DOMutil.getSVGElement(\"rect\",framework.svgElements,framework.svg);outline.setAttributeNS(null,\"x\",x);outline.setAttributeNS(null,\"y\",y-fillHeight);outline.setAttributeNS(null,\"width\",iconWidth);outline.setAttributeNS(null,\"height\",2*fillHeight);outline.setAttributeNS(null,\"class\",\"vis-outline\");var barWidth=Math.round(.3*iconWidth);var originalWidth=group.options.barChart.width;var scale=originalWidth/barWidth;var bar1Height=Math.round(.4*iconHeight);var bar2Height=Math.round(.75*iconHeight);var offset=Math.round((iconWidth-2*barWidth)/3);DOMutil.drawBar(x+.5*barWidth+offset,y+fillHeight-bar1Height-1,barWidth,bar1Height,group.className+\" vis-bar\",framework.svgElements,framework.svg,group.style);DOMutil.drawBar(x+1.5*barWidth+offset+2,y+fillHeight-bar2Height-1,barWidth,bar2Height,group.className+\" vis-bar\",framework.svgElements,framework.svg,group.style);if(group.options.drawPoints.enabled==true){var groupTemplate={style:group.options.drawPoints.style,styles:group.options.drawPoints.styles,size:group.options.drawPoints.size/scale,className:group.className};DOMutil.drawPoint(x+.5*barWidth+offset,y+fillHeight-bar1Height-1,groupTemplate,framework.svgElements,framework.svg);DOMutil.drawPoint(x+1.5*barWidth+offset+2,y+fillHeight-bar2Height-1,groupTemplate,framework.svgElements,framework.svg)}};Bargraph.draw=function(groupIds,processedGroupData,framework){var combinedData=[];var intersections={};var coreDistance;var key,drawData;var group;var i,j;var barPoints=0;for(i=0;i<groupIds.length;i++){group=framework.groups[groupIds[i]];if(group.options.style===\"bar\"){if(group.visible===true&&(framework.options.groups.visibility[groupIds[i]]===undefined||framework.options.groups.visibility[groupIds[i]]===true)){for(j=0;j<processedGroupData[groupIds[i]].length;j++){combinedData.push({screen_x:processedGroupData[groupIds[i]][j].screen_x,screen_end:processedGroupData[groupIds[i]][j].screen_end,screen_y:processedGroupData[groupIds[i]][j].screen_y,x:processedGroupData[groupIds[i]][j].x,end:processedGroupData[groupIds[i]][j].end,y:processedGroupData[groupIds[i]][j].y,groupId:groupIds[i],label:processedGroupData[groupIds[i]][j].label});barPoints+=1}}}}if(barPoints===0){return}combinedData.sort(function(a,b){if(a.screen_x===b.screen_x){return a.groupId<b.groupId?-1:1}else{return a.screen_x-b.screen_x}});Bargraph._getDataIntersections(intersections,combinedData);for(i=0;i<combinedData.length;i++){group=framework.groups[combinedData[i].groupId];var minWidth=group.options.barChart.minWidth!=undefined?group.options.barChart.minWidth:.1*group.options.barChart.width;key=combinedData[i].screen_x;var heightOffset=0;if(intersections[key]===undefined){if(i+1<combinedData.length){coreDistance=Math.abs(combinedData[i+1].screen_x-key)}drawData=Bargraph._getSafeDrawData(coreDistance,group,minWidth)}else{var nextKey=i+(intersections[key].amount-intersections[key].resolved);if(nextKey<combinedData.length){coreDistance=Math.abs(combinedData[nextKey].screen_x-key)}drawData=Bargraph._getSafeDrawData(coreDistance,group,minWidth);intersections[key].resolved+=1;if(group.options.stack===true&&group.options.excludeFromStacking!==true){if(combinedData[i].screen_y<group.zeroPosition){heightOffset=intersections[key].accumulatedNegative;intersections[key].accumulatedNegative+=group.zeroPosition-combinedData[i].screen_y}else{heightOffset=intersections[key].accumulatedPositive;intersections[key].accumulatedPositive+=group.zeroPosition-combinedData[i].screen_y}}else if(group.options.barChart.sideBySide===true){drawData.width=drawData.width/intersections[key].amount;drawData.offset+=intersections[key].resolved*drawData.width-.5*drawData.width*(intersections[key].amount+1)}}var dataWidth=drawData.width;var start=combinedData[i].screen_x;if(combinedData[i].screen_end!=undefined){dataWidth=combinedData[i].screen_end-combinedData[i].screen_x;start+=dataWidth*.5}else{start+=drawData.offset}DOMutil.drawBar(start,combinedData[i].screen_y-heightOffset,dataWidth,group.zeroPosition-combinedData[i].screen_y,group.className+\" vis-bar\",framework.svgElements,framework.svg,group.style);if(group.options.drawPoints.enabled===true){var pointData={screen_x:combinedData[i].screen_x,screen_y:combinedData[i].screen_y-heightOffset,x:combinedData[i].x,y:combinedData[i].y,groupId:combinedData[i].groupId,label:combinedData[i].label};Points.draw([pointData],group,framework,drawData.offset)}}};Bargraph._getDataIntersections=function(intersections,combinedData){var coreDistance;for(var i=0;i<combinedData.length;i++){if(i+1<combinedData.length){coreDistance=Math.abs(combinedData[i+1].screen_x-combinedData[i].screen_x)}if(i>0){coreDistance=Math.min(coreDistance,Math.abs(combinedData[i-1].screen_x-combinedData[i].screen_x))}if(coreDistance===0){if(intersections[combinedData[i].screen_x]===undefined){intersections[combinedData[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}}intersections[combinedData[i].screen_x].amount+=1}}};Bargraph._getSafeDrawData=function(coreDistance,group,minWidth){var width,offset;if(coreDistance<group.options.barChart.width&&coreDistance>0){width=coreDistance<minWidth?minWidth:coreDistance;offset=0;if(group.options.barChart.align===\"left\"){offset-=.5*coreDistance}else if(group.options.barChart.align===\"right\"){offset+=.5*coreDistance}}else{width=group.options.barChart.width;offset=0;if(group.options.barChart.align===\"left\"){offset-=.5*group.options.barChart.width}else if(group.options.barChart.align===\"right\"){offset+=.5*group.options.barChart.width}}return{width:width,offset:offset}};Bargraph.getStackedYRange=function(combinedData,groupRanges,groupIds,groupLabel,orientation){if(combinedData.length>0){combinedData.sort(function(a,b){if(a.screen_x===b.screen_x){return a.groupId<b.groupId?-1:1}else{return a.screen_x-b.screen_x}});var intersections={};Bargraph._getDataIntersections(intersections,combinedData);groupRanges[groupLabel]=Bargraph._getStackedYRange(intersections,combinedData);groupRanges[groupLabel].yAxisOrientation=orientation;groupIds.push(groupLabel)}};Bargraph._getStackedYRange=function(intersections,combinedData){var key;var yMin=combinedData[0].screen_y;var yMax=combinedData[0].screen_y;for(var i=0;i<combinedData.length;i++){key=combinedData[i].screen_x;if(intersections[key]===undefined){yMin=yMin>combinedData[i].screen_y?combinedData[i].screen_y:yMin;yMax=yMax<combinedData[i].screen_y?combinedData[i].screen_y:yMax}else{if(combinedData[i].screen_y<0){intersections[key].accumulatedNegative+=combinedData[i].screen_y}else{intersections[key].accumulatedPositive+=combinedData[i].screen_y}}}for(var xpos in intersections){if(intersections.hasOwnProperty(xpos)){yMin=yMin>intersections[xpos].accumulatedNegative?intersections[xpos].accumulatedNegative:yMin;yMin=yMin>intersections[xpos].accumulatedPositive?intersections[xpos].accumulatedPositive:yMin;yMax=yMax<intersections[xpos].accumulatedNegative?intersections[xpos].accumulatedNegative:yMax;yMax=yMax<intersections[xpos].accumulatedPositive?intersections[xpos].accumulatedPositive:yMax}}return{min:yMin,max:yMax}};module.exports=Bargraph},function(module,exports,__webpack_require__){\"use strict\";var DOMutil=__webpack_require__(14);function Line(groupId,options){}Line.calcPath=function(dataset,group){if(dataset!=null){if(dataset.length>0){var d=[];if(group.options.interpolation.enabled==true){d=Line._catmullRom(dataset,group)}else{d=Line._linear(dataset)}return d}}};Line.drawIcon=function(group,x,y,iconWidth,iconHeight,framework){var fillHeight=iconHeight*.5;var path,fillPath;var outline=DOMutil.getSVGElement(\"rect\",framework.svgElements,framework.svg);outline.setAttributeNS(null,\"x\",x);outline.setAttributeNS(null,\"y\",y-fillHeight);outline.setAttributeNS(null,\"width\",iconWidth);outline.setAttributeNS(null,\"height\",2*fillHeight);outline.setAttributeNS(null,\"class\",\"vis-outline\");path=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);path.setAttributeNS(null,\"class\",group.className);if(group.style!==undefined){path.setAttributeNS(null,\"style\",group.style)}path.setAttributeNS(null,\"d\",\"M\"+x+\",\"+y+\" L\"+(x+iconWidth)+\",\"+y+\"\");if(group.options.shaded.enabled==true){fillPath=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);if(group.options.shaded.orientation==\"top\"){fillPath.setAttributeNS(null,\"d\",\"M\"+x+\", \"+(y-fillHeight)+\"L\"+x+\",\"+y+\" L\"+(x+iconWidth)+\",\"+y+\" L\"+(x+iconWidth)+\",\"+(y-fillHeight))}else{fillPath.setAttributeNS(null,\"d\",\"M\"+x+\",\"+y+\" \"+\"L\"+x+\",\"+(y+fillHeight)+\" \"+\"L\"+(x+iconWidth)+\",\"+(y+fillHeight)+\"L\"+(x+iconWidth)+\",\"+y)}fillPath.setAttributeNS(null,\"class\",group.className+\" vis-icon-fill\");if(group.options.shaded.style!==undefined&&group.options.shaded.style!==\"\"){fillPath.setAttributeNS(null,\"style\",group.options.shaded.style)}}if(group.options.drawPoints.enabled==true){var groupTemplate={style:group.options.drawPoints.style,styles:group.options.drawPoints.styles,size:group.options.drawPoints.size,className:group.className};DOMutil.drawPoint(x+.5*iconWidth,y,groupTemplate,framework.svgElements,framework.svg)}};Line.drawShading=function(pathArray,group,subPathArray,framework){if(group.options.shaded.enabled==true){var svgHeight=Number(framework.svg.style.height.replace(\"px\",\"\"));var fillPath=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);var type=\"L\";if(group.options.interpolation.enabled==true){type=\"C\"}var dFill;var zero=0;if(group.options.shaded.orientation==\"top\"){zero=0}else if(group.options.shaded.orientation==\"bottom\"){zero=svgHeight}else{zero=Math.min(Math.max(0,group.zeroPosition),svgHeight)}if(group.options.shaded.orientation==\"group\"&&subPathArray!=null&&subPathArray!=undefined){dFill=\"M\"+pathArray[0][0]+\",\"+pathArray[0][1]+\" \"+this.serializePath(pathArray,type,false)+\" L\"+subPathArray[subPathArray.length-1][0]+\",\"+subPathArray[subPathArray.length-1][1]+\" \"+this.serializePath(subPathArray,type,true)+subPathArray[0][0]+\",\"+subPathArray[0][1]+\" Z\"}else{dFill=\"M\"+pathArray[0][0]+\",\"+pathArray[0][1]+\" \"+this.serializePath(pathArray,type,false)+\" V\"+zero+\" H\"+pathArray[0][0]+\" Z\"}fillPath.setAttributeNS(null,\"class\",group.className+\" vis-fill\");if(group.options.shaded.style!==undefined){fillPath.setAttributeNS(null,\"style\",group.options.shaded.style)}fillPath.setAttributeNS(null,\"d\",dFill)}};Line.draw=function(pathArray,group,framework){if(pathArray!=null&&pathArray!=undefined){var path=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);path.setAttributeNS(null,\"class\",group.className);if(group.style!==undefined){path.setAttributeNS(null,\"style\",group.style)}var type=\"L\";if(group.options.interpolation.enabled==true){type=\"C\"}path.setAttributeNS(null,\"d\",\"M\"+pathArray[0][0]+\",\"+pathArray[0][1]+\" \"+this.serializePath(pathArray,type,false))}};Line.serializePath=function(pathArray,type,inverse){if(pathArray.length<2){return\"\"}var d=type;var i;if(inverse){for(i=pathArray.length-2;i>0;i--){d+=pathArray[i][0]+\",\"+pathArray[i][1]+\" \"}}else{for(i=1;i<pathArray.length;i++){d+=pathArray[i][0]+\",\"+pathArray[i][1]+\" \"}}return d};Line._catmullRomUniform=function(data){var p0,p1,p2,p3,bp1,bp2;var d=[];d.push([Math.round(data[0].screen_x),Math.round(data[0].screen_y)]);var normalization=1/6;var length=data.length;for(var i=0;i<length-1;i++){p0=i==0?data[0]:data[i-1];p1=data[i];p2=data[i+1];p3=i+2<length?data[i+2]:p2;bp1={screen_x:(-p0.screen_x+6*p1.screen_x+p2.screen_x)*normalization,screen_y:(-p0.screen_y+6*p1.screen_y+p2.screen_y)*normalization};bp2={screen_x:(p1.screen_x+6*p2.screen_x-p3.screen_x)*normalization,screen_y:(p1.screen_y+6*p2.screen_y-p3.screen_y)*normalization};d.push([bp1.screen_x,bp1.screen_y]);d.push([bp2.screen_x,bp2.screen_y]);d.push([p2.screen_x,p2.screen_y])}return d};Line._catmullRom=function(data,group){var alpha=group.options.interpolation.alpha;if(alpha==0||alpha===undefined){return this._catmullRomUniform(data)}else{var p0,p1,p2,p3,bp1,bp2,d1,d2,d3,A,B,N,M;var d3powA,d2powA,d3pow2A,d2pow2A,d1pow2A,d1powA;var d=[];d.push([Math.round(data[0].screen_x),Math.round(data[0].screen_y)]);var length=data.length;for(var i=0;i<length-1;i++){p0=i==0?data[0]:data[i-1];p1=data[i];p2=data[i+1];p3=i+2<length?data[i+2]:p2;d1=Math.sqrt(Math.pow(p0.screen_x-p1.screen_x,2)+Math.pow(p0.screen_y-p1.screen_y,2));d2=Math.sqrt(Math.pow(p1.screen_x-p2.screen_x,2)+Math.pow(p1.screen_y-p2.screen_y,2));d3=Math.sqrt(Math.pow(p2.screen_x-p3.screen_x,2)+Math.pow(p2.screen_y-p3.screen_y,2));d3powA=Math.pow(d3,alpha);d3pow2A=Math.pow(d3,2*alpha);d2powA=Math.pow(d2,alpha);d2pow2A=Math.pow(d2,2*alpha);d1powA=Math.pow(d1,alpha);d1pow2A=Math.pow(d1,2*alpha);A=2*d1pow2A+3*d1powA*d2powA+d2pow2A;B=2*d3pow2A+3*d3powA*d2powA+d2pow2A;N=3*d1powA*(d1powA+d2powA);if(N>0){N=1/N}M=3*d3powA*(d3powA+d2powA);if(M>0){M=1/M}bp1={screen_x:(-d2pow2A*p0.screen_x+A*p1.screen_x+d1pow2A*p2.screen_x)*N,screen_y:(-d2pow2A*p0.screen_y+A*p1.screen_y+d1pow2A*p2.screen_y)*N};bp2={screen_x:(d3pow2A*p1.screen_x+B*p2.screen_x-d2pow2A*p3.screen_x)*M,screen_y:(d3pow2A*p1.screen_y+B*p2.screen_y-d2pow2A*p3.screen_y)*M};if(bp1.screen_x==0&&bp1.screen_y==0){bp1=p1}if(bp2.screen_x==0&&bp2.screen_y==0){bp2=p2}d.push([bp1.screen_x,bp1.screen_y]);d.push([bp2.screen_x,bp2.screen_y]);d.push([p2.screen_x,p2.screen_y])}return d}};Line._linear=function(data){var d=[];for(var i=0;i<data.length;i++){d.push([data[i].screen_x,data[i].screen_y])}return d};module.exports=Line},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DOMutil=__webpack_require__(14);var Component=__webpack_require__(16);function Legend(body,options,side,linegraphOptions){this.body=body;this.defaultOptions={enabled:false,icons:true,iconSize:20,iconSpacing:6,left:{visible:true,position:\"top-left\"},right:{visible:true,position:\"top-right\"}};this.side=side;this.options=util.extend({},this.defaultOptions);this.linegraphOptions=linegraphOptions;this.svgElements={};this.dom={};this.groups={};this.amountOfGroups=0;this._create();this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups};this.setOptions(options)}Legend.prototype=new Component;Legend.prototype.clear=function(){this.groups={};this.amountOfGroups=0};Legend.prototype.addGroup=function(label,graphOptions){if(graphOptions.options.excludeFromLegend!=true){if(!this.groups.hasOwnProperty(label)){this.groups[label]=graphOptions}this.amountOfGroups+=1}};Legend.prototype.updateGroup=function(label,graphOptions){this.groups[label]=graphOptions};Legend.prototype.removeGroup=function(label){if(this.groups.hasOwnProperty(label)){delete this.groups[label];this.amountOfGroups-=1}};Legend.prototype._create=function(){this.dom.frame=document.createElement(\"div\");this.dom.frame.className=\"vis-legend\";this.dom.frame.style.position=\"absolute\";this.dom.frame.style.top=\"10px\";this.dom.frame.style.display=\"block\";this.dom.textArea=document.createElement(\"div\");this.dom.textArea.className=\"vis-legend-text\";this.dom.textArea.style.position=\"relative\";this.dom.textArea.style.top=\"0px\";this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.svg.style.position=\"absolute\";this.svg.style.top=0+\"px\";this.svg.style.width=this.options.iconSize+5+\"px\";this.svg.style.height=\"100%\";this.dom.frame.appendChild(this.svg);this.dom.frame.appendChild(this.dom.textArea)};Legend.prototype.hide=function(){if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}};Legend.prototype.show=function(){if(!this.dom.frame.parentNode){this.body.dom.center.appendChild(this.dom.frame)}};Legend.prototype.setOptions=function(options){var fields=[\"enabled\",\"orientation\",\"icons\",\"left\",\"right\"];util.selectiveDeepExtend(fields,this.options,options)};Legend.prototype.redraw=function(){var activeGroups=0;var groupArray=(0,_keys2[\"default\"])(this.groups);groupArray.sort(function(a,b){return a<b?-1:1});for(var i=0;i<groupArray.length;i++){var groupId=groupArray[i];if(this.groups[groupId].visible==true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]==true)){activeGroups++}}if(this.options[this.side].visible==false||this.amountOfGroups==0||this.options.enabled==false||activeGroups==0){this.hide()}else{this.show();if(this.options[this.side].position==\"top-left\"||this.options[this.side].position==\"bottom-left\"){this.dom.frame.style.left=\"4px\";this.dom.frame.style.textAlign=\"left\";this.dom.textArea.style.textAlign=\"left\";this.dom.textArea.style.left=this.options.iconSize+15+\"px\";this.dom.textArea.style.right=\"\";this.svg.style.left=0+\"px\";this.svg.style.right=\"\"}else{this.dom.frame.style.right=\"4px\";this.dom.frame.style.textAlign=\"right\";this.dom.textArea.style.textAlign=\"right\";this.dom.textArea.style.right=this.options.iconSize+15+\"px\";this.dom.textArea.style.left=\"\";this.svg.style.right=0+\"px\";this.svg.style.left=\"\"}if(this.options[this.side].position==\"top-left\"||this.options[this.side].position==\"top-right\"){this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace(\"px\",\"\"))+\"px\";this.dom.frame.style.bottom=\"\"}else{var scrollableHeight=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+scrollableHeight+Number(this.body.dom.center.style.top.replace(\"px\",\"\"))+\"px\";this.dom.frame.style.top=\"\"}if(this.options.icons==false){this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+\"px\";this.dom.textArea.style.right=\"\";this.dom.textArea.style.left=\"\";this.svg.style.width=\"0px\"}else{this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+\"px\";this.drawLegendIcons()}var content=\"\";for(i=0;i<groupArray.length;i++){groupId=groupArray[i];if(this.groups[groupId].visible==true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]==true)){content+=this.groups[groupId].content+\"<br />\"}}this.dom.textArea.innerHTML=content;this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+\"px\"}};Legend.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var groupArray=(0,_keys2[\"default\"])(this.groups);groupArray.sort(function(a,b){return a<b?-1:1});DOMutil.resetElements(this.svgElements);var padding=window.getComputedStyle(this.dom.frame).paddingTop;var iconOffset=Number(padding.replace(\"px\",\"\"));var x=iconOffset;var iconWidth=this.options.iconSize;var iconHeight=.75*this.options.iconSize;var y=iconOffset+.5*iconHeight+3;this.svg.style.width=iconWidth+5+iconOffset+\"px\";for(var i=0;i<groupArray.length;i++){var groupId=groupArray[i];if(this.groups[groupId].visible==true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]==true)){this.groups[groupId].getLegend(iconWidth,iconHeight,this.framework,x,y);y+=iconHeight+this.options.iconSpacing}}}};module.exports=Legend},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var array=\"array\";var date=\"date\";var object=\"object\";var dom=\"dom\";var moment=\"moment\";var any=\"any\";var allOptions={configure:{enabled:{boolean:bool},filter:{boolean:bool,function:\"function\"},container:{dom:dom},__type__:{object:object,boolean:bool,function:\"function\"}},yAxisOrientation:{string:[\"left\",\"right\"]},defaultGroup:{string:string},sort:{boolean:bool},sampling:{boolean:bool},stack:{boolean:bool},graphHeight:{string:string,number:number},shaded:{enabled:{boolean:bool},orientation:{string:[\"bottom\",\"top\",\"zero\",\"group\"]},groupId:{object:object},__type__:{boolean:bool,object:object}},style:{string:[\"line\",\"bar\",\"points\"]},barChart:{width:{number:number},minWidth:{number:number},sideBySide:{boolean:bool},align:{string:[\"left\",\"center\",\"right\"]},__type__:{object:object}},interpolation:{enabled:{boolean:bool},parametrization:{string:[\"centripetal\",\"chordal\",\"uniform\"]},alpha:{number:number},__type__:{object:object,boolean:bool}},drawPoints:{enabled:{boolean:bool},onRender:{function:\"function\"},size:{number:number},style:{string:[\"square\",\"circle\"]},__type__:{object:object,boolean:bool,function:\"function\"}},dataAxis:{showMinorLabels:{boolean:bool},showMajorLabels:{boolean:bool},icons:{boolean:bool},width:{string:string,number:number},visible:{boolean:bool},alignZeros:{boolean:bool},left:{range:{min:{\nnumber:number,undefined:\"undefined\"},max:{number:number,undefined:\"undefined\"},__type__:{object:object}},format:{function:\"function\"},title:{text:{string:string,number:number,undefined:\"undefined\"},style:{string:string,undefined:\"undefined\"},__type__:{object:object}},__type__:{object:object}},right:{range:{min:{number:number,undefined:\"undefined\"},max:{number:number,undefined:\"undefined\"},__type__:{object:object}},format:{function:\"function\"},title:{text:{string:string,number:number,undefined:\"undefined\"},style:{string:string,undefined:\"undefined\"},__type__:{object:object}},__type__:{object:object}},__type__:{object:object}},legend:{enabled:{boolean:bool},icons:{boolean:bool},left:{visible:{boolean:bool},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:object}},right:{visible:{boolean:bool},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:object}},__type__:{object:object,boolean:bool}},groups:{visibility:{any:any},__type__:{object:object}},autoResize:{boolean:bool},throttleRedraw:{number:number},clickToUse:{boolean:bool},end:{number:number,date:date,string:string,moment:moment},format:{minorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object}},majorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object}},__type__:{object:object}},moment:{function:\"function\"},height:{string:string,number:number},hiddenDates:{start:{date:date,number:number,string:string,moment:moment},end:{date:date,number:number,string:string,moment:moment},repeat:{string:string},__type__:{object:object,array:array}},locale:{string:string},locales:{__any__:{any:any},__type__:{object:object}},max:{date:date,number:number,string:string,moment:moment},maxHeight:{number:number,string:string},maxMinorChars:{number:number},min:{date:date,number:number,string:string,moment:moment},minHeight:{number:number,string:string},moveable:{boolean:bool},multiselect:{boolean:bool},orientation:{string:string},showCurrentTime:{boolean:bool},showMajorLabels:{boolean:bool},showMinorLabels:{boolean:bool},start:{date:date,number:number,string:string,moment:moment},timeAxis:{scale:{string:string,undefined:\"undefined\"},step:{number:number,undefined:\"undefined\"},__type__:{object:object}},width:{string:string,number:number},zoomable:{boolean:bool},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"]},zoomMax:{number:number},zoomMin:{number:number},zIndex:{number:number},__type__:{object:object}};var configureOptions={global:{sort:true,sampling:true,stack:false,shaded:{enabled:false,orientation:[\"zero\",\"top\",\"bottom\",\"group\"]},style:[\"line\",\"bar\",\"points\"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:false,align:[\"left\",\"center\",\"right\"]},interpolation:{enabled:true,parametrization:[\"centripetal\",\"chordal\",\"uniform\"]},drawPoints:{enabled:true,size:[6,2,30,1],style:[\"square\",\"circle\"]},dataAxis:{showMinorLabels:true,showMajorLabels:true,icons:false,width:[40,0,200,1],visible:true,alignZeros:true,left:{title:{text:\"\",style:\"\"}},right:{title:{text:\"\",style:\"\"}}},legend:{enabled:false,icons:true,left:{visible:true,position:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},right:{visible:true,position:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]}},autoResize:true,clickToUse:false,end:\"\",format:{minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}},height:\"\",locale:\"\",max:\"\",maxHeight:\"\",maxMinorChars:[7,0,20,1],min:\"\",minHeight:\"\",moveable:true,orientation:[\"both\",\"bottom\",\"top\"],showCurrentTime:false,showMajorLabels:true,showMinorLabels:true,start:\"\",width:\"100%\",zoomable:true,zoomKey:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};exports.allOptions=allOptions;exports.configureOptions=configureOptions},function(module,exports,__webpack_require__){\"use strict\";var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function parseDOT(data){dot=data;return parseGraph()}var NODE_ATTR_MAPPING={fontsize:\"font.size\",fontcolor:\"font.color\",labelfontcolor:\"font.color\",fontname:\"font.face\",color:[\"color.border\",\"color.background\"],fillcolor:\"color.background\",tooltip:\"title\",labeltooltip:\"title\"};var EDGE_ATTR_MAPPING=(0,_create2[\"default\"])(NODE_ATTR_MAPPING);EDGE_ATTR_MAPPING.color=\"color.color\";EDGE_ATTR_MAPPING.style=\"dashes\";var TOKENTYPE={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3};var DELIMITERS={\"{\":true,\"}\":true,\"[\":true,\"]\":true,\";\":true,\"=\":true,\",\":true,\"->\":true,\"--\":true};var dot=\"\";var index=0;var c=\"\";var token=\"\";var tokenType=TOKENTYPE.NULL;function first(){index=0;c=dot.charAt(0)}function next(){index++;c=dot.charAt(index)}function nextPreview(){return dot.charAt(index+1)}var regexAlphaNumeric=/[a-zA-Z_0-9.:#]/;function isAlphaNumeric(c){return regexAlphaNumeric.test(c)}function merge(a,b){if(!a){a={}}if(b){for(var name in b){if(b.hasOwnProperty(name)){a[name]=b[name]}}}return a}function setValue(obj,path,value){var keys=path.split(\".\");var o=obj;while(keys.length){var key=keys.shift();if(keys.length){if(!o[key]){o[key]={}}o=o[key]}else{o[key]=value}}}function addNode(graph,node){var i,len;var current=null;var graphs=[graph];var root=graph;while(root.parent){graphs.push(root.parent);root=root.parent}if(root.nodes){for(i=0,len=root.nodes.length;i<len;i++){if(node.id===root.nodes[i].id){current=root.nodes[i];break}}}if(!current){current={id:node.id};if(graph.node){current.attr=merge(current.attr,graph.node)}}for(i=graphs.length-1;i>=0;i--){var g=graphs[i];if(!g.nodes){g.nodes=[]}if(g.nodes.indexOf(current)===-1){g.nodes.push(current)}}if(node.attr){current.attr=merge(current.attr,node.attr)}}function addEdge(graph,edge){if(!graph.edges){graph.edges=[]}graph.edges.push(edge);if(graph.edge){var attr=merge({},graph.edge);edge.attr=merge(attr,edge.attr)}}function createEdge(graph,from,to,type,attr){var edge={from:from,to:to,type:type};if(graph.edge){edge.attr=merge({},graph.edge)}edge.attr=merge(edge.attr||{},attr);return edge}function getToken(){tokenType=TOKENTYPE.NULL;token=\"\";while(c===\" \"||c===\"\\t\"||c===\"\\n\"||c===\"\\r\"){next()}do{var isComment=false;if(c===\"#\"){var i=index-1;while(dot.charAt(i)===\" \"||dot.charAt(i)===\"\\t\"){i--}if(dot.charAt(i)===\"\\n\"||dot.charAt(i)===\"\"){while(c!=\"\"&&c!=\"\\n\"){next()}isComment=true}}if(c===\"/\"&&nextPreview()===\"/\"){while(c!=\"\"&&c!=\"\\n\"){next()}isComment=true}if(c===\"/\"&&nextPreview()===\"*\"){while(c!=\"\"){if(c===\"*\"&&nextPreview()===\"/\"){next();next();break}else{next()}}isComment=true}while(c===\" \"||c===\"\\t\"||c===\"\\n\"||c===\"\\r\"){next()}}while(isComment);if(c===\"\"){tokenType=TOKENTYPE.DELIMITER;return}var c2=c+nextPreview();if(DELIMITERS[c2]){tokenType=TOKENTYPE.DELIMITER;token=c2;next();next();return}if(DELIMITERS[c]){tokenType=TOKENTYPE.DELIMITER;token=c;next();return}if(isAlphaNumeric(c)||c===\"-\"){token+=c;next();while(isAlphaNumeric(c)){token+=c;next()}if(token===\"false\"){token=false}else if(token===\"true\"){token=true}else if(!isNaN(Number(token))){token=Number(token)}tokenType=TOKENTYPE.IDENTIFIER;return}if(c==='\"'){next();while(c!=\"\"&&(c!='\"'||c==='\"'&&nextPreview()==='\"')){if(c==='\"'){token+=c;next()}else if(c===\"\\\\\"&&nextPreview()===\"n\"){token+=\"\\n\";next()}else{token+=c}next()}if(c!='\"'){throw newSyntaxError('End of string \" expected')}next();tokenType=TOKENTYPE.IDENTIFIER;return}tokenType=TOKENTYPE.UNKNOWN;while(c!=\"\"){token+=c;next()}throw new SyntaxError('Syntax error in part \"'+chop(token,30)+'\"')}function parseGraph(){var graph={};first();getToken();if(token===\"strict\"){graph.strict=true;getToken()}if(token===\"graph\"||token===\"digraph\"){graph.type=token;getToken()}if(tokenType===TOKENTYPE.IDENTIFIER){graph.id=token;getToken()}if(token!=\"{\"){throw newSyntaxError(\"Angle bracket { expected\")}getToken();parseStatements(graph);if(token!=\"}\"){throw newSyntaxError(\"Angle bracket } expected\")}getToken();if(token!==\"\"){throw newSyntaxError(\"End of file expected\")}getToken();delete graph.node;delete graph.edge;delete graph.graph;return graph}function parseStatements(graph){while(token!==\"\"&&token!=\"}\"){parseStatement(graph);if(token===\";\"){getToken()}}}function parseStatement(graph){var subgraph=parseSubgraph(graph);if(subgraph){parseEdge(graph,subgraph);return}var attr=parseAttributeStatement(graph);if(attr){return}if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Identifier expected\")}var id=token;getToken();if(token===\"=\"){getToken();if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Identifier expected\")}graph[id]=token;getToken()}else{parseNodeStatement(graph,id)}}function parseSubgraph(graph){var subgraph=null;if(token===\"subgraph\"){subgraph={};subgraph.type=\"subgraph\";getToken();if(tokenType===TOKENTYPE.IDENTIFIER){subgraph.id=token;getToken()}}if(token===\"{\"){getToken();if(!subgraph){subgraph={}}subgraph.parent=graph;subgraph.node=graph.node;subgraph.edge=graph.edge;subgraph.graph=graph.graph;parseStatements(subgraph);if(token!=\"}\"){throw newSyntaxError(\"Angle bracket } expected\")}getToken();delete subgraph.node;delete subgraph.edge;delete subgraph.graph;delete subgraph.parent;if(!graph.subgraphs){graph.subgraphs=[]}graph.subgraphs.push(subgraph)}return subgraph}function parseAttributeStatement(graph){if(token===\"node\"){getToken();graph.node=parseAttributeList();return\"node\"}else if(token===\"edge\"){getToken();graph.edge=parseAttributeList();return\"edge\"}else if(token===\"graph\"){getToken();graph.graph=parseAttributeList();return\"graph\"}return null}function parseNodeStatement(graph,id){var node={id:id};var attr=parseAttributeList();if(attr){node.attr=attr}addNode(graph,node);parseEdge(graph,id)}function parseEdge(graph,from){while(token===\"->\"||token===\"--\"){var to;var type=token;getToken();var subgraph=parseSubgraph(graph);if(subgraph){to=subgraph}else{if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Identifier or subgraph expected\")}to=token;addNode(graph,{id:to});getToken()}var attr=parseAttributeList();var edge=createEdge(graph,from,to,type,attr);addEdge(graph,edge);from=to}}function parseAttributeList(){var attr=null;var edgeStyles={dashed:true,solid:false,dotted:[1,5]};while(token===\"[\"){getToken();attr={};while(token!==\"\"&&token!=\"]\"){if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Attribute name expected\")}var name=token;getToken();if(token!=\"=\"){throw newSyntaxError(\"Equal sign = expected\")}getToken();if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Attribute value expected\")}var value=token;if(name===\"style\"){value=edgeStyles[value]}setValue(attr,name,value);getToken();if(token==\",\"){getToken()}}if(token!=\"]\"){throw newSyntaxError(\"Bracket ] expected\")}getToken()}return attr}function newSyntaxError(message){return new SyntaxError(message+', got \"'+chop(token,30)+'\" (char '+index+\")\")}function chop(text,maxLength){return text.length<=maxLength?text:text.substr(0,27)+\"...\"}function forEach2(array1,array2,fn){if(Array.isArray(array1)){array1.forEach(function(elem1){if(Array.isArray(array2)){array2.forEach(function(elem2){fn(elem1,elem2)})}else{fn(elem1,array2)}})}else{if(Array.isArray(array2)){array2.forEach(function(elem2){fn(array1,elem2)})}else{fn(array1,array2)}}}function setProp(object,path,value){var names=path.split(\".\");var prop=names.pop();var obj=object;for(var i=0;i<names.length;i++){var name=names[i];if(!(name in obj)){obj[name]={}}obj=obj[name]}obj[prop]=value;return object}function convertAttr(attr,mapping){var converted={};for(var prop in attr){if(attr.hasOwnProperty(prop)){var visProp=mapping[prop];if(Array.isArray(visProp)){visProp.forEach(function(visPropI){setProp(converted,visPropI,attr[prop])})}else if(typeof visProp===\"string\"){setProp(converted,visProp,attr[prop])}else{setProp(converted,prop,attr[prop])}}}return converted}function DOTToGraph(data){var dotData=parseDOT(data);var graphData={nodes:[],edges:[],options:{}};if(dotData.nodes){dotData.nodes.forEach(function(dotNode){var graphNode={id:dotNode.id,label:String(dotNode.label||dotNode.id)};merge(graphNode,convertAttr(dotNode.attr,NODE_ATTR_MAPPING));if(graphNode.image){graphNode.shape=\"image\"}graphData.nodes.push(graphNode)})}if(dotData.edges){var convertEdge=function convertEdge(dotEdge){var graphEdge={from:dotEdge.from,to:dotEdge.to};merge(graphEdge,convertAttr(dotEdge.attr,EDGE_ATTR_MAPPING));graphEdge.arrows=dotEdge.type===\"->\"?\"to\":undefined;return graphEdge};dotData.edges.forEach(function(dotEdge){var from,to;if(dotEdge.from instanceof Object){from=dotEdge.from.nodes}else{from={id:dotEdge.from}}if(dotEdge.to instanceof Object){to=dotEdge.to.nodes}else{to={id:dotEdge.to}}if(dotEdge.from instanceof Object&&dotEdge.from.edges){dotEdge.from.edges.forEach(function(subEdge){var graphEdge=convertEdge(subEdge);graphData.edges.push(graphEdge)})}forEach2(from,to,function(from,to){var subEdge=createEdge(graphData,from.id,to.id,dotEdge.type,dotEdge.attr);var graphEdge=convertEdge(subEdge);graphData.edges.push(graphEdge)});if(dotEdge.to instanceof Object&&dotEdge.to.edges){dotEdge.to.edges.forEach(function(subEdge){var graphEdge=convertEdge(subEdge);graphData.edges.push(graphEdge)})}})}if(dotData.attr){graphData.options=dotData.attr}return graphData}exports.parseDOT=parseDOT;exports.DOTToGraph=DOTToGraph},function(module,exports,__webpack_require__){\"use strict\";function parseGephi(gephiJSON,optionsObj){var edges=[];var nodes=[];var options={edges:{inheritColor:false},nodes:{fixed:false,parseColor:false}};if(optionsObj!==undefined){if(optionsObj.fixed!==undefined){options.nodes.fixed=optionsObj.fixed}if(optionsObj.parseColor!==undefined){options.nodes.parseColor=optionsObj.parseColor}if(optionsObj.inheritColor!==undefined){options.edges.inheritColor=optionsObj.inheritColor}}var gEdges=gephiJSON.edges;var gNodes=gephiJSON.nodes;for(var i=0;i<gEdges.length;i++){var edge={};var gEdge=gEdges[i];edge[\"id\"]=gEdge.id;edge[\"from\"]=gEdge.source;edge[\"to\"]=gEdge.target;edge[\"attributes\"]=gEdge.attributes;edge[\"label\"]=gEdge.label;edge[\"title\"]=gEdge.attributes!==undefined?gEdge.attributes.title:undefined;if(gEdge[\"type\"]===\"Directed\"){edge[\"arrows\"]=\"to\"}if(gEdge.color&&options.inheritColor===false){edge[\"color\"]=gEdge.color}edges.push(edge)}for(var j=0;j<gNodes.length;j++){var node={};var gNode=gNodes[j];node[\"id\"]=gNode.id;node[\"attributes\"]=gNode.attributes;node[\"x\"]=gNode.x;node[\"y\"]=gNode.y;node[\"label\"]=gNode.label;node[\"title\"]=gNode.attributes!==undefined?gNode.attributes.title:gNode.title;if(options.nodes.parseColor===true){node[\"color\"]=gNode.color}else{node[\"color\"]=gNode.color!==undefined?{background:gNode.color,border:gNode.color,highlight:{background:gNode.color,border:gNode.color},hover:{background:gNode.color,border:gNode.color}}:undefined}node[\"size\"]=gNode.size;node[\"fixed\"]=options.nodes.fixed&&gNode.x!==undefined&&gNode.y!==undefined;nodes.push(node)}return{nodes:nodes,edges:edges}}exports.parseGephi=parseGephi},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _CachedImage=__webpack_require__(185);var _CachedImage2=_interopRequireDefault(_CachedImage);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Images=function(){function Images(callback){(0,_classCallCheck3[\"default\"])(this,Images);this.images={};this.imageBroken={};this.callback=callback}(0,_createClass3[\"default\"])(Images,[{key:\"_tryloadBrokenUrl\",value:function _tryloadBrokenUrl(url,brokenUrl,imageToLoadBrokenUrlOn){if(url===undefined||imageToLoadBrokenUrlOn===undefined)return;if(brokenUrl===undefined){console.warn(\"No broken url image defined\");return}imageToLoadBrokenUrlOn.onerror=function(){console.error(\"Could not load brokenImage:\",brokenUrl)};imageToLoadBrokenUrlOn.image.src=brokenUrl}},{key:\"_redrawWithImage\",value:function _redrawWithImage(imageToRedrawWith){if(this.callback){this.callback(imageToRedrawWith)}}},{key:\"load\",value:function load(url,brokenUrl){var _this=this;var cachedImage=this.images[url];if(cachedImage)return cachedImage;var img=new _CachedImage2[\"default\"];this.images[url]=img;img.image.onload=function(){_this._fixImageCoordinates(img.image);img.init();_this._redrawWithImage(img)};img.image.onerror=function(){console.error(\"Could not load image:\",url);_this._tryloadBrokenUrl(url,brokenUrl,img)};img.image.src=url;return img}},{key:\"_fixImageCoordinates\",value:function _fixImageCoordinates(imageToCache){if(imageToCache.width===0){document.body.appendChild(imageToCache);imageToCache.width=imageToCache.offsetWidth;imageToCache.height=imageToCache.offsetHeight;document.body.removeChild(imageToCache)}}}]);return Images}();exports[\"default\"]=Images},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var ComponentUtil=__webpack_require__(48)[\"default\"];var LabelSplitter=__webpack_require__(191)[\"default\"];var multiFontStyle=[\"bold\",\"ital\",\"boldital\",\"mono\"];var Label=function(){function Label(body,options){var edgelabel=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;(0,_classCallCheck3[\"default\"])(this,Label);this.body=body;this.pointToSelf=false;this.baseSize=undefined;this.fontOptions={};this.setOptions(options);this.size={top:0,left:0,width:0,height:0,yLine:0};this.isEdgeLabel=edgelabel}(0,_createClass3[\"default\"])(Label,[{key:\"setOptions\",value:function setOptions(options){this.elementOptions=options;this.initFontOptions(options.font);if(ComponentUtil.isValidLabel(options.label)){this.labelDirty=true}else{options.label=\"\"}if(options.font!==undefined&&options.font!==null){if(typeof options.font===\"string\"){this.baseSize=this.fontOptions.size}else if((0,_typeof3[\"default\"])(options.font)===\"object\"){var size=options.font.size;if(size!==undefined){this.baseSize=size}}}}},{key:\"initFontOptions\",value:function initFontOptions(newFontOptions){var _this=this;util.forEach(multiFontStyle,function(style){_this.fontOptions[style]={}});if(Label.parseFontString(this.fontOptions,newFontOptions)){this.fontOptions.vadjust=0;return}util.forEach(newFontOptions,function(prop,n){if(prop!==undefined&&prop!==null&&(typeof prop===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(prop))!==\"object\"){_this.fontOptions[n]=prop}})}},{key:\"constrain\",value:function constrain(pile){var fontOptions={constrainWidth:false,maxWdt:-1,minWdt:-1,constrainHeight:false,minHgt:-1,valign:\"middle\"};var widthConstraint=util.topMost(pile,\"widthConstraint\");if(typeof widthConstraint===\"number\"){fontOptions.maxWdt=Number(widthConstraint);fontOptions.minWdt=Number(widthConstraint)}else if((typeof widthConstraint===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(widthConstraint))===\"object\"){var widthConstraintMaximum=util.topMost(pile,[\"widthConstraint\",\"maximum\"]);if(typeof widthConstraintMaximum===\"number\"){fontOptions.maxWdt=Number(widthConstraintMaximum)}var widthConstraintMinimum=util.topMost(pile,[\"widthConstraint\",\"minimum\"]);if(typeof widthConstraintMinimum===\"number\"){fontOptions.minWdt=Number(widthConstraintMinimum)}}var heightConstraint=util.topMost(pile,\"heightConstraint\");if(typeof heightConstraint===\"number\"){fontOptions.minHgt=Number(heightConstraint)}else if((typeof heightConstraint===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(heightConstraint))===\"object\"){var heightConstraintMinimum=util.topMost(pile,[\"heightConstraint\",\"minimum\"]);if(typeof heightConstraintMinimum===\"number\"){fontOptions.minHgt=Number(heightConstraintMinimum)}var heightConstraintValign=util.topMost(pile,[\"heightConstraint\",\"valign\"]);if(typeof heightConstraintValign===\"string\"){if(heightConstraintValign===\"top\"||heightConstraintValign===\"bottom\"){fontOptions.valign=heightConstraintValign}}}return fontOptions}},{key:\"update\",value:function update(options,pile){this.setOptions(options,true);this.propagateFonts(pile);util.deepExtend(this.fontOptions,this.constrain(pile));this.fontOptions.chooser=ComponentUtil.choosify(\"label\",pile)}},{key:\"adjustSizes\",value:function adjustSizes(margins){var widthBias=margins?margins.right+margins.left:0;if(this.fontOptions.constrainWidth){this.fontOptions.maxWdt-=widthBias;this.fontOptions.minWdt-=widthBias}var heightBias=margins?margins.top+margins.bottom:0;if(this.fontOptions.constrainHeight){this.fontOptions.minHgt-=heightBias}}},{key:\"addFontOptionsToPile\",value:function addFontOptionsToPile(dstPile,srcPile){for(var i=0;i<srcPile.length;++i){this.addFontToPile(dstPile,srcPile[i])}}},{key:\"addFontToPile\",value:function addFontToPile(pile,options){if(options===undefined)return;if(options.font===undefined||options.font===null)return;var item=options.font;pile.push(item)}},{key:\"getBasicOptions\",value:function getBasicOptions(pile){var ret={};for(var n=0;n<pile.length;++n){var fontOptions=pile[n];var tmpShorthand={};if(Label.parseFontString(tmpShorthand,fontOptions)){fontOptions=tmpShorthand}util.forEach(fontOptions,function(opt,name){if(opt===undefined)return;if(ret.hasOwnProperty(name))return;if(multiFontStyle.indexOf(name)!==-1){ret[name]={}}else{ret[name]=opt}})}return ret}},{key:\"getFontOption\",value:function getFontOption(pile,multiName,option){var multiFont=void 0;for(var n=0;n<pile.length;++n){var fontOptions=pile[n];if(fontOptions.hasOwnProperty(multiName)){multiFont=fontOptions[multiName];if(multiFont===undefined||multiFont===null)continue;var tmpShorthand={};if(Label.parseFontString(tmpShorthand,multiFont)){multiFont=tmpShorthand}if(multiFont.hasOwnProperty(option)){return multiFont[option]}}}if(this.fontOptions.hasOwnProperty(option)){return this.fontOptions[option]}throw new Error(\"Did not find value for multi-font for property: '\"+option+\"'\")}},{key:\"getFontOptions\",value:function getFontOptions(pile,multiName){var result={};var optionNames=[\"color\",\"size\",\"face\",\"mod\",\"vadjust\"];for(var i=0;i<optionNames.length;++i){var mod=optionNames[i];result[mod]=this.getFontOption(pile,multiName,mod)}return result}},{key:\"propagateFonts\",value:function propagateFonts(pile){var _this2=this;var fontPile=[];this.addFontOptionsToPile(fontPile,pile);this.fontOptions=this.getBasicOptions(fontPile);var _loop=function _loop(i){var mod=multiFontStyle[i];var modOptions=_this2.fontOptions[mod];var tmpMultiFontOptions=_this2.getFontOptions(fontPile,mod);util.forEach(tmpMultiFontOptions,function(option,n){modOptions[n]=option});modOptions.size=Number(modOptions.size);modOptions.vadjust=Number(modOptions.vadjust)};for(var i=0;i<multiFontStyle.length;++i){_loop(i)}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover){var baseline=arguments.length>5&&arguments[5]!==undefined?arguments[5]:\"middle\";if(this.elementOptions.label===undefined)return;var viewFontSize=this.fontOptions.size*this.body.view.scale;if(this.elementOptions.label&&viewFontSize<this.elementOptions.scaling.label.drawThreshold-1)return;if(viewFontSize>=this.elementOptions.scaling.label.maxVisible){viewFontSize=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale}this.calculateLabelSize(ctx,selected,hover,x,y,baseline);this._drawBackground(ctx);this._drawText(ctx,x,this.size.yLine,baseline,viewFontSize)}},{key:\"_drawBackground\",value:function _drawBackground(ctx){if(this.fontOptions.background!==undefined&&this.fontOptions.background!==\"none\"){ctx.fillStyle=this.fontOptions.background;var size=this.getSize();ctx.fillRect(size.left,size.top,size.width,size.height)}}},{key:\"_drawText\",value:function _drawText(ctx,x,y){var baseline=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\"middle\";var viewFontSize=arguments[4];var _setAlignment2=this._setAlignment(ctx,x,y,baseline);var _setAlignment3=(0,_slicedToArray3[\"default\"])(_setAlignment2,2);x=_setAlignment3[0];y=_setAlignment3[1];ctx.textAlign=\"left\";x=x-this.size.width/2;if(this.fontOptions.valign&&this.size.height>this.size.labelHeight){if(this.fontOptions.valign===\"top\"){y-=(this.size.height-this.size.labelHeight)/2}if(this.fontOptions.valign===\"bottom\"){y+=(this.size.height-this.size.labelHeight)/2}}for(var i=0;i<this.lineCount;i++){var line=this.lines[i];if(line&&line.blocks){var width=0;if(this.isEdgeLabel||this.fontOptions.align===\"center\"){width+=(this.size.width-line.width)/2}else if(this.fontOptions.align===\"right\"){width+=this.size.width-line.width}for(var j=0;j<line.blocks.length;j++){var block=line.blocks[j];ctx.font=block.font;var _getColor2=this._getColor(block.color,viewFontSize,block.strokeColor),_getColor3=(0,_slicedToArray3[\"default\"])(_getColor2,2),fontColor=_getColor3[0],strokeColor=_getColor3[1];if(block.strokeWidth>0){ctx.lineWidth=block.strokeWidth;ctx.strokeStyle=strokeColor;ctx.lineJoin=\"round\"}ctx.fillStyle=fontColor;if(block.strokeWidth>0){ctx.strokeText(block.text,x+width,y+block.vadjust)}ctx.fillText(block.text,x+width,y+block.vadjust);width+=block.width}y+=line.height}}}},{key:\"_setAlignment\",value:function _setAlignment(ctx,x,y,baseline){if(this.isEdgeLabel&&this.fontOptions.align!==\"horizontal\"&&this.pointToSelf===false){x=0;y=0;var lineMargin=2;if(this.fontOptions.align===\"top\"){ctx.textBaseline=\"alphabetic\";y-=2*lineMargin}else if(this.fontOptions.align===\"bottom\"){ctx.textBaseline=\"hanging\";y+=2*lineMargin}else{ctx.textBaseline=\"middle\"}}else{ctx.textBaseline=baseline}return[x,y]}},{key:\"_getColor\",value:function _getColor(color,viewFontSize,initialStrokeColor){var fontColor=color||\"#000000\";var strokeColor=initialStrokeColor||\"#ffffff\";if(viewFontSize<=this.elementOptions.scaling.label.drawThreshold){var opacity=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-viewFontSize)));fontColor=util.overrideOpacity(fontColor,opacity);strokeColor=util.overrideOpacity(strokeColor,opacity)}return[fontColor,strokeColor]}},{key:\"getTextSize\",value:function getTextSize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;this._processLabel(ctx,selected,hover);return{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:\"getSize\",value:function getSize(){var lineMargin=2;var x=this.size.left;var y=this.size.top-.5*lineMargin;if(this.isEdgeLabel){var x2=-this.size.width*.5;switch(this.fontOptions.align){case\"middle\":x=x2;y=-this.size.height*.5;break;case\"top\":x=x2;y=-(this.size.height+lineMargin);break;case\"bottom\":x=x2;y=lineMargin;break}}var ret={left:x,top:y,width:this.size.width,height:this.size.height};return ret}},{key:\"calculateLabelSize\",value:function calculateLabelSize(ctx,selected,hover){var x=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var y=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;var baseline=arguments.length>5&&arguments[5]!==undefined?arguments[5]:\"middle\";this._processLabel(ctx,selected,hover);this.size.left=x-this.size.width*.5;this.size.top=y-this.size.height*.5;this.size.yLine=y+(1-this.lineCount)*.5*this.fontOptions.size;if(baseline===\"hanging\"){this.size.top+=.5*this.fontOptions.size;this.size.top+=4;this.size.yLine+=4}}},{key:\"getFormattingValues\",value:function getFormattingValues(ctx,selected,hover,mod){var getValue=function getValue(fontOptions,mod,option){if(mod===\"normal\"){if(option===\"mod\")return\"\";return fontOptions[option]}if(fontOptions[mod][option]!==undefined){return fontOptions[mod][option]}else{return fontOptions[option]}};var values={color:getValue(this.fontOptions,mod,\"color\"),size:getValue(this.fontOptions,mod,\"size\"),face:getValue(this.fontOptions,mod,\"face\"),mod:getValue(this.fontOptions,mod,\"mod\"),vadjust:getValue(this.fontOptions,mod,\"vadjust\"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};if(selected||hover){if(mod===\"normal\"&&this.fontOptions.chooser===true&&this.elementOptions.labelHighlightBold){values.mod=\"bold\"}else{if(typeof this.fontOptions.chooser===\"function\"){this.fontOptions.chooser(values,this.elementOptions.id,selected,hover)}}}var fontString=\"\";if(values.mod!==undefined&&values.mod!==\"\"){fontString+=values.mod+\" \"}fontString+=values.size+\"px \"+values.face;ctx.font=fontString.replace(/\"/g,\"\");values.font=ctx.font;values.height=values.size;return values}},{key:\"differentState\",value:function differentState(selected,hover){return selected!==this.selectedState||hover!==this.hoverState}},{key:\"_processLabelText\",value:function _processLabelText(ctx,selected,hover,inText){var splitter=new LabelSplitter(ctx,this,selected,hover);return splitter.process(inText)}},{key:\"_processLabel\",value:function _processLabel(ctx,selected,hover){if(this.labelDirty===false&&!this.differentState(selected,hover))return;var state=this._processLabelText(ctx,selected,hover,this.elementOptions.label);if(this.fontOptions.minWdt>0&&state.width<this.fontOptions.minWdt){state.width=this.fontOptions.minWdt}this.size.labelHeight=state.height;if(this.fontOptions.minHgt>0&&state.height<this.fontOptions.minHgt){state.height=this.fontOptions.minHgt}this.lines=state.lines;this.lineCount=state.lines.length;this.size.width=state.width;this.size.height=state.height;this.selectedState=selected;this.hoverState=hover;this.labelDirty=false}},{key:\"visible\",value:function visible(){if(this.size.width===0||this.size.height===0||this.elementOptions.label===undefined){return false}var viewFontSize=this.fontOptions.size*this.body.view.scale;if(viewFontSize<this.elementOptions.scaling.label.drawThreshold-1){return false}return true}}],[{key:\"parseFontString\",value:function parseFontString(outOptions,inOptions){if(!inOptions||typeof inOptions!==\"string\")return false;var newOptionsArray=inOptions.split(\" \");outOptions.size=newOptionsArray[0].replace(\"px\",\"\");outOptions.face=newOptionsArray[1];outOptions.color=newOptionsArray[2];return true}}]);return Label}();exports[\"default\"]=Label},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var EndPoints=__webpack_require__(119)[\"default\"];var EdgeBase=function(){function EdgeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,EdgeBase);this.body=body;this.labelModule=labelModule\n;this.options={};this.setOptions(options);this.colorDirty=true;this.color={};this.selectionWidth=2;this.hoverWidth=1.5;this.fromPoint=this.from;this.toPoint=this.to}(0,_createClass3[\"default\"])(EdgeBase,[{key:\"connect\",value:function connect(){this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to]}},{key:\"cleanup\",value:function cleanup(){return false}},{key:\"setOptions\",value:function setOptions(options){this.options=options;this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to];this.id=this.options.id}},{key:\"drawLine\",value:function drawLine(ctx,values,selected,hover,viaNode){ctx.strokeStyle=this.getColor(ctx,values,selected,hover);ctx.lineWidth=values.width;if(values.dashes!==false){this._drawDashedLine(ctx,values,viaNode)}else{this._drawLine(ctx,values,viaNode)}}},{key:\"_drawLine\",value:function _drawLine(ctx,values,viaNode,fromPoint,toPoint){if(this.from!=this.to){this._line(ctx,values,viaNode,fromPoint,toPoint)}else{var _getCircleData2=this._getCircleData(ctx),_getCircleData3=(0,_slicedToArray3[\"default\"])(_getCircleData2,3),x=_getCircleData3[0],y=_getCircleData3[1],radius=_getCircleData3[2];this._circle(ctx,values,x,y,radius)}}},{key:\"_drawDashedLine\",value:function _drawDashedLine(ctx,values,viaNode,fromPoint,toPoint){ctx.lineCap=\"round\";var pattern=[5,5];if(Array.isArray(values.dashes)===true){pattern=values.dashes}if(ctx.setLineDash!==undefined){ctx.save();ctx.setLineDash(pattern);ctx.lineDashOffset=0;if(this.from!=this.to){this._line(ctx,values,viaNode)}else{var _getCircleData4=this._getCircleData(ctx),_getCircleData5=(0,_slicedToArray3[\"default\"])(_getCircleData4,3),x=_getCircleData5[0],y=_getCircleData5[1],radius=_getCircleData5[2];this._circle(ctx,values,x,y,radius)}ctx.setLineDash([0]);ctx.lineDashOffset=0;ctx.restore()}else{if(this.from!=this.to){ctx.dashedLine(this.from.x,this.from.y,this.to.x,this.to.y,pattern)}else{var _getCircleData6=this._getCircleData(ctx),_getCircleData7=(0,_slicedToArray3[\"default\"])(_getCircleData6,3),_x=_getCircleData7[0],_y=_getCircleData7[1],_radius=_getCircleData7[2];this._circle(ctx,values,_x,_y,_radius)}this.enableShadow(ctx,values);ctx.stroke();this.disableShadow(ctx,values)}}},{key:\"findBorderPosition\",value:function findBorderPosition(nearNode,ctx,options){if(this.from!=this.to){return this._findBorderPosition(nearNode,ctx,options)}else{return this._findBorderPositionCircle(nearNode,ctx,options)}}},{key:\"findBorderPositions\",value:function findBorderPositions(ctx){var from={};var to={};if(this.from!=this.to){from=this._findBorderPosition(this.from,ctx);to=this._findBorderPosition(this.to,ctx)}else{var _getCircleData$slice=this._getCircleData(ctx).slice(0,2),_getCircleData$slice2=(0,_slicedToArray3[\"default\"])(_getCircleData$slice,2),x=_getCircleData$slice2[0],y=_getCircleData$slice2[1];from=this._findBorderPositionCircle(this.from,ctx,{x:x,y:y,low:.25,high:.6,direction:-1});to=this._findBorderPositionCircle(this.from,ctx,{x:x,y:y,low:.6,high:.8,direction:1})}return{from:from,to:to}}},{key:\"_getCircleData\",value:function _getCircleData(ctx){var x=void 0,y=void 0;var node=this.from;var radius=this.options.selfReferenceSize;if(ctx!==undefined){if(node.shape.width===undefined){node.shape.resize(ctx)}}if(node.shape.width>node.shape.height){x=node.x+node.shape.width*.5;y=node.y-radius}else{x=node.x+radius;y=node.y-node.shape.height*.5}return[x,y,radius]}},{key:\"_pointOnCircle\",value:function _pointOnCircle(x,y,radius,percentage){var angle=percentage*2*Math.PI;return{x:x+radius*Math.cos(angle),y:y-radius*Math.sin(angle)}}},{key:\"_findBorderPositionCircle\",value:function _findBorderPositionCircle(node,ctx,options){var x=options.x;var y=options.y;var low=options.low;var high=options.high;var direction=options.direction;var maxIterations=10;var iteration=0;var radius=this.options.selfReferenceSize;var pos=void 0,angle=void 0,distanceToBorder=void 0,distanceToPoint=void 0,difference=void 0;var threshold=.05;var middle=(low+high)*.5;while(low<=high&&iteration<maxIterations){middle=(low+high)*.5;pos=this._pointOnCircle(x,y,radius,middle);angle=Math.atan2(node.y-pos.y,node.x-pos.x);distanceToBorder=node.distanceToBorder(ctx,angle);distanceToPoint=Math.sqrt(Math.pow(pos.x-node.x,2)+Math.pow(pos.y-node.y,2));difference=distanceToBorder-distanceToPoint;if(Math.abs(difference)<threshold){break}else if(difference>0){if(direction>0){low=middle}else{high=middle}}else{if(direction>0){high=middle}else{low=middle}}iteration++}pos.t=middle;return pos}},{key:\"getLineWidth\",value:function getLineWidth(selected,hover){if(selected===true){return Math.max(this.selectionWidth,.3/this.body.view.scale)}else{if(hover===true){return Math.max(this.hoverWidth,.3/this.body.view.scale)}else{return Math.max(this.options.width,.3/this.body.view.scale)}}}},{key:\"getColor\",value:function getColor(ctx,values,selected,hover){if(values.inheritsColor!==false){if(values.inheritsColor===\"both\"&&this.from.id!==this.to.id){var grd=ctx.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y);var fromColor=void 0,toColor=void 0;fromColor=this.from.options.color.highlight.border;toColor=this.to.options.color.highlight.border;if(this.from.selected===false&&this.to.selected===false){fromColor=util.overrideOpacity(this.from.options.color.border,values.opacity);toColor=util.overrideOpacity(this.to.options.color.border,values.opacity)}else if(this.from.selected===true&&this.to.selected===false){toColor=this.to.options.color.border}else if(this.from.selected===false&&this.to.selected===true){fromColor=this.from.options.color.border}grd.addColorStop(0,fromColor);grd.addColorStop(1,toColor);return grd}if(values.inheritsColor===\"to\"){return util.overrideOpacity(this.to.options.color.border,values.opacity)}else{return util.overrideOpacity(this.from.options.color.border,values.opacity)}}else{return util.overrideOpacity(values.color,values.opacity)}}},{key:\"_circle\",value:function _circle(ctx,values,x,y,radius){this.enableShadow(ctx,values);ctx.beginPath();ctx.arc(x,y,radius,0,2*Math.PI,false);ctx.stroke();this.disableShadow(ctx,values)}},{key:\"getDistanceToEdge\",value:function getDistanceToEdge(x1,y1,x2,y2,x3,y3,via,values){var returnValue=0;if(this.from!=this.to){returnValue=this._getDistanceToEdge(x1,y1,x2,y2,x3,y3,via)}else{var _getCircleData8=this._getCircleData(undefined),_getCircleData9=(0,_slicedToArray3[\"default\"])(_getCircleData8,3),x=_getCircleData9[0],y=_getCircleData9[1],radius=_getCircleData9[2];var dx=x-x3;var dy=y-y3;returnValue=Math.abs(Math.sqrt(dx*dx+dy*dy)-radius)}return returnValue}},{key:\"_getDistanceToLine\",value:function _getDistanceToLine(x1,y1,x2,y2,x3,y3){var px=x2-x1;var py=y2-y1;var something=px*px+py*py;var u=((x3-x1)*px+(y3-y1)*py)/something;if(u>1){u=1}else if(u<0){u=0}var x=x1+u*px;var y=y1+u*py;var dx=x-x3;var dy=y-y3;return Math.sqrt(dx*dx+dy*dy)}},{key:\"getArrowData\",value:function getArrowData(ctx,position,viaNode,selected,hover,values){var angle=void 0;var arrowPoint=void 0;var node1=void 0;var node2=void 0;var guideOffset=void 0;var scaleFactor=void 0;var type=void 0;var lineWidth=values.width;if(position===\"from\"){node1=this.from;node2=this.to;guideOffset=.1;scaleFactor=values.fromArrowScale;type=values.fromArrowType}else if(position===\"to\"){node1=this.to;node2=this.from;guideOffset=-.1;scaleFactor=values.toArrowScale;type=values.toArrowType}else{node1=this.to;node2=this.from;scaleFactor=values.middleArrowScale;type=values.middleArrowType}if(node1!=node2){if(position!==\"middle\"){if(this.options.smooth.enabled===true){arrowPoint=this.findBorderPosition(node1,ctx,{via:viaNode});var guidePos=this.getPoint(Math.max(0,Math.min(1,arrowPoint.t+guideOffset)),viaNode);angle=Math.atan2(arrowPoint.y-guidePos.y,arrowPoint.x-guidePos.x)}else{angle=Math.atan2(node1.y-node2.y,node1.x-node2.x);arrowPoint=this.findBorderPosition(node1,ctx)}}else{angle=Math.atan2(node1.y-node2.y,node1.x-node2.x);arrowPoint=this.getPoint(.5,viaNode)}}else{var _getCircleData10=this._getCircleData(ctx),_getCircleData11=(0,_slicedToArray3[\"default\"])(_getCircleData10,3),x=_getCircleData11[0],y=_getCircleData11[1],radius=_getCircleData11[2];if(position===\"from\"){arrowPoint=this.findBorderPosition(this.from,ctx,{x:x,y:y,low:.25,high:.6,direction:-1});angle=arrowPoint.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI}else if(position===\"to\"){arrowPoint=this.findBorderPosition(this.from,ctx,{x:x,y:y,low:.6,high:1,direction:1});angle=arrowPoint.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI}else{arrowPoint=this._pointOnCircle(x,y,radius,.175);angle=3.9269908169872414}}if(position===\"middle\"&&scaleFactor<0)lineWidth*=-1;var length=15*scaleFactor+3*lineWidth;var xi=arrowPoint.x-length*.9*Math.cos(angle);var yi=arrowPoint.y-length*.9*Math.sin(angle);var arrowCore={x:xi,y:yi};return{point:arrowPoint,core:arrowCore,angle:angle,length:length,type:type}}},{key:\"drawArrowHead\",value:function drawArrowHead(ctx,values,selected,hover,arrowData){ctx.strokeStyle=this.getColor(ctx,values,selected,hover);ctx.fillStyle=ctx.strokeStyle;ctx.lineWidth=values.width;EndPoints.draw(ctx,arrowData);this.enableShadow(ctx,values);ctx.fill();this.disableShadow(ctx,values)}},{key:\"enableShadow\",value:function enableShadow(ctx,values){if(values.shadow===true){ctx.shadowColor=values.shadowColor;ctx.shadowBlur=values.shadowSize;ctx.shadowOffsetX=values.shadowX;ctx.shadowOffsetY=values.shadowY}}},{key:\"disableShadow\",value:function disableShadow(ctx,values){if(values.shadow===true){ctx.shadowColor=\"rgba(0,0,0,0)\";ctx.shadowBlur=0;ctx.shadowOffsetX=0;ctx.shadowOffsetY=0}}}]);return EdgeBase}();exports[\"default\"]=EdgeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var EndPoint=function(){function EndPoint(){(0,_classCallCheck3[\"default\"])(this,EndPoint)}(0,_createClass3[\"default\"])(EndPoint,null,[{key:\"transform\",value:function transform(points,arrowData){if(!(points instanceof Array)){points=[points]}var x=arrowData.point.x;var y=arrowData.point.y;var angle=arrowData.angle;var length=arrowData.length;for(var i=0;i<points.length;++i){var p=points[i];var xt=p.x*Math.cos(angle)-p.y*Math.sin(angle);var yt=p.x*Math.sin(angle)+p.y*Math.cos(angle);p.x=x+length*xt;p.y=y+length*yt}}},{key:\"drawPath\",value:function drawPath(ctx,points){ctx.beginPath();ctx.moveTo(points[0].x,points[0].y);for(var i=1;i<points.length;++i){ctx.lineTo(points[i].x,points[i].y)}ctx.closePath()}}]);return EndPoint}();var Arrow=function(_EndPoint){(0,_inherits3[\"default\"])(Arrow,_EndPoint);function Arrow(){(0,_classCallCheck3[\"default\"])(this,Arrow);return(0,_possibleConstructorReturn3[\"default\"])(this,(Arrow.__proto__||(0,_getPrototypeOf2[\"default\"])(Arrow)).apply(this,arguments))}(0,_createClass3[\"default\"])(Arrow,null,[{key:\"draw\",value:function draw(ctx,arrowData){var points=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];EndPoint.transform(points,arrowData);EndPoint.drawPath(ctx,points)}}]);return Arrow}(EndPoint);var Circle=function(){function Circle(){(0,_classCallCheck3[\"default\"])(this,Circle)}(0,_createClass3[\"default\"])(Circle,null,[{key:\"draw\",value:function draw(ctx,arrowData){var point={x:-.4,y:0};EndPoint.transform(point,arrowData);ctx.circle(point.x,point.y,arrowData.length*.4)}}]);return Circle}();var Bar=function(){function Bar(){(0,_classCallCheck3[\"default\"])(this,Bar)}(0,_createClass3[\"default\"])(Bar,null,[{key:\"draw\",value:function draw(ctx,arrowData){var points=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];EndPoint.transform(points,arrowData);EndPoint.drawPath(ctx,points)}}]);return Bar}();var EndPoints=function(){function EndPoints(){(0,_classCallCheck3[\"default\"])(this,EndPoints)}(0,_createClass3[\"default\"])(EndPoints,null,[{key:\"draw\",value:function draw(ctx,arrowData){var type;if(arrowData.type){type=arrowData.type.toLowerCase()}switch(type){case\"circle\":Circle.draw(ctx,arrowData);break;case\"bar\":Bar.draw(ctx,arrowData);break;case\"arrow\":default:Arrow.draw(ctx,arrowData)}}}]);return EndPoints}();exports[\"default\"]=EndPoints},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BarnesHutSolver=function(){function BarnesHutSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,BarnesHutSolver);this.body=body;this.physicsBody=physicsBody;this.barnesHutTree;this.setOptions(options);this.randomSeed=5}(0,_createClass3[\"default\"])(BarnesHutSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options;this.thetaInversed=1/this.options.theta;this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:\"seededRandom\",value:function seededRandom(){var x=Math.sin(this.randomSeed++)*1e4;return x-Math.floor(x)}},{key:\"solve\",value:function solve(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var node=void 0;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var nodeCount=nodeIndices.length;var barnesHutTree=this._formBarnesHutTree(nodes,nodeIndices);this.barnesHutTree=barnesHutTree;for(var i=0;i<nodeCount;i++){node=nodes[nodeIndices[i]];if(node.options.mass>0){this._getForceContributions(barnesHutTree.root,node)}}}}},{key:\"_getForceContributions\",value:function _getForceContributions(parentBranch,node){this._getForceContribution(parentBranch.children.NW,node);this._getForceContribution(parentBranch.children.NE,node);this._getForceContribution(parentBranch.children.SW,node);this._getForceContribution(parentBranch.children.SE,node)}},{key:\"_getForceContribution\",value:function _getForceContribution(parentBranch,node){if(parentBranch.childrenCount>0){var dx=void 0,dy=void 0,distance=void 0;dx=parentBranch.centerOfMass.x-node.x;dy=parentBranch.centerOfMass.y-node.y;distance=Math.sqrt(dx*dx+dy*dy);if(distance*parentBranch.calcSize>this.thetaInversed){this._calculateForces(distance,dx,dy,node,parentBranch)}else{if(parentBranch.childrenCount===4){this._getForceContributions(parentBranch,node)}else{if(parentBranch.children.data.id!=node.id){this._calculateForces(distance,dx,dy,node,parentBranch)}}}}}},{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,node,parentBranch){if(distance===0){distance=.1;dx=distance}if(this.overlapAvoidanceFactor<1&&node.shape.radius){distance=Math.max(.1+this.overlapAvoidanceFactor*node.shape.radius,distance-node.shape.radius)}var gravityForce=this.options.gravitationalConstant*parentBranch.mass*node.options.mass/Math.pow(distance,3);var fx=dx*gravityForce;var fy=dy*gravityForce;this.physicsBody.forces[node.id].x+=fx;this.physicsBody.forces[node.id].y+=fy}},{key:\"_formBarnesHutTree\",value:function _formBarnesHutTree(nodes,nodeIndices){var node=void 0;var nodeCount=nodeIndices.length;var minX=nodes[nodeIndices[0]].x;var minY=nodes[nodeIndices[0]].y;var maxX=nodes[nodeIndices[0]].x;var maxY=nodes[nodeIndices[0]].y;for(var i=1;i<nodeCount;i++){var _node=nodes[nodeIndices[i]];var x=_node.x;var y=_node.y;if(_node.options.mass>0){if(x<minX){minX=x}if(x>maxX){maxX=x}if(y<minY){minY=y}if(y>maxY){maxY=y}}}var sizeDiff=Math.abs(maxX-minX)-Math.abs(maxY-minY);if(sizeDiff>0){minY-=.5*sizeDiff;maxY+=.5*sizeDiff}else{minX+=.5*sizeDiff;maxX-=.5*sizeDiff}var minimumTreeSize=1e-5;var rootSize=Math.max(minimumTreeSize,Math.abs(maxX-minX));var halfRootSize=.5*rootSize;var centerX=.5*(minX+maxX),centerY=.5*(minY+maxY);var barnesHutTree={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:centerX-halfRootSize,maxX:centerX+halfRootSize,minY:centerY-halfRootSize,maxY:centerY+halfRootSize},size:rootSize,calcSize:1/rootSize,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(barnesHutTree.root);for(var _i=0;_i<nodeCount;_i++){node=nodes[nodeIndices[_i]];if(node.options.mass>0){this._placeInTree(barnesHutTree.root,node)}}return barnesHutTree}},{key:\"_updateBranchMass\",value:function _updateBranchMass(parentBranch,node){var centerOfMass=parentBranch.centerOfMass;var totalMass=parentBranch.mass+node.options.mass;var totalMassInv=1/totalMass;centerOfMass.x=centerOfMass.x*parentBranch.mass+node.x*node.options.mass;centerOfMass.x*=totalMassInv;centerOfMass.y=centerOfMass.y*parentBranch.mass+node.y*node.options.mass;centerOfMass.y*=totalMassInv;parentBranch.mass=totalMass;var biggestSize=Math.max(Math.max(node.height,node.radius),node.width);parentBranch.maxWidth=parentBranch.maxWidth<biggestSize?biggestSize:parentBranch.maxWidth}},{key:\"_placeInTree\",value:function _placeInTree(parentBranch,node,skipMassUpdate){if(skipMassUpdate!=true||skipMassUpdate===undefined){this._updateBranchMass(parentBranch,node)}var range=parentBranch.children.NW.range;var region=void 0;if(range.maxX>node.x){if(range.maxY>node.y){region=\"NW\"}else{region=\"SW\"}}else{if(range.maxY>node.y){region=\"NE\"}else{region=\"SE\"}}this._placeInRegion(parentBranch,node,region)}},{key:\"_placeInRegion\",value:function _placeInRegion(parentBranch,node,region){var children=parentBranch.children[region];switch(children.childrenCount){case 0:children.children.data=node;children.childrenCount=1;this._updateBranchMass(children,node);break;case 1:if(children.children.data.x===node.x&&children.children.data.y===node.y){node.x+=this.seededRandom();node.y+=this.seededRandom()}else{this._splitBranch(children);this._placeInTree(children,node)}break;case 4:this._placeInTree(children,node);break}}},{key:\"_splitBranch\",value:function _splitBranch(parentBranch){var containedNode=null;if(parentBranch.childrenCount===1){containedNode=parentBranch.children.data;parentBranch.mass=0;parentBranch.centerOfMass.x=0;parentBranch.centerOfMass.y=0}parentBranch.childrenCount=4;parentBranch.children.data=null;this._insertRegion(parentBranch,\"NW\");this._insertRegion(parentBranch,\"NE\");this._insertRegion(parentBranch,\"SW\");this._insertRegion(parentBranch,\"SE\");if(containedNode!=null){this._placeInTree(parentBranch,containedNode)}}},{key:\"_insertRegion\",value:function _insertRegion(parentBranch,region){var minX=void 0,maxX=void 0,minY=void 0,maxY=void 0;var childSize=.5*parentBranch.size;switch(region){case\"NW\":minX=parentBranch.range.minX;maxX=parentBranch.range.minX+childSize;minY=parentBranch.range.minY;maxY=parentBranch.range.minY+childSize;break;case\"NE\":minX=parentBranch.range.minX+childSize;maxX=parentBranch.range.maxX;minY=parentBranch.range.minY;maxY=parentBranch.range.minY+childSize;break;case\"SW\":minX=parentBranch.range.minX;maxX=parentBranch.range.minX+childSize;minY=parentBranch.range.minY+childSize;maxY=parentBranch.range.maxY;break;case\"SE\":minX=parentBranch.range.minX+childSize;maxX=parentBranch.range.maxX;minY=parentBranch.range.minY+childSize;maxY=parentBranch.range.maxY;break}parentBranch.children[region]={centerOfMass:{x:0,y:0},mass:0,range:{minX:minX,maxX:maxX,minY:minY,maxY:maxY},size:.5*parentBranch.size,calcSize:2*parentBranch.calcSize,children:{data:null},maxWidth:0,level:parentBranch.level+1,childrenCount:0}}},{key:\"_debug\",value:function _debug(ctx,color){if(this.barnesHutTree!==undefined){ctx.lineWidth=1;this._drawBranch(this.barnesHutTree.root,ctx,color)}}},{key:\"_drawBranch\",value:function _drawBranch(branch,ctx,color){if(color===undefined){color=\"#FF0000\"}if(branch.childrenCount===4){this._drawBranch(branch.children.NW,ctx);this._drawBranch(branch.children.NE,ctx);this._drawBranch(branch.children.SE,ctx);this._drawBranch(branch.children.SW,ctx)}ctx.strokeStyle=color;ctx.beginPath();ctx.moveTo(branch.range.minX,branch.range.minY);ctx.lineTo(branch.range.maxX,branch.range.minY);ctx.stroke();ctx.beginPath();ctx.moveTo(branch.range.maxX,branch.range.minY);ctx.lineTo(branch.range.maxX,branch.range.maxY);ctx.stroke();ctx.beginPath();ctx.moveTo(branch.range.maxX,branch.range.maxY);ctx.lineTo(branch.range.minX,branch.range.maxY);ctx.stroke();ctx.beginPath();ctx.moveTo(branch.range.minX,branch.range.maxY);ctx.lineTo(branch.range.minX,branch.range.minY);ctx.stroke()}}]);return BarnesHutSolver}();exports[\"default\"]=BarnesHutSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CentralGravitySolver=function(){function CentralGravitySolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,CentralGravitySolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(CentralGravitySolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var dx=void 0,dy=void 0,distance=void 0,node=void 0;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;for(var i=0;i<nodeIndices.length;i++){var nodeId=nodeIndices[i];node=nodes[nodeId];dx=-node.x;dy=-node.y;distance=Math.sqrt(dx*dx+dy*dy);this._calculateForces(distance,dx,dy,forces,node)}}},{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,forces,node){var gravityForce=distance===0?0:this.options.centralGravity/distance;forces[node.id].x=dx*gravityForce;forces[node.id].y=dy*gravityForce}}]);return CentralGravitySolver}();exports[\"default\"]=CentralGravitySolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var array=\"array\";var object=\"object\";var dom=\"dom\";var any=\"any\";var endPoints=[\"arrow\",\"circle\",\"bar\"];var allOptions={configure:{enabled:{boolean:bool},filter:{boolean:bool,string:string,array:array,function:\"function\"},container:{dom:dom},showButton:{boolean:bool},__type__:{object:object,boolean:bool,string:string,array:array,function:\"function\"}},edges:{arrows:{to:{enabled:{boolean:bool},scaleFactor:{number:number},type:{string:endPoints},__type__:{object:object,boolean:bool}},middle:{enabled:{boolean:bool},scaleFactor:{number:number},type:{string:endPoints},__type__:{object:object,boolean:bool}},from:{enabled:{boolean:bool},scaleFactor:{number:number},type:{string:endPoints},__type__:{object:object,boolean:bool}},__type__:{string:[\"from\",\"to\",\"middle\"],object:object}},arrowStrikethrough:{boolean:bool},chosen:{label:{boolean:bool,function:\"function\"},edge:{boolean:bool,function:\"function\"},__type__:{object:object,boolean:bool}},color:{color:{string:string},highlight:{string:string},hover:{string:string},inherit:{string:[\"from\",\"to\",\"both\"],boolean:bool},opacity:{number:number},__type__:{object:object,string:string}},dashes:{boolean:bool,array:array},font:{color:{string:string},size:{number:number},face:{string:string},background:{string:string},strokeWidth:{number:number},strokeColor:{string:string},align:{string:[\"horizontal\",\"top\",\"middle\",\"bottom\"]},vadjust:{number:number},multi:{boolean:bool,string:string},bold:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},boldital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},ital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},mono:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},__type__:{object:object,string:string}},hidden:{boolean:bool},hoverWidth:{function:\"function\",number:number},label:{string:string,undefined:\"undefined\"},labelHighlightBold:{boolean:bool},length:{number:number,undefined:\"undefined\"},physics:{boolean:bool},scaling:{min:{number:number},max:{number:number},label:{enabled:{boolean:bool},min:{number:number},max:{number:number},maxVisible:{number:number},drawThreshold:{number:number},__type__:{object:object,boolean:bool}},customScalingFunction:{function:\"function\"},__type__:{object:object}},selectionWidth:{function:\"function\",number:number},selfReferenceSize:{number:number},shadow:{enabled:{boolean:bool},color:{string:string},size:{number:number},x:{number:number},y:{number:number},__type__:{object:object,boolean:bool}},smooth:{enabled:{boolean:bool},type:{string:[\"dynamic\",\"continuous\",\"discrete\",\"diagonalCross\",\"straightCross\",\"horizontal\",\"vertical\",\"curvedCW\",\"curvedCCW\",\"cubicBezier\"]},roundness:{number:number},forceDirection:{string:[\"horizontal\",\"vertical\",\"none\"],boolean:bool},__type__:{object:object,boolean:bool}},title:{string:string,undefined:\"undefined\"},width:{number:number},widthConstraint:{maximum:{number:number},__type__:{object:object,boolean:bool,number:number}},value:{number:number,undefined:\"undefined\"},__type__:{object:object}},groups:{useDefaultGroups:{boolean:bool},__any__:\"get from nodes, will be overwritten below\",__type__:{object:object}},interaction:{dragNodes:{boolean:bool},dragView:{boolean:bool},hideEdgesOnDrag:{boolean:bool},hideNodesOnDrag:{boolean:bool},hover:{boolean:bool},keyboard:{enabled:{boolean:bool},speed:{x:{number:number},y:{number:number},zoom:{number:number},__type__:{object:object}},bindToWindow:{boolean:bool},__type__:{object:object,boolean:bool}},multiselect:{boolean:bool},navigationButtons:{boolean:bool},selectable:{boolean:bool},selectConnectedEdges:{boolean:bool},hoverConnectedEdges:{boolean:bool},tooltipDelay:{number:number},zoomView:{boolean:bool},__type__:{object:object}},layout:{randomSeed:{undefined:\"undefined\",number:number},improvedLayout:{boolean:bool},hierarchical:{enabled:{boolean:bool},levelSeparation:{number:number},nodeSpacing:{number:number},treeSpacing:{number:number},blockShifting:{boolean:bool},edgeMinimization:{boolean:bool},parentCentralization:{boolean:bool},direction:{string:[\"UD\",\"DU\",\"LR\",\"RL\"]},sortMethod:{string:[\"hubsize\",\"directed\"]},__type__:{object:object,boolean:bool}},__type__:{object:object}},manipulation:{enabled:{boolean:bool},initiallyActive:{boolean:bool},addNode:{boolean:bool,function:\"function\"},addEdge:{boolean:bool,function:\"function\"},editNode:{function:\"function\"},editEdge:{editWithoutDrag:{function:\"function\"},__type__:{object:object,boolean:bool,function:\"function\"}},deleteNode:{boolean:bool,function:\"function\"},deleteEdge:{boolean:bool,function:\"function\"},controlNodeStyle:\"get from nodes, will be overwritten below\",__type__:{object:object,boolean:bool}},nodes:{borderWidth:{number:number},borderWidthSelected:{number:number,undefined:\"undefined\"},brokenImage:{string:string,undefined:\"undefined\"},chosen:{label:{boolean:bool,function:\"function\"},node:{boolean:bool,function:\"function\"},__type__:{object:object,boolean:bool}},color:{border:{string:string},background:{string:string},highlight:{border:{string:string},background:{string:string},__type__:{object:object,string:string}},hover:{border:{string:string},background:{string:string},__type__:{object:object,string:string}},__type__:{object:object,string:string}},fixed:{x:{boolean:bool},y:{boolean:bool},__type__:{object:object,boolean:bool}},font:{align:{string:string},color:{string:string},size:{number:number},face:{string:string},background:{string:string},strokeWidth:{number:number},strokeColor:{string:string},vadjust:{number:number},multi:{boolean:bool,string:string},bold:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},boldital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},ital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},mono:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},__type__:{object:object,string:string}},group:{string:string,number:number,undefined:\"undefined\"},heightConstraint:{minimum:{number:number},valign:{string:string},__type__:{object:object,boolean:bool,number:number}},hidden:{boolean:bool},icon:{face:{string:string},code:{string:string},size:{number:number},color:{string:string},__type__:{object:object}},id:{string:string,number:number},image:{selected:{string:string,undefined:\"undefined\"},unselected:{string:string,undefined:\"undefined\"},__type__:{object:object,string:string}},label:{string:string,undefined:\"undefined\"},labelHighlightBold:{boolean:bool},level:{number:number,undefined:\"undefined\"},margin:{top:{number:number},right:{number:number},bottom:{number:number},left:{number:number},__type__:{object:object,number:number}},mass:{number:number},physics:{boolean:bool},scaling:{min:{number:number},max:{number:number},label:{enabled:{boolean:bool},min:{number:number},max:{number:number},maxVisible:{number:number},drawThreshold:{number:number},__type__:{object:object,boolean:bool}},customScalingFunction:{function:\"function\"},__type__:{object:object}},shadow:{enabled:{boolean:bool},color:{string:string},size:{number:number},x:{number:number},y:{number:number},__type__:{object:object,boolean:bool}},shape:{string:[\"ellipse\",\"circle\",\"database\",\"box\",\"text\",\"image\",\"circularImage\",\"diamond\",\"dot\",\"star\",\"triangle\",\"triangleDown\",\"square\",\"icon\",\"hexagon\"]},shapeProperties:{borderDashes:{boolean:bool,array:array},borderRadius:{number:number},interpolation:{boolean:bool},useImageSize:{boolean:bool},useBorderWithImage:{boolean:bool},__type__:{object:object}},size:{number:number},title:{string:string,dom:dom,undefined:\"undefined\"},value:{number:number,undefined:\"undefined\"},widthConstraint:{minimum:{number:number},maximum:{number:number},__type__:{object:object,boolean:bool,number:number}},x:{number:number},y:{number:number},__type__:{object:object}},physics:{enabled:{boolean:bool},barnesHut:{gravitationalConstant:{number:number},centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},damping:{number:number},avoidOverlap:{number:number},__type__:{object:object}},forceAtlas2Based:{gravitationalConstant:{number:number},centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},damping:{number:number},avoidOverlap:{number:number},__type__:{object:object}},repulsion:{centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},nodeDistance:{number:number},damping:{number:number},__type__:{object:object}},hierarchicalRepulsion:{centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},nodeDistance:{number:number},damping:{number:number},__type__:{object:object}},maxVelocity:{number:number},minVelocity:{number:number},solver:{string:[\"barnesHut\",\"repulsion\",\"hierarchicalRepulsion\",\"forceAtlas2Based\"]},stabilization:{enabled:{boolean:bool},iterations:{number:number},updateInterval:{number:number},onlyDynamicEdges:{boolean:bool},\nfit:{boolean:bool},__type__:{object:object,boolean:bool}},timestep:{number:number},adaptiveTimestep:{boolean:bool},__type__:{object:object,boolean:bool}},autoResize:{boolean:bool},clickToUse:{boolean:bool},locale:{string:string},locales:{__any__:{any:any},__type__:{object:object}},height:{string:string},width:{string:string},__type__:{object:object}};allOptions.groups.__any__=allOptions.nodes;allOptions.manipulation.controlNodeStyle=allOptions.nodes;var configureOptions={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#97C2FC\"],highlight:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#D2E5FF\"]},hover:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#D2E5FF\"]}},fixed:{x:false,y:false},font:{color:[\"color\",\"#343434\"],size:[14,0,100,1],face:[\"arial\",\"verdana\",\"tahoma\"],background:[\"color\",\"none\"],strokeWidth:[0,0,50,1],strokeColor:[\"color\",\"#ffffff\"]},hidden:false,labelHighlightBold:true,physics:true,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:false,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:[\"ellipse\",\"box\",\"circle\",\"database\",\"diamond\",\"dot\",\"square\",\"star\",\"text\",\"triangle\",\"triangleDown\",\"hexagon\"],shapeProperties:{borderDashes:false,borderRadius:[6,0,20,1],interpolation:true,useImageSize:false},size:[25,0,200,1]},edges:{arrows:{to:{enabled:false,scaleFactor:[1,0,3,.05],type:\"arrow\"},middle:{enabled:false,scaleFactor:[1,0,3,.05],type:\"arrow\"},from:{enabled:false,scaleFactor:[1,0,3,.05],type:\"arrow\"}},arrowStrikethrough:true,color:{color:[\"color\",\"#848484\"],highlight:[\"color\",\"#848484\"],hover:[\"color\",\"#848484\"],inherit:[\"from\",\"to\",\"both\",true,false],opacity:[1,0,1,.05]},dashes:false,font:{color:[\"color\",\"#343434\"],size:[14,0,100,1],face:[\"arial\",\"verdana\",\"tahoma\"],background:[\"color\",\"none\"],strokeWidth:[2,0,50,1],strokeColor:[\"color\",\"#ffffff\"],align:[\"horizontal\",\"top\",\"middle\",\"bottom\"]},hidden:false,hoverWidth:[1.5,0,5,.1],labelHighlightBold:true,physics:true,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:true,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:true,type:[\"dynamic\",\"continuous\",\"discrete\",\"diagonalCross\",\"straightCross\",\"horizontal\",\"vertical\",\"curvedCW\",\"curvedCCW\",\"cubicBezier\"],forceDirection:[\"horizontal\",\"vertical\",\"none\"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:false,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:true,edgeMinimization:true,parentCentralization:true,direction:[\"UD\",\"DU\",\"LR\",\"RL\"],sortMethod:[\"hubsize\",\"directed\"]}},interaction:{dragNodes:true,dragView:true,hideEdgesOnDrag:false,hideNodesOnDrag:false,hover:false,keyboard:{enabled:false,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:true},multiselect:false,navigationButtons:false,selectable:true,selectConnectedEdges:true,hoverConnectedEdges:true,tooltipDelay:[300,0,1e3,25],zoomView:true},manipulation:{enabled:false,initiallyActive:false},physics:{enabled:true,barnesHut:{gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:[\"barnesHut\",\"forceAtlas2Based\",\"repulsion\",\"hierarchicalRepulsion\"],timestep:[.5,.01,1,.01]}};exports.allOptions=allOptions;exports.configureOptions=configureOptions},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);util.extend(exports,__webpack_require__(159));util.extend(exports,__webpack_require__(177));util.extend(exports,__webpack_require__(181))},function(module,exports,__webpack_require__){__webpack_require__(49);__webpack_require__(60);module.exports=__webpack_require__(136)},function(module,exports,__webpack_require__){\"use strict\";var addToUnscopables=__webpack_require__(126);var step=__webpack_require__(127);var Iterators=__webpack_require__(31);var toIObject=__webpack_require__(25);module.exports=__webpack_require__(79)(Array,\"Array\",function(iterated,kind){this._t=toIObject(iterated);this._i=0;this._k=kind},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1)}if(kind==\"keys\")return step(0,index);if(kind==\"values\")return step(0,O[index]);return step(0,[index,O[index]])},\"values\");Iterators.Arguments=Iterators.Array;addToUnscopables(\"keys\");addToUnscopables(\"values\");addToUnscopables(\"entries\")},function(module,exports){module.exports=function(){}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports){module.exports=function(it){if(typeof it!=\"function\")throw TypeError(it+\" is not a function!\");return it}},function(module,exports,__webpack_require__){\"use strict\";var create=__webpack_require__(54);var descriptor=__webpack_require__(39);var setToStringTag=__webpack_require__(59);var IteratorPrototype={};__webpack_require__(26)(IteratorPrototype,__webpack_require__(13)(\"iterator\"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+\" Iterator\")}},function(module,exports,__webpack_require__){var dP=__webpack_require__(20);var anObject=__webpack_require__(27);var getKeys=__webpack_require__(33);module.exports=__webpack_require__(21)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(25);var toLength=__webpack_require__(132);var toAbsoluteIndex=__webpack_require__(133);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(55);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(55);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},function(module,exports,__webpack_require__){var document=__webpack_require__(18).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(55);var defined=__webpack_require__(51);module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?\"\":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var get=__webpack_require__(137);module.exports=__webpack_require__(7).getIterator=function(it){var iterFn=get(it);if(typeof iterFn!=\"function\")throw TypeError(it+\" is not iterable!\");return anObject(iterFn.call(it))}},function(module,exports,__webpack_require__){var classof=__webpack_require__(86);var ITERATOR=__webpack_require__(13)(\"iterator\");var Iterators=__webpack_require__(31);module.exports=__webpack_require__(7).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it[\"@@iterator\"]||Iterators[classof(it)]}},function(module,exports,__webpack_require__){__webpack_require__(139);var $Object=__webpack_require__(7).Object;module.exports=function create(P,D){return $Object.create(P,D)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S,\"Object\",{create:__webpack_require__(54)})},function(module,exports,__webpack_require__){__webpack_require__(141);module.exports=__webpack_require__(7).Object.keys},function(module,exports,__webpack_require__){var toObject=__webpack_require__(41);var $keys=__webpack_require__(33);__webpack_require__(87)(\"keys\",function(){return function keys(it){return $keys(toObject(it))}})},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(143),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(60);__webpack_require__(49);module.exports=__webpack_require__(61).f(\"iterator\")},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(145),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(146);__webpack_require__(151);__webpack_require__(152);__webpack_require__(153);module.exports=__webpack_require__(7).Symbol},function(module,exports,__webpack_require__){\"use strict\";var global=__webpack_require__(18);var has=__webpack_require__(22);var DESCRIPTORS=__webpack_require__(21);var $export=__webpack_require__(17);var redefine=__webpack_require__(83);var META=__webpack_require__(147).KEY;var $fails=__webpack_require__(28);var shared=__webpack_require__(57);var setToStringTag=__webpack_require__(59);var uid=__webpack_require__(40);var wks=__webpack_require__(13);var wksExt=__webpack_require__(61);var wksDefine=__webpack_require__(62);var enumKeys=__webpack_require__(148);var isArray=__webpack_require__(149);var anObject=__webpack_require__(27);var toIObject=__webpack_require__(25);var toPrimitive=__webpack_require__(53);var createDesc=__webpack_require__(39);var _create=__webpack_require__(54);var gOPNExt=__webpack_require__(150);var $GOPD=__webpack_require__(89);var $DP=__webpack_require__(20);var $keys=__webpack_require__(33);var gOPD=$GOPD.f;var dP=$DP.f;var gOPN=gOPNExt.f;var $Symbol=global.Symbol;var $JSON=global.JSON;var _stringify=$JSON&&$JSON.stringify;var PROTOTYPE=\"prototype\";var HIDDEN=wks(\"_hidden\");var TO_PRIMITIVE=wks(\"toPrimitive\");var isEnum={}.propertyIsEnumerable;var SymbolRegistry=shared(\"symbol-registry\");var AllSymbols=shared(\"symbols\");var OPSymbols=shared(\"op-symbols\");var ObjectProto=Object[PROTOTYPE];var USE_NATIVE=typeof $Symbol==\"function\";var QObject=global.QObject;var setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;var setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create(dP({},\"a\",{get:function(){return dP(this,\"a\",{value:7}).a}})).a!=7})?function(it,key,D){var protoDesc=gOPD(ObjectProto,key);if(protoDesc)delete ObjectProto[key];dP(it,key,D);if(protoDesc&&it!==ObjectProto)dP(ObjectProto,key,protoDesc)}:dP;var wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol[PROTOTYPE]);sym._k=tag;return sym};var isSymbol=USE_NATIVE&&typeof $Symbol.iterator==\"symbol\"?function(it){return typeof it==\"symbol\"}:function(it){return it instanceof $Symbol};var $defineProperty=function defineProperty(it,key,D){if(it===ObjectProto)$defineProperty(OPSymbols,key,D);anObject(it);key=toPrimitive(key,true);anObject(D);if(has(AllSymbols,key)){if(!D.enumerable){if(!has(it,HIDDEN))dP(it,HIDDEN,createDesc(1,{}));it[HIDDEN][key]=true}else{if(has(it,HIDDEN)&&it[HIDDEN][key])it[HIDDEN][key]=false;D=_create(D,{enumerable:createDesc(0,false)})}return setSymbolDesc(it,key,D)}return dP(it,key,D)};var $defineProperties=function defineProperties(it,P){anObject(it);var keys=enumKeys(P=toIObject(P));var i=0;var l=keys.length;var key;while(l>i)$defineProperty(it,key=keys[i++],P[key]);return it};var $create=function create(it,P){return P===undefined?_create(it):$defineProperties(_create(it),P)};var $propertyIsEnumerable=function propertyIsEnumerable(key){var E=isEnum.call(this,key=toPrimitive(key,true));if(this===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return false;return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:true};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(it,key){it=toIObject(it);key=toPrimitive(key,true);if(it===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return;var D=gOPD(it,key);if(D&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key]))D.enumerable=true;return D};var $getOwnPropertyNames=function getOwnPropertyNames(it){var names=gOPN(toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(!has(AllSymbols,key=names[i++])&&key!=HIDDEN&&key!=META)result.push(key)}return result};var $getOwnPropertySymbols=function getOwnPropertySymbols(it){var IS_OP=it===ObjectProto;var names=gOPN(IS_OP?OPSymbols:toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(has(AllSymbols,key=names[i++])&&(IS_OP?has(ObjectProto,key):true))result.push(AllSymbols[key])}return result};if(!USE_NATIVE){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError(\"Symbol is not a constructor!\");var tag=uid(arguments.length>0?arguments[0]:undefined);var $set=function(value){if(this===ObjectProto)$set.call(OPSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDesc(this,tag,createDesc(1,value))};if(DESCRIPTORS&&setter)setSymbolDesc(ObjectProto,tag,{configurable:true,set:$set});return wrap(tag)};redefine($Symbol[PROTOTYPE],\"toString\",function toString(){return this._k});$GOPD.f=$getOwnPropertyDescriptor;$DP.f=$defineProperty;__webpack_require__(88).f=gOPNExt.f=$getOwnPropertyNames;__webpack_require__(42).f=$propertyIsEnumerable;__webpack_require__(63).f=$getOwnPropertySymbols;if(DESCRIPTORS&&!__webpack_require__(52)){redefine(ObjectProto,\"propertyIsEnumerable\",$propertyIsEnumerable,true)}wksExt.f=function(name){return wrap(wks(name))}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export($export.S+$export.F*!USE_NATIVE,\"Symbol\",{for:function(key){return has(SymbolRegistry,key+=\"\")?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key)},keyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+\" is not a symbol!\");for(var key in SymbolRegistry)if(SymbolRegistry[key]===sym)return key},useSetter:function(){setter=true},useSimple:function(){setter=false}});$export($export.S+$export.F*!USE_NATIVE,\"Object\",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});$JSON&&$export($export.S+$export.F*(!USE_NATIVE||$fails(function(){var S=$Symbol();return _stringify([S])!=\"[null]\"||_stringify({a:S})!=\"{}\"||_stringify(Object(S))!=\"{}\"})),\"JSON\",{stringify:function stringify(it){if(it===undefined||isSymbol(it))return;var args=[it];var i=1;var replacer,$replacer;while(arguments.length>i)args.push(arguments[i++]);replacer=args[1];if(typeof replacer==\"function\")$replacer=replacer;if($replacer||!isArray(replacer))replacer=function(key,value){if($replacer)value=$replacer.call(this,key,value);if(!isSymbol(value))return value};args[1]=replacer;return _stringify.apply($JSON,args)}});$Symbol[PROTOTYPE][TO_PRIMITIVE]||__webpack_require__(26)($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);setToStringTag($Symbol,\"Symbol\");setToStringTag(Math,\"Math\",true);setToStringTag(global.JSON,\"JSON\",true)},function(module,exports,__webpack_require__){var META=__webpack_require__(40)(\"meta\");var isObject=__webpack_require__(32);var has=__webpack_require__(22);var setDesc=__webpack_require__(20).f;var id=0;var isExtensible=Object.isExtensible||function(){return true};var FREEZE=!__webpack_require__(28)(function(){return isExtensible(Object.preventExtensions({}))});var setMeta=function(it){setDesc(it,META,{value:{i:\"O\"+ ++id,w:{}}})};var fastKey=function(it,create){if(!isObject(it))return typeof it==\"symbol\"?it:(typeof it==\"string\"?\"S\":\"P\")+it;if(!has(it,META)){if(!isExtensible(it))return\"F\";if(!create)return\"E\";setMeta(it)}return it[META].i};var getWeak=function(it,create){if(!has(it,META)){if(!isExtensible(it))return true;if(!create)return false;setMeta(it)}return it[META].w};var onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze}},function(module,exports,__webpack_require__){var getKeys=__webpack_require__(33);var gOPS=__webpack_require__(63);var pIE=__webpack_require__(42);module.exports=function(it){var result=getKeys(it);var getSymbols=gOPS.f;if(getSymbols){var symbols=getSymbols(it);var isEnum=pIE.f;var i=0;var key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))result.push(key)}return result}},function(module,exports,__webpack_require__){var cof=__webpack_require__(50);module.exports=Array.isArray||function isArray(arg){return cof(arg)==\"Array\"}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(25);var gOPN=__webpack_require__(88).f;var toString={}.toString;var windowNames=typeof window==\"object\"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it)}catch(e){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)==\"[object Window]\"?getWindowNames(it):gOPN(toIObject(it))}},function(module,exports){},function(module,exports,__webpack_require__){__webpack_require__(62)(\"asyncIterator\")},function(module,exports,__webpack_require__){__webpack_require__(62)(\"observable\")},function(module,exports,__webpack_require__){(function(module){var require;(function(global,factory){true?module.exports=factory():typeof define===\"function\"&&define.amd?define(factory):global.moment=factory()})(this,function(){\"use strict\";var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(callback){hookCallback=callback}function isArray(input){return input instanceof Array||Object.prototype.toString.call(input)===\"[object Array]\"}function isObject(input){return input!=null&&Object.prototype.toString.call(input)===\"[object Object]\"}function isObjectEmpty(obj){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(obj).length===0}else{var k;for(k in obj){if(obj.hasOwnProperty(k)){return false}}return true}}function isUndefined(input){return input===void 0}function isNumber(input){return typeof input===\"number\"||Object.prototype.toString.call(input)===\"[object Number]\"}function isDate(input){return input instanceof Date||Object.prototype.toString.call(input)===\"[object Date]\"}function map(arr,fn){var res=[],i;for(i=0;i<arr.length;++i){res.push(fn(arr[i],i))}return res}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function extend(a,b){for(var i in b){if(hasOwnProp(b,i)){a[i]=b[i]}}if(hasOwnProp(b,\"toString\")){a.toString=b.toString}if(hasOwnProp(b,\"valueOf\")){a.valueOf=b.valueOf}return a}function createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(m){if(m._pf==null){m._pf=defaultParsingFlags()}return m._pf}var some;if(Array.prototype.some){some=Array.prototype.some}else{some=function(fun){var t=Object(this);var len=t.length>>>0;for(var i=0;i<len;i++){if(i in t&&fun.call(this,t[i],i,t)){return true}}return false}}function isValid(m){if(m._isValid==null){var flags=getParsingFlags(m);var parsedParts=some.call(flags.parsedDateParts,function(i){return i!=null});var isNowValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.weekdayMismatch&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||flags.meridiem&&parsedParts);if(m._strict){isNowValid=isNowValid&&flags.charsLeftOver===0&&flags.unusedTokens.length===0&&flags.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(m)){m._isValid=isNowValid}else{return isNowValid}}return m._isValid}function createInvalid(flags){var m=createUTC(NaN);if(flags!=null){extend(getParsingFlags(m),flags)}else{getParsingFlags(m).userInvalidated=true}return m}var momentProperties=hooks.momentProperties=[];function copyConfig(to,from){var i,prop,val;if(!isUndefined(from._isAMomentObject)){to._isAMomentObject=from._isAMomentObject}if(!isUndefined(from._i)){to._i=from._i}if(!isUndefined(from._f)){to._f=from._f}if(!isUndefined(from._l)){to._l=from._l}if(!isUndefined(from._strict)){to._strict=from._strict}if(!isUndefined(from._tzm)){to._tzm=from._tzm}if(!isUndefined(from._isUTC)){to._isUTC=from._isUTC}if(!isUndefined(from._offset)){to._offset=from._offset}if(!isUndefined(from._pf)){to._pf=getParsingFlags(from)}if(!isUndefined(from._locale)){to._locale=from._locale}if(momentProperties.length>0){for(i=0;i<momentProperties.length;i++){prop=momentProperties[i];val=from[prop];if(!isUndefined(val)){to[prop]=val}}}return to}var updateInProgress=false;function Moment(config){copyConfig(this,config);this._d=new Date(config._d!=null?config._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(updateInProgress===false){updateInProgress=true;hooks.updateOffset(this);updateInProgress=false}}function isMoment(obj){return obj instanceof Moment||obj!=null&&obj._isAMomentObject!=null}function absFloor(number){if(number<0){return Math.ceil(number)||0}else{return Math.floor(number)}}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;if(coercedNumber!==0&&isFinite(coercedNumber)){value=absFloor(coercedNumber)}return value}function compareArrays(array1,array2,dontConvert){var len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i;for(i=0;i<len;i++){if(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i])){diffs++}}return diffs+lengthDiff}function warn(msg){if(hooks.suppressDeprecationWarnings===false&&typeof console!==\"undefined\"&&console.warn){console.warn(\"Deprecation warning: \"+msg)}}function deprecate(msg,fn){var firstTime=true;return extend(function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,msg)}if(firstTime){var args=[];var arg;for(var i=0;i<arguments.length;i++){arg=\"\";if(typeof arguments[i]===\"object\"){arg+=\"\\n[\"+i+\"] \";for(var key in arguments[0]){arg+=key+\": \"+arguments[0][key]+\", \"}arg=arg.slice(0,-2)}else{arg=arguments[i]}args.push(arg)}warn(msg+\"\\nArguments: \"+Array.prototype.slice.call(args).join(\"\")+\"\\n\"+(new Error).stack);firstTime=false}return fn.apply(this,arguments)},fn)}var deprecations={};function deprecateSimple(name,msg){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(name,msg)}if(!deprecations[name]){warn(msg);deprecations[name]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(input){return input instanceof Function||Object.prototype.toString.call(input)===\"[object Function]\"}function set(config){var prop,i;for(i in config){prop=config[i];if(isFunction(prop)){this[i]=prop}else{this[\"_\"+i]=prop}}this._config=config;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+\"|\"+/\\d{1,2}/.source)}function mergeConfigs(parentConfig,childConfig){var res=extend({},parentConfig),prop;for(prop in childConfig){if(hasOwnProp(childConfig,prop)){if(isObject(parentConfig[prop])&&isObject(childConfig[prop])){res[prop]={};extend(res[prop],parentConfig[prop]);extend(res[prop],childConfig[prop])}else if(childConfig[prop]!=null){res[prop]=childConfig[prop]}else{delete res[prop]}}}for(prop in parentConfig){if(hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop])){res[prop]=extend({},res[prop])}}return res}function Locale(config){if(config!=null){this.set(config)}}var keys;if(Object.keys){keys=Object.keys}else{keys=function(obj){var i,res=[];for(i in obj){if(hasOwnProp(obj,i)){res.push(i)}}return res}}var defaultCalendar={sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"};function calendar(key,mom,now){var output=this._calendar[key]||this._calendar[\"sameElse\"];return isFunction(output)?output.call(mom,now):output}var defaultLongDateFormat={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];if(format||!formatUpper){return format}this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,function(val){return val.slice(1)});return this._longDateFormat[key]}var defaultInvalidDate=\"Invalid date\";function invalidDate(){return this._invalidDate}var defaultOrdinal=\"%d\";var defaultDayOfMonthOrdinalParse=/\\d{1,2}/;function ordinal(number){return this._ordinal.replace(\"%d\",number)}var defaultRelativeTime={future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"};function relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)}function pastFuture(diff,output){var format=this._relativeTime[diff>0?\"future\":\"past\"];return isFunction(format)?format(output):format.replace(/%s/i,output)}var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+\"s\"]=aliases[shorthand]=unit}function normalizeUnits(units){return typeof units===\"string\"?aliases[units]||aliases[units.toLowerCase()]:undefined}function normalizeObjectUnits(inputObject){var normalizedInput={},normalizedProp,prop;for(prop in inputObject){if(hasOwnProp(inputObject,prop)){normalizedProp=normalizeUnits(prop);if(normalizedProp){normalizedInput[normalizedProp]=inputObject[prop]}}}return normalizedInput}var priorities={};function addUnitPriority(unit,priority){priorities[unit]=priority}function getPrioritizedUnits(unitsObj){var units=[];for(var u in unitsObj){units.push({unit:u,priority:priorities[u]})}units.sort(function(a,b){return a.priority-b.priority});return units}function zeroFill(number,targetLength,forceSign){var absNumber=\"\"+Math.abs(number),zerosToFill=targetLength-absNumber.length,sign=number>=0;return(sign?forceSign?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;var localFormattingTokens=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g;var formatFunctions={};var formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;if(typeof callback===\"string\"){func=function(){return this[callback]()}}if(token){formatTokenFunctions[token]=func}if(padded){formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}}if(ordinal){formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)}}}function removeFormattingTokens(input){if(input.match(/\\[[\\s\\S]/)){return input.replace(/^\\[|\\]$/g,\"\")}return input.replace(/\\\\/g,\"\")}function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i<length;i++){if(formatTokenFunctions[array[i]]){array[i]=formatTokenFunctions[array[i]]}else{array[i]=removeFormattingTokens(array[i])}}return function(mom){var output=\"\",i;for(i=0;i<length;i++){output+=isFunction(array[i])?array[i].call(mom,format):array[i]}return output}}function formatMoment(m,format){if(!m.isValid()){return m.localeData().invalidDate()}format=expandFormat(format,m.localeData());formatFunctions[format]=formatFunctions[format]||makeFormatFunction(format);return formatFunctions[format](m)}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input}localFormattingTokens.lastIndex=0;while(i>=0&&localFormattingTokens.test(format)){format=format.replace(localFormattingTokens,replaceLongDateFormatTokens);localFormattingTokens.lastIndex=0;i-=1}return format}var match1=/\\d/;var match2=/\\d\\d/;var match3=/\\d{3}/;var match4=/\\d{4}/;var match6=/[+-]?\\d{6}/;var match1to2=/\\d\\d?/;var match3to4=/\\d\\d\\d\\d?/;var match5to6=/\\d\\d\\d\\d\\d\\d?/;var match1to3=/\\d{1,3}/;var match1to4=/\\d{1,4}/;var match1to6=/[+-]?\\d{1,6}/;var matchUnsigned=/\\d+/;var matchSigned=/[+-]?\\d+/;var matchOffset=/Z|[+-]\\d\\d:?\\d\\d/gi;var matchShortOffset=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi;var matchTimestamp=/[+-]?\\d+(\\.\\d{1,3})?/;var matchWord=/[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i;var regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){if(!hasOwnProp(regexes,token)){return new RegExp(unescapeFormat(token))}return regexes[token](config._strict,config._locale)}function unescapeFormat(s){return regexEscape(s.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}))}function regexEscape(s){return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}var tokens={};function addParseToken(token,callback){var i,func=callback;if(typeof token===\"string\"){token=[token]}if(isNumber(callback)){func=function(input,array){array[callback]=toInt(input)}}for(i=0;i<token.length;i++){tokens[token[i]]=func}}function addWeekParseToken(token,callback){addParseToken(token,function(input,array,config,token){config._w=config._w||{};callback(input,config._w,config,token)})}function addTimeToArrayFromToken(token,input,config){if(input!=null&&hasOwnProp(tokens,token)){tokens[token](input,config._a,config,token)}}var YEAR=0;var MONTH=1;var DATE=2;var HOUR=3;var MINUTE=4;var SECOND=5;var MILLISECOND=6;var WEEK=7;var WEEKDAY=8;addFormatToken(\"Y\",0,0,function(){var y=this.year();return y<=9999?\"\"+y:\"+\"+y});addFormatToken(0,[\"YY\",2],0,function(){return this.year()%100});addFormatToken(0,[\"YYYY\",4],0,\"year\");addFormatToken(0,[\"YYYYY\",5],0,\"year\");addFormatToken(0,[\"YYYYYY\",6,true],0,\"year\");addUnitAlias(\"year\",\"y\");addUnitPriority(\"year\",1);addRegexToken(\"Y\",matchSigned)\n;addRegexToken(\"YY\",match1to2,match2);addRegexToken(\"YYYY\",match1to4,match4);addRegexToken(\"YYYYY\",match1to6,match6);addRegexToken(\"YYYYYY\",match1to6,match6);addParseToken([\"YYYYY\",\"YYYYYY\"],YEAR);addParseToken(\"YYYY\",function(input,array){array[YEAR]=input.length===2?hooks.parseTwoDigitYear(input):toInt(input)});addParseToken(\"YY\",function(input,array){array[YEAR]=hooks.parseTwoDigitYear(input)});addParseToken(\"Y\",function(input,array){array[YEAR]=parseInt(input,10)});function daysInYear(year){return isLeapYear(year)?366:365}function isLeapYear(year){return year%4===0&&year%100!==0||year%400===0}hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};var getSetYear=makeGetSet(\"FullYear\",true);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(unit,keepTime){return function(value){if(value!=null){set$1(this,unit,value);hooks.updateOffset(this,keepTime);return this}else{return get(this,unit)}}}function get(mom,unit){return mom.isValid()?mom._d[\"get\"+(mom._isUTC?\"UTC\":\"\")+unit]():NaN}function set$1(mom,unit,value){if(mom.isValid()&&!isNaN(value)){if(unit===\"FullYear\"&&isLeapYear(mom.year())){mom._d[\"set\"+(mom._isUTC?\"UTC\":\"\")+unit](value,mom.month(),daysInMonth(value,mom.month()))}else{mom._d[\"set\"+(mom._isUTC?\"UTC\":\"\")+unit](value)}}}function stringGet(units){units=normalizeUnits(units);if(isFunction(this[units])){return this[units]()}return this}function stringSet(units,value){if(typeof units===\"object\"){units=normalizeObjectUnits(units);var prioritized=getPrioritizedUnits(units);for(var i=0;i<prioritized.length;i++){this[prioritized[i].unit](units[prioritized[i].unit])}}else{units=normalizeUnits(units);if(isFunction(this[units])){return this[units](value)}}return this}function mod(n,x){return(n%x+x)%x}var indexOf;if(Array.prototype.indexOf){indexOf=Array.prototype.indexOf}else{indexOf=function(o){var i;for(i=0;i<this.length;++i){if(this[i]===o){return i}}return-1}}function daysInMonth(year,month){if(isNaN(year)||isNaN(month)){return NaN}var modMonth=mod(month,12);year+=(month-modMonth)/12;return modMonth===1?isLeapYear(year)?29:28:31-modMonth%7%2}addFormatToken(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1});addFormatToken(\"MMM\",0,0,function(format){return this.localeData().monthsShort(this,format)});addFormatToken(\"MMMM\",0,0,function(format){return this.localeData().months(this,format)});addUnitAlias(\"month\",\"M\");addUnitPriority(\"month\",8);addRegexToken(\"M\",match1to2);addRegexToken(\"MM\",match1to2,match2);addRegexToken(\"MMM\",function(isStrict,locale){return locale.monthsShortRegex(isStrict)});addRegexToken(\"MMMM\",function(isStrict,locale){return locale.monthsRegex(isStrict)});addParseToken([\"M\",\"MM\"],function(input,array){array[MONTH]=toInt(input)-1});addParseToken([\"MMM\",\"MMMM\"],function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);if(month!=null){array[MONTH]=month}else{getParsingFlags(config).invalidMonth=input}});var MONTHS_IN_FORMAT=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/;var defaultLocaleMonths=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\");function localeMonths(m,format){if(!m){return isArray(this._months)?this._months:this._months[\"standalone\"]}return isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?\"format\":\"standalone\"][m.month()]}var defaultLocaleMonthsShort=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\");function localeMonthsShort(m,format){if(!m){return isArray(this._monthsShort)?this._monthsShort:this._monthsShort[\"standalone\"]}return isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?\"format\":\"standalone\"][m.month()]}function handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(i=0;i<12;++i){mom=createUTC([2e3,i]);this._shortMonthsParse[i]=this.monthsShort(mom,\"\").toLocaleLowerCase();this._longMonthsParse[i]=this.months(mom,\"\").toLocaleLowerCase()}}if(strict){if(format===\"MMM\"){ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null}}else{if(format===\"MMM\"){ii=indexOf.call(this._shortMonthsParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._longMonthsParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null}}}function localeMonthsParse(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact){return handleStrictParse.call(this,monthName,format,strict)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(i=0;i<12;i++){mom=createUTC([2e3,i]);if(strict&&!this._longMonthsParse[i]){this._longMonthsParse[i]=new RegExp(\"^\"+this.months(mom,\"\").replace(\".\",\"\")+\"$\",\"i\");this._shortMonthsParse[i]=new RegExp(\"^\"+this.monthsShort(mom,\"\").replace(\".\",\"\")+\"$\",\"i\")}if(!strict&&!this._monthsParse[i]){regex=\"^\"+this.months(mom,\"\")+\"|^\"+this.monthsShort(mom,\"\");this._monthsParse[i]=new RegExp(regex.replace(\".\",\"\"),\"i\")}if(strict&&format===\"MMMM\"&&this._longMonthsParse[i].test(monthName)){return i}else if(strict&&format===\"MMM\"&&this._shortMonthsParse[i].test(monthName)){return i}else if(!strict&&this._monthsParse[i].test(monthName)){return i}}}function setMonth(mom,value){var dayOfMonth;if(!mom.isValid()){return mom}if(typeof value===\"string\"){if(/^\\d+$/.test(value)){value=toInt(value)}else{value=mom.localeData().monthsParse(value);if(!isNumber(value)){return mom}}}dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value));mom._d[\"set\"+(mom._isUTC?\"UTC\":\"\")+\"Month\"](value,dayOfMonth);return mom}function getSetMonth(value){if(value!=null){setMonth(this,value);hooks.updateOffset(this,true);return this}else{return get(this,\"Month\")}}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}var defaultMonthsShortRegex=matchWord;function monthsShortRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,\"_monthsRegex\")){computeMonthsParse.call(this)}if(isStrict){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!hasOwnProp(this,\"_monthsShortRegex\")){this._monthsShortRegex=defaultMonthsShortRegex}return this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex}}var defaultMonthsRegex=matchWord;function monthsRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,\"_monthsRegex\")){computeMonthsParse.call(this)}if(isStrict){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!hasOwnProp(this,\"_monthsRegex\")){this._monthsRegex=defaultMonthsRegex}return this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex}}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}var shortPieces=[],longPieces=[],mixedPieces=[],i,mom;for(i=0;i<12;i++){mom=createUTC([2e3,i]);shortPieces.push(this.monthsShort(mom,\"\"));longPieces.push(this.months(mom,\"\"));mixedPieces.push(this.months(mom,\"\"));mixedPieces.push(this.monthsShort(mom,\"\"))}shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<12;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i])}for(i=0;i<24;i++){mixedPieces[i]=regexEscape(mixedPieces[i])}this._monthsRegex=new RegExp(\"^(\"+mixedPieces.join(\"|\")+\")\",\"i\");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp(\"^(\"+longPieces.join(\"|\")+\")\",\"i\");this._monthsShortStrictRegex=new RegExp(\"^(\"+shortPieces.join(\"|\")+\")\",\"i\")}function createDate(y,m,d,h,M,s,ms){var date=new Date(y,m,d,h,M,s,ms);if(y<100&&y>=0&&isFinite(date.getFullYear())){date.setFullYear(y)}return date}function createUTCDate(y){var date=new Date(Date.UTC.apply(null,arguments));if(y<100&&y>=0&&isFinite(date.getUTCFullYear())){date.setUTCFullYear(y)}return date}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy,fwdlw=(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7;return-fwdlw+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var localWeekday=(7+weekday-dow)%7,weekOffset=firstWeekOffset(year,dow,doy),dayOfYear=1+7*(week-1)+localWeekday+weekOffset,resYear,resDayOfYear;if(dayOfYear<=0){resYear=year-1;resDayOfYear=daysInYear(resYear)+dayOfYear}else if(dayOfYear>daysInYear(year)){resYear=year+1;resDayOfYear=dayOfYear-daysInYear(year)}else{resYear=year;resDayOfYear=dayOfYear}return{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1,resWeek,resYear;if(week<1){resYear=mom.year()-1;resWeek=week+weeksInYear(resYear,dow,doy)}else if(week>weeksInYear(mom.year(),dow,doy)){resWeek=week-weeksInYear(mom.year(),dow,doy);resYear=mom.year()+1}else{resYear=mom.year();resWeek=week}return{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}addFormatToken(\"w\",[\"ww\",2],\"wo\",\"week\");addFormatToken(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\");addUnitAlias(\"week\",\"w\");addUnitAlias(\"isoWeek\",\"W\");addUnitPriority(\"week\",5);addUnitPriority(\"isoWeek\",5);addRegexToken(\"w\",match1to2);addRegexToken(\"ww\",match1to2,match2);addRegexToken(\"W\",match1to2);addRegexToken(\"WW\",match1to2,match2);addWeekParseToken([\"w\",\"ww\",\"W\",\"WW\"],function(input,week,config,token){week[token.substr(0,1)]=toInt(input)});function localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(input){var week=this.localeData().week(this);return input==null?week:this.add((input-week)*7,\"d\")}function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return input==null?week:this.add((input-week)*7,\"d\")}addFormatToken(\"d\",0,\"do\",\"day\");addFormatToken(\"dd\",0,0,function(format){return this.localeData().weekdaysMin(this,format)});addFormatToken(\"ddd\",0,0,function(format){return this.localeData().weekdaysShort(this,format)});addFormatToken(\"dddd\",0,0,function(format){return this.localeData().weekdays(this,format)});addFormatToken(\"e\",0,0,\"weekday\");addFormatToken(\"E\",0,0,\"isoWeekday\");addUnitAlias(\"day\",\"d\");addUnitAlias(\"weekday\",\"e\");addUnitAlias(\"isoWeekday\",\"E\");addUnitPriority(\"day\",11);addUnitPriority(\"weekday\",11);addUnitPriority(\"isoWeekday\",11);addRegexToken(\"d\",match1to2);addRegexToken(\"e\",match1to2);addRegexToken(\"E\",match1to2);addRegexToken(\"dd\",function(isStrict,locale){return locale.weekdaysMinRegex(isStrict)});addRegexToken(\"ddd\",function(isStrict,locale){return locale.weekdaysShortRegex(isStrict)});addRegexToken(\"dddd\",function(isStrict,locale){return locale.weekdaysRegex(isStrict)});addWeekParseToken([\"dd\",\"ddd\",\"dddd\"],function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);if(weekday!=null){week.d=weekday}else{getParsingFlags(config).invalidWeekday=input}});addWeekParseToken([\"d\",\"e\",\"E\"],function(input,week,config,token){week[token]=toInt(input)});function parseWeekday(input,locale){if(typeof input!==\"string\"){return input}if(!isNaN(input)){return parseInt(input,10)}input=locale.weekdaysParse(input);if(typeof input===\"number\"){return input}return null}function parseIsoWeekday(input,locale){if(typeof input===\"string\"){return locale.weekdaysParse(input)%7||7}return isNaN(input)?null:input}var defaultLocaleWeekdays=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");function localeWeekdays(m,format){if(!m){return isArray(this._weekdays)?this._weekdays:this._weekdays[\"standalone\"]}return isArray(this._weekdays)?this._weekdays[m.day()]:this._weekdays[this._weekdays.isFormat.test(format)?\"format\":\"standalone\"][m.day()]}var defaultLocaleWeekdaysShort=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");function localeWeekdaysShort(m){return m?this._weekdaysShort[m.day()]:this._weekdaysShort}var defaultLocaleWeekdaysMin=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");function localeWeekdaysMin(m){return m?this._weekdaysMin[m.day()]:this._weekdaysMin}function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(i=0;i<7;++i){mom=createUTC([2e3,1]).day(i);this._minWeekdaysParse[i]=this.weekdaysMin(mom,\"\").toLocaleLowerCase();this._shortWeekdaysParse[i]=this.weekdaysShort(mom,\"\").toLocaleLowerCase();this._weekdaysParse[i]=this.weekdays(mom,\"\").toLocaleLowerCase()}}if(strict){if(format===\"dddd\"){ii=indexOf.call(this._weekdaysParse,llc);return ii!==-1?ii:null}else if(format===\"ddd\"){ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}}else{if(format===\"dddd\"){ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}else if(format===\"ddd\"){ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._minWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null}}}function localeWeekdaysParse(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact){return handleStrictParse$1.call(this,weekdayName,format,strict)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(i=0;i<7;i++){mom=createUTC([2e3,1]).day(i);if(strict&&!this._fullWeekdaysParse[i]){this._fullWeekdaysParse[i]=new RegExp(\"^\"+this.weekdays(mom,\"\").replace(\".\",\".?\")+\"$\",\"i\");this._shortWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysShort(mom,\"\").replace(\".\",\".?\")+\"$\",\"i\");this._minWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysMin(mom,\"\").replace(\".\",\".?\")+\"$\",\"i\")}if(!this._weekdaysParse[i]){regex=\"^\"+this.weekdays(mom,\"\")+\"|^\"+this.weekdaysShort(mom,\"\")+\"|^\"+this.weekdaysMin(mom,\"\");this._weekdaysParse[i]=new RegExp(regex.replace(\".\",\"\"),\"i\")}if(strict&&format===\"dddd\"&&this._fullWeekdaysParse[i].test(weekdayName)){return i}else if(strict&&format===\"ddd\"&&this._shortWeekdaysParse[i].test(weekdayName)){return i}else if(strict&&format===\"dd\"&&this._minWeekdaysParse[i].test(weekdayName)){return i}else if(!strict&&this._weekdaysParse[i].test(weekdayName)){return i}}}function getSetDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}var day=this._isUTC?this._d.getUTCDay():this._d.getDay();if(input!=null){input=parseWeekday(input,this.localeData());return this.add(input-day,\"d\")}else{return day}}function getSetLocaleDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}var weekday=(this.day()+7-this.localeData()._week.dow)%7;return input==null?weekday:this.add(input-weekday,\"d\")}function getSetISODayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}if(input!=null){var weekday=parseIsoWeekday(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}else{return this.day()||7}}var defaultWeekdaysRegex=matchWord;function weekdaysRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,\"_weekdaysRegex\")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!hasOwnProp(this,\"_weekdaysRegex\")){this._weekdaysRegex=defaultWeekdaysRegex}return this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex}}var defaultWeekdaysShortRegex=matchWord;function weekdaysShortRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,\"_weekdaysRegex\")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!hasOwnProp(this,\"_weekdaysShortRegex\")){this._weekdaysShortRegex=defaultWeekdaysShortRegex}return this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}var defaultWeekdaysMinRegex=matchWord;function weekdaysMinRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,\"_weekdaysRegex\")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!hasOwnProp(this,\"_weekdaysMinRegex\")){this._weekdaysMinRegex=defaultWeekdaysMinRegex}return this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[],i,mom,minp,shortp,longp;for(i=0;i<7;i++){mom=createUTC([2e3,1]).day(i);minp=this.weekdaysMin(mom,\"\");shortp=this.weekdaysShort(mom,\"\");longp=this.weekdays(mom,\"\");minPieces.push(minp);shortPieces.push(shortp);longPieces.push(longp);mixedPieces.push(minp);mixedPieces.push(shortp);mixedPieces.push(longp)}minPieces.sort(cmpLenRev);shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<7;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i]);mixedPieces[i]=regexEscape(mixedPieces[i])}this._weekdaysRegex=new RegExp(\"^(\"+mixedPieces.join(\"|\")+\")\",\"i\");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp(\"^(\"+longPieces.join(\"|\")+\")\",\"i\");this._weekdaysShortStrictRegex=new RegExp(\"^(\"+shortPieces.join(\"|\")+\")\",\"i\");this._weekdaysMinStrictRegex=new RegExp(\"^(\"+minPieces.join(\"|\")+\")\",\"i\")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken(\"H\",[\"HH\",2],0,\"hour\");addFormatToken(\"h\",[\"hh\",2],0,hFormat);addFormatToken(\"k\",[\"kk\",2],0,kFormat);addFormatToken(\"hmm\",0,0,function(){return\"\"+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken(\"hmmss\",0,0,function(){return\"\"+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken(\"Hmm\",0,0,function(){return\"\"+this.hours()+zeroFill(this.minutes(),2)});addFormatToken(\"Hmmss\",0,0,function(){return\"\"+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(token,lowercase){addFormatToken(token,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)})}meridiem(\"a\",true);meridiem(\"A\",false);addUnitAlias(\"hour\",\"h\");addUnitPriority(\"hour\",13);function matchMeridiem(isStrict,locale){return locale._meridiemParse}addRegexToken(\"a\",matchMeridiem);addRegexToken(\"A\",matchMeridiem);addRegexToken(\"H\",match1to2);addRegexToken(\"h\",match1to2);addRegexToken(\"k\",match1to2);addRegexToken(\"HH\",match1to2,match2);addRegexToken(\"hh\",match1to2,match2);addRegexToken(\"kk\",match1to2,match2);addRegexToken(\"hmm\",match3to4);addRegexToken(\"hmmss\",match5to6);addRegexToken(\"Hmm\",match3to4);addRegexToken(\"Hmmss\",match5to6);addParseToken([\"H\",\"HH\"],HOUR);addParseToken([\"k\",\"kk\"],function(input,array,config){var kInput=toInt(input);array[HOUR]=kInput===24?0:kInput});addParseToken([\"a\",\"A\"],function(input,array,config){config._isPm=config._locale.isPM(input);config._meridiem=input});addParseToken([\"h\",\"hh\"],function(input,array,config){array[HOUR]=toInt(input);getParsingFlags(config).bigHour=true});addParseToken(\"hmm\",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos));getParsingFlags(config).bigHour=true});addParseToken(\"hmmss\",function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2));getParsingFlags(config).bigHour=true});addParseToken(\"Hmm\",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos))});addParseToken(\"Hmmss\",function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2))});function localeIsPM(input){return(input+\"\").toLowerCase().charAt(0)===\"p\"}var defaultLocaleMeridiemParse=/[ap]\\.?m?\\.?/i;function localeMeridiem(hours,minutes,isLower){if(hours>11){return isLower?\"pm\":\"PM\"}else{return isLower?\"am\":\"AM\"}}var getSetHour=makeGetSet(\"Hours\",true);var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse};var locales={};var localeFamilies={};var globalLocale;function normalizeLocale(key){return key?key.toLowerCase().replace(\"_\",\"-\"):key}function chooseLocale(names){var i=0,j,next,locale,split;while(i<names.length){split=normalizeLocale(names[i]).split(\"-\");j=split.length;next=normalizeLocale(names[i+1]);next=next?next.split(\"-\"):null;while(j>0){locale=loadLocale(split.slice(0,j).join(\"-\"));if(locale){return locale}if(next&&next.length>=j&&compareArrays(split,next,true)>=j-1){break}j--}i++}return null}function loadLocale(name){var oldLocale=null;if(!locales[name]&&typeof module!==\"undefined\"&&module&&module.exports){try{oldLocale=globalLocale._abbr;var aliasedRequire=require;!function webpackMissingModule(){var e=new Error('Cannot find module \"./locale\"');e.code=\"MODULE_NOT_FOUND\";throw e}();getSetGlobalLocale(oldLocale)}catch(e){}}return locales[name]}function getSetGlobalLocale(key,values){var data;if(key){if(isUndefined(values)){data=getLocale(key)}else{data=defineLocale(key,values)}if(data){globalLocale=data}}return globalLocale._abbr}function defineLocale(name,config){if(config!==null){var parentConfig=baseConfig;config.abbr=name;if(locales[name]!=null){deprecateSimple(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change \"+\"an existing locale. moment.defineLocale(localeName, \"+\"config) should only be used for creating a new locale \"+\"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\");parentConfig=locales[name]._config}else if(config.parentLocale!=null){if(locales[config.parentLocale]!=null){parentConfig=locales[config.parentLocale]._config}else{if(!localeFamilies[config.parentLocale]){localeFamilies[config.parentLocale]=[]}localeFamilies[config.parentLocale].push({name:name,config:config});return null}}locales[name]=new Locale(mergeConfigs(parentConfig,config));if(localeFamilies[name]){localeFamilies[name].forEach(function(x){defineLocale(x.name,x.config)})}getSetGlobalLocale(name);return locales[name]}else{delete locales[name];return null}}function updateLocale(name,config){if(config!=null){var locale,parentConfig=baseConfig;if(locales[name]!=null){parentConfig=locales[name]._config}config=mergeConfigs(parentConfig,config);locale=new Locale(config);locale.parentLocale=locales[name];locales[name]=locale;getSetGlobalLocale(name)}else{if(locales[name]!=null){if(locales[name].parentLocale!=null){locales[name]=locales[name].parentLocale}else if(locales[name]!=null){delete locales[name]}}}return locales[name]}function getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr){key=key._locale._abbr}if(!key){return globalLocale}if(!isArray(key)){locale=loadLocale(key);if(locale){return locale}key=[key]}return chooseLocale(key)}function listLocales(){return keys(locales)}function checkOverflow(m){var overflow;var a=m._a;if(a&&getParsingFlags(m).overflow===-2){overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0)?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1;if(getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE)){overflow=DATE}if(getParsingFlags(m)._overflowWeeks&&overflow===-1){overflow=WEEK}if(getParsingFlags(m)._overflowWeekday&&overflow===-1){overflow=WEEKDAY}getParsingFlags(m).overflow=overflow}return m}function defaults(a,b,c){if(a!=null){return a}if(b!=null){return b}return c}function currentDateArray(config){var nowValue=new Date(hooks.now());if(config._useUTC){return[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]}return[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}function configFromArray(config){var i,date,input=[],currentDate,yearToUse;if(config._d){return}currentDate=currentDateArray(config);if(config._w&&config._a[DATE]==null&&config._a[MONTH]==null){dayOfYearFromWeekInfo(config)}if(config._dayOfYear!=null){yearToUse=defaults(config._a[YEAR],currentDate[YEAR]);if(config._dayOfYear>daysInYear(yearToUse)||config._dayOfYear===0){getParsingFlags(config)._overflowDayOfYear=true}date=createUTCDate(yearToUse,0,config._dayOfYear);config._a[MONTH]=date.getUTCMonth();config._a[DATE]=date.getUTCDate()}for(i=0;i<3&&config._a[i]==null;++i){config._a[i]=input[i]=currentDate[i]}for(;i<7;i++){config._a[i]=input[i]=config._a[i]==null?i===2?1:0:config._a[i]}if(config._a[HOUR]===24&&config._a[MINUTE]===0&&config._a[SECOND]===0&&config._a[MILLISECOND]===0){config._nextDay=true;config._a[HOUR]=0}config._d=(config._useUTC?createUTCDate:createDate).apply(null,input);if(config._tzm!=null){config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm)}if(config._nextDay){config._a[HOUR]=24}if(config._w&&typeof config._w.d!==\"undefined\"&&config._w.d!==config._d.getDay()){getParsingFlags(config).weekdayMismatch=true}}function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow;w=config._w;if(w.GG!=null||w.W!=null||w.E!=null){dow=1;doy=4;weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(createLocal(),1,4).year);week=defaults(w.W,1);weekday=defaults(w.E,1);if(weekday<1||weekday>7){weekdayOverflow=true}}else{dow=config._locale._week.dow;doy=config._locale._week.doy;var curWeek=weekOfYear(createLocal(),dow,doy);weekYear=defaults(w.gg,config._a[YEAR],curWeek.year);week=defaults(w.w,curWeek.week);if(w.d!=null){weekday=w.d;if(weekday<0||weekday>6){weekdayOverflow=true}}else if(w.e!=null){weekday=w.e+dow;if(w.e<0||w.e>6){weekdayOverflow=true}}else{weekday=dow}}if(week<1||week>weeksInYear(weekYear,dow,doy)){getParsingFlags(config)._overflowWeeks=true}else if(weekdayOverflow!=null){getParsingFlags(config)._overflowWeekday=true}else{temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy);config._a[YEAR]=temp.year;config._dayOfYear=temp.dayOfYear}}var extendedIsoRegex=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;var basicIsoRegex=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;var tzRegex=/Z|[+-]\\d\\d(?::?\\d\\d)?/;var isoDates=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,false],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,false],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,false],[\"YYYYDDD\",/\\d{7}/]];var isoTimes=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]];var aspNetJsonRegex=/^\\/?Date\\((\\-?\\d+)/i;function configFromISO(config){var i,l,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string),allowTime,dateFormat,timeFormat,tzFormat;if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDates.length;i<l;i++){if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0];allowTime=isoDates[i][2]!==false;break}}if(dateFormat==null){config._isValid=false;return}if(match[3]){for(i=0,l=isoTimes.length;i<l;i++){if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||\" \")+isoTimes[i][0];break}}if(timeFormat==null){config._isValid=false;return}}if(!allowTime&&timeFormat!=null){config._isValid=false;return}if(match[4]){if(tzRegex.exec(match[4])){tzFormat=\"Z\"}else{config._isValid=false;return}}config._f=dateFormat+(timeFormat||\"\")+(tzFormat||\"\");configFromStringAndFormat(config)}else{config._isValid=false}}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/;function extractFromRFC2822Strings(yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){var result=[untruncateYear(yearStr),defaultLocaleMonthsShort.indexOf(monthStr),parseInt(dayStr,10),parseInt(hourStr,10),parseInt(minuteStr,10)];if(secondStr){result.push(parseInt(secondStr,10))}return result}function untruncateYear(yearStr){var year=parseInt(yearStr,10);if(year<=49){return 2e3+year}else if(year<=999){return 1900+year}return year}function preprocessRFC2822(s){return s.replace(/\\([^)]*\\)|[\\n\\t]/g,\" \").replace(/(\\s\\s+)/g,\" \").trim()}function checkWeekday(weekdayStr,parsedInput,config){if(weekdayStr){var weekdayProvided=defaultLocaleWeekdaysShort.indexOf(weekdayStr),weekdayActual=new Date(parsedInput[0],parsedInput[1],parsedInput[2]).getDay();if(weekdayProvided!==weekdayActual){getParsingFlags(config).weekdayMismatch=true;config._isValid=false;return false}}return true}var obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function calculateOffset(obsOffset,militaryOffset,numOffset){if(obsOffset){return obsOffsets[obsOffset]}else if(militaryOffset){return 0}else{var hm=parseInt(numOffset,10);var m=hm%100,h=(hm-m)/100;return h*60+m}}function configFromRFC2822(config){var match=rfc2822.exec(preprocessRFC2822(config._i));if(match){var parsedArray=extractFromRFC2822Strings(match[4],match[3],match[2],match[5],match[6],match[7]);if(!checkWeekday(match[1],parsedArray,config)){return}config._a=parsedArray;config._tzm=calculateOffset(match[8],match[9],match[10]);config._d=createUTCDate.apply(null,config._a);config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm);getParsingFlags(config).rfc2822=true}else{config._isValid=false}}function configFromString(config){var matched=aspNetJsonRegex.exec(config._i);if(matched!==null){config._d=new Date(+matched[1]);return}configFromISO(config);if(config._isValid===false){delete config._isValid}else{return}configFromRFC2822(config);if(config._isValid===false){delete config._isValid}else{return}hooks.createFromInputFallback(config)}hooks.createFromInputFallback=deprecate(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), \"+\"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are \"+\"discouraged and will be removed in an upcoming major release. Please refer to \"+\"http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(config){config._d=new Date(config._i+(config._useUTC?\" UTC\":\"\"))});hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(config){if(config._f===hooks.ISO_8601){configFromISO(config);return}if(config._f===hooks.RFC_2822){configFromRFC2822(config);return}config._a=[];getParsingFlags(config).empty=true\n;var string=\"\"+config._i,i,parsedInput,tokens,token,skipped,stringLength=string.length,totalParsedInputLength=0;tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[];for(i=0;i<tokens.length;i++){token=tokens[i];parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0];if(parsedInput){skipped=string.substr(0,string.indexOf(parsedInput));if(skipped.length>0){getParsingFlags(config).unusedInput.push(skipped)}string=string.slice(string.indexOf(parsedInput)+parsedInput.length);totalParsedInputLength+=parsedInput.length}if(formatTokenFunctions[token]){if(parsedInput){getParsingFlags(config).empty=false}else{getParsingFlags(config).unusedTokens.push(token)}addTimeToArrayFromToken(token,parsedInput,config)}else if(config._strict&&!parsedInput){getParsingFlags(config).unusedTokens.push(token)}}getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength;if(string.length>0){getParsingFlags(config).unusedInput.push(string)}if(config._a[HOUR]<=12&&getParsingFlags(config).bigHour===true&&config._a[HOUR]>0){getParsingFlags(config).bigHour=undefined}getParsingFlags(config).parsedDateParts=config._a.slice(0);getParsingFlags(config).meridiem=config._meridiem;config._a[HOUR]=meridiemFixWrap(config._locale,config._a[HOUR],config._meridiem);configFromArray(config);checkOverflow(config)}function meridiemFixWrap(locale,hour,meridiem){var isPm;if(meridiem==null){return hour}if(locale.meridiemHour!=null){return locale.meridiemHour(hour,meridiem)}else if(locale.isPM!=null){isPm=locale.isPM(meridiem);if(isPm&&hour<12){hour+=12}if(!isPm&&hour===12){hour=0}return hour}else{return hour}}function configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(config._f.length===0){getParsingFlags(config).invalidFormat=true;config._d=new Date(NaN);return}for(i=0;i<config._f.length;i++){currentScore=0;tempConfig=copyConfig({},config);if(config._useUTC!=null){tempConfig._useUTC=config._useUTC}tempConfig._f=config._f[i];configFromStringAndFormat(tempConfig);if(!isValid(tempConfig)){continue}currentScore+=getParsingFlags(tempConfig).charsLeftOver;currentScore+=getParsingFlags(tempConfig).unusedTokens.length*10;getParsingFlags(tempConfig).score=currentScore;if(scoreToBeat==null||currentScore<scoreToBeat){scoreToBeat=currentScore;bestMoment=tempConfig}}extend(config,bestMoment||tempConfig)}function configFromObject(config){if(config._d){return}var i=normalizeObjectUnits(config._i);config._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10)});configFromArray(config)}function createFromConfig(config){var res=new Moment(checkOverflow(prepareConfig(config)));if(res._nextDay){res.add(1,\"d\");res._nextDay=undefined}return res}function prepareConfig(config){var input=config._i,format=config._f;config._locale=config._locale||getLocale(config._l);if(input===null||format===undefined&&input===\"\"){return createInvalid({nullInput:true})}if(typeof input===\"string\"){config._i=input=config._locale.preparse(input)}if(isMoment(input)){return new Moment(checkOverflow(input))}else if(isDate(input)){config._d=input}else if(isArray(format)){configFromStringAndArray(config)}else if(format){configFromStringAndFormat(config)}else{configFromInput(config)}if(!isValid(config)){config._d=null}return config}function configFromInput(config){var input=config._i;if(isUndefined(input)){config._d=new Date(hooks.now())}else if(isDate(input)){config._d=new Date(input.valueOf())}else if(typeof input===\"string\"){configFromString(config)}else if(isArray(input)){config._a=map(input.slice(0),function(obj){return parseInt(obj,10)});configFromArray(config)}else if(isObject(input)){configFromObject(config)}else if(isNumber(input)){config._d=new Date(input)}else{hooks.createFromInputFallback(config)}}function createLocalOrUTC(input,format,locale,strict,isUTC){var c={};if(locale===true||locale===false){strict=locale;locale=undefined}if(isObject(input)&&isObjectEmpty(input)||isArray(input)&&input.length===0){input=undefined}c._isAMomentObject=true;c._useUTC=c._isUTC=isUTC;c._l=locale;c._i=input;c._f=format;c._strict=strict;return createFromConfig(c)}function createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,false)}var prototypeMin=deprecate(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other<this?this:other}else{return createInvalid()}});var prototypeMax=deprecate(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other>this?this:other}else{return createInvalid()}});function pickBy(fn,moments){var res,i;if(moments.length===1&&isArray(moments[0])){moments=moments[0]}if(!moments.length){return createLocal()}res=moments[0];for(i=1;i<moments.length;++i){if(!moments[i].isValid()||moments[i][fn](res)){res=moments[i]}}return res}function min(){var args=[].slice.call(arguments,0);return pickBy(\"isBefore\",args)}function max(){var args=[].slice.call(arguments,0);return pickBy(\"isAfter\",args)}var now=function(){return Date.now?Date.now():+new Date};var ordering=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function isDurationValid(m){for(var key in m){if(!(indexOf.call(ordering,key)!==-1&&(m[key]==null||!isNaN(m[key])))){return false}}var unitHasDecimal=false;for(var i=0;i<ordering.length;++i){if(m[ordering[i]]){if(unitHasDecimal){return false}if(parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])){unitHasDecimal=true}}}return true}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._isValid=isDurationValid(normalizedInput);this._milliseconds=+milliseconds+seconds*1e3+minutes*6e4+hours*1e3*60*60;this._days=+days+weeks*7;this._months=+months+quarters*3+years*12;this._data={};this._locale=getLocale();this._bubble()}function isDuration(obj){return obj instanceof Duration}function absRound(number){if(number<0){return Math.round(-1*number)*-1}else{return Math.round(number)}}function offset(token,separator){addFormatToken(token,0,0,function(){var offset=this.utcOffset();var sign=\"+\";if(offset<0){offset=-offset;sign=\"-\"}return sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2)})}offset(\"Z\",\":\");offset(\"ZZ\",\"\");addRegexToken(\"Z\",matchShortOffset);addRegexToken(\"ZZ\",matchShortOffset);addParseToken([\"Z\",\"ZZ\"],function(input,array,config){config._useUTC=true;config._tzm=offsetFromString(matchShortOffset,input)});var chunkOffset=/([\\+\\-]|\\d\\d)/gi;function offsetFromString(matcher,string){var matches=(string||\"\").match(matcher);if(matches===null){return null}var chunk=matches[matches.length-1]||[];var parts=(chunk+\"\").match(chunkOffset)||[\"-\",0,0];var minutes=+(parts[1]*60)+toInt(parts[2]);return minutes===0?0:parts[0]===\"+\"?minutes:-minutes}function cloneWithOffset(input,model){var res,diff;if(model._isUTC){res=model.clone();diff=(isMoment(input)||isDate(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf();res._d.setTime(res._d.valueOf()+diff);hooks.updateOffset(res,false);return res}else{return createLocal(input).local()}}function getDateOffset(m){return-Math.round(m._d.getTimezoneOffset()/15)*15}hooks.updateOffset=function(){};function getSetOffset(input,keepLocalTime,keepMinutes){var offset=this._offset||0,localAdjust;if(!this.isValid()){return input!=null?this:NaN}if(input!=null){if(typeof input===\"string\"){input=offsetFromString(matchShortOffset,input);if(input===null){return this}}else if(Math.abs(input)<16&&!keepMinutes){input=input*60}if(!this._isUTC&&keepLocalTime){localAdjust=getDateOffset(this)}this._offset=input;this._isUTC=true;if(localAdjust!=null){this.add(localAdjust,\"m\")}if(offset!==input){if(!keepLocalTime||this._changeInProgress){addSubtract(this,createDuration(input-offset,\"m\"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;hooks.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?offset:getDateOffset(this)}}function getSetZone(input,keepLocalTime){if(input!=null){if(typeof input!==\"string\"){input=-input}this.utcOffset(input,keepLocalTime);return this}else{return-this.utcOffset()}}function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime)}function setOffsetToLocal(keepLocalTime){if(this._isUTC){this.utcOffset(0,keepLocalTime);this._isUTC=false;if(keepLocalTime){this.subtract(getDateOffset(this),\"m\")}}return this}function setOffsetToParsedOffset(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else if(typeof this._i===\"string\"){var tZone=offsetFromString(matchOffset,this._i);if(tZone!=null){this.utcOffset(tZone)}else{this.utcOffset(0,true)}}return this}function hasAlignedHourOffset(input){if(!this.isValid()){return false}input=input?createLocal(input).utcOffset():0;return(this.utcOffset()-input)%60===0}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted)){return this._isDSTShifted}var c={};copyConfig(c,this);c=prepareConfig(c);if(c._a){var other=c._isUTC?createUTC(c._a):createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:false}function isUtcOffset(){return this.isValid()?this._isUTC:false}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false}var aspNetRegex=/^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/;var isoRegex=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(input,key){var duration=input,match=null,sign,ret,diffRes;if(isDuration(input)){duration={ms:input._milliseconds,d:input._days,M:input._months}}else if(isNumber(input)){duration={};if(key){duration[key]=input}else{duration.milliseconds=input}}else if(!!(match=aspNetRegex.exec(input))){sign=match[1]===\"-\"?-1:1;duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(absRound(match[MILLISECOND]*1e3))*sign}}else if(!!(match=isoRegex.exec(input))){sign=match[1]===\"-\"?-1:match[1]===\"+\"?1:1;duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)}}else if(duration==null){duration={}}else if(typeof duration===\"object\"&&(\"from\"in duration||\"to\"in duration)){diffRes=momentsDifference(createLocal(duration.from),createLocal(duration.to));duration={};duration.ms=diffRes.milliseconds;duration.M=diffRes.months}ret=new Duration(duration);if(isDuration(input)&&hasOwnProp(input,\"_locale\")){ret._locale=input._locale}return ret}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(\",\",\".\"));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={milliseconds:0,months:0};res.months=other.month()-base.month()+(other.year()-base.year())*12;if(base.clone().add(res.months,\"M\").isAfter(other)){--res.months}res.milliseconds=+other-+base.clone().add(res.months,\"M\");return res}function momentsDifference(base,other){var res;if(!(base.isValid()&&other.isValid())){return{milliseconds:0,months:0}}other=cloneWithOffset(other,base);if(base.isBefore(other)){res=positiveMomentsDifference(base,other)}else{res=positiveMomentsDifference(other,base);res.milliseconds=-res.milliseconds;res.months=-res.months}return res}function createAdder(direction,name){return function(val,period){var dur,tmp;if(period!==null&&!isNaN(+period)){deprecateSimple(name,\"moment().\"+name+\"(period, number) is deprecated. Please use moment().\"+name+\"(number, period). \"+\"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\");tmp=val;val=period;period=tmp}val=typeof val===\"string\"?+val:val;dur=createDuration(val,period);addSubtract(this,dur,direction);return this}}function addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);if(!mom.isValid()){return}updateOffset=updateOffset==null?true:updateOffset;if(months){setMonth(mom,get(mom,\"Month\")+months*isAdding)}if(days){set$1(mom,\"Date\",get(mom,\"Date\")+days*isAdding)}if(milliseconds){mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding)}if(updateOffset){hooks.updateOffset(mom,days||months)}}var add=createAdder(1,\"add\");var subtract=createAdder(-1,\"subtract\");function getCalendarFormat(myMoment,now){var diff=myMoment.diff(now,\"days\",true);return diff<-6?\"sameElse\":diff<-1?\"lastWeek\":diff<0?\"lastDay\":diff<1?\"sameDay\":diff<2?\"nextDay\":diff<7?\"nextWeek\":\"sameElse\"}function calendar$1(time,formats){var now=time||createLocal(),sod=cloneWithOffset(now,this).startOf(\"day\"),format=hooks.calendarFormat(this,sod)||\"sameElse\";var output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,createLocal(now)))}function clone(){return new Moment(this)}function isAfter(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(!isUndefined(units)?units:\"millisecond\");if(units===\"millisecond\"){return this.valueOf()>localInput.valueOf()}else{return localInput.valueOf()<this.clone().startOf(units).valueOf()}}function isBefore(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(!isUndefined(units)?units:\"millisecond\");if(units===\"millisecond\"){return this.valueOf()<localInput.valueOf()}else{return this.clone().endOf(units).valueOf()<localInput.valueOf()}}function isBetween(from,to,units,inclusivity){inclusivity=inclusivity||\"()\";return(inclusivity[0]===\"(\"?this.isAfter(from,units):!this.isBefore(from,units))&&(inclusivity[1]===\")\"?this.isBefore(to,units):!this.isAfter(to,units))}function isSame(input,units){var localInput=isMoment(input)?input:createLocal(input),inputMs;if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(units||\"millisecond\");if(units===\"millisecond\"){return this.valueOf()===localInput.valueOf()}else{inputMs=localInput.valueOf();return this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf()}}function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units)}function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units)}function diff(input,units,asFloat){var that,zoneDelta,delta,output;if(!this.isValid()){return NaN}that=cloneWithOffset(input,this);if(!that.isValid()){return NaN}zoneDelta=(that.utcOffset()-this.utcOffset())*6e4;units=normalizeUnits(units);switch(units){case\"year\":output=monthDiff(this,that)/12;break;case\"month\":output=monthDiff(this,that);break;case\"quarter\":output=monthDiff(this,that)/3;break;case\"second\":output=(this-that)/1e3;break;case\"minute\":output=(this-that)/6e4;break;case\"hour\":output=(this-that)/36e5;break;case\"day\":output=(this-that-zoneDelta)/864e5;break;case\"week\":output=(this-that-zoneDelta)/6048e5;break;default:output=this-that}return asFloat?output:absFloor(output)}function monthDiff(a,b){var wholeMonthDiff=(b.year()-a.year())*12+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,\"months\"),anchor2,adjust;if(b-anchor<0){anchor2=a.clone().add(wholeMonthDiff-1,\"months\");adjust=(b-anchor)/(anchor-anchor2)}else{anchor2=a.clone().add(wholeMonthDiff+1,\"months\");adjust=(b-anchor)/(anchor2-anchor)}return-(wholeMonthDiff+adjust)||0}hooks.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\";hooks.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";function toString(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")}function toISOString(){if(!this.isValid()){return null}var m=this.clone().utc();if(m.year()<0||m.year()>9999){return formatMoment(m,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}if(isFunction(Date.prototype.toISOString)){return this.toDate().toISOString()}return formatMoment(m,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}function inspect(){if(!this.isValid()){return\"moment.invalid(/* \"+this._i+\" */)\"}var func=\"moment\";var zone=\"\";if(!this.isLocal()){func=this.utcOffset()===0?\"moment.utc\":\"moment.parseZone\";zone=\"Z\"}var prefix=\"[\"+func+'(\"]';var year=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\";var datetime=\"-MM-DD[T]HH:mm:ss.SSS\";var suffix=zone+'[\")]';return this.format(prefix+year+datetime+suffix)}function format(inputString){if(!inputString){inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat}var output=formatMoment(this,inputString);return this.localeData().postformat(output)}function from(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())){return createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix)}else{return this.localeData().invalidDate()}}function fromNow(withoutSuffix){return this.from(createLocal(),withoutSuffix)}function to(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())){return createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix)}else{return this.localeData().invalidDate()}}function toNow(withoutSuffix){return this.to(createLocal(),withoutSuffix)}function locale(key){var newLocaleData;if(key===undefined){return this._locale._abbr}else{newLocaleData=getLocale(key);if(newLocaleData!=null){this._locale=newLocaleData}return this}}var lang=deprecate(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(key){if(key===undefined){return this.localeData()}else{return this.locale(key)}});function localeData(){return this._locale}function startOf(units){units=normalizeUnits(units);switch(units){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}if(units===\"week\"){this.weekday(0)}if(units===\"isoWeek\"){this.isoWeekday(1)}if(units===\"quarter\"){this.month(Math.floor(this.month()/3)*3)}return this}function endOf(units){units=normalizeUnits(units);if(units===undefined||units===\"millisecond\"){return this}if(units===\"date\"){units=\"day\"}return this.startOf(units).add(1,units===\"isoWeek\"?\"week\":units).subtract(1,\"ms\")}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]}function toObject(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken(0,[\"gg\",2],0,function(){return this.weekYear()%100});addFormatToken(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}addWeekYearFormatToken(\"gggg\",\"weekYear\");addWeekYearFormatToken(\"ggggg\",\"weekYear\");addWeekYearFormatToken(\"GGGG\",\"isoWeekYear\");addWeekYearFormatToken(\"GGGGG\",\"isoWeekYear\");addUnitAlias(\"weekYear\",\"gg\");addUnitAlias(\"isoWeekYear\",\"GG\");addUnitPriority(\"weekYear\",1);addUnitPriority(\"isoWeekYear\",1);addRegexToken(\"G\",matchSigned);addRegexToken(\"g\",matchSigned);addRegexToken(\"GG\",match1to2,match2);addRegexToken(\"gg\",match1to2,match2);addRegexToken(\"GGGG\",match1to4,match4);addRegexToken(\"gggg\",match1to4,match4);addRegexToken(\"GGGGG\",match1to6,match6);addRegexToken(\"ggggg\",match1to6,match6);addWeekParseToken([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(input,week,config,token){week[token.substr(0,2)]=toInt(input)});addWeekParseToken([\"gg\",\"GG\"],function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input)});function getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;if(input==null){return weekOfYear(this,dow,doy).year}else{weeksTarget=weeksInYear(input,dow,doy);if(week>weeksTarget){week=weeksTarget}return setWeekAll.call(this,input,week,weekday,dow,doy)}}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);this.year(date.getUTCFullYear());this.month(date.getUTCMonth());this.date(date.getUTCDate());return this}addFormatToken(\"Q\",0,\"Qo\",\"quarter\");addUnitAlias(\"quarter\",\"Q\");addUnitPriority(\"quarter\",7);addRegexToken(\"Q\",match1);addParseToken(\"Q\",function(input,array){array[MONTH]=(toInt(input)-1)*3});function getSetQuarter(input){return input==null?Math.ceil((this.month()+1)/3):this.month((input-1)*3+this.month()%3)}addFormatToken(\"D\",[\"DD\",2],\"Do\",\"date\");addUnitAlias(\"date\",\"D\");addUnitPriority(\"date\",9);addRegexToken(\"D\",match1to2);addRegexToken(\"DD\",match1to2,match2);addRegexToken(\"Do\",function(isStrict,locale){return isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient});addParseToken([\"D\",\"DD\"],DATE);addParseToken(\"Do\",function(input,array){array[DATE]=toInt(input.match(match1to2)[0],10)});var getSetDayOfMonth=makeGetSet(\"Date\",true);addFormatToken(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\");addUnitAlias(\"dayOfYear\",\"DDD\");addUnitPriority(\"dayOfYear\",4);addRegexToken(\"DDD\",match1to3);addRegexToken(\"DDDD\",match3);addParseToken([\"DDD\",\"DDDD\"],function(input,array,config){config._dayOfYear=toInt(input)});function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return input==null?dayOfYear:this.add(input-dayOfYear,\"d\")}addFormatToken(\"m\",[\"mm\",2],0,\"minute\");addUnitAlias(\"minute\",\"m\");addUnitPriority(\"minute\",14);addRegexToken(\"m\",match1to2);addRegexToken(\"mm\",match1to2,match2);addParseToken([\"m\",\"mm\"],MINUTE);var getSetMinute=makeGetSet(\"Minutes\",false);addFormatToken(\"s\",[\"ss\",2],0,\"second\");addUnitAlias(\"second\",\"s\");addUnitPriority(\"second\",15);addRegexToken(\"s\",match1to2);addRegexToken(\"ss\",match1to2,match2);addParseToken([\"s\",\"ss\"],SECOND);var getSetSecond=makeGetSet(\"Seconds\",false);addFormatToken(\"S\",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,[\"SSS\",3],0,\"millisecond\");addFormatToken(0,[\"SSSS\",4],0,function(){return this.millisecond()*10});addFormatToken(0,[\"SSSSS\",5],0,function(){return this.millisecond()*100});addFormatToken(0,[\"SSSSSS\",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,[\"SSSSSSS\",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,[\"SSSSSSSS\",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,[\"SSSSSSSSS\",9],0,function(){return this.millisecond()*1e6});addUnitAlias(\"millisecond\",\"ms\");addUnitPriority(\"millisecond\",16);addRegexToken(\"S\",match1to3,match1);addRegexToken(\"SS\",match1to3,match2);addRegexToken(\"SSS\",match1to3,match3);var token;for(token=\"SSSS\";token.length<=9;token+=\"S\"){addRegexToken(token,matchUnsigned)}function parseMs(input,array){array[MILLISECOND]=toInt((\"0.\"+input)*1e3)}for(token=\"S\";token.length<=9;token+=\"S\"){addParseToken(token,parseMs)}var getSetMillisecond=makeGetSet(\"Milliseconds\",false);addFormatToken(\"z\",0,0,\"zoneAbbr\");addFormatToken(\"zz\",0,0,\"zoneName\");function getZoneAbbr(){return this._isUTC?\"UTC\":\"\"}function getZoneName(){return this._isUTC?\"Coordinated Universal Time\":\"\"}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone;proto.diff=diff;proto.endOf=endOf;proto.format=format;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;proto.toJSON=toJSON;proto.toString=toString;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate(\"dates accessor is deprecated. Use date instead.\",getSetDayOfMonth);proto.months=deprecate(\"months accessor is deprecated. Use month instead\",getSetMonth);proto.years=deprecate(\"years accessor is deprecated. Use year instead\",getSetYear);proto.zone=deprecate(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",getSetZone);proto.isDSTShifted=deprecate(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",isDaylightSavingTimeShifted);function createUnix(input){return createLocal(input*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(string){return string}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1(format,index,field,setter){var locale=getLocale();var utc=createUTC().set(setter,index);return locale[field](utc,format)}function listMonthsImpl(format,index,field){if(isNumber(format)){index=format;format=undefined}format=format||\"\";if(index!=null){return get$1(format,index,field,\"month\")}var i;var out=[];for(i=0;i<12;i++){out[i]=get$1(format,i,field,\"month\")}return out}function listWeekdaysImpl(localeSorted,format,index,field){if(typeof localeSorted===\"boolean\"){if(isNumber(format)){index=format;format=undefined}format=format||\"\"}else{format=localeSorted;index=format;localeSorted=false;if(isNumber(format)){index=format;format=undefined}format=format||\"\"}var locale=getLocale(),shift=localeSorted?locale._week.dow:0;if(index!=null){return get$1(format,(index+shift)%7,field,\"day\")}var i;var out=[];for(i=0;i<7;i++){out[i]=get$1(format,(i+shift)%7,field,\"day\")}return out}function listMonths(format,index){return listMonthsImpl(format,index,\"months\")}function listMonthsShort(format,index){return listMonthsImpl(format,index,\"monthsShort\")}function listWeekdays(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,\"weekdays\")}function listWeekdaysShort(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,\"weekdaysShort\")}function listWeekdaysMin(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,\"weekdaysMin\")}getSetGlobalLocale(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10,output=toInt(number%100/10)===1?\"th\":b===1?\"st\":b===2?\"nd\":b===3?\"rd\":\"th\";return number+output}});hooks.lang=deprecate(\"moment.lang is deprecated. Use moment.locale instead.\",getSetGlobalLocale);hooks.langData=deprecate(\"moment.langData is deprecated. Use moment.localeData instead.\",getLocale);var mathAbs=Math.abs;function abs(){var data=this._data;this._milliseconds=mathAbs(this._milliseconds);this._days=mathAbs(this._days);this._months=mathAbs(this._months);data.milliseconds=mathAbs(data.milliseconds);data.seconds=mathAbs(data.seconds);data.minutes=mathAbs(data.minutes);data.hours=mathAbs(data.hours);data.months=mathAbs(data.months);data.years=mathAbs(data.years);return this}function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);duration._milliseconds+=direction*other._milliseconds;duration._days+=direction*other._days;duration._months+=direction*other._months;return duration._bubble()}function add$1(input,value){return addSubtract$1(this,input,value,1)}function subtract$1(input,value){return addSubtract$1(this,input,value,-1)}function absCeil(number){if(number<0){return Math.floor(number)}else{return Math.ceil(number)}}function bubble(){var milliseconds=this._milliseconds;var days=this._days;var months=this._months;var data=this._data;var seconds,minutes,hours,years,monthsFromDays;if(!(milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0)){milliseconds+=absCeil(monthsToDays(months)+days)*864e5;days=0;months=0}data.milliseconds=milliseconds%1e3;seconds=absFloor(milliseconds/1e3);data.seconds=seconds%60;minutes=absFloor(seconds/60)\n;data.minutes=minutes%60;hours=absFloor(minutes/60);data.hours=hours%24;days+=absFloor(hours/24);monthsFromDays=absFloor(daysToMonths(days));months+=monthsFromDays;days-=absCeil(monthsToDays(monthsFromDays));years=absFloor(months/12);months%=12;data.days=days;data.months=months;data.years=years;return this}function daysToMonths(days){return days*4800/146097}function monthsToDays(months){return months*146097/4800}function as(units){if(!this.isValid()){return NaN}var days;var months;var milliseconds=this._milliseconds;units=normalizeUnits(units);if(units===\"month\"||units===\"year\"){days=this._days+milliseconds/864e5;months=this._months+daysToMonths(days);return units===\"month\"?months:months/12}else{days=this._days+Math.round(monthsToDays(this._months));switch(units){case\"week\":return days/7+milliseconds/6048e5;case\"day\":return days+milliseconds/864e5;case\"hour\":return days*24+milliseconds/36e5;case\"minute\":return days*1440+milliseconds/6e4;case\"second\":return days*86400+milliseconds/1e3;case\"millisecond\":return Math.floor(days*864e5)+milliseconds;default:throw new Error(\"Unknown unit \"+units)}}}function valueOf$1(){if(!this.isValid()){return NaN}return this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs(\"ms\");var asSeconds=makeAs(\"s\");var asMinutes=makeAs(\"m\");var asHours=makeAs(\"h\");var asDays=makeAs(\"d\");var asWeeks=makeAs(\"w\");var asMonths=makeAs(\"M\");var asYears=makeAs(\"y\");function clone$1(){return createDuration(this)}function get$2(units){units=normalizeUnits(units);return this.isValid()?this[units+\"s\"]():NaN}function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN}}var milliseconds=makeGetter(\"milliseconds\");var seconds=makeGetter(\"seconds\");var minutes=makeGetter(\"minutes\");var hours=makeGetter(\"hours\");var days=makeGetter(\"days\");var months=makeGetter(\"months\");var years=makeGetter(\"years\");function weeks(){return absFloor(this.days()/7)}var round=Math.round;var thresholds={ss:44,s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}function relativeTime$1(posNegDuration,withoutSuffix,locale){var duration=createDuration(posNegDuration).abs();var seconds=round(duration.as(\"s\"));var minutes=round(duration.as(\"m\"));var hours=round(duration.as(\"h\"));var days=round(duration.as(\"d\"));var months=round(duration.as(\"M\"));var years=round(duration.as(\"y\"));var a=seconds<=thresholds.ss&&[\"s\",seconds]||seconds<thresholds.s&&[\"ss\",seconds]||minutes<=1&&[\"m\"]||minutes<thresholds.m&&[\"mm\",minutes]||hours<=1&&[\"h\"]||hours<thresholds.h&&[\"hh\",hours]||days<=1&&[\"d\"]||days<thresholds.d&&[\"dd\",days]||months<=1&&[\"M\"]||months<thresholds.M&&[\"MM\",months]||years<=1&&[\"y\"]||[\"yy\",years];a[2]=withoutSuffix;a[3]=+posNegDuration>0;a[4]=locale;return substituteTimeAgo.apply(null,a)}function getSetRelativeTimeRounding(roundingFunction){if(roundingFunction===undefined){return round}if(typeof roundingFunction===\"function\"){round=roundingFunction;return true}return false}function getSetRelativeTimeThreshold(threshold,limit){if(thresholds[threshold]===undefined){return false}if(limit===undefined){return thresholds[threshold]}thresholds[threshold]=limit;if(threshold===\"s\"){thresholds.ss=limit-1}return true}function humanize(withSuffix){if(!this.isValid()){return this.localeData().invalidDate()}var locale=this.localeData();var output=relativeTime$1(this,!withSuffix,locale);if(withSuffix){output=locale.pastFuture(+this,output)}return locale.postformat(output)}var abs$1=Math.abs;function sign(x){return(x>0)-(x<0)||+x}function toISOString$1(){if(!this.isValid()){return this.localeData().invalidDate()}var seconds=abs$1(this._milliseconds)/1e3;var days=abs$1(this._days);var months=abs$1(this._months);var minutes,hours,years;minutes=absFloor(seconds/60);hours=absFloor(minutes/60);seconds%=60;minutes%=60;years=absFloor(months/12);months%=12;var Y=years;var M=months;var D=days;var h=hours;var m=minutes;var s=seconds?seconds.toFixed(3).replace(/\\.?0+$/,\"\"):\"\";var total=this.asSeconds();if(!total){return\"P0D\"}var totalSign=total<0?\"-\":\"\";var ymSign=sign(this._months)!==sign(total)?\"-\":\"\";var daysSign=sign(this._days)!==sign(total)?\"-\":\"\";var hmsSign=sign(this._milliseconds)!==sign(total)?\"-\":\"\";return totalSign+\"P\"+(Y?ymSign+Y+\"Y\":\"\")+(M?ymSign+M+\"M\":\"\")+(D?daysSign+D+\"D\":\"\")+(h||m||s?\"T\":\"\")+(h?hmsSign+h+\"H\":\"\")+(m?hmsSign+m+\"M\":\"\")+(s?hmsSign+s+\"S\":\"\")}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",toISOString$1);proto$2.lang=lang;addFormatToken(\"X\",0,0,\"unix\");addFormatToken(\"x\",0,0,\"valueOf\");addRegexToken(\"x\",matchSigned);addRegexToken(\"X\",matchTimestamp);addParseToken(\"X\",function(input,array,config){config._d=new Date(parseFloat(input,10)*1e3)});addParseToken(\"x\",function(input,array,config){config._d=new Date(toInt(input))});hooks.version=\"2.19.1\";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;return hooks})}).call(exports,__webpack_require__(155)(module))},function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];if(!module.children)module.children=[];Object.defineProperty(module,\"loaded\",{enumerable:true,get:function(){return module.l}});Object.defineProperty(module,\"id\",{enumerable:true,get:function(){return module.i}});module.webpackPolyfill=1}return module}},function(module,exports){function webpackEmptyContext(req){throw new Error(\"Cannot find module '\"+req+\"'.\")}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;module.exports=webpackEmptyContext;webpackEmptyContext.id=156},function(module,exports,__webpack_require__){\"use strict\";(function(global){var _rng;var globalVar=typeof window!==\"undefined\"?window:typeof global!==\"undefined\"?global:null;if(globalVar&&globalVar.crypto&&crypto.getRandomValues){var _rnds8=new Uint8Array(16);_rng=function whatwgRNG(){crypto.getRandomValues(_rnds8);return _rnds8}}if(!_rng){var _rnds=new Array(16);_rng=function _rng(){for(var i=0,r;i<16;i++){if((i&3)===0)r=Math.random()*4294967296;_rnds[i]=r>>>((i&3)<<3)&255}return _rnds}}var _byteToHex=[];var _hexToByte={};for(var i=0;i<256;i++){_byteToHex[i]=(i+256).toString(16).substr(1);_hexToByte[_byteToHex[i]]=i}function parse(s,buf,offset){var i=buf&&offset||0,ii=0;buf=buf||[];s.toLowerCase().replace(/[0-9a-f]{2}/g,function(oct){if(ii<16){buf[i+ii++]=_hexToByte[oct]}});while(ii<16){buf[i+ii++]=0}return buf}function unparse(buf,offset){var i=offset||0,bth=_byteToHex;return bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]}var _seedBytes=_rng();var _nodeId=[_seedBytes[0]|1,_seedBytes[1],_seedBytes[2],_seedBytes[3],_seedBytes[4],_seedBytes[5]];var _clockseq=(_seedBytes[6]<<8|_seedBytes[7])&16383;var _lastMSecs=0,_lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0;var b=buf||[];options=options||{};var clockseq=options.clockseq!==undefined?options.clockseq:_clockseq;var msecs=options.msecs!==undefined?options.msecs:(new Date).getTime();var nsecs=options.nsecs!==undefined?options.nsecs:_lastNSecs+1;var dt=msecs-_lastMSecs+(nsecs-_lastNSecs)/1e4;if(dt<0&&options.clockseq===undefined){clockseq=clockseq+1&16383}if((dt<0||msecs>_lastMSecs)&&options.nsecs===undefined){nsecs=0}if(nsecs>=1e4){throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\")}_lastMSecs=msecs;_lastNSecs=nsecs;_clockseq=clockseq;msecs+=122192928e5;var tl=((msecs&268435455)*1e4+nsecs)%4294967296;b[i++]=tl>>>24&255;b[i++]=tl>>>16&255;b[i++]=tl>>>8&255;b[i++]=tl&255;var tmh=msecs/4294967296*1e4&268435455;b[i++]=tmh>>>8&255;b[i++]=tmh&255;b[i++]=tmh>>>24&15|16;b[i++]=tmh>>>16&255;b[i++]=clockseq>>>8|128;b[i++]=clockseq&255;var node=options.node||_nodeId;for(var n=0;n<6;n++){b[i+n]=node[n]}return buf?buf:unparse(b)}function v4(options,buf,offset){var i=buf&&offset||0;if(typeof options==\"string\"){buf=options==\"binary\"?new Array(16):null;options=null}options=options||{};var rnds=options.random||(options.rng||_rng)();rnds[6]=rnds[6]&15|64;rnds[8]=rnds[8]&63|128;if(buf){for(var ii=0;ii<16;ii++){buf[i+ii]=rnds[ii]}}return buf||unparse(rnds)}var uuid=v4;uuid.v1=v1;uuid.v4=v4;uuid.parse=parse;uuid.unparse=unparse;module.exports=uuid}).call(exports,__webpack_require__(158))},function(module,exports){var g;g=function(){return this}();try{g=g||Function(\"return this\")()||(1,eval)(\"this\")}catch(e){if(typeof window===\"object\")g=window}module.exports=g},function(module,exports,__webpack_require__){\"use strict\";exports.util=__webpack_require__(2);exports.DOMutil=__webpack_require__(14);exports.DataSet=__webpack_require__(11);exports.DataView=__webpack_require__(12);exports.Queue=__webpack_require__(43);exports.Graph3d=__webpack_require__(161);exports.graph3d={Camera:__webpack_require__(95),Filter:__webpack_require__(96),Point2d:__webpack_require__(91),Point3d:__webpack_require__(34),Slider:__webpack_require__(92),StepNumber:__webpack_require__(93)};exports.moment=__webpack_require__(9);exports.Hammer=__webpack_require__(10);exports.keycharm=__webpack_require__(35)},function(module,exports,__webpack_require__){var core=__webpack_require__(7);var $JSON=core.JSON||(core.JSON={stringify:JSON.stringify});module.exports=function stringify(it){return $JSON.stringify.apply($JSON,arguments)}},function(module,exports,__webpack_require__){\"use strict\";var _assign=__webpack_require__(90);var _assign2=_interopRequireDefault(_assign);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Emitter=__webpack_require__(44);var util=__webpack_require__(2);var Point3d=__webpack_require__(34);var Point2d=__webpack_require__(91);var Slider=__webpack_require__(92);var StepNumber=__webpack_require__(93);var Settings=__webpack_require__(94);var Validator=__webpack_require__(15)[\"default\"];var _require=__webpack_require__(15),printStyle=_require.printStyle;var _require2=__webpack_require__(172),allOptions=_require2.allOptions;var DataGroup=__webpack_require__(173);Graph3d.STYLE=Settings.STYLE;var autoByDefault=undefined;Graph3d.DEFAULTS={width:\"400px\",height:\"400px\",filterLabel:\"time\",legendLabel:\"value\",xLabel:\"x\",yLabel:\"y\",zLabel:\"z\",xValueLabel:function xValueLabel(v){return v},yValueLabel:function yValueLabel(v){return v},zValueLabel:function zValueLabel(v){return v},showXAxis:true,showYAxis:true,showZAxis:true,showGrid:true,showPerspective:true,showShadow:false,keepAspectRatio:true,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:autoByDefault,animationInterval:1e3,animationPreload:false,animationAutoStart:autoByDefault,axisColor:\"#4D4D4D\",gridColor:\"#D3D3D3\",xCenter:\"55%\",yCenter:\"50%\",style:Graph3d.STYLE.DOT,tooltip:false,tooltipStyle:{content:{padding:\"10px\",border:\"1px solid #4d4d4d\",color:\"#1a1a1a\",background:\"rgba(255,255,255,0.7)\",borderRadius:\"2px\",boxShadow:\"5px 5px 10px rgba(128,128,128,0.5)\"},line:{height:\"40px\",width:\"0\",borderLeft:\"1px solid #4d4d4d\"},dot:{height:\"0\",width:\"0\",border:\"5px solid #4d4d4d\",borderRadius:\"5px\"}},dataColor:{fill:\"#7DC1FF\",stroke:\"#3267D2\",strokeWidth:1},cameraPosition:{horizontal:1,vertical:.5,distance:1.7},showLegend:autoByDefault,backgroundColor:autoByDefault,xBarWidth:autoByDefault,yBarWidth:autoByDefault,valueMin:autoByDefault,valueMax:autoByDefault,xMin:autoByDefault,xMax:autoByDefault,xStep:autoByDefault,yMin:autoByDefault,yMax:autoByDefault,yStep:autoByDefault,zMin:autoByDefault,zMax:autoByDefault,zStep:autoByDefault};function Graph3d(container,data,options){if(!(this instanceof Graph3d)){throw new SyntaxError(\"Constructor must be called with the new operator\")}this.containerElement=container;this.dataGroup=new DataGroup;this.dataPoints=null;this.create();Settings.setDefaults(Graph3d.DEFAULTS,this);this.colX=undefined;this.colY=undefined;this.colZ=undefined;this.colValue=undefined;this.setOptions(options);this.setData(data)}Emitter(Graph3d.prototype);Graph3d.prototype._setScale=function(){this.scale=new Point3d(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range());if(this.keepAspectRatio){if(this.scale.x<this.scale.y){this.scale.y=this.scale.x}else{this.scale.x=this.scale.y}}this.scale.z*=this.verticalRatio;if(this.valueRange!==undefined){this.scale.value=1/this.valueRange.range()}var xCenter=this.xRange.center()*this.scale.x;var yCenter=this.yRange.center()*this.scale.y;var zCenter=this.zRange.center()*this.scale.z;this.camera.setArmLocation(xCenter,yCenter,zCenter)};Graph3d.prototype._convert3Dto2D=function(point3d){var translation=this._convertPointToTranslation(point3d);return this._convertTranslationToScreen(translation)};Graph3d.prototype._convertPointToTranslation=function(point3d){var cameraLocation=this.camera.getCameraLocation(),cameraRotation=this.camera.getCameraRotation(),ax=point3d.x*this.scale.x,ay=point3d.y*this.scale.y,az=point3d.z*this.scale.z,cx=cameraLocation.x,cy=cameraLocation.y,cz=cameraLocation.z,sinTx=Math.sin(cameraRotation.x),cosTx=Math.cos(cameraRotation.x),sinTy=Math.sin(cameraRotation.y),cosTy=Math.cos(cameraRotation.y),sinTz=Math.sin(cameraRotation.z),cosTz=Math.cos(cameraRotation.z),dx=cosTy*(sinTz*(ay-cy)+cosTz*(ax-cx))-sinTy*(az-cz),dy=sinTx*(cosTy*(az-cz)+sinTy*(sinTz*(ay-cy)+cosTz*(ax-cx)))+cosTx*(cosTz*(ay-cy)-sinTz*(ax-cx)),dz=cosTx*(cosTy*(az-cz)+sinTy*(sinTz*(ay-cy)+cosTz*(ax-cx)))-sinTx*(cosTz*(ay-cy)-sinTz*(ax-cx));return new Point3d(dx,dy,dz)};Graph3d.prototype._convertTranslationToScreen=function(translation){var ex=this.eye.x,ey=this.eye.y,ez=this.eye.z,dx=translation.x,dy=translation.y,dz=translation.z;var bx;var by;if(this.showPerspective){bx=(dx-ex)*(ez/dz);by=(dy-ey)*(ez/dz)}else{bx=dx*-(ez/this.camera.getArmLength());by=dy*-(ez/this.camera.getArmLength())}return new Point2d(this.currentXCenter+bx*this.frame.canvas.clientWidth,this.currentYCenter-by*this.frame.canvas.clientWidth)};Graph3d.prototype._calcTranslations=function(points){for(var i=0;i<points.length;i++){var point=points[i];point.trans=this._convertPointToTranslation(point.point);point.screen=this._convertTranslationToScreen(point.trans);var transBottom=this._convertPointToTranslation(point.bottom);point.dist=this.showPerspective?transBottom.length():-transBottom.z}var sortDepth=function sortDepth(a,b){return b.dist-a.dist};points.sort(sortDepth)};Graph3d.prototype._initializeRanges=function(){var dg=this.dataGroup;this.xRange=dg.xRange;this.yRange=dg.yRange;this.zRange=dg.zRange;this.valueRange=dg.valueRange;this.xStep=dg.xStep;this.yStep=dg.yStep;this.zStep=dg.zStep;this.xBarWidth=dg.xBarWidth;this.yBarWidth=dg.yBarWidth;this.colX=dg.colX;this.colY=dg.colY;this.colZ=dg.colZ;this.colValue=dg.colValue;this._setScale()};Graph3d.prototype.getDataPoints=function(data){var dataPoints=[];for(var i=0;i<data.length;i++){var point=new Point3d;point.x=data[i][this.colX]||0;point.y=data[i][this.colY]||0;point.z=data[i][this.colZ]||0;point.data=data[i];if(this.colValue!==undefined){point.value=data[i][this.colValue]||0}var obj={};obj.point=point;obj.bottom=new Point3d(point.x,point.y,this.zRange.min);obj.trans=undefined;obj.screen=undefined;dataPoints.push(obj)}return dataPoints};Graph3d.prototype._getDataPoints=function(data){var x,y,i,obj;var dataPoints=[];if(this.style===Graph3d.STYLE.GRID||this.style===Graph3d.STYLE.SURFACE){var dataX=this.dataGroup.getDistinctValues(this.colX,data);var dataY=this.dataGroup.getDistinctValues(this.colY,data);dataPoints=this.getDataPoints(data);var dataMatrix=[];for(i=0;i<dataPoints.length;i++){obj=dataPoints[i];var xIndex=dataX.indexOf(obj.point.x);var yIndex=dataY.indexOf(obj.point.y);if(dataMatrix[xIndex]===undefined){dataMatrix[xIndex]=[]}dataMatrix[xIndex][yIndex]=obj}for(x=0;x<dataMatrix.length;x++){for(y=0;y<dataMatrix[x].length;y++){if(dataMatrix[x][y]){dataMatrix[x][y].pointRight=x<dataMatrix.length-1?dataMatrix[x+1][y]:undefined;dataMatrix[x][y].pointTop=y<dataMatrix[x].length-1?dataMatrix[x][y+1]:undefined;dataMatrix[x][y].pointCross=x<dataMatrix.length-1&&y<dataMatrix[x].length-1?dataMatrix[x+1][y+1]:undefined}}}}else{this._checkValueField(data);dataPoints=this.getDataPoints(data);if(this.style===Graph3d.STYLE.LINE){for(i=0;i<dataPoints.length;i++){if(i>0){dataPoints[i-1].pointNext=dataPoints[i]}}}}return dataPoints};Graph3d.prototype.create=function(){while(this.containerElement.hasChildNodes()){this.containerElement.removeChild(this.containerElement.firstChild)}this.frame=document.createElement(\"div\");this.frame.style.position=\"relative\";this.frame.style.overflow=\"hidden\";this.frame.canvas=document.createElement(\"canvas\");this.frame.canvas.style.position=\"relative\";this.frame.appendChild(this.frame.canvas);{var noCanvas=document.createElement(\"DIV\");noCanvas.style.color=\"red\";noCanvas.style.fontWeight=\"bold\";noCanvas.style.padding=\"10px\";noCanvas.innerHTML=\"Error: your browser does not support HTML canvas\";this.frame.canvas.appendChild(noCanvas)}this.frame.filter=document.createElement(\"div\");this.frame.filter.style.position=\"absolute\";this.frame.filter.style.bottom=\"0px\";this.frame.filter.style.left=\"0px\";this.frame.filter.style.width=\"100%\";this.frame.appendChild(this.frame.filter);var me=this;var onmousedown=function onmousedown(event){me._onMouseDown(event)};var ontouchstart=function ontouchstart(event){me._onTouchStart(event)};var onmousewheel=function onmousewheel(event){me._onWheel(event)};var ontooltip=function ontooltip(event){me._onTooltip(event)};var onclick=function onclick(event){me._onClick(event)};util.addEventListener(this.frame.canvas,\"mousedown\",onmousedown);util.addEventListener(this.frame.canvas,\"touchstart\",ontouchstart);util.addEventListener(this.frame.canvas,\"mousewheel\",onmousewheel);util.addEventListener(this.frame.canvas,\"mousemove\",ontooltip);util.addEventListener(this.frame.canvas,\"click\",onclick);this.containerElement.appendChild(this.frame)};Graph3d.prototype._setSize=function(width,height){this.frame.style.width=width;this.frame.style.height=height;this._resizeCanvas()};Graph3d.prototype._resizeCanvas=function(){this.frame.canvas.style.width=\"100%\";this.frame.canvas.style.height=\"100%\";this.frame.canvas.width=this.frame.canvas.clientWidth;this.frame.canvas.height=this.frame.canvas.clientHeight;this.frame.filter.style.width=this.frame.canvas.clientWidth-2*10+\"px\"};Graph3d.prototype.animationStart=function(){if(!this.animationAutoStart||!this.dataGroup.dataFilter)return;if(!this.frame.filter||!this.frame.filter.slider)throw new Error(\"No animation available\");this.frame.filter.slider.play()};Graph3d.prototype.animationStop=function(){if(!this.frame.filter||!this.frame.filter.slider)return;this.frame.filter.slider.stop()};Graph3d.prototype._resizeCenter=function(){if(this.xCenter.charAt(this.xCenter.length-1)===\"%\"){this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth}else{this.currentXCenter=parseFloat(this.xCenter)}if(this.yCenter.charAt(this.yCenter.length-1)===\"%\"){this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight)}else{this.currentYCenter=parseFloat(this.yCenter)}};Graph3d.prototype.getCameraPosition=function(){var pos=this.camera.getArmRotation();pos.distance=this.camera.getArmLength();return pos};Graph3d.prototype._readData=function(data){this.dataPoints=this.dataGroup.initializeData(this,data,this.style);this._initializeRanges();this._redrawFilter()};Graph3d.prototype.setData=function(data){if(data===undefined||data===null)return;this._readData(data);this.redraw();this.animationStart()};Graph3d.prototype.setOptions=function(options){if(options===undefined)return;var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}this.animationStop();Settings.setOptions(options,this);this.setPointDrawingMethod();this._setSize(this.width,this.height);this.setData(this.dataGroup.getDataTable());this.animationStart()};Graph3d.prototype.setPointDrawingMethod=function(){var method=undefined;switch(this.style){case Graph3d.STYLE.BAR:method=Graph3d.prototype._redrawBarGraphPoint;break;case Graph3d.STYLE.BARCOLOR:method=Graph3d.prototype._redrawBarColorGraphPoint;break;case Graph3d.STYLE.BARSIZE:method=Graph3d.prototype._redrawBarSizeGraphPoint;break;case Graph3d.STYLE.DOT:method=Graph3d.prototype._redrawDotGraphPoint;break;case Graph3d.STYLE.DOTLINE:method=Graph3d.prototype._redrawDotLineGraphPoint;break;case Graph3d.STYLE.DOTCOLOR:method=Graph3d.prototype._redrawDotColorGraphPoint;break;case Graph3d.STYLE.DOTSIZE:method=Graph3d.prototype._redrawDotSizeGraphPoint;break;case Graph3d.STYLE.SURFACE:method=Graph3d.prototype._redrawSurfaceGraphPoint;break;case Graph3d.STYLE.GRID:method=Graph3d.prototype._redrawGridGraphPoint;break;case Graph3d.STYLE.LINE:method=Graph3d.prototype._redrawLineGraphPoint;break;default:throw new Error(\"Can not determine point drawing method \"+\"for graph style '\"+this.style+\"'\")}this._pointDrawingMethod=method};Graph3d.prototype.redraw=function(){if(this.dataPoints===undefined){throw new Error(\"Graph data not initialized\")}this._resizeCanvas();this._resizeCenter();this._redrawSlider();this._redrawClear();this._redrawAxis();this._redrawDataGraph();this._redrawInfo();this._redrawLegend()};Graph3d.prototype._getContext=function(){var canvas=this.frame.canvas;var ctx=canvas.getContext(\"2d\");ctx.lineJoin=\"round\";ctx.lineCap=\"round\";return ctx};Graph3d.prototype._redrawClear=function(){var canvas=this.frame.canvas;var ctx=canvas.getContext(\"2d\");ctx.clearRect(0,0,canvas.width,canvas.height)};Graph3d.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio};Graph3d.prototype._getLegendWidth=function(){var width;if(this.style===Graph3d.STYLE.DOTSIZE){var dotSize=this._dotSize();width=dotSize*this.dotSizeMaxFraction}else if(this.style===Graph3d.STYLE.BARSIZE){width=this.xBarWidth}else{width=20}return width};Graph3d.prototype._redrawLegend=function(){if(this.showLegend!==true){return}if(this.style===Graph3d.STYLE.LINE||this.style===Graph3d.STYLE.BARSIZE){return}var isSizeLegend=this.style===Graph3d.STYLE.BARSIZE||this.style===Graph3d.STYLE.DOTSIZE;var isValueLegend=this.style===Graph3d.STYLE.DOTSIZE||this.style===Graph3d.STYLE.DOTCOLOR||this.style===Graph3d.STYLE.BARCOLOR;var height=Math.max(this.frame.clientHeight*.25,100);var top=this.margin;var width=this._getLegendWidth();var right=this.frame.clientWidth-this.margin;var left=right-width;var bottom=top+height;var ctx=this._getContext();ctx.lineWidth=1;ctx.font=\"14px arial\";if(isSizeLegend===false){var ymin=0;var ymax=height;var y;for(y=ymin;y<ymax;y++){var f=(y-ymin)/(ymax-ymin);var hue=f*240;var color=this._hsv2rgb(hue,1,1);ctx.strokeStyle=color;ctx.beginPath();ctx.moveTo(left,top+y);ctx.lineTo(right,top+y);ctx.stroke()}ctx.strokeStyle=this.axisColor;ctx.strokeRect(left,top,width,height)}else{var widthMin;if(this.style===Graph3d.STYLE.DOTSIZE){widthMin=width*(this.dotSizeMinFraction/this.dotSizeMaxFraction)}else if(this.style===Graph3d.STYLE.BARSIZE){}ctx.strokeStyle=this.axisColor;ctx.fillStyle=this.dataColor.fill;ctx.beginPath();ctx.moveTo(left,top);ctx.lineTo(right,top);ctx.lineTo(left+widthMin,bottom);ctx.lineTo(left,bottom);ctx.closePath();ctx.fill();ctx.stroke()}var gridLineLen=5;var legendMin=isValueLegend?this.valueRange.min:this.zRange.min;var legendMax=isValueLegend?this.valueRange.max:this.zRange.max;var step=new StepNumber(legendMin,legendMax,(legendMax-legendMin)/5,true);step.start(true);var from;var to;while(!step.end()){y=bottom-(step.getCurrent()-legendMin)/(legendMax-legendMin)*height;from=new Point2d(left-gridLineLen,y);to=new Point2d(left,y);this._line(ctx,from,to);ctx.textAlign=\"right\";ctx.textBaseline=\"middle\";ctx.fillStyle=this.axisColor;ctx.fillText(step.getCurrent(),left-2*gridLineLen,y);step.next()}ctx.textAlign=\"right\";ctx.textBaseline=\"top\";var label=this.legendLabel;ctx.fillText(label,right,bottom+this.margin)};Graph3d.prototype._redrawFilter=function(){var dataFilter=this.dataGroup.dataFilter;var filter=this.frame.filter;filter.innerHTML=\"\";if(!dataFilter){filter.slider=undefined;return}var options={visible:this.showAnimationControls};var slider=new Slider(filter,options);filter.slider=slider;filter.style.padding=\"10px\";slider.setValues(dataFilter.values);slider.setPlayInterval(this.animationInterval);var me=this;var onchange=function onchange(){var dataFilter=me.dataGroup.dataFilter;var index=slider.getIndex();dataFilter.selectValue(index);me.dataPoints=dataFilter._getDataPoints();me.redraw()};slider.setOnChangeCallback(onchange)};Graph3d.prototype._redrawSlider=function(){if(this.frame.filter.slider!==undefined){this.frame.filter.slider.redraw()}};Graph3d.prototype._redrawInfo=function(){var info=this.dataGroup.getInfo();if(info===undefined)return;var ctx=this._getContext();ctx.font=\"14px arial\";ctx.lineStyle=\"gray\";ctx.fillStyle=\"gray\";ctx.textAlign=\"left\";ctx.textBaseline=\"top\";var x=this.margin;var y=this.margin;ctx.fillText(info,x,y)};Graph3d.prototype._line=function(ctx,from,to,strokeStyle){if(strokeStyle!==undefined){ctx.strokeStyle=strokeStyle}ctx.beginPath();ctx.moveTo(from.x,from.y);ctx.lineTo(to.x,to.y);ctx.stroke()};Graph3d.prototype.drawAxisLabelX=function(ctx,point3d,text,armAngle,yMargin){if(yMargin===undefined){yMargin=0}var point2d=this._convert3Dto2D(point3d);if(Math.cos(armAngle*2)>0){ctx.textAlign=\"center\";ctx.textBaseline=\"top\";point2d.y+=yMargin}else if(Math.sin(armAngle*2)<0){ctx.textAlign=\"right\";ctx.textBaseline=\"middle\"}else{ctx.textAlign=\"left\";ctx.textBaseline=\"middle\"}ctx.fillStyle=this.axisColor;ctx.fillText(text,point2d.x,point2d.y)};Graph3d.prototype.drawAxisLabelY=function(ctx,point3d,text,armAngle,yMargin){if(yMargin===undefined){yMargin=0}var point2d=this._convert3Dto2D(point3d);if(Math.cos(armAngle*2)<0){ctx.textAlign=\"center\";ctx.textBaseline=\"top\";point2d.y+=yMargin}else if(Math.sin(armAngle*2)>0){ctx.textAlign=\"right\";ctx.textBaseline=\"middle\"}else{ctx.textAlign=\"left\";ctx.textBaseline=\"middle\"}ctx.fillStyle=this.axisColor;ctx.fillText(text,point2d.x,point2d.y)};Graph3d.prototype.drawAxisLabelZ=function(ctx,point3d,text,offset){if(offset===undefined){offset=0}var point2d=this._convert3Dto2D(point3d);ctx.textAlign=\"right\";ctx.textBaseline=\"middle\";ctx.fillStyle=this.axisColor;ctx.fillText(text,point2d.x-offset,point2d.y)};Graph3d.prototype._line3d=function(ctx,from,to,strokeStyle){var from2d=this._convert3Dto2D(from);var to2d=this._convert3Dto2D(to);this._line(ctx,from2d,to2d,strokeStyle)};Graph3d.prototype._redrawAxis=function(){var ctx=this._getContext(),from,to,step,prettyStep,text,xText,yText,zText,offset,xOffset,yOffset;ctx.font=24/this.camera.getArmLength()+\"px arial\";var gridLenX=.025/this.scale.x;var gridLenY=.025/this.scale.y;var textMargin=5/this.camera.getArmLength();var armAngle=this.camera.getArmRotation().horizontal;var armVector=new Point2d(Math.cos(armAngle),Math.sin(armAngle));var xRange=this.xRange;var yRange=this.yRange;var zRange=this.zRange;var point3d;ctx.lineWidth=1;prettyStep=this.defaultXStep===undefined;step=new StepNumber(xRange.min,xRange.max,this.xStep,prettyStep);step.start(true);while(!step.end()){var x=step.getCurrent();if(this.showGrid){from=new Point3d(x,yRange.min,zRange.min);to=new Point3d(x,yRange.max,zRange.min);this._line3d(ctx,from,to,this.gridColor)}else if(this.showXAxis){from=new Point3d(x,yRange.min,zRange.min);to=new Point3d(x,yRange.min+gridLenX,zRange.min);this._line3d(ctx,from,to,this.axisColor);from=new Point3d(x,yRange.max,zRange.min);to=new Point3d(x,yRange.max-gridLenX,zRange.min);this._line3d(ctx,from,to,this.axisColor)}if(this.showXAxis){yText=armVector.x>0?yRange.min:yRange.max;point3d=new Point3d(x,yText,zRange.min);var msg=\" \"+this.xValueLabel(x)+\" \";this.drawAxisLabelX(ctx,point3d,msg,armAngle,textMargin)}step.next()}ctx.lineWidth=1;prettyStep=this.defaultYStep===undefined;step=new StepNumber(yRange.min,yRange.max,this.yStep,prettyStep);step.start(true);while(!step.end()){var y=step.getCurrent();if(this.showGrid){from=new Point3d(xRange.min,y,zRange.min);to=new Point3d(xRange.max,y,zRange.min);this._line3d(ctx,from,to,this.gridColor)}else if(this.showYAxis){from=new Point3d(xRange.min,y,zRange.min);to=new Point3d(xRange.min+gridLenY,y,zRange.min);this._line3d(ctx,from,to,this.axisColor);from=new Point3d(xRange.max,y,zRange.min);to=new Point3d(xRange.max-gridLenY,y,zRange.min);this._line3d(ctx,from,to,this.axisColor)}if(this.showYAxis){xText=armVector.y>0?xRange.min:xRange.max;point3d=new Point3d(xText,y,zRange.min);var _msg=\" \"+this.yValueLabel(y)+\" \";this.drawAxisLabelY(ctx,point3d,_msg,armAngle,textMargin)}step.next()}if(this.showZAxis){ctx.lineWidth=1;prettyStep=this.defaultZStep===undefined;step=new StepNumber(zRange.min,zRange.max,this.zStep,prettyStep);step.start(true);xText=armVector.x>0?xRange.min:xRange.max;yText=armVector.y<0?yRange.min:yRange.max;while(!step.end()){var z=step.getCurrent();var from3d=new Point3d(xText,yText,z);var from2d=this._convert3Dto2D(from3d);to=new Point2d(from2d.x-textMargin,from2d.y);this._line(ctx,from2d,to,this.axisColor);var _msg2=this.zValueLabel(z)+\" \";this.drawAxisLabelZ(ctx,from3d,_msg2,5);step.next()}ctx.lineWidth=1;from=new Point3d(xText,yText,zRange.min);to=new Point3d(xText,yText,zRange.max);this._line3d(ctx,from,to,this.axisColor)}if(this.showXAxis){var xMin2d;var xMax2d;ctx.lineWidth=1;xMin2d=new Point3d(xRange.min,yRange.min,zRange.min);xMax2d=new Point3d(xRange.max,yRange.min,zRange.min);this._line3d(ctx,xMin2d,xMax2d,this.axisColor);xMin2d=new Point3d(xRange.min,yRange.max,zRange.min);xMax2d=new Point3d(xRange.max,yRange.max,zRange.min);this._line3d(ctx,xMin2d,xMax2d,this.axisColor)}if(this.showYAxis){ctx.lineWidth=1;from=new Point3d(xRange.min,yRange.min,zRange.min);to=new Point3d(xRange.min,yRange.max,zRange.min);this._line3d(ctx,from,to,this.axisColor);from=new Point3d(xRange.max,yRange.min,zRange.min);to=new Point3d(xRange.max,yRange.max,zRange.min);this._line3d(ctx,from,to,this.axisColor)}var xLabel=this.xLabel;if(xLabel.length>0&&this.showXAxis){yOffset=.1/this.scale.y;xText=(xRange.max+3*xRange.min)/4;yText=armVector.x>0?yRange.min-yOffset:yRange.max+yOffset\n;text=new Point3d(xText,yText,zRange.min);this.drawAxisLabelX(ctx,text,xLabel,armAngle)}var yLabel=this.yLabel;if(yLabel.length>0&&this.showYAxis){xOffset=.1/this.scale.x;xText=armVector.y>0?xRange.min-xOffset:xRange.max+xOffset;yText=(yRange.max+3*yRange.min)/4;text=new Point3d(xText,yText,zRange.min);this.drawAxisLabelY(ctx,text,yLabel,armAngle)}var zLabel=this.zLabel;if(zLabel.length>0&&this.showZAxis){offset=30;xText=armVector.x>0?xRange.min:xRange.max;yText=armVector.y<0?yRange.min:yRange.max;zText=(zRange.max+3*zRange.min)/4;text=new Point3d(xText,yText,zText);this.drawAxisLabelZ(ctx,text,zLabel,offset)}};Graph3d.prototype._hsv2rgb=function(H,S,V){var R,G,B,C,Hi,X;C=V*S;Hi=Math.floor(H/60);X=C*(1-Math.abs(H/60%2-1));switch(Hi){case 0:R=C;G=X;B=0;break;case 1:R=X;G=C;B=0;break;case 2:R=0;G=C;B=X;break;case 3:R=0;G=X;B=C;break;case 4:R=X;G=0;B=C;break;case 5:R=C;G=0;B=X;break;default:R=0;G=0;B=0;break}return\"RGB(\"+parseInt(R*255)+\",\"+parseInt(G*255)+\",\"+parseInt(B*255)+\")\"};Graph3d.prototype._getStrokeWidth=function(point){if(point!==undefined){if(this.showPerspective){return 1/-point.trans.z*this.dataColor.strokeWidth}else{return-(this.eye.z/this.camera.getArmLength())*this.dataColor.strokeWidth}}return this.dataColor.strokeWidth};Graph3d.prototype._redrawBar=function(ctx,point,xWidth,yWidth,color,borderColor){var surface;var me=this;var point3d=point.point;var zMin=this.zRange.min;var top=[{point:new Point3d(point3d.x-xWidth,point3d.y-yWidth,point3d.z)},{point:new Point3d(point3d.x+xWidth,point3d.y-yWidth,point3d.z)},{point:new Point3d(point3d.x+xWidth,point3d.y+yWidth,point3d.z)},{point:new Point3d(point3d.x-xWidth,point3d.y+yWidth,point3d.z)}];var bottom=[{point:new Point3d(point3d.x-xWidth,point3d.y-yWidth,zMin)},{point:new Point3d(point3d.x+xWidth,point3d.y-yWidth,zMin)},{point:new Point3d(point3d.x+xWidth,point3d.y+yWidth,zMin)},{point:new Point3d(point3d.x-xWidth,point3d.y+yWidth,zMin)}];top.forEach(function(obj){obj.screen=me._convert3Dto2D(obj.point)});bottom.forEach(function(obj){obj.screen=me._convert3Dto2D(obj.point)});var surfaces=[{corners:top,center:Point3d.avg(bottom[0].point,bottom[2].point)},{corners:[top[0],top[1],bottom[1],bottom[0]],center:Point3d.avg(bottom[1].point,bottom[0].point)},{corners:[top[1],top[2],bottom[2],bottom[1]],center:Point3d.avg(bottom[2].point,bottom[1].point)},{corners:[top[2],top[3],bottom[3],bottom[2]],center:Point3d.avg(bottom[3].point,bottom[2].point)},{corners:[top[3],top[0],bottom[0],bottom[3]],center:Point3d.avg(bottom[0].point,bottom[3].point)}];point.surfaces=surfaces;for(var j=0;j<surfaces.length;j++){surface=surfaces[j];var transCenter=this._convertPointToTranslation(surface.center);surface.dist=this.showPerspective?transCenter.length():-transCenter.z}surfaces.sort(function(a,b){var diff=b.dist-a.dist;if(diff)return diff;if(a.corners===top)return 1;if(b.corners===top)return-1;return 0});ctx.lineWidth=this._getStrokeWidth(point);ctx.strokeStyle=borderColor;ctx.fillStyle=color;for(var _j=2;_j<surfaces.length;_j++){surface=surfaces[_j];this._polygon(ctx,surface.corners)}};Graph3d.prototype._polygon=function(ctx,points,fillStyle,strokeStyle){if(points.length<2){return}if(fillStyle!==undefined){ctx.fillStyle=fillStyle}if(strokeStyle!==undefined){ctx.strokeStyle=strokeStyle}ctx.beginPath();ctx.moveTo(points[0].screen.x,points[0].screen.y);for(var i=1;i<points.length;++i){var point=points[i];ctx.lineTo(point.screen.x,point.screen.y)}ctx.closePath();ctx.fill();ctx.stroke()};Graph3d.prototype._drawCircle=function(ctx,point,color,borderColor,size){var radius=this._calcRadius(point,size);ctx.lineWidth=this._getStrokeWidth(point);ctx.strokeStyle=borderColor;ctx.fillStyle=color;ctx.beginPath();ctx.arc(point.screen.x,point.screen.y,radius,0,Math.PI*2,true);ctx.fill();ctx.stroke()};Graph3d.prototype._getColorsRegular=function(point){var hue=(1-(point.point.z-this.zRange.min)*this.scale.z/this.verticalRatio)*240;var color=this._hsv2rgb(hue,1,1);var borderColor=this._hsv2rgb(hue,1,.8);return{fill:color,border:borderColor}};Graph3d.prototype._getColorsColor=function(point){var color,borderColor;if(typeof point.point.value===\"string\"){color=point.point.value;borderColor=point.point.value}else{var hue=(1-(point.point.value-this.valueRange.min)*this.scale.value)*240;color=this._hsv2rgb(hue,1,1);borderColor=this._hsv2rgb(hue,1,.8)}return{fill:color,border:borderColor}};Graph3d.prototype._getColorsSize=function(){return{fill:this.dataColor.fill,border:this.dataColor.stroke}};Graph3d.prototype._calcRadius=function(point,size){if(size===undefined){size=this._dotSize()}var radius;if(this.showPerspective){radius=size/-point.trans.z}else{radius=size*-(this.eye.z/this.camera.getArmLength())}if(radius<0){radius=0}return radius};Graph3d.prototype._redrawBarGraphPoint=function(ctx,point){var xWidth=this.xBarWidth/2;var yWidth=this.yBarWidth/2;var colors=this._getColorsRegular(point);this._redrawBar(ctx,point,xWidth,yWidth,colors.fill,colors.border)};Graph3d.prototype._redrawBarColorGraphPoint=function(ctx,point){var xWidth=this.xBarWidth/2;var yWidth=this.yBarWidth/2;var colors=this._getColorsColor(point);this._redrawBar(ctx,point,xWidth,yWidth,colors.fill,colors.border)};Graph3d.prototype._redrawBarSizeGraphPoint=function(ctx,point){var fraction=(point.point.value-this.valueRange.min)/this.valueRange.range();var xWidth=this.xBarWidth/2*(fraction*.8+.2);var yWidth=this.yBarWidth/2*(fraction*.8+.2);var colors=this._getColorsSize();this._redrawBar(ctx,point,xWidth,yWidth,colors.fill,colors.border)};Graph3d.prototype._redrawDotGraphPoint=function(ctx,point){var colors=this._getColorsRegular(point);this._drawCircle(ctx,point,colors.fill,colors.border)};Graph3d.prototype._redrawDotLineGraphPoint=function(ctx,point){var from=this._convert3Dto2D(point.bottom);ctx.lineWidth=1;this._line(ctx,from,point.screen,this.gridColor);this._redrawDotGraphPoint(ctx,point)};Graph3d.prototype._redrawDotColorGraphPoint=function(ctx,point){var colors=this._getColorsColor(point);this._drawCircle(ctx,point,colors.fill,colors.border)};Graph3d.prototype._redrawDotSizeGraphPoint=function(ctx,point){var dotSize=this._dotSize();var fraction=(point.point.value-this.valueRange.min)/this.valueRange.range();var sizeMin=dotSize*this.dotSizeMinFraction;var sizeRange=dotSize*this.dotSizeMaxFraction-sizeMin;var size=sizeMin+sizeRange*fraction;var colors=this._getColorsSize();this._drawCircle(ctx,point,colors.fill,colors.border,size)};Graph3d.prototype._redrawSurfaceGraphPoint=function(ctx,point){var right=point.pointRight;var top=point.pointTop;var cross=point.pointCross;if(point===undefined||right===undefined||top===undefined||cross===undefined){return}var topSideVisible=true;var fillStyle;var strokeStyle;if(this.showGrayBottom||this.showShadow){var aDiff=Point3d.subtract(cross.trans,point.trans);var bDiff=Point3d.subtract(top.trans,right.trans);var crossproduct=Point3d.crossProduct(aDiff,bDiff);var len=crossproduct.length();topSideVisible=crossproduct.z>0}if(topSideVisible){var zAvg=(point.point.z+right.point.z+top.point.z+cross.point.z)/4;var h=(1-(zAvg-this.zRange.min)*this.scale.z/this.verticalRatio)*240;var s=1;var v;if(this.showShadow){v=Math.min(1+crossproduct.x/len/2,1);fillStyle=this._hsv2rgb(h,s,v);strokeStyle=fillStyle}else{v=1;fillStyle=this._hsv2rgb(h,s,v);strokeStyle=this.axisColor}}else{fillStyle=\"gray\";strokeStyle=this.axisColor}ctx.lineWidth=this._getStrokeWidth(point);var points=[point,right,cross,top];this._polygon(ctx,points,fillStyle,strokeStyle)};Graph3d.prototype._drawGridLine=function(ctx,from,to){if(from===undefined||to===undefined){return}var zAvg=(from.point.z+to.point.z)/2;var h=(1-(zAvg-this.zRange.min)*this.scale.z/this.verticalRatio)*240;ctx.lineWidth=this._getStrokeWidth(from)*2;ctx.strokeStyle=this._hsv2rgb(h,1,1);this._line(ctx,from.screen,to.screen)};Graph3d.prototype._redrawGridGraphPoint=function(ctx,point){this._drawGridLine(ctx,point,point.pointRight);this._drawGridLine(ctx,point,point.pointTop)};Graph3d.prototype._redrawLineGraphPoint=function(ctx,point){if(point.pointNext===undefined){return}ctx.lineWidth=this._getStrokeWidth(point);ctx.strokeStyle=this.dataColor.stroke;this._line(ctx,point.screen,point.pointNext.screen)};Graph3d.prototype._redrawDataGraph=function(){var ctx=this._getContext();var i;if(this.dataPoints===undefined||this.dataPoints.length<=0)return;this._calcTranslations(this.dataPoints);for(i=0;i<this.dataPoints.length;i++){var point=this.dataPoints[i];this._pointDrawingMethod.call(this,ctx,point)}};Graph3d.prototype._storeMousePosition=function(event){this.startMouseX=getMouseX(event);this.startMouseY=getMouseY(event);this._startCameraOffset=this.camera.getOffset()};Graph3d.prototype._onMouseDown=function(event){event=event||window.event;if(this.leftButtonDown){this._onMouseUp(event)}this.leftButtonDown=event.which?event.which===1:event.button===1;if(!this.leftButtonDown&&!this.touchDown)return;this._storeMousePosition(event);this.startStart=new Date(this.start);this.startEnd=new Date(this.end);this.startArmRotation=this.camera.getArmRotation();this.frame.style.cursor=\"move\";var me=this;this.onmousemove=function(event){me._onMouseMove(event)};this.onmouseup=function(event){me._onMouseUp(event)};util.addEventListener(document,\"mousemove\",me.onmousemove);util.addEventListener(document,\"mouseup\",me.onmouseup);util.preventDefault(event)};Graph3d.prototype._onMouseMove=function(event){this.moving=true;event=event||window.event;var diffX=parseFloat(getMouseX(event))-this.startMouseX;var diffY=parseFloat(getMouseY(event))-this.startMouseY;if(event&&event.ctrlKey===true){var scaleX=this.frame.clientWidth*.5;var scaleY=this.frame.clientHeight*.5;var offXNew=(this._startCameraOffset.x||0)-diffX/scaleX*this.camera.armLength*.8;var offYNew=(this._startCameraOffset.y||0)+diffY/scaleY*this.camera.armLength*.8;this.camera.setOffset(offXNew,offYNew);this._storeMousePosition(event)}else{var horizontalNew=this.startArmRotation.horizontal+diffX/200;var verticalNew=this.startArmRotation.vertical+diffY/200;var snapAngle=4;var snapValue=Math.sin(snapAngle/360*2*Math.PI);if(Math.abs(Math.sin(horizontalNew))<snapValue){horizontalNew=Math.round(horizontalNew/Math.PI)*Math.PI-.001}if(Math.abs(Math.cos(horizontalNew))<snapValue){horizontalNew=(Math.round(horizontalNew/Math.PI-.5)+.5)*Math.PI-.001}if(Math.abs(Math.sin(verticalNew))<snapValue){verticalNew=Math.round(verticalNew/Math.PI)*Math.PI}if(Math.abs(Math.cos(verticalNew))<snapValue){verticalNew=(Math.round(verticalNew/Math.PI-.5)+.5)*Math.PI}this.camera.setArmRotation(horizontalNew,verticalNew)}this.redraw();var parameters=this.getCameraPosition();this.emit(\"cameraPositionChange\",parameters);util.preventDefault(event)};Graph3d.prototype._onMouseUp=function(event){this.frame.style.cursor=\"auto\";this.leftButtonDown=false;util.removeEventListener(document,\"mousemove\",this.onmousemove);util.removeEventListener(document,\"mouseup\",this.onmouseup);util.preventDefault(event)};Graph3d.prototype._onClick=function(event){if(!this.onclick_callback)return;if(!this.moving){var boundingRect=this.frame.getBoundingClientRect();var mouseX=getMouseX(event)-boundingRect.left;var mouseY=getMouseY(event)-boundingRect.top;var dataPoint=this._dataPointFromXY(mouseX,mouseY);if(dataPoint)this.onclick_callback(dataPoint.point.data)}else{this.moving=false}util.preventDefault(event)};Graph3d.prototype._onTooltip=function(event){var delay=300;var boundingRect=this.frame.getBoundingClientRect();var mouseX=getMouseX(event)-boundingRect.left;var mouseY=getMouseY(event)-boundingRect.top;if(!this.showTooltip){return}if(this.tooltipTimeout){clearTimeout(this.tooltipTimeout)}if(this.leftButtonDown){this._hideTooltip();return}if(this.tooltip&&this.tooltip.dataPoint){var dataPoint=this._dataPointFromXY(mouseX,mouseY);if(dataPoint!==this.tooltip.dataPoint){if(dataPoint){this._showTooltip(dataPoint)}else{this._hideTooltip()}}}else{var me=this;this.tooltipTimeout=setTimeout(function(){me.tooltipTimeout=null;var dataPoint=me._dataPointFromXY(mouseX,mouseY);if(dataPoint){me._showTooltip(dataPoint)}},delay)}};Graph3d.prototype._onTouchStart=function(event){this.touchDown=true;var me=this;this.ontouchmove=function(event){me._onTouchMove(event)};this.ontouchend=function(event){me._onTouchEnd(event)};util.addEventListener(document,\"touchmove\",me.ontouchmove);util.addEventListener(document,\"touchend\",me.ontouchend);this._onMouseDown(event)};Graph3d.prototype._onTouchMove=function(event){this._onMouseMove(event)};Graph3d.prototype._onTouchEnd=function(event){this.touchDown=false;util.removeEventListener(document,\"touchmove\",this.ontouchmove);util.removeEventListener(document,\"touchend\",this.ontouchend);this._onMouseUp(event)};Graph3d.prototype._onWheel=function(event){if(!event)event=window.event;var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120}else if(event.detail){delta=-event.detail/3}if(delta){var oldLength=this.camera.getArmLength();var newLength=oldLength*(1-delta/10);this.camera.setArmLength(newLength);this.redraw();this._hideTooltip()}var parameters=this.getCameraPosition();this.emit(\"cameraPositionChange\",parameters);util.preventDefault(event)};Graph3d.prototype._insideTriangle=function(point,triangle){var a=triangle[0],b=triangle[1],c=triangle[2];function sign(x){return x>0?1:x<0?-1:0}var as=sign((b.x-a.x)*(point.y-a.y)-(b.y-a.y)*(point.x-a.x));var bs=sign((c.x-b.x)*(point.y-b.y)-(c.y-b.y)*(point.x-b.x));var cs=sign((a.x-c.x)*(point.y-c.y)-(a.y-c.y)*(point.x-c.x));return(as==0||bs==0||as==bs)&&(bs==0||cs==0||bs==cs)&&(as==0||cs==0||as==cs)};Graph3d.prototype._dataPointFromXY=function(x,y){var i,distMax=100,dataPoint=null,closestDataPoint=null,closestDist=null,center=new Point2d(x,y);if(this.style===Graph3d.STYLE.BAR||this.style===Graph3d.STYLE.BARCOLOR||this.style===Graph3d.STYLE.BARSIZE){for(i=this.dataPoints.length-1;i>=0;i--){dataPoint=this.dataPoints[i];var surfaces=dataPoint.surfaces;if(surfaces){for(var s=surfaces.length-1;s>=0;s--){var surface=surfaces[s];var corners=surface.corners;var triangle1=[corners[0].screen,corners[1].screen,corners[2].screen];var triangle2=[corners[2].screen,corners[3].screen,corners[0].screen];if(this._insideTriangle(center,triangle1)||this._insideTriangle(center,triangle2)){return dataPoint}}}}}else{for(i=0;i<this.dataPoints.length;i++){dataPoint=this.dataPoints[i];var point=dataPoint.screen;if(point){var distX=Math.abs(x-point.x);var distY=Math.abs(y-point.y);var dist=Math.sqrt(distX*distX+distY*distY);if((closestDist===null||dist<closestDist)&&dist<distMax){closestDist=dist;closestDataPoint=dataPoint}}}}return closestDataPoint};Graph3d.prototype.hasBars=function(style){return style==Graph3d.STYLE.BAR||style==Graph3d.STYLE.BARCOLOR||style==Graph3d.STYLE.BARSIZE};Graph3d.prototype._showTooltip=function(dataPoint){var content,line,dot;if(!this.tooltip){content=document.createElement(\"div\");(0,_assign2[\"default\"])(content.style,{},this.tooltipStyle.content);content.style.position=\"absolute\";line=document.createElement(\"div\");(0,_assign2[\"default\"])(line.style,{},this.tooltipStyle.line);line.style.position=\"absolute\";dot=document.createElement(\"div\");(0,_assign2[\"default\"])(dot.style,{},this.tooltipStyle.dot);dot.style.position=\"absolute\";this.tooltip={dataPoint:null,dom:{content:content,line:line,dot:dot}}}else{content=this.tooltip.dom.content;line=this.tooltip.dom.line;dot=this.tooltip.dom.dot}this._hideTooltip();this.tooltip.dataPoint=dataPoint;if(typeof this.showTooltip===\"function\"){content.innerHTML=this.showTooltip(dataPoint.point)}else{content.innerHTML=\"<table>\"+\"<tr><td>\"+this.xLabel+\":</td><td>\"+dataPoint.point.x+\"</td></tr>\"+\"<tr><td>\"+this.yLabel+\":</td><td>\"+dataPoint.point.y+\"</td></tr>\"+\"<tr><td>\"+this.zLabel+\":</td><td>\"+dataPoint.point.z+\"</td></tr>\"+\"</table>\"}content.style.left=\"0\";content.style.top=\"0\";this.frame.appendChild(content);this.frame.appendChild(line);this.frame.appendChild(dot);var contentWidth=content.offsetWidth;var contentHeight=content.offsetHeight;var lineHeight=line.offsetHeight;var dotWidth=dot.offsetWidth;var dotHeight=dot.offsetHeight;var left=dataPoint.screen.x-contentWidth/2;left=Math.min(Math.max(left,10),this.frame.clientWidth-10-contentWidth);line.style.left=dataPoint.screen.x+\"px\";line.style.top=dataPoint.screen.y-lineHeight+\"px\";content.style.left=left+\"px\";content.style.top=dataPoint.screen.y-lineHeight-contentHeight+\"px\";dot.style.left=dataPoint.screen.x-dotWidth/2+\"px\";dot.style.top=dataPoint.screen.y-dotHeight/2+\"px\"};Graph3d.prototype._hideTooltip=function(){if(this.tooltip){this.tooltip.dataPoint=null;for(var prop in this.tooltip.dom){if(this.tooltip.dom.hasOwnProperty(prop)){var elem=this.tooltip.dom[prop];if(elem&&elem.parentNode){elem.parentNode.removeChild(elem)}}}}};function getMouseX(event){if(\"clientX\"in event)return event.clientX;return event.targetTouches[0]&&event.targetTouches[0].clientX||0}function getMouseY(event){if(\"clientY\"in event)return event.clientY;return event.targetTouches[0]&&event.targetTouches[0].clientY||0}Graph3d.prototype.setCameraPosition=function(pos){Settings.setCameraPosition(pos,this);this.redraw()};Graph3d.prototype.setSize=function(width,height){this._setSize(width,height);this.redraw()};module.exports=Graph3d},function(module,exports,__webpack_require__){__webpack_require__(163);module.exports=__webpack_require__(7).Object.assign},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S+$export.F,\"Object\",{assign:__webpack_require__(164)})},function(module,exports,__webpack_require__){\"use strict\";var getKeys=__webpack_require__(33);var gOPS=__webpack_require__(63);var pIE=__webpack_require__(42);var toObject=__webpack_require__(41);var IObject=__webpack_require__(78);var $assign=Object.assign;module.exports=!$assign||__webpack_require__(28)(function(){var A={};var B={};var S=Symbol();var K=\"abcdefghijklmnopqrst\";A[S]=7;K.split(\"\").forEach(function(k){B[k]=k});return $assign({},A)[S]!=7||Object.keys($assign({},B)).join(\"\")!=K})?function assign(target,source){var T=toObject(target);var aLen=arguments.length;var index=1;var getSymbols=gOPS.f;var isEnum=pIE.f;while(aLen>index){var S=IObject(arguments[index++]);var keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S);var length=keys.length;var j=0;var key;while(length>j)if(isEnum.call(S,key=keys[j++]))T[key]=S[key]}return T}:$assign},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(166),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(167);module.exports=__webpack_require__(7).Math.sign},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S,\"Math\",{sign:__webpack_require__(168)})},function(module,exports){module.exports=Math.sign||function sign(x){return(x=+x)==0||x!=x?x:x<0?-1:1}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(170),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(171);var $Object=__webpack_require__(7).Object;module.exports=function defineProperty(it,key,desc){return $Object.defineProperty(it,key,desc)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S+$export.F*!__webpack_require__(21),\"Object\",{defineProperty:__webpack_require__(20).f})},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var object=\"object\";var colorOptions={fill:{string:string},stroke:{string:string},strokeWidth:{number:number},__type__:{string:string,object:object,undefined:\"undefined\"}};var allOptions={animationAutoStart:{boolean:bool,undefined:\"undefined\"},animationInterval:{number:number},animationPreload:{boolean:bool},axisColor:{string:string},backgroundColor:colorOptions,xBarWidth:{number:number,undefined:\"undefined\"},yBarWidth:{number:number,undefined:\"undefined\"},cameraPosition:{distance:{number:number},horizontal:{number:number},vertical:{number:number},__type__:{object:object}},xCenter:{string:string},yCenter:{string:string},dataColor:colorOptions,dotSizeMinFraction:{number:number},dotSizeMaxFraction:{number:number},dotSizeRatio:{number:number},filterLabel:{string:string},gridColor:{string:string},onclick:{function:\"function\"},keepAspectRatio:{boolean:bool},xLabel:{string:string},yLabel:{string:string},zLabel:{string:string},legendLabel:{string:string},xMin:{number:number,undefined:\"undefined\"},yMin:{number:number,undefined:\"undefined\"},zMin:{number:number,undefined:\"undefined\"},xMax:{number:number,undefined:\"undefined\"},yMax:{number:number,undefined:\"undefined\"},zMax:{number:number,undefined:\"undefined\"},showAnimationControls:{boolean:bool,undefined:\"undefined\"},showGrid:{boolean:bool},showLegend:{boolean:bool,undefined:\"undefined\"},showPerspective:{boolean:bool},showShadow:{boolean:bool},showXAxis:{boolean:bool},showYAxis:{boolean:bool},showZAxis:{boolean:bool},xStep:{number:number,undefined:\"undefined\"},yStep:{number:number,undefined:\"undefined\"},zStep:{number:number,undefined:\"undefined\"},style:{number:number,string:[\"bar\",\"bar-color\",\"bar-size\",\"dot\",\"dot-line\",\"dot-color\",\"dot-size\",\"line\",\"grid\",\"surface\"]},tooltip:{boolean:bool,function:\"function\"},tooltipStyle:{content:{color:{string:string},background:{string:string},border:{string:string},borderRadius:{string:string},boxShadow:{string:string},padding:{string:string},__type__:{object:object}},line:{borderLeft:{string:string},height:{string:string},width:{string:string},__type__:{object:object}},dot:{border:{string:string},borderRadius:{string:string},height:{string:string},width:{string:string},__type__:{object:object}},__type__:{object:object}},xValueLabel:{function:\"function\"},yValueLabel:{function:\"function\"},zValueLabel:{function:\"function\"},valueMax:{number:number,undefined:\"undefined\"},valueMin:{number:number,undefined:\"undefined\"},verticalRatio:{number:number},height:{string:string},width:{string:string},__type__:{object:object}};exports.allOptions=allOptions},function(module,exports,__webpack_require__){\"use strict\";var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Range=__webpack_require__(174);var Filter=__webpack_require__(96);var Settings=__webpack_require__(94);var Point3d=__webpack_require__(34);function DataGroup(){this.dataTable=null}DataGroup.prototype.initializeData=function(graph3d,rawData,style){if(rawData===undefined)return;if(Array.isArray(rawData)){rawData=new DataSet(rawData)}var data;if(rawData instanceof DataSet||rawData instanceof DataView){data=rawData.get()}else{throw new Error(\"Array, DataSet, or DataView expected\")}if(data.length==0)return;this.style=style;if(this.dataSet){this.dataSet.off(\"*\",this._onChange)}this.dataSet=rawData;this.dataTable=data;var me=this;this._onChange=function(){graph3d.setData(me.dataSet)};this.dataSet.on(\"*\",this._onChange);this.colX=\"x\";this.colY=\"y\";this.colZ=\"z\";var withBars=graph3d.hasBars(style);if(withBars){if(graph3d.defaultXBarWidth!==undefined){this.xBarWidth=graph3d.defaultXBarWidth}else{this.xBarWidth=this.getSmallestDifference(data,this.colX)||1}if(graph3d.defaultYBarWidth!==undefined){this.yBarWidth=graph3d.defaultYBarWidth}else{this.yBarWidth=this.getSmallestDifference(data,this.colY)||1}}this._initializeRange(data,this.colX,graph3d,withBars);this._initializeRange(data,this.colY,graph3d,withBars);this._initializeRange(data,this.colZ,graph3d,false);if(data[0].hasOwnProperty(\"style\")){this.colValue=\"style\";var valueRange=this.getColumnRange(data,this.colValue);this._setRangeDefaults(valueRange,graph3d.defaultValueMin,graph3d.defaultValueMax);this.valueRange=valueRange}var table=this.getDataTable();if(table[0].hasOwnProperty(\"filter\")){if(this.dataFilter===undefined){this.dataFilter=new Filter(this,\"filter\",graph3d);this.dataFilter.setOnLoadCallback(function(){graph3d.redraw()})}}var dataPoints;if(this.dataFilter){dataPoints=this.dataFilter._getDataPoints()}else{dataPoints=this._getDataPoints(this.getDataTable())}return dataPoints};DataGroup.prototype._collectRangeSettings=function(column,graph3d){var index=[\"x\",\"y\",\"z\"].indexOf(column);if(index==-1){throw new Error(\"Column '\"+column+\"' invalid\")}var upper=column.toUpperCase();return{barWidth:this[column+\"BarWidth\"],min:graph3d[\"default\"+upper+\"Min\"],max:graph3d[\"default\"+upper+\"Max\"],step:graph3d[\"default\"+upper+\"Step\"],range_label:column+\"Range\",step_label:column+\"Step\"}};DataGroup.prototype._initializeRange=function(data,column,graph3d,withBars){var NUMSTEPS=5;var settings=this._collectRangeSettings(column,graph3d);var range=this.getColumnRange(data,column);if(withBars&&column!=\"z\"){range.expand(settings.barWidth/2)}this._setRangeDefaults(range,settings.min,settings.max);this[settings.range_label]=range;this[settings.step_label]=settings.step!==undefined?settings.step:range.range()/NUMSTEPS};DataGroup.prototype.getDistinctValues=function(column,data){if(data===undefined){data=this.dataTable}var values=[];for(var i=0;i<data.length;i++){var value=data[i][column]||0;if(values.indexOf(value)===-1){values.push(value)}}return values.sort(function(a,b){return a-b})};DataGroup.prototype.getSmallestDifference=function(data,column){var values=this.getDistinctValues(data,column);var smallest_diff=null;for(var i=1;i<values.length;i++){var diff=values[i]-values[i-1];if(smallest_diff==null||smallest_diff>diff){smallest_diff=diff}}return smallest_diff};DataGroup.prototype.getColumnRange=function(data,column){var range=new Range;for(var i=0;i<data.length;i++){var item=data[i][column];range.adjust(item)}return range};DataGroup.prototype.getNumberOfRows=function(){return this.dataTable.length};DataGroup.prototype._setRangeDefaults=function(range,defaultMin,defaultMax){if(defaultMin!==undefined){range.min=defaultMin}if(defaultMax!==undefined){range.max=defaultMax}if(range.max<=range.min)range.max=range.min+1};DataGroup.prototype.getDataTable=function(){return this.dataTable};DataGroup.prototype.getDataSet=function(){return this.dataSet};DataGroup.prototype.getDataPoints=function(data){var dataPoints=[];for(var i=0;i<data.length;i++){var point=new Point3d;point.x=data[i][this.colX]||0;point.y=data[i][this.colY]||0;point.z=data[i][this.colZ]||0;point.data=data[i];if(this.colValue!==undefined){point.value=data[i][this.colValue]||0}var obj={};obj.point=point;obj.bottom=new Point3d(point.x,point.y,this.zRange.min);obj.trans=undefined;obj.screen=undefined;dataPoints.push(obj)}return dataPoints};DataGroup.prototype.initDataAsMatrix=function(data){var x,y,i,obj;var dataX=this.getDistinctValues(this.colX,data);var dataY=this.getDistinctValues(this.colY,data);var dataPoints=this.getDataPoints(data);var dataMatrix=[];for(i=0;i<dataPoints.length;i++){obj=dataPoints[i];var xIndex=dataX.indexOf(obj.point.x);var yIndex=dataY.indexOf(obj.point.y);if(dataMatrix[xIndex]===undefined){dataMatrix[xIndex]=[]}dataMatrix[xIndex][yIndex]=obj}for(x=0;x<dataMatrix.length;x++){for(y=0;y<dataMatrix[x].length;y++){if(dataMatrix[x][y]){dataMatrix[x][y].pointRight=x<dataMatrix.length-1?dataMatrix[x+1][y]:undefined;dataMatrix[x][y].pointTop=y<dataMatrix[x].length-1?dataMatrix[x][y+1]:undefined;dataMatrix[x][y].pointCross=x<dataMatrix.length-1&&y<dataMatrix[x].length-1?dataMatrix[x+1][y+1]:undefined}}}return dataPoints};DataGroup.prototype.getInfo=function(){var dataFilter=this.dataFilter;if(!dataFilter)return undefined;return dataFilter.getLabel()+\": \"+dataFilter.getSelectedValue()};DataGroup.prototype.reload=function(){if(this.dataTable){this.setData(this.dataTable)}};DataGroup.prototype._getDataPoints=function(data){var dataPoints=[];if(this.style===Settings.STYLE.GRID||this.style===Settings.STYLE.SURFACE){dataPoints=this.initDataAsMatrix(data)}else{this._checkValueField(data);dataPoints=this.getDataPoints(data);if(this.style===Settings.STYLE.LINE){for(var i=0;i<dataPoints.length;i++){if(i>0){dataPoints[i-1].pointNext=dataPoints[i]}}}}return dataPoints};DataGroup.prototype._checkValueField=function(data){var hasValueField=this.style===Settings.STYLE.BARCOLOR||this.style===Settings.STYLE.BARSIZE||this.style===Settings.STYLE.DOTCOLOR||this.style===Settings.STYLE.DOTSIZE;if(!hasValueField){return}if(this.colValue===undefined){throw new Error(\"Expected data to have \"+\" field 'style' \"+\" for graph style '\"+this.style+\"'\")}if(data[0][this.colValue]===undefined){throw new Error(\"Expected data to have \"+\" field '\"+this.colValue+\"' \"+\" for graph style '\"+this.style+\"'\")}};module.exports=DataGroup},function(module,exports,__webpack_require__){\"use strict\";function Range(){this.min=undefined;this.max=undefined}Range.prototype.adjust=function(value){if(value===undefined)return;if(this.min===undefined||this.min>value){this.min=value}if(this.max===undefined||this.max<value){this.max=value}};Range.prototype.combine=function(range){this.add(range.min);this.add(range.max)};Range.prototype.expand=function(val){if(val===undefined){return}var newMin=this.min-val;var newMax=this.max+val;if(newMin>newMax){throw new Error(\"Passed expansion value makes range invalid\")}this.min=newMin;this.max=newMax};Range.prototype.range=function(){return this.max-this.min};Range.prototype.center=function(){return(this.min+this.max)/2};module.exports=Range},function(module,exports,__webpack_require__){\"use strict\";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__===\"function\"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else if(typeof exports===\"object\"){module.exports=factory()}else{window.propagating=factory()}})(function(){var _firstTarget=null;return function propagating(hammer,options){var _options=options||{preventDefault:false};if(hammer.Manager){var Hammer=hammer;var PropagatingHammer=function(element,options){var o=Object.create(_options);if(options)Hammer.assign(o,options);return propagating(new Hammer(element,o),o)};Hammer.assign(PropagatingHammer,Hammer);PropagatingHammer.Manager=function(element,options){var o=Object.create(_options);if(options)Hammer.assign(o,options);return propagating(new Hammer.Manager(element,o),o)};return PropagatingHammer}var wrapper=Object.create(hammer);var element=hammer.element;if(!element.hammer)element.hammer=[];element.hammer.push(wrapper);hammer.on(\"hammer.input\",function(event){if(_options.preventDefault===true||_options.preventDefault===event.pointerType){event.preventDefault()}if(event.isFirst){_firstTarget=event.target}});wrapper._handlers={};wrapper.on=function(events,handler){split(events).forEach(function(event){var _handlers=wrapper._handlers[event];if(!_handlers){wrapper._handlers[event]=_handlers=[];hammer.on(event,propagatedHandler)}_handlers.push(handler)});return wrapper};wrapper.off=function(events,handler){split(events).forEach(function(event){var _handlers=wrapper._handlers[event];if(_handlers){_handlers=handler?_handlers.filter(function(h){return h!==handler}):[];if(_handlers.length>0){wrapper._handlers[event]=_handlers}else{hammer.off(event,propagatedHandler);delete wrapper._handlers[event]}}});return wrapper};wrapper.emit=function(eventType,event){_firstTarget=event.target;hammer.emit(eventType,event)};wrapper.destroy=function(){var hammers=hammer.element.hammer;var idx=hammers.indexOf(wrapper);if(idx!==-1)hammers.splice(idx,1);if(!hammers.length)delete hammer.element.hammer;wrapper._handlers={};hammer.destroy()};function split(events){return events.match(/[^ ]+/g)}function propagatedHandler(event){if(event.type!==\"hammer.input\"){if(!event.srcEvent._handled){event.srcEvent._handled={}}if(event.srcEvent._handled[event.type]){return}else{event.srcEvent._handled[event.type]=true}}var stopped=false\n;event.stopPropagation=function(){stopped=true};var srcStop=event.srcEvent.stopPropagation.bind(event.srcEvent);if(typeof srcStop==\"function\"){event.srcEvent.stopPropagation=function(){srcStop();event.stopPropagation()}}event.firstTarget=_firstTarget;var elem=_firstTarget;while(elem&&!stopped){var elemHammer=elem.hammer;if(elemHammer){var _handlers;for(var k=0;k<elemHammer.length;k++){_handlers=elemHammer[k]._handlers[event.type];if(_handlers)for(var i=0;i<_handlers.length&&!stopped;i++){_handlers[i](event)}}}elem=elem.parentNode}}return wrapper}})},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(window,document,exportName,undefined){\"use strict\";var VENDOR_PREFIXES=[\"\",\"webkit\",\"Moz\",\"MS\",\"ms\",\"o\"];var TEST_ELEMENT=document.createElement(\"div\");var TYPE_FUNCTION=\"function\";var round=Math.round;var abs=Math.abs;var now=Date.now;function setTimeoutContext(fn,timeout,context){return setTimeout(bindFn(fn,context),timeout)}function invokeArrayArg(arg,fn,context){if(Array.isArray(arg)){each(arg,context[fn],context);return true}return false}function each(obj,iterator,context){var i;if(!obj){return}if(obj.forEach){obj.forEach(iterator,context)}else if(obj.length!==undefined){i=0;while(i<obj.length){iterator.call(context,obj[i],i,obj);i++}}else{for(i in obj){obj.hasOwnProperty(i)&&iterator.call(context,obj[i],i,obj)}}}function deprecate(method,name,message){var deprecationMessage=\"DEPRECATED METHOD: \"+name+\"\\n\"+message+\" AT \\n\";return function(){var e=new Error(\"get-stack-trace\");var stack=e&&e.stack?e.stack.replace(/^[^\\(]+?[\\n$]/gm,\"\").replace(/^\\s+at\\s+/gm,\"\").replace(/^Object.<anonymous>\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\";var log=window.console&&(window.console.warn||window.console.log);if(log){log.call(window.console,deprecationMessage,stack)}return method.apply(this,arguments)}}var assign;if(typeof Object.assign!==\"function\"){assign=function assign(target){if(target===undefined||target===null){throw new TypeError(\"Cannot convert undefined or null to object\")}var output=Object(target);for(var index=1;index<arguments.length;index++){var source=arguments[index];if(source!==undefined&&source!==null){for(var nextKey in source){if(source.hasOwnProperty(nextKey)){output[nextKey]=source[nextKey]}}}}return output}}else{assign=Object.assign}var extend=deprecate(function extend(dest,src,merge){var keys=Object.keys(src);var i=0;while(i<keys.length){if(!merge||merge&&dest[keys[i]]===undefined){dest[keys[i]]=src[keys[i]]}i++}return dest},\"extend\",\"Use `assign`.\");var merge=deprecate(function merge(dest,src){return extend(dest,src,true)},\"merge\",\"Use `assign`.\");function inherit(child,base,properties){var baseP=base.prototype,childP;childP=child.prototype=Object.create(baseP);childP.constructor=child;childP._super=baseP;if(properties){assign(childP,properties)}}function bindFn(fn,context){return function boundFn(){return fn.apply(context,arguments)}}function boolOrFn(val,args){if(typeof val==TYPE_FUNCTION){return val.apply(args?args[0]||undefined:undefined,args)}return val}function ifUndefined(val1,val2){return val1===undefined?val2:val1}function addEventListeners(target,types,handler){each(splitStr(types),function(type){target.addEventListener(type,handler,false)})}function removeEventListeners(target,types,handler){each(splitStr(types),function(type){target.removeEventListener(type,handler,false)})}function hasParent(node,parent){while(node){if(node==parent){return true}node=node.parentNode}return false}function inStr(str,find){return str.indexOf(find)>-1}function splitStr(str){return str.trim().split(/\\s+/g)}function inArray(src,find,findByKey){if(src.indexOf&&!findByKey){return src.indexOf(find)}else{var i=0;while(i<src.length){if(findByKey&&src[i][findByKey]==find||!findByKey&&src[i]===find){return i}i++}return-1}}function toArray(obj){return Array.prototype.slice.call(obj,0)}function uniqueArray(src,key,sort){var results=[];var values=[];var i=0;while(i<src.length){var val=key?src[i][key]:src[i];if(inArray(values,val)<0){results.push(src[i])}values[i]=val;i++}if(sort){if(!key){results=results.sort()}else{results=results.sort(function sortUniqueArray(a,b){return a[key]>b[key]})}}return results}function prefixed(obj,property){var prefix,prop;var camelProp=property[0].toUpperCase()+property.slice(1);var i=0;while(i<VENDOR_PREFIXES.length){prefix=VENDOR_PREFIXES[i];prop=prefix?prefix+camelProp:property;if(prop in obj){return prop}i++}return undefined}var _uniqueId=1;function uniqueId(){return _uniqueId++}function getWindowForElement(element){var doc=element.ownerDocument||element;return doc.defaultView||doc.parentWindow||window}var MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android/i;var SUPPORT_TOUCH=\"ontouchstart\"in window;var SUPPORT_POINTER_EVENTS=prefixed(window,\"PointerEvent\")!==undefined;var SUPPORT_ONLY_TOUCH=SUPPORT_TOUCH&&MOBILE_REGEX.test(navigator.userAgent);var INPUT_TYPE_TOUCH=\"touch\";var INPUT_TYPE_PEN=\"pen\";var INPUT_TYPE_MOUSE=\"mouse\";var INPUT_TYPE_KINECT=\"kinect\";var COMPUTE_INTERVAL=25;var INPUT_START=1;var INPUT_MOVE=2;var INPUT_END=4;var INPUT_CANCEL=8;var DIRECTION_NONE=1;var DIRECTION_LEFT=2;var DIRECTION_RIGHT=4;var DIRECTION_UP=8;var DIRECTION_DOWN=16;var DIRECTION_HORIZONTAL=DIRECTION_LEFT|DIRECTION_RIGHT;var DIRECTION_VERTICAL=DIRECTION_UP|DIRECTION_DOWN;var DIRECTION_ALL=DIRECTION_HORIZONTAL|DIRECTION_VERTICAL;var PROPS_XY=[\"x\",\"y\"];var PROPS_CLIENT_XY=[\"clientX\",\"clientY\"];function Input(manager,callback){var self=this;this.manager=manager;this.callback=callback;this.element=manager.element;this.target=manager.options.inputTarget;this.domHandler=function(ev){if(boolOrFn(manager.options.enable,[manager])){self.handler(ev)}};this.init()}Input.prototype={handler:function(){},init:function(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler);this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler);this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler);this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler);this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};function createInputInstance(manager){var Type;var inputClass=manager.options.inputClass;if(inputClass){Type=inputClass}else if(SUPPORT_POINTER_EVENTS){Type=PointerEventInput}else if(SUPPORT_ONLY_TOUCH){Type=TouchInput}else if(!SUPPORT_TOUCH){Type=MouseInput}else{Type=TouchMouseInput}return new Type(manager,inputHandler)}function inputHandler(manager,eventType,input){var pointersLen=input.pointers.length;var changedPointersLen=input.changedPointers.length;var isFirst=eventType&INPUT_START&&pointersLen-changedPointersLen===0;var isFinal=eventType&(INPUT_END|INPUT_CANCEL)&&pointersLen-changedPointersLen===0;input.isFirst=!!isFirst;input.isFinal=!!isFinal;if(isFirst){manager.session={}}input.eventType=eventType;computeInputData(manager,input);manager.emit(\"hammer.input\",input);manager.recognize(input);manager.session.prevInput=input}function computeInputData(manager,input){var session=manager.session;var pointers=input.pointers;var pointersLength=pointers.length;if(!session.firstInput){session.firstInput=simpleCloneInputData(input)}if(pointersLength>1&&!session.firstMultiple){session.firstMultiple=simpleCloneInputData(input)}else if(pointersLength===1){session.firstMultiple=false}var firstInput=session.firstInput;var firstMultiple=session.firstMultiple;var offsetCenter=firstMultiple?firstMultiple.center:firstInput.center;var center=input.center=getCenter(pointers);input.timeStamp=now();input.deltaTime=input.timeStamp-firstInput.timeStamp;input.angle=getAngle(offsetCenter,center);input.distance=getDistance(offsetCenter,center);computeDeltaXY(session,input);input.offsetDirection=getDirection(input.deltaX,input.deltaY);var overallVelocity=getVelocity(input.deltaTime,input.deltaX,input.deltaY);input.overallVelocityX=overallVelocity.x;input.overallVelocityY=overallVelocity.y;input.overallVelocity=abs(overallVelocity.x)>abs(overallVelocity.y)?overallVelocity.x:overallVelocity.y;input.scale=firstMultiple?getScale(firstMultiple.pointers,pointers):1;input.rotation=firstMultiple?getRotation(firstMultiple.pointers,pointers):0;input.maxPointers=!session.prevInput?input.pointers.length:input.pointers.length>session.prevInput.maxPointers?input.pointers.length:session.prevInput.maxPointers;computeIntervalInputData(session,input);var target=manager.element;if(hasParent(input.srcEvent.target,target)){target=input.srcEvent.target}input.target=target}function computeDeltaXY(session,input){var center=input.center;var offset=session.offsetDelta||{};var prevDelta=session.prevDelta||{};var prevInput=session.prevInput||{};if(input.eventType===INPUT_START||prevInput.eventType===INPUT_END){prevDelta=session.prevDelta={x:prevInput.deltaX||0,y:prevInput.deltaY||0};offset=session.offsetDelta={x:center.x,y:center.y}}input.deltaX=prevDelta.x+(center.x-offset.x);input.deltaY=prevDelta.y+(center.y-offset.y)}function computeIntervalInputData(session,input){var last=session.lastInterval||input,deltaTime=input.timeStamp-last.timeStamp,velocity,velocityX,velocityY,direction;if(input.eventType!=INPUT_CANCEL&&(deltaTime>COMPUTE_INTERVAL||last.velocity===undefined)){var deltaX=input.deltaX-last.deltaX;var deltaY=input.deltaY-last.deltaY;var v=getVelocity(deltaTime,deltaX,deltaY);velocityX=v.x;velocityY=v.y;velocity=abs(v.x)>abs(v.y)?v.x:v.y;direction=getDirection(deltaX,deltaY);session.lastInterval=input}else{velocity=last.velocity;velocityX=last.velocityX;velocityY=last.velocityY;direction=last.direction}input.velocity=velocity;input.velocityX=velocityX;input.velocityY=velocityY;input.direction=direction}function simpleCloneInputData(input){var pointers=[];var i=0;while(i<input.pointers.length){pointers[i]={clientX:round(input.pointers[i].clientX),clientY:round(input.pointers[i].clientY)};i++}return{timeStamp:now(),pointers:pointers,center:getCenter(pointers),deltaX:input.deltaX,deltaY:input.deltaY}}function getCenter(pointers){var pointersLength=pointers.length;if(pointersLength===1){return{x:round(pointers[0].clientX),y:round(pointers[0].clientY)}}var x=0,y=0,i=0;while(i<pointersLength){x+=pointers[i].clientX;y+=pointers[i].clientY;i++}return{x:round(x/pointersLength),y:round(y/pointersLength)}}function getVelocity(deltaTime,x,y){return{x:x/deltaTime||0,y:y/deltaTime||0}}function getDirection(x,y){if(x===y){return DIRECTION_NONE}if(abs(x)>=abs(y)){return x<0?DIRECTION_LEFT:DIRECTION_RIGHT}return y<0?DIRECTION_UP:DIRECTION_DOWN}function getDistance(p1,p2,props){if(!props){props=PROPS_XY}var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return Math.sqrt(x*x+y*y)}function getAngle(p1,p2,props){if(!props){props=PROPS_XY}var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return Math.atan2(y,x)*180/Math.PI}function getRotation(start,end){return getAngle(end[1],end[0],PROPS_CLIENT_XY)+getAngle(start[1],start[0],PROPS_CLIENT_XY)}function getScale(start,end){return getDistance(end[0],end[1],PROPS_CLIENT_XY)/getDistance(start[0],start[1],PROPS_CLIENT_XY)}var MOUSE_INPUT_MAP={mousedown:INPUT_START,mousemove:INPUT_MOVE,mouseup:INPUT_END};var MOUSE_ELEMENT_EVENTS=\"mousedown\";var MOUSE_WINDOW_EVENTS=\"mousemove mouseup\";function MouseInput(){this.evEl=MOUSE_ELEMENT_EVENTS;this.evWin=MOUSE_WINDOW_EVENTS;this.pressed=false;Input.apply(this,arguments)}inherit(MouseInput,Input,{handler:function MEhandler(ev){var eventType=MOUSE_INPUT_MAP[ev.type];if(eventType&INPUT_START&&ev.button===0){this.pressed=true}if(eventType&INPUT_MOVE&&ev.which!==1){eventType=INPUT_END}if(!this.pressed){return}if(eventType&INPUT_END){this.pressed=false}this.callback(this.manager,eventType,{pointers:[ev],changedPointers:[ev],pointerType:INPUT_TYPE_MOUSE,srcEvent:ev})}});var POINTER_INPUT_MAP={pointerdown:INPUT_START,pointermove:INPUT_MOVE,pointerup:INPUT_END,pointercancel:INPUT_CANCEL,pointerout:INPUT_CANCEL};var IE10_POINTER_TYPE_ENUM={2:INPUT_TYPE_TOUCH,3:INPUT_TYPE_PEN,4:INPUT_TYPE_MOUSE,5:INPUT_TYPE_KINECT};var POINTER_ELEMENT_EVENTS=\"pointerdown\";var POINTER_WINDOW_EVENTS=\"pointermove pointerup pointercancel\";if(window.MSPointerEvent&&!window.PointerEvent){POINTER_ELEMENT_EVENTS=\"MSPointerDown\";POINTER_WINDOW_EVENTS=\"MSPointerMove MSPointerUp MSPointerCancel\"}function PointerEventInput(){this.evEl=POINTER_ELEMENT_EVENTS;this.evWin=POINTER_WINDOW_EVENTS;Input.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}inherit(PointerEventInput,Input,{handler:function PEhandler(ev){var store=this.store;var removePointer=false;var eventTypeNormalized=ev.type.toLowerCase().replace(\"ms\",\"\");var eventType=POINTER_INPUT_MAP[eventTypeNormalized];var pointerType=IE10_POINTER_TYPE_ENUM[ev.pointerType]||ev.pointerType;var isTouch=pointerType==INPUT_TYPE_TOUCH;var storeIndex=inArray(store,ev.pointerId,\"pointerId\");if(eventType&INPUT_START&&(ev.button===0||isTouch)){if(storeIndex<0){store.push(ev);storeIndex=store.length-1}}else if(eventType&(INPUT_END|INPUT_CANCEL)){removePointer=true}if(storeIndex<0){return}store[storeIndex]=ev;this.callback(this.manager,eventType,{pointers:store,changedPointers:[ev],pointerType:pointerType,srcEvent:ev});if(removePointer){store.splice(storeIndex,1)}}});var SINGLE_TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:INPUT_MOVE,touchend:INPUT_END,touchcancel:INPUT_CANCEL};var SINGLE_TOUCH_TARGET_EVENTS=\"touchstart\";var SINGLE_TOUCH_WINDOW_EVENTS=\"touchstart touchmove touchend touchcancel\";function SingleTouchInput(){this.evTarget=SINGLE_TOUCH_TARGET_EVENTS;this.evWin=SINGLE_TOUCH_WINDOW_EVENTS;this.started=false;Input.apply(this,arguments)}inherit(SingleTouchInput,Input,{handler:function TEhandler(ev){var type=SINGLE_TOUCH_INPUT_MAP[ev.type];if(type===INPUT_START){this.started=true}if(!this.started){return}var touches=normalizeSingleTouches.call(this,ev,type);if(type&(INPUT_END|INPUT_CANCEL)&&touches[0].length-touches[1].length===0){this.started=false}this.callback(this.manager,type,{pointers:touches[0],changedPointers:touches[1],pointerType:INPUT_TYPE_TOUCH,srcEvent:ev})}});function normalizeSingleTouches(ev,type){var all=toArray(ev.touches);var changed=toArray(ev.changedTouches);if(type&(INPUT_END|INPUT_CANCEL)){all=uniqueArray(all.concat(changed),\"identifier\",true)}return[all,changed]}var TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:INPUT_MOVE,touchend:INPUT_END,touchcancel:INPUT_CANCEL};var TOUCH_TARGET_EVENTS=\"touchstart touchmove touchend touchcancel\";function TouchInput(){this.evTarget=TOUCH_TARGET_EVENTS;this.targetIds={};Input.apply(this,arguments)}inherit(TouchInput,Input,{handler:function MTEhandler(ev){var type=TOUCH_INPUT_MAP[ev.type];var touches=getTouches.call(this,ev,type);if(!touches){return}this.callback(this.manager,type,{pointers:touches[0],changedPointers:touches[1],pointerType:INPUT_TYPE_TOUCH,srcEvent:ev})}});function getTouches(ev,type){var allTouches=toArray(ev.touches);var targetIds=this.targetIds;if(type&(INPUT_START|INPUT_MOVE)&&allTouches.length===1){targetIds[allTouches[0].identifier]=true;return[allTouches,allTouches]}var i,targetTouches,changedTouches=toArray(ev.changedTouches),changedTargetTouches=[],target=this.target;targetTouches=allTouches.filter(function(touch){return hasParent(touch.target,target)});if(type===INPUT_START){i=0;while(i<targetTouches.length){targetIds[targetTouches[i].identifier]=true;i++}}i=0;while(i<changedTouches.length){if(targetIds[changedTouches[i].identifier]){changedTargetTouches.push(changedTouches[i])}if(type&(INPUT_END|INPUT_CANCEL)){delete targetIds[changedTouches[i].identifier]}i++}if(!changedTargetTouches.length){return}return[uniqueArray(targetTouches.concat(changedTargetTouches),\"identifier\",true),changedTargetTouches]}var DEDUP_TIMEOUT=2500;var DEDUP_DISTANCE=25;function TouchMouseInput(){Input.apply(this,arguments);var handler=bindFn(this.handler,this);this.touch=new TouchInput(this.manager,handler);this.mouse=new MouseInput(this.manager,handler);this.primaryTouch=null;this.lastTouches=[]}inherit(TouchMouseInput,Input,{handler:function TMEhandler(manager,inputEvent,inputData){var isTouch=inputData.pointerType==INPUT_TYPE_TOUCH,isMouse=inputData.pointerType==INPUT_TYPE_MOUSE;if(isMouse&&inputData.sourceCapabilities&&inputData.sourceCapabilities.firesTouchEvents){return}if(isTouch){recordTouches.call(this,inputEvent,inputData)}else if(isMouse&&isSyntheticEvent.call(this,inputData)){return}this.callback(manager,inputEvent,inputData)},destroy:function destroy(){this.touch.destroy();this.mouse.destroy()}});function recordTouches(eventType,eventData){if(eventType&INPUT_START){this.primaryTouch=eventData.changedPointers[0].identifier;setLastTouch.call(this,eventData)}else if(eventType&(INPUT_END|INPUT_CANCEL)){setLastTouch.call(this,eventData)}}function setLastTouch(eventData){var touch=eventData.changedPointers[0];if(touch.identifier===this.primaryTouch){var lastTouch={x:touch.clientX,y:touch.clientY};this.lastTouches.push(lastTouch);var lts=this.lastTouches;var removeLastTouch=function(){var i=lts.indexOf(lastTouch);if(i>-1){lts.splice(i,1)}};setTimeout(removeLastTouch,DEDUP_TIMEOUT)}}function isSyntheticEvent(eventData){var x=eventData.srcEvent.clientX,y=eventData.srcEvent.clientY;for(var i=0;i<this.lastTouches.length;i++){var t=this.lastTouches[i];var dx=Math.abs(x-t.x),dy=Math.abs(y-t.y);if(dx<=DEDUP_DISTANCE&&dy<=DEDUP_DISTANCE){return true}}return false}var PREFIXED_TOUCH_ACTION=prefixed(TEST_ELEMENT.style,\"touchAction\");var NATIVE_TOUCH_ACTION=PREFIXED_TOUCH_ACTION!==undefined;var TOUCH_ACTION_COMPUTE=\"compute\";var TOUCH_ACTION_AUTO=\"auto\";var TOUCH_ACTION_MANIPULATION=\"manipulation\";var TOUCH_ACTION_NONE=\"none\";var TOUCH_ACTION_PAN_X=\"pan-x\";var TOUCH_ACTION_PAN_Y=\"pan-y\";var TOUCH_ACTION_MAP=getTouchActionProps();function TouchAction(manager,value){this.manager=manager;this.set(value)}TouchAction.prototype={set:function(value){if(value==TOUCH_ACTION_COMPUTE){value=this.compute()}if(NATIVE_TOUCH_ACTION&&this.manager.element.style&&TOUCH_ACTION_MAP[value]){this.manager.element.style[PREFIXED_TOUCH_ACTION]=value}this.actions=value.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var actions=[];each(this.manager.recognizers,function(recognizer){if(boolOrFn(recognizer.options.enable,[recognizer])){actions=actions.concat(recognizer.getTouchAction())}});return cleanTouchActions(actions.join(\" \"))},preventDefaults:function(input){var srcEvent=input.srcEvent;var direction=input.offsetDirection;if(this.manager.session.prevented){srcEvent.preventDefault();return}var actions=this.actions;var hasNone=inStr(actions,TOUCH_ACTION_NONE)&&!TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];var hasPanY=inStr(actions,TOUCH_ACTION_PAN_Y)&&!TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];var hasPanX=inStr(actions,TOUCH_ACTION_PAN_X)&&!TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];if(hasNone){var isTapPointer=input.pointers.length===1;var isTapMovement=input.distance<2;var isTapTouchTime=input.deltaTime<250;if(isTapPointer&&isTapMovement&&isTapTouchTime){return}}if(hasPanX&&hasPanY){return}if(hasNone||hasPanY&&direction&DIRECTION_HORIZONTAL||hasPanX&&direction&DIRECTION_VERTICAL){return this.preventSrc(srcEvent)}},preventSrc:function(srcEvent){this.manager.session.prevented=true;srcEvent.preventDefault()}};function cleanTouchActions(actions){if(inStr(actions,TOUCH_ACTION_NONE)){return TOUCH_ACTION_NONE}var hasPanX=inStr(actions,TOUCH_ACTION_PAN_X);var hasPanY=inStr(actions,TOUCH_ACTION_PAN_Y);if(hasPanX&&hasPanY){return TOUCH_ACTION_NONE}if(hasPanX||hasPanY){return hasPanX?TOUCH_ACTION_PAN_X:TOUCH_ACTION_PAN_Y}if(inStr(actions,TOUCH_ACTION_MANIPULATION)){return TOUCH_ACTION_MANIPULATION}return TOUCH_ACTION_AUTO}function getTouchActionProps(){if(!NATIVE_TOUCH_ACTION){return false}var touchMap={};var cssSupports=window.CSS&&window.CSS.supports;[\"auto\",\"manipulation\",\"pan-y\",\"pan-x\",\"pan-x pan-y\",\"none\"].forEach(function(val){touchMap[val]=cssSupports?window.CSS.supports(\"touch-action\",val):true});return touchMap}var STATE_POSSIBLE=1;var STATE_BEGAN=2;var STATE_CHANGED=4;var STATE_ENDED=8;var STATE_RECOGNIZED=STATE_ENDED;var STATE_CANCELLED=16;var STATE_FAILED=32;function Recognizer(options){this.options=assign({},this.defaults,options||{});this.id=uniqueId();this.manager=null;this.options.enable=ifUndefined(this.options.enable,true);this.state=STATE_POSSIBLE;this.simultaneous={};this.requireFail=[]}Recognizer.prototype={defaults:{},set:function(options){assign(this.options,options);this.manager&&this.manager.touchAction.update();return this},recognizeWith:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"recognizeWith\",this)){return this}var simultaneous=this.simultaneous;otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);if(!simultaneous[otherRecognizer.id]){simultaneous[otherRecognizer.id]=otherRecognizer;otherRecognizer.recognizeWith(this)}return this},dropRecognizeWith:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"dropRecognizeWith\",this)){return this}otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);delete this.simultaneous[otherRecognizer.id];return this},requireFailure:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"requireFailure\",this)){return this}var requireFail=this.requireFail;otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);if(inArray(requireFail,otherRecognizer)===-1){requireFail.push(otherRecognizer);otherRecognizer.requireFailure(this)}return this},dropRequireFailure:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"dropRequireFailure\",this)){return this}otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);var index=inArray(this.requireFail,otherRecognizer);if(index>-1){this.requireFail.splice(index,1)}return this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(otherRecognizer){return!!this.simultaneous[otherRecognizer.id]},emit:function(input){var self=this;var state=this.state;function emit(event){self.manager.emit(event,input)}if(state<STATE_ENDED){emit(self.options.event+stateStr(state))}emit(self.options.event);if(input.additionalEvent){emit(input.additionalEvent)}if(state>=STATE_ENDED){emit(self.options.event+stateStr(state))}},tryEmit:function(input){if(this.canEmit()){return this.emit(input)}this.state=STATE_FAILED},canEmit:function(){var i=0;while(i<this.requireFail.length){if(!(this.requireFail[i].state&(STATE_FAILED|STATE_POSSIBLE))){return false}i++}return true},recognize:function(inputData){var inputDataClone=assign({},inputData);if(!boolOrFn(this.options.enable,[this,inputDataClone])){this.reset();this.state=STATE_FAILED;return}if(this.state&(STATE_RECOGNIZED|STATE_CANCELLED|STATE_FAILED)){this.state=STATE_POSSIBLE}this.state=this.process(inputDataClone);if(this.state&(STATE_BEGAN|STATE_CHANGED|STATE_ENDED|STATE_CANCELLED)){this.tryEmit(inputDataClone)}},process:function(inputData){},getTouchAction:function(){},reset:function(){}};function stateStr(state){if(state&STATE_CANCELLED){return\"cancel\"}else if(state&STATE_ENDED){return\"end\"}else if(state&STATE_CHANGED){return\"move\"}else if(state&STATE_BEGAN){return\"start\"}return\"\"}function directionStr(direction){if(direction==DIRECTION_DOWN){return\"down\"}else if(direction==DIRECTION_UP){return\"up\"}else if(direction==DIRECTION_LEFT){return\"left\"}else if(direction==DIRECTION_RIGHT){return\"right\"}return\"\"}function getRecognizerByNameIfManager(otherRecognizer,recognizer){var manager=recognizer.manager;if(manager){return manager.get(otherRecognizer)}return otherRecognizer}function AttrRecognizer(){Recognizer.apply(this,arguments)}inherit(AttrRecognizer,Recognizer,{defaults:{pointers:1},attrTest:function(input){var optionPointers=this.options.pointers;return optionPointers===0||input.pointers.length===optionPointers},process:function(input){var state=this.state;var eventType=input.eventType;var isRecognized=state&(STATE_BEGAN|STATE_CHANGED);var isValid=this.attrTest(input);if(isRecognized&&(eventType&INPUT_CANCEL||!isValid)){return state|STATE_CANCELLED}else if(isRecognized||isValid){if(eventType&INPUT_END){return state|STATE_ENDED}else if(!(state&STATE_BEGAN)){return STATE_BEGAN}return state|STATE_CHANGED}return STATE_FAILED}});function PanRecognizer(){AttrRecognizer.apply(this,arguments);this.pX=null;this.pY=null}inherit(PanRecognizer,AttrRecognizer,{defaults:{event:\"pan\",threshold:10,pointers:1,direction:DIRECTION_ALL},getTouchAction:function(){var direction=this.options.direction;var actions=[];if(direction&DIRECTION_HORIZONTAL){actions.push(TOUCH_ACTION_PAN_Y)}if(direction&DIRECTION_VERTICAL){actions.push(TOUCH_ACTION_PAN_X)}return actions},directionTest:function(input){var options=this.options;var hasMoved=true;var distance=input.distance;var direction=input.direction;var x=input.deltaX;var y=input.deltaY;if(!(direction&options.direction)){if(options.direction&DIRECTION_HORIZONTAL){direction=x===0?DIRECTION_NONE:x<0?DIRECTION_LEFT:DIRECTION_RIGHT;hasMoved=x!=this.pX;distance=Math.abs(input.deltaX)}else{direction=y===0?DIRECTION_NONE:y<0?DIRECTION_UP:DIRECTION_DOWN;hasMoved=y!=this.pY;distance=Math.abs(input.deltaY)}}input.direction=direction;return hasMoved&&distance>options.threshold&&direction&options.direction},attrTest:function(input){return AttrRecognizer.prototype.attrTest.call(this,input)&&(this.state&STATE_BEGAN||!(this.state&STATE_BEGAN)&&this.directionTest(input))},emit:function(input){this.pX=input.deltaX;this.pY=input.deltaY;var direction=directionStr(input.direction);if(direction){input.additionalEvent=this.options.event+direction}this._super.emit.call(this,input)}});function PinchRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:\"pinch\",threshold:0,pointers:2},getTouchAction:function(){return[TOUCH_ACTION_NONE]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.scale-1)>this.options.threshold||this.state&STATE_BEGAN)},emit:function(input){if(input.scale!==1){var inOut=input.scale<1?\"in\":\"out\";input.additionalEvent=this.options.event+inOut}this._super.emit.call(this,input)}});function PressRecognizer(){Recognizer.apply(this,arguments);this._timer=null;this._input=null}inherit(PressRecognizer,Recognizer,{defaults:{event:\"press\",pointers:1,time:251,threshold:9},getTouchAction:function(){return[TOUCH_ACTION_AUTO]},process:function(input){var options=this.options;var validPointers=input.pointers.length===options.pointers;var validMovement=input.distance<options.threshold;var validTime=input.deltaTime>options.time;this._input=input;if(!validMovement||!validPointers||input.eventType&(INPUT_END|INPUT_CANCEL)&&!validTime){this.reset()}else if(input.eventType&INPUT_START){this.reset();this._timer=setTimeoutContext(function(){this.state=STATE_RECOGNIZED;this.tryEmit()},options.time,this)}else if(input.eventType&INPUT_END){return STATE_RECOGNIZED}return STATE_FAILED},reset:function(){clearTimeout(this._timer)},emit:function(input){if(this.state!==STATE_RECOGNIZED){return}if(input&&input.eventType&INPUT_END){this.manager.emit(this.options.event+\"up\",input)}else{this._input.timeStamp=now();this.manager.emit(this.options.event,this._input)}}});function RotateRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:\"rotate\",threshold:0,pointers:2},getTouchAction:function(){return[TOUCH_ACTION_NONE]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.rotation)>this.options.threshold||this.state&STATE_BEGAN)}});function SwipeRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:\"swipe\",threshold:10,velocity:.3,direction:DIRECTION_HORIZONTAL|DIRECTION_VERTICAL,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(input){var direction=this.options.direction;var velocity;if(direction&(DIRECTION_HORIZONTAL|DIRECTION_VERTICAL)){velocity=input.overallVelocity}else if(direction&DIRECTION_HORIZONTAL){velocity=input.overallVelocityX}else if(direction&DIRECTION_VERTICAL){velocity=input.overallVelocityY}return this._super.attrTest.call(this,input)&&direction&input.offsetDirection&&input.distance>this.options.threshold&&input.maxPointers==this.options.pointers&&abs(velocity)>this.options.velocity&&input.eventType&INPUT_END},emit:function(input){var direction=directionStr(input.offsetDirection);if(direction){this.manager.emit(this.options.event+direction,input)}this.manager.emit(this.options.event,input)}});function TapRecognizer(){Recognizer.apply(this,arguments);this.pTime=false;this.pCenter=false;this._timer=null;this._input=null;this.count=0}inherit(TapRecognizer,Recognizer,{defaults:{event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[TOUCH_ACTION_MANIPULATION]},process:function(input){var options=this.options;var validPointers=input.pointers.length===options.pointers;var validMovement=input.distance<options.threshold;var validTouchTime=input.deltaTime<options.time;this.reset();if(input.eventType&INPUT_START&&this.count===0){return this.failTimeout()}if(validMovement&&validTouchTime&&validPointers){if(input.eventType!=INPUT_END){return this.failTimeout()}var validInterval=this.pTime?input.timeStamp-this.pTime<options.interval:true;var validMultiTap=!this.pCenter||getDistance(this.pCenter,input.center)<options.posThreshold;this.pTime=input.timeStamp;this.pCenter=input.center;if(!validMultiTap||!validInterval){this.count=1}else{this.count+=1}this._input=input;var tapCount=this.count%options.taps;if(tapCount===0){if(!this.hasRequireFailures()){return STATE_RECOGNIZED}else{this._timer=setTimeoutContext(function(){this.state=STATE_RECOGNIZED;this.tryEmit()},options.interval,this);return STATE_BEGAN}}}return STATE_FAILED},failTimeout:function(){this._timer=setTimeoutContext(function(){this.state=STATE_FAILED},this.options.interval,this);return STATE_FAILED},reset:function(){clearTimeout(this._timer)},emit:function(){if(this.state==STATE_RECOGNIZED){this._input.tapCount=this.count;this.manager.emit(this.options.event,this._input)}}});function Hammer(element,options){options=options||{};options.recognizers=ifUndefined(options.recognizers,Hammer.defaults.preset);return new Manager(element,options)}Hammer.VERSION=\"2.0.7\";Hammer.defaults={domEvents:false,touchAction:TOUCH_ACTION_COMPUTE,enable:true,inputTarget:null,inputClass:null,preset:[[RotateRecognizer,{enable:false}],[PinchRecognizer,{enable:false},[\"rotate\"]],[SwipeRecognizer,{direction:DIRECTION_HORIZONTAL}],[PanRecognizer,{direction:DIRECTION_HORIZONTAL},[\"swipe\"]],[TapRecognizer],[TapRecognizer,{event:\"doubletap\",taps:2},[\"tap\"]],[PressRecognizer]],cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}};var STOP=1;var FORCED_STOP=2;function Manager(element,options){this.options=assign({},Hammer.defaults,options||{});this.options.inputTarget=this.options.inputTarget||element;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=element;this.input=createInputInstance(this);this.touchAction=new TouchAction(this,this.options.touchAction);toggleCssProps(this,true);each(this.options.recognizers,function(item){var recognizer=this.add(new item[0](item[1]));item[2]&&recognizer.recognizeWith(item[2]);item[3]&&recognizer.requireFailure(item[3])},this)}Manager.prototype={set:function(options){assign(this.options,options);if(options.touchAction){this.touchAction.update()}if(options.inputTarget){this.input.destroy();this.input.target=options.inputTarget;this.input.init()}return this},stop:function(force){this.session.stopped=force?FORCED_STOP:STOP},recognize:function(inputData){var session=this.session;if(session.stopped){return}this.touchAction.preventDefaults(inputData)\n;var recognizer;var recognizers=this.recognizers;var curRecognizer=session.curRecognizer;if(!curRecognizer||curRecognizer&&curRecognizer.state&STATE_RECOGNIZED){curRecognizer=session.curRecognizer=null}var i=0;while(i<recognizers.length){recognizer=recognizers[i];if(session.stopped!==FORCED_STOP&&(!curRecognizer||recognizer==curRecognizer||recognizer.canRecognizeWith(curRecognizer))){recognizer.recognize(inputData)}else{recognizer.reset()}if(!curRecognizer&&recognizer.state&(STATE_BEGAN|STATE_CHANGED|STATE_ENDED)){curRecognizer=session.curRecognizer=recognizer}i++}},get:function(recognizer){if(recognizer instanceof Recognizer){return recognizer}var recognizers=this.recognizers;for(var i=0;i<recognizers.length;i++){if(recognizers[i].options.event==recognizer){return recognizers[i]}}return null},add:function(recognizer){if(invokeArrayArg(recognizer,\"add\",this)){return this}var existing=this.get(recognizer.options.event);if(existing){this.remove(existing)}this.recognizers.push(recognizer);recognizer.manager=this;this.touchAction.update();return recognizer},remove:function(recognizer){if(invokeArrayArg(recognizer,\"remove\",this)){return this}recognizer=this.get(recognizer);if(recognizer){var recognizers=this.recognizers;var index=inArray(recognizers,recognizer);if(index!==-1){recognizers.splice(index,1);this.touchAction.update()}}return this},on:function(events,handler){if(events===undefined){return}if(handler===undefined){return}var handlers=this.handlers;each(splitStr(events),function(event){handlers[event]=handlers[event]||[];handlers[event].push(handler)});return this},off:function(events,handler){if(events===undefined){return}var handlers=this.handlers;each(splitStr(events),function(event){if(!handler){delete handlers[event]}else{handlers[event]&&handlers[event].splice(inArray(handlers[event],handler),1)}});return this},emit:function(event,data){if(this.options.domEvents){triggerDomEvent(event,data)}var handlers=this.handlers[event]&&this.handlers[event].slice();if(!handlers||!handlers.length){return}data.type=event;data.preventDefault=function(){data.srcEvent.preventDefault()};var i=0;while(i<handlers.length){handlers[i](data);i++}},destroy:function(){this.element&&toggleCssProps(this,false);this.handlers={};this.session={};this.input.destroy();this.element=null}};function toggleCssProps(manager,add){var element=manager.element;if(!element.style){return}var prop;each(manager.options.cssProps,function(value,name){prop=prefixed(element.style,name);if(add){manager.oldCssProps[prop]=element.style[prop];element.style[prop]=value}else{element.style[prop]=manager.oldCssProps[prop]||\"\"}});if(!add){manager.oldCssProps={}}}function triggerDomEvent(event,data){var gestureEvent=document.createEvent(\"Event\");gestureEvent.initEvent(event,true,true);gestureEvent.gesture=data;data.target.dispatchEvent(gestureEvent)}assign(Hammer,{INPUT_START:INPUT_START,INPUT_MOVE:INPUT_MOVE,INPUT_END:INPUT_END,INPUT_CANCEL:INPUT_CANCEL,STATE_POSSIBLE:STATE_POSSIBLE,STATE_BEGAN:STATE_BEGAN,STATE_CHANGED:STATE_CHANGED,STATE_ENDED:STATE_ENDED,STATE_RECOGNIZED:STATE_RECOGNIZED,STATE_CANCELLED:STATE_CANCELLED,STATE_FAILED:STATE_FAILED,DIRECTION_NONE:DIRECTION_NONE,DIRECTION_LEFT:DIRECTION_LEFT,DIRECTION_RIGHT:DIRECTION_RIGHT,DIRECTION_UP:DIRECTION_UP,DIRECTION_DOWN:DIRECTION_DOWN,DIRECTION_HORIZONTAL:DIRECTION_HORIZONTAL,DIRECTION_VERTICAL:DIRECTION_VERTICAL,DIRECTION_ALL:DIRECTION_ALL,Manager:Manager,Input:Input,TouchAction:TouchAction,TouchInput:TouchInput,MouseInput:MouseInput,PointerEventInput:PointerEventInput,TouchMouseInput:TouchMouseInput,SingleTouchInput:SingleTouchInput,Recognizer:Recognizer,AttrRecognizer:AttrRecognizer,Tap:TapRecognizer,Pan:PanRecognizer,Swipe:SwipeRecognizer,Pinch:PinchRecognizer,Rotate:RotateRecognizer,Press:PressRecognizer,on:addEventListeners,off:removeEventListeners,each:each,merge:merge,extend:extend,assign:assign,inherit:inherit,bindFn:bindFn,prefixed:prefixed});var freeGlobal=typeof window!==\"undefined\"?window:typeof self!==\"undefined\"?self:{};freeGlobal.Hammer=Hammer;if(true){!(__WEBPACK_AMD_DEFINE_RESULT__=function(){return Hammer}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else if(typeof module!=\"undefined\"&&module.exports){module.exports=Hammer}else{window[exportName]=Hammer}})(window,document,\"Hammer\")},function(module,exports,__webpack_require__){\"use strict\";exports.util=__webpack_require__(2);exports.DOMutil=__webpack_require__(14);exports.DataSet=__webpack_require__(11);exports.DataView=__webpack_require__(12);exports.Queue=__webpack_require__(43);exports.Timeline=__webpack_require__(178);exports.Graph2d=__webpack_require__(180);exports.timeline={Core:__webpack_require__(65),DateUtil:__webpack_require__(36),Range:__webpack_require__(64),stack:__webpack_require__(100),TimeStep:__webpack_require__(66),components:{items:{Item:__webpack_require__(38),BackgroundItem:__webpack_require__(103),BoxItem:__webpack_require__(101),PointItem:__webpack_require__(102),RangeItem:__webpack_require__(70)},BackgroundGroup:__webpack_require__(69),Component:__webpack_require__(16),CurrentTime:__webpack_require__(67),CustomTime:__webpack_require__(46),DataAxis:__webpack_require__(107),DataScale:__webpack_require__(108),GraphGroup:__webpack_require__(109),Group:__webpack_require__(68),ItemSet:__webpack_require__(99),Legend:__webpack_require__(112),LineGraph:__webpack_require__(106),TimeAxis:__webpack_require__(45)}};exports.moment=__webpack_require__(9);exports.Hammer=__webpack_require__(10);exports.keycharm=__webpack_require__(35)},function(module,exports,__webpack_require__){\"use strict\";var moment=__webpack_require__(9);var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Range=__webpack_require__(64);var Core=__webpack_require__(65);var TimeAxis=__webpack_require__(45);var CurrentTime=__webpack_require__(67);var CustomTime=__webpack_require__(46);var ItemSet=__webpack_require__(99);var printStyle=__webpack_require__(15).printStyle;var allOptions=__webpack_require__(105).allOptions;var configureOptions=__webpack_require__(105).configureOptions;var Configurator=__webpack_require__(71)[\"default\"];var Validator=__webpack_require__(15)[\"default\"];function Timeline(container,items,groups,options){if(!(this instanceof Timeline)){throw new SyntaxError(\"Constructor must be called with the new operator\")}if(!(Array.isArray(groups)||groups instanceof DataSet||groups instanceof DataView)&&groups instanceof Object){var forthArgument=options;options=groups;groups=forthArgument}if(options&&options.throttleRedraw){console.warn('Timeline option \"throttleRedraw\" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.')}var me=this;this.defaultOptions={start:null,end:null,autoResize:true,orientation:{axis:\"bottom\",item:\"bottom\"},moment:moment,width:null,height:null,maxHeight:null,minHeight:null};this.options=util.deepExtend({},this.defaultOptions);this._create(container);if(!options||options&&typeof options.rtl==\"undefined\"){this.dom.root.style.visibility=\"hidden\";var directionFromDom,domNode=this.dom.root;while(!directionFromDom&&domNode){directionFromDom=window.getComputedStyle(domNode,null).direction;domNode=domNode.parentElement}this.options.rtl=directionFromDom&&directionFromDom.toLowerCase()==\"rtl\"}else{this.options.rtl=options.rtl}this.options.rollingMode=options&&options.rollingMode;this.options.onInitialDrawComplete=options&&options.onInitialDrawComplete;this.components=[];this.body={dom:this.dom,domProps:this.props,emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)},hiddenDates:[],util:{getScale:function getScale(){return me.timeAxis.step.scale},getStep:function getStep(){return me.timeAxis.step.step},toScreen:me._toScreen.bind(me),toGlobalScreen:me._toGlobalScreen.bind(me),toTime:me._toTime.bind(me),toGlobalTime:me._toGlobalTime.bind(me)}};this.range=new Range(this.body,this.options);this.components.push(this.range);this.body.range=this.range;this.timeAxis=new TimeAxis(this.body,this.options);this.timeAxis2=null;this.components.push(this.timeAxis);this.currentTime=new CurrentTime(this.body,this.options);this.components.push(this.currentTime);this.itemSet=new ItemSet(this.body,this.options);this.components.push(this.itemSet);this.itemsData=null;this.groupsData=null;this.dom.root.onclick=function(event){me.emit(\"click\",me.getEventProperties(event))};this.dom.root.ondblclick=function(event){me.emit(\"doubleClick\",me.getEventProperties(event))};this.dom.root.oncontextmenu=function(event){me.emit(\"contextmenu\",me.getEventProperties(event))};this.dom.root.onmouseover=function(event){me.emit(\"mouseOver\",me.getEventProperties(event))};if(window.PointerEvent){this.dom.root.onpointerdown=function(event){me.emit(\"mouseDown\",me.getEventProperties(event))};this.dom.root.onpointermove=function(event){me.emit(\"mouseMove\",me.getEventProperties(event))};this.dom.root.onpointerup=function(event){me.emit(\"mouseUp\",me.getEventProperties(event))}}else{this.dom.root.onmousemove=function(event){me.emit(\"mouseMove\",me.getEventProperties(event))};this.dom.root.onmousedown=function(event){me.emit(\"mouseDown\",me.getEventProperties(event))};this.dom.root.onmouseup=function(event){me.emit(\"mouseUp\",me.getEventProperties(event))}}this.initialFitDone=false;this.on(\"changed\",function(){if(this.itemsData==null||this.options.rollingMode)return;if(!me.initialFitDone){me.initialFitDone=true;if(me.options.start!=undefined||me.options.end!=undefined){if(me.options.start==undefined||me.options.end==undefined){var range=me.getItemRange()}var start=me.options.start!=undefined?me.options.start:range.min;var end=me.options.end!=undefined?me.options.end:range.max;me.setWindow(start,end,{animation:false})}else{me.fit({animation:false})}}if(!me.initialDrawDone&&me.initialRangeChangeDone){me.initialDrawDone=true;me.dom.root.style.visibility=\"visible\";if(me.options.onInitialDrawComplete){setTimeout(function(){return me.options.onInitialDrawComplete()},0)}}});if(options){this.setOptions(options)}if(groups){this.setGroups(groups)}if(items){this.setItems(items)}this._redraw()}Timeline.prototype=new Core;Timeline.prototype._createConfigurator=function(){return new Configurator(this,this.dom.container,configureOptions)};Timeline.prototype.redraw=function(){this.itemSet&&this.itemSet.markDirty({refreshItems:true});this._redraw()};Timeline.prototype.setOptions=function(options){var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}Core.prototype.setOptions.call(this,options);if(\"type\"in options){if(options.type!==this.options.type){this.options.type=options.type;var itemsData=this.itemsData;if(itemsData){var selection=this.getSelection();this.setItems(null);this.setItems(itemsData);this.setSelection(selection)}}}};Timeline.prototype.setItems=function(items){var newDataSet;if(!items){newDataSet=null}else if(items instanceof DataSet||items instanceof DataView){newDataSet=items}else{newDataSet=new DataSet(items,{type:{start:\"Date\",end:\"Date\"}})}this.itemsData=newDataSet;this.itemSet&&this.itemSet.setItems(newDataSet)};Timeline.prototype.setGroups=function(groups){var newDataSet;if(!groups){newDataSet=null}else{var filter=function filter(group){return group.visible!==false};if(groups instanceof DataSet||groups instanceof DataView){newDataSet=new DataView(groups,{filter:filter})}else{newDataSet=new DataSet(groups.filter(filter))}}this.groupsData=newDataSet;this.itemSet.setGroups(newDataSet)};Timeline.prototype.setData=function(data){if(data&&data.groups){this.setGroups(data.groups)}if(data&&data.items){this.setItems(data.items)}};Timeline.prototype.setSelection=function(ids,options){this.itemSet&&this.itemSet.setSelection(ids);if(options&&options.focus){this.focus(ids,options)}};Timeline.prototype.getSelection=function(){return this.itemSet&&this.itemSet.getSelection()||[]};Timeline.prototype.focus=function(id,options){if(!this.itemsData||id==undefined)return;var ids=Array.isArray(id)?id:[id];var itemsData=this.itemsData.getDataSet().get(ids,{type:{start:\"Date\",end:\"Date\"}});var start=null;var end=null;itemsData.forEach(function(itemData){var s=itemData.start.valueOf();var e=\"end\"in itemData?itemData.end.valueOf():itemData.start.valueOf();if(start===null||s<start){start=s}if(end===null||e>end){end=e}});if(start!==null&&end!==null){var me=this;var item=this.itemSet.items[ids[0]];var startPos=this._getScrollTop()*-1;var initialVerticalScroll=null;var verticalAnimationFrame=function verticalAnimationFrame(ease,willDraw,done){var verticalScroll=getItemVerticalScroll(me,item);if(!initialVerticalScroll){initialVerticalScroll=verticalScroll}if(initialVerticalScroll.itemTop==verticalScroll.itemTop&&!initialVerticalScroll.shouldScroll){return}else if(initialVerticalScroll.itemTop!=verticalScroll.itemTop&&verticalScroll.shouldScroll){initialVerticalScroll=verticalScroll;startPos=me._getScrollTop()*-1}var from=startPos;var to=initialVerticalScroll.scrollOffset;var scrollTop=done?to:from+(to-from)*ease;me._setScrollTop(-scrollTop);if(!willDraw){me._redraw()}};var setFinalVerticalPosition=function setFinalVerticalPosition(){var finalVerticalScroll=getItemVerticalScroll(me,item);if(finalVerticalScroll.shouldScroll&&finalVerticalScroll.itemTop!=initialVerticalScroll.itemTop){me._setScrollTop(-finalVerticalScroll.scrollOffset);me._redraw()}};var finalVerticalCallback=function finalVerticalCallback(){setFinalVerticalPosition();setTimeout(setFinalVerticalPosition,100)};var middle=(start+end)/2;var interval=Math.max(this.range.end-this.range.start,(end-start)*1.1);var animation=options&&options.animation!==undefined?options.animation:true;if(!animation){initialVerticalScroll={shouldScroll:false,scrollOffset:-1,itemTop:-1}}this.range.setRange(middle-interval/2,middle+interval/2,{animation:animation},finalVerticalCallback,verticalAnimationFrame)}};Timeline.prototype.fit=function(options,callback){var animation=options&&options.animation!==undefined?options.animation:true;var range;var dataset=this.itemsData&&this.itemsData.getDataSet();if(dataset.length===1&&dataset.get()[0].end===undefined){range=this.getDataRange();this.moveTo(range.min.valueOf(),{animation:animation},callback)}else{range=this.getItemRange();this.range.setRange(range.min,range.max,{animation:animation},callback)}};function getStart(item){return util.convert(item.data.start,\"Date\").valueOf()}function getEnd(item){var end=item.data.end!=undefined?item.data.end:item.data.start;return util.convert(end,\"Date\").valueOf()}function getItemVerticalScroll(timeline,item){var leftHeight=timeline.props.leftContainer.height;var contentHeight=timeline.props.left.height;var group=item.parent;var offset=group.top;var shouldScroll=true;var orientation=timeline.timeAxis.options.orientation.axis;var itemTop=function itemTop(){if(orientation==\"bottom\"){return group.height-item.top-item.height}else{return item.top}};var currentScrollHeight=timeline._getScrollTop()*-1;var targetOffset=offset+itemTop();var height=item.height;if(targetOffset<currentScrollHeight){if(offset+leftHeight<=offset+itemTop()+height){offset+=itemTop()-timeline.itemSet.options.margin.item.vertical}}else if(targetOffset+height>currentScrollHeight+leftHeight){offset+=itemTop()+height-leftHeight+timeline.itemSet.options.margin.item.vertical}else{shouldScroll=false}offset=Math.min(offset,contentHeight-leftHeight);return{shouldScroll:shouldScroll,scrollOffset:offset,itemTop:targetOffset}}Timeline.prototype.getItemRange=function(){var range=this.getDataRange();var min=range.min!==null?range.min.valueOf():null;var max=range.max!==null?range.max.valueOf():null;var minItem=null;var maxItem=null;if(min!=null&&max!=null){var interval=max-min;if(interval<=0){interval=10}var factor=interval/this.props.center.width;var redrawQueue={};var redrawQueueLength=0;util.forEach(this.itemSet.items,function(item,key){if(item.groupShowing){var returnQueue=true;redrawQueue[key]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[key].length}});var needRedraw=redrawQueueLength>0;if(needRedraw){for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns){fns[i]()})}}util.forEach(this.itemSet.items,function(item){var start=getStart(item);var end=getEnd(item);var startSide;var endSide;if(this.options.rtl){startSide=start-(item.getWidthRight()+10)*factor;endSide=end+(item.getWidthLeft()+10)*factor}else{startSide=start-(item.getWidthLeft()+10)*factor;endSide=end+(item.getWidthRight()+10)*factor}if(startSide<min){min=startSide;minItem=item}if(endSide>max){max=endSide;maxItem=item}}.bind(this));if(minItem&&maxItem){var lhs=minItem.getWidthLeft()+10;var rhs=maxItem.getWidthRight()+10;var delta=this.props.center.width-lhs-rhs;if(delta>0){if(this.options.rtl){min=getStart(minItem)-rhs*interval/delta;max=getEnd(maxItem)+lhs*interval/delta}else{min=getStart(minItem)-lhs*interval/delta;max=getEnd(maxItem)+rhs*interval/delta}}}}return{min:min!=null?new Date(min):null,max:max!=null?new Date(max):null}};Timeline.prototype.getDataRange=function(){var min=null;var max=null;var dataset=this.itemsData&&this.itemsData.getDataSet();if(dataset){dataset.forEach(function(item){var start=util.convert(item.start,\"Date\").valueOf();var end=util.convert(item.end!=undefined?item.end:item.start,\"Date\").valueOf();if(min===null||start<min){min=start}if(max===null||end>max){max=end}})}return{min:min!=null?new Date(min):null,max:max!=null?new Date(max):null}};Timeline.prototype.getEventProperties=function(event){var clientX=event.center?event.center.x:event.clientX;var clientY=event.center?event.center.y:event.clientY;var x;if(this.options.rtl){x=util.getAbsoluteRight(this.dom.centerContainer)-clientX}else{x=clientX-util.getAbsoluteLeft(this.dom.centerContainer)}var y=clientY-util.getAbsoluteTop(this.dom.centerContainer);var item=this.itemSet.itemFromTarget(event);var group=this.itemSet.groupFromTarget(event);var customTime=CustomTime.customTimeFromTarget(event);var snap=this.itemSet.options.snap||null;var scale=this.body.util.getScale();var step=this.body.util.getStep();var time=this._toTime(x);var snappedTime=snap?snap(time,scale,step):time;var element=util.getTarget(event);var what=null;if(item!=null){what=\"item\"}else if(customTime!=null){what=\"custom-time\"}else if(util.hasParent(element,this.timeAxis.dom.foreground)){what=\"axis\"}else if(this.timeAxis2&&util.hasParent(element,this.timeAxis2.dom.foreground)){what=\"axis\"}else if(util.hasParent(element,this.itemSet.dom.labelSet)){what=\"group-label\"}else if(util.hasParent(element,this.currentTime.bar)){what=\"current-time\"}else if(util.hasParent(element,this.dom.center)){what=\"background\"}return{event:event,item:item?item.id:null,group:group?group.groupId:null,what:what,pageX:event.srcEvent?event.srcEvent.pageX:event.pageX,pageY:event.srcEvent?event.srcEvent.pageY:event.pageY,x:x,y:y,time:time,snappedTime:snappedTime}};Timeline.prototype.toggleRollingMode=function(){if(this.range.rolling){this.range.stopRolling()}else{if(this.options.rollingMode==undefined){this.setOptions(this.options)}this.range.startRolling()}};module.exports=Timeline},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var util=__webpack_require__(2);var ColorPicker=function(){function ColorPicker(){var pixelRatio=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;(0,_classCallCheck3[\"default\"])(this,ColorPicker);this.pixelRatio=pixelRatio;this.generated=false;this.centerCoordinates={x:289/2,y:289/2};this.r=289*.49;this.color={r:255,g:255,b:255,a:1};this.hueCircle=undefined;this.initialColor={r:255,g:255,b:255,a:1};this.previousColor=undefined;this.applied=false;this.updateCallback=function(){};this.closeCallback=function(){};this._create()}(0,_createClass3[\"default\"])(ColorPicker,[{key:\"insertTo\",value:function insertTo(container){if(this.hammer!==undefined){this.hammer.destroy();this.hammer=undefined}this.container=container;this.container.appendChild(this.frame);this._bindHammer();this._setSize()}},{key:\"setUpdateCallback\",value:function setUpdateCallback(callback){if(typeof callback===\"function\"){this.updateCallback=callback}else{throw new Error(\"Function attempted to set as colorPicker update callback is not a function.\")}}},{key:\"setCloseCallback\",value:function setCloseCallback(callback){if(typeof callback===\"function\"){this.closeCallback=callback}else{throw new Error(\"Function attempted to set as colorPicker closing callback is not a function.\")}}},{key:\"_isColorString\",value:function _isColorString(color){var htmlColors={black:\"#000000\",navy:\"#000080\",darkblue:\"#00008B\",mediumblue:\"#0000CD\",blue:\"#0000FF\",darkgreen:\"#006400\",green:\"#008000\",teal:\"#008080\",darkcyan:\"#008B8B\",deepskyblue:\"#00BFFF\",darkturquoise:\"#00CED1\",mediumspringgreen:\"#00FA9A\",lime:\"#00FF00\",springgreen:\"#00FF7F\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",midnightblue:\"#191970\",dodgerblue:\"#1E90FF\",lightseagreen:\"#20B2AA\",forestgreen:\"#228B22\",seagreen:\"#2E8B57\",darkslategray:\"#2F4F4F\",limegreen:\"#32CD32\",mediumseagreen:\"#3CB371\",turquoise:\"#40E0D0\",royalblue:\"#4169E1\",steelblue:\"#4682B4\",darkslateblue:\"#483D8B\",mediumturquoise:\"#48D1CC\",indigo:\"#4B0082\",darkolivegreen:\"#556B2F\",cadetblue:\"#5F9EA0\",cornflowerblue:\"#6495ED\",mediumaquamarine:\"#66CDAA\",dimgray:\"#696969\",slateblue:\"#6A5ACD\",olivedrab:\"#6B8E23\",slategray:\"#708090\",lightslategray:\"#778899\",mediumslateblue:\"#7B68EE\",lawngreen:\"#7CFC00\",chartreuse:\"#7FFF00\",aquamarine:\"#7FFFD4\",maroon:\"#800000\",purple:\"#800080\",olive:\"#808000\",gray:\"#808080\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",blueviolet:\"#8A2BE2\",darkred:\"#8B0000\",darkmagenta:\"#8B008B\",saddlebrown:\"#8B4513\",darkseagreen:\"#8FBC8F\",lightgreen:\"#90EE90\",mediumpurple:\"#9370D8\",darkviolet:\"#9400D3\",palegreen:\"#98FB98\",darkorchid:\"#9932CC\",yellowgreen:\"#9ACD32\",sienna:\"#A0522D\",brown:\"#A52A2A\",darkgray:\"#A9A9A9\",lightblue:\"#ADD8E6\",greenyellow:\"#ADFF2F\",paleturquoise:\"#AFEEEE\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",firebrick:\"#B22222\",darkgoldenrod:\"#B8860B\",mediumorchid:\"#BA55D3\",rosybrown:\"#BC8F8F\",darkkhaki:\"#BDB76B\",silver:\"#C0C0C0\",mediumvioletred:\"#C71585\",indianred:\"#CD5C5C\",peru:\"#CD853F\",chocolate:\"#D2691E\",tan:\"#D2B48C\",lightgrey:\"#D3D3D3\",palevioletred:\"#D87093\",thistle:\"#D8BFD8\",orchid:\"#DA70D6\",goldenrod:\"#DAA520\",crimson:\"#DC143C\",gainsboro:\"#DCDCDC\",plum:\"#DDA0DD\",burlywood:\"#DEB887\",lightcyan:\"#E0FFFF\",lavender:\"#E6E6FA\",darksalmon:\"#E9967A\",violet:\"#EE82EE\",palegoldenrod:\"#EEE8AA\",lightcoral:\"#F08080\",khaki:\"#F0E68C\",aliceblue:\"#F0F8FF\",honeydew:\"#F0FFF0\",azure:\"#F0FFFF\",sandybrown:\"#F4A460\",wheat:\"#F5DEB3\",beige:\"#F5F5DC\",whitesmoke:\"#F5F5F5\",mintcream:\"#F5FFFA\",ghostwhite:\"#F8F8FF\",salmon:\"#FA8072\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lightgoldenrodyellow:\"#FAFAD2\",oldlace:\"#FDF5E6\",red:\"#FF0000\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",deeppink:\"#FF1493\",orangered:\"#FF4500\",tomato:\"#FF6347\",hotpink:\"#FF69B4\",coral:\"#FF7F50\",darkorange:\"#FF8C00\",lightsalmon:\"#FFA07A\",orange:\"#FFA500\",lightpink:\"#FFB6C1\",pink:\"#FFC0CB\",gold:\"#FFD700\",peachpuff:\"#FFDAB9\",navajowhite:\"#FFDEAD\",moccasin:\"#FFE4B5\",bisque:\"#FFE4C4\",mistyrose:\"#FFE4E1\",blanchedalmond:\"#FFEBCD\",papayawhip:\"#FFEFD5\",lavenderblush:\"#FFF0F5\",seashell:\"#FFF5EE\",cornsilk:\"#FFF8DC\",lemonchiffon:\"#FFFACD\",floralwhite:\"#FFFAF0\",snow:\"#FFFAFA\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",ivory:\"#FFFFF0\",white:\"#FFFFFF\"};if(typeof color===\"string\"){return htmlColors[color]}}},{key:\"setColor\",value:function setColor(color){var setInitial=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(color===\"none\"){return}var rgba=void 0;var htmlColor=this._isColorString(color);if(htmlColor!==undefined){color=htmlColor}if(util.isString(color)===true){if(util.isValidRGB(color)===true){var rgbaArray=color.substr(4).substr(0,color.length-5).split(\",\");rgba={r:rgbaArray[0],g:rgbaArray[1],b:rgbaArray[2],a:1}}else if(util.isValidRGBA(color)===true){var _rgbaArray=color.substr(5).substr(0,color.length-6).split(\",\");rgba={r:_rgbaArray[0],g:_rgbaArray[1],b:_rgbaArray[2],a:_rgbaArray[3]}}else if(util.isValidHex(color)===true){var rgbObj=util.hexToRGB(color);rgba={r:rgbObj.r,g:rgbObj.g,b:rgbObj.b,a:1}}}else{if(color instanceof Object){if(color.r!==undefined&&color.g!==undefined&&color.b!==undefined){var alpha=color.a!==undefined?color.a:\"1.0\";rgba={r:color.r,g:color.g,b:color.b,a:alpha}}}}if(rgba===undefined){throw new Error(\"Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: \"+(0,_stringify2[\"default\"])(color))}else{this._setColor(rgba,setInitial)}}},{key:\"show\",value:function show(){if(this.closeCallback!==undefined){this.closeCallback();this.closeCallback=undefined}this.applied=false;this.frame.style.display=\"block\";this._generateHueCircle()}},{key:\"_hide\",value:function _hide(){var _this=this;var storePrevious=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;if(storePrevious===true){this.previousColor=util.extend({},this.color)}if(this.applied===true){this.updateCallback(this.initialColor)}this.frame.style.display=\"none\";setTimeout(function(){if(_this.closeCallback!==undefined){_this.closeCallback();_this.closeCallback=undefined}},0)}},{key:\"_save\",value:function _save(){this.updateCallback(this.color);this.applied=false;this._hide()}},{key:\"_apply\",value:function _apply(){this.applied=true;this.updateCallback(this.color);this._updatePicker(this.color)}},{key:\"_loadLast\",value:function _loadLast(){if(this.previousColor!==undefined){this.setColor(this.previousColor,false)}else{alert(\"There is no last color to load...\")}}},{key:\"_setColor\",value:function _setColor(rgba){var setInitial=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(setInitial===true){this.initialColor=util.extend({},rgba)}this.color=rgba;var hsv=util.RGBToHSV(rgba.r,rgba.g,rgba.b);var angleConvert=2*Math.PI;var radius=this.r*hsv.s;var x=this.centerCoordinates.x+radius*Math.sin(angleConvert*hsv.h);var y=this.centerCoordinates.y+radius*Math.cos(angleConvert*hsv.h);this.colorPickerSelector.style.left=x-.5*this.colorPickerSelector.clientWidth+\"px\";this.colorPickerSelector.style.top=y-.5*this.colorPickerSelector.clientHeight+\"px\";this._updatePicker(rgba)}},{key:\"_setOpacity\",value:function _setOpacity(value){this.color.a=value/100;this._updatePicker(this.color)}},{key:\"_setBrightness\",value:function _setBrightness(value){var hsv=util.RGBToHSV(this.color.r,this.color.g,this.color.b);hsv.v=value/100;var rgba=util.HSVToRGB(hsv.h,hsv.s,hsv.v);rgba[\"a\"]=this.color.a;this.color=rgba;this._updatePicker()}},{key:\"_updatePicker\",value:function _updatePicker(){var rgba=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.color;var hsv=util.RGBToHSV(rgba.r,rgba.g,rgba.b);var ctx=this.colorPickerCanvas.getContext(\"2d\");if(this.pixelRation===undefined){this.pixelRatio=(window.devicePixelRatio||1)/(ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1)}ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var w=this.colorPickerCanvas.clientWidth;var h=this.colorPickerCanvas.clientHeight;ctx.clearRect(0,0,w,h);ctx.putImageData(this.hueCircle,0,0);ctx.fillStyle=\"rgba(0,0,0,\"+(1-hsv.v)+\")\";ctx.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r);ctx.fill();this.brightnessRange.value=100*hsv.v;this.opacityRange.value=100*rgba.a;this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\";this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}},{key:\"_setSize\",value:function _setSize(){this.colorPickerCanvas.style.width=\"100%\";this.colorPickerCanvas.style.height=\"100%\";this.colorPickerCanvas.width=289*this.pixelRatio;this.colorPickerCanvas.height=289*this.pixelRatio}},{key:\"_create\",value:function _create(){this.frame=document.createElement(\"div\");this.frame.className=\"vis-color-picker\";this.colorPickerDiv=document.createElement(\"div\");this.colorPickerSelector=document.createElement(\"div\");this.colorPickerSelector.className=\"vis-selector\";this.colorPickerDiv.appendChild(this.colorPickerSelector);this.colorPickerCanvas=document.createElement(\"canvas\");this.colorPickerDiv.appendChild(this.colorPickerCanvas);if(!this.colorPickerCanvas.getContext){var noCanvas=document.createElement(\"DIV\");noCanvas.style.color=\"red\";noCanvas.style.fontWeight=\"bold\";noCanvas.style.padding=\"10px\";noCanvas.innerHTML=\"Error: your browser does not support HTML canvas\";this.colorPickerCanvas.appendChild(noCanvas)}else{var ctx=this.colorPickerCanvas.getContext(\"2d\");this.pixelRatio=(window.devicePixelRatio||1)/(ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1);this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}this.colorPickerDiv.className=\"vis-color\";this.opacityDiv=document.createElement(\"div\");this.opacityDiv.className=\"vis-opacity\";this.brightnessDiv=document.createElement(\"div\");this.brightnessDiv.className=\"vis-brightness\";this.arrowDiv=document.createElement(\"div\");this.arrowDiv.className=\"vis-arrow\";this.opacityRange=document.createElement(\"input\");try{this.opacityRange.type=\"range\";this.opacityRange.min=\"0\";this.opacityRange.max=\"100\"}catch(err){}this.opacityRange.value=\"100\";this.opacityRange.className=\"vis-range\";this.brightnessRange=document.createElement(\"input\");try{this.brightnessRange.type=\"range\";this.brightnessRange.min=\"0\";this.brightnessRange.max=\"100\"}catch(err){}this.brightnessRange.value=\"100\";this.brightnessRange.className=\"vis-range\";this.opacityDiv.appendChild(this.opacityRange);this.brightnessDiv.appendChild(this.brightnessRange);var me=this;this.opacityRange.onchange=function(){me._setOpacity(this.value)};this.opacityRange.oninput=function(){me._setOpacity(this.value)};this.brightnessRange.onchange=function(){me._setBrightness(this.value)};this.brightnessRange.oninput=function(){me._setBrightness(this.value)};this.brightnessLabel=document.createElement(\"div\");this.brightnessLabel.className=\"vis-label vis-brightness\";this.brightnessLabel.innerHTML=\"brightness:\";this.opacityLabel=document.createElement(\"div\");this.opacityLabel.className=\"vis-label vis-opacity\";this.opacityLabel.innerHTML=\"opacity:\";this.newColorDiv=document.createElement(\"div\");this.newColorDiv.className=\"vis-new-color\";this.newColorDiv.innerHTML=\"new\";this.initialColorDiv=document.createElement(\"div\");this.initialColorDiv.className=\"vis-initial-color\";this.initialColorDiv.innerHTML=\"initial\";this.cancelButton=document.createElement(\"div\");this.cancelButton.className=\"vis-button vis-cancel\";this.cancelButton.innerHTML=\"cancel\";this.cancelButton.onclick=this._hide.bind(this,false);this.applyButton=document.createElement(\"div\");this.applyButton.className=\"vis-button vis-apply\";this.applyButton.innerHTML=\"apply\";this.applyButton.onclick=this._apply.bind(this);this.saveButton=document.createElement(\"div\");this.saveButton.className=\"vis-button vis-save\";this.saveButton.innerHTML=\"save\";this.saveButton.onclick=this._save.bind(this);this.loadButton=document.createElement(\"div\");this.loadButton.className=\"vis-button vis-load\";this.loadButton.innerHTML=\"load last\";this.loadButton.onclick=this._loadLast.bind(this)\n;this.frame.appendChild(this.colorPickerDiv);this.frame.appendChild(this.arrowDiv);this.frame.appendChild(this.brightnessLabel);this.frame.appendChild(this.brightnessDiv);this.frame.appendChild(this.opacityLabel);this.frame.appendChild(this.opacityDiv);this.frame.appendChild(this.newColorDiv);this.frame.appendChild(this.initialColorDiv);this.frame.appendChild(this.cancelButton);this.frame.appendChild(this.applyButton);this.frame.appendChild(this.saveButton);this.frame.appendChild(this.loadButton)}},{key:\"_bindHammer\",value:function _bindHammer(){var _this2=this;this.drag={};this.pinch={};this.hammer=new Hammer(this.colorPickerCanvas);this.hammer.get(\"pinch\").set({enable:true});hammerUtil.onTouch(this.hammer,function(event){_this2._moveSelector(event)});this.hammer.on(\"tap\",function(event){_this2._moveSelector(event)});this.hammer.on(\"panstart\",function(event){_this2._moveSelector(event)});this.hammer.on(\"panmove\",function(event){_this2._moveSelector(event)});this.hammer.on(\"panend\",function(event){_this2._moveSelector(event)})}},{key:\"_generateHueCircle\",value:function _generateHueCircle(){if(this.generated===false){var ctx=this.colorPickerCanvas.getContext(\"2d\");if(this.pixelRation===undefined){this.pixelRatio=(window.devicePixelRatio||1)/(ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1)}ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var w=this.colorPickerCanvas.clientWidth;var h=this.colorPickerCanvas.clientHeight;ctx.clearRect(0,0,w,h);var x=void 0,y=void 0,hue=void 0,sat=void 0;this.centerCoordinates={x:w*.5,y:h*.5};this.r=.49*w;var angleConvert=2*Math.PI/360;var hfac=1/360;var sfac=1/this.r;var rgb=void 0;for(hue=0;hue<360;hue++){for(sat=0;sat<this.r;sat++){x=this.centerCoordinates.x+sat*Math.sin(angleConvert*hue);y=this.centerCoordinates.y+sat*Math.cos(angleConvert*hue);rgb=util.HSVToRGB(hue*hfac,sat*sfac,1);ctx.fillStyle=\"rgb(\"+rgb.r+\",\"+rgb.g+\",\"+rgb.b+\")\";ctx.fillRect(x-.5,y-.5,2,2)}}ctx.strokeStyle=\"rgba(0,0,0,1)\";ctx.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r);ctx.stroke();this.hueCircle=ctx.getImageData(0,0,w,h)}this.generated=true}},{key:\"_moveSelector\",value:function _moveSelector(event){var rect=this.colorPickerDiv.getBoundingClientRect();var left=event.center.x-rect.left;var top=event.center.y-rect.top;var centerY=.5*this.colorPickerDiv.clientHeight;var centerX=.5*this.colorPickerDiv.clientWidth;var x=left-centerX;var y=top-centerY;var angle=Math.atan2(x,y);var radius=.98*Math.min(Math.sqrt(x*x+y*y),centerX);var newTop=Math.cos(angle)*radius+centerY;var newLeft=Math.sin(angle)*radius+centerX;this.colorPickerSelector.style.top=newTop-.5*this.colorPickerSelector.clientHeight+\"px\";this.colorPickerSelector.style.left=newLeft-.5*this.colorPickerSelector.clientWidth+\"px\";var h=angle/(2*Math.PI);h=h<0?h+1:h;var s=radius/this.r;var hsv=util.RGBToHSV(this.color.r,this.color.g,this.color.b);hsv.h=h;hsv.s=s;var rgba=util.HSVToRGB(hsv.h,hsv.s,hsv.v);rgba[\"a\"]=this.color.a;this.color=rgba;this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\";this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}}]);return ColorPicker}();exports[\"default\"]=ColorPicker},function(module,exports,__webpack_require__){\"use strict\";var moment=__webpack_require__(9);var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Range=__webpack_require__(64);var Core=__webpack_require__(65);var TimeAxis=__webpack_require__(45);var CurrentTime=__webpack_require__(67);var CustomTime=__webpack_require__(46);var LineGraph=__webpack_require__(106);var printStyle=__webpack_require__(15).printStyle;var allOptions=__webpack_require__(113).allOptions;var configureOptions=__webpack_require__(113).configureOptions;var Configurator=__webpack_require__(71)[\"default\"];var Validator=__webpack_require__(15)[\"default\"];function Graph2d(container,items,groups,options){if(!(Array.isArray(groups)||groups instanceof DataSet||groups instanceof DataView)&&groups instanceof Object){var forthArgument=options;options=groups;groups=forthArgument}if(options&&options.throttleRedraw){console.warn('Graph2d option \"throttleRedraw\" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.')}var me=this;this.defaultOptions={start:null,end:null,autoResize:true,orientation:{axis:\"bottom\",item:\"bottom\"},moment:moment,width:null,height:null,maxHeight:null,minHeight:null};this.options=util.deepExtend({},this.defaultOptions);this._create(container);this.components=[];this.body={dom:this.dom,domProps:this.props,emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)},hiddenDates:[],util:{toScreen:me._toScreen.bind(me),toGlobalScreen:me._toGlobalScreen.bind(me),toTime:me._toTime.bind(me),toGlobalTime:me._toGlobalTime.bind(me)}};this.range=new Range(this.body);this.components.push(this.range);this.body.range=this.range;this.timeAxis=new TimeAxis(this.body);this.components.push(this.timeAxis);this.currentTime=new CurrentTime(this.body);this.components.push(this.currentTime);this.linegraph=new LineGraph(this.body);this.components.push(this.linegraph);this.itemsData=null;this.groupsData=null;this.on(\"tap\",function(event){me.emit(\"click\",me.getEventProperties(event))});this.on(\"doubletap\",function(event){me.emit(\"doubleClick\",me.getEventProperties(event))});this.dom.root.oncontextmenu=function(event){me.emit(\"contextmenu\",me.getEventProperties(event))};if(options){this.setOptions(options)}if(groups){this.setGroups(groups)}if(items){this.setItems(items)}this._redraw()}Graph2d.prototype=new Core;Graph2d.prototype.setOptions=function(options){var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}Core.prototype.setOptions.call(this,options)};Graph2d.prototype.setItems=function(items){var initialLoad=this.itemsData==null;var newDataSet;if(!items){newDataSet=null}else if(items instanceof DataSet||items instanceof DataView){newDataSet=items}else{newDataSet=new DataSet(items,{type:{start:\"Date\",end:\"Date\"}})}this.itemsData=newDataSet;this.linegraph&&this.linegraph.setItems(newDataSet);if(initialLoad){if(this.options.start!=undefined||this.options.end!=undefined){var start=this.options.start!=undefined?this.options.start:null;var end=this.options.end!=undefined?this.options.end:null;this.setWindow(start,end,{animation:false})}else{this.fit({animation:false})}}};Graph2d.prototype.setGroups=function(groups){var newDataSet;if(!groups){newDataSet=null}else if(groups instanceof DataSet||groups instanceof DataView){newDataSet=groups}else{newDataSet=new DataSet(groups)}this.groupsData=newDataSet;this.linegraph.setGroups(newDataSet)};Graph2d.prototype.getLegend=function(groupId,width,height){if(width===undefined){width=15}if(height===undefined){height=15}if(this.linegraph.groups[groupId]!==undefined){return this.linegraph.groups[groupId].getLegend(width,height)}else{return\"cannot find group:'\"+groupId+\"'\"}};Graph2d.prototype.isGroupVisible=function(groupId){if(this.linegraph.groups[groupId]!==undefined){return this.linegraph.groups[groupId].visible&&(this.linegraph.options.groups.visibility[groupId]===undefined||this.linegraph.options.groups.visibility[groupId]==true)}else{return false}};Graph2d.prototype.getDataRange=function(){var min=null;var max=null;for(var groupId in this.linegraph.groups){if(this.linegraph.groups.hasOwnProperty(groupId)){if(this.linegraph.groups[groupId].visible==true){for(var i=0;i<this.linegraph.groups[groupId].itemsData.length;i++){var item=this.linegraph.groups[groupId].itemsData[i];var value=util.convert(item.x,\"Date\").valueOf();min=min==null?value:min>value?value:min;max=max==null?value:max<value?value:max}}}}return{min:min!=null?new Date(min):null,max:max!=null?new Date(max):null}};Graph2d.prototype.getEventProperties=function(event){var clientX=event.center?event.center.x:event.clientX;var clientY=event.center?event.center.y:event.clientY;var x=clientX-util.getAbsoluteLeft(this.dom.centerContainer);var y=clientY-util.getAbsoluteTop(this.dom.centerContainer);var time=this._toTime(x);var customTime=CustomTime.customTimeFromTarget(event);var element=util.getTarget(event);var what=null;if(util.hasParent(element,this.timeAxis.dom.foreground)){what=\"axis\"}else if(this.timeAxis2&&util.hasParent(element,this.timeAxis2.dom.foreground)){what=\"axis\"}else if(util.hasParent(element,this.linegraph.yAxisLeft.dom.frame)){what=\"data-axis\"}else if(util.hasParent(element,this.linegraph.yAxisRight.dom.frame)){what=\"data-axis\"}else if(util.hasParent(element,this.linegraph.legendLeft.dom.frame)){what=\"legend\"}else if(util.hasParent(element,this.linegraph.legendRight.dom.frame)){what=\"legend\"}else if(customTime!=null){what=\"custom-time\"}else if(util.hasParent(element,this.currentTime.bar)){what=\"current-time\"}else if(util.hasParent(element,this.dom.center)){what=\"background\"}var value=[];var yAxisLeft=this.linegraph.yAxisLeft;var yAxisRight=this.linegraph.yAxisRight;if(!yAxisLeft.hidden&&this.itemsData.length>0){value.push(yAxisLeft.screenToValue(y))}if(!yAxisRight.hidden&&this.itemsData.length>0){value.push(yAxisRight.screenToValue(y))}return{event:event,what:what,pageX:event.srcEvent?event.srcEvent.pageX:event.pageX,pageY:event.srcEvent?event.srcEvent.pageY:event.pageY,x:x,y:y,time:time,value:value}};Graph2d.prototype._createConfigurator=function(){return new Configurator(this,this.dom.container,configureOptions)};module.exports=Graph2d},function(module,exports,__webpack_require__){\"use strict\";exports.util=__webpack_require__(2);exports.DOMutil=__webpack_require__(14);exports.DataSet=__webpack_require__(11);exports.DataView=__webpack_require__(12);exports.Queue=__webpack_require__(43);exports.Network=__webpack_require__(182);exports.network={Images:__webpack_require__(116),dotparser:__webpack_require__(114),gephiParser:__webpack_require__(115),allOptions:__webpack_require__(122)};exports.network.convertDot=function(input){return exports.network.dotparser.DOTToGraph(input)};exports.network.convertGephi=function(input,options){return exports.network.gephiParser.parseGephi(input,options)};exports.moment=__webpack_require__(9);exports.Hammer=__webpack_require__(10);exports.keycharm=__webpack_require__(35)},function(module,exports,__webpack_require__){\"use strict\";__webpack_require__(183);var Emitter=__webpack_require__(44);var util=__webpack_require__(2);var dotparser=__webpack_require__(114);var gephiParser=__webpack_require__(115);var Activator=__webpack_require__(97);var locales=__webpack_require__(184);var Images=__webpack_require__(116)[\"default\"];var Groups=__webpack_require__(186)[\"default\"];var NodesHandler=__webpack_require__(187)[\"default\"];var EdgesHandler=__webpack_require__(214)[\"default\"];var PhysicsEngine=__webpack_require__(220)[\"default\"];var ClusterEngine=__webpack_require__(227)[\"default\"];var CanvasRenderer=__webpack_require__(229)[\"default\"];var Canvas=__webpack_require__(230)[\"default\"];var View=__webpack_require__(231)[\"default\"];var InteractionHandler=__webpack_require__(232)[\"default\"];var SelectionHandler=__webpack_require__(234)[\"default\"];var LayoutEngine=__webpack_require__(235)[\"default\"];var ManipulationSystem=__webpack_require__(237)[\"default\"];var Configurator=__webpack_require__(71)[\"default\"];var Validator=__webpack_require__(15)[\"default\"];var _require=__webpack_require__(15),printStyle=_require.printStyle;var _require2=__webpack_require__(122),allOptions=_require2.allOptions,configureOptions=_require2.configureOptions;var KamadaKawai=__webpack_require__(238)[\"default\"];function Network(container,data,options){var _this=this;if(!(this instanceof Network)){throw new SyntaxError(\"Constructor must be called with the new operator\")}this.options={};this.defaultOptions={locale:\"en\",locales:locales,clickToUse:false};util.extend(this.options,this.defaultOptions);this.body={container:container,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this),once:this.once.bind(this)},eventListeners:{onTap:function onTap(){},onTouch:function onTouch(){},onDoubleTap:function onDoubleTap(){},onHold:function onHold(){},onDragStart:function onDragStart(){},onDrag:function onDrag(){},onDragEnd:function onDragEnd(){},onMouseWheel:function onMouseWheel(){},onPinch:function onPinch(){},onMouseMove:function onMouseMove(){},onRelease:function onRelease(){},onContext:function onContext(){}},data:{nodes:null,edges:null},functions:{createNode:function createNode(){},createEdge:function createEdge(){},getPointer:function getPointer(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}};this.bindEventListeners();this.images=new Images(function(){return _this.body.emitter.emit(\"_requestRedraw\")});this.groups=new Groups;this.canvas=new Canvas(this.body);this.selectionHandler=new SelectionHandler(this.body,this.canvas);this.interactionHandler=new InteractionHandler(this.body,this.canvas,this.selectionHandler);this.view=new View(this.body,this.canvas);this.renderer=new CanvasRenderer(this.body,this.canvas);this.physics=new PhysicsEngine(this.body);this.layoutEngine=new LayoutEngine(this.body);this.clustering=new ClusterEngine(this.body);this.manipulation=new ManipulationSystem(this.body,this.canvas,this.selectionHandler);this.nodesHandler=new NodesHandler(this.body,this.images,this.groups,this.layoutEngine);this.edgesHandler=new EdgesHandler(this.body,this.images,this.groups);this.body.modules[\"kamadaKawai\"]=new KamadaKawai(this.body,150,.05);this.body.modules[\"clustering\"]=this.clustering;this.canvas._create();this.setOptions(options);this.setData(data)}Emitter(Network.prototype);Network.prototype.setOptions=function(options){var _this2=this;if(options!==undefined){var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}var fields=[\"locale\",\"locales\",\"clickToUse\"];util.selectiveDeepExtend(fields,this.options,options);options=this.layoutEngine.setOptions(options.layout,options);this.canvas.setOptions(options);this.groups.setOptions(options.groups);this.nodesHandler.setOptions(options.nodes);this.edgesHandler.setOptions(options.edges);this.physics.setOptions(options.physics);this.manipulation.setOptions(options.manipulation,options,this.options);this.interactionHandler.setOptions(options.interaction);this.renderer.setOptions(options.interaction);this.selectionHandler.setOptions(options.interaction);if(options.groups!==undefined){this.body.emitter.emit(\"refreshNodes\")}if(\"configure\"in options){if(!this.configurator){this.configurator=new Configurator(this,this.body.container,configureOptions,this.canvas.pixelRatio)}this.configurator.setOptions(options.configure)}if(this.configurator&&this.configurator.options.enabled===true){var networkOptions={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};util.deepExtend(networkOptions.nodes,this.nodesHandler.options);util.deepExtend(networkOptions.edges,this.edgesHandler.options);util.deepExtend(networkOptions.layout,this.layoutEngine.options);util.deepExtend(networkOptions.interaction,this.selectionHandler.options);util.deepExtend(networkOptions.interaction,this.renderer.options);util.deepExtend(networkOptions.interaction,this.interactionHandler.options);util.deepExtend(networkOptions.manipulation,this.manipulation.options);util.deepExtend(networkOptions.physics,this.physics.options);util.deepExtend(networkOptions.global,this.canvas.options);util.deepExtend(networkOptions.global,this.options);this.configurator.setModuleOptions(networkOptions)}if(options.clickToUse!==undefined){if(options.clickToUse===true){if(this.activator===undefined){this.activator=new Activator(this.canvas.frame);this.activator.on(\"change\",function(){_this2.body.emitter.emit(\"activate\")})}}else{if(this.activator!==undefined){this.activator.destroy();delete this.activator}this.body.emitter.emit(\"activate\")}}else{this.body.emitter.emit(\"activate\")}this.canvas.setSize();this.body.emitter.emit(\"startSimulation\")}};Network.prototype._updateVisibleIndices=function(){var nodes=this.body.nodes;var edges=this.body.edges;this.body.nodeIndices=[];this.body.edgeIndices=[];for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){if(!this.clustering._isClusteredNode(nodeId)&&nodes[nodeId].options.hidden===false){this.body.nodeIndices.push(nodes[nodeId].id)}}}for(var edgeId in edges){if(edges.hasOwnProperty(edgeId)){var edge=edges[edgeId];var fromNode=nodes[edge.fromId];var toNode=nodes[edge.toId];var edgeNodesPresent=fromNode!==undefined&&toNode!==undefined;var isVisible=!this.clustering._isClusteredEdge(edgeId)&&edge.options.hidden===false&&edgeNodesPresent&&fromNode.options.hidden===false&&toNode.options.hidden===false;if(isVisible){this.body.edgeIndices.push(edge.id)}}}};Network.prototype.bindEventListeners=function(){var _this3=this;this.body.emitter.on(\"_dataChanged\",function(){_this3.edgesHandler._updateState();_this3.body.emitter.emit(\"_dataUpdated\")});this.body.emitter.on(\"_dataUpdated\",function(){_this3.clustering._updateState();_this3._updateVisibleIndices();_this3._updateValueRange(_this3.body.nodes);_this3._updateValueRange(_this3.body.edges);_this3.body.emitter.emit(\"startSimulation\");_this3.body.emitter.emit(\"_requestRedraw\")})};Network.prototype.setData=function(data){this.body.emitter.emit(\"resetPhysics\");this.body.emitter.emit(\"_resetData\");this.selectionHandler.unselectAll();if(data&&data.dot&&(data.nodes||data.edges)){throw new SyntaxError('Data must contain either parameter \"dot\" or '+' parameter pair \"nodes\" and \"edges\", but not both.')}this.setOptions(data&&data.options);if(data&&data.dot){console.log(\"The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);\");var dotData=dotparser.DOTToGraph(data.dot);this.setData(dotData);return}else if(data&&data.gephi){console.log(\"The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);\");var gephiData=gephiParser.parseGephi(data.gephi);this.setData(gephiData);return}else{this.nodesHandler.setData(data&&data.nodes,true);this.edgesHandler.setData(data&&data.edges,true)}this.body.emitter.emit(\"_dataChanged\");this.body.emitter.emit(\"_dataLoaded\");this.body.emitter.emit(\"initPhysics\")};Network.prototype.destroy=function(){this.body.emitter.emit(\"destroy\");this.body.emitter.off();this.off();delete this.groups;delete this.canvas;delete this.selectionHandler;delete this.interactionHandler;delete this.view;delete this.renderer;delete this.physics;delete this.layoutEngine;delete this.clustering;delete this.manipulation;delete this.nodesHandler;delete this.edgesHandler;delete this.configurator;delete this.images;for(var nodeId in this.body.nodes){if(!this.body.nodes.hasOwnProperty(nodeId))continue;delete this.body.nodes[nodeId]}for(var edgeId in this.body.edges){if(!this.body.edges.hasOwnProperty(edgeId))continue;delete this.body.edges[edgeId]}util.recursiveDOMDelete(this.body.container)};Network.prototype._updateValueRange=function(obj){var id;var valueMin=undefined;var valueMax=undefined;var valueTotal=0;for(id in obj){if(obj.hasOwnProperty(id)){var value=obj[id].getValue();if(value!==undefined){valueMin=valueMin===undefined?value:Math.min(value,valueMin);valueMax=valueMax===undefined?value:Math.max(value,valueMax);valueTotal+=value}}}if(valueMin!==undefined&&valueMax!==undefined){for(id in obj){if(obj.hasOwnProperty(id)){obj[id].setValueRange(valueMin,valueMax,valueTotal)}}}};Network.prototype.isActive=function(){return!this.activator||this.activator.active};Network.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};Network.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};Network.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};Network.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};Network.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};Network.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};Network.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};Network.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};Network.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};Network.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};Network.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};Network.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};Network.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};Network.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};Network.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};Network.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};Network.prototype.editNodeMode=function(){console.log(\"Deprecated: Please use editNode instead of editNodeMode.\");return this.manipulation.editNode.apply(this.manipulation,arguments)};Network.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};Network.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};Network.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};Network.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};Network.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};Network.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};Network.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};Network.prototype.getConnectedNodes=function(objectId){if(this.body.nodes[objectId]!==undefined){return this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments)}else{return this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)}};Network.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};Network.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};Network.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};Network.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};Network.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};Network.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};Network.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments)};Network.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments)};Network.prototype.getNodeAt=function(){var node=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);if(node!==undefined&&node.id!==undefined){return node.id}return node};Network.prototype.getEdgeAt=function(){var edge=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);if(edge!==undefined&&edge.id!==undefined){return edge.id}return edge};Network.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};Network.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};Network.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments);this.redraw()};Network.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};Network.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};Network.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};Network.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};Network.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};Network.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};Network.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};Network.prototype.getOptionsFromConfigurator=function(){var options={};if(this.configurator){options=this.configurator.getOptions.apply(this.configurator)}return options};module.exports=Network},function(module,exports,__webpack_require__){\"use strict\";if(typeof CanvasRenderingContext2D!==\"undefined\"){CanvasRenderingContext2D.prototype.circle=function(x,y,r){this.beginPath();this.arc(x,y,r,0,2*Math.PI,false);this.closePath()};CanvasRenderingContext2D.prototype.square=function(x,y,r){this.beginPath();this.rect(x-r,y-r,r*2,r*2);this.closePath()};CanvasRenderingContext2D.prototype.triangle=function(x,y,r){this.beginPath();r*=1.15;y+=.275*r;var s=r*2;var s2=s/2;var ir=Math.sqrt(3)/6*s;var h=Math.sqrt(s*s-s2*s2);this.moveTo(x,y-(h-ir));this.lineTo(x+s2,y+ir);this.lineTo(x-s2,y+ir);this.lineTo(x,y-(h-ir));this.closePath()};CanvasRenderingContext2D.prototype.triangleDown=function(x,y,r){this.beginPath();r*=1.15;y-=.275*r;var s=r*2;var s2=s/2;var ir=Math.sqrt(3)/6*s;var h=Math.sqrt(s*s-s2*s2);this.moveTo(x,y+(h-ir));this.lineTo(x+s2,y-ir);this.lineTo(x-s2,y-ir);this.lineTo(x,y+(h-ir));this.closePath()};CanvasRenderingContext2D.prototype.star=function(x,y,r){this.beginPath();r*=.82;y+=.1*r;for(var n=0;n<10;n++){var radius=n%2===0?r*1.3:r*.5;this.lineTo(x+radius*Math.sin(n*2*Math.PI/10),y-radius*Math.cos(n*2*Math.PI/10))}this.closePath()};CanvasRenderingContext2D.prototype.diamond=function(x,y,r){this.beginPath();this.lineTo(x,y+r);this.lineTo(x+r,y);this.lineTo(x,y-r);this.lineTo(x-r,y);this.closePath()};CanvasRenderingContext2D.prototype.roundRect=function(x,y,w,h,r){var r2d=Math.PI/180;if(w-2*r<0){r=w/2}if(h-2*r<0){r=h/2}this.beginPath();this.moveTo(x+r,y);this.lineTo(x+w-r,y);this.arc(x+w-r,y+r,r,r2d*270,r2d*360,false);this.lineTo(x+w,y+h-r);this.arc(x+w-r,y+h-r,r,0,r2d*90,false);this.lineTo(x+r,y+h);this.arc(x+r,y+h-r,r,r2d*90,r2d*180,false);this.lineTo(x,y+r);this.arc(x+r,y+r,r,r2d*180,r2d*270,false);this.closePath()};CanvasRenderingContext2D.prototype.ellipse_vis=function(x,y,w,h){var kappa=.5522848,ox=w/2*kappa,oy=h/2*kappa,xe=x+w,ye=y+h,xm=x+w/2,ym=y+h/2;this.beginPath();this.moveTo(x,ym);this.bezierCurveTo(x,ym-oy,xm-ox,y,xm,y);this.bezierCurveTo(xm+ox,y,xe,ym-oy,xe,ym);this.bezierCurveTo(xe,ym+oy,xm+ox,ye,xm,ye);this.bezierCurveTo(xm-ox,ye,x,ym+oy,x,ym);this.closePath()};CanvasRenderingContext2D.prototype.database=function(x,y,w,h){var f=1/3;var wEllipse=w;var hEllipse=h*f;var kappa=.5522848,ox=wEllipse/2*kappa,oy=hEllipse/2*kappa,xe=x+wEllipse,ye=y+hEllipse,xm=x+wEllipse/2,ym=y+hEllipse/2,ymb=y+(h-hEllipse/2),yeb=y+h;this.beginPath();this.moveTo(xe,ym);this.bezierCurveTo(xe,ym+oy,xm+ox,ye,xm,ye);this.bezierCurveTo(xm-ox,ye,x,ym+oy,x,ym);this.bezierCurveTo(x,ym-oy,xm-ox,y,xm,y);this.bezierCurveTo(xm+ox,y,xe,ym-oy,xe,ym);this.lineTo(xe,ymb);this.bezierCurveTo(xe,ymb+oy,xm+ox,yeb,xm,yeb);this.bezierCurveTo(xm-ox,yeb,x,ymb+oy,x,ymb);this.lineTo(x,ym)};CanvasRenderingContext2D.prototype.dashedLine=function(x,y,x2,y2,pattern){this.beginPath();this.moveTo(x,y);var patternLength=pattern.length;var dx=x2-x;var dy=y2-y;var slope=dy/dx;var distRemaining=Math.sqrt(dx*dx+dy*dy);var patternIndex=0;var draw=true;var xStep=0;var dashLength=pattern[0];while(distRemaining>=.1){dashLength=pattern[patternIndex++%patternLength];if(dashLength>distRemaining){dashLength=distRemaining}xStep=Math.sqrt(dashLength*dashLength/(1+slope*slope));xStep=dx<0?-xStep:xStep;x+=xStep;y+=slope*xStep;if(draw===true){this.lineTo(x,y)}else{this.moveTo(x,y)}distRemaining-=dashLength;draw=!draw}};CanvasRenderingContext2D.prototype.hexagon=function(x,y,r){this.beginPath();var sides=6;var a=Math.PI*2/sides;this.moveTo(x+r,y);for(var i=1;i<sides;i++){this.lineTo(x+r*Math.cos(a*i),y+r*Math.sin(a*i))}this.closePath()}}},function(module,exports,__webpack_require__){\"use strict\";exports[\"en\"]={edit:\"Edit\",del:\"Delete selected\",back:\"Back\",addNode:\"Add Node\",addEdge:\"Add Edge\",editNode:\"Edit Node\",editEdge:\"Edit Edge\",addDescription:\"Click in an empty space to place a new node.\",edgeDescription:\"Click on a node and drag the edge to another node to connect them.\",editEdgeDescription:\"Click on the control points and drag them to a node to connect to it.\",createEdgeError:\"Cannot link edges to a cluster.\",deleteClusterError:\"Clusters cannot be deleted.\",editClusterError:\"Clusters cannot be edited.\"};exports[\"en_EN\"]=exports[\"en\"];exports[\"en_US\"]=exports[\"en\"];exports[\"de\"]={edit:\"Editieren\",del:\"Lösche Auswahl\",back:\"Zurück\",addNode:\"Knoten hinzufügen\",addEdge:\"Kante hinzufügen\",editNode:\"Knoten editieren\",editEdge:\"Kante editieren\",addDescription:\"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.\",edgeDescription:\"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.\",editEdgeDescription:\"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.\",createEdgeError:\"Es ist nicht möglich, Kanten mit Clustern zu verbinden.\",deleteClusterError:\"Cluster können nicht gelöscht werden.\",editClusterError:\"Cluster können nicht editiert werden.\"};exports[\"de_DE\"]=exports[\"de\"];exports[\"es\"]={edit:\"Editar\",del:\"Eliminar selección\",back:\"Átras\",addNode:\"Añadir nodo\",addEdge:\"Añadir arista\",editNode:\"Editar nodo\",editEdge:\"Editar arista\",addDescription:\"Haga clic en un lugar vacío para colocar un nuevo nodo.\",edgeDescription:\"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.\",editEdgeDescription:\"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.\",createEdgeError:\"No se puede conectar una arista a un grupo.\",deleteClusterError:\"No es posible eliminar grupos.\",editClusterError:\"No es posible editar grupos.\"};exports[\"es_ES\"]=exports[\"es\"];exports[\"it\"]={edit:\"Modifica\",del:\"Cancella la selezione\",back:\"Indietro\",addNode:\"Aggiungi un nodo\",addEdge:\"Aggiungi un vertice\",editNode:\"Modifica il nodo\",editEdge:\"Modifica il vertice\",addDescription:\"Clicca per aggiungere un nuovo nodo\",edgeDescription:\"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.\",editEdgeDescription:\"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.\",createEdgeError:\"Non si possono collegare vertici ad un cluster\",deleteClusterError:\"I cluster non possono essere cancellati\",editClusterError:\"I clusters non possono essere modificati.\"};exports[\"it_IT\"]=exports[\"it\"];exports[\"nl\"]={edit:\"Wijzigen\",del:\"Selectie verwijderen\",\nback:\"Terug\",addNode:\"Node toevoegen\",addEdge:\"Link toevoegen\",editNode:\"Node wijzigen\",editEdge:\"Link wijzigen\",addDescription:\"Klik op een leeg gebied om een nieuwe node te maken.\",edgeDescription:\"Klik op een node en sleep de link naar een andere node om ze te verbinden.\",editEdgeDescription:\"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.\",createEdgeError:\"Kan geen link maken naar een cluster.\",deleteClusterError:\"Clusters kunnen niet worden verwijderd.\",editClusterError:\"Clusters kunnen niet worden aangepast.\"};exports[\"nl_NL\"]=exports[\"nl\"];exports[\"nl_BE\"]=exports[\"nl\"];exports[\"pt-br\"]={edit:\"Editar\",del:\"Remover selecionado\",back:\"Voltar\",addNode:\"Adicionar nó\",addEdge:\"Adicionar aresta\",editNode:\"Editar nó\",editEdge:\"Editar aresta\",addDescription:\"Clique em um espaço em branco para adicionar um novo nó\",edgeDescription:\"Clique em um nó e arraste a aresta até outro nó para conectá-los\",editEdgeDescription:\"Clique nos pontos de controle e os arraste para um nó para conectá-los\",createEdgeError:\"Não foi possível linkar arestas a um cluster.\",deleteClusterError:\"Clusters não puderam ser removidos.\",editClusterError:\"Clusters não puderam ser editados.\"};exports[\"pt-BR\"]=exports[\"pt-br\"];exports[\"pt_BR\"]=exports[\"pt-br\"];exports[\"pt_br\"]=exports[\"pt-br\"];exports[\"ru\"]={edit:\"Редактировать\",del:\"Удалить выбранное\",back:\"Назад\",addNode:\"Добавить узел\",addEdge:\"Добавить ребро\",editNode:\"Редактировать узел\",editEdge:\"Редактировать ребро\",addDescription:\"Кликните в свободное место, чтобы добавить новый узел.\",edgeDescription:\"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.\",editEdgeDescription:\"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.\",createEdgeError:\"Невозможно соединить ребра в кластер.\",deleteClusterError:\"Кластеры не могут быть удалены\",editClusterError:\"Кластеры недоступны для редактирования.\"};exports[\"ru_RU\"]=exports[\"ru\"];exports[\"cn\"]={edit:\"编辑\",del:\"删除选定\",back:\"返回\",addNode:\"添加节点\",addEdge:\"添加连接线\",editNode:\"编辑节点\",editEdge:\"编辑连接线\",addDescription:\"单击空白处放置新节点。\",edgeDescription:\"单击某个节点并将该连接线拖动到另一个节点以连接它们。\",editEdgeDescription:\"单击控制节点并将它们拖到节点上连接。\",createEdgeError:\"无法将连接线连接到群集。\",deleteClusterError:\"无法删除群集。\",editClusterError:\"无法编辑群集。\"};exports[\"zh_CN\"]=exports[\"cn\"]},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CachedImage=function(){function CachedImage(){(0,_classCallCheck3[\"default\"])(this,CachedImage);this.NUM_ITERATIONS=4;this.image=new Image;this.canvas=document.createElement(\"canvas\")}(0,_createClass3[\"default\"])(CachedImage,[{key:\"init\",value:function init(){if(this.initialized())return;this.src=this.image.src;var w=this.image.width;var h=this.image.height;this.width=w;this.height=h;var h2=Math.floor(h/2);var h4=Math.floor(h/4);var h8=Math.floor(h/8);var h16=Math.floor(h/16);var w2=Math.floor(w/2);var w4=Math.floor(w/4);var w8=Math.floor(w/8);var w16=Math.floor(w/16);this.canvas.width=3*w4;this.canvas.height=h2;this.coordinates=[[0,0,w2,h2],[w2,0,w4,h4],[w2,h4,w8,h8],[5*w8,h4,w16,h16]];this._fillMipMap()}},{key:\"initialized\",value:function initialized(){return this.coordinates!==undefined}},{key:\"_fillMipMap\",value:function _fillMipMap(){var ctx=this.canvas.getContext(\"2d\");var to=this.coordinates[0];ctx.drawImage(this.image,to[0],to[1],to[2],to[3]);for(var iterations=1;iterations<this.NUM_ITERATIONS;iterations++){var from=this.coordinates[iterations-1];var _to=this.coordinates[iterations];ctx.drawImage(this.canvas,from[0],from[1],from[2],from[3],_to[0],_to[1],_to[2],_to[3])}}},{key:\"drawImageAtPosition\",value:function drawImageAtPosition(ctx,factor,left,top,width,height){if(!this.initialized())return;if(factor>2){factor*=.5;var iterations=0;while(factor>2&&iterations<this.NUM_ITERATIONS){factor*=.5;iterations+=1}if(iterations>=this.NUM_ITERATIONS){iterations=this.NUM_ITERATIONS-1}var from=this.coordinates[iterations];ctx.drawImage(this.canvas,from[0],from[1],from[2],from[3],left,top,width,height)}else{ctx.drawImage(this.image,left,top,width,height)}}}]);return CachedImage}();exports[\"default\"]=CachedImage},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Groups=function(){function Groups(){(0,_classCallCheck3[\"default\"])(this,Groups);this.clear();this.defaultIndex=0;this.groupsArray=[];this.groupIndex=0;this.defaultGroups=[{border:\"#2B7CE9\",background:\"#97C2FC\",highlight:{border:\"#2B7CE9\",background:\"#D2E5FF\"},hover:{border:\"#2B7CE9\",background:\"#D2E5FF\"}},{border:\"#FFA500\",background:\"#FFFF00\",highlight:{border:\"#FFA500\",background:\"#FFFFA3\"},hover:{border:\"#FFA500\",background:\"#FFFFA3\"}},{border:\"#FA0A10\",background:\"#FB7E81\",highlight:{border:\"#FA0A10\",background:\"#FFAFB1\"},hover:{border:\"#FA0A10\",background:\"#FFAFB1\"}},{border:\"#41A906\",background:\"#7BE141\",highlight:{border:\"#41A906\",background:\"#A1EC76\"},hover:{border:\"#41A906\",background:\"#A1EC76\"}},{border:\"#E129F0\",background:\"#EB7DF4\",highlight:{border:\"#E129F0\",background:\"#F0B3F5\"},hover:{border:\"#E129F0\",background:\"#F0B3F5\"}},{border:\"#7C29F0\",background:\"#AD85E4\",highlight:{border:\"#7C29F0\",background:\"#D3BDF0\"},hover:{border:\"#7C29F0\",background:\"#D3BDF0\"}},{border:\"#C37F00\",background:\"#FFA807\",highlight:{border:\"#C37F00\",background:\"#FFCA66\"},hover:{border:\"#C37F00\",background:\"#FFCA66\"}},{border:\"#4220FB\",background:\"#6E6EFD\",highlight:{border:\"#4220FB\",background:\"#9B9BFD\"},hover:{border:\"#4220FB\",background:\"#9B9BFD\"}},{border:\"#FD5A77\",background:\"#FFC0CB\",highlight:{border:\"#FD5A77\",background:\"#FFD1D9\"},hover:{border:\"#FD5A77\",background:\"#FFD1D9\"}},{border:\"#4AD63A\",background:\"#C2FABC\",highlight:{border:\"#4AD63A\",background:\"#E6FFE3\"},hover:{border:\"#4AD63A\",background:\"#E6FFE3\"}},{border:\"#990000\",background:\"#EE0000\",highlight:{border:\"#BB0000\",background:\"#FF3333\"},hover:{border:\"#BB0000\",background:\"#FF3333\"}},{border:\"#FF6000\",background:\"#FF6000\",highlight:{border:\"#FF6000\",background:\"#FF6000\"},hover:{border:\"#FF6000\",background:\"#FF6000\"}},{border:\"#97C2FC\",background:\"#2B7CE9\",highlight:{border:\"#D2E5FF\",background:\"#2B7CE9\"},hover:{border:\"#D2E5FF\",background:\"#2B7CE9\"}},{border:\"#399605\",background:\"#255C03\",highlight:{border:\"#399605\",background:\"#255C03\"},hover:{border:\"#399605\",background:\"#255C03\"}},{border:\"#B70054\",background:\"#FF007E\",highlight:{border:\"#B70054\",background:\"#FF007E\"},hover:{border:\"#B70054\",background:\"#FF007E\"}},{border:\"#AD85E4\",background:\"#7C29F0\",highlight:{border:\"#D3BDF0\",background:\"#7C29F0\"},hover:{border:\"#D3BDF0\",background:\"#7C29F0\"}},{border:\"#4557FA\",background:\"#000EA1\",highlight:{border:\"#6E6EFD\",background:\"#000EA1\"},hover:{border:\"#6E6EFD\",background:\"#000EA1\"}},{border:\"#FFC0CB\",background:\"#FD5A77\",highlight:{border:\"#FFD1D9\",background:\"#FD5A77\"},hover:{border:\"#FFD1D9\",background:\"#FD5A77\"}},{border:\"#C2FABC\",background:\"#74D66A\",highlight:{border:\"#E6FFE3\",background:\"#74D66A\"},hover:{border:\"#E6FFE3\",background:\"#74D66A\"}},{border:\"#EE0000\",background:\"#990000\",highlight:{border:\"#FF3333\",background:\"#BB0000\"},hover:{border:\"#FF3333\",background:\"#BB0000\"}}];this.options={};this.defaultOptions={useDefaultGroups:true};util.extend(this.options,this.defaultOptions)}(0,_createClass3[\"default\"])(Groups,[{key:\"setOptions\",value:function setOptions(options){var optionFields=[\"useDefaultGroups\"];if(options!==undefined){for(var groupName in options){if(options.hasOwnProperty(groupName)){if(optionFields.indexOf(groupName)===-1){var group=options[groupName];this.add(groupName,group)}}}}}},{key:\"clear\",value:function clear(){this.groups={};this.groupsArray=[]}},{key:\"get\",value:function get(groupname){var shouldCreate=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var group=this.groups[groupname];if(group===undefined&&shouldCreate){if(this.options.useDefaultGroups===false&&this.groupsArray.length>0){var index=this.groupIndex%this.groupsArray.length;this.groupIndex++;group={};group.color=this.groups[this.groupsArray[index]];this.groups[groupname]=group}else{var _index=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++;group={};group.color=this.defaultGroups[_index];this.groups[groupname]=group}}return group}},{key:\"add\",value:function add(groupName,style){this.groups[groupName]=style;this.groupsArray.push(groupName);return style}}]);return Groups}();exports[\"default\"]=Groups},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Node=__webpack_require__(47)[\"default\"];var NodesHandler=function(){function NodesHandler(body,images,groups,layoutEngine){var _this=this;(0,_classCallCheck3[\"default\"])(this,NodesHandler);this.body=body;this.images=images;this.groups=groups;this.layoutEngine=layoutEngine;this.body.functions.createNode=this.create.bind(this);this.nodesListeners={add:function add(event,params){_this.add(params.items)},update:function update(event,params){_this.update(params.items,params.data,params.oldData)},remove:function remove(event,params){_this.remove(params.items)}};this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:undefined,color:{border:\"#2B7CE9\",background:\"#97C2FC\",highlight:{border:\"#2B7CE9\",background:\"#D2E5FF\"},hover:{border:\"#2B7CE9\",background:\"#D2E5FF\"}},fixed:{x:false,y:false},font:{color:\"#343434\",size:14,face:\"arial\",background:\"none\",strokeWidth:0,strokeColor:\"#ffffff\",align:\"center\",vadjust:0,multi:false,bold:{mod:\"bold\"},boldital:{mod:\"bold italic\"},ital:{mod:\"italic\"},mono:{mod:\"\",size:15,face:\"monospace\",vadjust:2}},group:undefined,hidden:false,icon:{face:\"FontAwesome\",code:undefined,size:50,color:\"#2B7CE9\"},image:undefined,label:undefined,labelHighlightBold:true,level:undefined,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:true,scaling:{min:10,max:30,label:{enabled:false,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function customScalingFunction(min,max,total,value){if(max===min){return.5}else{var scale=1/(max-min);return Math.max(0,(value-min)*scale)}}},shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:10,x:5,y:5},shape:\"ellipse\",shapeProperties:{borderDashes:false,borderRadius:6,interpolation:true,useImageSize:false,useBorderWithImage:false},size:25,title:undefined,value:undefined,x:undefined,y:undefined};if(this.defaultOptions.mass<=0){throw\"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative\"}this.options=util.bridgeObject(this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(NodesHandler,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this2=this;this.body.emitter.on(\"refreshNodes\",this.refresh.bind(this));this.body.emitter.on(\"refresh\",this.refresh.bind(this));this.body.emitter.on(\"destroy\",function(){util.forEach(_this2.nodesListeners,function(callback,event){if(_this2.body.data.nodes)_this2.body.data.nodes.off(event,callback)});delete _this2.body.functions.createNode;delete _this2.nodesListeners.add;delete _this2.nodesListeners.update;delete _this2.nodesListeners.remove;delete _this2.nodesListeners})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){Node.parseOptions(this.options,options);if(options.shape!==undefined){for(var nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){this.body.nodes[nodeId].updateShape()}}}if(options.font!==undefined){for(var _nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(_nodeId)){this.body.nodes[_nodeId].updateLabelModule();this.body.nodes[_nodeId].needsRefresh()}}}if(options.size!==undefined){for(var _nodeId2 in this.body.nodes){if(this.body.nodes.hasOwnProperty(_nodeId2)){this.body.nodes[_nodeId2].needsRefresh()}}}if(options.hidden!==undefined||options.physics!==undefined){this.body.emitter.emit(\"_dataChanged\")}}}},{key:\"setData\",value:function setData(nodes){var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var oldNodesData=this.body.data.nodes;if(nodes instanceof DataSet||nodes instanceof DataView){this.body.data.nodes=nodes}else if(Array.isArray(nodes)){this.body.data.nodes=new DataSet;this.body.data.nodes.add(nodes)}else if(!nodes){this.body.data.nodes=new DataSet}else{throw new TypeError(\"Array or DataSet expected\")}if(oldNodesData){util.forEach(this.nodesListeners,function(callback,event){oldNodesData.off(event,callback)})}this.body.nodes={};if(this.body.data.nodes){var me=this;util.forEach(this.nodesListeners,function(callback,event){me.body.data.nodes.on(event,callback)});var ids=this.body.data.nodes.getIds();this.add(ids,true)}if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"add\",value:function add(ids){var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var id=void 0;var newNodes=[];for(var i=0;i<ids.length;i++){id=ids[i];var properties=this.body.data.nodes.get(id);var node=this.create(properties);newNodes.push(node);this.body.nodes[id]=node}this.layoutEngine.positionInitially(newNodes);if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"update\",value:function update(ids,changedData,oldData){var nodes=this.body.nodes;var dataChanged=false;for(var i=0;i<ids.length;i++){var id=ids[i];var node=nodes[id];var data=changedData[i];if(node!==undefined){if(node.setOptions(data)){dataChanged=true}}else{dataChanged=true;node=this.create(data);nodes[id]=node}}if(!dataChanged&&oldData!==undefined){dataChanged=changedData.some(function(newValue,index){var oldValue=oldData[index];return oldValue&&oldValue.level!==newValue.level})}if(dataChanged===true){this.body.emitter.emit(\"_dataChanged\")}else{this.body.emitter.emit(\"_dataUpdated\")}}},{key:\"remove\",value:function remove(ids){var nodes=this.body.nodes;for(var i=0;i<ids.length;i++){var id=ids[i];delete nodes[id]}this.body.emitter.emit(\"_dataChanged\")}},{key:\"create\",value:function create(properties){var constructorClass=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Node;return new constructorClass(properties,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:\"refresh\",value:function refresh(){var _this3=this;var clearPositions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;util.forEach(this.body.nodes,function(node,nodeId){var data=_this3.body.data.nodes.get(nodeId);if(data!==undefined){if(clearPositions===true){node.setOptions({x:null,y:null})}node.setOptions({fixed:false});node.setOptions(data)}})}},{key:\"getPositions\",value:function getPositions(ids){var dataArray={};if(ids!==undefined){if(Array.isArray(ids)===true){for(var i=0;i<ids.length;i++){if(this.body.nodes[ids[i]]!==undefined){var node=this.body.nodes[ids[i]];dataArray[ids[i]]={x:Math.round(node.x),y:Math.round(node.y)}}}}else{if(this.body.nodes[ids]!==undefined){var _node=this.body.nodes[ids];dataArray[ids]={x:Math.round(_node.x),y:Math.round(_node.y)}}}}else{for(var _i=0;_i<this.body.nodeIndices.length;_i++){var _node2=this.body.nodes[this.body.nodeIndices[_i]];dataArray[this.body.nodeIndices[_i]]={x:Math.round(_node2.x),y:Math.round(_node2.y)}}}return dataArray}},{key:\"storePositions\",value:function storePositions(){var dataArray=[];var dataset=this.body.data.nodes.getDataSet();for(var nodeId in dataset._data){if(dataset._data.hasOwnProperty(nodeId)){var node=this.body.nodes[nodeId];if(dataset._data[nodeId].x!=Math.round(node.x)||dataset._data[nodeId].y!=Math.round(node.y)){dataArray.push({id:node.id,x:Math.round(node.x),y:Math.round(node.y)})}}}dataset.update(dataArray)}},{key:\"getBoundingBox\",value:function getBoundingBox(nodeId){if(this.body.nodes[nodeId]!==undefined){return this.body.nodes[nodeId].shape.boundingBox}}},{key:\"getConnectedNodes\",value:function getConnectedNodes(nodeId,direction){var nodeList=[];if(this.body.nodes[nodeId]!==undefined){var node=this.body.nodes[nodeId];var nodeObj={};for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];if(direction!==\"to\"&&edge.toId==node.id){if(nodeObj[edge.fromId]===undefined){nodeList.push(edge.fromId);nodeObj[edge.fromId]=true}}else if(direction!==\"from\"&&edge.fromId==node.id){if(nodeObj[edge.toId]===undefined){nodeList.push(edge.toId);nodeObj[edge.toId]=true}}}}return nodeList}},{key:\"getConnectedEdges\",value:function getConnectedEdges(nodeId){var edgeList=[];if(this.body.nodes[nodeId]!==undefined){var node=this.body.nodes[nodeId];for(var i=0;i<node.edges.length;i++){edgeList.push(node.edges[i].id)}}else{console.log(\"NodeId provided for getConnectedEdges does not exist. Provided: \",nodeId)}return edgeList}},{key:\"moveNode\",value:function moveNode(nodeId,x,y){var _this4=this;if(this.body.nodes[nodeId]!==undefined){this.body.nodes[nodeId].x=Number(x);this.body.nodes[nodeId].y=Number(y);setTimeout(function(){_this4.body.emitter.emit(\"startSimulation\")},0)}else{console.log(\"Node id supplied to moveNode does not exist. Provided: \",nodeId)}}}]);return NodesHandler}();exports[\"default\"]=NodesHandler},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(189),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(49);__webpack_require__(60);module.exports=__webpack_require__(190)},function(module,exports,__webpack_require__){var classof=__webpack_require__(86);var ITERATOR=__webpack_require__(13)(\"iterator\");var Iterators=__webpack_require__(31);module.exports=__webpack_require__(7).isIterable=function(it){var O=Object(it);return O[ITERATOR]!==undefined||\"@@iterator\"in O||Iterators.hasOwnProperty(classof(O))}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var LabelAccumulator=__webpack_require__(192)[\"default\"];var ComponentUtil=__webpack_require__(48)[\"default\"];var LabelSplitter=function(){function LabelSplitter(ctx,parent,selected,hover){var _this=this;(0,_classCallCheck3[\"default\"])(this,LabelSplitter);this.ctx=ctx;this.parent=parent;var textWidth=function textWidth(text,mod){if(text===undefined)return 0;var values=_this.parent.getFormattingValues(ctx,selected,hover,mod);var width=0;if(text!==\"\"){var measure=_this.ctx.measureText(text);width=measure.width}return{width:width,values:values}};this.lines=new LabelAccumulator(textWidth)}(0,_createClass3[\"default\"])(LabelSplitter,[{key:\"process\",value:function process(text){if(!ComponentUtil.isValidLabel(text)){return this.lines.finalize()}var font=this.parent.fontOptions;text=text.replace(/\\r\\n/g,\"\\n\");text=text.replace(/\\r/g,\"\\n\");var nlLines=String(text).split(\"\\n\");var lineCount=nlLines.length;if(font.multi){for(var i=0;i<lineCount;i++){var blocks=this.splitBlocks(nlLines[i],font.multi);if(blocks===undefined)continue;if(blocks.length===0){this.lines.newLine(\"\");continue}if(font.maxWdt>0){for(var j=0;j<blocks.length;j++){var mod=blocks[j].mod;var _text=blocks[j].text;this.splitStringIntoLines(_text,mod,true)}}else{for(var _j=0;_j<blocks.length;_j++){var _mod=blocks[_j].mod;var _text2=blocks[_j].text;this.lines.append(_text2,_mod)}}this.lines.newLine()}}else{if(font.maxWdt>0){for(var _i=0;_i<lineCount;_i++){this.splitStringIntoLines(nlLines[_i])}}else{for(var _i2=0;_i2<lineCount;_i2++){this.lines.newLine(nlLines[_i2])}}}return this.lines.finalize()}},{key:\"decodeMarkupSystem\",value:function decodeMarkupSystem(markupSystem){var system=\"none\";if(markupSystem===\"markdown\"||markupSystem===\"md\"){system=\"markdown\"}else if(markupSystem===true||markupSystem===\"html\"){system=\"html\"}return system}},{key:\"splitHtmlBlocks\",value:function splitHtmlBlocks(text){var blocks=[];var s={bold:false,ital:false,mono:false,spacing:false,position:0,buffer:\"\",modStack:[]};s.mod=function(){return this.modStack.length===0?\"normal\":this.modStack[0]};s.modName=function(){if(this.modStack.length===0)return\"normal\";else if(this.modStack[0]===\"mono\")return\"mono\";else{if(s.bold&&s.ital){return\"boldital\"}else if(s.bold){return\"bold\"}else if(s.ital){return\"ital\"}}};s.emitBlock=function(){var override=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.spacing){this.add(\" \");this.spacing=false}if(this.buffer.length>0){blocks.push({text:this.buffer,mod:this.modName()});this.buffer=\"\"}};s.add=function(text){if(text===\" \"){s.spacing=true}if(s.spacing){this.buffer+=\" \";this.spacing=false}if(text!=\" \"){this.buffer+=text}};while(s.position<text.length){var ch=text.charAt(s.position);if(/[ \\t]/.test(ch)){if(!s.mono){s.spacing=true}else{s.add(ch)}}else if(/</.test(ch)){if(!s.mono&&!s.bold&&/<b>/.test(text.substr(s.position,3))){s.emitBlock();s.bold=true;s.modStack.unshift(\"bold\");s.position+=2}else if(!s.mono&&!s.ital&&/<i>/.test(text.substr(s.position,3))){s.emitBlock();s.ital=true;s.modStack.unshift(\"ital\");s.position+=2}else if(!s.mono&&/<code>/.test(text.substr(s.position,6))){s.emitBlock();s.mono=true;s.modStack.unshift(\"mono\");s.position+=5}else if(!s.mono&&s.mod()===\"bold\"&&/<\\/b>/.test(text.substr(s.position,4))){s.emitBlock();s.bold=false;s.modStack.shift();s.position+=3}else if(!s.mono&&s.mod()===\"ital\"&&/<\\/i>/.test(text.substr(s.position,4))){s.emitBlock();s.ital=false;s.modStack.shift();s.position+=3}else if(s.mod()===\"mono\"&&/<\\/code>/.test(text.substr(s.position,7))){s.emitBlock();s.mono=false;s.modStack.shift();s.position+=6}else{s.add(ch)}}else if(/&/.test(ch)){if(/</.test(text.substr(s.position,4))){s.add(\"<\");s.position+=3}else if(/&/.test(text.substr(s.position,5))){s.add(\"&\");s.position+=4}else{s.add(\"&\")}}else{s.add(ch)}s.position++}s.emitBlock();return blocks}},{key:\"splitMarkdownBlocks\",value:function splitMarkdownBlocks(text){var blocks=[];var s={bold:false,ital:false,mono:false,beginable:true,spacing:false,position:0,buffer:\"\",modStack:[]};s.mod=function(){return this.modStack.length===0?\"normal\":this.modStack[0]};s.modName=function(){if(this.modStack.length===0)return\"normal\";else if(this.modStack[0]===\"mono\")return\"mono\";else{if(s.bold&&s.ital){return\"boldital\"}else if(s.bold){return\"bold\"}else if(s.ital){return\"ital\"}}};s.emitBlock=function(){var override=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.spacing){this.add(\" \");this.spacing=false}if(this.buffer.length>0){blocks.push({text:this.buffer,mod:this.modName()});this.buffer=\"\"}};s.add=function(text){if(text===\" \"){s.spacing=true}if(s.spacing){this.buffer+=\" \";this.spacing=false}if(text!=\" \"){this.buffer+=text}};while(s.position<text.length){var ch=text.charAt(s.position);if(/[ \\t]/.test(ch)){if(!s.mono){s.spacing=true}else{s.add(ch)}s.beginable=true}else if(/\\\\/.test(ch)){if(s.position<text.length+1){s.position++;ch=text.charAt(s.position);if(/ \\t/.test(ch)){s.spacing=true}else{s.add(ch);s.beginable=false}}}else if(!s.mono&&!s.bold&&(s.beginable||s.spacing)&&/\\*/.test(ch)){s.emitBlock();s.bold=true;s.modStack.unshift(\"bold\")}else if(!s.mono&&!s.ital&&(s.beginable||s.spacing)&&/\\_/.test(ch)){s.emitBlock();s.ital=true;s.modStack.unshift(\"ital\")}else if(!s.mono&&(s.beginable||s.spacing)&&/`/.test(ch)){s.emitBlock();s.mono=true;s.modStack.unshift(\"mono\")}else if(!s.mono&&s.mod()===\"bold\"&&/\\*/.test(ch)){if(s.position===text.length-1||/[.,_` \\t\\n]/.test(text.charAt(s.position+1))){s.emitBlock();s.bold=false;s.modStack.shift()}else{s.add(ch)}}else if(!s.mono&&s.mod()===\"ital\"&&/\\_/.test(ch)){if(s.position===text.length-1||/[.,*` \\t\\n]/.test(text.charAt(s.position+1))){s.emitBlock();s.ital=false;s.modStack.shift()}else{s.add(ch)}}else if(s.mono&&s.mod()===\"mono\"&&/`/.test(ch)){if(s.position===text.length-1||/[.,*_ \\t\\n]/.test(text.charAt(s.position+1))){s.emitBlock();s.mono=false;s.modStack.shift()}else{s.add(ch)}}else{s.add(ch);s.beginable=false}s.position++}s.emitBlock();return blocks}},{key:\"splitBlocks\",value:function splitBlocks(text,markupSystem){var system=this.decodeMarkupSystem(markupSystem);if(system===\"none\"){return[{text:text,mod:\"normal\"}]}else if(system===\"markdown\"){return this.splitMarkdownBlocks(text)}else if(system===\"html\"){return this.splitHtmlBlocks(text)}}},{key:\"overMaxWidth\",value:function overMaxWidth(text){var width=this.ctx.measureText(text).width;return this.lines.curWidth()+width>this.parent.fontOptions.maxWdt}},{key:\"getLongestFit\",value:function getLongestFit(words){var text=\"\";var w=0;while(w<words.length){var pre=text===\"\"?\"\":\" \";var newText=text+pre+words[w];if(this.overMaxWidth(newText))break;text=newText;w++}return w}},{key:\"getLongestFitWord\",value:function getLongestFitWord(words){var w=0;while(w<words.length){if(this.overMaxWidth(words.slice(0,w)))break;w++}return w}},{key:\"splitStringIntoLines\",value:function splitStringIntoLines(str){var mod=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"normal\";var appendLast=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;str=str.replace(/^( +)/g,\"$1\\r\");str=str.replace(/([^\\r][^ ]*)( +)/g,\"$1\\r$2\\r\");var words=str.split(\"\\r\");while(words.length>0){var w=this.getLongestFit(words);if(w===0){var word=words[0];var x=this.getLongestFitWord(word);this.lines.newLine(word.slice(0,x),mod);words[0]=word.slice(x)}else{var newW=w;if(words[w-1]===\" \"){w--}else if(words[newW]===\" \"){newW++}var text=words.slice(0,w).join(\"\");if(w==words.length&&appendLast){this.lines.append(text,mod)}else{this.lines.newLine(text,mod)}words=words.slice(newW)}}}}]);return LabelSplitter}();exports[\"default\"]=LabelSplitter},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _assign=__webpack_require__(90);var _assign2=_interopRequireDefault(_assign);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var LabelAccumulator=function(){function LabelAccumulator(measureText){(0,_classCallCheck3[\"default\"])(this,LabelAccumulator);this.measureText=measureText;this.current=0;this.width=0;this.height=0;this.lines=[]}(0,_createClass3[\"default\"])(LabelAccumulator,[{key:\"_add\",value:function _add(l,text){var mod=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"normal\";if(this.lines[l]===undefined){this.lines[l]={width:0,height:0,blocks:[]}}var tmpText=text;if(text===undefined||text===\"\")tmpText=\" \";var result=this.measureText(tmpText,mod);var block=(0,_assign2[\"default\"])({},result.values);block.text=text;block.width=result.width;block.mod=mod;if(text===undefined||text===\"\"){block.width=0}this.lines[l].blocks.push(block);this.lines[l].width+=block.width}},{key:\"curWidth\",value:function curWidth(){var line=this.lines[this.current];if(line===undefined)return 0;return line.width}},{key:\"append\",value:function append(text){var mod=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"normal\";this._add(this.current,text,mod)}},{key:\"newLine\",value:function newLine(text){var mod=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"normal\";this._add(this.current,text,mod);this.current++}},{key:\"determineLineHeights\",value:function determineLineHeights(){for(var k=0;k<this.lines.length;k++){var line=this.lines[k];var height=0;if(line.blocks!==undefined){for(var l=0;l<line.blocks.length;l++){var block=line.blocks[l];if(height<block.height){height=block.height}}}line.height=height}}},{key:\"determineLabelSize\",value:function determineLabelSize(){var width=0;var height=0;for(var k=0;k<this.lines.length;k++){var line=this.lines[k];if(line.width>width){width=line.width}height+=line.height}this.width=width;this.height=height}},{key:\"removeEmptyBlocks\",value:function removeEmptyBlocks(){var tmpLines=[];for(var k=0;k<this.lines.length;k++){var line=this.lines[k];if(line.blocks.length===0)continue;if(k===this.lines.length-1){if(line.width===0)continue}var tmpLine={};(0,_assign2[\"default\"])(tmpLine,line);tmpLine.blocks=[];var firstEmptyBlock=void 0;var tmpBlocks=[];for(var l=0;l<line.blocks.length;l++){var block=line.blocks[l];if(block.width!==0){tmpBlocks.push(block)}else{if(firstEmptyBlock===undefined){firstEmptyBlock=block}}}if(tmpBlocks.length===0&&firstEmptyBlock!==undefined){tmpBlocks.push(firstEmptyBlock)}tmpLine.blocks=tmpBlocks;tmpLines.push(tmpLine)}return tmpLines}},{key:\"finalize\",value:function finalize(){this.determineLineHeights();this.determineLabelSize();var tmpLines=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:tmpLines}}}]);return LabelAccumulator}();exports[\"default\"]=LabelAccumulator},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Box=function(_NodeBase){(0,_inherits3[\"default\"])(Box,_NodeBase);function Box(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Box);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Box.__proto__||(0,_getPrototypeOf2[\"default\"])(Box)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Box,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);this.width=dimensions.width+this.margin.right+this.margin.left;this.height=dimensions.height+this.margin.top+this.margin.bottom;this.radius=this.width/2}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this.initContextForDraw(ctx,values);ctx.roundRect(this.left,this.top,this.width,this.height,values.borderRadius);this.performFill(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,selected,hover)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y,ctx,selected,hover){this._updateBoundingBox(x,y,ctx,selected,hover)\n;var borderRadius=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(borderRadius)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);var borderWidth=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(angle)),Math.abs(this.height/2/Math.sin(angle)))+borderWidth}}]);return Box}(_NodeBase3[\"default\"]);exports[\"default\"]=Box},function(module,exports,__webpack_require__){__webpack_require__(195);module.exports=__webpack_require__(7).Object.getPrototypeOf},function(module,exports,__webpack_require__){var toObject=__webpack_require__(41);var $getPrototypeOf=__webpack_require__(85);__webpack_require__(87)(\"getPrototypeOf\",function(){return function getPrototypeOf(it){return $getPrototypeOf(toObject(it))}})},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(197),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(198);module.exports=__webpack_require__(7).Object.setPrototypeOf},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S,\"Object\",{setPrototypeOf:__webpack_require__(199).set})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);var anObject=__webpack_require__(27);var check=function(O,proto){anObject(O);if(!isObject(proto)&&proto!==null)throw TypeError(proto+\": can't set as prototype!\")};module.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(test,buggy,set){try{set=__webpack_require__(80)(Function.call,__webpack_require__(89).f(Object.prototype,\"__proto__\").set,2);set(test,[]);buggy=!(test instanceof Array)}catch(e){buggy=true}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O}}({},false):undefined),check:check}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CircleImageBase2=__webpack_require__(73);var _CircleImageBase3=_interopRequireDefault(_CircleImageBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Circle=function(_CircleImageBase){(0,_inherits3[\"default\"])(Circle,_CircleImageBase);function Circle(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Circle);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Circle.__proto__||(0,_getPrototypeOf2[\"default\"])(Circle)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Circle,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);var diameter=Math.max(dimensions.width+this.margin.right+this.margin.left,dimensions.height+this.margin.top+this.margin.bottom);this.options.size=diameter/2;this.width=diameter;this.height=diameter;this.radius=this.width/2}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this._drawRawCircle(ctx,x,y,values);this.updateBoundingBox(x,y);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,y,selected,hover)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.size;this.boundingBox.left=x-this.options.size;this.boundingBox.right=x+this.options.size;this.boundingBox.bottom=y+this.options.size}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);return this.width*.5}}]);return Circle}(_CircleImageBase3[\"default\"]);exports[\"default\"]=Circle},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CircleImageBase2=__webpack_require__(73);var _CircleImageBase3=_interopRequireDefault(_CircleImageBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CircularImage=function(_CircleImageBase){(0,_inherits3[\"default\"])(CircularImage,_CircleImageBase);function CircularImage(options,body,labelModule,imageObj,imageObjAlt){(0,_classCallCheck3[\"default\"])(this,CircularImage);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(CircularImage.__proto__||(0,_getPrototypeOf2[\"default\"])(CircularImage)).call(this,options,body,labelModule));_this.setImages(imageObj,imageObjAlt);return _this}(0,_createClass3[\"default\"])(CircularImage,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;var imageAbsent=this.imageObj.src===undefined||this.imageObj.width===undefined||this.imageObj.height===undefined;if(imageAbsent){var diameter=this.options.size*2;this.width=diameter;this.height=diameter;this.radius=.5*this.width;return}if(this.needsRefresh(selected,hover)){this._resizeImage()}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.switchImages(selected);this.resize();this.left=x-this.width/2;this.top=y-this.height/2;this._drawRawCircle(ctx,x,y,values);ctx.save();ctx.clip();this._drawImageAtPosition(ctx,values);ctx.restore();this._drawImageLabel(ctx,x,y,selected,hover);this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.size;this.boundingBox.left=x-this.options.size;this.boundingBox.right=x+this.options.size;this.boundingBox.bottom=y+this.options.size;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);return this.width*.5}}]);return CircularImage}(_CircleImageBase3[\"default\"]);exports[\"default\"]=CircularImage},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Database=function(_NodeBase){(0,_inherits3[\"default\"])(Database,_NodeBase);function Database(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Database);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Database.__proto__||(0,_getPrototypeOf2[\"default\"])(Database)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Database,[{key:\"resize\",value:function resize(ctx,selected,hover){if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);var size=dimensions.width+this.margin.right+this.margin.left;this.width=size;this.height=size;this.radius=this.width/2}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this.initContextForDraw(ctx,values);ctx.database(x-this.width/2,y-this.height/2,this.width,this.height);this.performFill(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,selected,hover)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Database}(_NodeBase3[\"default\"]);exports[\"default\"]=Database},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Diamond=function(_ShapeBase){(0,_inherits3[\"default\"])(Diamond,_ShapeBase);function Diamond(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Diamond);return(0,_possibleConstructorReturn3[\"default\"])(this,(Diamond.__proto__||(0,_getPrototypeOf2[\"default\"])(Diamond)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Diamond,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"diamond\",4,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Diamond}(_ShapeBase3[\"default\"]);exports[\"default\"]=Diamond},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Dot=function(_ShapeBase){(0,_inherits3[\"default\"])(Dot,_ShapeBase);function Dot(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Dot);return(0,_possibleConstructorReturn3[\"default\"])(this,(Dot.__proto__||(0,_getPrototypeOf2[\"default\"])(Dot)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Dot,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"circle\",2,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);return this.options.size}}]);return Dot}(_ShapeBase3[\"default\"]);exports[\"default\"]=Dot},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Ellipse=function(_NodeBase){(0,_inherits3[\"default\"])(Ellipse,_NodeBase);function Ellipse(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Ellipse);return(0,_possibleConstructorReturn3[\"default\"])(this,(Ellipse.__proto__||(0,_getPrototypeOf2[\"default\"])(Ellipse)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Ellipse,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);this.height=dimensions.height*2;this.width=dimensions.width+dimensions.height;this.radius=.5*this.width}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width*.5;this.top=y-this.height*.5;this.initContextForDraw(ctx,values);ctx.ellipse_vis(this.left,this.top,this.width,this.height);this.performFill(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover);this.labelModule.draw(ctx,x,y,selected,hover)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);var a=this.width*.5;var b=this.height*.5;var w=Math.sin(angle)*a;var h=Math.cos(angle)*b;return a*b/Math.sqrt(w*w+h*h)}}]);return Ellipse}(_NodeBase3[\"default\"]);exports[\"default\"]=Ellipse},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Icon=function(_NodeBase){(0,_inherits3[\"default\"])(Icon,_NodeBase);function Icon(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Icon);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Icon.__proto__||(0,_getPrototypeOf2[\"default\"])(Icon)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Icon,[{key:\"resize\",value:function resize(ctx,selected,hover){if(this.needsRefresh(selected,hover)){this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)};this.width=this.iconSize.width+this.margin.right+this.margin.left;this.height=this.iconSize.height+this.margin.top+this.margin.bottom;this.radius=.5*this.width}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.options.icon.size=this.options.icon.size||50;this.left=x-this.width/2;this.top=y-this.height/2;this._icon(ctx,x,y,selected,hover,values);if(this.options.label!==undefined){var iconTextSpacing=5;this.labelModule.draw(ctx,this.left+this.iconSize.width/2+this.margin.left,y+this.height/2+iconTextSpacing,selected)}this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.icon.size*.5;this.boundingBox.left=x-this.options.icon.size*.5;this.boundingBox.right=x+this.options.icon.size*.5;this.boundingBox.bottom=y+this.options.icon.size*.5;if(this.options.label!==undefined&&this.labelModule.size.width>0){var iconTextSpacing=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+iconTextSpacing)}}},{key:\"_icon\",value:function _icon(ctx,x,y,selected,hover,values){var iconSize=Number(this.options.icon.size);if(this.options.icon.code!==undefined){ctx.font=(selected?\"bold \":\"\")+iconSize+\"px \"+this.options.icon.face;ctx.fillStyle=this.options.icon.color||\"black\";ctx.textAlign=\"center\";ctx.textBaseline=\"middle\";this.enableShadow(ctx,values);ctx.fillText(this.options.icon.code,x,y);this.disableShadow(ctx,values)}else{console.error(\"When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.\")}}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Icon}(_NodeBase3[\"default\"]);exports[\"default\"]=Icon},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CircleImageBase2=__webpack_require__(73);var _CircleImageBase3=_interopRequireDefault(_CircleImageBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Image=function(_CircleImageBase){(0,_inherits3[\"default\"])(Image,_CircleImageBase);function Image(options,body,labelModule,imageObj,imageObjAlt){(0,_classCallCheck3[\"default\"])(this,Image);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Image.__proto__||(0,_getPrototypeOf2[\"default\"])(Image)).call(this,options,body,labelModule));_this.setImages(imageObj,imageObjAlt);return _this}(0,_createClass3[\"default\"])(Image,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;var imageAbsent=this.imageObj.src===undefined||this.imageObj.width===undefined||this.imageObj.height===undefined;if(imageAbsent){var side=this.options.size*2;this.width=side;this.height=side;return}if(this.needsRefresh(selected,hover)){this._resizeImage()}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.switchImages(selected);this.resize();this.left=x-this.width/2;this.top=y-this.height/2;if(this.options.shapeProperties.useBorderWithImage===true){var neutralborderWidth=this.options.borderWidth;var selectionLineWidth=this.options.borderWidthSelected||2*this.options.borderWidth;var borderWidth=(selected?selectionLineWidth:neutralborderWidth)/this.body.view.scale;ctx.lineWidth=Math.min(this.width,borderWidth);ctx.beginPath();ctx.strokeStyle=selected?this.options.color.highlight.border:hover?this.options.color.hover.border:this.options.color.border;ctx.fillStyle=selected?this.options.color.highlight.background:hover?this.options.color.hover.background:this.options.color.background;ctx.rect(this.left-.5*ctx.lineWidth,this.top-.5*ctx.lineWidth,this.width+ctx.lineWidth,this.height+ctx.lineWidth);ctx.fill();this.performStroke(ctx,values);ctx.closePath()}this._drawImageAtPosition(ctx,values);this._drawImageLabel(ctx,x,y,selected,hover);this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.resize();this._updateBoundingBox(x,y);if(this.options.label!==undefined&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Image}(_CircleImageBase3[\"default\"]);exports[\"default\"]=Image},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Square=function(_ShapeBase){(0,_inherits3[\"default\"])(Square,_ShapeBase);function Square(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Square);return(0,_possibleConstructorReturn3[\"default\"])(this,(Square.__proto__||(0,_getPrototypeOf2[\"default\"])(Square)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Square,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"square\",2,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Square}(_ShapeBase3[\"default\"]);exports[\"default\"]=Square},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hexagon=function(_ShapeBase){(0,_inherits3[\"default\"])(Hexagon,_ShapeBase);function Hexagon(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Hexagon);return(0,_possibleConstructorReturn3[\"default\"])(this,(Hexagon.__proto__||(0,_getPrototypeOf2[\"default\"])(Hexagon)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Hexagon,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"hexagon\",4,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Hexagon}(_ShapeBase3[\"default\"]);exports[\"default\"]=Hexagon},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Star=function(_ShapeBase){(0,_inherits3[\"default\"])(Star,_ShapeBase);function Star(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Star);return(0,_possibleConstructorReturn3[\"default\"])(this,(Star.__proto__||(0,_getPrototypeOf2[\"default\"])(Star)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Star,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"star\",4,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Star}(_ShapeBase3[\"default\"]);exports[\"default\"]=Star},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Text=function(_NodeBase){(0,_inherits3[\"default\"])(Text,_NodeBase);function Text(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Text);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Text.__proto__||(0,_getPrototypeOf2[\"default\"])(Text)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Text,[{key:\"resize\",value:function resize(ctx,selected,hover){if(this.needsRefresh(selected,hover)){this.textSize=this.labelModule.getTextSize(ctx,selected,hover);this.width=this.textSize.width+this.margin.right+this.margin.left;this.height=this.textSize.height+this.margin.top+this.margin.bottom;this.radius=.5*this.width}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this.enableShadow(ctx,values);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,selected,hover);this.disableShadow(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Text}(_NodeBase3[\"default\"]);exports[\"default\"]=Text},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Triangle=function(_ShapeBase){(0,_inherits3[\"default\"])(Triangle,_ShapeBase);function Triangle(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Triangle);return(0,_possibleConstructorReturn3[\"default\"])(this,(Triangle.__proto__||(0,_getPrototypeOf2[\"default\"])(Triangle)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Triangle,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"triangle\",3,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Triangle}(_ShapeBase3[\"default\"]);exports[\"default\"]=Triangle},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var TriangleDown=function(_ShapeBase){(0,_inherits3[\"default\"])(TriangleDown,_ShapeBase);function TriangleDown(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,TriangleDown);return(0,_possibleConstructorReturn3[\"default\"])(this,(TriangleDown.__proto__||(0,_getPrototypeOf2[\"default\"])(TriangleDown)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(TriangleDown,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"triangleDown\",3,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return TriangleDown}(_ShapeBase3[\"default\"]);exports[\"default\"]=TriangleDown},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Edge=__webpack_require__(74)[\"default\"];var EdgesHandler=function(){function EdgesHandler(body,images,groups){var _this=this;(0,_classCallCheck3[\"default\"])(this,EdgesHandler);this.body=body;this.images=images;this.groups=groups;this.body.functions.createEdge=this.create.bind(this);this.edgesListeners={add:function add(event,params){_this.add(params.items)},update:function update(event,params){_this.update(params.items)},remove:function remove(event,params){_this.remove(params.items)}};this.options={};this.defaultOptions={arrows:{to:{enabled:false,\nscaleFactor:1,type:\"arrow\"},middle:{enabled:false,scaleFactor:1,type:\"arrow\"},from:{enabled:false,scaleFactor:1,type:\"arrow\"}},arrowStrikethrough:true,color:{color:\"#848484\",highlight:\"#848484\",hover:\"#848484\",inherit:\"from\",opacity:1},dashes:false,font:{color:\"#343434\",size:14,face:\"arial\",background:\"none\",strokeWidth:2,strokeColor:\"#ffffff\",align:\"horizontal\",multi:false,vadjust:0,bold:{mod:\"bold\"},boldital:{mod:\"bold italic\"},ital:{mod:\"italic\"},mono:{mod:\"\",size:15,face:\"courier new\",vadjust:2}},hidden:false,hoverWidth:1.5,label:undefined,labelHighlightBold:true,length:undefined,physics:true,scaling:{min:1,max:15,label:{enabled:true,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function customScalingFunction(min,max,total,value){if(max===min){return.5}else{var scale=1/(max-min);return Math.max(0,(value-min)*scale)}}},selectionWidth:1.5,selfReferenceSize:20,shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:10,x:5,y:5},smooth:{enabled:true,type:\"dynamic\",forceDirection:\"none\",roundness:.5},title:undefined,width:1,value:undefined};util.deepExtend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(EdgesHandler,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this2=this;this.body.emitter.on(\"_forceDisableDynamicCurves\",function(type){var emit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(type===\"dynamic\"){type=\"continuous\"}var dataChanged=false;for(var edgeId in _this2.body.edges){if(_this2.body.edges.hasOwnProperty(edgeId)){var edge=_this2.body.edges[edgeId];var edgeData=_this2.body.data.edges._data[edgeId];if(edgeData!==undefined){var smoothOptions=edgeData.smooth;if(smoothOptions!==undefined){if(smoothOptions.enabled===true&&smoothOptions.type===\"dynamic\"){if(type===undefined){edge.setOptions({smooth:false})}else{edge.setOptions({smooth:{type:type}})}dataChanged=true}}}}}if(emit===true&&dataChanged===true){_this2.body.emitter.emit(\"_dataChanged\")}});this.body.emitter.on(\"_dataUpdated\",function(){_this2.reconnectEdges()});this.body.emitter.on(\"refreshEdges\",this.refresh.bind(this));this.body.emitter.on(\"refresh\",this.refresh.bind(this));this.body.emitter.on(\"destroy\",function(){util.forEach(_this2.edgesListeners,function(callback,event){if(_this2.body.data.edges)_this2.body.data.edges.off(event,callback)});delete _this2.body.functions.createEdge;delete _this2.edgesListeners.add;delete _this2.edgesListeners.update;delete _this2.edgesListeners.remove;delete _this2.edgesListeners})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){Edge.parseOptions(this.options,options,true,this.defaultOptions,true);var dataChanged=false;if(options.smooth!==undefined){for(var edgeId in this.body.edges){if(this.body.edges.hasOwnProperty(edgeId)){dataChanged=this.body.edges[edgeId].updateEdgeType()||dataChanged}}}if(options.font!==undefined){for(var _edgeId in this.body.edges){if(this.body.edges.hasOwnProperty(_edgeId)){this.body.edges[_edgeId].updateLabelModule()}}}if(options.hidden!==undefined||options.physics!==undefined||dataChanged===true){this.body.emitter.emit(\"_dataChanged\")}}}},{key:\"setData\",value:function setData(edges){var _this3=this;var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var oldEdgesData=this.body.data.edges;if(edges instanceof DataSet||edges instanceof DataView){this.body.data.edges=edges}else if(Array.isArray(edges)){this.body.data.edges=new DataSet;this.body.data.edges.add(edges)}else if(!edges){this.body.data.edges=new DataSet}else{throw new TypeError(\"Array or DataSet expected\")}if(oldEdgesData){util.forEach(this.edgesListeners,function(callback,event){oldEdgesData.off(event,callback)})}this.body.edges={};if(this.body.data.edges){util.forEach(this.edgesListeners,function(callback,event){_this3.body.data.edges.on(event,callback)});var ids=this.body.data.edges.getIds();this.add(ids,true)}this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"add\",value:function add(ids){var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var edges=this.body.edges;var edgesData=this.body.data.edges;for(var i=0;i<ids.length;i++){var id=ids[i];var oldEdge=edges[id];if(oldEdge){oldEdge.disconnect()}var data=edgesData.get(id,{showInternalIds:true});edges[id]=this.create(data)}this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"update\",value:function update(ids){var edges=this.body.edges;var edgesData=this.body.data.edges;var dataChanged=false;for(var i=0;i<ids.length;i++){var id=ids[i];var data=edgesData.get(id);var edge=edges[id];if(edge!==undefined){edge.disconnect();dataChanged=edge.setOptions(data)||dataChanged;edge.connect()}else{this.body.edges[id]=this.create(data);dataChanged=true}}if(dataChanged===true){this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");this.body.emitter.emit(\"_dataChanged\")}else{this.body.emitter.emit(\"_dataUpdated\")}}},{key:\"remove\",value:function remove(ids){var emit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(ids.length===0)return;var edges=this.body.edges;util.forEach(ids,function(id){var edge=edges[id];if(edge!==undefined){edge.remove()}});if(emit){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"refresh\",value:function refresh(){var _this4=this;util.forEach(this.body.edges,function(edge,edgeId){var data=_this4.body.data.edges._data[edgeId];if(data!==undefined){edge.setOptions(data)}})}},{key:\"create\",value:function create(properties){return new Edge(properties,this.body,this.options,this.defaultOptions)}},{key:\"reconnectEdges\",value:function reconnectEdges(){var id;var nodes=this.body.nodes;var edges=this.body.edges;for(id in nodes){if(nodes.hasOwnProperty(id)){nodes[id].edges=[]}}for(id in edges){if(edges.hasOwnProperty(id)){var edge=edges[id];edge.from=null;edge.to=null;edge.connect()}}}},{key:\"getConnectedNodes\",value:function getConnectedNodes(edgeId){var nodeList=[];if(this.body.edges[edgeId]!==undefined){var edge=this.body.edges[edgeId];if(edge.fromId!==undefined){nodeList.push(edge.fromId)}if(edge.toId!==undefined){nodeList.push(edge.toId)}}return nodeList}},{key:\"_updateState\",value:function _updateState(){this._addMissingEdges();this._removeInvalidEdges()}},{key:\"_removeInvalidEdges\",value:function _removeInvalidEdges(){var _this5=this;var edgesToDelete=[];util.forEach(this.body.edges,function(edge,id){var toNode=_this5.body.nodes[edge.toId];var fromNode=_this5.body.nodes[edge.fromId];if(toNode!==undefined&&toNode.isCluster===true||fromNode!==undefined&&fromNode.isCluster===true){return}if(toNode===undefined||fromNode===undefined){edgesToDelete.push(id)}});this.remove(edgesToDelete,false)}},{key:\"_addMissingEdges\",value:function _addMissingEdges(){var edges=this.body.edges;var edgesData=this.body.data.edges;var addIds=[];edgesData.forEach(function(edgeData,edgeId){var edge=edges[edgeId];if(edge===undefined){addIds.push(edgeId)}});this.add(addIds,true)}}]);return EdgesHandler}();exports[\"default\"]=EdgesHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CubicBezierEdgeBase2=__webpack_require__(216);var _CubicBezierEdgeBase3=_interopRequireDefault(_CubicBezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CubicBezierEdge=function(_CubicBezierEdgeBase){(0,_inherits3[\"default\"])(CubicBezierEdge,_CubicBezierEdgeBase);function CubicBezierEdge(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,CubicBezierEdge);return(0,_possibleConstructorReturn3[\"default\"])(this,(CubicBezierEdge.__proto__||(0,_getPrototypeOf2[\"default\"])(CubicBezierEdge)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(CubicBezierEdge,[{key:\"_line\",value:function _line(ctx,values,viaNodes){var via1=viaNodes[0];var via2=viaNodes[1];this._bezierCurve(ctx,values,via1,via2)}},{key:\"_getViaCoordinates\",value:function _getViaCoordinates(){var dx=this.from.x-this.to.x;var dy=this.from.y-this.to.y;var x1=void 0,y1=void 0,x2=void 0,y2=void 0;var roundness=this.options.smooth.roundness;if((Math.abs(dx)>Math.abs(dy)||this.options.smooth.forceDirection===true||this.options.smooth.forceDirection===\"horizontal\")&&this.options.smooth.forceDirection!==\"vertical\"){y1=this.from.y;y2=this.to.y;x1=this.from.x-roundness*dx;x2=this.to.x+roundness*dx}else{y1=this.from.y-roundness*dy;y2=this.to.y+roundness*dy;x1=this.from.x;x2=this.to.x}return[{x:x1,y:y1},{x:x2,y:y2}]}},{key:\"getViaNode\",value:function getViaNode(){return this._getViaCoordinates()}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){return this._findBorderPositionBezier(nearNode,ctx)}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){var _ref=arguments.length>6&&arguments[6]!==undefined?arguments[6]:this._getViaCoordinates(),_ref2=(0,_slicedToArray3[\"default\"])(_ref,2),via1=_ref2[0],via2=_ref2[1];return this._getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,via1,via2)}},{key:\"getPoint\",value:function getPoint(percentage){var _ref3=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._getViaCoordinates(),_ref4=(0,_slicedToArray3[\"default\"])(_ref3,2),via1=_ref4[0],via2=_ref4[1];var t=percentage;var vec=[];vec[0]=Math.pow(1-t,3);vec[1]=3*t*Math.pow(1-t,2);vec[2]=3*Math.pow(t,2)*(1-t);vec[3]=Math.pow(t,3);var x=vec[0]*this.fromPoint.x+vec[1]*via1.x+vec[2]*via2.x+vec[3]*this.toPoint.x;var y=vec[0]*this.fromPoint.y+vec[1]*via1.y+vec[2]*via2.y+vec[3]*this.toPoint.y;return{x:x,y:y}}}]);return CubicBezierEdge}(_CubicBezierEdgeBase3[\"default\"]);exports[\"default\"]=CubicBezierEdge},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BezierEdgeBase2=__webpack_require__(75);var _BezierEdgeBase3=_interopRequireDefault(_BezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CubicBezierEdgeBase=function(_BezierEdgeBase){(0,_inherits3[\"default\"])(CubicBezierEdgeBase,_BezierEdgeBase);function CubicBezierEdgeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,CubicBezierEdgeBase);return(0,_possibleConstructorReturn3[\"default\"])(this,(CubicBezierEdgeBase.__proto__||(0,_getPrototypeOf2[\"default\"])(CubicBezierEdgeBase)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(CubicBezierEdgeBase,[{key:\"_getDistanceToBezierEdge\",value:function _getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,via1,via2){var minDistance=1e9;var distance=void 0;var i=void 0,t=void 0,x=void 0,y=void 0;var lastX=x1;var lastY=y1;var vec=[0,0,0,0];for(i=1;i<10;i++){t=.1*i;vec[0]=Math.pow(1-t,3);vec[1]=3*t*Math.pow(1-t,2);vec[2]=3*Math.pow(t,2)*(1-t);vec[3]=Math.pow(t,3);x=vec[0]*x1+vec[1]*via1.x+vec[2]*via2.x+vec[3]*x2;y=vec[0]*y1+vec[1]*via1.y+vec[2]*via2.y+vec[3]*y2;if(i>0){distance=this._getDistanceToLine(lastX,lastY,x,y,x3,y3);minDistance=distance<minDistance?distance:minDistance}lastX=x;lastY=y}return minDistance}}]);return CubicBezierEdgeBase}(_BezierEdgeBase3[\"default\"]);exports[\"default\"]=CubicBezierEdgeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BezierEdgeBase2=__webpack_require__(75);var _BezierEdgeBase3=_interopRequireDefault(_BezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BezierEdgeDynamic=function(_BezierEdgeBase){(0,_inherits3[\"default\"])(BezierEdgeDynamic,_BezierEdgeBase);function BezierEdgeDynamic(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,BezierEdgeDynamic);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(BezierEdgeDynamic.__proto__||(0,_getPrototypeOf2[\"default\"])(BezierEdgeDynamic)).call(this,options,body,labelModule));_this._boundFunction=function(){_this.positionBezierNode()};_this.body.emitter.on(\"_repositionBezierNodes\",_this._boundFunction);return _this}(0,_createClass3[\"default\"])(BezierEdgeDynamic,[{key:\"setOptions\",value:function setOptions(options){var physicsChange=false;if(this.options.physics!==options.physics){physicsChange=true}this.options=options;this.id=this.options.id;this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to];this.setupSupportNode();this.connect();if(physicsChange===true){this.via.setOptions({physics:this.options.physics});this.positionBezierNode()}}},{key:\"connect\",value:function connect(){this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to];if(this.from===undefined||this.to===undefined||this.options.physics===false){this.via.setOptions({physics:false})}else{if(this.from.id===this.to.id){this.via.setOptions({physics:false})}else{this.via.setOptions({physics:true})}}}},{key:\"cleanup\",value:function cleanup(){this.body.emitter.off(\"_repositionBezierNodes\",this._boundFunction);if(this.via!==undefined){delete this.body.nodes[this.via.id];this.via=undefined;return true}return false}},{key:\"setupSupportNode\",value:function setupSupportNode(){if(this.via===undefined){var nodeId=\"edgeId:\"+this.id;var node=this.body.functions.createNode({id:nodeId,shape:\"circle\",physics:true,hidden:true});this.body.nodes[nodeId]=node;this.via=node;this.via.parentEdgeId=this.id;this.positionBezierNode()}}},{key:\"positionBezierNode\",value:function positionBezierNode(){if(this.via!==undefined&&this.from!==undefined&&this.to!==undefined){this.via.x=.5*(this.from.x+this.to.x);this.via.y=.5*(this.from.y+this.to.y)}else if(this.via!==undefined){this.via.x=0;this.via.y=0}}},{key:\"_line\",value:function _line(ctx,values,viaNode){this._bezierCurve(ctx,values,viaNode)}},{key:\"getViaNode\",value:function getViaNode(){return this.via}},{key:\"getPoint\",value:function getPoint(percentage){var viaNode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.via;var t=percentage;var x=void 0,y=void 0;if(this.from===this.to){var _getCircleData=this._getCircleData(this.from),_getCircleData2=(0,_slicedToArray3[\"default\"])(_getCircleData,3),cx=_getCircleData2[0],cy=_getCircleData2[1],cr=_getCircleData2[2];var a=2*Math.PI*(1-t);x=cx+cr*Math.sin(a);y=cy+cr-cr*(1-Math.cos(a))}else{x=Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*viaNode.x+Math.pow(t,2)*this.toPoint.x;y=Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*viaNode.y+Math.pow(t,2)*this.toPoint.y}return{x:x,y:y}}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){return this._findBorderPositionBezier(nearNode,ctx,this.via)}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){return this._getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,this.via)}}]);return BezierEdgeDynamic}(_BezierEdgeBase3[\"default\"]);exports[\"default\"]=BezierEdgeDynamic},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BezierEdgeBase2=__webpack_require__(75);var _BezierEdgeBase3=_interopRequireDefault(_BezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BezierEdgeStatic=function(_BezierEdgeBase){(0,_inherits3[\"default\"])(BezierEdgeStatic,_BezierEdgeBase);function BezierEdgeStatic(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,BezierEdgeStatic);return(0,_possibleConstructorReturn3[\"default\"])(this,(BezierEdgeStatic.__proto__||(0,_getPrototypeOf2[\"default\"])(BezierEdgeStatic)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(BezierEdgeStatic,[{key:\"_line\",value:function _line(ctx,values,viaNode){this._bezierCurve(ctx,values,viaNode)}},{key:\"getViaNode\",value:function getViaNode(){return this._getViaCoordinates()}},{key:\"_getViaCoordinates\",value:function _getViaCoordinates(){var xVia=undefined;var yVia=undefined;var factor=this.options.smooth.roundness;var type=this.options.smooth.type;var dx=Math.abs(this.from.x-this.to.x);var dy=Math.abs(this.from.y-this.to.y);if(type===\"discrete\"||type===\"diagonalCross\"){var stepX=void 0;var stepY=void 0;if(dx<=dy){stepX=stepY=factor*dy}else{stepX=stepY=factor*dx}if(this.from.x>this.to.x)stepX=-stepX;if(this.from.y>=this.to.y)stepY=-stepY;xVia=this.from.x+stepX;yVia=this.from.y+stepY;if(type===\"discrete\"){if(dx<=dy){xVia=dx<factor*dy?this.from.x:xVia}else{yVia=dy<factor*dx?this.from.y:yVia}}}else if(type===\"straightCross\"){var _stepX=(1-factor)*dx;var _stepY=(1-factor)*dy;if(dx<=dy){_stepX=0;if(this.from.y<this.to.y)_stepY=-_stepY}else{if(this.from.x<this.to.x)_stepX=-_stepX;_stepY=0}xVia=this.to.x+_stepX;yVia=this.to.y+_stepY}else if(type===\"horizontal\"){var _stepX2=(1-factor)*dx;if(this.from.x<this.to.x)_stepX2=-_stepX2;xVia=this.to.x+_stepX2;yVia=this.from.y}else if(type===\"vertical\"){var _stepY2=(1-factor)*dy;if(this.from.y<this.to.y)_stepY2=-_stepY2;xVia=this.from.x;yVia=this.to.y+_stepY2}else if(type===\"curvedCW\"){dx=this.to.x-this.from.x;dy=this.from.y-this.to.y;var radius=Math.sqrt(dx*dx+dy*dy);var pi=Math.PI;var originalAngle=Math.atan2(dy,dx);var myAngle=(originalAngle+(factor*.5+.5)*pi)%(2*pi);xVia=this.from.x+(factor*.5+.5)*radius*Math.sin(myAngle);yVia=this.from.y+(factor*.5+.5)*radius*Math.cos(myAngle)}else if(type===\"curvedCCW\"){dx=this.to.x-this.from.x;dy=this.from.y-this.to.y;var _radius=Math.sqrt(dx*dx+dy*dy);var _pi=Math.PI;var _originalAngle=Math.atan2(dy,dx);var _myAngle=(_originalAngle+(-factor*.5+.5)*_pi)%(2*_pi);xVia=this.from.x+(factor*.5+.5)*_radius*Math.sin(_myAngle);yVia=this.from.y+(factor*.5+.5)*_radius*Math.cos(_myAngle)}else{var _stepX3=void 0;var _stepY3=void 0;if(dx<=dy){_stepX3=_stepY3=factor*dy}else{_stepX3=_stepY3=factor*dx}if(this.from.x>this.to.x)_stepX3=-_stepX3;if(this.from.y>=this.to.y)_stepY3=-_stepY3;xVia=this.from.x+_stepX3;yVia=this.from.y+_stepY3;if(dx<=dy){if(this.from.x<=this.to.x){xVia=this.to.x<xVia?this.to.x:xVia}else{xVia=this.to.x>xVia?this.to.x:xVia}}else{if(this.from.y>=this.to.y){yVia=this.to.y>yVia?this.to.y:yVia}else{yVia=this.to.y<yVia?this.to.y:yVia}}}return{x:xVia,y:yVia}}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this._findBorderPositionBezier(nearNode,ctx,options.via)}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){var viaNode=arguments.length>6&&arguments[6]!==undefined?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,viaNode)}},{key:\"getPoint\",value:function getPoint(percentage){var viaNode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._getViaCoordinates();var t=percentage;var x=Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*viaNode.x+Math.pow(t,2)*this.toPoint.x;var y=Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*viaNode.y+Math.pow(t,2)*this.toPoint.y;return{x:x,y:y}}}]);return BezierEdgeStatic}(_BezierEdgeBase3[\"default\"]);exports[\"default\"]=BezierEdgeStatic},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _EdgeBase2=__webpack_require__(118);var _EdgeBase3=_interopRequireDefault(_EdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var StraightEdge=function(_EdgeBase){(0,_inherits3[\"default\"])(StraightEdge,_EdgeBase);function StraightEdge(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,StraightEdge);return(0,_possibleConstructorReturn3[\"default\"])(this,(StraightEdge.__proto__||(0,_getPrototypeOf2[\"default\"])(StraightEdge)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(StraightEdge,[{key:\"_line\",value:function _line(ctx,values){ctx.beginPath();ctx.moveTo(this.fromPoint.x,this.fromPoint.y);ctx.lineTo(this.toPoint.x,this.toPoint.y);this.enableShadow(ctx,values);ctx.stroke();this.disableShadow(ctx,values)}},{key:\"getViaNode\",value:function getViaNode(){return undefined}},{key:\"getPoint\",value:function getPoint(percentage){return{x:(1-percentage)*this.fromPoint.x+percentage*this.toPoint.x,y:(1-percentage)*this.fromPoint.y+percentage*this.toPoint.y}}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){var node1=this.to;var node2=this.from;if(nearNode.id===this.from.id){node1=this.from;node2=this.to}var angle=Math.atan2(node1.y-node2.y,node1.x-node2.x);var dx=node1.x-node2.x;var dy=node1.y-node2.y;var edgeSegmentLength=Math.sqrt(dx*dx+dy*dy);var toBorderDist=nearNode.distanceToBorder(ctx,angle);var toBorderPoint=(edgeSegmentLength-toBorderDist)/edgeSegmentLength;var borderPos={};borderPos.x=(1-toBorderPoint)*node2.x+toBorderPoint*node1.x;borderPos.y=(1-toBorderPoint)*node2.y+toBorderPoint*node1.y;return borderPos}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){return this._getDistanceToLine(x1,y1,x2,y2,x3,y3)}}]);return StraightEdge}(_EdgeBase3[\"default\"]);exports[\"default\"]=StraightEdge},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BarnesHutSolver=__webpack_require__(120)[\"default\"];var Repulsion=__webpack_require__(221)[\"default\"];var HierarchicalRepulsion=__webpack_require__(222)[\"default\"];var SpringSolver=__webpack_require__(223)[\"default\"];var HierarchicalSpringSolver=__webpack_require__(224)[\"default\"];var CentralGravitySolver=__webpack_require__(121)[\"default\"];var ForceAtlas2BasedRepulsionSolver=__webpack_require__(225)[\"default\"];var ForceAtlas2BasedCentralGravitySolver=__webpack_require__(226)[\"default\"];var util=__webpack_require__(2);var EndPoints=__webpack_require__(119)[\"default\"];var PhysicsEngine=function(){function PhysicsEngine(body){(0,_classCallCheck3[\"default\"])(this,PhysicsEngine);this.body=body;this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}};this.physicsEnabled=true;this.simulationInterval=1e3/60;this.requiresTimeout=true;this.previousStates={};this.referenceState={};this.freezeCache={};this.renderTimer=undefined;this.adaptiveTimestep=false;this.adaptiveTimestepEnabled=false;this.adaptiveCounter=0;this.adaptiveInterval=3;this.stabilized=false;this.startedStabilization=false;this.stabilizationIterations=0;this.ready=false;this.options={};this.defaultOptions={enabled:true,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:\"barnesHut\",stabilization:{enabled:true,iterations:1e3,updateInterval:50,onlyDynamicEdges:false,fit:true},timestep:.5,adaptiveTimestep:true};util.extend(this.options,this.defaultOptions);this.timestep=.5;this.layoutFailed=false;this.bindEventListeners()}(0,_createClass3[\"default\"])(PhysicsEngine,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.on(\"initPhysics\",function(){_this.initPhysics()});this.body.emitter.on(\"_layoutFailed\",function(){_this.layoutFailed=true});this.body.emitter.on(\"resetPhysics\",function(){_this.stopSimulation();_this.ready=false});this.body.emitter.on(\"disablePhysics\",function(){_this.physicsEnabled=false;_this.stopSimulation()});this.body.emitter.on(\"restorePhysics\",function(){_this.setOptions(_this.options);if(_this.ready===true){_this.startSimulation()}});this.body.emitter.on(\"startSimulation\",function(){if(_this.ready===true){_this.startSimulation()}});this.body.emitter.on(\"stopSimulation\",function(){_this.stopSimulation()});this.body.emitter.on(\"destroy\",function(){_this.stopSimulation(false);_this.body.emitter.off()});this.body.emitter.on(\"_dataChanged\",function(){_this.updatePhysicsData()})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){if(options===false){this.options.enabled=false;this.physicsEnabled=false;this.stopSimulation()}else if(options===true){this.options.enabled=true;this.physicsEnabled=true;this.startSimulation()}else{this.physicsEnabled=true;util.selectiveNotDeepExtend([\"stabilization\"],this.options,options);util.mergeOptions(this.options,options,\"stabilization\");if(options.enabled===undefined){this.options.enabled=true}if(this.options.enabled===false){this.physicsEnabled=false;this.stopSimulation()}this.timestep=this.options.timestep}}this.init()}},{key:\"init\",value:function init(){var options;if(this.options.solver===\"forceAtlas2Based\"){options=this.options.forceAtlas2Based;this.nodesSolver=new ForceAtlas2BasedRepulsionSolver(this.body,this.physicsBody,options);this.edgesSolver=new SpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new ForceAtlas2BasedCentralGravitySolver(this.body,this.physicsBody,options)}else if(this.options.solver===\"repulsion\"){options=this.options.repulsion;this.nodesSolver=new Repulsion(this.body,this.physicsBody,options);this.edgesSolver=new SpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new CentralGravitySolver(this.body,this.physicsBody,options)}else if(this.options.solver===\"hierarchicalRepulsion\"){options=this.options.hierarchicalRepulsion;this.nodesSolver=new HierarchicalRepulsion(this.body,this.physicsBody,options);this.edgesSolver=new HierarchicalSpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new CentralGravitySolver(this.body,this.physicsBody,options)}else{options=this.options.barnesHut;this.nodesSolver=new BarnesHutSolver(this.body,this.physicsBody,options);this.edgesSolver=new SpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new CentralGravitySolver(this.body,this.physicsBody,options)}this.modelOptions=options}},{key:\"initPhysics\",value:function initPhysics(){if(this.physicsEnabled===true&&this.options.enabled===true){if(this.options.stabilization.enabled===true){this.stabilize()}else{this.stabilized=false;this.ready=true;this.body.emitter.emit(\"fit\",{},this.layoutFailed);this.startSimulation()}}else{this.ready=true;this.body.emitter.emit(\"fit\")}}},{key:\"startSimulation\",value:function startSimulation(){if(this.physicsEnabled===true&&this.options.enabled===true){this.stabilized=false;this.adaptiveTimestep=false;this.body.emitter.emit(\"_resizeNodes\");if(this.viewFunction===undefined){this.viewFunction=this.simulationStep.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction);this.body.emitter.emit(\"_startRendering\")}}else{this.body.emitter.emit(\"_redraw\")}}},{key:\"stopSimulation\",value:function stopSimulation(){var emit=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.stabilized=true;if(emit===true){this._emitStabilized()}if(this.viewFunction!==undefined){this.body.emitter.off(\"initRedraw\",this.viewFunction);this.viewFunction=undefined;if(emit===true){this.body.emitter.emit(\"_stopRendering\")}}}},{key:\"simulationStep\",value:function simulationStep(){var startTime=Date.now();this.physicsTick();var physicsTime=Date.now()-startTime;if((physicsTime<.4*this.simulationInterval||this.runDoubleSpeed===true)&&this.stabilized===false){this.physicsTick();this.runDoubleSpeed=true}if(this.stabilized===true){this.stopSimulation()}}},{key:\"_emitStabilized\",value:function _emitStabilized(){var _this2=this;var amountOfIterations=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.stabilizationIterations;if(this.stabilizationIterations>1||this.startedStabilization===true){setTimeout(function(){_this2.body.emitter.emit(\"stabilized\",{iterations:amountOfIterations});_this2.startedStabilization=false;_this2.stabilizationIterations=0},0)}}},{key:\"physicsStep\",value:function physicsStep(){this.gravitySolver.solve();this.nodesSolver.solve();this.edgesSolver.solve();this.moveNodes()}},{key:\"adjustTimeStep\",value:function adjustTimeStep(){var factor=1.2;if(this._evaluateStepQuality()===true){this.timestep=factor*this.timestep}else{if(this.timestep/factor<this.options.timestep){this.timestep=this.options.timestep}else{this.adaptiveCounter=-1;this.timestep=Math.max(this.options.timestep,this.timestep/factor)}}}},{key:\"physicsTick\",value:function physicsTick(){this._startStabilizing();if(this.stabilized===true)return;if(this.adaptiveTimestep===true&&this.adaptiveTimestepEnabled===true){var doAdaptive=this.adaptiveCounter%this.adaptiveInterval===0;if(doAdaptive){this.timestep=2*this.timestep;this.physicsStep();this.revert();this.timestep=.5*this.timestep;this.physicsStep();this.physicsStep();this.adjustTimeStep()}else{this.physicsStep()}this.adaptiveCounter+=1}else{this.timestep=this.options.timestep;this.physicsStep()}\nif(this.stabilized===true)this.revert();this.stabilizationIterations++}},{key:\"updatePhysicsData\",value:function updatePhysicsData(){this.physicsBody.forces={};this.physicsBody.physicsNodeIndices=[];this.physicsBody.physicsEdgeIndices=[];var nodes=this.body.nodes;var edges=this.body.edges;for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){if(nodes[nodeId].options.physics===true){this.physicsBody.physicsNodeIndices.push(nodes[nodeId].id)}}}for(var edgeId in edges){if(edges.hasOwnProperty(edgeId)){if(edges[edgeId].options.physics===true){this.physicsBody.physicsEdgeIndices.push(edges[edgeId].id)}}}for(var i=0;i<this.physicsBody.physicsNodeIndices.length;i++){var _nodeId=this.physicsBody.physicsNodeIndices[i];this.physicsBody.forces[_nodeId]={x:0,y:0};if(this.physicsBody.velocities[_nodeId]===undefined){this.physicsBody.velocities[_nodeId]={x:0,y:0}}}for(var _nodeId2 in this.physicsBody.velocities){if(nodes[_nodeId2]===undefined){delete this.physicsBody.velocities[_nodeId2]}}}},{key:\"revert\",value:function revert(){var nodeIds=(0,_keys2[\"default\"])(this.previousStates);var nodes=this.body.nodes;var velocities=this.physicsBody.velocities;this.referenceState={};for(var i=0;i<nodeIds.length;i++){var nodeId=nodeIds[i];if(nodes[nodeId]!==undefined){if(nodes[nodeId].options.physics===true){this.referenceState[nodeId]={positions:{x:nodes[nodeId].x,y:nodes[nodeId].y}};velocities[nodeId].x=this.previousStates[nodeId].vx;velocities[nodeId].y=this.previousStates[nodeId].vy;nodes[nodeId].x=this.previousStates[nodeId].x;nodes[nodeId].y=this.previousStates[nodeId].y}}else{delete this.previousStates[nodeId]}}}},{key:\"_evaluateStepQuality\",value:function _evaluateStepQuality(){var dx=void 0,dy=void 0,dpos=void 0;var nodes=this.body.nodes;var reference=this.referenceState;var posThreshold=.3;for(var nodeId in this.referenceState){if(this.referenceState.hasOwnProperty(nodeId)&&nodes[nodeId]!==undefined){dx=nodes[nodeId].x-reference[nodeId].positions.x;dy=nodes[nodeId].y-reference[nodeId].positions.y;dpos=Math.sqrt(Math.pow(dx,2)+Math.pow(dy,2));if(dpos>posThreshold){return false}}}return true}},{key:\"moveNodes\",value:function moveNodes(){var nodeIndices=this.physicsBody.physicsNodeIndices;var maxNodeVelocity=0;var averageNodeVelocity=0;var velocityAdaptiveThreshold=5;for(var i=0;i<nodeIndices.length;i++){var nodeId=nodeIndices[i];var nodeVelocity=this._performStep(nodeId);maxNodeVelocity=Math.max(maxNodeVelocity,nodeVelocity);averageNodeVelocity+=nodeVelocity}this.adaptiveTimestepEnabled=averageNodeVelocity/nodeIndices.length<velocityAdaptiveThreshold;this.stabilized=maxNodeVelocity<this.options.minVelocity}},{key:\"calculateComponentVelocity\",value:function calculateComponentVelocity(v,f,m){var df=this.modelOptions.damping*v;var a=(f-df)/m;v+=a*this.timestep;var maxV=this.options.maxVelocity||1e9;if(Math.abs(v)>maxV){v=v>0?maxV:-maxV}return v}},{key:\"_performStep\",value:function _performStep(nodeId){var node=this.body.nodes[nodeId];var force=this.physicsBody.forces[nodeId];var velocity=this.physicsBody.velocities[nodeId];this.previousStates[nodeId]={x:node.x,y:node.y,vx:velocity.x,vy:velocity.y};if(node.options.fixed.x===false){velocity.x=this.calculateComponentVelocity(velocity.x,force.x,node.options.mass);node.x+=velocity.x*this.timestep}else{force.x=0;velocity.x=0}if(node.options.fixed.y===false){velocity.y=this.calculateComponentVelocity(velocity.y,force.y,node.options.mass);node.y+=velocity.y*this.timestep}else{force.y=0;velocity.y=0}var totalVelocity=Math.sqrt(Math.pow(velocity.x,2)+Math.pow(velocity.y,2));return totalVelocity}},{key:\"_freezeNodes\",value:function _freezeNodes(){var nodes=this.body.nodes;for(var id in nodes){if(nodes.hasOwnProperty(id)){if(nodes[id].x&&nodes[id].y){var fixed=nodes[id].options.fixed;this.freezeCache[id]={x:fixed.x,y:fixed.y};fixed.x=true;fixed.y=true}}}}},{key:\"_restoreFrozenNodes\",value:function _restoreFrozenNodes(){var nodes=this.body.nodes;for(var id in nodes){if(nodes.hasOwnProperty(id)){if(this.freezeCache[id]!==undefined){nodes[id].options.fixed.x=this.freezeCache[id].x;nodes[id].options.fixed.y=this.freezeCache[id].y}}}this.freezeCache={}}},{key:\"stabilize\",value:function stabilize(){var _this3=this;var iterations=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.options.stabilization.iterations;if(typeof iterations!==\"number\"){iterations=this.options.stabilization.iterations;console.log(\"The stabilize method needs a numeric amount of iterations. Switching to default: \",iterations)}if(this.physicsBody.physicsNodeIndices.length===0){this.ready=true;return}this.adaptiveTimestep=true&&this.options.adaptiveTimestep;this.body.emitter.emit(\"_resizeNodes\");this.stopSimulation();this.stabilized=false;this.body.emitter.emit(\"_blockRedraw\");this.targetIterations=iterations;if(this.options.stabilization.onlyDynamicEdges===true){this._freezeNodes()}this.stabilizationIterations=0;setTimeout(function(){return _this3._stabilizationBatch()},0)}},{key:\"_startStabilizing\",value:function _startStabilizing(){if(this.startedStabilization===true)return false;this.body.emitter.emit(\"startStabilizing\");this.startedStabilization=true;return true}},{key:\"_stabilizationBatch\",value:function _stabilizationBatch(){var _this4=this;var running=function running(){return _this4.stabilized===false&&_this4.stabilizationIterations<_this4.targetIterations};var sendProgress=function sendProgress(){_this4.body.emitter.emit(\"stabilizationProgress\",{iterations:_this4.stabilizationIterations,total:_this4.targetIterations})};if(this._startStabilizing()){sendProgress()}var count=0;while(running()&&count<this.options.stabilization.updateInterval){this.physicsTick();count++}sendProgress();if(running()){setTimeout(this._stabilizationBatch.bind(this),0)}else{this._finalizeStabilization()}}},{key:\"_finalizeStabilization\",value:function _finalizeStabilization(){this.body.emitter.emit(\"_allowRedraw\");if(this.options.stabilization.fit===true){this.body.emitter.emit(\"fit\")}if(this.options.stabilization.onlyDynamicEdges===true){this._restoreFrozenNodes()}this.body.emitter.emit(\"stabilizationIterationsDone\");this.body.emitter.emit(\"_requestRedraw\");if(this.stabilized===true){this._emitStabilized()}else{this.startSimulation()}this.ready=true}},{key:\"_drawForces\",value:function _drawForces(ctx){for(var i=0;i<this.physicsBody.physicsNodeIndices.length;i++){var index=this.physicsBody.physicsNodeIndices[i];var node=this.body.nodes[index];var force=this.physicsBody.forces[index];var factor=20;var colorFactor=.03;var forceSize=Math.sqrt(Math.pow(force.x,2)+Math.pow(force.x,2));var size=Math.min(Math.max(5,forceSize),15);var arrowSize=3*size;var color=util.HSVToHex((180-Math.min(1,Math.max(0,colorFactor*forceSize))*180)/360,1,1);var point={x:node.x+factor*force.x,y:node.y+factor*force.y};ctx.lineWidth=size;ctx.strokeStyle=color;ctx.beginPath();ctx.moveTo(node.x,node.y);ctx.lineTo(point.x,point.y);ctx.stroke();var angle=Math.atan2(force.y,force.x);ctx.fillStyle=color;EndPoints.draw(ctx,{type:\"arrow\",point:point,angle:angle,length:arrowSize});ctx.fill()}}}]);return PhysicsEngine}();exports[\"default\"]=PhysicsEngine},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var RepulsionSolver=function(){function RepulsionSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,RepulsionSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(RepulsionSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var dx,dy,distance,fx,fy,repulsingForce,node1,node2;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;var nodeDistance=this.options.nodeDistance;var a=-2/3/nodeDistance;var b=4/3;for(var i=0;i<nodeIndices.length-1;i++){node1=nodes[nodeIndices[i]];for(var j=i+1;j<nodeIndices.length;j++){node2=nodes[nodeIndices[j]];dx=node2.x-node1.x;dy=node2.y-node1.y;distance=Math.sqrt(dx*dx+dy*dy);if(distance===0){distance=.1*Math.random();dx=distance}if(distance<2*nodeDistance){if(distance<.5*nodeDistance){repulsingForce=1}else{repulsingForce=a*distance+b}repulsingForce=repulsingForce/distance;fx=dx*repulsingForce;fy=dy*repulsingForce;forces[node1.id].x-=fx;forces[node1.id].y-=fy;forces[node2.id].x+=fx;forces[node2.id].y+=fy}}}}}]);return RepulsionSolver}();exports[\"default\"]=RepulsionSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var HierarchicalRepulsionSolver=function(){function HierarchicalRepulsionSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,HierarchicalRepulsionSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(HierarchicalRepulsionSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var dx,dy,distance,fx,fy,repulsingForce,node1,node2,i,j;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;var nodeDistance=this.options.nodeDistance;for(i=0;i<nodeIndices.length-1;i++){node1=nodes[nodeIndices[i]];for(j=i+1;j<nodeIndices.length;j++){node2=nodes[nodeIndices[j]];if(node1.level===node2.level){dx=node2.x-node1.x;dy=node2.y-node1.y;distance=Math.sqrt(dx*dx+dy*dy);var steepness=.05;if(distance<nodeDistance){repulsingForce=-Math.pow(steepness*distance,2)+Math.pow(steepness*nodeDistance,2)}else{repulsingForce=0}if(distance===0){distance=.01}else{repulsingForce=repulsingForce/distance}fx=dx*repulsingForce;fy=dy*repulsingForce;forces[node1.id].x-=fx;forces[node1.id].y-=fy;forces[node2.id].x+=fx;forces[node2.id].y+=fy}}}}}]);return HierarchicalRepulsionSolver}();exports[\"default\"]=HierarchicalRepulsionSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var SpringSolver=function(){function SpringSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,SpringSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(SpringSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var edgeLength=void 0,edge=void 0;var edgeIndices=this.physicsBody.physicsEdgeIndices;var edges=this.body.edges;var node1=void 0,node2=void 0,node3=void 0;for(var i=0;i<edgeIndices.length;i++){edge=edges[edgeIndices[i]];if(edge.connected===true&&edge.toId!==edge.fromId){if(this.body.nodes[edge.toId]!==undefined&&this.body.nodes[edge.fromId]!==undefined){if(edge.edgeType.via!==undefined){edgeLength=edge.options.length===undefined?this.options.springLength:edge.options.length;node1=edge.to;node2=edge.edgeType.via;node3=edge.from;this._calculateSpringForce(node1,node2,.5*edgeLength);this._calculateSpringForce(node2,node3,.5*edgeLength)}else{edgeLength=edge.options.length===undefined?this.options.springLength*1.5:edge.options.length;this._calculateSpringForce(edge.from,edge.to,edgeLength)}}}}}},{key:\"_calculateSpringForce\",value:function _calculateSpringForce(node1,node2,edgeLength){var dx=node1.x-node2.x;var dy=node1.y-node2.y;var distance=Math.max(Math.sqrt(dx*dx+dy*dy),.01);var springForce=this.options.springConstant*(edgeLength-distance)/distance;var fx=dx*springForce;var fy=dy*springForce;if(this.physicsBody.forces[node1.id]!==undefined){this.physicsBody.forces[node1.id].x+=fx;this.physicsBody.forces[node1.id].y+=fy}if(this.physicsBody.forces[node2.id]!==undefined){this.physicsBody.forces[node2.id].x-=fx;this.physicsBody.forces[node2.id].y-=fy}}}]);return SpringSolver}();exports[\"default\"]=SpringSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var HierarchicalSpringSolver=function(){function HierarchicalSpringSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,HierarchicalSpringSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(HierarchicalSpringSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var edgeLength,edge;var dx,dy,fx,fy,springForce,distance;var edges=this.body.edges;var factor=.5;var edgeIndices=this.physicsBody.physicsEdgeIndices;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;for(var i=0;i<nodeIndices.length;i++){var nodeId=nodeIndices[i];forces[nodeId].springFx=0;forces[nodeId].springFy=0}for(var _i=0;_i<edgeIndices.length;_i++){edge=edges[edgeIndices[_i]];if(edge.connected===true){edgeLength=edge.options.length===undefined?this.options.springLength:edge.options.length;dx=edge.from.x-edge.to.x;dy=edge.from.y-edge.to.y;distance=Math.sqrt(dx*dx+dy*dy);distance=distance===0?.01:distance;springForce=this.options.springConstant*(edgeLength-distance)/distance;fx=dx*springForce;fy=dy*springForce;if(edge.to.level!=edge.from.level){if(forces[edge.toId]!==undefined){forces[edge.toId].springFx-=fx;forces[edge.toId].springFy-=fy}if(forces[edge.fromId]!==undefined){forces[edge.fromId].springFx+=fx;forces[edge.fromId].springFy+=fy}}else{if(forces[edge.toId]!==undefined){forces[edge.toId].x-=factor*fx;forces[edge.toId].y-=factor*fy}if(forces[edge.fromId]!==undefined){forces[edge.fromId].x+=factor*fx;forces[edge.fromId].y+=factor*fy}}}}springForce=1;var springFx,springFy;for(var _i2=0;_i2<nodeIndices.length;_i2++){var _nodeId=nodeIndices[_i2];springFx=Math.min(springForce,Math.max(-springForce,forces[_nodeId].springFx));springFy=Math.min(springForce,Math.max(-springForce,forces[_nodeId].springFy));forces[_nodeId].x+=springFx;forces[_nodeId].y+=springFy}var totalFx=0;var totalFy=0;for(var _i3=0;_i3<nodeIndices.length;_i3++){var _nodeId2=nodeIndices[_i3];totalFx+=forces[_nodeId2].x;totalFy+=forces[_nodeId2].y}var correctionFx=totalFx/nodeIndices.length;var correctionFy=totalFy/nodeIndices.length;for(var _i4=0;_i4<nodeIndices.length;_i4++){var _nodeId3=nodeIndices[_i4];forces[_nodeId3].x-=correctionFx;forces[_nodeId3].y-=correctionFy}}}]);return HierarchicalSpringSolver}();exports[\"default\"]=HierarchicalSpringSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BarnesHutSolver2=__webpack_require__(120);var _BarnesHutSolver3=_interopRequireDefault(_BarnesHutSolver2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ForceAtlas2BasedRepulsionSolver=function(_BarnesHutSolver){(0,_inherits3[\"default\"])(ForceAtlas2BasedRepulsionSolver,_BarnesHutSolver);function ForceAtlas2BasedRepulsionSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,ForceAtlas2BasedRepulsionSolver);return(0,_possibleConstructorReturn3[\"default\"])(this,(ForceAtlas2BasedRepulsionSolver.__proto__||(0,_getPrototypeOf2[\"default\"])(ForceAtlas2BasedRepulsionSolver)).call(this,body,physicsBody,options))}(0,_createClass3[\"default\"])(ForceAtlas2BasedRepulsionSolver,[{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,node,parentBranch){if(distance===0){distance=.1*Math.random();dx=distance}if(this.overlapAvoidanceFactor<1&&node.shape.radius){distance=Math.max(.1+this.overlapAvoidanceFactor*node.shape.radius,distance-node.shape.radius)}var degree=node.edges.length+1;var gravityForce=this.options.gravitationalConstant*parentBranch.mass*node.options.mass*degree/Math.pow(distance,2);var fx=dx*gravityForce;var fy=dy*gravityForce;this.physicsBody.forces[node.id].x+=fx;this.physicsBody.forces[node.id].y+=fy}}]);return ForceAtlas2BasedRepulsionSolver}(_BarnesHutSolver3[\"default\"]);exports[\"default\"]=ForceAtlas2BasedRepulsionSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CentralGravitySolver2=__webpack_require__(121);var _CentralGravitySolver3=_interopRequireDefault(_CentralGravitySolver2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ForceAtlas2BasedCentralGravitySolver=function(_CentralGravitySolver){(0,_inherits3[\"default\"])(ForceAtlas2BasedCentralGravitySolver,_CentralGravitySolver);function ForceAtlas2BasedCentralGravitySolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,ForceAtlas2BasedCentralGravitySolver);return(0,_possibleConstructorReturn3[\"default\"])(this,(ForceAtlas2BasedCentralGravitySolver.__proto__||(0,_getPrototypeOf2[\"default\"])(ForceAtlas2BasedCentralGravitySolver)).call(this,body,physicsBody,options))}(0,_createClass3[\"default\"])(ForceAtlas2BasedCentralGravitySolver,[{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,forces,node){if(distance>0){var degree=node.edges.length+1;var gravityForce=this.options.centralGravity*degree*node.options.mass;forces[node.id].x=dx*gravityForce;forces[node.id].y=dy*gravityForce}}}]);return ForceAtlas2BasedCentralGravitySolver}(_CentralGravitySolver3[\"default\"]);exports[\"default\"]=ForceAtlas2BasedCentralGravitySolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=__webpack_require__(76)[\"default\"];var Cluster=__webpack_require__(228)[\"default\"];var Edge=__webpack_require__(74)[\"default\"];var Node=__webpack_require__(47)[\"default\"];var ClusterEngine=function(){function ClusterEngine(body){var _this=this;(0,_classCallCheck3[\"default\"])(this,ClusterEngine);this.body=body;this.clusteredNodes={};this.clusteredEdges={};this.options={};this.defaultOptions={};util.extend(this.options,this.defaultOptions);this.body.emitter.on(\"_resetData\",function(){_this.clusteredNodes={};_this.clusteredEdges={}})}(0,_createClass3[\"default\"])(ClusterEngine,[{key:\"clusterByHubsize\",value:function clusterByHubsize(hubsize,options){if(hubsize===undefined){hubsize=this._getHubSize()}else if((typeof hubsize===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(hubsize))===\"object\"){options=this._checkOptions(hubsize);hubsize=this._getHubSize()}var nodesToCluster=[];for(var i=0;i<this.body.nodeIndices.length;i++){var node=this.body.nodes[this.body.nodeIndices[i]];if(node.edges.length>=hubsize){nodesToCluster.push(node.id)}}for(var _i=0;_i<nodesToCluster.length;_i++){this.clusterByConnection(nodesToCluster[_i],options,true)}this.body.emitter.emit(\"_dataChanged\")}},{key:\"cluster\",value:function cluster(){var _this2=this;var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var refreshData=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(options.joinCondition===undefined){throw new Error(\"Cannot call clusterByNodeData without a joinCondition function in the options.\")}options=this._checkOptions(options);var childNodesObj={};var childEdgesObj={};util.forEach(this.body.nodes,function(node,nodeId){var clonedOptions=NetworkUtil.cloneOptions(node);if(options.joinCondition(clonedOptions)===true){childNodesObj[nodeId]=node;util.forEach(node.edges,function(edge){if(_this2.clusteredEdges[edge.id]===undefined){childEdgesObj[edge.id]=edge}})}});this._cluster(childNodesObj,childEdgesObj,options,refreshData)}},{key:\"clusterByEdgeCount\",value:function clusterByEdgeCount(edgeCount,options){var _this3=this;var refreshData=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;options=this._checkOptions(options);var clusters=[];var usedNodes={};var edge=void 0,edges=void 0,relevantEdgeCount=void 0;var _loop=function _loop(i){var childNodesObj={};var childEdgesObj={};var nodeId=_this3.body.nodeIndices[i];var node=_this3.body.nodes[nodeId];if(usedNodes[nodeId]===undefined){relevantEdgeCount=0;edges=[];for(var j=0;j<node.edges.length;j++){edge=node.edges[j];if(_this3.clusteredEdges[edge.id]===undefined){if(edge.toId!==edge.fromId){relevantEdgeCount++}edges.push(edge)}}if(relevantEdgeCount===edgeCount){checkJoinCondition=function checkJoinCondition(node){if(options.joinCondition===undefined||options.joinCondition===null){return true}var clonedOptions=NetworkUtil.cloneOptions(node);return options.joinCondition(clonedOptions)};var gatheringSuccessful=true;for(var _j=0;_j<edges.length;_j++){edge=edges[_j];var childNodeId=_this3._getConnectedId(edge,nodeId);if(checkJoinCondition(node)){childEdgesObj[edge.id]=edge;childNodesObj[nodeId]=node;childNodesObj[childNodeId]=_this3.body.nodes[childNodeId];usedNodes[nodeId]=true}else{gatheringSuccessful=false;break}}if((0,_keys2[\"default\"])(childNodesObj).length>0&&(0,_keys2[\"default\"])(childEdgesObj).length>0&&gatheringSuccessful===true){findClusterData=function findClusterData(){for(var n=0;n<clusters.length;++n){for(var m in childNodesObj){if(clusters[n].nodes[m]!==undefined){return clusters[n]}}}return undefined};foundCluster=findClusterData();if(foundCluster!==undefined){for(var m in childNodesObj){if(foundCluster.nodes[m]===undefined){foundCluster.nodes[m]=childNodesObj[m]}}for(var _m in childEdgesObj){if(foundCluster.edges[_m]===undefined){foundCluster.edges[_m]=childEdgesObj[_m]}}}else{clusters.push({nodes:childNodesObj,edges:childEdgesObj})}}}}};for(var i=0;i<this.body.nodeIndices.length;i++){var checkJoinCondition;var findClusterData;var foundCluster;_loop(i)}for(var i=0;i<clusters.length;i++){this._cluster(clusters[i].nodes,clusters[i].edges,options,false)}if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"clusterOutliers\",value:function clusterOutliers(options){var refreshData=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;this.clusterByEdgeCount(1,options,refreshData)}},{key:\"clusterBridges\",value:function clusterBridges(options){var refreshData=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;this.clusterByEdgeCount(2,options,refreshData)}},{key:\"clusterByConnection\",value:function clusterByConnection(nodeId,options){var refreshData=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(nodeId===undefined){throw new Error(\"No nodeId supplied to clusterByConnection!\")}if(this.body.nodes[nodeId]===undefined){throw new Error(\"The nodeId given to clusterByConnection does not exist!\")}var node=this.body.nodes[nodeId];options=this._checkOptions(options,node);if(options.clusterNodeProperties.x===undefined){options.clusterNodeProperties.x=node.x}if(options.clusterNodeProperties.y===undefined){options.clusterNodeProperties.y=node.y}if(options.clusterNodeProperties.fixed===undefined){options.clusterNodeProperties.fixed={};options.clusterNodeProperties.fixed.x=node.options.fixed.x;options.clusterNodeProperties.fixed.y=node.options.fixed.y}var childNodesObj={};var childEdgesObj={};var parentNodeId=node.id;var parentClonedOptions=NetworkUtil.cloneOptions(node);childNodesObj[parentNodeId]=node;for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];if(this.clusteredEdges[edge.id]===undefined){var childNodeId=this._getConnectedId(edge,parentNodeId);if(this.clusteredNodes[childNodeId]===undefined){if(childNodeId!==parentNodeId){if(options.joinCondition===undefined){childEdgesObj[edge.id]=edge;childNodesObj[childNodeId]=this.body.nodes[childNodeId]}else{var childClonedOptions=NetworkUtil.cloneOptions(this.body.nodes[childNodeId]);if(options.joinCondition(parentClonedOptions,childClonedOptions)===true){childEdgesObj[edge.id]=edge;childNodesObj[childNodeId]=this.body.nodes[childNodeId]}}}else{childEdgesObj[edge.id]=edge}}}}var childNodeIDs=(0,_keys2[\"default\"])(childNodesObj).map(function(childNode){return childNodesObj[childNode].id});for(childNode in childNodesObj){if(!childNodesObj.hasOwnProperty(childNode))continue;var childNode=childNodesObj[childNode];for(var y=0;y<childNode.edges.length;y++){var childEdge=childNode.edges[y];if(childNodeIDs.indexOf(this._getConnectedId(childEdge,childNode.id))>-1){childEdgesObj[childEdge.id]=childEdge}}}this._cluster(childNodesObj,childEdgesObj,options,refreshData)}},{key:\"_createClusterEdges\",value:function _createClusterEdges(childNodesObj,childEdgesObj,clusterNodeProperties,clusterEdgeProperties){var edge=void 0,childNodeId=void 0,childNode=void 0,toId=void 0,fromId=void 0,otherNodeId=void 0;var childKeys=(0,_keys2[\"default\"])(childNodesObj);var createEdges=[];for(var i=0;i<childKeys.length;i++){childNodeId=childKeys[i];childNode=childNodesObj[childNodeId];for(var j=0;j<childNode.edges.length;j++){edge=childNode.edges[j];if(this.clusteredEdges[edge.id]===undefined){if(edge.toId==edge.fromId){childEdgesObj[edge.id]=edge}else{if(edge.toId==childNodeId){toId=clusterNodeProperties.id;fromId=edge.fromId;otherNodeId=fromId}else{toId=edge.toId;fromId=clusterNodeProperties.id;otherNodeId=toId}}if(childNodesObj[otherNodeId]===undefined){createEdges.push({edge:edge,fromId:fromId,toId:toId})}}}}var newEdges=[];var getNewEdge=function getNewEdge(createdEdge){for(var _j2=0;_j2<newEdges.length;_j2++){var newEdge=newEdges[_j2];var matchToDirection=createdEdge.fromId===newEdge.fromId&&createdEdge.toId===newEdge.toId;var matchFromDirection=createdEdge.fromId===newEdge.toId&&createdEdge.toId===newEdge.fromId;if(matchToDirection||matchFromDirection){return newEdge}}return null};for(var _j3=0;_j3<createEdges.length;_j3++){var createdEdge=createEdges[_j3];var _edge=createdEdge.edge;var newEdge=getNewEdge(createdEdge);if(newEdge===null){newEdge=this._createClusteredEdge(createdEdge.fromId,createdEdge.toId,_edge,clusterEdgeProperties);newEdges.push(newEdge)}else{newEdge.clusteringEdgeReplacingIds.push(_edge.id)}this.body.edges[_edge.id].edgeReplacedById=newEdge.id;this._backupEdgeOptions(_edge);_edge.setOptions({physics:false})}}},{key:\"_checkOptions\",value:function _checkOptions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(options.clusterEdgeProperties===undefined){options.clusterEdgeProperties={}}if(options.clusterNodeProperties===undefined){options.clusterNodeProperties={}}return options}},{key:\"_cluster\",value:function _cluster(childNodesObj,childEdgesObj,options){var refreshData=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var tmpNodesToRemove=[];for(var _nodeId in childNodesObj){if(childNodesObj.hasOwnProperty(_nodeId)){if(this.clusteredNodes[_nodeId]!==undefined){tmpNodesToRemove.push(_nodeId)}}}for(var n=0;n<tmpNodesToRemove.length;++n){delete childNodesObj[tmpNodesToRemove[n]]}if((0,_keys2[\"default\"])(childNodesObj).length==0){return}if((0,_keys2[\"default\"])(childNodesObj).length==1&&options.clusterNodeProperties.allowSingleNodeCluster!=true){return}var clusterNodeProperties=util.deepExtend({},options.clusterNodeProperties);if(options.processProperties!==undefined){var childNodesOptions=[];for(var _nodeId2 in childNodesObj){if(childNodesObj.hasOwnProperty(_nodeId2)){var clonedOptions=NetworkUtil.cloneOptions(childNodesObj[_nodeId2]);childNodesOptions.push(clonedOptions)}}var childEdgesOptions=[];for(var edgeId in childEdgesObj){if(childEdgesObj.hasOwnProperty(edgeId)){if(edgeId.substr(0,12)!==\"clusterEdge:\"){var _clonedOptions=NetworkUtil.cloneOptions(childEdgesObj[edgeId],\"edge\");childEdgesOptions.push(_clonedOptions)}}}clusterNodeProperties=options.processProperties(clusterNodeProperties,childNodesOptions,childEdgesOptions);if(!clusterNodeProperties){throw new Error(\"The processProperties function does not return properties!\")}}if(clusterNodeProperties.id===undefined){clusterNodeProperties.id=\"cluster:\"+util.randomUUID()}var clusterId=clusterNodeProperties.id;if(clusterNodeProperties.label===undefined){clusterNodeProperties.label=\"cluster\"}var pos=undefined;if(clusterNodeProperties.x===undefined){pos=this._getClusterPosition(childNodesObj);clusterNodeProperties.x=pos.x}if(clusterNodeProperties.y===undefined){if(pos===undefined){pos=this._getClusterPosition(childNodesObj)}clusterNodeProperties.y=pos.y}clusterNodeProperties.id=clusterId;var clusterNode=this.body.functions.createNode(clusterNodeProperties,Cluster);clusterNode.containedNodes=childNodesObj;clusterNode.containedEdges=childEdgesObj;clusterNode.clusterEdgeProperties=options.clusterEdgeProperties;this.body.nodes[clusterNodeProperties.id]=clusterNode;this._clusterEdges(childNodesObj,childEdgesObj,clusterNodeProperties,options.clusterEdgeProperties);clusterNodeProperties.id=undefined;if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"_backupEdgeOptions\",value:function _backupEdgeOptions(edge){if(this.clusteredEdges[edge.id]===undefined){this.clusteredEdges[edge.id]={physics:edge.options.physics}}}},{key:\"_restoreEdge\",value:function _restoreEdge(edge){var originalOptions=this.clusteredEdges[edge.id];if(originalOptions!==undefined){edge.setOptions({physics:originalOptions.physics});delete this.clusteredEdges[edge.id]}}},{key:\"isCluster\",value:function isCluster(nodeId){if(this.body.nodes[nodeId]!==undefined){return this.body.nodes[nodeId].isCluster===true}else{console.log(\"Node does not exist.\");return false}}},{key:\"_getClusterPosition\",value:function _getClusterPosition(childNodesObj){var childKeys=(0,_keys2[\"default\"])(childNodesObj);var minX=childNodesObj[childKeys[0]].x;var maxX=childNodesObj[childKeys[0]].x;var minY=childNodesObj[childKeys[0]].y;var maxY=childNodesObj[childKeys[0]].y;var node=void 0;for(var i=1;i<childKeys.length;i++){node=childNodesObj[childKeys[i]];minX=node.x<minX?node.x:minX;maxX=node.x>maxX?node.x:maxX\n;minY=node.y<minY?node.y:minY;maxY=node.y>maxY?node.y:maxY}return{x:.5*(minX+maxX),y:.5*(minY+maxY)}}},{key:\"openCluster\",value:function openCluster(clusterNodeId,options){var refreshData=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(clusterNodeId===undefined){throw new Error(\"No clusterNodeId supplied to openCluster.\")}var clusterNode=this.body.nodes[clusterNodeId];if(clusterNode===undefined){throw new Error(\"The clusterNodeId supplied to openCluster does not exist.\")}if(clusterNode.isCluster!==true||clusterNode.containedNodes===undefined||clusterNode.containedEdges===undefined){throw new Error(\"The node:\"+clusterNodeId+\" is not a valid cluster.\")}var stack=this.findNode(clusterNodeId);var parentIndex=stack.indexOf(clusterNodeId)-1;if(parentIndex>=0){var parentClusterNodeId=stack[parentIndex];var parentClusterNode=this.body.nodes[parentClusterNodeId];parentClusterNode._openChildCluster(clusterNodeId);delete this.body.nodes[clusterNodeId];if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}return}var containedNodes=clusterNode.containedNodes;var containedEdges=clusterNode.containedEdges;if(options!==undefined&&options.releaseFunction!==undefined&&typeof options.releaseFunction===\"function\"){var positions={};var clusterPosition={x:clusterNode.x,y:clusterNode.y};for(var _nodeId3 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId3)){var containedNode=this.body.nodes[_nodeId3];positions[_nodeId3]={x:containedNode.x,y:containedNode.y}}}var newPositions=options.releaseFunction(clusterPosition,positions);for(var _nodeId4 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId4)){var _containedNode=this.body.nodes[_nodeId4];if(newPositions[_nodeId4]!==undefined){_containedNode.x=newPositions[_nodeId4].x===undefined?clusterNode.x:newPositions[_nodeId4].x;_containedNode.y=newPositions[_nodeId4].y===undefined?clusterNode.y:newPositions[_nodeId4].y}}}}else{util.forEach(containedNodes,function(containedNode){if(containedNode.options.fixed.x===false){containedNode.x=clusterNode.x}if(containedNode.options.fixed.y===false){containedNode.y=clusterNode.y}})}for(var _nodeId5 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId5)){var _containedNode2=this.body.nodes[_nodeId5];_containedNode2.vx=clusterNode.vx;_containedNode2.vy=clusterNode.vy;_containedNode2.setOptions({physics:true});delete this.clusteredNodes[_nodeId5]}}var edgesToBeDeleted=[];for(var i=0;i<clusterNode.edges.length;i++){edgesToBeDeleted.push(clusterNode.edges[i])}for(var _i2=0;_i2<edgesToBeDeleted.length;_i2++){var edge=edgesToBeDeleted[_i2];var otherNodeId=this._getConnectedId(edge,clusterNodeId);var otherNode=this.clusteredNodes[otherNodeId];for(var j=0;j<edge.clusteringEdgeReplacingIds.length;j++){var transferId=edge.clusteringEdgeReplacingIds[j];var transferEdge=this.body.edges[transferId];if(transferEdge===undefined)continue;if(otherNode!==undefined){var otherCluster=this.body.nodes[otherNode.clusterId];otherCluster.containedEdges[transferEdge.id]=transferEdge;delete containedEdges[transferEdge.id];var fromId=transferEdge.fromId;var toId=transferEdge.toId;if(transferEdge.toId==otherNodeId){toId=otherNode.clusterId}else{fromId=otherNode.clusterId}this._createClusteredEdge(fromId,toId,transferEdge,otherCluster.clusterEdgeProperties,{hidden:false,physics:true})}else{this._restoreEdge(transferEdge)}}edge.remove()}for(var edgeId in containedEdges){if(containedEdges.hasOwnProperty(edgeId)){this._restoreEdge(containedEdges[edgeId])}}delete this.body.nodes[clusterNodeId];if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"getNodesInCluster\",value:function getNodesInCluster(clusterId){var nodesArray=[];if(this.isCluster(clusterId)===true){var containedNodes=this.body.nodes[clusterId].containedNodes;for(var _nodeId6 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId6)){nodesArray.push(this.body.nodes[_nodeId6].id)}}}return nodesArray}},{key:\"findNode\",value:function findNode(nodeId){var stack=[];var max=100;var counter=0;var node=void 0;while(this.clusteredNodes[nodeId]!==undefined&&counter<max){node=this.body.nodes[nodeId];if(node===undefined)return[];stack.push(node.id);nodeId=this.clusteredNodes[nodeId].clusterId;counter++}node=this.body.nodes[nodeId];if(node===undefined)return[];stack.push(node.id);stack.reverse();return stack}},{key:\"updateClusteredNode\",value:function updateClusteredNode(clusteredNodeId,newOptions){if(clusteredNodeId===undefined){throw new Error(\"No clusteredNodeId supplied to updateClusteredNode.\")}if(newOptions===undefined){throw new Error(\"No newOptions supplied to updateClusteredNode.\")}if(this.body.nodes[clusteredNodeId]===undefined){throw new Error(\"The clusteredNodeId supplied to updateClusteredNode does not exist.\")}this.body.nodes[clusteredNodeId].setOptions(newOptions);this.body.emitter.emit(\"_dataChanged\")}},{key:\"updateEdge\",value:function updateEdge(startEdgeId,newOptions){if(startEdgeId===undefined){throw new Error(\"No startEdgeId supplied to updateEdge.\")}if(newOptions===undefined){throw new Error(\"No newOptions supplied to updateEdge.\")}if(this.body.edges[startEdgeId]===undefined){throw new Error(\"The startEdgeId supplied to updateEdge does not exist.\")}var allEdgeIds=this.getClusteredEdges(startEdgeId);for(var i=0;i<allEdgeIds.length;i++){var edge=this.body.edges[allEdgeIds[i]];edge.setOptions(newOptions)}this.body.emitter.emit(\"_dataChanged\")}},{key:\"getClusteredEdges\",value:function getClusteredEdges(edgeId){var stack=[];var max=100;var counter=0;while(edgeId!==undefined&&this.body.edges[edgeId]!==undefined&&counter<max){stack.push(this.body.edges[edgeId].id);edgeId=this.body.edges[edgeId].edgeReplacedById;counter++}stack.reverse();return stack}},{key:\"getBaseEdge\",value:function getBaseEdge(clusteredEdgeId){return this.getBaseEdges(clusteredEdgeId)[0]}},{key:\"getBaseEdges\",value:function getBaseEdges(clusteredEdgeId){var IdsToHandle=[clusteredEdgeId];var doneIds=[];var foundIds=[];var max=100;var counter=0;while(IdsToHandle.length>0&&counter<max){var nextId=IdsToHandle.pop();if(nextId===undefined)continue;var nextEdge=this.body.edges[nextId];if(nextEdge===undefined)continue;counter++;var replacingIds=nextEdge.clusteringEdgeReplacingIds;if(replacingIds===undefined){foundIds.push(nextId)}else{for(var i=0;i<replacingIds.length;++i){var replacingId=replacingIds[i];if(IdsToHandle.indexOf(replacingIds)!==-1||doneIds.indexOf(replacingIds)!==-1){continue}IdsToHandle.push(replacingId)}}doneIds.push(nextId)}return foundIds}},{key:\"_getConnectedId\",value:function _getConnectedId(edge,nodeId){if(edge.toId!=nodeId){return edge.toId}else if(edge.fromId!=nodeId){return edge.fromId}else{return edge.fromId}}},{key:\"_getHubSize\",value:function _getHubSize(){var average=0;var averageSquared=0;var hubCounter=0;var largestHub=0;for(var i=0;i<this.body.nodeIndices.length;i++){var _node=this.body.nodes[this.body.nodeIndices[i]];if(_node.edges.length>largestHub){largestHub=_node.edges.length}average+=_node.edges.length;averageSquared+=Math.pow(_node.edges.length,2);hubCounter+=1}average=average/hubCounter;averageSquared=averageSquared/hubCounter;var variance=averageSquared-Math.pow(average,2);var standardDeviation=Math.sqrt(variance);var hubThreshold=Math.floor(average+2*standardDeviation);if(hubThreshold>largestHub){hubThreshold=largestHub}return hubThreshold}},{key:\"_createClusteredEdge\",value:function _createClusteredEdge(fromId,toId,baseEdge,clusterEdgeProperties,extraOptions){var clonedOptions=NetworkUtil.cloneOptions(baseEdge,\"edge\");util.deepExtend(clonedOptions,clusterEdgeProperties);clonedOptions.from=fromId;clonedOptions.to=toId;clonedOptions.id=\"clusterEdge:\"+util.randomUUID();if(extraOptions!==undefined){util.deepExtend(clonedOptions,extraOptions)}var newEdge=this.body.functions.createEdge(clonedOptions);newEdge.clusteringEdgeReplacingIds=[baseEdge.id];newEdge.connect();this.body.edges[newEdge.id]=newEdge;return newEdge}},{key:\"_clusterEdges\",value:function _clusterEdges(childNodes,childEdges,clusterNode,clusterEdgeProperties){if(childEdges instanceof Edge){var edge=childEdges;var obj={};obj[edge.id]=edge;childEdges=obj}if(childNodes instanceof Node){var _node2=childNodes;var _obj={};_obj[_node2.id]=_node2;childNodes=_obj}if(clusterNode===undefined||clusterNode===null){throw new Error(\"_clusterEdges: parameter clusterNode required\")}if(clusterEdgeProperties===undefined){clusterEdgeProperties=clusterNode.clusterEdgeProperties}this._createClusterEdges(childNodes,childEdges,clusterNode,clusterEdgeProperties);for(var edgeId in childEdges){if(childEdges.hasOwnProperty(edgeId)){if(this.body.edges[edgeId]!==undefined){var _edge2=this.body.edges[edgeId];this._backupEdgeOptions(_edge2);_edge2.setOptions({physics:false})}}}for(var _nodeId7 in childNodes){if(childNodes.hasOwnProperty(_nodeId7)){this.clusteredNodes[_nodeId7]={clusterId:clusterNode.id,node:this.body.nodes[_nodeId7]};this.body.nodes[_nodeId7].setOptions({physics:false})}}}},{key:\"_getClusterNodeForNode\",value:function _getClusterNodeForNode(nodeId){if(nodeId===undefined)return undefined;var clusteredNode=this.clusteredNodes[nodeId];if(clusteredNode===undefined)return undefined;var clusterId=clusteredNode.clusterId;if(clusterId===undefined)return undefined;return this.body.nodes[clusterId]}},{key:\"_filter\",value:function _filter(arr,callback){var ret=[];util.forEach(arr,function(item){if(callback(item)){ret.push(item)}});return ret}},{key:\"_updateState\",value:function _updateState(){var _this4=this;var nodeId=void 0;var deletedNodeIds=[];var deletedEdgeIds=[];var eachClusterNode=function eachClusterNode(callback){util.forEach(_this4.body.nodes,function(node){if(node.isCluster===true){callback(node)}})};for(nodeId in this.clusteredNodes){if(!this.clusteredNodes.hasOwnProperty(nodeId))continue;var _node3=this.body.nodes[nodeId];if(_node3===undefined){deletedNodeIds.push(nodeId)}}eachClusterNode(function(clusterNode){for(var n=0;n<deletedNodeIds.length;n++){delete clusterNode.containedNodes[deletedNodeIds[n]]}});for(var n=0;n<deletedNodeIds.length;n++){delete this.clusteredNodes[deletedNodeIds[n]]}util.forEach(this.clusteredEdges,function(edgeId){var edge=_this4.body.edges[edgeId];if(edge===undefined||!edge.endPointsValid()){deletedEdgeIds.push(edgeId)}});eachClusterNode(function(clusterNode){util.forEach(clusterNode.containedEdges,function(edge,edgeId){if(!edge.endPointsValid()&&deletedEdgeIds.indexOf(edgeId)===-1){deletedEdgeIds.push(edgeId)}})});util.forEach(this.body.edges,function(edge,edgeId){var isValid=true;var replacedIds=edge.clusteringEdgeReplacingIds;if(replacedIds!==undefined){var numValid=0;util.forEach(replacedIds,function(containedEdgeId){var containedEdge=_this4.body.edges[containedEdgeId];if(containedEdge!==undefined&&containedEdge.endPointsValid()){numValid+=1}});isValid=numValid>0}if(!edge.endPointsValid()||!isValid){deletedEdgeIds.push(edgeId)}});eachClusterNode(function(clusterNode){util.forEach(deletedEdgeIds,function(deletedEdgeId){delete clusterNode.containedEdges[deletedEdgeId];util.forEach(clusterNode.edges,function(edge,m){if(edge.id===deletedEdgeId){clusterNode.edges[m]=null;return}edge.clusteringEdgeReplacingIds=_this4._filter(edge.clusteringEdgeReplacingIds,function(id){return deletedEdgeIds.indexOf(id)===-1})});clusterNode.edges=_this4._filter(clusterNode.edges,function(item){return item!==null})})});util.forEach(deletedEdgeIds,function(edgeId){delete _this4.clusteredEdges[edgeId]});util.forEach(deletedEdgeIds,function(edgeId){delete _this4.body.edges[edgeId]});var ids=(0,_keys2[\"default\"])(this.body.edges);util.forEach(ids,function(edgeId){var edge=_this4.body.edges[edgeId];var shouldBeClustered=_this4._isClusteredNode(edge.fromId)||_this4._isClusteredNode(edge.toId);if(shouldBeClustered===_this4._isClusteredEdge(edge.id)){return}if(shouldBeClustered){var clusterFrom=_this4._getClusterNodeForNode(edge.fromId);if(clusterFrom!==undefined){_this4._clusterEdges(_this4.body.nodes[edge.fromId],edge,clusterFrom)}var clusterTo=_this4._getClusterNodeForNode(edge.toId);if(clusterTo!==undefined){_this4._clusterEdges(_this4.body.nodes[edge.toId],edge,clusterTo)}}else{throw new Error(\"remove edge from clustering not implemented!\")}});var changed=false;var continueLoop=true;var _loop2=function _loop2(){var clustersToOpen=[];eachClusterNode(function(clusterNode){var numNodes=(0,_keys2[\"default\"])(clusterNode.containedNodes).length;var allowSingle=clusterNode.options.allowSingleNodeCluster===true;if(allowSingle&&numNodes<1||!allowSingle&&numNodes<2){clustersToOpen.push(clusterNode.id)}});for(var _n=0;_n<clustersToOpen.length;++_n){_this4.openCluster(clustersToOpen[_n],{},false)}continueLoop=clustersToOpen.length>0;changed=changed||continueLoop};while(continueLoop){_loop2()}if(changed){this._updateState()}}},{key:\"_isClusteredNode\",value:function _isClusteredNode(nodeId){return this.clusteredNodes[nodeId]!==undefined}},{key:\"_isClusteredEdge\",value:function _isClusteredEdge(edgeId){return this.clusteredEdges[edgeId]!==undefined}}]);return ClusterEngine}();exports[\"default\"]=ClusterEngine},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Node=__webpack_require__(47)[\"default\"];var Cluster=function(_Node){(0,_inherits3[\"default\"])(Cluster,_Node);function Cluster(options,body,imagelist,grouplist,globalOptions,defaultOptions){(0,_classCallCheck3[\"default\"])(this,Cluster);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Cluster.__proto__||(0,_getPrototypeOf2[\"default\"])(Cluster)).call(this,options,body,imagelist,grouplist,globalOptions,defaultOptions));_this.isCluster=true;_this.containedNodes={};_this.containedEdges={};return _this}(0,_createClass3[\"default\"])(Cluster,[{key:\"_openChildCluster\",value:function _openChildCluster(childClusterId){var _this2=this;var childCluster=this.body.nodes[childClusterId];if(this.containedNodes[childClusterId]===undefined){throw new Error(\"node with id: \"+childClusterId+\" not in current cluster\")}if(!childCluster.isCluster){throw new Error(\"node with id: \"+childClusterId+\" is not a cluster\")}delete this.containedNodes[childClusterId];util.forEach(childCluster.edges,function(edge){delete _this2.containedEdges[edge.id]});util.forEach(childCluster.containedNodes,function(node,nodeId){_this2.containedNodes[nodeId]=node});childCluster.containedNodes={};util.forEach(childCluster.containedEdges,function(edge,edgeId){_this2.containedEdges[edgeId]=edge});childCluster.containedEdges={};util.forEach(childCluster.edges,function(clusterEdge){util.forEach(_this2.edges,function(parentClusterEdge){var index=parentClusterEdge.clusteringEdgeReplacingIds.indexOf(clusterEdge.id);if(index===-1)return;util.forEach(clusterEdge.clusteringEdgeReplacingIds,function(srcId){parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);_this2.body.edges[srcId].edgeReplacedById=parentClusterEdge.id});parentClusterEdge.clusteringEdgeReplacingIds.splice(index,1)})});childCluster.edges=[]}}]);return Cluster}(Node);exports[\"default\"]=Cluster},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _initRequestAnimationFrame(){var func;if(window!==undefined){func=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame}if(func===undefined){window.requestAnimationFrame=function(callback){callback()}}else{window.requestAnimationFrame=func}}var util=__webpack_require__(2);var CanvasRenderer=function(){function CanvasRenderer(body,canvas){(0,_classCallCheck3[\"default\"])(this,CanvasRenderer);_initRequestAnimationFrame();this.body=body;this.canvas=canvas;this.redrawRequested=false;this.renderTimer=undefined;this.requiresTimeout=true;this.renderingActive=false;this.renderRequests=0;this.allowRedraw=true;this.dragging=false;this.options={};this.defaultOptions={hideEdgesOnDrag:false,hideNodesOnDrag:false};util.extend(this.options,this.defaultOptions);this._determineBrowserMethod();this.bindEventListeners()}(0,_createClass3[\"default\"])(CanvasRenderer,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.on(\"dragStart\",function(){_this.dragging=true});this.body.emitter.on(\"dragEnd\",function(){_this.dragging=false});this.body.emitter.on(\"_resizeNodes\",function(){_this._resizeNodes()});this.body.emitter.on(\"_redraw\",function(){if(_this.renderingActive===false){_this._redraw()}});this.body.emitter.on(\"_blockRedraw\",function(){_this.allowRedraw=false});this.body.emitter.on(\"_allowRedraw\",function(){_this.allowRedraw=true;_this.redrawRequested=false});this.body.emitter.on(\"_requestRedraw\",this._requestRedraw.bind(this));this.body.emitter.on(\"_startRendering\",function(){_this.renderRequests+=1;_this.renderingActive=true;_this._startRendering()});this.body.emitter.on(\"_stopRendering\",function(){_this.renderRequests-=1;_this.renderingActive=_this.renderRequests>0;_this.renderTimer=undefined});this.body.emitter.on(\"destroy\",function(){_this.renderRequests=0;_this.allowRedraw=false;_this.renderingActive=false;if(_this.requiresTimeout===true){clearTimeout(_this.renderTimer)}else{window.cancelAnimationFrame(_this.renderTimer)}_this.body.emitter.off()})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){var fields=[\"hideEdgesOnDrag\",\"hideNodesOnDrag\"];util.selectiveDeepExtend(fields,this.options,options)}}},{key:\"_requestNextFrame\",value:function _requestNextFrame(callback,delay){if(typeof window===\"undefined\")return;var timer=void 0;var myWindow=window;if(this.requiresTimeout===true){timer=myWindow.setTimeout(callback,delay)}else{if(myWindow.requestAnimationFrame){timer=myWindow.requestAnimationFrame(callback)}}return timer}},{key:\"_startRendering\",value:function _startRendering(){if(this.renderingActive===true){if(this.renderTimer===undefined){this.renderTimer=this._requestNextFrame(this._renderStep.bind(this),this.simulationInterval)}}}},{key:\"_renderStep\",value:function _renderStep(){if(this.renderingActive===true){this.renderTimer=undefined;if(this.requiresTimeout===true){this._startRendering()}this._redraw();if(this.requiresTimeout===false){this._startRendering()}}}},{key:\"redraw\",value:function redraw(){this.body.emitter.emit(\"setSize\");this._redraw()}},{key:\"_requestRedraw\",value:function _requestRedraw(){var _this2=this;if(this.redrawRequested!==true&&this.renderingActive===false&&this.allowRedraw===true){this.redrawRequested=true;this._requestNextFrame(function(){_this2._redraw(false)},0)}}},{key:\"_redraw\",value:function _redraw(){var hidden=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.allowRedraw===true){this.body.emitter.emit(\"initRedraw\");this.redrawRequested=false;if(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0){this.canvas.setSize()}this.canvas.setTransform();var ctx=this.canvas.getContext();var w=this.canvas.frame.canvas.clientWidth;var h=this.canvas.frame.canvas.clientHeight;ctx.clearRect(0,0,w,h);if(this.canvas.frame.clientWidth===0){return}ctx.save();ctx.translate(this.body.view.translation.x,this.body.view.translation.y);ctx.scale(this.body.view.scale,this.body.view.scale);ctx.beginPath();this.body.emitter.emit(\"beforeDrawing\",ctx);ctx.closePath();if(hidden===false){if(this.dragging===false||this.dragging===true&&this.options.hideEdgesOnDrag===false){this._drawEdges(ctx)}}if(this.dragging===false||this.dragging===true&&this.options.hideNodesOnDrag===false){this._drawNodes(ctx,hidden)}ctx.beginPath();this.body.emitter.emit(\"afterDrawing\",ctx);ctx.closePath();ctx.restore();if(hidden===true){ctx.clearRect(0,0,w,h)}}}},{key:\"_resizeNodes\",value:function _resizeNodes(){this.canvas.setTransform();var ctx=this.canvas.getContext();ctx.save();ctx.translate(this.body.view.translation.x,this.body.view.translation.y);ctx.scale(this.body.view.scale,this.body.view.scale);var nodes=this.body.nodes;var node=void 0;for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){node=nodes[nodeId];node.resize(ctx);node.updateBoundingBox(ctx,node.selected)}}ctx.restore()}},{key:\"_drawNodes\",value:function _drawNodes(ctx){var alwaysShow=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var nodes=this.body.nodes;var nodeIndices=this.body.nodeIndices;var node=void 0;var selected=[];var margin=20;var topLeft=this.canvas.DOMtoCanvas({x:-margin,y:-margin});var bottomRight=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+margin,y:this.canvas.frame.canvas.clientHeight+margin});var viewableArea={top:topLeft.y,left:topLeft.x,bottom:bottomRight.y,right:bottomRight.x};for(var i=0;i<nodeIndices.length;i++){node=nodes[nodeIndices[i]];if(node.isSelected()){selected.push(nodeIndices[i])}else{if(alwaysShow===true){node.draw(ctx)}else if(node.isBoundingBoxOverlappingWith(viewableArea)===true){node.draw(ctx)}else{node.updateBoundingBox(ctx,node.selected)}}}for(var _i=0;_i<selected.length;_i++){node=nodes[selected[_i]];node.draw(ctx)}}},{key:\"_drawEdges\",value:function _drawEdges(ctx){var edges=this.body.edges;var edgeIndices=this.body.edgeIndices;var edge=void 0;for(var i=0;i<edgeIndices.length;i++){edge=edges[edgeIndices[i]];if(edge.connected===true){edge.draw(ctx)}}}},{key:\"_determineBrowserMethod\",value:function _determineBrowserMethod(){if(typeof window!==\"undefined\"){var browserType=navigator.userAgent.toLowerCase();this.requiresTimeout=false;if(browserType.indexOf(\"msie 9.0\")!=-1){this.requiresTimeout=true}else if(browserType.indexOf(\"safari\")!=-1){if(browserType.indexOf(\"chrome\")<=-1){this.requiresTimeout=true}}}else{this.requiresTimeout=true}}}]);return CanvasRenderer}();exports[\"default\"]=CanvasRenderer},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var util=__webpack_require__(2);var Canvas=function(){function Canvas(body){(0,_classCallCheck3[\"default\"])(this,Canvas);this.body=body;this.pixelRatio=1;this.resizeTimer=undefined;this.resizeFunction=this._onResize.bind(this);this.cameraState={};this.initialized=false;this.canvasViewCenter={};this.options={};this.defaultOptions={autoResize:true,height:\"100%\",width:\"100%\"};util.extend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(Canvas,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.once(\"resize\",function(obj){if(obj.width!==0){_this.body.view.translation.x=obj.width*.5}if(obj.height!==0){_this.body.view.translation.y=obj.height*.5}});this.body.emitter.on(\"setSize\",this.setSize.bind(this));this.body.emitter.on(\"destroy\",function(){_this.hammerFrame.destroy();_this.hammer.destroy();_this._cleanUp()})}},{key:\"setOptions\",value:function setOptions(options){var _this2=this;if(options!==undefined){var fields=[\"width\",\"height\",\"autoResize\"];util.selectiveDeepExtend(fields,this.options,options)}if(this.options.autoResize===true){this._cleanUp();this.resizeTimer=setInterval(function(){var changed=_this2.setSize();if(changed===true){_this2.body.emitter.emit(\"_requestRedraw\")}},1e3);this.resizeFunction=this._onResize.bind(this);util.addEventListener(window,\"resize\",this.resizeFunction)}}},{key:\"_cleanUp\",value:function _cleanUp(){if(this.resizeTimer!==undefined){clearInterval(this.resizeTimer)}util.removeEventListener(window,\"resize\",this.resizeFunction);this.resizeFunction=undefined}},{key:\"_onResize\",value:function _onResize(){this.setSize();this.body.emitter.emit(\"_redraw\")}},{key:\"_getCameraState\",value:function _getCameraState(){var pixelRatio=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.pixelRatio;if(this.initialized===true){this.cameraState.previousWidth=this.frame.canvas.width/pixelRatio;this.cameraState.previousHeight=this.frame.canvas.height/pixelRatio;this.cameraState.scale=this.body.view.scale;this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/pixelRatio,y:.5*this.frame.canvas.height/pixelRatio})}}},{key:\"_setCameraState\",value:function _setCameraState(){if(this.cameraState.scale!==undefined&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0){var widthRatio=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth;var heightRatio=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight;var newScale=this.cameraState.scale;if(widthRatio!=1&&heightRatio!=1){newScale=this.cameraState.scale*.5*(widthRatio+heightRatio)}else if(widthRatio!=1){newScale=this.cameraState.scale*widthRatio}else if(heightRatio!=1){newScale=this.cameraState.scale*heightRatio}this.body.view.scale=newScale;var currentViewCenter=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight});var distanceFromCenter={x:currentViewCenter.x-this.cameraState.position.x,y:currentViewCenter.y-this.cameraState.position.y};this.body.view.translation.x+=distanceFromCenter.x*this.body.view.scale;this.body.view.translation.y+=distanceFromCenter.y*this.body.view.scale}}},{key:\"_prepareValue\",value:function _prepareValue(value){if(typeof value===\"number\"){return value+\"px\"}else if(typeof value===\"string\"){if(value.indexOf(\"%\")!==-1||value.indexOf(\"px\")!==-1){return value}else if(value.indexOf(\"%\")===-1){return value+\"px\"}}throw new Error(\"Could not use the value supplied for width or height:\"+value)}},{key:\"_create\",value:function _create(){while(this.body.container.hasChildNodes()){this.body.container.removeChild(this.body.container.firstChild)}this.frame=document.createElement(\"div\");this.frame.className=\"vis-network\";this.frame.style.position=\"relative\";this.frame.style.overflow=\"hidden\";this.frame.tabIndex=900;this.frame.canvas=document.createElement(\"canvas\");this.frame.canvas.style.position=\"relative\";this.frame.appendChild(this.frame.canvas);if(!this.frame.canvas.getContext){var noCanvas=document.createElement(\"DIV\");noCanvas.style.color=\"red\";noCanvas.style.fontWeight=\"bold\";noCanvas.style.padding=\"10px\";noCanvas.innerHTML=\"Error: your browser does not support HTML canvas\";this.frame.canvas.appendChild(noCanvas)}else{this._setPixelRatio();this.setTransform()}this.body.container.appendChild(this.frame);this.body.view.scale=1;this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight};this._bindHammer()}},{key:\"_bindHammer\",value:function _bindHammer(){var _this3=this;if(this.hammer!==undefined){this.hammer.destroy()}this.drag={};this.pinch={};this.hammer=new Hammer(this.frame.canvas);this.hammer.get(\"pinch\").set({enable:true});this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_ALL});hammerUtil.onTouch(this.hammer,function(event){_this3.body.eventListeners.onTouch(event)});this.hammer.on(\"tap\",function(event){_this3.body.eventListeners.onTap(event)});this.hammer.on(\"doubletap\",function(event){_this3.body.eventListeners.onDoubleTap(event)});this.hammer.on(\"press\",function(event){_this3.body.eventListeners.onHold(event)});this.hammer.on(\"panstart\",function(event){_this3.body.eventListeners.onDragStart(event)});this.hammer.on(\"panmove\",function(event){_this3.body.eventListeners.onDrag(event)});this.hammer.on(\"panend\",function(event){_this3.body.eventListeners.onDragEnd(event)});this.hammer.on(\"pinch\",function(event){_this3.body.eventListeners.onPinch(event)});this.frame.canvas.addEventListener(\"mousewheel\",function(event){_this3.body.eventListeners.onMouseWheel(event)});this.frame.canvas.addEventListener(\"DOMMouseScroll\",function(event){_this3.body.eventListeners.onMouseWheel(event)});this.frame.canvas.addEventListener(\"mousemove\",function(event){_this3.body.eventListeners.onMouseMove(event)});this.frame.canvas.addEventListener(\"contextmenu\",function(event){_this3.body.eventListeners.onContext(event)});this.hammerFrame=new Hammer(this.frame);hammerUtil.onRelease(this.hammerFrame,function(event){_this3.body.eventListeners.onRelease(event)})}},{key:\"setSize\",value:function setSize(){var width=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.options.width;var height=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.options.height;width=this._prepareValue(width);height=this._prepareValue(height);var emitEvent=false;var oldWidth=this.frame.canvas.width;var oldHeight=this.frame.canvas.height;var previousRatio=this.pixelRatio;this._setPixelRatio();if(width!=this.options.width||height!=this.options.height||this.frame.style.width!=width||this.frame.style.height!=height){this._getCameraState(previousRatio);this.frame.style.width=width;this.frame.style.height=height;this.frame.canvas.style.width=\"100%\";this.frame.canvas.style.height=\"100%\";this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio);this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.options.width=width;this.options.height=height;this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight};emitEvent=true}else{var newWidth=Math.round(this.frame.canvas.clientWidth*this.pixelRatio);var newHeight=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);if(this.frame.canvas.width!==newWidth||this.frame.canvas.height!==newHeight){this._getCameraState(previousRatio)}if(this.frame.canvas.width!==newWidth){this.frame.canvas.width=newWidth;emitEvent=true}if(this.frame.canvas.height!==newHeight){this.frame.canvas.height=newHeight;emitEvent=true}}if(emitEvent===true){this.body.emitter.emit(\"resize\",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(oldWidth/this.pixelRatio),oldHeight:Math.round(oldHeight/this.pixelRatio)});this._setCameraState()}this.initialized=true;return emitEvent}},{key:\"getContext\",value:function getContext(){return this.frame.canvas.getContext(\"2d\")}},{key:\"_determinePixelRatio\",value:function _determinePixelRatio(){var ctx=this.getContext();if(ctx===undefined){throw new Error(\"Could not get canvax context\")}var numerator=1;if(typeof window!==\"undefined\"){numerator=window.devicePixelRatio||1}var denominator=ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1;return numerator/denominator}},{key:\"_setPixelRatio\",value:function _setPixelRatio(){this.pixelRatio=this._determinePixelRatio()}},{key:\"setTransform\",value:function setTransform(){var ctx=this.getContext();if(ctx===undefined){throw new Error(\"Could not get canvax context\")}ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:\"_XconvertDOMtoCanvas\",value:function _XconvertDOMtoCanvas(x){return(x-this.body.view.translation.x)/this.body.view.scale}},{\nkey:\"_XconvertCanvasToDOM\",value:function _XconvertCanvasToDOM(x){return x*this.body.view.scale+this.body.view.translation.x}},{key:\"_YconvertDOMtoCanvas\",value:function _YconvertDOMtoCanvas(y){return(y-this.body.view.translation.y)/this.body.view.scale}},{key:\"_YconvertCanvasToDOM\",value:function _YconvertCanvasToDOM(y){return y*this.body.view.scale+this.body.view.translation.y}},{key:\"canvasToDOM\",value:function canvasToDOM(pos){return{x:this._XconvertCanvasToDOM(pos.x),y:this._YconvertCanvasToDOM(pos.y)}}},{key:\"DOMtoCanvas\",value:function DOMtoCanvas(pos){return{x:this._XconvertDOMtoCanvas(pos.x),y:this._YconvertDOMtoCanvas(pos.y)}}}]);return Canvas}();exports[\"default\"]=Canvas},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=__webpack_require__(76)[\"default\"];var View=function(){function View(body,canvas){var _this=this;(0,_classCallCheck3[\"default\"])(this,View);this.body=body;this.canvas=canvas;this.animationSpeed=1/this.renderRefreshRate;this.animationEasingFunction=\"easeInOutQuint\";this.easingTime=0;this.sourceScale=0;this.targetScale=0;this.sourceTranslation=0;this.targetTranslation=0;this.lockedOnNodeId=undefined;this.lockedOnNodeOffset=undefined;this.touchTime=0;this.viewFunction=undefined;this.body.emitter.on(\"fit\",this.fit.bind(this));this.body.emitter.on(\"animationFinished\",function(){_this.body.emitter.emit(\"_stopRendering\")});this.body.emitter.on(\"unlockNode\",this.releaseNode.bind(this))}(0,_createClass3[\"default\"])(View,[{key:\"setOptions\",value:function setOptions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.options=options}},{key:\"fit\",value:function fit(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{nodes:[]};var initialZoom=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var range=void 0;var zoomLevel=void 0;if(options.nodes===undefined||options.nodes.length===0){options.nodes=this.body.nodeIndices}if(initialZoom===true){var positionDefined=0;for(var nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){var node=this.body.nodes[nodeId];if(node.predefinedPosition===true){positionDefined+=1}}}if(positionDefined>.5*this.body.nodeIndices.length){this.fit(options,false);return}range=NetworkUtil.getRange(this.body.nodes,options.nodes);var numberOfNodes=this.body.nodeIndices.length;zoomLevel=12.662/(numberOfNodes+7.4147)+.0964822;var factor=Math.min(this.canvas.frame.canvas.clientWidth/600,this.canvas.frame.canvas.clientHeight/600);zoomLevel*=factor}else{this.body.emitter.emit(\"_resizeNodes\");range=NetworkUtil.getRange(this.body.nodes,options.nodes);var xDistance=Math.abs(range.maxX-range.minX)*1.1;var yDistance=Math.abs(range.maxY-range.minY)*1.1;var xZoomLevel=this.canvas.frame.canvas.clientWidth/xDistance;var yZoomLevel=this.canvas.frame.canvas.clientHeight/yDistance;zoomLevel=xZoomLevel<=yZoomLevel?xZoomLevel:yZoomLevel}if(zoomLevel>1){zoomLevel=1}else if(zoomLevel===0){zoomLevel=1}var center=NetworkUtil.findCenter(range);var animationOptions={position:center,scale:zoomLevel,animation:options.animation};this.moveTo(animationOptions)}},{key:\"focus\",value:function focus(nodeId){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.body.nodes[nodeId]!==undefined){var nodePosition={x:this.body.nodes[nodeId].x,y:this.body.nodes[nodeId].y};options.position=nodePosition;options.lockedOnNode=nodeId;this.moveTo(options)}else{console.log(\"Node: \"+nodeId+\" cannot be found.\")}}},{key:\"moveTo\",value:function moveTo(options){if(options===undefined){options={};return}if(options.offset===undefined){options.offset={x:0,y:0}}if(options.offset.x===undefined){options.offset.x=0}if(options.offset.y===undefined){options.offset.y=0}if(options.scale===undefined){options.scale=this.body.view.scale}if(options.position===undefined){options.position=this.getViewPosition()}if(options.animation===undefined){options.animation={duration:0}}if(options.animation===false){options.animation={duration:0}}if(options.animation===true){options.animation={}}if(options.animation.duration===undefined){options.animation.duration=1e3}if(options.animation.easingFunction===undefined){options.animation.easingFunction=\"easeInOutQuad\"}this.animateView(options)}},{key:\"animateView\",value:function animateView(options){if(options===undefined){return}this.animationEasingFunction=options.animation.easingFunction;this.releaseNode();if(options.locked===true){this.lockedOnNodeId=options.lockedOnNode;this.lockedOnNodeOffset=options.offset}if(this.easingTime!=0){this._transitionRedraw(true)}this.sourceScale=this.body.view.scale;this.sourceTranslation=this.body.view.translation;this.targetScale=options.scale;this.body.view.scale=this.targetScale;var viewCenter=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight});var distanceFromCenter={x:viewCenter.x-options.position.x,y:viewCenter.y-options.position.y};this.targetTranslation={x:this.sourceTranslation.x+distanceFromCenter.x*this.targetScale+options.offset.x,y:this.sourceTranslation.y+distanceFromCenter.y*this.targetScale+options.offset.y};if(options.animation.duration===0){if(this.lockedOnNodeId!=undefined){this.viewFunction=this._lockedRedraw.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction)}else{this.body.view.scale=this.targetScale;this.body.view.translation=this.targetTranslation;this.body.emitter.emit(\"_requestRedraw\")}}else{this.animationSpeed=1/(60*options.animation.duration*.001)||1/60;this.animationEasingFunction=options.animation.easingFunction;this.viewFunction=this._transitionRedraw.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction);this.body.emitter.emit(\"_startRendering\")}}},{key:\"_lockedRedraw\",value:function _lockedRedraw(){var nodePosition={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y};var viewCenter=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight});var distanceFromCenter={x:viewCenter.x-nodePosition.x,y:viewCenter.y-nodePosition.y};var sourceTranslation=this.body.view.translation;var targetTranslation={x:sourceTranslation.x+distanceFromCenter.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:sourceTranslation.y+distanceFromCenter.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=targetTranslation}},{key:\"releaseNode\",value:function releaseNode(){if(this.lockedOnNodeId!==undefined&&this.viewFunction!==undefined){this.body.emitter.off(\"initRedraw\",this.viewFunction);this.lockedOnNodeId=undefined;this.lockedOnNodeOffset=undefined}}},{key:\"_transitionRedraw\",value:function _transitionRedraw(){var finished=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;this.easingTime+=this.animationSpeed;this.easingTime=finished===true?1:this.easingTime;var progress=util.easingFunctions[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*progress;this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*progress,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*progress};if(this.easingTime>=1){this.body.emitter.off(\"initRedraw\",this.viewFunction);this.easingTime=0;if(this.lockedOnNodeId!=undefined){this.viewFunction=this._lockedRedraw.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction)}this.body.emitter.emit(\"animationFinished\")}}},{key:\"getScale\",value:function getScale(){return this.body.view.scale}},{key:\"getViewPosition\",value:function getViewPosition(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]);return View}();exports[\"default\"]=View},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NavigationHandler=__webpack_require__(233)[\"default\"];var Popup=__webpack_require__(104)[\"default\"];var InteractionHandler=function(){function InteractionHandler(body,canvas,selectionHandler){(0,_classCallCheck3[\"default\"])(this,InteractionHandler);this.body=body;this.canvas=canvas;this.selectionHandler=selectionHandler;this.navigationHandler=new NavigationHandler(body,canvas);this.body.eventListeners.onTap=this.onTap.bind(this);this.body.eventListeners.onTouch=this.onTouch.bind(this);this.body.eventListeners.onDoubleTap=this.onDoubleTap.bind(this);this.body.eventListeners.onHold=this.onHold.bind(this);this.body.eventListeners.onDragStart=this.onDragStart.bind(this);this.body.eventListeners.onDrag=this.onDrag.bind(this);this.body.eventListeners.onDragEnd=this.onDragEnd.bind(this);this.body.eventListeners.onMouseWheel=this.onMouseWheel.bind(this);this.body.eventListeners.onPinch=this.onPinch.bind(this);this.body.eventListeners.onMouseMove=this.onMouseMove.bind(this);this.body.eventListeners.onRelease=this.onRelease.bind(this);this.body.eventListeners.onContext=this.onContext.bind(this);this.touchTime=0;this.drag={};this.pinch={};this.popup=undefined;this.popupObj=undefined;this.popupTimer=undefined;this.body.functions.getPointer=this.getPointer.bind(this);this.options={};this.defaultOptions={dragNodes:true,dragView:true,hover:false,keyboard:{enabled:false,speed:{x:10,y:10,zoom:.02},bindToWindow:true},navigationButtons:false,tooltipDelay:300,zoomView:true};util.extend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(InteractionHandler,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.on(\"destroy\",function(){clearTimeout(_this.popupTimer);delete _this.body.functions.getPointer})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){var fields=[\"hideEdgesOnDrag\",\"hideNodesOnDrag\",\"keyboard\",\"multiselect\",\"selectable\",\"selectConnectedEdges\"];util.selectiveNotDeepExtend(fields,this.options,options);util.mergeOptions(this.options,options,\"keyboard\");if(options.tooltip){util.extend(this.options.tooltip,options.tooltip);if(options.tooltip.color){this.options.tooltip.color=util.parseColor(options.tooltip.color)}}}this.navigationHandler.setOptions(this.options)}},{key:\"getPointer\",value:function getPointer(touch){return{x:touch.x-util.getAbsoluteLeft(this.canvas.frame.canvas),y:touch.y-util.getAbsoluteTop(this.canvas.frame.canvas)}}},{key:\"onTouch\",value:function onTouch(event){if((new Date).valueOf()-this.touchTime>50){this.drag.pointer=this.getPointer(event.center);this.drag.pinched=false;this.pinch.scale=this.body.view.scale;this.touchTime=(new Date).valueOf()}}},{key:\"onTap\",value:function onTap(event){var pointer=this.getPointer(event.center);var multiselect=this.selectionHandler.options.multiselect&&(event.changedPointers[0].ctrlKey||event.changedPointers[0].metaKey);this.checkSelectionChanges(pointer,event,multiselect);this.selectionHandler._generateClickEvent(\"click\",event,pointer)}},{key:\"onDoubleTap\",value:function onDoubleTap(event){var pointer=this.getPointer(event.center);this.selectionHandler._generateClickEvent(\"doubleClick\",event,pointer)}},{key:\"onHold\",value:function onHold(event){var pointer=this.getPointer(event.center);var multiselect=this.selectionHandler.options.multiselect;this.checkSelectionChanges(pointer,event,multiselect);this.selectionHandler._generateClickEvent(\"click\",event,pointer);this.selectionHandler._generateClickEvent(\"hold\",event,pointer)}},{key:\"onRelease\",value:function onRelease(event){if((new Date).valueOf()-this.touchTime>10){var pointer=this.getPointer(event.center);this.selectionHandler._generateClickEvent(\"release\",event,pointer);this.touchTime=(new Date).valueOf()}}},{key:\"onContext\",value:function onContext(event){var pointer=this.getPointer({x:event.clientX,y:event.clientY});this.selectionHandler._generateClickEvent(\"oncontext\",event,pointer)}},{key:\"checkSelectionChanges\",value:function checkSelectionChanges(pointer,event){var add=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var previousSelection=this.selectionHandler.getSelection();var selected=false;if(add===true){selected=this.selectionHandler.selectAdditionalOnPoint(pointer)}else{selected=this.selectionHandler.selectOnPoint(pointer)}var currentSelection=this.selectionHandler.getSelection();var deselectedItems=this._determineDifference(previousSelection,currentSelection);var selectedItems=this._determineDifference(currentSelection,previousSelection);if(deselectedItems.edges.length>0){this.selectionHandler._generateClickEvent(\"deselectEdge\",event,pointer,previousSelection);selected=true}if(deselectedItems.nodes.length>0){this.selectionHandler._generateClickEvent(\"deselectNode\",event,pointer,previousSelection);selected=true}if(selectedItems.nodes.length>0){this.selectionHandler._generateClickEvent(\"selectNode\",event,pointer);selected=true}if(selectedItems.edges.length>0){this.selectionHandler._generateClickEvent(\"selectEdge\",event,pointer);selected=true}if(selected===true){this.selectionHandler._generateClickEvent(\"select\",event,pointer)}}},{key:\"_determineDifference\",value:function _determineDifference(firstSet,secondSet){var arrayDiff=function arrayDiff(firstArr,secondArr){var result=[];for(var i=0;i<firstArr.length;i++){var value=firstArr[i];if(secondArr.indexOf(value)===-1){result.push(value)}}return result};return{nodes:arrayDiff(firstSet.nodes,secondSet.nodes),edges:arrayDiff(firstSet.edges,secondSet.edges)}}},{key:\"onDragStart\",value:function onDragStart(event){if(this.drag.pointer===undefined){this.onTouch(event)}var node=this.selectionHandler.getNodeAt(this.drag.pointer);this.drag.dragging=true;this.drag.selection=[];this.drag.translation=util.extend({},this.body.view.translation);this.drag.nodeId=undefined;if(node!==undefined&&this.options.dragNodes===true){this.drag.nodeId=node.id;if(node.isSelected()===false){this.selectionHandler.unselectAll();this.selectionHandler.selectObject(node)}this.selectionHandler._generateClickEvent(\"dragStart\",event,this.drag.pointer);var selection=this.selectionHandler.selectionObj.nodes;for(var nodeId in selection){if(selection.hasOwnProperty(nodeId)){var object=selection[nodeId];var s={id:object.id,node:object,x:object.x,y:object.y,xFixed:object.options.fixed.x,yFixed:object.options.fixed.y};object.options.fixed.x=true;object.options.fixed.y=true;this.drag.selection.push(s)}}}else{this.selectionHandler._generateClickEvent(\"dragStart\",event,this.drag.pointer,undefined,true)}}},{key:\"onDrag\",value:function onDrag(event){var _this2=this;if(this.drag.pinched===true){return}this.body.emitter.emit(\"unlockNode\");var pointer=this.getPointer(event.center);var selection=this.drag.selection;if(selection&&selection.length&&this.options.dragNodes===true){this.selectionHandler._generateClickEvent(\"dragging\",event,pointer);var deltaX=pointer.x-this.drag.pointer.x;var deltaY=pointer.y-this.drag.pointer.y;selection.forEach(function(selection){var node=selection.node;if(selection.xFixed===false){node.x=_this2.canvas._XconvertDOMtoCanvas(_this2.canvas._XconvertCanvasToDOM(selection.x)+deltaX)}if(selection.yFixed===false){node.y=_this2.canvas._YconvertDOMtoCanvas(_this2.canvas._YconvertCanvasToDOM(selection.y)+deltaY)}});this.body.emitter.emit(\"startSimulation\")}else{if(this.options.dragView===true){this.selectionHandler._generateClickEvent(\"dragging\",event,pointer,undefined,true);if(this.drag.pointer===undefined){this.onDragStart(event);return}var diffX=pointer.x-this.drag.pointer.x;var diffY=pointer.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+diffX,y:this.drag.translation.y+diffY};this.body.emitter.emit(\"_requestRedraw\")}}}},{key:\"onDragEnd\",value:function onDragEnd(event){this.drag.dragging=false;var selection=this.drag.selection;if(selection&&selection.length){selection.forEach(function(s){s.node.options.fixed.x=s.xFixed;s.node.options.fixed.y=s.yFixed});this.selectionHandler._generateClickEvent(\"dragEnd\",event,this.getPointer(event.center));this.body.emitter.emit(\"startSimulation\")}else{this.selectionHandler._generateClickEvent(\"dragEnd\",event,this.getPointer(event.center),undefined,true);this.body.emitter.emit(\"_requestRedraw\")}}},{key:\"onPinch\",value:function onPinch(event){var pointer=this.getPointer(event.center);this.drag.pinched=true;if(this.pinch[\"scale\"]===undefined){this.pinch.scale=1}var scale=this.pinch.scale*event.scale;this.zoom(scale,pointer)}},{key:\"zoom\",value:function zoom(scale,pointer){if(this.options.zoomView===true){var scaleOld=this.body.view.scale;if(scale<1e-5){scale=1e-5}if(scale>10){scale=10}var preScaleDragPointer=undefined;if(this.drag!==undefined){if(this.drag.dragging===true){preScaleDragPointer=this.canvas.DOMtoCanvas(this.drag.pointer)}}var translation=this.body.view.translation;var scaleFrac=scale/scaleOld;var tx=(1-scaleFrac)*pointer.x+translation.x*scaleFrac;var ty=(1-scaleFrac)*pointer.y+translation.y*scaleFrac;this.body.view.scale=scale;this.body.view.translation={x:tx,y:ty};if(preScaleDragPointer!=undefined){var postScaleDragPointer=this.canvas.canvasToDOM(preScaleDragPointer);this.drag.pointer.x=postScaleDragPointer.x;this.drag.pointer.y=postScaleDragPointer.y}this.body.emitter.emit(\"_requestRedraw\");if(scaleOld<scale){this.body.emitter.emit(\"zoom\",{direction:\"+\",scale:this.body.view.scale,pointer:pointer})}else{this.body.emitter.emit(\"zoom\",{direction:\"-\",scale:this.body.view.scale,pointer:pointer})}}}},{key:\"onMouseWheel\",value:function onMouseWheel(event){if(this.options.zoomView===true){var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120}else if(event.detail){delta=-event.detail/3}if(delta!==0){var scale=this.body.view.scale;var zoom=delta/10;if(delta<0){zoom=zoom/(1-zoom)}scale*=1+zoom;var pointer=this.getPointer({x:event.clientX,y:event.clientY});this.zoom(scale,pointer)}event.preventDefault()}}},{key:\"onMouseMove\",value:function onMouseMove(event){var _this3=this;var pointer=this.getPointer({x:event.clientX,y:event.clientY});var popupVisible=false;if(this.popup!==undefined){if(this.popup.hidden===false){this._checkHidePopup(pointer)}if(this.popup.hidden===false){popupVisible=true;this.popup.setPosition(pointer.x+3,pointer.y-5);this.popup.show()}}if(this.options.keyboard.bindToWindow===false&&this.options.keyboard.enabled===true){this.canvas.frame.focus()}if(popupVisible===false){if(this.popupTimer!==undefined){clearInterval(this.popupTimer);this.popupTimer=undefined}if(!this.drag.dragging){this.popupTimer=setTimeout(function(){return _this3._checkShowPopup(pointer)},this.options.tooltipDelay)}}if(this.options.hover===true){this.selectionHandler.hoverObject(event,pointer)}}},{key:\"_checkShowPopup\",value:function _checkShowPopup(pointer){var x=this.canvas._XconvertDOMtoCanvas(pointer.x);var y=this.canvas._YconvertDOMtoCanvas(pointer.y);var pointerObj={left:x,top:y,right:x,bottom:y};var previousPopupObjId=this.popupObj===undefined?undefined:this.popupObj.id;var nodeUnderCursor=false;var popupType=\"node\";if(this.popupObj===undefined){var nodeIndices=this.body.nodeIndices;var nodes=this.body.nodes;var node=void 0;var overlappingNodes=[];for(var i=0;i<nodeIndices.length;i++){node=nodes[nodeIndices[i]];if(node.isOverlappingWith(pointerObj)===true){if(node.getTitle()!==undefined){overlappingNodes.push(nodeIndices[i])}}}if(overlappingNodes.length>0){this.popupObj=nodes[overlappingNodes[overlappingNodes.length-1]];nodeUnderCursor=true}}if(this.popupObj===undefined&&nodeUnderCursor===false){var edgeIndices=this.body.edgeIndices;var edges=this.body.edges;var edge=void 0;var overlappingEdges=[];for(var _i=0;_i<edgeIndices.length;_i++){edge=edges[edgeIndices[_i]];if(edge.isOverlappingWith(pointerObj)===true){if(edge.connected===true&&edge.getTitle()!==undefined){overlappingEdges.push(edgeIndices[_i])}}}if(overlappingEdges.length>0){this.popupObj=edges[overlappingEdges[overlappingEdges.length-1]];popupType=\"edge\"}}if(this.popupObj!==undefined){if(this.popupObj.id!==previousPopupObjId){if(this.popup===undefined){this.popup=new Popup(this.canvas.frame)}this.popup.popupTargetType=popupType;this.popup.popupTargetId=this.popupObj.id;this.popup.setPosition(pointer.x+3,pointer.y-5);this.popup.setText(this.popupObj.getTitle());this.popup.show();this.body.emitter.emit(\"showPopup\",this.popupObj.id)}}else{if(this.popup!==undefined){this.popup.hide();this.body.emitter.emit(\"hidePopup\")}}}},{key:\"_checkHidePopup\",value:function _checkHidePopup(pointer){var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var stillOnObj=false;if(this.popup.popupTargetType===\"node\"){if(this.body.nodes[this.popup.popupTargetId]!==undefined){stillOnObj=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(pointerObj);if(stillOnObj===true){var overNode=this.selectionHandler.getNodeAt(pointer);stillOnObj=overNode===undefined?false:overNode.id===this.popup.popupTargetId}}}else{if(this.selectionHandler.getNodeAt(pointer)===undefined){if(this.body.edges[this.popup.popupTargetId]!==undefined){stillOnObj=this.body.edges[this.popup.popupTargetId].isOverlappingWith(pointerObj)}}}if(stillOnObj===false){this.popupObj=undefined;this.popup.hide();this.body.emitter.emit(\"hidePopup\")}}}]);return InteractionHandler}();exports[\"default\"]=InteractionHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var keycharm=__webpack_require__(35);var NavigationHandler=function(){function NavigationHandler(body,canvas){var _this=this;(0,_classCallCheck3[\"default\"])(this,NavigationHandler);this.body=body;this.canvas=canvas;this.iconsCreated=false;this.navigationHammers=[];this.boundFunctions={};this.touchTime=0;this.activated=false;this.body.emitter.on(\"activate\",function(){_this.activated=true;_this.configureKeyboardBindings()});this.body.emitter.on(\"deactivate\",function(){_this.activated=false;_this.configureKeyboardBindings()});this.body.emitter.on(\"destroy\",function(){if(_this.keycharm!==undefined){_this.keycharm.destroy()}});this.options={}}(0,_createClass3[\"default\"])(NavigationHandler,[{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){this.options=options;this.create()}}},{key:\"create\",value:function create(){if(this.options.navigationButtons===true){if(this.iconsCreated===false){this.loadNavigationElements()}}else if(this.iconsCreated===true){this.cleanNavigation()}this.configureKeyboardBindings()}},{key:\"cleanNavigation\",value:function cleanNavigation(){if(this.navigationHammers.length!=0){for(var i=0;i<this.navigationHammers.length;i++){this.navigationHammers[i].destroy()}this.navigationHammers=[]}if(this.navigationDOM&&this.navigationDOM[\"wrapper\"]&&this.navigationDOM[\"wrapper\"].parentNode){this.navigationDOM[\"wrapper\"].parentNode.removeChild(this.navigationDOM[\"wrapper\"])}this.iconsCreated=false}},{key:\"loadNavigationElements\",value:function loadNavigationElements(){var _this2=this;this.cleanNavigation();this.navigationDOM={};var navigationDivs=[\"up\",\"down\",\"left\",\"right\",\"zoomIn\",\"zoomOut\",\"zoomExtends\"];var navigationDivActions=[\"_moveUp\",\"_moveDown\",\"_moveLeft\",\"_moveRight\",\"_zoomIn\",\"_zoomOut\",\"_fit\"];this.navigationDOM[\"wrapper\"]=document.createElement(\"div\");this.navigationDOM[\"wrapper\"].className=\"vis-navigation\";this.canvas.frame.appendChild(this.navigationDOM[\"wrapper\"]);for(var i=0;i<navigationDivs.length;i++){this.navigationDOM[navigationDivs[i]]=document.createElement(\"div\");this.navigationDOM[navigationDivs[i]].className=\"vis-button vis-\"+navigationDivs[i];this.navigationDOM[\"wrapper\"].appendChild(this.navigationDOM[navigationDivs[i]]);var hammer=new Hammer(this.navigationDOM[navigationDivs[i]]);if(navigationDivActions[i]===\"_fit\"){hammerUtil.onTouch(hammer,this._fit.bind(this))}else{hammerUtil.onTouch(hammer,this.bindToRedraw.bind(this,navigationDivActions[i]))}this.navigationHammers.push(hammer)}var hammerFrame=new Hammer(this.canvas.frame);hammerUtil.onRelease(hammerFrame,function(){_this2._stopMovement()});this.navigationHammers.push(hammerFrame);this.iconsCreated=true}},{key:\"bindToRedraw\",value:function bindToRedraw(action){if(this.boundFunctions[action]===undefined){this.boundFunctions[action]=this[action].bind(this);this.body.emitter.on(\"initRedraw\",this.boundFunctions[action]);this.body.emitter.emit(\"_startRendering\")}}},{key:\"unbindFromRedraw\",value:function unbindFromRedraw(action){if(this.boundFunctions[action]!==undefined){this.body.emitter.off(\"initRedraw\",this.boundFunctions[action]);this.body.emitter.emit(\"_stopRendering\");delete this.boundFunctions[action]}}},{key:\"_fit\",value:function _fit(){if((new Date).valueOf()-this.touchTime>700){this.body.emitter.emit(\"fit\",{duration:700});this.touchTime=(new Date).valueOf()}}},{key:\"_stopMovement\",value:function _stopMovement(){for(var boundAction in this.boundFunctions){if(this.boundFunctions.hasOwnProperty(boundAction)){this.body.emitter.off(\"initRedraw\",this.boundFunctions[boundAction]);this.body.emitter.emit(\"_stopRendering\")}}this.boundFunctions={}}},{key:\"_moveUp\",value:function _moveUp(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:\"_moveDown\",value:function _moveDown(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:\"_moveLeft\",value:function _moveLeft(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:\"_moveRight\",value:function _moveRight(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:\"_zoomIn\",value:function _zoomIn(){var scaleOld=this.body.view.scale;var scale=this.body.view.scale*(1+this.options.keyboard.speed.zoom);var translation=this.body.view.translation;var scaleFrac=scale/scaleOld;var tx=(1-scaleFrac)*this.canvas.canvasViewCenter.x+translation.x*scaleFrac;var ty=(1-scaleFrac)*this.canvas.canvasViewCenter.y+translation.y*scaleFrac;this.body.view.scale=scale;this.body.view.translation={x:tx,y:ty};this.body.emitter.emit(\"zoom\",{direction:\"+\",scale:this.body.view.scale,pointer:null})}},{key:\"_zoomOut\",value:function _zoomOut(){var scaleOld=this.body.view.scale;var scale=this.body.view.scale/(1+this.options.keyboard.speed.zoom);var translation=this.body.view.translation;var scaleFrac=scale/scaleOld;var tx=(1-scaleFrac)*this.canvas.canvasViewCenter.x+translation.x*scaleFrac;var ty=(1-scaleFrac)*this.canvas.canvasViewCenter.y+translation.y*scaleFrac;this.body.view.scale=scale;this.body.view.translation={x:tx,y:ty};this.body.emitter.emit(\"zoom\",{direction:\"-\",scale:this.body.view.scale,pointer:null})}},{key:\"configureKeyboardBindings\",value:function configureKeyboardBindings(){var _this3=this;if(this.keycharm!==undefined){this.keycharm.destroy()}if(this.options.keyboard.enabled===true){if(this.options.keyboard.bindToWindow===true){this.keycharm=keycharm({container:window,preventDefault:true})}else{this.keycharm=keycharm({container:this.canvas.frame,preventDefault:true})}this.keycharm.reset();if(this.activated===true){this.keycharm.bind(\"up\",function(){_this3.bindToRedraw(\"_moveUp\")},\"keydown\");this.keycharm.bind(\"down\",function(){_this3.bindToRedraw(\"_moveDown\")},\"keydown\");this.keycharm.bind(\"left\",function(){_this3.bindToRedraw(\"_moveLeft\")},\"keydown\");this.keycharm.bind(\"right\",function(){_this3.bindToRedraw(\"_moveRight\")},\"keydown\");this.keycharm.bind(\"=\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"num+\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"num-\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"-\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"[\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"]\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"pageup\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"pagedown\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"up\",function(){_this3.unbindFromRedraw(\"_moveUp\")},\"keyup\");this.keycharm.bind(\"down\",function(){_this3.unbindFromRedraw(\"_moveDown\")},\"keyup\");this.keycharm.bind(\"left\",function(){_this3.unbindFromRedraw(\"_moveLeft\")},\"keyup\");this.keycharm.bind(\"right\",function(){_this3.unbindFromRedraw(\"_moveRight\")},\"keyup\");this.keycharm.bind(\"=\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"num+\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"num-\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\");this.keycharm.bind(\"-\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\");this.keycharm.bind(\"[\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\");this.keycharm.bind(\"]\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"pageup\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"pagedown\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\")}}}}]);return NavigationHandler}();exports[\"default\"]=NavigationHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Node=__webpack_require__(47)[\"default\"];var Edge=__webpack_require__(74)[\"default\"];var util=__webpack_require__(2);var SelectionHandler=function(){function SelectionHandler(body,canvas){var _this=this;(0,_classCallCheck3[\"default\"])(this,SelectionHandler);this.body=body;this.canvas=canvas;this.selectionObj={nodes:[],edges:[]};this.hoverObj={nodes:{},edges:{}};this.options={};this.defaultOptions={multiselect:false,selectable:true,selectConnectedEdges:true,hoverConnectedEdges:true};util.extend(this.options,this.defaultOptions);this.body.emitter.on(\"_dataChanged\",function(){_this.updateSelection()})}(0,_createClass3[\"default\"])(SelectionHandler,[{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){var fields=[\"multiselect\",\"hoverConnectedEdges\",\"selectable\",\"selectConnectedEdges\"];util.selectiveDeepExtend(fields,this.options,options)}}},{key:\"selectOnPoint\",value:function selectOnPoint(pointer){var selected=false;if(this.options.selectable===true){var obj=this.getNodeAt(pointer)||this.getEdgeAt(pointer);this.unselectAll();if(obj!==undefined){selected=this.selectObject(obj)}this.body.emitter.emit(\"_requestRedraw\")}return selected}},{key:\"selectAdditionalOnPoint\",value:function selectAdditionalOnPoint(pointer){var selectionChanged=false;if(this.options.selectable===true){var obj=this.getNodeAt(pointer)||this.getEdgeAt(pointer);if(obj!==undefined){selectionChanged=true;if(obj.isSelected()===true){this.deselectObject(obj)}else{this.selectObject(obj)}this.body.emitter.emit(\"_requestRedraw\")}}return selectionChanged}},{key:\"_initBaseEvent\",value:function _initBaseEvent(event,pointer){var properties={};properties[\"pointer\"]={DOM:{\nx:pointer.x,y:pointer.y},canvas:this.canvas.DOMtoCanvas(pointer)};properties[\"event\"]=event;return properties}},{key:\"_generateClickEvent\",value:function _generateClickEvent(eventType,event,pointer,oldSelection){var emptySelection=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var properties=this._initBaseEvent(event,pointer);if(emptySelection===true){properties.nodes=[];properties.edges=[]}else{var tmp=this.getSelection();properties.nodes=tmp.nodes;properties.edges=tmp.edges}if(oldSelection!==undefined){properties[\"previousSelection\"]=oldSelection}if(eventType==\"click\"){properties.items=this.getClickedItems(pointer)}this.body.emitter.emit(eventType,properties)}},{key:\"selectObject\",value:function selectObject(obj){var highlightEdges=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.options.selectConnectedEdges;if(obj!==undefined){if(obj instanceof Node){if(highlightEdges===true){this._selectConnectedEdges(obj)}}obj.select();this._addToSelection(obj);return true}return false}},{key:\"deselectObject\",value:function deselectObject(obj){if(obj.isSelected()===true){obj.selected=false;this._removeFromSelection(obj)}}},{key:\"_getAllNodesOverlappingWith\",value:function _getAllNodesOverlappingWith(object){var overlappingNodes=[];var nodes=this.body.nodes;for(var i=0;i<this.body.nodeIndices.length;i++){var nodeId=this.body.nodeIndices[i];if(nodes[nodeId].isOverlappingWith(object)){overlappingNodes.push(nodeId)}}return overlappingNodes}},{key:\"_pointerToPositionObject\",value:function _pointerToPositionObject(pointer){var canvasPos=this.canvas.DOMtoCanvas(pointer);return{left:canvasPos.x-1,top:canvasPos.y+1,right:canvasPos.x+1,bottom:canvasPos.y-1}}},{key:\"getNodeAt\",value:function getNodeAt(pointer){var returnNode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var positionObject=this._pointerToPositionObject(pointer);var overlappingNodes=this._getAllNodesOverlappingWith(positionObject);if(overlappingNodes.length>0){if(returnNode===true){return this.body.nodes[overlappingNodes[overlappingNodes.length-1]]}else{return overlappingNodes[overlappingNodes.length-1]}}else{return undefined}}},{key:\"_getEdgesOverlappingWith\",value:function _getEdgesOverlappingWith(object,overlappingEdges){var edges=this.body.edges;for(var i=0;i<this.body.edgeIndices.length;i++){var edgeId=this.body.edgeIndices[i];if(edges[edgeId].isOverlappingWith(object)){overlappingEdges.push(edgeId)}}}},{key:\"_getAllEdgesOverlappingWith\",value:function _getAllEdgesOverlappingWith(object){var overlappingEdges=[];this._getEdgesOverlappingWith(object,overlappingEdges);return overlappingEdges}},{key:\"getEdgeAt\",value:function getEdgeAt(pointer){var returnEdge=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var canvasPos=this.canvas.DOMtoCanvas(pointer);var mindist=10;var overlappingEdge=null;var edges=this.body.edges;for(var i=0;i<this.body.edgeIndices.length;i++){var edgeId=this.body.edgeIndices[i];var edge=edges[edgeId];if(edge.connected){var xFrom=edge.from.x;var yFrom=edge.from.y;var xTo=edge.to.x;var yTo=edge.to.y;var dist=edge.edgeType.getDistanceToEdge(xFrom,yFrom,xTo,yTo,canvasPos.x,canvasPos.y);if(dist<mindist){overlappingEdge=edgeId;mindist=dist}}}if(overlappingEdge!==null){if(returnEdge===true){return this.body.edges[overlappingEdge]}else{return overlappingEdge}}else{return undefined}}},{key:\"_addToSelection\",value:function _addToSelection(obj){if(obj instanceof Node){this.selectionObj.nodes[obj.id]=obj}else{this.selectionObj.edges[obj.id]=obj}}},{key:\"_addToHover\",value:function _addToHover(obj){if(obj instanceof Node){this.hoverObj.nodes[obj.id]=obj}else{this.hoverObj.edges[obj.id]=obj}}},{key:\"_removeFromSelection\",value:function _removeFromSelection(obj){if(obj instanceof Node){delete this.selectionObj.nodes[obj.id];this._unselectConnectedEdges(obj)}else{delete this.selectionObj.edges[obj.id]}}},{key:\"unselectAll\",value:function unselectAll(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){this.selectionObj.nodes[nodeId].unselect()}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){this.selectionObj.edges[edgeId].unselect()}}this.selectionObj={nodes:{},edges:{}}}},{key:\"_getSelectedNodeCount\",value:function _getSelectedNodeCount(){var count=0;for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){count+=1}}return count}},{key:\"_getSelectedNode\",value:function _getSelectedNode(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){return this.selectionObj.nodes[nodeId]}}return undefined}},{key:\"_getSelectedEdge\",value:function _getSelectedEdge(){for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){return this.selectionObj.edges[edgeId]}}return undefined}},{key:\"_getSelectedEdgeCount\",value:function _getSelectedEdgeCount(){var count=0;for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){count+=1}}return count}},{key:\"_getSelectedObjectCount\",value:function _getSelectedObjectCount(){var count=0;for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){count+=1}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){count+=1}}return count}},{key:\"_selectionIsEmpty\",value:function _selectionIsEmpty(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){return false}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){return false}}return true}},{key:\"_clusterInSelection\",value:function _clusterInSelection(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){if(this.selectionObj.nodes[nodeId].clusterSize>1){return true}}}return false}},{key:\"_selectConnectedEdges\",value:function _selectConnectedEdges(node){for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];edge.select();this._addToSelection(edge)}}},{key:\"_hoverConnectedEdges\",value:function _hoverConnectedEdges(node){for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];edge.hover=true;this._addToHover(edge)}}},{key:\"_unselectConnectedEdges\",value:function _unselectConnectedEdges(node){for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];edge.unselect();this._removeFromSelection(edge)}}},{key:\"emitBlurEvent\",value:function emitBlurEvent(event,pointer,object){var properties=this._initBaseEvent(event,pointer);if(object.hover===true){object.hover=false;if(object instanceof Node){properties.node=object.id;this.body.emitter.emit(\"blurNode\",properties)}else{properties.edge=object.id;this.body.emitter.emit(\"blurEdge\",properties)}}}},{key:\"emitHoverEvent\",value:function emitHoverEvent(event,pointer,object){var properties=this._initBaseEvent(event,pointer);var hoverChanged=false;if(object.hover===false){object.hover=true;this._addToHover(object);hoverChanged=true;if(object instanceof Node){properties.node=object.id;this.body.emitter.emit(\"hoverNode\",properties)}else{properties.edge=object.id;this.body.emitter.emit(\"hoverEdge\",properties)}}return hoverChanged}},{key:\"hoverObject\",value:function hoverObject(event,pointer){var object=this.getNodeAt(pointer);if(object===undefined){object=this.getEdgeAt(pointer)}var hoverChanged=false;for(var nodeId in this.hoverObj.nodes){if(this.hoverObj.nodes.hasOwnProperty(nodeId)){if(object===undefined||object instanceof Node&&object.id!=nodeId||object instanceof Edge){this.emitBlurEvent(event,pointer,this.hoverObj.nodes[nodeId]);delete this.hoverObj.nodes[nodeId];hoverChanged=true}}}for(var edgeId in this.hoverObj.edges){if(this.hoverObj.edges.hasOwnProperty(edgeId)){if(hoverChanged===true){this.hoverObj.edges[edgeId].hover=false;delete this.hoverObj.edges[edgeId]}else if(object===undefined||object instanceof Edge&&object.id!=edgeId||object instanceof Node&&!object.hover){this.emitBlurEvent(event,pointer,this.hoverObj.edges[edgeId]);delete this.hoverObj.edges[edgeId];hoverChanged=true}}}if(object!==undefined){hoverChanged=hoverChanged||this.emitHoverEvent(event,pointer,object);if(object instanceof Node&&this.options.hoverConnectedEdges===true){this._hoverConnectedEdges(object)}}if(hoverChanged===true){this.body.emitter.emit(\"_requestRedraw\")}}},{key:\"getSelection\",value:function getSelection(){var nodeIds=this.getSelectedNodes();var edgeIds=this.getSelectedEdges();return{nodes:nodeIds,edges:edgeIds}}},{key:\"getSelectedNodes\",value:function getSelectedNodes(){var idArray=[];if(this.options.selectable===true){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){idArray.push(this.selectionObj.nodes[nodeId].id)}}}return idArray}},{key:\"getSelectedEdges\",value:function getSelectedEdges(){var idArray=[];if(this.options.selectable===true){for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){idArray.push(this.selectionObj.edges[edgeId].id)}}}return idArray}},{key:\"setSelection\",value:function setSelection(selection){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=void 0,id=void 0;if(!selection||!selection.nodes&&!selection.edges)throw\"Selection must be an object with nodes and/or edges properties\";if(options.unselectAll||options.unselectAll===undefined){this.unselectAll()}if(selection.nodes){for(i=0;i<selection.nodes.length;i++){id=selection.nodes[i];var node=this.body.nodes[id];if(!node){throw new RangeError('Node with id \"'+id+'\" not found')}this.selectObject(node,options.highlightEdges)}}if(selection.edges){for(i=0;i<selection.edges.length;i++){id=selection.edges[i];var edge=this.body.edges[id];if(!edge){throw new RangeError('Edge with id \"'+id+'\" not found')}this.selectObject(edge)}}this.body.emitter.emit(\"_requestRedraw\")}},{key:\"selectNodes\",value:function selectNodes(selection){var highlightEdges=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(!selection||selection.length===undefined)throw\"Selection must be an array with ids\";this.setSelection({nodes:selection},{highlightEdges:highlightEdges})}},{key:\"selectEdges\",value:function selectEdges(selection){if(!selection||selection.length===undefined)throw\"Selection must be an array with ids\";this.setSelection({edges:selection})}},{key:\"updateSelection\",value:function updateSelection(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){if(!this.body.nodes.hasOwnProperty(nodeId)){delete this.selectionObj.nodes[nodeId]}}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){if(!this.body.edges.hasOwnProperty(edgeId)){delete this.selectionObj.edges[edgeId]}}}}},{key:\"getClickedItems\",value:function getClickedItems(pointer){var point=this.canvas.DOMtoCanvas(pointer);var items=[];var nodeIndices=this.body.nodeIndices;var nodes=this.body.nodes;for(var i=nodeIndices.length-1;i>=0;i--){var node=nodes[nodeIndices[i]];var ret=node.getItemsOnPoint(point);items.push.apply(items,ret)}var edgeIndices=this.body.edgeIndices;var edges=this.body.edges;for(var _i=edgeIndices.length-1;_i>=0;_i--){var edge=edges[edgeIndices[_i]];var _ret=edge.getItemsOnPoint(point);items.push.apply(items,_ret)}return items}}]);return SelectionHandler}();exports[\"default\"]=SelectionHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=__webpack_require__(76)[\"default\"];var _require=__webpack_require__(236),HorizontalStrategy=_require.HorizontalStrategy,VerticalStrategy=_require.VerticalStrategy;var HierarchicalStatus=function(){function HierarchicalStatus(){(0,_classCallCheck3[\"default\"])(this,HierarchicalStatus);this.childrenReference={};this.parentReference={};this.trees={};this.distributionOrdering={};this.levels={};this.distributionIndex={};this.isTree=false;this.treeIndex=-1}(0,_createClass3[\"default\"])(HierarchicalStatus,[{key:\"addRelation\",value:function addRelation(parentNodeId,childNodeId){if(this.childrenReference[parentNodeId]===undefined){this.childrenReference[parentNodeId]=[]}this.childrenReference[parentNodeId].push(childNodeId);if(this.parentReference[childNodeId]===undefined){this.parentReference[childNodeId]=[]}this.parentReference[childNodeId].push(parentNodeId)}},{key:\"checkIfTree\",value:function checkIfTree(){for(var i in this.parentReference){if(this.parentReference[i].length>1){this.isTree=false;return}}this.isTree=true}},{key:\"numTrees\",value:function numTrees(){return this.treeIndex+1}},{key:\"setTreeIndex\",value:function setTreeIndex(node,treeId){if(treeId===undefined)return;if(this.trees[node.id]===undefined){this.trees[node.id]=treeId;this.treeIndex=Math.max(treeId,this.treeIndex)}}},{key:\"ensureLevel\",value:function ensureLevel(nodeId){if(this.levels[nodeId]===undefined){this.levels[nodeId]=0}}},{key:\"getMaxLevel\",value:function getMaxLevel(nodeId){var _this=this;var accumulator={};var _getMaxLevel=function _getMaxLevel(nodeId){if(accumulator[nodeId]!==undefined){return accumulator[nodeId]}var level=_this.levels[nodeId];if(_this.childrenReference[nodeId]){var children=_this.childrenReference[nodeId];if(children.length>0){for(var i=0;i<children.length;i++){level=Math.max(level,_getMaxLevel(children[i]))}}}accumulator[nodeId]=level;return level};return _getMaxLevel(nodeId)}},{key:\"levelDownstream\",value:function levelDownstream(nodeA,nodeB){if(this.levels[nodeB.id]===undefined){if(this.levels[nodeA.id]===undefined){this.levels[nodeA.id]=0}this.levels[nodeB.id]=this.levels[nodeA.id]+1}}},{key:\"setMinLevelToZero\",value:function setMinLevelToZero(nodes){var minLevel=1e9;for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){if(this.levels[nodeId]!==undefined){minLevel=Math.min(this.levels[nodeId],minLevel)}}}for(var _nodeId in nodes){if(nodes.hasOwnProperty(_nodeId)){if(this.levels[_nodeId]!==undefined){this.levels[_nodeId]-=minLevel}}}}},{key:\"getTreeSize\",value:function getTreeSize(nodes,index){var min_x=1e9;var max_x=-1e9;var min_y=1e9;var max_y=-1e9;for(var nodeId in this.trees){if(this.trees.hasOwnProperty(nodeId)){if(this.trees[nodeId]===index){var node=nodes[nodeId];min_x=Math.min(node.x,min_x);max_x=Math.max(node.x,max_x);min_y=Math.min(node.y,min_y);max_y=Math.max(node.y,max_y)}}}return{min_x:min_x,max_x:max_x,min_y:min_y,max_y:max_y}}},{key:\"hasSameParent\",value:function hasSameParent(node1,node2){var parents1=this.parentReference[node1.id];var parents2=this.parentReference[node2.id];if(parents1===undefined||parents2===undefined){return false}for(var i=0;i<parents1.length;i++){for(var j=0;j<parents2.length;j++){if(parents1[i]==parents2[j]){return true}}}return false}},{key:\"inSameSubNetwork\",value:function inSameSubNetwork(node1,node2){return this.trees[node1.id]===this.trees[node2.id]}},{key:\"getLevels\",value:function getLevels(){return(0,_keys2[\"default\"])(this.distributionOrdering)}},{key:\"addToOrdering\",value:function addToOrdering(node,level){if(this.distributionOrdering[level]===undefined){this.distributionOrdering[level]=[]}var isPresent=false;var curLevel=this.distributionOrdering[level];for(var n in curLevel){if(curLevel[n]===node){isPresent=true;break}}if(!isPresent){this.distributionOrdering[level].push(node);this.distributionIndex[node.id]=this.distributionOrdering[level].length-1}}}]);return HierarchicalStatus}();var LayoutEngine=function(){function LayoutEngine(body){(0,_classCallCheck3[\"default\"])(this,LayoutEngine);this.body=body;this.initialRandomSeed=Math.round(Math.random()*1e6);this.randomSeed=this.initialRandomSeed;this.setPhysics=false;this.options={};this.optionsBackup={physics:{}};this.defaultOptions={randomSeed:undefined,improvedLayout:true,hierarchical:{enabled:false,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:true,edgeMinimization:true,parentCentralization:true,direction:\"UD\",sortMethod:\"hubsize\"}};util.extend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(LayoutEngine,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this2=this;this.body.emitter.on(\"_dataChanged\",function(){_this2.setupHierarchicalLayout()});this.body.emitter.on(\"_dataLoaded\",function(){_this2.layoutNetwork()});this.body.emitter.on(\"_resetHierarchicalLayout\",function(){_this2.setupHierarchicalLayout()});this.body.emitter.on(\"_adjustEdgesForHierarchicalLayout\",function(){if(_this2.options.hierarchical.enabled!==true){return}var type=_this2.direction.curveType();_this2.body.emitter.emit(\"_forceDisableDynamicCurves\",type,false)})}},{key:\"setOptions\",value:function setOptions(options,allOptions){if(options!==undefined){var hierarchical=this.options.hierarchical;var prevHierarchicalState=hierarchical.enabled;util.selectiveDeepExtend([\"randomSeed\",\"improvedLayout\"],this.options,options);util.mergeOptions(this.options,options,\"hierarchical\");if(options.randomSeed!==undefined){this.initialRandomSeed=options.randomSeed}if(hierarchical.enabled===true){if(prevHierarchicalState===true){this.body.emitter.emit(\"refresh\",true)}if(hierarchical.direction===\"RL\"||hierarchical.direction===\"DU\"){if(hierarchical.levelSeparation>0){hierarchical.levelSeparation*=-1}}else{if(hierarchical.levelSeparation<0){hierarchical.levelSeparation*=-1}}this.setDirectionStrategy();this.body.emitter.emit(\"_resetHierarchicalLayout\");return this.adaptAllOptionsForHierarchicalLayout(allOptions)}else{if(prevHierarchicalState===true){this.body.emitter.emit(\"refresh\");return util.deepExtend(allOptions,this.optionsBackup)}}}return allOptions}},{key:\"adaptAllOptionsForHierarchicalLayout\",value:function adaptAllOptionsForHierarchicalLayout(allOptions){if(this.options.hierarchical.enabled===true){var backupPhysics=this.optionsBackup.physics;if(allOptions.physics===undefined||allOptions.physics===true){allOptions.physics={enabled:backupPhysics.enabled===undefined?true:backupPhysics.enabled,solver:\"hierarchicalRepulsion\"};backupPhysics.enabled=backupPhysics.enabled===undefined?true:backupPhysics.enabled;backupPhysics.solver=backupPhysics.solver||\"barnesHut\"}else if((0,_typeof3[\"default\"])(allOptions.physics)===\"object\"){backupPhysics.enabled=allOptions.physics.enabled===undefined?true:allOptions.physics.enabled;backupPhysics.solver=allOptions.physics.solver||\"barnesHut\";allOptions.physics.solver=\"hierarchicalRepulsion\"}else if(allOptions.physics!==false){backupPhysics.solver=\"barnesHut\";allOptions.physics={solver:\"hierarchicalRepulsion\"}}var type=this.direction.curveType();if(allOptions.edges===undefined){this.optionsBackup.edges={smooth:{enabled:true,type:\"dynamic\"}};allOptions.edges={smooth:false}}else if(allOptions.edges.smooth===undefined){this.optionsBackup.edges={smooth:{enabled:true,type:\"dynamic\"}};allOptions.edges.smooth=false}else{if(typeof allOptions.edges.smooth===\"boolean\"){this.optionsBackup.edges={smooth:allOptions.edges.smooth};allOptions.edges.smooth={enabled:allOptions.edges.smooth,type:type}}else{var smooth=allOptions.edges.smooth;if(smooth.type!==undefined&&smooth.type!==\"dynamic\"){type=smooth.type}this.optionsBackup.edges={smooth:smooth.enabled===undefined?true:smooth.enabled,type:smooth.type===undefined?\"dynamic\":smooth.type,roundness:smooth.roundness===undefined?.5:smooth.roundness,forceDirection:smooth.forceDirection===undefined?false:smooth.forceDirection};allOptions.edges.smooth={enabled:smooth.enabled===undefined?true:smooth.enabled,type:type,roundness:smooth.roundness===undefined?.5:smooth.roundness,forceDirection:smooth.forceDirection===undefined?false:smooth.forceDirection}}}this.body.emitter.emit(\"_forceDisableDynamicCurves\",type)}return allOptions}},{key:\"seededRandom\",value:function seededRandom(){var x=Math.sin(this.randomSeed++)*1e4;return x-Math.floor(x)}},{key:\"positionInitially\",value:function positionInitially(nodesArray){if(this.options.hierarchical.enabled!==true){this.randomSeed=this.initialRandomSeed;var radius=nodesArray.length+50;for(var i=0;i<nodesArray.length;i++){var node=nodesArray[i];var angle=2*Math.PI*this.seededRandom();if(node.x===undefined){node.x=radius*Math.cos(angle)}if(node.y===undefined){node.y=radius*Math.sin(angle)}}}}},{key:\"layoutNetwork\",value:function layoutNetwork(){if(this.options.hierarchical.enabled!==true&&this.options.improvedLayout===true){var indices=this.body.nodeIndices;var positionDefined=0;for(var i=0;i<indices.length;i++){var node=this.body.nodes[indices[i]];if(node.predefinedPosition===true){positionDefined+=1}}if(positionDefined<.5*indices.length){var MAX_LEVELS=10;var level=0;var clusterThreshold=150;var clusterOptions={clusterNodeProperties:{shape:\"ellipse\",label:\"\",group:\"\",font:{multi:false}},clusterEdgeProperties:{label:\"\",font:{multi:false},smooth:{enabled:false}}};if(indices.length>clusterThreshold){var startLength=indices.length;while(indices.length>clusterThreshold&&level<=MAX_LEVELS){level+=1;var before=indices.length;if(level%3===0){this.body.modules.clustering.clusterBridges(clusterOptions)}else{this.body.modules.clustering.clusterOutliers(clusterOptions)}var after=indices.length;if(before==after&&level%3!==0){this._declusterAll();this.body.emitter.emit(\"_layoutFailed\");console.info(\"This network could not be positioned by this version of the improved layout algorithm.\"+\" Please disable improvedLayout for better performance.\");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*startLength)})}if(level>MAX_LEVELS){console.info(\"The clustering didn't succeed within the amount of interations allowed,\"+\" progressing with partial result.\")}this.body.modules.kamadaKawai.solve(indices,this.body.edgeIndices,true);this._shiftToCenter();var offset=70;for(var _i=0;_i<indices.length;_i++){var _node=this.body.nodes[indices[_i]];if(_node.predefinedPosition===false){_node.x+=(.5-this.seededRandom())*offset;_node.y+=(.5-this.seededRandom())*offset}}this._declusterAll();this.body.emitter.emit(\"_repositionBezierNodes\")}}}},{key:\"_shiftToCenter\",value:function _shiftToCenter(){var range=NetworkUtil.getRangeCore(this.body.nodes,this.body.nodeIndices);var center=NetworkUtil.findCenter(range);for(var i=0;i<this.body.nodeIndices.length;i++){var node=this.body.nodes[this.body.nodeIndices[i]];node.x-=center.x;node.y-=center.y}}},{key:\"_declusterAll\",value:function _declusterAll(){var clustersPresent=true;while(clustersPresent===true){clustersPresent=false;for(var i=0;i<this.body.nodeIndices.length;i++){if(this.body.nodes[this.body.nodeIndices[i]].isCluster===true){clustersPresent=true;this.body.modules.clustering.openCluster(this.body.nodeIndices[i],{},false)}}if(clustersPresent===true){this.body.emitter.emit(\"_dataChanged\")}}}},{key:\"getSeed\",value:function getSeed(){return this.initialRandomSeed}},{key:\"setupHierarchicalLayout\",value:function setupHierarchicalLayout(){if(this.options.hierarchical.enabled===true&&this.body.nodeIndices.length>0){var node=void 0,nodeId=void 0;var definedLevel=false;var undefinedLevel=false;this.lastNodeOnLevel={};this.hierarchical=new HierarchicalStatus;for(nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){node=this.body.nodes[nodeId];if(node.options.level!==undefined){definedLevel=true;this.hierarchical.levels[nodeId]=node.options.level}else{undefinedLevel=true}}}if(undefinedLevel===true&&definedLevel===true){throw new Error(\"To use the hierarchical layout, nodes require either no predefined levels\"+\" or levels have to be defined for all nodes.\")}else{if(undefinedLevel===true){var sortMethod=this.options.hierarchical.sortMethod;if(sortMethod===\"hubsize\"){this._determineLevelsByHubsize()}else if(sortMethod===\"directed\"){this._determineLevelsDirected()}else if(sortMethod===\"custom\"){this._determineLevelsCustomCallback()}}for(var _nodeId2 in this.body.nodes){if(this.body.nodes.hasOwnProperty(_nodeId2)){this.hierarchical.ensureLevel(_nodeId2)}}var distribution=this._getDistribution();this._generateMap();this._placeNodesByHierarchy(distribution);this._condenseHierarchy();this._shiftToCenter()}}}},{key:\"_condenseHierarchy\",value:function _condenseHierarchy(){var _this3=this;var stillShifting=false;var branches={};var shiftTrees=function shiftTrees(){var treeSizes=getTreeSizes();var shiftBy=0;for(var i=0;i<treeSizes.length-1;i++){var diff=treeSizes[i].max-treeSizes[i+1].min;shiftBy+=diff+_this3.options.hierarchical.treeSpacing;shiftTree(i+1,shiftBy)}};var shiftTree=function shiftTree(index,offset){var trees=_this3.hierarchical.trees;for(var nodeId in trees){if(trees.hasOwnProperty(nodeId)){if(trees[nodeId]===index){_this3.direction.shift(nodeId,offset)}}}};var getTreeSizes=function getTreeSizes(){var treeWidths=[];for(var i=0;i<_this3.hierarchical.numTrees();i++){treeWidths.push(_this3.direction.getTreeSize(i))}return treeWidths};var getBranchNodes=function getBranchNodes(source,map){if(map[source.id]){return}map[source.id]=true;if(_this3.hierarchical.childrenReference[source.id]){var children=_this3.hierarchical.childrenReference[source.id];if(children.length>0){for(var i=0;i<children.length;i++){getBranchNodes(_this3.body.nodes[children[i]],map)}}}};var getBranchBoundary=function getBranchBoundary(branchMap){var maxLevel=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1e9;var minSpace=1e9;var maxSpace=1e9;var min=1e9;var max=-1e9;for(var branchNode in branchMap){if(branchMap.hasOwnProperty(branchNode)){var node=_this3.body.nodes[branchNode];var level=_this3.hierarchical.levels[node.id];var position=_this3.direction.getPosition(node);var _getSpaceAroundNode2=_this3._getSpaceAroundNode(node,branchMap),_getSpaceAroundNode3=(0,_slicedToArray3[\"default\"])(_getSpaceAroundNode2,2),minSpaceNode=_getSpaceAroundNode3[0],maxSpaceNode=_getSpaceAroundNode3[1];minSpace=Math.min(minSpaceNode,minSpace);maxSpace=Math.min(maxSpaceNode,maxSpace);if(level<=maxLevel){min=Math.min(position,min);max=Math.max(position,max)}}}return[min,max,minSpace,maxSpace]};var getCollisionLevel=function getCollisionLevel(node1,node2){var maxLevel1=_this3.hierarchical.getMaxLevel(node1.id);var maxLevel2=_this3.hierarchical.getMaxLevel(node2.id);return Math.min(maxLevel1,maxLevel2)};var shiftElementsCloser=function shiftElementsCloser(callback,levels,centerParents){var hier=_this3.hierarchical;for(var i=0;i<levels.length;i++){var level=levels[i];var levelNodes=hier.distributionOrdering[level];if(levelNodes.length>1){for(var j=0;j<levelNodes.length-1;j++){var node1=levelNodes[j];var node2=levelNodes[j+1];if(hier.hasSameParent(node1,node2)&&hier.inSameSubNetwork(node1,node2)){callback(node1,node2,centerParents)}}}}};var branchShiftCallback=function branchShiftCallback(node1,node2){var centerParent=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var pos1=_this3.direction.getPosition(node1);var pos2=_this3.direction.getPosition(node2);var diffAbs=Math.abs(pos2-pos1);var nodeSpacing=_this3.options.hierarchical.nodeSpacing;if(diffAbs>nodeSpacing){var branchNodes1={};var branchNodes2={};getBranchNodes(node1,branchNodes1);getBranchNodes(node2,branchNodes2);var maxLevel=getCollisionLevel(node1,node2);var branchNodeBoundary1=getBranchBoundary(branchNodes1,maxLevel);var branchNodeBoundary2=getBranchBoundary(branchNodes2,maxLevel);var max1=branchNodeBoundary1[1];var min2=branchNodeBoundary2[0];var minSpace2=branchNodeBoundary2[2];var diffBranch=Math.abs(max1-min2);if(diffBranch>nodeSpacing){var offset=max1-min2+nodeSpacing;if(offset<-minSpace2+nodeSpacing){offset=-minSpace2+nodeSpacing}if(offset<0){_this3._shiftBlock(node2.id,offset);stillShifting=true;if(centerParent===true)_this3._centerParent(node2)}}}};var minimizeEdgeLength=function minimizeEdgeLength(iterations,node){var nodeId=node.id;var allEdges=node.edges;var nodeLevel=_this3.hierarchical.levels[node.id];var C2=_this3.options.hierarchical.levelSeparation*_this3.options.hierarchical.levelSeparation;var referenceNodes={};var aboveEdges=[];for(var i=0;i<allEdges.length;i++){var edge=allEdges[i];if(edge.toId!=edge.fromId){var otherNode=edge.toId==nodeId?edge.from:edge.to;referenceNodes[allEdges[i].id]=otherNode;if(_this3.hierarchical.levels[otherNode.id]<nodeLevel){aboveEdges.push(edge)}}}var getFx=function getFx(point,edges){var sum=0;for(var _i2=0;_i2<edges.length;_i2++){if(referenceNodes[edges[_i2].id]!==undefined){var a=_this3.direction.getPosition(referenceNodes[edges[_i2].id])-point;sum+=a/Math.sqrt(a*a+C2)}}return sum};var getDFx=function getDFx(point,edges){var sum=0;for(var _i3=0;_i3<edges.length;_i3++){if(referenceNodes[edges[_i3].id]!==undefined){var a=_this3.direction.getPosition(referenceNodes[edges[_i3].id])-point;sum-=C2*Math.pow(a*a+C2,-1.5)}}return sum};var getGuess=function getGuess(iterations,edges){var guess=_this3.direction.getPosition(node);var guessMap={};for(var _i4=0;_i4<iterations;_i4++){var fx=getFx(guess,edges);var dfx=getDFx(guess,edges);var limit=40;var ratio=Math.max(-limit,Math.min(limit,Math.round(fx/dfx)));guess=guess-ratio;if(guessMap[guess]!==undefined){break}guessMap[guess]=_i4}return guess};var moveBranch=function moveBranch(guess){var nodePosition=_this3.direction.getPosition(node);if(branches[node.id]===undefined){var branchNodes={};getBranchNodes(node,branchNodes);branches[node.id]=branchNodes}var branchBoundary=getBranchBoundary(branches[node.id]);var minSpaceBranch=branchBoundary[2];var maxSpaceBranch=branchBoundary[3];var diff=guess-nodePosition;var branchOffset=0;if(diff>0){branchOffset=Math.min(diff,maxSpaceBranch-_this3.options.hierarchical.nodeSpacing)}else if(diff<0){branchOffset=-Math.min(-diff,minSpaceBranch-_this3.options.hierarchical.nodeSpacing)}if(branchOffset!=0){_this3._shiftBlock(node.id,branchOffset);stillShifting=true}};var moveNode=function moveNode(guess){var nodePosition=_this3.direction.getPosition(node);var _getSpaceAroundNode4=_this3._getSpaceAroundNode(node),_getSpaceAroundNode5=(0,_slicedToArray3[\"default\"])(_getSpaceAroundNode4,2),minSpace=_getSpaceAroundNode5[0],maxSpace=_getSpaceAroundNode5[1];var diff=guess-nodePosition;var newPosition=nodePosition;if(diff>0){newPosition=Math.min(nodePosition+(maxSpace-_this3.options.hierarchical.nodeSpacing),guess)}else if(diff<0){newPosition=Math.max(nodePosition-(minSpace-_this3.options.hierarchical.nodeSpacing),guess)}if(newPosition!==nodePosition){_this3.direction.setPosition(node,newPosition);stillShifting=true}};var guess=getGuess(iterations,aboveEdges);moveBranch(guess);guess=getGuess(iterations,allEdges);moveNode(guess)};var minimizeEdgeLengthBottomUp=function minimizeEdgeLengthBottomUp(iterations){var levels=_this3.hierarchical.getLevels();levels=levels.reverse();for(var i=0;i<iterations;i++){stillShifting=false;for(var j=0;j<levels.length;j++){var level=levels[j];var levelNodes=_this3.hierarchical.distributionOrdering[level];for(var k=0;k<levelNodes.length;k++){minimizeEdgeLength(1e3,levelNodes[k])}}if(stillShifting!==true){break}}};var shiftBranchesCloserBottomUp=function shiftBranchesCloserBottomUp(iterations){var levels=_this3.hierarchical.getLevels();levels=levels.reverse();for(var i=0;i<iterations;i++){stillShifting=false;shiftElementsCloser(branchShiftCallback,levels,true);if(stillShifting!==true){break}}};var centerAllParents=function centerAllParents(){for(var nodeId in _this3.body.nodes){if(_this3.body.nodes.hasOwnProperty(nodeId))_this3._centerParent(_this3.body.nodes[nodeId])}};var centerAllParentsBottomUp=function centerAllParentsBottomUp(){var levels=_this3.hierarchical.getLevels()\n;levels=levels.reverse();for(var i=0;i<levels.length;i++){var level=levels[i];var levelNodes=_this3.hierarchical.distributionOrdering[level];for(var j=0;j<levelNodes.length;j++){_this3._centerParent(levelNodes[j])}}};if(this.options.hierarchical.blockShifting===true){shiftBranchesCloserBottomUp(5);centerAllParents()}if(this.options.hierarchical.edgeMinimization===true){minimizeEdgeLengthBottomUp(20)}if(this.options.hierarchical.parentCentralization===true){centerAllParentsBottomUp()}shiftTrees()}},{key:\"_getSpaceAroundNode\",value:function _getSpaceAroundNode(node,map){var useMap=true;if(map===undefined){useMap=false}var level=this.hierarchical.levels[node.id];if(level!==undefined){var index=this.hierarchical.distributionIndex[node.id];var position=this.direction.getPosition(node);var ordering=this.hierarchical.distributionOrdering[level];var minSpace=1e9;var maxSpace=1e9;if(index!==0){var prevNode=ordering[index-1];if(useMap===true&&map[prevNode.id]===undefined||useMap===false){var prevPos=this.direction.getPosition(prevNode);minSpace=position-prevPos}}if(index!=ordering.length-1){var nextNode=ordering[index+1];if(useMap===true&&map[nextNode.id]===undefined||useMap===false){var nextPos=this.direction.getPosition(nextNode);maxSpace=Math.min(maxSpace,nextPos-position)}}return[minSpace,maxSpace]}else{return[0,0]}}},{key:\"_centerParent\",value:function _centerParent(node){if(this.hierarchical.parentReference[node.id]){var parents=this.hierarchical.parentReference[node.id];for(var i=0;i<parents.length;i++){var parentId=parents[i];var parentNode=this.body.nodes[parentId];var children=this.hierarchical.childrenReference[parentId];if(children!==undefined){var newPosition=this._getCenterPosition(children);var position=this.direction.getPosition(parentNode);var _getSpaceAroundNode6=this._getSpaceAroundNode(parentNode),_getSpaceAroundNode7=(0,_slicedToArray3[\"default\"])(_getSpaceAroundNode6,2),minSpace=_getSpaceAroundNode7[0],maxSpace=_getSpaceAroundNode7[1];var diff=position-newPosition;if(diff<0&&Math.abs(diff)<maxSpace-this.options.hierarchical.nodeSpacing||diff>0&&Math.abs(diff)<minSpace-this.options.hierarchical.nodeSpacing){this.direction.setPosition(parentNode,newPosition)}}}}}},{key:\"_placeNodesByHierarchy\",value:function _placeNodesByHierarchy(distribution){this.positionedNodes={};for(var level in distribution){if(distribution.hasOwnProperty(level)){var nodeArray=(0,_keys2[\"default\"])(distribution[level]);nodeArray=this._indexArrayToNodes(nodeArray);this.direction.sort(nodeArray);var handledNodeCount=0;for(var i=0;i<nodeArray.length;i++){var node=nodeArray[i];if(this.positionedNodes[node.id]===undefined){var spacing=this.options.hierarchical.nodeSpacing;var pos=spacing*handledNodeCount;if(handledNodeCount>0){pos=this.direction.getPosition(nodeArray[i-1])+spacing}this.direction.setPosition(node,pos,level);this._validatePositionAndContinue(node,level,pos);handledNodeCount++}}}}}},{key:\"_placeBranchNodes\",value:function _placeBranchNodes(parentId,parentLevel){var childRef=this.hierarchical.childrenReference[parentId];if(childRef===undefined){return}var childNodes=[];for(var i=0;i<childRef.length;i++){childNodes.push(this.body.nodes[childRef[i]])}this.direction.sort(childNodes);for(var _i5=0;_i5<childNodes.length;_i5++){var childNode=childNodes[_i5];var childNodeLevel=this.hierarchical.levels[childNode.id];if(childNodeLevel>parentLevel&&this.positionedNodes[childNode.id]===undefined){var spacing=this.options.hierarchical.nodeSpacing;var pos=void 0;if(_i5===0){pos=this.direction.getPosition(this.body.nodes[parentId])}else{pos=this.direction.getPosition(childNodes[_i5-1])+spacing}this.direction.setPosition(childNode,pos,childNodeLevel);this._validatePositionAndContinue(childNode,childNodeLevel,pos)}else{return}}var center=this._getCenterPosition(childNodes);this.direction.setPosition(this.body.nodes[parentId],center,parentLevel)}},{key:\"_validatePositionAndContinue\",value:function _validatePositionAndContinue(node,level,pos){if(!this.hierarchical.isTree)return;if(this.lastNodeOnLevel[level]!==undefined){var previousPos=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);if(pos-previousPos<this.options.hierarchical.nodeSpacing){var diff=previousPos+this.options.hierarchical.nodeSpacing-pos;var sharedParent=this._findCommonParent(this.lastNodeOnLevel[level],node.id);this._shiftBlock(sharedParent.withChild,diff)}}this.lastNodeOnLevel[level]=node.id;this.positionedNodes[node.id]=true;this._placeBranchNodes(node.id,level)}},{key:\"_indexArrayToNodes\",value:function _indexArrayToNodes(idArray){var array=[];for(var i=0;i<idArray.length;i++){array.push(this.body.nodes[idArray[i]])}return array}},{key:\"_getDistribution\",value:function _getDistribution(){var distribution={};var nodeId=void 0,node=void 0;for(nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){node=this.body.nodes[nodeId];var level=this.hierarchical.levels[nodeId]===undefined?0:this.hierarchical.levels[nodeId];this.direction.fix(node,level);if(distribution[level]===undefined){distribution[level]={}}distribution[level][nodeId]=node}}return distribution}},{key:\"_getActiveEdges\",value:function _getActiveEdges(node){var _this4=this;var result=[];util.forEach(node.edges,function(edge){if(_this4.body.edgeIndices.indexOf(edge.id)!==-1){result.push(edge)}});return result}},{key:\"_getHubSizes\",value:function _getHubSizes(){var _this5=this;var hubSizes={};var nodeIds=this.body.nodeIndices;util.forEach(nodeIds,function(nodeId){var node=_this5.body.nodes[nodeId];var hubSize=_this5._getActiveEdges(node).length;hubSizes[hubSize]=true});var result=[];util.forEach(hubSizes,function(size){result.push(Number(size))});result.sort(function(a,b){return b-a});return result}},{key:\"_determineLevelsByHubsize\",value:function _determineLevelsByHubsize(){var _this6=this;var levelDownstream=function levelDownstream(nodeA,nodeB){_this6.hierarchical.levelDownstream(nodeA,nodeB)};var hubSizes=this._getHubSizes();var _loop=function _loop(i){var hubSize=hubSizes[i];if(hubSize===0)return\"break\";util.forEach(_this6.body.nodeIndices,function(nodeId){var node=_this6.body.nodes[nodeId];if(hubSize===_this6._getActiveEdges(node).length){_this6._crawlNetwork(levelDownstream,nodeId)}})};for(var i=0;i<hubSizes.length;++i){var _ret=_loop(i);if(_ret===\"break\")break}}},{key:\"_determineLevelsCustomCallback\",value:function _determineLevelsCustomCallback(){var _this7=this;var minLevel=1e5;var customCallback=function customCallback(nodeA,nodeB,edge){};var levelByDirection=function levelByDirection(nodeA,nodeB,edge){var levelA=_this7.hierarchical.levels[nodeA.id];if(levelA===undefined){levelA=_this7.hierarchical.levels[nodeA.id]=minLevel}var diff=customCallback(NetworkUtil.cloneOptions(nodeA,\"node\"),NetworkUtil.cloneOptions(nodeB,\"node\"),NetworkUtil.cloneOptions(edge,\"edge\"));_this7.hierarchical.levels[nodeB.id]=levelA+diff};this._crawlNetwork(levelByDirection);this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:\"_determineLevelsDirected\",value:function _determineLevelsDirected(){var _this8=this;var minLevel=1e4;var isBidirectional=function isBidirectional(edge){util.forEach(_this8.body.edges,function(otherEdge){if(otherEdge.toId===edge.fromId&&otherEdge.fromId===edge.toId){return true}});return false};var levelByDirection=function levelByDirection(nodeA,nodeB,edge){var levelA=_this8.hierarchical.levels[nodeA.id];var levelB=_this8.hierarchical.levels[nodeB.id];if(isBidirectional(edge)&&levelA!==undefined&&levelB!==undefined){return}if(levelA===undefined){levelA=_this8.hierarchical.levels[nodeA.id]=minLevel}if(edge.toId==nodeB.id){_this8.hierarchical.levels[nodeB.id]=levelA+1}else{_this8.hierarchical.levels[nodeB.id]=levelA-1}};this._crawlNetwork(levelByDirection);this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:\"_generateMap\",value:function _generateMap(){var _this9=this;var fillInRelations=function fillInRelations(parentNode,childNode){if(_this9.hierarchical.levels[childNode.id]>_this9.hierarchical.levels[parentNode.id]){_this9.hierarchical.addRelation(parentNode.id,childNode.id)}};this._crawlNetwork(fillInRelations);this.hierarchical.checkIfTree()}},{key:\"_crawlNetwork\",value:function _crawlNetwork(){var _this10=this;var callback=arguments.length>0&&arguments[0]!==undefined?arguments[0]:function(){};var startingNodeId=arguments[1];var progress={};var crawler=function crawler(node,tree){if(progress[node.id]===undefined){_this10.hierarchical.setTreeIndex(node,tree);progress[node.id]=true;var childNode=void 0;var edges=_this10._getActiveEdges(node);for(var i=0;i<edges.length;i++){var edge=edges[i];if(edge.connected===true){if(edge.toId==node.id){childNode=edge.from}else{childNode=edge.to}if(node.id!=childNode.id){callback(node,childNode,edge);crawler(childNode,tree)}}}}};if(startingNodeId===undefined){var treeIndex=0;for(var i=0;i<this.body.nodeIndices.length;i++){var nodeId=this.body.nodeIndices[i];if(progress[nodeId]===undefined){var node=this.body.nodes[nodeId];crawler(node,treeIndex);treeIndex+=1}}}else{var _node2=this.body.nodes[startingNodeId];if(_node2===undefined){console.error(\"Node not found:\",startingNodeId);return}crawler(_node2)}}},{key:\"_shiftBlock\",value:function _shiftBlock(parentId,diff){var _this11=this;var progress={};var shifter=function shifter(parentId){if(progress[parentId]){return}progress[parentId]=true;_this11.direction.shift(parentId,diff);var childRef=_this11.hierarchical.childrenReference[parentId];if(childRef!==undefined){for(var i=0;i<childRef.length;i++){shifter(childRef[i])}}};shifter(parentId)}},{key:\"_findCommonParent\",value:function _findCommonParent(childA,childB){var _this12=this;var parents={};var iterateParents=function iterateParents(parents,child){var parentRef=_this12.hierarchical.parentReference[child];if(parentRef!==undefined){for(var i=0;i<parentRef.length;i++){var parent=parentRef[i];parents[parent]=true;iterateParents(parents,parent)}}};var findParent=function findParent(parents,child){var parentRef=_this12.hierarchical.parentReference[child];if(parentRef!==undefined){for(var i=0;i<parentRef.length;i++){var parent=parentRef[i];if(parents[parent]!==undefined){return{foundParent:parent,withChild:child}}var branch=findParent(parents,parent);if(branch.foundParent!==null){return branch}}}return{foundParent:null,withChild:child}};iterateParents(parents,childA);return findParent(parents,childB)}},{key:\"setDirectionStrategy\",value:function setDirectionStrategy(){var isVertical=this.options.hierarchical.direction===\"UD\"||this.options.hierarchical.direction===\"DU\";if(isVertical){this.direction=new VerticalStrategy(this)}else{this.direction=new HorizontalStrategy(this)}}},{key:\"_getCenterPosition\",value:function _getCenterPosition(childNodes){var minPos=1e9;var maxPos=-1e9;for(var i=0;i<childNodes.length;i++){var childNode=void 0;if(childNodes[i].id!==undefined){childNode=childNodes[i]}else{var childNodeId=childNodes[i];childNode=this.body.nodes[childNodeId]}var position=this.direction.getPosition(childNode);minPos=Math.min(minPos,position);maxPos=Math.max(maxPos,position)}return.5*(minPos+maxPos)}}]);return LayoutEngine}();exports[\"default\"]=LayoutEngine},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.VerticalStrategy=exports.HorizontalStrategy=undefined;var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DirectionInterface=function(){function DirectionInterface(){(0,_classCallCheck3[\"default\"])(this,DirectionInterface)}(0,_createClass3[\"default\"])(DirectionInterface,[{key:\"abstract\",value:function abstract(){throw new Error(\"Can't instantiate abstract class!\")}},{key:\"fake_use\",value:function fake_use(){}},{key:\"curveType\",value:function curveType(){return this.abstract()}},{key:\"getPosition\",value:function getPosition(node){this.fake_use(node);return this.abstract()}},{key:\"setPosition\",value:function setPosition(node,position){var level=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;this.fake_use(node,position,level);this.abstract()}},{key:\"getTreeSize\",value:function getTreeSize(index){this.fake_use(index);return this.abstract()}},{key:\"sort\",value:function sort(nodeArray){this.fake_use(nodeArray);this.abstract()}},{key:\"fix\",value:function fix(node,level){this.fake_use(node,level);this.abstract()}},{key:\"shift\",value:function shift(nodeId,diff){this.fake_use(nodeId,diff);this.abstract()}}]);return DirectionInterface}();var VerticalStrategy=function(_DirectionInterface){(0,_inherits3[\"default\"])(VerticalStrategy,_DirectionInterface);function VerticalStrategy(layout){(0,_classCallCheck3[\"default\"])(this,VerticalStrategy);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(VerticalStrategy.__proto__||(0,_getPrototypeOf2[\"default\"])(VerticalStrategy)).call(this));_this.layout=layout;return _this}(0,_createClass3[\"default\"])(VerticalStrategy,[{key:\"curveType\",value:function curveType(){return\"horizontal\"}},{key:\"getPosition\",value:function getPosition(node){return node.x}},{key:\"setPosition\",value:function setPosition(node,position){var level=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(level!==undefined){this.layout.hierarchical.addToOrdering(node,level)}node.x=position}},{key:\"getTreeSize\",value:function getTreeSize(index){var res=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,index);return{min:res.min_x,max:res.max_x}}},{key:\"sort\",value:function sort(nodeArray){nodeArray.sort(function(a,b){if(a.x===undefined||b.x===undefined)return 0;return a.x-b.x})}},{key:\"fix\",value:function fix(node,level){node.y=this.layout.options.hierarchical.levelSeparation*level;node.options.fixed.y=true}},{key:\"shift\",value:function shift(nodeId,diff){this.layout.body.nodes[nodeId].x+=diff}}]);return VerticalStrategy}(DirectionInterface);var HorizontalStrategy=function(_DirectionInterface2){(0,_inherits3[\"default\"])(HorizontalStrategy,_DirectionInterface2);function HorizontalStrategy(layout){(0,_classCallCheck3[\"default\"])(this,HorizontalStrategy);var _this2=(0,_possibleConstructorReturn3[\"default\"])(this,(HorizontalStrategy.__proto__||(0,_getPrototypeOf2[\"default\"])(HorizontalStrategy)).call(this));_this2.layout=layout;return _this2}(0,_createClass3[\"default\"])(HorizontalStrategy,[{key:\"curveType\",value:function curveType(){return\"vertical\"}},{key:\"getPosition\",value:function getPosition(node){return node.y}},{key:\"setPosition\",value:function setPosition(node,position){var level=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(level!==undefined){this.layout.hierarchical.addToOrdering(node,level)}node.y=position}},{key:\"getTreeSize\",value:function getTreeSize(index){var res=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,index);return{min:res.min_y,max:res.max_y}}},{key:\"sort\",value:function sort(nodeArray){nodeArray.sort(function(a,b){if(a.y===undefined||b.y===undefined)return 0;return a.y-b.y})}},{key:\"fix\",value:function fix(node,level){node.x=this.layout.options.hierarchical.levelSeparation*level;node.options.fixed.x=true}},{key:\"shift\",value:function shift(nodeId,diff){this.layout.body.nodes[nodeId].y+=diff}}]);return HorizontalStrategy}(DirectionInterface);exports.HorizontalStrategy=HorizontalStrategy;exports.VerticalStrategy=VerticalStrategy},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var ManipulationSystem=function(){function ManipulationSystem(body,canvas,selectionHandler){var _this=this;(0,_classCallCheck3[\"default\"])(this,ManipulationSystem);this.body=body;this.canvas=canvas;this.selectionHandler=selectionHandler;this.editMode=false;this.manipulationDiv=undefined;this.editModeDiv=undefined;this.closeDiv=undefined;this.manipulationHammers=[];this.temporaryUIFunctions={};this.temporaryEventFunctions=[];this.touchTime=0;this.temporaryIds={nodes:[],edges:[]};this.guiEnabled=false;this.inMode=false;this.selectedControlNode=undefined;this.options={};this.defaultOptions={enabled:false,initiallyActive:false,addNode:true,addEdge:true,editNode:undefined,editEdge:true,deleteNode:true,deleteEdge:true,controlNodeStyle:{shape:\"dot\",size:6,color:{background:\"#ff0000\",border:\"#3c3c3c\",highlight:{background:\"#07f968\",border:\"#3c3c3c\"}},borderWidth:2,borderWidthSelected:2}};util.extend(this.options,this.defaultOptions);this.body.emitter.on(\"destroy\",function(){_this._clean()});this.body.emitter.on(\"_dataChanged\",this._restore.bind(this));this.body.emitter.on(\"_resetData\",this._restore.bind(this))}(0,_createClass3[\"default\"])(ManipulationSystem,[{key:\"_restore\",value:function _restore(){if(this.inMode!==false){if(this.options.initiallyActive===true){this.enableEditMode()}else{this.disableEditMode()}}}},{key:\"setOptions\",value:function setOptions(options,allOptions,globalOptions){if(allOptions!==undefined){if(allOptions.locale!==undefined){this.options.locale=allOptions.locale}else{this.options.locale=globalOptions.locale}if(allOptions.locales!==undefined){this.options.locales=allOptions.locales}else{this.options.locales=globalOptions.locales}}if(options!==undefined){if(typeof options===\"boolean\"){this.options.enabled=options}else{this.options.enabled=true;util.deepExtend(this.options,options)}if(this.options.initiallyActive===true){this.editMode=true}this._setup()}}},{key:\"toggleEditMode\",value:function toggleEditMode(){if(this.editMode===true){this.disableEditMode()}else{this.enableEditMode()}}},{key:\"enableEditMode\",value:function enableEditMode(){this.editMode=true;this._clean();if(this.guiEnabled===true){this.manipulationDiv.style.display=\"block\";this.closeDiv.style.display=\"block\";this.editModeDiv.style.display=\"none\";this.showManipulatorToolbar()}}},{key:\"disableEditMode\",value:function disableEditMode(){this.editMode=false;this._clean();if(this.guiEnabled===true){this.manipulationDiv.style.display=\"none\";this.closeDiv.style.display=\"none\";this.editModeDiv.style.display=\"block\";this._createEditButton()}}},{key:\"showManipulatorToolbar\",value:function showManipulatorToolbar(){this._clean();this.manipulationDOM={};if(this.guiEnabled===true){this.editMode=true;this.manipulationDiv.style.display=\"block\";this.closeDiv.style.display=\"block\";var selectedNodeCount=this.selectionHandler._getSelectedNodeCount();var selectedEdgeCount=this.selectionHandler._getSelectedEdgeCount();var selectedTotalCount=selectedNodeCount+selectedEdgeCount;var locale=this.options.locales[this.options.locale];var needSeperator=false;if(this.options.addNode!==false){this._createAddNodeButton(locale);needSeperator=true}if(this.options.addEdge!==false){if(needSeperator===true){this._createSeperator(1)}else{needSeperator=true}this._createAddEdgeButton(locale)}if(selectedNodeCount===1&&typeof this.options.editNode===\"function\"){if(needSeperator===true){this._createSeperator(2)}else{needSeperator=true}this._createEditNodeButton(locale)}else if(selectedEdgeCount===1&&selectedNodeCount===0&&this.options.editEdge!==false){if(needSeperator===true){this._createSeperator(3)}else{needSeperator=true}this._createEditEdgeButton(locale)}if(selectedTotalCount!==0){if(selectedNodeCount>0&&this.options.deleteNode!==false){if(needSeperator===true){this._createSeperator(4)}this._createDeleteButton(locale)}else if(selectedNodeCount===0&&this.options.deleteEdge!==false){if(needSeperator===true){this._createSeperator(4)}this._createDeleteButton(locale)}}this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this));this._temporaryBindEvent(\"select\",this.showManipulatorToolbar.bind(this))}this.body.emitter.emit(\"_redraw\")}},{key:\"addNodeMode\",value:function addNodeMode(){if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"addNode\";if(this.guiEnabled===true){var locale=this.options.locales[this.options.locale];this.manipulationDOM={};this._createBackButton(locale);this._createSeperator();this._createDescription(locale[\"addDescription\"]||this.options.locales[\"en\"][\"addDescription\"]);this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindEvent(\"click\",this._performAddNode.bind(this))}},{key:\"editNode\",value:function editNode(){var _this2=this;if(this.editMode!==true){this.enableEditMode()}this._clean();var node=this.selectionHandler._getSelectedNode();if(node!==undefined){this.inMode=\"editNode\";if(typeof this.options.editNode===\"function\"){if(node.isCluster!==true){var data=util.deepExtend({},node.options,false);data.x=node.x;data.y=node.y;if(this.options.editNode.length===2){this.options.editNode(data,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this2.inMode===\"editNode\"){_this2.body.data.nodes.getDataSet().update(finalizedData)}_this2.showManipulatorToolbar()})}else{throw new Error(\"The function for edit does not support two arguments (data, callback)\")}}else{alert(this.options.locales[this.options.locale][\"editClusterError\"]||this.options.locales[\"en\"][\"editClusterError\"])}}else{throw new Error(\"No function has been configured to handle the editing of nodes.\")}}else{this.showManipulatorToolbar()}}},{key:\"addEdgeMode\",value:function addEdgeMode(){if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"addEdge\";if(this.guiEnabled===true){var locale=this.options.locales[this.options.locale];this.manipulationDOM={};this._createBackButton(locale);this._createSeperator();this._createDescription(locale[\"edgeDescription\"]||this.options.locales[\"en\"][\"edgeDescription\"]);this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindUI(\"onTouch\",this._handleConnect.bind(this));this._temporaryBindUI(\"onDragEnd\",this._finishConnect.bind(this));this._temporaryBindUI(\"onDrag\",this._dragControlNode.bind(this));this._temporaryBindUI(\"onRelease\",this._finishConnect.bind(this));this._temporaryBindUI(\"onDragStart\",this._dragStartEdge.bind(this));this._temporaryBindUI(\"onHold\",function(){})}},{key:\"editEdgeMode\",value:function editEdgeMode(){if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"editEdge\";if((0,_typeof3[\"default\"])(this.options.editEdge)===\"object\"&&typeof this.options.editEdge.editWithoutDrag===\"function\"){this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0];if(this.edgeBeingEditedId!==undefined){var edge=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(edge.from,edge.to);return}}if(this.guiEnabled===true){var locale=this.options.locales[this.options.locale];this.manipulationDOM={};this._createBackButton(locale);this._createSeperator();this._createDescription(locale[\"editEdgeDescription\"]||this.options.locales[\"en\"][\"editEdgeDescription\"]);this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0];if(this.edgeBeingEditedId!==undefined){var _edge=this.body.edges[this.edgeBeingEditedId];var controlNodeFrom=this._getNewTargetNode(_edge.from.x,_edge.from.y);var controlNodeTo=this._getNewTargetNode(_edge.to.x,_edge.to.y);this.temporaryIds.nodes.push(controlNodeFrom.id);this.temporaryIds.nodes.push(controlNodeTo.id);this.body.nodes[controlNodeFrom.id]=controlNodeFrom;this.body.nodeIndices.push(controlNodeFrom.id);this.body.nodes[controlNodeTo.id]=controlNodeTo;this.body.nodeIndices.push(controlNodeTo.id);this._temporaryBindUI(\"onTouch\",this._controlNodeTouch.bind(this));this._temporaryBindUI(\"onTap\",function(){});this._temporaryBindUI(\"onHold\",function(){});this._temporaryBindUI(\"onDragStart\",this._controlNodeDragStart.bind(this));this._temporaryBindUI(\"onDrag\",this._controlNodeDrag.bind(this));this._temporaryBindUI(\"onDragEnd\",this._controlNodeDragEnd.bind(this));this._temporaryBindUI(\"onMouseMove\",function(){});this._temporaryBindEvent(\"beforeDrawing\",function(ctx){var positions=_edge.edgeType.findBorderPositions(ctx);if(controlNodeFrom.selected===false){controlNodeFrom.x=positions.from.x;controlNodeFrom.y=positions.from.y}if(controlNodeTo.selected===false){controlNodeTo.x=positions.to.x;controlNodeTo.y=positions.to.y}});this.body.emitter.emit(\"_redraw\")}else{this.showManipulatorToolbar()}}},{key:\"deleteSelected\",value:function deleteSelected(){var _this3=this;if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"delete\";var selectedNodes=this.selectionHandler.getSelectedNodes();var selectedEdges=this.selectionHandler.getSelectedEdges();var deleteFunction=undefined;if(selectedNodes.length>0){for(var i=0;i<selectedNodes.length;i++){if(this.body.nodes[selectedNodes[i]].isCluster===true){alert(this.options.locales[this.options.locale][\"deleteClusterError\"]||this.options.locales[\"en\"][\"deleteClusterError\"]);return}}if(typeof this.options.deleteNode===\"function\"){deleteFunction=this.options.deleteNode}}else if(selectedEdges.length>0){if(typeof this.options.deleteEdge===\"function\"){deleteFunction=this.options.deleteEdge}}if(typeof deleteFunction===\"function\"){var data={nodes:selectedNodes,edges:selectedEdges};if(deleteFunction.length===2){deleteFunction(data,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this3.inMode===\"delete\"){_this3.body.data.edges.getDataSet().remove(finalizedData.edges);_this3.body.data.nodes.getDataSet().remove(finalizedData.nodes);_this3.body.emitter.emit(\"startSimulation\");_this3.showManipulatorToolbar()}else{_this3.body.emitter.emit(\"startSimulation\");_this3.showManipulatorToolbar()}})}else{throw new Error(\"The function for delete does not support two arguments (data, callback)\")}}else{this.body.data.edges.getDataSet().remove(selectedEdges);this.body.data.nodes.getDataSet().remove(selectedNodes);this.body.emitter.emit(\"startSimulation\");this.showManipulatorToolbar()}}},{key:\"_setup\",value:function _setup(){if(this.options.enabled===true){this.guiEnabled=true;this._createWrappers();if(this.editMode===false){this._createEditButton()}else{this.showManipulatorToolbar()}}else{this._removeManipulationDOM();this.guiEnabled=false}}},{key:\"_createWrappers\",value:function _createWrappers(){if(this.manipulationDiv===undefined){this.manipulationDiv=document.createElement(\"div\");this.manipulationDiv.className=\"vis-manipulation\";if(this.editMode===true){this.manipulationDiv.style.display=\"block\"}else{this.manipulationDiv.style.display=\"none\"}this.canvas.frame.appendChild(this.manipulationDiv)}if(this.editModeDiv===undefined){this.editModeDiv=document.createElement(\"div\");this.editModeDiv.className=\"vis-edit-mode\";if(this.editMode===true){this.editModeDiv.style.display=\"none\"}else{this.editModeDiv.style.display=\"block\"}this.canvas.frame.appendChild(this.editModeDiv)}if(this.closeDiv===undefined){this.closeDiv=document.createElement(\"div\");this.closeDiv.className=\"vis-close\";this.closeDiv.style.display=this.manipulationDiv.style.display;this.canvas.frame.appendChild(this.closeDiv)}}},{key:\"_getNewTargetNode\",value:function _getNewTargetNode(x,y){var controlNodeStyle=util.deepExtend({},this.options.controlNodeStyle);controlNodeStyle.id=\"targetNode\"+util.randomUUID();controlNodeStyle.hidden=false;controlNodeStyle.physics=false;controlNodeStyle.x=x;controlNodeStyle.y=y;var node=this.body.functions.createNode(controlNodeStyle);node.shape.boundingBox={left:x,right:x,top:y,bottom:y};return node}},{key:\"_createEditButton\",value:function _createEditButton(){this._clean();this.manipulationDOM={};util.recursiveDOMDelete(this.editModeDiv);var locale=this.options.locales[this.options.locale];var button=this._createButton(\"editMode\",\"vis-button vis-edit vis-edit-mode\",locale[\"edit\"]||this.options.locales[\"en\"][\"edit\"]);this.editModeDiv.appendChild(button);this._bindHammerToDiv(button,this.toggleEditMode.bind(this))}},{key:\"_clean\",value:function _clean(){this.inMode=false;if(this.guiEnabled===true){util.recursiveDOMDelete(this.editModeDiv);util.recursiveDOMDelete(this.manipulationDiv);this._cleanManipulatorHammers()}this._cleanupTemporaryNodesAndEdges();this._unbindTemporaryUIs();this._unbindTemporaryEvents();this.body.emitter.emit(\"restorePhysics\")}},{key:\"_cleanManipulatorHammers\",value:function _cleanManipulatorHammers(){if(this.manipulationHammers.length!=0){for(var i=0;i<this.manipulationHammers.length;i++){this.manipulationHammers[i].destroy()}this.manipulationHammers=[]}}},{key:\"_removeManipulationDOM\",value:function _removeManipulationDOM(){this._clean();util.recursiveDOMDelete(this.manipulationDiv);util.recursiveDOMDelete(this.editModeDiv);util.recursiveDOMDelete(this.closeDiv);if(this.manipulationDiv){this.canvas.frame.removeChild(this.manipulationDiv)}if(this.editModeDiv){this.canvas.frame.removeChild(this.editModeDiv)}if(this.closeDiv){this.canvas.frame.removeChild(this.closeDiv)}this.manipulationDiv=undefined;this.editModeDiv=undefined;this.closeDiv=undefined}},{key:\"_createSeperator\",value:function _createSeperator(){var index=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;this.manipulationDOM[\"seperatorLineDiv\"+index]=document.createElement(\"div\");this.manipulationDOM[\"seperatorLineDiv\"+index].className=\"vis-separator-line\";this.manipulationDiv.appendChild(this.manipulationDOM[\"seperatorLineDiv\"+index])}},{key:\"_createAddNodeButton\",value:function _createAddNodeButton(locale){var button=this._createButton(\"addNode\",\"vis-button vis-add\",locale[\"addNode\"]||this.options.locales[\"en\"][\"addNode\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.addNodeMode.bind(this))}},{key:\"_createAddEdgeButton\",value:function _createAddEdgeButton(locale){var button=this._createButton(\"addEdge\",\"vis-button vis-connect\",locale[\"addEdge\"]||this.options.locales[\"en\"][\"addEdge\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.addEdgeMode.bind(this))}},{key:\"_createEditNodeButton\",value:function _createEditNodeButton(locale){var button=this._createButton(\"editNode\",\"vis-button vis-edit\",locale[\"editNode\"]||this.options.locales[\"en\"][\"editNode\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.editNode.bind(this))}},{key:\"_createEditEdgeButton\",value:function _createEditEdgeButton(locale){var button=this._createButton(\"editEdge\",\"vis-button vis-edit\",locale[\"editEdge\"]||this.options.locales[\"en\"][\"editEdge\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.editEdgeMode.bind(this))}},{key:\"_createDeleteButton\",value:function _createDeleteButton(locale){var deleteBtnClass;if(this.options.rtl){deleteBtnClass=\"vis-button vis-delete-rtl\"}else{deleteBtnClass=\"vis-button vis-delete\"}var button=this._createButton(\"delete\",deleteBtnClass,locale[\"del\"]||this.options.locales[\"en\"][\"del\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.deleteSelected.bind(this))}},{key:\"_createBackButton\",value:function _createBackButton(locale){\nvar button=this._createButton(\"back\",\"vis-button vis-back\",locale[\"back\"]||this.options.locales[\"en\"][\"back\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.showManipulatorToolbar.bind(this))}},{key:\"_createButton\",value:function _createButton(id,className,label){var labelClassName=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\"vis-label\";this.manipulationDOM[id+\"Div\"]=document.createElement(\"div\");this.manipulationDOM[id+\"Div\"].className=className;this.manipulationDOM[id+\"Label\"]=document.createElement(\"div\");this.manipulationDOM[id+\"Label\"].className=labelClassName;this.manipulationDOM[id+\"Label\"].innerHTML=label;this.manipulationDOM[id+\"Div\"].appendChild(this.manipulationDOM[id+\"Label\"]);return this.manipulationDOM[id+\"Div\"]}},{key:\"_createDescription\",value:function _createDescription(label){this.manipulationDiv.appendChild(this._createButton(\"description\",\"vis-button vis-none\",label))}},{key:\"_temporaryBindEvent\",value:function _temporaryBindEvent(event,newFunction){this.temporaryEventFunctions.push({event:event,boundFunction:newFunction});this.body.emitter.on(event,newFunction)}},{key:\"_temporaryBindUI\",value:function _temporaryBindUI(UIfunctionName,newFunction){if(this.body.eventListeners[UIfunctionName]!==undefined){this.temporaryUIFunctions[UIfunctionName]=this.body.eventListeners[UIfunctionName];this.body.eventListeners[UIfunctionName]=newFunction}else{throw new Error(\"This UI function does not exist. Typo? You tried: \"+UIfunctionName+\" possible are: \"+(0,_stringify2[\"default\"])((0,_keys2[\"default\"])(this.body.eventListeners)))}}},{key:\"_unbindTemporaryUIs\",value:function _unbindTemporaryUIs(){for(var functionName in this.temporaryUIFunctions){if(this.temporaryUIFunctions.hasOwnProperty(functionName)){this.body.eventListeners[functionName]=this.temporaryUIFunctions[functionName];delete this.temporaryUIFunctions[functionName]}}this.temporaryUIFunctions={}}},{key:\"_unbindTemporaryEvents\",value:function _unbindTemporaryEvents(){for(var i=0;i<this.temporaryEventFunctions.length;i++){var eventName=this.temporaryEventFunctions[i].event;var boundFunction=this.temporaryEventFunctions[i].boundFunction;this.body.emitter.off(eventName,boundFunction)}this.temporaryEventFunctions=[]}},{key:\"_bindHammerToDiv\",value:function _bindHammerToDiv(domElement,boundFunction){var hammer=new Hammer(domElement,{});hammerUtil.onTouch(hammer,boundFunction);this.manipulationHammers.push(hammer)}},{key:\"_cleanupTemporaryNodesAndEdges\",value:function _cleanupTemporaryNodesAndEdges(){for(var i=0;i<this.temporaryIds.edges.length;i++){this.body.edges[this.temporaryIds.edges[i]].disconnect();delete this.body.edges[this.temporaryIds.edges[i]];var indexTempEdge=this.body.edgeIndices.indexOf(this.temporaryIds.edges[i]);if(indexTempEdge!==-1){this.body.edgeIndices.splice(indexTempEdge,1)}}for(var _i=0;_i<this.temporaryIds.nodes.length;_i++){delete this.body.nodes[this.temporaryIds.nodes[_i]];var indexTempNode=this.body.nodeIndices.indexOf(this.temporaryIds.nodes[_i]);if(indexTempNode!==-1){this.body.nodeIndices.splice(indexTempNode,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:\"_controlNodeTouch\",value:function _controlNodeTouch(event){this.selectionHandler.unselectAll();this.lastTouch=this.body.functions.getPointer(event.center);this.lastTouch.translation=util.extend({},this.body.view.translation)}},{key:\"_controlNodeDragStart\",value:function _controlNodeDragStart(event){var pointer=this.lastTouch;var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var from=this.body.nodes[this.temporaryIds.nodes[0]];var to=this.body.nodes[this.temporaryIds.nodes[1]];var edge=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=undefined;var fromSelect=from.isOverlappingWith(pointerObj);var toSelect=to.isOverlappingWith(pointerObj);if(fromSelect===true){this.selectedControlNode=from;edge.edgeType.from=from}else if(toSelect===true){this.selectedControlNode=to;edge.edgeType.to=to}if(this.selectedControlNode!==undefined){this.selectionHandler.selectObject(this.selectedControlNode)}this.body.emitter.emit(\"_redraw\")}},{key:\"_controlNodeDrag\",value:function _controlNodeDrag(event){this.body.emitter.emit(\"disablePhysics\");var pointer=this.body.functions.getPointer(event.center);var pos=this.canvas.DOMtoCanvas(pointer);if(this.selectedControlNode!==undefined){this.selectedControlNode.x=pos.x;this.selectedControlNode.y=pos.y}else{var diffX=pointer.x-this.lastTouch.x;var diffY=pointer.y-this.lastTouch.y;this.body.view.translation={x:this.lastTouch.translation.x+diffX,y:this.lastTouch.translation.y+diffY}}this.body.emitter.emit(\"_redraw\")}},{key:\"_controlNodeDragEnd\",value:function _controlNodeDragEnd(event){var pointer=this.body.functions.getPointer(event.center);var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var edge=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode===undefined){return}this.selectionHandler.unselectAll();var overlappingNodeIds=this.selectionHandler._getAllNodesOverlappingWith(pointerObj);var node=undefined;for(var i=overlappingNodeIds.length-1;i>=0;i--){if(overlappingNodeIds[i]!==this.selectedControlNode.id){node=this.body.nodes[overlappingNodeIds[i]];break}}if(node!==undefined&&this.selectedControlNode!==undefined){if(node.isCluster===true){alert(this.options.locales[this.options.locale][\"createEdgeError\"]||this.options.locales[\"en\"][\"createEdgeError\"])}else{var from=this.body.nodes[this.temporaryIds.nodes[0]];if(this.selectedControlNode.id===from.id){this._performEditEdge(node.id,edge.to.id)}else{this._performEditEdge(edge.from.id,node.id)}}}else{edge.updateEdgeType();this.body.emitter.emit(\"restorePhysics\")}this.body.emitter.emit(\"_redraw\")}},{key:\"_handleConnect\",value:function _handleConnect(event){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(event.center);this.lastTouch.translation=util.extend({},this.body.view.translation);var pointer=this.lastTouch;var node=this.selectionHandler.getNodeAt(pointer);if(node!==undefined){if(node.isCluster===true){alert(this.options.locales[this.options.locale][\"createEdgeError\"]||this.options.locales[\"en\"][\"createEdgeError\"])}else{var targetNode=this._getNewTargetNode(node.x,node.y);this.body.nodes[targetNode.id]=targetNode;this.body.nodeIndices.push(targetNode.id);var connectionEdge=this.body.functions.createEdge({id:\"connectionEdge\"+util.randomUUID(),from:node.id,to:targetNode.id,physics:false,smooth:{enabled:true,type:\"continuous\",roundness:.5}});this.body.edges[connectionEdge.id]=connectionEdge;this.body.edgeIndices.push(connectionEdge.id);this.temporaryIds.nodes.push(targetNode.id);this.temporaryIds.edges.push(connectionEdge.id)}}this.touchTime=(new Date).valueOf()}}},{key:\"_dragControlNode\",value:function _dragControlNode(event){var pointer=this.body.functions.getPointer(event.center);if(this.temporaryIds.nodes[0]!==undefined){var targetNode=this.body.nodes[this.temporaryIds.nodes[0]];targetNode.x=this.canvas._XconvertDOMtoCanvas(pointer.x);targetNode.y=this.canvas._YconvertDOMtoCanvas(pointer.y);this.body.emitter.emit(\"_redraw\")}else{var diffX=pointer.x-this.lastTouch.x;var diffY=pointer.y-this.lastTouch.y;this.body.view.translation={x:this.lastTouch.translation.x+diffX,y:this.lastTouch.translation.y+diffY}}}},{key:\"_finishConnect\",value:function _finishConnect(event){var pointer=this.body.functions.getPointer(event.center);var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var connectFromId=undefined;if(this.temporaryIds.edges[0]!==undefined){connectFromId=this.body.edges[this.temporaryIds.edges[0]].fromId}var overlappingNodeIds=this.selectionHandler._getAllNodesOverlappingWith(pointerObj);var node=undefined;for(var i=overlappingNodeIds.length-1;i>=0;i--){if(this.temporaryIds.nodes.indexOf(overlappingNodeIds[i])===-1){node=this.body.nodes[overlappingNodeIds[i]];break}}this._cleanupTemporaryNodesAndEdges();if(node!==undefined){if(node.isCluster===true){alert(this.options.locales[this.options.locale][\"createEdgeError\"]||this.options.locales[\"en\"][\"createEdgeError\"])}else{if(this.body.nodes[connectFromId]!==undefined&&this.body.nodes[node.id]!==undefined){this._performAddEdge(connectFromId,node.id)}}}this.body.emitter.emit(\"_redraw\")}},{key:\"_dragStartEdge\",value:function _dragStartEdge(event){var pointer=this.lastTouch;this.selectionHandler._generateClickEvent(\"dragStart\",event,pointer,undefined,true)}},{key:\"_performAddNode\",value:function _performAddNode(clickData){var _this4=this;var defaultData={id:util.randomUUID(),x:clickData.pointer.canvas.x,y:clickData.pointer.canvas.y,label:\"new\"};if(typeof this.options.addNode===\"function\"){if(this.options.addNode.length===2){this.options.addNode(defaultData,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this4.inMode===\"addNode\"){_this4.body.data.nodes.getDataSet().add(finalizedData);_this4.showManipulatorToolbar()}})}else{this.showManipulatorToolbar();throw new Error(\"The function for add does not support two arguments (data,callback)\")}}else{this.body.data.nodes.getDataSet().add(defaultData);this.showManipulatorToolbar()}}},{key:\"_performAddEdge\",value:function _performAddEdge(sourceNodeId,targetNodeId){var _this5=this;var defaultData={from:sourceNodeId,to:targetNodeId};if(typeof this.options.addEdge===\"function\"){if(this.options.addEdge.length===2){this.options.addEdge(defaultData,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this5.inMode===\"addEdge\"){_this5.body.data.edges.getDataSet().add(finalizedData);_this5.selectionHandler.unselectAll();_this5.showManipulatorToolbar()}})}else{throw new Error(\"The function for connect does not support two arguments (data,callback)\")}}else{this.body.data.edges.getDataSet().add(defaultData);this.selectionHandler.unselectAll();this.showManipulatorToolbar()}}},{key:\"_performEditEdge\",value:function _performEditEdge(sourceNodeId,targetNodeId){var _this6=this;var defaultData={id:this.edgeBeingEditedId,from:sourceNodeId,to:targetNodeId,label:this.body.data.edges._data[this.edgeBeingEditedId].label};var eeFunct=this.options.editEdge;if((typeof eeFunct===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(eeFunct))===\"object\"){eeFunct=eeFunct.editWithoutDrag}if(typeof eeFunct===\"function\"){if(eeFunct.length===2){eeFunct(defaultData,function(finalizedData){if(finalizedData===null||finalizedData===undefined||_this6.inMode!==\"editEdge\"){_this6.body.edges[defaultData.id].updateEdgeType();_this6.body.emitter.emit(\"_redraw\");_this6.showManipulatorToolbar()}else{_this6.body.data.edges.getDataSet().update(finalizedData);_this6.selectionHandler.unselectAll();_this6.showManipulatorToolbar()}})}else{throw new Error(\"The function for edit does not support two arguments (data, callback)\")}}else{this.body.data.edges.getDataSet().update(defaultData);this.selectionHandler.unselectAll();this.showManipulatorToolbar()}}}]);return ManipulationSystem}();exports[\"default\"]=ManipulationSystem},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _FloydWarshall=__webpack_require__(239);var _FloydWarshall2=_interopRequireDefault(_FloydWarshall);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var KamadaKawai=function(){function KamadaKawai(body,edgeLength,edgeStrength){(0,_classCallCheck3[\"default\"])(this,KamadaKawai);this.body=body;this.springLength=edgeLength;this.springConstant=edgeStrength;this.distanceSolver=new _FloydWarshall2[\"default\"]}(0,_createClass3[\"default\"])(KamadaKawai,[{key:\"setOptions\",value:function setOptions(options){if(options){if(options.springLength){this.springLength=options.springLength}if(options.springConstant){this.springConstant=options.springConstant}}}},{key:\"solve\",value:function solve(nodesArray,edgesArray){var ignoreClusters=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var D_matrix=this.distanceSolver.getDistances(this.body,nodesArray,edgesArray);this._createL_matrix(D_matrix);this._createK_matrix(D_matrix);this._createE_matrix();var threshold=.01;var innerThreshold=1;var iterations=0;var maxIterations=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3));var maxInnerIterations=5;var maxEnergy=1e9;var highE_nodeId=0,dE_dx=0,dE_dy=0,delta_m=0,subIterations=0;while(maxEnergy>threshold&&iterations<maxIterations){iterations+=1;var _getHighestEnergyNode2=this._getHighestEnergyNode(ignoreClusters);var _getHighestEnergyNode3=(0,_slicedToArray3[\"default\"])(_getHighestEnergyNode2,4);highE_nodeId=_getHighestEnergyNode3[0];maxEnergy=_getHighestEnergyNode3[1];dE_dx=_getHighestEnergyNode3[2];dE_dy=_getHighestEnergyNode3[3];delta_m=maxEnergy;subIterations=0;while(delta_m>innerThreshold&&subIterations<maxInnerIterations){subIterations+=1;this._moveNode(highE_nodeId,dE_dx,dE_dy);var _getEnergy2=this._getEnergy(highE_nodeId);var _getEnergy3=(0,_slicedToArray3[\"default\"])(_getEnergy2,3);delta_m=_getEnergy3[0];dE_dx=_getEnergy3[1];dE_dy=_getEnergy3[2]}}}},{key:\"_getHighestEnergyNode\",value:function _getHighestEnergyNode(ignoreClusters){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;var maxEnergy=0;var maxEnergyNodeId=nodesArray[0];var dE_dx_max=0,dE_dy_max=0;for(var nodeIdx=0;nodeIdx<nodesArray.length;nodeIdx++){var m=nodesArray[nodeIdx];if(nodes[m].predefinedPosition===false||nodes[m].isCluster===true&&ignoreClusters===true||nodes[m].options.fixed.x===true||nodes[m].options.fixed.y===true){var _getEnergy4=this._getEnergy(m),_getEnergy5=(0,_slicedToArray3[\"default\"])(_getEnergy4,3),delta_m=_getEnergy5[0],dE_dx=_getEnergy5[1],dE_dy=_getEnergy5[2];if(maxEnergy<delta_m){maxEnergy=delta_m;maxEnergyNodeId=m;dE_dx_max=dE_dx;dE_dy_max=dE_dy}}}return[maxEnergyNodeId,maxEnergy,dE_dx_max,dE_dy_max]}},{key:\"_getEnergy\",value:function _getEnergy(m){var _E_sums$m=(0,_slicedToArray3[\"default\"])(this.E_sums[m],2),dE_dx=_E_sums$m[0],dE_dy=_E_sums$m[1];var delta_m=Math.sqrt(Math.pow(dE_dx,2)+Math.pow(dE_dy,2));return[delta_m,dE_dx,dE_dy]}},{key:\"_moveNode\",value:function _moveNode(m,dE_dx,dE_dy){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;var d2E_dx2=0;var d2E_dxdy=0;var d2E_dy2=0;var x_m=nodes[m].x;var y_m=nodes[m].y;var km=this.K_matrix[m];var lm=this.L_matrix[m];for(var iIdx=0;iIdx<nodesArray.length;iIdx++){var i=nodesArray[iIdx];if(i!==m){var x_i=nodes[i].x;var y_i=nodes[i].y;var kmat=km[i];var lmat=lm[i];var denominator=1/Math.pow(Math.pow(x_m-x_i,2)+Math.pow(y_m-y_i,2),1.5);d2E_dx2+=kmat*(1-lmat*Math.pow(y_m-y_i,2)*denominator);d2E_dxdy+=kmat*(lmat*(x_m-x_i)*(y_m-y_i)*denominator);d2E_dy2+=kmat*(1-lmat*Math.pow(x_m-x_i,2)*denominator)}}var A=d2E_dx2,B=d2E_dxdy,C=dE_dx,D=d2E_dy2,E=dE_dy;var dy=(C/A+E/B)/(B/A-D/B);var dx=-(B*dy+C)/A;nodes[m].x+=dx;nodes[m].y+=dy;this._updateE_matrix(m)}},{key:\"_createL_matrix\",value:function _createL_matrix(D_matrix){var nodesArray=this.body.nodeIndices;var edgeLength=this.springLength;this.L_matrix=[];for(var i=0;i<nodesArray.length;i++){this.L_matrix[nodesArray[i]]={};for(var j=0;j<nodesArray.length;j++){this.L_matrix[nodesArray[i]][nodesArray[j]]=edgeLength*D_matrix[nodesArray[i]][nodesArray[j]]}}}},{key:\"_createK_matrix\",value:function _createK_matrix(D_matrix){var nodesArray=this.body.nodeIndices;var edgeStrength=this.springConstant;this.K_matrix=[];for(var i=0;i<nodesArray.length;i++){this.K_matrix[nodesArray[i]]={};for(var j=0;j<nodesArray.length;j++){this.K_matrix[nodesArray[i]][nodesArray[j]]=edgeStrength*Math.pow(D_matrix[nodesArray[i]][nodesArray[j]],-2)}}}},{key:\"_createE_matrix\",value:function _createE_matrix(){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;this.E_matrix={};this.E_sums={};for(var mIdx=0;mIdx<nodesArray.length;mIdx++){this.E_matrix[nodesArray[mIdx]]=[]}for(var _mIdx=0;_mIdx<nodesArray.length;_mIdx++){var m=nodesArray[_mIdx];var x_m=nodes[m].x;var y_m=nodes[m].y;var dE_dx=0;var dE_dy=0;for(var iIdx=_mIdx;iIdx<nodesArray.length;iIdx++){var i=nodesArray[iIdx];if(i!==m){var x_i=nodes[i].x;var y_i=nodes[i].y;var denominator=1/Math.sqrt(Math.pow(x_m-x_i,2)+Math.pow(y_m-y_i,2));this.E_matrix[m][iIdx]=[this.K_matrix[m][i]*(x_m-x_i-this.L_matrix[m][i]*(x_m-x_i)*denominator),this.K_matrix[m][i]*(y_m-y_i-this.L_matrix[m][i]*(y_m-y_i)*denominator)];this.E_matrix[i][_mIdx]=this.E_matrix[m][iIdx];dE_dx+=this.E_matrix[m][iIdx][0];dE_dy+=this.E_matrix[m][iIdx][1]}}this.E_sums[m]=[dE_dx,dE_dy]}}},{key:\"_updateE_matrix\",value:function _updateE_matrix(m){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;var colm=this.E_matrix[m];var kcolm=this.K_matrix[m];var lcolm=this.L_matrix[m];var x_m=nodes[m].x;var y_m=nodes[m].y;var dE_dx=0;var dE_dy=0;for(var iIdx=0;iIdx<nodesArray.length;iIdx++){var i=nodesArray[iIdx];if(i!==m){var cell=colm[iIdx];var oldDx=cell[0];var oldDy=cell[1];var x_i=nodes[i].x;var y_i=nodes[i].y;var denominator=1/Math.sqrt(Math.pow(x_m-x_i,2)+Math.pow(y_m-y_i,2));var dx=kcolm[i]*(x_m-x_i-lcolm[i]*(x_m-x_i)*denominator);var dy=kcolm[i]*(y_m-y_i-lcolm[i]*(y_m-y_i)*denominator);colm[iIdx]=[dx,dy];dE_dx+=dx;dE_dy+=dy;var sum=this.E_sums[i];sum[0]+=dx-oldDx;sum[1]+=dy-oldDy}}this.E_sums[m]=[dE_dx,dE_dy]}}]);return KamadaKawai}();exports[\"default\"]=KamadaKawai},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var FloydWarshall=function(){function FloydWarshall(){(0,_classCallCheck3[\"default\"])(this,FloydWarshall)}(0,_createClass3[\"default\"])(FloydWarshall,[{key:\"getDistances\",value:function getDistances(body,nodesArray,edgesArray){var D_matrix={};var edges=body.edges;for(var i=0;i<nodesArray.length;i++){var node=nodesArray[i];var cell={};D_matrix[node]=cell;for(var j=0;j<nodesArray.length;j++){cell[nodesArray[j]]=i==j?0:1e9}}for(var _i=0;_i<edgesArray.length;_i++){var edge=edges[edgesArray[_i]];if(edge.connected===true&&D_matrix[edge.fromId]!==undefined&&D_matrix[edge.toId]!==undefined){D_matrix[edge.fromId][edge.toId]=1;D_matrix[edge.toId][edge.fromId]=1}}var nodeCount=nodesArray.length;for(var k=0;k<nodeCount;k++){var knode=nodesArray[k];var kcolm=D_matrix[knode];for(var _i2=0;_i2<nodeCount-1;_i2++){var inode=nodesArray[_i2];var icolm=D_matrix[inode];for(var _j=_i2+1;_j<nodeCount;_j++){var jnode=nodesArray[_j];var jcolm=D_matrix[jnode];var val=Math.min(icolm[jnode],icolm[knode]+kcolm[jnode]);icolm[jnode]=val;jcolm[inode]=val}}}return D_matrix}}]);return FloydWarshall}();exports[\"default\"]=FloydWarshall}])});\n",
"type": "application/javascript",
"module-type": "library"
}
}
}
{
"tiddlers": {
"$:/plugins/gt6796c/flowchart-tw5/example-flowchart": {
"title": "$:/plugins/gt6796c/flowchart-tw5/example-flowchart",
"text": "Notation\n\n```\n<$flowchart\nflowstate='{ \"current\" : { \"fill\" : \"gray\" } }' >\nst=>start: Start|past:>[[HelloThere]]\ne=>end: End|future:>http://www.google.com\nop1=>operation: My Operation|past\nop2=>operation: Stuff|current\nsub1=>subroutine: My Subroutine|invalid\ncond=>condition: Yes\nor No?|approved:>http://www.google.com\nc2=>condition: Good idea|rejected\nio=>inputoutput: catch something...|future\n\nst->op1(right)->cond\ncond(yes, right)->c2\ncond(no)->sub1(left)->op1\nc2(yes)->io->e\nc2(no)->op2->e\n</$flowchart>\n```\nResults\n\n<$flowchart\nflowstate='{ \"current\" : { \"fill\" : \"gray\" } }'>\nst=>start: Start|past:>[[HelloThere]]\ne=>end: End|future:>http://www.google.com\nop1=>operation: My Operation|past\nop2=>operation: Stuff|current\nsub1=>subroutine: My Subroutine|invalid\ncond=>condition: Yes\nor No?|approved:>http://www.google.com\nc2=>condition: Good idea|rejected\nio=>inputoutput: catch something...|future\n\nst->op1(right)->cond\ncond(yes, right)->c2\ncond(no)->sub1(left)->op1\nc2(yes)->io->e\nc2(no)->op2->e\n</$flowchart>\n\n"
},
"$:/plugins/gt6796c/flowchart-tw5/example-seqdiag": {
"title": "$:/plugins/gt6796c/flowchart-tw5/example-seqdiag",
"text": "Notation\n\n```\n<$seqdiag theme='hand'>\nAndrew->China: Says Hello\nNote right of China: China thinks\\nabout it\nChina-->Andrew: How are you?\nAndrew->>China: I am good thanks!\n</$seqdiag>\n```\n\nResults\n\n<$seqdiag theme='hand'>\nAndrew->China: Says Hello\nNote right of China: China thinks\\nabout it\nChina-->Andrew: How are you?\nAndrew->>China: I am good thanks!\n</$seqdiag>\n\nNotation\n\n```\n<$seqdiag>\n# Example of a comment.\nNote left of A: Note to the\\n left of A\nNote right of A: Note to the\\n right of A\nNote over A: Note over A\nNote over A,B: Note over both A and B\n</$seqdiag>\n```\n\nResults\n\n<$seqdiag>\n# Example of a comment.\nNote left of A: Note to the\\n left of A\nNote right of A: Note to the\\n right of A\nNote over A: Note over A\nNote over A,B: Note over both A and B\n</$seqdiag>\n\nNotation\n\n```\n<$seqdiag>\nparticipant C\nparticipant B\nparticipant A\nNote right of A: By listing the participants\\n you can change their order\n</$seqdiag>\n```\n\nResults\n\n<$seqdiag>\nparticipant C\nparticipant B\nparticipant A\nNote right of A: By listing the participants\\n you can change their order\n</$seqdiag>\n\nNotation\n\n```\n<$seqdiag>\nTitle: Here is a title\nA->B: Normal line\nB-->C: Dashed line\nC->>D: Open arrow\nD-->>A: Dashed open arrow\n</$seqdiag>\n```\n\nResults\n<$seqdiag>\nTitle: Here is a title\nA->B: Normal line\nB-->C: Dashed line\nC->>D: Open arrow\nD-->>A: Dashed open arrow\n</$seqdiag>"
},
"$:/plugins/gt6796c/flowchart-tw5/flowchart.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/flowchart-tw5/flowchart.js",
"module-type": "library",
"text": "(function(document) {\n// flowchart.js, v1.6.3\n// Copyright (c)yyyy Adriano Raiano (adrai).\n// Distributed under MIT license\n// http://adrai.github.io/flowchart.js\n\n!function(root, factory) {\n if (\"object\" == typeof exports && \"object\" == typeof module) {\n // NESTED \"require\"s don't work, so look directly for it in the root\n module.exports = factory(root.Raphael); ///require(\"Raphael\"));\n } else if (\"function\" == typeof define && define.amd) define([ \"Raphael\" ], factory); else {\n var a = factory(\"object\" == typeof exports ? require(\"Raphael\") : root.Raphael);\n for (var i in a) (\"object\" == typeof exports ? exports : root)[i] = a[i];\n }\n}(this, function(__WEBPACK_EXTERNAL_MODULE_15__) {\n /******/\n return function(modules) {\n /******/\n /******/\n // The require function\n /******/\n function __webpack_require__(moduleId) {\n /******/\n /******/\n // Check if module is in cache\n /******/\n if (installedModules[moduleId]) /******/\n return installedModules[moduleId].exports;\n /******/\n /******/\n // Create a new module (and put it into the cache)\n /******/\n var module = installedModules[moduleId] = {\n /******/\n exports: {},\n /******/\n id: moduleId,\n /******/\n loaded: !1\n };\n /******/\n /******/\n // Return the exports of the module\n /******/\n /******/\n /******/\n // Execute the module function\n /******/\n /******/\n /******/\n // Flag the module as loaded\n /******/\n return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), \n module.loaded = !0, module.exports;\n }\n // webpackBootstrap\n /******/\n // The module cache\n /******/\n var installedModules = {};\n /******/\n /******/\n // Load entry module and return exports\n /******/\n /******/\n /******/\n /******/\n // expose the modules object (__webpack_modules__)\n /******/\n /******/\n /******/\n // expose the module cache\n /******/\n /******/\n /******/\n // __webpack_public_path__\n /******/\n return __webpack_require__.m = modules, __webpack_require__.c = installedModules, \n __webpack_require__.p = \"\", __webpack_require__(0);\n }([ /* 0 */\n /*!******************!*\\\n !*** ./index.js ***!\n \\******************/\n /***/\n function(module, exports, __webpack_require__) {\n __webpack_require__(/*! ./src/flowchart.shim */ 8);\n var parse = __webpack_require__(/*! ./src/flowchart.parse */ 4);\n __webpack_require__(/*! ./src/jquery-plugin */ 14);\n var FlowChart = {\n parse: parse\n };\n \"undefined\" != typeof window && (window.flowchart = FlowChart), module.exports = FlowChart;\n }, /* 1 */\n /*!**********************************!*\\\n !*** ./src/flowchart.helpers.js ***!\n \\**********************************/\n /***/\n function(module, exports) {\n function _defaults(options, defaultOptions) {\n if (!options || \"function\" == typeof options) return defaultOptions;\n var merged = {};\n for (var attrname in defaultOptions) merged[attrname] = defaultOptions[attrname];\n for (attrname in options) options[attrname] && (\"object\" == typeof merged[attrname] ? merged[attrname] = _defaults(merged[attrname], options[attrname]) : merged[attrname] = options[attrname]);\n return merged;\n }\n function _inherits(ctor, superCtor) {\n if (\"function\" == typeof Object.create) // implementation from standard node.js 'util' module\n ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }); else {\n // old school shim for old browsers\n ctor.super_ = superCtor;\n var TempCtor = function() {};\n TempCtor.prototype = superCtor.prototype, ctor.prototype = new TempCtor(), ctor.prototype.constructor = ctor;\n }\n }\n // move dependent functions to a container so that\n // they can be overriden easier in no jquery environment (node.js)\n module.exports = {\n defaults: _defaults,\n inherits: _inherits\n };\n }, /* 2 */\n /*!*********************************!*\\\n !*** ./src/flowchart.symbol.js ***!\n \\*********************************/\n /***/\n function(module, exports, __webpack_require__) {\n function Symbol(chart, options, symbol) {\n this.chart = chart, this.group = this.chart.paper.set(), this.symbol = symbol, this.connectedTo = [], \n this.symbolType = options.symbolType, this.flowstate = options.flowstate || \"future\", \n this.next_direction = options.next && options.direction_next ? options.direction_next : this.getAttr(\"direction\"),\n this.text = this.chart.paper.text(0, 0, options.text), //Raphael does not support the svg group tag so setting the text node id to the symbol node id plus t\n options.key && (this.text.node.id = options.key + \"t\"), this.text.node.setAttribute(\"class\", this.getAttr(\"class\") + \"t\"), \n this.text.attr({\n \"text-anchor\": \"start\",\n x: this.getAttr(\"text-margin\"),\n fill: this.getAttr(\"font-color\"),\n \"font-size\": this.getAttr(\"font-size\")\n });\n var font = this.getAttr(\"font\"), fontF = this.getAttr(\"font-family\"), fontW = this.getAttr(\"font-weight\");\n font && this.text.attr({\n font: font\n }), fontF && this.text.attr({\n \"font-family\": fontF\n }), fontW && this.text.attr({\n \"font-weight\": fontW\n }), options.link && this.text.attr(\"href\", options.link), options.target && this.text.attr(\"target\", options.target);\n var maxWidth = this.getAttr(\"maxWidth\");\n if (maxWidth) {\n for (var words = options.text.split(\" \"), tempText = \"\", i = 0, ii = words.length; ii > i; i++) {\n var word = words[i];\n this.text.attr(\"text\", tempText + \" \" + word), tempText += this.text.getBBox().width > maxWidth ? \"\\n\" + word : \" \" + word;\n }\n this.text.attr(\"text\", tempText.substring(1));\n }\n if (this.group.push(this.text), symbol) {\n var tmpMargin = this.getAttr(\"text-margin\");\n symbol.attr({\n fill: this.getAttr(\"fill\"),\n stroke: this.getAttr(\"element-color\"),\n \"stroke-width\": this.getAttr(\"line-width\"),\n width: this.text.getBBox().width + 2 * tmpMargin,\n height: this.text.getBBox().height + 2 * tmpMargin\n }), symbol.node.setAttribute(\"class\", this.getAttr(\"class\")), options.link && symbol.attr(\"href\", options.link), \n options.target && symbol.attr(\"target\", options.target), options.key && (symbol.node.id = options.key), \n this.group.push(symbol), symbol.insertBefore(this.text), this.text.attr({\n y: symbol.getBBox().height / 2\n }), this.initialize();\n }\n }\n var drawAPI = __webpack_require__(/*! ./flowchart.functions */ 3), drawLine = drawAPI.drawLine, checkLineIntersection = drawAPI.checkLineIntersection;\n /* Gets the attribute based on Flowstate, Symbol-Name and default, first found wins */\n Symbol.prototype.getAttr = function(attName) {\n if (this.chart) {\n var opt1, opt3 = this.chart.options ? this.chart.options[attName] : void 0, opt2 = this.chart.options.symbols ? this.chart.options.symbols[this.symbolType][attName] : void 0;\n return this.chart.options.flowstate && this.chart.options.flowstate[this.flowstate] && (opt1 = this.chart.options.flowstate[this.flowstate][attName]), \n opt1 || opt2 || opt3;\n }\n }, Symbol.prototype.initialize = function() {\n this.group.transform(\"t\" + this.getAttr(\"line-width\") + \",\" + this.getAttr(\"line-width\")), \n this.width = this.group.getBBox().width, this.height = this.group.getBBox().height;\n }, Symbol.prototype.getCenter = function() {\n return {\n x: this.getX() + this.width / 2,\n y: this.getY() + this.height / 2\n };\n }, Symbol.prototype.getX = function() {\n return this.group.getBBox().x;\n }, Symbol.prototype.getY = function() {\n return this.group.getBBox().y;\n }, Symbol.prototype.shiftX = function(x) {\n this.group.transform(\"t\" + (this.getX() + x) + \",\" + this.getY());\n }, Symbol.prototype.setX = function(x) {\n this.group.transform(\"t\" + x + \",\" + this.getY());\n }, Symbol.prototype.shiftY = function(y) {\n this.group.transform(\"t\" + this.getX() + \",\" + (this.getY() + y));\n }, Symbol.prototype.setY = function(y) {\n this.group.transform(\"t\" + this.getX() + \",\" + y);\n }, Symbol.prototype.getTop = function() {\n var y = this.getY(), x = this.getX() + this.width / 2;\n return {\n x: x,\n y: y\n };\n }, Symbol.prototype.getBottom = function() {\n var y = this.getY() + this.height, x = this.getX() + this.width / 2;\n return {\n x: x,\n y: y\n };\n }, Symbol.prototype.getLeft = function() {\n var y = this.getY() + this.group.getBBox().height / 2, x = this.getX();\n return {\n x: x,\n y: y\n };\n }, Symbol.prototype.getRight = function() {\n var y = this.getY() + this.group.getBBox().height / 2, x = this.getX() + this.group.getBBox().width;\n return {\n x: x,\n y: y\n };\n }, Symbol.prototype.render = function() {\n if (this.next) {\n var lineLength = this.getAttr(\"line-length\");\n if (\"right\" === this.next_direction) {\n var rightPoint = this.getRight();\n if (!this.next.isPositioned) {\n this.next.setY(rightPoint.y - this.next.height / 2), this.next.shiftX(this.group.getBBox().x + this.width + lineLength);\n var self = this;\n !function shift() {\n for (var symb, hasSymbolUnder = !1, i = 0, len = self.chart.symbols.length; len > i; i++) {\n symb = self.chart.symbols[i];\n var diff = Math.abs(symb.getCenter().x - self.next.getCenter().x);\n if (symb.getCenter().y > self.next.getCenter().y && diff <= self.next.width / 2) {\n hasSymbolUnder = !0;\n break;\n }\n }\n hasSymbolUnder && (self.next.setX(symb.getX() + symb.width + lineLength), shift());\n }(), this.next.isPositioned = !0, this.next.render();\n }\n } else {\n var bottomPoint = this.getBottom();\n this.next.isPositioned || (this.next.shiftY(this.getY() + this.height + lineLength), \n this.next.setX(bottomPoint.x - this.next.width / 2), this.next.isPositioned = !0, \n this.next.render());\n }\n }\n }, Symbol.prototype.renderLines = function() {\n this.next && (this.next_direction ? this.drawLineTo(this.next, \"\", this.next_direction) : this.drawLineTo(this.next));\n }, Symbol.prototype.drawLineTo = function(symbol, text, origin) {\n this.connectedTo.indexOf(symbol) < 0 && this.connectedTo.push(symbol);\n var line, x = this.getCenter().x, y = this.getCenter().y, right = this.getRight(), bottom = this.getBottom(), left = this.getLeft(), symbolX = symbol.getCenter().x, symbolY = symbol.getCenter().y, symbolTop = symbol.getTop(), symbolRight = symbol.getRight(), symbolLeft = symbol.getLeft(), isOnSameColumn = x === symbolX, isOnSameLine = y === symbolY, isUnder = symbolY > y, isUpper = y > symbolY || this === symbol, isLeft = x > symbolX, isRight = symbolX > x, maxX = 0, lineLength = this.getAttr(\"line-length\"), lineWith = this.getAttr(\"line-width\");\n if (origin && \"bottom\" !== origin || !isOnSameColumn || !isUnder) if (origin && \"right\" !== origin || !isOnSameLine || !isRight) if (origin && \"left\" !== origin || !isOnSameLine || !isLeft) if (origin && \"right\" !== origin || !isOnSameColumn || !isUpper) if (origin && \"right\" !== origin || !isOnSameColumn || !isUnder) if (origin && \"bottom\" !== origin || !isLeft) if (origin && \"bottom\" !== origin || !isRight) if (origin && \"right\" === origin && isLeft) line = drawLine(this.chart, right, [ {\n x: right.x + lineLength / 2,\n y: right.y\n }, {\n x: right.x + lineLength / 2,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.rightStart = !0, symbol.topEnd = !0, maxX = right.x + lineLength / 2; else if (origin && \"right\" === origin && isRight) line = drawLine(this.chart, right, [ {\n x: symbolTop.x,\n y: right.y\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.rightStart = !0, symbol.topEnd = !0, maxX = right.x + lineLength / 2; else if (origin && \"bottom\" === origin && isOnSameColumn && isUpper) line = drawLine(this.chart, bottom, [ {\n x: bottom.x,\n y: bottom.y + lineLength / 2\n }, {\n x: right.x + lineLength / 2,\n y: bottom.y + lineLength / 2\n }, {\n x: right.x + lineLength / 2,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.bottomStart = !0, symbol.topEnd = !0, maxX = bottom.x + lineLength / 2; else if (\"left\" === origin && isOnSameColumn && isUpper) {\n var diffX = left.x - lineLength / 2;\n symbolLeft.x < left.x && (diffX = symbolLeft.x - lineLength / 2), line = drawLine(this.chart, left, [ {\n x: diffX,\n y: left.y\n }, {\n x: diffX,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.leftStart = !0, symbol.topEnd = !0, maxX = left.x;\n } else \"left\" === origin && (line = drawLine(this.chart, left, [ {\n x: symbolTop.x + (left.x - symbolTop.x) / 2,\n y: left.y\n }, {\n x: symbolTop.x + (left.x - symbolTop.x) / 2,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.leftStart = !0, symbol.topEnd = !0, maxX = left.x); else line = drawLine(this.chart, bottom, [ {\n x: bottom.x,\n y: bottom.y + lineLength / 2\n }, {\n x: bottom.x + (bottom.x - symbolTop.x) / 2,\n y: bottom.y + lineLength / 2\n }, {\n x: bottom.x + (bottom.x - symbolTop.x) / 2,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.bottomStart = !0, symbol.topEnd = !0, maxX = bottom.x + (bottom.x - symbolTop.x) / 2; else line = this.leftEnd && isUpper ? drawLine(this.chart, bottom, [ {\n x: bottom.x,\n y: bottom.y + lineLength / 2\n }, {\n x: bottom.x + (bottom.x - symbolTop.x) / 2,\n y: bottom.y + lineLength / 2\n }, {\n x: bottom.x + (bottom.x - symbolTop.x) / 2,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text) : drawLine(this.chart, bottom, [ {\n x: bottom.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.bottomStart = !0, symbol.topEnd = !0, maxX = bottom.x + (bottom.x - symbolTop.x) / 2; else line = drawLine(this.chart, right, [ {\n x: right.x + lineLength / 2,\n y: right.y\n }, {\n x: right.x + lineLength / 2,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.rightStart = !0, symbol.topEnd = !0, maxX = right.x + lineLength / 2; else line = drawLine(this.chart, right, [ {\n x: right.x + lineLength / 2,\n y: right.y\n }, {\n x: right.x + lineLength / 2,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y - lineLength / 2\n }, {\n x: symbolTop.x,\n y: symbolTop.y\n } ], text), this.rightStart = !0, symbol.topEnd = !0, maxX = right.x + lineLength / 2; else line = drawLine(this.chart, left, symbolRight, text), \n this.leftStart = !0, symbol.rightEnd = !0, maxX = symbolRight.x; else line = drawLine(this.chart, right, symbolLeft, text), \n this.rightStart = !0, symbol.leftEnd = !0, maxX = symbolLeft.x; else line = drawLine(this.chart, bottom, symbolTop, text), \n this.bottomStart = !0, symbol.topEnd = !0, maxX = bottom.x;\n if (line) {\n for (var l = 0, llen = this.chart.lines.length; llen > l; l++) for (var len, otherLine = this.chart.lines[l], ePath = otherLine.attr(\"path\"), lPath = line.attr(\"path\"), iP = 0, lenP = ePath.length - 1; lenP > iP; iP++) {\n var newPath = [];\n newPath.push([ \"M\", ePath[iP][1], ePath[iP][2] ]), newPath.push([ \"L\", ePath[iP + 1][1], ePath[iP + 1][2] ]);\n for (var line1_from_x = newPath[0][1], line1_from_y = newPath[0][2], line1_to_x = newPath[1][1], line1_to_y = newPath[1][2], lP = 0, lenlP = lPath.length - 1; lenlP > lP; lP++) {\n var newLinePath = [];\n newLinePath.push([ \"M\", lPath[lP][1], lPath[lP][2] ]), newLinePath.push([ \"L\", lPath[lP + 1][1], lPath[lP + 1][2] ]);\n var line2_from_x = newLinePath[0][1], line2_from_y = newLinePath[0][2], line2_to_x = newLinePath[1][1], line2_to_y = newLinePath[1][2], res = checkLineIntersection(line1_from_x, line1_from_y, line1_to_x, line1_to_y, line2_from_x, line2_from_y, line2_to_x, line2_to_y);\n if (res.onLine1 && res.onLine2) {\n var newSegment;\n line2_from_y === line2_to_y ? line2_from_x > line2_to_x ? (newSegment = [ \"L\", res.x + 2 * lineWith, line2_from_y ], \n lPath.splice(lP + 1, 0, newSegment), newSegment = [ \"C\", res.x + 2 * lineWith, line2_from_y, res.x, line2_from_y - 4 * lineWith, res.x - 2 * lineWith, line2_from_y ], \n lPath.splice(lP + 2, 0, newSegment), line.attr(\"path\", lPath)) : (newSegment = [ \"L\", res.x - 2 * lineWith, line2_from_y ], \n lPath.splice(lP + 1, 0, newSegment), newSegment = [ \"C\", res.x - 2 * lineWith, line2_from_y, res.x, line2_from_y - 4 * lineWith, res.x + 2 * lineWith, line2_from_y ], \n lPath.splice(lP + 2, 0, newSegment), line.attr(\"path\", lPath)) : line2_from_y > line2_to_y ? (newSegment = [ \"L\", line2_from_x, res.y + 2 * lineWith ], \n lPath.splice(lP + 1, 0, newSegment), newSegment = [ \"C\", line2_from_x, res.y + 2 * lineWith, line2_from_x + 4 * lineWith, res.y, line2_from_x, res.y - 2 * lineWith ], \n lPath.splice(lP + 2, 0, newSegment), line.attr(\"path\", lPath)) : (newSegment = [ \"L\", line2_from_x, res.y - 2 * lineWith ], \n lPath.splice(lP + 1, 0, newSegment), newSegment = [ \"C\", line2_from_x, res.y - 2 * lineWith, line2_from_x + 4 * lineWith, res.y, line2_from_x, res.y + 2 * lineWith ], \n lPath.splice(lP + 2, 0, newSegment), line.attr(\"path\", lPath)), lP += 2, len += 2;\n }\n }\n }\n this.chart.lines.push(line);\n }\n (!this.chart.maxXFromLine || this.chart.maxXFromLine && maxX > this.chart.maxXFromLine) && (this.chart.maxXFromLine = maxX);\n }, module.exports = Symbol;\n }, /* 3 */\n /*!************************************!*\\\n !*** ./src/flowchart.functions.js ***!\n \\************************************/\n /***/\n function(module, exports) {\n function drawPath(chart, location, points) {\n var i, len, path = \"M{0},{1}\";\n for (i = 2, len = 2 * points.length + 2; len > i; i += 2) path += \" L{\" + i + \"},{\" + (i + 1) + \"}\";\n var pathValues = [ location.x, location.y ];\n for (i = 0, len = points.length; len > i; i++) pathValues.push(points[i].x), pathValues.push(points[i].y);\n var symbol = chart.paper.path(path, pathValues);\n symbol.attr(\"stroke\", chart.options[\"element-color\"]), symbol.attr(\"stroke-width\", chart.options[\"line-width\"]);\n var font = chart.options.font, fontF = chart.options[\"font-family\"], fontW = chart.options[\"font-weight\"];\n return font && symbol.attr({\n font: font\n }), fontF && symbol.attr({\n \"font-family\": fontF\n }), fontW && symbol.attr({\n \"font-weight\": fontW\n }), symbol;\n }\n function drawLine(chart, from, to, text) {\n var i, len;\n \"[object Array]\" !== Object.prototype.toString.call(to) && (to = [ to ]);\n var path = \"M{0},{1}\";\n for (i = 2, len = 2 * to.length + 2; len > i; i += 2) path += \" L{\" + i + \"},{\" + (i + 1) + \"}\";\n var pathValues = [ from.x, from.y ];\n for (i = 0, len = to.length; len > i; i++) pathValues.push(to[i].x), pathValues.push(to[i].y);\n var line = chart.paper.path(path, pathValues);\n line.attr({\n stroke: chart.options[\"line-color\"],\n \"stroke-width\": chart.options[\"line-width\"],\n \"arrow-end\": chart.options[\"arrow-end\"]\n });\n var font = chart.options.font, fontF = chart.options[\"font-family\"], fontW = chart.options[\"font-weight\"];\n if (font && line.attr({\n font: font\n }), fontF && line.attr({\n \"font-family\": fontF\n }), fontW && line.attr({\n \"font-weight\": fontW\n }), text) {\n var centerText = !1, textPath = chart.paper.text(0, 0, text), isHorizontal = !1, firstTo = to[0];\n from.y === firstTo.y && (isHorizontal = !0);\n var x = 0, y = 0;\n centerText ? (x = from.x > firstTo.x ? from.x - (from.x - firstTo.x) / 2 : firstTo.x - (firstTo.x - from.x) / 2, \n y = from.y > firstTo.y ? from.y - (from.y - firstTo.y) / 2 : firstTo.y - (firstTo.y - from.y) / 2, \n isHorizontal ? (x -= textPath.getBBox().width / 2, y -= chart.options[\"text-margin\"]) : (x += chart.options[\"text-margin\"], \n y -= textPath.getBBox().height / 2)) : (x = from.x, y = from.y, isHorizontal ? (x += chart.options[\"text-margin\"] / 2, \n y -= chart.options[\"text-margin\"]) : (x += chart.options[\"text-margin\"] / 2, y += chart.options[\"text-margin\"])), \n textPath.attr({\n \"text-anchor\": \"start\",\n \"font-size\": chart.options[\"font-size\"],\n fill: chart.options[\"font-color\"],\n x: x,\n y: y\n }), font && textPath.attr({\n font: font\n }), fontF && textPath.attr({\n \"font-family\": fontF\n }), fontW && textPath.attr({\n \"font-weight\": fontW\n });\n }\n return line;\n }\n function checkLineIntersection(line1StartX, line1StartY, line1EndX, line1EndY, line2StartX, line2StartY, line2EndX, line2EndY) {\n // if the lines intersect, the result contains the x and y of the intersection (treating the lines as infinite) and booleans for whether line segment 1 or line segment 2 contain the point\n var denominator, a, b, numerator1, numerator2, result = {\n x: null,\n y: null,\n onLine1: !1,\n onLine2: !1\n };\n // if we cast these lines infinitely in both directions, they intersect here:\n /*\n\t // it is worth noting that this should be the same as:\n\t x = line2StartX + (b * (line2EndX - line2StartX));\n\t y = line2StartX + (b * (line2EndY - line2StartY));\n\t */\n // if line1 is a segment and line2 is infinite, they intersect if:\n // if line2 is a segment and line1 is infinite, they intersect if:\n return denominator = (line2EndY - line2StartY) * (line1EndX - line1StartX) - (line2EndX - line2StartX) * (line1EndY - line1StartY), \n 0 === denominator ? result : (a = line1StartY - line2StartY, b = line1StartX - line2StartX, \n numerator1 = (line2EndX - line2StartX) * a - (line2EndY - line2StartY) * b, numerator2 = (line1EndX - line1StartX) * a - (line1EndY - line1StartY) * b, \n a = numerator1 / denominator, b = numerator2 / denominator, result.x = line1StartX + a * (line1EndX - line1StartX), \n result.y = line1StartY + a * (line1EndY - line1StartY), a > 0 && 1 > a && (result.onLine1 = !0), \n b > 0 && 1 > b && (result.onLine2 = !0), result);\n }\n module.exports = {\n drawPath: drawPath,\n drawLine: drawLine,\n checkLineIntersection: checkLineIntersection\n };\n }, /* 4 */\n /*!********************************!*\\\n !*** ./src/flowchart.parse.js ***!\n \\********************************/\n /***/\n function(module, exports, __webpack_require__) {\n function parse(input, symbolFactory) {\n function getSymbol(s) {\n var startIndex = s.indexOf(\"(\") + 1, endIndex = s.indexOf(\")\");\n return startIndex >= 0 && endIndex >= 0 ? chart.symbols[s.substring(0, startIndex - 1)] : chart.symbols[s];\n }\n function getNextPath(s) {\n var next = \"next\", startIndex = s.indexOf(\"(\") + 1, endIndex = s.indexOf(\")\");\n return startIndex >= 0 && endIndex >= 0 && (next = flowSymb.substring(startIndex, endIndex), \n next.indexOf(\",\") < 0 && \"yes\" !== next && \"no\" !== next && (next = \"next, \" + next)),\n next;\n }\n input = input || \"\", input = input.trim();\n symbolFactory = symbolFactory;\n for (var chart = {\n symbols: {},\n start: null,\n drawSVG: function(container, options) {\n function getDisplaySymbol(s) {\n if (dispSymbols[s.key]) return dispSymbols[s.key];\n switch (s.symbolType) {\n case \"start\":\n dispSymbols[s.key] = new Start(diagram, s);\n break;\n\n case \"end\":\n dispSymbols[s.key] = new End(diagram, s);\n break;\n\n case \"operation\":\n dispSymbols[s.key] = new Operation(diagram, s);\n break;\n\n case \"inputoutput\":\n dispSymbols[s.key] = new InputOutput(diagram, s);\n break;\n\n case \"subroutine\":\n dispSymbols[s.key] = new Subroutine(diagram, s);\n break;\n\n case \"condition\":\n dispSymbols[s.key] = new Condition(diagram, s);\n break;\n\n default:\n var sym = (symbolFactory && symbolFactory(s.symbolType))\n if (sym) {\n diagram.options.symbols[s.symbolType] = {};\n var Symbol = __webpack_require__(/*! ./flowchart.symbol */ 2), inherits = __webpack_require__(/*! ./flowchart.helpers */ 1).inherits;\n inherits(sym, Symbol);\n dispSymbols[s.key] = new sym(Symbol, diagram, s);\n }\n else\n return new Error(\"Wrong symbol type!\");\n }\n return dispSymbols[s.key];\n }\n var self = this;\n this.diagram && this.diagram.clean();\n var diagram = new FlowChart(container, options);\n this.diagram = diagram;\n var dispSymbols = {};\n !function constructChart(s, prevDisp, prev) {\n var dispSymb = getDisplaySymbol(s);\n return self.start === s ? \n diagram.startWith(dispSymb) : \n prevDisp && prev && !prevDisp.pathOk && \n (prevDisp instanceof Condition ? \n (prev.yes === s && prevDisp.yes(dispSymb), prev.no === s && prevDisp.no(dispSymb)) : \n prevDisp.then(dispSymb)), dispSymb.pathOk ? \n dispSymb : \n (dispSymb instanceof Condition ? \n (s.yes && constructChart(s.yes, dispSymb, s), s.no && constructChart(s.no, dispSymb, s)) : \n s.next && constructChart(s.next, dispSymb, s), dispSymb);\n }(this.start), diagram.render();\n },\n clean: function() {\n this.diagram.clean();\n }\n }, lines = [], prevBreak = 0, i0 = 1, i0len = input.length; i0len > i0; i0++) if (\"\\n\" === input[i0] && \"\\\\\" !== input[i0 - 1]) {\n var line0 = input.substring(prevBreak, i0);\n prevBreak = i0 + 1, lines.push(line0.replace(/\\\\\\n/g, \"\\n\"));\n }\n prevBreak < input.length && lines.push(input.substr(prevBreak));\n for (var l = 1, len = lines.length; len > l; ) {\n var currentLine = lines[l];\n currentLine.indexOf(\"->\") < 0 && currentLine.indexOf(\"=>\") < 0 ? (lines[l - 1] += \"\\n\" + currentLine, \n lines.splice(l, 1), len--) : l++;\n }\n for (;lines.length > 0; ) {\n var line = lines.splice(0, 1)[0];\n if (line.indexOf(\"=>\") >= 0) {\n // definition\n var sub, parts = line.split(\"=>\"), symbol = {\n key: parts[0],\n symbolType: parts[1],\n text: null,\n link: null,\n target: null,\n flowstate: null\n };\n /* adding support for links */\n if (symbol.symbolType.indexOf(\": \") >= 0 && (sub = symbol.symbolType.split(\": \"), \n symbol.symbolType = sub.shift(), symbol.text = sub.join(\": \")), symbol.text && symbol.text.indexOf(\":>\") >= 0 ? (sub = symbol.text.split(\":>\"), \n symbol.text = sub.shift(), symbol.link = sub.join(\":>\")) : symbol.symbolType.indexOf(\":>\") >= 0 && (sub = symbol.symbolType.split(\":>\"), \n symbol.symbolType = sub.shift(), symbol.link = sub.join(\":>\")), symbol.symbolType.indexOf(\"\\n\") >= 0 && (symbol.symbolType = symbol.symbolType.split(\"\\n\")[0]), \n symbol.link) {\n var startIndex = symbol.link.indexOf(\"[\") + 1, endIndex = symbol.link.indexOf(\"]\");\n startIndex >= 0 && endIndex >= 0 && (symbol.target = symbol.link.substring(startIndex, endIndex), \n symbol.link = symbol.link.substring(0, startIndex - 1));\n }\n /* end of link support */\n /* adding support for flowstates */\n if (symbol.text && symbol.text.indexOf(\"|\") >= 0) {\n var txtAndState = symbol.text.split(\"|\");\n symbol.flowstate = txtAndState.pop().trim(), symbol.text = txtAndState.join(\"|\");\n }\n /* end of flowstate support */\n chart.symbols[symbol.key] = symbol;\n } else if (line.indexOf(\"->\") >= 0) for (var flowSymbols = line.split(\"->\"), i = 0, lenS = flowSymbols.length; lenS > i; i++) {\n var flowSymb = flowSymbols[i], realSymb = getSymbol(flowSymb), next = getNextPath(flowSymb), direction = realSymb.direction;\n if (next.indexOf(\",\") >= 0) {\n var condOpt = next.split(\",\");\n next = condOpt[0], direction = condOpt[1].trim();\n }\n if (chart.start || (chart.start = realSymb), lenS > i + 1) {\n var nextSymb = flowSymbols[i + 1];\n realSymb[next] = getSymbol(nextSymb), realSymb[\"direction_\" + next] = direction,\n direction = realSymb.direction;\n }\n }\n }\n return chart;\n }\n var FlowChart = __webpack_require__(/*! ./flowchart.chart */ 6), Start = __webpack_require__(/*! ./flowchart.symbol.start */ 12), End = __webpack_require__(/*! ./flowchart.symbol.end */ 9), Operation = __webpack_require__(/*! ./flowchart.symbol.operation */ 11), InputOutput = __webpack_require__(/*! ./flowchart.symbol.inputoutput */ 10), Subroutine = __webpack_require__(/*! ./flowchart.symbol.subroutine */ 13), Condition = __webpack_require__(/*! ./flowchart.symbol.condition */ 5);\n module.exports = parse;\n }, /* 5 */\n /*!*******************************************!*\\\n !*** ./src/flowchart.symbol.condition.js ***!\n \\*******************************************/\n /***/\n function(module, exports, __webpack_require__) {\n function Condition(chart, options) {\n options = options || {}, Symbol.call(this, chart, options), this.textMargin = this.getAttr(\"text-margin\"),\n this.yes_direction = \"bottom\", this.no_direction = \"right\", options.yes && options.direction_yes && options.no && !options.direction_no ? \"right\" === options.direction_yes ? (this.no_direction = \"bottom\",\n this.yes_direction = \"right\") : (this.no_direction = \"right\", this.yes_direction = \"bottom\") : options.yes && !options.direction_yes && options.no && options.direction_no ? \"right\" === options.direction_no ? (this.yes_direction = \"bottom\", \n this.no_direction = \"right\") : (this.yes_direction = \"right\", this.no_direction = \"bottom\") : (this.yes_direction = \"bottom\", \n this.no_direction = \"right\"), this.yes_direction = this.yes_direction || \"bottom\", \n this.no_direction = this.no_direction || \"right\", this.text.attr({\n x: 2 * this.textMargin\n });\n var symbol;\n if (this.getAttr(\"shape\") !== \"rect\") {\n var width = this.text.getBBox().width + 3 * this.textMargin;\n width += width / 2;\n var height = this.text.getBBox().height + 2 * this.textMargin;\n height += height / 2, height = Math.max(.5 * width, height);\n var startX = width / 4, startY = height / 4;\n this.text.attr({\n x: startX + this.textMargin / 2\n });\n var start = {\n x: startX,\n y: startY\n }, points = [{\n x: startX - width / 4,\n y: startY + height / 4\n }, {\n x: startX - width / 4 + width / 2,\n y: startY + height / 4 + height / 2\n }, {\n x: startX - width / 4 + width,\n y: startY + height / 4\n }, {\n x: startX - width / 4 + width / 2,\n y: startY + height / 4 - height / 2\n }, {\n x: startX - width / 4,\n y: startY + height / 4\n }], symbol = drawPath(chart, start, points);\n symbol.attr({\n stroke: this.getAttr(\"element-color\"),\n \"stroke-width\": this.getAttr(\"line-width\"),\n fill: this.getAttr(\"fill\")\n }), options.link && symbol.attr(\"href\", options.link), options.target && symbol.attr(\"target\", options.target),\n options.key && (symbol.node.id = options.key), symbol.node.setAttribute(\"class\", this.getAttr(\"class\")),\n this.text.attr({\n y: symbol.getBBox().height / 2\n });\n }\n else\n {\n symbol = this.chart.paper.rect(0,0,0,0);\n var tmpMargin = this.getAttr(\"text-margin\");\n symbol.attr({\n fill: this.getAttr(\"fill\"),\n stroke: this.getAttr(\"element-color\"),\n \"stroke-width\": this.getAttr(\"line-width\"),\n width: this.text.getBBox().width + 2 * tmpMargin,\n height: this.text.getBBox().height + 2 * tmpMargin\n }), symbol.node.setAttribute(\"class\", this.getAttr(\"class\")), options.link && symbol.attr(\"href\", options.link),\n options.target && symbol.attr(\"target\", options.target), options.key && (symbol.node.id = options.key),\n this.group.push(symbol), symbol.insertBefore(this.text), this.text.attr({\n y: symbol.getBBox().height / 2 });\n }\n this.group.push(symbol), symbol.insertBefore(this.text), this.initialize();\n }\n var Symbol = __webpack_require__(/*! ./flowchart.symbol */ 2), inherits = __webpack_require__(/*! ./flowchart.helpers */ 1).inherits, drawAPI = __webpack_require__(/*! ./flowchart.functions */ 3), drawPath = drawAPI.drawPath;\n inherits(Condition, Symbol), Condition.prototype.render = function() {\n this.yes_direction && (this[this.yes_direction + \"_symbol\"] = this.yes_symbol), \n this.no_direction && (this[this.no_direction + \"_symbol\"] = this.no_symbol);\n var lineLength = this.getAttr(\"line-length\");\n if (this.bottom_symbol) {\n var bottomPoint = this.getBottom();\n this.bottom_symbol.isPositioned || (this.bottom_symbol.shiftY(this.getY() + this.height + lineLength), \n this.bottom_symbol.setX(bottomPoint.x - this.bottom_symbol.width / 2), this.bottom_symbol.isPositioned = !0, \n this.bottom_symbol.render());\n }\n if (this.right_symbol) {\n var rightPoint = this.getRight();\n if (!this.right_symbol.isPositioned) {\n this.right_symbol.setY(rightPoint.y - this.right_symbol.height / 2), this.right_symbol.shiftX(this.group.getBBox().x + this.width + lineLength);\n var self = this;\n !function shift() {\n for (var symb, hasSymbolUnder = !1, i = 0, len = self.chart.symbols.length; len > i; i++) {\n symb = self.chart.symbols[i];\n var diff = Math.abs(symb.getCenter().x - self.right_symbol.getCenter().x);\n if (symb.getCenter().y > self.right_symbol.getCenter().y && diff <= self.right_symbol.width / 2) {\n hasSymbolUnder = !0;\n break;\n }\n }\n hasSymbolUnder && (self.right_symbol.setX(symb.getX() + symb.width + lineLength), \n shift());\n }(), this.right_symbol.isPositioned = !0, this.right_symbol.render();\n }\n }\n }, Condition.prototype.renderLines = function() {\n this.yes_symbol && this.drawLineTo(this.yes_symbol, this.getAttr(\"yes-text\"), this.yes_direction), \n this.no_symbol && this.drawLineTo(this.no_symbol, this.getAttr(\"no-text\"), this.no_direction);\n }, module.exports = Condition;\n }, /* 6 */\n /*!********************************!*\\\n !*** ./src/flowchart.chart.js ***!\n \\********************************/\n /***/\n function(module, exports, __webpack_require__) {\n function FlowChart(container, options) {\n options = options || {}, this.paper = new Raphael(container), this.options = defaults(options, defaultOptions), \n this.symbols = [], this.lines = [], this.start = null;\n }\n var Raphael = __webpack_require__(/*! raphael */ 15), defaults = __webpack_require__(/*! ./flowchart.helpers */ 1).defaults, defaultOptions = __webpack_require__(/*! ./flowchart.defaults */ 7), Condition = __webpack_require__(/*! ./flowchart.symbol.condition */ 5);\n FlowChart.prototype.handle = function(symbol) {\n this.symbols.indexOf(symbol) <= -1 && this.symbols.push(symbol);\n var flowChart = this;\n return symbol instanceof Condition ? (symbol.yes = function(nextSymbol) {\n return symbol.yes_symbol = nextSymbol, symbol.no_symbol && (symbol.pathOk = !0), \n flowChart.handle(nextSymbol);\n }, symbol.no = function(nextSymbol) {\n return symbol.no_symbol = nextSymbol, symbol.yes_symbol && (symbol.pathOk = !0), \n flowChart.handle(nextSymbol);\n }) : symbol.then = function(nextSymbol) {\n return symbol.next = nextSymbol, symbol.pathOk = !0, flowChart.handle(nextSymbol);\n }, symbol;\n }, FlowChart.prototype.startWith = function(symbol) {\n return this.start = symbol, this.handle(symbol);\n }, FlowChart.prototype.render = function() {\n var symbol, line, maxWidth = 0, maxHeight = 0, i = 0, len = 0, maxX = 0, maxY = 0, minX = 0, minY = 0;\n for (i = 0, len = this.symbols.length; len > i; i++) symbol = this.symbols[i], symbol.width > maxWidth && (maxWidth = symbol.width), \n symbol.height > maxHeight && (maxHeight = symbol.height);\n for (i = 0, len = this.symbols.length; len > i; i++) {\n symbol = this.symbols[i]; \n symbol.shiftX(this.options.x + (maxWidth - symbol.width) / 2 + this.options[\"line-width\"]);\n symbol.shiftY(this.options.y + (maxHeight - symbol.height) / 2 + this.options[\"line-width\"]);\n }\n // for (i = 0, len = this.symbols.length; i < len; i++) {\n // symbol = this.symbols[i];\n // symbol.render();\n // }\n for (this.start.render(), i = 0, len = this.symbols.length; len > i; i++) symbol = this.symbols[i], \n symbol.renderLines();\n for (maxX = this.maxXFromLine, i = 0, len = this.symbols.length; len > i; i++) {\n symbol = this.symbols[i];\n var x = symbol.getX() + symbol.width, y = symbol.getY() + symbol.height;\n x > maxX && (maxX = x), y > maxY && (maxY = y);\n }\n for (i = 0, len = this.lines.length; len > i; i++) {\n line = this.lines[i].getBBox();\n var x = line.x, y = line.y, x2 = line.x2, y2 = line.y2;\n minX > x && (minX = x), minY > y && (minY = y), x2 > maxX && (maxX = x2), y2 > maxY && (maxY = y2);\n }\n var scale = this.options.scale, lineWidth = this.options[\"line-width\"];\n 0 > minX && (minX -= lineWidth), 0 > minY && (minY -= lineWidth);\n var width = maxX + lineWidth - minX, height = maxY + lineWidth - minY;\n this.paper.setSize(width * scale, height * scale), this.paper.setViewBox(minX, minY, width, height, !0);\n }, FlowChart.prototype.clean = function() {\n if (this.paper) {\n var paperDom = this.paper.canvas;\n paperDom.parentNode.removeChild(paperDom);\n }\n }, module.exports = FlowChart;\n }, /* 7 */\n /*!***********************************!*\\\n !*** ./src/flowchart.defaults.js ***!\n \\***********************************/\n /***/\n function(module, exports) {\n // defaults\n module.exports = {\n x: 0,\n y: 0,\n \"line-width\": 3,\n \"line-length\": 50,\n \"text-margin\": 10,\n \"font-size\": 14,\n \"font-color\": \"black\",\n // 'font': 'normal',\n // 'font-family': 'calibri',\n // 'font-weight': 'normal',\n \"line-color\": \"black\",\n \"element-color\": \"black\",\n fill: \"white\",\n \"yes-text\": \"yes\",\n \"no-text\": \"no\",\n \"arrow-end\": \"block\",\n \"class\": \"flowchart\",\n \"direction\" : null,\n scale: 1,\n symbols: {\n start: {},\n end: {},\n condition: {},\n inputoutput: {},\n operation: {},\n subroutine: {}\n }\n };\n }, /* 8 */\n /*!*******************************!*\\\n !*** ./src/flowchart.shim.js ***!\n \\*******************************/\n /***/\n function(module, exports) {\n // add indexOf to non ECMA-262 standard compliant browsers\n Array.prototype.indexOf || (Array.prototype.indexOf = function(searchElement) {\n \"use strict\";\n if (null === this) throw new TypeError();\n var t = Object(this), len = t.length >>> 0;\n if (0 === len) return -1;\n var n = 0;\n if (arguments.length > 0 && (n = Number(arguments[1]), n != n ? n = 0 : 0 !== n && n != 1 / 0 && n != -(1 / 0) && (n = (n > 0 || -1) * Math.floor(Math.abs(n)))), \n n >= len) return -1;\n for (var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); len > k; k++) if (k in t && t[k] === searchElement) return k;\n return -1;\n }), // add lastIndexOf to non ECMA-262 standard compliant browsers\n Array.prototype.lastIndexOf || (Array.prototype.lastIndexOf = function(searchElement) {\n \"use strict\";\n if (null === this) throw new TypeError();\n var t = Object(this), len = t.length >>> 0;\n if (0 === len) return -1;\n var n = len;\n arguments.length > 1 && (n = Number(arguments[1]), n != n ? n = 0 : 0 !== n && n != 1 / 0 && n != -(1 / 0) && (n = (n > 0 || -1) * Math.floor(Math.abs(n))));\n for (var k = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n); k >= 0; k--) if (k in t && t[k] === searchElement) return k;\n return -1;\n }), String.prototype.trim || (String.prototype.trim = function() {\n return this.replace(/^\\s+|\\s+$/g, \"\");\n });\n }, /* 9 */\n /*!*************************************!*\\\n !*** ./src/flowchart.symbol.end.js ***!\n \\*************************************/\n /***/\n function(module, exports, __webpack_require__) {\n function End(chart, options) {\n var symbol = chart.paper.rect(0, 0, 0, 0, 20);\n options = options || {}, options.text = options.text || \"End\", Symbol.call(this, chart, options, symbol);\n }\n var Symbol = __webpack_require__(/*! ./flowchart.symbol */ 2), inherits = __webpack_require__(/*! ./flowchart.helpers */ 1).inherits;\n inherits(End, Symbol), module.exports = End;\n }, /* 10 */\n /*!*********************************************!*\\\n !*** ./src/flowchart.symbol.inputoutput.js ***!\n \\*********************************************/\n /***/\n function(module, exports, __webpack_require__) {\n function InputOutput(chart, options) {\n options = options || {}, Symbol.call(this, chart, options), this.textMargin = this.getAttr(\"text-margin\"), \n this.text.attr({\n x: 3 * this.textMargin\n });\n var width = this.text.getBBox().width + 4 * this.textMargin, height = this.text.getBBox().height + 2 * this.textMargin, startX = this.textMargin, startY = height / 2, start = {\n x: startX,\n y: startY\n }, points = [ {\n x: startX - this.textMargin,\n y: height\n }, {\n x: startX - this.textMargin + width,\n y: height\n }, {\n x: startX - this.textMargin + width + 2 * this.textMargin,\n y: 0\n }, {\n x: startX - this.textMargin + 2 * this.textMargin,\n y: 0\n }, {\n x: startX,\n y: startY\n } ], symbol = drawPath(chart, start, points);\n symbol.attr({\n stroke: this.getAttr(\"element-color\"),\n \"stroke-width\": this.getAttr(\"line-width\"),\n fill: this.getAttr(\"fill\")\n }), options.link && symbol.attr(\"href\", options.link), options.target && symbol.attr(\"target\", options.target), \n options.key && (symbol.node.id = options.key), symbol.node.setAttribute(\"class\", this.getAttr(\"class\")), \n this.text.attr({\n y: symbol.getBBox().height / 2\n }), this.group.push(symbol), symbol.insertBefore(this.text), this.initialize();\n }\n var Symbol = __webpack_require__(/*! ./flowchart.symbol */ 2), inherits = __webpack_require__(/*! ./flowchart.helpers */ 1).inherits, drawAPI = __webpack_require__(/*! ./flowchart.functions */ 3), drawPath = drawAPI.drawPath;\n inherits(InputOutput, Symbol), InputOutput.prototype.getLeft = function() {\n var y = this.getY() + this.group.getBBox().height / 2, x = this.getX() + this.textMargin;\n return {\n x: x,\n y: y\n };\n }, InputOutput.prototype.getRight = function() {\n var y = this.getY() + this.group.getBBox().height / 2, x = this.getX() + this.group.getBBox().width - this.textMargin;\n return {\n x: x,\n y: y\n };\n }, module.exports = InputOutput;\n }, /* 11 */\n /*!*******************************************!*\\\n !*** ./src/flowchart.symbol.operation.js ***!\n \\*******************************************/\n /***/\n function(module, exports, __webpack_require__) {\n function Operation(chart, options) {\n var symbol = chart.paper.rect(0, 0, 0, 0);\n options = options || {}, Symbol.call(this, chart, options, symbol);\n }\n var Symbol = __webpack_require__(/*! ./flowchart.symbol */ 2), inherits = __webpack_require__(/*! ./flowchart.helpers */ 1).inherits;\n inherits(Operation, Symbol), module.exports = Operation;\n }, /* 12 */\n /*!***************************************!*\\\n !*** ./src/flowchart.symbol.start.js ***!\n \\***************************************/\n /***/\n function(module, exports, __webpack_require__) {\n function Start(chart, options) {\n var symbol = chart.paper.rect(0, 0, 0, 0, 20);\n options = options || {}, options.text = options.text || \"Start\", Symbol.call(this, chart, options, symbol);\n }\n var Symbol = __webpack_require__(/*! ./flowchart.symbol */ 2), inherits = __webpack_require__(/*! ./flowchart.helpers */ 1).inherits;\n inherits(Start, Symbol), module.exports = Start;\n }, /* 13 */\n /*!********************************************!*\\\n !*** ./src/flowchart.symbol.subroutine.js ***!\n \\********************************************/\n /***/\n function(module, exports, __webpack_require__) {\n function Subroutine(chart, options) {\n var symbol = chart.paper.rect(0, 0, 0, 0);\n options = options || {}, Symbol.call(this, chart, options, symbol), symbol.attr({\n width: this.text.getBBox().width + 4 * this.getAttr(\"text-margin\")\n }), this.text.attr({\n x: 2 * this.getAttr(\"text-margin\")\n });\n var innerWrap = chart.paper.rect(0, 0, 0, 0);\n innerWrap.attr({\n x: this.getAttr(\"text-margin\"),\n stroke: this.getAttr(\"element-color\"),\n \"stroke-width\": this.getAttr(\"line-width\"),\n width: this.text.getBBox().width + 2 * this.getAttr(\"text-margin\"),\n height: this.text.getBBox().height + 2 * this.getAttr(\"text-margin\"),\n fill: this.getAttr(\"fill\")\n }), options.key && (innerWrap.node.id = options.key + \"i\");\n var font = this.getAttr(\"font\"), fontF = this.getAttr(\"font-family\"), fontW = this.getAttr(\"font-weight\");\n font && innerWrap.attr({\n font: font\n }), fontF && innerWrap.attr({\n \"font-family\": fontF\n }), fontW && innerWrap.attr({\n \"font-weight\": fontW\n }), options.link && innerWrap.attr(\"href\", options.link), options.target && innerWrap.attr(\"target\", options.target), \n this.group.push(innerWrap), innerWrap.insertBefore(this.text), this.initialize();\n }\n var Symbol = __webpack_require__(/*! ./flowchart.symbol */ 2), inherits = __webpack_require__(/*! ./flowchart.helpers */ 1).inherits;\n inherits(Subroutine, Symbol), module.exports = Subroutine;\n }, /* 14 */\n /*!******************************!*\\\n !*** ./src/jquery-plugin.js ***!\n \\******************************/\n /***/\n function(module, exports, __webpack_require__) {\n if (\"undefined\" != typeof jQuery) {\n var parse = __webpack_require__(/*! ./flowchart.parse */ 4);\n !function($) {\n $.fn.flowChart = function(options) {\n return this.each(function() {\n var $this = $(this), chart = parse($this.text());\n $this.html(\"\"), chart.drawSVG(this, options);\n });\n };\n }(jQuery);\n }\n }, /* 15 */\n /*!**************************!*\\\n !*** external \"Raphael\" ***!\n \\**************************/\n /***/\n function(module, exports) {\n module.exports = __WEBPACK_EXTERNAL_MODULE_15__;\n } ]);\n});\n//# sourceMappingURL=flowchart.js.map\n})($tw.node ? $tw.fakeDocument : window.document)\n"
},
"$:/plugins/gt6796c/flowchart-tw5/raphael.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/flowchart-tw5/raphael.js",
"module-type": "library",
"text": "(function(document) {\n// ┌────────────────────────────────────────────────────────────────────┐ \\\\\n// │ Raphaël 2.1.4 - JavaScript Vector Library │ \\\\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\n// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\n// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\\\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\\\\n// └────────────────────────────────────────────────────────────────────┘ \\\\\n// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// \n// http://www.apache.org/licenses/LICENSE-2.0\n// \n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// ┌─────────────────────────────────────────────────────────────────────┐ \\\\\n// │ \"Raphaël 2.1.2\" - JavaScript Vector Library │ \\\\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\n// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\\\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\\\\n// └─────────────────────────────────────────────────────────────────────┘ \\\\\n\n(function (glob, factory) {\n // AMD support\n if (typeof define === \"function\" && define.amd) {\n // Define as an anonymous module\n define([\"eve\"], function( eve ) {\n return factory(glob, eve);\n });\n } else {\n // Browser globals (glob is window)\n // Raphael adds itself to window\n factory(glob, glob.eve || (typeof require == \"function\" && require('eve')) );\n }\n}(this, function (window, eve) {\n /*\\\n * Raphael\n [ method ]\n **\n * Creates a canvas object on which to draw.\n * You must do this first, as all future calls to drawing methods\n * from this instance will be bound to this canvas.\n > Parameters\n **\n - container (HTMLElement|string) DOM element or its ID which is going to be a parent for drawing surface\n - width (number)\n - height (number)\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\n * or\n - x (number)\n - y (number)\n - width (number)\n - height (number)\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\n * or\n - all (array) (first 3 or 4 elements in the array are equal to [containerID, width, height] or [x, y, width, height]. The rest are element descriptions in format {type: type, <attributes>}). See @Paper.add.\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\n * or\n - onReadyCallback (function) function that is going to be called on DOM ready event. You can also subscribe to this event via Eve’s “DOMLoad” event. In this case method returns `undefined`.\n = (object) @Paper\n > Usage\n | // Each of the following examples create a canvas\n | // that is 320px wide by 200px high.\n | // Canvas is created at the viewport’s 10,50 coordinate.\n | var paper = Raphael(10, 50, 320, 200);\n | // Canvas is created at the top left corner of the #notepad element\n | // (or its top right corner in dir=\"rtl\" elements)\n | var paper = Raphael(document.getElementById(\"notepad\"), 320, 200);\n | // Same as above\n | var paper = Raphael(\"notepad\", 320, 200);\n | // Image dump\n | var set = Raphael([\"notepad\", 320, 200, {\n | type: \"rect\",\n | x: 10,\n | y: 10,\n | width: 25,\n | height: 25,\n | stroke: \"#f00\"\n | }, {\n | type: \"text\",\n | x: 30,\n | y: 40,\n | text: \"Dump\"\n | }]);\n \\*/\n function R(first) {\n if (R.is(first, \"function\")) {\n return loaded ? first() : eve.on(\"raphael.DOMload\", first);\n } else if (R.is(first, array)) {\n return R._engine.create[apply](R, first.splice(0, 3 + R.is(first[0], nu))).add(first);\n } else {\n var args = Array.prototype.slice.call(arguments, 0);\n if (R.is(args[args.length - 1], \"function\")) {\n var f = args.pop();\n return loaded ? f.call(R._engine.create[apply](R, args)) : eve.on(\"raphael.DOMload\", function () {\n f.call(R._engine.create[apply](R, args));\n });\n } else {\n return R._engine.create[apply](R, arguments);\n }\n }\n }\n R.version = \"2.1.2\";\n R.eve = eve;\n var loaded,\n separator = /[, ]+/,\n elements = {circle: 1, rect: 1, path: 1, ellipse: 1, text: 1, image: 1},\n formatrg = /\\{(\\d+)\\}/g,\n proto = \"prototype\",\n has = \"hasOwnProperty\",\n g = {\n doc: document,\n win: window\n },\n oldRaphael = {\n was: Object.prototype[has].call(g.win, \"Raphael\"),\n is: g.win.Raphael\n },\n Paper = function () {\n /*\\\n * Paper.ca\n [ property (object) ]\n **\n * Shortcut for @Paper.customAttributes\n \\*/\n /*\\\n * Paper.customAttributes\n [ property (object) ]\n **\n * If you have a set of attributes that you would like to represent\n * as a function of some number you can do it easily with custom attributes:\n > Usage\n | paper.customAttributes.hue = function (num) {\n | num = num % 1;\n | return {fill: \"hsb(\" + num + \", 0.75, 1)\"};\n | };\n | // Custom attribute “hue” will change fill\n | // to be given hue with fixed saturation and brightness.\n | // Now you can use it like this:\n | var c = paper.circle(10, 10, 10).attr({hue: .45});\n | // or even like this:\n | c.animate({hue: 1}, 1e3);\n |\n | // You could also create custom attribute\n | // with multiple parameters:\n | paper.customAttributes.hsb = function (h, s, b) {\n | return {fill: \"hsb(\" + [h, s, b].join(\",\") + \")\"};\n | };\n | c.attr({hsb: \"0.5 .8 1\"});\n | c.animate({hsb: [1, 0, 0.5]}, 1e3);\n \\*/\n this.ca = this.customAttributes = {};\n },\n paperproto,\n appendChild = \"appendChild\",\n apply = \"apply\",\n concat = \"concat\",\n supportsTouch = ('ontouchstart' in g.win) || g.win.DocumentTouch && g.doc instanceof DocumentTouch, //taken from Modernizr touch test\n E = \"\",\n S = \" \",\n Str = String,\n split = \"split\",\n events = \"click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel\"[split](S),\n touchMap = {\n mousedown: \"touchstart\",\n mousemove: \"touchmove\",\n mouseup: \"touchend\"\n },\n lowerCase = Str.prototype.toLowerCase,\n math = Math,\n mmax = math.max,\n mmin = math.min,\n abs = math.abs,\n pow = math.pow,\n PI = math.PI,\n nu = \"number\",\n string = \"string\",\n array = \"array\",\n toString = \"toString\",\n fillString = \"fill\",\n objectToString = Object.prototype.toString,\n paper = {},\n push = \"push\",\n ISURL = R._ISURL = /^url\\(['\"]?(.+?)['\"]?\\)$/i,\n colourRegExp = /^\\s*((#[a-f\\d]{6})|(#[a-f\\d]{3})|rgba?\\(\\s*([\\d\\.]+%?\\s*,\\s*[\\d\\.]+%?\\s*,\\s*[\\d\\.]+%?(?:\\s*,\\s*[\\d\\.]+%?)?)\\s*\\)|hsba?\\(\\s*([\\d\\.]+(?:deg|\\xb0|%)?\\s*,\\s*[\\d\\.]+%?\\s*,\\s*[\\d\\.]+(?:%?\\s*,\\s*[\\d\\.]+)?)%?\\s*\\)|hsla?\\(\\s*([\\d\\.]+(?:deg|\\xb0|%)?\\s*,\\s*[\\d\\.]+%?\\s*,\\s*[\\d\\.]+(?:%?\\s*,\\s*[\\d\\.]+)?)%?\\s*\\))\\s*$/i,\n isnan = {\"NaN\": 1, \"Infinity\": 1, \"-Infinity\": 1},\n bezierrg = /^(?:cubic-)?bezier\\(([^,]+),([^,]+),([^,]+),([^\\)]+)\\)/,\n round = math.round,\n setAttribute = \"setAttribute\",\n toFloat = parseFloat,\n toInt = parseInt,\n upperCase = Str.prototype.toUpperCase,\n availableAttrs = R._availableAttrs = {\n \"arrow-end\": \"none\",\n \"arrow-start\": \"none\",\n blur: 0,\n \"clip-rect\": \"0 0 1e9 1e9\",\n cursor: \"default\",\n cx: 0,\n cy: 0,\n fill: \"#fff\",\n \"fill-opacity\": 1,\n font: '10px \"Arial\"',\n \"font-family\": '\"Arial\"',\n \"font-size\": \"10\",\n \"font-style\": \"normal\",\n \"font-weight\": 400,\n gradient: 0,\n height: 0,\n href: \"http://raphaeljs.com/\",\n \"letter-spacing\": 0,\n opacity: 1,\n path: \"M0,0\",\n r: 0,\n rx: 0,\n ry: 0,\n src: \"\",\n stroke: \"#000\",\n \"stroke-dasharray\": \"\",\n \"stroke-linecap\": \"butt\",\n \"stroke-linejoin\": \"butt\",\n \"stroke-miterlimit\": 0,\n \"stroke-opacity\": 1,\n \"stroke-width\": 1,\n target: \"_blank\",\n \"text-anchor\": \"middle\",\n title: \"Raphael\",\n transform: \"\",\n width: 0,\n x: 0,\n y: 0\n },\n availableAnimAttrs = R._availableAnimAttrs = {\n blur: nu,\n \"clip-rect\": \"csv\",\n cx: nu,\n cy: nu,\n fill: \"colour\",\n \"fill-opacity\": nu,\n \"font-size\": nu,\n height: nu,\n opacity: nu,\n path: \"path\",\n r: nu,\n rx: nu,\n ry: nu,\n stroke: \"colour\",\n \"stroke-opacity\": nu,\n \"stroke-width\": nu,\n transform: \"transform\",\n width: nu,\n x: nu,\n y: nu\n },\n whitespace = /[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]/g,\n commaSpaces = /[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*/,\n hsrg = {hs: 1, rg: 1},\n p2s = /,?([achlmqrstvxz]),?/gi,\n pathCommand = /([achlmrqstvz])[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*)+)/ig,\n tCommand = /([rstm])[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*)+)/ig,\n pathValues = /(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,?[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*/ig,\n radial_gradient = R._radial_gradient = /^r(?:\\(([^,]+?)[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*,[\\x09\\x0a\\x0b\\x0c\\x0d\\x20\\xa0\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029]*([^\\)]+?)\\))?/,\n eldata = {},\n sortByKey = function (a, b) {\n return a.key - b.key;\n },\n sortByNumber = function (a, b) {\n return toFloat(a) - toFloat(b);\n },\n fun = function () {},\n pipe = function (x) {\n return x;\n },\n rectPath = R._rectPath = function (x, y, w, h, r) {\n if (r) {\n return [[\"M\", x + r, y], [\"l\", w - r * 2, 0], [\"a\", r, r, 0, 0, 1, r, r], [\"l\", 0, h - r * 2], [\"a\", r, r, 0, 0, 1, -r, r], [\"l\", r * 2 - w, 0], [\"a\", r, r, 0, 0, 1, -r, -r], [\"l\", 0, r * 2 - h], [\"a\", r, r, 0, 0, 1, r, -r], [\"z\"]];\n }\n return [[\"M\", x, y], [\"l\", w, 0], [\"l\", 0, h], [\"l\", -w, 0], [\"z\"]];\n },\n ellipsePath = function (x, y, rx, ry) {\n if (ry == null) {\n ry = rx;\n }\n return [[\"M\", x, y], [\"m\", 0, -ry], [\"a\", rx, ry, 0, 1, 1, 0, 2 * ry], [\"a\", rx, ry, 0, 1, 1, 0, -2 * ry], [\"z\"]];\n },\n getPath = R._getPath = {\n path: function (el) {\n return el.attr(\"path\");\n },\n circle: function (el) {\n var a = el.attrs;\n return ellipsePath(a.cx, a.cy, a.r);\n },\n ellipse: function (el) {\n var a = el.attrs;\n return ellipsePath(a.cx, a.cy, a.rx, a.ry);\n },\n rect: function (el) {\n var a = el.attrs;\n return rectPath(a.x, a.y, a.width, a.height, a.r);\n },\n image: function (el) {\n var a = el.attrs;\n return rectPath(a.x, a.y, a.width, a.height);\n },\n text: function (el) {\n var bbox = el._getBBox();\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\n },\n set : function(el) {\n var bbox = el._getBBox();\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\n }\n },\n /*\\\n * Raphael.mapPath\n [ method ]\n **\n * Transform the path string with given matrix.\n > Parameters\n - path (string) path string\n - matrix (object) see @Matrix\n = (string) transformed path string\n \\*/\n mapPath = R.mapPath = function (path, matrix) {\n if (!matrix) {\n return path;\n }\n var x, y, i, j, ii, jj, pathi;\n path = path2curve(path);\n for (i = 0, ii = path.length; i < ii; i++) {\n pathi = path[i];\n for (j = 1, jj = pathi.length; j < jj; j += 2) {\n x = matrix.x(pathi[j], pathi[j + 1]);\n y = matrix.y(pathi[j], pathi[j + 1]);\n pathi[j] = x;\n pathi[j + 1] = y;\n }\n }\n return path;\n };\n\n R._g = g;\n /*\\\n * Raphael.type\n [ property (string) ]\n **\n * Can be “SVG”, “VML” or empty, depending on browser support.\n \\*/\n R.type = (g.win.SVGAngle || g.doc.implementation.hasFeature(\"http://www.w3.org/TR/SVG11/feature#BasicStructure\", \"1.1\") ? \"SVG\" : \"VML\");\n if (R.type == \"VML\") {\n var d = g.doc.createElement(\"div\"),\n b;\n d.innerHTML = '<v:shape adj=\"1\"/>';\n b = d.firstChild;\n b.style.behavior = \"url(#default#VML)\";\n if (!(b && typeof b.adj == \"object\")) {\n return (R.type = E);\n }\n d = null;\n }\n /*\\\n * Raphael.svg\n [ property (boolean) ]\n **\n * `true` if browser supports SVG.\n \\*/\n /*\\\n * Raphael.vml\n [ property (boolean) ]\n **\n * `true` if browser supports VML.\n \\*/\n R.svg = !(R.vml = R.type == \"VML\");\n R._Paper = Paper;\n /*\\\n * Raphael.fn\n [ property (object) ]\n **\n * You can add your own method to the canvas. For example if you want to draw a pie chart,\n * you can create your own pie chart function and ship it as a Raphaël plugin. To do this\n * you need to extend the `Raphael.fn` object. You should modify the `fn` object before a\n * Raphaël instance is created, otherwise it will take no effect. Please note that the\n * ability for namespaced plugins was removed in Raphael 2.0. It is up to the plugin to\n * ensure any namespacing ensures proper context.\n > Usage\n | Raphael.fn.arrow = function (x1, y1, x2, y2, size) {\n | return this.path( ... );\n | };\n | // or create namespace\n | Raphael.fn.mystuff = {\n | arrow: function () {…},\n | star: function () {…},\n | // etc…\n | };\n | var paper = Raphael(10, 10, 630, 480);\n | // then use it\n | paper.arrow(10, 10, 30, 30, 5).attr({fill: \"#f00\"});\n | paper.mystuff.arrow();\n | paper.mystuff.star();\n \\*/\n R.fn = paperproto = Paper.prototype = R.prototype;\n R._id = 0;\n R._oid = 0;\n /*\\\n * Raphael.is\n [ method ]\n **\n * Handful of replacements for `typeof` operator.\n > Parameters\n - o (…) any object or primitive\n - type (string) name of the type, i.e. “string”, “function”, “number”, etc.\n = (boolean) is given value is of given type\n \\*/\n R.is = function (o, type) {\n type = lowerCase.call(type);\n if (type == \"finite\") {\n return !isnan[has](+o);\n }\n if (type == \"array\") {\n return o instanceof Array;\n }\n return (type == \"null\" && o === null) ||\n (type == typeof o && o !== null) ||\n (type == \"object\" && o === Object(o)) ||\n (type == \"array\" && Array.isArray && Array.isArray(o)) ||\n objectToString.call(o).slice(8, -1).toLowerCase() == type;\n };\n\n function clone(obj) {\n if (typeof obj == \"function\" || Object(obj) !== obj) {\n return obj;\n }\n var res = new obj.constructor;\n for (var key in obj) if (obj[has](key)) {\n res[key] = clone(obj[key]);\n }\n return res;\n }\n\n /*\\\n * Raphael.angle\n [ method ]\n **\n * Returns angle between two or three points\n > Parameters\n - x1 (number) x coord of first point\n - y1 (number) y coord of first point\n - x2 (number) x coord of second point\n - y2 (number) y coord of second point\n - x3 (number) #optional x coord of third point\n - y3 (number) #optional y coord of third point\n = (number) angle in degrees.\n \\*/\n R.angle = function (x1, y1, x2, y2, x3, y3) {\n if (x3 == null) {\n var x = x1 - x2,\n y = y1 - y2;\n if (!x && !y) {\n return 0;\n }\n return (180 + math.atan2(-y, -x) * 180 / PI + 360) % 360;\n } else {\n return R.angle(x1, y1, x3, y3) - R.angle(x2, y2, x3, y3);\n }\n };\n /*\\\n * Raphael.rad\n [ method ]\n **\n * Transform angle to radians\n > Parameters\n - deg (number) angle in degrees\n = (number) angle in radians.\n \\*/\n R.rad = function (deg) {\n return deg % 360 * PI / 180;\n };\n /*\\\n * Raphael.deg\n [ method ]\n **\n * Transform angle to degrees\n > Parameters\n - rad (number) angle in radians\n = (number) angle in degrees.\n \\*/\n R.deg = function (rad) {\n return Math.round ((rad * 180 / PI% 360)* 1000) / 1000;\n };\n /*\\\n * Raphael.snapTo\n [ method ]\n **\n * Snaps given value to given grid.\n > Parameters\n - values (array|number) given array of values or step of the grid\n - value (number) value to adjust\n - tolerance (number) #optional tolerance for snapping. Default is `10`.\n = (number) adjusted value.\n \\*/\n R.snapTo = function (values, value, tolerance) {\n tolerance = R.is(tolerance, \"finite\") ? tolerance : 10;\n if (R.is(values, array)) {\n var i = values.length;\n while (i--) if (abs(values[i] - value) <= tolerance) {\n return values[i];\n }\n } else {\n values = +values;\n var rem = value % values;\n if (rem < tolerance) {\n return value - rem;\n }\n if (rem > values - tolerance) {\n return value - rem + values;\n }\n }\n return value;\n };\n\n /*\\\n * Raphael.createUUID\n [ method ]\n **\n * Returns RFC4122, version 4 ID\n \\*/\n var createUUID = R.createUUID = (function (uuidRegEx, uuidReplacer) {\n return function () {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(uuidRegEx, uuidReplacer).toUpperCase();\n };\n })(/[xy]/g, function (c) {\n var r = math.random() * 16 | 0,\n v = c == \"x\" ? r : (r & 3 | 8);\n return v.toString(16);\n });\n\n /*\\\n * Raphael.setWindow\n [ method ]\n **\n * Used when you need to draw in `<iframe>`. Switched window to the iframe one.\n > Parameters\n - newwin (window) new window object\n \\*/\n R.setWindow = function (newwin) {\n eve(\"raphael.setWindow\", R, g.win, newwin);\n g.win = newwin;\n g.doc = g.win.document;\n if (R._engine.initWin) {\n R._engine.initWin(g.win);\n }\n };\n var toHex = function (color) {\n if (R.vml) {\n // http://dean.edwards.name/weblog/2009/10/convert-any-colour-value-to-hex-in-msie/\n var trim = /^\\s+|\\s+$/g;\n var bod;\n try {\n var docum = new ActiveXObject(\"htmlfile\");\n docum.write(\"<body>\");\n docum.close();\n bod = docum.body;\n } catch(e) {\n bod = createPopup().document.body;\n }\n var range = bod.createTextRange();\n toHex = cacher(function (color) {\n try {\n bod.style.color = Str(color).replace(trim, E);\n var value = range.queryCommandValue(\"ForeColor\");\n value = ((value & 255) << 16) | (value & 65280) | ((value & 16711680) >>> 16);\n return \"#\" + (\"000000\" + value.toString(16)).slice(-6);\n } catch(e) {\n return \"none\";\n }\n });\n } else {\n var i = g.doc.createElement(\"i\");\n i.title = \"Rapha\\xebl Colour Picker\";\n i.style.display = \"none\";\n g.doc.body.appendChild(i);\n toHex = cacher(function (color) {\n i.style.color = color;\n return g.doc.defaultView.getComputedStyle(i, E).getPropertyValue(\"color\");\n });\n }\n return toHex(color);\n },\n hsbtoString = function () {\n return \"hsb(\" + [this.h, this.s, this.b] + \")\";\n },\n hsltoString = function () {\n return \"hsl(\" + [this.h, this.s, this.l] + \")\";\n },\n rgbtoString = function () {\n return this.hex;\n },\n prepareRGB = function (r, g, b) {\n if (g == null && R.is(r, \"object\") && \"r\" in r && \"g\" in r && \"b\" in r) {\n b = r.b;\n g = r.g;\n r = r.r;\n }\n if (g == null && R.is(r, string)) {\n var clr = R.getRGB(r);\n r = clr.r;\n g = clr.g;\n b = clr.b;\n }\n if (r > 1 || g > 1 || b > 1) {\n r /= 255;\n g /= 255;\n b /= 255;\n }\n\n return [r, g, b];\n },\n packageRGB = function (r, g, b, o) {\n r *= 255;\n g *= 255;\n b *= 255;\n var rgb = {\n r: r,\n g: g,\n b: b,\n hex: R.rgb(r, g, b),\n toString: rgbtoString\n };\n R.is(o, \"finite\") && (rgb.opacity = o);\n return rgb;\n };\n\n /*\\\n * Raphael.color\n [ method ]\n **\n * Parses the color string and returns object with all values for the given color.\n > Parameters\n - clr (string) color string in one of the supported formats (see @Raphael.getRGB)\n = (object) Combined RGB & HSB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue,\n o hex (string) color in HTML/CSS format: #••••••,\n o error (boolean) `true` if string can’t be parsed,\n o h (number) hue,\n o s (number) saturation,\n o v (number) value (brightness),\n o l (number) lightness\n o }\n \\*/\n R.color = function (clr) {\n var rgb;\n if (R.is(clr, \"object\") && \"h\" in clr && \"s\" in clr && \"b\" in clr) {\n rgb = R.hsb2rgb(clr);\n clr.r = rgb.r;\n clr.g = rgb.g;\n clr.b = rgb.b;\n clr.hex = rgb.hex;\n } else if (R.is(clr, \"object\") && \"h\" in clr && \"s\" in clr && \"l\" in clr) {\n rgb = R.hsl2rgb(clr);\n clr.r = rgb.r;\n clr.g = rgb.g;\n clr.b = rgb.b;\n clr.hex = rgb.hex;\n } else {\n if (R.is(clr, \"string\")) {\n clr = R.getRGB(clr);\n }\n if (R.is(clr, \"object\") && \"r\" in clr && \"g\" in clr && \"b\" in clr) {\n rgb = R.rgb2hsl(clr);\n clr.h = rgb.h;\n clr.s = rgb.s;\n clr.l = rgb.l;\n rgb = R.rgb2hsb(clr);\n clr.v = rgb.b;\n } else {\n clr = {hex: \"none\"};\n clr.r = clr.g = clr.b = clr.h = clr.s = clr.v = clr.l = -1;\n }\n }\n clr.toString = rgbtoString;\n return clr;\n };\n /*\\\n * Raphael.hsb2rgb\n [ method ]\n **\n * Converts HSB values to RGB object.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - v (number) value or brightness\n = (object) RGB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue,\n o hex (string) color in HTML/CSS format: #••••••\n o }\n \\*/\n R.hsb2rgb = function (h, s, v, o) {\n if (this.is(h, \"object\") && \"h\" in h && \"s\" in h && \"b\" in h) {\n v = h.b;\n s = h.s;\n o = h.o;\n h = h.h;\n }\n h *= 360;\n var R, G, B, X, C;\n h = (h % 360) / 60;\n C = v * s;\n X = C * (1 - abs(h % 2 - 1));\n R = G = B = v - C;\n\n h = ~~h;\n R += [C, X, 0, 0, X, C][h];\n G += [X, C, C, X, 0, 0][h];\n B += [0, 0, X, C, C, X][h];\n return packageRGB(R, G, B, o);\n };\n /*\\\n * Raphael.hsl2rgb\n [ method ]\n **\n * Converts HSL values to RGB object.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - l (number) luminosity\n = (object) RGB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue,\n o hex (string) color in HTML/CSS format: #••••••\n o }\n \\*/\n R.hsl2rgb = function (h, s, l, o) {\n if (this.is(h, \"object\") && \"h\" in h && \"s\" in h && \"l\" in h) {\n l = h.l;\n s = h.s;\n h = h.h;\n }\n if (h > 1 || s > 1 || l > 1) {\n h /= 360;\n s /= 100;\n l /= 100;\n }\n h *= 360;\n var R, G, B, X, C;\n h = (h % 360) / 60;\n C = 2 * s * (l < .5 ? l : 1 - l);\n X = C * (1 - abs(h % 2 - 1));\n R = G = B = l - C / 2;\n\n h = ~~h;\n R += [C, X, 0, 0, X, C][h];\n G += [X, C, C, X, 0, 0][h];\n B += [0, 0, X, C, C, X][h];\n return packageRGB(R, G, B, o);\n };\n /*\\\n * Raphael.rgb2hsb\n [ method ]\n **\n * Converts RGB values to HSB object.\n > Parameters\n - r (number) red\n - g (number) green\n - b (number) blue\n = (object) HSB object in format:\n o {\n o h (number) hue\n o s (number) saturation\n o b (number) brightness\n o }\n \\*/\n R.rgb2hsb = function (r, g, b) {\n b = prepareRGB(r, g, b);\n r = b[0];\n g = b[1];\n b = b[2];\n\n var H, S, V, C;\n V = mmax(r, g, b);\n C = V - mmin(r, g, b);\n H = (C == 0 ? null :\n V == r ? (g - b) / C :\n V == g ? (b - r) / C + 2 :\n (r - g) / C + 4\n );\n H = ((H + 360) % 6) * 60 / 360;\n S = C == 0 ? 0 : C / V;\n return {h: H, s: S, b: V, toString: hsbtoString};\n };\n /*\\\n * Raphael.rgb2hsl\n [ method ]\n **\n * Converts RGB values to HSL object.\n > Parameters\n - r (number) red\n - g (number) green\n - b (number) blue\n = (object) HSL object in format:\n o {\n o h (number) hue\n o s (number) saturation\n o l (number) luminosity\n o }\n \\*/\n R.rgb2hsl = function (r, g, b) {\n b = prepareRGB(r, g, b);\n r = b[0];\n g = b[1];\n b = b[2];\n\n var H, S, L, M, m, C;\n M = mmax(r, g, b);\n m = mmin(r, g, b);\n C = M - m;\n H = (C == 0 ? null :\n M == r ? (g - b) / C :\n M == g ? (b - r) / C + 2 :\n (r - g) / C + 4);\n H = ((H + 360) % 6) * 60 / 360;\n L = (M + m) / 2;\n S = (C == 0 ? 0 :\n L < .5 ? C / (2 * L) :\n C / (2 - 2 * L));\n return {h: H, s: S, l: L, toString: hsltoString};\n };\n R._path2string = function () {\n return this.join(\",\").replace(p2s, \"$1\");\n };\n function repush(array, item) {\n for (var i = 0, ii = array.length; i < ii; i++) if (array[i] === item) {\n return array.push(array.splice(i, 1)[0]);\n }\n }\n function cacher(f, scope, postprocessor) {\n function newf() {\n var arg = Array.prototype.slice.call(arguments, 0),\n args = arg.join(\"\\u2400\"),\n cache = newf.cache = newf.cache || {},\n count = newf.count = newf.count || [];\n if (cache[has](args)) {\n repush(count, args);\n return postprocessor ? postprocessor(cache[args]) : cache[args];\n }\n count.length >= 1e3 && delete cache[count.shift()];\n count.push(args);\n cache[args] = f[apply](scope, arg);\n return postprocessor ? postprocessor(cache[args]) : cache[args];\n }\n return newf;\n }\n\n var preload = R._preload = function (src, f) {\n var img = g.doc.createElement(\"img\");\n img.style.cssText = \"position:absolute;left:-9999em;top:-9999em\";\n img.onload = function () {\n f.call(this);\n this.onload = null;\n g.doc.body.removeChild(this);\n };\n img.onerror = function () {\n g.doc.body.removeChild(this);\n };\n g.doc.body.appendChild(img);\n img.src = src;\n };\n\n function clrToString() {\n return this.hex;\n }\n\n /*\\\n * Raphael.getRGB\n [ method ]\n **\n * Parses colour string as RGB object\n > Parameters\n - colour (string) colour string in one of formats:\n # <ul>\n # <li>Colour name (“<code>red</code>”, “<code>green</code>”, “<code>cornflowerblue</code>”, etc)</li>\n # <li>#••• — shortened HTML colour: (“<code>#000</code>”, “<code>#fc0</code>”, etc)</li>\n # <li>#•••••• — full length HTML colour: (“<code>#000000</code>”, “<code>#bd2300</code>”)</li>\n # <li>rgb(•••, •••, •••) — red, green and blue channels’ values: (“<code>rgb(200, 100, 0)</code>”)</li>\n # <li>rgb(•••%, •••%, •••%) — same as above, but in %: (“<code>rgb(100%, 175%, 0%)</code>”)</li>\n # <li>hsb(•••, •••, •••) — hue, saturation and brightness values: (“<code>hsb(0.5, 0.25, 1)</code>”)</li>\n # <li>hsb(•••%, •••%, •••%) — same as above, but in %</li>\n # <li>hsl(•••, •••, •••) — same as hsb</li>\n # <li>hsl(•••%, •••%, •••%) — same as hsb</li>\n # </ul>\n = (object) RGB object in format:\n o {\n o r (number) red,\n o g (number) green,\n o b (number) blue\n o hex (string) color in HTML/CSS format: #••••••,\n o error (boolean) true if string can’t be parsed\n o }\n \\*/\n R.getRGB = cacher(function (colour) {\n if (!colour || !!((colour = Str(colour)).indexOf(\"-\") + 1)) {\n return {r: -1, g: -1, b: -1, hex: \"none\", error: 1, toString: clrToString};\n }\n if (colour == \"none\") {\n return {r: -1, g: -1, b: -1, hex: \"none\", toString: clrToString};\n }\n !(hsrg[has](colour.toLowerCase().substring(0, 2)) || colour.charAt() == \"#\") && (colour = toHex(colour));\n var res,\n red,\n green,\n blue,\n opacity,\n t,\n values,\n rgb = colour.match(colourRegExp);\n if (rgb) {\n if (rgb[2]) {\n blue = toInt(rgb[2].substring(5), 16);\n green = toInt(rgb[2].substring(3, 5), 16);\n red = toInt(rgb[2].substring(1, 3), 16);\n }\n if (rgb[3]) {\n blue = toInt((t = rgb[3].charAt(3)) + t, 16);\n green = toInt((t = rgb[3].charAt(2)) + t, 16);\n red = toInt((t = rgb[3].charAt(1)) + t, 16);\n }\n if (rgb[4]) {\n values = rgb[4][split](commaSpaces);\n red = toFloat(values[0]);\n values[0].slice(-1) == \"%\" && (red *= 2.55);\n green = toFloat(values[1]);\n values[1].slice(-1) == \"%\" && (green *= 2.55);\n blue = toFloat(values[2]);\n values[2].slice(-1) == \"%\" && (blue *= 2.55);\n rgb[1].toLowerCase().slice(0, 4) == \"rgba\" && (opacity = toFloat(values[3]));\n values[3] && values[3].slice(-1) == \"%\" && (opacity /= 100);\n }\n if (rgb[5]) {\n values = rgb[5][split](commaSpaces);\n red = toFloat(values[0]);\n values[0].slice(-1) == \"%\" && (red *= 2.55);\n green = toFloat(values[1]);\n values[1].slice(-1) == \"%\" && (green *= 2.55);\n blue = toFloat(values[2]);\n values[2].slice(-1) == \"%\" && (blue *= 2.55);\n (values[0].slice(-3) == \"deg\" || values[0].slice(-1) == \"\\xb0\") && (red /= 360);\n rgb[1].toLowerCase().slice(0, 4) == \"hsba\" && (opacity = toFloat(values[3]));\n values[3] && values[3].slice(-1) == \"%\" && (opacity /= 100);\n return R.hsb2rgb(red, green, blue, opacity);\n }\n if (rgb[6]) {\n values = rgb[6][split](commaSpaces);\n red = toFloat(values[0]);\n values[0].slice(-1) == \"%\" && (red *= 2.55);\n green = toFloat(values[1]);\n values[1].slice(-1) == \"%\" && (green *= 2.55);\n blue = toFloat(values[2]);\n values[2].slice(-1) == \"%\" && (blue *= 2.55);\n (values[0].slice(-3) == \"deg\" || values[0].slice(-1) == \"\\xb0\") && (red /= 360);\n rgb[1].toLowerCase().slice(0, 4) == \"hsla\" && (opacity = toFloat(values[3]));\n values[3] && values[3].slice(-1) == \"%\" && (opacity /= 100);\n return R.hsl2rgb(red, green, blue, opacity);\n }\n rgb = {r: red, g: green, b: blue, toString: clrToString};\n rgb.hex = \"#\" + (16777216 | blue | (green << 8) | (red << 16)).toString(16).slice(1);\n R.is(opacity, \"finite\") && (rgb.opacity = opacity);\n return rgb;\n }\n return {r: -1, g: -1, b: -1, hex: \"none\", error: 1, toString: clrToString};\n }, R);\n /*\\\n * Raphael.hsb\n [ method ]\n **\n * Converts HSB values to hex representation of the colour.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - b (number) value or brightness\n = (string) hex representation of the colour.\n \\*/\n R.hsb = cacher(function (h, s, b) {\n return R.hsb2rgb(h, s, b).hex;\n });\n /*\\\n * Raphael.hsl\n [ method ]\n **\n * Converts HSL values to hex representation of the colour.\n > Parameters\n - h (number) hue\n - s (number) saturation\n - l (number) luminosity\n = (string) hex representation of the colour.\n \\*/\n R.hsl = cacher(function (h, s, l) {\n return R.hsl2rgb(h, s, l).hex;\n });\n /*\\\n * Raphael.rgb\n [ method ]\n **\n * Converts RGB values to hex representation of the colour.\n > Parameters\n - r (number) red\n - g (number) green\n - b (number) blue\n = (string) hex representation of the colour.\n \\*/\n R.rgb = cacher(function (r, g, b) {\n return \"#\" + (16777216 | b | (g << 8) | (r << 16)).toString(16).slice(1);\n });\n /*\\\n * Raphael.getColor\n [ method ]\n **\n * On each call returns next colour in the spectrum. To reset it back to red call @Raphael.getColor.reset\n > Parameters\n - value (number) #optional brightness, default is `0.75`\n = (string) hex representation of the colour.\n \\*/\n R.getColor = function (value) {\n var start = this.getColor.start = this.getColor.start || {h: 0, s: 1, b: value || .75},\n rgb = this.hsb2rgb(start.h, start.s, start.b);\n start.h += .075;\n if (start.h > 1) {\n start.h = 0;\n start.s -= .2;\n start.s <= 0 && (this.getColor.start = {h: 0, s: 1, b: start.b});\n }\n return rgb.hex;\n };\n /*\\\n * Raphael.getColor.reset\n [ method ]\n **\n * Resets spectrum position for @Raphael.getColor back to red.\n \\*/\n R.getColor.reset = function () {\n delete this.start;\n };\n\n // http://schepers.cc/getting-to-the-point\n function catmullRom2bezier(crp, z) {\n var d = [];\n for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {\n var p = [\n {x: +crp[i - 2], y: +crp[i - 1]},\n {x: +crp[i], y: +crp[i + 1]},\n {x: +crp[i + 2], y: +crp[i + 3]},\n {x: +crp[i + 4], y: +crp[i + 5]}\n ];\n if (z) {\n if (!i) {\n p[0] = {x: +crp[iLen - 2], y: +crp[iLen - 1]};\n } else if (iLen - 4 == i) {\n p[3] = {x: +crp[0], y: +crp[1]};\n } else if (iLen - 2 == i) {\n p[2] = {x: +crp[0], y: +crp[1]};\n p[3] = {x: +crp[2], y: +crp[3]};\n }\n } else {\n if (iLen - 4 == i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {x: +crp[i], y: +crp[i + 1]};\n }\n }\n d.push([\"C\",\n (-p[0].x + 6 * p[1].x + p[2].x) / 6,\n (-p[0].y + 6 * p[1].y + p[2].y) / 6,\n (p[1].x + 6 * p[2].x - p[3].x) / 6,\n (p[1].y + 6*p[2].y - p[3].y) / 6,\n p[2].x,\n p[2].y\n ]);\n }\n\n return d;\n }\n /*\\\n * Raphael.parsePathString\n [ method ]\n **\n * Utility method\n **\n * Parses given path string into an array of arrays of path segments.\n > Parameters\n - pathString (string|array) path string or array of segments (in the last case it will be returned straight away)\n = (array) array of segments.\n \\*/\n R.parsePathString = function (pathString) {\n if (!pathString) {\n return null;\n }\n var pth = paths(pathString);\n if (pth.arr) {\n return pathClone(pth.arr);\n }\n\n var paramCounts = {a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0},\n data = [];\n if (R.is(pathString, array) && R.is(pathString[0], array)) { // rough assumption\n data = pathClone(pathString);\n }\n if (!data.length) {\n Str(pathString).replace(pathCommand, function (a, b, c) {\n var params = [],\n name = b.toLowerCase();\n c.replace(pathValues, function (a, b) {\n b && params.push(+b);\n });\n if (name == \"m\" && params.length > 2) {\n data.push([b][concat](params.splice(0, 2)));\n name = \"l\";\n b = b == \"m\" ? \"l\" : \"L\";\n }\n if (name == \"r\") {\n data.push([b][concat](params));\n } else while (params.length >= paramCounts[name]) {\n data.push([b][concat](params.splice(0, paramCounts[name])));\n if (!paramCounts[name]) {\n break;\n }\n }\n });\n }\n data.toString = R._path2string;\n pth.arr = pathClone(data);\n return data;\n };\n /*\\\n * Raphael.parseTransformString\n [ method ]\n **\n * Utility method\n **\n * Parses given path string into an array of transformations.\n > Parameters\n - TString (string|array) transform string or array of transformations (in the last case it will be returned straight away)\n = (array) array of transformations.\n \\*/\n R.parseTransformString = cacher(function (TString) {\n if (!TString) {\n return null;\n }\n var paramCounts = {r: 3, s: 4, t: 2, m: 6},\n data = [];\n if (R.is(TString, array) && R.is(TString[0], array)) { // rough assumption\n data = pathClone(TString);\n }\n if (!data.length) {\n Str(TString).replace(tCommand, function (a, b, c) {\n var params = [],\n name = lowerCase.call(b);\n c.replace(pathValues, function (a, b) {\n b && params.push(+b);\n });\n data.push([b][concat](params));\n });\n }\n data.toString = R._path2string;\n return data;\n });\n // PATHS\n var paths = function (ps) {\n var p = paths.ps = paths.ps || {};\n if (p[ps]) {\n p[ps].sleep = 100;\n } else {\n p[ps] = {\n sleep: 100\n };\n }\n setTimeout(function () {\n for (var key in p) if (p[has](key) && key != ps) {\n p[key].sleep--;\n !p[key].sleep && delete p[key];\n }\n });\n return p[ps];\n };\n /*\\\n * Raphael.findDotsAtSegment\n [ method ]\n **\n * Utility method\n **\n * Find dot coordinates on the given cubic bezier curve at the given t.\n > Parameters\n - p1x (number) x of the first point of the curve\n - p1y (number) y of the first point of the curve\n - c1x (number) x of the first anchor of the curve\n - c1y (number) y of the first anchor of the curve\n - c2x (number) x of the second anchor of the curve\n - c2y (number) y of the second anchor of the curve\n - p2x (number) x of the second point of the curve\n - p2y (number) y of the second point of the curve\n - t (number) position on the curve (0..1)\n = (object) point information in format:\n o {\n o x: (number) x coordinate of the point\n o y: (number) y coordinate of the point\n o m: {\n o x: (number) x coordinate of the left anchor\n o y: (number) y coordinate of the left anchor\n o }\n o n: {\n o x: (number) x coordinate of the right anchor\n o y: (number) y coordinate of the right anchor\n o }\n o start: {\n o x: (number) x coordinate of the start of the curve\n o y: (number) y coordinate of the start of the curve\n o }\n o end: {\n o x: (number) x coordinate of the end of the curve\n o y: (number) y coordinate of the end of the curve\n o }\n o alpha: (number) angle of the curve derivative at the point\n o }\n \\*/\n R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\n var t1 = 1 - t,\n t13 = pow(t1, 3),\n t12 = pow(t1, 2),\n t2 = t * t,\n t3 = t2 * t,\n x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x,\n y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y,\n mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x),\n my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y),\n nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x),\n ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y),\n ax = t1 * p1x + t * c1x,\n ay = t1 * p1y + t * c1y,\n cx = t1 * c2x + t * p2x,\n cy = t1 * c2y + t * p2y,\n alpha = (90 - math.atan2(mx - nx, my - ny) * 180 / PI);\n (mx > nx || my < ny) && (alpha += 180);\n return {\n x: x,\n y: y,\n m: {x: mx, y: my},\n n: {x: nx, y: ny},\n start: {x: ax, y: ay},\n end: {x: cx, y: cy},\n alpha: alpha\n };\n };\n /*\\\n * Raphael.bezierBBox\n [ method ]\n **\n * Utility method\n **\n * Return bounding box of a given cubic bezier curve\n > Parameters\n - p1x (number) x of the first point of the curve\n - p1y (number) y of the first point of the curve\n - c1x (number) x of the first anchor of the curve\n - c1y (number) y of the first anchor of the curve\n - c2x (number) x of the second anchor of the curve\n - c2y (number) y of the second anchor of the curve\n - p2x (number) x of the second point of the curve\n - p2y (number) y of the second point of the curve\n * or\n - bez (array) array of six points for bezier curve\n = (object) point information in format:\n o {\n o min: {\n o x: (number) x coordinate of the left point\n o y: (number) y coordinate of the top point\n o }\n o max: {\n o x: (number) x coordinate of the right point\n o y: (number) y coordinate of the bottom point\n o }\n o }\n \\*/\n R.bezierBBox = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\n if (!R.is(p1x, \"array\")) {\n p1x = [p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y];\n }\n var bbox = curveDim.apply(null, p1x);\n return {\n x: bbox.min.x,\n y: bbox.min.y,\n x2: bbox.max.x,\n y2: bbox.max.y,\n width: bbox.max.x - bbox.min.x,\n height: bbox.max.y - bbox.min.y\n };\n };\n /*\\\n * Raphael.isPointInsideBBox\n [ method ]\n **\n * Utility method\n **\n * Returns `true` if given point is inside bounding boxes.\n > Parameters\n - bbox (string) bounding box\n - x (string) x coordinate of the point\n - y (string) y coordinate of the point\n = (boolean) `true` if point inside\n \\*/\n R.isPointInsideBBox = function (bbox, x, y) {\n return x >= bbox.x && x <= bbox.x2 && y >= bbox.y && y <= bbox.y2;\n };\n /*\\\n * Raphael.isBBoxIntersect\n [ method ]\n **\n * Utility method\n **\n * Returns `true` if two bounding boxes intersect\n > Parameters\n - bbox1 (string) first bounding box\n - bbox2 (string) second bounding box\n = (boolean) `true` if they intersect\n \\*/\n R.isBBoxIntersect = function (bbox1, bbox2) {\n var i = R.isPointInsideBBox;\n return i(bbox2, bbox1.x, bbox1.y)\n || i(bbox2, bbox1.x2, bbox1.y)\n || i(bbox2, bbox1.x, bbox1.y2)\n || i(bbox2, bbox1.x2, bbox1.y2)\n || i(bbox1, bbox2.x, bbox2.y)\n || i(bbox1, bbox2.x2, bbox2.y)\n || i(bbox1, bbox2.x, bbox2.y2)\n || i(bbox1, bbox2.x2, bbox2.y2)\n || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x)\n && (bbox1.y < bbox2.y2 && bbox1.y > bbox2.y || bbox2.y < bbox1.y2 && bbox2.y > bbox1.y);\n };\n function base3(t, p1, p2, p3, p4) {\n var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4,\n t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\n return t * t2 - 3 * p1 + 3 * p2;\n }\n function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\n if (z == null) {\n z = 1;\n }\n z = z > 1 ? 1 : z < 0 ? 0 : z;\n var z2 = z / 2,\n n = 12,\n Tvalues = [-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],\n Cvalues = [0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],\n sum = 0;\n for (var i = 0; i < n; i++) {\n var ct = z2 * Tvalues[i] + z2,\n xbase = base3(ct, x1, x2, x3, x4),\n ybase = base3(ct, y1, y2, y3, y4),\n comb = xbase * xbase + ybase * ybase;\n sum += Cvalues[i] * math.sqrt(comb);\n }\n return z2 * sum;\n }\n function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) {\n if (ll < 0 || bezlen(x1, y1, x2, y2, x3, y3, x4, y4) < ll) {\n return;\n }\n var t = 1,\n step = t / 2,\n t2 = t - step,\n l,\n e = .01;\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\n while (abs(l - ll) > e) {\n step /= 2;\n t2 += (l < ll ? 1 : -1) * step;\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\n }\n return t2;\n }\n function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {\n if (\n mmax(x1, x2) < mmin(x3, x4) ||\n mmin(x1, x2) > mmax(x3, x4) ||\n mmax(y1, y2) < mmin(y3, y4) ||\n mmin(y1, y2) > mmax(y3, y4)\n ) {\n return;\n }\n var nx = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4),\n ny = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4),\n denominator = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);\n\n if (!denominator) {\n return;\n }\n var px = nx / denominator,\n py = ny / denominator,\n px2 = +px.toFixed(2),\n py2 = +py.toFixed(2);\n if (\n px2 < +mmin(x1, x2).toFixed(2) ||\n px2 > +mmax(x1, x2).toFixed(2) ||\n px2 < +mmin(x3, x4).toFixed(2) ||\n px2 > +mmax(x3, x4).toFixed(2) ||\n py2 < +mmin(y1, y2).toFixed(2) ||\n py2 > +mmax(y1, y2).toFixed(2) ||\n py2 < +mmin(y3, y4).toFixed(2) ||\n py2 > +mmax(y3, y4).toFixed(2)\n ) {\n return;\n }\n return {x: px, y: py};\n }\n function inter(bez1, bez2) {\n return interHelper(bez1, bez2);\n }\n function interCount(bez1, bez2) {\n return interHelper(bez1, bez2, 1);\n }\n function interHelper(bez1, bez2, justCount) {\n var bbox1 = R.bezierBBox(bez1),\n bbox2 = R.bezierBBox(bez2);\n if (!R.isBBoxIntersect(bbox1, bbox2)) {\n return justCount ? 0 : [];\n }\n var l1 = bezlen.apply(0, bez1),\n l2 = bezlen.apply(0, bez2),\n n1 = mmax(~~(l1 / 5), 1),\n n2 = mmax(~~(l2 / 5), 1),\n dots1 = [],\n dots2 = [],\n xy = {},\n res = justCount ? 0 : [];\n for (var i = 0; i < n1 + 1; i++) {\n var p = R.findDotsAtSegment.apply(R, bez1.concat(i / n1));\n dots1.push({x: p.x, y: p.y, t: i / n1});\n }\n for (i = 0; i < n2 + 1; i++) {\n p = R.findDotsAtSegment.apply(R, bez2.concat(i / n2));\n dots2.push({x: p.x, y: p.y, t: i / n2});\n }\n for (i = 0; i < n1; i++) {\n for (var j = 0; j < n2; j++) {\n var di = dots1[i],\n di1 = dots1[i + 1],\n dj = dots2[j],\n dj1 = dots2[j + 1],\n ci = abs(di1.x - di.x) < .001 ? \"y\" : \"x\",\n cj = abs(dj1.x - dj.x) < .001 ? \"y\" : \"x\",\n is = intersect(di.x, di.y, di1.x, di1.y, dj.x, dj.y, dj1.x, dj1.y);\n if (is) {\n if (xy[is.x.toFixed(4)] == is.y.toFixed(4)) {\n continue;\n }\n xy[is.x.toFixed(4)] = is.y.toFixed(4);\n var t1 = di.t + abs((is[ci] - di[ci]) / (di1[ci] - di[ci])) * (di1.t - di.t),\n t2 = dj.t + abs((is[cj] - dj[cj]) / (dj1[cj] - dj[cj])) * (dj1.t - dj.t);\n if (t1 >= 0 && t1 <= 1.001 && t2 >= 0 && t2 <= 1.001) {\n if (justCount) {\n res++;\n } else {\n res.push({\n x: is.x,\n y: is.y,\n t1: mmin(t1, 1),\n t2: mmin(t2, 1)\n });\n }\n }\n }\n }\n }\n return res;\n }\n /*\\\n * Raphael.pathIntersection\n [ method ]\n **\n * Utility method\n **\n * Finds intersections of two paths\n > Parameters\n - path1 (string) path string\n - path2 (string) path string\n = (array) dots of intersection\n o [\n o {\n o x: (number) x coordinate of the point\n o y: (number) y coordinate of the point\n o t1: (number) t value for segment of path1\n o t2: (number) t value for segment of path2\n o segment1: (number) order number for segment of path1\n o segment2: (number) order number for segment of path2\n o bez1: (array) eight coordinates representing beziér curve for the segment of path1\n o bez2: (array) eight coordinates representing beziér curve for the segment of path2\n o }\n o ]\n \\*/\n R.pathIntersection = function (path1, path2) {\n return interPathHelper(path1, path2);\n };\n R.pathIntersectionNumber = function (path1, path2) {\n return interPathHelper(path1, path2, 1);\n };\n function interPathHelper(path1, path2, justCount) {\n path1 = R._path2curve(path1);\n path2 = R._path2curve(path2);\n var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,\n res = justCount ? 0 : [];\n for (var i = 0, ii = path1.length; i < ii; i++) {\n var pi = path1[i];\n if (pi[0] == \"M\") {\n x1 = x1m = pi[1];\n y1 = y1m = pi[2];\n } else {\n if (pi[0] == \"C\") {\n bez1 = [x1, y1].concat(pi.slice(1));\n x1 = bez1[6];\n y1 = bez1[7];\n } else {\n bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];\n x1 = x1m;\n y1 = y1m;\n }\n for (var j = 0, jj = path2.length; j < jj; j++) {\n var pj = path2[j];\n if (pj[0] == \"M\") {\n x2 = x2m = pj[1];\n y2 = y2m = pj[2];\n } else {\n if (pj[0] == \"C\") {\n bez2 = [x2, y2].concat(pj.slice(1));\n x2 = bez2[6];\n y2 = bez2[7];\n } else {\n bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];\n x2 = x2m;\n y2 = y2m;\n }\n var intr = interHelper(bez1, bez2, justCount);\n if (justCount) {\n res += intr;\n } else {\n for (var k = 0, kk = intr.length; k < kk; k++) {\n intr[k].segment1 = i;\n intr[k].segment2 = j;\n intr[k].bez1 = bez1;\n intr[k].bez2 = bez2;\n }\n res = res.concat(intr);\n }\n }\n }\n }\n }\n return res;\n }\n /*\\\n * Raphael.isPointInsidePath\n [ method ]\n **\n * Utility method\n **\n * Returns `true` if given point is inside a given closed path.\n > Parameters\n - path (string) path string\n - x (number) x of the point\n - y (number) y of the point\n = (boolean) true, if point is inside the path\n \\*/\n R.isPointInsidePath = function (path, x, y) {\n var bbox = R.pathBBox(path);\n return R.isPointInsideBBox(bbox, x, y) &&\n interPathHelper(path, [[\"M\", x, y], [\"H\", bbox.x2 + 10]], 1) % 2 == 1;\n };\n R._removedFactory = function (methodname) {\n return function () {\n eve(\"raphael.log\", null, \"Rapha\\xebl: you are calling to method \\u201c\" + methodname + \"\\u201d of removed object\", methodname);\n };\n };\n /*\\\n * Raphael.pathBBox\n [ method ]\n **\n * Utility method\n **\n * Return bounding box of a given path\n > Parameters\n - path (string) path string\n = (object) bounding box\n o {\n o x: (number) x coordinate of the left top point of the box\n o y: (number) y coordinate of the left top point of the box\n o x2: (number) x coordinate of the right bottom point of the box\n o y2: (number) y coordinate of the right bottom point of the box\n o width: (number) width of the box\n o height: (number) height of the box\n o cx: (number) x coordinate of the center of the box\n o cy: (number) y coordinate of the center of the box\n o }\n \\*/\n var pathDimensions = R.pathBBox = function (path) {\n var pth = paths(path);\n if (pth.bbox) {\n return clone(pth.bbox);\n }\n if (!path) {\n return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0};\n }\n path = path2curve(path);\n var x = 0,\n y = 0,\n X = [],\n Y = [],\n p;\n for (var i = 0, ii = path.length; i < ii; i++) {\n p = path[i];\n if (p[0] == \"M\") {\n x = p[1];\n y = p[2];\n X.push(x);\n Y.push(y);\n } else {\n var dim = curveDim(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\n X = X[concat](dim.min.x, dim.max.x);\n Y = Y[concat](dim.min.y, dim.max.y);\n x = p[5];\n y = p[6];\n }\n }\n var xmin = mmin[apply](0, X),\n ymin = mmin[apply](0, Y),\n xmax = mmax[apply](0, X),\n ymax = mmax[apply](0, Y),\n width = xmax - xmin,\n height = ymax - ymin,\n bb = {\n x: xmin,\n y: ymin,\n x2: xmax,\n y2: ymax,\n width: width,\n height: height,\n cx: xmin + width / 2,\n cy: ymin + height / 2\n };\n pth.bbox = clone(bb);\n return bb;\n },\n pathClone = function (pathArray) {\n var res = clone(pathArray);\n res.toString = R._path2string;\n return res;\n },\n pathToRelative = R._pathToRelative = function (pathArray) {\n var pth = paths(pathArray);\n if (pth.rel) {\n return pathClone(pth.rel);\n }\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\n pathArray = R.parsePathString(pathArray);\n }\n var res = [],\n x = 0,\n y = 0,\n mx = 0,\n my = 0,\n start = 0;\n if (pathArray[0][0] == \"M\") {\n x = pathArray[0][1];\n y = pathArray[0][2];\n mx = x;\n my = y;\n start++;\n res.push([\"M\", x, y]);\n }\n for (var i = start, ii = pathArray.length; i < ii; i++) {\n var r = res[i] = [],\n pa = pathArray[i];\n if (pa[0] != lowerCase.call(pa[0])) {\n r[0] = lowerCase.call(pa[0]);\n switch (r[0]) {\n case \"a\":\n r[1] = pa[1];\n r[2] = pa[2];\n r[3] = pa[3];\n r[4] = pa[4];\n r[5] = pa[5];\n r[6] = +(pa[6] - x).toFixed(3);\n r[7] = +(pa[7] - y).toFixed(3);\n break;\n case \"v\":\n r[1] = +(pa[1] - y).toFixed(3);\n break;\n case \"m\":\n mx = pa[1];\n my = pa[2];\n default:\n for (var j = 1, jj = pa.length; j < jj; j++) {\n r[j] = +(pa[j] - ((j % 2) ? x : y)).toFixed(3);\n }\n }\n } else {\n r = res[i] = [];\n if (pa[0] == \"m\") {\n mx = pa[1] + x;\n my = pa[2] + y;\n }\n for (var k = 0, kk = pa.length; k < kk; k++) {\n res[i][k] = pa[k];\n }\n }\n var len = res[i].length;\n switch (res[i][0]) {\n case \"z\":\n x = mx;\n y = my;\n break;\n case \"h\":\n x += +res[i][len - 1];\n break;\n case \"v\":\n y += +res[i][len - 1];\n break;\n default:\n x += +res[i][len - 2];\n y += +res[i][len - 1];\n }\n }\n res.toString = R._path2string;\n pth.rel = pathClone(res);\n return res;\n },\n pathToAbsolute = R._pathToAbsolute = function (pathArray) {\n var pth = paths(pathArray);\n if (pth.abs) {\n return pathClone(pth.abs);\n }\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\n pathArray = R.parsePathString(pathArray);\n }\n if (!pathArray || !pathArray.length) {\n return [[\"M\", 0, 0]];\n }\n var res = [],\n x = 0,\n y = 0,\n mx = 0,\n my = 0,\n start = 0;\n if (pathArray[0][0] == \"M\") {\n x = +pathArray[0][1];\n y = +pathArray[0][2];\n mx = x;\n my = y;\n start++;\n res[0] = [\"M\", x, y];\n }\n var crz = pathArray.length == 3 && pathArray[0][0] == \"M\" && pathArray[1][0].toUpperCase() == \"R\" && pathArray[2][0].toUpperCase() == \"Z\";\n for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\n res.push(r = []);\n pa = pathArray[i];\n if (pa[0] != upperCase.call(pa[0])) {\n r[0] = upperCase.call(pa[0]);\n switch (r[0]) {\n case \"A\":\n r[1] = pa[1];\n r[2] = pa[2];\n r[3] = pa[3];\n r[4] = pa[4];\n r[5] = pa[5];\n r[6] = +(pa[6] + x);\n r[7] = +(pa[7] + y);\n break;\n case \"V\":\n r[1] = +pa[1] + y;\n break;\n case \"H\":\n r[1] = +pa[1] + x;\n break;\n case \"R\":\n var dots = [x, y][concat](pa.slice(1));\n for (var j = 2, jj = dots.length; j < jj; j++) {\n dots[j] = +dots[j] + x;\n dots[++j] = +dots[j] + y;\n }\n res.pop();\n res = res[concat](catmullRom2bezier(dots, crz));\n break;\n case \"M\":\n mx = +pa[1] + x;\n my = +pa[2] + y;\n default:\n for (j = 1, jj = pa.length; j < jj; j++) {\n r[j] = +pa[j] + ((j % 2) ? x : y);\n }\n }\n } else if (pa[0] == \"R\") {\n dots = [x, y][concat](pa.slice(1));\n res.pop();\n res = res[concat](catmullRom2bezier(dots, crz));\n r = [\"R\"][concat](pa.slice(-2));\n } else {\n for (var k = 0, kk = pa.length; k < kk; k++) {\n r[k] = pa[k];\n }\n }\n switch (r[0]) {\n case \"Z\":\n x = mx;\n y = my;\n break;\n case \"H\":\n x = r[1];\n break;\n case \"V\":\n y = r[1];\n break;\n case \"M\":\n mx = r[r.length - 2];\n my = r[r.length - 1];\n default:\n x = r[r.length - 2];\n y = r[r.length - 1];\n }\n }\n res.toString = R._path2string;\n pth.abs = pathClone(res);\n return res;\n },\n l2c = function (x1, y1, x2, y2) {\n return [x1, y1, x2, y2, x2, y2];\n },\n q2c = function (x1, y1, ax, ay, x2, y2) {\n var _13 = 1 / 3,\n _23 = 2 / 3;\n return [\n _13 * x1 + _23 * ax,\n _13 * y1 + _23 * ay,\n _13 * x2 + _23 * ax,\n _13 * y2 + _23 * ay,\n x2,\n y2\n ];\n },\n a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\n // for more information of where this math came from visit:\n // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n var _120 = PI * 120 / 180,\n rad = PI / 180 * (+angle || 0),\n res = [],\n xy,\n rotate = cacher(function (x, y, rad) {\n var X = x * math.cos(rad) - y * math.sin(rad),\n Y = x * math.sin(rad) + y * math.cos(rad);\n return {x: X, y: Y};\n });\n if (!recursive) {\n xy = rotate(x1, y1, -rad);\n x1 = xy.x;\n y1 = xy.y;\n xy = rotate(x2, y2, -rad);\n x2 = xy.x;\n y2 = xy.y;\n var cos = math.cos(PI / 180 * angle),\n sin = math.sin(PI / 180 * angle),\n x = (x1 - x2) / 2,\n y = (y1 - y2) / 2;\n var h = (x * x) / (rx * rx) + (y * y) / (ry * ry);\n if (h > 1) {\n h = math.sqrt(h);\n rx = h * rx;\n ry = h * ry;\n }\n var rx2 = rx * rx,\n ry2 = ry * ry,\n k = (large_arc_flag == sweep_flag ? -1 : 1) *\n math.sqrt(abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))),\n cx = k * rx * y / ry + (x1 + x2) / 2,\n cy = k * -ry * x / rx + (y1 + y2) / 2,\n f1 = math.asin(((y1 - cy) / ry).toFixed(9)),\n f2 = math.asin(((y2 - cy) / ry).toFixed(9));\n\n f1 = x1 < cx ? PI - f1 : f1;\n f2 = x2 < cx ? PI - f2 : f2;\n f1 < 0 && (f1 = PI * 2 + f1);\n f2 < 0 && (f2 = PI * 2 + f2);\n if (sweep_flag && f1 > f2) {\n f1 = f1 - PI * 2;\n }\n if (!sweep_flag && f2 > f1) {\n f2 = f2 - PI * 2;\n }\n } else {\n f1 = recursive[0];\n f2 = recursive[1];\n cx = recursive[2];\n cy = recursive[3];\n }\n var df = f2 - f1;\n if (abs(df) > _120) {\n var f2old = f2,\n x2old = x2,\n y2old = y2;\n f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\n x2 = cx + rx * math.cos(f2);\n y2 = cy + ry * math.sin(f2);\n res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);\n }\n df = f2 - f1;\n var c1 = math.cos(f1),\n s1 = math.sin(f1),\n c2 = math.cos(f2),\n s2 = math.sin(f2),\n t = math.tan(df / 4),\n hx = 4 / 3 * rx * t,\n hy = 4 / 3 * ry * t,\n m1 = [x1, y1],\n m2 = [x1 + hx * s1, y1 - hy * c1],\n m3 = [x2 + hx * s2, y2 - hy * c2],\n m4 = [x2, y2];\n m2[0] = 2 * m1[0] - m2[0];\n m2[1] = 2 * m1[1] - m2[1];\n if (recursive) {\n return [m2, m3, m4][concat](res);\n } else {\n res = [m2, m3, m4][concat](res).join()[split](\",\");\n var newres = [];\n for (var i = 0, ii = res.length; i < ii; i++) {\n newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;\n }\n return newres;\n }\n },\n findDotAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\n var t1 = 1 - t;\n return {\n x: pow(t1, 3) * p1x + pow(t1, 2) * 3 * t * c1x + t1 * 3 * t * t * c2x + pow(t, 3) * p2x,\n y: pow(t1, 3) * p1y + pow(t1, 2) * 3 * t * c1y + t1 * 3 * t * t * c2y + pow(t, 3) * p2y\n };\n },\n curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\n var a = (c2x - 2 * c1x + p1x) - (p2x - 2 * c2x + c1x),\n b = 2 * (c1x - p1x) - 2 * (c2x - c1x),\n c = p1x - c1x,\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a,\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a,\n y = [p1y, p2y],\n x = [p1x, p2x],\n dot;\n abs(t1) > \"1e12\" && (t1 = .5);\n abs(t2) > \"1e12\" && (t2 = .5);\n if (t1 > 0 && t1 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\n x.push(dot.x);\n y.push(dot.y);\n }\n if (t2 > 0 && t2 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\n x.push(dot.x);\n y.push(dot.y);\n }\n a = (c2y - 2 * c1y + p1y) - (p2y - 2 * c2y + c1y);\n b = 2 * (c1y - p1y) - 2 * (c2y - c1y);\n c = p1y - c1y;\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a;\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a;\n abs(t1) > \"1e12\" && (t1 = .5);\n abs(t2) > \"1e12\" && (t2 = .5);\n if (t1 > 0 && t1 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\n x.push(dot.x);\n y.push(dot.y);\n }\n if (t2 > 0 && t2 < 1) {\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\n x.push(dot.x);\n y.push(dot.y);\n }\n return {\n min: {x: mmin[apply](0, x), y: mmin[apply](0, y)},\n max: {x: mmax[apply](0, x), y: mmax[apply](0, y)}\n };\n }),\n path2curve = R._path2curve = cacher(function (path, path2) {\n var pth = !path2 && paths(path);\n if (!path2 && pth.curve) {\n return pathClone(pth.curve);\n }\n var p = pathToAbsolute(path),\n p2 = path2 && pathToAbsolute(path2),\n attrs = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\n attrs2 = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\n processPath = function (path, d, pcom) {\n var nx, ny, tq = {T:1, Q:1};\n if (!path) {\n return [\"C\", d.x, d.y, d.x, d.y, d.x, d.y];\n }\n !(path[0] in tq) && (d.qx = d.qy = null);\n switch (path[0]) {\n case \"M\":\n d.X = path[1];\n d.Y = path[2];\n break;\n case \"A\":\n path = [\"C\"][concat](a2c[apply](0, [d.x, d.y][concat](path.slice(1))));\n break;\n case \"S\":\n if (pcom == \"C\" || pcom == \"S\") { // In \"S\" case we have to take into account, if the previous command is C/S.\n nx = d.x * 2 - d.bx; // And reflect the previous\n ny = d.y * 2 - d.by; // command's control point relative to the current point.\n }\n else { // or some else or nothing\n nx = d.x;\n ny = d.y;\n }\n path = [\"C\", nx, ny][concat](path.slice(1));\n break;\n case \"T\":\n if (pcom == \"Q\" || pcom == \"T\") { // In \"T\" case we have to take into account, if the previous command is Q/T.\n d.qx = d.x * 2 - d.qx; // And make a reflection similar\n d.qy = d.y * 2 - d.qy; // to case \"S\".\n }\n else { // or something else or nothing\n d.qx = d.x;\n d.qy = d.y;\n }\n path = [\"C\"][concat](q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));\n break;\n case \"Q\":\n d.qx = path[1];\n d.qy = path[2];\n path = [\"C\"][concat](q2c(d.x, d.y, path[1], path[2], path[3], path[4]));\n break;\n case \"L\":\n path = [\"C\"][concat](l2c(d.x, d.y, path[1], path[2]));\n break;\n case \"H\":\n path = [\"C\"][concat](l2c(d.x, d.y, path[1], d.y));\n break;\n case \"V\":\n path = [\"C\"][concat](l2c(d.x, d.y, d.x, path[1]));\n break;\n case \"Z\":\n path = [\"C\"][concat](l2c(d.x, d.y, d.X, d.Y));\n break;\n }\n return path;\n },\n fixArc = function (pp, i) {\n if (pp[i].length > 7) {\n pp[i].shift();\n var pi = pp[i];\n while (pi.length) {\n pcoms1[i]=\"A\"; // if created multiple C:s, their original seg is saved\n p2 && (pcoms2[i]=\"A\"); // the same as above\n pp.splice(i++, 0, [\"C\"][concat](pi.splice(0, 6)));\n }\n pp.splice(i, 1);\n ii = mmax(p.length, p2 && p2.length || 0);\n }\n },\n fixM = function (path1, path2, a1, a2, i) {\n if (path1 && path2 && path1[i][0] == \"M\" && path2[i][0] != \"M\") {\n path2.splice(i, 0, [\"M\", a2.x, a2.y]);\n a1.bx = 0;\n a1.by = 0;\n a1.x = path1[i][1];\n a1.y = path1[i][2];\n ii = mmax(p.length, p2 && p2.length || 0);\n }\n },\n pcoms1 = [], // path commands of original path p\n pcoms2 = [], // path commands of original path p2\n pfirst = \"\", // temporary holder for original path command\n pcom = \"\"; // holder for previous path command of original path\n for (var i = 0, ii = mmax(p.length, p2 && p2.length || 0); i < ii; i++) {\n p[i] && (pfirst = p[i][0]); // save current path command\n\n if (pfirst != \"C\") // C is not saved yet, because it may be result of conversion\n {\n pcoms1[i] = pfirst; // Save current path command\n i && ( pcom = pcoms1[i-1]); // Get previous path command pcom\n }\n p[i] = processPath(p[i], attrs, pcom); // Previous path command is inputted to processPath\n\n if (pcoms1[i] != \"A\" && pfirst == \"C\") pcoms1[i] = \"C\"; // A is the only command\n // which may produce multiple C:s\n // so we have to make sure that C is also C in original path\n\n fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1\n\n if (p2) { // the same procedures is done to p2\n p2[i] && (pfirst = p2[i][0]);\n if (pfirst != \"C\")\n {\n pcoms2[i] = pfirst;\n i && (pcom = pcoms2[i-1]);\n }\n p2[i] = processPath(p2[i], attrs2, pcom);\n\n if (pcoms2[i]!=\"A\" && pfirst==\"C\") pcoms2[i]=\"C\";\n\n fixArc(p2, i);\n }\n fixM(p, p2, attrs, attrs2, i);\n fixM(p2, p, attrs2, attrs, i);\n var seg = p[i],\n seg2 = p2 && p2[i],\n seglen = seg.length,\n seg2len = p2 && seg2.length;\n attrs.x = seg[seglen - 2];\n attrs.y = seg[seglen - 1];\n attrs.bx = toFloat(seg[seglen - 4]) || attrs.x;\n attrs.by = toFloat(seg[seglen - 3]) || attrs.y;\n attrs2.bx = p2 && (toFloat(seg2[seg2len - 4]) || attrs2.x);\n attrs2.by = p2 && (toFloat(seg2[seg2len - 3]) || attrs2.y);\n attrs2.x = p2 && seg2[seg2len - 2];\n attrs2.y = p2 && seg2[seg2len - 1];\n }\n if (!p2) {\n pth.curve = pathClone(p);\n }\n return p2 ? [p, p2] : p;\n }, null, pathClone),\n parseDots = R._parseDots = cacher(function (gradient) {\n var dots = [];\n for (var i = 0, ii = gradient.length; i < ii; i++) {\n var dot = {},\n par = gradient[i].match(/^([^:]*):?([\\d\\.]*)/);\n dot.color = R.getRGB(par[1]);\n if (dot.color.error) {\n return null;\n }\n dot.color = dot.color.hex;\n par[2] && (dot.offset = par[2] + \"%\");\n dots.push(dot);\n }\n for (i = 1, ii = dots.length - 1; i < ii; i++) {\n if (!dots[i].offset) {\n var start = toFloat(dots[i - 1].offset || 0),\n end = 0;\n for (var j = i + 1; j < ii; j++) {\n if (dots[j].offset) {\n end = dots[j].offset;\n break;\n }\n }\n if (!end) {\n end = 100;\n j = ii;\n }\n end = toFloat(end);\n var d = (end - start) / (j - i + 1);\n for (; i < j; i++) {\n start += d;\n dots[i].offset = start + \"%\";\n }\n }\n }\n return dots;\n }),\n tear = R._tear = function (el, paper) {\n el == paper.top && (paper.top = el.prev);\n el == paper.bottom && (paper.bottom = el.next);\n el.next && (el.next.prev = el.prev);\n el.prev && (el.prev.next = el.next);\n },\n tofront = R._tofront = function (el, paper) {\n if (paper.top === el) {\n return;\n }\n tear(el, paper);\n el.next = null;\n el.prev = paper.top;\n paper.top.next = el;\n paper.top = el;\n },\n toback = R._toback = function (el, paper) {\n if (paper.bottom === el) {\n return;\n }\n tear(el, paper);\n el.next = paper.bottom;\n el.prev = null;\n paper.bottom.prev = el;\n paper.bottom = el;\n },\n insertafter = R._insertafter = function (el, el2, paper) {\n tear(el, paper);\n el2 == paper.top && (paper.top = el);\n el2.next && (el2.next.prev = el);\n el.next = el2.next;\n el.prev = el2;\n el2.next = el;\n },\n insertbefore = R._insertbefore = function (el, el2, paper) {\n tear(el, paper);\n el2 == paper.bottom && (paper.bottom = el);\n el2.prev && (el2.prev.next = el);\n el.prev = el2.prev;\n el2.prev = el;\n el.next = el2;\n },\n /*\\\n * Raphael.toMatrix\n [ method ]\n **\n * Utility method\n **\n * Returns matrix of transformations applied to a given path\n > Parameters\n - path (string) path string\n - transform (string|array) transformation string\n = (object) @Matrix\n \\*/\n toMatrix = R.toMatrix = function (path, transform) {\n var bb = pathDimensions(path),\n el = {\n _: {\n transform: E\n },\n getBBox: function () {\n return bb;\n }\n };\n extractTransform(el, transform);\n return el.matrix;\n },\n /*\\\n * Raphael.transformPath\n [ method ]\n **\n * Utility method\n **\n * Returns path transformed by a given transformation\n > Parameters\n - path (string) path string\n - transform (string|array) transformation string\n = (string) path\n \\*/\n transformPath = R.transformPath = function (path, transform) {\n return mapPath(path, toMatrix(path, transform));\n },\n extractTransform = R._extractTransform = function (el, tstr) {\n if (tstr == null) {\n return el._.transform;\n }\n tstr = Str(tstr).replace(/\\.{3}|\\u2026/g, el._.transform || E);\n var tdata = R.parseTransformString(tstr),\n deg = 0,\n dx = 0,\n dy = 0,\n sx = 1,\n sy = 1,\n _ = el._,\n m = new Matrix;\n _.transform = tdata || [];\n if (tdata) {\n for (var i = 0, ii = tdata.length; i < ii; i++) {\n var t = tdata[i],\n tlen = t.length,\n command = Str(t[0]).toLowerCase(),\n absolute = t[0] != command,\n inver = absolute ? m.invert() : 0,\n x1,\n y1,\n x2,\n y2,\n bb;\n if (command == \"t\" && tlen == 3) {\n if (absolute) {\n x1 = inver.x(0, 0);\n y1 = inver.y(0, 0);\n x2 = inver.x(t[1], t[2]);\n y2 = inver.y(t[1], t[2]);\n m.translate(x2 - x1, y2 - y1);\n } else {\n m.translate(t[1], t[2]);\n }\n } else if (command == \"r\") {\n if (tlen == 2) {\n bb = bb || el.getBBox(1);\n m.rotate(t[1], bb.x + bb.width / 2, bb.y + bb.height / 2);\n deg += t[1];\n } else if (tlen == 4) {\n if (absolute) {\n x2 = inver.x(t[2], t[3]);\n y2 = inver.y(t[2], t[3]);\n m.rotate(t[1], x2, y2);\n } else {\n m.rotate(t[1], t[2], t[3]);\n }\n deg += t[1];\n }\n } else if (command == \"s\") {\n if (tlen == 2 || tlen == 3) {\n bb = bb || el.getBBox(1);\n m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);\n sx *= t[1];\n sy *= t[tlen - 1];\n } else if (tlen == 5) {\n if (absolute) {\n x2 = inver.x(t[3], t[4]);\n y2 = inver.y(t[3], t[4]);\n m.scale(t[1], t[2], x2, y2);\n } else {\n m.scale(t[1], t[2], t[3], t[4]);\n }\n sx *= t[1];\n sy *= t[2];\n }\n } else if (command == \"m\" && tlen == 7) {\n m.add(t[1], t[2], t[3], t[4], t[5], t[6]);\n }\n _.dirtyT = 1;\n el.matrix = m;\n }\n }\n\n /*\\\n * Element.matrix\n [ property (object) ]\n **\n * Keeps @Matrix object, which represents element transformation\n \\*/\n el.matrix = m;\n\n _.sx = sx;\n _.sy = sy;\n _.deg = deg;\n _.dx = dx = m.e;\n _.dy = dy = m.f;\n\n if (sx == 1 && sy == 1 && !deg && _.bbox) {\n _.bbox.x += +dx;\n _.bbox.y += +dy;\n } else {\n _.dirtyT = 1;\n }\n },\n getEmpty = function (item) {\n var l = item[0];\n switch (l.toLowerCase()) {\n case \"t\": return [l, 0, 0];\n case \"m\": return [l, 1, 0, 0, 1, 0, 0];\n case \"r\": if (item.length == 4) {\n return [l, 0, item[2], item[3]];\n } else {\n return [l, 0];\n }\n case \"s\": if (item.length == 5) {\n return [l, 1, 1, item[3], item[4]];\n } else if (item.length == 3) {\n return [l, 1, 1];\n } else {\n return [l, 1];\n }\n }\n },\n equaliseTransform = R._equaliseTransform = function (t1, t2) {\n t2 = Str(t2).replace(/\\.{3}|\\u2026/g, t1);\n t1 = R.parseTransformString(t1) || [];\n t2 = R.parseTransformString(t2) || [];\n var maxlength = mmax(t1.length, t2.length),\n from = [],\n to = [],\n i = 0, j, jj,\n tt1, tt2;\n for (; i < maxlength; i++) {\n tt1 = t1[i] || getEmpty(t2[i]);\n tt2 = t2[i] || getEmpty(tt1);\n if ((tt1[0] != tt2[0]) ||\n (tt1[0].toLowerCase() == \"r\" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||\n (tt1[0].toLowerCase() == \"s\" && (tt1[3] != tt2[3] || tt1[4] != tt2[4]))\n ) {\n return;\n }\n from[i] = [];\n to[i] = [];\n for (j = 0, jj = mmax(tt1.length, tt2.length); j < jj; j++) {\n j in tt1 && (from[i][j] = tt1[j]);\n j in tt2 && (to[i][j] = tt2[j]);\n }\n }\n return {\n from: from,\n to: to\n };\n };\n R._getContainer = function (x, y, w, h) {\n var container;\n container = h == null && !R.is(x, \"object\") ? g.doc.getElementById(x) : x;\n if (container == null) {\n return;\n }\n if (container.tagName) {\n if (y == null) {\n return {\n container: container,\n width: container.style.pixelWidth || container.offsetWidth,\n height: container.style.pixelHeight || container.offsetHeight\n };\n } else {\n return {\n container: container,\n width: y,\n height: w\n };\n }\n }\n return {\n container: 1,\n x: x,\n y: y,\n width: w,\n height: h\n };\n };\n /*\\\n * Raphael.pathToRelative\n [ method ]\n **\n * Utility method\n **\n * Converts path to relative form\n > Parameters\n - pathString (string|array) path string or array of segments\n = (array) array of segments.\n \\*/\n R.pathToRelative = pathToRelative;\n R._engine = {};\n /*\\\n * Raphael.path2curve\n [ method ]\n **\n * Utility method\n **\n * Converts path to a new path where all segments are cubic bezier curves.\n > Parameters\n - pathString (string|array) path string or array of segments\n = (array) array of segments.\n \\*/\n R.path2curve = path2curve;\n /*\\\n * Raphael.matrix\n [ method ]\n **\n * Utility method\n **\n * Returns matrix based on given parameters.\n > Parameters\n - a (number)\n - b (number)\n - c (number)\n - d (number)\n - e (number)\n - f (number)\n = (object) @Matrix\n \\*/\n R.matrix = function (a, b, c, d, e, f) {\n return new Matrix(a, b, c, d, e, f);\n };\n function Matrix(a, b, c, d, e, f) {\n if (a != null) {\n this.a = +a;\n this.b = +b;\n this.c = +c;\n this.d = +d;\n this.e = +e;\n this.f = +f;\n } else {\n this.a = 1;\n this.b = 0;\n this.c = 0;\n this.d = 1;\n this.e = 0;\n this.f = 0;\n }\n }\n (function (matrixproto) {\n /*\\\n * Matrix.add\n [ method ]\n **\n * Adds given matrix to existing one.\n > Parameters\n - a (number)\n - b (number)\n - c (number)\n - d (number)\n - e (number)\n - f (number)\n or\n - matrix (object) @Matrix\n \\*/\n matrixproto.add = function (a, b, c, d, e, f) {\n var out = [[], [], []],\n m = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],\n matrix = [[a, c, e], [b, d, f], [0, 0, 1]],\n x, y, z, res;\n\n if (a && a instanceof Matrix) {\n matrix = [[a.a, a.c, a.e], [a.b, a.d, a.f], [0, 0, 1]];\n }\n\n for (x = 0; x < 3; x++) {\n for (y = 0; y < 3; y++) {\n res = 0;\n for (z = 0; z < 3; z++) {\n res += m[x][z] * matrix[z][y];\n }\n out[x][y] = res;\n }\n }\n this.a = out[0][0];\n this.b = out[1][0];\n this.c = out[0][1];\n this.d = out[1][1];\n this.e = out[0][2];\n this.f = out[1][2];\n };\n /*\\\n * Matrix.invert\n [ method ]\n **\n * Returns inverted version of the matrix\n = (object) @Matrix\n \\*/\n matrixproto.invert = function () {\n var me = this,\n x = me.a * me.d - me.b * me.c;\n return new Matrix(me.d / x, -me.b / x, -me.c / x, me.a / x, (me.c * me.f - me.d * me.e) / x, (me.b * me.e - me.a * me.f) / x);\n };\n /*\\\n * Matrix.clone\n [ method ]\n **\n * Returns copy of the matrix\n = (object) @Matrix\n \\*/\n matrixproto.clone = function () {\n return new Matrix(this.a, this.b, this.c, this.d, this.e, this.f);\n };\n /*\\\n * Matrix.translate\n [ method ]\n **\n * Translate the matrix\n > Parameters\n - x (number)\n - y (number)\n \\*/\n matrixproto.translate = function (x, y) {\n this.add(1, 0, 0, 1, x, y);\n };\n /*\\\n * Matrix.scale\n [ method ]\n **\n * Scales the matrix\n > Parameters\n - x (number)\n - y (number) #optional\n - cx (number) #optional\n - cy (number) #optional\n \\*/\n matrixproto.scale = function (x, y, cx, cy) {\n y == null && (y = x);\n (cx || cy) && this.add(1, 0, 0, 1, cx, cy);\n this.add(x, 0, 0, y, 0, 0);\n (cx || cy) && this.add(1, 0, 0, 1, -cx, -cy);\n };\n /*\\\n * Matrix.rotate\n [ method ]\n **\n * Rotates the matrix\n > Parameters\n - a (number)\n - x (number)\n - y (number)\n \\*/\n matrixproto.rotate = function (a, x, y) {\n a = R.rad(a);\n x = x || 0;\n y = y || 0;\n var cos = +math.cos(a).toFixed(9),\n sin = +math.sin(a).toFixed(9);\n this.add(cos, sin, -sin, cos, x, y);\n this.add(1, 0, 0, 1, -x, -y);\n };\n /*\\\n * Matrix.x\n [ method ]\n **\n * Return x coordinate for given point after transformation described by the matrix. See also @Matrix.y\n > Parameters\n - x (number)\n - y (number)\n = (number) x\n \\*/\n matrixproto.x = function (x, y) {\n return x * this.a + y * this.c + this.e;\n };\n /*\\\n * Matrix.y\n [ method ]\n **\n * Return y coordinate for given point after transformation described by the matrix. See also @Matrix.x\n > Parameters\n - x (number)\n - y (number)\n = (number) y\n \\*/\n matrixproto.y = function (x, y) {\n return x * this.b + y * this.d + this.f;\n };\n matrixproto.get = function (i) {\n return +this[Str.fromCharCode(97 + i)].toFixed(4);\n };\n matrixproto.toString = function () {\n return R.svg ?\n \"matrix(\" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + \")\" :\n [this.get(0), this.get(2), this.get(1), this.get(3), 0, 0].join();\n };\n matrixproto.toFilter = function () {\n return \"progid:DXImageTransform.Microsoft.Matrix(M11=\" + this.get(0) +\n \", M12=\" + this.get(2) + \", M21=\" + this.get(1) + \", M22=\" + this.get(3) +\n \", Dx=\" + this.get(4) + \", Dy=\" + this.get(5) + \", sizingmethod='auto expand')\";\n };\n matrixproto.offset = function () {\n return [this.e.toFixed(4), this.f.toFixed(4)];\n };\n function norm(a) {\n return a[0] * a[0] + a[1] * a[1];\n }\n function normalize(a) {\n var mag = math.sqrt(norm(a));\n a[0] && (a[0] /= mag);\n a[1] && (a[1] /= mag);\n }\n /*\\\n * Matrix.split\n [ method ]\n **\n * Splits matrix into primitive transformations\n = (object) in format:\n o dx (number) translation by x\n o dy (number) translation by y\n o scalex (number) scale by x\n o scaley (number) scale by y\n o shear (number) shear\n o rotate (number) rotation in deg\n o isSimple (boolean) could it be represented via simple transformations\n \\*/\n matrixproto.split = function () {\n var out = {};\n // translation\n out.dx = this.e;\n out.dy = this.f;\n\n // scale and shear\n var row = [[this.a, this.c], [this.b, this.d]];\n out.scalex = math.sqrt(norm(row[0]));\n normalize(row[0]);\n\n out.shear = row[0][0] * row[1][0] + row[0][1] * row[1][1];\n row[1] = [row[1][0] - row[0][0] * out.shear, row[1][1] - row[0][1] * out.shear];\n\n out.scaley = math.sqrt(norm(row[1]));\n normalize(row[1]);\n out.shear /= out.scaley;\n\n // rotation\n var sin = -row[0][1],\n cos = row[1][1];\n if (cos < 0) {\n out.rotate = R.deg(math.acos(cos));\n if (sin < 0) {\n out.rotate = 360 - out.rotate;\n }\n } else {\n out.rotate = R.deg(math.asin(sin));\n }\n\n out.isSimple = !+out.shear.toFixed(9) && (out.scalex.toFixed(9) == out.scaley.toFixed(9) || !out.rotate);\n out.isSuperSimple = !+out.shear.toFixed(9) && out.scalex.toFixed(9) == out.scaley.toFixed(9) && !out.rotate;\n out.noRotation = !+out.shear.toFixed(9) && !out.rotate;\n return out;\n };\n /*\\\n * Matrix.toTransformString\n [ method ]\n **\n * Return transform string that represents given matrix\n = (string) transform string\n \\*/\n matrixproto.toTransformString = function (shorter) {\n var s = shorter || this[split]();\n if (s.isSimple) {\n s.scalex = +s.scalex.toFixed(4);\n s.scaley = +s.scaley.toFixed(4);\n s.rotate = +s.rotate.toFixed(4);\n return (s.dx || s.dy ? \"t\" + [s.dx, s.dy] : E) +\n (s.scalex != 1 || s.scaley != 1 ? \"s\" + [s.scalex, s.scaley, 0, 0] : E) +\n (s.rotate ? \"r\" + [s.rotate, 0, 0] : E);\n } else {\n return \"m\" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)];\n }\n };\n })(Matrix.prototype);\n\n // WebKit rendering bug workaround method\n var version = navigator.userAgent.match(/Version\\/(.*?)\\s/) || navigator.userAgent.match(/Chrome\\/(\\d+)/);\n if ((navigator.vendor == \"Apple Computer, Inc.\") && (version && version[1] < 4 || navigator.platform.slice(0, 2) == \"iP\") ||\n (navigator.vendor == \"Google Inc.\" && version && version[1] < 8)) {\n /*\\\n * Paper.safari\n [ method ]\n **\n * There is an inconvenient rendering bug in Safari (WebKit):\n * sometimes the rendering should be forced.\n * This method should help with dealing with this bug.\n \\*/\n paperproto.safari = function () {\n var rect = this.rect(-99, -99, this.width + 99, this.height + 99).attr({stroke: \"none\"});\n setTimeout(function () {rect.remove();});\n };\n } else {\n paperproto.safari = fun;\n }\n\n var preventDefault = function () {\n this.returnValue = false;\n },\n preventTouch = function () {\n return this.originalEvent.preventDefault();\n },\n stopPropagation = function () {\n this.cancelBubble = true;\n },\n stopTouch = function () {\n return this.originalEvent.stopPropagation();\n },\n getEventPosition = function (e) {\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\n\n return {\n x: e.clientX + scrollX,\n y: e.clientY + scrollY\n };\n },\n addEvent = (function () {\n if (g.doc.addEventListener) {\n return function (obj, type, fn, element) {\n var f = function (e) {\n var pos = getEventPosition(e);\n return fn.call(element, e, pos.x, pos.y);\n };\n obj.addEventListener(type, f, false);\n\n if (supportsTouch && touchMap[type]) {\n var _f = function (e) {\n var pos = getEventPosition(e),\n olde = e;\n\n for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {\n if (e.targetTouches[i].target == obj) {\n e = e.targetTouches[i];\n e.originalEvent = olde;\n e.preventDefault = preventTouch;\n e.stopPropagation = stopTouch;\n break;\n }\n }\n\n return fn.call(element, e, pos.x, pos.y);\n };\n obj.addEventListener(touchMap[type], _f, false);\n }\n\n return function () {\n obj.removeEventListener(type, f, false);\n\n if (supportsTouch && touchMap[type])\n obj.removeEventListener(touchMap[type], _f, false);\n\n return true;\n };\n };\n } else if (g.doc.attachEvent) {\n return function (obj, type, fn, element) {\n var f = function (e) {\n e = e || g.win.event;\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\n x = e.clientX + scrollX,\n y = e.clientY + scrollY;\n e.preventDefault = e.preventDefault || preventDefault;\n e.stopPropagation = e.stopPropagation || stopPropagation;\n return fn.call(element, e, x, y);\n };\n obj.attachEvent(\"on\" + type, f);\n var detacher = function () {\n obj.detachEvent(\"on\" + type, f);\n return true;\n };\n return detacher;\n };\n }\n })(),\n drag = [],\n dragMove = function (e) {\n var x = e.clientX,\n y = e.clientY,\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\n dragi,\n j = drag.length;\n while (j--) {\n dragi = drag[j];\n if (supportsTouch && e.touches) {\n var i = e.touches.length,\n touch;\n while (i--) {\n touch = e.touches[i];\n if (touch.identifier == dragi.el._drag.id) {\n x = touch.clientX;\n y = touch.clientY;\n (e.originalEvent ? e.originalEvent : e).preventDefault();\n break;\n }\n }\n } else {\n e.preventDefault();\n }\n var node = dragi.el.node,\n o,\n next = node.nextSibling,\n parent = node.parentNode,\n display = node.style.display;\n g.win.opera && parent.removeChild(node);\n node.style.display = \"none\";\n o = dragi.el.paper.getElementByPoint(x, y);\n node.style.display = display;\n g.win.opera && (next ? parent.insertBefore(node, next) : parent.appendChild(node));\n o && eve(\"raphael.drag.over.\" + dragi.el.id, dragi.el, o);\n x += scrollX;\n y += scrollY;\n eve(\"raphael.drag.move.\" + dragi.el.id, dragi.move_scope || dragi.el, x - dragi.el._drag.x, y - dragi.el._drag.y, x, y, e);\n }\n },\n dragUp = function (e) {\n R.unmousemove(dragMove).unmouseup(dragUp);\n var i = drag.length,\n dragi;\n while (i--) {\n dragi = drag[i];\n dragi.el._drag = {};\n eve(\"raphael.drag.end.\" + dragi.el.id, dragi.end_scope || dragi.start_scope || dragi.move_scope || dragi.el, e);\n }\n drag = [];\n },\n /*\\\n * Raphael.el\n [ property (object) ]\n **\n * You can add your own method to elements. This is usefull when you want to hack default functionality or\n * want to wrap some common transformation or attributes in one method. In difference to canvas methods,\n * you can redefine element method at any time. Expending element methods wouldn’t affect set.\n > Usage\n | Raphael.el.red = function () {\n | this.attr({fill: \"#f00\"});\n | };\n | // then use it\n | paper.circle(100, 100, 20).red();\n \\*/\n elproto = R.el = {};\n /*\\\n * Element.click\n [ method ]\n **\n * Adds event handler for click for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unclick\n [ method ]\n **\n * Removes event handler for click for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.dblclick\n [ method ]\n **\n * Adds event handler for double click for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.undblclick\n [ method ]\n **\n * Removes event handler for double click for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mousedown\n [ method ]\n **\n * Adds event handler for mousedown for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmousedown\n [ method ]\n **\n * Removes event handler for mousedown for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mousemove\n [ method ]\n **\n * Adds event handler for mousemove for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmousemove\n [ method ]\n **\n * Removes event handler for mousemove for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mouseout\n [ method ]\n **\n * Adds event handler for mouseout for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmouseout\n [ method ]\n **\n * Removes event handler for mouseout for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mouseover\n [ method ]\n **\n * Adds event handler for mouseover for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmouseover\n [ method ]\n **\n * Removes event handler for mouseover for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.mouseup\n [ method ]\n **\n * Adds event handler for mouseup for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.unmouseup\n [ method ]\n **\n * Removes event handler for mouseup for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchstart\n [ method ]\n **\n * Adds event handler for touchstart for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchstart\n [ method ]\n **\n * Removes event handler for touchstart for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchmove\n [ method ]\n **\n * Adds event handler for touchmove for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchmove\n [ method ]\n **\n * Removes event handler for touchmove for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchend\n [ method ]\n **\n * Adds event handler for touchend for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchend\n [ method ]\n **\n * Removes event handler for touchend for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n\n /*\\\n * Element.touchcancel\n [ method ]\n **\n * Adds event handler for touchcancel for the element.\n > Parameters\n - handler (function) handler for the event\n = (object) @Element\n \\*/\n /*\\\n * Element.untouchcancel\n [ method ]\n **\n * Removes event handler for touchcancel for the element.\n > Parameters\n - handler (function) #optional handler for the event\n = (object) @Element\n \\*/\n for (var i = events.length; i--;) {\n (function (eventName) {\n R[eventName] = elproto[eventName] = function (fn, scope) {\n if (R.is(fn, \"function\")) {\n this.events = this.events || [];\n this.events.push({name: eventName, f: fn, unbind: addEvent(this.shape || this.node || g.doc, eventName, fn, scope || this)});\n }\n return this;\n };\n R[\"un\" + eventName] = elproto[\"un\" + eventName] = function (fn) {\n var events = this.events || [],\n l = events.length;\n while (l--){\n if (events[l].name == eventName && (R.is(fn, \"undefined\") || events[l].f == fn)) {\n events[l].unbind();\n events.splice(l, 1);\n !events.length && delete this.events;\n }\n }\n return this;\n };\n })(events[i]);\n }\n\n /*\\\n * Element.data\n [ method ]\n **\n * Adds or retrieves given value asociated with given key.\n **\n * See also @Element.removeData\n > Parameters\n - key (string) key to store data\n - value (any) #optional value to store\n = (object) @Element\n * or, if value is not specified:\n = (any) value\n * or, if key and value are not specified:\n = (object) Key/value pairs for all the data associated with the element.\n > Usage\n | for (var i = 0, i < 5, i++) {\n | paper.circle(10 + 15 * i, 10, 10)\n | .attr({fill: \"#000\"})\n | .data(\"i\", i)\n | .click(function () {\n | alert(this.data(\"i\"));\n | });\n | }\n \\*/\n elproto.data = function (key, value) {\n var data = eldata[this.id] = eldata[this.id] || {};\n if (arguments.length == 0) {\n return data;\n }\n if (arguments.length == 1) {\n if (R.is(key, \"object\")) {\n for (var i in key) if (key[has](i)) {\n this.data(i, key[i]);\n }\n return this;\n }\n eve(\"raphael.data.get.\" + this.id, this, data[key], key);\n return data[key];\n }\n data[key] = value;\n eve(\"raphael.data.set.\" + this.id, this, value, key);\n return this;\n };\n /*\\\n * Element.removeData\n [ method ]\n **\n * Removes value associated with an element by given key.\n * If key is not provided, removes all the data of the element.\n > Parameters\n - key (string) #optional key\n = (object) @Element\n \\*/\n elproto.removeData = function (key) {\n if (key == null) {\n eldata[this.id] = {};\n } else {\n eldata[this.id] && delete eldata[this.id][key];\n }\n return this;\n };\n /*\\\n * Element.getData\n [ method ]\n **\n * Retrieves the element data\n = (object) data\n \\*/\n elproto.getData = function () {\n return clone(eldata[this.id] || {});\n };\n /*\\\n * Element.hover\n [ method ]\n **\n * Adds event handlers for hover for the element.\n > Parameters\n - f_in (function) handler for hover in\n - f_out (function) handler for hover out\n - icontext (object) #optional context for hover in handler\n - ocontext (object) #optional context for hover out handler\n = (object) @Element\n \\*/\n elproto.hover = function (f_in, f_out, scope_in, scope_out) {\n return this.mouseover(f_in, scope_in).mouseout(f_out, scope_out || scope_in);\n };\n /*\\\n * Element.unhover\n [ method ]\n **\n * Removes event handlers for hover for the element.\n > Parameters\n - f_in (function) handler for hover in\n - f_out (function) handler for hover out\n = (object) @Element\n \\*/\n elproto.unhover = function (f_in, f_out) {\n return this.unmouseover(f_in).unmouseout(f_out);\n };\n var draggable = [];\n /*\\\n * Element.drag\n [ method ]\n **\n * Adds event handlers for drag of the element.\n > Parameters\n - onmove (function) handler for moving\n - onstart (function) handler for drag start\n - onend (function) handler for drag end\n - mcontext (object) #optional context for moving handler\n - scontext (object) #optional context for drag start handler\n - econtext (object) #optional context for drag end handler\n * Additionaly following `drag` events will be triggered: `drag.start.<id>` on start,\n * `drag.end.<id>` on end and `drag.move.<id>` on every move. When element will be dragged over another element\n * `drag.over.<id>` will be fired as well.\n *\n * Start event and start handler will be called in specified context or in context of the element with following parameters:\n o x (number) x position of the mouse\n o y (number) y position of the mouse\n o event (object) DOM event object\n * Move event and move handler will be called in specified context or in context of the element with following parameters:\n o dx (number) shift by x from the start point\n o dy (number) shift by y from the start point\n o x (number) x position of the mouse\n o y (number) y position of the mouse\n o event (object) DOM event object\n * End event and end handler will be called in specified context or in context of the element with following parameters:\n o event (object) DOM event object\n = (object) @Element\n \\*/\n elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {\n function start(e) {\n (e.originalEvent || e).preventDefault();\n var x = e.clientX,\n y = e.clientY,\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\n this._drag.id = e.identifier;\n if (supportsTouch && e.touches) {\n var i = e.touches.length, touch;\n while (i--) {\n touch = e.touches[i];\n this._drag.id = touch.identifier;\n if (touch.identifier == this._drag.id) {\n x = touch.clientX;\n y = touch.clientY;\n break;\n }\n }\n }\n this._drag.x = x + scrollX;\n this._drag.y = y + scrollY;\n !drag.length && R.mousemove(dragMove).mouseup(dragUp);\n drag.push({el: this, move_scope: move_scope, start_scope: start_scope, end_scope: end_scope});\n onstart && eve.on(\"raphael.drag.start.\" + this.id, onstart);\n onmove && eve.on(\"raphael.drag.move.\" + this.id, onmove);\n onend && eve.on(\"raphael.drag.end.\" + this.id, onend);\n eve(\"raphael.drag.start.\" + this.id, start_scope || move_scope || this, e.clientX + scrollX, e.clientY + scrollY, e);\n }\n this._drag = {};\n draggable.push({el: this, start: start});\n this.mousedown(start);\n return this;\n };\n /*\\\n * Element.onDragOver\n [ method ]\n **\n * Shortcut for assigning event handler for `drag.over.<id>` event, where id is id of the element (see @Element.id).\n > Parameters\n - f (function) handler for event, first argument would be the element you are dragging over\n \\*/\n elproto.onDragOver = function (f) {\n f ? eve.on(\"raphael.drag.over.\" + this.id, f) : eve.unbind(\"raphael.drag.over.\" + this.id);\n };\n /*\\\n * Element.undrag\n [ method ]\n **\n * Removes all drag event handlers from given element.\n \\*/\n elproto.undrag = function () {\n var i = draggable.length;\n while (i--) if (draggable[i].el == this) {\n this.unmousedown(draggable[i].start);\n draggable.splice(i, 1);\n eve.unbind(\"raphael.drag.*.\" + this.id);\n }\n !draggable.length && R.unmousemove(dragMove).unmouseup(dragUp);\n drag = [];\n };\n /*\\\n * Paper.circle\n [ method ]\n **\n * Draws a circle.\n **\n > Parameters\n **\n - x (number) x coordinate of the centre\n - y (number) y coordinate of the centre\n - r (number) radius\n = (object) Raphaël element object with type “circle”\n **\n > Usage\n | var c = paper.circle(50, 50, 40);\n \\*/\n paperproto.circle = function (x, y, r) {\n var out = R._engine.circle(this, x || 0, y || 0, r || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.rect\n [ method ]\n *\n * Draws a rectangle.\n **\n > Parameters\n **\n - x (number) x coordinate of the top left corner\n - y (number) y coordinate of the top left corner\n - width (number) width\n - height (number) height\n - r (number) #optional radius for rounded corners, default is 0\n = (object) Raphaël element object with type “rect”\n **\n > Usage\n | // regular rectangle\n | var c = paper.rect(10, 10, 50, 50);\n | // rectangle with rounded corners\n | var c = paper.rect(40, 40, 50, 50, 10);\n \\*/\n paperproto.rect = function (x, y, w, h, r) {\n var out = R._engine.rect(this, x || 0, y || 0, w || 0, h || 0, r || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.ellipse\n [ method ]\n **\n * Draws an ellipse.\n **\n > Parameters\n **\n - x (number) x coordinate of the centre\n - y (number) y coordinate of the centre\n - rx (number) horizontal radius\n - ry (number) vertical radius\n = (object) Raphaël element object with type “ellipse”\n **\n > Usage\n | var c = paper.ellipse(50, 50, 40, 20);\n \\*/\n paperproto.ellipse = function (x, y, rx, ry) {\n var out = R._engine.ellipse(this, x || 0, y || 0, rx || 0, ry || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.path\n [ method ]\n **\n * Creates a path element by given path data string.\n > Parameters\n - pathString (string) #optional path string in SVG format.\n * Path string consists of one-letter commands, followed by comma seprarated arguments in numercal form. Example:\n | \"M10,20L30,40\"\n * Here we can see two commands: “M”, with arguments `(10, 20)` and “L” with arguments `(30, 40)`. Upper case letter mean command is absolute, lower case—relative.\n *\n # <p>Here is short list of commands available, for more details see <a href=\"http://www.w3.org/TR/SVG/paths.html#PathData\" title=\"Details of a path's data attribute's format are described in the SVG specification.\">SVG path string format</a>.</p>\n # <table><thead><tr><th>Command</th><th>Name</th><th>Parameters</th></tr></thead><tbody>\n # <tr><td>M</td><td>moveto</td><td>(x y)+</td></tr>\n # <tr><td>Z</td><td>closepath</td><td>(none)</td></tr>\n # <tr><td>L</td><td>lineto</td><td>(x y)+</td></tr>\n # <tr><td>H</td><td>horizontal lineto</td><td>x+</td></tr>\n # <tr><td>V</td><td>vertical lineto</td><td>y+</td></tr>\n # <tr><td>C</td><td>curveto</td><td>(x1 y1 x2 y2 x y)+</td></tr>\n # <tr><td>S</td><td>smooth curveto</td><td>(x2 y2 x y)+</td></tr>\n # <tr><td>Q</td><td>quadratic Bézier curveto</td><td>(x1 y1 x y)+</td></tr>\n # <tr><td>T</td><td>smooth quadratic Bézier curveto</td><td>(x y)+</td></tr>\n # <tr><td>A</td><td>elliptical arc</td><td>(rx ry x-axis-rotation large-arc-flag sweep-flag x y)+</td></tr>\n # <tr><td>R</td><td><a href=\"http://en.wikipedia.org/wiki/Catmull–Rom_spline#Catmull.E2.80.93Rom_spline\">Catmull-Rom curveto</a>*</td><td>x1 y1 (x y)+</td></tr></tbody></table>\n * * “Catmull-Rom curveto” is a not standard SVG command and added in 2.0 to make life easier.\n * Note: there is a special case when path consist of just three commands: “M10,10R…z”. In this case path will smoothly connects to its beginning.\n > Usage\n | var c = paper.path(\"M10 10L90 90\");\n | // draw a diagonal line:\n | // move to 10,10, line to 90,90\n * For example of path strings, check out these icons: http://raphaeljs.com/icons/\n \\*/\n paperproto.path = function (pathString) {\n pathString && !R.is(pathString, string) && !R.is(pathString[0], array) && (pathString += E);\n var out = R._engine.path(R.format[apply](R, arguments), this);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.image\n [ method ]\n **\n * Embeds an image into the surface.\n **\n > Parameters\n **\n - src (string) URI of the source image\n - x (number) x coordinate position\n - y (number) y coordinate position\n - width (number) width of the image\n - height (number) height of the image\n = (object) Raphaël element object with type “image”\n **\n > Usage\n | var c = paper.image(\"apple.png\", 10, 10, 80, 80);\n \\*/\n paperproto.image = function (src, x, y, w, h) {\n var out = R._engine.image(this, src || \"about:blank\", x || 0, y || 0, w || 0, h || 0);\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.text\n [ method ]\n **\n * Draws a text string. If you need line breaks, put “\\n” in the string.\n **\n > Parameters\n **\n - x (number) x coordinate position\n - y (number) y coordinate position\n - text (string) The text string to draw\n = (object) Raphaël element object with type “text”\n **\n > Usage\n | var t = paper.text(50, 50, \"Raphaël\\nkicks\\nbutt!\");\n \\*/\n paperproto.text = function (x, y, text) {\n var out = R._engine.text(this, x || 0, y || 0, Str(text));\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Paper.set\n [ method ]\n **\n * Creates array-like object to keep and operate several elements at once.\n * Warning: it doesn’t create any elements for itself in the page, it just groups existing elements.\n * Sets act as pseudo elements — all methods available to an element can be used on a set.\n = (object) array-like object that represents set of elements\n **\n > Usage\n | var st = paper.set();\n | st.push(\n | paper.circle(10, 10, 5),\n | paper.circle(30, 10, 5)\n | );\n | st.attr({fill: \"red\"}); // changes the fill of both circles\n \\*/\n paperproto.set = function (itemsArray) {\n !R.is(itemsArray, \"array\") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.length));\n var out = new Set(itemsArray);\n this.__set__ && this.__set__.push(out);\n out[\"paper\"] = this;\n out[\"type\"] = \"set\";\n return out;\n };\n /*\\\n * Paper.setStart\n [ method ]\n **\n * Creates @Paper.set. All elements that will be created after calling this method and before calling\n * @Paper.setFinish will be added to the set.\n **\n > Usage\n | paper.setStart();\n | paper.circle(10, 10, 5),\n | paper.circle(30, 10, 5)\n | var st = paper.setFinish();\n | st.attr({fill: \"red\"}); // changes the fill of both circles\n \\*/\n paperproto.setStart = function (set) {\n this.__set__ = set || this.set();\n };\n /*\\\n * Paper.setFinish\n [ method ]\n **\n * See @Paper.setStart. This method finishes catching and returns resulting set.\n **\n = (object) set\n \\*/\n paperproto.setFinish = function (set) {\n var out = this.__set__;\n delete this.__set__;\n return out;\n };\n /*\\\n * Paper.getSize\n [ method ]\n **\n * Obtains current paper actual size.\n **\n = (object)\n \\*/\n paperproto.getSize = function () {\n var container = this.canvas.parentNode;\n return {\n width: container.offsetWidth,\n height: container.offsetHeight\n };\n };\n /*\\\n * Paper.setSize\n [ method ]\n **\n * If you need to change dimensions of the canvas call this method\n **\n > Parameters\n **\n - width (number) new width of the canvas\n - height (number) new height of the canvas\n \\*/\n paperproto.setSize = function (width, height) {\n return R._engine.setSize.call(this, width, height);\n };\n /*\\\n * Paper.setViewBox\n [ method ]\n **\n * Sets the view box of the paper. Practically it gives you ability to zoom and pan whole paper surface by\n * specifying new boundaries.\n **\n > Parameters\n **\n - x (number) new x position, default is `0`\n - y (number) new y position, default is `0`\n - w (number) new width of the canvas\n - h (number) new height of the canvas\n - fit (boolean) `true` if you want graphics to fit into new boundary box\n \\*/\n paperproto.setViewBox = function (x, y, w, h, fit) {\n return R._engine.setViewBox.call(this, x, y, w, h, fit);\n };\n /*\\\n * Paper.top\n [ property ]\n **\n * Points to the topmost element on the paper\n \\*/\n /*\\\n * Paper.bottom\n [ property ]\n **\n * Points to the bottom element on the paper\n \\*/\n paperproto.top = paperproto.bottom = null;\n /*\\\n * Paper.raphael\n [ property ]\n **\n * Points to the @Raphael object/function\n \\*/\n paperproto.raphael = R;\n var getOffset = function (elem) {\n var box = elem.getBoundingClientRect(),\n doc = elem.ownerDocument,\n body = doc.body,\n docElem = doc.documentElement,\n clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,\n top = box.top + (g.win.pageYOffset || docElem.scrollTop || body.scrollTop ) - clientTop,\n left = box.left + (g.win.pageXOffset || docElem.scrollLeft || body.scrollLeft) - clientLeft;\n return {\n y: top,\n x: left\n };\n };\n /*\\\n * Paper.getElementByPoint\n [ method ]\n **\n * Returns you topmost element under given point.\n **\n = (object) Raphaël element object\n > Parameters\n **\n - x (number) x coordinate from the top left corner of the window\n - y (number) y coordinate from the top left corner of the window\n > Usage\n | paper.getElementByPoint(mouseX, mouseY).attr({stroke: \"#f00\"});\n \\*/\n paperproto.getElementByPoint = function (x, y) {\n var paper = this,\n svg = paper.canvas,\n target = g.doc.elementFromPoint(x, y);\n if (g.win.opera && target.tagName == \"svg\") {\n var so = getOffset(svg),\n sr = svg.createSVGRect();\n sr.x = x - so.x;\n sr.y = y - so.y;\n sr.width = sr.height = 1;\n var hits = svg.getIntersectionList(sr, null);\n if (hits.length) {\n target = hits[hits.length - 1];\n }\n }\n if (!target) {\n return null;\n }\n while (target.parentNode && target != svg.parentNode && !target.raphael) {\n target = target.parentNode;\n }\n target == paper.canvas.parentNode && (target = svg);\n target = target && target.raphael ? paper.getById(target.raphaelid) : null;\n return target;\n };\n\n /*\\\n * Paper.getElementsByBBox\n [ method ]\n **\n * Returns set of elements that have an intersecting bounding box\n **\n > Parameters\n **\n - bbox (object) bbox to check with\n = (object) @Set\n \\*/\n paperproto.getElementsByBBox = function (bbox) {\n var set = this.set();\n this.forEach(function (el) {\n if (R.isBBoxIntersect(el.getBBox(), bbox)) {\n set.push(el);\n }\n });\n return set;\n };\n\n /*\\\n * Paper.getById\n [ method ]\n **\n * Returns you element by its internal ID.\n **\n > Parameters\n **\n - id (number) id\n = (object) Raphaël element object\n \\*/\n paperproto.getById = function (id) {\n var bot = this.bottom;\n while (bot) {\n if (bot.id == id) {\n return bot;\n }\n bot = bot.next;\n }\n return null;\n };\n /*\\\n * Paper.forEach\n [ method ]\n **\n * Executes given function for each element on the paper\n *\n * If callback function returns `false` it will stop loop running.\n **\n > Parameters\n **\n - callback (function) function to run\n - thisArg (object) context object for the callback\n = (object) Paper object\n > Usage\n | paper.forEach(function (el) {\n | el.attr({ stroke: \"blue\" });\n | });\n \\*/\n paperproto.forEach = function (callback, thisArg) {\n var bot = this.bottom;\n while (bot) {\n if (callback.call(thisArg, bot) === false) {\n return this;\n }\n bot = bot.next;\n }\n return this;\n };\n /*\\\n * Paper.getElementsByPoint\n [ method ]\n **\n * Returns set of elements that have common point inside\n **\n > Parameters\n **\n - x (number) x coordinate of the point\n - y (number) y coordinate of the point\n = (object) @Set\n \\*/\n paperproto.getElementsByPoint = function (x, y) {\n var set = this.set();\n this.forEach(function (el) {\n if (el.isPointInside(x, y)) {\n set.push(el);\n }\n });\n return set;\n };\n function x_y() {\n return this.x + S + this.y;\n }\n function x_y_w_h() {\n return this.x + S + this.y + S + this.width + \" \\xd7 \" + this.height;\n }\n /*\\\n * Element.isPointInside\n [ method ]\n **\n * Determine if given point is inside this element’s shape\n **\n > Parameters\n **\n - x (number) x coordinate of the point\n - y (number) y coordinate of the point\n = (boolean) `true` if point inside the shape\n \\*/\n elproto.isPointInside = function (x, y) {\n var rp = this.realPath = getPath[this.type](this);\n if (this.attr('transform') && this.attr('transform').length) {\n rp = R.transformPath(rp, this.attr('transform'));\n }\n return R.isPointInsidePath(rp, x, y);\n };\n /*\\\n * Element.getBBox\n [ method ]\n **\n * Return bounding box for a given element\n **\n > Parameters\n **\n - isWithoutTransform (boolean) flag, `true` if you want to have bounding box before transformations. Default is `false`.\n = (object) Bounding box object:\n o {\n o x: (number) top left corner x\n o y: (number) top left corner y\n o x2: (number) bottom right corner x\n o y2: (number) bottom right corner y\n o width: (number) width\n o height: (number) height\n o }\n \\*/\n elproto.getBBox = function (isWithoutTransform) {\n if (this.removed) {\n return {};\n }\n var _ = this._;\n if (isWithoutTransform) {\n if (_.dirty || !_.bboxwt) {\n this.realPath = getPath[this.type](this);\n _.bboxwt = pathDimensions(this.realPath);\n _.bboxwt.toString = x_y_w_h;\n _.dirty = 0;\n }\n return _.bboxwt;\n }\n if (_.dirty || _.dirtyT || !_.bbox) {\n if (_.dirty || !this.realPath) {\n _.bboxwt = 0;\n this.realPath = getPath[this.type](this);\n }\n _.bbox = pathDimensions(mapPath(this.realPath, this.matrix));\n _.bbox.toString = x_y_w_h;\n _.dirty = _.dirtyT = 0;\n }\n return _.bbox;\n };\n /*\\\n * Element.clone\n [ method ]\n **\n = (object) clone of a given element\n **\n \\*/\n elproto.clone = function () {\n if (this.removed) {\n return null;\n }\n var out = this.paper[this.type]().attr(this.attr());\n this.__set__ && this.__set__.push(out);\n return out;\n };\n /*\\\n * Element.glow\n [ method ]\n **\n * Return set of elements that create glow-like effect around given element. See @Paper.set.\n *\n * Note: Glow is not connected to the element. If you change element attributes it won’t adjust itself.\n **\n > Parameters\n **\n - glow (object) #optional parameters object with all properties optional:\n o {\n o width (number) size of the glow, default is `10`\n o fill (boolean) will it be filled, default is `false`\n o opacity (number) opacity, default is `0.5`\n o offsetx (number) horizontal offset, default is `0`\n o offsety (number) vertical offset, default is `0`\n o color (string) glow colour, default is `black`\n o }\n = (object) @Paper.set of elements that represents glow\n \\*/\n elproto.glow = function (glow) {\n if (this.type == \"text\") {\n return null;\n }\n glow = glow || {};\n var s = {\n width: (glow.width || 10) + (+this.attr(\"stroke-width\") || 1),\n fill: glow.fill || false,\n opacity: glow.opacity || .5,\n offsetx: glow.offsetx || 0,\n offsety: glow.offsety || 0,\n color: glow.color || \"#000\"\n },\n c = s.width / 2,\n r = this.paper,\n out = r.set(),\n path = this.realPath || getPath[this.type](this);\n path = this.matrix ? mapPath(path, this.matrix) : path;\n for (var i = 1; i < c + 1; i++) {\n out.push(r.path(path).attr({\n stroke: s.color,\n fill: s.fill ? s.color : \"none\",\n \"stroke-linejoin\": \"round\",\n \"stroke-linecap\": \"round\",\n \"stroke-width\": +(s.width / c * i).toFixed(3),\n opacity: +(s.opacity / c).toFixed(3)\n }));\n }\n return out.insertBefore(this).translate(s.offsetx, s.offsety);\n };\n var curveslengths = {},\n getPointAtSegmentLength = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) {\n if (length == null) {\n return bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y);\n } else {\n return R.findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length));\n }\n },\n getLengthFactory = function (istotal, subpath) {\n return function (path, length, onlystart) {\n path = path2curve(path);\n var x, y, p, l, sp = \"\", subpaths = {}, point,\n len = 0;\n for (var i = 0, ii = path.length; i < ii; i++) {\n p = path[i];\n if (p[0] == \"M\") {\n x = +p[1];\n y = +p[2];\n } else {\n l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\n if (len + l > length) {\n if (subpath && !subpaths.start) {\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\n sp += [\"C\" + point.start.x, point.start.y, point.m.x, point.m.y, point.x, point.y];\n if (onlystart) {return sp;}\n subpaths.start = sp;\n sp = [\"M\" + point.x, point.y + \"C\" + point.n.x, point.n.y, point.end.x, point.end.y, p[5], p[6]].join();\n len += l;\n x = +p[5];\n y = +p[6];\n continue;\n }\n if (!istotal && !subpath) {\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\n return {x: point.x, y: point.y, alpha: point.alpha};\n }\n }\n len += l;\n x = +p[5];\n y = +p[6];\n }\n sp += p.shift() + p;\n }\n subpaths.end = sp;\n point = istotal ? len : subpath ? subpaths : R.findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4], p[5], 1);\n point.alpha && (point = {x: point.x, y: point.y, alpha: point.alpha});\n return point;\n };\n };\n var getTotalLength = getLengthFactory(1),\n getPointAtLength = getLengthFactory(),\n getSubpathsAtLength = getLengthFactory(0, 1);\n /*\\\n * Raphael.getTotalLength\n [ method ]\n **\n * Returns length of the given path in pixels.\n **\n > Parameters\n **\n - path (string) SVG path string.\n **\n = (number) length.\n \\*/\n R.getTotalLength = getTotalLength;\n /*\\\n * Raphael.getPointAtLength\n [ method ]\n **\n * Return coordinates of the point located at the given length on the given path.\n **\n > Parameters\n **\n - path (string) SVG path string\n - length (number)\n **\n = (object) representation of the point:\n o {\n o x: (number) x coordinate\n o y: (number) y coordinate\n o alpha: (number) angle of derivative\n o }\n \\*/\n R.getPointAtLength = getPointAtLength;\n /*\\\n * Raphael.getSubpath\n [ method ]\n **\n * Return subpath of a given path from given length to given length.\n **\n > Parameters\n **\n - path (string) SVG path string\n - from (number) position of the start of the segment\n - to (number) position of the end of the segment\n **\n = (string) pathstring for the segment\n \\*/\n R.getSubpath = function (path, from, to) {\n if (this.getTotalLength(path) - to < 1e-6) {\n return getSubpathsAtLength(path, from).end;\n }\n var a = getSubpathsAtLength(path, to, 1);\n return from ? getSubpathsAtLength(a, from).end : a;\n };\n /*\\\n * Element.getTotalLength\n [ method ]\n **\n * Returns length of the path in pixels. Only works for element of “path” type.\n = (number) length.\n \\*/\n elproto.getTotalLength = function () {\n var path = this.getPath();\n if (!path) {\n return;\n }\n\n if (this.node.getTotalLength) {\n return this.node.getTotalLength();\n }\n\n return getTotalLength(path);\n };\n /*\\\n * Element.getPointAtLength\n [ method ]\n **\n * Return coordinates of the point located at the given length on the given path. Only works for element of “path” type.\n **\n > Parameters\n **\n - length (number)\n **\n = (object) representation of the point:\n o {\n o x: (number) x coordinate\n o y: (number) y coordinate\n o alpha: (number) angle of derivative\n o }\n \\*/\n elproto.getPointAtLength = function (length) {\n var path = this.getPath();\n if (!path) {\n return;\n }\n\n return getPointAtLength(path, length);\n };\n /*\\\n * Element.getPath\n [ method ]\n **\n * Returns path of the element. Only works for elements of “path” type and simple elements like circle.\n = (object) path\n **\n \\*/\n elproto.getPath = function () {\n var path,\n getPath = R._getPath[this.type];\n\n if (this.type == \"text\" || this.type == \"set\") {\n return;\n }\n\n if (getPath) {\n path = getPath(this);\n }\n\n return path;\n };\n /*\\\n * Element.getSubpath\n [ method ]\n **\n * Return subpath of a given element from given length to given length. Only works for element of “path” type.\n **\n > Parameters\n **\n - from (number) position of the start of the segment\n - to (number) position of the end of the segment\n **\n = (string) pathstring for the segment\n \\*/\n elproto.getSubpath = function (from, to) {\n var path = this.getPath();\n if (!path) {\n return;\n }\n\n return R.getSubpath(path, from, to);\n };\n /*\\\n * Raphael.easing_formulas\n [ property ]\n **\n * Object that contains easing formulas for animation. You could extend it with your own. By default it has following list of easing:\n # <ul>\n # <li>“linear”</li>\n # <li>“<” or “easeIn” or “ease-in”</li>\n # <li>“>” or “easeOut” or “ease-out”</li>\n # <li>“<>” or “easeInOut” or “ease-in-out”</li>\n # <li>“backIn” or “back-in”</li>\n # <li>“backOut” or “back-out”</li>\n # <li>“elastic”</li>\n # <li>“bounce”</li>\n # </ul>\n # <p>See also <a href=\"http://raphaeljs.com/easing.html\">Easing demo</a>.</p>\n \\*/\n var ef = R.easing_formulas = {\n linear: function (n) {\n return n;\n },\n \"<\": function (n) {\n return pow(n, 1.7);\n },\n \">\": function (n) {\n return pow(n, .48);\n },\n \"<>\": function (n) {\n var q = .48 - n / 1.04,\n Q = math.sqrt(.1734 + q * q),\n x = Q - q,\n X = pow(abs(x), 1 / 3) * (x < 0 ? -1 : 1),\n y = -Q - q,\n Y = pow(abs(y), 1 / 3) * (y < 0 ? -1 : 1),\n t = X + Y + .5;\n return (1 - t) * 3 * t * t + t * t * t;\n },\n backIn: function (n) {\n var s = 1.70158;\n return n * n * ((s + 1) * n - s);\n },\n backOut: function (n) {\n n = n - 1;\n var s = 1.70158;\n return n * n * ((s + 1) * n + s) + 1;\n },\n elastic: function (n) {\n if (n == !!n) {\n return n;\n }\n return pow(2, -10 * n) * math.sin((n - .075) * (2 * PI) / .3) + 1;\n },\n bounce: function (n) {\n var s = 7.5625,\n p = 2.75,\n l;\n if (n < (1 / p)) {\n l = s * n * n;\n } else {\n if (n < (2 / p)) {\n n -= (1.5 / p);\n l = s * n * n + .75;\n } else {\n if (n < (2.5 / p)) {\n n -= (2.25 / p);\n l = s * n * n + .9375;\n } else {\n n -= (2.625 / p);\n l = s * n * n + .984375;\n }\n }\n }\n return l;\n }\n };\n ef.easeIn = ef[\"ease-in\"] = ef[\"<\"];\n ef.easeOut = ef[\"ease-out\"] = ef[\">\"];\n ef.easeInOut = ef[\"ease-in-out\"] = ef[\"<>\"];\n ef[\"back-in\"] = ef.backIn;\n ef[\"back-out\"] = ef.backOut;\n\n var animationElements = [],\n requestAnimFrame = window.requestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n window.oRequestAnimationFrame ||\n window.msRequestAnimationFrame ||\n function (callback) {\n setTimeout(callback, 16);\n },\n animation = function () {\n var Now = +new Date,\n l = 0;\n for (; l < animationElements.length; l++) {\n var e = animationElements[l];\n if (e.el.removed || e.paused) {\n continue;\n }\n var time = Now - e.start,\n ms = e.ms,\n easing = e.easing,\n from = e.from,\n diff = e.diff,\n to = e.to,\n t = e.t,\n that = e.el,\n set = {},\n now,\n init = {},\n key;\n if (e.initstatus) {\n time = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * ms;\n e.status = e.initstatus;\n delete e.initstatus;\n e.stop && animationElements.splice(l--, 1);\n } else {\n e.status = (e.prev + (e.percent - e.prev) * (time / ms)) / e.anim.top;\n }\n if (time < 0) {\n continue;\n }\n if (time < ms) {\n var pos = easing(time / ms);\n for (var attr in from) if (from[has](attr)) {\n switch (availableAnimAttrs[attr]) {\n case nu:\n now = +from[attr] + pos * ms * diff[attr];\n break;\n case \"colour\":\n now = \"rgb(\" + [\n upto255(round(from[attr].r + pos * ms * diff[attr].r)),\n upto255(round(from[attr].g + pos * ms * diff[attr].g)),\n upto255(round(from[attr].b + pos * ms * diff[attr].b))\n ].join(\",\") + \")\";\n break;\n case \"path\":\n now = [];\n for (var i = 0, ii = from[attr].length; i < ii; i++) {\n now[i] = [from[attr][i][0]];\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\n now[i][j] = +from[attr][i][j] + pos * ms * diff[attr][i][j];\n }\n now[i] = now[i].join(S);\n }\n now = now.join(S);\n break;\n case \"transform\":\n if (diff[attr].real) {\n now = [];\n for (i = 0, ii = from[attr].length; i < ii; i++) {\n now[i] = [from[attr][i][0]];\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\n now[i][j] = from[attr][i][j] + pos * ms * diff[attr][i][j];\n }\n }\n } else {\n var get = function (i) {\n return +from[attr][i] + pos * ms * diff[attr][i];\n };\n // now = [[\"r\", get(2), 0, 0], [\"t\", get(3), get(4)], [\"s\", get(0), get(1), 0, 0]];\n now = [[\"m\", get(0), get(1), get(2), get(3), get(4), get(5)]];\n }\n break;\n case \"csv\":\n if (attr == \"clip-rect\") {\n now = [];\n i = 4;\n while (i--) {\n now[i] = +from[attr][i] + pos * ms * diff[attr][i];\n }\n }\n break;\n default:\n var from2 = [][concat](from[attr]);\n now = [];\n i = that.paper.customAttributes[attr].length;\n while (i--) {\n now[i] = +from2[i] + pos * ms * diff[attr][i];\n }\n break;\n }\n set[attr] = now;\n }\n that.attr(set);\n (function (id, that, anim) {\n setTimeout(function () {\n eve(\"raphael.anim.frame.\" + id, that, anim);\n });\n })(that.id, that, e.anim);\n } else {\n (function(f, el, a) {\n setTimeout(function() {\n eve(\"raphael.anim.frame.\" + el.id, el, a);\n eve(\"raphael.anim.finish.\" + el.id, el, a);\n R.is(f, \"function\") && f.call(el);\n });\n })(e.callback, that, e.anim);\n that.attr(to);\n animationElements.splice(l--, 1);\n if (e.repeat > 1 && !e.next) {\n for (key in to) if (to[has](key)) {\n init[key] = e.totalOrigin[key];\n }\n e.el.attr(init);\n runAnimation(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1);\n }\n if (e.next && !e.stop) {\n runAnimation(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat);\n }\n }\n }\n R.svg && that && that.paper && that.paper.safari();\n animationElements.length && requestAnimFrame(animation);\n },\n upto255 = function (color) {\n return color > 255 ? 255 : color < 0 ? 0 : color;\n };\n /*\\\n * Element.animateWith\n [ method ]\n **\n * Acts similar to @Element.animate, but ensure that given animation runs in sync with another given element.\n **\n > Parameters\n **\n - el (object) element to sync with\n - anim (object) animation to sync with\n - params (object) #optional final attributes for the element, see also @Element.attr\n - ms (number) #optional number of milliseconds for animation to run\n - easing (string) #optional easing type. Accept on of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\n - callback (function) #optional callback function. Will be called at the end of animation.\n * or\n - element (object) element to sync with\n - anim (object) animation to sync with\n - animation (object) #optional animation object, see @Raphael.animation\n **\n = (object) original element\n \\*/\n elproto.animateWith = function (el, anim, params, ms, easing, callback) {\n var element = this;\n if (element.removed) {\n callback && callback.call(element);\n return element;\n }\n var a = params instanceof Animation ? params : R.animation(params, ms, easing, callback),\n x, y;\n runAnimation(a, element, a.percents[0], null, element.attr());\n for (var i = 0, ii = animationElements.length; i < ii; i++) {\n if (animationElements[i].anim == anim && animationElements[i].el == el) {\n animationElements[ii - 1].start = animationElements[i].start;\n break;\n }\n }\n return element;\n //\n //\n // var a = params ? R.animation(params, ms, easing, callback) : anim,\n // status = element.status(anim);\n // return this.animate(a).status(a, status * anim.ms / a.ms);\n };\n function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {\n var cx = 3 * p1x,\n bx = 3 * (p2x - p1x) - cx,\n ax = 1 - cx - bx,\n cy = 3 * p1y,\n by = 3 * (p2y - p1y) - cy,\n ay = 1 - cy - by;\n function sampleCurveX(t) {\n return ((ax * t + bx) * t + cx) * t;\n }\n function solve(x, epsilon) {\n var t = solveCurveX(x, epsilon);\n return ((ay * t + by) * t + cy) * t;\n }\n function solveCurveX(x, epsilon) {\n var t0, t1, t2, x2, d2, i;\n for(t2 = x, i = 0; i < 8; i++) {\n x2 = sampleCurveX(t2) - x;\n if (abs(x2) < epsilon) {\n return t2;\n }\n d2 = (3 * ax * t2 + 2 * bx) * t2 + cx;\n if (abs(d2) < 1e-6) {\n break;\n }\n t2 = t2 - x2 / d2;\n }\n t0 = 0;\n t1 = 1;\n t2 = x;\n if (t2 < t0) {\n return t0;\n }\n if (t2 > t1) {\n return t1;\n }\n while (t0 < t1) {\n x2 = sampleCurveX(t2);\n if (abs(x2 - x) < epsilon) {\n return t2;\n }\n if (x > x2) {\n t0 = t2;\n } else {\n t1 = t2;\n }\n t2 = (t1 - t0) / 2 + t0;\n }\n return t2;\n }\n return solve(t, 1 / (200 * duration));\n }\n elproto.onAnimation = function (f) {\n f ? eve.on(\"raphael.anim.frame.\" + this.id, f) : eve.unbind(\"raphael.anim.frame.\" + this.id);\n return this;\n };\n function Animation(anim, ms) {\n var percents = [],\n newAnim = {};\n this.ms = ms;\n this.times = 1;\n if (anim) {\n for (var attr in anim) if (anim[has](attr)) {\n newAnim[toFloat(attr)] = anim[attr];\n percents.push(toFloat(attr));\n }\n percents.sort(sortByNumber);\n }\n this.anim = newAnim;\n this.top = percents[percents.length - 1];\n this.percents = percents;\n }\n /*\\\n * Animation.delay\n [ method ]\n **\n * Creates a copy of existing animation object with given delay.\n **\n > Parameters\n **\n - delay (number) number of ms to pass between animation start and actual animation\n **\n = (object) new altered Animation object\n | var anim = Raphael.animation({cx: 10, cy: 20}, 2e3);\n | circle1.animate(anim); // run the given animation immediately\n | circle2.animate(anim.delay(500)); // run the given animation after 500 ms\n \\*/\n Animation.prototype.delay = function (delay) {\n var a = new Animation(this.anim, this.ms);\n a.times = this.times;\n a.del = +delay || 0;\n return a;\n };\n /*\\\n * Animation.repeat\n [ method ]\n **\n * Creates a copy of existing animation object with given repetition.\n **\n > Parameters\n **\n - repeat (number) number iterations of animation. For infinite animation pass `Infinity`\n **\n = (object) new altered Animation object\n \\*/\n Animation.prototype.repeat = function (times) {\n var a = new Animation(this.anim, this.ms);\n a.del = this.del;\n a.times = math.floor(mmax(times, 0)) || 1;\n return a;\n };\n function runAnimation(anim, element, percent, status, totalOrigin, times) {\n percent = toFloat(percent);\n var params,\n isInAnim,\n isInAnimSet,\n percents = [],\n next,\n prev,\n timestamp,\n ms = anim.ms,\n from = {},\n to = {},\n diff = {};\n if (status) {\n for (i = 0, ii = animationElements.length; i < ii; i++) {\n var e = animationElements[i];\n if (e.el.id == element.id && e.anim == anim) {\n if (e.percent != percent) {\n animationElements.splice(i, 1);\n isInAnimSet = 1;\n } else {\n isInAnim = e;\n }\n element.attr(e.totalOrigin);\n break;\n }\n }\n } else {\n status = +to; // NaN\n }\n for (var i = 0, ii = anim.percents.length; i < ii; i++) {\n if (anim.percents[i] == percent || anim.percents[i] > status * anim.top) {\n percent = anim.percents[i];\n prev = anim.percents[i - 1] || 0;\n ms = ms / anim.top * (percent - prev);\n next = anim.percents[i + 1];\n params = anim.anim[percent];\n break;\n } else if (status) {\n element.attr(anim.anim[anim.percents[i]]);\n }\n }\n if (!params) {\n return;\n }\n if (!isInAnim) {\n for (var attr in params) if (params[has](attr)) {\n if (availableAnimAttrs[has](attr) || element.paper.customAttributes[has](attr)) {\n from[attr] = element.attr(attr);\n (from[attr] == null) && (from[attr] = availableAttrs[attr]);\n to[attr] = params[attr];\n switch (availableAnimAttrs[attr]) {\n case nu:\n diff[attr] = (to[attr] - from[attr]) / ms;\n break;\n case \"colour\":\n from[attr] = R.getRGB(from[attr]);\n var toColour = R.getRGB(to[attr]);\n diff[attr] = {\n r: (toColour.r - from[attr].r) / ms,\n g: (toColour.g - from[attr].g) / ms,\n b: (toColour.b - from[attr].b) / ms\n };\n break;\n case \"path\":\n var pathes = path2curve(from[attr], to[attr]),\n toPath = pathes[1];\n from[attr] = pathes[0];\n diff[attr] = [];\n for (i = 0, ii = from[attr].length; i < ii; i++) {\n diff[attr][i] = [0];\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\n diff[attr][i][j] = (toPath[i][j] - from[attr][i][j]) / ms;\n }\n }\n break;\n case \"transform\":\n var _ = element._,\n eq = equaliseTransform(_[attr], to[attr]);\n if (eq) {\n from[attr] = eq.from;\n to[attr] = eq.to;\n diff[attr] = [];\n diff[attr].real = true;\n for (i = 0, ii = from[attr].length; i < ii; i++) {\n diff[attr][i] = [from[attr][i][0]];\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\n diff[attr][i][j] = (to[attr][i][j] - from[attr][i][j]) / ms;\n }\n }\n } else {\n var m = (element.matrix || new Matrix),\n to2 = {\n _: {transform: _.transform},\n getBBox: function () {\n return element.getBBox(1);\n }\n };\n from[attr] = [\n m.a,\n m.b,\n m.c,\n m.d,\n m.e,\n m.f\n ];\n extractTransform(to2, to[attr]);\n to[attr] = to2._.transform;\n diff[attr] = [\n (to2.matrix.a - m.a) / ms,\n (to2.matrix.b - m.b) / ms,\n (to2.matrix.c - m.c) / ms,\n (to2.matrix.d - m.d) / ms,\n (to2.matrix.e - m.e) / ms,\n (to2.matrix.f - m.f) / ms\n ];\n // from[attr] = [_.sx, _.sy, _.deg, _.dx, _.dy];\n // var to2 = {_:{}, getBBox: function () { return element.getBBox(); }};\n // extractTransform(to2, to[attr]);\n // diff[attr] = [\n // (to2._.sx - _.sx) / ms,\n // (to2._.sy - _.sy) / ms,\n // (to2._.deg - _.deg) / ms,\n // (to2._.dx - _.dx) / ms,\n // (to2._.dy - _.dy) / ms\n // ];\n }\n break;\n case \"csv\":\n var values = Str(params[attr])[split](separator),\n from2 = Str(from[attr])[split](separator);\n if (attr == \"clip-rect\") {\n from[attr] = from2;\n diff[attr] = [];\n i = from2.length;\n while (i--) {\n diff[attr][i] = (values[i] - from[attr][i]) / ms;\n }\n }\n to[attr] = values;\n break;\n default:\n values = [][concat](params[attr]);\n from2 = [][concat](from[attr]);\n diff[attr] = [];\n i = element.paper.customAttributes[attr].length;\n while (i--) {\n diff[attr][i] = ((values[i] || 0) - (from2[i] || 0)) / ms;\n }\n break;\n }\n }\n }\n var easing = params.easing,\n easyeasy = R.easing_formulas[easing];\n if (!easyeasy) {\n easyeasy = Str(easing).match(bezierrg);\n if (easyeasy && easyeasy.length == 5) {\n var curve = easyeasy;\n easyeasy = function (t) {\n return CubicBezierAtTime(t, +curve[1], +curve[2], +curve[3], +curve[4], ms);\n };\n } else {\n easyeasy = pipe;\n }\n }\n timestamp = params.start || anim.start || +new Date;\n e = {\n anim: anim,\n percent: percent,\n timestamp: timestamp,\n start: timestamp + (anim.del || 0),\n status: 0,\n initstatus: status || 0,\n stop: false,\n ms: ms,\n easing: easyeasy,\n from: from,\n diff: diff,\n to: to,\n el: element,\n callback: params.callback,\n prev: prev,\n next: next,\n repeat: times || anim.times,\n origin: element.attr(),\n totalOrigin: totalOrigin\n };\n animationElements.push(e);\n if (status && !isInAnim && !isInAnimSet) {\n e.stop = true;\n e.start = new Date - ms * status;\n if (animationElements.length == 1) {\n return animation();\n }\n }\n if (isInAnimSet) {\n e.start = new Date - e.ms * status;\n }\n animationElements.length == 1 && requestAnimFrame(animation);\n } else {\n isInAnim.initstatus = status;\n isInAnim.start = new Date - isInAnim.ms * status;\n }\n eve(\"raphael.anim.start.\" + element.id, element, anim);\n }\n /*\\\n * Raphael.animation\n [ method ]\n **\n * Creates an animation object that can be passed to the @Element.animate or @Element.animateWith methods.\n * See also @Animation.delay and @Animation.repeat methods.\n **\n > Parameters\n **\n - params (object) final attributes for the element, see also @Element.attr\n - ms (number) number of milliseconds for animation to run\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\n - callback (function) #optional callback function. Will be called at the end of animation.\n **\n = (object) @Animation\n \\*/\n R.animation = function (params, ms, easing, callback) {\n if (params instanceof Animation) {\n return params;\n }\n if (R.is(easing, \"function\") || !easing) {\n callback = callback || easing || null;\n easing = null;\n }\n params = Object(params);\n ms = +ms || 0;\n var p = {},\n json,\n attr;\n for (attr in params) if (params[has](attr) && toFloat(attr) != attr && toFloat(attr) + \"%\" != attr) {\n json = true;\n p[attr] = params[attr];\n }\n if (!json) {\n // if percent-like syntax is used and end-of-all animation callback used\n if(callback){\n // find the last one\n var lastKey = 0;\n for(var i in params){\n var percent = toInt(i);\n if(params[has](i) && percent > lastKey){\n lastKey = percent;\n }\n }\n lastKey += '%';\n // if already defined callback in the last keyframe, skip\n !params[lastKey].callback && (params[lastKey].callback = callback);\n }\n return new Animation(params, ms);\n } else {\n easing && (p.easing = easing);\n callback && (p.callback = callback);\n return new Animation({100: p}, ms);\n }\n };\n /*\\\n * Element.animate\n [ method ]\n **\n * Creates and starts animation for given element.\n **\n > Parameters\n **\n - params (object) final attributes for the element, see also @Element.attr\n - ms (number) number of milliseconds for animation to run\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\n - callback (function) #optional callback function. Will be called at the end of animation.\n * or\n - animation (object) animation object, see @Raphael.animation\n **\n = (object) original element\n \\*/\n elproto.animate = function (params, ms, easing, callback) {\n var element = this;\n if (element.removed) {\n callback && callback.call(element);\n return element;\n }\n var anim = params instanceof Animation ? params : R.animation(params, ms, easing, callback);\n runAnimation(anim, element, anim.percents[0], null, element.attr());\n return element;\n };\n /*\\\n * Element.setTime\n [ method ]\n **\n * Sets the status of animation of the element in milliseconds. Similar to @Element.status method.\n **\n > Parameters\n **\n - anim (object) animation object\n - value (number) number of milliseconds from the beginning of the animation\n **\n = (object) original element if `value` is specified\n * Note, that during animation following events are triggered:\n *\n * On each animation frame event `anim.frame.<id>`, on start `anim.start.<id>` and on end `anim.finish.<id>`.\n \\*/\n elproto.setTime = function (anim, value) {\n if (anim && value != null) {\n this.status(anim, mmin(value, anim.ms) / anim.ms);\n }\n return this;\n };\n /*\\\n * Element.status\n [ method ]\n **\n * Gets or sets the status of animation of the element.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n - value (number) #optional 0 – 1. If specified, method works like a setter and sets the status of a given animation to the value. This will cause animation to jump to the given position.\n **\n = (number) status\n * or\n = (array) status if `anim` is not specified. Array of objects in format:\n o {\n o anim: (object) animation object\n o status: (number) status\n o }\n * or\n = (object) original element if `value` is specified\n \\*/\n elproto.status = function (anim, value) {\n var out = [],\n i = 0,\n len,\n e;\n if (value != null) {\n runAnimation(anim, this, -1, mmin(value, 1));\n return this;\n } else {\n len = animationElements.length;\n for (; i < len; i++) {\n e = animationElements[i];\n if (e.el.id == this.id && (!anim || e.anim == anim)) {\n if (anim) {\n return e.status;\n }\n out.push({\n anim: e.anim,\n status: e.status\n });\n }\n }\n if (anim) {\n return 0;\n }\n return out;\n }\n };\n /*\\\n * Element.pause\n [ method ]\n **\n * Stops animation of the element with ability to resume it later on.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n **\n = (object) original element\n \\*/\n elproto.pause = function (anim) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\n if (eve(\"raphael.anim.pause.\" + this.id, this, animationElements[i].anim) !== false) {\n animationElements[i].paused = true;\n }\n }\n return this;\n };\n /*\\\n * Element.resume\n [ method ]\n **\n * Resumes animation if it was paused with @Element.pause method.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n **\n = (object) original element\n \\*/\n elproto.resume = function (anim) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\n var e = animationElements[i];\n if (eve(\"raphael.anim.resume.\" + this.id, this, e.anim) !== false) {\n delete e.paused;\n this.status(e.anim, e.status);\n }\n }\n return this;\n };\n /*\\\n * Element.stop\n [ method ]\n **\n * Stops animation of the element.\n **\n > Parameters\n **\n - anim (object) #optional animation object\n **\n = (object) original element\n \\*/\n elproto.stop = function (anim) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\n if (eve(\"raphael.anim.stop.\" + this.id, this, animationElements[i].anim) !== false) {\n animationElements.splice(i--, 1);\n }\n }\n return this;\n };\n function stopAnimation(paper) {\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.paper == paper) {\n animationElements.splice(i--, 1);\n }\n }\n eve.on(\"raphael.remove\", stopAnimation);\n eve.on(\"raphael.clear\", stopAnimation);\n elproto.toString = function () {\n return \"Rapha\\xebl\\u2019s object\";\n };\n\n // Set\n var Set = function (items) {\n this.items = [];\n this.length = 0;\n this.type = \"set\";\n if (items) {\n for (var i = 0, ii = items.length; i < ii; i++) {\n if (items[i] && (items[i].constructor == elproto.constructor || items[i].constructor == Set)) {\n this[this.items.length] = this.items[this.items.length] = items[i];\n this.length++;\n }\n }\n }\n },\n setproto = Set.prototype;\n /*\\\n * Set.push\n [ method ]\n **\n * Adds each argument to the current set.\n = (object) original element\n \\*/\n setproto.push = function () {\n var item,\n len;\n for (var i = 0, ii = arguments.length; i < ii; i++) {\n item = arguments[i];\n if (item && (item.constructor == elproto.constructor || item.constructor == Set)) {\n len = this.items.length;\n this[len] = this.items[len] = item;\n this.length++;\n }\n }\n return this;\n };\n /*\\\n * Set.pop\n [ method ]\n **\n * Removes last element and returns it.\n = (object) element\n \\*/\n setproto.pop = function () {\n this.length && delete this[this.length--];\n return this.items.pop();\n };\n /*\\\n * Set.forEach\n [ method ]\n **\n * Executes given function for each element in the set.\n *\n * If function returns `false` it will stop loop running.\n **\n > Parameters\n **\n - callback (function) function to run\n - thisArg (object) context object for the callback\n = (object) Set object\n \\*/\n setproto.forEach = function (callback, thisArg) {\n for (var i = 0, ii = this.items.length; i < ii; i++) {\n if (callback.call(thisArg, this.items[i], i) === false) {\n return this;\n }\n }\n return this;\n };\n for (var method in elproto) if (elproto[has](method)) {\n setproto[method] = (function (methodname) {\n return function () {\n var arg = arguments;\n return this.forEach(function (el) {\n el[methodname][apply](el, arg);\n });\n };\n })(method);\n }\n setproto.attr = function (name, value) {\n if (name && R.is(name, array) && R.is(name[0], \"object\")) {\n for (var j = 0, jj = name.length; j < jj; j++) {\n this.items[j].attr(name[j]);\n }\n } else {\n for (var i = 0, ii = this.items.length; i < ii; i++) {\n this.items[i].attr(name, value);\n }\n }\n return this;\n };\n /*\\\n * Set.clear\n [ method ]\n **\n * Removes all elements from the set\n \\*/\n setproto.clear = function () {\n while (this.length) {\n this.pop();\n }\n };\n /*\\\n * Set.splice\n [ method ]\n **\n * Removes given element from the set\n **\n > Parameters\n **\n - index (number) position of the deletion\n - count (number) number of element to remove\n - insertion… (object) #optional elements to insert\n = (object) set elements that were deleted\n \\*/\n setproto.splice = function (index, count, insertion) {\n index = index < 0 ? mmax(this.length + index, 0) : index;\n count = mmax(0, mmin(this.length - index, count));\n var tail = [],\n todel = [],\n args = [],\n i;\n for (i = 2; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n for (i = 0; i < count; i++) {\n todel.push(this[index + i]);\n }\n for (; i < this.length - index; i++) {\n tail.push(this[index + i]);\n }\n var arglen = args.length;\n for (i = 0; i < arglen + tail.length; i++) {\n this.items[index + i] = this[index + i] = i < arglen ? args[i] : tail[i - arglen];\n }\n i = this.items.length = this.length -= count - arglen;\n while (this[i]) {\n delete this[i++];\n }\n return new Set(todel);\n };\n /*\\\n * Set.exclude\n [ method ]\n **\n * Removes given element from the set\n **\n > Parameters\n **\n - element (object) element to remove\n = (boolean) `true` if object was found & removed from the set\n \\*/\n setproto.exclude = function (el) {\n for (var i = 0, ii = this.length; i < ii; i++) if (this[i] == el) {\n this.splice(i, 1);\n return true;\n }\n };\n setproto.animate = function (params, ms, easing, callback) {\n (R.is(easing, \"function\") || !easing) && (callback = easing || null);\n var len = this.items.length,\n i = len,\n item,\n set = this,\n collector;\n if (!len) {\n return this;\n }\n callback && (collector = function () {\n !--len && callback.call(set);\n });\n easing = R.is(easing, string) ? easing : collector;\n var anim = R.animation(params, ms, easing, collector);\n item = this.items[--i].animate(anim);\n while (i--) {\n this.items[i] && !this.items[i].removed && this.items[i].animateWith(item, anim, anim);\n (this.items[i] && !this.items[i].removed) || len--;\n }\n return this;\n };\n setproto.insertAfter = function (el) {\n var i = this.items.length;\n while (i--) {\n this.items[i].insertAfter(el);\n }\n return this;\n };\n setproto.getBBox = function () {\n var x = [],\n y = [],\n x2 = [],\n y2 = [];\n for (var i = this.items.length; i--;) if (!this.items[i].removed) {\n var box = this.items[i].getBBox();\n x.push(box.x);\n y.push(box.y);\n x2.push(box.x + box.width);\n y2.push(box.y + box.height);\n }\n x = mmin[apply](0, x);\n y = mmin[apply](0, y);\n x2 = mmax[apply](0, x2);\n y2 = mmax[apply](0, y2);\n return {\n x: x,\n y: y,\n x2: x2,\n y2: y2,\n width: x2 - x,\n height: y2 - y\n };\n };\n setproto.clone = function (s) {\n s = this.paper.set();\n for (var i = 0, ii = this.items.length; i < ii; i++) {\n s.push(this.items[i].clone());\n }\n return s;\n };\n setproto.toString = function () {\n return \"Rapha\\xebl\\u2018s set\";\n };\n\n setproto.glow = function(glowConfig) {\n var ret = this.paper.set();\n this.forEach(function(shape, index){\n var g = shape.glow(glowConfig);\n if(g != null){\n g.forEach(function(shape2, index2){\n ret.push(shape2);\n });\n }\n });\n return ret;\n };\n\n\n /*\\\n * Set.isPointInside\n [ method ]\n **\n * Determine if given point is inside this set’s elements\n **\n > Parameters\n **\n - x (number) x coordinate of the point\n - y (number) y coordinate of the point\n = (boolean) `true` if point is inside any of the set's elements\n \\*/\n setproto.isPointInside = function (x, y) {\n var isPointInside = false;\n this.forEach(function (el) {\n if (el.isPointInside(x, y)) {\n isPointInside = true;\n return false; // stop loop\n }\n });\n return isPointInside;\n };\n\n /*\\\n * Raphael.registerFont\n [ method ]\n **\n * Adds given font to the registered set of fonts for Raphaël. Should be used as an internal call from within Cufón’s font file.\n * Returns original parameter, so it could be used with chaining.\n # <a href=\"http://wiki.github.com/sorccu/cufon/about\">More about Cufón and how to convert your font form TTF, OTF, etc to JavaScript file.</a>\n **\n > Parameters\n **\n - font (object) the font to register\n = (object) the font you passed in\n > Usage\n | Cufon.registerFont(Raphael.registerFont({…}));\n \\*/\n R.registerFont = function (font) {\n if (!font.face) {\n return font;\n }\n this.fonts = this.fonts || {};\n var fontcopy = {\n w: font.w,\n face: {},\n glyphs: {}\n },\n family = font.face[\"font-family\"];\n for (var prop in font.face) if (font.face[has](prop)) {\n fontcopy.face[prop] = font.face[prop];\n }\n if (this.fonts[family]) {\n this.fonts[family].push(fontcopy);\n } else {\n this.fonts[family] = [fontcopy];\n }\n if (!font.svg) {\n fontcopy.face[\"units-per-em\"] = toInt(font.face[\"units-per-em\"], 10);\n for (var glyph in font.glyphs) if (font.glyphs[has](glyph)) {\n var path = font.glyphs[glyph];\n fontcopy.glyphs[glyph] = {\n w: path.w,\n k: {},\n d: path.d && \"M\" + path.d.replace(/[mlcxtrv]/g, function (command) {\n return {l: \"L\", c: \"C\", x: \"z\", t: \"m\", r: \"l\", v: \"c\"}[command] || \"M\";\n }) + \"z\"\n };\n if (path.k) {\n for (var k in path.k) if (path[has](k)) {\n fontcopy.glyphs[glyph].k[k] = path.k[k];\n }\n }\n }\n }\n return font;\n };\n /*\\\n * Paper.getFont\n [ method ]\n **\n * Finds font object in the registered fonts by given parameters. You could specify only one word from the font name, like “Myriad” for “Myriad Pro”.\n **\n > Parameters\n **\n - family (string) font family name or any word from it\n - weight (string) #optional font weight\n - style (string) #optional font style\n - stretch (string) #optional font stretch\n = (object) the font object\n > Usage\n | paper.print(100, 100, \"Test string\", paper.getFont(\"Times\", 800), 30);\n \\*/\n paperproto.getFont = function (family, weight, style, stretch) {\n stretch = stretch || \"normal\";\n style = style || \"normal\";\n weight = +weight || {normal: 400, bold: 700, lighter: 300, bolder: 800}[weight] || 400;\n if (!R.fonts) {\n return;\n }\n var font = R.fonts[family];\n if (!font) {\n var name = new RegExp(\"(^|\\\\s)\" + family.replace(/[^\\w\\d\\s+!~.:_-]/g, E) + \"(\\\\s|$)\", \"i\");\n for (var fontName in R.fonts) if (R.fonts[has](fontName)) {\n if (name.test(fontName)) {\n font = R.fonts[fontName];\n break;\n }\n }\n }\n var thefont;\n if (font) {\n for (var i = 0, ii = font.length; i < ii; i++) {\n thefont = font[i];\n if (thefont.face[\"font-weight\"] == weight && (thefont.face[\"font-style\"] == style || !thefont.face[\"font-style\"]) && thefont.face[\"font-stretch\"] == stretch) {\n break;\n }\n }\n }\n return thefont;\n };\n /*\\\n * Paper.print\n [ method ]\n **\n * Creates path that represent given text written using given font at given position with given size.\n * Result of the method is path element that contains whole text as a separate path.\n **\n > Parameters\n **\n - x (number) x position of the text\n - y (number) y position of the text\n - string (string) text to print\n - font (object) font object, see @Paper.getFont\n - size (number) #optional size of the font, default is `16`\n - origin (string) #optional could be `\"baseline\"` or `\"middle\"`, default is `\"middle\"`\n - letter_spacing (number) #optional number in range `-1..1`, default is `0`\n - line_spacing (number) #optional number in range `1..3`, default is `1`\n = (object) resulting path element, which consist of all letters\n > Usage\n | var txt = r.print(10, 50, \"print\", r.getFont(\"Museo\"), 30).attr({fill: \"#fff\"});\n \\*/\n paperproto.print = function (x, y, string, font, size, origin, letter_spacing, line_spacing) {\n origin = origin || \"middle\"; // baseline|middle\n letter_spacing = mmax(mmin(letter_spacing || 0, 1), -1);\n line_spacing = mmax(mmin(line_spacing || 1, 3), 1);\n var letters = Str(string)[split](E),\n shift = 0,\n notfirst = 0,\n path = E,\n scale;\n R.is(font, \"string\") && (font = this.getFont(font));\n if (font) {\n scale = (size || 16) / font.face[\"units-per-em\"];\n var bb = font.face.bbox[split](separator),\n top = +bb[0],\n lineHeight = bb[3] - bb[1],\n shifty = 0,\n height = +bb[1] + (origin == \"baseline\" ? lineHeight + (+font.face.descent) : lineHeight / 2);\n for (var i = 0, ii = letters.length; i < ii; i++) {\n if (letters[i] == \"\\n\") {\n shift = 0;\n curr = 0;\n notfirst = 0;\n shifty += lineHeight * line_spacing;\n } else {\n var prev = notfirst && font.glyphs[letters[i - 1]] || {},\n curr = font.glyphs[letters[i]];\n shift += notfirst ? (prev.w || font.w) + (prev.k && prev.k[letters[i]] || 0) + (font.w * letter_spacing) : 0;\n notfirst = 1;\n }\n if (curr && curr.d) {\n path += R.transformPath(curr.d, [\"t\", shift * scale, shifty * scale, \"s\", scale, scale, top, height, \"t\", (x - top) / scale, (y - height) / scale]);\n }\n }\n }\n return this.path(path).attr({\n fill: \"#000\",\n stroke: \"none\"\n });\n };\n\n /*\\\n * Paper.add\n [ method ]\n **\n * Imports elements in JSON array in format `{type: type, <attributes>}`\n **\n > Parameters\n **\n - json (array)\n = (object) resulting set of imported elements\n > Usage\n | paper.add([\n | {\n | type: \"circle\",\n | cx: 10,\n | cy: 10,\n | r: 5\n | },\n | {\n | type: \"rect\",\n | x: 10,\n | y: 10,\n | width: 10,\n | height: 10,\n | fill: \"#fc0\"\n | }\n | ]);\n \\*/\n paperproto.add = function (json) {\n if (R.is(json, \"array\")) {\n var res = this.set(),\n i = 0,\n ii = json.length,\n j;\n for (; i < ii; i++) {\n j = json[i] || {};\n elements[has](j.type) && res.push(this[j.type]().attr(j));\n }\n }\n return res;\n };\n\n /*\\\n * Raphael.format\n [ method ]\n **\n * Simple format function. Replaces construction of type “`{<number>}`” to the corresponding argument.\n **\n > Parameters\n **\n - token (string) string to format\n - … (string) rest of arguments will be treated as parameters for replacement\n = (string) formated string\n > Usage\n | var x = 10,\n | y = 20,\n | width = 40,\n | height = 50;\n | // this will draw a rectangular shape equivalent to \"M10,20h40v50h-40z\"\n | paper.path(Raphael.format(\"M{0},{1}h{2}v{3}h{4}z\", x, y, width, height, -width));\n \\*/\n R.format = function (token, params) {\n var args = R.is(params, array) ? [0][concat](params) : arguments;\n token && R.is(token, string) && args.length - 1 && (token = token.replace(formatrg, function (str, i) {\n return args[++i] == null ? E : args[i];\n }));\n return token || E;\n };\n /*\\\n * Raphael.fullfill\n [ method ]\n **\n * A little bit more advanced format function than @Raphael.format. Replaces construction of type “`{<name>}`” to the corresponding argument.\n **\n > Parameters\n **\n - token (string) string to format\n - json (object) object which properties will be used as a replacement\n = (string) formated string\n > Usage\n | // this will draw a rectangular shape equivalent to \"M10,20h40v50h-40z\"\n | paper.path(Raphael.fullfill(\"M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']}z\", {\n | x: 10,\n | y: 20,\n | dim: {\n | width: 40,\n | height: 50,\n | \"negative width\": -40\n | }\n | }));\n \\*/\n R.fullfill = (function () {\n var tokenRegex = /\\{([^\\}]+)\\}/g,\n objNotationRegex = /(?:(?:^|\\.)(.+?)(?=\\[|\\.|$|\\()|\\[('|\")(.+?)\\2\\])(\\(\\))?/g, // matches .xxxxx or [\"xxxxx\"] to run over object properties\n replacer = function (all, key, obj) {\n var res = obj;\n key.replace(objNotationRegex, function (all, name, quote, quotedName, isFunc) {\n name = name || quotedName;\n if (res) {\n if (name in res) {\n res = res[name];\n }\n typeof res == \"function\" && isFunc && (res = res());\n }\n });\n res = (res == null || res == obj ? all : res) + \"\";\n return res;\n };\n return function (str, obj) {\n return String(str).replace(tokenRegex, function (all, key) {\n return replacer(all, key, obj);\n });\n };\n })();\n /*\\\n * Raphael.ninja\n [ method ]\n **\n * If you want to leave no trace of Raphaël (Well, Raphaël creates only one global variable `Raphael`, but anyway.) You can use `ninja` method.\n * Beware, that in this case plugins could stop working, because they are depending on global variable existance.\n **\n = (object) Raphael object\n > Usage\n | (function (local_raphael) {\n | var paper = local_raphael(10, 10, 320, 200);\n | …\n | })(Raphael.ninja());\n \\*/\n R.ninja = function () {\n oldRaphael.was ? (g.win.Raphael = oldRaphael.is) : delete Raphael;\n return R;\n };\n /*\\\n * Raphael.st\n [ property (object) ]\n **\n * You can add your own method to elements and sets. It is wise to add a set method for each element method\n * you added, so you will be able to call the same method on sets too.\n **\n * See also @Raphael.el.\n > Usage\n | Raphael.el.red = function () {\n | this.attr({fill: \"#f00\"});\n | };\n | Raphael.st.red = function () {\n | this.forEach(function (el) {\n | el.red();\n | });\n | };\n | // then use it\n | paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();\n \\*/\n R.st = setproto;\n\n eve.on(\"raphael.DOMload\", function () {\n loaded = true;\n });\n\n // Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html\n (function (doc, loaded, f) {\n if (doc.readyState == null && doc.addEventListener){\n doc.addEventListener(loaded, f = function () {\n doc.removeEventListener(loaded, f, false);\n doc.readyState = \"complete\";\n }, false);\n doc.readyState = \"loading\";\n }\n function isLoaded() {\n (/in/).test(doc.readyState) ? setTimeout(isLoaded, 9) : R.eve(\"raphael.DOMload\");\n }\n isLoaded();\n })(document, \"DOMContentLoaded\");\n\n// ┌─────────────────────────────────────────────────────────────────────┐ \\\\\n// │ Raphaël - JavaScript Vector Library │ \\\\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\n// │ SVG Module │ \\\\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\n// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\\\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\\\\n// └─────────────────────────────────────────────────────────────────────┘ \\\\\n\n(function(){\n if (!R.svg) {\n return;\n }\n var has = \"hasOwnProperty\",\n Str = String,\n toFloat = parseFloat,\n toInt = parseInt,\n math = Math,\n mmax = math.max,\n abs = math.abs,\n pow = math.pow,\n separator = /[, ]+/,\n eve = R.eve,\n E = \"\",\n S = \" \";\n var xlink = \"http://www.w3.org/1999/xlink\",\n markers = {\n block: \"M5,0 0,2.5 5,5z\",\n classic: \"M5,0 0,2.5 5,5 3.5,3 3.5,2z\",\n diamond: \"M2.5,0 5,2.5 2.5,5 0,2.5z\",\n open: \"M6,1 1,3.5 6,6\",\n oval: \"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z\"\n },\n markerCounter = {};\n R.toString = function () {\n return \"Your browser supports SVG.\\nYou are running Rapha\\xebl \" + this.version;\n };\n var $ = function (el, attr) {\n if (attr) {\n if (typeof el == \"string\") {\n el = $(el);\n }\n for (var key in attr) if (attr[has](key)) {\n if (key.substring(0, 6) == \"xlink:\") {\n el.setAttributeNS(xlink, key.substring(6), Str(attr[key]));\n } else {\n el.setAttribute(key, Str(attr[key]));\n }\n }\n } else {\n el = R._g.doc.createElementNS(\"http://www.w3.org/2000/svg\", el);\n el.style && (el.style.webkitTapHighlightColor = \"rgba(0,0,0,0)\");\n }\n return el;\n },\n addGradientFill = function (element, gradient) {\n var type = \"linear\",\n id = element.id + gradient,\n fx = .5, fy = .5,\n o = element.node,\n SVG = element.paper,\n s = o.style,\n el = R._g.doc.getElementById(id);\n if (!el) {\n gradient = Str(gradient).replace(R._radial_gradient, function (all, _fx, _fy) {\n type = \"radial\";\n if (_fx && _fy) {\n fx = toFloat(_fx);\n fy = toFloat(_fy);\n var dir = ((fy > .5) * 2 - 1);\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 &&\n (fy = math.sqrt(.25 - pow(fx - .5, 2)) * dir + .5) &&\n fy != .5 &&\n (fy = fy.toFixed(5) - 1e-5 * dir);\n }\n return E;\n });\n gradient = gradient.split(/\\s*\\-\\s*/);\n if (type == \"linear\") {\n var angle = gradient.shift();\n angle = -toFloat(angle);\n if (isNaN(angle)) {\n return null;\n }\n var vector = [0, 0, math.cos(R.rad(angle)), math.sin(R.rad(angle))],\n max = 1 / (mmax(abs(vector[2]), abs(vector[3])) || 1);\n vector[2] *= max;\n vector[3] *= max;\n if (vector[2] < 0) {\n vector[0] = -vector[2];\n vector[2] = 0;\n }\n if (vector[3] < 0) {\n vector[1] = -vector[3];\n vector[3] = 0;\n }\n }\n var dots = R._parseDots(gradient);\n if (!dots) {\n return null;\n }\n id = id.replace(/[\\(\\)\\s,\\xb0#]/g, \"_\");\n\n if (element.gradient && id != element.gradient.id) {\n SVG.defs.removeChild(element.gradient);\n delete element.gradient;\n }\n\n if (!element.gradient) {\n el = $(type + \"Gradient\", {id: id});\n element.gradient = el;\n $(el, type == \"radial\" ? {\n fx: fx,\n fy: fy\n } : {\n x1: vector[0],\n y1: vector[1],\n x2: vector[2],\n y2: vector[3],\n gradientTransform: element.matrix.invert()\n });\n SVG.defs.appendChild(el);\n for (var i = 0, ii = dots.length; i < ii; i++) {\n el.appendChild($(\"stop\", {\n offset: dots[i].offset ? dots[i].offset : i ? \"100%\" : \"0%\",\n \"stop-color\": dots[i].color || \"#fff\"\n }));\n }\n }\n }\n $(o, {\n fill: \"url('\" + document.location + \"#\" + id + \"')\",\n opacity: 1,\n \"fill-opacity\": 1\n });\n s.fill = E;\n s.opacity = 1;\n s.fillOpacity = 1;\n return 1;\n },\n updatePosition = function (o) {\n var bbox = o.getBBox(1);\n $(o.pattern, {patternTransform: o.matrix.invert() + \" translate(\" + bbox.x + \",\" + bbox.y + \")\"});\n },\n addArrow = function (o, value, isEnd) {\n if (o.type == \"path\") {\n var values = Str(value).toLowerCase().split(\"-\"),\n p = o.paper,\n se = isEnd ? \"end\" : \"start\",\n node = o.node,\n attrs = o.attrs,\n stroke = attrs[\"stroke-width\"],\n i = values.length,\n type = \"classic\",\n from,\n to,\n dx,\n refX,\n attr,\n w = 3,\n h = 3,\n t = 5;\n while (i--) {\n switch (values[i]) {\n case \"block\":\n case \"classic\":\n case \"oval\":\n case \"diamond\":\n case \"open\":\n case \"none\":\n type = values[i];\n break;\n case \"wide\": h = 5; break;\n case \"narrow\": h = 2; break;\n case \"long\": w = 5; break;\n case \"short\": w = 2; break;\n }\n }\n if (type == \"open\") {\n w += 2;\n h += 2;\n t += 2;\n dx = 1;\n refX = isEnd ? 4 : 1;\n attr = {\n fill: \"none\",\n stroke: attrs.stroke\n };\n } else {\n refX = dx = w / 2;\n attr = {\n fill: attrs.stroke,\n stroke: \"none\"\n };\n }\n if (o._.arrows) {\n if (isEnd) {\n o._.arrows.endPath && markerCounter[o._.arrows.endPath]--;\n o._.arrows.endMarker && markerCounter[o._.arrows.endMarker]--;\n } else {\n o._.arrows.startPath && markerCounter[o._.arrows.startPath]--;\n o._.arrows.startMarker && markerCounter[o._.arrows.startMarker]--;\n }\n } else {\n o._.arrows = {};\n }\n if (type != \"none\") {\n var pathId = \"raphael-marker-\" + type,\n markerId = \"raphael-marker-\" + se + type + w + h + \"-obj\" + o.id;\n if (!R._g.doc.getElementById(pathId)) {\n p.defs.appendChild($($(\"path\"), {\n \"stroke-linecap\": \"round\",\n d: markers[type],\n id: pathId\n }));\n markerCounter[pathId] = 1;\n } else {\n markerCounter[pathId]++;\n }\n var marker = R._g.doc.getElementById(markerId),\n use;\n if (!marker) {\n marker = $($(\"marker\"), {\n id: markerId,\n markerHeight: h,\n markerWidth: w,\n orient: \"auto\",\n refX: refX,\n refY: h / 2\n });\n use = $($(\"use\"), {\n \"xlink:href\": \"#\" + pathId,\n transform: (isEnd ? \"rotate(180 \" + w / 2 + \" \" + h / 2 + \") \" : E) + \"scale(\" + w / t + \",\" + h / t + \")\",\n \"stroke-width\": (1 / ((w / t + h / t) / 2)).toFixed(4)\n });\n marker.appendChild(use);\n p.defs.appendChild(marker);\n markerCounter[markerId] = 1;\n } else {\n markerCounter[markerId]++;\n use = marker.getElementsByTagName(\"use\")[0];\n }\n $(use, attr);\n var delta = dx * (type != \"diamond\" && type != \"oval\");\n if (isEnd) {\n from = o._.arrows.startdx * stroke || 0;\n to = R.getTotalLength(attrs.path) - delta * stroke;\n } else {\n from = delta * stroke;\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\n }\n attr = {};\n attr[\"marker-\" + se] = \"url(#\" + markerId + \")\";\n if (to || from) {\n attr.d = R.getSubpath(attrs.path, from, to);\n }\n $(node, attr);\n o._.arrows[se + \"Path\"] = pathId;\n o._.arrows[se + \"Marker\"] = markerId;\n o._.arrows[se + \"dx\"] = delta;\n o._.arrows[se + \"Type\"] = type;\n o._.arrows[se + \"String\"] = value;\n } else {\n if (isEnd) {\n from = o._.arrows.startdx * stroke || 0;\n to = R.getTotalLength(attrs.path) - from;\n } else {\n from = 0;\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\n }\n o._.arrows[se + \"Path\"] && $(node, {d: R.getSubpath(attrs.path, from, to)});\n delete o._.arrows[se + \"Path\"];\n delete o._.arrows[se + \"Marker\"];\n delete o._.arrows[se + \"dx\"];\n delete o._.arrows[se + \"Type\"];\n delete o._.arrows[se + \"String\"];\n }\n for (attr in markerCounter) if (markerCounter[has](attr) && !markerCounter[attr]) {\n var item = R._g.doc.getElementById(attr);\n item && item.parentNode.removeChild(item);\n }\n }\n },\n dasharray = {\n \"\": [0],\n \"none\": [0],\n \"-\": [3, 1],\n \".\": [1, 1],\n \"-.\": [3, 1, 1, 1],\n \"-..\": [3, 1, 1, 1, 1, 1],\n \". \": [1, 3],\n \"- \": [4, 3],\n \"--\": [8, 3],\n \"- .\": [4, 3, 1, 3],\n \"--.\": [8, 3, 1, 3],\n \"--..\": [8, 3, 1, 3, 1, 3]\n },\n addDashes = function (o, value, params) {\n value = dasharray[Str(value).toLowerCase()];\n if (value) {\n var width = o.attrs[\"stroke-width\"] || \"1\",\n butt = {round: width, square: width, butt: 0}[o.attrs[\"stroke-linecap\"] || params[\"stroke-linecap\"]] || 0,\n dashes = [],\n i = value.length;\n while (i--) {\n dashes[i] = value[i] * width + ((i % 2) ? 1 : -1) * butt;\n }\n $(o.node, {\"stroke-dasharray\": dashes.join(\",\")});\n }\n },\n setFillAndStroke = function (o, params) {\n var node = o.node,\n attrs = o.attrs,\n vis = node.style.visibility;\n node.style.visibility = \"hidden\";\n for (var att in params) {\n if (params[has](att)) {\n if (!R._availableAttrs[has](att)) {\n continue;\n }\n var value = params[att];\n attrs[att] = value;\n switch (att) {\n case \"blur\":\n o.blur(value);\n break;\n case \"title\":\n var title = node.getElementsByTagName(\"title\");\n\n // Use the existing <title>.\n if (title.length && (title = title[0])) {\n title.firstChild.nodeValue = value;\n } else {\n title = $(\"title\");\n var val = R._g.doc.createTextNode(value);\n title.appendChild(val);\n node.appendChild(title);\n }\n break;\n case \"href\":\n case \"target\":\n var pn = node.parentNode;\n if (pn.tagName.toLowerCase() != \"a\") {\n var hl = $(\"a\");\n pn.insertBefore(hl, node);\n hl.appendChild(node);\n pn = hl;\n }\n if (att == \"target\") {\n pn.setAttributeNS(xlink, \"show\", value == \"blank\" ? \"new\" : value);\n } else {\n pn.setAttributeNS(xlink, att, value);\n }\n break;\n case \"cursor\":\n node.style.cursor = value;\n break;\n case \"transform\":\n o.transform(value);\n break;\n case \"arrow-start\":\n addArrow(o, value);\n break;\n case \"arrow-end\":\n addArrow(o, value, 1);\n break;\n case \"clip-rect\":\n var rect = Str(value).split(separator);\n if (rect.length == 4) {\n o.clip && o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);\n var el = $(\"clipPath\"),\n rc = $(\"rect\");\n el.id = R.createUUID();\n $(rc, {\n x: rect[0],\n y: rect[1],\n width: rect[2],\n height: rect[3]\n });\n el.appendChild(rc);\n o.paper.defs.appendChild(el);\n $(node, {\"clip-path\": \"url(#\" + el.id + \")\"});\n o.clip = rc;\n }\n if (!value) {\n var path = node.getAttribute(\"clip-path\");\n if (path) {\n var clip = R._g.doc.getElementById(path.replace(/(^url\\(#|\\)$)/g, E));\n clip && clip.parentNode.removeChild(clip);\n $(node, {\"clip-path\": E});\n delete o.clip;\n }\n }\n break;\n case \"path\":\n if (o.type == \"path\") {\n $(node, {d: value ? attrs.path = R._pathToAbsolute(value) : \"M0,0\"});\n o._.dirty = 1;\n if (o._.arrows) {\n \"startString\" in o._.arrows && addArrow(o, o._.arrows.startString);\n \"endString\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\n }\n }\n break;\n case \"width\":\n node.setAttribute(att, value);\n o._.dirty = 1;\n if (attrs.fx) {\n att = \"x\";\n value = attrs.x;\n } else {\n break;\n }\n case \"x\":\n if (attrs.fx) {\n value = -attrs.x - (attrs.width || 0);\n }\n case \"rx\":\n if (att == \"rx\" && o.type == \"rect\") {\n break;\n }\n case \"cx\":\n node.setAttribute(att, value);\n o.pattern && updatePosition(o);\n o._.dirty = 1;\n break;\n case \"height\":\n node.setAttribute(att, value);\n o._.dirty = 1;\n if (attrs.fy) {\n att = \"y\";\n value = attrs.y;\n } else {\n break;\n }\n case \"y\":\n if (attrs.fy) {\n value = -attrs.y - (attrs.height || 0);\n }\n case \"ry\":\n if (att == \"ry\" && o.type == \"rect\") {\n break;\n }\n case \"cy\":\n node.setAttribute(att, value);\n o.pattern && updatePosition(o);\n o._.dirty = 1;\n break;\n case \"r\":\n if (o.type == \"rect\") {\n $(node, {rx: value, ry: value});\n } else {\n node.setAttribute(att, value);\n }\n o._.dirty = 1;\n break;\n case \"src\":\n if (o.type == \"image\") {\n node.setAttributeNS(xlink, \"href\", value);\n }\n break;\n case \"stroke-width\":\n if (o._.sx != 1 || o._.sy != 1) {\n value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;\n }\n node.setAttribute(att, value);\n if (attrs[\"stroke-dasharray\"]) {\n addDashes(o, attrs[\"stroke-dasharray\"], params);\n }\n if (o._.arrows) {\n \"startString\" in o._.arrows && addArrow(o, o._.arrows.startString);\n \"endString\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\n }\n break;\n case \"stroke-dasharray\":\n addDashes(o, value, params);\n break;\n case \"fill\":\n var isURL = Str(value).match(R._ISURL);\n if (isURL) {\n el = $(\"pattern\");\n var ig = $(\"image\");\n el.id = R.createUUID();\n $(el, {x: 0, y: 0, patternUnits: \"userSpaceOnUse\", height: 1, width: 1});\n $(ig, {x: 0, y: 0, \"xlink:href\": isURL[1]});\n el.appendChild(ig);\n\n (function (el) {\n R._preload(isURL[1], function () {\n var w = this.offsetWidth,\n h = this.offsetHeight;\n $(el, {width: w, height: h});\n $(ig, {width: w, height: h});\n o.paper.safari();\n });\n })(el);\n o.paper.defs.appendChild(el);\n $(node, {fill: \"url(#\" + el.id + \")\"});\n o.pattern = el;\n o.pattern && updatePosition(o);\n break;\n }\n var clr = R.getRGB(value);\n if (!clr.error) {\n delete params.gradient;\n delete attrs.gradient;\n !R.is(attrs.opacity, \"undefined\") &&\n R.is(params.opacity, \"undefined\") &&\n $(node, {opacity: attrs.opacity});\n !R.is(attrs[\"fill-opacity\"], \"undefined\") &&\n R.is(params[\"fill-opacity\"], \"undefined\") &&\n $(node, {\"fill-opacity\": attrs[\"fill-opacity\"]});\n } else if ((o.type == \"circle\" || o.type == \"ellipse\" || Str(value).charAt() != \"r\") && addGradientFill(o, value)) {\n if (\"opacity\" in attrs || \"fill-opacity\" in attrs) {\n var gradient = R._g.doc.getElementById(node.getAttribute(\"fill\").replace(/^url\\(#|\\)$/g, E));\n if (gradient) {\n var stops = gradient.getElementsByTagName(\"stop\");\n $(stops[stops.length - 1], {\"stop-opacity\": (\"opacity\" in attrs ? attrs.opacity : 1) * (\"fill-opacity\" in attrs ? attrs[\"fill-opacity\"] : 1)});\n }\n }\n attrs.gradient = value;\n attrs.fill = \"none\";\n break;\n }\n clr[has](\"opacity\") && $(node, {\"fill-opacity\": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\n case \"stroke\":\n clr = R.getRGB(value);\n node.setAttribute(att, clr.hex);\n att == \"stroke\" && clr[has](\"opacity\") && $(node, {\"stroke-opacity\": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\n if (att == \"stroke\" && o._.arrows) {\n \"startString\" in o._.arrows && addArrow(o, o._.arrows.startString);\n \"endString\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\n }\n break;\n case \"gradient\":\n (o.type == \"circle\" || o.type == \"ellipse\" || Str(value).charAt() != \"r\") && addGradientFill(o, value);\n break;\n case \"opacity\":\n if (attrs.gradient && !attrs[has](\"stroke-opacity\")) {\n $(node, {\"stroke-opacity\": value > 1 ? value / 100 : value});\n }\n // fall\n case \"fill-opacity\":\n if (attrs.gradient) {\n gradient = R._g.doc.getElementById(node.getAttribute(\"fill\").replace(/^url\\(#|\\)$/g, E));\n if (gradient) {\n stops = gradient.getElementsByTagName(\"stop\");\n $(stops[stops.length - 1], {\"stop-opacity\": value});\n }\n break;\n }\n default:\n att == \"font-size\" && (value = toInt(value, 10) + \"px\");\n var cssrule = att.replace(/(\\-.)/g, function (w) {\n return w.substring(1).toUpperCase();\n });\n node.style[cssrule] = value;\n o._.dirty = 1;\n node.setAttribute(att, value);\n break;\n }\n }\n }\n\n tuneText(o, params);\n node.style.visibility = vis;\n },\n leading = 1.2,\n tuneText = function (el, params) {\n if (el.type != \"text\" || !(params[has](\"text\") || params[has](\"font\") || params[has](\"font-size\") || params[has](\"x\") || params[has](\"y\"))) {\n return;\n }\n var a = el.attrs,\n node = el.node,\n fontSize = node.firstChild ? toInt(R._g.doc.defaultView.getComputedStyle(node.firstChild, E).getPropertyValue(\"font-size\"), 10) : 10;\n\n if (params[has](\"text\")) {\n a.text = params.text;\n while (node.firstChild) {\n node.removeChild(node.firstChild);\n }\n var texts = Str(params.text).split(\"\\n\"),\n tspans = [],\n tspan;\n for (var i = 0, ii = texts.length; i < ii; i++) {\n tspan = $(\"tspan\");\n i && $(tspan, {dy: fontSize * leading, x: a.x});\n tspan.appendChild(R._g.doc.createTextNode(texts[i]));\n node.appendChild(tspan);\n tspans[i] = tspan;\n }\n } else {\n tspans = node.getElementsByTagName(\"tspan\");\n for (i = 0, ii = tspans.length; i < ii; i++) if (i) {\n $(tspans[i], {dy: fontSize * leading, x: a.x});\n } else {\n $(tspans[0], {dy: 0});\n }\n }\n $(node, {x: a.x, y: a.y});\n el._.dirty = 1;\n var bb = el._getBBox(),\n dif = a.y - (bb.y + bb.height / 2);\n dif && R.is(dif, \"finite\") && $(tspans[0], {dy: dif});\n },\n getRealNode = function (node) {\n if (node.parentNode && node.parentNode.tagName.toLowerCase() === \"a\") {\n return node.parentNode;\n } else {\n return node;\n }\n },\n Element = function (node, svg) {\n var X = 0,\n Y = 0;\n /*\\\n * Element.node\n [ property (object) ]\n **\n * Gives you a reference to the DOM object, so you can assign event handlers or just mess around.\n **\n * Note: Don’t mess with it.\n > Usage\n | // draw a circle at coordinate 10,10 with radius of 10\n | var c = paper.circle(10, 10, 10);\n | c.node.onclick = function () {\n | c.attr(\"fill\", \"red\");\n | };\n \\*/\n this[0] = this.node = node;\n /*\\\n * Element.raphael\n [ property (object) ]\n **\n * Internal reference to @Raphael object. In case it is not available.\n > Usage\n | Raphael.el.red = function () {\n | var hsb = this.paper.raphael.rgb2hsb(this.attr(\"fill\"));\n | hsb.h = 1;\n | this.attr({fill: this.paper.raphael.hsb2rgb(hsb).hex});\n | }\n \\*/\n node.raphael = true;\n /*\\\n * Element.id\n [ property (number) ]\n **\n * Unique id of the element. Especially useful when you want to listen to events of the element,\n * because all events are fired in format `<module>.<action>.<id>`. Also useful for @Paper.getById method.\n \\*/\n this.id = R._oid++;\n node.raphaelid = this.id;\n this.matrix = R.matrix();\n this.realPath = null;\n /*\\\n * Element.paper\n [ property (object) ]\n **\n * Internal reference to “paper” where object drawn. Mainly for use in plugins and element extensions.\n > Usage\n | Raphael.el.cross = function () {\n | this.attr({fill: \"red\"});\n | this.paper.path(\"M10,10L50,50M50,10L10,50\")\n | .attr({stroke: \"red\"});\n | }\n \\*/\n this.paper = svg;\n this.attrs = this.attrs || {};\n this._ = {\n transform: [],\n sx: 1,\n sy: 1,\n deg: 0,\n dx: 0,\n dy: 0,\n dirty: 1\n };\n !svg.bottom && (svg.bottom = this);\n /*\\\n * Element.prev\n [ property (object) ]\n **\n * Reference to the previous element in the hierarchy.\n \\*/\n this.prev = svg.top;\n svg.top && (svg.top.next = this);\n svg.top = this;\n /*\\\n * Element.next\n [ property (object) ]\n **\n * Reference to the next element in the hierarchy.\n \\*/\n this.next = null;\n },\n elproto = R.el;\n\n Element.prototype = elproto;\n elproto.constructor = Element;\n\n R._engine.path = function (pathString, SVG) {\n var el = $(\"path\");\n SVG.canvas && SVG.canvas.appendChild(el);\n var p = new Element(el, SVG);\n p.type = \"path\";\n setFillAndStroke(p, {\n fill: \"none\",\n stroke: \"#000\",\n path: pathString\n });\n return p;\n };\n /*\\\n * Element.rotate\n [ method ]\n **\n * Deprecated! Use @Element.transform instead.\n * Adds rotation by given angle around given point to the list of\n * transformations of the element.\n > Parameters\n - deg (number) angle in degrees\n - cx (number) #optional x coordinate of the centre of rotation\n - cy (number) #optional y coordinate of the centre of rotation\n * If cx & cy aren’t specified centre of the shape is used as a point of rotation.\n = (object) @Element\n \\*/\n elproto.rotate = function (deg, cx, cy) {\n if (this.removed) {\n return this;\n }\n deg = Str(deg).split(separator);\n if (deg.length - 1) {\n cx = toFloat(deg[1]);\n cy = toFloat(deg[2]);\n }\n deg = toFloat(deg[0]);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n cx = bbox.x + bbox.width / 2;\n cy = bbox.y + bbox.height / 2;\n }\n this.transform(this._.transform.concat([[\"r\", deg, cx, cy]]));\n return this;\n };\n /*\\\n * Element.scale\n [ method ]\n **\n * Deprecated! Use @Element.transform instead.\n * Adds scale by given amount relative to given point to the list of\n * transformations of the element.\n > Parameters\n - sx (number) horisontal scale amount\n - sy (number) vertical scale amount\n - cx (number) #optional x coordinate of the centre of scale\n - cy (number) #optional y coordinate of the centre of scale\n * If cx & cy aren’t specified centre of the shape is used instead.\n = (object) @Element\n \\*/\n elproto.scale = function (sx, sy, cx, cy) {\n if (this.removed) {\n return this;\n }\n sx = Str(sx).split(separator);\n if (sx.length - 1) {\n sy = toFloat(sx[1]);\n cx = toFloat(sx[2]);\n cy = toFloat(sx[3]);\n }\n sx = toFloat(sx[0]);\n (sy == null) && (sy = sx);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n }\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\n this.transform(this._.transform.concat([[\"s\", sx, sy, cx, cy]]));\n return this;\n };\n /*\\\n * Element.translate\n [ method ]\n **\n * Deprecated! Use @Element.transform instead.\n * Adds translation by given amount to the list of transformations of the element.\n > Parameters\n - dx (number) horisontal shift\n - dy (number) vertical shift\n = (object) @Element\n \\*/\n elproto.translate = function (dx, dy) {\n if (this.removed) {\n return this;\n }\n dx = Str(dx).split(separator);\n if (dx.length - 1) {\n dy = toFloat(dx[1]);\n }\n dx = toFloat(dx[0]) || 0;\n dy = +dy || 0;\n this.transform(this._.transform.concat([[\"t\", dx, dy]]));\n return this;\n };\n /*\\\n * Element.transform\n [ method ]\n **\n * Adds transformation to the element which is separate to other attributes,\n * i.e. translation doesn’t change `x` or `y` of the rectange. The format\n * of transformation string is similar to the path string syntax:\n | \"t100,100r30,100,100s2,2,100,100r45s1.5\"\n * Each letter is a command. There are four commands: `t` is for translate, `r` is for rotate, `s` is for\n * scale and `m` is for matrix.\n *\n * There are also alternative “absolute” translation, rotation and scale: `T`, `R` and `S`. They will not take previous transformation into account. For example, `...T100,0` will always move element 100 px horisontally, while `...t100,0` could move it vertically if there is `r90` before. Just compare results of `r90t100,0` and `r90T100,0`.\n *\n * So, the example line above could be read like “translate by 100, 100; rotate 30° around 100, 100; scale twice around 100, 100;\n * rotate 45° around centre; scale 1.5 times relative to centre”. As you can see rotate and scale commands have origin\n * coordinates as optional parameters, the default is the centre point of the element.\n * Matrix accepts six parameters.\n > Usage\n | var el = paper.rect(10, 20, 300, 200);\n | // translate 100, 100, rotate 45°, translate -100, 0\n | el.transform(\"t100,100r45t-100,0\");\n | // if you want you can append or prepend transformations\n | el.transform(\"...t50,50\");\n | el.transform(\"s2...\");\n | // or even wrap\n | el.transform(\"t50,50...t-50-50\");\n | // to reset transformation call method with empty string\n | el.transform(\"\");\n | // to get current value call it without parameters\n | console.log(el.transform());\n > Parameters\n - tstr (string) #optional transformation string\n * If tstr isn’t specified\n = (string) current transformation string\n * else\n = (object) @Element\n \\*/\n elproto.transform = function (tstr) {\n var _ = this._;\n if (tstr == null) {\n return _.transform;\n }\n R._extractTransform(this, tstr);\n\n this.clip && $(this.clip, {transform: this.matrix.invert()});\n this.pattern && updatePosition(this);\n this.node && $(this.node, {transform: this.matrix});\n\n if (_.sx != 1 || _.sy != 1) {\n var sw = this.attrs[has](\"stroke-width\") ? this.attrs[\"stroke-width\"] : 1;\n this.attr({\"stroke-width\": sw});\n }\n\n return this;\n };\n /*\\\n * Element.hide\n [ method ]\n **\n * Makes element invisible. See @Element.show.\n = (object) @Element\n \\*/\n elproto.hide = function () {\n !this.removed && this.paper.safari(this.node.style.display = \"none\");\n return this;\n };\n /*\\\n * Element.show\n [ method ]\n **\n * Makes element visible. See @Element.hide.\n = (object) @Element\n \\*/\n elproto.show = function () {\n !this.removed && this.paper.safari(this.node.style.display = \"\");\n return this;\n };\n /*\\\n * Element.remove\n [ method ]\n **\n * Removes element from the paper.\n \\*/\n elproto.remove = function () {\n var node = getRealNode(this.node);\n if (this.removed || !node.parentNode) {\n return;\n }\n var paper = this.paper;\n paper.__set__ && paper.__set__.exclude(this);\n eve.unbind(\"raphael.*.*.\" + this.id);\n if (this.gradient) {\n paper.defs.removeChild(this.gradient);\n }\n R._tear(this, paper);\n\n node.parentNode.removeChild(node);\n\n // Remove custom data for element\n this.removeData();\n\n for (var i in this) {\n this[i] = typeof this[i] == \"function\" ? R._removedFactory(i) : null;\n }\n this.removed = true;\n };\n elproto._getBBox = function () {\n if (this.node.style.display == \"none\") {\n this.show();\n var hide = true;\n }\n var canvasHidden = false,\n containerStyle;\n if (this.paper.canvas.parentElement) {\n containerStyle = this.paper.canvas.parentElement.style;\n } //IE10+ can't find parentElement\n else if (this.paper.canvas.parentNode) {\n containerStyle = this.paper.canvas.parentNode.style;\n }\n\n if(containerStyle && containerStyle.display == \"none\") {\n canvasHidden = true;\n containerStyle.display = \"\";\n }\n var bbox = {};\n try {\n bbox = this.node.getBBox();\n } catch(e) {\n // Firefox 3.0.x, 25.0.1 (probably more versions affected) play badly here - possible fix\n bbox = {\n x: this.node.clientLeft,\n y: this.node.clientTop,\n width: this.node.clientWidth,\n height: this.node.clientHeight\n }\n } finally {\n bbox = bbox || {};\n if(canvasHidden){\n containerStyle.display = \"none\";\n }\n }\n hide && this.hide();\n return bbox;\n };\n /*\\\n * Element.attr\n [ method ]\n **\n * Sets the attributes of the element.\n > Parameters\n - attrName (string) attribute’s name\n - value (string) value\n * or\n - params (object) object of name/value pairs\n * or\n - attrName (string) attribute’s name\n * or\n - attrNames (array) in this case method returns array of current values for given attribute names\n = (object) @Element if attrsName & value or params are passed in.\n = (...) value of the attribute if only attrsName is passed in.\n = (array) array of values of the attribute if attrsNames is passed in.\n = (object) object of attributes if nothing is passed in.\n > Possible parameters\n # <p>Please refer to the <a href=\"http://www.w3.org/TR/SVG/\" title=\"The W3C Recommendation for the SVG language describes these properties in detail.\">SVG specification</a> for an explanation of these parameters.</p>\n o arrow-end (string) arrowhead on the end of the path. The format for string is `<type>[-<width>[-<length>]]`. Possible types: `classic`, `block`, `open`, `oval`, `diamond`, `none`, width: `wide`, `narrow`, `medium`, length: `long`, `short`, `midium`.\n o clip-rect (string) comma or space separated values: x, y, width and height\n o cursor (string) CSS type of the cursor\n o cx (number) the x-axis coordinate of the center of the circle, or ellipse\n o cy (number) the y-axis coordinate of the center of the circle, or ellipse\n o fill (string) colour, gradient or image\n o fill-opacity (number)\n o font (string)\n o font-family (string)\n o font-size (number) font size in pixels\n o font-weight (string)\n o height (number)\n o href (string) URL, if specified element behaves as hyperlink\n o opacity (number)\n o path (string) SVG path string format\n o r (number) radius of the circle, ellipse or rounded corner on the rect\n o rx (number) horisontal radius of the ellipse\n o ry (number) vertical radius of the ellipse\n o src (string) image URL, only works for @Element.image element\n o stroke (string) stroke colour\n o stroke-dasharray (string) [“”, “`-`”, “`.`”, “`-.`”, “`-..`”, “`. `”, “`- `”, “`--`”, “`- .`”, “`--.`”, “`--..`”]\n o stroke-linecap (string) [“`butt`”, “`square`”, “`round`”]\n o stroke-linejoin (string) [“`bevel`”, “`round`”, “`miter`”]\n o stroke-miterlimit (number)\n o stroke-opacity (number)\n o stroke-width (number) stroke width in pixels, default is '1'\n o target (string) used with href\n o text (string) contents of the text element. Use `\\n` for multiline text\n o text-anchor (string) [“`start`”, “`middle`”, “`end`”], default is “`middle`”\n o title (string) will create tooltip with a given text\n o transform (string) see @Element.transform\n o width (number)\n o x (number)\n o y (number)\n > Gradients\n * Linear gradient format: “`‹angle›-‹colour›[-‹colour›[:‹offset›]]*-‹colour›`”, example: “`90-#fff-#000`” – 90°\n * gradient from white to black or “`0-#fff-#f00:20-#000`” – 0° gradient from white via red (at 20%) to black.\n *\n * radial gradient: “`r[(‹fx›, ‹fy›)]‹colour›[-‹colour›[:‹offset›]]*-‹colour›`”, example: “`r#fff-#000`” –\n * gradient from white to black or “`r(0.25, 0.75)#fff-#000`” – gradient from white to black with focus point\n * at 0.25, 0.75. Focus point coordinates are in 0..1 range. Radial gradients can only be applied to circles and ellipses.\n > Path String\n # <p>Please refer to <a href=\"http://www.w3.org/TR/SVG/paths.html#PathData\" title=\"Details of a path’s data attribute’s format are described in the SVG specification.\">SVG documentation regarding path string</a>. Raphaël fully supports it.</p>\n > Colour Parsing\n # <ul>\n # <li>Colour name (“<code>red</code>”, “<code>green</code>”, “<code>cornflowerblue</code>”, etc)</li>\n # <li>#••• — shortened HTML colour: (“<code>#000</code>”, “<code>#fc0</code>”, etc)</li>\n # <li>#•••••• — full length HTML colour: (“<code>#000000</code>”, “<code>#bd2300</code>”)</li>\n # <li>rgb(•••, •••, •••) — red, green and blue channels’ values: (“<code>rgb(200, 100, 0)</code>”)</li>\n # <li>rgb(•••%, •••%, •••%) — same as above, but in %: (“<code>rgb(100%, 175%, 0%)</code>”)</li>\n # <li>rgba(•••, •••, •••, •••) — red, green and blue channels’ values: (“<code>rgba(200, 100, 0, .5)</code>”)</li>\n # <li>rgba(•••%, •••%, •••%, •••%) — same as above, but in %: (“<code>rgba(100%, 175%, 0%, 50%)</code>”)</li>\n # <li>hsb(•••, •••, •••) — hue, saturation and brightness values: (“<code>hsb(0.5, 0.25, 1)</code>”)</li>\n # <li>hsb(•••%, •••%, •••%) — same as above, but in %</li>\n # <li>hsba(•••, •••, •••, •••) — same as above, but with opacity</li>\n # <li>hsl(•••, •••, •••) — almost the same as hsb, see <a href=\"http://en.wikipedia.org/wiki/HSL_and_HSV\" title=\"HSL and HSV - Wikipedia, the free encyclopedia\">Wikipedia page</a></li>\n # <li>hsl(•••%, •••%, •••%) — same as above, but in %</li>\n # <li>hsla(•••, •••, •••, •••) — same as above, but with opacity</li>\n # <li>Optionally for hsb and hsl you could specify hue as a degree: “<code>hsl(240deg, 1, .5)</code>” or, if you want to go fancy, “<code>hsl(240°, 1, .5)</code>”</li>\n # </ul>\n \\*/\n elproto.attr = function (name, value) {\n if (this.removed) {\n return this;\n }\n if (name == null) {\n var res = {};\n for (var a in this.attrs) if (this.attrs[has](a)) {\n res[a] = this.attrs[a];\n }\n res.gradient && res.fill == \"none\" && (res.fill = res.gradient) && delete res.gradient;\n res.transform = this._.transform;\n return res;\n }\n if (value == null && R.is(name, \"string\")) {\n if (name == \"fill\" && this.attrs.fill == \"none\" && this.attrs.gradient) {\n return this.attrs.gradient;\n }\n if (name == \"transform\") {\n return this._.transform;\n }\n var names = name.split(separator),\n out = {};\n for (var i = 0, ii = names.length; i < ii; i++) {\n name = names[i];\n if (name in this.attrs) {\n out[name] = this.attrs[name];\n } else if (R.is(this.paper.customAttributes[name], \"function\")) {\n out[name] = this.paper.customAttributes[name].def;\n } else {\n out[name] = R._availableAttrs[name];\n }\n }\n return ii - 1 ? out : out[names[0]];\n }\n if (value == null && R.is(name, \"array\")) {\n out = {};\n for (i = 0, ii = name.length; i < ii; i++) {\n out[name[i]] = this.attr(name[i]);\n }\n return out;\n }\n if (value != null) {\n var params = {};\n params[name] = value;\n } else if (name != null && R.is(name, \"object\")) {\n params = name;\n }\n for (var key in params) {\n eve(\"raphael.attr.\" + key + \".\" + this.id, this, params[key]);\n }\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], \"function\")) {\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\n this.attrs[key] = params[key];\n for (var subkey in par) if (par[has](subkey)) {\n params[subkey] = par[subkey];\n }\n }\n setFillAndStroke(this, params);\n return this;\n };\n /*\\\n * Element.toFront\n [ method ]\n **\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements.\n = (object) @Element\n \\*/\n elproto.toFront = function () {\n if (this.removed) {\n return this;\n }\n var node = getRealNode(this.node);\n node.parentNode.appendChild(node);\n var svg = this.paper;\n svg.top != this && R._tofront(this, svg);\n return this;\n };\n /*\\\n * Element.toBack\n [ method ]\n **\n * Moves the element so it is the furthest from the viewer’s eyes, behind other elements.\n = (object) @Element\n \\*/\n elproto.toBack = function () {\n if (this.removed) {\n return this;\n }\n var node = getRealNode(this.node);\n var parentNode = node.parentNode;\n parentNode.insertBefore(node, parentNode.firstChild);\n R._toback(this, this.paper);\n var svg = this.paper;\n return this;\n };\n /*\\\n * Element.insertAfter\n [ method ]\n **\n * Inserts current object after the given one.\n = (object) @Element\n \\*/\n elproto.insertAfter = function (element) {\n if (this.removed || !element) {\n return this;\n }\n\n var node = getRealNode(this.node);\n var afterNode = getRealNode(element.node || element[element.length - 1].node);\n if (afterNode.nextSibling) {\n afterNode.parentNode.insertBefore(node, afterNode.nextSibling);\n } else {\n afterNode.parentNode.appendChild(node);\n }\n R._insertafter(this, element, this.paper);\n return this;\n };\n /*\\\n * Element.insertBefore\n [ method ]\n **\n * Inserts current object before the given one.\n = (object) @Element\n \\*/\n elproto.insertBefore = function (element) {\n if (this.removed || !element) {\n return this;\n }\n\n var node = getRealNode(this.node);\n var beforeNode = getRealNode(element.node || element[0].node);\n beforeNode.parentNode.insertBefore(node, beforeNode);\n R._insertbefore(this, element, this.paper);\n return this;\n };\n elproto.blur = function (size) {\n // Experimental. No Safari support. Use it on your own risk.\n var t = this;\n if (+size !== 0) {\n var fltr = $(\"filter\"),\n blur = $(\"feGaussianBlur\");\n t.attrs.blur = size;\n fltr.id = R.createUUID();\n $(blur, {stdDeviation: +size || 1.5});\n fltr.appendChild(blur);\n t.paper.defs.appendChild(fltr);\n t._blur = fltr;\n $(t.node, {filter: \"url(#\" + fltr.id + \")\"});\n } else {\n if (t._blur) {\n t._blur.parentNode.removeChild(t._blur);\n delete t._blur;\n delete t.attrs.blur;\n }\n t.node.removeAttribute(\"filter\");\n }\n return t;\n };\n R._engine.circle = function (svg, x, y, r) {\n var el = $(\"circle\");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {cx: x, cy: y, r: r, fill: \"none\", stroke: \"#000\"};\n res.type = \"circle\";\n $(el, res.attrs);\n return res;\n };\n R._engine.rect = function (svg, x, y, w, h, r) {\n var el = $(\"rect\");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {x: x, y: y, width: w, height: h, rx: r || 0, ry: r || 0, fill: \"none\", stroke: \"#000\"};\n res.type = \"rect\";\n $(el, res.attrs);\n return res;\n };\n R._engine.ellipse = function (svg, x, y, rx, ry) {\n var el = $(\"ellipse\");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {cx: x, cy: y, rx: rx, ry: ry, fill: \"none\", stroke: \"#000\"};\n res.type = \"ellipse\";\n $(el, res.attrs);\n return res;\n };\n R._engine.image = function (svg, src, x, y, w, h) {\n var el = $(\"image\");\n $(el, {x: x, y: y, width: w, height: h, preserveAspectRatio: \"none\"});\n el.setAttributeNS(xlink, \"href\", src);\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {x: x, y: y, width: w, height: h, src: src};\n res.type = \"image\";\n return res;\n };\n R._engine.text = function (svg, x, y, text) {\n var el = $(\"text\");\n svg.canvas && svg.canvas.appendChild(el);\n var res = new Element(el, svg);\n res.attrs = {\n x: x,\n y: y,\n \"text-anchor\": \"middle\",\n text: text,\n \"font-family\": R._availableAttrs[\"font-family\"],\n \"font-size\": R._availableAttrs[\"font-size\"],\n stroke: \"none\",\n fill: \"#000\"\n };\n res.type = \"text\";\n setFillAndStroke(res, res.attrs);\n return res;\n };\n R._engine.setSize = function (width, height) {\n this.width = width || this.width;\n this.height = height || this.height;\n this.canvas.setAttribute(\"width\", this.width);\n this.canvas.setAttribute(\"height\", this.height);\n if (this._viewBox) {\n this.setViewBox.apply(this, this._viewBox);\n }\n return this;\n };\n R._engine.create = function () {\n var con = R._getContainer.apply(0, arguments),\n container = con && con.container,\n x = con.x,\n y = con.y,\n width = con.width,\n height = con.height;\n if (!container) {\n throw new Error(\"SVG container not found.\");\n }\n var cnvs = $(\"svg\"),\n css = \"overflow:hidden;\",\n isFloating;\n x = x || 0;\n y = y || 0;\n width = width || 512;\n height = height || 342;\n $(cnvs, {\n height: height,\n version: 1.1,\n width: width,\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\"\n });\n if (container == 1) {\n cnvs.style.cssText = css + \"position:absolute;left:\" + x + \"px;top:\" + y + \"px\";\n R._g.doc.body.appendChild(cnvs);\n isFloating = 1;\n } else {\n cnvs.style.cssText = css + \"position:relative\";\n if (container.firstChild) {\n container.insertBefore(cnvs, container.firstChild);\n } else {\n container.appendChild(cnvs);\n }\n }\n container = new R._Paper;\n container.width = width;\n container.height = height;\n container.canvas = cnvs;\n container.clear();\n container._left = container._top = 0;\n isFloating && (container.renderfix = function () {});\n container.renderfix();\n return container;\n };\n R._engine.setViewBox = function (x, y, w, h, fit) {\n eve(\"raphael.setViewBox\", this, this._viewBox, [x, y, w, h, fit]);\n var paperSize = this.getSize(),\n size = mmax(w / paperSize.width, h / paperSize.height),\n top = this.top,\n aspectRatio = fit ? \"xMidYMid meet\" : \"xMinYMin\",\n vb,\n sw;\n if (x == null) {\n if (this._vbSize) {\n size = 1;\n }\n delete this._vbSize;\n vb = \"0 0 \" + this.width + S + this.height;\n } else {\n this._vbSize = size;\n vb = x + S + y + S + w + S + h;\n }\n $(this.canvas, {\n viewBox: vb,\n preserveAspectRatio: aspectRatio\n });\n while (size && top) {\n sw = \"stroke-width\" in top.attrs ? top.attrs[\"stroke-width\"] : 1;\n top.attr({\"stroke-width\": sw});\n top._.dirty = 1;\n top._.dirtyT = 1;\n top = top.prev;\n }\n this._viewBox = [x, y, w, h, !!fit];\n return this;\n };\n /*\\\n * Paper.renderfix\n [ method ]\n **\n * Fixes the issue of Firefox and IE9 regarding subpixel rendering. If paper is dependant\n * on other elements after reflow it could shift half pixel which cause for lines to lost their crispness.\n * This method fixes the issue.\n **\n Special thanks to Mariusz Nowak (http://www.medikoo.com/) for this method.\n \\*/\n R.prototype.renderfix = function () {\n var cnvs = this.canvas,\n s = cnvs.style,\n pos;\n try {\n pos = cnvs.getScreenCTM() || cnvs.createSVGMatrix();\n } catch (e) {\n pos = cnvs.createSVGMatrix();\n }\n var left = -pos.e % 1,\n top = -pos.f % 1;\n if (left || top) {\n if (left) {\n this._left = (this._left + left) % 1;\n s.left = this._left + \"px\";\n }\n if (top) {\n this._top = (this._top + top) % 1;\n s.top = this._top + \"px\";\n }\n }\n };\n /*\\\n * Paper.clear\n [ method ]\n **\n * Clears the paper, i.e. removes all the elements.\n \\*/\n R.prototype.clear = function () {\n R.eve(\"raphael.clear\", this);\n var c = this.canvas;\n while (c.firstChild) {\n c.removeChild(c.firstChild);\n }\n this.bottom = this.top = null;\n (this.desc = $(\"desc\")).appendChild(R._g.doc.createTextNode(\"Created with Rapha\\xebl \" + R.version));\n c.appendChild(this.desc);\n c.appendChild(this.defs = $(\"defs\"));\n };\n /*\\\n * Paper.remove\n [ method ]\n **\n * Removes the paper from the DOM.\n \\*/\n R.prototype.remove = function () {\n eve(\"raphael.remove\", this);\n this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);\n for (var i in this) {\n this[i] = typeof this[i] == \"function\" ? R._removedFactory(i) : null;\n }\n };\n var setproto = R.st;\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\n setproto[method] = (function (methodname) {\n return function () {\n var arg = arguments;\n return this.forEach(function (el) {\n el[methodname].apply(el, arg);\n });\n };\n })(method);\n }\n})();\n\n// ┌─────────────────────────────────────────────────────────────────────┐ \\\\\n// │ Raphaël - JavaScript Vector Library │ \\\\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\n// │ VML Module │ \\\\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\n// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\\\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\\\\n// └─────────────────────────────────────────────────────────────────────┘ \\\\\n\n(function(){\n if (!R.vml) {\n return;\n }\n var has = \"hasOwnProperty\",\n Str = String,\n toFloat = parseFloat,\n math = Math,\n round = math.round,\n mmax = math.max,\n mmin = math.min,\n abs = math.abs,\n fillString = \"fill\",\n separator = /[, ]+/,\n eve = R.eve,\n ms = \" progid:DXImageTransform.Microsoft\",\n S = \" \",\n E = \"\",\n map = {M: \"m\", L: \"l\", C: \"c\", Z: \"x\", m: \"t\", l: \"r\", c: \"v\", z: \"x\"},\n bites = /([clmz]),?([^clmz]*)/gi,\n blurregexp = / progid:\\S+Blur\\([^\\)]+\\)/g,\n val = /-?[^,\\s-]+/g,\n cssDot = \"position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)\",\n zoom = 21600,\n pathTypes = {path: 1, rect: 1, image: 1},\n ovalTypes = {circle: 1, ellipse: 1},\n path2vml = function (path) {\n var total = /[ahqstv]/ig,\n command = R._pathToAbsolute;\n Str(path).match(total) && (command = R._path2curve);\n total = /[clmz]/g;\n if (command == R._pathToAbsolute && !Str(path).match(total)) {\n var res = Str(path).replace(bites, function (all, command, args) {\n var vals = [],\n isMove = command.toLowerCase() == \"m\",\n res = map[command];\n args.replace(val, function (value) {\n if (isMove && vals.length == 2) {\n res += vals + map[command == \"m\" ? \"l\" : \"L\"];\n vals = [];\n }\n vals.push(round(value * zoom));\n });\n return res + vals;\n });\n return res;\n }\n var pa = command(path), p, r;\n res = [];\n for (var i = 0, ii = pa.length; i < ii; i++) {\n p = pa[i];\n r = pa[i][0].toLowerCase();\n r == \"z\" && (r = \"x\");\n for (var j = 1, jj = p.length; j < jj; j++) {\n r += round(p[j] * zoom) + (j != jj - 1 ? \",\" : E);\n }\n res.push(r);\n }\n return res.join(S);\n },\n compensation = function (deg, dx, dy) {\n var m = R.matrix();\n m.rotate(-deg, .5, .5);\n return {\n dx: m.x(dx, dy),\n dy: m.y(dx, dy)\n };\n },\n setCoords = function (p, sx, sy, dx, dy, deg) {\n var _ = p._,\n m = p.matrix,\n fillpos = _.fillpos,\n o = p.node,\n s = o.style,\n y = 1,\n flip = \"\",\n dxdy,\n kx = zoom / sx,\n ky = zoom / sy;\n s.visibility = \"hidden\";\n if (!sx || !sy) {\n return;\n }\n o.coordsize = abs(kx) + S + abs(ky);\n s.rotation = deg * (sx * sy < 0 ? -1 : 1);\n if (deg) {\n var c = compensation(deg, dx, dy);\n dx = c.dx;\n dy = c.dy;\n }\n sx < 0 && (flip += \"x\");\n sy < 0 && (flip += \" y\") && (y = -1);\n s.flip = flip;\n o.coordorigin = (dx * -kx) + S + (dy * -ky);\n if (fillpos || _.fillsize) {\n var fill = o.getElementsByTagName(fillString);\n fill = fill && fill[0];\n o.removeChild(fill);\n if (fillpos) {\n c = compensation(deg, m.x(fillpos[0], fillpos[1]), m.y(fillpos[0], fillpos[1]));\n fill.position = c.dx * y + S + c.dy * y;\n }\n if (_.fillsize) {\n fill.size = _.fillsize[0] * abs(sx) + S + _.fillsize[1] * abs(sy);\n }\n o.appendChild(fill);\n }\n s.visibility = \"visible\";\n };\n R.toString = function () {\n return \"Your browser doesn\\u2019t support SVG. Falling down to VML.\\nYou are running Rapha\\xebl \" + this.version;\n };\n var addArrow = function (o, value, isEnd) {\n var values = Str(value).toLowerCase().split(\"-\"),\n se = isEnd ? \"end\" : \"start\",\n i = values.length,\n type = \"classic\",\n w = \"medium\",\n h = \"medium\";\n while (i--) {\n switch (values[i]) {\n case \"block\":\n case \"classic\":\n case \"oval\":\n case \"diamond\":\n case \"open\":\n case \"none\":\n type = values[i];\n break;\n case \"wide\":\n case \"narrow\": h = values[i]; break;\n case \"long\":\n case \"short\": w = values[i]; break;\n }\n }\n var stroke = o.node.getElementsByTagName(\"stroke\")[0];\n stroke[se + \"arrow\"] = type;\n stroke[se + \"arrowlength\"] = w;\n stroke[se + \"arrowwidth\"] = h;\n },\n setFillAndStroke = function (o, params) {\n // o.paper.canvas.style.display = \"none\";\n o.attrs = o.attrs || {};\n var node = o.node,\n a = o.attrs,\n s = node.style,\n xy,\n newpath = pathTypes[o.type] && (params.x != a.x || params.y != a.y || params.width != a.width || params.height != a.height || params.cx != a.cx || params.cy != a.cy || params.rx != a.rx || params.ry != a.ry || params.r != a.r),\n isOval = ovalTypes[o.type] && (a.cx != params.cx || a.cy != params.cy || a.r != params.r || a.rx != params.rx || a.ry != params.ry),\n res = o;\n\n\n for (var par in params) if (params[has](par)) {\n a[par] = params[par];\n }\n if (newpath) {\n a.path = R._getPath[o.type](o);\n o._.dirty = 1;\n }\n params.href && (node.href = params.href);\n params.title && (node.title = params.title);\n params.target && (node.target = params.target);\n params.cursor && (s.cursor = params.cursor);\n \"blur\" in params && o.blur(params.blur);\n if (params.path && o.type == \"path\" || newpath) {\n node.path = path2vml(~Str(a.path).toLowerCase().indexOf(\"r\") ? R._pathToAbsolute(a.path) : a.path);\n o._.dirty = 1;\n if (o.type == \"image\") {\n o._.fillpos = [a.x, a.y];\n o._.fillsize = [a.width, a.height];\n setCoords(o, 1, 1, 0, 0, 0);\n }\n }\n \"transform\" in params && o.transform(params.transform);\n if (isOval) {\n var cx = +a.cx,\n cy = +a.cy,\n rx = +a.rx || +a.r || 0,\n ry = +a.ry || +a.r || 0;\n node.path = R.format(\"ar{0},{1},{2},{3},{4},{1},{4},{1}x\", round((cx - rx) * zoom), round((cy - ry) * zoom), round((cx + rx) * zoom), round((cy + ry) * zoom), round(cx * zoom));\n o._.dirty = 1;\n }\n if (\"clip-rect\" in params) {\n var rect = Str(params[\"clip-rect\"]).split(separator);\n if (rect.length == 4) {\n rect[2] = +rect[2] + (+rect[0]);\n rect[3] = +rect[3] + (+rect[1]);\n var div = node.clipRect || R._g.doc.createElement(\"div\"),\n dstyle = div.style;\n dstyle.clip = R.format(\"rect({1}px {2}px {3}px {0}px)\", rect);\n if (!node.clipRect) {\n dstyle.position = \"absolute\";\n dstyle.top = 0;\n dstyle.left = 0;\n dstyle.width = o.paper.width + \"px\";\n dstyle.height = o.paper.height + \"px\";\n node.parentNode.insertBefore(div, node);\n div.appendChild(node);\n node.clipRect = div;\n }\n }\n if (!params[\"clip-rect\"]) {\n node.clipRect && (node.clipRect.style.clip = \"auto\");\n }\n }\n if (o.textpath) {\n var textpathStyle = o.textpath.style;\n params.font && (textpathStyle.font = params.font);\n params[\"font-family\"] && (textpathStyle.fontFamily = '\"' + params[\"font-family\"].split(\",\")[0].replace(/^['\"]+|['\"]+$/g, E) + '\"');\n params[\"font-size\"] && (textpathStyle.fontSize = params[\"font-size\"]);\n params[\"font-weight\"] && (textpathStyle.fontWeight = params[\"font-weight\"]);\n params[\"font-style\"] && (textpathStyle.fontStyle = params[\"font-style\"]);\n }\n if (\"arrow-start\" in params) {\n addArrow(res, params[\"arrow-start\"]);\n }\n if (\"arrow-end\" in params) {\n addArrow(res, params[\"arrow-end\"], 1);\n }\n if (params.opacity != null || \n params[\"stroke-width\"] != null ||\n params.fill != null ||\n params.src != null ||\n params.stroke != null ||\n params[\"stroke-width\"] != null ||\n params[\"stroke-opacity\"] != null ||\n params[\"fill-opacity\"] != null ||\n params[\"stroke-dasharray\"] != null ||\n params[\"stroke-miterlimit\"] != null ||\n params[\"stroke-linejoin\"] != null ||\n params[\"stroke-linecap\"] != null) {\n var fill = node.getElementsByTagName(fillString),\n newfill = false;\n fill = fill && fill[0];\n !fill && (newfill = fill = createNode(fillString));\n if (o.type == \"image\" && params.src) {\n fill.src = params.src;\n }\n params.fill && (fill.on = true);\n if (fill.on == null || params.fill == \"none\" || params.fill === null) {\n fill.on = false;\n }\n if (fill.on && params.fill) {\n var isURL = Str(params.fill).match(R._ISURL);\n if (isURL) {\n fill.parentNode == node && node.removeChild(fill);\n fill.rotate = true;\n fill.src = isURL[1];\n fill.type = \"tile\";\n var bbox = o.getBBox(1);\n fill.position = bbox.x + S + bbox.y;\n o._.fillpos = [bbox.x, bbox.y];\n\n R._preload(isURL[1], function () {\n o._.fillsize = [this.offsetWidth, this.offsetHeight];\n });\n } else {\n fill.color = R.getRGB(params.fill).hex;\n fill.src = E;\n fill.type = \"solid\";\n if (R.getRGB(params.fill).error && (res.type in {circle: 1, ellipse: 1} || Str(params.fill).charAt() != \"r\") && addGradientFill(res, params.fill, fill)) {\n a.fill = \"none\";\n a.gradient = params.fill;\n fill.rotate = false;\n }\n }\n }\n if (\"fill-opacity\" in params || \"opacity\" in params) {\n var opacity = ((+a[\"fill-opacity\"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+R.getRGB(params.fill).o + 1 || 2) - 1);\n opacity = mmin(mmax(opacity, 0), 1);\n fill.opacity = opacity;\n if (fill.src) {\n fill.color = \"none\";\n }\n }\n node.appendChild(fill);\n var stroke = (node.getElementsByTagName(\"stroke\") && node.getElementsByTagName(\"stroke\")[0]),\n newstroke = false;\n !stroke && (newstroke = stroke = createNode(\"stroke\"));\n if ((params.stroke && params.stroke != \"none\") ||\n params[\"stroke-width\"] ||\n params[\"stroke-opacity\"] != null ||\n params[\"stroke-dasharray\"] ||\n params[\"stroke-miterlimit\"] ||\n params[\"stroke-linejoin\"] ||\n params[\"stroke-linecap\"]) {\n stroke.on = true;\n }\n (params.stroke == \"none\" || params.stroke === null || stroke.on == null || params.stroke == 0 || params[\"stroke-width\"] == 0) && (stroke.on = false);\n var strokeColor = R.getRGB(params.stroke);\n stroke.on && params.stroke && (stroke.color = strokeColor.hex);\n opacity = ((+a[\"stroke-opacity\"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+strokeColor.o + 1 || 2) - 1);\n var width = (toFloat(params[\"stroke-width\"]) || 1) * .75;\n opacity = mmin(mmax(opacity, 0), 1);\n params[\"stroke-width\"] == null && (width = a[\"stroke-width\"]);\n params[\"stroke-width\"] && (stroke.weight = width);\n width && width < 1 && (opacity *= width) && (stroke.weight = 1);\n stroke.opacity = opacity;\n \n params[\"stroke-linejoin\"] && (stroke.joinstyle = params[\"stroke-linejoin\"] || \"miter\");\n stroke.miterlimit = params[\"stroke-miterlimit\"] || 8;\n params[\"stroke-linecap\"] && (stroke.endcap = params[\"stroke-linecap\"] == \"butt\" ? \"flat\" : params[\"stroke-linecap\"] == \"square\" ? \"square\" : \"round\");\n if (\"stroke-dasharray\" in params) {\n var dasharray = {\n \"-\": \"shortdash\",\n \".\": \"shortdot\",\n \"-.\": \"shortdashdot\",\n \"-..\": \"shortdashdotdot\",\n \". \": \"dot\",\n \"- \": \"dash\",\n \"--\": \"longdash\",\n \"- .\": \"dashdot\",\n \"--.\": \"longdashdot\",\n \"--..\": \"longdashdotdot\"\n };\n stroke.dashstyle = dasharray[has](params[\"stroke-dasharray\"]) ? dasharray[params[\"stroke-dasharray\"]] : E;\n }\n newstroke && node.appendChild(stroke);\n }\n if (res.type == \"text\") {\n res.paper.canvas.style.display = E;\n var span = res.paper.span,\n m = 100,\n fontSize = a.font && a.font.match(/\\d+(?:\\.\\d*)?(?=px)/);\n s = span.style;\n a.font && (s.font = a.font);\n a[\"font-family\"] && (s.fontFamily = a[\"font-family\"]);\n a[\"font-weight\"] && (s.fontWeight = a[\"font-weight\"]);\n a[\"font-style\"] && (s.fontStyle = a[\"font-style\"]);\n fontSize = toFloat(a[\"font-size\"] || fontSize && fontSize[0]) || 10;\n s.fontSize = fontSize * m + \"px\";\n res.textpath.string && (span.innerHTML = Str(res.textpath.string).replace(/</g, \"<\").replace(/&/g, \"&\").replace(/\\n/g, \"<br>\"));\n var brect = span.getBoundingClientRect();\n res.W = a.w = (brect.right - brect.left) / m;\n res.H = a.h = (brect.bottom - brect.top) / m;\n // res.paper.canvas.style.display = \"none\";\n res.X = a.x;\n res.Y = a.y + res.H / 2;\n\n (\"x\" in params || \"y\" in params) && (res.path.v = R.format(\"m{0},{1}l{2},{1}\", round(a.x * zoom), round(a.y * zoom), round(a.x * zoom) + 1));\n var dirtyattrs = [\"x\", \"y\", \"text\", \"font\", \"font-family\", \"font-weight\", \"font-style\", \"font-size\"];\n for (var d = 0, dd = dirtyattrs.length; d < dd; d++) if (dirtyattrs[d] in params) {\n res._.dirty = 1;\n break;\n }\n \n // text-anchor emulation\n switch (a[\"text-anchor\"]) {\n case \"start\":\n res.textpath.style[\"v-text-align\"] = \"left\";\n res.bbx = res.W / 2;\n break;\n case \"end\":\n res.textpath.style[\"v-text-align\"] = \"right\";\n res.bbx = -res.W / 2;\n break;\n default:\n res.textpath.style[\"v-text-align\"] = \"center\";\n res.bbx = 0;\n break;\n }\n res.textpath.style[\"v-text-kern\"] = true;\n }\n // res.paper.canvas.style.display = E;\n },\n addGradientFill = function (o, gradient, fill) {\n o.attrs = o.attrs || {};\n var attrs = o.attrs,\n pow = Math.pow,\n opacity,\n oindex,\n type = \"linear\",\n fxfy = \".5 .5\";\n o.attrs.gradient = gradient;\n gradient = Str(gradient).replace(R._radial_gradient, function (all, fx, fy) {\n type = \"radial\";\n if (fx && fy) {\n fx = toFloat(fx);\n fy = toFloat(fy);\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 && (fy = math.sqrt(.25 - pow(fx - .5, 2)) * ((fy > .5) * 2 - 1) + .5);\n fxfy = fx + S + fy;\n }\n return E;\n });\n gradient = gradient.split(/\\s*\\-\\s*/);\n if (type == \"linear\") {\n var angle = gradient.shift();\n angle = -toFloat(angle);\n if (isNaN(angle)) {\n return null;\n }\n }\n var dots = R._parseDots(gradient);\n if (!dots) {\n return null;\n }\n o = o.shape || o.node;\n if (dots.length) {\n o.removeChild(fill);\n fill.on = true;\n fill.method = \"none\";\n fill.color = dots[0].color;\n fill.color2 = dots[dots.length - 1].color;\n var clrs = [];\n for (var i = 0, ii = dots.length; i < ii; i++) {\n dots[i].offset && clrs.push(dots[i].offset + S + dots[i].color);\n }\n fill.colors = clrs.length ? clrs.join() : \"0% \" + fill.color;\n if (type == \"radial\") {\n fill.type = \"gradientTitle\";\n fill.focus = \"100%\";\n fill.focussize = \"0 0\";\n fill.focusposition = fxfy;\n fill.angle = 0;\n } else {\n // fill.rotate= true;\n fill.type = \"gradient\";\n fill.angle = (270 - angle) % 360;\n }\n o.appendChild(fill);\n }\n return 1;\n },\n Element = function (node, vml) {\n this[0] = this.node = node;\n node.raphael = true;\n this.id = R._oid++;\n node.raphaelid = this.id;\n this.X = 0;\n this.Y = 0;\n this.attrs = {};\n this.paper = vml;\n this.matrix = R.matrix();\n this._ = {\n transform: [],\n sx: 1,\n sy: 1,\n dx: 0,\n dy: 0,\n deg: 0,\n dirty: 1,\n dirtyT: 1\n };\n !vml.bottom && (vml.bottom = this);\n this.prev = vml.top;\n vml.top && (vml.top.next = this);\n vml.top = this;\n this.next = null;\n };\n var elproto = R.el;\n\n Element.prototype = elproto;\n elproto.constructor = Element;\n elproto.transform = function (tstr) {\n if (tstr == null) {\n return this._.transform;\n }\n var vbs = this.paper._viewBoxShift,\n vbt = vbs ? \"s\" + [vbs.scale, vbs.scale] + \"-1-1t\" + [vbs.dx, vbs.dy] : E,\n oldt;\n if (vbs) {\n oldt = tstr = Str(tstr).replace(/\\.{3}|\\u2026/g, this._.transform || E);\n }\n R._extractTransform(this, vbt + tstr);\n var matrix = this.matrix.clone(),\n skew = this.skew,\n o = this.node,\n split,\n isGrad = ~Str(this.attrs.fill).indexOf(\"-\"),\n isPatt = !Str(this.attrs.fill).indexOf(\"url(\");\n matrix.translate(1, 1);\n if (isPatt || isGrad || this.type == \"image\") {\n skew.matrix = \"1 0 0 1\";\n skew.offset = \"0 0\";\n split = matrix.split();\n if ((isGrad && split.noRotation) || !split.isSimple) {\n o.style.filter = matrix.toFilter();\n var bb = this.getBBox(),\n bbt = this.getBBox(1),\n dx = bb.x - bbt.x,\n dy = bb.y - bbt.y;\n o.coordorigin = (dx * -zoom) + S + (dy * -zoom);\n setCoords(this, 1, 1, dx, dy, 0);\n } else {\n o.style.filter = E;\n setCoords(this, split.scalex, split.scaley, split.dx, split.dy, split.rotate);\n }\n } else {\n o.style.filter = E;\n skew.matrix = Str(matrix);\n skew.offset = matrix.offset();\n }\n if (oldt !== null) { // empty string value is true as well\n this._.transform = oldt;\n R._extractTransform(this, oldt);\n }\n return this;\n };\n elproto.rotate = function (deg, cx, cy) {\n if (this.removed) {\n return this;\n }\n if (deg == null) {\n return;\n }\n deg = Str(deg).split(separator);\n if (deg.length - 1) {\n cx = toFloat(deg[1]);\n cy = toFloat(deg[2]);\n }\n deg = toFloat(deg[0]);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n cx = bbox.x + bbox.width / 2;\n cy = bbox.y + bbox.height / 2;\n }\n this._.dirtyT = 1;\n this.transform(this._.transform.concat([[\"r\", deg, cx, cy]]));\n return this;\n };\n elproto.translate = function (dx, dy) {\n if (this.removed) {\n return this;\n }\n dx = Str(dx).split(separator);\n if (dx.length - 1) {\n dy = toFloat(dx[1]);\n }\n dx = toFloat(dx[0]) || 0;\n dy = +dy || 0;\n if (this._.bbox) {\n this._.bbox.x += dx;\n this._.bbox.y += dy;\n }\n this.transform(this._.transform.concat([[\"t\", dx, dy]]));\n return this;\n };\n elproto.scale = function (sx, sy, cx, cy) {\n if (this.removed) {\n return this;\n }\n sx = Str(sx).split(separator);\n if (sx.length - 1) {\n sy = toFloat(sx[1]);\n cx = toFloat(sx[2]);\n cy = toFloat(sx[3]);\n isNaN(cx) && (cx = null);\n isNaN(cy) && (cy = null);\n }\n sx = toFloat(sx[0]);\n (sy == null) && (sy = sx);\n (cy == null) && (cx = cy);\n if (cx == null || cy == null) {\n var bbox = this.getBBox(1);\n }\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\n \n this.transform(this._.transform.concat([[\"s\", sx, sy, cx, cy]]));\n this._.dirtyT = 1;\n return this;\n };\n elproto.hide = function () {\n !this.removed && (this.node.style.display = \"none\");\n return this;\n };\n elproto.show = function () {\n !this.removed && (this.node.style.display = E);\n return this;\n };\n // Needed to fix the vml setViewBox issues\n elproto.auxGetBBox = R.el.getBBox;\n elproto.getBBox = function(){\n var b = this.auxGetBBox();\n if (this.paper && this.paper._viewBoxShift)\n {\n var c = {};\n var z = 1/this.paper._viewBoxShift.scale;\n c.x = b.x - this.paper._viewBoxShift.dx;\n c.x *= z;\n c.y = b.y - this.paper._viewBoxShift.dy;\n c.y *= z;\n c.width = b.width * z;\n c.height = b.height * z;\n c.x2 = c.x + c.width;\n c.y2 = c.y + c.height;\n return c;\n }\n return b;\n };\n elproto._getBBox = function () {\n if (this.removed) {\n return {};\n }\n return {\n x: this.X + (this.bbx || 0) - this.W / 2,\n y: this.Y - this.H,\n width: this.W,\n height: this.H\n };\n };\n elproto.remove = function () {\n if (this.removed || !this.node.parentNode) {\n return;\n }\n this.paper.__set__ && this.paper.__set__.exclude(this);\n R.eve.unbind(\"raphael.*.*.\" + this.id);\n R._tear(this, this.paper);\n this.node.parentNode.removeChild(this.node);\n this.shape && this.shape.parentNode.removeChild(this.shape);\n for (var i in this) {\n this[i] = typeof this[i] == \"function\" ? R._removedFactory(i) : null;\n }\n this.removed = true;\n };\n elproto.attr = function (name, value) {\n if (this.removed) {\n return this;\n }\n if (name == null) {\n var res = {};\n for (var a in this.attrs) if (this.attrs[has](a)) {\n res[a] = this.attrs[a];\n }\n res.gradient && res.fill == \"none\" && (res.fill = res.gradient) && delete res.gradient;\n res.transform = this._.transform;\n return res;\n }\n if (value == null && R.is(name, \"string\")) {\n if (name == fillString && this.attrs.fill == \"none\" && this.attrs.gradient) {\n return this.attrs.gradient;\n }\n var names = name.split(separator),\n out = {};\n for (var i = 0, ii = names.length; i < ii; i++) {\n name = names[i];\n if (name in this.attrs) {\n out[name] = this.attrs[name];\n } else if (R.is(this.paper.customAttributes[name], \"function\")) {\n out[name] = this.paper.customAttributes[name].def;\n } else {\n out[name] = R._availableAttrs[name];\n }\n }\n return ii - 1 ? out : out[names[0]];\n }\n if (this.attrs && value == null && R.is(name, \"array\")) {\n out = {};\n for (i = 0, ii = name.length; i < ii; i++) {\n out[name[i]] = this.attr(name[i]);\n }\n return out;\n }\n var params;\n if (value != null) {\n params = {};\n params[name] = value;\n }\n value == null && R.is(name, \"object\") && (params = name);\n for (var key in params) {\n eve(\"raphael.attr.\" + key + \".\" + this.id, this, params[key]);\n }\n if (params) {\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], \"function\")) {\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\n this.attrs[key] = params[key];\n for (var subkey in par) if (par[has](subkey)) {\n params[subkey] = par[subkey];\n }\n }\n // this.paper.canvas.style.display = \"none\";\n if (params.text && this.type == \"text\") {\n this.textpath.string = params.text;\n }\n setFillAndStroke(this, params);\n // this.paper.canvas.style.display = E;\n }\n return this;\n };\n elproto.toFront = function () {\n !this.removed && this.node.parentNode.appendChild(this.node);\n this.paper && this.paper.top != this && R._tofront(this, this.paper);\n return this;\n };\n elproto.toBack = function () {\n if (this.removed) {\n return this;\n }\n if (this.node.parentNode.firstChild != this.node) {\n this.node.parentNode.insertBefore(this.node, this.node.parentNode.firstChild);\n R._toback(this, this.paper);\n }\n return this;\n };\n elproto.insertAfter = function (element) {\n if (this.removed) {\n return this;\n }\n if (element.constructor == R.st.constructor) {\n element = element[element.length - 1];\n }\n if (element.node.nextSibling) {\n element.node.parentNode.insertBefore(this.node, element.node.nextSibling);\n } else {\n element.node.parentNode.appendChild(this.node);\n }\n R._insertafter(this, element, this.paper);\n return this;\n };\n elproto.insertBefore = function (element) {\n if (this.removed) {\n return this;\n }\n if (element.constructor == R.st.constructor) {\n element = element[0];\n }\n element.node.parentNode.insertBefore(this.node, element.node);\n R._insertbefore(this, element, this.paper);\n return this;\n };\n elproto.blur = function (size) {\n var s = this.node.runtimeStyle,\n f = s.filter;\n f = f.replace(blurregexp, E);\n if (+size !== 0) {\n this.attrs.blur = size;\n s.filter = f + S + ms + \".Blur(pixelradius=\" + (+size || 1.5) + \")\";\n s.margin = R.format(\"-{0}px 0 0 -{0}px\", round(+size || 1.5));\n } else {\n s.filter = f;\n s.margin = 0;\n delete this.attrs.blur;\n }\n return this;\n };\n\n R._engine.path = function (pathString, vml) {\n var el = createNode(\"shape\");\n el.style.cssText = cssDot;\n el.coordsize = zoom + S + zoom;\n el.coordorigin = vml.coordorigin;\n var p = new Element(el, vml),\n attr = {fill: \"none\", stroke: \"#000\"};\n pathString && (attr.path = pathString);\n p.type = \"path\";\n p.path = [];\n p.Path = E;\n setFillAndStroke(p, attr);\n vml.canvas.appendChild(el);\n var skew = createNode(\"skew\");\n skew.on = true;\n el.appendChild(skew);\n p.skew = skew;\n p.transform(E);\n return p;\n };\n R._engine.rect = function (vml, x, y, w, h, r) {\n var path = R._rectPath(x, y, w, h, r),\n res = vml.path(path),\n a = res.attrs;\n res.X = a.x = x;\n res.Y = a.y = y;\n res.W = a.width = w;\n res.H = a.height = h;\n a.r = r;\n a.path = path;\n res.type = \"rect\";\n return res;\n };\n R._engine.ellipse = function (vml, x, y, rx, ry) {\n var res = vml.path(),\n a = res.attrs;\n res.X = x - rx;\n res.Y = y - ry;\n res.W = rx * 2;\n res.H = ry * 2;\n res.type = \"ellipse\";\n setFillAndStroke(res, {\n cx: x,\n cy: y,\n rx: rx,\n ry: ry\n });\n return res;\n };\n R._engine.circle = function (vml, x, y, r) {\n var res = vml.path(),\n a = res.attrs;\n res.X = x - r;\n res.Y = y - r;\n res.W = res.H = r * 2;\n res.type = \"circle\";\n setFillAndStroke(res, {\n cx: x,\n cy: y,\n r: r\n });\n return res;\n };\n R._engine.image = function (vml, src, x, y, w, h) {\n var path = R._rectPath(x, y, w, h),\n res = vml.path(path).attr({stroke: \"none\"}),\n a = res.attrs,\n node = res.node,\n fill = node.getElementsByTagName(fillString)[0];\n a.src = src;\n res.X = a.x = x;\n res.Y = a.y = y;\n res.W = a.width = w;\n res.H = a.height = h;\n a.path = path;\n res.type = \"image\";\n fill.parentNode == node && node.removeChild(fill);\n fill.rotate = true;\n fill.src = src;\n fill.type = \"tile\";\n res._.fillpos = [x, y];\n res._.fillsize = [w, h];\n node.appendChild(fill);\n setCoords(res, 1, 1, 0, 0, 0);\n return res;\n };\n R._engine.text = function (vml, x, y, text) {\n var el = createNode(\"shape\"),\n path = createNode(\"path\"),\n o = createNode(\"textpath\");\n x = x || 0;\n y = y || 0;\n text = text || \"\";\n path.v = R.format(\"m{0},{1}l{2},{1}\", round(x * zoom), round(y * zoom), round(x * zoom) + 1);\n path.textpathok = true;\n o.string = Str(text);\n o.on = true;\n el.style.cssText = cssDot;\n el.coordsize = zoom + S + zoom;\n el.coordorigin = \"0 0\";\n var p = new Element(el, vml),\n attr = {\n fill: \"#000\",\n stroke: \"none\",\n font: R._availableAttrs.font,\n text: text\n };\n p.shape = el;\n p.path = path;\n p.textpath = o;\n p.type = \"text\";\n p.attrs.text = Str(text);\n p.attrs.x = x;\n p.attrs.y = y;\n p.attrs.w = 1;\n p.attrs.h = 1;\n setFillAndStroke(p, attr);\n el.appendChild(o);\n el.appendChild(path);\n vml.canvas.appendChild(el);\n var skew = createNode(\"skew\");\n skew.on = true;\n el.appendChild(skew);\n p.skew = skew;\n p.transform(E);\n return p;\n };\n R._engine.setSize = function (width, height) {\n var cs = this.canvas.style;\n this.width = width;\n this.height = height;\n width == +width && (width += \"px\");\n height == +height && (height += \"px\");\n cs.width = width;\n cs.height = height;\n cs.clip = \"rect(0 \" + width + \" \" + height + \" 0)\";\n if (this._viewBox) {\n R._engine.setViewBox.apply(this, this._viewBox);\n }\n return this;\n };\n R._engine.setViewBox = function (x, y, w, h, fit) {\n R.eve(\"raphael.setViewBox\", this, this._viewBox, [x, y, w, h, fit]);\n var paperSize = this.getSize(),\n width = paperSize.width,\n height = paperSize.height,\n H, W;\n if (fit) {\n H = height / h;\n W = width / w;\n if (w * H < width) {\n x -= (width - w * H) / 2 / H;\n }\n if (h * W < height) {\n y -= (height - h * W) / 2 / W;\n }\n }\n this._viewBox = [x, y, w, h, !!fit];\n this._viewBoxShift = {\n dx: -x,\n dy: -y,\n scale: paperSize\n };\n this.forEach(function (el) {\n el.transform(\"...\");\n });\n return this;\n };\n var createNode;\n R._engine.initWin = function (win) {\n var doc = win.document;\n if (doc.styleSheets.length < 31) {\n doc.createStyleSheet().addRule(\".rvml\", \"behavior:url(#default#VML)\");\n } else {\n // no more room, add to the existing one\n // http://msdn.microsoft.com/en-us/library/ms531194%28VS.85%29.aspx\n doc.styleSheets[0].addRule(\".rvml\", \"behavior:url(#default#VML)\");\n }\n try {\n !doc.namespaces.rvml && doc.namespaces.add(\"rvml\", \"urn:schemas-microsoft-com:vml\");\n createNode = function (tagName) {\n return doc.createElement('<rvml:' + tagName + ' class=\"rvml\">');\n };\n } catch (e) {\n createNode = function (tagName) {\n return doc.createElement('<' + tagName + ' xmlns=\"urn:schemas-microsoft.com:vml\" class=\"rvml\">');\n };\n }\n };\n R._engine.initWin(R._g.win);\n R._engine.create = function () {\n var con = R._getContainer.apply(0, arguments),\n container = con.container,\n height = con.height,\n s,\n width = con.width,\n x = con.x,\n y = con.y;\n if (!container) {\n throw new Error(\"VML container not found.\");\n }\n var res = new R._Paper,\n c = res.canvas = R._g.doc.createElement(\"div\"),\n cs = c.style;\n x = x || 0;\n y = y || 0;\n width = width || 512;\n height = height || 342;\n res.width = width;\n res.height = height;\n width == +width && (width += \"px\");\n height == +height && (height += \"px\");\n res.coordsize = zoom * 1e3 + S + zoom * 1e3;\n res.coordorigin = \"0 0\";\n res.span = R._g.doc.createElement(\"span\");\n res.span.style.cssText = \"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;\";\n c.appendChild(res.span);\n cs.cssText = R.format(\"top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden\", width, height);\n if (container == 1) {\n R._g.doc.body.appendChild(c);\n cs.left = x + \"px\";\n cs.top = y + \"px\";\n cs.position = \"absolute\";\n } else {\n if (container.firstChild) {\n container.insertBefore(c, container.firstChild);\n } else {\n container.appendChild(c);\n }\n }\n res.renderfix = function () {};\n return res;\n };\n R.prototype.clear = function () {\n R.eve(\"raphael.clear\", this);\n this.canvas.innerHTML = E;\n this.span = R._g.doc.createElement(\"span\");\n this.span.style.cssText = \"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;\";\n this.canvas.appendChild(this.span);\n this.bottom = this.top = null;\n };\n R.prototype.remove = function () {\n R.eve(\"raphael.remove\", this);\n this.canvas.parentNode.removeChild(this.canvas);\n for (var i in this) {\n this[i] = typeof this[i] == \"function\" ? R._removedFactory(i) : null;\n }\n return true;\n };\n\n var setproto = R.st;\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\n setproto[method] = (function (methodname) {\n return function () {\n var arg = arguments;\n return this.forEach(function (el) {\n el[methodname].apply(el, arg);\n });\n };\n })(method);\n }\n})();\n\n // EXPOSE\n // SVG and VML are appended just before the EXPOSE line\n // Even with AMD, Raphael should be defined globally\n oldRaphael.was ? (g.win.Raphael = R) : (Raphael = R);\n\n if(typeof exports == \"object\"){\n module.exports = R;\n }\n return R;\n}));\n\n})($tw.node ? $tw.fakeDocument : window.document)\n"
},
"$:/plugins/gt6796c/flowchart-tw5/eve.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/flowchart-tw5/eve.js",
"module-type": "library",
"text": "(function(document) {\n// ┌────────────────────────────────────────────────────────────┐ \\\\\n// │ Eve 0.4.2 - JavaScript Events Library │ \\\\\n// ├────────────────────────────────────────────────────────────┤ \\\\\n// │ Author Dmitry Baranovskiy (http://dmitry.baranovskiy.com/) │ \\\\\n// └────────────────────────────────────────────────────────────┘ \\\\\n\n(function (glob) {\n var version = \"0.4.2\",\n has = \"hasOwnProperty\",\n separator = /[\\.\\/]/,\n wildcard = \"*\",\n fun = function () {},\n numsort = function (a, b) {\n return a - b;\n },\n current_event,\n stop,\n events = {n: {}},\n /*\\\n * eve\n [ method ]\n\n * Fires event with given `name`, given scope and other parameters.\n\n > Arguments\n\n - name (string) name of the *event*, dot (`.`) or slash (`/`) separated\n - scope (object) context for the event handlers\n - varargs (...) the rest of arguments will be sent to event handlers\n\n = (object) array of returned values from the listeners\n \\*/\n eve = function (name, scope) {\n name = String(name);\n var e = events,\n oldstop = stop,\n args = Array.prototype.slice.call(arguments, 2),\n listeners = eve.listeners(name),\n z = 0,\n f = false,\n l,\n indexed = [],\n queue = {},\n out = [],\n ce = current_event,\n errors = [];\n current_event = name;\n stop = 0;\n for (var i = 0, ii = listeners.length; i < ii; i++) if (\"zIndex\" in listeners[i]) {\n indexed.push(listeners[i].zIndex);\n if (listeners[i].zIndex < 0) {\n queue[listeners[i].zIndex] = listeners[i];\n }\n }\n indexed.sort(numsort);\n while (indexed[z] < 0) {\n l = queue[indexed[z++]];\n out.push(l.apply(scope, args));\n if (stop) {\n stop = oldstop;\n return out;\n }\n }\n for (i = 0; i < ii; i++) {\n l = listeners[i];\n if (\"zIndex\" in l) {\n if (l.zIndex == indexed[z]) {\n out.push(l.apply(scope, args));\n if (stop) {\n break;\n }\n do {\n z++;\n l = queue[indexed[z]];\n l && out.push(l.apply(scope, args));\n if (stop) {\n break;\n }\n } while (l)\n } else {\n queue[l.zIndex] = l;\n }\n } else {\n out.push(l.apply(scope, args));\n if (stop) {\n break;\n }\n }\n }\n stop = oldstop;\n current_event = ce;\n return out.length ? out : null;\n };\n // Undocumented. Debug only.\n eve._events = events;\n /*\\\n * eve.listeners\n [ method ]\n\n * Internal method which gives you array of all event handlers that will be triggered by the given `name`.\n\n > Arguments\n\n - name (string) name of the event, dot (`.`) or slash (`/`) separated\n\n = (array) array of event handlers\n \\*/\n eve.listeners = function (name) {\n var names = name.split(separator),\n e = events,\n item,\n items,\n k,\n i,\n ii,\n j,\n jj,\n nes,\n es = [e],\n out = [];\n for (i = 0, ii = names.length; i < ii; i++) {\n nes = [];\n for (j = 0, jj = es.length; j < jj; j++) {\n e = es[j].n;\n items = [e[names[i]], e[wildcard]];\n k = 2;\n while (k--) {\n item = items[k];\n if (item) {\n nes.push(item);\n out = out.concat(item.f || []);\n }\n }\n }\n es = nes;\n }\n return out;\n };\n\n /*\\\n * eve.on\n [ method ]\n **\n * Binds given event handler with a given name. You can use wildcards “`*`” for the names:\n | eve.on(\"*.under.*\", f);\n | eve(\"mouse.under.floor\"); // triggers f\n * Use @eve to trigger the listener.\n **\n > Arguments\n **\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n - f (function) event handler function\n **\n = (function) returned function accepts a single numeric parameter that represents z-index of the handler. It is an optional feature and only used when you need to ensure that some subset of handlers will be invoked in a given order, despite of the order of assignment. \n > Example:\n | eve.on(\"mouse\", eatIt)(2);\n | eve.on(\"mouse\", scream);\n | eve.on(\"mouse\", catchIt)(1);\n * This will ensure that `catchIt()` function will be called before `eatIt()`.\n *\n * If you want to put your handler before non-indexed handlers, specify a negative value.\n * Note: I assume most of the time you don’t need to worry about z-index, but it’s nice to have this feature “just in case”.\n \\*/\n eve.on = function (name, f) {\n name = String(name);\n if (typeof f != \"function\") {\n return function () {};\n }\n var names = name.split(separator),\n e = events;\n for (var i = 0, ii = names.length; i < ii; i++) {\n e = e.n;\n e = e.hasOwnProperty(names[i]) && e[names[i]] || (e[names[i]] = {n: {}});\n }\n e.f = e.f || [];\n for (i = 0, ii = e.f.length; i < ii; i++) if (e.f[i] == f) {\n return fun;\n }\n e.f.push(f);\n return function (zIndex) {\n if (+zIndex == +zIndex) {\n f.zIndex = +zIndex;\n }\n };\n };\n /*\\\n * eve.f\n [ method ]\n **\n * Returns function that will fire given event with optional arguments.\n * Arguments that will be passed to the result function will be also\n * concated to the list of final arguments.\n | el.onclick = eve.f(\"click\", 1, 2);\n | eve.on(\"click\", function (a, b, c) {\n | console.log(a, b, c); // 1, 2, [event object]\n | });\n > Arguments\n - event (string) event name\n - varargs (…) and any other arguments\n = (function) possible event handler function\n \\*/\n eve.f = function (event) {\n var attrs = [].slice.call(arguments, 1);\n return function () {\n eve.apply(null, [event, null].concat(attrs).concat([].slice.call(arguments, 0)));\n };\n };\n /*\\\n * eve.stop\n [ method ]\n **\n * Is used inside an event handler to stop the event, preventing any subsequent listeners from firing.\n \\*/\n eve.stop = function () {\n stop = 1;\n };\n /*\\\n * eve.nt\n [ method ]\n **\n * Could be used inside event handler to figure out actual name of the event.\n **\n > Arguments\n **\n - subname (string) #optional subname of the event\n **\n = (string) name of the event, if `subname` is not specified\n * or\n = (boolean) `true`, if current event’s name contains `subname`\n \\*/\n eve.nt = function (subname) {\n if (subname) {\n return new RegExp(\"(?:\\\\.|\\\\/|^)\" + subname + \"(?:\\\\.|\\\\/|$)\").test(current_event);\n }\n return current_event;\n };\n /*\\\n * eve.nts\n [ method ]\n **\n * Could be used inside event handler to figure out actual name of the event.\n **\n **\n = (array) names of the event\n \\*/\n eve.nts = function () {\n return current_event.split(separator);\n };\n /*\\\n * eve.off\n [ method ]\n **\n * Removes given function from the list of event listeners assigned to given name.\n * If no arguments specified all the events will be cleared.\n **\n > Arguments\n **\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n - f (function) event handler function\n \\*/\n /*\\\n * eve.unbind\n [ method ]\n **\n * See @eve.off\n \\*/\n eve.off = eve.unbind = function (name, f) {\n if (!name) {\n eve._events = events = {n: {}};\n return;\n }\n var names = name.split(separator),\n e,\n key,\n splice,\n i, ii, j, jj,\n cur = [events];\n for (i = 0, ii = names.length; i < ii; i++) {\n for (j = 0; j < cur.length; j += splice.length - 2) {\n splice = [j, 1];\n e = cur[j].n;\n if (names[i] != wildcard) {\n if (e[names[i]]) {\n splice.push(e[names[i]]);\n }\n } else {\n for (key in e) if (e[has](key)) {\n splice.push(e[key]);\n }\n }\n cur.splice.apply(cur, splice);\n }\n }\n for (i = 0, ii = cur.length; i < ii; i++) {\n e = cur[i];\n while (e.n) {\n if (f) {\n if (e.f) {\n for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {\n e.f.splice(j, 1);\n break;\n }\n !e.f.length && delete e.f;\n }\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\n var funcs = e.n[key].f;\n for (j = 0, jj = funcs.length; j < jj; j++) if (funcs[j] == f) {\n funcs.splice(j, 1);\n break;\n }\n !funcs.length && delete e.n[key].f;\n }\n } else {\n delete e.f;\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\n delete e.n[key].f;\n }\n }\n e = e.n;\n }\n }\n };\n /*\\\n * eve.once\n [ method ]\n **\n * Binds given event handler with a given name to only run once then unbind itself.\n | eve.once(\"login\", f);\n | eve(\"login\"); // triggers f\n | eve(\"login\"); // no listeners\n * Use @eve to trigger the listener.\n **\n > Arguments\n **\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n - f (function) event handler function\n **\n = (function) same return function as @eve.on\n \\*/\n eve.once = function (name, f) {\n var f2 = function () {\n eve.unbind(name, f2);\n return f.apply(this, arguments);\n };\n return eve.on(name, f2);\n };\n /*\\\n * eve.version\n [ property (string) ]\n **\n * Current version of the library.\n \\*/\n eve.version = version;\n eve.toString = function () {\n return \"You are running Eve \" + version;\n };\n (typeof module != \"undefined\" && module.exports) ? (module.exports = eve) : (typeof define != \"undefined\" ? (define(\"eve\", [], function() { return eve; })) : (glob.eve = eve));\n})(window || this);\n\n\n})($tw.node ? $tw.fakeDocument : window.document)\n"
},
"$:/plugins/gt6796c/flowchart-tw5/sequence-diagram.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/flowchart-tw5/sequence-diagram.js",
"module-type": "library",
"text": "(function(document) {\n/** js sequence diagrams 1.0.6\n * http://bramp.github.io/js-sequence-diagrams/\n * (c) 2012-2015 Andrew Brampton (bramp.net)\n * @license Simplified BSD license.\n */\n!function(){\"use strict\";function Diagram(){this.title=void 0,this.actors=[],this.signals=[]}function ParseError(message,hash){_.extend(this,hash),this.name=\"ParseError\",this.message=message||\"\"}function AssertException(message){this.message=message}function assert(exp,message){if(!exp)throw new AssertException(message)}function getCenterX(box){return box.x+box.width/2}function getCenterY(box){return box.y+box.height/2}Diagram.prototype.getActor=function(alias){var name,s=/^(.+) as (\\S+)$/i.exec(alias.trim());s?(name=s[1].trim(),alias=s[2].trim()):name=alias.trim(),name=name.replace(/\\\\n/gm,\"\\n\");var i,actors=this.actors;for(i in actors)if(actors[i].alias==alias)return actors[i];return i=actors.push(new Diagram.Actor(alias,name,actors.length)),actors[i-1]},Diagram.prototype.setTitle=function(title){this.title=title},Diagram.prototype.addSignal=function(signal){this.signals.push(signal)},Diagram.Actor=function(alias,name,index){this.alias=alias,this.name=name,this.index=index},Diagram.Signal=function(actorA,signaltype,actorB,message){this.type=\"Signal\",this.actorA=actorA,this.actorB=actorB,this.linetype=3&signaltype,this.arrowtype=3&signaltype>>2,this.message=message},Diagram.Signal.prototype.isSelf=function(){return this.actorA.index==this.actorB.index},Diagram.Note=function(actor,placement,message){if(this.type=\"Note\",this.actor=actor,this.placement=placement,this.message=message,this.hasManyActors()&&actor[0]==actor[1])throw new Error(\"Note should be over two different actors\")},Diagram.Note.prototype.hasManyActors=function(){return _.isArray(this.actor)},Diagram.LINETYPE={SOLID:0,DOTTED:1},Diagram.ARROWTYPE={FILLED:0,OPEN:1},Diagram.PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2};var grammar=function(){function Parser(){this.yy={}}var parser={trace:function(){},yy:{},symbols_:{error:2,start:3,document:4,EOF:5,line:6,statement:7,NL:8,participant:9,actor:10,signal:11,note_statement:12,title:13,message:14,note:15,placement:16,over:17,actor_pair:18,\",\":19,left_of:20,right_of:21,signaltype:22,ACTOR:23,linetype:24,arrowtype:25,LINE:26,DOTLINE:27,ARROW:28,OPENARROW:29,MESSAGE:30,$accept:0,$end:1},terminals_:{2:\"error\",5:\"EOF\",8:\"NL\",9:\"participant\",13:\"title\",15:\"note\",17:\"over\",19:\",\",20:\"left_of\",21:\"right_of\",23:\"ACTOR\",26:\"LINE\",27:\"DOTLINE\",28:\"ARROW\",29:\"OPENARROW\",30:\"MESSAGE\"},productions_:[0,[3,2],[4,0],[4,2],[6,1],[6,1],[7,2],[7,1],[7,1],[7,2],[12,4],[12,4],[18,1],[18,3],[16,1],[16,1],[11,4],[10,1],[22,2],[22,1],[24,1],[24,1],[25,1],[25,1],[14,1]],performAction:function(yytext,yyleng,yylineno,yy,yystate,$$){var $0=$$.length-1;switch(yystate){case 1:return yy;case 4:break;case 6:$$[$0];break;case 7:yy.addSignal($$[$0]);break;case 8:yy.addSignal($$[$0]);break;case 9:yy.setTitle($$[$0]);break;case 10:this.$=new Diagram.Note($$[$0-1],$$[$0-2],$$[$0]);break;case 11:this.$=new Diagram.Note($$[$0-1],Diagram.PLACEMENT.OVER,$$[$0]);break;case 12:this.$=$$[$0];break;case 13:this.$=[$$[$0-2],$$[$0]];break;case 14:this.$=Diagram.PLACEMENT.LEFTOF;break;case 15:this.$=Diagram.PLACEMENT.RIGHTOF;break;case 16:this.$=new Diagram.Signal($$[$0-3],$$[$0-2],$$[$0-1],$$[$0]);break;case 17:this.$=yy.getActor($$[$0]);break;case 18:this.$=$$[$0-1]|$$[$0]<<2;break;case 19:this.$=$$[$0];break;case 20:this.$=Diagram.LINETYPE.SOLID;break;case 21:this.$=Diagram.LINETYPE.DOTTED;break;case 22:this.$=Diagram.ARROWTYPE.FILLED;break;case 23:this.$=Diagram.ARROWTYPE.OPEN;break;case 24:this.$=$$[$0].substring(1).trim().replace(/\\\\n/gm,\"\\n\")}},table:[{3:1,4:2,5:[2,2],8:[2,2],9:[2,2],13:[2,2],15:[2,2],23:[2,2]},{1:[3]},{5:[1,3],6:4,7:5,8:[1,6],9:[1,7],10:11,11:8,12:9,13:[1,10],15:[1,12],23:[1,13]},{1:[2,1]},{5:[2,3],8:[2,3],9:[2,3],13:[2,3],15:[2,3],23:[2,3]},{5:[2,4],8:[2,4],9:[2,4],13:[2,4],15:[2,4],23:[2,4]},{5:[2,5],8:[2,5],9:[2,5],13:[2,5],15:[2,5],23:[2,5]},{10:14,23:[1,13]},{5:[2,7],8:[2,7],9:[2,7],13:[2,7],15:[2,7],23:[2,7]},{5:[2,8],8:[2,8],9:[2,8],13:[2,8],15:[2,8],23:[2,8]},{14:15,30:[1,16]},{22:17,24:18,26:[1,19],27:[1,20]},{16:21,17:[1,22],20:[1,23],21:[1,24]},{5:[2,17],8:[2,17],9:[2,17],13:[2,17],15:[2,17],19:[2,17],23:[2,17],26:[2,17],27:[2,17],30:[2,17]},{5:[2,6],8:[2,6],9:[2,6],13:[2,6],15:[2,6],23:[2,6]},{5:[2,9],8:[2,9],9:[2,9],13:[2,9],15:[2,9],23:[2,9]},{5:[2,24],8:[2,24],9:[2,24],13:[2,24],15:[2,24],23:[2,24]},{10:25,23:[1,13]},{23:[2,19],25:26,28:[1,27],29:[1,28]},{23:[2,20],28:[2,20],29:[2,20]},{23:[2,21],28:[2,21],29:[2,21]},{10:29,23:[1,13]},{10:31,18:30,23:[1,13]},{23:[2,14]},{23:[2,15]},{14:32,30:[1,16]},{23:[2,18]},{23:[2,22]},{23:[2,23]},{14:33,30:[1,16]},{14:34,30:[1,16]},{19:[1,35],30:[2,12]},{5:[2,16],8:[2,16],9:[2,16],13:[2,16],15:[2,16],23:[2,16]},{5:[2,10],8:[2,10],9:[2,10],13:[2,10],15:[2,10],23:[2,10]},{5:[2,11],8:[2,11],9:[2,11],13:[2,11],15:[2,11],23:[2,11]},{10:36,23:[1,13]},{30:[2,13]}],defaultActions:{3:[2,1],23:[2,14],24:[2,15],26:[2,18],27:[2,22],28:[2,23],36:[2,13]},parseError:function(str,hash){if(!hash.recoverable)throw new Error(str);this.trace(str)},parse:function(input){function lex(){var token;return token=self.lexer.lex()||EOF,\"number\"!=typeof token&&(token=self.symbols_[token]||token),token}var self=this,stack=[0],vstack=[null],lstack=[],table=this.table,yytext=\"\",yylineno=0,yyleng=0,recovering=0,TERROR=2,EOF=1;this.lexer.setInput(input),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,\"undefined\"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var yyloc=this.lexer.yylloc;lstack.push(yyloc);var ranges=this.lexer.options&&this.lexer.options.ranges;this.parseError=\"function\"==typeof this.yy.parseError?this.yy.parseError:Object.getPrototypeOf(this).parseError;for(var symbol,preErrorSymbol,state,action,r,p,len,newState,expected,yyval={};;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((null===symbol||\"undefined\"==typeof symbol)&&(symbol=lex()),action=table[state]&&table[state][symbol]),\"undefined\"==typeof action||!action.length||!action[0]){var errStr=\"\";expected=[];for(p in table[state])this.terminals_[p]&&p>TERROR&&expected.push(\"'\"+this.terminals_[p]+\"'\");errStr=this.lexer.showPosition?\"Parse error on line \"+(yylineno+1)+\":\\n\"+this.lexer.showPosition()+\"\\nExpecting \"+expected.join(\", \")+\", got '\"+(this.terminals_[symbol]||symbol)+\"'\":\"Parse error on line \"+(yylineno+1)+\": Unexpected \"+(symbol==EOF?\"end of input\":\"'\"+(this.terminals_[symbol]||symbol)+\"'\"),this.parseError(errStr,{text:this.lexer.match,token:this.terminals_[symbol]||symbol,line:this.lexer.yylineno,loc:yyloc,expected:expected})}if(action[0]instanceof Array&&action.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+state+\", token: \"+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(this.lexer.yytext),lstack.push(this.lexer.yylloc),stack.push(action[1]),symbol=null,preErrorSymbol?(symbol=preErrorSymbol,preErrorSymbol=null):(yyleng=this.lexer.yyleng,yytext=this.lexer.yytext,yylineno=this.lexer.yylineno,yyloc=this.lexer.yylloc,recovering>0&&recovering--);break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),r=this.performAction.call(yyval,yytext,yyleng,yylineno,this.yy,action[1],vstack,lstack),\"undefined\"!=typeof r)return r;len&&(stack=stack.slice(0,2*-1*len),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0}},lexer=function(){var lexer={EOF:1,parseError:function(str,hash){if(!this.yy.parser)throw new Error(str);this.yy.parser.parseError(str,hash)},setInput:function(input){return this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ch=this._input[0];this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch;var lines=ch.match(/(?:\\r\\n?|\\n).*/g);return lines?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},unput:function(ch){var len=ch.length,lines=ch.split(/(?:\\r\\n?|\\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len-1),this.offset-=len;var oldLines=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?\"...\":\"\")+past.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var pre=this.pastInput(),c=new Array(pre.length+1).join(\"-\");return pre+this.upcomingInput()+\"\\n\"+c+\"^\"},test_match:function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(backup.yylloc.range=this.yylloc.range.slice(0))),lines=match[0].match(/(?:\\r\\n?|\\n).*/g),lines&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var token,match,tempMatch,index;this._more||(this.yytext=\"\",this.match=\"\");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if(tempMatch=this._input.match(this.rules[rules[i]]),tempMatch&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(token=this.test_match(tempMatch,rules[i]),token!==!1)return token;if(this._backtrack){match=!1;continue}return!1}if(!this.options.flex)break}return match?(token=this.test_match(match,rules[index]),token!==!1?token:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r?r:this.lex()},begin:function(condition){this.conditionStack.push(condition)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:\"INITIAL\"},pushState:function(condition){this.begin(condition)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return 8;case 1:break;case 2:break;case 3:return 9;case 4:return 20;case 5:return 21;case 6:return 17;case 7:return 15;case 8:return 13;case 9:return 19;case 10:return 23;case 11:return 27;case 12:return 26;case 13:return 29;case 14:return 28;case 15:return 30;case 16:return 5;case 17:return\"INVALID\"}},rules:[/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:title\\b)/i,/^(?:,)/i,/^(?:[^\\->:\\n,]+)/i,/^(?:--)/i,/^(?:-)/i,/^(?:>>)/i,/^(?:>)/i,/^(?:[^#\\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return lexer}();return parser.lexer=lexer,Parser.prototype=parser,parser.Parser=Parser,new Parser}();\"undefined\"!=typeof require&&\"undefined\"!=typeof exports&&(exports.parser=grammar,exports.Parser=grammar.Parser,exports.parse=function(){return grammar.parse.apply(grammar,arguments)},exports.main=function(args){args[1]||(console.log(\"Usage: \"+args[0]+\" FILE\"),process.exit(1));var source=require(\"fs\").readFileSync(require(\"path\").normalize(args[1]),\"utf8\");return exports.parser.parse(source)},\"undefined\"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),ParseError.prototype=new Error,Diagram.ParseError=ParseError,grammar.parseError=function(message,hash){throw new ParseError(message,hash)},Diagram.parse=function(input){return grammar.yy=new Diagram,grammar.parse(input)},Raphael.registerFont({w:209,face:{\"font-family\":\"daniel\",\"font-weight\":700,\"font-stretch\":\"normal\",\"units-per-em\":\"360\",\"panose-1\":\"2 11 8 0 0 0 0 0 0 0\",ascent:\"288\",descent:\"-72\",\"x-height\":\"7\",bbox:\"-92.0373 -310.134 632 184.967\",\"underline-thickness\":\"3.51562\",\"underline-position\":\"-21.6211\",\"unicode-range\":\"U+0009-U+F002\"},glyphs:{\" \":{w:179},\"\t\":{w:179},\"!\":{d:\"66,-306v9,3,18,11,19,24v-18,73,-20,111,-37,194v0,10,2,34,-12,34v-12,0,-18,-9,-18,-28v0,-85,23,-136,38,-214v1,-7,4,-10,10,-10xm25,-30v15,-1,28,34,5,35v-11,-1,-38,-36,-5,-35\",w:115},'\"':{d:\"91,-214v-32,3,-25,-40,-20,-68v3,-16,7,-25,12,-27v35,13,14,56,8,95xm8,-231v4,-31,1,-40,18,-75v37,7,11,51,11,79v-3,3,-4,8,-5,13v-17,4,-16,-10,-24,-17\",w:117},\"#\":{d:\"271,-64v-30,26,-96,-7,-102,51v-6,2,-13,2,-24,-2v-2,-11,10,-21,2,-28v-14,5,-48,0,-48,22v0,23,-11,14,-29,10v-7,-6,6,-19,-1,-24r-32,4v-19,-8,-15,-24,5,-28r33,-6v4,0,24,-23,11,-27v-26,0,-63,14,-74,-10v3,-1,9,-17,16,-10v15,-8,81,4,89,-30v8,-14,16,-34,24,-38v23,9,24,38,5,49v37,24,55,-38,72,-43v19,10,20,23,-1,45v2,8,23,1,29,4v3,3,6,6,10,11v-14,13,-20,12,-45,12v-17,0,-16,17,-19,29v18,-7,49,3,67,-2v4,0,8,4,12,11xm161,-104v-30,-1,-44,10,-44,37v14,1,24,0,40,-5v0,-1,3,-10,8,-26v0,-4,-1,-6,-4,-6\",w:285},$:{d:\"164,-257v29,4,1,42,-3,50v5,5,38,13,41,24v8,4,6,15,-2,21v-18,3,-36,-17,-49,-17v-17,1,-31,40,-28,48v5,4,8,8,9,10v13,1,35,37,28,44v-10,21,-36,20,-65,28v-10,10,-12,40,-17,51v-9,-3,-28,1,-18,-17v0,-13,5,-24,-1,-35v-18,1,-59,-10,-42,-29v21,0,56,16,55,-16v5,-4,9,-18,9,-26v-14,-15,-55,-41,-53,-65v2,-33,56,-19,98,-26v10,-14,31,-43,38,-45xm93,-152v11,-10,15,-15,14,-29v-17,-3,-37,1,-43,6v10,12,20,19,29,23xm111,-103v-8,1,-11,12,-10,22v10,0,28,2,27,-8v0,-4,-13,-15,-17,-14\",w:225},\"%\":{d:\"181,-96v24,-7,67,-13,104,1v14,18,21,19,22,44v-13,43,-99,61,-146,36v-9,-9,-22,-11,-32,-29v0,-27,24,-53,52,-52xm139,-185v-9,68,-138,73,-131,-5v0,-3,3,-9,9,-17v13,1,27,1,17,-16v5,-39,63,0,93,-6v36,1,80,-9,102,11v15,32,12,32,-8,56v-16,21,-103,78,-152,125r-14,28v-23,11,-25,-7,-29,-20v34,-71,133,-98,171,-162v-13,-12,-52,-5,-61,1v0,1,1,3,3,5xm38,-190v0,34,55,29,70,8v0,-14,-20,-11,-32,-14v-14,-3,-24,-9,-40,-10v1,0,5,11,2,16xm172,-53v12,27,90,18,102,-5v-18,-7,-32,-10,-40,-10v-29,3,-57,-4,-62,15\",w:308},\"&\":{d:\"145,-82v17,-8,47,-15,71,-26v13,2,25,12,9,23v-23,7,-40,16,-53,27r0,6v13,8,30,21,36,38v0,8,-4,12,-11,12v-19,0,-43,-39,-59,-44v-30,12,-65,29,-97,32v-32,3,-45,-41,-23,-63v21,-20,52,-26,70,-48v-4,-31,-12,-47,9,-73v13,-16,20,-29,23,-39v15,-15,32,-22,51,-22v30,9,62,64,32,96v-2,3,-47,42,-69,48v-15,8,-11,9,0,22v6,7,10,11,11,11xm114,-138v25,-13,62,-38,74,-62v0,-9,-10,-31,-20,-29v-28,7,-60,42,-60,75v0,10,2,15,6,16xm99,-91v-18,10,-54,18,-59,45v26,5,61,-12,77,-22v-1,-5,-13,-23,-18,-23\",w:253},\"'\":{d:\"36,-182v-36,7,-34,-61,-17,-80v15,1,21,19,21,20r-1,-1v0,0,-1,12,-5,35v1,5,3,17,2,26\",w:63},\"(\":{d:\"130,-306v13,2,23,43,-1,43v-49,43,-77,77,-90,148v5,49,27,67,64,101v4,14,5,6,2,19r-15,0v-35,-17,-79,-58,-79,-120v0,-58,66,-176,119,-191\",w:120},\")\":{d:\"108,-138v-2,73,-48,120,-98,153v-17,-5,-16,-20,-6,-31v52,-64,73,-62,74,-135v1,-42,-40,-98,-58,-128v0,-5,-1,-12,-2,-22v18,-18,25,0,42,27v25,39,50,66,48,136\",w:120},\"*\":{d:\"121,-271v15,-5,36,-8,40,9v-5,10,-31,19,-47,31v0,11,34,43,14,53v-18,8,-24,-24,-34,-20v-4,10,-4,19,-12,41v-25,7,-15,-30,-17,-47v-13,-1,-17,9,-46,30r-10,0v-20,-32,37,-43,54,-64v-10,-11,-36,-33,-16,-51v3,0,14,8,33,24v8,-10,26,-39,32,-42v14,7,15,23,9,36\",w:177},\"+\":{d:\"163,-64v-7,22,-65,2,-77,21v-2,10,-6,21,-11,35v-20,4,-21,-12,-19,-29v3,-23,-44,6,-39,-27v-8,-22,36,-8,49,-18v8,-13,6,-36,24,-40v19,-4,14,32,11,39v18,3,19,2,54,8v2,1,5,5,8,11\",w:170},\",\":{d:\"25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102\",w:97},\"-\":{d:\"57,-94v19,4,55,-5,54,17v-15,23,-54,20,-91,15v-4,2,-13,-10,-11,-16v-1,-22,28,-15,48,-16\",w:124},\".\":{d:\"40,-48v21,20,21,44,-4,44v-33,0,-26,-24,-10,-44r14,0\",w:67},\"/\":{d:\"21,20v-22,-45,21,-95,41,-126v38,-57,115,-158,193,-201v2,0,4,3,7,11v11,29,-15,34,-25,55v-81,56,-189,208,-197,261r-19,0\",w:275},0:{d:\"78,-237v70,-47,269,-41,270,59v0,34,-11,53,-29,76v-13,35,-30,32,-85,64v-6,2,-10,6,-7,8v-73,14,-98,38,-173,1v-7,-13,-52,-48,-46,-88v9,-57,27,-75,70,-120xm123,-38v100,0,202,-46,195,-153v-32,-55,-144,-73,-211,-35v-16,34,-68,54,-53,108v6,25,1,22,-3,39v6,24,41,41,72,41\",w:353},1:{d:\"39,-208v0,-14,6,-59,29,-39v3,4,6,13,10,24r-22,128r8,87v-4,6,-9,3,-16,2v-44,-38,-9,-137,-9,-202\",w:93},2:{d:\"88,-35v47,-10,119,-24,168,-9v0,12,-23,13,-35,16v1,1,3,1,5,1v-74,8,-118,23,-194,23v-14,0,-20,-13,-21,-28v55,-40,83,-61,123,-104v26,-13,65,-67,71,-102v-1,-9,-11,-16,-22,-16v-20,-1,-120,29,-156,49v-10,-2,-30,-20,-10,-28v50,-21,111,-51,178,-48v25,10,44,22,36,39v12,30,-19,64,-34,83v-39,48,-37,39,-115,109v0,5,-3,8,-8,11v4,3,8,4,14,4\",w:265},3:{d:\"188,-282v34,-10,74,25,47,51v-19,32,-55,50,-92,70v28,14,116,25,108,70v8,14,-49,40,-63,48v-29,9,-130,22,-168,42v-6,-5,-19,-7,-12,-22v56,-36,175,-21,210,-76v-9,-20,-88,-42,-97,-33v-20,-1,-41,2,-56,-7r5,-21v56,-25,103,-36,137,-78v1,-1,2,-5,4,-11v-15,-14,-56,7,-79,0v-10,9,-73,22,-92,31v-11,-4,-28,-23,-13,-30v50,-22,96,-26,154,-37v0,-1,8,3,7,3\",w:260},4:{d:\"79,-249v-7,17,-29,75,-33,96v0,6,3,8,8,8v43,-2,111,6,141,-6v17,-47,20,-100,63,-148v9,4,16,7,21,10v-17,31,-44,95,-51,141v7,4,24,-4,23,10v-1,16,-29,12,-31,23v-10,22,-9,69,-7,103v-3,2,-7,5,-10,9v-47,-11,-23,-74,-16,-114v0,-4,-2,-6,-7,-6v-65,2,-89,13,-162,4v-22,-22,-2,-53,5,-76v16,-15,17,-57,35,-70v6,-1,21,11,21,16\",w:267},5:{d:\"185,-272v30,7,45,-8,53,18v1,16,-17,18,-34,14v0,0,-95,-11,-129,1v-6,9,-24,33,-29,54v76,10,171,5,214,47v11,11,22,30,5,52v-14,12,-30,14,-34,27v-26,11,-141,63,-157,60v-16,-2,-25,-19,-4,-27v48,-18,128,-39,170,-86v4,-14,-65,-41,-85,-41r-92,0v-10,-4,-66,-1,-57,-23v0,-23,23,-51,35,-83v11,-28,133,-10,144,-13\",w:284},6:{d:\"70,-64v9,-51,63,-74,123,-71v43,2,109,3,111,41r-25,47v0,1,1,2,2,3v-5,0,-39,10,-41,20v-15,3,-22,4,-22,11v-39,1,-77,20,-119,13v-42,-7,-35,-9,-77,-46v-56,-118,94,-201,176,-229v7,0,21,8,20,15v-2,17,-23,15,-43,24v-69,31,-119,72,-134,145v-5,25,36,68,78,64v59,-6,128,-18,153,-61v-7,-14,-13,-9,-32,-21v-67,-15,-118,-5,-150,43r0,12v-13,4,-17,-3,-20,-10\",w:310},7:{d:\"37,-228v33,-14,173,-17,181,-19v28,-1,24,31,9,45v-17,15,-45,49,-59,69v-17,26,-55,67,-61,113v-10,13,-9,14,-14,20v-33,-13,-20,-25,-11,-53v16,-48,73,-115,109,-156v2,-7,5,-14,-10,-12v-26,4,-54,6,-76,13v-23,-5,-83,31,-94,-9v2,-8,18,-19,26,-11\",w:245},8:{d:\"57,-236v40,-50,166,-51,213,-10v22,28,10,63,-22,78r-35,17v8,5,54,24,53,44v-5,14,-4,33,-18,42v-13,13,-35,18,-44,34v-60,27,-190,49,-194,-42v7,-41,17,-54,59,-70r0,-4v-32,-9,-73,-62,-26,-85v4,0,8,-2,14,-4xm142,-160v24,-2,160,-31,99,-72v-28,-18,-108,-33,-146,-5v-16,12,-28,30,-33,59v24,12,37,20,80,18xm41,-62v30,65,189,6,199,-37v3,-14,-60,-30,-74,-30v-70,0,-118,10,-125,67\",w:290},9:{d:\"11,-192v15,-49,119,-61,161,-23v16,15,27,55,11,79v-20,62,-51,79,-96,118v-10,4,-45,27,-50,6v9,-15,66,-52,98,-99v-7,-7,-8,-3,-25,0v-49,-11,-96,-25,-99,-81xm145,-131v7,-5,13,-34,13,-41v-2,-51,-104,-38,-114,-6v-2,10,37,35,46,35v23,1,43,-1,55,12\",w:198},\":\":{d:\"39,-125v15,-8,40,-1,40,15v0,15,-6,22,-19,22v-13,0,-29,-21,-21,-37xm66,-17v-8,27,-51,19,-46,-8v-1,-6,8,-22,14,-20v29,0,30,6,32,28\",w:95},\";\":{d:\"56,-93v2,-30,37,-22,40,2v0,2,-1,7,-3,15v-13,8,-15,6,-27,4xm64,-44v11,-11,30,-4,32,14v-21,39,-63,71,-92,85v-5,0,-11,-2,-18,-8v11,-23,36,-36,50,-61v11,-7,19,-20,28,-30\",w:107},\"<\":{d:\"166,-202v12,0,29,15,24,29v0,4,-119,64,-120,73v15,21,89,64,91,86v2,29,-18,12,-30,15v-27,-29,-59,-54,-95,-75v-18,-10,-25,-13,-24,-41\",w:176},\"=\":{d:\"125,-121v18,7,55,-9,69,14v0,17,-45,26,-135,26v-18,0,-27,-7,-27,-21v-1,-37,60,-5,93,-19xm138,-71v20,0,48,-1,50,16v-13,24,-86,32,-131,29v-29,-2,-43,-10,-43,-24v-7,-23,36,-14,39,-17v27,6,57,-4,85,-4\",w:196},\">\":{d:\"4,-14v20,-48,77,-59,118,-94v-16,-19,-58,-52,-81,-75v-11,-7,-15,-38,-1,-40v33,16,83,71,121,105v26,23,-6,35,-41,53v-29,16,-56,28,-73,54v-21,15,-16,20,-34,15v-3,0,-9,-16,-9,-18\",w:174},\"?\":{d:\"105,-291v57,-13,107,-4,107,39v0,67,-136,85,-155,137v-1,6,10,23,-4,23v-23,1,-33,-35,-23,-57v31,-41,124,-60,149,-103v-8,-21,-72,-5,-88,-1v-23,6,-59,39,-71,8v0,0,-1,0,1,-17v10,-4,45,-20,84,-29xm80,-25v-6,4,-8,39,-24,22v-24,3,-22,-21,-13,-35v17,-7,29,5,37,13\",w:216},\"@\":{d:\"218,-207v23,8,42,14,47,37v44,68,-27,137,-87,85r1,0v0,2,-59,19,-61,17v-35,0,-42,-47,-17,-68r0,-4v-19,-1,-45,37,-49,40v-37,76,58,72,121,62v11,-2,34,-13,36,3v-14,31,-69,31,-114,33v-51,2,-99,-41,-80,-92v2,-30,22,-40,42,-63v35,-20,91,-53,161,-50xm217,-101v23,0,35,-19,35,-41v0,-43,-75,-41,-102,-19v36,3,55,16,62,41v-6,5,-6,19,5,19xm127,-110v8,5,51,-15,28,-16v-4,0,-25,4,-28,16\",w:291},A:{d:\"97,-81v-23,-10,-39,38,-52,60v-8,6,-8,6,-22,18v-22,-7,-23,-37,-4,-49v7,-8,11,-15,15,-23r-1,1v-14,-26,23,-29,31,-40v1,-1,15,-29,26,-36v17,-31,39,-58,54,-92v16,-20,20,-51,41,-66v29,5,34,62,45,92v9,64,21,103,49,155v-3,25,-44,11,-54,0v-34,-12,-97,-29,-128,-20xm107,-118v20,6,80,10,111,17v6,-7,-4,-15,-7,-24v-11,-28,-9,-92,-30,-117v-9,9,-19,44,-34,55v-9,23,-27,40,-40,69\",w:294},B:{d:\"256,-179v41,10,115,34,91,91v-6,3,-14,12,-19,20v-37,19,-50,34,-63,25v-9,10,-12,11,-34,13r3,-3v-4,-4,-12,-4,-18,0v0,0,2,2,5,4v-21,14,-26,6,-44,15v-4,0,-7,-2,-8,-5v-6,11,-20,-5,-18,11v-36,4,-91,35,-114,4v-7,-62,-10,-138,4,-199v-1,-19,-37,2,-37,-27v0,-8,2,-13,6,-15v68,-31,231,-92,311,-39v8,12,12,20,12,25v-8,42,-32,49,-77,80xm79,-160v72,-17,135,-39,184,-70v20,-13,31,-23,31,-27v1,-6,-30,-13,-38,-12v-54,0,-116,13,-186,41v11,21,1,48,9,68xm262,-43v0,-4,3,-6,-4,-5v0,1,1,2,4,5xm211,-140v-34,7,-94,24,-139,15v-6,20,-4,56,-4,82v0,29,43,1,56,2v48,-11,108,-25,154,-48v20,-10,32,-17,32,-25v0,-18,-33,-26,-99,-26xm195,-20v6,1,6,-2,5,-7v-3,2,-7,2,-5,7\",w:364},C:{d:\"51,-114v-12,75,96,76,166,71r145,-10v9,2,9,5,9,18v-37,18,-85,28,-109,22v-18,10,-47,10,-71,10v-29,0,-68,1,-105,-11v-6,-1,-10,-3,-10,-8v-33,-13,-48,-33,-66,-59v-19,-114,146,-150,224,-177v35,0,88,-31,99,7v-1,29,-49,14,-76,28v-55,8,-115,35,-175,71v-13,8,-23,21,-31,38\",w:376},D:{d:\"312,-78v-2,1,-3,7,-10,5v6,-3,10,-4,10,-5xm4,-252v2,-27,83,-38,106,-39v130,-7,267,1,291,109v0,0,-2,8,-3,25v-5,9,-4,28,-23,34v-4,4,-2,5,-7,0v-3,3,-15,7,-5,10v0,0,-10,14,-13,2v-11,1,-8,5,-20,14v1,2,7,3,9,1v-4,13,-22,13,-11,4v0,-3,1,-6,-3,-5v-40,29,-103,38,-141,65v10,6,22,-7,34,-3v-41,20,-127,44,-171,46v-21,1,-47,-33,-11,-39v15,-2,43,-6,56,-11v-16,-101,-5,-130,9,-207v2,0,4,-1,6,-3v-16,-17,-91,38,-103,-3xm297,-69v-7,3,-17,8,-25,7v1,1,3,2,5,2v-4,2,-11,5,-23,9v4,-11,30,-21,43,-18xm240,-51v10,0,12,2,0,6r0,-6xm220,-36v-1,-3,4,-6,6,-3v0,1,-2,1,-6,3xm125,-48v16,6,137,-46,155,-53v29,-18,101,-44,82,-93v-21,-53,-84,-61,-168,-67v-20,7,-50,3,-77,8v33,54,-12,132,8,205xm159,-22v-4,-1,-15,-5,-15,2v7,-1,12,-2,15,-2\",w:381},E:{d:\"45,-219v-19,-36,34,-41,63,-36v44,-10,133,-8,194,-15v3,2,38,11,52,15v-73,19,-171,21,-246,38v-9,11,-16,32,-20,61v35,11,133,-6,183,3v1,6,2,7,3,14v-46,24,-118,16,-193,27v-15,13,-22,52,-22,66v60,1,121,-20,188,-20v22,10,53,-7,74,5v16,29,-23,26,-43,32v-73,4,-139,13,-216,27r-52,-10v-4,-22,23,-69,26,-98v-3,0,-10,-15,-12,-24v20,-12,34,-23,35,-67v2,-1,5,-5,5,-7v0,-4,-14,-11,-19,-11\",w:353},F:{d:\"270,-258v13,2,59,6,48,34v-78,-3,-143,1,-212,22v-10,16,-21,43,-24,69r145,-9v8,3,29,-3,16,21v-14,-1,-59,13,-60,7v-12,13,-67,18,-108,21v-2,1,-4,3,-7,6v-2,23,-8,43,-7,69v1,28,-30,11,-40,5r10,-80r-26,-14v5,-10,10,-33,28,-25v21,-3,15,-46,26,-59v-1,-3,-32,-13,-28,-24v2,-22,45,-16,59,-30v47,4,99,-14,151,-9v5,-3,25,-3,29,-4\",w:236},G:{d:\"311,-168v53,0,94,57,74,110v-31,37,-71,34,-136,52v-13,-7,-41,10,-57,7v-73,-1,-122,-17,-162,-59v-49,-51,-24,-80,5,-130v35,-61,138,-93,214,-106v16,4,42,-1,40,21v-5,40,-39,2,-73,21v-76,19,-162,65,-177,142v28,103,237,76,312,29v2,-3,3,-7,3,-13v-10,-35,-37,-43,-87,-45v-16,-13,-53,-9,-78,1v-4,-3,-5,-7,-5,-11v17,-29,73,-17,108,-24v12,4,18,5,19,5\",w:391},H:{d:\"300,-268v18,12,19,32,4,51v-35,44,-34,140,-46,217v-1,5,-5,13,-11,12v-6,1,-19,-14,-18,-27r7,-106v-28,7,-76,22,-116,14v-18,2,-36,6,-55,3v-43,-8,-14,53,-33,75v-29,1,-26,-67,-21,-97v5,-31,28,-73,43,-98v2,2,7,3,14,3v13,33,-11,48,-13,78v61,4,118,2,176,2v8,0,13,-6,15,-20v4,-47,21,-87,54,-107\",w:288},I:{d:\"63,-266v34,10,-4,105,-8,128r-24,126v-2,2,-3,1,-9,6v-12,-10,-12,-15,-12,-47v0,-93,9,-156,28,-188v10,-17,19,-25,25,-25\",w:79},J:{d:\"235,-291v26,11,31,104,31,142v0,37,-2,95,-32,126v-33,34,-121,26,-167,1v-18,-11,-54,-29,-59,-59v0,-3,5,-15,16,-14v31,36,90,57,162,51v63,-30,56,-148,32,-226v-1,-16,11,-13,17,-21\",w:282},K:{d:\"212,-219v17,-5,80,-60,80,-19v0,9,-2,14,-5,16r-132,78v-34,23,-54,32,-21,50v39,21,74,23,124,41v5,2,7,5,7,9v-4,24,-55,15,-79,8v-67,-19,-98,-36,-116,-83v9,-24,38,-35,66,-61v7,-4,49,-30,76,-39xm47,-194v11,-20,11,-45,31,-55v2,2,4,3,6,0v29,39,-21,96,-18,128v-17,24,-15,62,-29,113v-4,3,-10,7,-19,11v-12,-13,-10,-28,-8,-53v3,-31,17,-79,37,-144\",w:270},L:{d:\"84,-43v58,0,179,-27,242,-4v3,17,-29,24,-40,26v-85,-4,-202,46,-268,3v-24,-16,-2,-33,-4,-57v26,-76,38,-108,86,-191v14,-7,26,-50,45,-32v6,22,5,31,-12,46v-20,39,-50,82,-67,142v-7,6,-19,46,-19,54v0,9,12,13,37,13\",w:331},M:{d:\"174,-236v-1,52,-11,92,-7,143v10,5,15,-12,22,-18v42,-55,90,-130,136,-174r15,-18v42,2,32,53,11,80v-12,58,-54,143,-34,210v0,3,-3,12,-9,10v-31,-5,-32,-57,-27,-92v4,-27,12,-58,25,-93v-5,-10,5,-19,6,-30v-46,44,-66,110,-129,172v-11,10,-18,15,-22,15v-34,6,-28,-103,-28,-152v-28,22,-65,119,-96,170v-9,15,-34,3,-31,-19v30,-64,91,-177,139,-229v12,-1,29,13,29,25\",w:343},N:{d:\"248,-20v-3,17,-37,18,-43,3v-24,-35,-53,-145,-80,-203v-32,40,-55,120,-92,174v-13,3,-26,-13,-27,-22r87,-171v4,-13,20,-57,42,-32v42,48,46,139,82,198v29,-45,46,-88,65,-153v12,-19,23,-42,38,-60v27,-1,14,18,4,44v-6,46,-32,68,-37,121v-15,29,-33,69,-39,101\",w:307},O:{d:\"240,-268v85,1,163,29,150,125v13,7,-12,18,-5,26v-23,63,-133,112,-228,124v-80,-16,-171,-56,-148,-153v11,-47,20,-43,53,-83v17,-9,39,-22,73,-29v45,-10,81,-10,105,-10xm363,-156v16,-51,-62,-85,-111,-79v-25,-11,-50,8,-81,0v-15,10,-70,16,-85,31v6,20,-27,24,-39,45v-42,75,40,128,115,128v56,0,209,-71,201,-125\",w:383},P:{d:\"70,-225v-7,-12,-36,16,-49,19v-4,0,-9,-5,-14,-17v21,-47,114,-55,172,-59v41,-3,132,33,99,87v-21,34,-72,59,-144,80v-2,16,-79,3,-74,46v3,25,-5,47,-10,68v-22,-1,-23,-29,-22,-56v2,-25,-20,-32,-8,-50v21,-5,10,-35,25,-57v6,-28,14,-48,25,-61xm71,-229v47,14,-2,50,-1,99v41,-3,113,-37,173,-76v5,-9,8,-14,8,-15v-28,-47,-125,-29,-180,-8\",w:252},Q:{d:\"374,-217v20,59,-11,127,-48,156r30,38v-1,6,-8,16,-14,9v-3,0,-19,-9,-47,-26v-72,35,-173,75,-236,12v-70,-40,-67,-213,26,-217r8,5v24,-20,72,-48,112,-38v21,-4,22,-1,50,-2v66,-2,94,20,119,63xm296,-88v13,5,61,-49,63,-84v4,-62,-54,-78,-119,-76v-14,-6,-49,5,-71,3v-42,16,-89,41,-93,94v-9,11,1,25,-7,38v-12,-19,-7,-67,-1,-88v-56,30,-37,137,19,155v27,17,92,19,119,0v12,-2,29,-9,52,-20v2,-2,3,-3,3,-6v-11,-12,-46,-27,-54,-56v0,-13,3,-19,9,-19v18,1,60,52,80,59\",w:379},R:{d:\"100,-275v96,-23,196,-10,208,78v-3,18,-17,52,-49,62v-14,20,-54,23,-79,40v-2,0,-14,2,-36,6v-40,8,-30,14,-3,33v37,27,52,30,118,55v16,6,31,23,12,27v-58,-2,-104,-29,-143,-61v-14,-3,-16,-15,-39,-27v-23,-19,-28,-12,-15,-38v63,-19,111,-15,163,-53v27,-20,43,-36,43,-49v0,-64,-120,-62,-173,-38v-9,4,-38,9,-40,18v-10,32,-16,70,-13,116v-10,21,-8,47,-6,75v2,31,-9,29,-27,22v-9,-55,5,-140,15,-190v-8,-6,-24,10,-24,-11v0,-34,16,-34,42,-55v2,-1,17,-4,46,-10\",w:297},S:{d:\"13,-3v-7,-3,-22,-18,-5,-22v68,-15,119,-32,154,-45v51,-19,39,-34,3,-53v-46,-25,-82,-30,-121,-64v-33,-29,-50,-35,-25,-58v37,-20,119,-29,181,-29v29,0,44,6,44,18v-9,26,-62,6,-104,14v-17,2,-72,6,-92,16v37,53,132,58,180,111v8,9,11,20,11,30v-4,17,-23,35,-42,34v-21,16,-17,1,-49,17v-14,7,-41,9,-56,20v-25,-3,-49,10,-79,11\",w:234},T:{d:\"141,-3v-36,-6,1,-49,-3,-79v10,-19,6,-35,15,-64r26,-85v-51,-9,-100,10,-141,14v-16,2,-30,-26,-11,-32v26,-8,143,-8,179,-19r12,6v67,-2,142,-1,200,-1v8,0,14,3,19,10v-18,16,-74,3,-103,14v-48,-4,-60,4,-113,7v-42,22,-36,130,-58,187v1,12,-9,44,-22,42\",w:277},U:{d:\"365,-262v13,56,-22,104,-36,141v-19,22,-30,38,-57,56v-4,18,-60,35,-78,50v-53,28,-142,0,-161,-34v-31,-56,-37,-108,-11,-164v17,-33,29,-50,48,-29v-2,2,-3,7,-4,13v-44,36,-38,149,7,174v30,26,55,19,102,4v56,-17,66,-34,120,-76v12,-24,56,-68,46,-122r0,-16v0,1,-1,3,-1,6v4,-13,11,-10,25,-3\",w:368},V:{d:\"246,-258v21,-22,31,-26,44,-8v1,1,-12,22,-28,35v-15,25,-41,38,-56,69v-13,15,-20,31,-28,57v-15,13,-11,29,-27,72v3,21,-5,24,-27,27v-33,-45,-54,-118,-84,-167v-5,-26,-18,-50,-25,-76v-3,-12,24,-8,29,-5v8,13,18,52,26,70r52,115v9,-2,4,-9,10,-21r25,-47v25,-44,46,-76,89,-121\",w:234},W:{d:\"31,-213v16,46,17,106,41,151v31,-35,49,-89,76,-127v30,-15,39,27,52,56v10,22,21,48,35,67v2,0,4,-1,5,-3v16,-28,50,-76,79,-121v14,-21,40,-63,64,-83r5,8v-30,58,-76,110,-97,173v-18,28,-25,37,-33,63v-11,1,-16,25,-30,15v-21,-31,-44,-89,-62,-131v0,-2,-1,-3,-5,-5v-17,11,-16,36,-31,50v-20,33,-20,84,-68,94v-24,-19,-23,-81,-39,-111v-1,-15,-29,-94,-10,-108v9,2,12,5,18,12\",w:331},X:{d:\"143,-183v43,-25,69,-36,126,-62v22,-10,86,-10,56,21v-51,3,-158,61,-154,64v10,15,41,30,50,52v27,17,46,60,70,82v9,14,-6,30,-24,20v-35,-43,-75,-100,-116,-132v-48,13,-100,47,-118,94v-1,49,-26,34,-27,4v-1,-26,13,-27,17,-48v22,-27,68,-55,90,-77v-9,-12,-60,-39,-79,-57v-6,-10,-6,-25,12,-25\",w:312},Y:{d:\"216,-240v19,-14,42,10,22,26v-54,66,-121,109,-156,197v-8,21,-11,15,-30,4v3,-37,27,-61,33,-76v12,-12,15,-19,32,-42v-8,-6,-40,5,-45,5v-48,-6,-69,-65,-56,-113v14,0,13,-1,24,7v2,33,12,75,42,73v36,-2,102,-57,134,-81\",w:189},Z:{d:\"60,-255v66,12,200,-34,240,21v-13,42,-63,62,-98,89v-19,15,-47,33,-82,55v-25,16,-47,32,-66,47v58,24,129,-6,208,-6v23,0,36,12,13,19v-33,2,-53,5,-86,10v-32,18,-88,15,-135,15v-9,-1,-55,-1,-48,-29v1,-24,30,-24,40,-41v64,-50,151,-86,208,-147v-38,-17,-155,12,-198,-4v0,0,-11,-33,4,-29\",w:310},\"[\":{d:\"72,-258r-15,250v30,4,55,-3,80,-6v7,-1,8,17,9,23v-28,15,-73,23,-121,21v-7,0,-10,-6,-10,-17v0,-60,25,-193,22,-288v0,-16,13,-20,33,-19v9,-3,34,-12,51,-12v16,0,15,16,19,29v-16,7,-48,10,-68,19\",w:151},\"\\\\\":{d:\"21,38v-20,-21,9,-72,13,-90v44,-78,113,-189,200,-253v2,0,5,4,7,12v11,31,-13,36,-24,58v-74,61,-174,219,-180,273r-16,0\",w:257},\"]\":{d:\"133,-258v-23,-13,-84,6,-85,-32v0,-10,5,-15,14,-15v0,0,30,2,90,7v10,1,15,13,15,36v2,7,-8,59,-13,112r-11,125v-9,48,9,90,-59,71v-20,-4,-39,-1,-59,-4v-5,-10,-25,-12,-14,-30v8,-3,61,-13,78,-8v14,1,8,-7,10,-17v15,-69,21,-166,34,-245\",w:171},\"^\":{d:\"68,-306v20,15,47,36,58,60v-1,4,0,7,-9,7v-26,0,-47,-38,-49,-32v-15,9,-41,50,-54,30v-2,-31,17,-23,33,-51v8,-9,15,-14,21,-14\",w:135},_:{d:\"11,15v-8,33,18,45,50,34r205,2r197,-5v11,-5,14,-9,7,-28v-95,-21,-258,-10,-376,-10v-25,0,-72,-3,-83,7\",w:485},\"`\":{d:\"75,-264v16,8,56,14,39,43v-30,-8,-65,-23,-105,-44v-1,-3,-3,-28,5,-25v16,5,44,17,61,26\",w:129},a:{d:\"124,-56v10,4,59,41,65,50v1,7,-6,17,-12,17r-60,-30v-22,2,-42,21,-65,19v-33,4,-68,-67,-15,-81v41,-27,96,-39,110,9v0,6,-4,12,-11,16v-33,-25,-67,-5,-88,12v10,16,61,-18,76,-12\",w:196},b:{d:\"80,-140v69,1,123,0,134,52v5,26,-71,71,-97,70v-11,11,-88,22,-94,22v-11,-3,-26,-18,-6,-24v19,-5,-2,-19,-1,-35v1,-18,11,-36,-5,-47v-6,-17,-6,-21,14,-32v6,-45,18,-89,28,-124v2,-7,8,-12,17,-15v5,3,10,11,16,28v-12,27,-13,63,-23,96v0,6,6,9,17,9xm87,-107v-40,-9,-31,31,-39,54v8,15,0,25,12,22v30,-8,60,-18,88,-32v39,-18,49,-33,-1,-42v-20,-4,-45,-7,-60,-2\",w:217},c:{d:\"128,-123v29,-7,37,29,12,33v-27,-4,-40,6,-79,25v-8,4,-13,11,-16,22v30,32,91,3,134,11v5,13,-8,26,-22,19v-51,25,-139,28,-150,-30v6,-50,69,-82,121,-80\",w:194},d:{d:\"224,-201v0,-35,-17,-111,24,-94v7,86,-2,119,0,197v-4,2,-8,21,-18,16v-62,-7,-154,-8,-185,29v6,17,28,26,51,26v16,0,100,-15,132,-18v7,5,-6,20,-10,22v-24,8,-122,42,-163,25v-32,-5,-62,-53,-36,-80v35,-37,118,-46,198,-43v1,-22,7,-49,7,-80\",w:265},e:{d:\"4,-57v0,-58,51,-71,110,-74v33,-1,45,16,59,35v1,14,2,39,-7,42v-24,-2,-73,13,-99,11v-2,2,-2,3,-2,3v0,3,12,8,37,15v21,0,69,9,31,22v-9,14,-34,6,-56,6v-27,-5,-73,-28,-73,-60xm123,-102v-22,2,-68,5,-65,26v24,-2,66,5,79,-6v-5,-13,-1,-13,-14,-20\",w:182},f:{d:\"6,-59v6,-29,53,-4,53,-43v0,-64,29,-118,84,-150v45,-25,167,-24,155,51v-1,2,-7,6,0,6r-10,2v-45,-58,-165,-39,-186,39v-7,26,-11,42,-9,62v44,8,95,-21,135,-7v-12,25,-39,21,-76,30v-19,5,-18,7,-54,19v-2,8,15,32,17,35v-6,25,-26,26,-40,-5r-15,-24v-41,10,-44,12,-54,-15\",w:234},g:{d:\"132,-97v30,27,21,75,30,117v-12,31,-11,66,-36,103v-32,46,-105,83,-167,39v-31,-21,-49,-29,-51,-75v-2,-37,77,-50,121,-57v37,-6,68,-10,95,-11v7,-6,3,-32,4,-46v0,0,-1,1,-1,2v0,-18,-5,-31,-14,-45v-44,5,-79,20,-94,-18v3,-54,73,-54,125,-50v12,7,12,13,4,25v-30,-11,-76,8,-90,20v23,3,50,-16,74,-4xm-34,121v60,53,168,1,159,-86v-47,-7,-93,24,-142,30v-12,7,-45,19,-42,29v0,10,8,19,25,27\",w:188},h:{d:\"100,-310v11,-2,10,19,11,20v-11,52,-40,133,-53,189v-6,30,-9,37,-9,47v27,0,113,-34,143,-34v42,0,31,47,39,79v0,4,-5,17,-16,16v4,2,11,3,4,6v-24,-1,-28,-34,-25,-64v-1,-1,-2,-3,-5,-5v-51,0,-110,38,-162,51v-9,1,-15,-15,-16,-23v17,-89,39,-141,71,-264v0,-9,6,-19,18,-18\",w:251},i:{d:\"62,-209v7,18,9,23,-5,38v-23,-6,-21,-18,-11,-36v2,0,8,-1,16,-2xm34,-7v-18,-21,-8,-73,-1,-106v7,-10,20,-8,23,6v-1,36,7,72,-2,104v-8,2,-8,0,-20,-4\",w:80},j:{d:\"88,-191v5,28,-18,40,-28,21v0,-20,12,-29,28,-21xm82,-99v28,-1,16,35,16,61v0,60,-19,150,-35,202v-12,8,-19,31,-35,16v-32,-7,-43,-19,-56,-44r2,-17v11,4,49,45,61,18v10,-55,27,-107,30,-171v0,-16,0,-59,17,-65\",w:120},k:{d:\"59,-66v33,26,114,37,155,62v8,-4,22,-2,19,-17v0,-4,-12,-11,-30,-24v-36,-25,-54,-22,-99,-33v14,-21,119,-13,103,-63r-16,-7r-123,47r25,-93v-3,-15,16,-49,18,-81v1,-15,-21,-14,-25,-3v-31,82,-49,168,-75,257v2,2,22,30,27,10v2,-5,4,-9,9,-11v4,-16,4,-15,12,-44\",w:236},l:{d:\"66,-300v21,-6,37,23,30,55v-10,51,-28,135,-28,208v0,11,6,36,-13,37v-29,-5,-30,-48,-25,-83r28,-177v-6,-17,1,-29,8,-40\",w:102},m:{d:\"348,-59v-2,21,0,57,3,73v-17,3,-30,-1,-32,-16v-8,-7,-5,-44,-13,-70v-35,3,-82,49,-111,70v-12,8,-40,4,-39,-15r2,-56v-1,-13,4,-28,-8,-29v-35,8,-79,72,-115,87v-6,2,-20,-18,-21,-22v1,-20,14,-105,39,-64r8,15v17,-14,72,-56,93,-54v27,3,49,40,43,80v24,-2,66,-55,124,-53v11,14,28,23,27,54\",w:368},n:{d:\"121,-136v37,6,62,54,62,111v0,32,-16,25,-31,17v-18,-30,-5,-45,-22,-85v-37,-13,-71,55,-92,65v-20,-3,-39,-39,-21,-62v2,-12,3,-15,11,-30v12,-8,20,11,29,12\",w:194},o:{d:\"108,-139v52,-24,104,18,104,63v0,59,-66,67,-114,83v-52,-2,-115,-50,-80,-105v23,-18,52,-35,90,-41xm45,-60v16,54,125,16,131,-23v-12,-59,-129,-8,-131,23\",w:217},p:{d:\"82,14v-10,12,-8,117,-24,142v-15,2,-19,0,-29,-13v0,-76,9,-113,22,-192v14,-27,35,-6,37,13v0,8,-3,21,-7,38v2,2,3,2,4,2v26,-9,116,-33,126,-72v-7,-17,-24,-33,-49,-31v-40,3,-116,13,-116,47v-5,7,-2,17,-16,20v-17,-12,-18,-20,-12,-38v8,-25,74,-61,110,-59v55,-15,113,15,118,70v-15,52,-84,79,-146,83v-5,0,-11,-4,-18,-10\",w:251},q:{d:\"144,-147v27,-8,89,-3,97,31v-9,29,-42,-4,-73,1v-32,6,-118,20,-111,49v0,7,13,13,21,13v21,0,78,-24,104,-34v2,0,9,8,22,21v1,1,1,2,1,5v-27,90,-22,70,-43,203v11,15,-15,54,-33,33v-6,-8,-10,-20,-3,-28v1,-72,5,-114,15,-172v-35,3,-35,10,-59,8v-41,-4,-98,-41,-56,-85v33,-34,59,-27,118,-45\",w:248},r:{d:\"242,-117v2,22,5,10,-14,23v-73,-7,-166,-23,-174,56v-8,6,-3,20,-8,36v-29,10,-40,-9,-33,-46v6,-31,7,-69,32,-55v58,-37,66,-42,175,-19v3,5,15,4,22,5\",w:229},s:{d:\"154,-151v19,1,27,24,13,32v-4,1,-22,4,-53,7v-16,8,-22,-2,-39,9v23,21,89,16,96,62v-13,24,-85,35,-124,42v-9,-3,-18,-3,-27,0v-6,-4,-21,-16,-8,-25v30,-6,83,-13,102,-24v-17,-16,-80,-33,-97,-48v-3,-2,-4,-7,-4,-15v-6,-6,3,-13,15,-18v22,-9,94,-23,126,-22\",w:188},t:{d:\"85,-150v10,-41,35,-126,65,-134v4,1,24,19,11,36v-17,22,-29,57,-36,104v26,8,50,-7,73,5v14,0,22,3,22,9v-1,19,-44,18,-57,23v-10,1,-46,0,-54,10v-10,24,-4,67,-20,98v-21,-3,-26,1,-26,-20v0,-9,2,-36,8,-81v-15,-13,-81,9,-77,-27v4,-38,71,6,91,-23\",w:194},u:{d:\"207,-136v-1,-2,11,-14,14,-13v6,0,10,7,10,22v-3,40,-23,56,-40,82v-13,19,-62,43,-93,43v-67,-2,-111,-75,-71,-133v26,-3,21,29,19,49v-1,27,26,44,57,42v41,-2,93,-55,104,-92\",w:242},v:{d:\"24,-127r52,71v42,-16,70,-54,124,-65v5,4,8,7,8,11v-8,19,-4,8,-33,32v0,1,-1,3,-1,5v-61,45,-93,68,-97,68v-40,-15,-50,-72,-68,-100v6,-14,10,-22,15,-22\",w:214},w:{d:\"15,-139v38,-2,27,57,45,86v30,2,67,-66,101,-78v26,6,36,69,60,78v47,-35,51,-54,119,-104v3,0,7,-2,15,-4v19,23,-9,28,-21,49v-33,28,-68,90,-107,109v-10,6,-52,-47,-72,-71v-20,17,-85,74,-97,73v-38,7,-41,-98,-52,-122v0,-1,3,-7,9,-16\",w:325},x:{d:\"95,-124v22,-13,78,-32,99,-31v16,0,23,6,23,18v0,22,-17,11,-49,21v-3,0,-45,20,-42,24v0,1,2,4,8,10v20,24,49,41,44,80v-35,3,-27,-9,-60,-44v-40,-43,-37,-26,-79,9v-1,1,-2,3,-3,8v-12,8,-28,10,-27,-11v-6,-8,45,-65,48,-65v-17,-21,-61,-52,-24,-68v9,0,48,37,62,49\",w:223},y:{d:\"44,-65v22,33,70,4,99,-8v5,-4,28,-15,41,-31r17,0v25,47,-26,70,-40,114v-5,4,-9,8,-10,21v-16,12,-11,33,-27,51v-5,18,-12,43,-23,71v-1,-1,-2,34,-18,29v-12,1,-22,-12,-22,-23v20,-70,24,-65,68,-177v-47,16,-111,8,-116,-39v-11,-13,-7,-62,8,-62v18,0,22,26,23,54\",w:216},z:{d:\"189,-43v9,-1,46,-6,41,12v0,7,-5,13,-15,14v-45,6,-148,24,-181,13v0,-3,-5,-8,-14,-15v5,-44,66,-46,90,-85v-15,-18,-84,21,-84,-14v0,-10,5,-17,14,-18v33,-3,79,-13,109,-3v4,-2,14,11,12,15v0,23,-26,51,-78,84v28,10,73,-3,106,-3\",w:244},\"{\":{d:\"94,-303v27,-9,90,-14,79,26v-20,17,-55,-5,-87,13v-4,1,-6,4,-6,8v33,42,31,44,7,85v-6,10,-13,16,-13,13v5,6,17,17,15,31r-33,78v7,35,28,49,57,63r49,0v7,42,-51,41,-86,20v-43,-13,-51,-51,-56,-89v-2,-25,25,-54,27,-71v-3,-4,-46,-5,-41,-21v2,-10,-3,-29,11,-25v2,0,51,-17,52,-38v4,-3,-25,-23,-25,-49v0,-41,8,-30,50,-44\",w:179},\"|\":{d:\"30,-308v26,5,14,50,15,80v5,78,-8,153,-3,225v-2,15,-1,31,-11,36v-8,-3,-25,-22,-25,-32r9,-183v0,-40,0,-78,1,-112v0,-4,9,-15,14,-14\",w:63},\"}\":{d:\"47,-298v34,-17,118,-18,112,36v6,25,-76,98,-69,103v4,16,39,7,44,28v7,34,-34,17,-37,39v8,29,49,83,23,123v-15,23,-43,26,-73,46v-34,8,-43,11,-49,-17v1,-15,30,-15,33,-20v24,-12,70,-27,55,-61v-14,-33,-37,-68,-19,-103v-46,-50,46,-100,60,-141v-10,-16,-68,6,-77,-12\",w:143},\"~\":{d:\"7,-254v2,-6,59,-50,67,-46v11,-1,35,19,46,26v5,0,27,-10,66,-31v21,8,-1,25,-7,38v-27,21,-48,31,-65,31v-24,-11,-37,-39,-65,-9v-7,7,-26,36,-42,11v3,-5,-3,-17,0,-20\",w:199},\"Ä\":{d:\"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm187,-259v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm90,-284v7,3,28,11,28,18v0,9,-9,18,-18,17v-17,0,-25,-24,-10,-35\"},\"Å\":{d:\"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm112,-239v-31,-17,-9,-61,29,-56v12,2,22,3,33,12v24,39,-30,62,-62,44xm119,-262v2,14,41,8,41,-4v0,-4,-8,-6,-24,-9v-10,-2,-17,10,-17,13\"},\"Ç\":{d:\"48,-108v-12,70,90,71,159,67r138,-9v9,-1,7,9,7,17v-37,16,-80,27,-103,21v-14,9,-40,3,-67,9v-30,0,-64,1,-100,-10v-6,-1,-10,-4,-10,-8v-32,-12,-46,-31,-63,-56v-16,-61,47,-103,83,-121v82,-42,118,-45,200,-60v21,-4,36,34,11,37v-90,11,-148,31,-225,77v-12,8,-23,20,-30,36xm172,18v29,4,47,14,53,35v-2,7,-14,31,-27,31v-28,7,-55,9,-84,14v-18,-5,-13,-32,7,-32v21,0,55,-5,69,-13v-16,-14,-63,10,-50,-35v9,-10,1,-27,23,-29v7,8,11,16,9,29\",w:331},\"É\":{d:\"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm133,-248v27,-11,48,-32,59,-14v3,11,-79,52,-88,53v-14,1,-16,-11,-12,-21v10,-4,23,-11,41,-18\",w:252},\"Ñ\":{d:\"224,-182v1,-17,15,-24,22,-38v20,0,13,10,3,33v-3,36,-25,52,-28,94v-10,24,-30,55,-29,82r-19,7v-32,-8,-36,-70,-58,-111v-2,-23,-7,-27,-19,-54v-28,36,-41,93,-71,133v-9,5,-20,-9,-20,-17r73,-149v9,-24,31,-5,36,7v19,41,31,98,53,139v22,-35,34,-69,50,-118v2,-3,3,-3,7,-8xm203,-257v22,-8,41,-24,65,-26v3,11,-8,9,-7,21v-26,20,-46,31,-59,31v-2,3,-49,-27,-49,-29v-11,0,-32,31,-46,32v-11,-2,-12,-21,-4,-23v4,-6,28,-30,48,-34v17,-4,43,28,52,28\",w:219},\"Ö\":{d:\"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm197,-229v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm101,-254v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35\",w:273},\"Ü\":{d:\"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-29,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm197,-227v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm101,-252v7,3,27,10,27,18v0,8,-9,18,-18,17v-18,-1,-24,-25,-9,-35\",w:262},\"á\":{d:\"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm32,-117v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-13,2,-14,-10,-12,-21\",w:173},\"à\":{d:\"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm99,-137v7,6,56,14,37,40v-28,-7,-62,-21,-100,-41v-2,-3,-2,-26,5,-23v16,4,42,17,58,24\",w:173},\"â\":{d:\"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm147,-97v-27,-6,-39,-26,-60,-37v-21,7,-38,46,-65,23v-2,-5,-3,-10,-4,-14v18,-4,43,-31,61,-42v28,5,40,21,62,36v12,8,18,17,18,25v0,6,-4,9,-12,9\",w:173},\"ä\":{d:\"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-32,5,-66,-64,-15,-77v39,-26,92,-36,104,9v0,6,-3,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm142,-119v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm46,-144v7,3,28,9,27,18v1,8,-9,18,-18,17v-18,-1,-25,-25,-9,-35\",w:173},\"ã\":{d:\"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm114,-136v22,-8,41,-24,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-12,-32,8,-29,32,-51v24,-21,54,20,69,23\",w:173},\"å\":{d:\"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm54,-101v-37,-20,-9,-71,34,-65v13,1,25,3,38,13v27,45,-34,73,-72,52xm61,-128v4,20,48,7,49,-5v0,-5,-9,-7,-28,-10v-12,-2,-21,11,-21,15\",w:173},\"ç\":{d:\"108,-118v30,-6,56,21,25,33v-24,-6,-39,5,-75,23v-7,4,-12,12,-15,22v31,28,86,3,128,9v3,28,-29,16,-44,28v-53,15,-106,10,-120,-37v0,-48,62,-70,101,-78xm92,18v23,4,45,12,48,32v-2,6,-12,28,-25,28v-24,6,-50,10,-77,13v-16,-4,-11,-28,7,-29v17,-1,51,-4,63,-12v-14,-15,-57,10,-46,-32v9,-8,0,-25,21,-26v6,6,12,14,9,26\",w:171},\"é\":{d:\"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm76,-169v26,-11,48,-32,59,-14v3,10,-80,53,-89,53v-14,1,-14,-10,-12,-21v15,-7,16,-7,42,-18\",w:161},\"è\":{d:\"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm95,-166v7,6,54,14,37,40v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,18,58,25\",w:161},\"ê\":{d:\"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm145,-129v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-51,34,-56,0v17,-4,44,-32,61,-43v28,5,41,21,63,36v12,8,17,17,17,25v0,6,-3,9,-11,9\",w:161},\"ë\":{d:\"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10r-3,3v0,3,12,7,36,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-67,-27,-71,-58v7,-52,48,-65,105,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm140,-144v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm44,-169v7,3,28,9,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35\",w:161},\"í\":{d:\"59,-98v20,4,15,53,10,95v-6,1,-11,2,-19,-4v1,-7,-12,-18,-10,-24v4,-22,-4,-65,19,-67xm50,-139v27,-11,49,-32,59,-14v3,11,-80,53,-89,53v-14,1,-14,-12,-11,-22v15,-7,14,-6,41,-17\",w:105},\"ì\":{d:\"57,-98v22,5,13,50,11,95v-7,1,-11,2,-20,-4v1,-7,-12,-18,-10,-24v4,-22,-2,-64,19,-67xm70,-139v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-3,-25,5,-23v15,5,41,17,57,24\",w:109},\"î\":{d:\"72,-98v20,5,12,51,10,95v-6,2,-13,1,-20,-4v1,-8,-12,-18,-10,-24v4,-22,-3,-65,20,-67xm134,-94v-26,-7,-39,-25,-60,-37v-7,0,-9,4,-13,10v-14,15,-51,34,-56,-1v18,-4,45,-33,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-4,9,-12,9\",w:143},\"ï\":{d:\"55,-97v19,5,15,53,10,95v-17,5,-26,-14,-30,-28v6,-20,-3,-65,20,-67xm110,-118v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm14,-143v6,3,28,8,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35\",w:107},\"ñ\":{d:\"115,-129v34,6,59,50,59,105v0,31,-15,24,-30,17v-15,-29,-5,-42,-20,-81v-35,-13,-68,52,-88,61v-20,-4,-38,-36,-19,-59v0,-12,3,-14,10,-28v11,-8,18,11,27,12xm117,-166v22,-7,41,-23,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-5,-12,-8,-16,0,-23v4,-6,28,-29,48,-33v17,-3,43,28,53,28\",w:171},\"ó\":{d:\"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm49,-154v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-14,0,-13,-8,-12,-21\",w:191},\"ò\":{d:\"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm115,-181v14,10,51,13,37,40v-28,-7,-62,-21,-100,-41v-3,-2,-3,-26,5,-23v16,5,42,17,58,24\",w:191},\"ô\":{d:\"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm110,-177v-22,6,-38,45,-65,22v-2,-4,-3,-9,-4,-13v18,-4,43,-32,61,-43v27,6,40,21,62,36v12,9,18,17,18,25v1,11,-15,10,-23,7\",w:191},\"ö\":{d:\"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm161,-160v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm65,-185v7,3,28,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35\",w:191},\"õ\":{d:\"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm58,-199v26,-21,54,18,69,22v4,0,15,-5,34,-13v22,-9,21,-16,31,-13v3,11,-9,9,-7,22v-26,20,-46,30,-59,30v-2,4,-49,-28,-49,-29v-11,0,-32,31,-46,32v-12,-3,-13,-21,-4,-23v4,-6,14,-15,31,-28\",w:191},\"ú\":{d:\"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm106,-174v26,-11,48,-32,59,-14v3,11,-81,53,-89,54v-13,1,-15,-12,-11,-22v15,-7,14,-7,41,-18\",w:213},\"ù\":{d:\"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm126,-166v7,6,56,14,37,40v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,18,58,25\",w:213},\"û\":{d:\"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm172,-143v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-49,35,-56,0v17,-4,44,-32,61,-43v27,6,41,21,63,36v12,9,17,17,17,25v0,6,-3,9,-11,9\",w:213},\"ü\":{d:\"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm168,-161v0,8,-3,13,-11,13v-17,0,-20,-19,-17,-34v18,-1,29,1,28,21xm72,-186v7,3,29,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35\",w:213},\"†\":{d:\"22,-286v15,6,5,-20,19,-19v9,-3,15,21,17,22v6,1,12,3,20,6v3,10,5,16,-9,16v-34,-10,-6,51,-34,52v-20,-7,11,-47,-15,-49v-14,3,-25,-5,-17,-24v7,-2,14,-4,19,-4\",w:77},\"°\":{d:\"106,-268v0,36,-35,38,-51,46v-48,5,-60,-58,-25,-78v33,-11,76,-9,76,32xm38,-257v16,7,39,2,38,-17v-13,-9,-28,-1,-32,11v-5,3,-7,0,-6,6\",w:114},\"¢\":{d:\"105,-188v13,-12,14,-18,26,-15v7,23,7,15,-3,49v6,0,18,14,17,20v-3,5,-12,19,-26,13v-14,1,-14,5,-16,21v10,10,46,-13,38,18v-9,17,-23,16,-54,20v-17,16,-4,55,-29,60v-37,-10,19,-64,-24,-71v-20,-10,-37,-47,-6,-62v23,-20,73,-4,77,-53xm65,-101v4,-9,7,-8,3,-13v-14,4,-22,10,-3,13\",w:154},\"£\":{d:\"153,-170v3,22,62,0,49,39v-18,6,-31,12,-58,9v-12,-1,-17,30,-23,39v19,26,50,56,91,35v9,-2,27,-13,27,4v0,27,-27,39,-58,42v-32,-5,-59,-19,-78,-39v-6,1,-35,44,-57,39v-25,0,-37,-15,-37,-46v0,-41,43,-53,73,-50v4,1,12,-18,12,-21v-7,-15,-49,0,-44,-30v-2,-31,31,-16,60,-19v16,-30,25,-119,93,-113v16,2,75,16,50,44v-4,5,-7,7,-12,8v-18,-12,-32,-18,-41,-18v-35,-1,-38,52,-47,77xm43,-45v4,5,12,-2,11,-9v-1,2,-12,1,-11,9\",w:242},\"§\":{d:\"141,-115v12,10,29,36,28,56v-4,68,-129,69,-152,16v-1,-12,-10,-22,8,-23v17,3,47,21,67,23v16,1,40,-8,38,-21v-8,-49,-119,-30,-117,-85v1,-28,15,-45,-3,-64v-1,-53,55,-61,103,-62v15,-5,6,-5,20,-2v16,17,23,27,23,30v-1,26,-29,7,-45,7v-21,0,-51,2,-62,17v19,14,87,8,97,43v18,14,16,57,-5,65xm64,-147r57,17v10,-28,-22,-43,-47,-44v-25,-1,-35,19,-10,27\",w:174},\"•\":{d:\"130,-114v0,47,-124,54,-120,-8r6,-31v44,-28,64,-34,104,0v8,6,10,20,10,39\",w:139},\"¶\":{d:\"121,-237v21,-9,44,-13,63,-1v-1,7,5,6,7,11r-4,190v-2,33,4,39,-15,40v-16,1,-10,-20,-10,-33r4,-161v0,-17,-1,-34,-16,-25v2,10,1,23,1,35v-9,46,-6,75,-15,156v-3,4,-7,5,-12,5v-17,-10,-3,-89,-10,-115v-43,14,-98,10,-101,-29v-4,-53,59,-63,104,-75v3,1,4,2,4,2xm95,-204v2,9,-30,50,1,50v35,0,23,-13,29,-43v0,-1,-2,-7,-4,-15v-12,-1,-14,2,-26,8\",w:206},\"ß\":{d:\"33,10v-29,4,-28,-32,-16,-70v18,-58,17,-137,56,-176v12,-24,46,-58,82,-43v20,8,47,24,47,54v0,30,-62,59,-67,90v33,23,56,33,63,63v-18,21,-22,36,-48,54v-24,17,-27,41,-53,16v-2,-19,7,-35,24,-42v15,-13,26,-22,34,-40v-13,-17,-78,-29,-56,-70v-3,-27,64,-54,66,-86v-8,-25,-41,-4,-52,8v-29,30,-47,83,-51,141v-17,25,-8,71,-29,101\"},\"®\":{d:\"75,-194v78,-29,116,9,130,84v-2,42,-22,47,-57,67v-74,20,-161,-19,-129,-110v6,-18,29,-34,57,-40xm46,-86v51,36,84,21,129,-15v7,-15,0,-39,-10,-49v-13,-37,-49,-26,-86,-18v-28,7,-49,46,-33,82xm72,-123v-5,-43,68,-57,75,-14v-17,26,-18,17,3,32v2,25,-25,18,-45,7r-4,-4v-1,8,-3,20,-12,24v-10,-3,-21,-34,-17,-45xm112,-135v-10,-1,-20,13,-9,14v6,-6,9,-11,9,-14\",w:217},\"©\":{d:\"102,-29v-74,5,-124,-84,-70,-140v22,-22,53,-35,97,-38v46,-4,88,49,74,100v0,44,-51,75,-101,78xm96,-66v42,-3,75,-23,75,-69v0,-23,-4,-38,-44,-38v-16,0,-33,6,-49,20v36,-4,55,-12,62,20v-5,16,-49,1,-50,21v10,15,53,-14,54,11v0,18,-14,27,-42,27v-22,1,-46,-11,-46,-31v0,-25,7,-39,20,-44v-1,-1,-2,-2,-3,-2v-51,22,-32,89,23,85\",w:217},\"™\":{d:\"213,-307v28,9,11,49,7,75v-1,4,-4,6,-11,6v-7,1,-11,-14,-11,-34v-14,-6,-34,34,-46,28v-2,0,-10,-9,-24,-27v-10,7,-3,36,-27,31v-15,-24,-3,-27,1,-48v-6,-7,-27,-1,-31,3v-3,14,-7,30,-11,51v-5,10,-29,9,-24,-12v-5,-8,1,-18,3,-35v-13,6,-33,2,-29,-18v20,-17,64,-17,100,-19v28,-1,29,30,45,39v11,-6,35,-32,58,-40\",w:239},\"´\":{d:\"52,-284v29,-11,50,-34,62,-14v3,12,-86,54,-94,56v-14,0,-16,-12,-12,-23v11,-5,25,-11,44,-19\",w:120},\"¨\":{d:\"124,-259v0,9,-4,13,-12,13v-18,0,-22,-21,-17,-35v19,-1,30,1,29,22xm23,-285v7,2,30,9,29,18v1,10,-9,19,-18,19v-19,0,-28,-26,-11,-37\",w:136},\"≠\":{d:\"48,-130v29,11,49,-57,60,-50v25,6,7,27,-1,46v22,5,29,7,21,22v-18,2,-48,-1,-50,15v9,8,53,-7,54,10v-4,22,-46,20,-72,24v-7,13,-18,32,-34,57v-8,6,-15,-3,-13,-14v-1,-9,15,-39,14,-45v-30,5,-24,-17,-13,-25v12,-1,36,4,29,-13v-14,0,-47,6,-36,-12v0,-18,27,-13,41,-15\",w:140},\"Æ\":{d:\"335,-259v0,30,-102,12,-122,34v10,21,2,79,16,100v24,-6,59,-13,86,-16v23,-2,32,21,13,26r-103,29v-3,22,-4,38,8,43v28,-5,60,-6,86,-14v5,-1,14,7,14,11v6,16,-90,40,-107,40v-29,0,-39,-19,-32,-46v-2,-4,0,-26,-9,-28v-29,2,-58,6,-88,6v-31,0,-40,74,-82,73v-18,-23,4,-37,12,-50v40,-65,112,-126,165,-207v20,-17,69,-11,112,-13v21,0,31,4,31,12xm123,-111v28,1,44,-2,67,-10v-4,-22,5,-49,-7,-65v-3,6,-65,61,-60,75\",w:348},\"Ø\":{d:\"76,-211v41,-13,100,-22,140,-3v26,-19,40,-29,44,-29v10,0,15,7,15,20v0,15,-23,23,-30,35v23,39,29,114,-21,139v-36,19,-102,35,-147,18v-14,-5,-29,29,-46,35v-25,-13,-19,-24,3,-56v-9,-17,-28,-27,-28,-60v0,-38,23,-72,70,-99xm107,-66v55,15,125,-12,123,-70v0,-16,-5,-25,-13,-29r-110,95r0,4xm39,-108v-1,3,17,31,22,27v8,-6,109,-90,123,-106v-15,-11,-43,1,-63,2v-33,10,-80,35,-82,77\",w:270},\"∞\":{d:\"322,-72v-4,22,-54,41,-76,41v-43,0,-83,-17,-114,-35v-46,19,-125,53,-128,-18v-1,-14,10,-22,13,-35v29,-10,62,-31,97,-4v37,28,47,5,75,-8v40,-19,73,-10,114,1v13,1,18,55,19,58xm228,-69v15,0,62,-12,61,-25v-19,-23,-89,-10,-105,11v0,2,1,4,2,4v28,6,42,10,42,10xm75,-102v-13,2,-41,4,-44,19v0,4,3,7,10,7v21,0,40,-6,54,-17v-9,-6,-16,-9,-20,-9\",w:330},\"±\":{d:\"93,-163v-7,46,76,-4,46,47v-14,6,-27,13,-38,8v-24,2,-14,28,-28,44r-14,0v-7,-12,-5,-15,-7,-33v-12,-7,-41,-1,-37,-24v2,-11,23,-17,36,-14r28,-38v4,0,9,4,14,10xm113,-27v-12,18,-58,27,-85,24v-16,2,-22,-23,-13,-36v28,-7,85,-11,98,12\",w:151},\"≤\":{d:\"73,-109v10,15,87,16,87,42v0,11,-5,16,-13,16v-36,-11,-69,-24,-109,-31v-18,-8,-18,-13,-9,-36v59,-56,93,-83,101,-83v16,0,18,17,14,28v-27,24,-42,35,-71,64xm10,-29v35,-12,117,-26,148,-3v1,2,-5,19,-8,18r-124,15v-16,2,-26,-18,-16,-30\",w:168},\"≥\":{d:\"115,-174v20,7,53,36,20,57v-19,11,-91,68,-82,59v-18,3,-25,-22,-13,-31v15,-10,14,-10,70,-51r-50,-37v-5,-4,-5,-27,4,-28v16,7,40,17,51,31xm14,-32v33,-10,86,-14,127,-10v12,12,5,23,-11,27v-49,9,-82,13,-99,13v-22,0,-24,-16,-17,-30\",w:163},\"¥\":{d:\"31,-248v30,-3,64,64,74,59v37,-22,77,-65,107,-82v20,-11,34,18,21,32v-28,19,-52,38,-70,57v-18,8,-40,21,-35,60v2,19,39,7,64,7v25,0,16,21,2,27v-36,16,-46,8,-68,18v6,11,101,-20,66,24v-21,11,-42,12,-75,20v-2,1,-5,6,-10,18v-8,3,-11,10,-24,8v-7,-17,-2,-18,-9,-26v-13,5,-39,3,-53,-2v-10,-17,-7,-27,0,-34v23,-1,45,1,64,-5v-11,-7,-28,-4,-64,-6v-13,-8,-15,-24,-6,-35v33,-2,102,9,76,-37v-14,-14,-33,-38,-60,-66v-10,-10,-8,-28,0,-37\",w:219},\"µ\":{d:\"123,-114v41,0,54,-9,127,-17v12,-2,20,-6,25,-12v5,-78,43,-127,119,-138v38,-5,46,23,55,48v-5,5,2,4,2,12v-2,47,-72,81,-129,95v-17,4,-12,32,-2,39v30,-5,24,0,99,4v14,9,14,20,-1,23v-17,3,-71,-1,-85,13v1,19,18,35,-3,47v-1,-6,-10,-7,-16,-5v-3,-3,-20,-37,-29,-41v-15,8,-50,22,-49,-9v1,-19,2,-27,28,-26v24,1,13,-12,8,-30v-22,1,-64,16,-111,23v-50,7,-17,47,-17,57v0,10,-5,15,-13,15v-20,-9,-27,-30,-33,-55v-20,-17,-52,8,-85,-6v-2,-10,-13,-26,4,-29v32,-6,41,-1,65,-7v-17,-74,-4,-173,69,-180v55,-20,130,8,131,65v-11,9,-10,2,-29,-11v-33,-23,-37,-26,-76,-25v-41,13,-69,38,-67,100v0,34,4,50,13,50xm317,-152v29,-6,106,-43,106,-71v0,-23,-24,-25,-42,-17v-31,1,-74,48,-64,88\",w:462},\"∂\":{d:\"456,-113v55,-37,119,-8,176,5v-19,37,-104,-5,-144,18v-5,64,-45,87,-130,87v-43,0,-70,-8,-96,-21v-54,15,-146,29,-209,10v-18,-11,-43,-26,-46,-53v-1,-9,28,-48,51,-46v55,-10,55,-8,101,-8v29,0,17,-26,23,-56v4,-19,4,-74,34,-49v4,42,-7,83,-10,124v0,4,-11,10,-34,17v-29,-1,-45,-4,-74,1v-10,2,-57,3,-52,18v30,43,132,30,190,18v2,-10,-7,-19,-5,-28v5,-36,31,-59,74,-56v27,2,71,4,70,35v-1,30,-37,41,-58,57v35,13,131,15,135,-23v2,-19,-5,-36,4,-50xm262,-85v0,3,13,28,19,25v7,0,48,-13,61,-29v-10,-17,-71,-17,-80,4\",w:640},\"∑\":{d:\"235,-95v-3,-59,120,-41,160,-28v3,-2,15,-3,14,4v1,3,-16,19,-21,18r-97,4v-25,5,-18,18,-23,56v-16,14,-25,24,-36,18v-83,32,-154,29,-212,-17v-45,-68,41,-114,107,-119v50,-4,59,66,22,85v-16,8,-61,10,-79,15v36,27,185,24,165,-36xm128,-119v-23,-3,-43,4,-53,15v13,5,46,-4,53,-15\",w:414},\"∏\":{d:\"243,-190v7,-18,27,-19,38,6v0,2,-5,8,-14,16v-8,-9,-27,-4,-24,-22xm221,-111v55,-7,60,22,45,64v5,23,17,47,-22,47v-35,0,-18,-40,-15,-70v-2,-19,-35,-13,-52,-18v-2,0,-13,1,-34,3v-4,0,-10,11,-13,31v-3,20,1,43,-11,54v-12,-4,-13,-5,-21,-3v-13,-13,-3,-25,-12,-41v7,-6,12,-22,10,-39v-23,-8,-79,15,-87,-21v12,-28,78,-4,101,-20r36,-96v8,-19,17,-28,27,-28v10,0,15,6,15,18v-6,32,-31,62,-38,109v25,10,47,-1,71,10\",w:282},\"π\":{d:\"247,-240v-3,5,-14,12,-21,6v-41,5,-71,-4,-85,37v-6,7,-21,42,-25,61v28,12,104,-16,129,24v8,11,12,24,12,38v-7,17,-2,99,-40,68v-9,-23,-5,-47,-1,-73v3,-24,-40,-24,-50,-19v-4,0,-18,2,-44,6v-30,-6,-16,49,-33,58v-19,-11,-14,2,-29,-10v8,-71,20,-114,43,-170v-24,-2,-49,4,-73,7v-30,3,-32,-33,-7,-36r184,-22v17,-1,40,13,40,25\",w:265},\"∫\":{d:\"62,-151v-7,-70,20,-130,63,-150v28,1,39,10,70,23v20,8,6,33,-6,35v-29,-13,-45,-20,-49,-20v-20,-4,-45,51,-43,70v8,60,5,129,5,189v0,62,-27,93,-79,93v-37,-1,-71,-14,-63,-57v21,0,79,34,91,-2v16,-3,14,-64,21,-85v-2,-31,-1,-74,-10,-96\",w:156},\"ª\":{d:\"6,-265v1,-31,58,-53,80,-22v-11,14,25,28,25,36v-2,8,-15,12,-27,10v-22,-29,-68,19,-78,-24xm52,-281v-8,1,-24,10,-9,13v11,1,24,-10,9,-13\",w:117},\"º\":{d:\"13,-273v1,-31,56,-41,83,-18v36,8,14,48,-9,52v-35,6,-64,-5,-74,-34xm81,-269v-7,-7,-20,-11,-29,-6v5,13,13,11,29,6\",w:128},\"Ω\":{d:\"121,-111v9,16,43,-5,54,5v28,-4,62,8,81,-5v48,-33,166,-28,160,44v15,34,-51,53,-88,53v-34,0,-53,-21,-71,-37v-15,7,-32,-4,-28,-22v-26,-4,-93,-6,-108,8v8,17,5,37,12,54v-1,15,-18,15,-31,10v-9,-15,-20,-39,-19,-63v-20,-9,-73,15,-79,-18v4,-28,50,-11,77,-24v12,-99,36,-168,137,-178v35,5,64,20,67,57v0,13,-14,18,-20,5v-15,-35,-83,-31,-104,4v-26,20,-39,82,-40,107xm334,-45v15,2,51,-14,53,-22v-7,-20,-36,-31,-69,-29v-8,-1,-39,6,-37,14v-3,10,44,38,53,37\",w:424},\"æ\":{d:\"145,-44r33,7v2,42,-59,29,-85,16v-6,7,-35,24,-48,15v-19,2,-35,-21,-33,-37v2,-24,5,-19,28,-36v-6,-8,-45,3,-33,-21v21,-22,58,-12,85,-1v6,-5,35,-28,45,-15v20,-4,36,17,36,35v0,23,-4,21,-28,37xm111,-72v12,3,49,-16,19,-17v-5,0,-20,12,-19,17xm74,-50v-14,-4,-48,16,-19,17v4,1,19,-14,19,-17\",w:184},\"ø\":{d:\"76,-136v17,7,33,-8,51,0v9,-6,21,-13,36,-21v23,22,-13,31,3,50v11,13,4,21,14,35v-4,5,-1,14,-4,23v-14,23,-45,41,-84,39v-12,2,-29,28,-41,38v-2,-11,-34,-10,-15,-30v3,-7,5,-11,5,-11v-15,-24,-60,-54,-22,-89v23,-21,25,-32,57,-34xm102,-54v18,1,50,-19,30,-32v-12,7,-22,18,-30,32xm85,-92v-14,3,-26,8,-38,17v2,20,17,13,26,0v6,-8,12,-13,12,-17\",w:188},\"¿\":{d:\"181,-247v3,1,31,2,29,15v-4,22,-37,27,-41,4v1,-5,7,-20,12,-19xm161,-34v-45,-1,-105,19,-124,51v0,11,18,17,54,17v39,0,82,-13,112,4v-10,35,-58,31,-100,31v-47,0,-80,-10,-99,-31v-10,-56,22,-73,64,-90v8,-3,32,-9,74,-18v21,-15,7,-62,22,-92v-1,-5,-1,-11,4,-12v16,0,24,7,24,22v-8,30,-8,73,-17,111v-3,5,-7,7,-14,7\",w:213},\"¡\":{d:\"86,-197v8,16,-7,41,-24,25v-11,-11,-4,-16,-3,-29v13,0,15,-2,27,4xm46,-107v4,-8,11,-16,23,-7v19,26,-5,57,-6,87v-7,0,-5,18,-9,28v0,14,-17,52,-11,70v-2,7,-15,28,-25,12v-4,-6,-15,-7,-6,-16v2,-39,14,-96,34,-174\",w:95},\"¬\":{d:\"141,-99v47,7,103,-3,149,6v14,24,18,15,10,39v-10,34,-7,31,-26,76v-4,6,-15,8,-16,21v-4,2,-4,1,-13,5v-22,-33,-4,-33,16,-104v-5,-9,-28,-4,-38,-6r-183,4v-14,0,-41,-29,-17,-36v31,-9,82,5,118,-5\",w:315},\"√\":{d:\"364,-218v43,-21,80,-51,104,-32v-3,19,-24,21,-44,40v-41,15,-78,53,-136,78r-137,98v-20,16,-79,66,-91,68v-3,1,-25,-11,-24,-13v-4,-28,-43,-61,-30,-85v26,-15,42,19,58,32r295,-188v0,1,2,2,5,2\",w:474},\"ƒ\":{d:\"115,-262v-23,6,-39,63,-38,96v1,3,57,2,54,16v1,22,-45,15,-51,30v3,34,12,68,10,103v14,17,-18,53,-28,63v-48,8,-89,5,-95,-37v20,-5,77,21,83,-18v17,-29,-4,-61,0,-98v0,-5,-3,-10,-7,-17v-33,4,-43,-17,-25,-37v10,-4,27,5,27,-10v0,-43,15,-77,32,-109v12,-7,16,-22,38,-20v11,1,51,35,25,55v-9,1,-16,-17,-25,-17\",w:145},\"≈\":{d:\"133,-112v21,15,48,-30,78,-17v3,3,5,7,5,9v-8,30,-47,45,-76,45v-19,0,-64,-48,-90,-21r-29,20v-6,-1,-17,-16,-15,-32v24,-17,70,-42,107,-21v4,4,10,9,20,17xm138,-57v28,2,48,-25,76,-26v13,30,-21,42,-40,53v-41,24,-77,-15,-114,-23v-15,14,-46,32,-49,-1v-3,-9,27,-28,54,-30\",w:223},\"∆\":{d:\"18,-1v-24,-30,8,-48,25,-71v14,-19,34,-28,40,-56v20,-35,29,-14,57,4v9,39,43,62,57,102v0,16,-34,17,-50,14v-28,2,-72,4,-129,7xm139,-47r-22,-52v-12,-5,-12,15,-24,27v-7,6,-14,16,-23,28v23,1,36,-1,69,-3\",w:199},\"«\":{d:\"191,-64v16,6,87,37,53,63v-39,-9,-71,-28,-107,-40v-14,-13,-13,-34,10,-47v27,-15,48,-55,84,-62v9,-2,21,10,21,18r-13,21v-16,5,-44,22,-51,41v0,4,1,6,3,6xm71,-65v17,6,87,35,55,62v-39,-8,-66,-27,-108,-40v-14,-13,-13,-36,10,-46v23,-18,50,-56,84,-63v9,-2,21,10,21,18r-13,22v-20,6,-32,17,-51,37v0,3,-1,11,2,10\",w:265},\"»\":{d:\"120,-129v9,-33,48,-10,64,5v9,20,86,52,50,86v-36,11,-66,31,-107,40v-6,-7,-9,-13,-9,-17v-2,-13,50,-46,63,-46v11,-18,-33,-42,-48,-47xm1,-128v10,-33,46,-8,64,6v8,19,86,50,51,85v-40,13,-69,30,-108,40v-6,-7,-8,-12,-8,-16v-2,-14,50,-46,63,-47v7,-13,-9,-20,-19,-30v-10,-9,-20,-15,-30,-17\",w:252},\"…\":{d:\"244,-24v-1,21,-38,32,-41,3v-2,-19,23,-22,34,-17v0,7,0,15,7,14xm113,-24v0,-22,28,-21,38,-8v5,34,-39,40,-38,8xm35,-2v-10,-2,-36,-17,-18,-29v-1,-15,17,-17,31,-6v7,17,6,33,-13,35\",w:258},\" \":{w:179},\"À\":{d:\"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm150,-268v14,10,54,14,37,41v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,17,58,24\"},\"Ã\":{d:\"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm100,-285v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-9,22,-17,31,-12v3,11,-9,9,-7,21v-26,20,-46,30,-59,30v-3,3,-50,-26,-49,-29v-12,1,-31,35,-51,32v-3,-8,-5,-14,-5,-18v10,-9,16,-17,37,-33\"},\"Õ\":{d:\"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm116,-270v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-10,22,-16,31,-12v3,11,-8,9,-7,21v-45,28,-47,42,-88,16v-29,-19,-12,-20,-43,2v-8,5,-12,18,-23,15v-13,-3,-12,-20,-4,-23v4,-6,14,-15,31,-28\",w:273},\"Œ\":{d:\"247,-243v71,4,161,-7,245,-8v17,0,27,6,27,17v-8,27,-70,14,-104,23v-3,1,-52,0,-65,7r0,4v16,16,17,29,17,65v32,10,74,-14,99,16v-14,25,-76,17,-127,24v-17,18,-55,32,-75,51v85,0,128,-3,204,-11v15,-2,21,11,20,29v-78,24,-177,12,-270,24v-24,3,-24,-29,-48,-15v-46,7,-70,4,-105,-4v-19,-18,-42,-22,-52,-55v-10,-34,0,-47,12,-78v-18,-59,48,-78,105,-84v17,-18,103,-13,117,-5xm125,-45v76,-9,186,-43,209,-105v-26,-67,-137,-83,-217,-54v3,34,-45,25,-60,58v-41,48,5,108,68,101\",w:492},\"œ\":{d:\"185,-54v25,28,107,-17,104,33v-12,12,-60,14,-87,14v0,0,1,1,2,1v-11,1,-39,-9,-50,-17v-28,17,-75,32,-114,7v-22,-14,-34,-11,-34,-41v0,-36,33,-49,48,-75v29,-16,72,-3,95,11v12,-9,48,-27,59,-26v30,0,64,15,65,40v0,7,-6,20,-20,37v-29,1,-44,11,-68,16xm226,-106v-21,-7,-41,-2,-48,13v14,1,42,-7,48,-13xm132,-87v-21,-35,-94,11,-92,24v-2,14,43,21,61,21v25,0,36,-20,31,-45\",w:295},\"–\":{d:\"6,-66v-8,-72,79,-21,146,-39v37,-10,79,7,111,0v9,8,14,13,14,17v2,26,-72,13,-99,21v-83,4,-124,21,-172,1\",w:282},\"—\":{d:\"175,-106v86,-9,201,1,286,-1v11,6,13,11,6,30v-118,15,-246,10,-377,10v-25,0,-73,3,-82,-8r-2,-26v11,-13,32,-9,52,-7v38,3,84,-5,117,2\",w:485},\"“\":{d:\"66,-261v-21,5,-37,51,-22,77v0,4,-2,6,-7,6v-31,-9,-38,-62,-12,-94v12,-15,21,-28,31,-34v16,-1,19,24,22,34v10,-11,22,-32,43,-23v-2,8,4,16,5,19v-6,11,-51,53,-29,74v-12,21,-30,5,-33,-17v-6,-13,9,-28,2,-42\",w:118},\"”\":{d:\"120,-294v12,3,30,26,19,34v2,15,-40,70,-55,66v-40,-10,10,-51,14,-64v3,-3,8,-31,22,-36xm70,-306v14,3,26,34,16,49v-19,30,-31,45,-58,59v-12,-11,-33,-17,-7,-36v13,-19,36,-27,36,-59v0,-5,9,-13,13,-13\",w:148},\"‘\":{d:\"73,-262v-10,7,-41,39,-38,69v-15,13,-27,-16,-28,-28v-2,-20,51,-83,66,-83v20,0,25,41,0,42\",w:95},\"’\":{d:\"74,-300v13,31,-1,99,-44,101v-13,0,-19,-5,-19,-15v6,-10,31,-34,35,-59v2,-11,1,-32,11,-32v6,0,11,2,17,5\",w:90},\"÷\":{d:\"167,-158v-4,3,-7,9,-10,20v-23,4,-34,-8,-29,-31v14,-6,18,1,39,11xm78,-72v-53,11,-53,12,-69,-15v-1,-12,11,-17,22,-14v71,-13,151,-18,230,-24v11,1,21,16,23,28v-28,20,-90,11,-126,16v-36,5,-62,5,-80,9xm123,-40v19,-17,41,-1,41,17v0,13,-6,19,-17,19v-15,0,-29,-14,-24,-36\",w:293},\"◊\":{d:\"76,-158v48,-8,64,11,100,36v28,19,-5,39,-22,54v-15,13,-40,32,-48,49v-17,5,-12,0,-27,-16v-6,-6,-86,-31,-68,-53r2,-9v27,-23,48,-44,63,-61xm93,-65v12,-2,35,-31,41,-38v-5,-10,-16,-14,-34,-24v-12,12,-36,29,-40,44v19,11,30,18,33,18\",w:199},\"ÿ\":{d:\"118,85v-11,11,-11,38,-22,61v-2,-1,-2,31,-17,27v-11,0,-21,-10,-21,-22v20,-66,23,-61,64,-168v-22,1,-38,16,-58,4v-22,4,-51,-16,-51,-42v-11,-13,-7,-59,7,-58v16,1,21,24,22,51v21,33,66,5,94,-7v4,-3,26,-14,38,-29r17,0v23,44,-23,59,-34,102v-6,9,-13,9,-13,26v-15,6,-12,33,-27,48v0,2,1,4,1,7xm158,-136v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,29,1,28,21xm62,-161v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35\",w:190},\"Ÿ\":{d:\"176,-189v35,20,-25,54,-39,72v-26,34,-57,57,-74,104v-10,15,-4,14,-23,3r0,-10v19,-44,27,-46,50,-81v-9,-5,-24,4,-34,4v-38,0,-54,-50,-44,-87v21,-5,18,19,22,35v4,18,15,27,29,27v41,0,60,-39,113,-67xm153,-222v0,8,-3,12,-11,12v-18,0,-21,-19,-16,-33v18,-1,28,2,27,21xm57,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18\",w:135},\"⁄\":{d:\"193,-305v7,6,17,31,3,41v-10,7,-12,13,-21,25v-79,56,-190,209,-197,260r-18,0v-23,-19,9,-70,15,-85v52,-83,121,-179,218,-241\",w:120},\"¤\":{d:\"308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30\",w:312},\"€\":{d:\"308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30\",w:312},\"‹\":{d:\"64,-107v9,17,86,17,87,43v0,11,-4,16,-13,16v-36,-11,-70,-22,-109,-31v-19,-4,-18,-14,-9,-36v59,-56,93,-84,101,-84v17,0,19,20,13,29\",w:159},\"›\":{d:\"41,-181v26,27,112,44,70,91r-82,60v-20,3,-25,-23,-13,-32r70,-51r-66,-46v-5,-6,-4,-28,5,-29v4,2,9,4,16,7\",w:137},\"\":{d:\"74,-74v-6,-24,-70,8,-68,-27v0,-6,6,-20,20,-18v44,6,45,-9,42,-49v7,-40,26,-114,90,-104v48,-2,63,-1,90,30v11,25,4,14,2,44v-7,17,-54,9,-49,-7r8,-21v-5,-13,-22,-9,-43,-11v-56,-6,-63,45,-67,92v-2,21,5,23,22,22v37,-1,80,-9,113,-1v13,31,-9,82,-22,106v-13,10,-26,-6,-22,-25r11,-46v0,-3,-2,-6,-6,-6v-19,0,-47,3,-83,9v-6,1,-9,4,-8,11r12,59v-1,9,-11,30,-23,18v-18,-18,-15,-59,-19,-76\",w:272},\"\":{d:\"43,-61v-21,4,-36,2,-39,-15v-4,-35,41,-8,34,-47v4,-59,12,-99,46,-124v11,-42,157,-47,149,13v1,7,-7,15,-13,15v-18,-7,-19,-26,-47,-23v-34,3,-65,6,-79,37v-12,27,-22,52,-21,91v13,9,31,-11,45,-4v32,-15,50,-6,94,-13v12,-30,19,-79,36,-133v1,-5,5,-8,12,-8v44,18,-18,106,-12,144v-9,22,-1,73,-16,104v2,28,-23,28,-37,16v1,-26,9,-48,11,-75v0,-6,-3,-9,-9,-9v-43,0,-83,8,-119,24v8,40,17,33,-7,56v-20,-9,-21,-19,-28,-49\",w:283},\"‡\":{d:\"102,-284v16,2,42,-2,33,18v-7,15,-42,1,-38,30v3,3,31,1,30,11v4,15,-29,19,-36,24v-2,18,-4,24,-16,29r-25,-26v-25,7,-53,3,-42,-25v4,-10,70,0,51,-22v-17,4,-41,12,-39,-15v-5,-16,39,-18,44,-20v4,-2,7,-10,10,-24v19,-3,23,6,28,20\",w:145},\"∙\":{d:\"57,-77v6,18,-7,21,-19,23v-34,6,-25,-40,-9,-43v18,-3,29,8,28,20\",w:67},\"‚\":{d:\"25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102\",w:97},\"„\":{d:\"25,63v-26,21,-48,-2,-22,-24v11,-9,36,-41,35,-69v3,-2,4,-12,12,-9v36,14,5,89,-25,102xm84,64v-24,20,-45,-1,-21,-24v21,-20,32,-35,35,-69v3,-2,3,-11,12,-9v36,17,9,86,-26,102\",w:135},\"‰\":{d:\"398,-131v58,-1,87,13,72,65v-1,30,-66,63,-99,65v-56,3,-99,-58,-62,-102v2,2,5,2,8,2v20,-16,51,-17,81,-30xm202,-279v33,0,94,-24,95,18v-7,31,-33,27,-54,55v-36,32,-71,74,-112,99v-18,18,-40,34,-51,58v-19,14,-25,37,-56,40v-17,2,-25,-29,-10,-40v15,-11,40,-37,52,-52r87,-72v-51,13,-100,6,-116,-27v1,-5,-6,-30,-9,-36v-3,-5,22,-41,27,-39v29,2,16,34,5,49v0,15,14,23,42,23v42,0,59,-31,28,-38v-17,-4,-53,3,-50,-23v0,-7,1,-12,4,-16v16,-9,36,4,49,5v0,0,23,-4,69,-4xm222,-118v33,-2,55,18,50,57v-29,36,-48,45,-96,50v-27,-5,-56,-17,-58,-51v13,-37,64,-43,104,-56xm335,-61v13,44,101,7,108,-31v-11,-3,-20,-4,-30,-4v-18,-1,-82,18,-78,35xm225,-244v-18,0,-29,-1,-46,3v7,15,6,28,0,43v15,-14,34,-30,46,-46xm164,-53v26,5,59,-10,76,-26v-17,-16,-49,2,-67,14v1,8,-8,6,-9,12\",w:485},\"Â\":{d:\"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm202,-219v-27,-6,-40,-26,-61,-37v-21,7,-39,46,-65,23v-2,-4,-3,-10,-4,-14v19,-4,43,-32,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-3,9,-11,9\"},\"Ê\":{d:\"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm199,-211v-27,-6,-39,-26,-60,-37v-21,7,-40,47,-65,22v-2,-7,-2,-7,-4,-13v18,-5,44,-31,61,-43v27,6,41,22,62,37v12,9,18,17,18,25v0,6,-4,9,-12,9\",w:252},\"Á\":{d:\"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm84,-250v31,-5,83,-53,100,-31v0,5,-11,15,-35,28v-16,5,-51,28,-53,25v-14,1,-16,-11,-12,-22\"},\"Ë\":{d:\"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-17,41,-17,51v55,0,112,-21,169,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-3,-21,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm191,-236v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm95,-261v7,3,29,9,28,18v0,7,-9,17,-18,17v-18,0,-26,-25,-10,-35\",w:252},\"È\":{d:\"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm184,-236v6,9,5,13,0,23v-28,-7,-62,-21,-100,-41v-3,-2,-3,-27,5,-23v34,11,60,25,95,41\",w:252},\"Í\":{d:\"26,-5v-9,-6,-9,-12,-9,-36v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76v-2,1,-2,0,-7,4xm6,-233v31,-6,83,-53,101,-31v2,11,-80,53,-89,53v-14,1,-14,-11,-12,-22\",w:104},\"Î\":{d:\"53,-9v-15,7,-16,-3,-16,-32v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76xm137,-209v-27,-6,-40,-26,-61,-37v-8,0,-9,4,-13,10v-11,13,-50,37,-56,0v18,-5,43,-32,61,-43v28,5,40,21,62,36v12,9,18,17,18,25v0,6,-4,9,-11,9\",w:144},\"Ï\":{d:\"33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm111,-222v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm15,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18\",w:110},\"Ì\":{d:\"33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm72,-247v7,6,55,15,36,40v-28,-7,-61,-21,-99,-41v-3,-2,-3,-27,5,-23v18,3,41,17,58,24\",w:111},\"Ó\":{d:\"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm142,-250v27,-11,47,-32,59,-14v2,11,-80,53,-89,53v-13,1,-15,-11,-12,-21v10,-5,24,-11,42,-18\",w:273},\"Ô\":{d:\"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm157,-282v17,18,52,34,54,63v-24,12,-52,-36,-53,-29r-42,34v-23,-4,-6,-31,5,-34v1,1,27,-37,36,-34\",w:273},\"\":{d:\"231,-188v31,-74,91,-99,188,-116v28,1,6,39,1,51v-20,52,-100,91,-148,126v2,4,6,7,12,10v42,-42,181,-41,166,46v-1,8,-19,8,-28,5v-43,1,-168,42,-106,86v15,16,33,28,61,39v0,10,0,17,-6,22v-8,8,-35,26,-78,51v-52,7,-128,22,-154,-17v-23,-35,-99,-35,-117,-77v-29,-68,25,-149,75,-175v44,-23,89,5,135,13v14,-26,2,-39,-1,-64\",w:461},\"Ò\":{d:\"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm161,-262v14,10,52,13,37,41v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,17,58,24\",w:273},\"Ú\":{d:\"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm194,-265v3,-1,11,4,11,6v3,12,-81,52,-89,54v-14,0,-13,-9,-12,-22\",w:262},\"Û\":{d:\"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm150,-266v24,11,58,27,73,46v0,5,-3,6,-10,6v-28,2,-61,-30,-63,-25v-10,0,-57,40,-69,23v3,-10,-8,-15,8,-19v17,-1,34,-29,61,-31\",w:262},\"Ù\":{d:\"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm151,-243v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-4,-25,4,-23v16,5,42,17,58,24\",w:262},\"ı\":{d:\"43,-103v21,4,16,56,11,100v-7,2,-11,1,-20,-5v0,-7,-13,-18,-11,-25v4,-23,-3,-68,20,-70\",w:80},\"ˆ\":{d:\"144,-220v-29,0,-41,-27,-63,-39v-8,0,-11,5,-15,11v-17,12,-32,31,-54,13v-2,-5,-3,-9,-4,-14v20,-5,45,-33,64,-45v28,6,43,23,65,38v12,9,19,19,19,27v0,6,-4,9,-12,9\",w:165},\"˜\":{d:\"47,-300v26,-21,57,19,72,23v4,0,16,-5,36,-14v24,-10,22,-16,32,-13v3,12,-7,11,-7,23v-27,21,-48,32,-62,32v-3,2,-52,-27,-51,-31v-12,-2,-34,40,-54,33v-4,-13,-8,-18,1,-24v5,-7,16,-15,33,-29\",w:186},\"¯\":{d:\"63,-295v28,-7,73,10,105,7v11,1,6,8,5,19v-37,21,-72,11,-136,11v-23,0,-31,-14,-27,-36v12,-15,40,0,53,-1\",w:183},\"˘\":{d:\"65,-269v20,-11,45,-31,74,-36v20,30,-42,40,-59,66v-5,6,-11,8,-18,8v-8,-3,-45,-32,-51,-54v5,-24,14,-13,34,1\",w:158},\"˙\":{d:\"23,-302v15,-13,32,1,32,18v1,22,-36,29,-39,4v0,0,3,-7,7,-22\",w:70},\"˚\":{d:\"23,-225v-43,-24,-11,-85,41,-78v16,2,31,4,46,17v32,54,-41,86,-87,61xm33,-257v2,20,57,11,57,-6v0,-6,-11,-9,-33,-12v-14,-2,-24,13,-24,18\",w:123},\"¸\":{d:\"74,16v32,2,49,14,55,36v-3,7,-14,31,-29,33v-28,4,-57,11,-88,14v-19,-6,-13,-31,8,-33v20,-1,59,-5,73,-14v-17,-14,-68,8,-53,-37v9,-10,2,-28,24,-30v8,8,13,17,10,31\",w:129},\"˝\":{d:\"91,-249v15,-11,38,-53,57,-29v0,9,0,14,-3,23v-2,3,-20,22,-54,55v-5,5,-10,8,-16,8v-17,2,-6,-22,-7,-31v-1,0,-2,0,-4,1v-17,21,-29,31,-50,27v-5,-18,-3,-15,3,-27v23,-27,40,-46,48,-59v7,-12,31,3,29,9v-1,14,-3,24,-13,31v4,4,9,-1,10,-8\",w:151},\"˛\":{d:\"82,-5v-8,12,-16,55,-21,75v0,4,2,7,7,7v6,0,22,-7,50,-20v8,0,12,7,12,20v-2,22,-6,14,-27,30v-15,12,-26,16,-30,16v-47,-8,-59,-14,-56,-75v8,-27,12,-54,25,-77v19,-21,35,15,40,24\",w:138},\"ˇ\":{d:\"39,-286v33,46,63,-4,96,-16v6,0,9,6,9,19v0,24,-49,46,-77,46v-32,0,-52,-28,-59,-48v0,-25,23,-17,31,-1\",w:153},\"\\r\":{w:179}}});\nvar DIAGRAM_MARGIN=10,ACTOR_MARGIN=10,ACTOR_PADDING=10,SIGNAL_MARGIN=5,SIGNAL_PADDING=5,NOTE_MARGIN=10,NOTE_PADDING=5,NOTE_OVERLAP=15,TITLE_MARGIN=0,TITLE_PADDING=5,SELF_SIGNAL_WIDTH=20,PLACEMENT=Diagram.PLACEMENT,LINETYPE=Diagram.LINETYPE,ARROWTYPE=Diagram.ARROWTYPE,LINE={stroke:\"#000\",\"stroke-width\":2},RECT={fill:\"#fff\"};AssertException.prototype.toString=function(){return\"AssertException: \"+this.message},String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\\s+|\\s+$/g,\"\")}),Raphael.fn.line=function(x1,y1,x2,y2){return assert(_.all([x1,x2,y1,y2],_.isFinite),\"x1,x2,y1,y2 must be numeric\"),this.path(\"M{0},{1} L{2},{3}\",x1,y1,x2,y2)},Raphael.fn.wobble=function(x1,y1,x2,y2){assert(_.all([x1,x2,y1,y2],_.isFinite),\"x1,x2,y1,y2 must be numeric\");var wobble=Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))/25,r1=Math.random(),r2=Math.random(),xfactor=Math.random()>.5?wobble:-wobble,yfactor=Math.random()>.5?wobble:-wobble,p1={x:(x2-x1)*r1+x1+xfactor,y:(y2-y1)*r1+y1+yfactor},p2={x:(x2-x1)*r2+x1-xfactor,y:(y2-y1)*r2+y1-yfactor};return\"C\"+p1.x+\",\"+p1.y+\" \"+p2.x+\",\"+p2.y+\" \"+x2+\",\"+y2},Raphael.fn.text_bbox=function(text,font){var p;font._obj?p=this.print_center(0,0,text,font._obj,font[\"font-size\"]):(p=this.text(0,0,text),p.attr(font));var bb=p.getBBox();return p.remove(),bb},Raphael.fn.handRect=function(x,y,w,h){return assert(_.all([x,y,w,h],_.isFinite),\"x, y, w, h must be numeric\"),this.path(\"M\"+x+\",\"+y+this.wobble(x,y,x+w,y)+this.wobble(x+w,y,x+w,y+h)+this.wobble(x+w,y+h,x,y+h)+this.wobble(x,y+h,x,y)).attr(RECT)},Raphael.fn.handLine=function(x1,y1,x2,y2){return assert(_.all([x1,x2,y1,y2],_.isFinite),\"x1,x2,y1,y2 must be numeric\"),this.path(\"M\"+x1+\",\"+y1+this.wobble(x1,y1,x2,y2))},Raphael.fn.print_center=function(x,y,string,font,size,letter_spacing){var path=this.print(x,y,string,font,size,\"baseline\",letter_spacing),bb=path.getBBox(),dx=x-bb.x-bb.width/2,dy=y-bb.y-bb.height/2,m=new Raphael.matrix;return m.translate(dx,dy),path.attr(\"path\",Raphael.mapPath(path.attr(\"path\"),m))};var BaseTheme=function(diagram){this.init(diagram)};_.extend(BaseTheme.prototype,{init:function(diagram){this.diagram=diagram,this._paper=void 0,this._font=void 0,this._title=void 0,this._actors_height=0,this._signals_height=0;var a=this.arrow_types={};a[ARROWTYPE.FILLED]=\"block\",a[ARROWTYPE.OPEN]=\"open\";var l=this.line_types={};l[LINETYPE.SOLID]=\"\",l[LINETYPE.DOTTED]=\"-\"},init_paper:function(container){this._paper=new Raphael(container,320,200)},init_font:function(){},draw_line:function(x1,y1,x2,y2){return this._paper.line(x1,y1,x2,y2)},draw_rect:function(x,y,w,h){return this._paper.rect(x,y,w,h)},draw:function(container){var diagram=this.diagram;this.init_paper(container),this.init_font(),this.layout();var title_height=this._title?this._title.height:0;this._paper.setStart(),this._paper.setSize(diagram.width,diagram.height);var y=DIAGRAM_MARGIN+title_height;this.draw_title(),this.draw_actors(y),this.draw_signals(y+this._actors_height),this._paper.setFinish()},layout:function(){function actor_ensure_distance(a,b,d){assert(b>a,\"a must be less than or equal to b\"),0>a?(b=actors[b],b.x=Math.max(d-b.width/2,b.x)):b>=actors.length?(a=actors[a],a.padding_right=Math.max(d,a.padding_right)):(a=actors[a],a.distances[b]=Math.max(d,a.distances[b]?a.distances[b]:0))}var diagram=this.diagram,paper=this._paper,font=this._font,actors=diagram.actors,signals=diagram.signals;if(diagram.width=0,diagram.height=0,diagram.title){var title=this._title={},bb=paper.text_bbox(diagram.title,font);title.text_bb=bb,title.message=diagram.title,title.width=bb.width+2*(TITLE_PADDING+TITLE_MARGIN),title.height=bb.height+2*(TITLE_PADDING+TITLE_MARGIN),title.x=DIAGRAM_MARGIN,title.y=DIAGRAM_MARGIN,diagram.width+=title.width,diagram.height+=title.height}_.each(actors,function(a){var bb=paper.text_bbox(a.name,font);a.text_bb=bb,a.x=0,a.y=0,a.width=bb.width+2*(ACTOR_PADDING+ACTOR_MARGIN),a.height=bb.height+2*(ACTOR_PADDING+ACTOR_MARGIN),a.distances=[],a.padding_right=0,this._actors_height=Math.max(a.height,this._actors_height)},this),_.each(signals,function(s){var a,b,bb=paper.text_bbox(s.message,font);s.text_bb=bb,s.width=bb.width,s.height=bb.height;var extra_width=0;if(\"Signal\"==s.type)s.width+=2*(SIGNAL_MARGIN+SIGNAL_PADDING),s.height+=2*(SIGNAL_MARGIN+SIGNAL_PADDING),s.isSelf()?(a=s.actorA.index,b=a+1,s.width+=SELF_SIGNAL_WIDTH):(a=Math.min(s.actorA.index,s.actorB.index),b=Math.max(s.actorA.index,s.actorB.index));else{if(\"Note\"!=s.type)throw new Error(\"Unhandled signal type:\"+s.type);if(s.width+=2*(NOTE_MARGIN+NOTE_PADDING),s.height+=2*(NOTE_MARGIN+NOTE_PADDING),extra_width=2*ACTOR_MARGIN,s.placement==PLACEMENT.LEFTOF)b=s.actor.index,a=b-1;else if(s.placement==PLACEMENT.RIGHTOF)a=s.actor.index,b=a+1;else if(s.placement==PLACEMENT.OVER&&s.hasManyActors())a=Math.min(s.actor[0].index,s.actor[1].index),b=Math.max(s.actor[0].index,s.actor[1].index),extra_width=-(2*NOTE_PADDING+2*NOTE_OVERLAP);else if(s.placement==PLACEMENT.OVER)return a=s.actor.index,actor_ensure_distance(a-1,a,s.width/2),actor_ensure_distance(a,a+1,s.width/2),this._signals_height+=s.height,void 0}actor_ensure_distance(a,b,s.width+extra_width),this._signals_height+=s.height},this);var actors_x=0;return _.each(actors,function(a){a.x=Math.max(actors_x,a.x),_.each(a.distances,function(distance,b){\"undefined\"!=typeof distance&&(b=actors[b],distance=Math.max(distance,a.width/2,b.width/2),b.x=Math.max(b.x,a.x+a.width/2+distance-b.width/2))}),actors_x=a.x+a.width+a.padding_right},this),diagram.width=Math.max(actors_x,diagram.width),diagram.width+=2*DIAGRAM_MARGIN,diagram.height+=2*DIAGRAM_MARGIN+2*this._actors_height+this._signals_height,this},draw_title:function(){var title=this._title;title&&this.draw_text_box(title,title.message,TITLE_MARGIN,TITLE_PADDING,this._font)},draw_actors:function(offsetY){var y=offsetY;_.each(this.diagram.actors,function(a){this.draw_actor(a,y,this._actors_height),this.draw_actor(a,y+this._actors_height+this._signals_height,this._actors_height);var aX=getCenterX(a),line=this.draw_line(aX,y+this._actors_height-ACTOR_MARGIN,aX,y+this._actors_height+ACTOR_MARGIN+this._signals_height);line.attr(LINE)},this)},draw_actor:function(actor,offsetY,height){actor.y=offsetY,actor.height=height,this.draw_text_box(actor,actor.name,ACTOR_MARGIN,ACTOR_PADDING,this._font)},draw_signals:function(offsetY){var y=offsetY;_.each(this.diagram.signals,function(s){\"Signal\"==s.type?s.isSelf()?this.draw_self_signal(s,y):this.draw_signal(s,y):\"Note\"==s.type&&this.draw_note(s,y),y+=s.height},this)},draw_self_signal:function(signal,offsetY){assert(signal.isSelf(),\"signal must be a self signal\");var text_bb=signal.text_bb,aX=getCenterX(signal.actorA),x=aX+SELF_SIGNAL_WIDTH+SIGNAL_PADDING-text_bb.x,y=offsetY+signal.height/2;this.draw_text(x,y,signal.message,this._font);var line,attr=_.extend({},LINE,{\"stroke-dasharray\":this.line_types[signal.linetype]}),y1=offsetY+SIGNAL_MARGIN,y2=y1+signal.height-SIGNAL_MARGIN;line=this.draw_line(aX,y1,aX+SELF_SIGNAL_WIDTH,y1),line.attr(attr),line=this.draw_line(aX+SELF_SIGNAL_WIDTH,y1,aX+SELF_SIGNAL_WIDTH,y2),line.attr(attr),line=this.draw_line(aX+SELF_SIGNAL_WIDTH,y2,aX,y2),attr[\"arrow-end\"]=this.arrow_types[signal.arrowtype]+\"-wide-long\",line.attr(attr)},draw_signal:function(signal,offsetY){var aX=getCenterX(signal.actorA),bX=getCenterX(signal.actorB),x=(bX-aX)/2+aX,y=offsetY+SIGNAL_MARGIN+2*SIGNAL_PADDING;this.draw_text(x,y,signal.message,this._font),y=offsetY+signal.height-SIGNAL_MARGIN-SIGNAL_PADDING;var line=this.draw_line(aX,y,bX,y);line.attr(LINE),line.attr({\"arrow-end\":this.arrow_types[signal.arrowtype]+\"-wide-long\",\"stroke-dasharray\":this.line_types[signal.linetype]})},draw_note:function(note,offsetY){note.y=offsetY;var actorA=note.hasManyActors()?note.actor[0]:note.actor,aX=getCenterX(actorA);switch(note.placement){case PLACEMENT.RIGHTOF:note.x=aX+ACTOR_MARGIN;break;case PLACEMENT.LEFTOF:note.x=aX-ACTOR_MARGIN-note.width;break;case PLACEMENT.OVER:if(note.hasManyActors()){var bX=getCenterX(note.actor[1]),overlap=NOTE_OVERLAP+NOTE_PADDING;note.x=aX-overlap,note.width=bX+overlap-note.x}else note.x=aX-note.width/2;break;default:throw new Error(\"Unhandled note placement:\"+note.placement)}this.draw_text_box(note,note.message,NOTE_MARGIN,NOTE_PADDING,this._font)},draw_text:function(x,y,text,font){var t,paper=this._paper,f=font||{};f._obj?t=paper.print_center(x,y,text,f._obj,f[\"font-size\"]):(t=paper.text(x,y,text),t.attr(f));var bb=t.getBBox(),r=paper.rect(bb.x,bb.y,bb.width,bb.height);r.attr({fill:\"#fff\",stroke:\"none\"}),t.toFront()},draw_text_box:function(box,text,margin,padding,font){var x=box.x+margin,y=box.y+margin,w=box.width-2*margin,h=box.height-2*margin,rect=this.draw_rect(x,y,w,h);rect.attr(LINE),x=getCenterX(box),y=getCenterY(box),this.draw_text(x,y,text,font)}});var RaphaelTheme=function(diagram){this.init(diagram)};_.extend(RaphaelTheme.prototype,BaseTheme.prototype,{init_font:function(){this._font={\"font-size\":16,\"font-family\":\"Andale Mono, monospace\"}}});var HandRaphaelTheme=function(diagram){this.init(diagram)};_.extend(HandRaphaelTheme.prototype,BaseTheme.prototype,{init_font:function(){this._font={\"font-size\":16,\"font-family\":\"daniel\"},this._font._obj=this._paper.getFont(\"daniel\")},draw_line:function(x1,y1,x2,y2){return this._paper.handLine(x1,y1,x2,y2)},draw_rect:function(x,y,w,h){return this._paper.handRect(x,y,w,h)}});var themes={simple:RaphaelTheme,hand:HandRaphaelTheme};Diagram.prototype.drawSVG=function(container,options){var default_options={theme:\"hand\"};if(options=_.defaults(options||{},default_options),!(options.theme in themes))throw new Error(\"Unsupported theme: \"+options.theme);var drawing=new themes[options.theme](this);drawing.draw(container)},\"undefined\"!=typeof jQuery&&function($){$.fn.sequenceDiagram=function(options){return this.each(function(){var $this=$(this),diagram=Diagram.parse($this.text());$this.html(\"\"),diagram.drawSVG(this,options)})}}(jQuery);var root=\"object\"==typeof self&&self.self==self&&self||\"object\"==typeof global&&global.global==global&&global;\"undefined\"!=typeof exports?(\"undefined\"!=typeof module&&module.exports&&(exports=module.exports=Diagram),exports.Diagram=Diagram):root.Diagram=Diagram}();\n//# sourceMappingURL=sequence-diagram-min.js.map\n})($tw.node ? $tw.fakeDocument : window.document)\n"
},
"$:/plugins/gt6796c/flowchart-tw5/underscore.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/flowchart-tw5/underscore.js",
"module-type": "library",
"text": "(function(document) {\n(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,h=e.reduce,v=e.reduceRight,d=e.filter,g=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Array.isArray,_=Object.keys,j=i.bind,w=function(n){return n instanceof w?n:this instanceof w?(this._wrapped=n,void 0):new w(n)};\"undefined\"!=typeof exports?(\"undefined\"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):n._=w,w.VERSION=\"1.4.4\";var A=w.each=w.forEach=function(n,t,e){if(null!=n)if(s&&n.forEach===s)n.forEach(t,e);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(t.call(e,n[u],u,n)===r)return}else for(var a in n)if(w.has(n,a)&&t.call(e,n[a],a,n)===r)return};w.map=w.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(A(n,function(n,u,i){e[e.length]=t.call(r,n,u,i)}),e)};var O=\"Reduce of empty array with no initial value\";w.reduce=w.foldl=w.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduce===h)return e&&(t=w.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(A(n,function(n,i,a){u?r=t.call(e,r,n,i,a):(r=n,u=!0)}),!u)throw new TypeError(O);return r},w.reduceRight=w.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),v&&n.reduceRight===v)return e&&(t=w.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=n.length;if(i!==+i){var a=w.keys(n);i=a.length}if(A(n,function(o,c,l){c=a?a[--i]:--i,u?r=t.call(e,r,n[c],c,l):(r=n[c],u=!0)}),!u)throw new TypeError(O);return r},w.find=w.detect=function(n,t,r){var e;return E(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},w.filter=w.select=function(n,t,r){var e=[];return null==n?e:d&&n.filter===d?n.filter(t,r):(A(n,function(n,u,i){t.call(r,n,u,i)&&(e[e.length]=n)}),e)},w.reject=function(n,t,r){return w.filter(n,function(n,e,u){return!t.call(r,n,e,u)},r)},w.every=w.all=function(n,t,e){t||(t=w.identity);var u=!0;return null==n?u:g&&n.every===g?n.every(t,e):(A(n,function(n,i,a){return(u=u&&t.call(e,n,i,a))?void 0:r}),!!u)};var E=w.some=w.any=function(n,t,e){t||(t=w.identity);var u=!1;return null==n?u:m&&n.some===m?n.some(t,e):(A(n,function(n,i,a){return u||(u=t.call(e,n,i,a))?r:void 0}),!!u)};w.contains=w.include=function(n,t){return null==n?!1:y&&n.indexOf===y?n.indexOf(t)!=-1:E(n,function(n){return n===t})},w.invoke=function(n,t){var r=o.call(arguments,2),e=w.isFunction(t);return w.map(n,function(n){return(e?t:n[t]).apply(n,r)})},w.pluck=function(n,t){return w.map(n,function(n){return n[t]})},w.where=function(n,t,r){return w.isEmpty(t)?r?null:[]:w[r?\"find\":\"filter\"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},w.findWhere=function(n,t){return w.where(n,t,!0)},w.max=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.max.apply(Math,n);if(!t&&w.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;a>=e.computed&&(e={value:n,computed:a})}),e.value},w.min=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.min.apply(Math,n);if(!t&&w.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;e.computed>a&&(e={value:n,computed:a})}),e.value},w.shuffle=function(n){var t,r=0,e=[];return A(n,function(n){t=w.random(r++),e[r-1]=e[t],e[t]=n}),e};var k=function(n){return w.isFunction(n)?n:function(t){return t[n]}};w.sortBy=function(n,t,r){var e=k(t);return w.pluck(w.map(n,function(n,t,u){return{value:n,index:t,criteria:e.call(r,n,t,u)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index<t.index?-1:1}),\"value\")};var F=function(n,t,r,e){var u={},i=k(t||w.identity);return A(n,function(t,a){var o=i.call(r,t,a,n);e(u,o,t)}),u};w.groupBy=function(n,t,r){return F(n,t,r,function(n,t,r){(w.has(n,t)?n[t]:n[t]=[]).push(r)})},w.countBy=function(n,t,r){return F(n,t,r,function(n,t){w.has(n,t)||(n[t]=0),n[t]++})},w.sortedIndex=function(n,t,r,e){r=null==r?w.identity:k(r);for(var u=r.call(e,t),i=0,a=n.length;a>i;){var o=i+a>>>1;u>r.call(e,n[o])?i=o+1:a=o}return i},w.toArray=function(n){return n?w.isArray(n)?o.call(n):n.length===+n.length?w.map(n,w.identity):w.values(n):[]},w.size=function(n){return null==n?0:n.length===+n.length?n.length:w.keys(n).length},w.first=w.head=w.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:o.call(n,0,t)},w.initial=function(n,t,r){return o.call(n,0,n.length-(null==t||r?1:t))},w.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:o.call(n,Math.max(n.length-t,0))},w.rest=w.tail=w.drop=function(n,t,r){return o.call(n,null==t||r?1:t)},w.compact=function(n){return w.filter(n,w.identity)};var R=function(n,t,r){return A(n,function(n){w.isArray(n)?t?a.apply(r,n):R(n,t,r):r.push(n)}),r};w.flatten=function(n,t){return R(n,t,[])},w.without=function(n){return w.difference(n,o.call(arguments,1))},w.uniq=w.unique=function(n,t,r,e){w.isFunction(t)&&(e=r,r=t,t=!1);var u=r?w.map(n,r,e):n,i=[],a=[];return A(u,function(r,e){(t?e&&a[a.length-1]===r:w.contains(a,r))||(a.push(r),i.push(n[e]))}),i},w.union=function(){return w.uniq(c.apply(e,arguments))},w.intersection=function(n){var t=o.call(arguments,1);return w.filter(w.uniq(n),function(n){return w.every(t,function(t){return w.indexOf(t,n)>=0})})},w.difference=function(n){var t=c.apply(e,o.call(arguments,1));return w.filter(n,function(n){return!w.contains(t,n)})},w.zip=function(){for(var n=o.call(arguments),t=w.max(w.pluck(n,\"length\")),r=Array(t),e=0;t>e;e++)r[e]=w.pluck(n,\"\"+e);return r},w.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},w.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if(\"number\"!=typeof r)return e=w.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}if(y&&n.indexOf===y)return n.indexOf(t,r);for(;u>e;e++)if(n[e]===t)return e;return-1},w.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=null!=r;if(b&&n.lastIndexOf===b)return e?n.lastIndexOf(t,r):n.lastIndexOf(t);for(var u=e?r:n.length;u--;)if(n[u]===t)return u;return-1},w.range=function(n,t,r){1>=arguments.length&&(t=n||0,n=0),r=arguments[2]||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=0,i=Array(e);e>u;)i[u++]=n,n+=r;return i},w.bind=function(n,t){if(n.bind===j&&j)return j.apply(n,o.call(arguments,1));var r=o.call(arguments,2);return function(){return n.apply(t,r.concat(o.call(arguments)))}},w.partial=function(n){var t=o.call(arguments,1);return function(){return n.apply(this,t.concat(o.call(arguments)))}},w.bindAll=function(n){var t=o.call(arguments,1);return 0===t.length&&(t=w.functions(n)),A(t,function(t){n[t]=w.bind(n[t],n)}),n},w.memoize=function(n,t){var r={};return t||(t=w.identity),function(){var e=t.apply(this,arguments);return w.has(r,e)?r[e]:r[e]=n.apply(this,arguments)}},w.delay=function(n,t){var r=o.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},w.defer=function(n){return w.delay.apply(w,[n,1].concat(o.call(arguments,1)))},w.throttle=function(n,t){var r,e,u,i,a=0,o=function(){a=new Date,u=null,i=n.apply(r,e)};return function(){var c=new Date,l=t-(c-a);return r=this,e=arguments,0>=l?(clearTimeout(u),u=null,a=c,i=n.apply(r,e)):u||(u=setTimeout(o,l)),i}},w.debounce=function(n,t,r){var e,u;return function(){var i=this,a=arguments,o=function(){e=null,r||(u=n.apply(i,a))},c=r&&!e;return clearTimeout(e),e=setTimeout(o,t),c&&(u=n.apply(i,a)),u}},w.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},w.wrap=function(n,t){return function(){var r=[n];return a.apply(r,arguments),t.apply(this,r)}},w.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length-1;r>=0;r--)t=[n[r].apply(this,t)];return t[0]}},w.after=function(n,t){return 0>=n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},w.keys=_||function(n){if(n!==Object(n))throw new TypeError(\"Invalid object\");var t=[];for(var r in n)w.has(n,r)&&(t[t.length]=r);return t},w.values=function(n){var t=[];for(var r in n)w.has(n,r)&&t.push(n[r]);return t},w.pairs=function(n){var t=[];for(var r in n)w.has(n,r)&&t.push([r,n[r]]);return t},w.invert=function(n){var t={};for(var r in n)w.has(n,r)&&(t[n[r]]=r);return t},w.functions=w.methods=function(n){var t=[];for(var r in n)w.isFunction(n[r])&&t.push(r);return t.sort()},w.extend=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]=t[r]}),n},w.pick=function(n){var t={},r=c.apply(e,o.call(arguments,1));return A(r,function(r){r in n&&(t[r]=n[r])}),t},w.omit=function(n){var t={},r=c.apply(e,o.call(arguments,1));for(var u in n)w.contains(r,u)||(t[u]=n[u]);return t},w.defaults=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)null==n[r]&&(n[r]=t[r])}),n},w.clone=function(n){return w.isObject(n)?w.isArray(n)?n.slice():w.extend({},n):n},w.tap=function(n,t){return t(n),n};var I=function(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof w&&(n=n._wrapped),t instanceof w&&(t=t._wrapped);var u=l.call(n);if(u!=l.call(t))return!1;switch(u){case\"[object String]\":return n==t+\"\";case\"[object Number]\":return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case\"[object Date]\":case\"[object Boolean]\":return+n==+t;case\"[object RegExp]\":return n.source==t.source&&n.global==t.global&&n.multiline==t.multiline&&n.ignoreCase==t.ignoreCase}if(\"object\"!=typeof n||\"object\"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]==n)return e[i]==t;r.push(n),e.push(t);var a=0,o=!0;if(\"[object Array]\"==u){if(a=n.length,o=a==t.length)for(;a--&&(o=I(n[a],t[a],r,e)););}else{var c=n.constructor,f=t.constructor;if(c!==f&&!(w.isFunction(c)&&c instanceof c&&w.isFunction(f)&&f instanceof f))return!1;for(var s in n)if(w.has(n,s)&&(a++,!(o=w.has(t,s)&&I(n[s],t[s],r,e))))break;if(o){for(s in t)if(w.has(t,s)&&!a--)break;o=!a}}return r.pop(),e.pop(),o};w.isEqual=function(n,t){return I(n,t,[],[])},w.isEmpty=function(n){if(null==n)return!0;if(w.isArray(n)||w.isString(n))return 0===n.length;for(var t in n)if(w.has(n,t))return!1;return!0},w.isElement=function(n){return!(!n||1!==n.nodeType)},w.isArray=x||function(n){return\"[object Array]\"==l.call(n)},w.isObject=function(n){return n===Object(n)},A([\"Arguments\",\"Function\",\"String\",\"Number\",\"Date\",\"RegExp\"],function(n){w[\"is\"+n]=function(t){return l.call(t)==\"[object \"+n+\"]\"}}),w.isArguments(arguments)||(w.isArguments=function(n){return!(!n||!w.has(n,\"callee\"))}),\"function\"!=typeof/./&&(w.isFunction=function(n){return\"function\"==typeof n}),w.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},w.isNaN=function(n){return w.isNumber(n)&&n!=+n},w.isBoolean=function(n){return n===!0||n===!1||\"[object Boolean]\"==l.call(n)},w.isNull=function(n){return null===n},w.isUndefined=function(n){return n===void 0},w.has=function(n,t){return f.call(n,t)},w.noConflict=function(){return n._=t,this},w.identity=function(n){return n},w.times=function(n,t,r){for(var e=Array(n),u=0;n>u;u++)e[u]=t.call(r,u);return e},w.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};var M={escape:{\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\",\"/\":\"/\"}};M.unescape=w.invert(M.escape);var S={escape:RegExp(\"[\"+w.keys(M.escape).join(\"\")+\"]\",\"g\"),unescape:RegExp(\"(\"+w.keys(M.unescape).join(\"|\")+\")\",\"g\")};w.each([\"escape\",\"unescape\"],function(n){w[n]=function(t){return null==t?\"\":(\"\"+t).replace(S[n],function(t){return M[n][t]})}}),w.result=function(n,t){if(null==n)return null;var r=n[t];return w.isFunction(r)?r.call(n):r},w.mixin=function(n){A(w.functions(n),function(t){var r=w[t]=n[t];w.prototype[t]=function(){var n=[this._wrapped];return a.apply(n,arguments),D.call(this,r.apply(w,n))}})};var N=0;w.uniqueId=function(n){var t=++N+\"\";return n?n+t:t},w.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var T=/(.)^/,q={\"'\":\"'\",\"\\\\\":\"\\\\\",\"\\r\":\"r\",\"\\n\":\"n\",\"\t\":\"t\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},B=/\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g;w.template=function(n,t,r){var e;r=w.defaults({},r,w.templateSettings);var u=RegExp([(r.escape||T).source,(r.interpolate||T).source,(r.evaluate||T).source].join(\"|\")+\"|$\",\"g\"),i=0,a=\"__p+='\";n.replace(u,function(t,r,e,u,o){return a+=n.slice(i,o).replace(B,function(n){return\"\\\\\"+q[n]}),r&&(a+=\"'+\\n((__t=(\"+r+\"))==null?'':_.escape(__t))+\\n'\"),e&&(a+=\"'+\\n((__t=(\"+e+\"))==null?'':__t)+\\n'\"),u&&(a+=\"';\\n\"+u+\"\\n__p+='\"),i=o+t.length,t}),a+=\"';\\n\",r.variable||(a=\"with(obj||{}){\\n\"+a+\"}\\n\"),a=\"var __t,__p='',__j=Array.prototype.join,\"+\"print=function(){__p+=__j.call(arguments,'');};\\n\"+a+\"return __p;\\n\";try{e=Function(r.variable||\"obj\",\"_\",a)}catch(o){throw o.source=a,o}if(t)return e(t,w);var c=function(n){return e.call(this,n,w)};return c.source=\"function(\"+(r.variable||\"obj\")+\"){\\n\"+a+\"}\",c},w.chain=function(n){return w(n).chain()};var D=function(n){return this._chain?w(n).chain():n};w.mixin(w),A([\"pop\",\"push\",\"reverse\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(n){var t=e[n];w.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),\"shift\"!=n&&\"splice\"!=n||0!==r.length||delete r[0],D.call(this,r)}}),A([\"concat\",\"join\",\"slice\"],function(n){var t=e[n];w.prototype[n]=function(){return D.call(this,t.apply(this._wrapped,arguments))}}),w.extend(w.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this);\n})($tw.node ? $tw.fakeDocument : window.document)\n"
},
"$:/plugins/gt6796c/flowchart-tw5/mermaidAPI.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/flowchart-tw5/mermaidAPI.js",
"module-type": "library",
"text": "(function(document) {\n!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var n;\"undefined\"!=typeof window?n=window:\"undefined\"!=typeof global?n=global:\"undefined\"!=typeof self&&(n=self),n.mermaidAPI=t()}}(function(){var define,module,exports;return function t(n,e,r){function i(u,o){if(!e[u]){if(!n[u]){var s=\"function\"==typeof require&&require;if(!o&&s)return s(u,!0);if(a)return a(u,!0);var c=new Error(\"Cannot find module '\"+u+\"'\");throw c.code=\"MODULE_NOT_FOUND\",c}var l=e[u]={exports:{}};n[u][0].call(l.exports,function(t){var e=n[u][1][t];return i(e?e:t)},l,l.exports,t,n,e,r)}return e[u].exports}for(var a=\"function\"==typeof require&&require,u=0;u<r.length;u++)i(r[u]);return i}({1:[function(){},{}],2:[function(t,n,e){(function(t){function n(t,n){for(var e=0,r=t.length-1;r>=0;r--){var i=t[r];\".\"===i?t.splice(r,1):\"..\"===i?(t.splice(r,1),e++):e&&(t.splice(r,1),e--)}if(n)for(;e--;e)t.unshift(\"..\");return t}function r(t,n){if(t.filter)return t.filter(n);for(var e=[],r=0;r<t.length;r++)n(t[r],r,t)&&e.push(t[r]);return e}var i=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/,a=function(t){return i.exec(t).slice(1)};e.resolve=function(){for(var e=\"\",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var u=a>=0?arguments[a]:t.cwd();if(\"string\"!=typeof u)throw new TypeError(\"Arguments to path.resolve must be strings\");u&&(e=u+\"/\"+e,i=\"/\"===u.charAt(0))}return e=n(r(e.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),(i?\"/\":\"\")+e||\".\"},e.normalize=function(t){var i=e.isAbsolute(t),a=\"/\"===u(t,-1);return t=n(r(t.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),t||i||(t=\".\"),t&&a&&(t+=\"/\"),(i?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,function(t){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t}).join(\"/\"))},e.relative=function(t,n){function r(t){for(var n=0;n<t.length&&\"\"===t[n];n++);for(var e=t.length-1;e>=0&&\"\"===t[e];e--);return n>e?[]:t.slice(n,e-n+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split(\"/\")),a=r(n.split(\"/\")),u=Math.min(i.length,a.length),o=u,s=0;u>s;s++)if(i[s]!==a[s]){o=s;break}for(var c=[],s=o;s<i.length;s++)c.push(\"..\");return c=c.concat(a.slice(o)),c.join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){var n=a(t),e=n[0],r=n[1];return e||r?(r&&(r=r.substr(0,r.length-1)),e+r):\".\"},e.basename=function(t,n){var e=a(t)[2];return n&&e.substr(-1*n.length)===n&&(e=e.substr(0,e.length-n.length)),e},e.extname=function(t){return a(t)[3]};var u=\"b\"===\"ab\".substr(-1)?function(t,n,e){return t.substr(n,e)}:function(t,n,e){return 0>n&&(n=t.length+n),t.substr(n,e)}}).call(this,t(\"_process\"))},{_process:3}],3:[function(t,n){function e(){}var r=n.exports={};r.nextTick=function(){var t=\"undefined\"!=typeof window&&window.setImmediate,n=\"undefined\"!=typeof window&&window.MutationObserver,e=\"undefined\"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var r=[];if(n){var i=document.createElement(\"div\"),a=new MutationObserver(function(){var t=r.slice();r.length=0,t.forEach(function(t){t()})});return a.observe(i,{attributes:!0}),function(t){r.length||i.setAttribute(\"yes\",\"no\"),r.push(t)}}return e?(window.addEventListener(\"message\",function(t){var n=t.source;if((n===window||null===n)&&\"process-tick\"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage(\"process-tick\",\"*\")}):function(t){setTimeout(t,0)}}(),r.title=\"browser\",r.browser=!0,r.env={},r.argv=[],r.on=e,r.addListener=e,r.once=e,r.off=e,r.removeListener=e,r.removeAllListeners=e,r.emit=e,r.binding=function(){throw new Error(\"process.binding is not supported\")},r.cwd=function(){return\"/\"},r.chdir=function(){throw new Error(\"process.chdir is not supported\")}},{}],4:[function(t,n){!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function e(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function r(t,n){return n>t?-1:t>n?1:t>=n?0:0/0}function i(t){return null===t?0/0:+t}function a(t){return!isNaN(t)}function u(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}}function o(t){return t.length}function s(t){for(var n=1;t*n%1;)n*=10;return n}function c(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function l(){this._=Object.create(null)}function h(t){return(t+=\"\")===gu||t[0]===yu?yu+t:t}function f(t){return(t+=\"\")[0]===yu?t.slice(1):t}function d(t){return h(t)in this._}function p(t){return(t=h(t))in this._&&delete this._[t]}function g(){var t=[];for(var n in this._)t.push(f(n));return t}function y(){var t=0;for(var n in this._)++t;return t}function m(){for(var t in this._)return!1;return!0}function v(){this._=Object.create(null)}function _(t){return t}function b(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function x(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=mu.length;r>e;++e){var i=mu[e]+n;if(i in t)return i}}function w(){}function A(){}function k(t){function n(){for(var n,r=e,i=-1,a=r.length;++i<a;)(n=r[i].on)&&n.apply(this,arguments);return t}var e=[],r=new l;return n.on=function(n,i){var a,u=r.get(n);return arguments.length<2?u&&u.on:(u&&(u.on=null,e=e.slice(0,a=e.indexOf(u)).concat(e.slice(a+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function E(){eu.event.preventDefault()}function M(){for(var t,n=eu.event;t=n.sourceEvent;)n=t;return n}function S(t){for(var n=new A,e=0,r=arguments.length;++e<r;)n[arguments[e]]=k(n);return n.of=function(e,r){return function(i){try{var a=i.sourceEvent=eu.event;i.target=t,eu.event=i,n[i.type].apply(e,r)}finally{eu.event=a}}},n}function D(t){return _u(t,Au),t}function C(t){return\"function\"==typeof t?t:function(){return bu(t,this)}}function T(t){return\"function\"==typeof t?t:function(){return xu(t,this)}}function F(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function a(){this.setAttributeNS(t.space,t.local,n)}function u(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}function o(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=eu.ns.qualify(t),null==n?t.local?r:e:\"function\"==typeof n?t.local?o:u:t.local?a:i}function O(t){return t.trim().replace(/\\s+/g,\" \")}function L(t){return new RegExp(\"(?:^|\\\\s+)\"+eu.requote(t)+\"(?:\\\\s+|$)\",\"g\")}function I(t){return(t+\"\").trim().split(/^|\\s+/)}function B(t,n){function e(){for(var e=-1;++e<i;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<i;)t[e](this,r)}t=I(t).map(N);var i=t.length;return\"function\"==typeof n?r:e}function N(t){var n=L(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute(\"class\")||\"\";r?(n.lastIndex=0,n.test(i)||e.setAttribute(\"class\",O(i+\" \"+t))):e.setAttribute(\"class\",O(i.replace(n,\" \")))}}function P(t,n,e){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,e)}function a(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}return null==n?r:\"function\"==typeof n?a:i}function R(t,n){function e(){delete this[t]}function r(){this[t]=n}function i(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:\"function\"==typeof n?i:r}function j(t){function n(){var n=this.ownerDocument,e=this.namespaceURI;return e?n.createElementNS(e,t):n.createElement(t)}function e(){return this.ownerDocument.createElementNS(t.space,t.local)}return\"function\"==typeof t?t:(t=eu.ns.qualify(t)).local?e:n}function Y(){var t=this.parentNode;t&&t.removeChild(this)}function U(t){return{__data__:t}}function $(t){return function(){return wu(this,t)}}function W(t){return arguments.length||(t=r),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function z(t,n){for(var e=0,r=t.length;r>e;e++)for(var i,a=t[e],u=0,o=a.length;o>u;u++)(i=a[u])&&n(i,u,e);return t}function q(t){return _u(t,Eu),t}function G(t){var n,e;return function(r,i,a){var u,o=t[a].update,s=o.length;for(a!=e&&(e=a,n=0),i>=n&&(n=i+1);!(u=o[n])&&++n<s;);return u}}function V(t,n,e){function r(){var n=this[u];n&&(this.removeEventListener(t,n,n.$),delete this[u])}function i(){var i=s(n,iu(arguments));r.call(this),this.addEventListener(t,this[u]=i,i.$=e),i._=n}function a(){var n,e=new RegExp(\"^__on([^.]+)\"+eu.requote(t)+\"$\");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}var u=\"__on\"+t,o=t.indexOf(\".\"),s=H;o>0&&(t=t.slice(0,o));var c=Mu.get(t);return c&&(t=c,s=Z),o?n?i:r:n?w:a}function H(t,n){return function(e){var r=eu.event;eu.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{eu.event=r}}}function Z(t,n){var e=H(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function X(n){var r=\".dragsuppress-\"+ ++Du,i=\"click\"+r,a=eu.select(e(n)).on(\"touchmove\"+r,E).on(\"dragstart\"+r,E).on(\"selectstart\"+r,E);if(null==Su&&(Su=\"onselectstart\"in n?!1:x(n.style,\"userSelect\")),Su){var u=t(n).style,o=u[Su];u[Su]=\"none\"}return function(t){if(a.on(r,null),Su&&(u[Su]=o),t){var n=function(){a.on(i,null)};a.on(i,function(){E(),n()},!0),setTimeout(n,0)}}}function K(t,n){n.changedTouches&&(n=n.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Cu){var a=e(t);if(a.scrollX||a.scrollY){r=eu.select(\"body\").append(\"svg\").style({position:\"absolute\",top:0,left:0,margin:0,padding:0,border:\"none\"},\"important\");var u=r[0][0].getScreenCTM();Cu=!(u.f||u.e),r.remove()}}return Cu?(i.x=n.pageX,i.y=n.pageY):(i.x=n.clientX,i.y=n.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var o=t.getBoundingClientRect();return[n.clientX-o.left-t.clientLeft,n.clientY-o.top-t.clientTop]}function Q(){return eu.event.changedTouches[0].identifier}function J(t){return t>0?1:0>t?-1:0}function tt(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function nt(t){return t>1?0:-1>t?Ou:Math.acos(t)}function et(t){return t>1?Bu:-1>t?-Bu:Math.asin(t)}function rt(t){return((t=Math.exp(t))-1/t)/2}function it(t){return((t=Math.exp(t))+1/t)/2}function at(t){return((t=Math.exp(2*t))-1)/(t+1)}function ut(t){return(t=Math.sin(t/2))*t}function ot(){}function st(t,n,e){return this instanceof st?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof st?new st(t.h,t.s,t.l):wt(\"\"+t,At,st):new st(t,n,e)}function ct(t,n,e){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?a+(u-a)*t/60:180>t?u:240>t?a+(u-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,u;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:0>n?0:n>1?1:n,e=0>e?0:e>1?1:e,u=.5>=e?e*(1+n):e+n-e*n,a=2*e-u,new vt(i(t+120),i(t),i(t-120))}function lt(t,n,e){return this instanceof lt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof lt?new lt(t.h,t.c,t.l):t instanceof ft?pt(t.l,t.a,t.b):pt((t=kt((t=eu.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new lt(t,n,e)}function ht(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new ft(e,Math.cos(t*=Nu)*n,Math.sin(t)*n)}function ft(t,n,e){return this instanceof ft?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof ft?new ft(t.l,t.a,t.b):t instanceof lt?ht(t.h,t.c,t.l):kt((t=vt(t)).r,t.g,t.b):new ft(t,n,e)}function dt(t,n,e){var r=(t+16)/116,i=r+n/500,a=r-e/200;return i=gt(i)*Vu,r=gt(r)*Hu,a=gt(a)*Zu,new vt(mt(3.2404542*i-1.5371385*r-.4985314*a),mt(-.969266*i+1.8760108*r+.041556*a),mt(.0556434*i-.2040259*r+1.0572252*a))}function pt(t,n,e){return t>0?new lt(Math.atan2(e,n)*Pu,Math.sqrt(n*n+e*e),t):new lt(0/0,0/0,t)}function gt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function yt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function mt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function vt(t,n,e){return this instanceof vt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof vt?new vt(t.r,t.g,t.b):wt(\"\"+t,vt,ct):new vt(t,n,e)}function _t(t){return new vt(t>>16,t>>8&255,255&t)}function bt(t){return _t(t)+\"\"}function xt(t){return 16>t?\"0\"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function wt(t,n,e){t=t.toLowerCase();var r,i,a,u=0,o=0,s=0;if(r=/([a-z]+)\\((.*)\\)/.exec(t))switch(i=r[2].split(\",\"),r[1]){case\"hsl\":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case\"rgb\":return n(Mt(i[0]),Mt(i[1]),Mt(i[2]))}return(a=Qu.get(t))?n(a.r,a.g,a.b):(null==t||\"#\"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(u=(3840&a)>>4,u=u>>4|u,o=240&a,o=o>>4|o,s=15&a,s=s<<4|s):7===t.length&&(u=(16711680&a)>>16,o=(65280&a)>>8,s=255&a)),n(u,o,s))}function At(t,n,e){var r,i,a=Math.min(t/=255,n/=255,e/=255),u=Math.max(t,n,e),o=u-a,s=(u+a)/2;return o?(i=.5>s?o/(u+a):o/(2-u-a),r=t==u?(n-e)/o+(e>n?6:0):n==u?(e-t)/o+2:(t-n)/o+4,r*=60):(r=0/0,i=s>0&&1>s?0:r),new st(r,i,s)}function kt(t,n,e){t=Et(t),n=Et(n),e=Et(e);var r=yt((.4124564*t+.3575761*n+.1804375*e)/Vu),i=yt((.2126729*t+.7151522*n+.072175*e)/Hu),a=yt((.0193339*t+.119192*n+.9503041*e)/Zu);return ft(116*i-16,500*(r-i),200*(i-a))}function Et(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Mt(t){var n=parseFloat(t);return\"%\"===t.charAt(t.length-1)?Math.round(2.55*n):n}function St(t){return\"function\"==typeof t?t:function(){return t}}function Dt(t){return function(n,e,r){return 2===arguments.length&&\"function\"==typeof e&&(r=e,e=null),Ct(n,e,t,r)}}function Ct(t,n,e,r){function i(){var t,n=s.status;if(!n&&Ft(s)||n>=200&&300>n||304===n){try{t=e.call(a,s)}catch(r){return void u.error.call(a,r)}u.load.call(a,t)}else u.error.call(a,s)}var a={},u=eu.dispatch(\"beforesend\",\"progress\",\"load\",\"error\"),o={},s=new XMLHttpRequest,c=null;return!this.XDomainRequest||\"withCredentials\"in s||!/^(http(s)?:)?\\/\\//.test(t)||(s=new XDomainRequest),\"onload\"in s?s.onload=s.onerror=i:s.onreadystatechange=function(){s.readyState>3&&i()},s.onprogress=function(t){var n=eu.event;eu.event=t;try{u.progress.call(a,s)}finally{eu.event=n}},a.header=function(t,n){return t=(t+\"\").toLowerCase(),arguments.length<2?o[t]:(null==n?delete o[t]:o[t]=n+\"\",a)},a.mimeType=function(t){return arguments.length?(n=null==t?null:t+\"\",a):n},a.responseType=function(t){return arguments.length?(c=t,a):c},a.response=function(t){return e=t,a},[\"get\",\"post\"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(iu(arguments)))}}),a.send=function(e,r,i){if(2===arguments.length&&\"function\"==typeof r&&(i=r,r=null),s.open(e,t,!0),null==n||\"accept\"in o||(o.accept=n+\",*/*\"),s.setRequestHeader)for(var l in o)s.setRequestHeader(l,o[l]);return null!=n&&s.overrideMimeType&&s.overrideMimeType(n),null!=c&&(s.responseType=c),null!=i&&a.on(\"error\",i).on(\"load\",function(t){i(null,t)}),u.beforesend.call(a,s),s.send(null==r?null:r),a},a.abort=function(){return s.abort(),a},eu.rebind(a,u,\"on\"),null==r?a:a.get(Tt(r))}function Tt(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function Ft(t){var n=t.responseType;return n&&\"text\"!==n?t.response:t.responseText}function Ot(){var t=Lt(),n=It()-t;n>24?(isFinite(n)&&(clearTimeout(eo),eo=setTimeout(Ot,n)),no=0):(no=1,io(Ot))}function Lt(){var t=Date.now();for(ro=Ju;ro;)t>=ro.t&&(ro.f=ro.c(t-ro.t)),ro=ro.n;return t}function It(){for(var t,n=Ju,e=1/0;n;)n.f?n=t?t.n=n.n:Ju=n.n:(n.t<e&&(e=n.t),n=(t=n).n);return to=t,e}function Bt(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Nt(t,n){var e=Math.pow(10,3*pu(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function Pt(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,a=r&&e?function(t,n){for(var i=t.length,a=[],u=0,o=r[0],s=0;i>0&&o>0&&(s+o+1>n&&(o=Math.max(1,n-s)),a.push(t.substring(i-=o,i+o)),!((s+=o+1)>n));)o=r[u=(u+1)%r.length];return a.reverse().join(e)}:_;return function(t){var e=uo.exec(t),r=e[1]||\" \",u=e[2]||\">\",o=e[3]||\"-\",s=e[4]||\"\",c=e[5],l=+e[6],h=e[7],f=e[8],d=e[9],p=1,g=\"\",y=\"\",m=!1,v=!0;switch(f&&(f=+f.substring(1)),(c||\"0\"===r&&\"=\"===u)&&(c=r=\"0\",u=\"=\"),d){case\"n\":h=!0,d=\"g\";break;case\"%\":p=100,y=\"%\",d=\"f\";break;case\"p\":p=100,y=\"%\",d=\"r\";break;case\"b\":case\"o\":case\"x\":case\"X\":\"#\"===s&&(g=\"0\"+d.toLowerCase());case\"c\":v=!1;case\"d\":m=!0,f=0;break;case\"s\":p=-1,d=\"r\"}\"$\"===s&&(g=i[0],y=i[1]),\"r\"!=d||f||(d=\"g\"),null!=f&&(\"g\"==d?f=Math.max(1,Math.min(21,f)):(\"e\"==d||\"f\"==d)&&(f=Math.max(0,Math.min(20,f)))),d=oo.get(d)||Rt;var _=c&&h;return function(t){var e=y;if(m&&t%1)return\"\";var i=0>t||0===t&&0>1/t?(t=-t,\"-\"):\"-\"===o?\"\":o;if(0>p){var s=eu.formatPrefix(t,f);t=s.scale(t),e=s.symbol+y}else t*=p;t=d(t,f);var b,x,w=t.lastIndexOf(\".\");if(0>w){var A=v?t.lastIndexOf(\"e\"):-1;0>A?(b=t,x=\"\"):(b=t.substring(0,A),x=t.substring(A))}else b=t.substring(0,w),x=n+t.substring(w+1);!c&&h&&(b=a(b,1/0));var k=g.length+b.length+x.length+(_?0:i.length),E=l>k?new Array(k=l-k+1).join(r):\"\";return _&&(b=a(E+b,E.length?l-x.length:1/0)),i+=g,t=b+x,(\"<\"===u?i+t+E:\">\"===u?E+i+t:\"^\"===u?E.substring(0,k>>=1)+i+t+E.substring(k):i+(_?t:E+t))+e}}}function Rt(t){return t+\"\"}function jt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Yt(t,n,e){function r(n){var e=t(n),r=a(e,1);return r-n>n-e?e:r}function i(e){return n(e=t(new co(e-1)),1),e}function a(t,e){return n(t=new co(+t),e),t}function u(t,r,a){var u=i(t),o=[];if(a>1)for(;r>u;)e(u)%a||o.push(new Date(+u)),n(u,1);else for(;r>u;)o.push(new Date(+u)),n(u,1);return o}function o(t,n,e){try{co=jt;var r=new jt;return r._=t,u(r,n,e)}finally{co=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=a,t.range=u;var s=t.utc=Ut(t);return s.floor=s,s.round=Ut(r),s.ceil=Ut(i),s.offset=Ut(a),s.range=o,t}function Ut(t){return function(n,e){try{co=jt;var r=new jt;return r._=n,t(r,e)._}finally{co=Date}}}function $t(t){function n(t){function n(n){for(var e,i,a,u=[],o=-1,s=0;++o<r;)37===t.charCodeAt(o)&&(u.push(t.slice(s,o)),null!=(i=ho[e=t.charAt(++o)])&&(e=t.charAt(++o)),(a=D[e])&&(e=a(n,null==i?\"e\"===e?\" \":\"0\":i)),u.push(e),s=o+1);return u.push(t.slice(s,o)),u.join(\"\")}var r=t.length;return n.parse=function(n){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=e(r,t,n,0);if(i!=n.length)return null;\"p\"in r&&(r.H=r.H%12+12*r.p);var a=null!=r.Z&&co!==jt,u=new(a?jt:co);return\"j\"in r?u.setFullYear(r.y,0,r.j):\"w\"in r&&(\"W\"in r||\"U\"in r)?(u.setFullYear(r.y,0,1),u.setFullYear(r.y,0,\"W\"in r?(r.w+6)%7+7*r.W-(u.getDay()+5)%7:r.w+7*r.U-(u.getDay()+6)%7)):u.setFullYear(r.y,r.m,r.d),u.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),a?u._:u},n.toString=function(){return t},n}function e(t,n,e,r){for(var i,a,u,o=0,s=n.length,c=e.length;s>o;){if(r>=c)return-1;if(i=n.charCodeAt(o++),37===i){if(u=n.charAt(o++),a=C[u in ho?n.charAt(o++):u],!a||(r=a(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(t,n,e){w.lastIndex=0;var r=w.exec(n.slice(e));return r?(t.w=A.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){b.lastIndex=0;var r=b.exec(n.slice(e));return r?(t.w=x.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,e){M.lastIndex=0;var r=M.exec(n.slice(e));return r?(t.m=S.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,e){k.lastIndex=0;var r=k.exec(n.slice(e));return r?(t.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,r){return e(t,D.c.toString(),n,r)}function s(t,n,r){return e(t,D.x.toString(),n,r)}function c(t,n,r){return e(t,D.X.toString(),n,r)}function l(t,n,e){var r=_.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}var h=t.dateTime,f=t.date,d=t.time,p=t.periods,g=t.days,y=t.shortDays,m=t.months,v=t.shortMonths;n.utc=function(t){function e(t){try{co=jt;var n=new co;return n._=t,r(n)}finally{co=Date}}var r=n(t);return e.parse=function(t){try{co=jt;var n=r.parse(t);return n&&n._}finally{co=Date}},e.toString=r.toString,e},n.multi=n.utc.multi=cn;var _=eu.map(),b=zt(g),x=qt(g),w=zt(y),A=qt(y),k=zt(m),E=qt(m),M=zt(v),S=qt(v);p.forEach(function(t,n){_.set(t.toLowerCase(),n)});var D={a:function(t){return y[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return v[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:n(h),d:function(t,n){return Wt(t.getDate(),n,2)},e:function(t,n){return Wt(t.getDate(),n,2)},H:function(t,n){return Wt(t.getHours(),n,2)},I:function(t,n){return Wt(t.getHours()%12||12,n,2)},j:function(t,n){return Wt(1+so.dayOfYear(t),n,3)},L:function(t,n){return Wt(t.getMilliseconds(),n,3)},m:function(t,n){return Wt(t.getMonth()+1,n,2)},M:function(t,n){return Wt(t.getMinutes(),n,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,n){return Wt(t.getSeconds(),n,2)},U:function(t,n){return Wt(so.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Wt(so.mondayOfYear(t),n,2)},x:n(f),X:n(d),y:function(t,n){return Wt(t.getFullYear()%100,n,2)},Y:function(t,n){return Wt(t.getFullYear()%1e4,n,4)},Z:on,\"%\":function(){return\"%\"}},C={a:r,A:i,b:a,B:u,c:o,d:tn,e:tn,H:en,I:en,j:nn,L:un,m:Jt,M:rn,p:l,S:an,U:Vt,w:Gt,W:Ht,x:s,X:c,y:Xt,Y:Zt,Z:Kt,\"%\":sn};return n}function Wt(t,n,e){var r=0>t?\"-\":\"\",i=(r?-t:t)+\"\",a=i.length;return r+(e>a?new Array(e-a+1).join(n)+i:i)}function zt(t){return new RegExp(\"^(?:\"+t.map(eu.requote).join(\"|\")+\")\",\"i\")}function qt(t){for(var n=new l,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Gt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Vt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function Ht(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function Zt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Xt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.y=Qt(+r[0]),e+r[0].length):-1}function Kt(t,n,e){return/^[+-]\\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function Qt(t){return t+(t>68?1900:2e3)}function Jt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function tn(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function nn(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function en(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function rn(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function an(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function un(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function on(t){var n=t.getTimezoneOffset(),e=n>0?\"-\":\"+\",r=pu(n)/60|0,i=pu(n)%60;return e+Wt(r,\"0\",2)+Wt(i,\"0\",2)}function sn(t,n,e){po.lastIndex=0;var r=po.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function cn(t){for(var n=t.length,e=-1;++e<n;)t[e][0]=this(t[e][0]);return function(n){for(var e=0,r=t[e];!r[1](n);)r=t[++e];return r[0](n)}}function ln(){}function hn(t,n,e){var r=e.s=t+n,i=r-t,a=r-i;e.t=t-a+(n-i)}function fn(t,n){t&&vo.hasOwnProperty(t.type)&&vo[t.type](t,n)}function dn(t,n,e){var r,i=-1,a=t.length-e;for(n.lineStart();++i<a;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function pn(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)dn(t[e],n,1);n.polygonEnd()}function gn(){function t(t,n){t*=Nu,n=n*Nu/2+Ou/4;var e=t-r,u=e>=0?1:-1,o=u*e,s=Math.cos(n),c=Math.sin(n),l=a*c,h=i*s+l*Math.cos(o),f=l*u*Math.sin(o);bo.add(Math.atan2(f,h)),r=t,i=s,a=c}var n,e,r,i,a;xo.point=function(u,o){xo.point=t,r=(n=u)*Nu,i=Math.cos(o=(e=o)*Nu/2+Ou/4),a=Math.sin(o)},xo.lineEnd=function(){t(n,e)}}function yn(t){var n=t[0],e=t[1],r=Math.cos(e);return[r*Math.cos(n),r*Math.sin(n),Math.sin(e)]}function mn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function vn(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function _n(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function bn(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function xn(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function wn(t){return[Math.atan2(t[1],t[0]),et(t[2])]}function An(t,n){return pu(t[0]-n[0])<Tu&&pu(t[1]-n[1])<Tu}function kn(t,n){t*=Nu;var e=Math.cos(n*=Nu);En(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function En(t,n,e){++wo,ko+=(t-ko)/wo,Eo+=(n-Eo)/wo,Mo+=(e-Mo)/wo}function Mn(){function t(t,i){t*=Nu;var a=Math.cos(i*=Nu),u=a*Math.cos(t),o=a*Math.sin(t),s=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*s-r*o)*c+(c=r*u-n*s)*c+(c=n*o-e*u)*c),n*u+e*o+r*s);Ao+=c,So+=c*(n+(n=u)),Do+=c*(e+(e=o)),Co+=c*(r+(r=s)),En(n,e,r)}var n,e,r;Lo.point=function(i,a){i*=Nu;var u=Math.cos(a*=Nu);n=u*Math.cos(i),e=u*Math.sin(i),r=Math.sin(a),Lo.point=t,En(n,e,r)}}function Sn(){Lo.point=kn}function Dn(){function t(t,n){t*=Nu;var e=Math.cos(n*=Nu),u=e*Math.cos(t),o=e*Math.sin(t),s=Math.sin(n),c=i*s-a*o,l=a*u-r*s,h=r*o-i*u,f=Math.sqrt(c*c+l*l+h*h),d=r*u+i*o+a*s,p=f&&-nt(d)/f,g=Math.atan2(f,d);To+=p*c,Fo+=p*l,Oo+=p*h,Ao+=g,So+=g*(r+(r=u)),Do+=g*(i+(i=o)),Co+=g*(a+(a=s)),En(r,i,a)}var n,e,r,i,a;Lo.point=function(u,o){n=u,e=o,Lo.point=t,u*=Nu;var s=Math.cos(o*=Nu);r=s*Math.cos(u),i=s*Math.sin(u),a=Math.sin(o),En(r,i,a)},Lo.lineEnd=function(){t(n,e),Lo.lineEnd=Sn,Lo.point=kn}}function Cn(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])}),e}function Tn(){return!0}function Fn(t,n,e,r,i){var a=[],u=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];if(An(e,r)){i.lineStart();for(var o=0;n>o;++o)i.point((e=t[o])[0],e[1]);return void i.lineEnd()}var s=new Ln(e,t,null,!0),c=new Ln(e,null,s,!1);s.o=c,a.push(s),u.push(c),s=new Ln(r,t,null,!1),c=new Ln(r,null,s,!0),s.o=c,a.push(s),u.push(c)}}),u.sort(n),On(a),On(u),a.length){for(var o=0,s=e,c=u.length;c>o;++o)u[o].e=s=!s;for(var l,h,f=a[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var o=0,c=l.length;c>o;++o)i.point((h=l[o])[0],h[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(p){l=d.p.z;for(var o=l.length-1;o>=0;--o)i.point((h=l[o])[0],h[1])}else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,l=d.z,p=!p}while(!d.v);i.lineEnd()}}}function On(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function Ln(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function In(t,n,e,r){return function(i,a){function u(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&a.point(n,e)}function o(t,n){var e=i(t,n);y.point(e[0],e[1])}function s(){v.point=o,y.lineStart()}function c(){v.point=u,y.lineEnd()}function l(t,n){g.push([t,n]);var e=i(t,n);b.point(e[0],e[1])}function h(){b.lineStart(),g=[]}function f(){l(g[0][0],g[0][1]),b.lineEnd();var t,n=b.clean(),e=_.buffer(),r=e.length;if(g.pop(),p.push(g),g=null,r)if(1&n){t=e[0];var i,r=t.length-1,u=-1;if(r>0){for(x||(a.polygonStart(),x=!0),a.lineStart();++u<r;)a.point((i=t[u])[0],i[1]);a.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),d.push(e.filter(Bn))}var d,p,g,y=n(a),m=i.invert(r[0],r[1]),v={point:u,lineStart:s,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=h,v.lineEnd=f,d=[],p=[]},polygonEnd:function(){v.point=u,v.lineStart=s,v.lineEnd=c,d=eu.merge(d);var t=Un(m,p);d.length?(x||(a.polygonStart(),x=!0),Fn(d,Pn,t,e,a)):t&&(x||(a.polygonStart(),x=!0),a.lineStart(),e(null,null,1,a),a.lineEnd()),x&&(a.polygonEnd(),x=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),e(null,null,1,a),a.lineEnd(),a.polygonEnd()}},_=Nn(),b=n(_),x=!1;return v}}function Bn(t){return t.length>1}function Nn(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:w,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function Pn(t,n){return((t=t.x)[0]<0?t[1]-Bu-Tu:Bu-t[1])-((n=n.x)[0]<0?n[1]-Bu-Tu:Bu-n[1])}function Rn(t){var n,e=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),n=1},point:function(a,u){var o=a>0?Ou:-Ou,s=pu(a-e);pu(s-Ou)<Tu?(t.point(e,r=(r+u)/2>0?Bu:-Bu),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(o,r),t.point(a,r),n=0):i!==o&&s>=Ou&&(pu(e-i)<Tu&&(e-=i*Tu),pu(a-o)<Tu&&(a-=o*Tu),r=jn(e,r,a,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(o,r),n=0),t.point(e=a,r=u),i=o},lineEnd:function(){t.lineEnd(),e=r=0/0},clean:function(){return 2-n}}}function jn(t,n,e,r){var i,a,u=Math.sin(t-e);return pu(u)>Tu?Math.atan((Math.sin(n)*(a=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(n))*Math.sin(t))/(i*a*u)):(n+r)/2}function Yn(t,n,e,r){var i;if(null==t)i=e*Bu,r.point(-Ou,i),r.point(0,i),r.point(Ou,i),r.point(Ou,0),r.point(Ou,-i),r.point(0,-i),r.point(-Ou,-i),r.point(-Ou,0),r.point(-Ou,i);else if(pu(t[0]-n[0])>Tu){var a=t[0]<n[0]?Ou:-Ou;i=e*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(n[0],n[1])}function Un(t,n){var e=t[0],r=t[1],i=[Math.sin(e),-Math.cos(e),0],a=0,u=0;bo.reset();for(var o=0,s=n.length;s>o;++o){var c=n[o],l=c.length;if(l)for(var h=c[0],f=h[0],d=h[1]/2+Ou/4,p=Math.sin(d),g=Math.cos(d),y=1;;){y===l&&(y=0),t=c[y];var m=t[0],v=t[1]/2+Ou/4,_=Math.sin(v),b=Math.cos(v),x=m-f,w=x>=0?1:-1,A=w*x,k=A>Ou,E=p*_;if(bo.add(Math.atan2(E*w*Math.sin(A),g*b+E*Math.cos(A))),a+=k?x+w*Lu:x,k^f>=e^m>=e){var M=vn(yn(h),yn(t));xn(M);var S=vn(i,M);xn(S);var D=(k^x>=0?-1:1)*et(S[2]);(r>D||r===D&&(M[0]||M[1]))&&(u+=k^x>=0?1:-1)}if(!y++)break;f=m,p=_,g=b,h=t}}return(-Tu>a||Tu>a&&0>bo)^1&u}function $n(t){function n(t,n){return Math.cos(t)*Math.cos(n)>a}function e(t){var e,a,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(h,f){var d,p=[h,f],g=n(h,f),y=u?g?0:i(h,f):g?i(h+(0>h?Ou:-Ou),f):0;if(!e&&(c=s=g)&&t.lineStart(),g!==s&&(d=r(e,p),(An(e,d)||An(p,d))&&(p[0]+=Tu,p[1]+=Tu,g=n(p[0],p[1]))),g!==s)l=0,g?(t.lineStart(),d=r(p,e),t.point(d[0],d[1])):(d=r(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(o&&e&&u^g){var m;y&a||!(m=r(p,e,!0))||(l=0,u?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&An(e,p)||t.point(p[0],p[1]),e=p,s=g,a=y},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return l|(c&&s)<<1}}}function r(t,n,e){var r=yn(t),i=yn(n),u=[1,0,0],o=vn(r,i),s=mn(o,o),c=o[0],l=s-c*c;if(!l)return!e&&t;var h=a*s/l,f=-a*c/l,d=vn(u,o),p=bn(u,h),g=bn(o,f);_n(p,g);var y=d,m=mn(p,y),v=mn(y,y),_=m*m-v*(mn(p,p)-1);if(!(0>_)){var b=Math.sqrt(_),x=bn(y,(-m-b)/v);if(_n(x,p),x=wn(x),!e)return x;var w,A=t[0],k=n[0],E=t[1],M=n[1];A>k&&(w=A,A=k,k=w);var S=k-A,D=pu(S-Ou)<Tu,C=D||Tu>S;if(!D&&E>M&&(w=E,E=M,M=w),C?D?E+M>0^x[1]<(pu(x[0]-A)<Tu?E:M):E<=x[1]&&x[1]<=M:S>Ou^(A<=x[0]&&x[0]<=k)){var T=bn(y,(-m+b)/v);return _n(T,p),[x,wn(T)]}}}function i(n,e){var r=u?t:Ou-t,i=0;return-r>n?i|=1:n>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var a=Math.cos(t),u=a>0,o=pu(a)>Tu,s=ge(t,6*Nu);return In(n,e,s,u?[0,-t]:[-Ou,t-Ou])}function Wn(t,n,e,r){return function(i){var a,u=i.a,o=i.b,s=u.x,c=u.y,l=o.x,h=o.y,f=0,d=1,p=l-s,g=h-c;if(a=t-s,p||!(a>0)){if(a/=p,0>p){if(f>a)return;d>a&&(d=a)}else if(p>0){if(a>d)return;a>f&&(f=a)}if(a=e-s,p||!(0>a)){if(a/=p,0>p){if(a>d)return;a>f&&(f=a)}else if(p>0){if(f>a)return;d>a&&(d=a)}if(a=n-c,g||!(a>0)){if(a/=g,0>g){if(f>a)return;d>a&&(d=a)}else if(g>0){if(a>d)return;a>f&&(f=a)}if(a=r-c,g||!(0>a)){if(a/=g,0>g){if(a>d)return;a>f&&(f=a)}else if(g>0){if(f>a)return;d>a&&(d=a)}return f>0&&(i.a={x:s+f*p,y:c+f*g}),1>d&&(i.b={x:s+d*p,y:c+d*g}),i}}}}}}function zn(t,n,e,r){function i(r,i){return pu(r[0]-t)<Tu?i>0?0:3:pu(r[0]-e)<Tu?i>0?2:1:pu(r[1]-n)<Tu?i>0?1:0:i>0?3:2}function a(t,n){return u(t.x,n.x)}function u(t,n){var e=i(t,1),r=i(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0];\n\n}return function(o){function s(t){for(var n=0,e=y.length,r=t[1],i=0;e>i;++i)for(var a,u=1,o=y[i],s=o.length,c=o[0];s>u;++u)a=o[u],c[1]<=r?a[1]>r&&tt(c,a,t)>0&&++n:a[1]<=r&&tt(c,a,t)<0&&--n,c=a;return 0!==n}function c(a,o,s,c){var l=0,h=0;if(null==a||(l=i(a,s))!==(h=i(o,s))||u(a,o)<0^s>0){do c.point(0===l||3===l?t:e,l>1?r:n);while((l=(l+s+4)%4)!==h)}else c.point(o[0],o[1])}function l(i,a){return i>=t&&e>=i&&a>=n&&r>=a}function h(t,n){l(t,n)&&o.point(t,n)}function f(){C.point=p,y&&y.push(m=[]),k=!0,A=!1,x=w=0/0}function d(){g&&(p(v,_),b&&A&&S.rejoin(),g.push(S.buffer())),C.point=h,A&&o.lineEnd()}function p(t,n){t=Math.max(-Bo,Math.min(Bo,t)),n=Math.max(-Bo,Math.min(Bo,n));var e=l(t,n);if(y&&m.push([t,n]),k)v=t,_=n,b=e,k=!1,e&&(o.lineStart(),o.point(t,n));else if(e&&A)o.point(t,n);else{var r={a:{x:x,y:w},b:{x:t,y:n}};D(r)?(A||(o.lineStart(),o.point(r.a.x,r.a.y)),o.point(r.b.x,r.b.y),e||o.lineEnd(),E=!1):e&&(o.lineStart(),o.point(t,n),E=!1)}x=t,w=n,A=e}var g,y,m,v,_,b,x,w,A,k,E,M=o,S=Nn(),D=Wn(t,n,e,r),C={point:h,lineStart:f,lineEnd:d,polygonStart:function(){o=S,g=[],y=[],E=!0},polygonEnd:function(){o=M,g=eu.merge(g);var n=s([t,r]),e=E&&n,i=g.length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),c(null,null,1,o),o.lineEnd()),i&&Fn(g,a,n,c,o),o.polygonEnd()),g=y=m=null}};return C}}function qn(t){var n=0,e=Ou/3,r=oe(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Ou/180,e=t[1]*Ou/180):[n/Ou*180,e/Ou*180]},i}function Gn(t,n){function e(t,n){var e=Math.sqrt(a-2*i*Math.sin(n))/i;return[e*Math.sin(t*=i),u-e*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(n))/2,a=1+r*(2*i-r),u=Math.sqrt(a)/i;return e.invert=function(t,n){var e=u-n;return[Math.atan2(t,e)/i,et((a-(t*t+e*e)*i*i)/(2*i))]},e}function Vn(){function t(t,n){Po+=i*t-r*n,r=t,i=n}var n,e,r,i;$o.point=function(a,u){$o.point=t,n=r=a,e=i=u},$o.lineEnd=function(){t(n,e)}}function Hn(t,n){Ro>t&&(Ro=t),t>Yo&&(Yo=t),jo>n&&(jo=n),n>Uo&&(Uo=n)}function Zn(){function t(t,n){u.push(\"M\",t,\",\",n,a)}function n(t,n){u.push(\"M\",t,\",\",n),o.point=e}function e(t,n){u.push(\"L\",t,\",\",n)}function r(){o.point=t}function i(){u.push(\"Z\")}var a=Xn(4.5),u=[],o={point:t,lineStart:function(){o.point=n},lineEnd:r,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=r,o.point=t},pointRadius:function(t){return a=Xn(t),o},result:function(){if(u.length){var t=u.join(\"\");return u=[],t}}};return o}function Xn(t){return\"m0,\"+t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+-2*t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+2*t+\"z\"}function Kn(t,n){ko+=t,Eo+=n,++Mo}function Qn(){function t(t,r){var i=t-n,a=r-e,u=Math.sqrt(i*i+a*a);So+=u*(n+t)/2,Do+=u*(e+r)/2,Co+=u,Kn(n=t,e=r)}var n,e;zo.point=function(r,i){zo.point=t,Kn(n=r,e=i)}}function Jn(){zo.point=Kn}function te(){function t(t,n){var e=t-r,a=n-i,u=Math.sqrt(e*e+a*a);So+=u*(r+t)/2,Do+=u*(i+n)/2,Co+=u,u=i*t-r*n,To+=u*(r+t),Fo+=u*(i+n),Oo+=3*u,Kn(r=t,i=n)}var n,e,r,i;zo.point=function(a,u){zo.point=t,Kn(n=r=a,e=i=u)},zo.lineEnd=function(){t(n,e)}}function ne(t){function n(n,e){t.moveTo(n+u,e),t.arc(n,e,u,0,Lu)}function e(n,e){t.moveTo(n,e),o.point=r}function r(n,e){t.lineTo(n,e)}function i(){o.point=n}function a(){t.closePath()}var u=4.5,o={point:n,lineStart:function(){o.point=e},lineEnd:i,polygonStart:function(){o.lineEnd=a},polygonEnd:function(){o.lineEnd=i,o.point=n},pointRadius:function(t){return u=t,o},result:w};return o}function ee(t){function n(t){return(o?r:e)(t)}function e(n){return ae(n,function(e,r){e=t(e,r),n.point(e[0],e[1])})}function r(n){function e(e,r){e=t(e,r),n.point(e[0],e[1])}function r(){_=0/0,k.point=a,n.lineStart()}function a(e,r){var a=yn([e,r]),u=t(e,r);i(_,b,v,x,w,A,_=u[0],b=u[1],v=e,x=a[0],w=a[1],A=a[2],o,n),n.point(_,b)}function u(){k.point=e,n.lineEnd()}function s(){r(),k.point=c,k.lineEnd=l}function c(t,n){a(h=t,f=n),d=_,p=b,g=x,y=w,m=A,k.point=a}function l(){i(_,b,v,x,w,A,d,p,h,g,y,m,o,n),k.lineEnd=u,u()}var h,f,d,p,g,y,m,v,_,b,x,w,A,k={point:e,lineStart:r,lineEnd:u,polygonStart:function(){n.polygonStart(),k.lineStart=s},polygonEnd:function(){n.polygonEnd(),k.lineStart=r}};return k}function i(n,e,r,o,s,c,l,h,f,d,p,g,y,m){var v=l-n,_=h-e,b=v*v+_*_;if(b>4*a&&y--){var x=o+d,w=s+p,A=c+g,k=Math.sqrt(x*x+w*w+A*A),E=Math.asin(A/=k),M=pu(pu(A)-1)<Tu||pu(r-f)<Tu?(r+f)/2:Math.atan2(w,x),S=t(M,E),D=S[0],C=S[1],T=D-n,F=C-e,O=_*T-v*F;(O*O/b>a||pu((v*T+_*F)/b-.5)>.3||u>o*d+s*p+c*g)&&(i(n,e,r,o,s,c,D,C,M,x/=k,w/=k,A,y,m),m.point(D,C),i(D,C,M,x,w,A,l,h,f,d,p,g,y,m))}}var a=.5,u=Math.cos(30*Nu),o=16;return n.precision=function(t){return arguments.length?(o=(a=t*t)>0&&16,n):Math.sqrt(a)},n}function re(t){var n=ee(function(n,e){return t([n*Pu,e*Pu])});return function(t){return se(n(t))}}function ie(t){this.stream=t}function ae(t,n){return{point:n,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function ue(t){return oe(function(){return t})()}function oe(t){function n(t){return t=o(t[0]*Nu,t[1]*Nu),[t[0]*f+s,c-t[1]*f]}function e(t){return t=o.invert((t[0]-s)/f,(c-t[1])/f),t&&[t[0]*Pu,t[1]*Pu]}function r(){o=Cn(u=he(m,v,b),a);var t=a(g,y);return s=d-t[0]*f,c=p+t[1]*f,i()}function i(){return l&&(l.valid=!1,l=null),n}var a,u,o,s,c,l,h=ee(function(t,n){return t=a(t,n),[t[0]*f+s,c-t[1]*f]}),f=150,d=480,p=250,g=0,y=0,m=0,v=0,b=0,x=Io,w=_,A=null,k=null;return n.stream=function(t){return l&&(l.valid=!1),l=se(x(u,h(w(t)))),l.valid=!0,l},n.clipAngle=function(t){return arguments.length?(x=null==t?(A=t,Io):$n((A=+t)*Nu),i()):A},n.clipExtent=function(t){return arguments.length?(k=t,w=t?zn(t[0][0],t[0][1],t[1][0],t[1][1]):_,i()):k},n.scale=function(t){return arguments.length?(f=+t,r()):f},n.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],r()):[d,p]},n.center=function(t){return arguments.length?(g=t[0]%360*Nu,y=t[1]%360*Nu,r()):[g*Pu,y*Pu]},n.rotate=function(t){return arguments.length?(m=t[0]%360*Nu,v=t[1]%360*Nu,b=t.length>2?t[2]%360*Nu:0,r()):[m*Pu,v*Pu,b*Pu]},eu.rebind(n,h,\"precision\"),function(){return a=t.apply(this,arguments),n.invert=a.invert&&e,r()}}function se(t){return ae(t,function(n,e){t.point(n*Nu,e*Nu)})}function ce(t,n){return[t,n]}function le(t,n){return[t>Ou?t-Lu:-Ou>t?t+Lu:t,n]}function he(t,n,e){return t?n||e?Cn(de(t),pe(n,e)):de(t):n||e?pe(n,e):le}function fe(t){return function(n,e){return n+=t,[n>Ou?n-Lu:-Ou>n?n+Lu:n,e]}}function de(t){var n=fe(t);return n.invert=fe(-t),n}function pe(t,n){function e(t,n){var e=Math.cos(n),o=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*r+o*i;return[Math.atan2(s*a-l*u,o*r-c*i),et(l*a+s*u)]}var r=Math.cos(t),i=Math.sin(t),a=Math.cos(n),u=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),o=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*a-s*u;return[Math.atan2(s*a+c*u,o*r+l*i),et(l*r-o*i)]},e}function ge(t,n){var e=Math.cos(t),r=Math.sin(t);return function(i,a,u,o){var s=u*n;null!=i?(i=ye(e,i),a=ye(e,a),(u>0?a>i:i>a)&&(i+=u*Lu)):(i=t+u*Lu,a=t-.5*s);for(var c,l=i;u>0?l>a:a>l;l-=s)o.point((c=wn([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function ye(t,n){var e=yn(n);e[0]-=t,xn(e);var r=nt(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Tu)%(2*Math.PI)}function me(t,n,e){var r=eu.range(t,n-Tu,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function ve(t,n,e){var r=eu.range(t,n-Tu,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function _e(t){return t.source}function be(t){return t.target}function xe(t,n,e,r){var i=Math.cos(n),a=Math.sin(n),u=Math.cos(r),o=Math.sin(r),s=i*Math.cos(t),c=i*Math.sin(t),l=u*Math.cos(e),h=u*Math.sin(e),f=2*Math.asin(Math.sqrt(ut(r-n)+i*u*ut(e-t))),d=1/Math.sin(f),p=f?function(t){var n=Math.sin(t*=f)*d,e=Math.sin(f-t)*d,r=e*s+n*l,i=e*c+n*h,u=e*a+n*o;return[Math.atan2(i,r)*Pu,Math.atan2(u,Math.sqrt(r*r+i*i))*Pu]}:function(){return[t*Pu,n*Pu]};return p.distance=f,p}function we(){function t(t,i){var a=Math.sin(i*=Nu),u=Math.cos(i),o=pu((t*=Nu)-n),s=Math.cos(o);qo+=Math.atan2(Math.sqrt((o=u*Math.sin(o))*o+(o=r*a-e*u*s)*o),e*a+r*u*s),n=t,e=a,r=u}var n,e,r;Go.point=function(i,a){n=i*Nu,e=Math.sin(a*=Nu),r=Math.cos(a),Go.point=t},Go.lineEnd=function(){Go.point=Go.lineEnd=w}}function Ae(t,n){function e(n,e){var r=Math.cos(n),i=Math.cos(e),a=t(r*i);return[a*i*Math.sin(n),a*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),i=n(r),a=Math.sin(i),u=Math.cos(i);return[Math.atan2(t*a,r*u),Math.asin(r&&e*a/r)]},e}function ke(t,n){function e(t,n){u>0?-Bu+Tu>n&&(n=-Bu+Tu):n>Bu-Tu&&(n=Bu-Tu);var e=u/Math.pow(i(n),a);return[e*Math.sin(a*t),u-e*Math.cos(a*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Ou/4+t/2)},a=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(i(n)/i(t)),u=r*Math.pow(i(t),a)/a;return a?(e.invert=function(t,n){var e=u-n,r=J(a)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/a,2*Math.atan(Math.pow(u/r,1/a))-Bu]},e):Me}function Ee(t,n){function e(t,n){var e=a-n;return[e*Math.sin(i*t),a-e*Math.cos(i*t)]}var r=Math.cos(t),i=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),a=r/i+t;return pu(i)<Tu?ce:(e.invert=function(t,n){var e=a-n;return[Math.atan2(t,e)/i,a-J(i)*Math.sqrt(t*t+e*e)]},e)}function Me(t,n){return[t,Math.log(Math.tan(Ou/4+n/2))]}function Se(t){var n,e=ue(t),r=e.scale,i=e.translate,a=e.clipExtent;return e.scale=function(){var t=r.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.translate=function(){var t=i.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var u=a.apply(e,arguments);if(u===e){if(n=null==t){var o=Ou*r(),s=i();a([[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]])}}else n&&(u=null);return u},e.clipExtent(null)}function De(t,n){return[Math.log(Math.tan(Ou/4+n/2)),-t]}function Ce(t){return t[0]}function Te(t){return t[1]}function Fe(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;i++){for(;r>1&&tt(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Oe(t,n){return t[0]-n[0]||t[1]-n[1]}function Le(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function Ie(t,n,e,r){var i=t[0],a=e[0],u=n[0]-i,o=r[0]-a,s=t[1],c=e[1],l=n[1]-s,h=r[1]-c,f=(o*(s-c)-h*(i-a))/(h*u-o*l);return[i+f*u,s+f*l]}function Be(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function Ne(){rr(this),this.edge=this.site=this.circle=null}function Pe(t){var n=is.pop()||new Ne;return n.site=t,n}function Re(t){He(t),ns.remove(t),is.push(t),rr(t)}function je(t){var n=t.circle,e=n.x,r=n.cy,i={x:e,y:r},a=t.P,u=t.N,o=[t];Re(t);for(var s=a;s.circle&&pu(e-s.circle.x)<Tu&&pu(r-s.circle.cy)<Tu;)a=s.P,o.unshift(s),Re(s),s=a;o.unshift(s),He(s);for(var c=u;c.circle&&pu(e-c.circle.x)<Tu&&pu(r-c.circle.cy)<Tu;)u=c.N,o.push(c),Re(c),c=u;o.push(c),He(c);var l,h=o.length;for(l=1;h>l;++l)c=o[l],s=o[l-1],tr(c.edge,s.site,c.site,i);s=o[0],c=o[h-1],c.edge=Qe(s.site,c.site,null,i),Ve(s),Ve(c)}function Ye(t){for(var n,e,r,i,a=t.x,u=t.y,o=ns._;o;)if(r=Ue(o,u)-a,r>Tu)o=o.L;else{if(i=a-$e(o,u),!(i>Tu)){r>-Tu?(n=o.P,e=o):i>-Tu?(n=o,e=o.N):n=e=o;break}if(!o.R){n=o;break}o=o.R}var s=Pe(t);if(ns.insert(n,s),n||e){if(n===e)return He(n),e=Pe(n.site),ns.insert(s,e),s.edge=e.edge=Qe(n.site,s.site),Ve(n),void Ve(e);if(!e)return void(s.edge=Qe(n.site,s.site));He(n),He(e);var c=n.site,l=c.x,h=c.y,f=t.x-l,d=t.y-h,p=e.site,g=p.x-l,y=p.y-h,m=2*(f*y-d*g),v=f*f+d*d,_=g*g+y*y,b={x:(y*v-d*_)/m+l,y:(f*_-g*v)/m+h};tr(e.edge,c,p,b),s.edge=Qe(c,t,null,b),e.edge=Qe(t,p,null,b),Ve(n),Ve(e)}}function Ue(t,n){var e=t.site,r=e.x,i=e.y,a=i-n;if(!a)return r;var u=t.P;if(!u)return-(1/0);e=u.site;var o=e.x,s=e.y,c=s-n;if(!c)return o;var l=o-r,h=1/a-1/c,f=l/c;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*c)-s+c/2+i-a/2)))/h+r:(r+o)/2}function $e(t,n){var e=t.N;if(e)return Ue(e,n);var r=t.site;return r.y===n?r.x:1/0}function We(t){this.site=t,this.edges=[]}function ze(t){for(var n,e,r,i,a,u,o,s,c,l,h=t[0][0],f=t[1][0],d=t[0][1],p=t[1][1],g=ts,y=g.length;y--;)if(a=g[y],a&&a.prepare())for(o=a.edges,s=o.length,u=0;s>u;)l=o[u].end(),r=l.x,i=l.y,c=o[++u%s].start(),n=c.x,e=c.y,(pu(r-n)>Tu||pu(i-e)>Tu)&&(o.splice(u,0,new nr(Je(a.site,l,pu(r-h)<Tu&&p-i>Tu?{x:h,y:pu(n-h)<Tu?e:p}:pu(i-p)<Tu&&f-r>Tu?{x:pu(e-p)<Tu?n:f,y:p}:pu(r-f)<Tu&&i-d>Tu?{x:f,y:pu(n-f)<Tu?e:d}:pu(i-d)<Tu&&r-h>Tu?{x:pu(e-d)<Tu?n:h,y:d}:null),a.site,null)),++s)}function qe(t,n){return n.angle-t.angle}function Ge(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ve(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,a=e.site;if(r!==a){var u=i.x,o=i.y,s=r.x-u,c=r.y-o,l=a.x-u,h=a.y-o,f=2*(s*h-c*l);if(!(f>=-Fu)){var d=s*s+c*c,p=l*l+h*h,g=(h*d-c*p)/f,y=(s*p-l*d)/f,h=y+o,m=as.pop()||new Ge;m.arc=t,m.site=i,m.x=g+u,m.y=h+Math.sqrt(g*g+y*y),m.cy=h,t.circle=m;for(var v=null,_=rs._;_;)if(m.y<_.y||m.y===_.y&&m.x<=_.x){if(!_.L){v=_.P;break}_=_.L}else{if(!_.R){v=_;break}_=_.R}rs.insert(v,m),v||(es=m)}}}}function He(t){var n=t.circle;n&&(n.P||(es=n.N),rs.remove(n),as.push(n),rr(n),t.circle=null)}function Ze(t){for(var n,e=Jo,r=Wn(t[0][0],t[0][1],t[1][0],t[1][1]),i=e.length;i--;)n=e[i],(!Xe(n,t)||!r(n)||pu(n.a.x-n.b.x)<Tu&&pu(n.a.y-n.b.y)<Tu)&&(n.a=n.b=null,e.splice(i,1))}function Xe(t,n){var e=t.b;if(e)return!0;var r,i,a=t.a,u=n[0][0],o=n[1][0],s=n[0][1],c=n[1][1],l=t.l,h=t.r,f=l.x,d=l.y,p=h.x,g=h.y,y=(f+p)/2,m=(d+g)/2;if(g===d){if(u>y||y>=o)return;if(f>p){if(a){if(a.y>=c)return}else a={x:y,y:s};e={x:y,y:c}}else{if(a){if(a.y<s)return}else a={x:y,y:c};e={x:y,y:s}}}else if(r=(f-p)/(g-d),i=m-r*y,-1>r||r>1)if(f>p){if(a){if(a.y>=c)return}else a={x:(s-i)/r,y:s};e={x:(c-i)/r,y:c}}else{if(a){if(a.y<s)return}else a={x:(c-i)/r,y:c};e={x:(s-i)/r,y:s}}else if(g>d){if(a){if(a.x>=o)return}else a={x:u,y:r*u+i};e={x:o,y:r*o+i}}else{if(a){if(a.x<u)return}else a={x:o,y:r*o+i};e={x:u,y:r*u+i}}return t.a=a,t.b=e,!0}function Ke(t,n){this.l=t,this.r=n,this.a=this.b=null}function Qe(t,n,e,r){var i=new Ke(t,n);return Jo.push(i),e&&tr(i,t,n,e),r&&tr(i,n,t,r),ts[t.i].edges.push(new nr(i,t,n)),ts[n.i].edges.push(new nr(i,n,t)),i}function Je(t,n,e){var r=new Ke(t,null);return r.a=n,r.b=e,Jo.push(r),r}function tr(t,n,e,r){t.a||t.b?t.l===e?t.b=r:t.a=r:(t.a=r,t.l=n,t.r=e)}function nr(t,n,e){var r=t.a,i=t.b;this.edge=t,this.site=n,this.angle=e?Math.atan2(e.y-n.y,e.x-n.x):t.l===n?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function er(){this._=null}function rr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ir(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ar(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function ur(t){for(;t.L;)t=t.L;return t}function or(t,n){var e,r,i,a=t.sort(sr).pop();for(Jo=[],ts=new Array(t.length),ns=new er,rs=new er;;)if(i=es,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))(a.x!==e||a.y!==r)&&(ts[a.i]=new We(a),Ye(a),e=a.x,r=a.y),a=t.pop();else{if(!i)break;je(i.arc)}n&&(Ze(n),ze(n));var u={cells:ts,edges:Jo};return ns=rs=Jo=ts=null,u}function sr(t,n){return n.y-t.y||n.x-t.x}function cr(t,n,e){return(t.x-e.x)*(n.y-t.y)-(t.x-n.x)*(e.y-t.y)}function lr(t){return t.x}function hr(t){return t.y}function fr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function dr(t,n,e,r,i,a){if(!t(n,e,r,i,a)){var u=.5*(e+i),o=.5*(r+a),s=n.nodes;s[0]&&dr(t,s[0],e,r,u,o),s[1]&&dr(t,s[1],u,r,i,o),s[2]&&dr(t,s[2],e,o,u,a),s[3]&&dr(t,s[3],u,o,i,a)}}function pr(t,n,e,r,i,a,u){var o,s=1/0;return function c(t,l,h,f,d){if(!(l>a||h>u||r>f||i>d)){if(p=t.point){var p,g=n-t.x,y=e-t.y,m=g*g+y*y;if(s>m){var v=Math.sqrt(s=m);r=n-v,i=e-v,a=n+v,u=e+v,o=p}}for(var _=t.nodes,b=.5*(l+f),x=.5*(h+d),w=n>=b,A=e>=x,k=A<<1|w,E=k+4;E>k;++k)if(t=_[3&k])switch(3&k){case 0:c(t,l,h,b,x);break;case 1:c(t,b,h,f,x);break;case 2:c(t,l,x,b,d);break;case 3:c(t,b,x,f,d)}}}(t,r,i,a,u),o}function gr(t,n){t=eu.rgb(t),n=eu.rgb(n);var e=t.r,r=t.g,i=t.b,a=n.r-e,u=n.g-r,o=n.b-i;return function(t){return\"#\"+xt(Math.round(e+a*t))+xt(Math.round(r+u*t))+xt(Math.round(i+o*t))}}function yr(t,n){var e,r={},i={};for(e in t)e in n?r[e]=_r(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function mr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function vr(t,n){var e,r,i,a=os.lastIndex=ss.lastIndex=0,u=-1,o=[],s=[];for(t+=\"\",n+=\"\";(e=os.exec(t))&&(r=ss.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),o[u]?o[u]+=i:o[++u]=i),(e=e[0])===(r=r[0])?o[u]?o[u]+=r:o[++u]=r:(o[++u]=null,s.push({i:u,x:mr(e,r)})),a=ss.lastIndex;return a<n.length&&(i=n.slice(a),o[u]?o[u]+=i:o[++u]=i),o.length<2?s[0]?(n=s[0].x,function(t){return n(t)+\"\"}):function(){return n}:(n=s.length,function(t){for(var e,r=0;n>r;++r)o[(e=s[r]).i]=e.x(t);return o.join(\"\")})}function _r(t,n){for(var e,r=eu.interpolators.length;--r>=0&&!(e=eu.interpolators[r](t,n)););return e}function br(t,n){var e,r=[],i=[],a=t.length,u=n.length,o=Math.min(t.length,n.length);for(e=0;o>e;++e)r.push(_r(t[e],n[e]));for(;a>e;++e)i[e]=t[e];for(;u>e;++e)i[e]=n[e];return function(t){for(e=0;o>e;++e)i[e]=r[e](t);return i}}function xr(t){return function(n){return 0>=n?0:n>=1?1:t(n)}}function wr(t){return function(n){return 1-t(1-n)}}function Ar(t){return function(n){return.5*(.5>n?t(2*n):2-t(2-2*n))}}function kr(t){return t*t}function Er(t){return t*t*t}function Mr(t){if(0>=t)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(.5>t?e:3*(t-n)+e-.75)}function Sr(t){return function(n){return Math.pow(n,t)}}function Dr(t){return 1-Math.cos(t*Bu)}function Cr(t){return Math.pow(2,10*(t-1))}function Tr(t){return 1-Math.sqrt(1-t*t)}function Fr(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/Lu*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*Lu/n)}}function Or(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function Lr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Ir(t,n){t=eu.hcl(t),n=eu.hcl(n);var e=t.h,r=t.c,i=t.l,a=n.h-e,u=n.c-r,o=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.c:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return ht(e+a*t,r+u*t,i+o*t)+\"\"}}function Br(t,n){t=eu.hsl(t),n=eu.hsl(n);var e=t.h,r=t.s,i=t.l,a=n.h-e,u=n.s-r,o=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.s:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return ct(e+a*t,r+u*t,i+o*t)+\"\"}}function Nr(t,n){t=eu.lab(t),n=eu.lab(n);var e=t.l,r=t.a,i=t.b,a=n.l-e,u=n.a-r,o=n.b-i;return function(t){return dt(e+a*t,r+u*t,i+o*t)+\"\"}}function Pr(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function Rr(t){var n=[t.a,t.b],e=[t.c,t.d],r=Yr(n),i=jr(n,e),a=Yr(Ur(e,n,-i))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*Pu,this.translate=[t.e,t.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*Pu:0}function jr(t,n){return t[0]*n[0]+t[1]*n[1]}function Yr(t){var n=Math.sqrt(jr(t,t));return n&&(t[0]/=n,t[1]/=n),n}function Ur(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}function $r(t,n){var e,r=[],i=[],a=eu.transform(t),u=eu.transform(n),o=a.translate,s=u.translate,c=a.rotate,l=u.rotate,h=a.skew,f=u.skew,d=a.scale,p=u.scale;return o[0]!=s[0]||o[1]!=s[1]?(r.push(\"translate(\",null,\",\",null,\")\"),i.push({i:1,x:mr(o[0],s[0])},{i:3,x:mr(o[1],s[1])})):r.push(s[0]||s[1]?\"translate(\"+s+\")\":\"\"),c!=l?(c-l>180?l+=360:l-c>180&&(c+=360),i.push({i:r.push(r.pop()+\"rotate(\",null,\")\")-2,x:mr(c,l)})):l&&r.push(r.pop()+\"rotate(\"+l+\")\"),h!=f?i.push({i:r.push(r.pop()+\"skewX(\",null,\")\")-2,x:mr(h,f)}):f&&r.push(r.pop()+\"skewX(\"+f+\")\"),d[0]!=p[0]||d[1]!=p[1]?(e=r.push(r.pop()+\"scale(\",null,\",\",null,\")\"),i.push({i:e-4,x:mr(d[0],p[0])},{i:e-2,x:mr(d[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+\"scale(\"+p+\")\"),e=i.length,function(t){for(var n,a=-1;++a<e;)r[(n=i[a]).i]=n.x(t);return r.join(\"\")}}function Wr(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function zr(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function qr(t){for(var n=t.source,e=t.target,r=Vr(n,e),i=[n];n!==r;)n=n.parent,i.push(n);for(var a=i.length;e!==r;)i.splice(a,0,e),e=e.parent;return i}function Gr(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function Vr(t,n){if(t===n)return t;for(var e=Gr(t),r=Gr(n),i=e.pop(),a=r.pop(),u=null;i===a;)u=i,i=e.pop(),a=r.pop();return u}function Hr(t){t.fixed|=2}function Zr(t){t.fixed&=-7}function Xr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Kr(t){t.fixed&=-5}function Qr(t,n,e){var r=0,i=0;if(t.charge=0,!t.leaf)for(var a,u=t.nodes,o=u.length,s=-1;++s<o;)a=u[s],null!=a&&(Qr(a,n,e),t.charge+=a.charge,r+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=n*e[t.point.index];t.charge+=t.pointCharge=c,r+=c*t.point.x,i+=c*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Jr(t,n){return eu.rebind(t,n,\"sort\",\"children\",\"value\"),t.nodes=t,t.links=ai,t}function ti(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function ni(t,n){for(var e=[t],r=[];null!=(t=e.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,u=-1;++u<i;)e.push(a[u]);for(;null!=(t=r.pop());)n(t)}function ei(t){return t.children}function ri(t){return t.value}function ii(t,n){return n.value-t.value}function ai(t){return eu.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function ui(t){return t.x}function oi(t){return t.y}function si(t,n,e){t.y0=n,t.y=e}function ci(t){return eu.range(t.length)}function li(t){for(var n=-1,e=t[0].length,r=[];++n<e;)r[n]=0;return r}function hi(t){for(var n,e=1,r=0,i=t[0][1],a=t.length;a>e;++e)(n=t[e][1])>i&&(r=e,i=n);return r}function fi(t){return t.reduce(di,0)}function di(t,n){return t+n[1]}function pi(t,n){return gi(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function gi(t,n){for(var e=-1,r=+t[0],i=(t[1]-r)/n,a=[];++e<=n;)a[e]=i*e+r;return a}function yi(t){return[eu.min(t),eu.max(t)]}function mi(t,n){return t.value-n.value}function vi(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function _i(t,n){t._pack_next=n,n._pack_prev=t}function bi(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return.999*i*i>e*e+r*r}function xi(t){function n(t){l=Math.min(t.x-t.r,l),h=Math.max(t.x+t.r,h),f=Math.min(t.y-t.r,f),d=Math.max(t.y+t.r,d)}if((e=t.children)&&(c=e.length)){var e,r,i,a,u,o,s,c,l=1/0,h=-(1/0),f=1/0,d=-(1/0);if(e.forEach(wi),r=e[0],r.x=-r.r,r.y=0,n(r),c>1&&(i=e[1],i.x=i.r,i.y=0,n(i),c>2))for(a=e[2],Ei(r,i,a),n(a),vi(r,a),r._pack_prev=a,vi(a,i),i=r._pack_next,u=3;c>u;u++){Ei(r,i,a=e[u]);var p=0,g=1,y=1;for(o=i._pack_next;o!==i;o=o._pack_next,g++)if(bi(o,a)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&&!bi(s,a);s=s._pack_prev,y++);p?(y>g||g==y&&i.r<r.r?_i(r,i=o):_i(r=s,i),u--):(vi(r,a),i=a,n(a))}var m=(l+h)/2,v=(f+d)/2,_=0;for(u=0;c>u;u++)a=e[u],a.x-=m,a.y-=v,_=Math.max(_,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=_,e.forEach(Ai)}}function wi(t){t._pack_next=t._pack_prev=t}function Ai(t){delete t._pack_next,delete t._pack_prev}function ki(t,n,e,r){var i=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,i)for(var a=-1,u=i.length;++a<u;)ki(i[a],n,e,r)}function Ei(t,n,e){var r=t.r+e.r,i=n.x-t.x,a=n.y-t.y;if(r&&(i||a)){var u=n.r+e.r,o=i*i+a*a;u*=u,r*=r;var s=.5+(r-u)/(2*o),c=Math.sqrt(Math.max(0,2*u*(r+o)-(r-=o)*r-u*u))/(2*o);e.x=t.x+s*i+c*a,e.y=t.y+s*a-c*i}else e.x=t.x+r,e.y=t.y}function Mi(t,n){return t.parent==n.parent?1:2}function Si(t){var n=t.children;return n.length?n[0]:t.t}function Di(t){var n,e=t.children;return(n=e.length)?e[n-1]:t.t}function Ci(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Ti(t){for(var n,e=0,r=0,i=t.children,a=i.length;--a>=0;)n=i[a],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Fi(t,n,e){return t.a.parent===n.parent?t.a:e}function Oi(t){return 1+eu.max(t,function(t){return t.y})}function Li(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}function Ii(t){var n=t.children;return n&&n.length?Ii(n[0]):t}function Bi(t){var n,e=t.children;return e&&(n=e.length)?Bi(e[n-1]):t}function Ni(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Pi(t,n){var e=t.x+n[3],r=t.y+n[0],i=t.dx-n[1]-n[3],a=t.dy-n[0]-n[2];return 0>i&&(e+=i/2,i=0),0>a&&(r+=a/2,a=0),{x:e,y:r,dx:i,dy:a}}function Ri(t){var n=t[0],e=t[t.length-1];return e>n?[n,e]:[e,n]}function ji(t){return t.rangeExtent?t.rangeExtent():Ri(t.range())}function Yi(t,n,e,r){var i=e(t[0],t[1]),a=r(n[0],n[1]);return function(t){return a(i(t))}}function Ui(t,n){var e,r=0,i=t.length-1,a=t[r],u=t[i];return a>u&&(e=r,r=i,i=e,e=a,a=u,u=e),t[r]=n.floor(a),t[i]=n.ceil(u),t}function $i(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:_s}function Wi(t,n,e,r){var i=[],a=[],u=0,o=Math.min(t.length,n.length)-1;for(t[o]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<=o;)i.push(e(t[u-1],t[u])),a.push(r(n[u-1],n[u]));return function(n){var e=eu.bisect(t,n,1,o)-1;return a[e](i[e](n))}}function zi(t,n,e,r){function i(){var i=Math.min(t.length,n.length)>2?Wi:Yi,s=r?zr:Wr;return u=i(t,n,s,e),o=i(n,t,s,_r),a}function a(t){return u(t)}var u,o;return a.invert=function(t){return o(t)},a.domain=function(n){return arguments.length?(t=n.map(Number),i()):t},a.range=function(t){return arguments.length?(n=t,i()):n},a.rangeRound=function(t){return a.range(t).interpolate(Pr)},a.clamp=function(t){return arguments.length?(r=t,i()):r},a.interpolate=function(t){return arguments.length?(e=t,i()):e},a.ticks=function(n){return Hi(t,n)},a.tickFormat=function(n,e){return Zi(t,n,e)},a.nice=function(n){return Gi(t,n),i()},a.copy=function(){return zi(t,n,e,r)},i()}function qi(t,n){return eu.rebind(t,n,\"range\",\"rangeRound\",\"interpolate\",\"clamp\")}function Gi(t,n){return Ui(t,$i(Vi(t,n)[2]))}function Vi(t,n){null==n&&(n=10);var e=Ri(t),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),a=n/r*i;return.15>=a?i*=10:.35>=a?i*=5:.75>=a&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Hi(t,n){return eu.range.apply(eu,Vi(t,n))}function Zi(t,n,e){var r=Vi(t,n);if(e){var i=uo.exec(e);if(i.shift(),\"s\"===i[8]){var a=eu.formatPrefix(Math.max(pu(r[0]),pu(r[1])));return i[7]||(i[7]=\".\"+Xi(a.scale(r[2]))),i[8]=\"f\",e=eu.format(i.join(\"\")),function(t){return e(a.scale(t))+a.symbol}}i[7]||(i[7]=\".\"+Ki(i[8],r)),e=i.join(\"\")}else e=\",.\"+Xi(r[2])+\"f\";return eu.format(e)}function Xi(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ki(t,n){var e=Xi(n[2]);return t in bs?Math.abs(e-Xi(Math.max(pu(n[0]),pu(n[1]))))+ +(\"e\"!==t):e-2*(\"%\"===t)}function Qi(t,n,e,r){function i(t){return(e?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function a(t){return e?Math.pow(n,t):-Math.pow(n,-t)}function u(n){return t(i(n))}return u.invert=function(n){return a(t.invert(n))},u.domain=function(n){return arguments.length?(e=n[0]>=0,t.domain((r=n.map(Number)).map(i)),u):r},u.base=function(e){return arguments.length?(n=+e,t.domain(r.map(i)),u):n},u.nice=function(){var n=Ui(r.map(i),e?Math:ws);return t.domain(n),r=n.map(a),u},u.ticks=function(){var t=Ri(r),u=[],o=t[0],s=t[1],c=Math.floor(i(o)),l=Math.ceil(i(s)),h=n%1?2:n;if(isFinite(l-c)){if(e){for(;l>c;c++)for(var f=1;h>f;f++)u.push(a(c)*f);u.push(a(c))}else for(u.push(a(c));c++<l;)for(var f=h-1;f>0;f--)u.push(a(c)*f);for(c=0;u[c]<o;c++);for(l=u.length;u[l-1]>s;l--);u=u.slice(c,l)}return u},u.tickFormat=function(t,n){if(!arguments.length)return xs;arguments.length<2?n=xs:\"function\"!=typeof n&&(n=eu.format(n));var r,o=Math.max(.1,t/u.ticks().length),s=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/a(s(i(t)+r))<=o?n(t):\"\"}},u.copy=function(){return Qi(t.copy(),n,e,r)},qi(u,t)}function Ji(t,n,e){function r(n){return t(i(n))}var i=ta(n),a=ta(1/n);return r.invert=function(n){return a(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain((e=n.map(Number)).map(i)),r):e},r.ticks=function(t){return Hi(e,t)},r.tickFormat=function(t,n){return Zi(e,t,n)},r.nice=function(t){return r.domain(Gi(e,t))},r.exponent=function(u){return arguments.length?(i=ta(n=u),a=ta(1/n),t.domain(e.map(i)),r):n},r.copy=function(){return Ji(t.copy(),n,e)},qi(r,t)}function ta(t){return function(n){return 0>n?-Math.pow(-n,t):Math.pow(n,t)}}function na(t,n){function e(e){return a[((i.get(e)||(\"range\"===n.t?i.set(e,t.push(e)):0/0))-1)%a.length]}function r(n,e){return eu.range(t.length).map(function(t){return n+e*t})}var i,a,u;return e.domain=function(r){if(!arguments.length)return t;t=[],i=new l;for(var a,u=-1,o=r.length;++u<o;)i.has(a=r[u])||i.set(a,t.push(a));return e[n.t].apply(e,n.a)},e.range=function(t){return arguments.length?(a=t,u=0,n={t:\"range\",a:arguments},e):a},e.rangePoints=function(i,o){arguments.length<2&&(o=0);var s=i[0],c=i[1],l=t.length<2?(s=(s+c)/2,0):(c-s)/(t.length-1+o);return a=r(s+l*o/2,l),u=0,n={t:\"rangePoints\",a:arguments},e},e.rangeRoundPoints=function(i,o){arguments.length<2&&(o=0);var s=i[0],c=i[1],l=t.length<2?(s=c=Math.round((s+c)/2),0):(c-s)/(t.length-1+o)|0;return a=r(s+Math.round(l*o/2+(c-s-(t.length-1+o)*l)/2),l),u=0,n={t:\"rangeRoundPoints\",a:arguments},e},e.rangeBands=function(i,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var c=i[1]<i[0],l=i[c-0],h=i[1-c],f=(h-l)/(t.length-o+2*s);return a=r(l+f*s,f),c&&a.reverse(),u=f*(1-o),n={t:\"rangeBands\",a:arguments},e},e.rangeRoundBands=function(i,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var c=i[1]<i[0],l=i[c-0],h=i[1-c],f=Math.floor((h-l)/(t.length-o+2*s));return a=r(l+Math.round((h-l-(t.length-o)*f)/2),f),c&&a.reverse(),u=Math.round(f*(1-o)),n={t:\"rangeRoundBands\",a:arguments},e},e.rangeBand=function(){return u},e.rangeExtent=function(){return Ri(n.a[0])},e.copy=function(){return na(t,n)},e.domain(t)}function ea(t,n){function e(){var e=0,r=n.length;for(o=[];++e<r;)o[e-1]=eu.quantile(t,e/r);return u}function u(t){return isNaN(t=+t)?void 0:n[eu.bisect(o,t)]}var o;return u.domain=function(n){return arguments.length?(t=n.map(i).filter(a).sort(r),e()):t},u.range=function(t){return arguments.length?(n=t,e()):n},u.quantiles=function(){return o},u.invertExtent=function(e){return e=n.indexOf(e),0>e?[0/0,0/0]:[e>0?o[e-1]:t[0],e<o.length?o[e]:t[t.length-1]]},u.copy=function(){return ea(t,n)},e()}function ra(t,n,e){function r(n){return e[Math.max(0,Math.min(u,Math.floor(a*(n-t))))]}function i(){return a=e.length/(n-t),u=e.length-1,r}var a,u;return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],i()):[t,n]},r.range=function(t){return arguments.length?(e=t,i()):e},r.invertExtent=function(n){return n=e.indexOf(n),n=0>n?0/0:n/a+t,[n,n+1/a]},r.copy=function(){return ra(t,n,e)},i()}function ia(t,n){function e(e){return e>=e?n[eu.bisect(t,e)]:void 0}return e.domain=function(n){return arguments.length?(t=n,e):t},e.range=function(t){return arguments.length?(n=t,e):n},e.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},e.copy=function(){return ia(t,n)},e}function aa(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(n){return Hi(t,n)},n.tickFormat=function(n,e){return Zi(t,n,e)},n.copy=function(){return aa(t)},n}function ua(){return 0}function oa(t){return t.innerRadius}function sa(t){return t.outerRadius}function ca(t){return t.startAngle}function la(t){return t.endAngle}function ha(t){return t&&t.padAngle}function fa(t,n,e,r){return(t-e)*n-(n-r)*t>0?0:1}function da(t,n,e,r,i){var a=t[0]-n[0],u=t[1]-n[1],o=(i?r:-r)/Math.sqrt(a*a+u*u),s=o*u,c=-o*a,l=t[0]+s,h=t[1]+c,f=n[0]+s,d=n[1]+c,p=(l+f)/2,g=(h+d)/2,y=f-l,m=d-h,v=y*y+m*m,_=e-r,b=l*d-f*h,x=(0>m?-1:1)*Math.sqrt(_*_*v-b*b),w=(b*m-y*x)/v,A=(-b*y-m*x)/v,k=(b*m+y*x)/v,E=(-b*y+m*x)/v,M=w-p,S=A-g,D=k-p,C=E-g;return M*M+S*S>D*D+C*C&&(w=k,A=E),[[w-s,A-c],[w*e/_,A*e/_]]}function pa(t){function n(n){function u(){c.push(\"M\",a(t(l),o))}for(var s,c=[],l=[],h=-1,f=n.length,d=St(e),p=St(r);++h<f;)i.call(this,s=n[h],h)?l.push([+d.call(this,s,h),+p.call(this,s,h)]):l.length&&(u(),l=[]);return l.length&&u(),c.length?c.join(\"\"):null}var e=Ce,r=Te,i=Tn,a=ga,u=a.key,o=.7;return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,\nn):r},n.defined=function(t){return arguments.length?(i=t,n):i},n.interpolate=function(t){return arguments.length?(u=\"function\"==typeof t?a=t:(a=Ds.get(t)||ga).key,n):u},n.tension=function(t){return arguments.length?(o=t,n):o},n}function ga(t){return t.join(\"L\")}function ya(t){return ga(t)+\"Z\"}function ma(t){for(var n=0,e=t.length,r=t[0],i=[r[0],\",\",r[1]];++n<e;)i.push(\"H\",(r[0]+(r=t[n])[0])/2,\"V\",r[1]);return e>1&&i.push(\"H\",r[0]),i.join(\"\")}function va(t){for(var n=0,e=t.length,r=t[0],i=[r[0],\",\",r[1]];++n<e;)i.push(\"V\",(r=t[n])[1],\"H\",r[0]);return i.join(\"\")}function _a(t){for(var n=0,e=t.length,r=t[0],i=[r[0],\",\",r[1]];++n<e;)i.push(\"H\",(r=t[n])[0],\"V\",r[1]);return i.join(\"\")}function ba(t,n){return t.length<4?ga(t):t[1]+Aa(t.slice(1,-1),ka(t,n))}function xa(t,n){return t.length<3?ga(t):t[0]+Aa((t.push(t[0]),t),ka([t[t.length-2]].concat(t,[t[1]]),n))}function wa(t,n){return t.length<3?ga(t):t[0]+Aa(t,ka(t,n))}function Aa(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return ga(t);var e=t.length!=n.length,r=\"\",i=t[0],a=t[1],u=n[0],o=u,s=1;if(e&&(r+=\"Q\"+(a[0]-2*u[0]/3)+\",\"+(a[1]-2*u[1]/3)+\",\"+a[0]+\",\"+a[1],i=t[1],s=2),n.length>1){o=n[1],a=t[s],s++,r+=\"C\"+(i[0]+u[0])+\",\"+(i[1]+u[1])+\",\"+(a[0]-o[0])+\",\"+(a[1]-o[1])+\",\"+a[0]+\",\"+a[1];for(var c=2;c<n.length;c++,s++)a=t[s],o=n[c],r+=\"S\"+(a[0]-o[0])+\",\"+(a[1]-o[1])+\",\"+a[0]+\",\"+a[1]}if(e){var l=t[s];r+=\"Q\"+(a[0]+2*o[0]/3)+\",\"+(a[1]+2*o[1]/3)+\",\"+l[0]+\",\"+l[1]}return r}function ka(t,n){for(var e,r=[],i=(1-n)/2,a=t[0],u=t[1],o=1,s=t.length;++o<s;)e=a,a=u,u=t[o],r.push([i*(u[0]-e[0]),i*(u[1]-e[1])]);return r}function Ea(t){if(t.length<3)return ga(t);var n=1,e=t.length,r=t[0],i=r[0],a=r[1],u=[i,i,i,(r=t[1])[0]],o=[a,a,a,r[1]],s=[i,\",\",a,\"L\",Ca(Fs,u),\",\",Ca(Fs,o)];for(t.push(t[e-1]);++n<=e;)r=t[n],u.shift(),u.push(r[0]),o.shift(),o.push(r[1]),Ta(s,u,o);return t.pop(),s.push(\"L\",r),s.join(\"\")}function Ma(t){if(t.length<4)return ga(t);for(var n,e=[],r=-1,i=t.length,a=[0],u=[0];++r<3;)n=t[r],a.push(n[0]),u.push(n[1]);for(e.push(Ca(Fs,a)+\",\"+Ca(Fs,u)),--r;++r<i;)n=t[r],a.shift(),a.push(n[0]),u.shift(),u.push(n[1]),Ta(e,a,u);return e.join(\"\")}function Sa(t){for(var n,e,r=-1,i=t.length,a=i+4,u=[],o=[];++r<4;)e=t[r%i],u.push(e[0]),o.push(e[1]);for(n=[Ca(Fs,u),\",\",Ca(Fs,o)],--r;++r<a;)e=t[r%i],u.shift(),u.push(e[0]),o.shift(),o.push(e[1]),Ta(n,u,o);return n.join(\"\")}function Da(t,n){var e=t.length-1;if(e)for(var r,i,a=t[0][0],u=t[0][1],o=t[e][0]-a,s=t[e][1]-u,c=-1;++c<=e;)r=t[c],i=c/e,r[0]=n*r[0]+(1-n)*(a+i*o),r[1]=n*r[1]+(1-n)*(u+i*s);return Ea(t)}function Ca(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function Ta(t,n,e){t.push(\"C\",Ca(Cs,n),\",\",Ca(Cs,e),\",\",Ca(Ts,n),\",\",Ca(Ts,e),\",\",Ca(Fs,n),\",\",Ca(Fs,e))}function Fa(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Oa(t){for(var n=0,e=t.length-1,r=[],i=t[0],a=t[1],u=r[0]=Fa(i,a);++n<e;)r[n]=(u+(u=Fa(i=a,a=t[n+1])))/2;return r[n]=u,r}function La(t){for(var n,e,r,i,a=[],u=Oa(t),o=-1,s=t.length-1;++o<s;)n=Fa(t[o],t[o+1]),pu(n)<Tu?u[o]=u[o+1]=0:(e=u[o]/n,r=u[o+1]/n,i=e*e+r*r,i>9&&(i=3*n/Math.sqrt(i),u[o]=i*e,u[o+1]=i*r));for(o=-1;++o<=s;)i=(t[Math.min(s,o+1)][0]-t[Math.max(0,o-1)][0])/(6*(1+u[o]*u[o])),a.push([i||0,u[o]*i||0]);return a}function Ia(t){return t.length<3?ga(t):t[0]+Aa(t,La(t))}function Ba(t){for(var n,e,r,i=-1,a=t.length;++i<a;)n=t[i],e=n[0],r=n[1]-Bu,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function Na(t){function n(n){function s(){g.push(\"M\",o(t(m),h),l,c(t(y.reverse()),h),\"Z\")}for(var f,d,p,g=[],y=[],m=[],v=-1,_=n.length,b=St(e),x=St(i),w=e===r?function(){return d}:St(r),A=i===a?function(){return p}:St(a);++v<_;)u.call(this,f=n[v],v)?(y.push([d=+b.call(this,f,v),p=+x.call(this,f,v)]),m.push([+w.call(this,f,v),+A.call(this,f,v)])):y.length&&(s(),y=[],m=[]);return y.length&&s(),g.length?g.join(\"\"):null}var e=Ce,r=Ce,i=0,a=Te,u=Tn,o=ga,s=o.key,c=o,l=\"L\",h=.7;return n.x=function(t){return arguments.length?(e=r=t,n):r},n.x0=function(t){return arguments.length?(e=t,n):e},n.x1=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(i=a=t,n):a},n.y0=function(t){return arguments.length?(i=t,n):i},n.y1=function(t){return arguments.length?(a=t,n):a},n.defined=function(t){return arguments.length?(u=t,n):u},n.interpolate=function(t){return arguments.length?(s=\"function\"==typeof t?o=t:(o=Ds.get(t)||ga).key,c=o.reverse||o,l=o.closed?\"M\":\"L\",n):s},n.tension=function(t){return arguments.length?(h=t,n):h},n}function Pa(t){return t.radius}function Ra(t){return[t.x,t.y]}function ja(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]-Bu;return[e*Math.cos(r),e*Math.sin(r)]}}function Ya(){return 64}function Ua(){return\"circle\"}function $a(t){var n=Math.sqrt(t/Ou);return\"M0,\"+n+\"A\"+n+\",\"+n+\" 0 1,1 0,\"+-n+\"A\"+n+\",\"+n+\" 0 1,1 0,\"+n+\"Z\"}function Wa(t){return function(){var n,e;(n=this[t])&&(e=n[n.active])&&(--n.count?delete n[n.active]:delete this[t],n.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function za(t,n,e){return _u(t,Rs),t.namespace=n,t.id=e,t}function qa(t,n,e,r){var i=t.id,a=t.namespace;return z(t,\"function\"==typeof e?function(t,u,o){t[a][i].tween.set(n,r(e.call(t,t.__data__,u,o)))}:(e=r(e),function(t){t[a][i].tween.set(n,e)}))}function Ga(t){return null==t&&(t=\"\"),function(){this.textContent=t}}function Va(t){return null==t?\"__transition__\":\"__transition_\"+t+\"__\"}function Ha(t,n,e,r,i){var a=t[e]||(t[e]={active:0,count:0}),u=a[r];if(!u){var o=i.time;u=a[r]={tween:new l,time:o,delay:i.delay,duration:i.duration,ease:i.ease,index:n},i=null,++a.count,eu.timer(function(i){function s(e){if(a.active>r)return l();var i=a[a.active];i&&(--a.count,delete a[a.active],i.event&&i.event.interrupt.call(t,t.__data__,i.index)),a.active=r,u.event&&u.event.start.call(t,t.__data__,n),u.tween.forEach(function(e,r){(r=r.call(t,t.__data__,n))&&g.push(r)}),f=u.ease,h=u.duration,eu.timer(function(){return p.c=c(e||1)?Tn:c,1},0,o)}function c(e){if(a.active!==r)return 1;for(var i=e/h,o=f(i),s=g.length;s>0;)g[--s].call(t,o);return i>=1?(u.event&&u.event.end.call(t,t.__data__,n),l()):void 0}function l(){return--a.count?delete a[r]:delete t[e],1}var h,f,d=u.delay,p=ro,g=[];return p.t=d+o,i>=d?s(i-d):void(p.c=s)},0,o)}}function Za(t,n,e){t.attr(\"transform\",function(t){var r=n(t);return\"translate(\"+(isFinite(r)?r:e(t))+\",0)\"})}function Xa(t,n,e){t.attr(\"transform\",function(t){var r=n(t);return\"translate(0,\"+(isFinite(r)?r:e(t))+\")\"})}function Ka(t){return t.toISOString()}function Qa(t,n,e){function r(n){return t(n)}function i(t,e){var r=t[1]-t[0],i=r/e,a=eu.bisect(Vs,i);return a==Vs.length?[n.year,Vi(t.map(function(t){return t/31536e6}),e)[2]]:a?n[i/Vs[a-1]<Vs[a]/i?a-1:a]:[Xs,Vi(t,e)[2]]}return r.invert=function(n){return Ja(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(Ja)},r.nice=function(t,n){function e(e){return!isNaN(e)&&!t.range(e,Ja(+e+1),n).length}var a=r.domain(),u=Ri(a),o=null==t?i(u,10):\"number\"==typeof t&&i(u,t);return o&&(t=o[0],n=o[1]),r.domain(Ui(a,n>1?{floor:function(n){for(;e(n=t.floor(n));)n=Ja(n-1);return n},ceil:function(n){for(;e(n=t.ceil(n));)n=Ja(+n+1);return n}}:t))},r.ticks=function(t,n){var e=Ri(r.domain()),a=null==t?i(e,10):\"number\"==typeof t?i(e,t):!t.range&&[{range:t},n];return a&&(t=a[0],n=a[1]),t.range(e[0],Ja(+e[1]+1),1>n?1:n)},r.tickFormat=function(){return e},r.copy=function(){return Qa(t.copy(),n,e)},qi(r,t)}function Ja(t){return new Date(t)}function tu(t){return JSON.parse(t.responseText)}function nu(t){var n=au.createRange();return n.selectNode(au.body),n.createContextualFragment(t.responseText)}var eu={version:\"3.5.6\"},ru=[].slice,iu=function(t){return ru.call(t)},au=this.document;if(au)try{iu(au.documentElement.childNodes)[0].nodeType}catch(uu){iu=function(t){for(var n=t.length,e=new Array(n);n--;)e[n]=t[n];return e}}if(Date.now||(Date.now=function(){return+new Date}),au)try{au.createElement(\"DIV\").style.setProperty(\"opacity\",0,\"\")}catch(ou){var su=this.Element.prototype,cu=su.setAttribute,lu=su.setAttributeNS,hu=this.CSSStyleDeclaration.prototype,fu=hu.setProperty;su.setAttribute=function(t,n){cu.call(this,t,n+\"\")},su.setAttributeNS=function(t,n,e){lu.call(this,t,n,e+\"\")},hu.setProperty=function(t,n,e){fu.call(this,t,n+\"\",e)}}eu.ascending=r,eu.descending=function(t,n){return t>n?-1:n>t?1:n>=t?0:0/0},eu.min=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<a;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<a;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<a;)null!=(r=n.call(t,t[i],i))&&e>r&&(e=r)}return e},eu.max=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<a;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<a;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<a;)null!=(r=n.call(t,t[i],i))&&r>e&&(e=r)}return e},eu.extent=function(t,n){var e,r,i,a=-1,u=t.length;if(1===arguments.length){for(;++a<u;)if(null!=(r=t[a])&&r>=r){e=i=r;break}for(;++a<u;)null!=(r=t[a])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++a<u;)if(null!=(r=n.call(t,t[a],a))&&r>=r){e=i=r;break}for(;++a<u;)null!=(r=n.call(t,t[a],a))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},eu.sum=function(t,n){var e,r=0,i=t.length,u=-1;if(1===arguments.length)for(;++u<i;)a(e=+t[u])&&(r+=e);else for(;++u<i;)a(e=+n.call(t,t[u],u))&&(r+=e);return r},eu.mean=function(t,n){var e,r=0,u=t.length,o=-1,s=u;if(1===arguments.length)for(;++o<u;)a(e=i(t[o]))?r+=e:--s;else for(;++o<u;)a(e=i(n.call(t,t[o],o)))?r+=e:--s;return s?r/s:void 0},eu.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),i=+t[r-1],a=e-r;return a?i+a*(t[r]-i):i},eu.median=function(t,n){var e,u=[],o=t.length,s=-1;if(1===arguments.length)for(;++s<o;)a(e=i(t[s]))&&u.push(e);else for(;++s<o;)a(e=i(n.call(t,t[s],s)))&&u.push(e);return u.length?eu.quantile(u.sort(r),.5):void 0},eu.variance=function(t,n){var e,r,u=t.length,o=0,s=0,c=-1,l=0;if(1===arguments.length)for(;++c<u;)a(e=i(t[c]))&&(r=e-o,o+=r/++l,s+=r*(e-o));else for(;++c<u;)a(e=i(n.call(t,t[c],c)))&&(r=e-o,o+=r/++l,s+=r*(e-o));return l>1?s/(l-1):void 0},eu.deviation=function(){var t=eu.variance.apply(this,arguments);return t?Math.sqrt(t):t};var du=u(r);eu.bisectLeft=du.left,eu.bisect=eu.bisectRight=du.right,eu.bisector=function(t){return u(1===t.length?function(n,e){return r(t(n),e)}:t)},eu.shuffle=function(t,n,e){(a=arguments.length)<3&&(e=t.length,2>a&&(n=0));for(var r,i,a=e-n;a;)i=Math.random()*a--|0,r=t[a+n],t[a+n]=t[i+n],t[i+n]=r;return t},eu.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},eu.pairs=function(t){for(var n,e=0,r=t.length-1,i=t[0],a=new Array(0>r?0:r);r>e;)a[e]=[n=i,i=t[++e]];return a},eu.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,n=eu.min(arguments,o),e=new Array(n);++t<n;)for(var r,i=-1,a=e[t]=new Array(r);++i<r;)a[i]=arguments[i][t];return e},eu.transpose=function(t){return eu.zip.apply(eu,t)},eu.keys=function(t){var n=[];for(var e in t)n.push(e);return n},eu.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},eu.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},eu.merge=function(t){for(var n,e,r,i=t.length,a=-1,u=0;++a<i;)u+=t[a].length;for(e=new Array(u);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--u]=r[n];return e};var pu=Math.abs;eu.range=function(t,n,e){if(arguments.length<3&&(e=1,arguments.length<2&&(n=t,t=0)),(n-t)/e===1/0)throw new Error(\"infinite range\");var r,i=[],a=s(pu(e)),u=-1;if(t*=a,n*=a,e*=a,0>e)for(;(r=t+e*++u)>n;)i.push(r/a);else for(;(r=t+e*++u)<n;)i.push(r/a);return i},eu.map=function(t,n){var e=new l;if(t instanceof l)t.forEach(function(t,n){e.set(t,n)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)e.set(i,t[i]);else for(;++i<a;)e.set(n.call(t,r=t[i],i),r)}else for(var u in t)e.set(u,t[u]);return e};var gu=\"__proto__\",yu=\"\\x00\";c(l,{has:d,get:function(t){return this._[h(t)]},set:function(t,n){return this._[h(t)]=n},remove:p,keys:g,values:function(){var t=[];for(var n in this._)t.push(this._[n]);return t},entries:function(){var t=[];for(var n in this._)t.push({key:f(n),value:this._[n]});return t},size:y,empty:m,forEach:function(t){for(var n in this._)t.call(this,f(n),this._[n])}}),eu.nest=function(){function t(n,u,o){if(o>=a.length)return r?r.call(i,u):e?u.sort(e):u;for(var s,c,h,f,d=-1,p=u.length,g=a[o++],y=new l;++d<p;)(f=y.get(s=g(c=u[d])))?f.push(c):y.set(s,[c]);return n?(c=n(),h=function(e,r){c.set(e,t(n,r,o))}):(c={},h=function(e,r){c[e]=t(n,r,o)}),y.forEach(h),c}function n(t,e){if(e>=a.length)return t;var r=[],i=u[e++];return t.forEach(function(t,i){r.push({key:t,values:n(i,e)})}),i?r.sort(function(t,n){return i(t.key,n.key)}):r}var e,r,i={},a=[],u=[];return i.map=function(n,e){return t(e,n,0)},i.entries=function(e){return n(t(eu.map,e,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return u[a.length-1]=t,i},i.sortValues=function(t){return e=t,i},i.rollup=function(t){return r=t,i},i},eu.set=function(t){var n=new v;if(t)for(var e=0,r=t.length;r>e;++e)n.add(t[e]);return n},c(v,{has:d,add:function(t){return this._[h(t+=\"\")]=!0,t},remove:p,values:g,size:y,empty:m,forEach:function(t){for(var n in this._)t.call(this,f(n))}}),eu.behavior={},eu.rebind=function(t,n){for(var e,r=1,i=arguments.length;++r<i;)t[e=arguments[r]]=b(t,n,n[e]);return t};var mu=[\"webkit\",\"ms\",\"moz\",\"Moz\",\"o\",\"O\"];eu.dispatch=function(){for(var t=new A,n=-1,e=arguments.length;++n<e;)t[arguments[n]]=k(t);return t},A.prototype.on=function(t,n){var e=t.indexOf(\".\"),r=\"\";if(e>=0&&(r=t.slice(e+1),t=t.slice(0,e)),t)return arguments.length<2?this[t].on(r):this[t].on(r,n);if(2===arguments.length){if(null==n)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},eu.event=null,eu.requote=function(t){return t.replace(vu,\"\\\\$&\")};var vu=/[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g,_u={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]},bu=function(t,n){return n.querySelector(t)},xu=function(t,n){return n.querySelectorAll(t)},wu=function(t,n){var e=t.matches||t[x(t,\"matchesSelector\")];return(wu=function(t,n){return e.call(t,n)})(t,n)};\"function\"==typeof Sizzle&&(bu=function(t,n){return Sizzle(t,n)[0]||null},xu=Sizzle,wu=Sizzle.matchesSelector),eu.selection=function(){return eu.select(au.documentElement)};var Au=eu.selection.prototype=[];Au.select=function(t){var n,e,r,i,a=[];t=C(t);for(var u=-1,o=this.length;++u<o;){a.push(n=[]),n.parentNode=(r=this[u]).parentNode;for(var s=-1,c=r.length;++s<c;)(i=r[s])?(n.push(e=t.call(i,i.__data__,s,u)),e&&\"__data__\"in i&&(e.__data__=i.__data__)):n.push(null)}return D(a)},Au.selectAll=function(t){var n,e,r=[];t=T(t);for(var i=-1,a=this.length;++i<a;)for(var u=this[i],o=-1,s=u.length;++o<s;)(e=u[o])&&(r.push(n=iu(t.call(e,e.__data__,o,i))),n.parentNode=e);return D(r)};var ku={svg:\"http://www.w3.org/2000/svg\",xhtml:\"http://www.w3.org/1999/xhtml\",xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\",xmlns:\"http://www.w3.org/2000/xmlns/\"};eu.ns={prefix:ku,qualify:function(t){var n=t.indexOf(\":\"),e=t;return n>=0&&(e=t.slice(0,n),t=t.slice(n+1)),ku.hasOwnProperty(e)?{space:ku[e],local:t}:t}},Au.attr=function(t,n){if(arguments.length<2){if(\"string\"==typeof t){var e=this.node();return t=eu.ns.qualify(t),t.local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(F(n,t[n]));return this}return this.each(F(t,n))},Au.classed=function(t,n){if(arguments.length<2){if(\"string\"==typeof t){var e=this.node(),r=(t=I(t)).length,i=-1;if(n=e.classList){for(;++i<r;)if(!n.contains(t[i]))return!1}else for(n=e.getAttribute(\"class\");++i<r;)if(!L(t[i]).test(n))return!1;return!0}for(n in t)this.each(B(n,t[n]));return this}return this.each(B(t,n))},Au.style=function(t,n,r){var i=arguments.length;if(3>i){if(\"string\"!=typeof t){2>i&&(n=\"\");for(r in t)this.each(P(r,t[r],n));return this}if(2>i){var a=this.node();return e(a).getComputedStyle(a,null).getPropertyValue(t)}r=\"\"}return this.each(P(t,n,r))},Au.property=function(t,n){if(arguments.length<2){if(\"string\"==typeof t)return this.node()[t];for(n in t)this.each(R(n,t[n]));return this}return this.each(R(t,n))},Au.text=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?\"\":n}:null==t?function(){this.textContent=\"\"}:function(){this.textContent=t}):this.node().textContent},Au.html=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?\"\":n}:null==t?function(){this.innerHTML=\"\"}:function(){this.innerHTML=t}):this.node().innerHTML},Au.append=function(t){return t=j(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Au.insert=function(t,n){return t=j(t),n=C(n),this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})},Au.remove=function(){return this.each(Y)},Au.data=function(t,n){function e(t,e){var r,i,a,u=t.length,h=e.length,f=Math.min(u,h),d=new Array(h),p=new Array(h),g=new Array(u);if(n){var y,m=new l,v=new Array(u);for(r=-1;++r<u;)m.has(y=n.call(i=t[r],i.__data__,r))?g[r]=i:m.set(y,i),v[r]=y;for(r=-1;++r<h;)(i=m.get(y=n.call(e,a=e[r],r)))?i!==!0&&(d[r]=i,i.__data__=a):p[r]=U(a),m.set(y,!0);for(r=-1;++r<u;)m.get(v[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<f;)i=t[r],a=e[r],i?(i.__data__=a,d[r]=i):p[r]=U(a);for(;h>r;++r)p[r]=U(e[r]);for(;u>r;++r)g[r]=t[r]}p.update=d,p.parentNode=d.parentNode=g.parentNode=t.parentNode,o.push(p),s.push(d),c.push(g)}var r,i,a=-1,u=this.length;if(!arguments.length){for(t=new Array(u=(r=this[0]).length);++a<u;)(i=r[a])&&(t[a]=i.__data__);return t}var o=q([]),s=D([]),c=D([]);if(\"function\"==typeof t)for(;++a<u;)e(r=this[a],t.call(r,r.parentNode.__data__,a));else for(;++a<u;)e(r=this[a],t);return s.enter=function(){return o},s.exit=function(){return c},s},Au.datum=function(t){return arguments.length?this.property(\"__data__\",t):this.property(\"__data__\")},Au.filter=function(t){var n,e,r,i=[];\"function\"!=typeof t&&(t=$(t));for(var a=0,u=this.length;u>a;a++){i.push(n=[]),n.parentNode=(e=this[a]).parentNode;for(var o=0,s=e.length;s>o;o++)(r=e[o])&&t.call(r,r.__data__,o,a)&&n.push(r)}return D(i)},Au.order=function(){for(var t=-1,n=this.length;++t<n;)for(var e,r=this[t],i=r.length-1,a=r[i];--i>=0;)(e=r[i])&&(a&&a!==e.nextSibling&&a.parentNode.insertBefore(e,a),a=e);return this},Au.sort=function(t){t=W.apply(this,arguments);for(var n=-1,e=this.length;++n<e;)this[n].sort(t);return this.order()},Au.each=function(t){return z(this,function(n,e,r){t.call(n,n.__data__,e,r)})},Au.call=function(t){var n=iu(arguments);return t.apply(n[0]=this,n),this},Au.empty=function(){return!this.node()},Au.node=function(){for(var t=0,n=this.length;n>t;t++)for(var e=this[t],r=0,i=e.length;i>r;r++){var a=e[r];if(a)return a}return null},Au.size=function(){var t=0;return z(this,function(){++t}),t};var Eu=[];eu.selection.enter=q,eu.selection.enter.prototype=Eu,Eu.append=Au.append,Eu.empty=Au.empty,Eu.node=Au.node,Eu.call=Au.call,Eu.size=Au.size,Eu.select=function(t){for(var n,e,r,i,a,u=[],o=-1,s=this.length;++o<s;){r=(i=this[o]).update,u.push(n=[]),n.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(a=i[c])?(n.push(r[c]=e=t.call(i.parentNode,a.__data__,c,o)),e.__data__=a.__data__):n.push(null)}return D(u)},Eu.insert=function(t,n){return arguments.length<2&&(n=G(this)),Au.insert.call(this,t,n)},eu.select=function(n){var e;return\"string\"==typeof n?(e=[bu(n,au)],e.parentNode=au.documentElement):(e=[n],e.parentNode=t(n)),D([e])},eu.selectAll=function(t){var n;return\"string\"==typeof t?(n=iu(xu(t,au)),n.parentNode=au.documentElement):(n=t,n.parentNode=null),D([n])},Au.on=function(t,n,e){var r=arguments.length;if(3>r){if(\"string\"!=typeof t){2>r&&(n=!1);for(e in t)this.each(V(e,t[e],n));return this}if(2>r)return(r=this.node()[\"__on\"+t])&&r._;e=!1}return this.each(V(t,n,e))};var Mu=eu.map({mouseenter:\"mouseover\",mouseleave:\"mouseout\"});au&&Mu.forEach(function(t){\"on\"+t in au&&Mu.remove(t)});var Su,Du=0;eu.mouse=function(t){return K(t,M())};var Cu=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;eu.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=M().changedTouches),n)for(var r,i=0,a=n.length;a>i;++i)if((r=n[i]).identifier===e)return K(t,r)},eu.behavior.drag=function(){function t(){this.on(\"mousedown.drag\",a).on(\"touchstart.drag\",u)}function n(t,n,e,a,u){return function(){function o(){var t,e,r=n(f,g);r&&(t=r[0]-_[0],e=r[1]-_[1],p|=t|e,_=r,d({type:\"drag\",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:e}))}function s(){n(f,g)&&(m.on(a+y,null).on(u+y,null),v(p&&eu.event.target===h),d({type:\"dragend\"}))}var c,l=this,h=eu.event.target,f=l.parentNode,d=r.of(l,arguments),p=0,g=t(),y=\".drag\"+(null==g?\"\":\"-\"+g),m=eu.select(e(h)).on(a+y,o).on(u+y,s),v=X(h),_=n(f,g);i?(c=i.apply(l,arguments),c=[c.x-_[0],c.y-_[1]]):c=[0,0],d({type:\"dragstart\"})}}var r=S(t,\"drag\",\"dragstart\",\"dragend\"),i=null,a=n(w,eu.mouse,e,\"mousemove\",\"mouseup\"),u=n(Q,eu.touch,_,\"touchmove\",\"touchend\");return t.origin=function(n){return arguments.length?(i=n,t):i},eu.rebind(t,r,\"on\")},eu.touches=function(t,n){return arguments.length<2&&(n=M().touches),n?iu(n).map(function(n){var e=K(t,n);return e.identifier=n.identifier,e}):[]};var Tu=1e-6,Fu=Tu*Tu,Ou=Math.PI,Lu=2*Ou,Iu=Lu-Tu,Bu=Ou/2,Nu=Ou/180,Pu=180/Ou,Ru=Math.SQRT2,ju=2,Yu=4;eu.interpolateZoom=function(t,n){function e(t){var n=t*v;if(m){var e=it(g),u=a/(ju*f)*(e*at(Ru*n+g)-rt(g));return[r+u*c,i+u*l,a*e/it(Ru*n+g)]}return[r+t*c,i+t*l,a*Math.exp(Ru*n)]}var r=t[0],i=t[1],a=t[2],u=n[0],o=n[1],s=n[2],c=u-r,l=o-i,h=c*c+l*l,f=Math.sqrt(h),d=(s*s-a*a+Yu*h)/(2*a*ju*f),p=(s*s-a*a-Yu*h)/(2*s*ju*f),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(p*p+1)-p),m=y-g,v=(m||Math.log(s/a))/Ru;return e.duration=1e3*v,e},eu.behavior.zoom=function(){function t(t){t.on(F,h).on($u+\".zoom\",d).on(\"dblclick.zoom\",p).on(I,f)}function n(t){return[(t[0]-k.x)/k.k,(t[1]-k.y)/k.k]}function r(t){return[t[0]*k.k+k.x,t[1]*k.k+k.y]}function i(t){k.k=Math.max(D[0],Math.min(D[1],t))}function a(t,n){n=r(n),k.x+=t[0]-n[0],k.y+=t[1]-n[1]}function u(n,e,r,u){n.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,u)),a(y=e,r),n=eu.select(n),C>0&&(n=n.transition().duration(C)),n.call(t.event)}function o(){x&&x.domain(b.range().map(function(t){return(t-k.x)/k.k}).map(b.invert)),A&&A.domain(w.range().map(function(t){return(t-k.y)/k.k}).map(w.invert))}function s(t){T++||t({type:\"zoomstart\"})}function c(t){o(),t({type:\"zoom\",scale:k.k,translate:[k.x,k.y]})}function l(t){--T||(t({type:\"zoomend\"}),y=null)}function h(){function t(){h=1,a(eu.mouse(i),d),c(o)}function r(){f.on(O,null).on(L,null),p(h&&eu.event.target===u),l(o)}var i=this,u=eu.event.target,o=B.of(i,arguments),h=0,f=eu.select(e(i)).on(O,t).on(L,r),d=n(eu.mouse(i)),p=X(i);Ps.call(i),s(o)}function f(){function t(){var t=eu.touches(p);return d=k.k,t.forEach(function(t){t.identifier in y&&(y[t.identifier]=n(t))}),t}function e(){var n=eu.event.target;eu.select(n).on(b,r).on(x,o),w.push(n);for(var e=eu.event.changedTouches,i=0,a=e.length;a>i;++i)y[e[i].identifier]=null;var s=t(),c=Date.now();if(1===s.length){if(500>c-_){var l=s[0];u(p,l,y[l.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),E()}_=c}else if(s.length>1){var l=s[0],h=s[1],f=l[0]-h[0],d=l[1]-h[1];m=f*f+d*d}}function r(){var t,n,e,r,u=eu.touches(p);Ps.call(p);for(var o=0,s=u.length;s>o;++o,r=null)if(e=u[o],r=y[e.identifier]){if(n)break;t=e,n=r}if(r){var l=(l=e[0]-t[0])*l+(l=e[1]-t[1])*l,h=m&&Math.sqrt(l/m);t=[(t[0]+e[0])/2,(t[1]+e[1])/2],n=[(n[0]+r[0])/2,(n[1]+r[1])/2],i(h*d)}_=null,a(t,n),c(g)}function o(){if(eu.event.touches.length){for(var n=eu.event.changedTouches,e=0,r=n.length;r>e;++e)delete y[n[e].identifier];for(var i in y)return void t()}eu.selectAll(w).on(v,null),A.on(F,h).on(I,f),M(),l(g)}var d,p=this,g=B.of(p,arguments),y={},m=0,v=\".zoom-\"+eu.event.changedTouches[0].identifier,b=\"touchmove\"+v,x=\"touchend\"+v,w=[],A=eu.select(p),M=X(p);e(),s(g),A.on(F,null).on(I,e)}function d(){var t=B.of(this,arguments);v?clearTimeout(v):(Ps.call(this),g=n(y=m||eu.mouse(this)),s(t)),v=setTimeout(function(){v=null,l(t)},50),E(),i(Math.pow(2,.002*Uu())*k.k),a(y,g),c(t)}function p(){var t=eu.mouse(this),e=Math.log(k.k)/Math.LN2;u(this,t,n(t),eu.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}var g,y,m,v,_,b,x,w,A,k={x:0,y:0,k:1},M=[960,500],D=Wu,C=250,T=0,F=\"mousedown.zoom\",O=\"mousemove.zoom\",L=\"mouseup.zoom\",I=\"touchstart.zoom\",B=S(t,\"zoomstart\",\"zoom\",\"zoomend\");return $u||($u=\"onwheel\"in au?(Uu=function(){return-eu.event.deltaY*(eu.event.deltaMode?120:1)},\"wheel\"):\"onmousewheel\"in au?(Uu=function(){return eu.event.wheelDelta},\"mousewheel\"):(Uu=function(){return-eu.event.detail},\"MozMousePixelScroll\")),t.event=function(t){t.each(function(){var t=B.of(this,arguments),n=k;Bs?eu.select(this).transition().each(\"start.zoom\",function(){k=this.__chart__||{x:0,y:0,k:1},s(t)}).tween(\"zoom:zoom\",function(){var e=M[0],r=M[1],i=y?y[0]:e/2,a=y?y[1]:r/2,u=eu.interpolateZoom([(i-k.x)/k.k,(a-k.y)/k.k,e/k.k],[(i-n.x)/n.k,(a-n.y)/n.k,e/n.k]);return function(n){var r=u(n),o=e/r[2];this.__chart__=k={x:i-r[0]*o,y:a-r[1]*o,k:o},c(t)}}).each(\"interrupt.zoom\",function(){l(t)}).each(\"end.zoom\",function(){l(t)}):(this.__chart__=k,s(t),c(t),l(t))})},t.translate=function(n){return arguments.length?(k={x:+n[0],y:+n[1],k:k.k},o(),t):[k.x,k.y]},t.scale=function(n){return arguments.length?(k={x:k.x,y:k.y,k:+n},o(),t):k.k},t.scaleExtent=function(n){return arguments.length?(D=null==n?Wu:[+n[0],+n[1]],t):D},t.center=function(n){return arguments.length?(m=n&&[+n[0],+n[1]],t):m},t.size=function(n){return arguments.length?(M=n&&[+n[0],+n[1]],t):M},t.duration=function(n){return arguments.length?(C=+n,t):C},t.x=function(n){return arguments.length?(x=n,b=n.copy(),k={x:0,y:0,k:1},t):x},t.y=function(n){return arguments.length?(A=n,w=n.copy(),k={x:0,y:0,k:1},t):A},eu.rebind(t,B,\"on\")};var Uu,$u,Wu=[0,1/0];eu.color=ot,ot.prototype.toString=function(){return this.rgb()+\"\"},eu.hsl=st;var zu=st.prototype=new ot;zu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new st(this.h,this.s,this.l/t)},zu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new st(this.h,this.s,t*this.l)},zu.rgb=function(){return ct(this.h,this.s,this.l)},eu.hcl=lt;var qu=lt.prototype=new ot;qu.brighter=function(t){return new lt(this.h,this.c,Math.min(100,this.l+Gu*(arguments.length?t:1)))},qu.darker=function(t){return new lt(this.h,this.c,Math.max(0,this.l-Gu*(arguments.length?t:1)))},qu.rgb=function(){return ht(this.h,this.c,this.l).rgb()},eu.lab=ft;var Gu=18,Vu=.95047,Hu=1,Zu=1.08883,Xu=ft.prototype=new ot;Xu.brighter=function(t){return new ft(Math.min(100,this.l+Gu*(arguments.length?t:1)),this.a,this.b)},Xu.darker=function(t){return new ft(Math.max(0,this.l-Gu*(arguments.length?t:1)),this.a,this.b)},Xu.rgb=function(){return dt(this.l,this.a,this.b)},eu.rgb=vt;var Ku=vt.prototype=new ot;Ku.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,i=30;return n||e||r?(n&&i>n&&(n=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new vt(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new vt(i,i,i)},Ku.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new vt(t*this.r,t*this.g,t*this.b)},Ku.hsl=function(){return At(this.r,this.g,this.b)},Ku.toString=function(){return\"#\"+xt(this.r)+xt(this.g)+xt(this.b)};var Qu=eu.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qu.forEach(function(t,n){Qu.set(t,_t(n))}),eu.functor=St,eu.xhr=Dt(_),eu.dsv=function(t,n){function e(t,e,a){arguments.length<3&&(a=e,e=null);var u=Ct(t,n,null==e?r:i(e),a);return u.row=function(t){return arguments.length?u.response(null==(e=t)?r:i(t)):e},u}function r(t){return e.parse(t.responseText)}function i(t){return function(n){return e.parse(n.responseText,t)}}function a(n){return n.map(u).join(t)}function u(t){return o.test(t)?'\"'+t.replace(/\\\"/g,'\"\"')+'\"':t}var o=new RegExp('[\"'+t+\"\\n]\"),s=t.charCodeAt(0);return e.parse=function(t,n){var r;return e.parseRows(t,function(t,e){if(r)return r(t,e-1);var i=new Function(\"d\",\"return {\"+t.map(function(t,n){return JSON.stringify(t)+\": d[\"+n+\"]\"}).join(\",\")+\"}\");r=n?function(t,e){return n(i(t),e)}:i})},e.parseRows=function(t,n){function e(){if(l>=c)return u;if(i)return i=!1,a;var n=l;if(34===t.charCodeAt(n)){for(var e=n;e++<c;)if(34===t.charCodeAt(e)){if(34!==t.charCodeAt(e+1))break;++e}l=e+2;var r=t.charCodeAt(e+1);return 13===r?(i=!0,10===t.charCodeAt(e+2)&&++l):10===r&&(i=!0),t.slice(n+1,e).replace(/\"\"/g,'\"')}for(;c>l;){var r=t.charCodeAt(l++),o=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(l)&&(++l,++o);else if(r!==s)continue;return t.slice(n,l-o)}return t.slice(n)}for(var r,i,a={},u={},o=[],c=t.length,l=0,h=0;(r=e())!==u;){for(var f=[];r!==a&&r!==u;)f.push(r),r=e();n&&null==(f=n(f,h++))||o.push(f)}return o},e.format=function(n){if(Array.isArray(n[0]))return e.formatRows(n);var r=new v,i=[];return n.forEach(function(t){for(var n in t)r.has(n)||i.push(r.add(n))}),[i.map(u).join(t)].concat(n.map(function(n){return i.map(function(t){return u(n[t])}).join(t)})).join(\"\\n\")},e.formatRows=function(t){return t.map(a).join(\"\\n\")},e},eu.csv=eu.dsv(\",\",\"text/csv\"),eu.tsv=eu.dsv(\"\t\",\"text/tab-separated-values\");var Ju,to,no,eo,ro,io=this[x(this,\"requestAnimationFrame\")]||function(t){setTimeout(t,17)};eu.timer=function(t,n,e){var r=arguments.length;2>r&&(n=0),3>r&&(e=Date.now());var i=e+n,a={c:t,t:i,f:!1,n:null};to?to.n=a:Ju=a,\nto=a,no||(eo=clearTimeout(eo),no=1,io(Ot))},eu.timer.flush=function(){Lt(),It()},eu.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var ao=[\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"].map(Nt);eu.formatPrefix=function(t,n){var e=0;return t&&(0>t&&(t*=-1),n&&(t=eu.round(t,Bt(t,n))),e=1+Math.floor(1e-12+Math.log(t)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),ao[8+e/3]};var uo=/(?:([^{])?([<>=^]))?([+\\- ])?([$#])?(0)?(\\d+)?(,)?(\\.-?\\d+)?([a-z%])?/i,oo=eu.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,n){return t.toPrecision(n)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},r:function(t,n){return(t=eu.round(t,Bt(t,n))).toFixed(Math.max(0,Math.min(20,Bt(t*(1+1e-15),n))))}}),so=eu.time={},co=Date;jt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){lo.setUTCDate.apply(this._,arguments)},setDay:function(){lo.setUTCDay.apply(this._,arguments)},setFullYear:function(){lo.setUTCFullYear.apply(this._,arguments)},setHours:function(){lo.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){lo.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){lo.setUTCMinutes.apply(this._,arguments)},setMonth:function(){lo.setUTCMonth.apply(this._,arguments)},setSeconds:function(){lo.setUTCSeconds.apply(this._,arguments)},setTime:function(){lo.setTime.apply(this._,arguments)}};var lo=Date.prototype;so.year=Yt(function(t){return t=so.day(t),t.setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),so.years=so.year.range,so.years.utc=so.year.utc.range,so.day=Yt(function(t){var n=new co(2e3,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n},function(t,n){t.setDate(t.getDate()+n)},function(t){return t.getDate()-1}),so.days=so.day.range,so.days.utc=so.day.utc.range,so.dayOfYear=function(t){var n=so.year(t);return Math.floor((t-n-6e4*(t.getTimezoneOffset()-n.getTimezoneOffset()))/864e5)},[\"sunday\",\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\"].forEach(function(t,n){n=7-n;var e=so[t]=Yt(function(t){return(t=so.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,n){t.setDate(t.getDate()+7*Math.floor(n))},function(t){var e=so.year(t).getDay();return Math.floor((so.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});so[t+\"s\"]=e.range,so[t+\"s\"].utc=e.utc.range,so[t+\"OfYear\"]=function(t){var e=so.year(t).getDay();return Math.floor((so.dayOfYear(t)+(e+n)%7)/7)}}),so.week=so.sunday,so.weeks=so.sunday.range,so.weeks.utc=so.sunday.utc.range,so.weekOfYear=so.sundayOfYear;var ho={\"-\":\"\",_:\" \",0:\"0\"},fo=/^\\s*\\d+/,po=/^%/;eu.locale=function(t){return{numberFormat:Pt(t),timeFormat:$t(t)}};var go=eu.locale({decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],dateTime:\"%a %b %e %X %Y\",date:\"%m/%d/%Y\",time:\"%H:%M:%S\",periods:[\"AM\",\"PM\"],days:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],shortDays:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],months:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],shortMonths:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]});eu.format=go.numberFormat,eu.geo={},ln.prototype={s:0,t:0,add:function(t){hn(t,this.t,yo),hn(yo.s,this.s,this),this.s?this.t+=yo.t:this.s=yo.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var yo=new ln;eu.geo.stream=function(t,n){t&&mo.hasOwnProperty(t.type)?mo[t.type](t,n):fn(t,n)};var mo={Feature:function(t,n){fn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)fn(e[r].geometry,n)}},vo={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){dn(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)dn(e[r],n,0)},Polygon:function(t,n){pn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)pn(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)fn(e[r],n)}};eu.geo.area=function(t){return _o=0,eu.geo.stream(t,xo),_o};var _o,bo=new ln,xo={sphere:function(){_o+=4*Ou},point:w,lineStart:w,lineEnd:w,polygonStart:function(){bo.reset(),xo.lineStart=gn},polygonEnd:function(){var t=2*bo;_o+=0>t?4*Ou+t:t,xo.lineStart=xo.lineEnd=xo.point=w}};eu.geo.bounds=function(){function t(t,n){_.push(b=[l=t,f=t]),h>n&&(h=n),n>d&&(d=n)}function n(n,e){var r=yn([n*Nu,e*Nu]);if(m){var i=vn(m,r),a=[i[1],-i[0],0],u=vn(a,i);xn(u),u=wn(u);var s=n-p,c=s>0?1:-1,g=u[0]*Pu*c,y=pu(s)>180;if(y^(g>c*p&&c*n>g)){var v=u[1]*Pu;v>d&&(d=v)}else if(g=(g+360)%360-180,y^(g>c*p&&c*n>g)){var v=-u[1]*Pu;h>v&&(h=v)}else h>e&&(h=e),e>d&&(d=e);y?p>n?o(l,n)>o(l,f)&&(f=n):o(n,f)>o(l,f)&&(l=n):f>=l?(l>n&&(l=n),n>f&&(f=n)):n>p?o(l,n)>o(l,f)&&(f=n):o(n,f)>o(l,f)&&(l=n)}else t(n,e);m=r,p=n}function e(){x.point=n}function r(){b[0]=l,b[1]=f,x.point=t,m=null}function i(t,e){if(m){var r=t-p;v+=pu(r)>180?r+(r>0?360:-360):r}else g=t,y=e;xo.point(t,e),n(t,e)}function a(){xo.lineStart()}function u(){i(g,y),xo.lineEnd(),pu(v)>Tu&&(l=-(f=180)),b[0]=l,b[1]=f,m=null}function o(t,n){return(n-=t)<0?n+360:n}function s(t,n){return t[0]-n[0]}function c(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var l,h,f,d,p,g,y,m,v,_,b,x={point:t,lineStart:e,lineEnd:r,polygonStart:function(){x.point=i,x.lineStart=a,x.lineEnd=u,v=0,xo.polygonStart()},polygonEnd:function(){xo.polygonEnd(),x.point=t,x.lineStart=e,x.lineEnd=r,0>bo?(l=-(f=180),h=-(d=90)):v>Tu?d=90:-Tu>v&&(h=-90),b[0]=l,b[1]=f}};return function(t){d=f=-(l=h=1/0),_=[],eu.geo.stream(t,x);var n=_.length;if(n){_.sort(s);for(var e,r=1,i=_[0],a=[i];n>r;++r)e=_[r],c(e[0],i)||c(e[1],i)?(o(i[0],e[1])>o(i[0],i[1])&&(i[1]=e[1]),o(e[0],i[1])>o(i[0],i[1])&&(i[0]=e[0])):a.push(i=e);for(var u,e,p=-(1/0),n=a.length-1,r=0,i=a[n];n>=r;i=e,++r)e=a[r],(u=o(i[1],e[0]))>p&&(p=u,l=e[0],f=i[1])}return _=b=null,l===1/0||h===1/0?[[0/0,0/0],[0/0,0/0]]:[[l,h],[f,d]]}}(),eu.geo.centroid=function(t){wo=Ao=ko=Eo=Mo=So=Do=Co=To=Fo=Oo=0,eu.geo.stream(t,Lo);var n=To,e=Fo,r=Oo,i=n*n+e*e+r*r;return Fu>i&&(n=So,e=Do,r=Co,Tu>Ao&&(n=ko,e=Eo,r=Mo),i=n*n+e*e+r*r,Fu>i)?[0/0,0/0]:[Math.atan2(e,n)*Pu,et(r/Math.sqrt(i))*Pu]};var wo,Ao,ko,Eo,Mo,So,Do,Co,To,Fo,Oo,Lo={sphere:w,point:kn,lineStart:Mn,lineEnd:Sn,polygonStart:function(){Lo.lineStart=Dn},polygonEnd:function(){Lo.lineStart=Mn}},Io=In(Tn,Rn,Yn,[-Ou,-Ou/2]),Bo=1e9;eu.geo.clipExtent=function(){var t,n,e,r,i,a,u={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(o){return arguments.length?(a=zn(t=+o[0][0],n=+o[0][1],e=+o[1][0],r=+o[1][1]),i&&(i.valid=!1,i=null),u):[[t,n],[e,r]]}};return u.extent([[0,0],[960,500]])},(eu.geo.conicEqualArea=function(){return qn(Gn)}).raw=Gn,eu.geo.albers=function(){return eu.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},eu.geo.albersUsa=function(){function t(t){var a=t[0],u=t[1];return n=null,e(a,u),n||(r(a,u),n)||i(a,u),n}var n,e,r,i,a=eu.geo.albers(),u=eu.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=eu.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){n=[t,e]}};return t.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?u:i>=.166&&.234>i&&r>=-.214&&-.115>r?o:a).invert(t)},t.stream=function(t){var n=a.stream(t),e=u.stream(t),r=o.stream(t);return{point:function(t,i){n.point(t,i),e.point(t,i),r.point(t,i)},sphere:function(){n.sphere(),e.sphere(),r.sphere()},lineStart:function(){n.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){n.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){n.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){n.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},t.precision=function(n){return arguments.length?(a.precision(n),u.precision(n),o.precision(n),t):a.precision()},t.scale=function(n){return arguments.length?(a.scale(n),u.scale(.35*n),o.scale(n),t.translate(a.translate())):a.scale()},t.translate=function(n){if(!arguments.length)return a.translate();var c=a.scale(),l=+n[0],h=+n[1];return e=a.translate(n).clipExtent([[l-.455*c,h-.238*c],[l+.455*c,h+.238*c]]).stream(s).point,r=u.translate([l-.307*c,h+.201*c]).clipExtent([[l-.425*c+Tu,h+.12*c+Tu],[l-.214*c-Tu,h+.234*c-Tu]]).stream(s).point,i=o.translate([l-.205*c,h+.212*c]).clipExtent([[l-.214*c+Tu,h+.166*c+Tu],[l-.115*c-Tu,h+.234*c-Tu]]).stream(s).point,t},t.scale(1070)};var No,Po,Ro,jo,Yo,Uo,$o={point:w,lineStart:w,lineEnd:w,polygonStart:function(){Po=0,$o.lineStart=Vn},polygonEnd:function(){$o.lineStart=$o.lineEnd=$o.point=w,No+=pu(Po/2)}},Wo={point:Hn,lineStart:w,lineEnd:w,polygonStart:w,polygonEnd:w},zo={point:Kn,lineStart:Qn,lineEnd:Jn,polygonStart:function(){zo.lineStart=te},polygonEnd:function(){zo.point=Kn,zo.lineStart=Qn,zo.lineEnd=Jn}};eu.geo.path=function(){function t(t){return t&&(\"function\"==typeof o&&a.pointRadius(+o.apply(this,arguments)),u&&u.valid||(u=i(a)),eu.geo.stream(t,u)),a.result()}function n(){return u=null,t}var e,r,i,a,u,o=4.5;return t.area=function(t){return No=0,eu.geo.stream(t,i($o)),No},t.centroid=function(t){return ko=Eo=Mo=So=Do=Co=To=Fo=Oo=0,eu.geo.stream(t,i(zo)),Oo?[To/Oo,Fo/Oo]:Co?[So/Co,Do/Co]:Mo?[ko/Mo,Eo/Mo]:[0/0,0/0]},t.bounds=function(t){return Yo=Uo=-(Ro=jo=1/0),eu.geo.stream(t,i(Wo)),[[Ro,jo],[Yo,Uo]]},t.projection=function(t){return arguments.length?(i=(e=t)?t.stream||re(t):_,n()):e},t.context=function(t){return arguments.length?(a=null==(r=t)?new Zn:new ne(t),\"function\"!=typeof o&&a.pointRadius(o),n()):r},t.pointRadius=function(n){return arguments.length?(o=\"function\"==typeof n?n:(a.pointRadius(+n),+n),t):o},t.projection(eu.geo.albersUsa()).context(null)},eu.geo.transform=function(t){return{stream:function(n){var e=new ie(n);for(var r in t)e[r]=t[r];return e}}},ie.prototype={point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},eu.geo.projection=ue,eu.geo.projectionMutator=oe,(eu.geo.equirectangular=function(){return ue(ce)}).raw=ce.invert=ce,eu.geo.rotation=function(t){function n(n){return n=t(n[0]*Nu,n[1]*Nu),n[0]*=Pu,n[1]*=Pu,n}return t=he(t[0]%360*Nu,t[1]*Nu,t.length>2?t[2]*Nu:0),n.invert=function(n){return n=t.invert(n[0]*Nu,n[1]*Nu),n[0]*=Pu,n[1]*=Pu,n},n},le.invert=ce,eu.geo.circle=function(){function t(){var t=\"function\"==typeof r?r.apply(this,arguments):r,n=he(-t[0]*Nu,-t[1]*Nu,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=Pu,t[1]*=Pu}}),{type:\"Polygon\",coordinates:[i]}}var n,e,r=[0,0],i=6;return t.origin=function(n){return arguments.length?(r=n,t):r},t.angle=function(r){return arguments.length?(e=ge((n=+r)*Nu,i*Nu),t):n},t.precision=function(r){return arguments.length?(e=ge(n*Nu,(i=+r)*Nu),t):i},t.angle(90)},eu.geo.distance=function(t,n){var e,r=(n[0]-t[0])*Nu,i=t[1]*Nu,a=n[1]*Nu,u=Math.sin(r),o=Math.cos(r),s=Math.sin(i),c=Math.cos(i),l=Math.sin(a),h=Math.cos(a);return Math.atan2(Math.sqrt((e=h*u)*e+(e=c*l-s*h*o)*e),s*l+c*h*o)},eu.geo.graticule=function(){function t(){return{type:\"MultiLineString\",coordinates:n()}}function n(){return eu.range(Math.ceil(a/y)*y,i,y).map(f).concat(eu.range(Math.ceil(c/m)*m,s,m).map(d)).concat(eu.range(Math.ceil(r/p)*p,e,p).filter(function(t){return pu(t%y)>Tu}).map(l)).concat(eu.range(Math.ceil(o/g)*g,u,g).filter(function(t){return pu(t%m)>Tu}).map(h))}var e,r,i,a,u,o,s,c,l,h,f,d,p=10,g=p,y=90,m=360,v=2.5;return t.lines=function(){return n().map(function(t){return{type:\"LineString\",coordinates:t}})},t.outline=function(){return{type:\"Polygon\",coordinates:[f(a).concat(d(s).slice(1),f(i).reverse().slice(1),d(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.majorExtent(n).minorExtent(n):t.minorExtent()},t.majorExtent=function(n){return arguments.length?(a=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],a>i&&(n=a,a=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(v)):[[a,c],[i,s]]},t.minorExtent=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],o=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),o>u&&(n=o,o=u,u=n),t.precision(v)):[[r,o],[e,u]]},t.step=function(n){return arguments.length?t.majorStep(n).minorStep(n):t.minorStep()},t.majorStep=function(n){return arguments.length?(y=+n[0],m=+n[1],t):[y,m]},t.minorStep=function(n){return arguments.length?(p=+n[0],g=+n[1],t):[p,g]},t.precision=function(n){return arguments.length?(v=+n,l=me(o,u,90),h=ve(r,e,v),f=me(c,s,90),d=ve(a,i,v),t):v},t.majorExtent([[-180,-90+Tu],[180,90-Tu]]).minorExtent([[-180,-80-Tu],[180,80+Tu]])},eu.geo.greatArc=function(){function t(){return{type:\"LineString\",coordinates:[n||r.apply(this,arguments),e||i.apply(this,arguments)]}}var n,e,r=_e,i=be;return t.distance=function(){return eu.geo.distance(n||r.apply(this,arguments),e||i.apply(this,arguments))},t.source=function(e){return arguments.length?(r=e,n=\"function\"==typeof e?null:e,t):r},t.target=function(n){return arguments.length?(i=n,e=\"function\"==typeof n?null:n,t):i},t.precision=function(){return arguments.length?t:0},t},eu.geo.interpolate=function(t,n){return xe(t[0]*Nu,t[1]*Nu,n[0]*Nu,n[1]*Nu)},eu.geo.length=function(t){return qo=0,eu.geo.stream(t,Go),qo};var qo,Go={sphere:w,point:w,lineStart:we,lineEnd:w,polygonStart:w,polygonEnd:w},Vo=Ae(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(eu.geo.azimuthalEqualArea=function(){return ue(Vo)}).raw=Vo;var Ho=Ae(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},_);(eu.geo.azimuthalEquidistant=function(){return ue(Ho)}).raw=Ho,(eu.geo.conicConformal=function(){return qn(ke)}).raw=ke,(eu.geo.conicEquidistant=function(){return qn(Ee)}).raw=Ee;var Zo=Ae(function(t){return 1/t},Math.atan);(eu.geo.gnomonic=function(){return ue(Zo)}).raw=Zo,Me.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-Bu]},(eu.geo.mercator=function(){return Se(Me)}).raw=Me;var Xo=Ae(function(){return 1},Math.asin);(eu.geo.orthographic=function(){return ue(Xo)}).raw=Xo;var Ko=Ae(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(eu.geo.stereographic=function(){return ue(Ko)}).raw=Ko,De.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-Bu]},(eu.geo.transverseMercator=function(){var t=Se(De),n=t.center,e=t.rotate;return t.center=function(t){return t?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return t?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90])}).raw=De,eu.geom={},eu.geom.hull=function(t){function n(t){if(t.length<3)return[];var n,i=St(e),a=St(r),u=t.length,o=[],s=[];for(n=0;u>n;n++)o.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(o.sort(Oe),n=0;u>n;n++)s.push([o[n][0],-o[n][1]]);var c=Fe(o),l=Fe(s),h=l[0]===c[0],f=l[l.length-1]===c[c.length-1],d=[];for(n=c.length-1;n>=0;--n)d.push(t[o[c[n]][2]]);for(n=+h;n<l.length-f;++n)d.push(t[o[l[n]][2]]);return d}var e=Ce,r=Te;return arguments.length?n(t):(n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n)},eu.geom.polygon=function(t){return _u(t,Qo),t};var Qo=eu.geom.polygon.prototype=[];Qo.area=function(){for(var t,n=-1,e=this.length,r=this[e-1],i=0;++n<e;)t=r,r=this[n],i+=t[1]*r[0]-t[0]*r[1];return.5*i},Qo.centroid=function(t){var n,e,r=-1,i=this.length,a=0,u=0,o=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)n=o,o=this[r],e=n[0]*o[1]-o[0]*n[1],a+=(n[0]+o[0])*e,u+=(n[1]+o[1])*e;return[a*t,u*t]},Qo.clip=function(t){for(var n,e,r,i,a,u,o=Be(t),s=-1,c=this.length-Be(this),l=this[c-1];++s<c;){for(n=t.slice(),t.length=0,i=this[s],a=n[(r=n.length-o)-1],e=-1;++e<r;)u=n[e],Le(u,l,i)?(Le(a,l,i)||t.push(Ie(a,u,l,i)),t.push(u)):Le(a,l,i)&&t.push(Ie(a,u,l,i)),a=u;o&&t.push(t[0]),l=i}return t};var Jo,ts,ns,es,rs,is=[],as=[];We.prototype.prepare=function(){for(var t,n=this.edges,e=n.length;e--;)t=n[e].edge,t.b&&t.a||n.splice(e,1);return n.sort(qe),n.length},nr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},er.prototype={insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=ur(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(ir(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ar(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(ar(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ir(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,a=t.L,u=t.R;if(e=a?u?ur(u):a:u,i?i.L===t?i.L=e:i.R=e:this._=e,a&&u?(r=e.C,e.C=t.C,e.L=a,a.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,ir(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,ar(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,ir(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,ar(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,ir(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,ar(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},eu.geom.voronoi=function(t){function n(t){var n=new Array(t.length),r=o[0][0],i=o[0][1],a=o[1][0],u=o[1][1];return or(e(t),o).cells.forEach(function(e,o){var s=e.edges,c=e.site,l=n[o]=s.length?s.map(function(t){var n=t.start();return[n.x,n.y]}):c.x>=r&&c.x<=a&&c.y>=i&&c.y<=u?[[r,u],[a,u],[a,i],[r,i]]:[];l.point=t[o]}),n}function e(t){return t.map(function(t,n){return{x:Math.round(a(t,n)/Tu)*Tu,y:Math.round(u(t,n)/Tu)*Tu,i:n}})}var r=Ce,i=Te,a=r,u=i,o=us;return t?n(t):(n.links=function(t){return or(e(t)).edges.filter(function(t){return t.l&&t.r}).map(function(n){return{source:t[n.l.i],target:t[n.r.i]}})},n.triangles=function(t){var n=[];return or(e(t)).cells.forEach(function(e,r){for(var i,a,u=e.site,o=e.edges.sort(qe),s=-1,c=o.length,l=o[c-1].edge,h=l.l===u?l.r:l.l;++s<c;)i=l,a=h,l=o[s].edge,h=l.l===u?l.r:l.l,r<a.i&&r<h.i&&cr(u,a,h)<0&&n.push([t[r],t[a.i],t[h.i]])}),n},n.x=function(t){return arguments.length?(a=St(r=t),n):r},n.y=function(t){return arguments.length?(u=St(i=t),n):i},n.clipExtent=function(t){return arguments.length?(o=null==t?us:t,n):o===us?null:o},n.size=function(t){return arguments.length?n.clipExtent(t&&[[0,0],t]):o===us?null:o&&o[1]},n)};var us=[[-1e6,-1e6],[1e6,1e6]];eu.geom.delaunay=function(t){return eu.geom.voronoi().triangles(t)},eu.geom.quadtree=function(t,n,e,r,i){function a(t){function a(t,n,e,r,i,a,u,o){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var s=t.x,l=t.y;if(null!=s)if(pu(s-e)+pu(l-r)<.01)c(t,n,e,r,i,a,u,o);else{var h=t.point;t.x=t.y=t.point=null,c(t,h,s,l,i,a,u,o),c(t,n,e,r,i,a,u,o)}else t.x=e,t.y=r,t.point=n}else c(t,n,e,r,i,a,u,o)}function c(t,n,e,r,i,u,o,s){var c=.5*(i+o),l=.5*(u+s),h=e>=c,f=r>=l,d=f<<1|h;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=fr()),h?i=c:o=c,f?u=l:s=l,a(t,n,e,r,i,u,o,s)}var l,h,f,d,p,g,y,m,v,_=St(o),b=St(s);if(null!=n)g=n,y=e,m=r,v=i;else if(m=v=-(g=y=1/0),h=[],f=[],p=t.length,u)for(d=0;p>d;++d)l=t[d],l.x<g&&(g=l.x),l.y<y&&(y=l.y),l.x>m&&(m=l.x),l.y>v&&(v=l.y),h.push(l.x),f.push(l.y);else for(d=0;p>d;++d){var x=+_(l=t[d],d),w=+b(l,d);g>x&&(g=x),y>w&&(y=w),x>m&&(m=x),w>v&&(v=w),h.push(x),f.push(w)}var A=m-g,k=v-y;A>k?v=y+A:m=g+k;var E=fr();if(E.add=function(t){a(E,t,+_(t,++d),+b(t,d),g,y,m,v)},E.visit=function(t){dr(t,E,g,y,m,v)},E.find=function(t){return pr(E,t[0],t[1],g,y,m,v)},d=-1,null==n){for(;++d<p;)a(E,t[d],h[d],f[d],g,y,m,v);--d}else t.forEach(E.add);return h=f=t=l=null,E}var u,o=Ce,s=Te;return(u=arguments.length)?(o=lr,s=hr,3===u&&(i=e,r=n,e=n=0),a(t)):(a.x=function(t){return arguments.length?(o=t,a):o},a.y=function(t){return arguments.length?(s=t,a):s},a.extent=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),a):null==n?null:[[n,e],[r,i]]},a.size=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=e=0,r=+t[0],i=+t[1]),a):null==n?null:[r-n,i-e]},a)},eu.interpolateRgb=gr,eu.interpolateObject=yr,eu.interpolateNumber=mr,eu.interpolateString=vr;var os=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,ss=new RegExp(os.source,\"g\");eu.interpolate=_r,eu.interpolators=[function(t,n){var e=typeof n;return(\"string\"===e?Qu.has(n.toLowerCase())||/^(#|rgb\\(|hsl\\()/i.test(n)?gr:vr:n instanceof ot?gr:Array.isArray(n)?br:\"object\"===e&&isNaN(n)?yr:mr)(t,n)}],eu.interpolateArray=br;var cs=function(){return _},ls=eu.map({linear:cs,poly:Sr,quad:function(){return kr},cubic:function(){return Er},sin:function(){return Dr},exp:function(){return Cr},circle:function(){return Tr},elastic:Fr,back:Or,bounce:function(){return Lr}}),hs=eu.map({\"in\":_,out:wr,\"in-out\":Ar,\"out-in\":function(t){return Ar(wr(t))}});eu.ease=function(t){var n=t.indexOf(\"-\"),e=n>=0?t.slice(0,n):t,r=n>=0?t.slice(n+1):\"in\";return e=ls.get(e)||cs,r=hs.get(r)||_,xr(r(e.apply(null,ru.call(arguments,1))))},eu.interpolateHcl=Ir,eu.interpolateHsl=Br,eu.interpolateLab=Nr,eu.interpolateRound=Pr,eu.transform=function(t){var n=au.createElementNS(eu.ns.prefix.svg,\"g\");return(eu.transform=function(t){if(null!=t){n.setAttribute(\"transform\",t);var e=n.transform.baseVal.consolidate()}return new Rr(e?e.matrix:fs)})(t)},Rr.prototype.toString=function(){return\"translate(\"+this.translate+\")rotate(\"+this.rotate+\")skewX(\"+this.skew+\")scale(\"+this.scale+\")\"};var fs={a:1,b:0,c:0,d:1,e:0,f:0};eu.interpolateTransform=$r,eu.layout={},eu.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;++e<r;)n.push(qr(t[e]));return n}},eu.layout.chord=function(){function t(){var t,c,h,f,d,p={},g=[],y=eu.range(a),m=[];for(e=[],r=[],t=0,f=-1;++f<a;){for(c=0,d=-1;++d<a;)c+=i[f][d];g.push(c),m.push(eu.range(a)),t+=c}for(u&&y.sort(function(t,n){return u(g[t],g[n])}),o&&m.forEach(function(t,n){t.sort(function(t,e){return o(i[n][t],i[n][e])})}),t=(Lu-l*a)/t,c=0,f=-1;++f<a;){for(h=c,d=-1;++d<a;){var v=y[f],_=m[v][d],b=i[v][_],x=c,w=c+=b*t;p[v+\"-\"+_]={index:v,subindex:_,startAngle:x,endAngle:w,value:b}}r[v]={index:v,startAngle:h,endAngle:c,value:(c-h)/t},c+=l}for(f=-1;++f<a;)for(d=f-1;++d<a;){var A=p[f+\"-\"+d],k=p[d+\"-\"+f];(A.value||k.value)&&e.push(A.value<k.value?{source:k,target:A}:{source:A,target:k})}s&&n()}function n(){e.sort(function(t,n){return s((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var e,r,i,a,u,o,s,c={},l=0;return c.matrix=function(t){return arguments.length?(a=(i=t)&&i.length,e=r=null,c):i},c.padding=function(t){return arguments.length?(l=t,e=r=null,c):l},c.sortGroups=function(t){return arguments.length?(u=t,e=r=null,c):u},c.sortSubgroups=function(t){return arguments.length?(o=t,e=null,c):o},c.sortChords=function(t){return arguments.length?(s=t,e&&n(),c):s},c.chords=function(){return e||t(),e},c.groups=function(){return r||t(),r},c},eu.layout.force=function(){function t(t){return function(n,e,r,i){if(n.point!==t){var a=n.cx-t.x,u=n.cy-t.y,o=i-e,s=a*a+u*u;if(s>o*o/y){if(p>s){var c=n.charge/s;t.px-=a*c,t.py-=u*c}return!0}if(n.point&&s&&p>s){var c=n.pointCharge/s;t.px-=a*c,t.py-=u*c}}return!n.charge}}function n(t){t.px=eu.event.x,t.py=eu.event.y,o.resume()}var e,r,i,a,u,o={},s=eu.dispatch(\"start\",\"tick\",\"end\"),c=[1,1],l=.9,h=ds,f=ps,d=-30,p=gs,g=.1,y=.64,m=[],v=[];return o.tick=function(){if((r*=.99)<.005)return s.end({type:\"end\",alpha:r=0}),!0;var n,e,o,h,f,p,y,_,b,x=m.length,w=v.length;for(e=0;w>e;++e)o=v[e],h=o.source,f=o.target,_=f.x-h.x,b=f.y-h.y,(p=_*_+b*b)&&(p=r*a[e]*((p=Math.sqrt(p))-i[e])/p,_*=p,b*=p,f.x-=_*(y=h.weight/(f.weight+h.weight)),f.y-=b*y,h.x+=_*(y=1-y),h.y+=b*y);if((y=r*g)&&(_=c[0]/2,b=c[1]/2,e=-1,y))for(;++e<x;)o=m[e],o.x+=(_-o.x)*y,o.y+=(b-o.y)*y;if(d)for(Qr(n=eu.geom.quadtree(m),r,u),e=-1;++e<x;)(o=m[e]).fixed||n.visit(t(o));for(e=-1;++e<x;)o=m[e],o.fixed?(o.x=o.px,o.y=o.py):(o.x-=(o.px-(o.px=o.x))*l,o.y-=(o.py-(o.py=o.y))*l);s.tick({type:\"tick\",alpha:r})},o.nodes=function(t){return arguments.length?(m=t,o):m},o.links=function(t){return arguments.length?(v=t,o):v},o.size=function(t){return arguments.length?(c=t,o):c},o.linkDistance=function(t){return arguments.length?(h=\"function\"==typeof t?t:+t,o):h},o.distance=o.linkDistance,o.linkStrength=function(t){return arguments.length?(f=\"function\"==typeof t?t:+t,o):f},o.friction=function(t){return arguments.length?(l=+t,o):l},o.charge=function(t){return arguments.length?(d=\"function\"==typeof t?t:+t,o):d},o.chargeDistance=function(t){return arguments.length?(p=t*t,o):Math.sqrt(p)},o.gravity=function(t){return arguments.length?(g=+t,o):g},o.theta=function(t){return arguments.length?(y=t*t,o):Math.sqrt(y)},o.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(s.start({type:\"start\",alpha:r=t}),eu.timer(o.tick)),o):r},o.start=function(){function t(t,r){if(!e){for(e=new Array(s),o=0;s>o;++o)e[o]=[];for(o=0;l>o;++o){var i=v[o];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,u=e[n],o=-1,c=u.length;++o<c;)if(!isNaN(a=u[o][t]))return a;return Math.random()*r}var n,e,r,s=m.length,l=v.length,p=c[0],g=c[1];for(n=0;s>n;++n)(r=m[n]).index=n,r.weight=0;for(n=0;l>n;++n)r=v[n],\"number\"==typeof r.source&&(r.source=m[r.source]),\"number\"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(n=0;s>n;++n)r=m[n],isNaN(r.x)&&(r.x=t(\"x\",p)),isNaN(r.y)&&(r.y=t(\"y\",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],\"function\"==typeof h)for(n=0;l>n;++n)i[n]=+h.call(this,v[n],n);else for(n=0;l>n;++n)i[n]=h;if(a=[],\"function\"==typeof f)for(n=0;l>n;++n)a[n]=+f.call(this,v[n],n);else for(n=0;l>n;++n)a[n]=f;if(u=[],\"function\"==typeof d)for(n=0;s>n;++n)u[n]=+d.call(this,m[n],n);else for(n=0;s>n;++n)u[n]=d;return o.resume()},o.resume=function(){return o.alpha(.1)},o.stop=function(){return o.alpha(0)},o.drag=function(){return e||(e=eu.behavior.drag().origin(_).on(\"dragstart.force\",Hr).on(\"drag.force\",n).on(\"dragend.force\",Zr)),arguments.length?void this.on(\"mouseover.force\",Xr).on(\"mouseout.force\",Kr).call(e):e},eu.rebind(o,s,\"on\")};var ds=20,ps=1,gs=1/0;eu.layout.hierarchy=function(){function t(i){var a,u=[i],o=[];for(i.depth=0;null!=(a=u.pop());)if(o.push(a),(c=e.call(t,a,a.depth))&&(s=c.length)){for(var s,c,l;--s>=0;)u.push(l=c[s]),l.parent=a,l.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(t,a,a.depth)||0),delete a.children;return ni(i,function(t){var e,i;n&&(e=t.children)&&e.sort(n),r&&(i=t.parent)&&(i.value+=t.value)}),o}var n=ii,e=ei,r=ri;return t.sort=function(e){return arguments.length?(n=e,t):n},t.children=function(n){return arguments.length?(e=n,t):e},t.value=function(n){return arguments.length?(r=n,t):r},t.revalue=function(n){return r&&(ti(n,function(t){t.children&&(t.value=0)}),ni(n,function(n){var e;n.children||(n.value=+r.call(t,n,n.depth)||0),(e=n.parent)&&(e.value+=n.value)})),n},t},eu.layout.partition=function(){function t(n,e,r,i){var a=n.children;if(n.x=e,n.y=n.depth*i,n.dx=r,n.dy=i,a&&(u=a.length)){var u,o,s,c=-1;for(r=n.value?r/n.value:0;++c<u;)t(o=a[c],e,s=o.value*r,i),e+=s}}function n(t){var e=t.children,r=0;if(e&&(i=e.length))for(var i,a=-1;++a<i;)r=Math.max(r,n(e[a]));return 1+r}function e(e,a){var u=r.call(this,e,a);return t(u[0],0,i[0],i[1]/n(u[0])),u}var r=eu.layout.hierarchy(),i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},Jr(e,r)},eu.layout.pie=function(){function t(u){var o,s=u.length,c=u.map(function(e,r){return+n.call(t,e,r)}),l=+(\"function\"==typeof r?r.apply(this,arguments):r),h=(\"function\"==typeof i?i.apply(this,arguments):i)-l,f=Math.min(Math.abs(h)/s,+(\"function\"==typeof a?a.apply(this,arguments):a)),d=f*(0>h?-1:1),p=(h-s*d)/eu.sum(c),g=eu.range(s),y=[];return null!=e&&g.sort(e===ys?function(t,n){return c[n]-c[t]}:function(t,n){return e(u[t],u[n])}),g.forEach(function(t){y[t]={data:u[t],value:o=c[t],startAngle:l,endAngle:l+=o*p+d,padAngle:f}}),y}var n=Number,e=ys,r=0,i=Lu,a=0;return t.value=function(e){return arguments.length?(n=e,t):n},t.sort=function(n){return arguments.length?(e=n,t):e},t.startAngle=function(n){return arguments.length?(r=n,t):r},t.endAngle=function(n){return arguments.length?(i=n,t):i},t.padAngle=function(n){return arguments.length?(a=n,t):a},t};var ys={};eu.layout.stack=function(){function t(o,s){if(!(f=o.length))return o;var c=o.map(function(e,r){return n.call(t,e,r)}),l=c.map(function(n){return n.map(function(n,e){return[a.call(t,n,e),u.call(t,n,e)]})}),h=e.call(t,l,s);c=eu.permute(c,h),l=eu.permute(l,h);var f,d,p,g,y=r.call(t,l,s),m=c[0].length;for(p=0;m>p;++p)for(i.call(t,c[0][p],g=y[p],l[0][p][1]),d=1;f>d;++d)i.call(t,c[d][p],g+=l[d-1][p][1],l[d][p][1]);return o}var n=_,e=ci,r=li,i=si,a=ui,u=oi;return t.values=function(e){return arguments.length?(n=e,t):n},t.order=function(n){return arguments.length?(e=\"function\"==typeof n?n:ms.get(n)||ci,t):e},t.offset=function(n){return arguments.length?(r=\"function\"==typeof n?n:vs.get(n)||li,t):r},t.x=function(n){return arguments.length?(a=n,t):a},t.y=function(n){return arguments.length?(u=n,t):u},t.out=function(n){return arguments.length?(i=n,t):i},t};var ms=eu.map({\"inside-out\":function(t){var n,e,r=t.length,i=t.map(hi),a=t.map(fi),u=eu.range(r).sort(function(t,n){return i[t]-i[n]}),o=0,s=0,c=[],l=[];for(n=0;r>n;++n)e=u[n],s>o?(o+=a[e],c.push(e)):(s+=a[e],l.push(e));return l.reverse().concat(c)},reverse:function(t){return eu.range(t.length).reverse()},\"default\":ci}),vs=eu.map({silhouette:function(t){var n,e,r,i=t.length,a=t[0].length,u=[],o=0,s=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];r>o&&(o=r),u.push(r)}for(e=0;a>e;++e)s[e]=(o-u[e])/2;return s},wiggle:function(t){var n,e,r,i,a,u,o,s,c,l=t.length,h=t[0],f=h.length,d=[];for(d[0]=s=c=0,e=1;f>e;++e){for(n=0,i=0;l>n;++n)i+=t[n][e][1];for(n=0,a=0,o=h[e][0]-h[e-1][0];l>n;++n){for(r=0,u=(t[n][e][1]-t[n][e-1][1])/(2*o);n>r;++r)u+=(t[r][e][1]-t[r][e-1][1])/o;a+=u*t[n][e][1]}d[e]=s-=i?a/i*o:0,c>s&&(c=s)}for(e=0;f>e;++e)d[e]-=c;return d},expand:function(t){var n,e,r,i=t.length,a=t[0].length,u=1/i,o=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];if(r)for(n=0;i>n;n++)t[n][e][1]/=r;else for(n=0;i>n;n++)t[n][e][1]=u}for(e=0;a>e;++e)o[e]=0;return o},zero:li});eu.layout.histogram=function(){function t(t,a){for(var u,o,s=[],c=t.map(e,this),l=r.call(this,c,a),h=i.call(this,l,c,a),a=-1,f=c.length,d=h.length-1,p=n?1:1/f;++a<d;)u=s[a]=[],u.dx=h[a+1]-(u.x=h[a]),u.y=0;if(d>0)for(a=-1;++a<f;)o=c[a],o>=l[0]&&o<=l[1]&&(u=s[eu.bisect(h,o,1,d)-1],u.y+=p,u.push(t[a]));return s}var n=!0,e=Number,r=yi,i=pi;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=St(n),t):r},t.bins=function(n){return arguments.length?(i=\"number\"==typeof n?function(t){return gi(t,n)}:St(n),t):i},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},eu.layout.pack=function(){function t(t,a){var u=e.call(this,t,a),o=u[0],s=i[0],c=i[1],l=null==n?Math.sqrt:\"function\"==typeof n?n:function(){return n};if(o.x=o.y=0,ni(o,function(t){t.r=+l(t.value)}),ni(o,xi),r){var h=r*(n?1:Math.max(2*o.r/s,2*o.r/c))/2;ni(o,function(t){t.r+=h;\n\n}),ni(o,xi),ni(o,function(t){t.r-=h})}return ki(o,s/2,c/2,n?1:1/Math.max(2*o.r/s,2*o.r/c)),u}var n,e=eu.layout.hierarchy().sort(mi),r=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},t.radius=function(e){return arguments.length?(n=null==e||\"function\"==typeof e?e:+e,t):n},t.padding=function(n){return arguments.length?(r=+n,t):r},Jr(t,e)},eu.layout.tree=function(){function t(t,i){var l=u.call(this,t,i),h=l[0],f=n(h);if(ni(f,e),f.parent.m=-f.z,ti(f,r),c)ti(h,a);else{var d=h,p=h,g=h;ti(h,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var y=o(d,p)/2-d.x,m=s[0]/(p.x+o(p,d)/2+y),v=s[1]/(g.depth||1);ti(h,function(t){t.x=(t.x+y)*m,t.y=t.depth*v})}return l}function n(t){for(var n,e={A:null,children:[t]},r=[e];null!=(n=r.pop());)for(var i,a=n.children,u=0,o=a.length;o>u;++u)r.push((a[u]=i={_:a[u],parent:n,children:(i=a[u].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:u}).a=i);return e.children[0]}function e(t){var n=t.children,e=t.parent.children,r=t.i?e[t.i-1]:null;if(n.length){Ti(t);var a=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+o(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+o(t._,r._));t.parent.A=i(t,r,t.parent.A||e[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,n,e){if(n){for(var r,i=t,a=t,u=n,s=i.parent.children[0],c=i.m,l=a.m,h=u.m,f=s.m;u=Di(u),i=Si(i),u&&i;)s=Si(s),a=Di(a),a.a=t,r=u.z+h-i.z-c+o(u._,i._),r>0&&(Ci(Fi(u,t,e),t,r),c+=r,l+=r),h+=u.m,c+=i.m,f+=s.m,l+=a.m;u&&!Di(a)&&(a.t=u,a.m+=h-l),i&&!Si(s)&&(s.t=i,s.m+=c-f,e=t)}return e}function a(t){t.x*=s[0],t.y=t.depth*s[1]}var u=eu.layout.hierarchy().sort(null).value(null),o=Mi,s=[1,1],c=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(c=null==(s=n)?a:null,t):c?null:s},t.nodeSize=function(n){return arguments.length?(c=null==(s=n)?null:a,t):c?s:null},Jr(t,u)},eu.layout.cluster=function(){function t(t,a){var u,o=n.call(this,t,a),s=o[0],c=0;ni(s,function(t){var n=t.children;n&&n.length?(t.x=Li(n),t.y=Oi(n)):(t.x=u?c+=e(t,u):0,t.y=0,u=t)});var l=Ii(s),h=Bi(s),f=l.x-e(l,h)/2,d=h.x+e(h,l)/2;return ni(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-f)/(d-f)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),o}var n=eu.layout.hierarchy().sort(null).value(null),e=Mi,r=[1,1],i=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(i=null==(r=n),t):i?null:r},t.nodeSize=function(n){return arguments.length?(i=null!=(r=n),t):i?r:null},Jr(t,n)},eu.layout.treemap=function(){function t(t,n){for(var e,r,i=-1,a=t.length;++i<a;)r=(e=t[i]).value*(0>n?0:n),e.area=isNaN(r)||0>=r?0:r}function n(e){var a=e.children;if(a&&a.length){var u,o,s,c=h(e),l=[],f=a.slice(),p=1/0,g=\"slice\"===d?c.dx:\"dice\"===d?c.dy:\"slice-dice\"===d?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(f,c.dx*c.dy/e.value),l.area=0;(s=f.length)>0;)l.push(u=f[s-1]),l.area+=u.area,\"squarify\"!==d||(o=r(l,g))<=p?(f.pop(),p=o):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(n)}}function e(n){var r=n.children;if(r&&r.length){var a,u=h(n),o=r.slice(),s=[];for(t(o,u.dx*u.dy/n.value),s.area=0;a=o.pop();)s.push(a),s.area+=a.area,null!=a.z&&(i(s,a.z?u.dx:u.dy,u,!o.length),s.length=s.area=0);r.forEach(e)}}function r(t,n){for(var e,r=t.area,i=0,a=1/0,u=-1,o=t.length;++u<o;)(e=t[u].area)&&(a>e&&(a=e),e>i&&(i=e));return r*=r,n*=n,r?Math.max(n*i*p/r,r/(n*a*p)):1/0}function i(t,n,e,r){var i,a=-1,u=t.length,o=e.x,c=e.y,l=n?s(t.area/n):0;if(n==e.dx){for((r||l>e.dy)&&(l=e.dy);++a<u;)i=t[a],i.x=o,i.y=c,i.dy=l,o+=i.dx=Math.min(e.x+e.dx-o,l?s(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-o,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++a<u;)i=t[a],i.x=o,i.y=c,i.dx=l,c+=i.dy=Math.min(e.y+e.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=l,e.dx-=l}}function a(r){var i=u||o(r),a=i[0];return a.x=0,a.y=0,a.dx=c[0],a.dy=c[1],u&&o.revalue(a),t([a],a.dx*a.dy/a.value),(u?e:n)(a),f&&(u=i),i}var u,o=eu.layout.hierarchy(),s=Math.round,c=[1,1],l=null,h=Ni,f=!1,d=\"squarify\",p=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(c=t,a):c},a.padding=function(t){function n(n){var e=t.call(a,n,n.depth);return null==e?Ni(n):Pi(n,\"number\"==typeof e?[e,e,e,e]:e)}function e(n){return Pi(n,t)}if(!arguments.length)return l;var r;return h=null==(l=t)?Ni:\"function\"==(r=typeof t)?n:\"number\"===r?(t=[t,t,t,t],e):e,a},a.round=function(t){return arguments.length?(s=t?Math.round:Number,a):s!=Number},a.sticky=function(t){return arguments.length?(f=t,u=null,a):f},a.ratio=function(t){return arguments.length?(p=t,a):p},a.mode=function(t){return arguments.length?(d=t+\"\",a):d},Jr(a,o)},eu.random={normal:function(t,n){var e=arguments.length;return 2>e&&(n=1),1>e&&(t=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return t+n*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=eu.random.normal.apply(eu,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=eu.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,e=0;t>e;e++)n+=Math.random();return n}}},eu.scale={};var _s={floor:_,ceil:_};eu.scale.linear=function(){return zi([0,1],[0,1],_r,!1)};var bs={s:1,g:1,p:1,r:1,e:1};eu.scale.log=function(){return Qi(eu.scale.linear().domain([0,1]),10,!0,[1,10])};var xs=eu.format(\".0e\"),ws={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};eu.scale.pow=function(){return Ji(eu.scale.linear(),1,[0,1])},eu.scale.sqrt=function(){return eu.scale.pow().exponent(.5)},eu.scale.ordinal=function(){return na([],{t:\"range\",a:[[]]})},eu.scale.category10=function(){return eu.scale.ordinal().range(As)},eu.scale.category20=function(){return eu.scale.ordinal().range(ks)},eu.scale.category20b=function(){return eu.scale.ordinal().range(Es)},eu.scale.category20c=function(){return eu.scale.ordinal().range(Ms)};var As=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(bt),ks=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(bt),Es=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(bt),Ms=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(bt);eu.scale.quantile=function(){return ea([],[])},eu.scale.quantize=function(){return ra(0,1,[0,1])},eu.scale.threshold=function(){return ia([.5],[0,1])},eu.scale.identity=function(){return aa([0,1])},eu.svg={},eu.svg.arc=function(){function t(){var t=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),l=u.apply(this,arguments)-Bu,h=o.apply(this,arguments)-Bu,f=Math.abs(h-l),d=l>h?0:1;if(t>c&&(p=c,c=t,t=p),f>=Iu)return n(c,d)+(t?n(t,1-d):\"\")+\"Z\";var p,g,y,m,v,_,b,x,w,A,k,E,M=0,S=0,D=[];if((m=(+s.apply(this,arguments)||0)/2)&&(y=a===Ss?Math.sqrt(t*t+c*c):+a.apply(this,arguments),d||(S*=-1),c&&(S=et(y/c*Math.sin(m))),t&&(M=et(y/t*Math.sin(m)))),c){v=c*Math.cos(l+S),_=c*Math.sin(l+S),b=c*Math.cos(h-S),x=c*Math.sin(h-S);var C=Math.abs(h-l-2*S)<=Ou?0:1;if(S&&fa(v,_,b,x)===d^C){var T=(l+h)/2;v=c*Math.cos(T),_=c*Math.sin(T),b=x=null}}else v=_=0;if(t){w=t*Math.cos(h-M),A=t*Math.sin(h-M),k=t*Math.cos(l+M),E=t*Math.sin(l+M);var F=Math.abs(l-h+2*M)<=Ou?0:1;if(M&&fa(w,A,k,E)===1-d^F){var O=(l+h)/2;w=t*Math.cos(O),A=t*Math.sin(O),k=E=null}}else w=A=0;if((p=Math.min(Math.abs(c-t)/2,+i.apply(this,arguments)))>.001){g=c>t^d?0:1;var L=null==k?[w,A]:null==b?[v,_]:Ie([v,_],[k,E],[b,x],[w,A]),I=v-L[0],B=_-L[1],N=b-L[0],P=x-L[1],R=1/Math.sin(Math.acos((I*N+B*P)/(Math.sqrt(I*I+B*B)*Math.sqrt(N*N+P*P)))/2),j=Math.sqrt(L[0]*L[0]+L[1]*L[1]);if(null!=b){var Y=Math.min(p,(c-j)/(R+1)),U=da(null==k?[w,A]:[k,E],[v,_],c,Y,d),$=da([b,x],[w,A],c,Y,d);p===Y?D.push(\"M\",U[0],\"A\",Y,\",\",Y,\" 0 0,\",g,\" \",U[1],\"A\",c,\",\",c,\" 0 \",1-d^fa(U[1][0],U[1][1],$[1][0],$[1][1]),\",\",d,\" \",$[1],\"A\",Y,\",\",Y,\" 0 0,\",g,\" \",$[0]):D.push(\"M\",U[0],\"A\",Y,\",\",Y,\" 0 1,\",g,\" \",$[0])}else D.push(\"M\",v,\",\",_);if(null!=k){var W=Math.min(p,(t-j)/(R-1)),z=da([v,_],[k,E],t,-W,d),q=da([w,A],null==b?[v,_]:[b,x],t,-W,d);p===W?D.push(\"L\",q[0],\"A\",W,\",\",W,\" 0 0,\",g,\" \",q[1],\"A\",t,\",\",t,\" 0 \",d^fa(q[1][0],q[1][1],z[1][0],z[1][1]),\",\",1-d,\" \",z[1],\"A\",W,\",\",W,\" 0 0,\",g,\" \",z[0]):D.push(\"L\",q[0],\"A\",W,\",\",W,\" 0 0,\",g,\" \",z[0])}else D.push(\"L\",w,\",\",A)}else D.push(\"M\",v,\",\",_),null!=b&&D.push(\"A\",c,\",\",c,\" 0 \",C,\",\",d,\" \",b,\",\",x),D.push(\"L\",w,\",\",A),null!=k&&D.push(\"A\",t,\",\",t,\" 0 \",F,\",\",1-d,\" \",k,\",\",E);return D.push(\"Z\"),D.join(\"\")}function n(t,n){return\"M0,\"+t+\"A\"+t+\",\"+t+\" 0 1,\"+n+\" 0,\"+-t+\"A\"+t+\",\"+t+\" 0 1,\"+n+\" 0,\"+t}var e=oa,r=sa,i=ua,a=Ss,u=ca,o=la,s=ha;return t.innerRadius=function(n){return arguments.length?(e=St(n),t):e},t.outerRadius=function(n){return arguments.length?(r=St(n),t):r},t.cornerRadius=function(n){return arguments.length?(i=St(n),t):i},t.padRadius=function(n){return arguments.length?(a=n==Ss?Ss:St(n),t):a},t.startAngle=function(n){return arguments.length?(u=St(n),t):u},t.endAngle=function(n){return arguments.length?(o=St(n),t):o},t.padAngle=function(n){return arguments.length?(s=St(n),t):s},t.centroid=function(){var t=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,n=(+u.apply(this,arguments)+ +o.apply(this,arguments))/2-Bu;return[Math.cos(n)*t,Math.sin(n)*t]},t};var Ss=\"auto\";eu.svg.line=function(){return pa(_)};var Ds=eu.map({linear:ga,\"linear-closed\":ya,step:ma,\"step-before\":va,\"step-after\":_a,basis:Ea,\"basis-open\":Ma,\"basis-closed\":Sa,bundle:Da,cardinal:wa,\"cardinal-open\":ba,\"cardinal-closed\":xa,monotone:Ia});Ds.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var Cs=[0,2/3,1/3,0],Ts=[0,1/3,2/3,0],Fs=[0,1/6,2/3,1/6];eu.svg.line.radial=function(){var t=pa(Ba);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},va.reverse=_a,_a.reverse=va,eu.svg.area=function(){return Na(_)},eu.svg.area.radial=function(){var t=Na(Ba);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},eu.svg.chord=function(){function t(t,o){var s=n(this,a,t,o),c=n(this,u,t,o);return\"M\"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(e(s,c)?i(s.r,s.p1,s.r,s.p0):i(s.r,s.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,s.r,s.p0))+\"Z\"}function n(t,n,e,r){var i=n.call(t,e,r),a=o.call(t,i,r),u=s.call(t,i,r)-Bu,l=c.call(t,i,r)-Bu;return{r:a,a0:u,a1:l,p0:[a*Math.cos(u),a*Math.sin(u)],p1:[a*Math.cos(l),a*Math.sin(l)]}}function e(t,n){return t.a0==n.a0&&t.a1==n.a1}function r(t,n,e){return\"A\"+t+\",\"+t+\" 0 \"+ +(e>Ou)+\",1 \"+n}function i(t,n,e,r){return\"Q 0,0 \"+r}var a=_e,u=be,o=Pa,s=ca,c=la;return t.radius=function(n){return arguments.length?(o=St(n),t):o},t.source=function(n){return arguments.length?(a=St(n),t):a},t.target=function(n){return arguments.length?(u=St(n),t):u},t.startAngle=function(n){return arguments.length?(s=St(n),t):s},t.endAngle=function(n){return arguments.length?(c=St(n),t):c},t},eu.svg.diagonal=function(){function t(t,i){var a=n.call(this,t,i),u=e.call(this,t,i),o=(a.y+u.y)/2,s=[a,{x:a.x,y:o},{x:u.x,y:o},u];return s=s.map(r),\"M\"+s[0]+\"C\"+s[1]+\" \"+s[2]+\" \"+s[3]}var n=_e,e=be,r=Ra;return t.source=function(e){return arguments.length?(n=St(e),t):n},t.target=function(n){return arguments.length?(e=St(n),t):e},t.projection=function(n){return arguments.length?(r=n,t):r},t},eu.svg.diagonal.radial=function(){var t=eu.svg.diagonal(),n=Ra,e=t.projection;return t.projection=function(t){return arguments.length?e(ja(n=t)):n},t},eu.svg.symbol=function(){function t(t,r){return(Os.get(n.call(this,t,r))||$a)(e.call(this,t,r))}var n=Ua,e=Ya;return t.type=function(e){return arguments.length?(n=St(e),t):n},t.size=function(n){return arguments.length?(e=St(n),t):e},t};var Os=eu.map({circle:$a,cross:function(t){var n=Math.sqrt(t/5)/2;return\"M\"+-3*n+\",\"+-n+\"H\"+-n+\"V\"+-3*n+\"H\"+n+\"V\"+-n+\"H\"+3*n+\"V\"+n+\"H\"+n+\"V\"+3*n+\"H\"+-n+\"V\"+n+\"H\"+-3*n+\"Z\"},diamond:function(t){var n=Math.sqrt(t/(2*Is)),e=n*Is;return\"M0,\"+-n+\"L\"+e+\",0 0,\"+n+\" \"+-e+\",0Z\"},square:function(t){var n=Math.sqrt(t)/2;return\"M\"+-n+\",\"+-n+\"L\"+n+\",\"+-n+\" \"+n+\",\"+n+\" \"+-n+\",\"+n+\"Z\"},\"triangle-down\":function(t){var n=Math.sqrt(t/Ls),e=n*Ls/2;return\"M0,\"+e+\"L\"+n+\",\"+-e+\" \"+-n+\",\"+-e+\"Z\"},\"triangle-up\":function(t){var n=Math.sqrt(t/Ls),e=n*Ls/2;return\"M0,\"+-e+\"L\"+n+\",\"+e+\" \"+-n+\",\"+e+\"Z\"}});eu.svg.symbolTypes=Os.keys();var Ls=Math.sqrt(3),Is=Math.tan(30*Nu);Au.transition=function(t){for(var n,e,r=Bs||++js,i=Va(t),a=[],u=Ns||{time:Date.now(),ease:Mr,delay:0,duration:250},o=-1,s=this.length;++o<s;){a.push(n=[]);for(var c=this[o],l=-1,h=c.length;++l<h;)(e=c[l])&&Ha(e,l,i,r,u),n.push(e)}return za(a,i,r)},Au.interrupt=function(t){return this.each(null==t?Ps:Wa(Va(t)))};var Bs,Ns,Ps=Wa(Va()),Rs=[],js=0;Rs.call=Au.call,Rs.empty=Au.empty,Rs.node=Au.node,Rs.size=Au.size,eu.transition=function(t,n){return t&&t.transition?Bs?t.transition(n):t:eu.selection().transition(t)},eu.transition.prototype=Rs,Rs.select=function(t){var n,e,r,i=this.id,a=this.namespace,u=[];t=C(t);for(var o=-1,s=this.length;++o<s;){u.push(n=[]);for(var c=this[o],l=-1,h=c.length;++l<h;)(r=c[l])&&(e=t.call(r,r.__data__,l,o))?(\"__data__\"in r&&(e.__data__=r.__data__),Ha(e,l,a,i,r[a][i]),n.push(e)):n.push(null)}return za(u,a,i)},Rs.selectAll=function(t){var n,e,r,i,a,u=this.id,o=this.namespace,s=[];t=T(t);for(var c=-1,l=this.length;++c<l;)for(var h=this[c],f=-1,d=h.length;++f<d;)if(r=h[f]){a=r[o][u],e=t.call(r,r.__data__,f,c),s.push(n=[]);for(var p=-1,g=e.length;++p<g;)(i=e[p])&&Ha(i,p,o,u,a),n.push(i)}return za(s,o,u)},Rs.filter=function(t){var n,e,r,i=[];\"function\"!=typeof t&&(t=$(t));for(var a=0,u=this.length;u>a;a++){i.push(n=[]);for(var e=this[a],o=0,s=e.length;s>o;o++)(r=e[o])&&t.call(r,r.__data__,o,a)&&n.push(r)}return za(i,this.namespace,this.id)},Rs.tween=function(t,n){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(t):z(this,null==n?function(n){n[r][e].tween.remove(t)}:function(i){i[r][e].tween.set(t,n)})},Rs.attr=function(t,n){function e(){this.removeAttribute(o)}function r(){this.removeAttributeNS(o.space,o.local)}function i(t){return null==t?e:(t+=\"\",function(){var n,e=this.getAttribute(o);return e!==t&&(n=u(e,t),function(t){this.setAttribute(o,n(t))})})}function a(t){return null==t?r:(t+=\"\",function(){var n,e=this.getAttributeNS(o.space,o.local);return e!==t&&(n=u(e,t),function(t){this.setAttributeNS(o.space,o.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var u=\"transform\"==t?$r:_r,o=eu.ns.qualify(t);return qa(this,\"attr.\"+t,n,o.local?a:i)},Rs.attrTween=function(t,n){function e(t,e){var r=n.call(this,t,e,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,e){var r=n.call(this,t,e,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=eu.ns.qualify(t);return this.tween(\"attr.\"+t,i.local?r:e)},Rs.style=function(t,n,r){function i(){this.style.removeProperty(t)}function a(n){return null==n?i:(n+=\"\",function(){var i,a=e(this).getComputedStyle(this,null).getPropertyValue(t);return a!==n&&(i=_r(a,n),function(n){this.style.setProperty(t,i(n),r)})})}var u=arguments.length;if(3>u){if(\"string\"!=typeof t){2>u&&(n=\"\");for(r in t)this.style(r,t[r],n);return this}r=\"\"}return qa(this,\"style.\"+t,n,a)},Rs.styleTween=function(t,n,r){function i(i,a){var u=n.call(this,i,a,e(this).getComputedStyle(this,null).getPropertyValue(t));return u&&function(n){this.style.setProperty(t,u(n),r)}}return arguments.length<3&&(r=\"\"),this.tween(\"style.\"+t,i)},Rs.text=function(t){return qa(this,\"text\",t,Ga)},Rs.remove=function(){var t=this.namespace;return this.each(\"end.transition\",function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)})},Rs.ease=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].ease:(\"function\"!=typeof t&&(t=eu.ease.apply(eu,arguments)),z(this,function(r){r[e][n].ease=t}))},Rs.delay=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].delay:z(this,\"function\"==typeof t?function(r,i,a){r[e][n].delay=+t.call(r,r.__data__,i,a)}:(t=+t,function(r){r[e][n].delay=t}))},Rs.duration=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].duration:z(this,\"function\"==typeof t?function(r,i,a){r[e][n].duration=Math.max(1,t.call(r,r.__data__,i,a))}:(t=Math.max(1,t),function(r){r[e][n].duration=t}))},Rs.each=function(t,n){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Ns,a=Bs;try{Bs=e,z(this,function(n,i,a){Ns=n[r][e],t.call(n,n.__data__,i,a)})}finally{Ns=i,Bs=a}}else z(this,function(i){var a=i[r][e];(a.event||(a.event=eu.dispatch(\"start\",\"end\",\"interrupt\"))).on(t,n)});return this},Rs.transition=function(){for(var t,n,e,r,i=this.id,a=++js,u=this.namespace,o=[],s=0,c=this.length;c>s;s++){o.push(t=[]);for(var n=this[s],l=0,h=n.length;h>l;l++)(e=n[l])&&(r=e[u][i],Ha(e,l,u,a,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(e)}return za(o,u,a)},eu.svg.axis=function(){function t(t){t.each(function(){var t,c=eu.select(this),l=this.__chart__||e,h=this.__chart__=e.copy(),f=null==s?h.ticks?h.ticks.apply(h,o):h.domain():s,d=null==n?h.tickFormat?h.tickFormat.apply(h,o):_:n,p=c.selectAll(\".tick\").data(f,h),g=p.enter().insert(\"g\",\".domain\").attr(\"class\",\"tick\").style(\"opacity\",Tu),y=eu.transition(p.exit()).style(\"opacity\",Tu).remove(),m=eu.transition(p.order()).style(\"opacity\",1),v=Math.max(i,0)+u,b=ji(h),x=c.selectAll(\".domain\").data([0]),w=(x.enter().append(\"path\").attr(\"class\",\"domain\"),eu.transition(x));g.append(\"line\"),g.append(\"text\");var A,k,E,M,S=g.select(\"line\"),D=m.select(\"line\"),C=p.select(\"text\").text(d),T=g.select(\"text\"),F=m.select(\"text\"),O=\"top\"===r||\"left\"===r?-1:1;if(\"bottom\"===r||\"top\"===r?(t=Za,A=\"x\",E=\"y\",k=\"x2\",M=\"y2\",C.attr(\"dy\",0>O?\"0em\":\".71em\").style(\"text-anchor\",\"middle\"),w.attr(\"d\",\"M\"+b[0]+\",\"+O*a+\"V0H\"+b[1]+\"V\"+O*a)):(t=Xa,A=\"y\",E=\"x\",k=\"y2\",M=\"x2\",C.attr(\"dy\",\".32em\").style(\"text-anchor\",0>O?\"end\":\"start\"),w.attr(\"d\",\"M\"+O*a+\",\"+b[0]+\"H0V\"+b[1]+\"H\"+O*a)),S.attr(M,O*i),T.attr(E,O*v),D.attr(k,0).attr(M,O*i),F.attr(A,0).attr(E,O*v),h.rangeBand){var L=h,I=L.rangeBand()/2;l=h=function(t){return L(t)+I}}else l.rangeBand?l=h:y.call(t,h,l);g.call(t,l,h),m.call(t,h,h)})}var n,e=eu.scale.linear(),r=Ys,i=6,a=6,u=3,o=[10],s=null;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in Us?n+\"\":Ys,t):r},t.ticks=function(){return arguments.length?(o=arguments,t):o},t.tickValues=function(n){return arguments.length?(s=n,t):s},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n){var e=arguments.length;return e?(i=+n,a=+arguments[e-1],t):i},t.innerTickSize=function(n){return arguments.length?(i=+n,t):i},t.outerTickSize=function(n){return arguments.length?(a=+n,t):a},t.tickPadding=function(n){return arguments.length?(u=+n,t):u},t.tickSubdivide=function(){return arguments.length&&t},t};var Ys=\"bottom\",Us={top:1,right:1,bottom:1,left:1};eu.svg.brush=function(){function t(e){e.each(function(){var e=eu.select(this).style(\"pointer-events\",\"all\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\").on(\"mousedown.brush\",a).on(\"touchstart.brush\",a),u=e.selectAll(\".background\").data([0]);u.enter().append(\"rect\").attr(\"class\",\"background\").style(\"visibility\",\"hidden\").style(\"cursor\",\"crosshair\"),e.selectAll(\".extent\").data([0]).enter().append(\"rect\").attr(\"class\",\"extent\").style(\"cursor\",\"move\");var o=e.selectAll(\".resize\").data(g,_);o.exit().remove(),o.enter().append(\"g\").attr(\"class\",function(t){return\"resize \"+t}).style(\"cursor\",function(t){return $s[t]}).append(\"rect\").attr(\"x\",function(t){return/[ew]$/.test(t)?-3:null}).attr(\"y\",function(t){return/^[ns]/.test(t)?-3:null}).attr(\"width\",6).attr(\"height\",6).style(\"visibility\",\"hidden\"),o.style(\"display\",t.empty()?\"none\":null);var s,h=eu.transition(e),f=eu.transition(u);c&&(s=ji(c),f.attr(\"x\",s[0]).attr(\"width\",s[1]-s[0]),r(h)),l&&(s=ji(l),f.attr(\"y\",s[0]).attr(\"height\",s[1]-s[0]),i(h)),n(h)})}function n(t){t.selectAll(\".resize\").attr(\"transform\",function(t){return\"translate(\"+h[+/e$/.test(t)]+\",\"+f[+/^s/.test(t)]+\")\"})}function r(t){t.select(\".extent\").attr(\"x\",h[0]),t.selectAll(\".extent,.n>rect,.s>rect\").attr(\"width\",h[1]-h[0])}function i(t){t.select(\".extent\").attr(\"y\",f[0]),t.selectAll(\".extent,.e>rect,.w>rect\").attr(\"height\",f[1]-f[0])}function a(){function a(){32==eu.event.keyCode&&(C||(_=null,F[0]-=h[1],F[1]-=f[1],C=2),E())}function g(){32==eu.event.keyCode&&2==C&&(F[0]+=h[1],F[1]+=f[1],C=0,E())}function y(){var t=eu.mouse(x),e=!1;b&&(t[0]+=b[0],t[1]+=b[1]),C||(eu.event.altKey?(_||(_=[(h[0]+h[1])/2,(f[0]+f[1])/2]),F[0]=h[+(t[0]<_[0])],F[1]=f[+(t[1]<_[1])]):_=null),S&&m(t,c,0)&&(r(k),e=!0),D&&m(t,l,1)&&(i(k),e=!0),e&&(n(k),A({type:\"brush\",mode:C?\"move\":\"resize\"}))}function m(t,n,e){var r,i,a=ji(n),s=a[0],c=a[1],l=F[e],g=e?f:h,y=g[1]-g[0];return C&&(s-=l,c-=y+l),r=(e?p:d)?Math.max(s,Math.min(c,t[e])):t[e],C?i=(r+=l)+y:(_&&(l=Math.max(s,Math.min(c,2*_[e]-r))),r>l?(i=r,r=l):i=l),g[0]!=r||g[1]!=i?(e?o=null:u=null,g[0]=r,g[1]=i,!0):void 0}function v(){y(),k.style(\"pointer-events\",\"all\").selectAll(\".resize\").style(\"display\",t.empty()?\"none\":null),eu.select(\"body\").style(\"cursor\",null),O.on(\"mousemove.brush\",null).on(\"mouseup.brush\",null).on(\"touchmove.brush\",null).on(\"touchend.brush\",null).on(\"keydown.brush\",null).on(\"keyup.brush\",null),T(),A({type:\"brushend\"})}var _,b,x=this,w=eu.select(eu.event.target),A=s.of(x,arguments),k=eu.select(x),M=w.datum(),S=!/^(n|s)$/.test(M)&&c,D=!/^(e|w)$/.test(M)&&l,C=w.classed(\"extent\"),T=X(x),F=eu.mouse(x),O=eu.select(e(x)).on(\"keydown.brush\",a).on(\"keyup.brush\",g);if(eu.event.changedTouches?O.on(\"touchmove.brush\",y).on(\"touchend.brush\",v):O.on(\"mousemove.brush\",y).on(\"mouseup.brush\",v),k.interrupt().selectAll(\"*\").interrupt(),C)F[0]=h[0]-F[0],F[1]=f[0]-F[1];else if(M){var L=+/w$/.test(M),I=+/^n/.test(M);b=[h[1-L]-F[0],f[1-I]-F[1]],F[0]=h[L],F[1]=f[I]}else eu.event.altKey&&(_=F.slice());k.style(\"pointer-events\",\"none\").selectAll(\".resize\").style(\"display\",null),eu.select(\"body\").style(\"cursor\",w.style(\"cursor\")),A({type:\"brushstart\"}),y()}var u,o,s=S(t,\"brushstart\",\"brush\",\"brushend\"),c=null,l=null,h=[0,0],f=[0,0],d=!0,p=!0,g=Ws[0];return t.event=function(t){t.each(function(){var t=s.of(this,arguments),n={x:h,y:f,i:u,j:o},e=this.__chart__||n;this.__chart__=n,Bs?eu.select(this).transition().each(\"start.brush\",function(){u=e.i,o=e.j,h=e.x,f=e.y,t({type:\"brushstart\"})}).tween(\"brush:brush\",function(){var e=br(h,n.x),r=br(f,n.y);return u=o=null,function(i){h=n.x=e(i),f=n.y=r(i),t({type:\"brush\",mode:\"resize\"})}}).each(\"end.brush\",function(){u=n.i,o=n.j,t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"})}):(t({type:\"brushstart\"}),t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"}))})},t.x=function(n){return arguments.length?(c=n,g=Ws[!c<<1|!l],t):c},t.y=function(n){return arguments.length?(l=n,g=Ws[!c<<1|!l],t):l},t.clamp=function(n){return arguments.length?(c&&l?(d=!!n[0],p=!!n[1]):c?d=!!n:l&&(p=!!n),t):c&&l?[d,p]:c?d:l?p:null},t.extent=function(n){var e,r,i,a,s;return arguments.length?(c&&(e=n[0],r=n[1],l&&(e=e[0],r=r[0]),u=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(s=e,e=r,r=s),(e!=h[0]||r!=h[1])&&(h=[e,r])),l&&(i=n[0],a=n[1],c&&(i=i[1],a=a[1]),o=[i,a],l.invert&&(i=l(i),a=l(a)),i>a&&(s=i,i=a,a=s),(i!=f[0]||a!=f[1])&&(f=[i,a])),t):(c&&(u?(e=u[0],r=u[1]):(e=h[0],r=h[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(s=e,e=r,r=s))),l&&(o?(i=o[0],a=o[1]):(i=f[0],a=f[1],l.invert&&(i=l.invert(i),a=l.invert(a)),i>a&&(s=i,i=a,a=s))),c&&l?[[e,i],[r,a]]:c?[e,r]:l&&[i,a])},t.clear=function(){return t.empty()||(h=[0,0],f=[0,0],u=o=null),t},t.empty=function(){return!!c&&h[0]==h[1]||!!l&&f[0]==f[1]},eu.rebind(t,s,\"on\")};var $s={n:\"ns-resize\",e:\"ew-resize\",s:\"ns-resize\",w:\"ew-resize\",nw:\"nwse-resize\",ne:\"nesw-resize\",se:\"nwse-resize\",sw:\"nesw-resize\"},Ws=[[\"n\",\"e\",\"s\",\"w\",\"nw\",\"ne\",\"se\",\"sw\"],[\"e\",\"w\"],[\"n\",\"s\"],[]],zs=so.format=go.timeFormat,qs=zs.utc,Gs=qs(\"%Y-%m-%dT%H:%M:%S.%LZ\");zs.iso=Date.prototype.toISOString&&+new Date(\"2000-01-01T00:00:00.000Z\")?Ka:Gs,Ka.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},Ka.toString=Gs.toString,so.second=Yt(function(t){return new co(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),so.seconds=so.second.range,so.seconds.utc=so.second.utc.range,so.minute=Yt(function(t){return new co(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),so.minutes=so.minute.range,so.minutes.utc=so.minute.utc.range,so.hour=Yt(function(t){var n=t.getTimezoneOffset()/60;return new co(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),so.hours=so.hour.range,so.hours.utc=so.hour.utc.range,so.month=Yt(function(t){return t=so.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),so.months=so.month.range,so.months.utc=so.month.utc.range;var Vs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Hs=[[so.second,1],[so.second,5],[so.second,15],[so.second,30],[so.minute,1],[so.minute,5],[so.minute,15],[so.minute,30],[so.hour,1],[so.hour,3],[so.hour,6],[so.hour,12],[so.day,1],[so.day,2],[so.week,1],[so.month,1],[so.month,3],[so.year,1]],Zs=zs.multi([[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"%I:%M\",function(t){return t.getMinutes()}],[\"%I %p\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}],[\"%Y\",Tn]]),Xs={range:function(t,n,e){return eu.range(Math.ceil(t/e)*e,+n,e).map(Ja)},floor:_,ceil:_};Hs.year=so.year,so.scale=function(){return Qa(eu.scale.linear(),Hs,Zs)};var Ks=Hs.map(function(t){return[t[0].utc,t[1]]}),Qs=qs.multi([[\".%L\",function(t){return t.getUTCMilliseconds()}],[\":%S\",function(t){return t.getUTCSeconds()}],[\"%I:%M\",function(t){return t.getUTCMinutes()}],[\"%I %p\",function(t){return t.getUTCHours()}],[\"%a %d\",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[\"%b %d\",function(t){return 1!=t.getUTCDate()}],[\"%B\",function(t){return t.getUTCMonth()}],[\"%Y\",Tn]]);Ks.year=so.year.utc,so.scale.utc=function(){return Qa(eu.scale.linear(),Ks,Qs)},eu.text=Dt(function(t){return t.responseText}),eu.json=function(t,n){return Ct(t,\"application/json\",tu,n)},eu.html=function(t,n){return Ct(t,\"text/html\",nu,n)},eu.xml=Dt(function(t){return t.responseXML}),\"function\"==typeof define&&define.amd?define(eu):\"object\"==typeof n&&n.exports&&(n.exports=eu),this.d3=eu}()},{}],5:[function(t,n){n.exports={graphlib:t(\"./lib/graphlib\"),dagre:t(\"./lib/dagre\"),intersect:t(\"./lib/intersect\"),render:t(\"./lib/render\"),util:t(\"./lib/util\"),version:t(\"./lib/version\")}},{\"./lib/dagre\":12,\"./lib/graphlib\":13,\"./lib/intersect\":14,\"./lib/render\":29,\"./lib/util\":31,\"./lib/version\":32}],6:[function(t,n){function e(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),u=i.append(\"path\").attr(\"d\",\"M 0 0 L 10 5 L 0 10 z\").style(\"stroke-width\",1).style(\"stroke-dasharray\",\"1,0\");a.applyStyle(u,e[r+\"Style\"])}function r(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),u=i.append(\"path\").attr(\"d\",\"M 0 0 L 10 5 L 0 10 L 4 5 z\").style(\"stroke-width\",1).style(\"stroke-dasharray\",\"1,0\");a.applyStyle(u,e[r+\"Style\"])}function i(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),u=i.append(\"path\").attr(\"d\",\"M 0 5 L 10 5\").style(\"stroke-width\",1).style(\"stroke-dasharray\",\"1,0\");a.applyStyle(u,e[r+\"Style\"])}var a=t(\"./util\");n.exports={\"default\":e,normal:e,vee:r,undirected:i}},{\"./util\":31}],7:[function(t,n){function e(t,n){var e=n.nodes().filter(function(t){return r.isSubgraph(n,t)}),a=t.selectAll(\"g.cluster\").data(e,function(t){return t});return a.selectAll(\"*\").remove(),a.enter().append(\"g\").attr(\"class\",\"cluster\").attr(\"id\",function(t){var e=n.node(t);return e.id}).style(\"opacity\",0),r.applyTransition(a,n).style(\"opacity\",1),a.each(function(t){var e=n.node(t),r=d3.select(this);d3.select(this).append(\"rect\");var a=r.append(\"g\").attr(\"class\",\"label\");i(a,e,e.clusterLabelPos)}),a.selectAll(\"rect\").each(function(t){var e=n.node(t),i=d3.select(this);r.applyStyle(i,e.style)}),r.applyTransition(a.exit(),n).style(\"opacity\",0).remove(),a}var r=t(\"./util\"),i=t(\"./label/add-label\");n.exports=e},{\"./label/add-label\":22,\"./util\":31}],8:[function(t,n){\"use strict\";function e(t,n){var e=t.selectAll(\"g.edgeLabel\").data(n.edges(),function(t){return a.edgeToId(t)}).classed(\"update\",!0);return e.selectAll(\"*\").remove(),e.enter().append(\"g\").classed(\"edgeLabel\",!0).style(\"opacity\",0),e.each(function(t){var e=n.edge(t),a=i(u.select(this),n.edge(t),0,0).classed(\"label\",!0),o=a.node().getBBox();e.labelId&&a.attr(\"id\",e.labelId),r.has(e,\"width\")||(e.width=o.width),r.has(e,\"height\")||(e.height=o.height)}),a.applyTransition(e.exit(),n).style(\"opacity\",0).remove(),e}var r=t(\"./lodash\"),i=t(\"./label/add-label\"),a=t(\"./util\"),u=t(\"./d3\");n.exports=e},{\"./d3\":11,\"./label/add-label\":22,\"./lodash\":25,\"./util\":31}],9:[function(t,n){\"use strict\";function e(t,n,e){var i=t.selectAll(\"g.edgePath\").data(n.edges(),function(t){return l.edgeToId(t)}).classed(\"update\",!0);return u(i,n),o(i,n),l.applyTransition(i,n).style(\"opacity\",1),i.each(function(t){var e=h.select(this),r=n.edge(t);r.elem=this,r.id&&e.attr(\"id\",r.id),l.applyClass(e,r[\"class\"],(e.classed(\"update\")?\"update \":\"\")+\"edgePath\")}),i.selectAll(\"path.path\").each(function(t){var e=n.edge(t);e.arrowheadId=s.uniqueId(\"arrowhead\");var i=h.select(this).attr(\"marker-end\",function(){return\"url(#\"+e.arrowheadId+\")\"}).style(\"fill\",\"none\");l.applyTransition(i,n).attr(\"d\",function(t){return r(n,t)}),l.applyStyle(i,e.style)}),i.selectAll(\"defs *\").remove(),i.selectAll(\"defs\").each(function(t){var r=n.edge(t),i=e[r.arrowhead];i(h.select(this),r.arrowheadId,r,\"arrowhead\")}),i}function r(t,n){var e=t.edge(n),r=t.node(n.v),a=t.node(n.w),u=e.points.slice(1,e.points.length-1);return u.unshift(c(r,u[0])),u.push(c(a,u[u.length-1])),i(e,u)}function i(t,n){var e=h.svg.line().x(function(t){return t.x}).y(function(t){return t.y});return s.has(t,\"lineInterpolate\")&&e.interpolate(t.lineInterpolate),s.has(t,\"lineTension\")&&e.tension(Number(t.lineTension)),e(n)}function a(t){var n=t.getBBox(),e=t.getTransformToElement(t.ownerSVGElement).translate(n.width/2,n.height/2);return{x:e.e,y:e.f}}function u(t,n){var e=t.enter().append(\"g\").attr(\"class\",\"edgePath\").style(\"opacity\",0);e.append(\"path\").attr(\"class\",\"path\").attr(\"d\",function(t){var e=n.edge(t),r=n.node(t.v).elem,u=s.range(e.points.length).map(function(){return a(r)});return i(e,u)}),e.append(\"defs\")}function o(t,n){var e=t.exit();l.applyTransition(e,n).style(\"opacity\",0).remove(),l.applyTransition(e.select(\"path.path\"),n).attr(\"d\",function(t){var e=n.node(t.v);if(e){var r=s.range(this.pathSegList.length).map(function(){return e});return i({},r)}return h.select(this).attr(\"d\")})}var s=t(\"./lodash\"),c=t(\"./intersect/intersect-node\"),l=t(\"./util\"),h=t(\"./d3\");n.exports=e},{\"./d3\":11,\"./intersect/intersect-node\":18,\"./lodash\":25,\"./util\":31}],10:[function(t,n){\"use strict\";\n\nfunction e(t,n,e){var o=n.nodes().filter(function(t){return!a.isSubgraph(n,t)}),s=t.selectAll(\"g.node\").data(o,function(t){return t}).classed(\"update\",!0);return s.selectAll(\"*\").remove(),s.enter().append(\"g\").attr(\"class\",\"node\").style(\"opacity\",0),s.each(function(t){var o=n.node(t),s=u.select(this),c=s.append(\"g\").attr(\"class\",\"label\"),l=i(c,o),h=e[o.shape],f=r.pick(l.node().getBBox(),\"width\",\"height\");o.elem=this,o.id&&s.attr(\"id\",o.id),o.labelId&&c.attr(\"id\",o.labelId),a.applyClass(s,o[\"class\"],(s.classed(\"update\")?\"update \":\"\")+\"node\"),r.has(o,\"width\")&&(f.width=o.width),r.has(o,\"height\")&&(f.height=o.height),f.width+=o.paddingLeft+o.paddingRight,f.height+=o.paddingTop+o.paddingBottom,c.attr(\"transform\",\"translate(\"+(o.paddingLeft-o.paddingRight)/2+\",\"+(o.paddingTop-o.paddingBottom)/2+\")\");var d=h(u.select(this),f,o);a.applyStyle(d,o.style);var p=d.node().getBBox();o.width=p.width,o.height=p.height}),a.applyTransition(s.exit(),n).style(\"opacity\",0).remove(),s}var r=t(\"./lodash\"),i=t(\"./label/add-label\"),a=t(\"./util\"),u=t(\"./d3\");n.exports=e},{\"./d3\":11,\"./label/add-label\":22,\"./lodash\":25,\"./util\":31}],11:[function(t,n){n.exports=window.d3},{}],12:[function(t,n){var e;if(t)try{e=t(\"dagre\")}catch(r){}e||(e=window.dagre),n.exports=e},{dagre:54}],13:[function(t,n){var e;if(t)try{e=t(\"graphlib\")}catch(r){}e||(e=window.graphlib),n.exports=e},{graphlib:33}],14:[function(t,n){n.exports={node:t(\"./intersect-node\"),circle:t(\"./intersect-circle\"),ellipse:t(\"./intersect-ellipse\"),polygon:t(\"./intersect-polygon\"),rect:t(\"./intersect-rect\")}},{\"./intersect-circle\":15,\"./intersect-ellipse\":16,\"./intersect-node\":18,\"./intersect-polygon\":19,\"./intersect-rect\":20}],15:[function(t,n){function e(t,n,e){return r(t,n,n,e)}var r=t(\"./intersect-ellipse\");n.exports=e},{\"./intersect-ellipse\":16}],16:[function(t,n){function e(t,n,e,r){var i=t.x,a=t.y,u=i-r.x,o=a-r.y,s=Math.sqrt(n*n*o*o+e*e*u*u),c=Math.abs(n*e*u/s);r.x<i&&(c=-c);var l=Math.abs(n*e*o/s);return r.y<a&&(l=-l),{x:i+c,y:a+l}}n.exports=e},{}],17:[function(t,n){function e(t,n,e,i){var a,u,o,s,c,l,h,f,d,p,g,y,m,v,_;return a=n.y-t.y,o=t.x-n.x,c=n.x*t.y-t.x*n.y,d=a*e.x+o*e.y+c,p=a*i.x+o*i.y+c,0!==d&&0!==p&&r(d,p)||(u=i.y-e.y,s=e.x-i.x,l=i.x*e.y-e.x*i.y,h=u*t.x+s*t.yy+l,f=u*n.x+s*n.y+l,0!==h&&0!==f&&r(h,f)||(g=a*s-u*o,0===g))?void 0:(y=Math.abs(g/2),m=o*l-s*c,v=0>m?(m-y)/g:(m+y)/g,m=u*c-a*l,_=0>m?(m-y)/g:(m+y)/g,{x:v,y:_})}function r(t,n){return t*n>0}n.exports=e},{}],18:[function(t,n){function e(t,n){return t.intersect(n)}n.exports=e},{}],19:[function(t,n){function e(t,n,e){var i=t.x,a=t.y,u=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;n.forEach(function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)});for(var c=i-t.width/2-o,l=a-t.height/2-s,h=0;h<n.length;h++){var f=n[h],d=n[h<n.length-1?h+1:0],p=r(t,e,{x:c+f.x,y:l+f.y},{x:c+d.x,y:l+d.y});p&&u.push(p)}return u.length?(u.length>1&&u.sort(function(t,n){var r=t.x-e.x,i=t.y-e.y,a=Math.sqrt(r*r+i*i),u=n.x-e.x,o=n.y-e.y,s=Math.sqrt(u*u+o*o);return s>a?-1:a===s?0:1}),u[0]):(console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\",t),t)}var r=t(\"./intersect-line\");n.exports=e},{\"./intersect-line\":17}],20:[function(t,n){function e(t,n){var e,r,i=t.x,a=t.y,u=n.x-i,o=n.y-a,s=t.width/2,c=t.height/2;return Math.abs(o)*s>Math.abs(u)*c?(0>o&&(c=-c),e=0===o?0:c*u/o,r=c):(0>u&&(s=-s),e=s,r=0===u?0:s*o/u),{x:i+e,y:a+r}}n.exports=e},{}],21:[function(t,n){function e(t,n){var e=t.append(\"foreignObject\").attr(\"width\",\"100000\"),i=e.append(\"xhtml:div\"),a=n.label;switch(typeof a){case\"function\":i.insert(a);break;case\"object\":i.insert(function(){return a});break;default:i.html(a)}r.applyStyle(i,n.labelStyle),i.style(\"display\",\"inline-block\"),i.style(\"white-space\",\"nowrap\");var u,o;return i.each(function(){u=this.clientWidth,o=this.clientHeight}),e.attr(\"width\",u).attr(\"height\",o),e}var r=t(\"../util\");n.exports=e},{\"../util\":31}],22:[function(t,n){function e(t,n,e){var u=n.label,o=t.append(\"g\");\"svg\"===n.labelType?a(o,n):\"string\"!=typeof u||\"html\"===n.labelType?i(o,n):r(o,n);var s,c=o.node().getBBox();switch(e){case\"top\":s=-n.height/2;break;case\"bottom\":s=n.height/2-c.height;break;default:s=-c.height/2}return o.attr(\"transform\",\"translate(\"+-c.width/2+\",\"+s+\")\"),o}var r=t(\"./add-text-label\"),i=t(\"./add-html-label\"),a=t(\"./add-svg-label\");n.exports=e},{\"./add-html-label\":21,\"./add-svg-label\":23,\"./add-text-label\":24}],23:[function(t,n){function e(t,n){var e=t;return e.node().appendChild(n.label),r.applyStyle(e,n.labelStyle),e}var r=t(\"../util\");n.exports=e},{\"../util\":31}],24:[function(t,n){function e(t,n){for(var e=t.append(\"text\"),a=r(n.label).split(\"\\n\"),u=0;u<a.length;u++)e.append(\"tspan\").attr(\"xml:space\",\"preserve\").attr(\"dy\",\"1em\").attr(\"x\",\"1\").text(a[u]);return i.applyStyle(e,n.labelStyle),e}function r(t){for(var n,e=\"\",r=!1,i=0;i<t.length;++i)if(n=t[i],r){switch(n){case\"n\":e+=\"\\n\";break;default:e+=n}r=!1}else\"\\\\\"===n?r=!0:e+=n;return e}var i=t(\"../util\");n.exports=e},{\"../util\":31}],25:[function(t,n){var e;if(t)try{e=t(\"lodash\")}catch(r){}e||(e=window._),n.exports=e},{lodash:53}],26:[function(t,n){\"use strict\";function e(t,n){function e(t){var e=n.node(t);return\"translate(\"+e.x+\",\"+e.y+\")\"}var a=t.filter(function(){return!i.select(this).classed(\"update\")});a.attr(\"transform\",e),r.applyTransition(t,n).style(\"opacity\",1).attr(\"transform\",e),r.applyTransition(a.selectAll(\"rect\"),n).attr(\"width\",function(t){return n.node(t).width}).attr(\"height\",function(t){return n.node(t).height}).attr(\"x\",function(t){var e=n.node(t);return-e.width/2}).attr(\"y\",function(t){var e=n.node(t);return-e.height/2})}var r=t(\"./util\"),i=t(\"./d3\");n.exports=e},{\"./d3\":11,\"./util\":31}],27:[function(t,n){\"use strict\";function e(t,n){function e(t){var e=n.edge(t);return a.has(e,\"x\")?\"translate(\"+e.x+\",\"+e.y+\")\":\"\"}var u=t.filter(function(){return!i.select(this).classed(\"update\")});u.attr(\"transform\",e),r.applyTransition(t,n).style(\"opacity\",1).attr(\"transform\",e)}var r=t(\"./util\"),i=t(\"./d3\"),a=t(\"./lodash\");n.exports=e},{\"./d3\":11,\"./lodash\":25,\"./util\":31}],28:[function(t,n){\"use strict\";function e(t,n){function e(t){var e=n.node(t);return\"translate(\"+e.x+\",\"+e.y+\")\"}var a=t.filter(function(){return!i.select(this).classed(\"update\")});a.attr(\"transform\",e),r.applyTransition(t,n).style(\"opacity\",1).attr(\"transform\",e)}var r=t(\"./util\"),i=t(\"./d3\");n.exports=e},{\"./d3\":11,\"./util\":31}],29:[function(t,n){function e(){var n=t(\"./create-nodes\"),e=t(\"./create-clusters\"),u=t(\"./create-edge-labels\"),s=t(\"./create-edge-paths\"),c=t(\"./position-nodes\"),l=t(\"./position-edge-labels\"),h=t(\"./position-clusters\"),f=t(\"./shapes\"),d=t(\"./arrows\"),p=function(t,p){r(p);var g=a(t,\"output\"),y=a(g,\"clusters\"),m=a(g,\"edgePaths\"),v=u(a(g,\"edgeLabels\"),p),_=n(a(g,\"nodes\"),p,f);o(p),c(_,p),l(v,p),s(m,p,d);var b=e(y,p);h(b,p),i(p)};return p.createNodes=function(t){return arguments.length?(n=t,p):n},p.createClusters=function(t){return arguments.length?(e=t,p):e},p.createEdgeLabels=function(t){return arguments.length?(u=t,p):u},p.createEdgePaths=function(t){return arguments.length?(s=t,p):s},p.shapes=function(t){return arguments.length?(f=t,p):f},p.arrows=function(t){return arguments.length?(d=t,p):d},p}function r(t){t.nodes().forEach(function(n){var e=t.node(n);u.has(e,\"label\")||t.children(n).length||(e.label=n),u.has(e,\"paddingX\")&&u.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),u.has(e,\"paddingY\")&&u.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),u.has(e,\"padding\")&&u.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),u.defaults(e,s),u.each([\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"paddingBottom\"],function(t){e[t]=Number(e[t])}),u.has(e,\"width\")&&(e._prevWidth=e.width),u.has(e,\"height\")&&(e._prevHeight=e.height)}),t.edges().forEach(function(n){var e=t.edge(n);u.has(e,\"label\")||(e.label=\"\"),u.defaults(e,c)})}function i(t){u.each(t.nodes(),function(n){var e=t.node(n);u.has(e,\"_prevWidth\")?e.width=e._prevWidth:delete e.width,u.has(e,\"_prevHeight\")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight})}function a(t,n){var e=t.select(\"g.\"+n);return e.empty()&&(e=t.append(\"g\").attr(\"class\",n)),e}var u=t(\"./lodash\"),o=t(\"./dagre\").layout;n.exports=e;var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:\"rect\"},c={arrowhead:\"normal\",lineInterpolate:\"linear\"}},{\"./arrows\":6,\"./create-clusters\":7,\"./create-edge-labels\":8,\"./create-edge-paths\":9,\"./create-nodes\":10,\"./dagre\":12,\"./lodash\":25,\"./position-clusters\":26,\"./position-edge-labels\":27,\"./position-nodes\":28,\"./shapes\":30}],30:[function(t,n){\"use strict\";function e(t,n,e){var r=t.insert(\"rect\",\":first-child\").attr(\"rx\",e.rx).attr(\"ry\",e.ry).attr(\"x\",-n.width/2).attr(\"y\",-n.height/2).attr(\"width\",n.width).attr(\"height\",n.height);return e.intersect=function(t){return u(e,t)},r}function r(t,n,e){var r=n.width/2,i=n.height/2,a=t.insert(\"ellipse\",\":first-child\").attr(\"x\",-n.width/2).attr(\"y\",-n.height/2).attr(\"rx\",r).attr(\"ry\",i);return e.intersect=function(t){return o(e,r,i,t)},a}function i(t,n,e){var r=Math.max(n.width,n.height)/2,i=t.insert(\"circle\",\":first-child\").attr(\"x\",-n.width/2).attr(\"y\",-n.height/2).attr(\"r\",r);return e.intersect=function(t){return s(e,r,t)},i}function a(t,n,e){var r=n.width*Math.SQRT2/2,i=n.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=t.insert(\"polygon\",\":first-child\").attr(\"points\",a.map(function(t){return t.x+\",\"+t.y}).join(\" \"));return e.intersect=function(t){return c(e,a,t)},u}var u=t(\"./intersect/intersect-rect\"),o=t(\"./intersect/intersect-ellipse\"),s=t(\"./intersect/intersect-circle\"),c=t(\"./intersect/intersect-polygon\");n.exports={rect:e,ellipse:r,circle:i,diamond:a}},{\"./intersect/intersect-circle\":15,\"./intersect/intersect-ellipse\":16,\"./intersect/intersect-polygon\":19,\"./intersect/intersect-rect\":20}],31:[function(t,n){function e(t,n){return!!t.children(n).length}function r(t){return i(t.v)+\":\"+i(t.w)+\":\"+i(t.name)}function i(t){return t?String(t).replace(c,\"\\\\:\"):\"\"}function a(t,n){n&&t.attr(\"style\",n)}function u(t,n,e){n&&t.attr(\"class\",n).attr(\"class\",e+\" \"+t.attr(\"class\"))}function o(t,n){var e=n.graph();if(s.isPlainObject(e)){var r=e.transition;if(s.isFunction(r))return r(t)}return t}var s=t(\"./lodash\");n.exports={isSubgraph:e,edgeToId:r,applyStyle:a,applyClass:u,applyTransition:o};var c=/:/g},{\"./lodash\":25}],32:[function(t,n){n.exports=\"0.4.10\"},{}],33:[function(t,n){var e=t(\"./lib\");n.exports={Graph:e.Graph,json:t(\"./lib/json\"),alg:t(\"./lib/alg\"),version:e.version}},{\"./lib\":49,\"./lib/alg\":40,\"./lib/json\":50}],34:[function(t,n){function e(t){function n(a){r.has(i,a)||(i[a]=!0,e.push(a),r.each(t.successors(a),n),r.each(t.predecessors(a),n))}var e,i={},a=[];return r.each(t.nodes(),function(t){e=[],n(t),e.length&&a.push(e)}),a}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":51}],35:[function(t,n){function e(t,n,e){i.isArray(n)||(n=[n]);var a=[],u={};return i.each(n,function(n){if(!t.hasNode(n))throw new Error(\"Graph does not have node: \"+n);r(t,n,\"post\"===e,u,a)}),a}function r(t,n,e,a,u){i.has(a,n)||(a[n]=!0,e||u.push(n),i.each(t.neighbors(n),function(n){r(t,n,e,a,u)}),e&&u.push(n))}var i=t(\"../lodash\");n.exports=e},{\"../lodash\":51}],36:[function(t,n){function e(t,n,e){return i.transform(t.nodes(),function(i,a){i[a]=r(t,a,n,e)},{})}var r=t(\"./dijkstra\"),i=t(\"../lodash\");n.exports=e},{\"../lodash\":51,\"./dijkstra\":37}],37:[function(t,n){function e(t,n,e,i){return r(t,String(n),e||u,i||function(n){return t.outEdges(n)})}function r(t,n,e,r){var i,u,o={},s=new a,c=function(t){var n=t.v!==i?t.v:t.w,r=o[n],a=e(t),c=u.distance+a;if(0>a)throw new Error(\"dijkstra does not allow negative edge weights. Bad edge: \"+t+\" Weight: \"+a);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(n,c))};for(t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;o[t]={distance:e},s.add(t,e)});s.size()>0&&(i=s.removeMin(),u=o[i],u.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return o}var i=t(\"../lodash\"),a=t(\"../data/priority-queue\");n.exports=e;var u=i.constant(1)},{\"../data/priority-queue\":47,\"../lodash\":51}],38:[function(t,n){function e(t){return r.filter(i(t),function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])})}var r=t(\"../lodash\"),i=t(\"./tarjan\");n.exports=e},{\"../lodash\":51,\"./tarjan\":45}],39:[function(t,n){function e(t,n,e){return r(t,n||a,e||function(n){return t.outEdges(n)})}function r(t,n,e){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){var i=e.v===t?e.w:e.v,a=n(e);r[t][i]={distance:a,predecessor:t}})}),i.forEach(function(t){var n=r[t];i.forEach(function(e){var a=r[e];i.forEach(function(e){var r=a[t],i=n[e],u=a[e],o=r.distance+i.distance;o<u.distance&&(u.distance=o,u.predecessor=i.predecessor)})})}),r}var i=t(\"../lodash\");n.exports=e;var a=i.constant(1)},{\"../lodash\":51}],40:[function(t,n){n.exports={components:t(\"./components\"),dijkstra:t(\"./dijkstra\"),dijkstraAll:t(\"./dijkstra-all\"),findCycles:t(\"./find-cycles\"),floydWarshall:t(\"./floyd-warshall\"),isAcyclic:t(\"./is-acyclic\"),postorder:t(\"./postorder\"),preorder:t(\"./preorder\"),prim:t(\"./prim\"),tarjan:t(\"./tarjan\"),topsort:t(\"./topsort\")}},{\"./components\":34,\"./dijkstra\":37,\"./dijkstra-all\":36,\"./find-cycles\":38,\"./floyd-warshall\":39,\"./is-acyclic\":41,\"./postorder\":42,\"./preorder\":43,\"./prim\":44,\"./tarjan\":45,\"./topsort\":46}],41:[function(t,n){function e(t){try{r(t)}catch(n){if(n instanceof r.CycleException)return!1;throw n}return!0}var r=t(\"./topsort\");n.exports=e},{\"./topsort\":46}],42:[function(t,n){function e(t,n){return r(t,n,\"post\")}var r=t(\"./dfs\");n.exports=e},{\"./dfs\":35}],43:[function(t,n){function e(t,n){return r(t,n,\"pre\")}var r=t(\"./dfs\");n.exports=e},{\"./dfs\":35}],44:[function(t,n){function e(t,n){function e(t){var e=t.v===u?t.w:t.v,r=c.priority(e);if(void 0!==r){var i=n(t);r>i&&(s[e]=u,c.decrease(e,i))}}var u,o=new i,s={},c=new a;if(0===t.nodeCount())return o;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),o.setNode(t)}),c.decrease(t.nodes()[0],0);for(var l=!1;c.size()>0;){if(u=c.removeMin(),r.has(s,u))o.setEdge(u,s[u]);else{if(l)throw new Error(\"Input graph is not connected: \"+t);l=!0}t.nodeEdges(u).forEach(e)}return o}var r=t(\"../lodash\"),i=t(\"../graph\"),a=t(\"../data/priority-queue\");n.exports=e},{\"../data/priority-queue\":47,\"../graph\":48,\"../lodash\":51}],45:[function(t,n){function e(t){function n(o){var s=a[o]={onStack:!0,lowlink:e,index:e++};if(i.push(o),t.successors(o).forEach(function(t){r.has(a,t)?a[t].onStack&&(s.lowlink=Math.min(s.lowlink,a[t].index)):(n(t),s.lowlink=Math.min(s.lowlink,a[t].lowlink))}),s.lowlink===s.index){var c,l=[];do c=i.pop(),a[c].onStack=!1,l.push(c);while(o!==c);u.push(l)}}var e=0,i=[],a={},u=[];return t.nodes().forEach(function(t){r.has(a,t)||n(t)}),u}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":51}],46:[function(t,n){function e(t){function n(o){if(i.has(a,o))throw new r;i.has(e,o)||(a[o]=!0,e[o]=!0,i.each(t.predecessors(o),n),delete a[o],u.push(o))}var e={},a={},u=[];if(i.each(t.sinks(),n),i.size(e)!==t.nodeCount())throw new r;return u}function r(){}var i=t(\"../lodash\");n.exports=e,e.CycleException=r},{\"../lodash\":51}],47:[function(t,n){function e(){this._arr=[],this._keyIndices={}}var r=t(\"../lodash\");n.exports=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(t){return r.has(this._keyIndices,t)},e.prototype.priority=function(t){var n=this._keyIndices[t];return void 0!==n?this._arr[n].priority:void 0},e.prototype.min=function(){if(0===this.size())throw new Error(\"Queue underflow\");return this._arr[0].key},e.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,a=i.length;return e[t]=a,i.push({key:t,priority:n}),this._decrease(a),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},e.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error(\"New priority is greater than current priority. Key: \"+t+\" Old: \"+this._arr[e].priority+\" New: \"+n);this._arr[e].priority=n,this._decrease(e)},e.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e<n.length&&(i=n[e].priority<n[i].priority?e:i,r<n.length&&(i=n[r].priority<n[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},e.prototype._decrease=function(t){for(var n,e=this._arr,r=e[t].priority;0!==t&&(n=t>>1,!(e[n].priority<r));)this._swap(t,n),t=n},e.prototype._swap=function(t,n){var e=this._arr,r=this._keyIndices,i=e[t],a=e[n];e[t]=a,e[n]=i,r[a.key]=t,r[i.key]=n}},{\"../lodash\":51}],48:[function(t,n){\"use strict\";function e(t){this._isDirected=s.has(t,\"directed\")?t.directed:!0,this._isMultigraph=s.has(t,\"multigraph\")?t.multigraph:!1,this._isCompound=s.has(t,\"compound\")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=s.constant(void 0),this._defaultEdgeLabelFn=s.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(t,n){t[n]?t[n]++:t[n]=1}function i(t,n){--t[n]||delete t[n]}function a(t,n,e,r){var i=\"\"+n,a=\"\"+e;if(!t&&i>a){var u=i;i=a,a=u}return i+h+a+h+(s.isUndefined(r)?c:r)}function u(t,n,e,r){var i=\"\"+n,a=\"\"+e;if(!t&&i>a){var u=i;i=a,a=u}var o={v:i,w:a};return r&&(o.name=r),o}function o(t,n){return a(t,n.v,n.w,n.name)}var s=t(\"./lodash\");n.exports=e;var c=\"\\x00\",l=\"\\x00\",h=\"\u0001\";e.prototype._nodeCount=0,e.prototype._edgeCount=0,e.prototype.isDirected=function(){return this._isDirected},e.prototype.isMultigraph=function(){return this._isMultigraph},e.prototype.isCompound=function(){return this._isCompound},e.prototype.setGraph=function(t){return this._label=t,this},e.prototype.graph=function(){return this._label},e.prototype.setDefaultNodeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultNodeLabelFn=t,this},e.prototype.nodeCount=function(){return this._nodeCount},e.prototype.nodes=function(){return s.keys(this._nodes)},e.prototype.sources=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._in[t])},this)},e.prototype.sinks=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._out[t])},this)},e.prototype.setNodes=function(t,n){var e=arguments;return s.each(t,function(t){e.length>1?this.setNode(t,n):this.setNode(t)},this),this},e.prototype.setNode=function(t,n){return s.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=l,this._children[t]={},this._children[l][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},e.prototype.node=function(t){return this._nodes[t]},e.prototype.hasNode=function(t){return s.has(this._nodes,t)},e.prototype.removeNode=function(t){var n=this;if(s.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],s.each(this.children(t),function(t){this.setParent(t)},this),delete this._children[t]),s.each(s.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],s.each(s.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},e.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error(\"Cannot set parent in a non-compound graph\");if(s.isUndefined(n))n=l;else{n+=\"\";for(var e=n;!s.isUndefined(e);e=this.parent(e))if(e===t)throw new Error(\"Setting \"+n+\" as parent of \"+t+\" would create create a cycle\");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},e.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},e.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==l)return n}},e.prototype.children=function(t){if(s.isUndefined(t)&&(t=l),this._isCompound){var n=this._children[t];if(n)return s.keys(n)}else{if(t===l)return this.nodes();if(this.hasNode(t))return[]}},e.prototype.predecessors=function(t){var n=this._preds[t];return n?s.keys(n):void 0},e.prototype.successors=function(t){var n=this._sucs[t];return n?s.keys(n):void 0},e.prototype.neighbors=function(t){var n=this.predecessors(t);return n?s.union(n,this.successors(t)):void 0},e.prototype.filterNodes=function(t){function n(t){var a=r.parent(t);return void 0===a||e.hasNode(a)?(i[t]=a,a):a in i?i[a]:n(a)}var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph()),s.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)},this),s.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,this.edge(t))},this);var r=this,i={};return this._isCompound&&s.each(e.nodes(),function(t){e.setParent(t,n(t))}),e},e.prototype.setDefaultEdgeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultEdgeLabelFn=t,this},e.prototype.edgeCount=function(){return this._edgeCount},e.prototype.edges=function(){return s.values(this._edgeObjs)},e.prototype.setPath=function(t,n){var e=this,r=arguments;return s.reduce(t,function(t,i){return r.length>1?e.setEdge(t,i,n):e.setEdge(t,i),i}),this},e.prototype.setEdge=function(){var t,n,e,i,o=!1,c=arguments[0];\"object\"==typeof c&&null!==c&&\"v\"in c?(t=c.v,n=c.w,e=c.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=c,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=\"\"+t,n=\"\"+n,s.isUndefined(e)||(e=\"\"+e);var l=a(this._isDirected,t,n,e);if(s.has(this._edgeLabels,l))return o&&(this._edgeLabels[l]=i),this;if(!s.isUndefined(e)&&!this._isMultigraph)throw new Error(\"Cannot set a named edge when isMultigraph = false\");this.setNode(t),this.setNode(n),this._edgeLabels[l]=o?i:this._defaultEdgeLabelFn(t,n,e);var h=u(this._isDirected,t,n,e);return t=h.v,n=h.w,Object.freeze(h),this._edgeObjs[l]=h,r(this._preds[n],t),r(this._sucs[t],n),this._in[n][l]=h,this._out[t][l]=h,this._edgeCount++,this},e.prototype.edge=function(t,n,e){var r=1===arguments.length?o(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return this._edgeLabels[r]},e.prototype.hasEdge=function(t,n,e){var r=1===arguments.length?o(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return s.has(this._edgeLabels,r)},e.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?o(this._isDirected,arguments[0]):a(this._isDirected,t,n,e),u=this._edgeObjs[r];return u&&(t=u.v,n=u.w,delete this._edgeLabels[r],delete this._edgeObjs[r],i(this._preds[n],t),i(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},e.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.v===n}):r}},e.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.w===n}):r}},e.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);return e?e.concat(this.outEdges(t,n)):void 0}},{\"./lodash\":51}],49:[function(t,n){n.exports={Graph:t(\"./graph\"),version:t(\"./version\")}},{\"./graph\":48,\"./version\":52}],50:[function(t,n){function e(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:r(t),edges:i(t)};return u.isUndefined(t.graph())||(n.value=u.clone(t.graph())),n}function r(t){return u.map(t.nodes(),function(n){var e=t.node(n),r=t.parent(n),i={v:n};return u.isUndefined(e)||(i.value=e),u.isUndefined(r)||(i.parent=r),i})}function i(t){return u.map(t.edges(),function(n){var e=t.edge(n),r={v:n.v,w:n.w};return u.isUndefined(n.name)||(r.name=n.name),u.isUndefined(e)||(r.value=e),r})}function a(t){var n=new o(t.options).setGraph(t.value);return u.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),u.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}var u=t(\"./lodash\"),o=t(\"./graph\");n.exports={write:e,read:a}},{\"./graph\":48,\"./lodash\":51}],51:[function(t,n){var e;if(\"function\"==typeof t)try{e=t(\"lodash\")}catch(r){}e||(e=window._),n.exports=e},{lodash:53}],52:[function(t,n){n.exports=\"1.0.7\"},{}],53:[function(t,n,e){(function(t){(function(){function r(t,n){if(t!==n){var e=null===t,r=t===E,i=t===t,a=null===n,u=n===E,o=n===n;if(t>n&&!a||!i||e&&!u&&o||r&&o)return 1;if(n>t&&!e||!o||a&&!r&&i||u&&i)return-1}return 0}function i(t,n,e){for(var r=t.length,i=e?r:-1;e?i--:++i<r;)if(n(t[i],i,t))return i;return-1}function a(t,n,e){if(n!==n)return y(t,e);for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}function u(t){return\"function\"==typeof t||!1}function o(t){return null==t?\"\":t+\"\"}function s(t,n){for(var e=-1,r=t.length;++e<r&&n.indexOf(t.charAt(e))>-1;);return e}function c(t,n){for(var e=t.length;e--&&n.indexOf(t.charAt(e))>-1;);return e}function l(t,n){return r(t.criteria,n.criteria)||t.index-n.index}function h(t,n,e){for(var i=-1,a=t.criteria,u=n.criteria,o=a.length,s=e.length;++i<o;){var c=r(a[i],u[i]);if(c){if(i>=s)return c;var l=e[i];return c*(\"asc\"===l||l===!0?1:-1)}}return t.index-n.index}function f(t){return zt[t]}function d(t){return qt[t]}function p(t,n,e){return n?t=Ht[t]:e&&(t=Zt[t]),\"\\\\\"+t}function g(t){return\"\\\\\"+Zt[t]}function y(t,n,e){for(var r=t.length,i=n+(e?0:-1);e?i--:++i<r;){var a=t[i];if(a!==a)return i}return-1}function m(t){return!!t&&\"object\"==typeof t}function v(t){return 160>=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function _(t,n){for(var e=-1,r=t.length,i=-1,a=[];++e<r;)t[e]===n&&(t[e]=z,a[++i]=e);return a}function b(t,n){for(var e,r=-1,i=t.length,a=-1,u=[];++r<i;){var o=t[r],s=n?n(o,r,t):o;r&&e===s||(e=s,u[++a]=o)}return u}function x(t){for(var n=-1,e=t.length;++n<e&&v(t.charCodeAt(n)););return n}function w(t){for(var n=t.length;n--&&v(t.charCodeAt(n)););return n}function A(t){return Gt[t]}function k(t){function n(t){if(m(t)&&!Co(t)&&!(t instanceof K)){if(t instanceof v)return t;if(tu.call(t,\"__chain__\")&&tu.call(t,\"__wrapped__\"))return dr(t)}return new v(t)}function e(){}function v(t,n,e){this.__wrapped__=t,this.__actions__=e||[],this.__chain__=!!n}function K(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Su,this.__views__=[]}function nt(){var t=new K(this.__wrapped__);return t.__actions__=tn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=tn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=tn(this.__views__),t}function rt(){if(this.__filtered__){var t=new K(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function zt(){var t=this.__wrapped__.value(),n=this.__dir__,e=Co(t),r=0>n,i=e?t.length:0,a=Ge(0,i,this.__views__),u=a.start,o=a.end,s=o-u,c=r?o:u-1,l=this.__iteratees__,h=l.length,f=0,d=wu(s,this.__takeCount__);if(!e||Y>i||i==s&&d==s)return re(r&&e?t.reverse():t,this.__actions__);var p=[];t:for(;s--&&d>f;){c+=n;for(var g=-1,y=t[c];++g<h;){var m=l[g],v=m.iteratee,_=m.type,b=v(y);if(_==$)y=b;else if(!b){if(_==U)continue t;break t}}p[f++]=y}return p}function qt(){this.__data__={}}function Gt(t){return this.has(t)&&delete this.__data__[t]}function Vt(t){return\"__proto__\"==t?E:this.__data__[t]}function Ht(t){return\"__proto__\"!=t&&tu.call(this.__data__,t)}function Zt(t,n){return\"__proto__\"!=t&&(this.__data__[t]=n),this}function Xt(t){var n=t?t.length:0;for(this.data={hash:yu(null),set:new lu};n--;)this.push(t[n])}function Kt(t,n){var e=t.data,r=\"string\"==typeof n||Ii(n)?e.set.has(n):e.hash[n];return r?0:-1}function Qt(t){var n=this.data;\"string\"==typeof t||Ii(t)?n.set.add(t):n.hash[t]=!0}function Jt(t,n){for(var e=-1,r=t.length,i=-1,a=n.length,u=Ya(r+a);++e<r;)u[e]=t[e];for(;++i<a;)u[e++]=n[i];return u}function tn(t,n){var e=-1,r=t.length;for(n||(n=Ya(r));++e<r;)n[e]=t[e];return n}function nn(t,n){for(var e=-1,r=t.length;++e<r&&n(t[e],e,t)!==!1;);return t}function an(t,n){for(var e=t.length;e--&&n(t[e],e,t)!==!1;);return t}function un(t,n){for(var e=-1,r=t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function on(t,n,e,r){for(var i=-1,a=t.length,u=r,o=u;++i<a;){var s=t[i],c=+n(s);e(c,u)&&(u=c,o=s)}return o}function sn(t,n){for(var e=-1,r=t.length,i=-1,a=[];++e<r;){var u=t[e];n(u,e,t)&&(a[++i]=u)}return a}function cn(t,n){for(var e=-1,r=t.length,i=Ya(r);++e<r;)i[e]=n(t[e],e,t);return i}function ln(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function hn(t,n,e,r){var i=-1,a=t.length;for(r&&a&&(e=t[++i]);++i<a;)e=n(e,t[i],i,t);return e}function fn(t,n,e,r){var i=t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function dn(t,n){for(var e=-1,r=t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}function pn(t,n){for(var e=t.length,r=0;e--;)r+=+n(t[e])||0;return r}function gn(t,n){return t===E?n:t}function yn(t,n,e,r){return t!==E&&tu.call(r,e)?t:n}function mn(t,n,e){for(var r=-1,i=Yo(n),a=i.length;++r<a;){var u=i[r],o=t[u],s=e(o,n[u],u,t,n);(s===s?s===o:o!==o)&&(o!==E||u in t)||(t[u]=s)}return t}function vn(t,n){return null==n?t:bn(n,Yo(n),t)}function _n(t,n){for(var e=-1,r=null==t,i=!r&&Ke(t),a=i?t.length:0,u=n.length,o=Ya(u);++e<u;){var s=n[e];o[e]=i?Qe(s,a)?t[s]:E:r?E:t[s]}return o}function bn(t,n,e){e||(e={});for(var r=-1,i=n.length;++r<i;){var a=n[r];e[a]=t[a]}return e}function xn(t,n,e){var r=typeof t;return\"function\"==r?n===E?t:ue(t,n,e):null==t?Sa:\"object\"==r?Yn(t):n===E?La(t):Un(t,n)}function wn(t,n,e,r,i,a,u){var o;if(e&&(o=i?e(t,r,i):e(t)),o!==E)return o;if(!Ii(t))return t;var s=Co(t);if(s){if(o=Ve(t),!n)return tn(t,o)}else{var c=eu.call(t),l=c==X;if(c!=J&&c!=q&&(!l||i))return Wt[c]?Ze(t,c,n):i?t:{};if(o=He(l?{}:t),!n)return vn(o,t)}a||(a=[]),u||(u=[]);for(var h=a.length;h--;)if(a[h]==t)return u[h];return a.push(t),u.push(o),(s?nn:On)(t,function(r,i){o[i]=wn(r,n,e,i,t,a,u)}),o}function An(t,n,e){if(\"function\"!=typeof t)throw new Za(W);return hu(function(){t.apply(E,e)},n)}function kn(t,n){var e=t?t.length:0,r=[];if(!e)return r;var i=-1,u=We(),o=u==a,s=o&&n.length>=Y?ge(n):null,c=n.length;s&&(u=Kt,o=!1,n=s);t:for(;++i<e;){var l=t[i];if(o&&l===l){for(var h=c;h--;)if(n[h]===l)continue t;r.push(l)}else u(n,l,0)<0&&r.push(l)}return r}function En(t,n){var e=!0;return Bu(t,function(t,r,i){return e=!!n(t,r,i)}),e}function Mn(t,n,e,r){var i=r,a=i;return Bu(t,function(t,u,o){var s=+n(t,u,o);(e(s,i)||s===r&&s===a)&&(i=s,a=t)}),a}function Sn(t,n,e,r){var i=t.length;for(e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),r=r===E||r>i?i:+r||0,0>r&&(r+=i),i=e>r?0:r>>>0,e>>>=0;i>e;)t[e++]=n;return t}function Dn(t,n){var e=[];return Bu(t,function(t,r,i){n(t,r,i)&&e.push(t)}),e}function Cn(t,n,e,r){var i;return e(t,function(t,e,a){return n(t,e,a)?(i=r?e:t,!1):void 0}),i}function Tn(t,n,e,r){r||(r=[]);for(var i=-1,a=t.length;++i<a;){var u=t[i];m(u)&&Ke(u)&&(e||Co(u)||Ei(u))?n?Tn(u,n,e,r):ln(r,u):e||(r[r.length]=u)}return r}function Fn(t,n){return Pu(t,n,ta)}function On(t,n){return Pu(t,n,Yo)}function Ln(t,n){return Ru(t,n,Yo)}function In(t,n){for(var e=-1,r=n.length,i=-1,a=[];++e<r;){var u=n[e];Li(t[u])&&(a[++i]=u)}return a}function Bn(t,n,e){if(null!=t){e!==E&&e in hr(t)&&(n=[e]);for(var r=0,i=n.length;null!=t&&i>r;)t=t[n[r++]];return r&&r==i?t:E}}function Nn(t,n,e,r,i,a){return t===n?!0:null==t||null==n||!Ii(t)&&!m(n)?t!==t&&n!==n:Pn(t,n,Nn,e,r,i,a)}function Pn(t,n,e,r,i,a,u){var o=Co(t),s=Co(n),c=G,l=G;o||(c=eu.call(t),c==q?c=J:c!=J&&(o=Wi(t))),s||(l=eu.call(n),l==q?l=J:l!=J&&(s=Wi(n)));var h=c==J,f=l==J,d=c==l;if(d&&!o&&!h)return je(t,n,c);if(!i){var p=h&&tu.call(t,\"__wrapped__\"),g=f&&tu.call(n,\"__wrapped__\");if(p||g)return e(p?t.value():t,g?n.value():n,r,i,a,u)}if(!d)return!1;a||(a=[]),u||(u=[]);for(var y=a.length;y--;)if(a[y]==t)return u[y]==n;a.push(t),u.push(n);\n\nvar m=(o?Re:Ye)(t,n,e,r,i,a,u);return a.pop(),u.pop(),m}function Rn(t,n,e){var r=n.length,i=r,a=!e;if(null==t)return!i;for(t=hr(t);r--;){var u=n[r];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++r<i;){u=n[r];var o=u[0],s=t[o],c=u[1];if(a&&u[2]){if(s===E&&!(o in t))return!1}else{var l=e?e(s,c,o):E;if(!(l===E?Nn(c,s,e,!0):l))return!1}}return!0}function jn(t,n){var e=-1,r=Ke(t)?Ya(t.length):[];return Bu(t,function(t,i,a){r[++e]=n(t,i,a)}),r}function Yn(t){var n=ze(t);if(1==n.length&&n[0][2]){var e=n[0][0],r=n[0][1];return function(t){return null==t?!1:t[e]===r&&(r!==E||e in hr(t))}}return function(t){return Rn(t,n)}}function Un(t,n){var e=Co(t),r=tr(t)&&rr(n),i=t+\"\";return t=fr(t),function(a){if(null==a)return!1;var u=i;if(a=hr(a),!(!e&&r||u in a)){if(a=1==t.length?a:Bn(a,Zn(t,0,-1)),null==a)return!1;u=Mr(t),a=hr(a)}return a[u]===n?n!==E||u in a:Nn(n,a[u],E,!0)}}function $n(t,n,e,r,i){if(!Ii(t))return t;var a=Ke(n)&&(Co(n)||Wi(n)),u=a?E:Yo(n);return nn(u||n,function(o,s){if(u&&(s=o,o=n[s]),m(o))r||(r=[]),i||(i=[]),Wn(t,n,s,$n,e,r,i);else{var c=t[s],l=e?e(c,o,s,t,n):E,h=l===E;h&&(l=o),l===E&&(!a||s in t)||!h&&(l===l?l===c:c!==c)||(t[s]=l)}}),t}function Wn(t,n,e,r,i,a,u){for(var o=a.length,s=n[e];o--;)if(a[o]==s)return void(t[e]=u[o]);var c=t[e],l=i?i(c,s,e,t,n):E,h=l===E;h&&(l=s,Ke(s)&&(Co(s)||Wi(s))?l=Co(c)?c:Ke(c)?tn(c):[]:Yi(s)||Ei(s)?l=Ei(c)?Hi(c):Yi(c)?c:{}:h=!1),a.push(s),u.push(l),h?t[e]=r(l,s,i,a,u):(l===l?l!==c:c===c)&&(t[e]=l)}function zn(t){return function(n){return null==n?E:n[t]}}function qn(t){var n=t+\"\";return t=fr(t),function(e){return Bn(e,t,n)}}function Gn(t,n){for(var e=t?n.length:0;e--;){var r=n[e];if(r!=i&&Qe(r)){var i=r;fu.call(t,r,1)}}return t}function Vn(t,n){return t+mu(Eu()*(n-t+1))}function Hn(t,n,e,r,i){return i(t,function(t,i,a){e=r?(r=!1,t):n(e,t,i,a)}),e}function Zn(t,n,e){var r=-1,i=t.length;n=null==n?0:+n||0,0>n&&(n=-n>i?0:i+n),e=e===E||e>i?i:+e||0,0>e&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var a=Ya(i);++r<i;)a[r]=t[r+n];return a}function Xn(t,n){var e;return Bu(t,function(t,r,i){return e=n(t,r,i),!e}),!!e}function Kn(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}function Qn(t,n,e){var r=Ue(),i=-1;n=cn(n,function(t){return r(t)});var a=jn(t,function(t){var e=cn(n,function(n){return n(t)});return{criteria:e,index:++i,value:t}});return Kn(a,function(t,n){return h(t,n,e)})}function Jn(t,n){var e=0;return Bu(t,function(t,r,i){e+=+n(t,r,i)||0}),e}function te(t,n){var e=-1,r=We(),i=t.length,u=r==a,o=u&&i>=Y,s=o?ge():null,c=[];s?(r=Kt,u=!1):(o=!1,s=n?[]:c);t:for(;++e<i;){var l=t[e],h=n?n(l,e,t):l;if(u&&l===l){for(var f=s.length;f--;)if(s[f]===h)continue t;n&&s.push(h),c.push(l)}else r(s,h,0)<0&&((n||o)&&s.push(h),c.push(l))}return c}function ne(t,n){for(var e=-1,r=n.length,i=Ya(r);++e<r;)i[e]=t[n[e]];return i}function ee(t,n,e,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&n(t[a],a,t););return e?Zn(t,r?0:a,r?a+1:i):Zn(t,r?a+1:0,r?i:a)}function re(t,n){var e=t;e instanceof K&&(e=e.value());for(var r=-1,i=n.length;++r<i;){var a=n[r];e=a.func.apply(a.thisArg,ln([e],a.args))}return e}function ie(t,n,e){var r=0,i=t?t.length:r;if(\"number\"==typeof n&&n===n&&Tu>=i){for(;i>r;){var a=r+i>>>1,u=t[a];(e?n>=u:n>u)&&null!==u?r=a+1:i=a}return i}return ae(t,n,Sa,e)}function ae(t,n,e,r){n=e(n);for(var i=0,a=t?t.length:0,u=n!==n,o=null===n,s=n===E;a>i;){var c=mu((i+a)/2),l=e(t[c]),h=l!==E,f=l===l;if(u)var d=f||r;else d=o?f&&h&&(r||null!=l):s?f&&(r||h):null==l?!1:r?n>=l:n>l;d?i=c+1:a=c}return wu(a,Cu)}function ue(t,n,e){if(\"function\"!=typeof t)return Sa;if(n===E)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,a){return t.call(n,e,r,i,a)};case 5:return function(e,r,i,a,u){return t.call(n,e,r,i,a,u)}}return function(){return t.apply(n,arguments)}}function oe(t){var n=new au(t.byteLength),e=new du(n);return e.set(new du(t)),n}function se(t,n,e){for(var r=e.length,i=-1,a=xu(t.length-r,0),u=-1,o=n.length,s=Ya(o+a);++u<o;)s[u]=n[u];for(;++i<r;)s[e[i]]=t[i];for(;a--;)s[u++]=t[i++];return s}function ce(t,n,e){for(var r=-1,i=e.length,a=-1,u=xu(t.length-i,0),o=-1,s=n.length,c=Ya(u+s);++a<u;)c[a]=t[a];for(var l=a;++o<s;)c[l+o]=n[o];for(;++r<i;)c[l+e[r]]=t[a++];return c}function le(t,n){return function(e,r,i){var a=n?n():{};if(r=Ue(r,i,3),Co(e))for(var u=-1,o=e.length;++u<o;){var s=e[u];t(a,s,r(s,u,e),e)}else Bu(e,function(n,e,i){t(a,n,r(n,e,i),i)});return a}}function he(t){return mi(function(n,e){var r=-1,i=null==n?0:e.length,a=i>2?e[i-2]:E,u=i>2?e[2]:E,o=i>1?e[i-1]:E;for(\"function\"==typeof a?(a=ue(a,o,5),i-=2):(a=\"function\"==typeof o?o:E,i-=a?1:0),u&&Je(e[0],e[1],u)&&(a=3>i?E:a,i=1);++r<i;){var s=e[r];s&&t(n,s,a)}return n})}function fe(t,n){return function(e,r){var i=e?Uu(e):0;if(!er(i))return t(e,r);for(var a=n?i:-1,u=hr(e);(n?a--:++a<i)&&r(u[a],a,u)!==!1;);return e}}function de(t){return function(n,e,r){for(var i=hr(n),a=r(n),u=a.length,o=t?u:-1;t?o--:++o<u;){var s=a[o];if(e(i[s],s,i)===!1)break}return n}}function pe(t,n){function e(){var i=this&&this!==en&&this instanceof e?r:t;return i.apply(n,arguments)}var r=me(t);return e}function ge(t){return yu&&lu?new Xt(t):null}function ye(t){return function(n){for(var e=-1,r=ka(la(n)),i=r.length,a=\"\";++e<i;)a=t(a,r[e],e);return a}}function me(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Iu(t.prototype),r=t.apply(e,n);return Ii(r)?r:e}}function ve(t){function n(e,r,i){i&&Je(e,r,i)&&(r=E);var a=Pe(e,t,E,E,E,E,E,r);return a.placeholder=n.placeholder,a}return n}function _e(t,n){return mi(function(e){var r=e[0];return null==r?r:(e.push(n),t.apply(E,e))})}function be(t,n){return function(e,r,i){if(i&&Je(e,r,i)&&(r=E),r=Ue(r,i,3),1==r.length){e=Co(e)?e:lr(e);var a=on(e,r,t,n);if(!e.length||a!==n)return a}return Mn(e,r,t,n)}}function xe(t,n){return function(e,r,a){if(r=Ue(r,a,3),Co(e)){var u=i(e,r,n);return u>-1?e[u]:E}return Cn(e,r,t)}}function we(t){return function(n,e,r){return n&&n.length?(e=Ue(e,r,3),i(n,e,t)):-1}}function Ae(t){return function(n,e,r){return e=Ue(e,r,3),Cn(n,e,t,!0)}}function ke(t){return function(){for(var n,e=arguments.length,r=t?e:-1,i=0,a=Ya(e);t?r--:++r<e;){var u=a[i++]=arguments[r];if(\"function\"!=typeof u)throw new Za(W);!n&&v.prototype.thru&&\"wrapper\"==$e(u)&&(n=new v([],!0))}for(r=n?-1:e;++r<e;){u=a[r];var o=$e(u),s=\"wrapper\"==o?Yu(u):E;n=s&&nr(s[0])&&s[1]==(I|T|O|B)&&!s[4].length&&1==s[9]?n[$e(s[0])].apply(n,s[3]):1==u.length&&nr(u)?n[o]():n.thru(u)}return function(){var t=arguments,r=t[0];if(n&&1==t.length&&Co(r)&&r.length>=Y)return n.plant(r).value();for(var i=0,u=e?a[i].apply(this,t):r;++i<e;)u=a[i].call(this,u);return u}}}function Ee(t,n){return function(e,r,i){return\"function\"==typeof r&&i===E&&Co(e)?t(e,r):n(e,ue(r,i,3))}}function Me(t){return function(n,e,r){return(\"function\"!=typeof e||r!==E)&&(e=ue(e,r,3)),t(n,e,ta)}}function Se(t){return function(n,e,r){return(\"function\"!=typeof e||r!==E)&&(e=ue(e,r,3)),t(n,e)}}function De(t){return function(n,e,r){var i={};return e=Ue(e,r,3),On(n,function(n,r,a){var u=e(n,r,a);r=t?u:r,n=t?n:u,i[r]=n}),i}}function Ce(t){return function(n,e,r){return n=o(n),(t?n:\"\")+Le(n,e,r)+(t?\"\":n)}}function Te(t){var n=mi(function(e,r){var i=_(r,n.placeholder);return Pe(e,t,E,r,i)});return n}function Fe(t,n){return function(e,r,i,a){var u=arguments.length<3;return\"function\"==typeof r&&a===E&&Co(e)?t(e,r,i,u):Hn(e,Ue(r,a,4),i,u,n)}}function Oe(t,n,e,r,i,a,u,o,s,c){function l(){for(var v=arguments.length,b=v,x=Ya(v);b--;)x[b]=arguments[b];if(r&&(x=se(x,r,i)),a&&(x=ce(x,a,u)),p||y){var w=l.placeholder,A=_(x,w);if(v-=A.length,c>v){var k=o?tn(o):E,M=xu(c-v,0),C=p?A:E,T=p?E:A,F=p?x:E,I=p?E:x;n|=p?O:L,n&=~(p?L:O),g||(n&=~(S|D));var B=[t,n,e,F,C,I,T,k,s,M],N=Oe.apply(E,B);return nr(t)&&$u(N,B),N.placeholder=w,N}}var P=f?e:this,R=d?P[t]:t;return o&&(x=sr(x,o)),h&&s<x.length&&(x.length=s),this&&this!==en&&this instanceof l&&(R=m||me(t)),R.apply(P,x)}var h=n&I,f=n&S,d=n&D,p=n&T,g=n&C,y=n&F,m=d?E:me(t);return l}function Le(t,n,e){var r=t.length;if(n=+n,r>=n||!_u(n))return\"\";var i=n-r;return e=null==e?\" \":e+\"\",ya(e,gu(i/e.length)).slice(0,i)}function Ie(t,n,e,r){function i(){for(var n=-1,o=arguments.length,s=-1,c=r.length,l=Ya(c+o);++s<c;)l[s]=r[s];for(;o--;)l[s++]=arguments[++n];var h=this&&this!==en&&this instanceof i?u:t;return h.apply(a?e:this,l)}var a=n&S,u=me(t);return i}function Be(t){var n=za[t];return function(t,e){return e=e===E?0:+e||0,e?(e=su(10,e),n(t*e)/e):n(t)}}function Ne(t){return function(n,e,r,i){var a=Ue(r);return null==r&&a===xn?ie(n,e,t):ae(n,e,a(r,i,1),t)}}function Pe(t,n,e,r,i,a,u,o){var s=n&D;if(!s&&\"function\"!=typeof t)throw new Za(W);var c=r?r.length:0;if(c||(n&=~(O|L),r=i=E),c-=i?i.length:0,n&L){var l=r,h=i;r=i=E}var f=s?E:Yu(t),d=[t,n,e,r,i,l,h,a,u,o];if(f&&(ir(d,f),n=d[1],o=d[9]),d[9]=null==o?s?0:t.length:xu(o-c,0)||0,n==S)var p=pe(d[0],d[2]);else p=n!=O&&n!=(S|O)||d[4].length?Oe.apply(E,d):Ie.apply(E,d);var g=f?ju:$u;return g(p,d)}function Re(t,n,e,r,i,a,u){var o=-1,s=t.length,c=n.length;if(s!=c&&!(i&&c>s))return!1;for(;++o<s;){var l=t[o],h=n[o],f=r?r(i?h:l,i?l:h,o):E;if(f!==E){if(f)continue;return!1}if(i){if(!dn(n,function(t){return l===t||e(l,t,r,i,a,u)}))return!1}else if(l!==h&&!e(l,h,r,i,a,u))return!1}return!0}function je(t,n,e){switch(e){case V:case H:return+t==+n;case Z:return t.name==n.name&&t.message==n.message;case Q:return t!=+t?n!=+n:t==+n;case tt:case et:return t==n+\"\"}return!1}function Ye(t,n,e,r,i,a,u){var o=Yo(t),s=o.length,c=Yo(n),l=c.length;if(s!=l&&!i)return!1;for(var h=s;h--;){var f=o[h];if(!(i?f in n:tu.call(n,f)))return!1}for(var d=i;++h<s;){f=o[h];var p=t[f],g=n[f],y=r?r(i?g:p,i?p:g,f):E;if(!(y===E?e(p,g,r,i,a,u):y))return!1;d||(d=\"constructor\"==f)}if(!d){var m=t.constructor,v=n.constructor;if(m!=v&&\"constructor\"in t&&\"constructor\"in n&&!(\"function\"==typeof m&&m instanceof m&&\"function\"==typeof v&&v instanceof v))return!1}return!0}function Ue(t,e,r){var i=n.callback||Ea;return i=i===Ea?xn:i,r?i(t,e,r):i}function $e(t){for(var n=t.name,e=Lu[n],r=e?e.length:0;r--;){var i=e[r],a=i.func;if(null==a||a==t)return i.name}return n}function We(t,e,r){var i=n.indexOf||kr;return i=i===kr?a:i,t?i(t,e,r):i}function ze(t){for(var n=na(t),e=n.length;e--;)n[e][2]=rr(n[e][1]);return n}function qe(t,n){var e=null==t?E:t[n];return Pi(e)?e:E}function Ge(t,n,e){for(var r=-1,i=e.length;++r<i;){var a=e[r],u=a.size;switch(a.type){case\"drop\":t+=u;break;case\"dropRight\":n-=u;break;case\"take\":n=wu(n,t+u);break;case\"takeRight\":t=xu(t,n-u)}}return{start:t,end:n}}function Ve(t){var n=t.length,e=new t.constructor(n);return n&&\"string\"==typeof t[0]&&tu.call(t,\"index\")&&(e.index=t.index,e.input=t.input),e}function He(t){var n=t.constructor;return\"function\"==typeof n&&n instanceof n||(n=Ga),new n}function Ze(t,n,e){var r=t.constructor;switch(n){case it:return oe(t);case V:case H:return new r(+t);case at:case ut:case ot:case st:case ct:case lt:case ht:case ft:case dt:var i=t.buffer;return new r(e?oe(i):i,t.byteOffset,t.length);case Q:case et:return new r(t);case tt:var a=new r(t.source,Ot.exec(t));a.lastIndex=t.lastIndex}return a}function Xe(t,n,e){null==t||tr(n,t)||(n=fr(n),t=1==n.length?t:Bn(t,Zn(n,0,-1)),n=Mr(n));var r=null==t?t:t[n];return null==r?E:r.apply(t,e)}function Ke(t){return null!=t&&er(Uu(t))}function Qe(t,n){return t=\"number\"==typeof t||Bt.test(t)?+t:-1,n=null==n?Fu:n,t>-1&&t%1==0&&n>t}function Je(t,n,e){if(!Ii(e))return!1;var r=typeof n;if(\"number\"==r?Ke(e)&&Qe(n,e.length):\"string\"==r&&n in e){var i=e[n];return t===t?t===i:i!==i}return!1}function tr(t,n){var e=typeof t;if(\"string\"==e&&Et.test(t)||\"number\"==e)return!0;if(Co(t))return!1;var r=!kt.test(t);return r||null!=n&&t in hr(n)}function nr(t){var e=$e(t);if(!(e in K.prototype))return!1;var r=n[e];if(t===r)return!0;var i=Yu(r);return!!i&&t===i[0]}function er(t){return\"number\"==typeof t&&t>-1&&t%1==0&&Fu>=t}function rr(t){return t===t&&!Ii(t)}function ir(t,n){var e=t[1],r=n[1],i=e|r,a=I>i,u=r==I&&e==T||r==I&&e==B&&t[7].length<=n[8]||r==(I|B)&&e==T;if(!a&&!u)return t;r&S&&(t[2]=n[2],i|=e&S?0:C);var o=n[3];if(o){var s=t[3];t[3]=s?se(s,o,n[4]):tn(o),t[4]=s?_(t[3],z):tn(n[4])}return o=n[5],o&&(s=t[5],t[5]=s?ce(s,o,n[6]):tn(o),t[6]=s?_(t[5],z):tn(n[6])),o=n[7],o&&(t[7]=tn(o)),r&I&&(t[8]=null==t[8]?n[8]:wu(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i,t}function ar(t,n){return t===E?n:To(t,n,ar)}function ur(t,n){t=hr(t);for(var e=-1,r=n.length,i={};++e<r;){var a=n[e];a in t&&(i[a]=t[a])}return i}function or(t,n){var e={};return Fn(t,function(t,r,i){n(t,r,i)&&(e[r]=t)}),e}function sr(t,n){for(var e=t.length,r=wu(n.length,e),i=tn(t);r--;){var a=n[r];t[r]=Qe(a,e)?i[a]:E}return t}function cr(t){for(var n=ta(t),e=n.length,r=e&&t.length,i=!!r&&er(r)&&(Co(t)||Ei(t)),a=-1,u=[];++a<e;){var o=n[a];(i&&Qe(o,r)||tu.call(t,o))&&u.push(o)}return u}function lr(t){return null==t?[]:Ke(t)?Ii(t)?t:Ga(t):aa(t)}function hr(t){return Ii(t)?t:Ga(t)}function fr(t){if(Co(t))return t;var n=[];return o(t).replace(Mt,function(t,e,r,i){n.push(r?i.replace(Tt,\"$1\"):e||t)}),n}function dr(t){return t instanceof K?t.clone():new v(t.__wrapped__,t.__chain__,tn(t.__actions__))}function pr(t,n,e){n=(e?Je(t,n,e):null==n)?1:xu(mu(n)||1,1);for(var r=0,i=t?t.length:0,a=-1,u=Ya(gu(i/n));i>r;)u[++a]=Zn(t,r,r+=n);return u}function gr(t){for(var n=-1,e=t?t.length:0,r=-1,i=[];++n<e;){var a=t[n];a&&(i[++r]=a)}return i}function yr(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),Zn(t,0>n?0:n)):[]}function mr(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),n=r-(+n||0),Zn(t,0,0>n?0:n)):[]}function vr(t,n,e){return t&&t.length?ee(t,Ue(n,e,3),!0,!0):[]}function _r(t,n,e){return t&&t.length?ee(t,Ue(n,e,3),!0):[]}function br(t,n,e,r){var i=t?t.length:0;return i?(e&&\"number\"!=typeof e&&Je(t,n,e)&&(e=0,r=i),Sn(t,n,e,r)):[]}function xr(t){return t?t[0]:E}function wr(t,n,e){var r=t?t.length:0;return e&&Je(t,n,e)&&(n=!1),r?Tn(t,n):[]}function Ar(t){var n=t?t.length:0;return n?Tn(t,!0):[]}function kr(t,n,e){var r=t?t.length:0;if(!r)return-1;if(\"number\"==typeof e)e=0>e?xu(r+e,0):e;else if(e){var i=ie(t,n);return r>i&&(n===n?n===t[i]:t[i]!==t[i])?i:-1}return a(t,n,e||0)}function Er(t){return mr(t,1)}function Mr(t){var n=t?t.length:0;return n?t[n-1]:E}function Sr(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=r;if(\"number\"==typeof e)i=(0>e?xu(r+e,0):wu(e||0,r-1))+1;else if(e){i=ie(t,n,!0)-1;var a=t[i];return(n===n?n===a:a!==a)?i:-1}if(n!==n)return y(t,i,!0);for(;i--;)if(t[i]===n)return i;return-1}function Dr(){var t=arguments,n=t[0];if(!n||!n.length)return n;for(var e=0,r=We(),i=t.length;++e<i;)for(var a=0,u=t[e];(a=r(n,u,a))>-1;)fu.call(n,a,1);return n}function Cr(t,n,e){var r=[];if(!t||!t.length)return r;var i=-1,a=[],u=t.length;for(n=Ue(n,e,3);++i<u;){var o=t[i];n(o,i,t)&&(r.push(o),a.push(i))}return Gn(t,a),r}function Tr(t){return yr(t,1)}function Fr(t,n,e){var r=t?t.length:0;return r?(e&&\"number\"!=typeof e&&Je(t,n,e)&&(n=0,e=r),Zn(t,n,e)):[]}function Or(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),Zn(t,0,0>n?0:n)):[]}function Lr(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),n=r-(+n||0),Zn(t,0>n?0:n)):[]}function Ir(t,n,e){return t&&t.length?ee(t,Ue(n,e,3),!1,!0):[]}function Br(t,n,e){return t&&t.length?ee(t,Ue(n,e,3)):[]}function Nr(t,n,e,r){var i=t?t.length:0;if(!i)return[];null!=n&&\"boolean\"!=typeof n&&(r=e,e=Je(t,n,r)?E:n,n=!1);var u=Ue();return(null!=e||u!==xn)&&(e=u(e,r,3)),n&&We()==a?b(t,e):te(t,e)}function Pr(t){if(!t||!t.length)return[];var n=-1,e=0;t=sn(t,function(t){return Ke(t)?(e=xu(t.length,e),!0):void 0});for(var r=Ya(e);++n<e;)r[n]=cn(t,zn(n));return r}function Rr(t,n,e){var r=t?t.length:0;if(!r)return[];var i=Pr(t);return null==n?i:(n=ue(n,e,4),cn(i,function(t){return hn(t,n,E,!0)}))}function jr(){for(var t=-1,n=arguments.length;++t<n;){var e=arguments[t];if(Ke(e))var r=r?ln(kn(r,e),kn(e,r)):e}return r?te(r):[]}function Yr(t,n){var e=-1,r=t?t.length:0,i={};for(!r||n||Co(t[0])||(n=[]);++e<r;){var a=t[e];n?i[a]=n[e]:a&&(i[a[0]]=a[1])}return i}function Ur(t){var e=n(t);return e.__chain__=!0,e}function $r(t,n,e){return n.call(e,t),t}function Wr(t,n,e){return n.call(e,t)}function zr(){return Ur(this)}function qr(){return new v(this.value(),this.__chain__)}function Gr(t){for(var n,r=this;r instanceof e;){var i=dr(r);n?a.__wrapped__=i:n=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,n}function Vr(){var t=this.__wrapped__,n=function(t){return e&&e.__dir__<0?t:t.reverse()};if(t instanceof K){var e=t;return this.__actions__.length&&(e=new K(this)),e=e.reverse(),e.__actions__.push({func:Wr,args:[n],thisArg:E}),new v(e,this.__chain__)}return this.thru(n)}function Hr(){return this.value()+\"\"}function Zr(){return re(this.__wrapped__,this.__actions__)}function Xr(t,n,e){var r=Co(t)?un:En;return e&&Je(t,n,e)&&(n=E),(\"function\"!=typeof n||e!==E)&&(n=Ue(n,e,3)),r(t,n)}function Kr(t,n,e){var r=Co(t)?sn:Dn;return n=Ue(n,e,3),r(t,n)}function Qr(t,n){return ro(t,Yn(n))}function Jr(t,n,e,r){var i=t?Uu(t):0;return er(i)||(t=aa(t),i=t.length),e=\"number\"!=typeof e||r&&Je(n,e,r)?0:0>e?xu(i+e,0):e||0,\"string\"==typeof t||!Co(t)&&$i(t)?i>=e&&t.indexOf(n,e)>-1:!!i&&We(t,n,e)>-1}function ti(t,n,e){var r=Co(t)?cn:jn;return n=Ue(n,e,3),r(t,n)}function ni(t,n){return ti(t,La(n))}function ei(t,n,e){var r=Co(t)?sn:Dn;return n=Ue(n,e,3),r(t,function(t,e,r){return!n(t,e,r)})}function ri(t,n,e){if(e?Je(t,n,e):null==n){t=lr(t);var r=t.length;return r>0?t[Vn(0,r-1)]:E}var i=-1,a=Vi(t),r=a.length,u=r-1;for(n=wu(0>n?0:+n||0,r);++i<n;){var o=Vn(i,u),s=a[o];a[o]=a[i],a[i]=s}return a.length=n,a}function ii(t){return ri(t,Su)}function ai(t){var n=t?Uu(t):0;return er(n)?n:Yo(t).length}function ui(t,n,e){var r=Co(t)?dn:Xn;return e&&Je(t,n,e)&&(n=E),(\"function\"!=typeof n||e!==E)&&(n=Ue(n,e,3)),r(t,n)}function oi(t,n,e){if(null==t)return[];e&&Je(t,n,e)&&(n=E);var r=-1;n=Ue(n,e,3);var i=jn(t,function(t,e,i){return{criteria:n(t,e,i),index:++r,value:t}});return Kn(i,l)}function si(t,n,e,r){return null==t?[]:(r&&Je(n,e,r)&&(e=E),Co(n)||(n=null==n?[]:[n]),Co(e)||(e=null==e?[]:[e]),Qn(t,n,e))}function ci(t,n){return Kr(t,Yn(n))}function li(t,n){if(\"function\"!=typeof n){if(\"function\"!=typeof t)throw new Za(W);var e=t;t=n,n=e}return t=_u(t=+t)?t:0,function(){return--t<1?n.apply(this,arguments):void 0}}function hi(t,n,e){return e&&Je(t,n,e)&&(n=E),n=t&&null==n?t.length:xu(+n||0,0),Pe(t,I,E,E,E,E,n)}function fi(t,n){var e;if(\"function\"!=typeof n){if(\"function\"!=typeof t)throw new Za(W);var r=t;t=n,n=r}return function(){return--t>0&&(e=n.apply(this,arguments)),1>=t&&(n=E),e}}function di(t,n,e){function r(){d&&uu(d),c&&uu(c),g=0,c=d=p=E}function i(n,e){e&&uu(e),c=d=p=E,n&&(g=go(),l=t.apply(f,s),d||c||(s=f=E))}function a(){var t=n-(go()-h);0>=t||t>n?i(p,c):d=hu(a,t)}function u(){i(m,d)}function o(){if(s=arguments,h=go(),f=this,p=m&&(d||!v),y===!1)var e=v&&!d;else{c||v||(g=h);var r=y-(h-g),i=0>=r||r>y;i?(c&&(c=uu(c)),g=h,l=t.apply(f,s)):c||(c=hu(u,r))}return i&&d?d=uu(d):d||n===y||(d=hu(a,n)),e&&(i=!0,l=t.apply(f,s)),!i||d||c||(s=f=E),l}var s,c,l,h,f,d,p,g=0,y=!1,m=!0;if(\"function\"!=typeof t)throw new Za(W);if(n=0>n?0:+n||0,e===!0){var v=!0;m=!1}else Ii(e)&&(v=!!e.leading,y=\"maxWait\"in e&&xu(+e.maxWait||0,n),m=\"trailing\"in e?!!e.trailing:m);return o.cancel=r,o}function pi(t,n){if(\"function\"!=typeof t||n&&\"function\"!=typeof n)throw new Za(W);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],a=e.cache;if(a.has(i))return a.get(i);var u=t.apply(this,r);return e.cache=a.set(i,u),u};return e.cache=new pi.Cache,e}function gi(t){if(\"function\"!=typeof t)throw new Za(W);return function(){return!t.apply(this,arguments)}}function yi(t){return fi(2,t)}function mi(t,n){if(\"function\"!=typeof t)throw new Za(W);return n=xu(n===E?t.length-1:+n||0,0),function(){for(var e=arguments,r=-1,i=xu(e.length-n,0),a=Ya(i);++r<i;)a[r]=e[n+r];switch(n){case 0:return t.call(this,a);case 1:return t.call(this,e[0],a);case 2:return t.call(this,e[0],e[1],a)}var u=Ya(n+1);for(r=-1;++r<n;)u[r]=e[r];return u[n]=a,t.apply(this,u)}}function vi(t){if(\"function\"!=typeof t)throw new Za(W);return function(n){return t.apply(this,n)}}function _i(t,n,e){var r=!0,i=!0;if(\"function\"!=typeof t)throw new Za(W);return e===!1?r=!1:Ii(e)&&(r=\"leading\"in e?!!e.leading:r,i=\"trailing\"in e?!!e.trailing:i),di(t,n,{leading:r,maxWait:+n,trailing:i})}function bi(t,n){return n=null==n?Sa:n,Pe(n,O,E,[t],[])}function xi(t,n,e,r){return n&&\"boolean\"!=typeof n&&Je(t,n,e)?n=!1:\"function\"==typeof n&&(r=e,e=n,n=!1),\"function\"==typeof e?wn(t,n,ue(e,r,1)):wn(t,n)}function wi(t,n,e){return\"function\"==typeof n?wn(t,!0,ue(n,e,1)):wn(t,!0)}function Ai(t,n){return t>n}function ki(t,n){return t>=n}function Ei(t){return m(t)&&Ke(t)&&tu.call(t,\"callee\")&&!cu.call(t,\"callee\")}function Mi(t){return t===!0||t===!1||m(t)&&eu.call(t)==V}function Si(t){return m(t)&&eu.call(t)==H}function Di(t){return!!t&&1===t.nodeType&&m(t)&&!Yi(t)}function Ci(t){return null==t?!0:Ke(t)&&(Co(t)||$i(t)||Ei(t)||m(t)&&Li(t.splice))?!t.length:!Yo(t).length}function Ti(t,n,e,r){e=\"function\"==typeof e?ue(e,r,3):E;var i=e?e(t,n):E;return i===E?Nn(t,n,e):!!i}function Fi(t){return m(t)&&\"string\"==typeof t.message&&eu.call(t)==Z}function Oi(t){return\"number\"==typeof t&&_u(t)}function Li(t){return Ii(t)&&eu.call(t)==X}function Ii(t){var n=typeof t;return!!t&&(\"object\"==n||\"function\"==n)}function Bi(t,n,e,r){return e=\"function\"==typeof e?ue(e,r,3):E,Rn(t,ze(n),e)}function Ni(t){return ji(t)&&t!=+t}function Pi(t){return null==t?!1:Li(t)?iu.test(Ja.call(t)):m(t)&&It.test(t)}function Ri(t){return null===t}function ji(t){return\"number\"==typeof t||m(t)&&eu.call(t)==Q}function Yi(t){var n;if(!m(t)||eu.call(t)!=J||Ei(t)||!tu.call(t,\"constructor\")&&(n=t.constructor,\"function\"==typeof n&&!(n instanceof n)))return!1;var e;return Fn(t,function(t,n){e=n}),e===E||tu.call(t,e)}function Ui(t){return Ii(t)&&eu.call(t)==tt}function $i(t){return\"string\"==typeof t||m(t)&&eu.call(t)==et}function Wi(t){return m(t)&&er(t.length)&&!!$t[eu.call(t)]}function zi(t){return t===E}function qi(t,n){return n>t}function Gi(t,n){return n>=t}function Vi(t){var n=t?Uu(t):0;return er(n)?n?tn(t):[]:aa(t)}function Hi(t){return bn(t,ta(t))}function Zi(t,n,e){var r=Iu(t);return e&&Je(t,n,e)&&(n=E),n?vn(r,n):r}function Xi(t){return In(t,ta(t))}function Ki(t,n,e){var r=null==t?E:Bn(t,fr(n),n+\"\");return r===E?e:r}function Qi(t,n){if(null==t)return!1;var e=tu.call(t,n);if(!e&&!tr(n)){if(n=fr(n),t=1==n.length?t:Bn(t,Zn(n,0,-1)),null==t)return!1;n=Mr(n),e=tu.call(t,n)}return e||er(t.length)&&Qe(n,t.length)&&(Co(t)||Ei(t))}function Ji(t,n,e){e&&Je(t,n,e)&&(n=E);for(var r=-1,i=Yo(t),a=i.length,u={};++r<a;){var o=i[r],s=t[o];n?tu.call(u,s)?u[s].push(o):u[s]=[o]:u[s]=o}return u}function ta(t){if(null==t)return[];Ii(t)||(t=Ga(t));var n=t.length;n=n&&er(n)&&(Co(t)||Ei(t))&&n||0;for(var e=t.constructor,r=-1,i=\"function\"==typeof e&&e.prototype===t,a=Ya(n),u=n>0;++r<n;)a[r]=r+\"\";for(var o in t)u&&Qe(o,n)||\"constructor\"==o&&(i||!tu.call(t,o))||a.push(o);return a}function na(t){t=hr(t);for(var n=-1,e=Yo(t),r=e.length,i=Ya(r);++n<r;){var a=e[n];i[n]=[a,t[a]]}return i}function ea(t,n,e){var r=null==t?E:t[n];return r===E&&(null==t||tr(n,t)||(n=fr(n),t=1==n.length?t:Bn(t,Zn(n,0,-1)),r=null==t?E:t[Mr(n)]),r=r===E?e:r),Li(r)?r.call(t):r}function ra(t,n,e){if(null==t)return t;var r=n+\"\";n=null!=t[r]||tr(n,t)?[r]:fr(n);for(var i=-1,a=n.length,u=a-1,o=t;null!=o&&++i<a;){var s=n[i];Ii(o)&&(i==u?o[s]=e:null==o[s]&&(o[s]=Qe(n[i+1])?[]:{})),o=o[s]}return t}function ia(t,n,e,r){var i=Co(t)||Wi(t);if(n=Ue(n,r,4),null==e)if(i||Ii(t)){var a=t.constructor;e=i?Co(t)?new a:[]:Iu(Li(a)?a.prototype:E)}else e={};return(i?nn:On)(t,function(t,r,i){return n(e,t,r,i)}),e}function aa(t){return ne(t,Yo(t))}function ua(t){return ne(t,ta(t))}function oa(t,n,e){return n=+n||0,e===E?(e=n,n=0):e=+e||0,t>=wu(n,e)&&t<xu(n,e)}function sa(t,n,e){e&&Je(t,n,e)&&(n=e=E);var r=null==t,i=null==n;if(null==e&&(i&&\"boolean\"==typeof t?(e=t,t=1):\"boolean\"==typeof n&&(e=n,i=!0)),r&&i&&(n=1,i=!1),t=+t||0,i?(n=t,t=0):n=+n||0,e||t%1||n%1){var a=Eu();return wu(t+a*(n-t+ou(\"1e-\"+((a+\"\").length-1))),n)}return Vn(t,n)}function ca(t){return t=o(t),t&&t.charAt(0).toUpperCase()+t.slice(1)}function la(t){return t=o(t),t&&t.replace(Nt,f).replace(Ct,\"\")}function ha(t,n,e){t=o(t),n+=\"\";var r=t.length;return e=e===E?r:wu(0>e?0:+e||0,r),e-=n.length,e>=0&&t.indexOf(n,e)==e}function fa(t){return t=o(t),t&&bt.test(t)?t.replace(vt,d):t}function da(t){return t=o(t),t&&Dt.test(t)?t.replace(St,p):t||\"(?:)\"}function pa(t,n,e){t=o(t),n=+n;var r=t.length;if(r>=n||!_u(n))return t;var i=(n-r)/2,a=mu(i),u=gu(i);return e=Le(\"\",u,e),e.slice(0,a)+t+e}function ga(t,n,e){return(e?Je(t,n,e):null==n)?n=0:n&&(n=+n),t=_a(t),ku(t,n||(Lt.test(t)?16:10))}function ya(t,n){var e=\"\";if(t=o(t),n=+n,1>n||!t||!_u(n))return e;do n%2&&(e+=t),n=mu(n/2),t+=t;while(n);return e}function ma(t,n,e){return t=o(t),e=null==e?0:wu(0>e?0:+e||0,t.length),t.lastIndexOf(n,e)==e}function va(t,e,r){var i=n.templateSettings;r&&Je(t,e,r)&&(e=r=E),t=o(t),e=mn(vn({},r||e),i,yn);var a,u,s=mn(vn({},e.imports),i.imports,yn),c=Yo(s),l=ne(s,c),h=0,f=e.interpolate||Pt,d=\"__p += '\",p=Va((e.escape||Pt).source+\"|\"+f.source+\"|\"+(f===At?Ft:Pt).source+\"|\"+(e.evaluate||Pt).source+\"|$\",\"g\"),y=\"//# sourceURL=\"+(\"sourceURL\"in e?e.sourceURL:\"lodash.templateSources[\"+ ++Ut+\"]\")+\"\\n\";t.replace(p,function(n,e,r,i,o,s){return r||(r=i),d+=t.slice(h,s).replace(Rt,g),e&&(a=!0,d+=\"' +\\n__e(\"+e+\") +\\n'\"),o&&(u=!0,d+=\"';\\n\"+o+\";\\n__p += '\"),r&&(d+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),h=s+n.length,n}),d+=\"';\\n\";var m=e.variable;m||(d=\"with (obj) {\\n\"+d+\"\\n}\\n\"),d=(u?d.replace(pt,\"\"):d).replace(gt,\"$1\").replace(yt,\"$1;\"),d=\"function(\"+(m||\"obj\")+\") {\\n\"+(m?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(u?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+d+\"return __p\\n}\";var v=Ko(function(){return Wa(c,y+\"return \"+d).apply(E,l)});if(v.source=d,Fi(v))throw v;return v}function _a(t,n,e){var r=t;return(t=o(t))?(e?Je(r,n,e):null==n)?t.slice(x(t),w(t)+1):(n+=\"\",t.slice(s(t,n),c(t,n)+1)):t}function ba(t,n,e){var r=t;return t=o(t),t?t.slice((e?Je(r,n,e):null==n)?x(t):s(t,n+\"\")):t}function xa(t,n,e){var r=t;return t=o(t),t?(e?Je(r,n,e):null==n)?t.slice(0,w(t)+1):t.slice(0,c(t,n+\"\")+1):t}function wa(t,n,e){e&&Je(t,n,e)&&(n=E);var r=N,i=P;if(null!=n)if(Ii(n)){var a=\"separator\"in n?n.separator:a;r=\"length\"in n?+n.length||0:r,i=\"omission\"in n?o(n.omission):i}else r=+n||0;if(t=o(t),r>=t.length)return t;var u=r-i.length;if(1>u)return i;var s=t.slice(0,u);if(null==a)return s+i;if(Ui(a)){if(t.slice(u).search(a)){var c,l,h=t.slice(0,u);for(a.global||(a=Va(a.source,(Ot.exec(a)||\"\")+\"g\")),a.lastIndex=0;c=a.exec(h);)l=c.index;s=s.slice(0,null==l?u:l)}}else if(t.indexOf(a,u)!=u){var f=s.lastIndexOf(a);f>-1&&(s=s.slice(0,f))}return s+i}function Aa(t){return t=o(t),t&&_t.test(t)?t.replace(mt,A):t}function ka(t,n,e){return e&&Je(t,n,e)&&(n=E),t=o(t),t.match(n||jt)||[]}function Ea(t,n,e){return e&&Je(t,n,e)&&(n=E),m(t)?Da(t):xn(t,n)}function Ma(t){return function(){return t}}function Sa(t){return t}function Da(t){return Yn(wn(t,!0))}function Ca(t,n){return Un(t,wn(n,!0))}function Ta(t,n,e){if(null==e){var r=Ii(n),i=r?Yo(n):E,a=i&&i.length?In(n,i):E;(a?a.length:r)||(a=!1,e=n,n=t,t=this)}a||(a=In(n,Yo(n)));var u=!0,o=-1,s=Li(t),c=a.length;e===!1?u=!1:Ii(e)&&\"chain\"in e&&(u=e.chain);for(;++o<c;){var l=a[o],h=n[l];t[l]=h,s&&(t.prototype[l]=function(n){return function(){var e=this.__chain__;if(u||e){var r=t(this.__wrapped__),i=r.__actions__=tn(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,ln([this.value()],arguments))}}(h))}return t}function Fa(){return en._=ru,this}function Oa(){}function La(t){return tr(t)?zn(t):qn(t)}function Ia(t){return function(n){return Bn(t,fr(n),n+\"\")}}function Ba(t,n,e){e&&Je(t,n,e)&&(n=e=E),t=+t||0,e=null==e?1:+e||0,null==n?(n=t,t=0):n=+n||0;for(var r=-1,i=xu(gu((n-t)/(e||1)),0),a=Ya(i);++r<i;)a[r]=t,t+=e;return a}function Na(t,n,e){if(t=mu(t),1>t||!_u(t))return[];var r=-1,i=Ya(wu(t,Du));for(n=ue(n,e,1);++r<t;)Du>r?i[r]=n(r):n(r);return i}function Pa(t){var n=++nu;return o(t)+n}function Ra(t,n){return(+t||0)+(+n||0)}function ja(t,n,e){return e&&Je(t,n,e)&&(n=E),n=Ue(n,e,3),1==n.length?pn(Co(t)?t:lr(t),n):Jn(t,n)}t=t?rn.defaults(en.Object(),t,rn.pick(en,Yt)):en;{var Ya=t.Array,Ua=t.Date,$a=t.Error,Wa=t.Function,za=t.Math,qa=t.Number,Ga=t.Object,Va=t.RegExp,Ha=t.String,Za=t.TypeError,Xa=Ya.prototype,Ka=Ga.prototype,Qa=Ha.prototype,Ja=Wa.prototype.toString,tu=Ka.hasOwnProperty,nu=0,eu=Ka.toString,ru=en._,iu=Va(\"^\"+Ja.call(tu).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),au=t.ArrayBuffer,uu=t.clearTimeout,ou=t.parseFloat,su=za.pow,cu=Ka.propertyIsEnumerable,lu=qe(t,\"Set\"),hu=t.setTimeout,fu=Xa.splice,du=t.Uint8Array,pu=qe(t,\"WeakMap\"),gu=za.ceil,yu=qe(Ga,\"create\"),mu=za.floor,vu=qe(Ya,\"isArray\"),_u=t.isFinite,bu=qe(Ga,\"keys\"),xu=za.max,wu=za.min,Au=qe(Ua,\"now\"),ku=t.parseInt,Eu=za.random,Mu=qa.NEGATIVE_INFINITY,Su=qa.POSITIVE_INFINITY,Du=4294967295,Cu=Du-1,Tu=Du>>>1,Fu=9007199254740991,Ou=pu&&new pu,Lu={};n.support={}}n.templateSettings={escape:xt,evaluate:wt,interpolate:At,variable:\"\",imports:{_:n}};var Iu=function(){function t(){}return function(n){if(Ii(n)){t.prototype=n;var e=new t;t.prototype=E}return e||{}}}(),Bu=fe(On),Nu=fe(Ln,!0),Pu=de(),Ru=de(!0),ju=Ou?function(t,n){return Ou.set(t,n),t}:Sa,Yu=Ou?function(t){return Ou.get(t)}:Oa,Uu=zn(\"length\"),$u=function(){var t=0,n=0;return function(e,r){var i=go(),a=j-(i-n);if(n=i,a>0){if(++t>=R)return e}else t=0;return ju(e,r)}}(),Wu=mi(function(t,n){return m(t)&&Ke(t)?kn(t,Tn(n,!1,!0)):[]}),zu=we(),qu=we(!0),Gu=mi(function(t){for(var n=t.length,e=n,r=Ya(h),i=We(),u=i==a,o=[];e--;){var s=t[e]=Ke(s=t[e])?s:[];r[e]=u&&s.length>=120?ge(e&&s):null}var c=t[0],l=-1,h=c?c.length:0,f=r[0];t:for(;++l<h;)if(s=c[l],(f?Kt(f,s):i(o,s,0))<0){for(var e=n;--e;){var d=r[e];if((d?Kt(d,s):i(t[e],s,0))<0)continue t}f&&f.push(s),o.push(s)}return o}),Vu=mi(function(t,n){n=Tn(n);var e=_n(t,n);return Gn(t,n.sort(r)),e}),Hu=Ne(),Zu=Ne(!0),Xu=mi(function(t){return te(Tn(t,!1,!0))}),Ku=mi(function(t,n){return Ke(t)?kn(t,n):[]}),Qu=mi(Pr),Ju=mi(function(t){var n=t.length,e=n>2?t[n-2]:E,r=n>1?t[n-1]:E;return n>2&&\"function\"==typeof e?n-=2:(e=n>1&&\"function\"==typeof r?(--n,r):E,r=E),t.length=n,Rr(t,e,r)}),to=mi(function(t){return t=Tn(t),this.thru(function(n){return Jt(Co(n)?n:[hr(n)],t)})}),no=mi(function(t,n){return _n(t,Tn(n))}),eo=le(function(t,n,e){tu.call(t,e)?++t[e]:t[e]=1}),ro=xe(Bu),io=xe(Nu,!0),ao=Ee(nn,Bu),uo=Ee(an,Nu),oo=le(function(t,n,e){tu.call(t,e)?t[e].push(n):t[e]=[n]}),so=le(function(t,n,e){t[e]=n}),co=mi(function(t,n,e){var r=-1,i=\"function\"==typeof n,a=tr(n),u=Ke(t)?Ya(t.length):[];return Bu(t,function(t){var o=i?n:a&&null!=t?t[n]:E;u[++r]=o?o.apply(t,e):Xe(t,n,e)}),u}),lo=le(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),ho=Fe(hn,Bu),fo=Fe(fn,Nu),po=mi(function(t,n){if(null==t)return[];var e=n[2];return e&&Je(n[0],n[1],e)&&(n.length=1),Qn(t,Tn(n),[])}),go=Au||function(){return(new Ua).getTime()},yo=mi(function(t,n,e){var r=S;if(e.length){var i=_(e,yo.placeholder);r|=O}return Pe(t,r,n,e,i)}),mo=mi(function(t,n){n=n.length?Tn(n):Xi(t);for(var e=-1,r=n.length;++e<r;){var i=n[e];t[i]=Pe(t[i],S,t)}return t}),vo=mi(function(t,n,e){var r=S|D;if(e.length){var i=_(e,vo.placeholder);r|=O}return Pe(n,r,t,e,i)}),_o=ve(T),bo=ve(F),xo=mi(function(t,n){return An(t,1,n)}),wo=mi(function(t,n,e){return An(t,n,e)}),Ao=ke(),ko=ke(!0),Eo=mi(function(t,n){if(n=Tn(n),\"function\"!=typeof t||!un(n,u))throw new Za(W);var e=n.length;return mi(function(r){for(var i=wu(r.length,e);i--;)r[i]=n[i](r[i]);\n\nreturn t.apply(this,r)})}),Mo=Te(O),So=Te(L),Do=mi(function(t,n){return Pe(t,B,E,E,E,Tn(n))}),Co=vu||function(t){return m(t)&&er(t.length)&&eu.call(t)==G},To=he($n),Fo=he(function(t,n,e){return e?mn(t,n,e):vn(t,n)}),Oo=_e(Fo,gn),Lo=_e(To,ar),Io=Ae(On),Bo=Ae(Ln),No=Me(Pu),Po=Me(Ru),Ro=Se(On),jo=Se(Ln),Yo=bu?function(t){var n=null==t?E:t.constructor;return\"function\"==typeof n&&n.prototype===t||\"function\"!=typeof t&&Ke(t)?cr(t):Ii(t)?bu(t):[]}:cr,Uo=De(!0),$o=De(),Wo=mi(function(t,n){if(null==t)return{};if(\"function\"!=typeof n[0]){var n=cn(Tn(n),Ha);return ur(t,kn(ta(t),n))}var e=ue(n[0],n[1],3);return or(t,function(t,n,r){return!e(t,n,r)})}),zo=mi(function(t,n){return null==t?{}:\"function\"==typeof n[0]?or(t,ue(n[0],n[1],3)):ur(t,Tn(n))}),qo=ye(function(t,n,e){return n=n.toLowerCase(),t+(e?n.charAt(0).toUpperCase()+n.slice(1):n)}),Go=ye(function(t,n,e){return t+(e?\"-\":\"\")+n.toLowerCase()}),Vo=Ce(),Ho=Ce(!0),Zo=ye(function(t,n,e){return t+(e?\"_\":\"\")+n.toLowerCase()}),Xo=ye(function(t,n,e){return t+(e?\" \":\"\")+(n.charAt(0).toUpperCase()+n.slice(1))}),Ko=mi(function(t,n){try{return t.apply(E,n)}catch(e){return Fi(e)?e:new $a(e)}}),Qo=mi(function(t,n){return function(e){return Xe(e,t,n)}}),Jo=mi(function(t,n){return function(e){return Xe(t,e,n)}}),ts=Be(\"ceil\"),ns=Be(\"floor\"),es=be(Ai,Mu),rs=be(qi,Su),is=Be(\"round\");return n.prototype=e.prototype,v.prototype=Iu(e.prototype),v.prototype.constructor=v,K.prototype=Iu(e.prototype),K.prototype.constructor=K,qt.prototype[\"delete\"]=Gt,qt.prototype.get=Vt,qt.prototype.has=Ht,qt.prototype.set=Zt,Xt.prototype.push=Qt,pi.Cache=qt,n.after=li,n.ary=hi,n.assign=Fo,n.at=no,n.before=fi,n.bind=yo,n.bindAll=mo,n.bindKey=vo,n.callback=Ea,n.chain=Ur,n.chunk=pr,n.compact=gr,n.constant=Ma,n.countBy=eo,n.create=Zi,n.curry=_o,n.curryRight=bo,n.debounce=di,n.defaults=Oo,n.defaultsDeep=Lo,n.defer=xo,n.delay=wo,n.difference=Wu,n.drop=yr,n.dropRight=mr,n.dropRightWhile=vr,n.dropWhile=_r,n.fill=br,n.filter=Kr,n.flatten=wr,n.flattenDeep=Ar,n.flow=Ao,n.flowRight=ko,n.forEach=ao,n.forEachRight=uo,n.forIn=No,n.forInRight=Po,n.forOwn=Ro,n.forOwnRight=jo,n.functions=Xi,n.groupBy=oo,n.indexBy=so,n.initial=Er,n.intersection=Gu,n.invert=Ji,n.invoke=co,n.keys=Yo,n.keysIn=ta,n.map=ti,n.mapKeys=Uo,n.mapValues=$o,n.matches=Da,n.matchesProperty=Ca,n.memoize=pi,n.merge=To,n.method=Qo,n.methodOf=Jo,n.mixin=Ta,n.modArgs=Eo,n.negate=gi,n.omit=Wo,n.once=yi,n.pairs=na,n.partial=Mo,n.partialRight=So,n.partition=lo,n.pick=zo,n.pluck=ni,n.property=La,n.propertyOf=Ia,n.pull=Dr,n.pullAt=Vu,n.range=Ba,n.rearg=Do,n.reject=ei,n.remove=Cr,n.rest=Tr,n.restParam=mi,n.set=ra,n.shuffle=ii,n.slice=Fr,n.sortBy=oi,n.sortByAll=po,n.sortByOrder=si,n.spread=vi,n.take=Or,n.takeRight=Lr,n.takeRightWhile=Ir,n.takeWhile=Br,n.tap=$r,n.throttle=_i,n.thru=Wr,n.times=Na,n.toArray=Vi,n.toPlainObject=Hi,n.transform=ia,n.union=Xu,n.uniq=Nr,n.unzip=Pr,n.unzipWith=Rr,n.values=aa,n.valuesIn=ua,n.where=ci,n.without=Ku,n.wrap=bi,n.xor=jr,n.zip=Qu,n.zipObject=Yr,n.zipWith=Ju,n.backflow=ko,n.collect=ti,n.compose=ko,n.each=ao,n.eachRight=uo,n.extend=Fo,n.iteratee=Ea,n.methods=Xi,n.object=Yr,n.select=Kr,n.tail=Tr,n.unique=Nr,Ta(n,n),n.add=Ra,n.attempt=Ko,n.camelCase=qo,n.capitalize=ca,n.ceil=ts,n.clone=xi,n.cloneDeep=wi,n.deburr=la,n.endsWith=ha,n.escape=fa,n.escapeRegExp=da,n.every=Xr,n.find=ro,n.findIndex=zu,n.findKey=Io,n.findLast=io,n.findLastIndex=qu,n.findLastKey=Bo,n.findWhere=Qr,n.first=xr,n.floor=ns,n.get=Ki,n.gt=Ai,n.gte=ki,n.has=Qi,n.identity=Sa,n.includes=Jr,n.indexOf=kr,n.inRange=oa,n.isArguments=Ei,n.isArray=Co,n.isBoolean=Mi,n.isDate=Si,n.isElement=Di,n.isEmpty=Ci,n.isEqual=Ti,n.isError=Fi,n.isFinite=Oi,n.isFunction=Li,n.isMatch=Bi,n.isNaN=Ni,n.isNative=Pi,n.isNull=Ri,n.isNumber=ji,n.isObject=Ii,n.isPlainObject=Yi,n.isRegExp=Ui,n.isString=$i,n.isTypedArray=Wi,n.isUndefined=zi,n.kebabCase=Go,n.last=Mr,n.lastIndexOf=Sr,n.lt=qi,n.lte=Gi,n.max=es,n.min=rs,n.noConflict=Fa,n.noop=Oa,n.now=go,n.pad=pa,n.padLeft=Vo,n.padRight=Ho,n.parseInt=ga,n.random=sa,n.reduce=ho,n.reduceRight=fo,n.repeat=ya,n.result=ea,n.round=is,n.runInContext=k,n.size=ai,n.snakeCase=Zo,n.some=ui,n.sortedIndex=Hu,n.sortedLastIndex=Zu,n.startCase=Xo,n.startsWith=ma,n.sum=ja,n.template=va,n.trim=_a,n.trimLeft=ba,n.trimRight=xa,n.trunc=wa,n.unescape=Aa,n.uniqueId=Pa,n.words=ka,n.all=Xr,n.any=ui,n.contains=Jr,n.eq=Ti,n.detect=ro,n.foldl=ho,n.foldr=fo,n.head=xr,n.include=Jr,n.inject=ho,Ta(n,function(){var t={};return On(n,function(e,r){n.prototype[r]||(t[r]=e)}),t}(),!1),n.sample=ri,n.prototype.sample=function(t){return this.__chain__||null!=t?this.thru(function(n){return ri(n,t)}):ri(this.value())},n.VERSION=M,nn([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(t){n[t].placeholder=n}),nn([\"drop\",\"take\"],function(t,n){K.prototype[t]=function(e){var r=this.__filtered__;if(r&&!n)return new K(this);e=null==e?1:xu(mu(e)||0,0);var i=this.clone();return r?i.__takeCount__=wu(i.__takeCount__,e):i.__views__.push({size:e,type:t+(i.__dir__<0?\"Right\":\"\")}),i},K.prototype[t+\"Right\"]=function(n){return this.reverse()[t](n).reverse()}}),nn([\"filter\",\"map\",\"takeWhile\"],function(t,n){var e=n+1,r=e!=$;K.prototype[t]=function(t,n){var i=this.clone();return i.__iteratees__.push({iteratee:Ue(t,n,1),type:e}),i.__filtered__=i.__filtered__||r,i}}),nn([\"first\",\"last\"],function(t,n){var e=\"take\"+(n?\"Right\":\"\");K.prototype[t]=function(){return this[e](1).value()[0]}}),nn([\"initial\",\"rest\"],function(t,n){var e=\"drop\"+(n?\"\":\"Right\");K.prototype[t]=function(){return this.__filtered__?new K(this):this[e](1)}}),nn([\"pluck\",\"where\"],function(t,n){var e=n?\"filter\":\"map\",r=n?Yn:La;K.prototype[t]=function(t){return this[e](r(t))}}),K.prototype.compact=function(){return this.filter(Sa)},K.prototype.reject=function(t,n){return t=Ue(t,n,1),this.filter(function(n){return!t(n)})},K.prototype.slice=function(t,n){t=null==t?0:+t||0;var e=this;return e.__filtered__&&(t>0||0>n)?new K(e):(0>t?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==E&&(n=+n||0,e=0>n?e.dropRight(-n):e.take(n-t)),e)},K.prototype.takeRightWhile=function(t,n){return this.reverse().takeWhile(t,n).reverse()},K.prototype.toArray=function(){return this.take(Su)},On(K.prototype,function(t,e){var r=/^(?:filter|map|reject)|While$/.test(e),i=/^(?:first|last)$/.test(e),a=n[i?\"take\"+(\"last\"==e?\"Right\":\"\"):e];a&&(n.prototype[e]=function(){var n=i?[1]:arguments,e=this.__chain__,u=this.__wrapped__,o=!!this.__actions__.length,s=u instanceof K,c=n[0],l=s||Co(u);l&&r&&\"function\"==typeof c&&1!=c.length&&(s=l=!1);var h=function(t){return i&&e?a(t,1)[0]:a.apply(E,ln([t],n))},f={func:Wr,args:[h],thisArg:E},d=s&&!o;if(i&&!e)return d?(u=u.clone(),u.__actions__.push(f),t.call(u)):a.call(E,this.value())[0];if(!i&&l){u=d?u:new K(this);var p=t.apply(u,n);return p.__actions__.push(f),new v(p,e)}return this.thru(h)})}),nn([\"join\",\"pop\",\"push\",\"replace\",\"shift\",\"sort\",\"splice\",\"split\",\"unshift\"],function(t){var e=(/^(?:replace|split)$/.test(t)?Qa:Xa)[t],r=/^(?:push|sort|unshift)$/.test(t)?\"tap\":\"thru\",i=/^(?:join|pop|replace|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;return i&&!this.__chain__?e.apply(this.value(),t):this[r](function(n){return e.apply(n,t)})}}),On(K.prototype,function(t,e){var r=n[e];if(r){var i=r.name,a=Lu[i]||(Lu[i]=[]);a.push({name:e,func:r})}}),Lu[Oe(E,D).name]=[{name:\"wrapper\",func:E}],K.prototype.clone=nt,K.prototype.reverse=rt,K.prototype.value=zt,n.prototype.chain=zr,n.prototype.commit=qr,n.prototype.concat=to,n.prototype.plant=Gr,n.prototype.reverse=Vr,n.prototype.toString=Hr,n.prototype.run=n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=Zr,n.prototype.collect=n.prototype.map,n.prototype.head=n.prototype.first,n.prototype.select=n.prototype.filter,n.prototype.tail=n.prototype.rest,n}var E,M=\"3.10.1\",S=1,D=2,C=4,T=8,F=16,O=32,L=64,I=128,B=256,N=30,P=\"...\",R=150,j=16,Y=200,U=1,$=2,W=\"Expected a function\",z=\"__lodash_placeholder__\",q=\"[object Arguments]\",G=\"[object Array]\",V=\"[object Boolean]\",H=\"[object Date]\",Z=\"[object Error]\",X=\"[object Function]\",K=\"[object Map]\",Q=\"[object Number]\",J=\"[object Object]\",tt=\"[object RegExp]\",nt=\"[object Set]\",et=\"[object String]\",rt=\"[object WeakMap]\",it=\"[object ArrayBuffer]\",at=\"[object Float32Array]\",ut=\"[object Float64Array]\",ot=\"[object Int8Array]\",st=\"[object Int16Array]\",ct=\"[object Int32Array]\",lt=\"[object Uint8Array]\",ht=\"[object Uint8ClampedArray]\",ft=\"[object Uint16Array]\",dt=\"[object Uint32Array]\",pt=/\\b__p \\+= '';/g,gt=/\\b(__p \\+=) '' \\+/g,yt=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,mt=/&(?:amp|lt|gt|quot|#39|#96);/g,vt=/[&<>\"'`]/g,_t=RegExp(mt.source),bt=RegExp(vt.source),xt=/<%-([\\s\\S]+?)%>/g,wt=/<%([\\s\\S]+?)%>/g,At=/<%=([\\s\\S]+?)%>/g,kt=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?\\1)\\]/,Et=/^\\w*$/,Mt=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,St=/^[:!,]|[\\\\^$.*+?()[\\]{}|\\/]|(^[0-9a-fA-Fnrtuvx])|([\\n\\r\\u2028\\u2029])/g,Dt=RegExp(St.source),Ct=/[\\u0300-\\u036f\\ufe20-\\ufe23]/g,Tt=/\\\\(\\\\)?/g,Ft=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,Ot=/\\w*$/,Lt=/^0[xX]/,It=/^\\[object .+?Constructor\\]$/,Bt=/^\\d+$/,Nt=/[\\xc0-\\xd6\\xd8-\\xde\\xdf-\\xf6\\xf8-\\xff]/g,Pt=/($^)/,Rt=/['\\n\\r\\u2028\\u2029\\\\]/g,jt=function(){var t=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",n=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]+\";return RegExp(t+\"+(?=\"+t+n+\")|\"+t+\"?\"+n+\"|\"+t+\"+|[0-9]+\",\"g\")}(),Yt=[\"Array\",\"ArrayBuffer\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Math\",\"Number\",\"Object\",\"RegExp\",\"Set\",\"String\",\"_\",\"clearTimeout\",\"isFinite\",\"parseFloat\",\"parseInt\",\"setTimeout\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\"],Ut=-1,$t={};$t[at]=$t[ut]=$t[ot]=$t[st]=$t[ct]=$t[lt]=$t[ht]=$t[ft]=$t[dt]=!0,$t[q]=$t[G]=$t[it]=$t[V]=$t[H]=$t[Z]=$t[X]=$t[K]=$t[Q]=$t[J]=$t[tt]=$t[nt]=$t[et]=$t[rt]=!1;var Wt={};Wt[q]=Wt[G]=Wt[it]=Wt[V]=Wt[H]=Wt[at]=Wt[ut]=Wt[ot]=Wt[st]=Wt[ct]=Wt[Q]=Wt[J]=Wt[tt]=Wt[et]=Wt[lt]=Wt[ht]=Wt[ft]=Wt[dt]=!0,Wt[Z]=Wt[X]=Wt[K]=Wt[nt]=Wt[rt]=!1;var zt={\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"Ç\":\"C\",\"ç\":\"c\",\"Ð\":\"D\",\"ð\":\"d\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"Ñ\":\"N\",\"ñ\":\"n\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"Ý\":\"Y\",\"ý\":\"y\",\"ÿ\":\"y\",\"Æ\":\"Ae\",\"æ\":\"ae\",\"Þ\":\"Th\",\"þ\":\"th\",\"ß\":\"ss\"},qt={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\",\"`\":\"`\"},Gt={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\",\"`\":\"`\"},Vt={\"function\":!0,object:!0},Ht={0:\"x30\",1:\"x31\",2:\"x32\",3:\"x33\",4:\"x34\",5:\"x35\",6:\"x36\",7:\"x37\",8:\"x38\",9:\"x39\",A:\"x41\",B:\"x42\",C:\"x43\",D:\"x44\",E:\"x45\",F:\"x46\",a:\"x61\",b:\"x62\",c:\"x63\",d:\"x64\",e:\"x65\",f:\"x66\",n:\"x6e\",r:\"x72\",t:\"x74\",u:\"x75\",v:\"x76\",x:\"x78\"},Zt={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Xt=Vt[typeof e]&&e&&!e.nodeType&&e,Kt=Vt[typeof n]&&n&&!n.nodeType&&n,Qt=Xt&&Kt&&\"object\"==typeof t&&t&&t.Object&&t,Jt=Vt[typeof self]&&self&&self.Object&&self,tn=Vt[typeof window]&&window&&window.Object&&window,nn=Kt&&Kt.exports===Xt&&Xt,en=Qt||tn!==(this&&this.window)&&tn||Jt||this,rn=k();\"function\"==typeof define&&\"object\"==typeof define.amd&&define.amd?(en._=rn,define(function(){return rn})):Xt&&Kt?nn?(Kt.exports=rn)._=rn:Xt._=rn:en._=rn}).call(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],54:[function(t,n){n.exports={graphlib:t(\"./lib/graphlib\"),layout:t(\"./lib/layout\"),debug:t(\"./lib/debug\"),util:{time:t(\"./lib/util\").time,notime:t(\"./lib/util\").notime},version:t(\"./lib/version\")}},{\"./lib/debug\":59,\"./lib/graphlib\":60,\"./lib/layout\":62,\"./lib/util\":82,\"./lib/version\":83}],55:[function(t,n){\"use strict\";function e(t){function n(t){return function(n){return t.edge(n).weight}}var e=\"greedy\"===t.graph().acyclicer?u(t,n(t)):r(t);a.each(e,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,a.uniqueId(\"rev\"))})}function r(t){function n(u){a.has(i,u)||(i[u]=!0,r[u]=!0,a.each(t.outEdges(u),function(t){a.has(r,t.w)?e.push(t):n(t.w)}),delete r[u])}var e=[],r={},i={};return a.each(t.nodes(),n),e}function i(t){a.each(t.edges(),function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}})}var a=t(\"./lodash\"),u=t(\"./greedy-fas\");n.exports={run:e,undo:i}},{\"./greedy-fas\":61,\"./lodash\":63}],56:[function(t,n){function e(t){function n(e){var a=t.children(e),u=t.node(e);if(a.length&&i.each(a,n),i.has(u,\"minRank\")){u.borderLeft=[],u.borderRight=[];for(var o=u.minRank,s=u.maxRank+1;s>o;++o)r(t,\"borderLeft\",\"_bl\",e,u,o),r(t,\"borderRight\",\"_br\",e,u,o)}}i.each(t.children(),n)}function r(t,n,e,r,i,u){var o={width:0,height:0,rank:u,borderType:n},s=i[n][u-1],c=a.addDummyNode(t,\"border\",o,e);i[n][u]=c,t.setParent(c,r),s&&t.setEdge(s,c,{weight:1})}var i=t(\"./lodash\"),a=t(\"./util\");n.exports=e},{\"./lodash\":63,\"./util\":82}],57:[function(t,n){\"use strict\";function e(t){var n=t.graph().rankdir.toLowerCase();(\"lr\"===n||\"rl\"===n)&&i(t)}function r(t){var n=t.graph().rankdir.toLowerCase();(\"bt\"===n||\"rl\"===n)&&u(t),(\"lr\"===n||\"rl\"===n)&&(s(t),i(t))}function i(t){l.each(t.nodes(),function(n){a(t.node(n))}),l.each(t.edges(),function(n){a(t.edge(n))})}function a(t){var n=t.width;t.width=t.height,t.height=n}function u(t){l.each(t.nodes(),function(n){o(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,o),l.has(e,\"y\")&&o(e)})}function o(t){t.y=-t.y}function s(t){l.each(t.nodes(),function(n){c(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,c),l.has(e,\"x\")&&c(e)})}function c(t){var n=t.x;t.x=t.y,t.y=n}var l=t(\"./lodash\");n.exports={adjust:e,undo:r}},{\"./lodash\":63}],58:[function(t,n){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,n){return\"_next\"!==t&&\"_prev\"!==t?n:void 0}n.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;return n!==t?(r(n),n):void 0},e.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&r(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},e.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,i)),e=e._prev;return\"[\"+t.join(\", \")+\"]\"}},{}],59:[function(t,n){function e(t){var n=i.buildLayerMatrix(t),e=new a({compound:!0,multigraph:!0}).setGraph({});return r.each(t.nodes(),function(n){e.setNode(n,{label:n}),e.setParent(n,\"layer\"+t.node(n).rank)}),r.each(t.edges(),function(t){e.setEdge(t.v,t.w,{},t.name)}),r.each(n,function(t,n){var i=\"layer\"+n;e.setNode(i,{rank:\"same\"}),r.reduce(t,function(t,n){return e.setEdge(t,n,{style:\"invis\"}),n})}),e}var r=t(\"./lodash\"),i=t(\"./util\"),a=t(\"./graphlib\").Graph;n.exports={debugOrdering:e}},{\"./graphlib\":60,\"./lodash\":63,\"./util\":82}],60:[function(t,n){var e;if(\"function\"==typeof t)try{e=t(\"graphlib\")}catch(r){}e||(e=window.graphlib),n.exports=e},{graphlib:84}],61:[function(t,n){function e(t,n){if(t.nodeCount()<=1)return[];var e=a(t,n||l),i=r(e.graph,e.buckets,e.zeroIdx);return o.flatten(o.map(i,function(n){return t.outEdges(n.v,n.w)}),!0)}function r(t,n,e){for(var r,a=[],u=n[n.length-1],o=n[0];t.nodeCount();){for(;r=o.dequeue();)i(t,n,e,r);for(;r=u.dequeue();)i(t,n,e,r);if(t.nodeCount())for(var s=n.length-2;s>0;--s)if(r=n[s].dequeue()){a=a.concat(i(t,n,e,r,!0));break}}return a}function i(t,n,e,r,i){var a=i?[]:void 0;return o.each(t.inEdges(r.v),function(r){var o=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,u(n,e,s)}),o.each(t.outEdges(r.v),function(r){var i=t.edge(r),a=r.w,o=t.node(a);o[\"in\"]-=i,u(n,e,o)}),t.removeNode(r.v),a}function a(t,n){var e=new s,r=0,i=0;o.each(t.nodes(),function(t){e.setNode(t,{v:t,\"in\":0,out:0})}),o.each(t.edges(),function(t){var a=e.edge(t.v,t.w)||0,u=n(t),o=a+u;e.setEdge(t.v,t.w,o),i=Math.max(i,e.node(t.v).out+=u),r=Math.max(r,e.node(t.w)[\"in\"]+=u)});var a=o.range(i+r+3).map(function(){return new c}),l=r+1;return o.each(e.nodes(),function(t){u(a,l,e.node(t))}),{graph:e,buckets:a,zeroIdx:l}}function u(t,n,e){e.out?e[\"in\"]?t[e.out-e[\"in\"]+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}var o=t(\"./lodash\"),s=t(\"./graphlib\").Graph,c=t(\"./data/list\");n.exports=e;var l=o.constant(1)},{\"./data/list\":58,\"./graphlib\":60,\"./lodash\":63}],62:[function(t,n){\"use strict\";function e(t,n){var e=n&&n.debugTiming?O.time:O.notime;e(\"layout\",function(){var n=e(\" buildLayoutGraph\",function(){return a(t)});e(\" runLayout\",function(){r(n,e)}),e(\" updateInputGraph\",function(){i(t,n)})})}function r(t,n){n(\" makeSpaceForEdgeLabels\",function(){u(t)}),n(\" removeSelfEdges\",function(){g(t)}),n(\" acyclic\",function(){x.run(t)}),n(\" nestingGraph.run\",function(){S.run(t)}),n(\" rank\",function(){A(O.asNonCompoundGraph(t))}),n(\" injectEdgeLabelProxies\",function(){o(t)}),n(\" removeEmptyRanks\",function(){M(t)}),n(\" nestingGraph.cleanup\",function(){S.cleanup(t)}),n(\" normalizeRanks\",function(){k(t)}),n(\" assignRankMinMax\",function(){s(t)}),n(\" removeEdgeLabelProxies\",function(){c(t)}),n(\" normalize.run\",function(){w.run(t)}),n(\" parentDummyChains\",function(){E(t)}),n(\" addBorderSegments\",function(){D(t)}),n(\" order\",function(){T(t)}),n(\" insertSelfEdges\",function(){y(t)}),n(\" adjustCoordinateSystem\",function(){C.adjust(t)}),n(\" position\",function(){F(t)}),n(\" positionSelfEdges\",function(){m(t)}),n(\" removeBorderNodes\",function(){p(t)}),n(\" normalize.undo\",function(){w.undo(t)}),n(\" fixupEdgeLabelCoords\",function(){f(t)}),n(\" undoCoordinateSystem\",function(){C.undo(t)}),n(\" translateGraph\",function(){l(t)}),n(\" assignNodeIntersects\",function(){h(t)}),n(\" reversePoints\",function(){d(t)}),n(\" acyclic.undo\",function(){x.undo(t)})}function i(t,n){b.each(t.nodes(),function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))}),b.each(t.edges(),function(e){var r=t.edge(e),i=n.edge(e);r.points=i.points,b.has(i,\"x\")&&(r.x=i.x,r.y=i.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}function a(t){var n=new L({multigraph:!0,compound:!0}),e=_(t.graph());return n.setGraph(b.merge({},B,v(e,I),b.pick(e,N))),b.each(t.nodes(),function(e){var r=_(t.node(e));n.setNode(e,b.defaults(v(r,P),R)),n.setParent(e,t.parent(e))}),b.each(t.edges(),function(e){var r=_(t.edge(e));n.setEdge(e,b.merge({},Y,v(r,j),b.pick(r,U)))}),n}function u(t){var n=t.graph();n.ranksep/=2,b.each(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,\"c\"!==r.labelpos.toLowerCase()&&(\"TB\"===n.rankdir||\"BT\"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function o(t){b.each(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i=t.node(n.w),a={rank:(i.rank-r.rank)/2+r.rank,e:n};O.addDummyNode(t,\"edge-proxy\",a,\"_ep\")}})}function s(t){var n=0;b.each(t.nodes(),function(e){var r=t.node(e);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,n=b.max(n,r.maxRank))}),t.graph().maxRank=n}function c(t){b.each(t.nodes(),function(n){var e=t.node(n);\"edge-proxy\"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))})}function l(t){function n(t){var n=t.x,u=t.y,o=t.width,s=t.height;e=Math.min(e,n-o/2),r=Math.max(r,n+o/2),i=Math.min(i,u-s/2),a=Math.max(a,u+s/2)}var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,a=0,u=t.graph(),o=u.marginx||0,s=u.marginy||0;b.each(t.nodes(),function(e){n(t.node(e))}),b.each(t.edges(),function(e){var r=t.edge(e);b.has(r,\"x\")&&n(r)}),e-=o,i-=s,b.each(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),b.each(t.edges(),function(n){var r=t.edge(n);b.each(r.points,function(t){t.x-=e,t.y-=i}),b.has(r,\"x\")&&(r.x-=e),b.has(r,\"y\")&&(r.y-=i)}),u.width=r-e+o,u.height=a-i+s}function h(t){b.each(t.edges(),function(n){var e,r,i=t.edge(n),a=t.node(n.v),u=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=u,r=a),i.points.unshift(O.intersectRect(a,e)),i.points.push(O.intersectRect(u,r))})}function f(t){b.each(t.edges(),function(n){var e=t.edge(n);if(b.has(e,\"x\"))switch((\"l\"===e.labelpos||\"r\"===e.labelpos)&&(e.width-=e.labeloffset),e.labelpos){case\"l\":e.x-=e.width/2+e.labeloffset;break;case\"r\":e.x+=e.width/2+e.labeloffset}})}function d(t){b.each(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}function p(t){b.each(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),r=t.node(e.borderTop),i=t.node(e.borderBottom),a=t.node(b.last(e.borderLeft)),u=t.node(b.last(e.borderRight));e.width=Math.abs(u.x-a.x),e.height=Math.abs(i.y-r.y),e.x=a.x+e.width/2,e.y=r.y+e.height/2}}),b.each(t.nodes(),function(n){\"border\"===t.node(n).dummy&&t.removeNode(n)})}function g(t){b.each(t.edges(),function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}})}function y(t){var n=O.buildLayerMatrix(t);b.each(n,function(n){var e=0;b.each(n,function(n,r){var i=t.node(n);i.order=r+e,b.each(i.selfEdges,function(n){O.addDummyNode(t,\"selfedge\",{width:n.label.width,height:n.label.height,rank:i.rank,order:r+ ++e,e:n.e,label:n.label},\"_se\")}),delete i.selfEdges})})}function m(t){b.each(t.nodes(),function(n){var e=t.node(n);if(\"selfedge\"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,a=r.y,u=e.x-i,o=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*u/3,y:a-o},{x:i+5*u/6,y:a-o},{x:i+u,y:a},{x:i+5*u/6,y:a+o},{x:i+2*u/3,y:a+o}],e.label.x=e.x,e.label.y=e.y}})}function v(t,n){return b.mapValues(b.pick(t,n),Number)}function _(t){var n={};return b.each(t,function(t,e){n[e.toLowerCase()]=t}),n}var b=t(\"./lodash\"),x=t(\"./acyclic\"),w=t(\"./normalize\"),A=t(\"./rank\"),k=t(\"./util\").normalizeRanks,E=t(\"./parent-dummy-chains\"),M=t(\"./util\").removeEmptyRanks,S=t(\"./nesting-graph\"),D=t(\"./add-border-segments\"),C=t(\"./coordinate-system\"),T=t(\"./order\"),F=t(\"./position\"),O=t(\"./util\"),L=t(\"./graphlib\").Graph;n.exports=e;var I=[\"nodesep\",\"edgesep\",\"ranksep\",\"marginx\",\"marginy\"],B={ranksep:50,edgesep:20,nodesep:50,rankdir:\"tb\"},N=[\"acyclicer\",\"ranker\",\"rankdir\",\"align\"],P=[\"width\",\"height\"],R={width:0,height:0},j=[\"minlen\",\"weight\",\"width\",\"height\",\"labeloffset\"],Y={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:\"r\"},U=[\"labelpos\"]},{\"./acyclic\":55,\"./add-border-segments\":56,\"./coordinate-system\":57,\"./graphlib\":60,\"./lodash\":63,\"./nesting-graph\":64,\"./normalize\":65,\"./order\":70,\"./parent-dummy-chains\":75,\"./position\":77,\"./rank\":79,\"./util\":82}],63:[function(t,n){n.exports=t(51)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/lodash.js\":51,lodash:104}],64:[function(t,n){function e(t){var n=s.addDummyNode(t,\"root\",{},\"_root\"),e=i(t),u=o.max(e)-1,c=2*u+1;t.graph().nestingRoot=n,o.each(t.edges(),function(n){t.edge(n).minlen*=c});var l=a(t)+1;o.each(t.children(),function(i){r(t,n,c,l,u,e,i)}),t.graph().nodeRankFactor=c}function r(t,n,e,i,a,u,c){var l=t.children(c);if(!l.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:e}));var h=s.addBorderNode(t,\"_bt\"),f=s.addBorderNode(t,\"_bb\"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,o.each(l,function(o){r(t,n,e,i,a,u,o);var s=t.node(o),l=s.borderTop?s.borderTop:o,d=s.borderBottom?s.borderBottom:o,p=s.borderTop?i:2*i,g=l!==d?1:a-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(n,h,{weight:0,minlen:a+u[c]})}function i(t){function n(r,i){var a=t.children(r);a&&a.length&&o.each(a,function(t){n(t,i+1)}),e[r]=i}var e={};return o.each(t.children(),function(t){n(t,1)}),e}function a(t){return o.reduce(t.edges(),function(n,e){return n+t.edge(e).weight},0)}function u(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,o.each(t.edges(),function(n){var e=t.edge(n);e.nestingEdge&&t.removeEdge(n)})}var o=t(\"./lodash\"),s=t(\"./util\");n.exports={run:e,cleanup:u}},{\"./lodash\":63,\"./util\":82}],65:[function(t,n){\"use strict\";function e(t){t.graph().dummyChains=[],a.each(t.edges(),function(n){r(t,n)})}function r(t,n){var e=n.v,r=t.node(e).rank,i=n.w,a=t.node(i).rank,o=n.name,s=t.edge(n),c=s.labelRank;if(a!==r+1){t.removeEdge(n);var l,h,f;for(f=0,++r;a>r;++f,++r)s.points=[],h={width:0,height:0,edgeLabel:s,edgeObj:n,rank:r},l=u.addDummyNode(t,\"edge\",h,\"_d\"),r===c&&(h.width=s.width,h.height=s.height,h.dummy=\"edge-label\",h.labelpos=s.labelpos),t.setEdge(e,l,{weight:s.weight},o),0===f&&t.graph().dummyChains.push(l),e=l;t.setEdge(e,i,{weight:s.weight},o)}}function i(t){a.each(t.graph().dummyChains,function(n){var e,r=t.node(n),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)e=t.successors(n)[0],t.removeNode(n),i.points.push({x:r.x,y:r.y}),\"edge-label\"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),n=e,r=t.node(n)})}var a=t(\"./lodash\"),u=t(\"./util\");n.exports={run:e,undo:i}},{\"./lodash\":63,\"./util\":82}],66:[function(t,n){function e(t,n,e){var i,a={};r.each(e,function(e){for(var r,u,o=t.parent(e);o;){if(r=t.parent(o),r?(u=a[r],a[r]=o):(u=i,i=o),u&&u!==o)return void n.setEdge(u,o);o=r}})}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":63}],67:[function(t,n){function e(t,n){return r.map(n,function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}})}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":63}],68:[function(t,n){function e(t,n,e){var u=r(t),o=new a({compound:!0}).setGraph({root:u}).setDefaultNodeLabel(function(n){return t.node(n)});return i.each(t.nodes(),function(r){var a=t.node(r),s=t.parent(r);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(o.setNode(r),o.setParent(r,s||u),i.each(t[e](r),function(n){var e=n.v===r?n.w:n.v,a=o.edge(e,r),u=i.isUndefined(a)?0:a.weight;o.setEdge(e,r,{weight:t.edge(n).weight+u})}),i.has(a,\"minRank\")&&o.setNode(r,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),o}function r(t){for(var n;t.hasNode(n=i.uniqueId(\"_root\")););return n}var i=t(\"../lodash\"),a=t(\"../graphlib\").Graph;n.exports=e},{\"../graphlib\":60,\"../lodash\":63}],69:[function(t,n){\"use strict\";function e(t,n){for(var e=0,i=1;i<n.length;++i)e+=r(t,n[i-1],n[i]);return e}function r(t,n,e){for(var r=i.zipObject(e,i.map(e,function(t,n){return n})),a=i.flatten(i.map(n,function(n){return i.chain(t.outEdges(n)).map(function(n){return{pos:r[n.w],weight:t.edge(n).weight}}).sortBy(\"pos\").value()}),!0),u=1;u<e.length;)u<<=1;var o=2*u-1;u-=1;var s=i.map(new Array(o),function(){return 0}),c=0;return i.each(a.forEach(function(t){var n=t.pos+u;s[n]+=t.weight;for(var e=0;n>0;)n%2&&(e+=s[n+1]),n=n-1>>1,s[n]+=t.weight;c+=t.weight*e})),c}var i=t(\"../lodash\");n.exports=e},{\"../lodash\":63}],70:[function(t,n){\"use strict\";function e(t){var n=d.maxRank(t),e=r(t,u.range(1,n+1),\"inEdges\"),c=r(t,u.range(n-1,-1,-1),\"outEdges\"),l=o(t);a(t,l);for(var h,f=Number.POSITIVE_INFINITY,p=0,g=0;4>g;++p,++g){i(p%2?e:c,p%4>=2),l=d.buildLayerMatrix(t);var y=s(t,l);f>y&&(g=0,h=u.cloneDeep(l),f=y)}a(t,h)}function r(t,n,e){return u.map(n,function(n){return l(t,n,e)})}function i(t,n){var e=new f;u.each(t,function(t){var r=t.graph().root,i=c(t,r,e,n);u.each(i.vs,function(n,e){t.node(n).order=e}),h(t,e,i.vs)})}function a(t,n){u.each(n,function(n){u.each(n,function(n,e){t.node(n).order=e})})}var u=t(\"../lodash\"),o=t(\"./init-order\"),s=t(\"./cross-count\"),c=t(\"./sort-subgraph\"),l=t(\"./build-layer-graph\"),h=t(\"./add-subgraph-constraints\"),f=t(\"../graphlib\").Graph,d=t(\"../util\");n.exports=e},{\"../graphlib\":60,\"../lodash\":63,\"../util\":82,\"./add-subgraph-constraints\":66,\"./build-layer-graph\":68,\"./cross-count\":69,\"./init-order\":71,\"./sort-subgraph\":73}],71:[function(t,n){\"use strict\";function e(t){function n(i){if(!r.has(e,i)){e[i]=!0;var a=t.node(i);u[a.rank].push(i),r.each(t.successors(i),n)}}var e={},i=r.filter(t.nodes(),function(n){return!t.children(n).length}),a=r.max(r.map(i,function(n){return t.node(n).rank})),u=r.map(r.range(a+1),function(){return[]}),o=r.sortBy(i,function(n){return t.node(n).rank});return r.each(o,n),u}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":63}],72:[function(t,n){\"use strict\";function e(t,n){var e={};a.each(t,function(t,n){var r=e[t.v]={indegree:0,\"in\":[],out:[],vs:[t.v],i:n};a.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),a.each(n.edges(),function(t){var n=e[t.v],r=e[t.w];a.isUndefined(n)||a.isUndefined(r)||(r.indegree++,n.out.push(e[t.w]))});var i=a.filter(e,function(t){return!t.indegree});return r(i)}function r(t){function n(t){return function(n){n.merged||(a.isUndefined(n.barycenter)||a.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&i(t,n)}}function e(n){return function(e){e[\"in\"].push(n),0===--e.indegree&&t.push(e)}}for(var r=[];t.length;){var u=t.pop();r.push(u),a.each(u[\"in\"].reverse(),n(u)),a.each(u.out,e(u))}return a.chain(r).filter(function(t){return!t.merged}).map(function(t){return a.pick(t,[\"vs\",\"i\",\"barycenter\",\"weight\"])}).value()}function i(t,n){var e=0,r=0;t.weight&&(e+=t.barycenter*t.weight,r+=t.weight),n.weight&&(e+=n.barycenter*n.weight,r+=n.weight),t.vs=n.vs.concat(t.vs),t.barycenter=e/r,t.weight=r,t.i=Math.min(n.i,t.i),n.merged=!0}var a=t(\"../lodash\");n.exports=e},{\"../lodash\":63}],73:[function(t,n){function e(t,n,c,l){var h=t.children(n),f=t.node(n),d=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};d&&(h=a.filter(h,function(t){return t!==d&&t!==p}));var y=u(t,h);a.each(y,function(n){if(t.children(n.v).length){var r=e(t,n.v,c,l);g[n.v]=r,a.has(r,\"barycenter\")&&i(n,r)}});var m=o(y,c);r(m,g);var v=s(m,l);if(d&&(v.vs=a.flatten([d,v.vs,p],!0),t.predecessors(d).length)){var _=t.node(t.predecessors(d)[0]),b=t.node(t.predecessors(p)[0]);a.has(v,\"barycenter\")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+_.order+b.order)/(v.weight+2),v.weight+=2}return v}function r(t,n){a.each(t,function(t){t.vs=a.flatten(t.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}function i(t,n){a.isUndefined(t.barycenter)?(t.barycenter=n.barycenter,t.weight=n.weight):(t.barycenter=(t.barycenter*t.weight+n.barycenter*n.weight)/(t.weight+n.weight),t.weight+=n.weight)}var a=t(\"../lodash\"),u=t(\"./barycenter\"),o=t(\"./resolve-conflicts\"),s=t(\"./sort\");n.exports=e},{\"../lodash\":63,\"./barycenter\":67,\"./resolve-conflicts\":72,\"./sort\":74}],74:[function(t,n){function e(t,n){var e=u.partition(t,function(t){return a.has(t,\"barycenter\")}),o=e.lhs,s=a.sortBy(e.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;o.sort(i(!!n)),f=r(c,s,f),a.each(o,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=r(c,s,f)});var d={vs:a.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}function r(t,n,e){for(var r;n.length&&(r=a.last(n)).i<=e;)n.pop(),t.push(r.vs),e++;return e}function i(t){return function(n,e){return n.barycenter<e.barycenter?-1:n.barycenter>e.barycenter?1:t?e.i-n.i:n.i-e.i}}var a=t(\"../lodash\"),u=t(\"../util\");n.exports=e},{\"../lodash\":63,\"../util\":82}],75:[function(t,n){function e(t){var n=i(t);a.each(t.graph().dummyChains,function(e){for(var i=t.node(e),a=i.edgeObj,u=r(t,n,a.v,a.w),o=u.path,s=u.lca,c=0,l=o[c],h=!0;e!==a.w;){if(i=t.node(e),h){for(;(l=o[c])!==s&&t.node(l).maxRank<i.rank;)c++;l===s&&(h=!1)}if(!h){for(;c<o.length-1&&t.node(l=o[c+1]).minRank<=i.rank;)c++;l=o[c]}t.setParent(e,l),e=t.successors(e)[0]}})}function r(t,n,e,r){var i,a,u=[],o=[],s=Math.min(n[e].low,n[r].low),c=Math.max(n[e].lim,n[r].lim);i=e;do i=t.parent(i),u.push(i);while(i&&(n[i].low>s||c>n[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)o.push(i);return{path:u.concat(o.reverse()),lca:a}}function i(t){function n(i){var u=r;a.each(t.children(i),n),e[i]={low:u,lim:r++}}var e={},r=0;return a.each(t.children(),n),e}var a=t(\"./lodash\");n.exports=e},{\"./lodash\":63}],76:[function(t,n){\"use strict\";function e(t,n){function e(n,e){var u=0,o=0,s=n.length,c=y.last(e);\n\nreturn y.each(e,function(n,l){var h=i(t,n),f=h?t.node(h).order:s;(h||n===c)&&(y.each(e.slice(o,l+1),function(n){y.each(t.predecessors(n),function(e){var i=t.node(e),o=i.order;!(u>o||o>f)||i.dummy&&t.node(n).dummy||a(r,e,n)})}),o=l+1,u=f)}),e}var r={};return y.reduce(n,e),r}function r(t,n){function e(n,e,r,u,o){var s;y.each(y.range(e,r),function(e){s=n[e],t.node(s).dummy&&y.each(t.predecessors(s),function(n){var e=t.node(n);e.dummy&&(e.order<u||e.order>o)&&a(i,n,s)})})}function r(n,r){var i,a=-1,u=0;return y.each(r,function(o,s){if(\"border\"===t.node(o).dummy){var c=t.predecessors(o);c.length&&(i=t.node(c[0]).order,e(r,u,s,a,i),u=s,a=i)}e(r,u,r.length,i,n.length)}),r}var i={};return y.reduce(n,r),i}function i(t,n){return t.node(n).dummy?y.find(t.predecessors(n),function(n){return t.node(n).dummy}):void 0}function a(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function u(t,n,e){if(n>e){var r=n;n=e,e=r}return y.has(t[n],e)}function o(t,n,e,r){var i={},a={},o={};return y.each(n,function(t){y.each(t,function(t,n){i[t]=t,a[t]=t,o[t]=n})}),y.each(n,function(t){var n=-1;y.each(t,function(t){var s=r(t);if(s.length){s=y.sortBy(s,function(t){return o[t]});for(var c=(s.length-1)/2,l=Math.floor(c),h=Math.ceil(c);h>=l;++l){var f=s[l];a[t]===t&&n<o[f]&&!u(e,t,f)&&(a[f]=t,a[t]=i[t]=i[f],n=o[f])}}})}),{root:i,align:a}}function s(t,n,e,r,i){function a(t){y.has(l,t)||(l[t]=!0,o[t]=y.reduce(s.inEdges(t),function(t,n){return a(n.v),Math.max(t,o[n.v]+s.edge(n))},0))}function u(n){if(2!==l[n]){l[n]++;var e=t.node(n),r=y.reduce(s.outEdges(n),function(t,n){return u(n.w),Math.min(t,o[n.w]-s.edge(n))},Number.POSITIVE_INFINITY);r!==Number.POSITIVE_INFINITY&&e.borderType!==h&&(o[n]=Math.max(o[n],r))}}var o={},s=c(t,n,e,i),l={};y.each(s.nodes(),a);var h=i?\"borderLeft\":\"borderRight\";return y.each(s.nodes(),u),y.each(r,function(t){o[t]=o[e[t]]}),o}function c(t,n,e,r){var i=new m,a=t.graph(),u=p(a.nodesep,a.edgesep,r);return y.each(n,function(n){var r;y.each(n,function(n){var a=e[n];if(i.setNode(a),r){var o=e[r],s=i.edge(o,a);i.setEdge(o,a,Math.max(u(t,n,r),s||0))}r=n})}),i}function l(t,n){return y.min(n,function(n){var e=y.min(n,function(n,e){return n-g(t,e)/2}),r=y.max(n,function(n,e){return n+g(t,e)/2});return r-e})}function h(t,n){var e=y.min(n),r=y.max(n);y.each([\"u\",\"d\"],function(i){y.each([\"l\",\"r\"],function(a){var u,o=i+a,s=t[o];s!==n&&(u=\"l\"===a?e-y.min(s):r-y.max(s),u&&(t[o]=y.mapValues(s,function(t){return t+u})))})})}function f(t,n){return y.mapValues(t.ul,function(e,r){if(n)return t[n.toLowerCase()][r];var i=y.sortBy(y.pluck(t,r));return(i[1]+i[2])/2})}function d(t){var n,i=v.buildLayerMatrix(t),a=y.merge(e(t,i),r(t,i)),u={};y.each([\"u\",\"d\"],function(e){n=\"u\"===e?i:y.values(i).reverse(),y.each([\"l\",\"r\"],function(r){\"r\"===r&&(n=y.map(n,function(t){return y.values(t).reverse()}));var i=y.bind(\"u\"===e?t.predecessors:t.successors,t),c=o(t,n,a,i),l=s(t,n,c.root,c.align,\"r\"===r);\"r\"===r&&(l=y.mapValues(l,function(t){return-t})),u[e+r]=l})});var c=l(t,u);return h(u,c),f(u,t.graph().align)}function p(t,n,e){return function(r,i,a){var u,o=r.node(i),s=r.node(a),c=0;if(c+=o.width/2,y.has(o,\"labelpos\"))switch(o.labelpos.toLowerCase()){case\"l\":u=-o.width/2;break;case\"r\":u=o.width/2}if(u&&(c+=e?u:-u),u=0,c+=(o.dummy?n:t)/2,c+=(s.dummy?n:t)/2,c+=s.width/2,y.has(s,\"labelpos\"))switch(s.labelpos.toLowerCase()){case\"l\":u=s.width/2;break;case\"r\":u=-s.width/2}return u&&(c+=e?u:-u),u=0,c}}function g(t,n){return t.node(n).width}var y=t(\"../lodash\"),m=t(\"../graphlib\").Graph,v=t(\"../util\");n.exports={positionX:d,findType1Conflicts:e,findType2Conflicts:r,addConflict:a,hasConflict:u,verticalAlignment:o,horizontalCompaction:s,alignCoordinates:h,findSmallestWidthAlignment:l,balance:f}},{\"../graphlib\":60,\"../lodash\":63,\"../util\":82}],77:[function(t,n){\"use strict\";function e(t){t=a.asNonCompoundGraph(t),r(t),i.each(u(t),function(n,e){t.node(e).x=n})}function r(t){var n=a.buildLayerMatrix(t),e=t.graph().ranksep,r=0;i.each(n,function(n){var a=i.max(i.map(n,function(n){return t.node(n).height}));i.each(n,function(n){t.node(n).y=r+a/2}),r+=a+e})}var i=t(\"../lodash\"),a=t(\"../util\"),u=t(\"./bk\").positionX;n.exports=e},{\"../lodash\":63,\"../util\":82,\"./bk\":76}],78:[function(t,n){\"use strict\";function e(t){var n=new o({directed:!1}),e=t.nodes()[0],u=t.nodeCount();n.setNode(e,{});for(var c,l;r(n,t)<u;)c=i(n,t),l=n.hasNode(c.v)?s(t,c):-s(t,c),a(n,t,l);return n}function r(t,n){function e(r){u.each(n.nodeEdges(r),function(i){var a=i.v,u=r===a?i.w:a;t.hasNode(u)||s(n,i)||(t.setNode(u,{}),t.setEdge(r,u,{}),e(u))})}return u.each(t.nodes(),e),t.nodeCount()}function i(t,n){return u.min(n.edges(),function(e){return t.hasNode(e.v)!==t.hasNode(e.w)?s(n,e):void 0})}function a(t,n,e){u.each(t.nodes(),function(t){n.node(t).rank+=e})}var u=t(\"../lodash\"),o=t(\"../graphlib\").Graph,s=t(\"./util\").slack;n.exports=e},{\"../graphlib\":60,\"../lodash\":63,\"./util\":81}],79:[function(t,n){\"use strict\";function e(t){switch(t.graph().ranker){case\"network-simplex\":i(t);break;case\"tight-tree\":r(t);break;case\"longest-path\":c(t);break;default:i(t)}}function r(t){u(t),o(t)}function i(t){s(t)}var a=t(\"./util\"),u=a.longestPath,o=t(\"./feasible-tree\"),s=t(\"./network-simplex\");n.exports=e;var c=u},{\"./feasible-tree\":78,\"./network-simplex\":80,\"./util\":81}],80:[function(t,n){\"use strict\";function e(t){t=b(t),m(t);var n=g(t);u(n),r(n,t);for(var e,i;e=s(n);)i=c(n,t,e),l(n,t,e,i)}function r(t,n){var e=_(t,t.nodes());e=e.slice(0,e.length-1),p.each(e,function(e){i(t,n,e)})}function i(t,n,e){var r=t.node(e),i=r.parent;t.edge(e,i).cutvalue=a(t,n,e)}function a(t,n,e){var r=t.node(e),i=r.parent,a=!0,u=n.edge(e,i),o=0;return u||(a=!1,u=n.edge(i,e)),o=u.weight,p.each(n.nodeEdges(e),function(r){var u=r.v===e,s=u?r.w:r.v;if(s!==i){var c=u===a,l=n.edge(r).weight;if(o+=c?l:-l,f(t,e,s)){var h=t.edge(e,s).cutvalue;o+=c?-h:h}}}),o}function u(t,n){arguments.length<2&&(n=t.nodes()[0]),o(t,{},1,n)}function o(t,n,e,r,i){var a=e,u=t.node(r);return n[r]=!0,p.each(t.neighbors(r),function(i){p.has(n,i)||(e=o(t,n,e,i,r))}),u.low=a,u.lim=e++,i?u.parent=i:delete u.parent,e}function s(t){return p.find(t.edges(),function(n){return t.edge(n).cutvalue<0})}function c(t,n,e){var r=e.v,i=e.w;n.hasEdge(r,i)||(r=e.w,i=e.v);var a=t.node(r),u=t.node(i),o=a,s=!1;a.lim>u.lim&&(o=u,s=!0);var c=p.filter(n.edges(),function(n){return s===d(t,t.node(n.v),o)&&s!==d(t,t.node(n.w),o)});return p.min(c,function(t){return y(n,t)})}function l(t,n,e,i){var a=e.v,o=e.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),u(t),r(t,n),h(t,n)}function h(t,n){var e=p.find(t.nodes(),function(t){return!n.node(t).parent}),r=v(t,e);r=r.slice(1),p.each(r,function(e){var r=t.node(e).parent,i=n.edge(e,r),a=!1;i||(i=n.edge(r,e),a=!0),n.node(e).rank=n.node(r).rank+(a?i.minlen:-i.minlen)})}function f(t,n,e){return t.hasEdge(n,e)}function d(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}var p=t(\"../lodash\"),g=t(\"./feasible-tree\"),y=t(\"./util\").slack,m=t(\"./util\").longestPath,v=t(\"../graphlib\").alg.preorder,_=t(\"../graphlib\").alg.postorder,b=t(\"../util\").simplify;n.exports=e,e.initLowLimValues=u,e.initCutValues=r,e.calcCutValue=a,e.leaveEdge=s,e.enterEdge=c,e.exchangeEdges=l},{\"../graphlib\":60,\"../lodash\":63,\"../util\":82,\"./feasible-tree\":78,\"./util\":81}],81:[function(t,n){\"use strict\";function e(t){function n(r){var a=t.node(r);if(i.has(e,r))return a.rank;e[r]=!0;var u=i.min(i.map(t.outEdges(r),function(e){return n(e.w)-t.edge(e).minlen}));return u===Number.POSITIVE_INFINITY&&(u=0),a.rank=u}var e={};i.each(t.sources(),n)}function r(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}var i=t(\"../lodash\");n.exports={longestPath:e,slack:r}},{\"../lodash\":63}],82:[function(t,n){\"use strict\";function e(t,n,e,r){var i;do i=y.uniqueId(r);while(t.hasNode(i));return e.dummy=n,t.setNode(i,e),i}function r(t){var n=(new m).setGraph(t.graph());return y.each(t.nodes(),function(e){n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),n}function i(t){var n=new m({multigraph:t.isMultigraph()}).setGraph(t.graph());return y.each(t.nodes(),function(e){t.children(e).length||n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){n.setEdge(e,t.edge(e))}),n}function a(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.outEdges(n),function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function u(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.inEdges(n),function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function o(t,n){var e=t.x,r=t.y,i=n.x-e,a=n.y-r,u=t.width/2,o=t.height/2;if(!i&&!a)throw new Error(\"Not possible to find intersection inside of the rectangle\");var s,c;return Math.abs(a)*u>Math.abs(i)*o?(0>a&&(o=-o),s=o*i/a,c=o):(0>i&&(u=-u),s=u,c=u*a/i),{x:e+s,y:r+c}}function s(t){var n=y.map(y.range(f(t)+1),function(){return[]});return y.each(t.nodes(),function(e){var r=t.node(e),i=r.rank;y.isUndefined(i)||(n[i][r.order]=e)}),n}function c(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank}));y.each(t.nodes(),function(e){var r=t.node(e);y.has(r,\"rank\")&&(r.rank-=n)})}function l(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank})),e=[];y.each(t.nodes(),function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)});var r=0,i=t.graph().nodeRankFactor;y.each(e,function(n,e){y.isUndefined(n)&&e%i!==0?--r:r&&y.each(n,function(n){t.node(n).rank+=r})})}function h(t,n,r,i){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=i),e(t,\"border\",a,n)}function f(t){return y.max(y.map(t.nodes(),function(n){var e=t.node(n).rank;return y.isUndefined(e)?void 0:e}))}function d(t,n){var e={lhs:[],rhs:[]};return y.each(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e}function p(t,n){var e=y.now();try{return n()}finally{console.log(t+\" time: \"+(y.now()-e)+\"ms\")}}function g(t,n){return n()}var y=t(\"./lodash\"),m=t(\"./graphlib\").Graph;n.exports={addDummyNode:e,simplify:r,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:u,intersectRect:o,buildLayerMatrix:s,normalizeRanks:c,removeEmptyRanks:l,addBorderNode:h,maxRank:f,partition:d,time:p,notime:g}},{\"./graphlib\":60,\"./lodash\":63}],83:[function(t,n){n.exports=\"0.7.4\"},{}],84:[function(t,n){n.exports=t(33)},{\"./lib\":100,\"./lib/alg\":91,\"./lib/json\":101,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/index.js\":33}],85:[function(t,n){n.exports=t(34)},{\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/components.js\":34}],86:[function(t,n){n.exports=t(35)},{\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/dfs.js\":35}],87:[function(t,n){n.exports=t(36)},{\"../lodash\":102,\"./dijkstra\":88,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/dijkstra-all.js\":36}],88:[function(t,n){n.exports=t(37)},{\"../data/priority-queue\":98,\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/dijkstra.js\":37}],89:[function(t,n){n.exports=t(38)},{\"../lodash\":102,\"./tarjan\":96,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/find-cycles.js\":38}],90:[function(t,n){n.exports=t(39)},{\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/floyd-warshall.js\":39}],91:[function(t,n){n.exports=t(40)},{\"./components\":85,\"./dijkstra\":88,\"./dijkstra-all\":87,\"./find-cycles\":89,\"./floyd-warshall\":90,\"./is-acyclic\":92,\"./postorder\":93,\"./preorder\":94,\"./prim\":95,\"./tarjan\":96,\"./topsort\":97,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/index.js\":40}],92:[function(t,n){n.exports=t(41)},{\"./topsort\":97,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/is-acyclic.js\":41}],93:[function(t,n){n.exports=t(42)},{\"./dfs\":86,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/postorder.js\":42}],94:[function(t,n){n.exports=t(43)},{\"./dfs\":86,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/preorder.js\":43}],95:[function(t,n){n.exports=t(44)},{\"../data/priority-queue\":98,\"../graph\":99,\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/prim.js\":44}],96:[function(t,n){n.exports=t(45)},{\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/tarjan.js\":45}],97:[function(t,n){n.exports=t(46)},{\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/topsort.js\":46}],98:[function(t,n){n.exports=t(47)},{\"../lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/data/priority-queue.js\":47}],99:[function(t,n){n.exports=t(48)},{\"./lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/graph.js\":48}],100:[function(t,n){n.exports=t(49)},{\"./graph\":99,\"./version\":103,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/index.js\":49}],101:[function(t,n){n.exports=t(50)},{\"./graph\":99,\"./lodash\":102,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/json.js\":50}],102:[function(t,n){n.exports=t(51)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/lodash.js\":51,lodash:104}],103:[function(t,n){n.exports=t(52)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/version.js\":52}],104:[function(t,n){n.exports=t(53)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/lodash/index.js\":53}],105:[function(t,n,e){(function(t){(function(){function r(t,n){return t.set(n[0],n[1]),t}function i(t,n){return t.add(n),t}function a(t,n,e){var r=e.length;switch(r){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function u(t,n,e,r){for(var i=-1,a=t?t.length:0;++i<a;){var u=t[i];n(r,u,e(u),t)}return r}function o(t,n){for(var e=-1,r=t?t.length:0;++e<r&&n(t[e],e,t)!==!1;);return t}function s(t,n){for(var e=t?t.length:0;e--&&n(t[e],e,t)!==!1;);return t}function c(t,n){for(var e=-1,r=t?t.length:0;++e<r;)if(!n(t[e],e,t))return!1;return!0}function l(t,n){for(var e=-1,r=t?t.length:0,i=0,a=[];++e<r;){var u=t[e];n(u,e,t)&&(a[i++]=u)}return a}function h(t,n){var e=t?t.length:0;return!!e&&b(t,n,0)>-1}function f(t,n,e){for(var r=-1,i=t?t.length:0;++r<i;)if(e(n,t[r]))return!0;return!1}function d(t,n){for(var e=-1,r=t?t.length:0,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function p(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function g(t,n,e,r){var i=-1,a=t?t.length:0;for(r&&a&&(e=t[++i]);++i<a;)e=n(e,t[i],i,t);return e}function y(t,n,e,r){var i=t?t.length:0;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function m(t,n){for(var e=-1,r=t?t.length:0;++e<r;)if(n(t[e],e,t))return!0;return!1}function v(t,n,e){var r;return e(t,function(t,e,i){return n(t,e,i)?(r=e,!1):void 0}),r}function _(t,n,e,r){for(var i=t.length,a=e+(r?1:-1);r?a--:++a<i;)if(n(t[a],a,t))return a;return-1}function b(t,n,e){if(n!==n)return j(t,e);for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}function x(t,n,e,r){for(var i=e-1,a=t.length;++i<a;)if(r(t[i],n))return i;return-1}function w(t,n){var e=t?t.length:0;return e?E(t,n)/e:kt}function A(t,n,e,r,i){return i(t,function(t,i,a){e=r?(r=!1,t):n(e,t,i,a)}),e}function k(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}function E(t,n){for(var e,r=-1,i=t.length;++r<i;){var a=n(t[r]);a!==X&&(e=e===X?a:e+a)}return e}function M(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function S(t,n){return d(n,function(n){return[n,t[n]]})}function D(t){return function(n){return t(n)}}function C(t,n){return d(n,function(n){return t[n]})}function T(t,n){return t.has(n)}function F(t,n){for(var e=-1,r=t.length;++e<r&&b(n,t[e],0)>-1;);return e}function O(t,n){for(var e=t.length;e--&&b(n,t[e],0)>-1;);return e}function L(t){return t&&t.Object===Object?t:null}function I(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&r++;return r}function B(t){return Se[t]}function N(t){return De[t]}function P(t){return\"\\\\\"+Te[t]}function R(t,n){return null==t?X:t[n]}function j(t,n,e){for(var r=t.length,i=n+(e?1:-1);e?i--:++i<r;){var a=t[i];if(a!==a)return i}return-1}function Y(t){var n=!1;if(null!=t&&\"function\"!=typeof t.toString)try{n=!!(t+\"\")}catch(e){}return n}function U(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}function $(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function W(t,n){for(var e=-1,r=t.length,i=0,a=[];++e<r;){var u=t[e];(u===n||u===nt)&&(t[e]=nt,a[i++]=e)}return a}function z(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=t}),e}function q(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=[t,t]}),e}function G(t){if(!t||!xe.test(t))return t.length;for(var n=_e.lastIndex=0;_e.test(t);)n++;return n}function V(t){return t.match(_e)}function H(t){return Ce[t]}function Z(t){function n(t){if(vo(t)&&!yh(t)&&!(t instanceof In)){if(t instanceof L)return t;if(Cc.call(t,\"__wrapped__\"))return ha(t)}return new L(t)}function e(){}function L(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=X}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Et,this.__views__=[]}function Bn(){var t=new In(this.__wrapped__);return t.__actions__=ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ei(this.__views__),t}function Nn(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Pn(){var t=this.__wrapped__.value(),n=this.__dir__,e=yh(t),r=0>n,i=e?t.length:0,a=$i(0,i,this.__views__),u=a.start,o=a.end,s=o-u,c=r?o:u-1,l=this.__iteratees__,h=l.length,f=0,d=Jc(s,this.__takeCount__);if(!e||Q>i||i==s&&d==s)return Pr(t,this.__actions__);var p=[];t:for(;s--&&d>f;){c+=n;for(var g=-1,y=t[c];++g<h;){var m=l[g],v=m.iteratee,_=m.type,b=v(y);if(_==_t)y=b;else if(!b){if(_==vt)continue t;break t}}p[f++]=y}return p}function Rn(t){var n=-1,e=t?t.length:0;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function jn(){this.__data__=ll?ll(null):{}}function Yn(t){return this.has(t)&&delete this.__data__[t]}function Un(t){var n=this.__data__;if(ll){var e=n[t];return e===tt?X:e}return Cc.call(n,t)?n[t]:X}function $n(t){var n=this.__data__;return ll?n[t]!==X:Cc.call(n,t)}function Wn(t,n){var e=this.__data__;return e[t]=ll&&n===X?tt:n,this}function zn(t){var n=-1,e=t?t.length:0;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function qn(){this.__data__=[]}function Gn(t){var n=this.__data__,e=pe(n,t);if(0>e)return!1;var r=n.length-1;return e==r?n.pop():zc.call(n,e,1),!0}function Vn(t){var n=this.__data__,e=pe(n,t);return 0>e?X:n[e][1]}function Hn(t){return pe(this.__data__,t)>-1}function Zn(t,n){var e=this.__data__,r=pe(e,t);return 0>r?e.push([t,n]):e[r][1]=n,this}function Xn(t){var n=-1,e=t?t.length:0;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Kn(){this.__data__={hash:new Rn,map:new(ul||zn),string:new Rn}}function Qn(t){return Ni(this,t)[\"delete\"](t)}function Jn(t){return Ni(this,t).get(t)}function te(t){return Ni(this,t).has(t)}function ne(t,n){return Ni(this,t).set(t,n),this}function ee(t){var n=-1,e=t?t.length:0;for(this.__data__=new Xn;++n<e;)this.add(t[n])}function re(t){return this.__data__.set(t,tt),this}function ie(t){return this.__data__.has(t)}function ae(t){this.__data__=new zn(t)}function ue(){this.__data__=new zn}function oe(t){return this.__data__[\"delete\"](t)}function se(t){return this.__data__.get(t)}function ce(t){return this.__data__.has(t)}function le(t,n){var e=this.__data__;return e instanceof zn&&e.__data__.length==Q&&(e=this.__data__=new Xn(e.__data__)),e.set(t,n),this}function he(t,n,e,r){return t===X||to(t,kc[e])&&!Cc.call(r,e)?n:t}function fe(t,n,e){(e!==X&&!to(t[n],e)||\"number\"==typeof n&&e===X&&!(n in t))&&(t[n]=e)}function de(t,n,e){var r=t[n];Cc.call(t,n)&&to(r,e)&&(e!==X||n in t)||(t[n]=e)}function pe(t,n){for(var e=t.length;e--;)if(to(t[e][0],n))return e;return-1}function ge(t,n,e,r){return wl(t,function(t,i,a){n(r,t,e(t),a)}),r}function ye(t,n){return t&&ri(n,rs(n),t)}function _e(t,n){for(var e=-1,r=null==t,i=n.length,a=Array(i);++e<i;)a[e]=r?X:ts(t,n[e]);return a}function Se(t,n,e){return t===t&&(e!==X&&(t=e>=t?t:e),n!==X&&(t=t>=n?t:n)),t}function De(t,n,e,r,i,a,u){var s;if(r&&(s=a?r(t,i,a,u):r(t)),s!==X)return s;if(!mo(t))return t;var c=yh(t);if(c){if(s=zi(t),!n)return ei(t,s)}else{var l=Ui(t),h=l==Lt||l==It;if(mh(t))return zr(t,n);if(l==Pt||l==Dt||h&&!a){if(Y(t))return a?t:{};if(s=qi(h?{}:t),!n)return ii(t,ye(s,t))}else{if(!Me[l])return a?t:{};s=Gi(t,l,De,n)}}u||(u=new ae);var f=u.get(t);if(f)return f;if(u.set(t,s),!c)var d=e?Fi(t):rs(t);return o(d||t,function(i,a){d&&(a=i,i=t[a]),de(s,a,De(i,n,e,r,a,t,u))}),s}function Ce(t){var n=rs(t),e=n.length;return function(r){if(null==r)return!e;for(var i=e;i--;){var a=n[i],u=t[a],o=r[a];if(o===X&&!(a in Object(r))||!u(o))return!1}return!0}}function Te(t){return mo(t)?$c(t):{}}function Le(t,n,e){if(\"function\"!=typeof t)throw new wc(J);return qc(function(){t.apply(X,e)},n)}function Ie(t,n,e,r){var i=-1,a=h,u=!0,o=t.length,s=[],c=n.length;if(!o)return s;e&&(n=d(n,D(e))),r?(a=f,u=!1):n.length>=Q&&(a=T,u=!1,n=new ee(n));t:for(;++i<o;){var l=t[i],p=e?e(l):l;if(l=r||0!==l?l:0,u&&p===p){for(var g=c;g--;)if(n[g]===p)continue t;s.push(l)}else a(n,p,r)||s.push(l)}return s}function Ne(t,n){var e=!0;return wl(t,function(t,r,i){return e=!!n(t,r,i)}),e}function Pe(t,n,e){for(var r=-1,i=t.length;++r<i;){var a=t[r],u=n(a);if(null!=u&&(o===X?u===u&&!Oo(u):e(u,o)))var o=u,s=a}return s}function Re(t,n,e,r){var i=t.length;for(e=jo(e),0>e&&(e=-e>i?0:i+e),r=r===X||r>i?i:jo(r),0>r&&(r+=i),r=e>r?0:Yo(r);r>e;)t[e++]=n;return t}function Ue(t,n){var e=[];return wl(t,function(t,r,i){n(t,r,i)&&e.push(t)}),e}function $e(t,n,e,r,i){var a=-1,u=t.length;for(e||(e=Hi),i||(i=[]);++a<u;){var o=t[a];n>0&&e(o)?n>1?$e(o,n-1,e,r,i):p(i,o):r||(i[i.length]=o)}return i}function We(t,n){return t&&kl(t,n,rs)}function ze(t,n){return t&&El(t,n,rs)}function qe(t,n){return l(n,function(n){return po(t[n])})}function Ge(t,n){n=Qi(n,t)?[n]:$r(n);for(var e=0,r=n.length;null!=t&&r>e;)t=t[ca(n[e++])];return e&&e==r?t:X}function Ve(t,n,e){var r=n(t);return yh(t)?r:p(r,e(t))}function He(t,n){return t>n}function Ze(t,n){return null!=t&&(Cc.call(t,n)||\"object\"==typeof t&&n in t&&null===ji(t))}function Xe(t,n){return null!=t&&n in Object(t)}function Ke(t,n,e){return t>=Jc(n,e)&&t<Qc(n,e)}function Qe(t,n,e){for(var r=e?f:h,i=t[0].length,a=t.length,u=a,o=Array(a),s=1/0,c=[];u--;){var l=t[u];u&&n&&(l=d(l,D(n))),s=Jc(l.length,s),o[u]=!e&&(n||i>=120&&l.length>=120)?new ee(u&&l):X}l=t[0];var p=-1,g=o[0];t:for(;++p<i&&c.length<s;){var y=l[p],m=n?n(y):y;if(y=e||0!==y?y:0,!(g?T(g,m):r(c,m,e))){for(u=a;--u;){var v=o[u];if(!(v?T(v,m):r(t[u],m,e)))continue t}g&&g.push(m),c.push(y)}}return c}function Je(t,n,e,r){return We(t,function(t,i,a){n(r,e(t),i,a)}),r}function tr(t,n,e){Qi(n,t)||(n=$r(n),t=oa(t,n),n=Ta(n));var r=null==t?t:t[ca(n)];return null==r?X:a(r,t,e)}function nr(t,n,e,r,i){return t===n?!0:null==t||null==n||!mo(t)&&!vo(n)?t!==t&&n!==n:er(t,n,nr,e,r,i)}function er(t,n,e,r,i,a){var u=yh(t),o=yh(n),s=Ct,c=Ct;u||(s=Ui(t),s=s==Dt?Pt:s),o||(c=Ui(n),c=c==Dt?Pt:c);var l=s==Pt&&!Y(t),h=c==Pt&&!Y(n),f=s==c;if(f&&!l)return a||(a=new ae),u||Lo(t)?Di(t,n,e,r,i,a):Ci(t,n,s,e,r,i,a);if(!(i&dt)){var d=l&&Cc.call(t,\"__wrapped__\"),p=h&&Cc.call(n,\"__wrapped__\");if(d||p){var g=d?t.value():t,y=p?n.value():n;return a||(a=new ae),e(g,y,r,i,a)}}return f?(a||(a=new ae),Ti(t,n,e,r,i,a)):!1}function rr(t,n,e,r){var i=e.length,a=i,u=!r;if(null==t)return!a;for(t=Object(t);i--;){var o=e[i];if(u&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<a;){o=e[i];var s=o[0],c=t[s],l=o[1];if(u&&o[2]){if(c===X&&!(s in t))return!1}else{var h=new ae;if(r)var f=r(c,l,s,t,n,h);if(!(f===X?nr(l,c,r,ft|dt,h):f))return!1}}return!0}function ir(t){if(!mo(t)||na(t))return!1;var n=po(t)||Y(t)?Ic:Dn;return n.test(la(t))}function ar(t){return\"function\"==typeof t?t:null==t?Gs:\"object\"==typeof t?yh(t)?hr(t[0],t[1]):lr(t):tc(t)}function ur(t){return Kc(Object(t))}function or(t){t=null==t?t:Object(t);var n=[];for(var e in t)n.push(e);return n}function sr(t,n){return n>t}function cr(t,n){var e=-1,r=ro(t)?Array(t.length):[];return wl(t,function(t,i,a){r[++e]=n(t,i,a)}),r}function lr(t){var n=Pi(t);return 1==n.length&&n[0][2]?ia(n[0][0],n[0][1]):function(e){return e===t||rr(e,t,n)}}function hr(t,n){return Qi(t)&&ra(n)?ia(ca(t),n):function(e){var r=ts(e,t);return r===X&&r===n?es(e,t):nr(n,r,X,ft|dt)}}function fr(t,n,e,r,i){if(t!==n){if(!yh(n)&&!Lo(n))var a=is(n);o(a||n,function(u,o){if(a&&(o=u,u=n[o]),mo(u))i||(i=new ae),dr(t,n,o,e,fr,r,i);else{var s=r?r(t[o],u,o+\"\",t,n,i):X;s===X&&(s=u),fe(t,o,s)}})}}function dr(t,n,e,r,i,a,u){var o=t[e],s=n[e],c=u.get(s);if(c)return void fe(t,e,c);var l=a?a(o,s,e+\"\",t,n,u):X,h=l===X;h&&(l=s,yh(s)||Lo(s)?yh(o)?l=o:io(o)?l=ei(o):(h=!1,l=De(s,!0)):So(s)||no(s)?no(o)?l=$o(o):!mo(o)||r&&po(o)?(h=!1,l=De(s,!0)):l=o:h=!1),u.set(s,l),h&&i(l,s,r,a,u),u[\"delete\"](s),fe(t,e,l)}function pr(t,n){var e=t.length;if(e)return n+=0>n?e:0,Xi(n,e)?t[n]:X}function gr(t,n,e){var r=-1;n=d(n.length?n:[Gs],D(Bi()));var i=cr(t,function(t){var e=d(n,function(n){return n(t)});return{criteria:e,index:++r,value:t}});return k(i,function(t,n){return Jr(t,n,e)})}function yr(t,n){return t=Object(t),g(n,function(n,e){return e in t&&(n[e]=t[e]),n},{})}function mr(t,n){for(var e=-1,r=Oi(t),i=r.length,a={};++e<i;){var u=r[e],o=t[u];n(o,u)&&(a[u]=o)}return a}function vr(t){return function(n){return null==n?X:n[t]}}function _r(t){return function(n){return Ge(n,t)}}function br(t,n,e,r){var i=r?x:b,a=-1,u=n.length,o=t;for(t===n&&(n=ei(n)),e&&(o=d(t,D(e)));++a<u;)for(var s=0,c=n[a],l=e?e(c):c;(s=i(o,l,s,r))>-1;)o!==t&&zc.call(o,s,1),zc.call(t,s,1);return t}function xr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==a){var a=i;if(Xi(i))zc.call(t,i,1);else if(Qi(i,t))delete t[ca(i)];else{var u=$r(i),o=oa(t,u);null!=o&&delete o[ca(Ta(u))]}}}return t}function wr(t,n){return t+Vc(nl()*(n-t+1))}function Ar(t,n,e,r){for(var i=-1,a=Qc(Gc((n-t)/(e||1)),0),u=Array(a);a--;)u[r?a:++i]=t,t+=e;return u}function kr(t,n){var e=\"\";if(!t||1>n||n>wt)return e;do n%2&&(e+=t),n=Vc(n/2),n&&(t+=t);while(n);return e}function Er(t,n,e,r){n=Qi(n,t)?[n]:$r(n);for(var i=-1,a=n.length,u=a-1,o=t;null!=o&&++i<a;){var s=ca(n[i]);if(mo(o)){var c=e;if(i!=u){var l=o[s];c=r?r(l,s,o):X,c===X&&(c=null==l?Xi(n[i+1])?[]:{}:l)}de(o,s,c)}o=o[s]}return t}function Mr(t,n,e){var r=-1,i=t.length;0>n&&(n=-n>i?0:i+n),e=e>i?i:e,0>e&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var a=Array(i);++r<i;)a[r]=t[r+n];return a}function Sr(t,n){var e;return wl(t,function(t,r,i){return e=n(t,r,i),!e}),!!e}function Dr(t,n,e){var r=0,i=t?t.length:r;if(\"number\"==typeof n&&n===n&&St>=i){for(;i>r;){var a=r+i>>>1,u=t[a];null!==u&&!Oo(u)&&(e?n>=u:n>u)?r=a+1:i=a}return i}return Cr(t,n,Gs,e)}function Cr(t,n,e,r){n=e(n);for(var i=0,a=t?t.length:0,u=n!==n,o=null===n,s=Oo(n),c=n===X;a>i;){var l=Vc((i+a)/2),h=e(t[l]),f=h!==X,d=null===h,p=h===h,g=Oo(h);if(u)var y=r||p;else y=c?p&&(r||f):o?p&&f&&(r||!d):s?p&&f&&!d&&(r||!g):d||g?!1:r?n>=h:n>h;y?i=l+1:a=l}return Jc(a,Mt)}function Tr(t,n){for(var e=-1,r=t.length,i=0,a=[];++e<r;){var u=t[e],o=n?n(u):u;if(!e||!to(o,s)){var s=o;a[i++]=0===u?0:u}}return a}function Fr(t){return\"number\"==typeof t?t:Oo(t)?kt:+t}function Or(t){if(\"string\"==typeof t)return t;if(Oo(t))return xl?xl.call(t):\"\";var n=t+\"\";return\"0\"==n&&1/t==-xt?\"-0\":n}function Lr(t,n,e){var r=-1,i=h,a=t.length,u=!0,o=[],s=o;if(e)u=!1,i=f;else if(a>=Q){var c=n?null:Sl(t);if(c)return z(c);u=!1,i=T,s=new ee}else s=n?[]:o;t:for(;++r<a;){var l=t[r],d=n?n(l):l;if(l=e||0!==l?l:0,u&&d===d){for(var p=s.length;p--;)if(s[p]===d)continue t;n&&s.push(d),o.push(l)}else i(s,d,e)||(s!==o&&s.push(d),o.push(l))}return o}function Ir(t,n){n=Qi(n,t)?[n]:$r(n),t=oa(t,n);var e=ca(Ta(n));return!(null!=t&&Ze(t,e))||delete t[e]}function Br(t,n,e,r){return Er(t,n,e(Ge(t,n)),r)}function Nr(t,n,e,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&n(t[a],a,t););return e?Mr(t,r?0:a,r?a+1:i):Mr(t,r?a+1:0,r?i:a)}function Pr(t,n){var e=t;return e instanceof In&&(e=e.value()),g(n,function(t,n){return n.func.apply(n.thisArg,p([t],n.args))},e)}function Rr(t,n,e){for(var r=-1,i=t.length;++r<i;)var a=a?p(Ie(a,t[r],n,e),Ie(t[r],a,n,e)):t[r];return a&&a.length?Lr(a,n,e):[]}function jr(t,n,e){for(var r=-1,i=t.length,a=n.length,u={};++r<i;){var o=a>r?n[r]:X;e(u,t[r],o)}return u}function Yr(t){return io(t)?t:[]}function Ur(t){return\"function\"==typeof t?t:Gs}function $r(t){return yh(t)?t:Ll(t)}function Wr(t,n,e){var r=t.length;return e=e===X?r:e,!n&&e>=r?t:Mr(t,n,e)}function zr(t,n){if(n)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}function qr(t){var n=new t.constructor(t.byteLength);return new Rc(n).set(new Rc(t)),n}function Gr(t,n){var e=n?qr(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function Vr(t,n,e){var i=n?e($(t),!0):$(t);return g(i,r,new t.constructor)}function Hr(t){var n=new t.constructor(t.source,kn.exec(t));return n.lastIndex=t.lastIndex,n}function Zr(t,n,e){var r=n?e(z(t),!0):z(t);return g(r,i,new t.constructor)}function Xr(t){return bl?Object(bl.call(t)):{}}function Kr(t,n){var e=n?qr(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Qr(t,n){if(t!==n){var e=t!==X,r=null===t,i=t===t,a=Oo(t),u=n!==X,o=null===n,s=n===n,c=Oo(n);if(!o&&!c&&!a&&t>n||a&&u&&s&&!o&&!c||r&&u&&s||!e&&s||!i)return 1;if(!r&&!a&&!c&&n>t||c&&e&&i&&!r&&!a||o&&e&&i||!u&&i||!s)return-1}return 0}function Jr(t,n,e){for(var r=-1,i=t.criteria,a=n.criteria,u=i.length,o=e.length;++r<u;){var s=Qr(i[r],a[r]);if(s){if(r>=o)return s;var c=e[r];return s*(\"desc\"==c?-1:1)}}return t.index-n.index}function ti(t,n,e,r){for(var i=-1,a=t.length,u=e.length,o=-1,s=n.length,c=Qc(a-u,0),l=Array(s+c),h=!r;++o<s;)l[o]=n[o];for(;++i<u;)(h||a>i)&&(l[e[i]]=t[i]);for(;c--;)l[o++]=t[i++];return l}function ni(t,n,e,r){for(var i=-1,a=t.length,u=-1,o=e.length,s=-1,c=n.length,l=Qc(a-o,0),h=Array(l+c),f=!r;++i<l;)h[i]=t[i];for(var d=i;++s<c;)h[d+s]=n[s];for(;++u<o;)(f||a>i)&&(h[d+e[u]]=t[i++]);return h}function ei(t,n){var e=-1,r=t.length;for(n||(n=Array(r));++e<r;)n[e]=t[e];return n}function ri(t,n,e,r){e||(e={});for(var i=-1,a=n.length;++i<a;){var u=n[i],o=r?r(e[u],t[u],u,e,t):t[u];de(e,u,o)}return e}function ii(t,n){return ri(t,Yi(t),n)}function ai(t,n){return function(e,r){var i=yh(e)?u:ge,a=n?n():{};return i(e,t,Bi(r),a)}}function ui(t){return zu(function(n,e){var r=-1,i=e.length,a=i>1?e[i-1]:X,u=i>2?e[2]:X;for(a=t.length>3&&\"function\"==typeof a?(i--,a):X,u&&Ki(e[0],e[1],u)&&(a=3>i?X:a,i=1),n=Object(n);++r<i;){var o=e[r];o&&t(n,o,r,a)}return n})}function oi(t,n){return function(e,r){if(null==e)return e;if(!ro(e))return t(e,r);for(var i=e.length,a=n?i:-1,u=Object(e);(n?a--:++a<i)&&r(u[a],a,u)!==!1;);return e}}function si(t){return function(n,e,r){for(var i=-1,a=Object(n),u=r(n),o=u.length;o--;){var s=u[t?o:++i];if(e(a[s],s,a)===!1)break}return n}}function ci(t,n,e){function r(){var n=this&&this!==je&&this instanceof r?a:t;return n.apply(i?e:this,arguments)}var i=n&et,a=fi(t);return r}function li(t){return function(n){n=zo(n);var e=xe.test(n)?V(n):X,r=e?e[0]:n.charAt(0),i=e?Wr(e,1).join(\"\"):n.slice(1);return r[t]()+i}}function hi(t){return function(n){return g($s(ws(n).replace(me,\"\")),t,\"\")}}function fi(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);\n\ncase 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Te(t.prototype),r=t.apply(e,n);return mo(r)?r:e}}function di(t,n,e){function r(){for(var u=arguments.length,o=Array(u),s=u,c=Ii(r);s--;)o[s]=arguments[s];var l=3>u&&o[0]!==c&&o[u-1]!==c?[]:W(o,c);if(u-=l.length,e>u)return ki(t,n,yi,r.placeholder,X,o,l,X,X,e-u);var h=this&&this!==je&&this instanceof r?i:t;return a(h,this,o)}var i=fi(t);return r}function pi(t){return function(n,e,r){var i=Object(n);if(e=Bi(e,3),!ro(n))var a=rs(n);var u=t(a||n,function(t,n){return a&&(n=t,t=i[n]),e(t,n,i)},r);return u>-1?n[a?a[u]:u]:X}}function gi(t){return zu(function(n){n=$e(n,1);var e=n.length,r=e,i=L.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if(\"function\"!=typeof a)throw new wc(J);if(i&&!u&&\"wrapper\"==Li(a))var u=new L([],!0)}for(r=u?r:e;++r<e;){a=n[r];var o=Li(a),s=\"wrapper\"==o?Dl(a):X;u=s&&ta(s[0])&&s[1]==(ct|at|ot|lt)&&!s[4].length&&1==s[9]?u[Li(s[0])].apply(u,s[3]):1==a.length&&ta(a)?u[o]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&yh(r)&&r.length>=Q)return u.plant(r).value();for(var i=0,a=e?n[i].apply(this,t):r;++i<e;)a=n[i].call(this,a);return a}})}function yi(t,n,e,r,i,a,u,o,s,c){function l(){for(var m=arguments.length,v=Array(m),_=m;_--;)v[_]=arguments[_];if(p)var b=Ii(l),x=I(v,b);if(r&&(v=ti(v,r,i,p)),a&&(v=ni(v,a,u,p)),m-=x,p&&c>m){var w=W(v,b);return ki(t,n,yi,l.placeholder,e,v,w,o,s,c-m)}var A=f?e:this,k=d?A[t]:t;return m=v.length,o?v=sa(v,o):g&&m>1&&v.reverse(),h&&m>s&&(v.length=s),this&&this!==je&&this instanceof l&&(k=y||fi(k)),k.apply(A,v)}var h=n&ct,f=n&et,d=n&rt,p=n&(at|ut),g=n&ht,y=d?X:fi(t);return l}function mi(t,n){return function(e,r){return Je(e,t,n(r),{})}}function vi(t){return function(n,e){var r;if(n===X&&e===X)return 0;if(n!==X&&(r=n),e!==X){if(r===X)return e;\"string\"==typeof n||\"string\"==typeof e?(n=Or(n),e=Or(e)):(n=Fr(n),e=Fr(e)),r=t(n,e)}return r}}function _i(t){return zu(function(n){return n=1==n.length&&yh(n[0])?d(n[0],D(Bi())):d($e(n,1,Zi),D(Bi())),zu(function(e){var r=this;return t(n,function(t){return a(t,r,e)})})})}function bi(t,n){n=n===X?\" \":Or(n);var e=n.length;if(2>e)return e?kr(n,t):n;var r=kr(n,Gc(t/G(n)));return xe.test(n)?Wr(V(r),0,t).join(\"\"):r.slice(0,t)}function xi(t,n,e,r){function i(){for(var n=-1,s=arguments.length,c=-1,l=r.length,h=Array(l+s),f=this&&this!==je&&this instanceof i?o:t;++c<l;)h[c]=r[c];for(;s--;)h[c++]=arguments[++n];return a(f,u?e:this,h)}var u=n&et,o=fi(t);return i}function wi(t){return function(n,e,r){return r&&\"number\"!=typeof r&&Ki(n,e,r)&&(e=r=X),n=Uo(n),n=n===n?n:0,e===X?(e=n,n=0):e=Uo(e)||0,r=r===X?e>n?1:-1:Uo(r)||0,Ar(n,e,r,t)}}function Ai(t){return function(n,e){return(\"string\"!=typeof n||\"string\"!=typeof e)&&(n=Uo(n),e=Uo(e)),t(n,e)}}function ki(t,n,e,r,i,a,u,o,s,c){var l=n&at,h=l?u:X,f=l?X:u,d=l?a:X,p=l?X:a;n|=l?ot:st,n&=~(l?st:ot),n&it||(n&=~(et|rt));var g=[t,n,i,d,h,p,f,o,s,c],y=e.apply(X,g);return ta(t)&&Ol(y,g),y.placeholder=r,y}function Ei(t){var n=bc[t];return function(t,e){if(t=Uo(t),e=Jc(jo(e),292)){var r=(zo(t)+\"e\").split(\"e\"),i=n(r[0]+\"e\"+(+r[1]+e));return r=(zo(i)+\"e\").split(\"e\"),+(r[0]+\"e\"+(+r[1]-e))}return n(t)}}function Mi(t){return function(n){var e=Ui(n);return e==Bt?$(n):e==Yt?q(n):S(n,t(n))}}function Si(t,n,e,r,i,a,u,o){var s=n&rt;if(!s&&\"function\"!=typeof t)throw new wc(J);var c=r?r.length:0;if(c||(n&=~(ot|st),r=i=X),u=u===X?u:Qc(jo(u),0),o=o===X?o:jo(o),c-=i?i.length:0,n&st){var l=r,h=i;r=i=X}var f=s?X:Dl(t),d=[t,n,e,r,i,l,h,a,u,o];if(f&&aa(d,f),t=d[0],n=d[1],e=d[2],r=d[3],i=d[4],o=d[9]=null==d[9]?s?0:t.length:Qc(d[9]-c,0),!o&&n&(at|ut)&&(n&=~(at|ut)),n&&n!=et)p=n==at||n==ut?di(t,n,o):n!=ot&&n!=(et|ot)||i.length?yi.apply(X,d):xi(t,n,e,r);else var p=ci(t,n,e);var g=f?Ml:Ol;return g(p,d)}function Di(t,n,e,r,i,a){var u=i&dt,o=t.length,s=n.length;if(o!=s&&!(u&&s>o))return!1;var c=a.get(t);if(c)return c==n;var l=-1,h=!0,f=i&ft?new ee:X;for(a.set(t,n);++l<o;){var d=t[l],p=n[l];if(r)var g=u?r(p,d,l,n,t,a):r(d,p,l,t,n,a);if(g!==X){if(g)continue;h=!1;break}if(f){if(!m(n,function(t,n){return f.has(n)||d!==t&&!e(d,t,r,i,a)?void 0:f.add(n)})){h=!1;break}}else if(d!==p&&!e(d,p,r,i,a)){h=!1;break}}return a[\"delete\"](t),h}function Ci(t,n,e,r,i,a,u){switch(e){case Gt:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case qt:return t.byteLength==n.byteLength&&r(new Rc(t),new Rc(n))?!0:!1;case Tt:case Ft:return+t==+n;case Ot:return t.name==n.name&&t.message==n.message;case Nt:return t!=+t?n!=+n:t==+n;case jt:case Ut:return t==n+\"\";case Bt:var o=$;case Yt:var s=a&dt;if(o||(o=z),t.size!=n.size&&!s)return!1;var c=u.get(t);return c?c==n:(a|=ft,u.set(t,n),Di(o(t),o(n),r,i,a,u));case $t:if(bl)return bl.call(t)==bl.call(n)}return!1}function Ti(t,n,e,r,i,a){var u=i&dt,o=rs(t),s=o.length,c=rs(n),l=c.length;if(s!=l&&!u)return!1;for(var h=s;h--;){var f=o[h];if(!(u?f in n:Ze(n,f)))return!1}var d=a.get(t);if(d)return d==n;var p=!0;a.set(t,n);for(var g=u;++h<s;){f=o[h];var y=t[f],m=n[f];if(r)var v=u?r(m,y,f,n,t,a):r(y,m,f,t,n,a);if(!(v===X?y===m||e(y,m,r,i,a):v)){p=!1;break}g||(g=\"constructor\"==f)}if(p&&!g){var _=t.constructor,b=n.constructor;_!=b&&\"constructor\"in t&&\"constructor\"in n&&!(\"function\"==typeof _&&_ instanceof _&&\"function\"==typeof b&&b instanceof b)&&(p=!1)}return a[\"delete\"](t),p}function Fi(t){return Ve(t,rs,Yi)}function Oi(t){return Ve(t,is,Tl)}function Li(t){for(var n=t.name+\"\",e=dl[n],r=Cc.call(dl,n)?e.length:0;r--;){var i=e[r],a=i.func;if(null==a||a==t)return i.name}return n}function Ii(t){var e=Cc.call(n,\"placeholder\")?n:t;return e.placeholder}function Bi(){var t=n.iteratee||Vs;return t=t===Vs?ar:t,arguments.length?t(arguments[0],arguments[1]):t}function Ni(t,n){var e=t.__data__;return Ji(n)?e[\"string\"==typeof n?\"string\":\"hash\"]:e.map}function Pi(t){for(var n=rs(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,ra(i)]}return n}function Ri(t,n){var e=R(t,n);return ir(e)?e:X}function ji(t){return Hc(Object(t))}function Yi(t){return Yc(Object(t))}function Ui(t){return Oc.call(t)}function $i(t,n,e){for(var r=-1,i=e.length;++r<i;){var a=e[r],u=a.size;switch(a.type){case\"drop\":t+=u;break;case\"dropRight\":n-=u;break;case\"take\":n=Jc(n,t+u);break;case\"takeRight\":t=Qc(t,n-u)}}return{start:t,end:n}}function Wi(t,n,e){n=Qi(n,t)?[n]:$r(n);for(var r,i=-1,a=n.length;++i<a;){var u=ca(n[i]);if(!(r=null!=t&&e(t,u)))break;t=t[u]}if(r)return r;var a=t?t.length:0;return!!a&&yo(a)&&Xi(u,a)&&(yh(t)||Fo(t)||no(t))}function zi(t){var n=t.length,e=t.constructor(n);return n&&\"string\"==typeof t[0]&&Cc.call(t,\"index\")&&(e.index=t.index,e.input=t.input),e}function qi(t){return\"function\"!=typeof t.constructor||ea(t)?{}:Te(ji(t))}function Gi(t,n,e,r){var i=t.constructor;switch(n){case qt:return qr(t);case Tt:case Ft:return new i(+t);case Gt:return Gr(t,r);case Vt:case Ht:case Zt:case Xt:case Kt:case Qt:case Jt:case tn:case nn:return Kr(t,r);case Bt:return Vr(t,r,e);case Nt:case Ut:return new i(t);case jt:return Hr(t);case Yt:return Zr(t,r,e);case $t:return Xr(t)}}function Vi(t){var n=t?t.length:X;return yo(n)&&(yh(t)||Fo(t)||no(t))?M(n,String):null}function Hi(t){return yh(t)||no(t)}function Zi(t){return yh(t)&&!(2==t.length&&!po(t[0]))}function Xi(t,n){return n=null==n?wt:n,!!n&&(\"number\"==typeof t||Tn.test(t))&&t>-1&&t%1==0&&n>t}function Ki(t,n,e){if(!mo(e))return!1;var r=typeof n;return(\"number\"==r?ro(e)&&Xi(n,e.length):\"string\"==r&&n in e)?to(e[n],t):!1}function Qi(t,n){if(yh(t))return!1;var e=typeof t;return\"number\"==e||\"symbol\"==e||\"boolean\"==e||null==t||Oo(t)?!0:pn.test(t)||!dn.test(t)||null!=n&&t in Object(n)}function Ji(t){var n=typeof t;return\"string\"==n||\"number\"==n||\"symbol\"==n||\"boolean\"==n?\"__proto__\"!==t:null===t}function ta(t){var e=Li(t),r=n[e];if(\"function\"!=typeof r||!(e in In.prototype))return!1;if(t===r)return!0;var i=Dl(r);return!!i&&t===i[0]}function na(t){return!!Sc&&Sc in t}function ea(t){var n=t&&t.constructor,e=\"function\"==typeof n&&n.prototype||kc;return t===e}function ra(t){return t===t&&!mo(t)}function ia(t,n){return function(e){return null==e?!1:e[t]===n&&(n!==X||t in Object(e))}}function aa(t,n){var e=t[1],r=n[1],i=e|r,a=(et|rt|ct)>i,u=r==ct&&e==at||r==ct&&e==lt&&t[7].length<=n[8]||r==(ct|lt)&&n[7].length<=n[8]&&e==at;if(!a&&!u)return t;r&et&&(t[2]=n[2],i|=e&et?0:it);var o=n[3];if(o){var s=t[3];t[3]=s?ti(s,o,n[4]):o,t[4]=s?W(t[3],nt):n[4]}return o=n[5],o&&(s=t[5],t[5]=s?ni(s,o,n[6]):o,t[6]=s?W(t[5],nt):n[6]),o=n[7],o&&(t[7]=o),r&ct&&(t[8]=null==t[8]?n[8]:Jc(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i,t}function ua(t,n,e,r,i,a){return mo(t)&&mo(n)&&fr(t,n,X,ua,a.set(n,t)),t}function oa(t,n){return 1==n.length?t:Ge(t,Mr(n,0,-1))}function sa(t,n){for(var e=t.length,r=Jc(n.length,e),i=ei(t);r--;){var a=n[r];t[r]=Xi(a,e)?i[a]:X}return t}function ca(t){if(\"string\"==typeof t||Oo(t))return t;var n=t+\"\";return\"0\"==n&&1/t==-xt?\"-0\":n}function la(t){if(null!=t){try{return Dc.call(t)}catch(n){}try{return t+\"\"}catch(n){}}return\"\"}function ha(t){if(t instanceof In)return t.clone();var n=new L(t.__wrapped__,t.__chain__);return n.__actions__=ei(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function fa(t,n,e){n=(e?Ki(t,n,e):n===X)?1:Qc(jo(n),0);var r=t?t.length:0;if(!r||1>n)return[];for(var i=0,a=0,u=Array(Gc(r/n));r>i;)u[a++]=Mr(t,i,i+=n);return u}function da(t){for(var n=-1,e=t?t.length:0,r=0,i=[];++n<e;){var a=t[n];a&&(i[r++]=a)}return i}function pa(){for(var t=arguments.length,n=Array(t?t-1:0),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return t?p(yh(e)?ei(e):[e],$e(n,1)):[]}function ga(t,n,e){var r=t?t.length:0;return r?(n=e||n===X?1:jo(n),Mr(t,0>n?0:n,r)):[]}function ya(t,n,e){var r=t?t.length:0;return r?(n=e||n===X?1:jo(n),n=r-n,Mr(t,0,0>n?0:n)):[]}function ma(t,n){return t&&t.length?Nr(t,Bi(n,3),!0,!0):[]}function va(t,n){return t&&t.length?Nr(t,Bi(n,3),!0):[]}function _a(t,n,e,r){var i=t?t.length:0;return i?(e&&\"number\"!=typeof e&&Ki(t,n,e)&&(e=0,r=i),Re(t,n,e,r)):[]}function ba(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=null==e?0:jo(e);return 0>i&&(i=Qc(r+i,0)),_(t,Bi(n,3),i)}function xa(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=r-1;return e!==X&&(i=jo(e),i=0>e?Qc(r+i,0):Jc(i,r-1)),_(t,Bi(n,3),i,!0)}function wa(t){var n=t?t.length:0;return n?$e(t,1):[]}function Aa(t){var n=t?t.length:0;return n?$e(t,xt):[]}function ka(t,n){var e=t?t.length:0;return e?(n=n===X?1:jo(n),$e(t,n)):[]}function Ea(t){for(var n=-1,e=t?t.length:0,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}function Ma(t){return t&&t.length?t[0]:X}function Sa(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=null==e?0:jo(e);return 0>i&&(i=Qc(r+i,0)),b(t,n,i)}function Da(t){return ya(t,1)}function Ca(t,n){return t?Xc.call(t,n):\"\"}function Ta(t){var n=t?t.length:0;return n?t[n-1]:X}function Fa(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=r;if(e!==X&&(i=jo(e),i=(0>i?Qc(r+i,0):Jc(i,r-1))+1),n!==n)return j(t,i-1,!0);for(;i--;)if(t[i]===n)return i;return-1}function Oa(t,n){return t&&t.length?pr(t,jo(n)):X}function La(t,n){return t&&t.length&&n&&n.length?br(t,n):t}function Ia(t,n,e){return t&&t.length&&n&&n.length?br(t,n,Bi(e)):t}function Ba(t,n,e){return t&&t.length&&n&&n.length?br(t,n,X,e):t}function Na(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],a=t.length;for(n=Bi(n,3);++r<a;){var u=t[r];n(u,r,t)&&(e.push(u),i.push(r))}return xr(t,i),e}function Pa(t){return t?rl.call(t):t}function Ra(t,n,e){var r=t?t.length:0;return r?(e&&\"number\"!=typeof e&&Ki(t,n,e)?(n=0,e=r):(n=null==n?0:jo(n),e=e===X?r:jo(e)),Mr(t,n,e)):[]}function ja(t,n){return Dr(t,n)}function Ya(t,n,e){return Cr(t,n,Bi(e))}function Ua(t,n){var e=t?t.length:0;if(e){var r=Dr(t,n);if(e>r&&to(t[r],n))return r}return-1}function $a(t,n){return Dr(t,n,!0)}function Wa(t,n,e){return Cr(t,n,Bi(e),!0)}function za(t,n){var e=t?t.length:0;if(e){var r=Dr(t,n,!0)-1;if(to(t[r],n))return r}return-1}function qa(t){return t&&t.length?Tr(t):[]}function Ga(t,n){return t&&t.length?Tr(t,Bi(n)):[]}function Va(t){return ga(t,1)}function Ha(t,n,e){return t&&t.length?(n=e||n===X?1:jo(n),Mr(t,0,0>n?0:n)):[]}function Za(t,n,e){var r=t?t.length:0;return r?(n=e||n===X?1:jo(n),n=r-n,Mr(t,0>n?0:n,r)):[]}function Xa(t,n){return t&&t.length?Nr(t,Bi(n,3),!1,!0):[]}function Ka(t,n){return t&&t.length?Nr(t,Bi(n,3)):[]}function Qa(t){return t&&t.length?Lr(t):[]}function Ja(t,n){return t&&t.length?Lr(t,Bi(n)):[]}function tu(t,n){return t&&t.length?Lr(t,X,n):[]}function nu(t){if(!t||!t.length)return[];var n=0;return t=l(t,function(t){return io(t)?(n=Qc(t.length,n),!0):void 0}),M(n,function(n){return d(t,vr(n))})}function eu(t,n){if(!t||!t.length)return[];var e=nu(t);return null==n?e:d(e,function(t){return a(n,X,t)})}function ru(t,n){return jr(t||[],n||[],de)}function iu(t,n){return jr(t||[],n||[],Er)}function au(t){var e=n(t);return e.__chain__=!0,e}function uu(t,n){return n(t),t}function ou(t,n){return n(t)}function su(){return au(this)}function cu(){return new L(this.value(),this.__chain__)}function lu(){this.__values__===X&&(this.__values__=Po(this.value()));var t=this.__index__>=this.__values__.length,n=t?X:this.__values__[this.__index__++];return{done:t,value:n}}function hu(){return this}function fu(t){for(var n,r=this;r instanceof e;){var i=ha(r);i.__index__=0,i.__values__=X,n?a.__wrapped__=i:n=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,n}function du(){var t=this.__wrapped__;if(t instanceof In){var n=t;return this.__actions__.length&&(n=new In(this)),n=n.reverse(),n.__actions__.push({func:ou,args:[Pa],thisArg:X}),new L(n,this.__chain__)}return this.thru(Pa)}function pu(){return Pr(this.__wrapped__,this.__actions__)}function gu(t,n,e){var r=yh(t)?c:Ne;return e&&Ki(t,n,e)&&(n=X),r(t,Bi(n,3))}function yu(t,n){var e=yh(t)?l:Ue;return e(t,Bi(n,3))}function mu(t,n){return $e(Au(t,n),1)}function vu(t,n){return $e(Au(t,n),xt)}function _u(t,n,e){return e=e===X?1:jo(e),$e(Au(t,n),e)}function bu(t,n){var e=yh(t)?o:wl;return e(t,Bi(n,3))}function xu(t,n){var e=yh(t)?s:Al;return e(t,Bi(n,3))}function wu(t,n,e,r){t=ro(t)?t:ys(t),e=e&&!r?jo(e):0;var i=t.length;return 0>e&&(e=Qc(i+e,0)),Fo(t)?i>=e&&t.indexOf(n,e)>-1:!!i&&b(t,n,e)>-1}function Au(t,n){var e=yh(t)?d:cr;return e(t,Bi(n,3))}function ku(t,n,e,r){return null==t?[]:(yh(n)||(n=null==n?[]:[n]),e=r?X:e,yh(e)||(e=null==e?[]:[e]),gr(t,n,e))}function Eu(t,n,e){var r=yh(t)?g:A,i=arguments.length<3;return r(t,Bi(n,4),e,i,wl)}function Mu(t,n,e){var r=yh(t)?y:A,i=arguments.length<3;return r(t,Bi(n,4),e,i,Al)}function Su(t,n){var e=yh(t)?l:Ue;return n=Bi(n,3),e(t,function(t,e,r){return!n(t,e,r)})}function Du(t){var n=ro(t)?t:ys(t),e=n.length;return e>0?n[wr(0,e-1)]:X}function Cu(t,n,e){var r=-1,i=Po(t),a=i.length,u=a-1;for(n=(e?Ki(t,n,e):n===X)?1:Se(jo(n),0,a);++r<n;){var o=wr(r,u),s=i[o];i[o]=i[r],i[r]=s}return i.length=n,i}function Tu(t){return Cu(t,Et)}function Fu(t){if(null==t)return 0;if(ro(t)){var n=t.length;return n&&Fo(t)?G(t):n}if(vo(t)){var e=Ui(t);if(e==Bt||e==Yt)return t.size}return rs(t).length}function Ou(t,n,e){var r=yh(t)?m:Sr;return e&&Ki(t,n,e)&&(n=X),r(t,Bi(n,3))}function Lu(){return vc.now()}function Iu(t,n){if(\"function\"!=typeof n)throw new wc(J);return t=jo(t),function(){return--t<1?n.apply(this,arguments):void 0}}function Bu(t,n,e){return n=e?X:n,n=t&&null==n?t.length:n,Si(t,ct,X,X,X,X,n)}function Nu(t,n){var e;if(\"function\"!=typeof n)throw new wc(J);return t=jo(t),function(){return--t>0&&(e=n.apply(this,arguments)),1>=t&&(n=X),e}}function Pu(t,n,e){n=e?X:n;var r=Si(t,at,X,X,X,X,X,n);return r.placeholder=Pu.placeholder,r}function Ru(t,n,e){n=e?X:n;var r=Si(t,ut,X,X,X,X,X,n);return r.placeholder=Ru.placeholder,r}function ju(t,n,e){function r(n){var e=f,r=d;return f=d=X,v=n,g=t.apply(r,e)}function i(t){return v=t,y=qc(o,n),_?r(t):g}function a(t){var e=t-m,r=t-v,i=n-e;return b?Jc(i,p-r):i}function u(t){var e=t-m,r=t-v;return m===X||e>=n||0>e||b&&r>=p}function o(){var t=Lu();return u(t)?s(t):void(y=qc(o,a(t)))}function s(t){return y=X,x&&f?r(t):(f=d=X,g)}function c(){v=0,f=m=d=y=X}function l(){return y===X?g:s(Lu())}function h(){var t=Lu(),e=u(t);if(f=arguments,d=this,m=t,e){if(y===X)return i(m);if(b)return y=qc(o,n),r(m)}return y===X&&(y=qc(o,n)),g}var f,d,p,g,y,m,v=0,_=!1,b=!1,x=!0;if(\"function\"!=typeof t)throw new wc(J);return n=Uo(n)||0,mo(e)&&(_=!!e.leading,b=\"maxWait\"in e,p=b?Qc(Uo(e.maxWait)||0,n):p,x=\"trailing\"in e?!!e.trailing:x),h.cancel=c,h.flush=l,h}function Yu(t){return Si(t,ht)}function Uu(t,n){if(\"function\"!=typeof t||n&&\"function\"!=typeof n)throw new wc(J);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],a=e.cache;if(a.has(i))return a.get(i);var u=t.apply(this,r);return e.cache=a.set(i,u),u};return e.cache=new(Uu.Cache||Xn),e}function $u(t){if(\"function\"!=typeof t)throw new wc(J);return function(){return!t.apply(this,arguments)}}function Wu(t){return Nu(2,t)}function zu(t,n){if(\"function\"!=typeof t)throw new wc(J);return n=Qc(n===X?t.length-1:jo(n),0),function(){for(var e=arguments,r=-1,i=Qc(e.length-n,0),u=Array(i);++r<i;)u[r]=e[n+r];switch(n){case 0:return t.call(this,u);case 1:return t.call(this,e[0],u);case 2:return t.call(this,e[0],e[1],u)}var o=Array(n+1);for(r=-1;++r<n;)o[r]=e[r];return o[n]=u,a(t,this,o)}}function qu(t,n){if(\"function\"!=typeof t)throw new wc(J);return n=n===X?0:Qc(jo(n),0),zu(function(e){var r=e[n],i=Wr(e,0,n);return r&&p(i,r),a(t,this,i)})}function Gu(t,n,e){var r=!0,i=!0;if(\"function\"!=typeof t)throw new wc(J);return mo(e)&&(r=\"leading\"in e?!!e.leading:r,i=\"trailing\"in e?!!e.trailing:i),ju(t,n,{leading:r,maxWait:n,trailing:i})}function Vu(t){return Bu(t,1)}function Hu(t,n){return n=null==n?Gs:n,hh(n,t)}function Zu(){if(!arguments.length)return[];var t=arguments[0];return yh(t)?t:[t]}function Xu(t){return De(t,!1,!0)}function Ku(t,n){return De(t,!1,!0,n)}function Qu(t){return De(t,!0,!0)}function Ju(t,n){return De(t,!0,!0,n)}function to(t,n){return t===n||t!==t&&n!==n}function no(t){return io(t)&&Cc.call(t,\"callee\")&&(!Wc.call(t,\"callee\")||Oc.call(t)==Dt)}function eo(t){return vo(t)&&Oc.call(t)==qt}function ro(t){return null!=t&&yo(Cl(t))&&!po(t)}function io(t){return vo(t)&&ro(t)}function ao(t){return t===!0||t===!1||vo(t)&&Oc.call(t)==Tt}function uo(t){return vo(t)&&Oc.call(t)==Ft}function oo(t){return!!t&&1===t.nodeType&&vo(t)&&!So(t)}function so(t){if(ro(t)&&(yh(t)||Fo(t)||po(t.splice)||no(t)||mh(t)))return!t.length;if(vo(t)){var n=Ui(t);if(n==Bt||n==Yt)return!t.size}for(var e in t)if(Cc.call(t,e))return!1;return!(fl&&rs(t).length)}function co(t,n){return nr(t,n)}function lo(t,n,e){e=\"function\"==typeof e?e:X;var r=e?e(t,n):X;return r===X?nr(t,n,e):!!r}function ho(t){return vo(t)?Oc.call(t)==Ot||\"string\"==typeof t.message&&\"string\"==typeof t.name:!1}function fo(t){return\"number\"==typeof t&&Zc(t)}function po(t){var n=mo(t)?Oc.call(t):\"\";return n==Lt||n==It}function go(t){return\"number\"==typeof t&&t==jo(t)}function yo(t){return\"number\"==typeof t&&t>-1&&t%1==0&&wt>=t}function mo(t){var n=typeof t;return!!t&&(\"object\"==n||\"function\"==n)}function vo(t){return!!t&&\"object\"==typeof t}function _o(t){return vo(t)&&Ui(t)==Bt}function bo(t,n){return t===n||rr(t,n,Pi(n))}function xo(t,n,e){return e=\"function\"==typeof e?e:X,rr(t,n,Pi(n),e)}function wo(t){return Mo(t)&&t!=+t}function Ao(t){if(Fl(t))throw new _c(\"This method is not supported with `core-js`. Try https://github.com/es-shims.\");return ir(t)}function ko(t){return null===t}function Eo(t){return null==t}function Mo(t){return\"number\"==typeof t||vo(t)&&Oc.call(t)==Nt}function So(t){if(!vo(t)||Oc.call(t)!=Pt||Y(t))return!1;var n=ji(t);if(null===n)return!0;var e=Cc.call(n,\"constructor\")&&n.constructor;return\"function\"==typeof e&&e instanceof e&&Dc.call(e)==Fc}function Do(t){return mo(t)&&Oc.call(t)==jt}function Co(t){return go(t)&&t>=-wt&&wt>=t}function To(t){return vo(t)&&Ui(t)==Yt}function Fo(t){return\"string\"==typeof t||!yh(t)&&vo(t)&&Oc.call(t)==Ut}function Oo(t){return\"symbol\"==typeof t||vo(t)&&Oc.call(t)==$t}function Lo(t){return vo(t)&&yo(t.length)&&!!Ee[Oc.call(t)]}function Io(t){return t===X}function Bo(t){return vo(t)&&Ui(t)==Wt}function No(t){return vo(t)&&Oc.call(t)==zt}function Po(t){if(!t)return[];if(ro(t))return Fo(t)?V(t):ei(t);if(Uc&&t[Uc])return U(t[Uc]());var n=Ui(t),e=n==Bt?$:n==Yt?z:ys;return e(t)}function Ro(t){if(!t)return 0===t?t:0;if(t=Uo(t),t===xt||t===-xt){var n=0>t?-1:1;return n*At}return t===t?t:0}function jo(t){var n=Ro(t),e=n%1;return n===n?e?n-e:n:0}function Yo(t){return t?Se(jo(t),0,Et):0}function Uo(t){if(\"number\"==typeof t)return t;if(Oo(t))return kt;if(mo(t)){var n=po(t.valueOf)?t.valueOf():t;t=mo(n)?n+\"\":n}if(\"string\"!=typeof t)return 0===t?t:+t;t=t.replace(vn,\"\");var e=Sn.test(t);return e||Cn.test(t)?Oe(t.slice(2),e?2:8):Mn.test(t)?kt:+t}function $o(t){return ri(t,is(t))}function Wo(t){return Se(jo(t),-wt,wt)}function zo(t){return null==t?\"\":Or(t)}function qo(t,n){var e=Te(t);return n?ye(e,n):e}function Go(t,n){return v(t,Bi(n,3),We)}function Vo(t,n){return v(t,Bi(n,3),ze)}function Ho(t,n){return null==t?t:kl(t,Bi(n,3),is)}function Zo(t,n){return null==t?t:El(t,Bi(n,3),is)}function Xo(t,n){return t&&We(t,Bi(n,3))}function Ko(t,n){return t&&ze(t,Bi(n,3))}function Qo(t){return null==t?[]:qe(t,rs(t))}function Jo(t){return null==t?[]:qe(t,is(t))}function ts(t,n,e){var r=null==t?X:Ge(t,n);return r===X?e:r}function ns(t,n){return null!=t&&Wi(t,n,Ze)}function es(t,n){return null!=t&&Wi(t,n,Xe)}function rs(t){var n=ea(t);if(!n&&!ro(t))return ur(t);var e=Vi(t),r=!!e,i=e||[],a=i.length;for(var u in t)!Ze(t,u)||r&&(\"length\"==u||Xi(u,a))||n&&\"constructor\"==u||i.push(u);return i}function is(t){for(var n=-1,e=ea(t),r=or(t),i=r.length,a=Vi(t),u=!!a,o=a||[],s=o.length;++n<i;){var c=r[n];u&&(\"length\"==c||Xi(c,s))||\"constructor\"==c&&(e||!Cc.call(t,c))||o.push(c)}return o}function as(t,n){var e={};return n=Bi(n,3),We(t,function(t,r,i){e[n(t,r,i)]=t}),e}function us(t,n){var e={};return n=Bi(n,3),We(t,function(t,r,i){e[r]=n(t,r,i)}),e}function os(t,n){return n=Bi(n),mr(t,function(t,e){return!n(t,e)})}function ss(t,n){return null==t?{}:mr(t,Bi(n))}function cs(t,n,e){n=Qi(n,t)?[n]:$r(n);var r=-1,i=n.length;for(i||(t=X,i=1);++r<i;){var a=null==t?X:t[ca(n[r])];a===X&&(r=i,a=e),t=po(a)?a.call(t):a}return t}function ls(t,n,e){return null==t?t:Er(t,n,e)}function hs(t,n,e,r){return r=\"function\"==typeof r?r:X,null==t?t:Er(t,n,e,r)}function fs(t,n,e){var r=yh(t)||Lo(t);if(n=Bi(n,4),null==e)if(r||mo(t)){var i=t.constructor;e=r?yh(t)?new i:[]:po(i)?Te(ji(t)):{}}else e={};return(r?o:We)(t,function(t,r,i){return n(e,t,r,i)}),e}function ds(t,n){return null==t?!0:Ir(t,n)}function ps(t,n,e){return null==t?t:Br(t,n,Ur(e))}function gs(t,n,e,r){return r=\"function\"==typeof r?r:X,null==t?t:Br(t,n,Ur(e),r)}function ys(t){return t?C(t,rs(t)):[]}function ms(t){return null==t?[]:C(t,is(t))}function vs(t,n,e){return e===X&&(e=n,n=X),e!==X&&(e=Uo(e),e=e===e?e:0),n!==X&&(n=Uo(n),n=n===n?n:0),Se(Uo(t),n,e)}function _s(t,n,e){return n=Uo(n)||0,e===X?(e=n,n=0):e=Uo(e)||0,t=Uo(t),Ke(t,n,e)}function bs(t,n,e){if(e&&\"boolean\"!=typeof e&&Ki(t,n,e)&&(n=e=X),e===X&&(\"boolean\"==typeof n?(e=n,n=X):\"boolean\"==typeof t&&(e=t,t=X)),t===X&&n===X?(t=0,n=1):(t=Uo(t)||0,n===X?(n=t,t=0):n=Uo(n)||0),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var i=nl();return Jc(t+i*(n-t+Fe(\"1e-\"+((i+\"\").length-1))),n)}return wr(t,n)}function xs(t){return Wh(zo(t).toLowerCase())}function ws(t){return t=zo(t),t&&t.replace(Fn,B).replace(ve,\"\")}function As(t,n,e){t=zo(t),n=Or(n);var r=t.length;return e=e===X?r:Se(jo(e),0,r),e-=n.length,e>=0&&t.indexOf(n,e)==e}function ks(t){return t=zo(t),t&&cn.test(t)?t.replace(on,N):t}function Es(t){return t=zo(t),t&&mn.test(t)?t.replace(yn,\"\\\\$&\"):t}function Ms(t,n,e){t=zo(t),n=jo(n);var r=n?G(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return bi(Vc(i),e)+t+bi(Gc(i),e)}function Ss(t,n,e){t=zo(t),n=jo(n);var r=n?G(t):0;return n&&n>r?t+bi(n-r,e):t}function Ds(t,n,e){t=zo(t),n=jo(n);var r=n?G(t):0;return n&&n>r?bi(n-r,e)+t:t}function Cs(t,n,e){return e||null==n?n=0:n&&(n=+n),t=zo(t).replace(vn,\"\"),tl(t,n||(En.test(t)?16:10))}function Ts(t,n,e){return n=(e?Ki(t,n,e):n===X)?1:jo(n),kr(zo(t),n)}function Fs(){var t=arguments,n=zo(t[0]);return t.length<3?n:el.call(n,t[1],t[2])}function Os(t,n,e){return e&&\"number\"!=typeof e&&Ki(t,n,e)&&(n=e=X),(e=e===X?Et:e>>>0)?(t=zo(t),t&&(\"string\"==typeof n||null!=n&&!Do(n))&&(n=Or(n),\"\"==n&&xe.test(t))?Wr(V(t),0,e):il.call(t,n,e)):[]}function Ls(t,n,e){return t=zo(t),e=Se(jo(e),0,t.length),t.lastIndexOf(Or(n),e)==e}function Is(t,e,r){var i=n.templateSettings;r&&Ki(t,e,r)&&(e=X),t=zo(t),e=wh({},e,i,he);var a,u,o=wh({},e.imports,i.imports,he),s=rs(o),c=C(o,s),l=0,h=e.interpolate||On,f=\"__p += '\",d=xc((e.escape||On).source+\"|\"+h.source+\"|\"+(h===fn?An:On).source+\"|\"+(e.evaluate||On).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(\"sourceURL\"in e?e.sourceURL:\"lodash.templateSources[\"+ ++ke+\"]\")+\"\\n\";t.replace(d,function(n,e,r,i,o,s){return r||(r=i),f+=t.slice(l,s).replace(Ln,P),e&&(a=!0,f+=\"' +\\n__e(\"+e+\") +\\n'\"),o&&(u=!0,f+=\"';\\n\"+o+\";\\n__p += '\"),r&&(f+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),l=s+n.length,n}),f+=\"';\\n\";var g=e.variable;g||(f=\"with (obj) {\\n\"+f+\"\\n}\\n\"),f=(u?f.replace(en,\"\"):f).replace(rn,\"$1\").replace(an,\"$1;\"),f=\"function(\"+(g||\"obj\")+\") {\\n\"+(g?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(u?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+f+\"return __p\\n}\";var y=zh(function(){return Function(s,p+\"return \"+f).apply(X,c)});if(y.source=f,ho(y))throw y;return y}function Bs(t){return zo(t).toLowerCase()}function Ns(t){return zo(t).toUpperCase()}function Ps(t,n,e){if(t=zo(t),t&&(e||n===X))return t.replace(vn,\"\");if(!t||!(n=Or(n)))return t;var r=V(t),i=V(n),a=F(r,i),u=O(r,i)+1;return Wr(r,a,u).join(\"\")}function Rs(t,n,e){if(t=zo(t),t&&(e||n===X))return t.replace(bn,\"\");if(!t||!(n=Or(n)))return t;var r=V(t),i=O(r,V(n))+1;return Wr(r,0,i).join(\"\")}function js(t,n,e){if(t=zo(t),t&&(e||n===X))return t.replace(_n,\"\");if(!t||!(n=Or(n)))return t;var r=V(t),i=F(r,V(n));return Wr(r,i).join(\"\")}function Ys(t,n){var e=pt,r=gt;if(mo(n)){var i=\"separator\"in n?n.separator:i;e=\"length\"in n?jo(n.length):e,r=\"omission\"in n?Or(n.omission):r}t=zo(t);var a=t.length;if(xe.test(t)){var u=V(t);a=u.length}if(e>=a)return t;var o=e-G(r);if(1>o)return r;var s=u?Wr(u,0,o).join(\"\"):t.slice(0,o);if(i===X)return s+r;if(u&&(o+=s.length-o),Do(i)){if(t.slice(o).search(i)){var c,l=s;for(i.global||(i=xc(i.source,zo(kn.exec(i))+\"g\")),i.lastIndex=0;c=i.exec(l);)var h=c.index;s=s.slice(0,h===X?o:h)}}else if(t.indexOf(Or(i),o)!=o){var f=s.lastIndexOf(i);f>-1&&(s=s.slice(0,f))}return s+r}function Us(t){return t=zo(t),t&&sn.test(t)?t.replace(un,H):t}function $s(t,n,e){return t=zo(t),n=e?X:n,n===X&&(n=we.test(t)?be:xn),t.match(n)||[]}function Ws(t){var n=t?t.length:0,e=Bi();return t=n?d(t,function(t){if(\"function\"!=typeof t[1])throw new wc(J);return[e(t[0]),t[1]]}):[],zu(function(e){for(var r=-1;++r<n;){var i=t[r];if(a(i[0],this,e))return a(i[1],this,e)}})}function zs(t){return Ce(De(t,!0))}function qs(t){return function(){return t}}function Gs(t){return t}function Vs(t){return ar(\"function\"==typeof t?t:De(t,!0))}function Hs(t){return lr(De(t,!0))}function Zs(t,n){return hr(t,De(n,!0))}function Xs(t,n,e){var r=rs(n),i=qe(n,r);null!=e||mo(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=qe(n,rs(n)));var a=!(mo(e)&&\"chain\"in e&&!e.chain),u=po(t);return o(i,function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(a||n){var e=t(this.__wrapped__),i=e.__actions__=ei(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,p([this.value()],arguments))})}),t}function Ks(){return je._===this&&(je._=Lc),this}function Qs(){}function Js(t){return t=jo(t),zu(function(n){return pr(n,t)})}function tc(t){return Qi(t)?vr(ca(t)):_r(t)}function nc(t){return function(n){return null==t?X:Ge(t,n)}}function ec(){return[]}function rc(){return!1}function ic(){return{}}function ac(){return\"\"}function uc(){return!0}function oc(t,n){if(t=jo(t),1>t||t>wt)return[];var e=Et,r=Jc(t,Et);n=Bi(n),t-=Et;for(var i=M(r,n);++e<t;)n(e);return i}function sc(t){return yh(t)?d(t,ca):Oo(t)?[t]:ei(Ll(t))}function cc(t){var n=++Tc;return zo(t)+n}function lc(t){return t&&t.length?Pe(t,Gs,He):X}function hc(t,n){return t&&t.length?Pe(t,Bi(n),He):X}function fc(t){return w(t,Gs)}function dc(t,n){return w(t,Bi(n))}function pc(t){return t&&t.length?Pe(t,Gs,sr):X}function gc(t,n){return t&&t.length?Pe(t,Bi(n),sr):X}function yc(t){return t&&t.length?E(t,Gs):0}function mc(t,n){return t&&t.length?E(t,Bi(n)):0}t=t?Ye.defaults({},t,Ye.pick(je,Ae)):je;var vc=t.Date,_c=t.Error,bc=t.Math,xc=t.RegExp,wc=t.TypeError,Ac=t.Array.prototype,kc=t.Object.prototype,Ec=t.String.prototype,Mc=t[\"__core-js_shared__\"],Sc=function(){var t=/[^.]+$/.exec(Mc&&Mc.keys&&Mc.keys.IE_PROTO||\"\");return t?\"Symbol(src)_1.\"+t:\"\"}(),Dc=t.Function.prototype.toString,Cc=kc.hasOwnProperty,Tc=0,Fc=Dc.call(Object),Oc=kc.toString,Lc=je._,Ic=xc(\"^\"+Dc.call(Cc).replace(yn,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),Bc=Be?t.Buffer:X,Nc=t.Reflect,Pc=t.Symbol,Rc=t.Uint8Array,jc=Nc?Nc.enumerate:X,Yc=Object.getOwnPropertySymbols,Uc=\"symbol\"==typeof(Uc=Pc&&Pc.iterator)?Uc:X,$c=Object.create,Wc=kc.propertyIsEnumerable,zc=Ac.splice,qc=function(n,e){return t.setTimeout.call(je,n,e)},Gc=bc.ceil,Vc=bc.floor,Hc=Object.getPrototypeOf,Zc=t.isFinite,Xc=Ac.join,Kc=Object.keys,Qc=bc.max,Jc=bc.min,tl=t.parseInt,nl=bc.random,el=Ec.replace,rl=Ac.reverse,il=Ec.split,al=Ri(t,\"DataView\"),ul=Ri(t,\"Map\"),ol=Ri(t,\"Promise\"),sl=Ri(t,\"Set\"),cl=Ri(t,\"WeakMap\"),ll=Ri(Object,\"create\"),hl=cl&&new cl,fl=!Wc.call({valueOf:1},\"valueOf\"),dl={},pl=la(al),gl=la(ul),yl=la(ol),ml=la(sl),vl=la(cl),_l=Pc?Pc.prototype:X,bl=_l?_l.valueOf:X,xl=_l?_l.toString:X;n.templateSettings={escape:ln,evaluate:hn,interpolate:fn,variable:\"\",imports:{_:n}},n.prototype=e.prototype,n.prototype.constructor=n,L.prototype=Te(e.prototype),L.prototype.constructor=L,In.prototype=Te(e.prototype),In.prototype.constructor=In,Rn.prototype.clear=jn,Rn.prototype[\"delete\"]=Yn,Rn.prototype.get=Un,Rn.prototype.has=$n,Rn.prototype.set=Wn,zn.prototype.clear=qn,zn.prototype[\"delete\"]=Gn,zn.prototype.get=Vn,zn.prototype.has=Hn,zn.prototype.set=Zn,Xn.prototype.clear=Kn,Xn.prototype[\"delete\"]=Qn,Xn.prototype.get=Jn,Xn.prototype.has=te,Xn.prototype.set=ne,ee.prototype.add=ee.prototype.push=re,ee.prototype.has=ie,ae.prototype.clear=ue,ae.prototype[\"delete\"]=oe,ae.prototype.get=se,ae.prototype.has=ce,ae.prototype.set=le;var wl=oi(We),Al=oi(ze,!0),kl=si(),El=si(!0);jc&&!Wc.call({valueOf:1},\"valueOf\")&&(or=function(t){return U(jc(t))});var Ml=hl?function(t,n){return hl.set(t,n),t}:Gs,Sl=sl&&1/z(new sl([,-0]))[1]==xt?function(t){return new sl(t)}:Qs,Dl=hl?function(t){return hl.get(t)}:Qs,Cl=vr(\"length\");Yc||(Yi=ec);var Tl=Yc?function(t){for(var n=[];t;)p(n,Yi(t)),t=ji(t);return n}:Yi;(al&&Ui(new al(new ArrayBuffer(1)))!=Gt||ul&&Ui(new ul)!=Bt||ol&&Ui(ol.resolve())!=Rt||sl&&Ui(new sl)!=Yt||cl&&Ui(new cl)!=Wt)&&(Ui=function(t){var n=Oc.call(t),e=n==Pt?t.constructor:X,r=e?la(e):X;if(r)switch(r){case pl:return Gt;case gl:return Bt;case yl:return Rt;case ml:return Yt;case vl:return Wt}return n});var Fl=Mc?po:rc,Ol=function(){var t=0,n=0;return function(e,r){var i=Lu(),a=mt-(i-n);if(n=i,a>0){if(++t>=yt)return e}else t=0;return Ml(e,r)}}(),Ll=Uu(function(t){var n=[];return zo(t).replace(gn,function(t,e,r,i){n.push(r?i.replace(wn,\"$1\"):e||t)}),n}),Il=zu(function(t,n){return io(t)?Ie(t,$e(n,1,io,!0)):[]}),Bl=zu(function(t,n){var e=Ta(n);return io(e)&&(e=X),io(t)?Ie(t,$e(n,1,io,!0),Bi(e)):[]}),Nl=zu(function(t,n){var e=Ta(n);return io(e)&&(e=X),io(t)?Ie(t,$e(n,1,io,!0),X,e):[]}),Pl=zu(function(t){var n=d(t,Yr);return n.length&&n[0]===t[0]?Qe(n):[]}),Rl=zu(function(t){var n=Ta(t),e=d(t,Yr);return n===Ta(e)?n=X:e.pop(),e.length&&e[0]===t[0]?Qe(e,Bi(n)):[]}),jl=zu(function(t){var n=Ta(t),e=d(t,Yr);return n===Ta(e)?n=X:e.pop(),e.length&&e[0]===t[0]?Qe(e,X,n):[]}),Yl=zu(La),Ul=zu(function(t,n){n=$e(n,1);var e=t?t.length:0,r=_e(t,n);return xr(t,d(n,function(t){return Xi(t,e)?+t:t}).sort(Qr)),r}),$l=zu(function(t){\nreturn Lr($e(t,1,io,!0))}),Wl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Lr($e(t,1,io,!0),Bi(n))}),zl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Lr($e(t,1,io,!0),X,n)}),ql=zu(function(t,n){return io(t)?Ie(t,n):[]}),Gl=zu(function(t){return Rr(l(t,io))}),Vl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Rr(l(t,io),Bi(n))}),Hl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Rr(l(t,io),X,n)}),Zl=zu(nu),Xl=zu(function(t){var n=t.length,e=n>1?t[n-1]:X;return e=\"function\"==typeof e?(t.pop(),e):X,eu(t,e)}),Kl=zu(function(t){t=$e(t,1);var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return _e(n,t)};return!(n>1||this.__actions__.length)&&r instanceof In&&Xi(e)?(r=r.slice(e,+e+(n?1:0)),r.__actions__.push({func:ou,args:[i],thisArg:X}),new L(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(X),t})):this.thru(i)}),Ql=ai(function(t,n,e){Cc.call(t,e)?++t[e]:t[e]=1}),Jl=pi(ba),th=pi(xa),nh=ai(function(t,n,e){Cc.call(t,e)?t[e].push(n):t[e]=[n]}),eh=zu(function(t,n,e){var r=-1,i=\"function\"==typeof n,u=Qi(n),o=ro(t)?Array(t.length):[];return wl(t,function(t){var s=i?n:u&&null!=t?t[n]:X;o[++r]=s?a(s,t,e):tr(t,n,e)}),o}),rh=ai(function(t,n,e){t[e]=n}),ih=ai(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),ah=zu(function(t,n){if(null==t)return[];var e=n.length;return e>1&&Ki(t,n[0],n[1])?n=[]:e>2&&Ki(n[0],n[1],n[2])&&(n=[n[0]]),n=1==n.length&&yh(n[0])?n[0]:$e(n,1,Zi),gr(t,n,[])}),uh=zu(function(t,n,e){var r=et;if(e.length){var i=W(e,Ii(uh));r|=ot}return Si(t,r,n,e,i)}),oh=zu(function(t,n,e){var r=et|rt;if(e.length){var i=W(e,Ii(oh));r|=ot}return Si(n,r,t,e,i)}),sh=zu(function(t,n){return Le(t,1,n)}),ch=zu(function(t,n,e){return Le(t,Uo(n)||0,e)});Uu.Cache=Xn;var lh=zu(function(t,n){n=1==n.length&&yh(n[0])?d(n[0],D(Bi())):d($e(n,1,Zi),D(Bi()));var e=n.length;return zu(function(r){for(var i=-1,u=Jc(r.length,e);++i<u;)r[i]=n[i].call(this,r[i]);return a(t,this,r)})}),hh=zu(function(t,n){var e=W(n,Ii(hh));return Si(t,ot,X,n,e)}),fh=zu(function(t,n){var e=W(n,Ii(fh));return Si(t,st,X,n,e)}),dh=zu(function(t,n){return Si(t,lt,X,X,X,$e(n,1))}),ph=Ai(He),gh=Ai(function(t,n){return t>=n}),yh=Array.isArray,mh=Bc?function(t){return t instanceof Bc}:rc,vh=Ai(sr),_h=Ai(function(t,n){return n>=t}),bh=ui(function(t,n){if(fl||ea(n)||ro(n))return void ri(n,rs(n),t);for(var e in n)Cc.call(n,e)&&de(t,e,n[e])}),xh=ui(function(t,n){if(fl||ea(n)||ro(n))return void ri(n,is(n),t);for(var e in n)de(t,e,n[e])}),wh=ui(function(t,n,e,r){ri(n,is(n),t,r)}),Ah=ui(function(t,n,e,r){ri(n,rs(n),t,r)}),kh=zu(function(t,n){return _e(t,$e(n,1))}),Eh=zu(function(t){return t.push(X,he),a(wh,X,t)}),Mh=zu(function(t){return t.push(X,ua),a(Fh,X,t)}),Sh=mi(function(t,n,e){t[n]=e},qs(Gs)),Dh=mi(function(t,n,e){Cc.call(t,n)?t[n].push(e):t[n]=[e]},Bi),Ch=zu(tr),Th=ui(function(t,n,e){fr(t,n,e)}),Fh=ui(function(t,n,e,r){fr(t,n,e,r)}),Oh=zu(function(t,n){return null==t?{}:(n=d($e(n,1),ca),yr(t,Ie(Oi(t),n)))}),Lh=zu(function(t,n){return null==t?{}:yr(t,d($e(n,1),ca))}),Ih=Mi(rs),Bh=Mi(is),Nh=hi(function(t,n,e){return n=n.toLowerCase(),t+(e?xs(n):n)}),Ph=hi(function(t,n,e){return t+(e?\"-\":\"\")+n.toLowerCase()}),Rh=hi(function(t,n,e){return t+(e?\" \":\"\")+n.toLowerCase()}),jh=li(\"toLowerCase\"),Yh=hi(function(t,n,e){return t+(e?\"_\":\"\")+n.toLowerCase()}),Uh=hi(function(t,n,e){return t+(e?\" \":\"\")+Wh(n)}),$h=hi(function(t,n,e){return t+(e?\" \":\"\")+n.toUpperCase()}),Wh=li(\"toUpperCase\"),zh=zu(function(t,n){try{return a(t,X,n)}catch(e){return ho(e)?e:new _c(e)}}),qh=zu(function(t,n){return o($e(n,1),function(n){n=ca(n),t[n]=uh(t[n],t)}),t}),Gh=gi(),Vh=gi(!0),Hh=zu(function(t,n){return function(e){return tr(e,t,n)}}),Zh=zu(function(t,n){return function(e){return tr(t,e,n)}}),Xh=_i(d),Kh=_i(c),Qh=_i(m),Jh=wi(),tf=wi(!0),nf=vi(function(t,n){return t+n}),ef=Ei(\"ceil\"),rf=vi(function(t,n){return t/n}),af=Ei(\"floor\"),uf=vi(function(t,n){return t*n}),of=Ei(\"round\"),sf=vi(function(t,n){return t-n});return n.after=Iu,n.ary=Bu,n.assign=bh,n.assignIn=xh,n.assignInWith=wh,n.assignWith=Ah,n.at=kh,n.before=Nu,n.bind=uh,n.bindAll=qh,n.bindKey=oh,n.castArray=Zu,n.chain=au,n.chunk=fa,n.compact=da,n.concat=pa,n.cond=Ws,n.conforms=zs,n.constant=qs,n.countBy=Ql,n.create=qo,n.curry=Pu,n.curryRight=Ru,n.debounce=ju,n.defaults=Eh,n.defaultsDeep=Mh,n.defer=sh,n.delay=ch,n.difference=Il,n.differenceBy=Bl,n.differenceWith=Nl,n.drop=ga,n.dropRight=ya,n.dropRightWhile=ma,n.dropWhile=va,n.fill=_a,n.filter=yu,n.flatMap=mu,n.flatMapDeep=vu,n.flatMapDepth=_u,n.flatten=wa,n.flattenDeep=Aa,n.flattenDepth=ka,n.flip=Yu,n.flow=Gh,n.flowRight=Vh,n.fromPairs=Ea,n.functions=Qo,n.functionsIn=Jo,n.groupBy=nh,n.initial=Da,n.intersection=Pl,n.intersectionBy=Rl,n.intersectionWith=jl,n.invert=Sh,n.invertBy=Dh,n.invokeMap=eh,n.iteratee=Vs,n.keyBy=rh,n.keys=rs,n.keysIn=is,n.map=Au,n.mapKeys=as,n.mapValues=us,n.matches=Hs,n.matchesProperty=Zs,n.memoize=Uu,n.merge=Th,n.mergeWith=Fh,n.method=Hh,n.methodOf=Zh,n.mixin=Xs,n.negate=$u,n.nthArg=Js,n.omit=Oh,n.omitBy=os,n.once=Wu,n.orderBy=ku,n.over=Xh,n.overArgs=lh,n.overEvery=Kh,n.overSome=Qh,n.partial=hh,n.partialRight=fh,n.partition=ih,n.pick=Lh,n.pickBy=ss,n.property=tc,n.propertyOf=nc,n.pull=Yl,n.pullAll=La,n.pullAllBy=Ia,n.pullAllWith=Ba,n.pullAt=Ul,n.range=Jh,n.rangeRight=tf,n.rearg=dh,n.reject=Su,n.remove=Na,n.rest=zu,n.reverse=Pa,n.sampleSize=Cu,n.set=ls,n.setWith=hs,n.shuffle=Tu,n.slice=Ra,n.sortBy=ah,n.sortedUniq=qa,n.sortedUniqBy=Ga,n.split=Os,n.spread=qu,n.tail=Va,n.take=Ha,n.takeRight=Za,n.takeRightWhile=Xa,n.takeWhile=Ka,n.tap=uu,n.throttle=Gu,n.thru=ou,n.toArray=Po,n.toPairs=Ih,n.toPairsIn=Bh,n.toPath=sc,n.toPlainObject=$o,n.transform=fs,n.unary=Vu,n.union=$l,n.unionBy=Wl,n.unionWith=zl,n.uniq=Qa,n.uniqBy=Ja,n.uniqWith=tu,n.unset=ds,n.unzip=nu,n.unzipWith=eu,n.update=ps,n.updateWith=gs,n.values=ys,n.valuesIn=ms,n.without=ql,n.words=$s,n.wrap=Hu,n.xor=Gl,n.xorBy=Vl,n.xorWith=Hl,n.zip=Zl,n.zipObject=ru,n.zipObjectDeep=iu,n.zipWith=Xl,n.entries=Ih,n.entriesIn=Bh,n.extend=xh,n.extendWith=wh,Xs(n,n),n.add=nf,n.attempt=zh,n.camelCase=Nh,n.capitalize=xs,n.ceil=ef,n.clamp=vs,n.clone=Xu,n.cloneDeep=Qu,n.cloneDeepWith=Ju,n.cloneWith=Ku,n.deburr=ws,n.divide=rf,n.endsWith=As,n.eq=to,n.escape=ks,n.escapeRegExp=Es,n.every=gu,n.find=Jl,n.findIndex=ba,n.findKey=Go,n.findLast=th,n.findLastIndex=xa,n.findLastKey=Vo,n.floor=af,n.forEach=bu,n.forEachRight=xu,n.forIn=Ho,n.forInRight=Zo,n.forOwn=Xo,n.forOwnRight=Ko,n.get=ts,n.gt=ph,n.gte=gh,n.has=ns,n.hasIn=es,n.head=Ma,n.identity=Gs,n.includes=wu,n.indexOf=Sa,n.inRange=_s,n.invoke=Ch,n.isArguments=no,n.isArray=yh,n.isArrayBuffer=eo,n.isArrayLike=ro,n.isArrayLikeObject=io,n.isBoolean=ao,n.isBuffer=mh,n.isDate=uo,n.isElement=oo,n.isEmpty=so,n.isEqual=co,n.isEqualWith=lo,n.isError=ho,n.isFinite=fo,n.isFunction=po,n.isInteger=go,n.isLength=yo,n.isMap=_o,n.isMatch=bo,n.isMatchWith=xo,n.isNaN=wo,n.isNative=Ao,n.isNil=Eo,n.isNull=ko,n.isNumber=Mo,n.isObject=mo,n.isObjectLike=vo,n.isPlainObject=So,n.isRegExp=Do,n.isSafeInteger=Co,n.isSet=To,n.isString=Fo,n.isSymbol=Oo,n.isTypedArray=Lo,n.isUndefined=Io,n.isWeakMap=Bo,n.isWeakSet=No,n.join=Ca,n.kebabCase=Ph,n.last=Ta,n.lastIndexOf=Fa,n.lowerCase=Rh,n.lowerFirst=jh,n.lt=vh,n.lte=_h,n.max=lc,n.maxBy=hc,n.mean=fc,n.meanBy=dc,n.min=pc,n.minBy=gc,n.stubArray=ec,n.stubFalse=rc,n.stubObject=ic,n.stubString=ac,n.stubTrue=uc,n.multiply=uf,n.nth=Oa,n.noConflict=Ks,n.noop=Qs,n.now=Lu,n.pad=Ms,n.padEnd=Ss,n.padStart=Ds,n.parseInt=Cs,n.random=bs,n.reduce=Eu,n.reduceRight=Mu,n.repeat=Ts,n.replace=Fs,n.result=cs,n.round=of,n.runInContext=Z,n.sample=Du,n.size=Fu,n.snakeCase=Yh,n.some=Ou,n.sortedIndex=ja,n.sortedIndexBy=Ya,n.sortedIndexOf=Ua,n.sortedLastIndex=$a,n.sortedLastIndexBy=Wa,n.sortedLastIndexOf=za,n.startCase=Uh,n.startsWith=Ls,n.subtract=sf,n.sum=yc,n.sumBy=mc,n.template=Is,n.times=oc,n.toFinite=Ro,n.toInteger=jo,n.toLength=Yo,n.toLower=Bs,n.toNumber=Uo,n.toSafeInteger=Wo,n.toString=zo,n.toUpper=Ns,n.trim=Ps,n.trimEnd=Rs,n.trimStart=js,n.truncate=Ys,n.unescape=Us,n.uniqueId=cc,n.upperCase=$h,n.upperFirst=Wh,n.each=bu,n.eachRight=xu,n.first=Ma,Xs(n,function(){var t={};return We(n,function(e,r){Cc.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=K,o([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(t){n[t].placeholder=n}),o([\"drop\",\"take\"],function(t,n){In.prototype[t]=function(e){var r=this.__filtered__;if(r&&!n)return new In(this);e=e===X?1:Qc(jo(e),0);var i=this.clone();return r?i.__takeCount__=Jc(e,i.__takeCount__):i.__views__.push({size:Jc(e,Et),type:t+(i.__dir__<0?\"Right\":\"\")}),i},In.prototype[t+\"Right\"]=function(n){return this.reverse()[t](n).reverse()}}),o([\"filter\",\"map\",\"takeWhile\"],function(t,n){var e=n+1,r=e==vt||e==bt;In.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Bi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),o([\"head\",\"last\"],function(t,n){var e=\"take\"+(n?\"Right\":\"\");In.prototype[t]=function(){return this[e](1).value()[0]}}),o([\"initial\",\"tail\"],function(t,n){var e=\"drop\"+(n?\"\":\"Right\");In.prototype[t]=function(){return this.__filtered__?new In(this):this[e](1)}}),In.prototype.compact=function(){return this.filter(Gs)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=zu(function(t,n){return\"function\"==typeof t?new In(this):this.map(function(e){return tr(e,t,n)})}),In.prototype.reject=function(t){return t=Bi(t,3),this.filter(function(n){return!t(n)})},In.prototype.slice=function(t,n){t=jo(t);var e=this;return e.__filtered__&&(t>0||0>n)?new In(e):(0>t?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==X&&(n=jo(n),e=0>n?e.dropRight(-n):e.take(n-t)),e)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(Et)},We(In.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),a=n[i?\"take\"+(\"last\"==e?\"Right\":\"\"):e],u=i||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,o=i?[1]:arguments,s=e instanceof In,c=o[0],l=s||yh(e),h=function(t){var e=a.apply(n,p([t],o));return i&&f?e[0]:e};l&&r&&\"function\"==typeof c&&1!=c.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,g=u&&!f,y=s&&!d;if(!u&&l){e=y?e:new In(this);var m=t.apply(e,o);return m.__actions__.push({func:ou,args:[h],thisArg:X}),new L(m,f)}return g&&y?t.apply(this,o):(m=this.thru(h),g?i?m.value()[0]:m.value():m)})}),o([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=Ac[t],r=/^(?:push|sort|unshift)$/.test(t)?\"tap\":\"thru\",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(yh(n)?n:[],t)}return this[r](function(n){return e.apply(yh(n)?n:[],t)})}}),We(In.prototype,function(t,e){var r=n[e];if(r){var i=r.name+\"\",a=dl[i]||(dl[i]=[]);a.push({name:e,func:r})}}),dl[yi(X,rt).name]=[{name:\"wrapper\",func:X}],In.prototype.clone=Bn,In.prototype.reverse=Nn,In.prototype.value=Pn,n.prototype.at=Kl,n.prototype.chain=su,n.prototype.commit=cu,n.prototype.next=lu,n.prototype.plant=fu,n.prototype.reverse=du,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=pu,Uc&&(n.prototype[Uc]=hu),n}var X,K=\"4.13.1\",Q=200,J=\"Expected a function\",tt=\"__lodash_hash_undefined__\",nt=\"__lodash_placeholder__\",et=1,rt=2,it=4,at=8,ut=16,ot=32,st=64,ct=128,lt=256,ht=512,ft=1,dt=2,pt=30,gt=\"...\",yt=150,mt=16,vt=1,_t=2,bt=3,xt=1/0,wt=9007199254740991,At=1.7976931348623157e308,kt=0/0,Et=4294967295,Mt=Et-1,St=Et>>>1,Dt=\"[object Arguments]\",Ct=\"[object Array]\",Tt=\"[object Boolean]\",Ft=\"[object Date]\",Ot=\"[object Error]\",Lt=\"[object Function]\",It=\"[object GeneratorFunction]\",Bt=\"[object Map]\",Nt=\"[object Number]\",Pt=\"[object Object]\",Rt=\"[object Promise]\",jt=\"[object RegExp]\",Yt=\"[object Set]\",Ut=\"[object String]\",$t=\"[object Symbol]\",Wt=\"[object WeakMap]\",zt=\"[object WeakSet]\",qt=\"[object ArrayBuffer]\",Gt=\"[object DataView]\",Vt=\"[object Float32Array]\",Ht=\"[object Float64Array]\",Zt=\"[object Int8Array]\",Xt=\"[object Int16Array]\",Kt=\"[object Int32Array]\",Qt=\"[object Uint8Array]\",Jt=\"[object Uint8ClampedArray]\",tn=\"[object Uint16Array]\",nn=\"[object Uint32Array]\",en=/\\b__p \\+= '';/g,rn=/\\b(__p \\+=) '' \\+/g,an=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,un=/&(?:amp|lt|gt|quot|#39|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2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",Wn=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",zn=\"\\\\ufe0e\\\\ufe0f\",qn=jn+Yn+Un+$n,Gn=\"['’]\",Vn=\"[\"+In+\"]\",Hn=\"[\"+qn+\"]\",Zn=\"[\"+Bn+Nn+\"]\",Xn=\"\\\\d+\",Kn=\"[\"+Pn+\"]\",Qn=\"[\"+Rn+\"]\",Jn=\"[^\"+In+qn+Xn+Pn+Rn+Wn+\"]\",te=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",ne=\"(?:\"+Zn+\"|\"+te+\")\",ee=\"[^\"+In+\"]\",re=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",ie=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",ae=\"[\"+Wn+\"]\",ue=\"\\\\u200d\",oe=\"(?:\"+Qn+\"|\"+Jn+\")\",se=\"(?:\"+ae+\"|\"+Jn+\")\",ce=\"(?:\"+Gn+\"(?:d|ll|m|re|s|t|ve))?\",le=\"(?:\"+Gn+\"(?:D|LL|M|RE|S|T|VE))?\",he=ne+\"?\",fe=\"[\"+zn+\"]?\",de=\"(?:\"+ue+\"(?:\"+[ee,re,ie].join(\"|\")+\")\"+fe+he+\")*\",pe=fe+he+de,ge=\"(?:\"+[Kn,re,ie].join(\"|\")+\")\"+pe,ye=\"(?:\"+[ee+Zn+\"?\",Zn,re,ie,Vn].join(\"|\")+\")\",me=RegExp(Gn,\"g\"),ve=RegExp(Zn,\"g\"),_e=RegExp(te+\"(?=\"+te+\")|\"+ye+pe,\"g\"),be=RegExp([ae+\"?\"+Qn+\"+\"+ce+\"(?=\"+[Hn,ae,\"$\"].join(\"|\")+\")\",se+\"+\"+le+\"(?=\"+[Hn,ae+oe,\"$\"].join(\"|\")+\")\",ae+\"?\"+oe+\"+\"+ce,ae+\"+\"+le,Xn,ge].join(\"|\"),\"g\"),xe=RegExp(\"[\"+ue+In+Bn+Nn+zn+\"]\"),we=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ae=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"Reflect\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"isFinite\",\"parseInt\",\"setTimeout\"],ke=-1,Ee={};Ee[Vt]=Ee[Ht]=Ee[Zt]=Ee[Xt]=Ee[Kt]=Ee[Qt]=Ee[Jt]=Ee[tn]=Ee[nn]=!0,Ee[Dt]=Ee[Ct]=Ee[qt]=Ee[Tt]=Ee[Gt]=Ee[Ft]=Ee[Ot]=Ee[Lt]=Ee[Bt]=Ee[Nt]=Ee[Pt]=Ee[jt]=Ee[Yt]=Ee[Ut]=Ee[Wt]=!1;var Me={};Me[Dt]=Me[Ct]=Me[qt]=Me[Gt]=Me[Tt]=Me[Ft]=Me[Vt]=Me[Ht]=Me[Zt]=Me[Xt]=Me[Kt]=Me[Bt]=Me[Nt]=Me[Pt]=Me[jt]=Me[Yt]=Me[Ut]=Me[$t]=Me[Qt]=Me[Jt]=Me[tn]=Me[nn]=!0,Me[Ot]=Me[Lt]=Me[Wt]=!1;var Se={\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"Ç\":\"C\",\"ç\":\"c\",\"Ð\":\"D\",\"ð\":\"d\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"Ñ\":\"N\",\"ñ\":\"n\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"Ý\":\"Y\",\"ý\":\"y\",\"ÿ\":\"y\",\"Æ\":\"Ae\",\"æ\":\"ae\",\"Þ\":\"Th\",\"þ\":\"th\",\"ß\":\"ss\"},De={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\",\"`\":\"`\"},Ce={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\",\"`\":\"`\"},Te={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Fe=parseFloat,Oe=parseInt,Le=\"object\"==typeof e&&e,Ie=Le&&\"object\"==typeof n&&n,Be=Ie&&Ie.exports===Le,Ne=L(\"object\"==typeof t&&t),Pe=L(\"object\"==typeof self&&self),Re=L(\"object\"==typeof this&&this),je=Ne||Pe||Re||Function(\"return this\")(),Ye=Z();(Pe||{})._=Ye,\"function\"==typeof define&&\"object\"==typeof define.amd&&define.amd?define(function(){return Ye}):Ie?((Ie.exports=Ye)._=Ye,Le._=Ye):je._=Ye}).call(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],106:[function(t,n,e){!function(t,r){\"object\"==typeof e&&\"undefined\"!=typeof n?n.exports=r():\"function\"==typeof define&&define.amd?define(r):t.moment=r()}(this,function(){\"use strict\";function e(){return sr.apply(null,arguments)}function r(t){sr=t}function i(t){return t instanceof Array||\"[object Array]\"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||\"[object Date]\"===Object.prototype.toString.call(t)}function u(t,n){var e,r=[];for(e=0;e<t.length;++e)r.push(n(t[e],e));return r}function o(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function s(t,n){for(var e in n)o(n,e)&&(t[e]=n[e]);return o(n,\"toString\")&&(t.toString=n.toString),o(n,\"valueOf\")&&(t.valueOf=n.valueOf),t}function c(t,n,e,r){return Pt(t,n,e,r,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function h(t){return null==t._pf&&(t._pf=l()),t._pf}function f(t){if(null==t._isValid){var n=h(t),e=cr.call(n.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&e),t._strict&&(t._isValid=t._isValid&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour)}return t._isValid}function d(t){var n=c(0/0);return null!=t?s(h(n),t):h(n).userInvalidated=!0,n}function p(t){return void 0===t}function g(t,n){var e,r,i;if(p(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),p(n._i)||(t._i=n._i),p(n._f)||(t._f=n._f),p(n._l)||(t._l=n._l),p(n._strict)||(t._strict=n._strict),p(n._tzm)||(t._tzm=n._tzm),p(n._isUTC)||(t._isUTC=n._isUTC),p(n._offset)||(t._offset=n._offset),p(n._pf)||(t._pf=h(n)),p(n._locale)||(t._locale=n._locale),lr.length>0)for(e in lr)r=lr[e],i=n[r],p(i)||(t[r]=i);return t}function y(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():0/0),hr===!1&&(hr=!0,e.updateOffset(this),hr=!1)}function m(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function v(t){return 0>t?Math.ceil(t):Math.floor(t)}function _(t){var n=+t,e=0;return 0!==n&&isFinite(n)&&(e=v(n)),e}function b(t,n,e){var r,i=Math.min(t.length,n.length),a=Math.abs(t.length-n.length),u=0;for(r=0;i>r;r++)(e&&t[r]!==n[r]||!e&&_(t[r])!==_(n[r]))&&u++;return u+a}function x(t){e.suppressDeprecationWarnings===!1&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+t)}function w(t,n){var r=!0;return s(function(){return null!=e.deprecationHandler&&e.deprecationHandler(null,t),r&&(x(t+\"\\nArguments: \"+Array.prototype.slice.call(arguments).join(\", \")+\"\\n\"+(new Error).stack),r=!1),n.apply(this,arguments)},n)}function A(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),fr[t]||(x(n),fr[t]=!0)}function k(t){return t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}function E(t){return\"[object Object]\"===Object.prototype.toString.call(t)}function M(t){var n,e;for(e in t)n=t[e],k(n)?this[e]=n:this[\"_\"+e]=n;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+\"|\"+/\\d{1,2}/.source)}function S(t,n){var e,r=s({},t);for(e in n)o(n,e)&&(E(t[e])&&E(n[e])?(r[e]={},s(r[e],t[e]),s(r[e],n[e])):null!=n[e]?r[e]=n[e]:delete r[e]);return r}function D(t){null!=t&&this.set(t)}function C(t){return t?t.toLowerCase().replace(\"_\",\"-\"):t}function T(t){for(var n,e,r,i,a=0;a<t.length;){for(i=C(t[a]).split(\"-\"),n=i.length,e=C(t[a+1]),e=e?e.split(\"-\"):null;n>0;){if(r=F(i.slice(0,n).join(\"-\")))return r;if(e&&e.length>=n&&b(i,e,!0)>=n-1)break;n--}a++}return null}function F(e){var r=null;if(!yr[e]&&\"undefined\"!=typeof n&&n&&n.exports)try{r=pr._abbr,t(\"./locale/\"+e),O(r)}catch(i){}return yr[e]}function O(t,n){var e;return t&&(e=p(n)?B(t):L(t,n),e&&(pr=e)),pr._abbr}function L(t,n){return null!==n?(n.abbr=t,null!=yr[t]?(A(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale\"),n=S(yr[t]._config,n)):null!=n.parentLocale&&(null!=yr[n.parentLocale]?n=S(yr[n.parentLocale]._config,n):A(\"parentLocaleUndefined\",\"specified parentLocale is not defined yet\")),yr[t]=new D(n),O(t),yr[t]):(delete yr[t],null)}function I(t,n){if(null!=n){var e;null!=yr[t]&&(n=S(yr[t]._config,n)),e=new D(n),e.parentLocale=yr[t],yr[t]=e,O(t)}else null!=yr[t]&&(null!=yr[t].parentLocale?yr[t]=yr[t].parentLocale:null!=yr[t]&&delete yr[t]);return yr[t]}function B(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return pr;if(!i(t)){if(n=F(t))return n;t=[t]}return T(t)}function N(){return dr(yr)}function P(t,n){var e=t.toLowerCase();mr[e]=mr[e+\"s\"]=mr[n]=t}function R(t){return\"string\"==typeof t?mr[t]||mr[t.toLowerCase()]:void 0}function j(t){var n,e,r={};for(e in t)o(t,e)&&(n=R(e),n&&(r[n]=t[e]));return r}function Y(t,n){return function(r){return null!=r?($(this,t,r),e.updateOffset(this,n),this):U(this,t)}}function U(t,n){return t.isValid()?t._d[\"get\"+(t._isUTC?\"UTC\":\"\")+n]():0/0}function $(t,n,e){t.isValid()&&t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+n](e)}function W(t,n){var e;if(\"object\"==typeof t)for(e in t)this.set(e,t[e]);else if(t=R(t),k(this[t]))return this[t](n);return this}function z(t,n,e){var r=\"\"+Math.abs(t),i=n-r.length,a=t>=0;return(a?e?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function q(t,n,e,r){var i=r;\"string\"==typeof r&&(i=function(){return this[r]()}),t&&(xr[t]=i),n&&(xr[n[0]]=function(){return z(i.apply(this,arguments),n[1],n[2])}),e&&(xr[e]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function G(t){return t.match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\")}function V(t){var n,e,r=t.match(vr);for(n=0,e=r.length;e>n;n++)r[n]=xr[r[n]]?xr[r[n]]:G(r[n]);return function(n){var i,a=\"\";for(i=0;e>i;i++)a+=r[i]instanceof Function?r[i].call(n,t):r[i];return a}}function H(t,n){return t.isValid()?(n=Z(n,t.localeData()),br[n]=br[n]||V(n),br[n](t)):t.localeData().invalidDate()}function Z(t,n){function e(t){return n.longDateFormat(t)||t}var r=5;for(_r.lastIndex=0;r>=0&&_r.test(t);)t=t.replace(_r,e),_r.lastIndex=0,r-=1;return t}function X(t,n,e){jr[t]=k(n)?n:function(t){return t&&e?e:n}}function K(t,n){return o(jr,t)?jr[t](n._strict,n._locale):new RegExp(Q(t))}function Q(t){return J(t.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(t,n,e,r,i){return n||e||r||i}))}function J(t){return t.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function tt(t,n){var e,r=n;for(\"string\"==typeof t&&(t=[t]),\"number\"==typeof n&&(r=function(t,e){e[n]=_(t)}),e=0;e<t.length;e++)Yr[t[e]]=r}function nt(t,n){tt(t,function(t,e,r,i){r._w=r._w||{},n(t,r._w,r,i)})}function et(t,n,e){null!=n&&o(Yr,t)&&Yr[t](n,e._a,e,t)}function rt(t,n){return new Date(Date.UTC(t,n+1,0)).getUTCDate()}function it(t,n){return i(this._months)?this._months[t.month()]:this._months[Xr.test(n)?\"format\":\"standalone\"][t.month()]}function at(t,n){return i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Xr.test(n)?\"format\":\"standalone\"][t.month()]}function ut(t,n,e){var r,i,a,u=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;12>r;++r)a=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,\"\").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,\"\").toLocaleLowerCase();return e?\"MMM\"===n?(i=gr.call(this._shortMonthsParse,u),-1!==i?i:null):(i=gr.call(this._longMonthsParse,u),-1!==i?i:null):\"MMM\"===n?(i=gr.call(this._shortMonthsParse,u),-1!==i?i:(i=gr.call(this._longMonthsParse,u),-1!==i?i:null)):(i=gr.call(this._longMonthsParse,u),-1!==i?i:(i=gr.call(this._shortMonthsParse,u),-1!==i?i:null))}function ot(t,n,e){var r,i,a;if(this._monthsParseExact)return ut.call(this,t,n,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=c([2e3,r]),e&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp(\"^\"+this.months(i,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[r]=new RegExp(\"^\"+this.monthsShort(i,\"\").replace(\".\",\"\")+\"$\",\"i\")),e||this._monthsParse[r]||(a=\"^\"+this.months(i,\"\")+\"|^\"+this.monthsShort(i,\"\"),this._monthsParse[r]=new RegExp(a.replace(\".\",\"\"),\"i\")),e&&\"MMMM\"===n&&this._longMonthsParse[r].test(t))return r;if(e&&\"MMM\"===n&&this._shortMonthsParse[r].test(t))return r;if(!e&&this._monthsParse[r].test(t))return r}}function st(t,n){var e;if(!t.isValid())return t;if(\"string\"==typeof n)if(/^\\d+$/.test(n))n=_(n);else if(n=t.localeData().monthsParse(n),\"number\"!=typeof n)return t;return e=Math.min(t.date(),rt(t.year(),n)),t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+\"Month\"](n,e),t}function ct(t){return null!=t?(st(this,t),e.updateOffset(this,!0),this):U(this,\"Month\")}function lt(){return rt(this.year(),this.month())}function ht(t){return this._monthsParseExact?(o(this,\"_monthsRegex\")||dt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex}function ft(t){return this._monthsParseExact?(o(this,\"_monthsRegex\")||dt.call(this),t?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex}function dt(){function t(t,n){return n.length-t.length}var n,e,r=[],i=[],a=[];for(n=0;12>n;n++)e=c([2e3,n]),r.push(this.monthsShort(e,\"\")),i.push(this.months(e,\"\")),a.push(this.months(e,\"\")),a.push(this.monthsShort(e,\"\"));for(r.sort(t),i.sort(t),a.sort(t),n=0;12>n;n++)r[n]=J(r[n]),i[n]=J(i[n]),a[n]=J(a[n]);this._monthsRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\"),this._monthsShortStrictRegex=new RegExp(\"^(\"+r.join(\"|\")+\")\",\"i\")}function pt(t){var n,e=t._a;return e&&-2===h(t).overflow&&(n=e[$r]<0||e[$r]>11?$r:e[Wr]<1||e[Wr]>rt(e[Ur],e[$r])?Wr:e[zr]<0||e[zr]>24||24===e[zr]&&(0!==e[qr]||0!==e[Gr]||0!==e[Vr])?zr:e[qr]<0||e[qr]>59?qr:e[Gr]<0||e[Gr]>59?Gr:e[Vr]<0||e[Vr]>999?Vr:-1,h(t)._overflowDayOfYear&&(Ur>n||n>Wr)&&(n=Wr),h(t)._overflowWeeks&&-1===n&&(n=Hr),h(t)._overflowWeekday&&-1===n&&(n=Zr),h(t).overflow=n),t}function gt(t){var n,e,r,i,a,u,o=t._i,s=ni.exec(o)||ei.exec(o);if(s){for(h(t).iso=!0,n=0,e=ii.length;e>n;n++)if(ii[n][1].exec(s[1])){i=ii[n][0],r=ii[n][2]!==!1;break}if(null==i)return void(t._isValid=!1);if(s[3]){for(n=0,e=ai.length;e>n;n++)if(ai[n][1].exec(s[3])){a=(s[2]||\" \")+ai[n][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(s[4]){if(!ri.exec(s[4]))return void(t._isValid=!1);u=\"Z\"}t._f=i+(a||\"\")+(u||\"\"),Tt(t)}else t._isValid=!1}function yt(t){var n=ui.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(gt(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function mt(t,n,e,r,i,a,u){var o=new Date(t,n,e,r,i,a,u);return 100>t&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function vt(t){var n=new Date(Date.UTC.apply(null,arguments));return 100>t&&t>=0&&isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t),n}function _t(t){return bt(t)?366:365}function bt(t){return t%4===0&&t%100!==0||t%400===0}function xt(){return bt(this.year())}function wt(t,n,e){var r=7+n-e,i=(7+vt(t,0,r).getUTCDay()-n)%7;return-i+r-1}function At(t,n,e,r,i){var a,u,o=(7+e-r)%7,s=wt(t,r,i),c=1+7*(n-1)+o+s;return 0>=c?(a=t-1,u=_t(a)+c):c>_t(t)?(a=t+1,u=c-_t(t)):(a=t,u=c),{year:a,dayOfYear:u}}function kt(t,n,e){var r,i,a=wt(t.year(),n,e),u=Math.floor((t.dayOfYear()-a-1)/7)+1;return 1>u?(i=t.year()-1,r=u+Et(i,n,e)):u>Et(t.year(),n,e)?(r=u-Et(t.year(),n,e),i=t.year()+1):(i=t.year(),r=u),{week:r,year:i}}function Et(t,n,e){var r=wt(t,n,e),i=wt(t+1,n,e);return(_t(t)-r+i)/7}function Mt(t,n,e){return null!=t?t:null!=n?n:e}function St(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Dt(t){var n,e,r,i,a=[];if(!t._d){for(r=St(t),t._w&&null==t._a[Wr]&&null==t._a[$r]&&Ct(t),t._dayOfYear&&(i=Mt(t._a[Ur],r[Ur]),t._dayOfYear>_t(i)&&(h(t)._overflowDayOfYear=!0),e=vt(i,0,t._dayOfYear),t._a[$r]=e.getUTCMonth(),t._a[Wr]=e.getUTCDate()),n=0;3>n&&null==t._a[n];++n)t._a[n]=a[n]=r[n];for(;7>n;n++)t._a[n]=a[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[zr]&&0===t._a[qr]&&0===t._a[Gr]&&0===t._a[Vr]&&(t._nextDay=!0,t._a[zr]=0),t._d=(t._useUTC?vt:mt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[zr]=24)}}function Ct(t){var n,e,r,i,a,u,o,s;n=t._w,null!=n.GG||null!=n.W||null!=n.E?(a=1,u=4,e=Mt(n.GG,t._a[Ur],kt(Rt(),1,4).year),r=Mt(n.W,1),i=Mt(n.E,1),(1>i||i>7)&&(s=!0)):(a=t._locale._week.dow,u=t._locale._week.doy,e=Mt(n.gg,t._a[Ur],kt(Rt(),a,u).year),r=Mt(n.w,1),null!=n.d?(i=n.d,(0>i||i>6)&&(s=!0)):null!=n.e?(i=n.e+a,(n.e<0||n.e>6)&&(s=!0)):i=a),1>r||r>Et(e,a,u)?h(t)._overflowWeeks=!0:null!=s?h(t)._overflowWeekday=!0:(o=At(e,r,i,a,u),t._a[Ur]=o.year,t._dayOfYear=o.dayOfYear)}function Tt(t){if(t._f===e.ISO_8601)return void gt(t);t._a=[],h(t).empty=!0;var n,r,i,a,u,o=\"\"+t._i,s=o.length,c=0;for(i=Z(t._f,t._locale).match(vr)||[],n=0;n<i.length;n++)a=i[n],r=(o.match(K(a,t))||[])[0],r&&(u=o.substr(0,o.indexOf(r)),u.length>0&&h(t).unusedInput.push(u),o=o.slice(o.indexOf(r)+r.length),c+=r.length),xr[a]?(r?h(t).empty=!1:h(t).unusedTokens.push(a),et(a,r,t)):t._strict&&!r&&h(t).unusedTokens.push(a);h(t).charsLeftOver=s-c,o.length>0&&h(t).unusedInput.push(o),h(t).bigHour===!0&&t._a[zr]<=12&&t._a[zr]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[zr]=Ft(t._locale,t._a[zr],t._meridiem),Dt(t),pt(t)}function Ft(t,n,e){var r;return null==e?n:null!=t.meridiemHour?t.meridiemHour(n,e):null!=t.isPM?(r=t.isPM(e),r&&12>n&&(n+=12),r||12!==n||(n=0),n):n}function Ot(t){var n,e,r,i,a;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(0/0));for(i=0;i<t._f.length;i++)a=0,n=g({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[i],Tt(n),f(n)&&(a+=h(n).charsLeftOver,a+=10*h(n).unusedTokens.length,h(n).score=a,(null==r||r>a)&&(r=a,e=n));s(t,e||n)}function Lt(t){if(!t._d){var n=j(t._i);t._a=u([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),Dt(t)}}function It(t){var n=new y(pt(Bt(t)));return n._nextDay&&(n.add(1,\"d\"),n._nextDay=void 0),n}function Bt(t){var n=t._i,e=t._f;return t._locale=t._locale||B(t._l),null===n||void 0===e&&\"\"===n?d({nullInput:!0}):(\"string\"==typeof n&&(t._i=n=t._locale.preparse(n)),m(n)?new y(pt(n)):(i(e)?Ot(t):e?Tt(t):a(n)?t._d=n:Nt(t),f(t)||(t._d=null),t))}function Nt(t){var n=t._i;void 0===n?t._d=new Date(e.now()):a(n)?t._d=new Date(n.valueOf()):\"string\"==typeof n?yt(t):i(n)?(t._a=u(n.slice(0),function(t){return parseInt(t,10)}),Dt(t)):\"object\"==typeof n?Lt(t):\"number\"==typeof n?t._d=new Date(n):e.createFromInputFallback(t)}function Pt(t,n,e,r,i){var a={};return\"boolean\"==typeof e&&(r=e,e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=e,a._i=t,a._f=n,a._strict=r,It(a)}function Rt(t,n,e,r){return Pt(t,n,e,r,!1)}function jt(t,n){var e,r;if(1===n.length&&i(n[0])&&(n=n[0]),!n.length)return Rt();for(e=n[0],r=1;r<n.length;++r)(!n[r].isValid()||n[r][t](e))&&(e=n[r]);return e}function Yt(){var t=[].slice.call(arguments,0);return jt(\"isBefore\",t)}function Ut(){var t=[].slice.call(arguments,0);return jt(\"isAfter\",t)}function $t(t){var n=j(t),e=n.year||0,r=n.quarter||0,i=n.month||0,a=n.week||0,u=n.day||0,o=n.hour||0,s=n.minute||0,c=n.second||0,l=n.millisecond||0;this._milliseconds=+l+1e3*c+6e4*s+1e3*o*60*60,this._days=+u+7*a,this._months=+i+3*r+12*e,this._data={},this._locale=B(),this._bubble()}function Wt(t){return t instanceof $t}function zt(t,n){\nq(t,0,0,function(){var t=this.utcOffset(),e=\"+\";return 0>t&&(t=-t,e=\"-\"),e+z(~~(t/60),2)+n+z(~~t%60,2)})}function qt(t,n){var e=(n||\"\").match(t)||[],r=e[e.length-1]||[],i=(r+\"\").match(hi)||[\"-\",0,0],a=+(60*i[1])+_(i[2]);return\"+\"===i[0]?a:-a}function Gt(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(m(t)||a(t)?t.valueOf():Rt(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),e.updateOffset(r,!1),r):Rt(t).local()}function Vt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ht(t,n){var r,i=this._offset||0;return this.isValid()?null!=t?(\"string\"==typeof t?t=qt(Nr,t):Math.abs(t)<16&&(t=60*t),!this._isUTC&&n&&(r=Vt(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,\"m\"),i!==t&&(!n||this._changeInProgress?fn(this,un(t-i,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Vt(this):null!=t?this:0/0}function Zt(t,n){return null!=t?(\"string\"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()}function Xt(t){return this.utcOffset(0,t)}function Kt(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Vt(this),\"m\")),this}function Qt(){return this._tzm?this.utcOffset(this._tzm):\"string\"==typeof this._i&&this.utcOffset(qt(Br,this._i)),this}function Jt(t){return this.isValid()?(t=t?Rt(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function tn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function nn(){if(!p(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=Bt(t),t._a){var n=t._isUTC?c(t._a):Rt(t._a);this._isDSTShifted=this.isValid()&&b(t._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function en(){return this.isValid()?!this._isUTC:!1}function rn(){return this.isValid()?this._isUTC:!1}function an(){return this.isValid()?this._isUTC&&0===this._offset:!1}function un(t,n){var e,r,i,a=t,u=null;return Wt(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:\"number\"==typeof t?(a={},n?a[n]=t:a.milliseconds=t):(u=fi.exec(t))?(e=\"-\"===u[1]?-1:1,a={y:0,d:_(u[Wr])*e,h:_(u[zr])*e,m:_(u[qr])*e,s:_(u[Gr])*e,ms:_(u[Vr])*e}):(u=di.exec(t))?(e=\"-\"===u[1]?-1:1,a={y:on(u[2],e),M:on(u[3],e),w:on(u[4],e),d:on(u[5],e),h:on(u[6],e),m:on(u[7],e),s:on(u[8],e)}):null==a?a={}:\"object\"==typeof a&&(\"from\"in a||\"to\"in a)&&(i=cn(Rt(a.from),Rt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new $t(a),Wt(t)&&o(t,\"_locale\")&&(r._locale=t._locale),r}function on(t,n){var e=t&&parseFloat(t.replace(\",\",\".\"));return(isNaN(e)?0:e)*n}function sn(t,n){var e={milliseconds:0,months:0};return e.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(e.months,\"M\").isAfter(n)&&--e.months,e.milliseconds=+n-+t.clone().add(e.months,\"M\"),e}function cn(t,n){var e;return t.isValid()&&n.isValid()?(n=Gt(n,t),t.isBefore(n)?e=sn(t,n):(e=sn(n,t),e.milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function ln(t){return 0>t?-1*Math.round(-1*t):Math.round(t)}function hn(t,n){return function(e,r){var i,a;return null===r||isNaN(+r)||(A(n,\"moment().\"+n+\"(period, number) is deprecated. Please use moment().\"+n+\"(number, period).\"),a=e,e=r,r=a),e=\"string\"==typeof e?+e:e,i=un(e,r),fn(this,i,t),this}}function fn(t,n,r,i){var a=n._milliseconds,u=ln(n._days),o=ln(n._months);t.isValid()&&(i=null==i?!0:i,a&&t._d.setTime(t._d.valueOf()+a*r),u&&$(t,\"Date\",U(t,\"Date\")+u*r),o&&st(t,U(t,\"Month\")+o*r),i&&e.updateOffset(t,u||o))}function dn(t,n){var e=t||Rt(),r=Gt(e,this).startOf(\"day\"),i=this.diff(r,\"days\",!0),a=-6>i?\"sameElse\":-1>i?\"lastWeek\":0>i?\"lastDay\":1>i?\"sameDay\":2>i?\"nextDay\":7>i?\"nextWeek\":\"sameElse\",u=n&&(k(n[a])?n[a]():n[a]);return this.format(u||this.localeData().calendar(a,this,Rt(e)))}function pn(){return new y(this)}function gn(t,n){var e=m(t)?t:Rt(t);return this.isValid()&&e.isValid()?(n=R(p(n)?\"millisecond\":n),\"millisecond\"===n?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(n).valueOf()):!1}function yn(t,n){var e=m(t)?t:Rt(t);return this.isValid()&&e.isValid()?(n=R(p(n)?\"millisecond\":n),\"millisecond\"===n?this.valueOf()<e.valueOf():this.clone().endOf(n).valueOf()<e.valueOf()):!1}function mn(t,n,e,r){return r=r||\"()\",(\"(\"===r[0]?this.isAfter(t,e):!this.isBefore(t,e))&&(\")\"===r[1]?this.isBefore(n,e):!this.isAfter(n,e))}function vn(t,n){var e,r=m(t)?t:Rt(t);return this.isValid()&&r.isValid()?(n=R(n||\"millisecond\"),\"millisecond\"===n?this.valueOf()===r.valueOf():(e=r.valueOf(),this.clone().startOf(n).valueOf()<=e&&e<=this.clone().endOf(n).valueOf())):!1}function _n(t,n){return this.isSame(t,n)||this.isAfter(t,n)}function bn(t,n){return this.isSame(t,n)||this.isBefore(t,n)}function xn(t,n,e){var r,i,a,u;return this.isValid()?(r=Gt(t,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),n=R(n),\"year\"===n||\"month\"===n||\"quarter\"===n?(u=wn(this,r),\"quarter\"===n?u/=3:\"year\"===n&&(u/=12)):(a=this-r,u=\"second\"===n?a/1e3:\"minute\"===n?a/6e4:\"hour\"===n?a/36e5:\"day\"===n?(a-i)/864e5:\"week\"===n?(a-i)/6048e5:a),e?u:v(u)):0/0):0/0}function wn(t,n){var e,r,i=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(i,\"months\");return 0>n-a?(e=t.clone().add(i-1,\"months\"),r=(n-a)/(a-e)):(e=t.clone().add(i+1,\"months\"),r=(n-a)/(e-a)),-(i+r)||0}function An(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")}function kn(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?k(Date.prototype.toISOString)?this.toDate().toISOString():H(t,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\"):H(t,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}function En(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=H(this,t);return this.localeData().postformat(n)}function Mn(t,n){return this.isValid()&&(m(t)&&t.isValid()||Rt(t).isValid())?un({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Sn(t){return this.from(Rt(),t)}function Dn(t,n){return this.isValid()&&(m(t)&&t.isValid()||Rt(t).isValid())?un({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Cn(t){return this.to(Rt(),t)}function Tn(t){var n;return void 0===t?this._locale._abbr:(n=B(t),null!=n&&(this._locale=n),this)}function Fn(){return this._locale}function On(t){switch(t=R(t)){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}return\"week\"===t&&this.weekday(0),\"isoWeek\"===t&&this.isoWeekday(1),\"quarter\"===t&&this.month(3*Math.floor(this.month()/3)),this}function Ln(t){return t=R(t),void 0===t||\"millisecond\"===t?this:(\"date\"===t&&(t=\"day\"),this.startOf(t).add(1,\"isoWeek\"===t?\"week\":t).subtract(1,\"ms\"))}function In(){return this._d.valueOf()-6e4*(this._offset||0)}function Bn(){return Math.floor(this.valueOf()/1e3)}function Nn(){return this._offset?new Date(this.valueOf()):this._d}function Pn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Rn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function jn(){return this.isValid()?this.toISOString():null}function Yn(){return f(this)}function Un(){return s({},h(this))}function $n(){return h(this).overflow}function Wn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function zn(t,n){q(0,[t,t.length],0,n)}function qn(t){return Zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gn(t){return Zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Vn(){return Et(this.year(),1,4)}function Hn(){var t=this.localeData()._week;return Et(this.year(),t.dow,t.doy)}function Zn(t,n,e,r,i){var a;return null==t?kt(this,r,i).year:(a=Et(t,r,i),n>a&&(n=a),Xn.call(this,t,n,e,r,i))}function Xn(t,n,e,r,i){var a=At(t,n,e,r,i),u=vt(a.year,0,a.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}function Kn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Qn(t){return kt(t,this._week.dow,this._week.doy).week}function Jn(){return this._week.dow}function te(){return this._week.doy}function ne(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),\"d\")}function ee(t){var n=kt(this,1,4).week;return null==t?n:this.add(7*(t-n),\"d\")}function re(t,n){return\"string\"!=typeof t?t:isNaN(t)?(t=n.weekdaysParse(t),\"number\"==typeof t?t:null):parseInt(t,10)}function ie(t,n){return i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?\"format\":\"standalone\"][t.day()]}function ae(t){return this._weekdaysShort[t.day()]}function ue(t){return this._weekdaysMin[t.day()]}function oe(t,n,e){var r,i,a,u=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;7>r;++r)a=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,\"\").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,\"\").toLocaleLowerCase();return e?\"dddd\"===n?(i=gr.call(this._weekdaysParse,u),-1!==i?i:null):\"ddd\"===n?(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:null):(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:null):\"dddd\"===n?(i=gr.call(this._weekdaysParse,u),-1!==i?i:(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:null))):\"ddd\"===n?(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:(i=gr.call(this._weekdaysParse,u),-1!==i?i:(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:null))):(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:(i=gr.call(this._weekdaysParse,u),-1!==i?i:(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:null)))}function se(t,n,e){var r,i,a;if(this._weekdaysParseExact)return oe.call(this,t,n,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;7>r;r++){if(i=c([2e3,1]).day(r),e&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp(\"^\"+this.weekdays(i,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._shortWeekdaysParse[r]=new RegExp(\"^\"+this.weekdaysShort(i,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._minWeekdaysParse[r]=new RegExp(\"^\"+this.weekdaysMin(i,\"\").replace(\".\",\".?\")+\"$\",\"i\")),this._weekdaysParse[r]||(a=\"^\"+this.weekdays(i,\"\")+\"|^\"+this.weekdaysShort(i,\"\")+\"|^\"+this.weekdaysMin(i,\"\"),this._weekdaysParse[r]=new RegExp(a.replace(\".\",\"\"),\"i\")),e&&\"dddd\"===n&&this._fullWeekdaysParse[r].test(t))return r;if(e&&\"ddd\"===n&&this._shortWeekdaysParse[r].test(t))return r;if(e&&\"dd\"===n&&this._minWeekdaysParse[r].test(t))return r;if(!e&&this._weekdaysParse[r].test(t))return r}}function ce(t){if(!this.isValid())return null!=t?this:0/0;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=re(t,this.localeData()),this.add(t-n,\"d\")):n}function le(t){if(!this.isValid())return null!=t?this:0/0;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,\"d\")}function he(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:0/0}function fe(t){return this._weekdaysParseExact?(o(this,\"_weekdaysRegex\")||ge.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex}function de(t){return this._weekdaysParseExact?(o(this,\"_weekdaysRegex\")||ge.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function pe(t){return this._weekdaysParseExact?(o(this,\"_weekdaysRegex\")||ge.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function ge(){function t(t,n){return n.length-t.length}var n,e,r,i,a,u=[],o=[],s=[],l=[];for(n=0;7>n;n++)e=c([2e3,1]).day(n),r=this.weekdaysMin(e,\"\"),i=this.weekdaysShort(e,\"\"),a=this.weekdays(e,\"\"),u.push(r),o.push(i),s.push(a),l.push(r),l.push(i),l.push(a);for(u.sort(t),o.sort(t),s.sort(t),l.sort(t),n=0;7>n;n++)o[n]=J(o[n]),s[n]=J(s[n]),l[n]=J(l[n]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\")}function ye(t){var n=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==t?n:this.add(t-n,\"d\")}function me(){return this.hours()%12||12}function ve(){return this.hours()||24}function _e(t,n){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function be(t,n){return n._meridiemParse}function xe(t){return\"p\"===(t+\"\").toLowerCase().charAt(0)}function we(t,n,e){return t>11?e?\"pm\":\"PM\":e?\"am\":\"AM\"}function Ae(t,n){n[Vr]=_(1e3*(\"0.\"+t))}function ke(){return this._isUTC?\"UTC\":\"\"}function Ee(){return this._isUTC?\"Coordinated Universal Time\":\"\"}function Me(t){return Rt(1e3*t)}function Se(){return Rt.apply(null,arguments).parseZone()}function De(t,n,e){var r=this._calendar[t];return k(r)?r.call(n,e):r}function Ce(t){var n=this._longDateFormat[t],e=this._longDateFormat[t.toUpperCase()];return n||!e?n:(this._longDateFormat[t]=e.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function Te(){return this._invalidDate}function Fe(t){return this._ordinal.replace(\"%d\",t)}function Oe(t){return t}function Le(t,n,e,r){var i=this._relativeTime[e];return k(i)?i(t,n,e,r):i.replace(/%d/i,t)}function Ie(t,n){var e=this._relativeTime[t>0?\"future\":\"past\"];return k(e)?e(n):e.replace(/%s/i,n)}function Be(t,n,e,r){var i=B(),a=c().set(r,n);return i[e](a,t)}function Ne(t,n,e){if(\"number\"==typeof t&&(n=t,t=void 0),t=t||\"\",null!=n)return Be(t,n,e,\"month\");var r,i=[];for(r=0;12>r;r++)i[r]=Be(t,r,e,\"month\");return i}function Pe(t,n,e,r){\"boolean\"==typeof t?(\"number\"==typeof n&&(e=n,n=void 0),n=n||\"\"):(n=t,e=n,t=!1,\"number\"==typeof n&&(e=n,n=void 0),n=n||\"\");var i=B(),a=t?i._week.dow:0;if(null!=e)return Be(n,(e+a)%7,r,\"day\");var u,o=[];for(u=0;7>u;u++)o[u]=Be(n,(u+a)%7,r,\"day\");return o}function Re(t,n){return Ne(t,n,\"months\")}function je(t,n){return Ne(t,n,\"monthsShort\")}function Ye(t,n,e){return Pe(t,n,e,\"weekdays\")}function Ue(t,n,e){return Pe(t,n,e,\"weekdaysShort\")}function $e(t,n,e){return Pe(t,n,e,\"weekdaysMin\")}function We(){var t=this._data;return this._milliseconds=Yi(this._milliseconds),this._days=Yi(this._days),this._months=Yi(this._months),t.milliseconds=Yi(t.milliseconds),t.seconds=Yi(t.seconds),t.minutes=Yi(t.minutes),t.hours=Yi(t.hours),t.months=Yi(t.months),t.years=Yi(t.years),this}function ze(t,n,e,r){var i=un(n,e);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function qe(t,n){return ze(this,t,n,1)}function Ge(t,n){return ze(this,t,n,-1)}function Ve(t){return 0>t?Math.floor(t):Math.ceil(t)}function He(){var t,n,e,r,i,a=this._milliseconds,u=this._days,o=this._months,s=this._data;return a>=0&&u>=0&&o>=0||0>=a&&0>=u&&0>=o||(a+=864e5*Ve(Xe(o)+u),u=0,o=0),s.milliseconds=a%1e3,t=v(a/1e3),s.seconds=t%60,n=v(t/60),s.minutes=n%60,e=v(n/60),s.hours=e%24,u+=v(e/24),i=v(Ze(u)),o+=i,u-=Ve(Xe(i)),r=v(o/12),o%=12,s.days=u,s.months=o,s.years=r,this}function Ze(t){return 4800*t/146097}function Xe(t){return 146097*t/4800}function Ke(t){var n,e,r=this._milliseconds;if(t=R(t),\"month\"===t||\"year\"===t)return n=this._days+r/864e5,e=this._months+Ze(n),\"month\"===t?e:e/12;switch(n=this._days+Math.round(Xe(this._months)),t){case\"week\":return n/7+r/6048e5;case\"day\":return n+r/864e5;case\"hour\":return 24*n+r/36e5;case\"minute\":return 1440*n+r/6e4;case\"second\":return 86400*n+r/1e3;case\"millisecond\":return Math.floor(864e5*n)+r;default:throw new Error(\"Unknown unit \"+t)}}function Qe(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12)}function Je(t){return function(){return this.as(t)}}function tr(t){return t=R(t),this[t+\"s\"]()}function nr(t){return function(){return this._data[t]}}function er(){return v(this.days()/7)}function rr(t,n,e,r,i){return i.relativeTime(n||1,!!e,t,r)}function ir(t,n,e){var r=un(t).abs(),i=ea(r.as(\"s\")),a=ea(r.as(\"m\")),u=ea(r.as(\"h\")),o=ea(r.as(\"d\")),s=ea(r.as(\"M\")),c=ea(r.as(\"y\")),l=i<ra.s&&[\"s\",i]||1>=a&&[\"m\"]||a<ra.m&&[\"mm\",a]||1>=u&&[\"h\"]||u<ra.h&&[\"hh\",u]||1>=o&&[\"d\"]||o<ra.d&&[\"dd\",o]||1>=s&&[\"M\"]||s<ra.M&&[\"MM\",s]||1>=c&&[\"y\"]||[\"yy\",c];return l[2]=n,l[3]=+t>0,l[4]=e,rr.apply(null,l)}function ar(t,n){return void 0===ra[t]?!1:void 0===n?ra[t]:(ra[t]=n,!0)}function ur(t){var n=this.localeData(),e=ir(this,!t,n);return t&&(e=n.pastFuture(+this,e)),n.postformat(e)}function or(){var t,n,e,r=ia(this._milliseconds)/1e3,i=ia(this._days),a=ia(this._months);t=v(r/60),n=v(t/60),r%=60,t%=60,e=v(a/12),a%=12;var u=e,o=a,s=i,c=n,l=t,h=r,f=this.asSeconds();return f?(0>f?\"-\":\"\")+\"P\"+(u?u+\"Y\":\"\")+(o?o+\"M\":\"\")+(s?s+\"D\":\"\")+(c||l||h?\"T\":\"\")+(c?c+\"H\":\"\")+(l?l+\"M\":\"\")+(h?h+\"S\":\"\"):\"P0D\"}var sr,cr;cr=Array.prototype.some?Array.prototype.some:function(t){for(var n=Object(this),e=n.length>>>0,r=0;e>r;r++)if(r in n&&t.call(this,n[r],r,n))return!0;return!1};var lr=e.momentProperties=[],hr=!1,fr={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var dr;dr=Object.keys?Object.keys:function(t){var n,e=[];for(n in t)o(t,n)&&e.push(n);return e};var pr,gr,yr={},mr={},vr=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,_r=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,br={},xr={},wr=/\\d/,Ar=/\\d\\d/,kr=/\\d{3}/,Er=/\\d{4}/,Mr=/[+-]?\\d{6}/,Sr=/\\d\\d?/,Dr=/\\d\\d\\d\\d?/,Cr=/\\d\\d\\d\\d\\d\\d?/,Tr=/\\d{1,3}/,Fr=/\\d{1,4}/,Or=/[+-]?\\d{1,6}/,Lr=/\\d+/,Ir=/[+-]?\\d+/,Br=/Z|[+-]\\d\\d:?\\d\\d/gi,Nr=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi,Pr=/[+-]?\\d+(\\.\\d{1,3})?/,Rr=/[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i,jr={},Yr={},Ur=0,$r=1,Wr=2,zr=3,qr=4,Gr=5,Vr=6,Hr=7,Zr=8;gr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},q(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1}),q(\"MMM\",0,0,function(t){return this.localeData().monthsShort(this,t)}),q(\"MMMM\",0,0,function(t){return this.localeData().months(this,t)}),P(\"month\",\"M\"),X(\"M\",Sr),X(\"MM\",Sr,Ar),X(\"MMM\",function(t,n){return n.monthsShortRegex(t)}),X(\"MMMM\",function(t,n){return n.monthsRegex(t)}),tt([\"M\",\"MM\"],function(t,n){n[$r]=_(t)-1}),tt([\"MMM\",\"MMMM\"],function(t,n,e,r){var i=e._locale.monthsParse(t,r,e._strict);null!=i?n[$r]=i:h(e).invalidMonth=t});var Xr=/D[oD]?(\\[[^\\[\\]]*\\]|\\s+)+MMMM?/,Kr=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),Qr=\"Jan_Feb_Mar_Apr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d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],ui=/^\\/?Date\\((\\-?\\d+)/i;e.createFromInputFallback=w(\"moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.\",function(t){t._d=new Date(t._i+(t._useUTC?\" UTC\":\"\"))}),q(\"Y\",0,0,function(){var t=this.year();return 9999>=t?\"\"+t:\"+\"+t}),q(0,[\"YY\",2],0,function(){return this.year()%100}),q(0,[\"YYYY\",4],0,\"year\"),q(0,[\"YYYYY\",5],0,\"year\"),q(0,[\"YYYYYY\",6,!0],0,\"year\"),P(\"year\",\"y\"),X(\"Y\",Ir),X(\"YY\",Sr,Ar),X(\"YYYY\",Fr,Er),X(\"YYYYY\",Or,Mr),X(\"YYYYYY\",Or,Mr),tt([\"YYYYY\",\"YYYYYY\"],Ur),tt(\"YYYY\",function(t,n){n[Ur]=2===t.length?e.parseTwoDigitYear(t):_(t)}),tt(\"YY\",function(t,n){n[Ur]=e.parseTwoDigitYear(t)}),tt(\"Y\",function(t,n){n[Ur]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return _(t)+(_(t)>68?1900:2e3)};var oi=Y(\"FullYear\",!0);e.ISO_8601=function(){};var si=w(\"moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548\",function(){var t=Rt.apply(null,arguments);return this.isValid()&&t.isValid()?this>t?this:t:d()}),ci=w(\"moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548\",function(){var t=Rt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:d()}),li=function(){return Date.now?Date.now():+new Date};zt(\"Z\",\":\"),zt(\"ZZ\",\"\"),X(\"Z\",Nr),X(\"ZZ\",Nr),tt([\"Z\",\"ZZ\"],function(t,n,e){e._useUTC=!0,e._tzm=qt(Nr,t)});var hi=/([\\+\\-]|\\d\\d)/gi;e.updateOffset=function(){};var fi=/^(\\-)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)\\.?(\\d{3})?\\d*)?$/,di=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;un.fn=$t.prototype;var pi=hn(1,\"add\"),gi=hn(-1,\"subtract\");e.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",e.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var yi=w(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(t){return void 0===t?this.localeData():this.locale(t)});q(0,[\"gg\",2],0,function(){return this.weekYear()%100}),q(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),zn(\"gggg\",\"weekYear\"),zn(\"ggggg\",\"weekYear\"),zn(\"GGGG\",\"isoWeekYear\"),zn(\"GGGGG\",\"isoWeekYear\"),P(\"weekYear\",\"gg\"),P(\"isoWeekYear\",\"GG\"),X(\"G\",Ir),X(\"g\",Ir),X(\"GG\",Sr,Ar),X(\"gg\",Sr,Ar),X(\"GGGG\",Fr,Er),X(\"gggg\",Fr,Er),X(\"GGGGG\",Or,Mr),X(\"ggggg\",Or,Mr),nt([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(t,n,e,r){n[r.substr(0,2)]=_(t)}),nt([\"gg\",\"GG\"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),q(\"Q\",0,\"Qo\",\"quarter\"),P(\"quarter\",\"Q\"),X(\"Q\",wr),tt(\"Q\",function(t,n){n[$r]=3*(_(t)-1)}),q(\"w\",[\"ww\",2],\"wo\",\"week\"),q(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),P(\"week\",\"w\"),P(\"isoWeek\",\"W\"),X(\"w\",Sr),X(\"ww\",Sr,Ar),X(\"W\",Sr),X(\"WW\",Sr,Ar),nt([\"w\",\"ww\",\"W\",\"WW\"],function(t,n,e,r){n[r.substr(0,1)]=_(t)});var mi={dow:0,doy:6};q(\"D\",[\"DD\",2],\"Do\",\"date\"),P(\"date\",\"D\"),X(\"D\",Sr),X(\"DD\",Sr,Ar),X(\"Do\",function(t,n){return t?n._ordinalParse:n._ordinalParseLenient}),tt([\"D\",\"DD\"],Wr),tt(\"Do\",function(t,n){n[Wr]=_(t.match(Sr)[0],10)});var vi=Y(\"Date\",!0);q(\"d\",0,\"do\",\"day\"),q(\"dd\",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q(\"ddd\",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q(\"dddd\",0,0,function(t){return this.localeData().weekdays(this,t)}),q(\"e\",0,0,\"weekday\"),q(\"E\",0,0,\"isoWeekday\"),P(\"day\",\"d\"),P(\"weekday\",\"e\"),P(\"isoWeekday\",\"E\"),X(\"d\",Sr),X(\"e\",Sr),X(\"E\",Sr),X(\"dd\",function(t,n){return n.weekdaysMinRegex(t)}),X(\"ddd\",function(t,n){return n.weekdaysShortRegex(t)}),X(\"dddd\",function(t,n){return n.weekdaysRegex(t)}),nt([\"dd\",\"ddd\",\"dddd\"],function(t,n,e,r){var i=e._locale.weekdaysParse(t,r,e._strict);null!=i?n.d=i:h(e).invalidWeekday=t}),nt([\"d\",\"e\",\"E\"],function(t,n,e,r){n[r]=_(t)});var _i=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),bi=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),xi=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),wi=Rr,Ai=Rr,ki=Rr;q(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),P(\"dayOfYear\",\"DDD\"),X(\"DDD\",Tr),X(\"DDDD\",kr),tt([\"DDD\",\"DDDD\"],function(t,n,e){e._dayOfYear=_(t)}),q(\"H\",[\"HH\",2],0,\"hour\"),q(\"h\",[\"hh\",2],0,me),q(\"k\",[\"kk\",2],0,ve),q(\"hmm\",0,0,function(){return\"\"+me.apply(this)+z(this.minutes(),2)}),q(\"hmmss\",0,0,function(){return\"\"+me.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),q(\"Hmm\",0,0,function(){return\"\"+this.hours()+z(this.minutes(),2)}),q(\"Hmmss\",0,0,function(){return\"\"+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),_e(\"a\",!0),_e(\"A\",!1),P(\"hour\",\"h\"),X(\"a\",be),X(\"A\",be),X(\"H\",Sr),X(\"h\",Sr),X(\"HH\",Sr,Ar),X(\"hh\",Sr,Ar),X(\"hmm\",Dr),X(\"hmmss\",Cr),X(\"Hmm\",Dr),X(\"Hmmss\",Cr),tt([\"H\",\"HH\"],zr),tt([\"a\",\"A\"],function(t,n,e){e._isPm=e._locale.isPM(t),e._meridiem=t}),tt([\"h\",\"hh\"],function(t,n,e){n[zr]=_(t),h(e).bigHour=!0}),tt(\"hmm\",function(t,n,e){var r=t.length-2;n[zr]=_(t.substr(0,r)),n[qr]=_(t.substr(r)),h(e).bigHour=!0}),tt(\"hmmss\",function(t,n,e){var r=t.length-4,i=t.length-2;n[zr]=_(t.substr(0,r)),n[qr]=_(t.substr(r,2)),n[Gr]=_(t.substr(i)),h(e).bigHour=!0}),tt(\"Hmm\",function(t,n){var e=t.length-2;n[zr]=_(t.substr(0,e)),n[qr]=_(t.substr(e))}),tt(\"Hmmss\",function(t,n){var e=t.length-4,r=t.length-2;n[zr]=_(t.substr(0,e)),n[qr]=_(t.substr(e,2)),n[Gr]=_(t.substr(r))});var Ei=/[ap]\\.?m?\\.?/i,Mi=Y(\"Hours\",!0);q(\"m\",[\"mm\",2],0,\"minute\"),P(\"minute\",\"m\"),X(\"m\",Sr),X(\"mm\",Sr,Ar),tt([\"m\",\"mm\"],qr);var Si=Y(\"Minutes\",!1);q(\"s\",[\"ss\",2],0,\"second\"),P(\"second\",\"s\"),X(\"s\",Sr),X(\"ss\",Sr,Ar),tt([\"s\",\"ss\"],Gr);var Di=Y(\"Seconds\",!1);q(\"S\",0,0,function(){return~~(this.millisecond()/100)}),q(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),q(0,[\"SSS\",3],0,\"millisecond\"),q(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),q(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),q(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),q(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),q(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),q(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),P(\"millisecond\",\"ms\"),X(\"S\",Tr,wr),X(\"SS\",Tr,Ar),X(\"SSS\",Tr,kr);var Ci;for(Ci=\"SSSS\";Ci.length<=9;Ci+=\"S\")X(Ci,Lr);for(Ci=\"S\";Ci.length<=9;Ci+=\"S\")tt(Ci,Ae);var Ti=Y(\"Milliseconds\",!1);q(\"z\",0,0,\"zoneAbbr\"),q(\"zz\",0,0,\"zoneName\");var Fi=y.prototype;Fi.add=pi,Fi.calendar=dn,Fi.clone=pn,Fi.diff=xn,Fi.endOf=Ln,Fi.format=En,Fi.from=Mn,Fi.fromNow=Sn,Fi.to=Dn,Fi.toNow=Cn,Fi.get=W,Fi.invalidAt=$n,Fi.isAfter=gn,Fi.isBefore=yn,Fi.isBetween=mn,Fi.isSame=vn,Fi.isSameOrAfter=_n,Fi.isSameOrBefore=bn,Fi.isValid=Yn,Fi.lang=yi,Fi.locale=Tn,Fi.localeData=Fn,Fi.max=ci,Fi.min=si,Fi.parsingFlags=Un,Fi.set=W,Fi.startOf=On,Fi.subtract=gi,Fi.toArray=Pn,Fi.toObject=Rn,Fi.toDate=Nn,Fi.toISOString=kn,Fi.toJSON=jn,Fi.toString=An,Fi.unix=Bn,Fi.valueOf=In,Fi.creationData=Wn,Fi.year=oi,Fi.isLeapYear=xt,Fi.weekYear=qn,Fi.isoWeekYear=Gn,Fi.quarter=Fi.quarters=Kn,Fi.month=ct,Fi.daysInMonth=lt,Fi.week=Fi.weeks=ne,Fi.isoWeek=Fi.isoWeeks=ee,Fi.weeksInYear=Hn,Fi.isoWeeksInYear=Vn,Fi.date=vi,Fi.day=Fi.days=ce,Fi.weekday=le,Fi.isoWeekday=he,Fi.dayOfYear=ye,Fi.hour=Fi.hours=Mi,Fi.minute=Fi.minutes=Si,Fi.second=Fi.seconds=Di,Fi.millisecond=Fi.milliseconds=Ti,Fi.utcOffset=Ht,Fi.utc=Xt,Fi.local=Kt,Fi.parseZone=Qt,Fi.hasAlignedHourOffset=Jt,Fi.isDST=tn,Fi.isDSTShifted=nn,Fi.isLocal=en,Fi.isUtcOffset=rn,Fi.isUtc=an,Fi.isUTC=an,Fi.zoneAbbr=ke,Fi.zoneName=Ee,Fi.dates=w(\"dates accessor is deprecated. Use date instead.\",vi),Fi.months=w(\"months accessor is deprecated. Use month instead\",ct),Fi.years=w(\"years accessor is deprecated. Use year instead\",oi),Fi.zone=w(\"moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779\",Zt);var Oi=Fi,Li={sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},Ii={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},Bi=\"Invalid date\",Ni=\"%d\",Pi=/\\d{1,2}/,Ri={future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},ji=D.prototype;ji._calendar=Li,ji.calendar=De,ji._longDateFormat=Ii,ji.longDateFormat=Ce,ji._invalidDate=Bi,ji.invalidDate=Te,ji._ordinal=Ni,ji.ordinal=Fe,ji._ordinalParse=Pi,ji.preparse=Oe,ji.postformat=Oe,ji._relativeTime=Ri,ji.relativeTime=Le,ji.pastFuture=Ie,ji.set=M,ji.months=it,ji._months=Kr,ji.monthsShort=at,ji._monthsShort=Qr,ji.monthsParse=ot,ji._monthsRegex=ti,ji.monthsRegex=ft,ji._monthsShortRegex=Jr,ji.monthsShortRegex=ht,ji.week=Qn,ji._week=mi,ji.firstDayOfYear=te,ji.firstDayOfWeek=Jn,ji.weekdays=ie,ji._weekdays=_i,ji.weekdaysMin=ue,ji._weekdaysMin=xi,ji.weekdaysShort=ae,ji._weekdaysShort=bi,ji.weekdaysParse=se,ji._weekdaysRegex=wi,ji.weekdaysRegex=fe,ji._weekdaysShortRegex=Ai,ji.weekdaysShortRegex=de,ji._weekdaysMinRegex=ki,ji.weekdaysMinRegex=pe,ji.isPM=xe,ji._meridiemParse=Ei,ji.meridiem=we,O(\"en\",{ordinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10,e=1===_(t%100/10)?\"th\":1===n?\"st\":2===n?\"nd\":3===n?\"rd\":\"th\";return t+e}}),e.lang=w(\"moment.lang is deprecated. Use moment.locale instead.\",O),e.langData=w(\"moment.langData is deprecated. Use moment.localeData instead.\",B);var Yi=Math.abs,Ui=Je(\"ms\"),$i=Je(\"s\"),Wi=Je(\"m\"),zi=Je(\"h\"),qi=Je(\"d\"),Gi=Je(\"w\"),Vi=Je(\"M\"),Hi=Je(\"y\"),Zi=nr(\"milliseconds\"),Xi=nr(\"seconds\"),Ki=nr(\"minutes\"),Qi=nr(\"hours\"),Ji=nr(\"days\"),ta=nr(\"months\"),na=nr(\"years\"),ea=Math.round,ra={s:45,m:45,h:22,d:26,M:11},ia=Math.abs,aa=$t.prototype;aa.abs=We,aa.add=qe,aa.subtract=Ge,aa.as=Ke,aa.asMilliseconds=Ui,aa.asSeconds=$i,aa.asMinutes=Wi,aa.asHours=zi,aa.asDays=qi,aa.asWeeks=Gi,aa.asMonths=Vi,aa.asYears=Hi,aa.valueOf=Qe,aa._bubble=He,aa.get=tr,aa.milliseconds=Zi,aa.seconds=Xi,aa.minutes=Ki,aa.hours=Qi,aa.days=Ji,aa.weeks=er,aa.months=ta,aa.years=na,aa.humanize=ur,aa.toISOString=or,aa.toString=or,aa.toJSON=or,aa.locale=Tn,aa.localeData=Fn,aa.toIsoString=w(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",or),aa.lang=yi,q(\"X\",0,0,\"unix\"),q(\"x\",0,0,\"valueOf\"),X(\"x\",Ir),X(\"X\",Pr),tt(\"X\",function(t,n,e){e._d=new Date(1e3*parseFloat(t,10))}),tt(\"x\",function(t,n,e){e._d=new Date(_(t))}),e.version=\"2.13.0\",r(Rt),e.fn=Oi,e.min=Yt,e.max=Ut,e.now=li,e.utc=c,e.unix=Me,e.months=Re,e.isDate=a,e.locale=O,e.invalid=d,e.duration=un,e.isMoment=m,e.weekdays=Ye,e.parseZone=Se,e.localeData=B,e.isDuration=Wt,e.monthsShort=je,e.weekdaysMin=$e,e.defineLocale=L,e.updateLocale=I,e.locales=N,e.weekdaysShort=Ue,e.normalizeUnits=R,e.relativeTimeThreshold=ar,e.prototype=Oi;var ua=e;return ua})},{}],107:[function(t,n){n.exports={name:\"mermaid\",version:\"6.0.0\",description:\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.\",main:\"src/mermaid.js\",keywords:[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\"],bin:{mermaid:\"./bin/mermaid.js\"},scripts:{live:\"live-server ./test/examples\",lint:\"node node_modules/eslint/bin/eslint.js src\",jison:\"gulp jison_legacy\",karma:\"node node_modules/karma/bin/karma start karma.conf.js --single-run\",watch:\"source ./scripts/watch.sh\",doc:\"rm -r build;rm -r dist/www;gulp vartree;cp dist/www/all.html ../mermaid-pages/index.html;cp dist/mermaid.js ../mermaid-pages/javascripts/lib;cp dist/mermaid.forest.css ../mermaid-pages/stylesheets\",tape:\"node node_modules/tape/bin/tape test/cli_test-*.js\",jasmine:\"npm run jison &&node node_modules/jasmine-es6/bin/jasmine.js\",pretest:\"npm run jison\",test:\"npm run dist && npm run karma && npm run tape\",\"dist-slim-mermaid\":\"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.slim.js -x d3 && cat dist/mermaid.slim.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaid.slim.min.js\",\"dist-slim-mermaidAPI\":\"node node_modules/browserify/bin/cmd.js src/mermaidAPI.js -t babelify -s mermaidAPI -o dist/mermaidAPI.slim.js -x d3 && cat dist/mermaidAPI.slim.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaidAPI.slim.min.js\",\n\"dist-mermaid\":\"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.js && cat dist/mermaid.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaid.min.js\",\"dist-mermaid-nomin\":\"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.js && node bin/mermaid -v -s testgitgraph.mm && testgitgraph.mm.svg\",\"dist-mermaidAPI\":\"node node_modules/browserify/bin/cmd.js src/mermaidAPI.js -t babelify -s mermaidAPI -o dist/mermaidAPI.js && cat dist/mermaidAPI.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaidAPI.min.js\",dist:\"npm run dist-slim-mermaid && npm run dist-slim-mermaidAPI && npm run dist-mermaid && npm run dist-mermaidAPI\"},repository:{type:\"git\",url:\"https://github.com/knsv/mermaid\"},author:\"Knut Sveidqvist\",license:\"MIT\",dependencies:{chalk:\"^0.5.1\",d3:\"3.5.6\",dagre:\"^0.7.4\",\"dagre-d3\":\"0.4.10\",he:\"^0.5.0\",lodash:\"^4.6.1\",minimist:\"^1.1.0\",mkdirp:\"^0.5.0\",moment:\"^2.9.0\",semver:\"^4.1.1\",which:\"^1.0.8\"},devDependencies:{async:\"^0.9.0\",\"babel-eslint\":\"^4.1.3\",babelify:\"^6.4.0\",browserify:\"~6.2.0\",clone:\"^0.2.0\",\"codeclimate-test-reporter\":\"0.0.4\",dateformat:\"^1.0.11\",dox:\"^0.8.0\",eslint:\"^1.6.0\",\"eslint-watch\":\"^2.1.2\",\"event-stream\":\"^3.2.0\",foundation:\"^4.2.1-1\",\"front-matter\":\"^0.2.0\",gulp:\"~3.9.0\",\"gulp-bower\":\"0.0.10\",\"gulp-browserify\":\"^0.5.0\",\"gulp-bump\":\"^0.1.11\",\"gulp-concat\":\"~2.4.1\",\"gulp-data\":\"^1.1.1\",\"gulp-dox\":\"^0.1.6\",\"gulp-ext-replace\":\"^0.2.0\",\"gulp-filelog\":\"^0.4.1\",\"gulp-front-matter\":\"^1.2.3\",\"gulp-hogan\":\"^1.1.0\",\"gulp-if\":\"^1.2.5\",\"gulp-insert\":\"^0.4.0\",\"gulp-istanbul\":\"^0.4.0\",\"gulp-jasmine\":\"~2.1.0\",\"gulp-jasmine-browser\":\"^0.2.3\",\"gulp-jison\":\"~1.2.0\",\"gulp-jshint\":\"^1.9.0\",\"gulp-less\":\"^3.0.1\",\"gulp-livereload\":\"^3.8.0\",\"gulp-marked\":\"^1.0.0\",\"gulp-mdvars\":\"^2.0.0\",\"gulp-qunit\":\"~1.2.1\",\"gulp-rename\":\"~1.2.0\",\"gulp-shell\":\"^0.2.10\",\"gulp-tag-version\":\"^1.2.1\",\"gulp-uglify\":\"~1.0.1\",\"gulp-util\":\"^3.0.7\",\"gulp-vartree\":\"^2.0.1\",\"hogan.js\":\"^3.0.2\",jasmine:\"2.3.2\",\"jasmine-es6\":\"0.0.18\",jison:\"zaach/jison\",jsdom:\"^7.0.2\",\"jshint-stylish\":\"^2.0.1\",karma:\"^0.13.15\",\"karma-babel-preprocessor\":\"^6.0.1\",\"karma-browserify\":\"^4.4.0\",\"karma-jasmine\":\"^0.3.6\",\"karma-phantomjs-launcher\":\"^0.2.1\",\"live-server\":\"^0.9.0\",\"map-stream\":\"0.0.6\",marked:\"^0.3.2\",\"mock-browser\":\"^0.91.34\",path:\"^0.4.9\",phantomjs:\"^2.1.3\",proxyquire:\"^1.7.3\",\"proxyquire-universal\":\"^1.0.8\",proxyquireify:\"^3.0.0\",\"require-dir\":\"^0.3.0\",rewire:\"^2.1.3\",rimraf:\"^2.2.8\",tape:\"^3.0.3\",testdom:\"^2.0.0\",uglifyjs:\"^2.4.10\",\"vinyl-source-stream\":\"^1.1.0\",watchify:\"^3.6.1\"}}},{}],108:[function(t,n){\"use strict\";var e;if(t)try{e=t(\"d3\")}catch(r){}e||(e=window.d3),n.exports=e,function(){var t=!1;if(t=\"tspans\",e.selection.prototype.textwrap)return!1;if(\"undefined\"==typeof t)var t=!1;e.selection.prototype.textwrap=e.selection.enter.prototype.textwrap=function(n,r){var i,r=parseInt(r)||0,a=this,u=function(t){var n=t[0][0],r=n.tagName.toString();if(\"rect\"!==r)return!1;var i={};return i.x=e.select(n).attr(\"x\")||0,i.y=e.select(n).attr(\"y\")||0,i.width=e.select(n).attr(\"width\")||0,i.height=e.select(n).attr(\"height\")||0,i.attr=t.attr,i},o=function(t){if(t.attr||(t.attr=function(t){return this[t]?this[t]:void 0}),\"object\"==typeof t&&\"undefined\"!=typeof t.x&&\"undefined\"!=typeof t.y&&\"undefined\"!=typeof t.width&&\"undefined\"!=typeof t.height)return t;if(\"function\"==typeof Array.isArray&&Array.isArray(t)||\"[object Array]\"===Object.prototype.toString.call(t)){var n=u(t);return n}return!1},s=function(t,n){var e=t;return 0!==n&&(e.x=parseInt(e.x)+n,e.y=parseInt(e.y)+n,e.width-=2*n,e.height-=2*n),e},c=o(n);if(r&&(c=s(c,r)),0!=a.length&&e&&n&&c){n=c;var l,h=function(t){var r=e.select(t[0].parentNode),a=r.select(\"text\"),u=a.style(\"line-height\"),o=a.text();a.remove();var s=r.append(\"foreignObject\");s.attr(\"requiredFeatures\",\"http://www.w3.org/TR/SVG11/feature#Extensibility\").attr(\"x\",n.x).attr(\"y\",n.y).attr(\"width\",n.width).attr(\"height\",n.height);var c=s.append(\"xhtml:div\").attr(\"class\",\"wrapped\");c.style(\"height\",n.height).style(\"width\",n.width).html(o),u&&c.style(\"line-height\",u),i=r.select(\"foreignObject\")},f=function(t){var a,u=t[0],o=u.parentNode,s=e.select(u),c=u.getBBox().height,l=u.getBBox().width,h=c,f=s.style(\"line-height\");if(a=f&&parseInt(f)?parseInt(f.replace(\"px\",\"\")):h,l>n.width){var d=s.text();if(s.text(\"\"),d){var p,g;if(-1!==d.indexOf(\" \")){var p=\" \";g=d.split(\" \")}else{p=\"\";var y=d.length,m=Math.ceil(l/n.width),v=Math.floor(y/m);v*m>=y||m++;for(var _,b,g=[],x=0;m>x;x++)b=x*v,_=d.substr(b,v),g.push(_)}for(var w=[],A=0,k={},x=0;x<g.length;x++){var E,M=g[x],S=s.text(),D=u.getComputedTextLength();E=S?S+p+M:M,s.text(E);var C=u.getComputedTextLength();if(C>n.width&&S&&\"\"!==S&&(A+=D,k={string:S,width:D,offset:A},w.push(k),s.text(\"\"),s.text(M),x==g.length-1&&(E=M,s.text(E),C=u.getComputedTextLength())),x==g.length-1){s.text(\"\");var T=E;T&&\"\"!==T&&(C-A>0&&(C-=A),k={string:T,width:C,offset:A},w.push(k))}}var F;s.text(\"\");for(var x=0;x<w.length;x++){var _=w[x].string;if(x>0){w[x-1]}x*a<n.height-1.5*a&&(F=s.append(\"tspan\").text(_),F.attr(\"dy\",function(){return x>0?a:void 0}),F.attr(\"x\",function(){var t=n.x;return r&&(t+=r),t}))}}}s.attr(\"y\",function(){var t=n.y;return a&&(t+=a),r&&(t+=r),t}),s.attr(\"x\",function(){var t=n.x;return r&&(t+=r),t}),i=e.select(o).selectAll(\"text\")};t&&(\"foreignobjects\"==t?l=h:\"tspans\"==t&&(l=f)),t||(l=\"undefined\"!=typeof SVGForeignObjectElement?h:f);for(var d=0;d<a.length;d++){var p=a[d];l(p)}return i}return a?a:!1}}()},{d3:4}],109:[function(t,n,e){\"use strict\";var r,i=t(\"../../logger\"),a=new i.Log,u=[];r={};e.addClass=function(t){\"undefined\"==typeof r[t]&&(r[t]={id:t,methods:[],members:[]})},e.clear=function(){u=[],r={}},n.exports.getClass=function(t){return r[t]},n.exports.getClasses=function(){return r},n.exports.getRelations=function(){return u},e.addRelation=function(t){a.warn(\"Adding relation: \"+JSON.stringify(t)),e.addClass(t.id1),e.addClass(t.id2),u.push(t)},e.addMembers=function(t,n){var e=r[t];\"string\"==typeof n&&(\")\"===n.substr(-1)?e.methods.push(n):e.members.push(n))},e.cleanupLabel=function(t){return\":\"===t.substring(0,1)?t.substr(2).trim():t.trim()},e.lineType={LINE:0,DOTTED_LINE:1},e.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}},{\"../../logger\":130}],110:[function(t,n){\"use strict\";var e=t(\"./parser/classDiagram\").parser,r=t(\"./classDb\");e.yy=r;var i,a=t(\"../../d3\"),u=t(\"../../logger\"),o=t(\"dagre\"),s=new u.Log;i={};var c=0,l={dividerMargin:10,padding:5,textHeight:14},h=function(t){var n,e=Object.keys(i);for(n=0;n<e.length;n++)if(i[e[n]].label===t)return e[n];return void 0},f=function(t){t.append(\"defs\").append(\"marker\").attr(\"id\",\"extensionStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 1,7 L18,13 V 1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"extensionEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 1,1 V 13 L18,7 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"compositionStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"compositionEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"aggregationStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"aggregationEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"dependencyStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 5,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"dependencyEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L14,7 L9,1 Z\")},d=0,p=function(t,n,e){var i=function(t){switch(t){case r.relationType.AGGREGATION:return\"aggregation\";case r.relationType.EXTENSION:return\"extension\";case r.relationType.COMPOSITION:return\"composition\";case r.relationType.DEPENDENCY:return\"dependency\"}},u=n.points,o=a.svg.line().x(function(t){return t.x}).y(function(t){return t.y}).interpolate(\"basis\"),s=t.append(\"path\").attr(\"d\",o(u)).attr(\"id\",\"edge\"+d).attr(\"class\",\"relation\"),c=\"\";l.arrowMarkerAbsolute&&(c=window.location.protocol+\"//\"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\\(/g,\"\\\\(\"),c=c.replace(/\\)/g,\"\\\\)\")),\"none\"!==e.relation.type1&&s.attr(\"marker-start\",\"url(\"+c+\"#\"+i(e.relation.type1)+\"Start)\"),\"none\"!==e.relation.type2&&s.attr(\"marker-end\",\"url(\"+c+\"#\"+i(e.relation.type2)+\"End)\");var h,f,p=n.points.length;if(p%2!==0){var g=n.points[Math.floor(p/2)],y=n.points[Math.ceil(p/2)];h=(g.x+y.x)/2,f=(g.y+y.y)/2}else{var m=n.points[Math.floor(p/2)];h=m.x,f=m.y}if(\"undefined\"!=typeof e.title){var v=t.append(\"g\").attr(\"class\",\"classLabel\"),_=v.append(\"text\").attr(\"class\",\"label\").attr(\"x\",h).attr(\"y\",f).attr(\"fill\",\"red\").attr(\"text-anchor\",\"middle\").text(e.title);window.label=_;var b=_.node().getBBox();v.insert(\"rect\",\":first-child\").attr(\"class\",\"box\").attr(\"x\",b.x-l.padding/2).attr(\"y\",b.y-l.padding/2).attr(\"width\",b.width+2*l.padding/2).attr(\"height\",b.height+2*l.padding/2)}d++},g=function(t,n){s.info(\"Rendering class \"+n);var e=function(t,n,e){var r=t.append(\"tspan\").attr(\"x\",l.padding).text(n);e||r.attr(\"dy\",l.textHeight)},r=\"classId\"+c,a={id:r,label:n.id,width:0,height:0},u=t.append(\"g\").attr(\"id\",r).attr(\"class\",\"classGroup\"),o=u.append(\"text\").attr(\"x\",l.padding).attr(\"y\",l.textHeight+l.padding).text(n.id),h=o.node().getBBox().height,f=u.append(\"line\").attr(\"x1\",0).attr(\"y1\",l.padding+h+l.dividerMargin/2).attr(\"y2\",l.padding+h+l.dividerMargin/2),d=u.append(\"text\").attr(\"x\",l.padding).attr(\"y\",h+l.dividerMargin+l.textHeight).attr(\"fill\",\"white\").attr(\"class\",\"classText\"),p=!0;n.members.forEach(function(t){e(d,t,p),p=!1});var g=d.node().getBBox(),y=u.append(\"line\").attr(\"x1\",0).attr(\"y1\",l.padding+h+3*l.dividerMargin/2+g.height).attr(\"y2\",l.padding+h+3*l.dividerMargin/2+g.height),m=u.append(\"text\").attr(\"x\",l.padding).attr(\"y\",h+2*l.dividerMargin+g.height+l.textHeight).attr(\"fill\",\"white\").attr(\"class\",\"classText\");p=!0,n.methods.forEach(function(t){e(m,t,p),p=!1});var v=u.node().getBBox();return u.insert(\"rect\",\":first-child\").attr(\"x\",0).attr(\"y\",0).attr(\"width\",v.width+2*l.padding).attr(\"height\",v.height+l.padding+.5*l.dividerMargin),f.attr(\"x2\",v.width+2*l.padding),y.attr(\"x2\",v.width+2*l.padding),a.width=v.width+2*l.padding,a.height=v.height+l.padding+.5*l.dividerMargin,i[r]=a,c++,a};n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){l[n]=t[n]})},n.exports.draw=function(t,n){e.yy.clear(),e.parse(t),s.info(\"Rendering diagram \"+t);var i=a.select(\"#\"+n);f(i);var u=new o.graphlib.Graph({multigraph:!0});u.setGraph({isMultiGraph:!0}),u.setDefaultEdgeLabel(function(){return{}});var c,l=r.getClasses(),d=Object.keys(l);for(c=0;c<d.length;c++){var y=l[d[c]],m=g(i,y);u.setNode(m.id,m),s.info(\"Org height: \"+m.height)}var v=r.getRelations(),c=0;v.forEach(function(t){c+=1,s.info(\"tjoho\"+h(t.id1)+h(t.id2)+JSON.stringify(t)),u.setEdge(h(t.id1),h(t.id2),{relation:t})}),o.layout(u),u.nodes().forEach(function(t){\"undefined\"!=typeof t&&(s.debug(\"Node \"+t+\": \"+JSON.stringify(u.node(t))),a.select(\"#\"+t).attr(\"transform\",\"translate(\"+(u.node(t).x-u.node(t).width/2)+\",\"+(u.node(t).y-u.node(t).height/2)+\" )\"))}),u.edges().forEach(function(t){s.debug(\"Edge \"+t.v+\" -> \"+t.w+\": \"+JSON.stringify(u.edge(t))),p(i,u.edge(t),u.edge(t).relation)}),i.attr(\"height\",\"100%\"),i.attr(\"width\",\"100%\")}},{\"../../d3\":108,\"../../logger\":130,\"./classDb\":109,\"./parser/classDiagram\":111,dagre:54}],111:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,11],r=[1,12],i=[1,13],a=[1,15],u=[1,16],o=[1,17],s=[6,8],c=[1,26],l=[1,27],h=[1,28],f=[1,29],d=[1,30],p=[1,31],g=[6,8,13,17,23,26,27,28,29,30,31],y=[6,8,13,17,23,26,27,28,29,30,31,45,46,47],m=[23,45,46,47],v=[23,30,31,45,46,47],_=[23,26,27,28,29,45,46,47],b=[6,8,13],x=[1,46],w={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,CLASS_DIAGRAM:5,NEWLINE:6,statements:7,EOF:8,statement:9,className:10,alphaNumToken:11,relationStatement:12,LABEL:13,classStatement:14,methodStatement:15,CLASS:16,STRUCT_START:17,members:18,STRUCT_STOP:19,MEMBER:20,SEPARATOR:21,relation:22,STR:23,relationType:24,lineType:25,AGGREGATION:26,EXTENSION:27,COMPOSITION:28,DEPENDENCY:29,LINE:30,DOTTED_LINE:31,commentToken:32,textToken:33,graphCodeTokens:34,textNoTagsToken:35,TAGSTART:36,TAGEND:37,\"==\":38,\"--\":39,PCT:40,DEFAULT:41,SPACE:42,MINUS:43,keywords:44,UNICODE_TEXT:45,NUM:46,ALPHA:47,$accept:0,$end:1},terminals_:{2:\"error\",5:\"CLASS_DIAGRAM\",6:\"NEWLINE\",8:\"EOF\",13:\"LABEL\",16:\"CLASS\",17:\"STRUCT_START\",19:\"STRUCT_STOP\",20:\"MEMBER\",21:\"SEPARATOR\",23:\"STR\",26:\"AGGREGATION\",27:\"EXTENSION\",28:\"COMPOSITION\",29:\"DEPENDENCY\",30:\"LINE\",31:\"DOTTED_LINE\",34:\"graphCodeTokens\",36:\"TAGSTART\",37:\"TAGEND\",38:\"==\",39:\"--\",40:\"PCT\",41:\"DEFAULT\",42:\"SPACE\",43:\"MINUS\",44:\"keywords\",45:\"UNICODE_TEXT\",46:\"NUM\",47:\"ALPHA\"},productions_:[0,[3,1],[4,4],[7,1],[7,3],[10,2],[10,1],[9,1],[9,2],[9,1],[9,1],[14,2],[14,5],[18,1],[18,2],[15,1],[15,2],[15,1],[15,1],[12,3],[12,4],[12,4],[12,5],[22,3],[22,2],[22,2],[22,1],[24,1],[24,1],[24,1],[24,1],[25,1],[25,1],[32,1],[32,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[35,1],[35,1],[35,1],[35,1],[11,1],[11,1],[11,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 5:this.$=a[u-1]+a[u];break;case 6:this.$=a[u];break;case 7:r.addRelation(a[u]);break;case 8:a[u-1].title=r.cleanupLabel(a[u]),r.addRelation(a[u-1]);break;case 12:r.addMembers(a[u-3],a[u-1]);break;case 13:this.$=[a[u]];break;case 14:a[u].push(a[u-1]),this.$=a[u];break;case 15:break;case 16:r.addMembers(a[u-1],r.cleanupLabel(a[u]));break;case 17:console.warn(\"Member\",a[u]);break;case 18:break;case 19:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:\"none\",relationTitle2:\"none\"};break;case 20:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:\"none\"};break;case 21:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:\"none\",relationTitle2:a[u-1]};break;case 22:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 23:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 24:this.$={type1:\"none\",type2:a[u],lineType:a[u-1]};break;case 25:this.$={type1:a[u-1],type2:\"none\",lineType:a[u]};break;case 26:this.$={type1:\"none\",type2:\"none\",lineType:a[u]};break;case 27:this.$=r.relationType.AGGREGATION;break;case 28:this.$=r.relationType.EXTENSION;break;case 29:this.$=r.relationType.COMPOSITION;break;case 30:this.$=r.relationType.DEPENDENCY;break;case 31:this.$=r.lineType.LINE;break;case 32:this.$=r.lineType.DOTTED_LINE}},table:[{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:10,11:14,12:7,14:8,15:9,16:e,20:r,21:i,45:a,46:u,47:o},{8:[1,18]},{6:[1,19],8:[2,3]},n(s,[2,7],{13:[1,20]}),n(s,[2,9]),n(s,[2,10]),n(s,[2,15],{22:21,24:24,25:25,13:[1,23],23:[1,22],26:c,27:l,28:h,29:f,30:d,31:p}),{10:32,11:14,45:a,46:u,47:o},n(s,[2,17]),n(s,[2,18]),n(g,[2,6],{11:14,10:33,45:a,46:u,47:o}),n(y,[2,46]),n(y,[2,47]),n(y,[2,48]),{1:[2,2]},{7:34,9:6,10:10,11:14,12:7,14:8,15:9,16:e,20:r,21:i,45:a,46:u,47:o},n(s,[2,8]),{10:35,11:14,23:[1,36],45:a,46:u,47:o},{22:37,24:24,25:25,26:c,27:l,28:h,29:f,30:d,31:p},n(s,[2,16]),{25:38,30:d,31:p},n(m,[2,26],{24:39,26:c,27:l,28:h,29:f}),n(v,[2,27]),n(v,[2,28]),n(v,[2,29]),n(v,[2,30]),n(_,[2,31]),n(_,[2,32]),n(s,[2,11],{17:[1,40]}),n(g,[2,5]),{8:[2,4]},n(b,[2,19]),{10:41,11:14,45:a,46:u,47:o},{10:42,11:14,23:[1,43],45:a,46:u,47:o},n(m,[2,25],{24:44,26:c,27:l,28:h,29:f}),n(m,[2,24]),{18:45,20:x},n(b,[2,21]),n(b,[2,20]),{10:47,11:14,45:a,46:u,47:o},n(m,[2,23]),{19:[1,48]},{18:49,19:[2,13],20:x},n(b,[2,22]),n(s,[2,12]),{19:[2,14]}],defaultActions:{2:[2,1],18:[2,2],34:[2,4],49:[2,14]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},A=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:break;case 1:return 6;case 2:break;case 3:return 5;case 4:return this.begin(\"struct\"),17;case 5:return this.popState(),19;case 6:break;case 7:return\"MEMBER\";case 8:return 16;case 9:this.begin(\"string\");break;case 10:this.popState();break;case 11:return\"STR\";case 12:return 27;case 13:return 27;case 14:return 29;case 15:return 29;case 16:return 28;case 17:return 26;case 18:return 30;case 19:return 31;case 20:return 13;case 21:return 43;case 22:return\"DOT\";case 23:return\"PLUS\";case 24:return 40;case 25:return\"EQUALS\";case 26:return\"EQUALS\";case 27:return 47;case 28:return\"PUNCTUATION\";case 29:return 46;case 30:return 45;case 31:return 42;case 32:return 8}},rules:[/^(?:%%[^\\n]*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^#\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:[A-Za-z]+)/,/^(?:[!\"#$%&'*+,-.`?\\\\_\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1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|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],conditions:{string:{rules:[10,11],inclusive:!1},struct:{rules:[5,6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,8,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],inclusive:!0}}};return t}();return w.lexer=A,t.prototype=w,w.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:3,fs:1,path:2}],112:[function(t,n,e){(function(n){\"use strict\";var r=t(\"../../logger\"),i=new r.Log,a=\"\",u=!1;e.setMessage=function(t){i.debug(\"Setting message to: \"+t),a=t},e.getMessage=function(){return a},e.setInfo=function(t){u=t},e.getInfo=function(){return u},e.parseError=function(t,e){n.mermaidAPI.parseError(t,e)}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../logger\":130}],113:[function(t,n,e){\"use strict\";var r=t(\"./exampleDb\"),i=t(\"./parser/example.js\"),a=t(\"../../d3\"),u=t(\"../../logger\"),o=new u.Log;e.draw=function(t,n,e){var u;u=i.parser,u.yy=r,o.debug(\"Renering example diagram\"),u.parse(t);var s=a.select(\"#\"+n),c=s.append(\"g\");c.append(\"text\").attr(\"x\",100).attr(\"y\",40).attr(\"class\",\"version\").attr(\"font-size\",\"32px\").style(\"text-anchor\",\"middle\").text(\"mermaid \"+e),s.attr(\"height\",100),s.attr(\"width\",400)}},{\"../../d3\":108,\"../../logger\":130,\"./exampleDb\":112,\"./parser/example.js\":114}],114:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[6,9,10,12],r={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,message:11,say:12,TXT:13,$accept:0,$end:1},terminals_:{2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\",12:\"say\",13:\"TXT\"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1],[8,1],[11,2]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:return r;case 4:break;case 6:r.setInfo(!0);break;case 7:r.setMessage(a[u]);break;case 8:this.$=a[u-1].substring(1).trim().replace(/\\\\n/gm,\"\\n\")}},table:[{3:1,4:[1,2]},{1:[3]},n(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],11:9,12:[1,10]},{1:[2,1]},n(e,[2,3]),n(e,[2,4]),n(e,[2,5]),n(e,[2,6]),n(e,[2,7]),{13:[1,11]},n(e,[2,8])],defaultActions:{4:[2,1]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={\nyy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},i=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 9;case 1:return 10;case 2:return 4;case 3:return 12;case 4:return 13;case 5:return 6;case 6:return\"INVALID\"}},rules:[/^(?:[\\n]+)/i,/^(?:showInfo\\b)/i,/^(?:info\\b)/i,/^(?:say\\b)/i,/^(?::[^#\\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return t}();return r.lexer=i,t.prototype=r,r.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:3,fs:1,path:2}],115:[function(t,n){\"use strict\";var e,r=t(\"../../logger\"),i=new r.Log;if(t)try{e=t(\"dagre-d3\")}catch(a){i.debug(\"Could not load dagre-d3\")}e||(e=window.dagreD3),n.exports=e},{\"../../logger\":130,\"dagre-d3\":5}],116:[function(t,n,e){\"use strict\";var r=t(\"./graphDb\"),i=t(\"./parser/flow\"),a=t(\"./parser/dot\"),u=t(\"../../d3\"),o=t(\"./dagre-d3\"),s=t(\"../../logger\"),c=new s.Log,l={};n.exports.setConf=function(t){var n,e=Object.keys(t);for(n=0;n<e.length;n++)l[e[n]]=t[e[n]]},e.addVertices=function(t,n){var e=Object.keys(t),r=function(t,n){var e;for(e=0;e<n.length;e++)\"undefined\"!=typeof n[e]&&(t=t+n[e]+\";\");return t};e.forEach(function(e){var i,a=t[e],u=\"\";a.classes.length>0&&(u=a.classes.join(\" \"));var o=\"\";o=r(o,a.styles),i=\"undefined\"==typeof a.text?a.id:a.text;var s=\"\";if(l.htmlLabels)s=\"html\",i=i.replace(/fa:fa[\\w\\-]+/g,function(t){return'<i class=\"fa '+t.substring(3)+'\"></i>'});else{var c=document.createElementNS(\"http://www.w3.org/2000/svg\",\"text\"),h=i.split(/<br>/),f=0;for(f=0;f<h.length;f++){var d=document.createElementNS(\"http://www.w3.org/2000/svg\",\"tspan\");d.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\"),d.setAttribute(\"dy\",\"1em\"),d.setAttribute(\"x\",\"1\"),d.textContent=h[f],c.appendChild(d)}s=\"svg\",i=c}var p=0,g=\"\";switch(a.type){case\"round\":p=5,g=\"rect\";break;case\"square\":g=\"rect\";break;case\"diamond\":g=\"question\";break;case\"odd\":g=\"rect_left_inv_arrow\";break;case\"odd_right\":g=\"rect_left_inv_arrow\";break;case\"circle\":g=\"circle\";break;case\"ellipse\":g=\"ellipse\";break;case\"group\":g=\"rect\",i=\"\";break;default:g=\"rect\"}n.setNode(a.id,{labelType:s,shape:g,label:i,rx:p,ry:p,\"class\":u,style:o,id:a.id})})},e.addEdges=function(t,n){var e,r=0;\"undefined\"!=typeof t.defaultStyle&&(e=t.defaultStyle.toString().replace(/,/g,\";\")),t.forEach(function(i){r++;var a={};a.arrowhead=\"arrow_open\"===i.type?\"none\":\"normal\";var u=\"\";if(\"undefined\"!=typeof i.style)i.style.forEach(function(t){u=u+t+\";\"});else switch(i.stroke){case\"normal\":u=\"fill:none\",\"undefined\"!=typeof e&&(u=e);break;case\"dotted\":u=\"stroke: #333; fill:none;stroke-width:2px;stroke-dasharray:3;\";break;case\"thick\":u=\"stroke: #333; stroke-width: 3.5px;fill:none\"}a.style=u,\"undefined\"!=typeof i.interpolate?a.lineInterpolate=i.interpolate:\"undefined\"!=typeof t.defaultInterpolate&&(a.lineInterpolate=t.defaultInterpolate),\"undefined\"==typeof i.text?\"undefined\"!=typeof i.style&&(a.arrowheadStyle=\"fill: #333\"):(a.arrowheadStyle=\"fill: #333\",\"undefined\"==typeof i.style?(a.labelpos=\"c\",l.htmlLabels?(a.labelType=\"html\",a.label='<span class=\"edgeLabel\">'+i.text+\"</span>\"):(a.labelType=\"text\",a.style=\"stroke: #333; stroke-width: 1.5px;fill:none\",a.label=i.text.replace(/<br>/g,\"\\n\"))):a.label=i.text.replace(/<br>/g,\"\\n\")),n.setEdge(i.start,i.end,a,r)})},e.getClasses=function(t,n){var e;r.clear(),e=n?a.parser:i.parser,e.yy=r,e.parse(t);var u=r.getClasses();return\"undefined\"==typeof u[\"default\"]&&(u[\"default\"]={id:\"default\"},u[\"default\"].styles=[],u[\"default\"].clusterStyles=[\"rx:4px\",\"fill: rgb(255, 255, 222)\",\"rx: 4px\",\"stroke: rgb(170, 170, 51)\",\"stroke-width: 1px\"],u[\"default\"].nodeLabelStyles=[\"fill:#000\",\"stroke:none\",\"font-weight:300\",'font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serf',\"font-size:14px\"],u[\"default\"].edgeLabelStyles=[\"fill:#000\",\"stroke:none\",\"font-weight:300\",'font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serf',\"font-size:14px\"]),u},e.draw=function(t,n,s){c.debug(\"Drawing flowchart\");var h;r.clear(),h=s?a.parser:i.parser,h.yy=r;try{h.parse(t)}catch(f){c.debug(\"Parsing failed\")}var d;d=r.getDirection(),\"undefined\"==typeof d&&(d=\"TD\");var p,g=new o.graphlib.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,marginx:20,marginy:20}).setDefaultEdgeLabel(function(){return{}}),y=r.getSubGraphs(),m=0;for(m=y.length-1;m>=0;m--)p=y[m],r.addVertex(p.id,p.title,\"group\",void 0);var v=r.getVertices(),_=r.getEdges();m=0;var b;for(m=y.length-1;m>=0;m--)for(p=y[m],u.selectAll(\"cluster\").append(\"text\"),b=0;b<p.nodes.length;b++)g.setParent(p.nodes[b],p.id);e.addVertices(v,g),e.addEdges(_,g);var x=new o.render;x.shapes().question=function(t,n,e){var r=n.width,i=n.height,a=.8*(r+i),u=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],s=t.insert(\"polygon\",\":first-child\").attr(\"points\",u.map(function(t){return t.x+\",\"+t.y}).join(\" \")).attr(\"rx\",5).attr(\"ry\",5).attr(\"transform\",\"translate(\"+-a/2+\",\"+2*a/4+\")\");return e.intersect=function(t){return o.intersect.polygon(e,u,t)},s},x.shapes().rect_left_inv_arrow=function(t,n,e){var r=n.width,i=n.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],u=t.insert(\"polygon\",\":first-child\").attr(\"points\",a.map(function(t){return t.x+\",\"+t.y}).join(\" \")).attr(\"transform\",\"translate(\"+-r/2+\",\"+2*i/4+\")\");return e.intersect=function(t){return o.intersect.polygon(e,a,t)},u},x.shapes().rect_right_inv_arrow=function(t,n,e){var r=n.width,i=n.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],u=t.insert(\"polygon\",\":first-child\").attr(\"points\",a.map(function(t){return t.x+\",\"+t.y}).join(\" \")).attr(\"transform\",\"translate(\"+-r/2+\",\"+2*i/4+\")\");return e.intersect=function(t){return o.intersect.polygon(e,a,t)},u},x.arrows().none=function(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),a=i.append(\"path\").attr(\"d\",\"M 0 0 L 0 0 L 0 0 z\");o.util.applyStyle(a,e[r+\"Style\"])};var w=u.select(\"#\"+n),A=u.select(\"#\"+n+\" g\");for(x(A,g),A.selectAll(\"g.node\").attr(\"title\",function(){return r.getTooltip(this.id)}),l.useMaxWidth?(w.attr(\"height\",\"100%\"),w.attr(\"width\",l.width),w.attr(\"viewBox\",\"0 0 \"+(g.graph().width+20)+\" \"+(g.graph().height+20)),w.attr(\"style\",\"max-width:\"+(g.graph().width+20)+\"px;\")):(w.attr(\"height\",g.graph().height),\"undefined\"==typeof l.width?w.attr(\"width\",g.graph().width):w.attr(\"width\",l.width),w.attr(\"viewBox\",\"0 0 \"+(g.graph().width+20)+\" \"+(g.graph().height+20))),r.indexNodes(\"subGraph\"+m),m=0;m<y.length;m++)if(p=y[m],\"undefined\"!==p.title){var k=document.querySelectorAll(\"#\"+n+\" #\"+p.id+\" rect\"),E=document.querySelectorAll(\"#\"+n+\" #\"+p.id),M=k[0].x.baseVal.value,S=k[0].y.baseVal.value,D=k[0].width.baseVal.value,C=u.select(E[0]),T=C.append(\"text\");T.attr(\"x\",M+D/2),T.attr(\"y\",S+14),T.attr(\"fill\",\"black\"),T.attr(\"stroke\",\"none\"),T.attr(\"id\",n+\"Text\"),T.style(\"text-anchor\",\"middle\"),T.text(\"undefined\"==typeof p.title?\"Undef\":p.title)}if(!l.htmlLabels){var m,F=document.querySelectorAll(\"#\"+n+\" .edgeLabel .label\");for(m=0;m<F.length;m++){var O=F[m],L=O.getBBox(),I=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");I.setAttribute(\"rx\",0),I.setAttribute(\"ry\",0),I.setAttribute(\"width\",L.width),I.setAttribute(\"height\",L.height),I.setAttribute(\"style\",\"fill:#e8e8e8;\"),O.insertBefore(I,O.firstChild)}}}},{\"../../d3\":108,\"../../logger\":130,\"./dagre-d3\":115,\"./graphDb\":117,\"./parser/dot\":118,\"./parser/flow\":119}],117:[function(require,module,exports){(function(global){\"use strict\";var Logger=require(\"../../logger\"),log=new Logger.Log,d3=require(\"../../d3\"),vertices={},edges=[],classes=[],subGraphs=[],tooltips={},subCount=0,direction,funs=[];exports.addVertex=function(t,n,e,r){var i;\"undefined\"!=typeof t&&0!==t.trim().length&&(\"undefined\"==typeof vertices[t]&&(vertices[t]={id:t,styles:[],classes:[]}),\"undefined\"!=typeof n&&(i=n.trim(),'\"'===i[0]&&'\"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),vertices[t].text=i),\"undefined\"!=typeof e&&(vertices[t].type=e),\"undefined\"!=typeof e&&(vertices[t].type=e),\"undefined\"!=typeof r&&null!==r&&r.forEach(function(n){vertices[t].styles.push(n)}))},exports.addLink=function(t,n,e,r){log.debug(\"Got edge\",t,n);var i={start:t,end:n,type:void 0,text:\"\"};r=e.text,\"undefined\"!=typeof r&&(i.text=r.trim(),'\"'===i.text[0]&&'\"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),\"undefined\"!=typeof e&&(i.type=e.type,i.stroke=e.stroke),edges.push(i)},exports.updateLinkInterpolate=function(t,n){\"default\"===t?edges.defaultInterpolate=n:edges[t].interpolate=n},exports.updateLink=function(t,n){\"default\"===t?edges.defaultStyle=n:edges[t].style=n},exports.addClass=function(t,n){\"undefined\"==typeof classes[t]&&(classes[t]={id:t,styles:[]}),\"undefined\"!=typeof n&&null!==n&&n.forEach(function(n){classes[t].styles.push(n)})},exports.setDirection=function(t){direction=t},exports.setClass=function(t,n){t.indexOf(\",\")>0?t.split(\",\").forEach(function(t){\"undefined\"!=typeof vertices[t]&&vertices[t].classes.push(n)}):\"undefined\"!=typeof vertices[t]&&vertices[t].classes.push(n)};var setTooltip=function(t,n){\"undefined\"!=typeof n&&(tooltips[t]=n)},setClickFun=function setClickFun(id,functionName){\"undefined\"!=typeof functionName&&\"undefined\"!=typeof vertices[id]&&funs.push(function(element){var elem=d3.select(element).select(\"#\"+id);null!==elem&&elem.on(\"click\",function(){eval(functionName+\"('\"+id+\"')\")})})},setLink=function(t,n){\"undefined\"!=typeof n&&\"undefined\"!=typeof vertices[t]&&funs.push(function(e){var r=d3.select(e).select(\"#\"+t);null!==r&&r.on(\"click\",function(){window.open(n,\"newTab\")})})};exports.getTooltip=function(t){return tooltips[t]},exports.setClickEvent=function(t,n,e,r){t.indexOf(\",\")>0?t.split(\",\").forEach(function(t){setTooltip(t,r),setClickFun(t,n),setLink(t,e)}):(setTooltip(t,r),setClickFun(t,n),setLink(t,e))},exports.bindFunctions=function(t){funs.forEach(function(n){n(t)})},exports.getDirection=function(){return direction},exports.getVertices=function(){return vertices},exports.getEdges=function(){return edges},exports.getClasses=function(){return classes};var setupToolTips=function(t){var n=d3.select(\".mermaidTooltip\");null===n[0][0]&&(n=d3.select(\"body\").append(\"div\").attr(\"class\",\"mermaidTooltip\").style(\"opacity\",0));var e=d3.select(t).select(\"svg\"),r=e.selectAll(\"g.node\");r.on(\"mouseover\",function(){var t=d3.select(this),e=t.attr(\"title\");if(null!==e){var r=this.getBoundingClientRect();n.transition().duration(200).style(\"opacity\",\".9\"),n.html(t.attr(\"title\")).style(\"left\",r.left+(r.right-r.left)/2+\"px\").style(\"top\",r.top-14+document.body.scrollTop+\"px\"),t.classed(\"hover\",!0)}}).on(\"mouseout\",function(){n.transition().duration(500).style(\"opacity\",0);var t=d3.select(this);t.classed(\"hover\",!1)})};funs.push(setupToolTips),exports.clear=function(){vertices={},classes={},edges=[],funs=[],funs.push(setupToolTips),subGraphs=[],subCount=0,tooltips=[]},exports.defaultStyle=function(){return\"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;\"},exports.addSubGraph=function(t,n){function e(t){var n={\"boolean\":{},number:{},string:{}},e=[];return t.filter(function(t){var r=typeof t;return\" \"===t?!1:r in n?n[r].hasOwnProperty(t)?!1:n[r][t]=!0:e.indexOf(t)>=0?!1:e.push(t)})}var r=[];r=e(r.concat.apply(r,t));var i={id:\"subGraph\"+subCount,nodes:r,title:n};return subGraphs.push(i),subCount+=1,i.id};var getPosForId=function(t){var n;for(n=0;n<subGraphs.length;n++)if(subGraphs[n].id===t)return n;return-1},secCount=-1,posCrossRef=[],indexNodes=function t(n,e){var r=subGraphs[e].nodes;if(secCount+=1,!(secCount>2e3)){if(posCrossRef[secCount]=e,subGraphs[e].id===n)return{result:!0,count:0};for(var i=0,a=1;i<r.length;){var u=getPosForId(r[i]);if(u>=0){var o=t(n,u);if(o.result)return{result:!0,count:a+o.count};a+=o.count}i+=1}return{result:!1,count:a}}};exports.getDepthFirstPos=function(t){return posCrossRef[t]},exports.indexNodes=function(){secCount=-1,subGraphs.length>0&&indexNodes(\"none\",subGraphs.length-1,0)},exports.getSubGraphs=function(){return subGraphs},exports.parseError=function(t,n){global.mermaidAPI.parseError(t,n)}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../d3\":108,\"../../logger\":130}],118:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,5],r=[1,6],i=[1,12],a=[1,13],u=[1,14],o=[1,15],s=[1,16],c=[1,17],l=[1,18],h=[1,19],f=[1,20],d=[1,21],p=[1,22],g=[8,16,17,18,19,20,21,22,23,24,25,26],y=[1,37],m=[1,33],v=[1,34],_=[1,35],b=[1,36],x=[8,10,16,17,18,19,20,21,22,23,24,25,26,28,32,37,39,40,45,57,58],w=[10,28],A=[10,28,37,57,58],k=[2,49],E=[1,45],M=[1,48],S=[1,49],D=[1,52],C=[2,65],T=[1,65],F=[1,66],O=[1,67],L=[1,68],I=[1,69],B=[1,70],N=[1,71],P=[1,72],R=[1,73],j=[8,16,17,18,19,20,21,22,23,24,25,26,47],Y=[10,28,37],U={trace:function(){},yy:{},symbols_:{error:2,expressions:3,graph:4,EOF:5,graphStatement:6,idStatement:7,\"{\":8,stmt_list:9,\"}\":10,strict:11,GRAPH:12,DIGRAPH:13,textNoTags:14,textNoTagsToken:15,ALPHA:16,NUM:17,COLON:18,PLUS:19,EQUALS:20,MULT:21,DOT:22,BRKT:23,SPACE:24,MINUS:25,keywords:26,stmt:27,\";\":28,node_stmt:29,edge_stmt:30,attr_stmt:31,\"=\":32,subgraph:33,attr_list:34,NODE:35,EDGE:36,\"[\":37,a_list:38,\"]\":39,\",\":40,edgeRHS:41,node_id:42,edgeop:43,port:44,\":\":45,compass_pt:46,SUBGRAPH:47,n:48,ne:49,e:50,se:51,s:52,sw:53,w:54,nw:55,c:56,ARROW_POINT:57,ARROW_OPEN:58,$accept:0,$end:1},terminals_:{2:\"error\",5:\"EOF\",8:\"{\",10:\"}\",11:\"strict\",12:\"GRAPH\",13:\"DIGRAPH\",16:\"ALPHA\",17:\"NUM\",18:\"COLON\",19:\"PLUS\",20:\"EQUALS\",21:\"MULT\",22:\"DOT\",23:\"BRKT\",24:\"SPACE\",25:\"MINUS\",26:\"keywords\",28:\";\",32:\"=\",35:\"NODE\",36:\"EDGE\",37:\"[\",39:\"]\",40:\",\",45:\":\",47:\"SUBGRAPH\",48:\"n\",49:\"ne\",50:\"e\",51:\"se\",52:\"s\",53:\"sw\",54:\"w\",55:\"nw\",56:\"c\",57:\"ARROW_POINT\",58:\"ARROW_OPEN\"},productions_:[0,[3,2],[4,5],[4,6],[4,4],[6,1],[6,1],[7,1],[14,1],[14,2],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[9,1],[9,3],[27,1],[27,1],[27,1],[27,3],[27,1],[31,2],[31,2],[31,2],[34,4],[34,3],[34,3],[34,2],[38,5],[38,5],[38,3],[30,3],[30,3],[30,2],[30,2],[41,3],[41,3],[41,2],[41,2],[29,2],[29,1],[42,2],[42,1],[44,4],[44,2],[44,2],[33,5],[33,4],[33,3],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,0],[43,1],[43,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:this.$=a[u-1];break;case 2:this.$=a[u-4];break;case 3:this.$=a[u-5];break;case 4:this.$=a[u-3];break;case 8:case 10:case 11:this.$=a[u];break;case 9:this.$=a[u-1]+\"\"+a[u];break;case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:this.$=a[u];break;case 17:this.$=\"<br>\";break;case 39:this.$=\"oy\";break;case 40:r.addLink(a[u-1],a[u].id,a[u].op),this.$=\"oy\";break;case 42:r.addLink(a[u-1],a[u].id,a[u].op),this.$={op:a[u-2],id:a[u-1]};break;case 44:this.$={op:a[u-1],id:a[u]};break;case 48:r.addVertex(a[u-1]),this.$=a[u-1];break;case 49:r.addVertex(a[u]),this.$=a[u];break;case 66:this.$=\"arrow\";break;case 67:this.$=\"arrow_open\"}},table:[{3:1,4:2,6:3,11:[1,4],12:e,13:r},{1:[3]},{5:[1,7]},{7:8,8:[1,9],14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{6:23,12:e,13:r},n(g,[2,5]),n(g,[2,6]),{1:[2,1]},{8:[1,24]},{7:30,8:y,9:25,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},n([8,10,28,32,37,39,40,45,57,58],[2,7],{15:38,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p}),n(x,[2,8]),n(x,[2,10]),n(x,[2,11]),n(x,[2,12]),n(x,[2,13]),n(x,[2,14]),n(x,[2,15]),n(x,[2,16]),n(x,[2,17]),n(x,[2,18]),n(x,[2,19]),n(x,[2,20]),{7:39,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:40,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{10:[1,41]},{10:[2,21],28:[1,42]},n(w,[2,23]),n(w,[2,24]),n(w,[2,25]),n(A,k,{44:44,32:[1,43],45:E}),n(w,[2,27],{41:46,43:47,57:M,58:S}),n(w,[2,47],{43:47,34:50,41:51,37:D,57:M,58:S}),{34:53,37:D},{34:54,37:D},{34:55,37:D},{7:56,8:[1,57],14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:58,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},n(x,[2,9]),{8:[1,59]},{10:[1,60]},{5:[2,4]},{7:30,8:y,9:61,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{7:62,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},n(A,[2,48]),n(A,C,{14:10,15:11,7:63,46:64,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,48:T,49:F,50:O,51:L,52:I,53:B,54:N,55:P,56:R}),n(w,[2,41],{34:74,37:D}),{7:77,8:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,33:76,42:75,47:b},n(j,[2,66]),n(j,[2,67]),n(w,[2,46]),n(w,[2,40],{34:78,37:D}),{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:79,39:[1,80]},n(w,[2,28]),n(w,[2,29]),n(w,[2,30]),{8:[1,82]},{7:30,8:y,9:83,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{10:[1,84]},{7:30,8:y,9:85,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{5:[2,2]},{10:[2,22]},n(w,[2,26]),n(A,[2,51],{45:[1,86]}),n(A,[2,52]),n(A,[2,56]),n(A,[2,57]),n(A,[2,58]),n(A,[2,59]),n(A,[2,60]),n(A,[2,61]),n(A,[2,62]),n(A,[2,63]),n(A,[2,64]),n(w,[2,38]),n(Y,[2,44],{43:47,41:87,57:M,58:S}),n(Y,[2,45],{43:47,41:88,57:M,58:S}),n(A,k,{44:44,45:E}),n(w,[2,39]),{39:[1,89]},n(w,[2,34],{34:90,37:D}),{32:[1,91]},{7:30,8:y,9:92,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{10:[1,93]},n(A,[2,55]),{10:[1,94]},n(A,C,{46:95,48:T,49:F,50:O,51:L,52:I,53:B,54:N,55:P,56:R}),n(Y,[2,42]),n(Y,[2,43]),n(w,[2,33],{34:96,37:D}),n(w,[2,32]),{7:97,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{10:[1,98]},n(A,[2,54]),{5:[2,3]},n(A,[2,50]),n(w,[2,31]),{28:[1,99],39:[2,37],40:[1,100]},n(A,[2,53]),{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:101},{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:102},{39:[2,35]},{39:[2,36]}],defaultActions:{7:[2,1],41:[2,4],60:[2,2],61:[2,22],94:[2,3],101:[2,35],102:[2,36]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},$=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,\nline:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:return\"STYLE\";case 1:return\"LINKSTYLE\";case 2:return\"CLASSDEF\";case 3:return\"CLASS\";case 4:return\"CLICK\";case 5:return 12;case 6:return 13;case 7:return 47;case 8:return 35;case 9:return 36;case 10:return\"DIR\";case 11:return\"DIR\";case 12:return\"DIR\";case 13:return\"DIR\";case 14:return\"DIR\";case 15:return\"DIR\";case 16:return 17;case 17:return 23;case 18:return 18;case 19:return 28;case 20:return 40;case 21:return 32;case 22:return 21;case 23:return 22;case 24:return\"ARROW_CROSS\";case 25:return 57;case 26:return\"ARROW_CIRCLE\";case 27:return 58;case 28:return 25;case 29:return 19;case 30:return 20;case 31:return 16;case 32:return\"PIPE\";case 33:return\"PS\";case 34:return\"PE\";case 35:return 37;case 36:return 39;case 37:return 8;case 38:return 10;case 39:return\"QUOTE\";case 40:return 24;case 41:return\"NEWLINE\";case 42:return 5}},rules:[/^(?:style\\b)/,/^(?:linkStyle\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:digraph\\b)/,/^(?:subgraph\\b)/,/^(?:node\\b)/,/^(?:edge\\b)/,/^(?:LR\\b)/,/^(?:RL\\b)/,/^(?:TB\\b)/,/^(?:BT\\b)/,/^(?:TD\\b)/,/^(?:BR\\b)/,/^(?:[0-9])/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:=)/,/^(?:\\*)/,/^(?:\\.)/,/^(?:--[x])/,/^(?:->)/,/^(?:--[o])/,/^(?:--)/,/^(?:-)/,/^(?:\\+)/,/^(?:=)/,/^(?:[\\u0021-\\u0027\\u002A-\\u002E\\u003F\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC_])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:\\s)/,/^(?:\\n)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],inclusive:!0}}};return t}();return U.lexer=$,t.prototype=U,U.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:3,fs:1,path:2}],119:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,4],r=[1,3],i=[1,5],a=[1,8,9,10,11,13,18,30,46,71,72,73,74,75,81,86,88,89,91,92,94,95,96,97,98],u=[2,2],o=[1,12],s=[1,13],c=[1,14],l=[1,15],h=[1,31],f=[1,33],d=[1,22],p=[1,34],g=[1,24],y=[1,25],m=[1,26],v=[1,27],_=[1,28],b=[1,38],x=[1,40],w=[1,35],A=[1,39],k=[1,45],E=[1,44],M=[1,36],S=[1,37],D=[1,41],C=[1,42],T=[1,43],F=[1,8,9,10,11,13,18,30,32,46,71,72,73,74,75,81,86,88,89,91,92,94,95,96,97,98],O=[1,53],L=[1,52],I=[1,54],B=[1,72],N=[1,80],P=[1,81],R=[1,66],j=[1,65],Y=[1,85],U=[1,84],$=[1,82],W=[1,83],z=[1,73],q=[1,68],G=[1,67],V=[1,63],H=[1,75],Z=[1,76],X=[1,77],K=[1,78],Q=[1,79],J=[1,70],tt=[1,69],nt=[8,9,11],et=[8,9,11,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64],rt=[1,115],it=[8,9,10,11,13,15,18,36,38,40,42,46,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,86,88,89,91,92,94,95,96,97,98],at=[8,9,10,11,12,13,15,16,17,18,30,32,36,37,38,39,40,41,42,43,46,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,71,72,73,74,75,78,81,84,86,88,89,91,92,94,95,96,97,98],ut=[1,117],ot=[1,118],st=[8,9,10,11,13,18,30,32,46,71,72,73,74,75,81,86,88,89,91,92,94,95,96,97,98],ct=[8,9,10,11,12,13,15,16,17,18,30,32,37,39,41,43,46,50,51,52,53,54,56,57,58,59,60,61,62,63,64,65,71,72,73,74,75,78,81,84,86,88,89,91,92,94,95,96,97,98],lt=[13,18,46,81,86,88,89,91,92,94,95,96,97,98],ht=[13,18,46,49,65,81,86,88,89,91,92,94,95,96,97,98],ft=[1,191],dt=[1,188],pt=[1,195],gt=[1,192],yt=[1,189],mt=[1,196],vt=[1,186],_t=[1,187],bt=[1,190],xt=[1,193],wt=[1,194],At=[1,213],kt=[8,9,11,86],Et=[8,9,10,11,46,71,80,81,84,86,88,89,90,91,92],Mt={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,DIR:13,FirstStmtSeperator:14,TAGEND:15,TAGSTART:16,UP:17,DOWN:18,ending:19,endToken:20,spaceList:21,spaceListNewline:22,verticeStatement:23,separator:24,styleStatement:25,linkStyleStatement:26,classDefStatement:27,classStatement:28,clickStatement:29,subgraph:30,text:31,end:32,vertex:33,link:34,alphaNum:35,SQS:36,SQE:37,PS:38,PE:39,\"(-\":40,\"-)\":41,DIAMOND_START:42,DIAMOND_STOP:43,alphaNumStatement:44,alphaNumToken:45,MINUS:46,linkStatement:47,arrowText:48,TESTSTR:49,\"--\":50,ARROW_POINT:51,ARROW_CIRCLE:52,ARROW_CROSS:53,ARROW_OPEN:54,\"-.\":55,DOTTED_ARROW_POINT:56,DOTTED_ARROW_CIRCLE:57,DOTTED_ARROW_CROSS:58,DOTTED_ARROW_OPEN:59,\"==\":60,THICK_ARROW_POINT:61,THICK_ARROW_CIRCLE:62,THICK_ARROW_CROSS:63,THICK_ARROW_OPEN:64,PIPE:65,textToken:66,STR:67,commentText:68,commentToken:69,keywords:70,STYLE:71,LINKSTYLE:72,CLASSDEF:73,CLASS:74,CLICK:75,textNoTags:76,textNoTagsToken:77,DEFAULT:78,stylesOpt:79,HEX:80,NUM:81,INTERPOLATE:82,commentStatement:83,PCT:84,style:85,COMMA:86,styleComponent:87,ALPHA:88,COLON:89,UNIT:90,BRKT:91,DOT:92,graphCodeTokens:93,PUNCTUATION:94,UNICODE_TEXT:95,PLUS:96,EQUALS:97,MULT:98,TAG_START:99,TAG_END:100,QUOTE:101,$accept:0,$end:1},terminals_:{2:\"error\",8:\"SEMI\",9:\"NEWLINE\",10:\"SPACE\",11:\"EOF\",12:\"GRAPH\",13:\"DIR\",15:\"TAGEND\",16:\"TAGSTART\",17:\"UP\",18:\"DOWN\",30:\"subgraph\",32:\"end\",36:\"SQS\",37:\"SQE\",38:\"PS\",39:\"PE\",40:\"(-\",41:\"-)\",42:\"DIAMOND_START\",43:\"DIAMOND_STOP\",46:\"MINUS\",49:\"TESTSTR\",50:\"--\",51:\"ARROW_POINT\",52:\"ARROW_CIRCLE\",53:\"ARROW_CROSS\",54:\"ARROW_OPEN\",55:\"-.\",56:\"DOTTED_ARROW_POINT\",57:\"DOTTED_ARROW_CIRCLE\",58:\"DOTTED_ARROW_CROSS\",59:\"DOTTED_ARROW_OPEN\",60:\"==\",61:\"THICK_ARROW_POINT\",62:\"THICK_ARROW_CIRCLE\",63:\"THICK_ARROW_CROSS\",64:\"THICK_ARROW_OPEN\",65:\"PIPE\",67:\"STR\",71:\"STYLE\",72:\"LINKSTYLE\",73:\"CLASSDEF\",74:\"CLASS\",75:\"CLICK\",78:\"DEFAULT\",80:\"HEX\",81:\"NUM\",82:\"INTERPOLATE\",84:\"PCT\",86:\"COMMA\",88:\"ALPHA\",89:\"COLON\",90:\"UNIT\",91:\"BRKT\",92:\"DOT\",94:\"PUNCTUATION\",95:\"UNICODE_TEXT\",96:\"PLUS\",97:\"EQUALS\",98:\"MULT\",99:\"TAG_START\",100:\"TAG_END\",101:\"QUOTE\"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,4],[4,4],[4,4],[4,4],[4,4],[19,2],[19,1],[20,1],[20,1],[20,1],[14,1],[14,1],[14,2],[22,2],[22,2],[22,1],[22,1],[21,2],[21,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,5],[7,4],[24,1],[24,1],[24,1],[23,3],[23,1],[33,4],[33,5],[33,6],[33,7],[33,4],[33,5],[33,4],[33,5],[33,4],[33,5],[33,4],[33,5],[33,1],[33,2],[35,1],[35,2],[44,1],[44,1],[44,1],[44,1],[34,2],[34,3],[34,3],[34,1],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[48,3],[31,1],[31,2],[31,1],[68,1],[68,2],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[76,1],[76,2],[27,5],[27,5],[28,5],[29,5],[29,7],[29,5],[29,7],[25,5],[25,5],[26,5],[26,5],[26,9],[26,9],[26,7],[26,7],[83,3],[79,1],[79,3],[85,1],[85,2],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[69,1],[69,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[77,1],[77,1],[77,1],[77,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 2:this.$=[];break;case 3:a[u]!==[]&&a[u-1].push(a[u]),this.$=a[u-1];break;case 4:case 57:case 59:case 60:case 92:case 94:case 95:case 108:this.$=a[u];break;case 11:r.setDirection(a[u-1]),this.$=a[u-1];break;case 12:r.setDirection(\"LR\"),this.$=a[u-1];break;case 13:r.setDirection(\"RL\"),this.$=a[u-1];break;case 14:r.setDirection(\"BT\"),this.$=a[u-1];break;case 15:r.setDirection(\"TB\"),this.$=a[u-1];break;case 30:this.$=a[u-1];break;case 31:case 32:case 33:case 34:case 35:this.$=[];break;case 36:this.$=r.addSubGraph(a[u-1],a[u-3]);break;case 37:this.$=r.addSubGraph(a[u-1],void 0);break;case 41:r.addLink(a[u-2],a[u],a[u-1]),this.$=[a[u-2],a[u]];break;case 42:this.$=[a[u]];break;case 43:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"square\");break;case 44:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"square\");break;case 45:this.$=a[u-5],r.addVertex(a[u-5],a[u-2],\"circle\");break;case 46:this.$=a[u-6],r.addVertex(a[u-6],a[u-3],\"circle\");break;case 47:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"ellipse\");break;case 48:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"ellipse\");break;case 49:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"round\");break;case 50:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"round\");break;case 51:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"diamond\");break;case 52:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"diamond\");break;case 53:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"odd\");break;case 54:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"odd\");break;case 55:this.$=a[u],r.addVertex(a[u]);break;case 56:this.$=a[u-1],r.addVertex(a[u-1]);break;case 58:case 93:case 96:case 109:this.$=a[u-1]+\"\"+a[u];break;case 61:this.$=\"v\";break;case 62:this.$=\"-\";break;case 63:a[u-1].text=a[u],this.$=a[u-1];break;case 64:case 65:a[u-2].text=a[u-1],this.$=a[u-2];break;case 66:this.$=a[u];break;case 67:this.$={type:\"arrow\",stroke:\"normal\",text:a[u-1]};break;case 68:this.$={type:\"arrow_circle\",stroke:\"normal\",text:a[u-1]};break;case 69:this.$={type:\"arrow_cross\",stroke:\"normal\",text:a[u-1]};break;case 70:this.$={type:\"arrow_open\",stroke:\"normal\",text:a[u-1]};break;case 71:this.$={type:\"arrow\",stroke:\"dotted\",text:a[u-1]};break;case 72:this.$={type:\"arrow_circle\",stroke:\"dotted\",text:a[u-1]};break;case 73:this.$={type:\"arrow_cross\",stroke:\"dotted\",text:a[u-1]};break;case 74:this.$={type:\"arrow_open\",stroke:\"dotted\",text:a[u-1]};break;case 75:this.$={type:\"arrow\",stroke:\"thick\",text:a[u-1]};break;case 76:this.$={type:\"arrow_circle\",stroke:\"thick\",text:a[u-1]};break;case 77:this.$={type:\"arrow_cross\",stroke:\"thick\",text:a[u-1]};break;case 78:this.$={type:\"arrow_open\",stroke:\"thick\",text:a[u-1]};break;case 79:this.$={type:\"arrow\",stroke:\"normal\"};break;case 80:this.$={type:\"arrow_circle\",stroke:\"normal\"};break;case 81:this.$={type:\"arrow_cross\",stroke:\"normal\"};break;case 82:this.$={type:\"arrow_open\",stroke:\"normal\"};break;case 83:this.$={type:\"arrow\",stroke:\"dotted\"};break;case 84:this.$={type:\"arrow_circle\",stroke:\"dotted\"};break;case 85:this.$={type:\"arrow_cross\",stroke:\"dotted\"};break;case 86:this.$={type:\"arrow_open\",stroke:\"dotted\"};break;case 87:this.$={type:\"arrow\",stroke:\"thick\"};break;case 88:this.$={type:\"arrow_circle\",stroke:\"thick\"};break;case 89:this.$={type:\"arrow_cross\",stroke:\"thick\"};break;case 90:this.$={type:\"arrow_open\",stroke:\"thick\"};break;case 91:this.$=a[u-1];break;case 110:case 111:this.$=a[u-4],r.addClass(a[u-2],a[u]);break;case 112:this.$=a[u-4],r.setClass(a[u-2],a[u]);break;case 113:this.$=a[u-4],r.setClickEvent(a[u-2],a[u],void 0,void 0);break;case 114:this.$=a[u-6],r.setClickEvent(a[u-4],a[u-2],void 0,a[u]);break;case 115:this.$=a[u-4],r.setClickEvent(a[u-2],void 0,a[u],void 0);break;case 116:this.$=a[u-6],r.setClickEvent(a[u-4],void 0,a[u-2],a[u]);break;case 117:this.$=a[u-4],r.addVertex(a[u-2],void 0,void 0,a[u]);break;case 118:case 119:case 120:this.$=a[u-4],r.updateLink(a[u-2],a[u]);break;case 121:case 122:this.$=a[u-8],r.updateLinkInterpolate(a[u-6],a[u-2]),r.updateLink(a[u-6],a[u]);break;case 123:case 124:this.$=a[u-6],r.updateLinkInterpolate(a[u-4],a[u]);break;case 126:this.$=[a[u]];break;case 127:a[u-2].push(a[u]),this.$=a[u-2];break;case 129:this.$=a[u-1]+a[u]}},table:[{3:1,4:2,9:e,10:r,12:i},{1:[3]},n(a,u,{5:6}),{4:7,9:e,10:r,12:i},{4:8,9:e,10:r,12:i},{10:[1,9]},{1:[2,1],6:10,7:11,8:o,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,33:23,35:29,44:30,45:32,46:p,71:g,72:y,73:m,74:v,75:_,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(a,[2,9]),n(a,[2,10]),{13:[1,46],15:[1,47],16:[1,48],17:[1,49],18:[1,50]},n(F,[2,3]),n(F,[2,4]),n(F,[2,5]),n(F,[2,6]),n(F,[2,7]),n(F,[2,8]),{8:O,9:L,11:I,24:51},{8:O,9:L,11:I,24:55},{8:O,9:L,11:I,24:56},{8:O,9:L,11:I,24:57},{8:O,9:L,11:I,24:58},{8:O,9:L,11:I,24:59},{8:O,9:L,10:B,11:I,12:N,13:P,15:R,16:j,17:Y,18:U,24:61,30:$,31:60,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(nt,[2,42],{34:86,47:87,50:[1,88],51:[1,91],52:[1,92],53:[1,93],54:[1,94],55:[1,89],56:[1,95],57:[1,96],58:[1,97],59:[1,98],60:[1,90],61:[1,99],62:[1,100],63:[1,101],64:[1,102]}),{10:[1,103]},{10:[1,104]},{10:[1,105]},{10:[1,106]},{10:[1,107]},n(et,[2,55],{45:32,21:113,44:114,10:rt,13:h,15:[1,112],18:f,36:[1,108],38:[1,109],40:[1,110],42:[1,111],46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(it,[2,57]),n(it,[2,59]),n(it,[2,60]),n(it,[2,61]),n(it,[2,62]),n(at,[2,154]),n(at,[2,155]),n(at,[2,156]),n(at,[2,157]),n(at,[2,158]),n(at,[2,159]),n(at,[2,160]),n(at,[2,161]),n(at,[2,162]),n(at,[2,163]),n(at,[2,164]),{8:ut,9:ot,10:rt,14:116,21:119},{8:ut,9:ot,10:rt,14:120,21:119},{8:ut,9:ot,10:rt,14:121,21:119},{8:ut,9:ot,10:rt,14:122,21:119},{8:ut,9:ot,10:rt,14:123,21:119},n(F,[2,30]),n(F,[2,38]),n(F,[2,39]),n(F,[2,40]),n(F,[2,31]),n(F,[2,32]),n(F,[2,33]),n(F,[2,34]),n(F,[2,35]),{8:O,9:L,10:B,11:I,12:N,13:P,15:R,16:j,17:Y,18:U,24:124,30:$,32:W,45:71,46:z,50:q,60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(st,u,{5:126}),n(ct,[2,92]),n(ct,[2,94]),n(ct,[2,143]),n(ct,[2,144]),n(ct,[2,145]),n(ct,[2,146]),n(ct,[2,147]),n(ct,[2,148]),n(ct,[2,149]),n(ct,[2,150]),n(ct,[2,151]),n(ct,[2,152]),n(ct,[2,153]),n(ct,[2,97]),n(ct,[2,98]),n(ct,[2,99]),n(ct,[2,100]),n(ct,[2,101]),n(ct,[2,102]),n(ct,[2,103]),n(ct,[2,104]),n(ct,[2,105]),n(ct,[2,106]),n(ct,[2,107]),{13:h,18:f,33:127,35:29,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(lt,[2,66],{48:128,49:[1,129],65:[1,130]}),{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:131,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:132,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:133,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(ht,[2,79]),n(ht,[2,80]),n(ht,[2,81]),n(ht,[2,82]),n(ht,[2,83]),n(ht,[2,84]),n(ht,[2,85]),n(ht,[2,86]),n(ht,[2,87]),n(ht,[2,88]),n(ht,[2,89]),n(ht,[2,90]),{13:h,18:f,35:134,44:30,45:32,46:p,80:[1,135],81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{78:[1,136],81:[1,137]},{13:h,18:f,35:139,44:30,45:32,46:p,78:[1,138],81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:140,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:141,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:142,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:144,32:W,38:[1,143],45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:145,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:146,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:147,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,56]),n(it,[2,58]),n(et,[2,29],{21:148,10:rt}),n(a,[2,11]),n(a,[2,21]),n(a,[2,22]),{9:[1,149]},n(a,[2,12]),n(a,[2,13]),n(a,[2,14]),n(a,[2,15]),n(st,u,{5:150}),n(ct,[2,93]),{6:10,7:11,8:o,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,32:[1,151],33:23,35:29,44:30,45:32,46:p,71:g,72:y,73:m,74:v,75:_,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(nt,[2,41]),n(lt,[2,63],{10:[1,152]}),{10:[1,153]},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:154,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,51:[1,155],52:[1,156],53:[1,157],54:[1,158],60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,56:[1,159],57:[1,160],58:[1,161],59:[1,162],60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,60:G,61:[1,163],62:[1,164],63:[1,165],64:[1,166],66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,167],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,168]},{10:[1,169]},{10:[1,170]},{10:[1,171]},{10:[1,172],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,173],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,174],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,37:[1,175],45:71,46:z,50:q,60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:176,32:W,45:71,46:z,50:q,60:G,66:62,67:V,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,39:[1,177],45:71,46:z,50:q,60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,41:[1,178],45:71,46:z,50:q,60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,43:[1,179],45:71,46:z,50:q,60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,37:[1,180],45:71,46:z,50:q,60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,28]),n(a,[2,23]),{6:10,7:11,8:o,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,32:[1,181],33:23,35:29,44:30,45:32,46:p,71:g,72:y,73:m,74:v,75:_,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(F,[2,37]),n(lt,[2,65]),n(lt,[2,64]),{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,60:G,65:[1,182],66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(lt,[2,67]),n(lt,[2,68]),n(lt,[2,69]),n(lt,[2,70]),n(lt,[2,71]),n(lt,[2,72]),n(lt,[2,73]),n(lt,[2,74]),n(lt,[2,75]),n(lt,[2,76]),n(lt,[2,77]),n(lt,[2,78]),{10:ft,46:dt,71:pt,79:183,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:197,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:198,80:gt,81:yt,82:[1,199],84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:200,80:gt,81:yt,82:[1,201],84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:202,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:203,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{13:h,18:f,35:204,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:205,44:30,45:32,46:p,67:[1,206],81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,43],{21:207,10:rt}),{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,39:[1,208],45:71,46:z,50:q,60:G,66:125,70:74,71:H,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,49],{21:209,10:rt}),n(et,[2,47],{21:210,10:rt}),n(et,[2,51],{21:211,10:rt}),n(et,[2,53],{21:212,10:rt}),n(F,[2,36]),n([10,13,18,46,81,86,88,89,91,92,94,95,96,97,98],[2,91]),n(nt,[2,117],{86:At}),n(kt,[2,126],{87:214,10:ft,46:dt,71:pt,80:gt,81:yt,84:mt,88:vt,89:_t,90:bt,91:xt,92:wt}),n(Et,[2,128]),n(Et,[2,130]),n(Et,[2,131]),n(Et,[2,132]),n(Et,[2,133]),n(Et,[2,134]),n(Et,[2,135]),n(Et,[2,136]),n(Et,[2,137]),n(Et,[2,138]),n(Et,[2,139]),n(Et,[2,140]),n(nt,[2,118],{86:At}),n(nt,[2,119],{86:At}),{10:[1,215]},n(nt,[2,120],{86:At}),{10:[1,216]},n(nt,[2,110],{86:At}),n(nt,[2,111],{86:At}),n(nt,[2,112],{45:32,44:114,13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,113],{45:32,44:114,10:[1,217],13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,115],{10:[1,218]}),n(et,[2,44]),{39:[1,219]},n(et,[2,50]),n(et,[2,48]),n(et,[2,52]),n(et,[2,54]),{10:ft,46:dt,71:pt,80:gt,81:yt,84:mt,85:220,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},n(Et,[2,129]),{13:h,18:f,35:221,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:222,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{67:[1,223]},{67:[1,224]},n(et,[2,45],{21:225,10:rt}),n(kt,[2,127],{87:214,10:ft,46:dt,71:pt,80:gt,81:yt,84:mt,88:vt,89:_t,90:bt,91:xt,92:wt}),n(nt,[2,123],{45:32,44:114,10:[1,226],13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,124],{45:32,44:114,10:[1,227],13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,114]),n(nt,[2,116]),n(et,[2,46]),{10:ft,46:dt,71:pt,79:228,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:229,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},n(nt,[2,121],{86:At}),n(nt,[2,122],{86:At})],defaultActions:{},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},St=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,\noffset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:break;case 1:this.begin(\"string\");break;case 2:this.popState();break;case 3:return\"STR\";case 4:return 71;case 5:return 78;case 6:return 72;case 7:return 82;case 8:return 73;case 9:return 74;case 10:return 75;case 11:return 12;case 12:return 30;case 13:return 32;case 14:return 13;case 15:return 13;case 16:return 13;case 17:return 13;case 18:return 13;case 19:return 13;case 20:return 81;case 21:return 91;case 22:return 89;case 23:return 8;case 24:return 86;case 25:return 98;case 26:return 16;case 27:return 15;case 28:return 17;case 29:return 18;case 30:return 53;case 31:return 51;case 32:return 52;case 33:return 54;case 34:return 58;case 35:return 56;case 36:return 57;case 37:return 59;case 38:return 58;case 39:return 56;case 40:return 57;case 41:return 59;case 42:return 63;case 43:return 61;case 44:return 62;case 45:return 64;case 46:return 50;case 47:return 55;case 48:return 60;case 49:return 40;case 50:return 41;case 51:return 46;case 52:return 92;case 53:return 96;case 54:return 84;case 55:return 97;case 56:return 97;case 57:return 88;case 58:return 94;case 59:return 95;case 60:return 65;case 61:return 38;case 62:return 39;case 63:return 36;case 64:return 37;case 65:return 42;case 66:return 43;case 67:return 101;case 68:return 9;case 69:return 10;case 70:return 11}},rules:[/^(?:%%[^\\n]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:LR\\b)/,/^(?:RL\\b)/,/^(?:TB\\b)/,/^(?:BT\\b)/,/^(?:TD\\b)/,/^(?:BR\\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\\*)/,/^(?:<)/,/^(?:>)/,/^(?:\\^)/,/^(?:v\\b)/,/^(?:\\s*--[x]\\s*)/,/^(?:\\s*-->\\s*)/,/^(?:\\s*--[o]\\s*)/,/^(?:\\s*---\\s*)/,/^(?:\\s*-\\.-[x]\\s*)/,/^(?:\\s*-\\.->\\s*)/,/^(?:\\s*-\\.-[o]\\s*)/,/^(?:\\s*-\\.-\\s*)/,/^(?:\\s*.-[x]\\s*)/,/^(?:\\s*\\.->\\s*)/,/^(?:\\s*\\.-[o]\\s*)/,/^(?:\\s*\\.-\\s*)/,/^(?:\\s*==[x]\\s*)/,/^(?:\\s*==>\\s*)/,/^(?:\\s*==[o]\\s*)/,/^(?:\\s*==[\\=]\\s*)/,/^(?:\\s*--\\s*)/,/^(?:\\s*-\\.\\s*)/,/^(?:\\s*==\\s*)/,/^(?:\\(-)/,/^(?:-\\))/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:[A-Za-z]+)/,/^(?:[!\"#$%&'*+,-.`?\\\\_\\/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:\\n+)/,/^(?:\\s)/,/^(?:$)/],conditions:{string:{rules:[2,3],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70],inclusive:!0}}};return t}();return Mt.lexer=St,t.prototype=Mt,Mt.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:3,fs:1,path:2}],120:[function(t,n,e){(function(n){\"use strict\";var r=t(\"moment\"),i=t(\"../../logger\"),a=new i.Log,u=\"\",o=\"\",s=[],c=[],l=\"\";e.clear=function(){s=[],c=[],l=\"\",o=\"\",g=0,h=void 0,f=void 0,_=[]},e.setDateFormat=function(t){u=t},e.getDateFormat=function(){return u},e.setTitle=function(t){o=t},e.getTitle=function(){return o},e.addSection=function(t){l=t,s.push(t)},e.getTasks=function(){for(var t=x(),n=10,e=0;!t&&n>e;)t=x(),e++;return c=_};var h,f,d=function(t,n,i){i=i.trim();var u=/^after\\s+([\\d\\w\\-]+)/,o=u.exec(i.trim());if(null!==o){var s=e.findTaskById(o[1]);if(\"undefined\"==typeof s){var c=new Date;return c.setHours(0,0,0,0),c}return s.endTime}return r(i,n.trim(),!0).isValid()?r(i,n.trim(),!0).toDate():(a.debug(\"Invalid date:\"+i),a.debug(\"With date format:\"+n.trim()),new Date)},p=function(t,n,e){if(e=e.trim(),r(e,n.trim(),!0).isValid())return r(e,n.trim()).toDate();var i=r(t),a=/^([\\d]+)([wdhms])/,u=a.exec(e.trim());if(null!==u){switch(u[2]){case\"s\":i.add(u[1],\"seconds\");break;case\"m\":i.add(u[1],\"minutes\");break;case\"h\":i.add(u[1],\"hours\");break;case\"d\":i.add(u[1],\"days\");break;case\"w\":i.add(u[1],\"weeks\")}return i.toDate()}return i.toDate()},g=0,y=function(t){return\"undefined\"==typeof t?(g+=1,\"task\"+g):t},m=function(t,n){var r;r=\":\"===n.substr(0,1)?n.substr(1,n.length):n;for(var i=r.split(\",\"),a={},u=e.getDateFormat(),o=!0;o;)o=!1,i[0].match(/^\\s*active\\s*$/)&&(a.active=!0,i.shift(1),o=!0),i[0].match(/^\\s*done\\s*$/)&&(a.done=!0,i.shift(1),o=!0),i[0].match(/^\\s*crit\\s*$/)&&(a.crit=!0,i.shift(1),o=!0);var s;for(s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=y(),a.startTime=t.endTime,a.endTime=p(a.startTime,u,i[0]);break;case 2:a.id=y(),a.startTime=d(void 0,u,i[0]),a.endTime=p(a.startTime,u,i[1]);break;case 3:a.id=y(i[0]),a.startTime=d(void 0,u,i[1]),a.endTime=p(a.startTime,u,i[2])}return a},v=function(t,n){var e;e=\":\"===n.substr(0,1)?n.substr(1,n.length):n;for(var r=e.split(\",\"),i={},a=!0;a;)a=!1,r[0].match(/^\\s*active\\s*$/)&&(i.active=!0,r.shift(1),a=!0),r[0].match(/^\\s*done\\s*$/)&&(i.done=!0,r.shift(1),a=!0),r[0].match(/^\\s*crit\\s*$/)&&(i.crit=!0,r.shift(1),a=!0);var u;for(u=0;u<r.length;u++)r[u]=r[u].trim();switch(r.length){case 1:i.id=y(),i.startTime={type:\"prevTaskEnd\",id:t},i.endTime={data:r[0]};break;case 2:i.id=y(),i.startTime={type:\"getStartDate\",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=y(r[0]),i.startTime={type:\"getStartDate\",startData:r[1]},i.endTime={data:r[2]}}return i},_=[],b={};e.addTask=function(t,n){var e={section:l,type:l,processed:!1,raw:{data:n},task:t},r=v(f,n);e.raw.startTime=r.startTime,e.raw.endTime=r.endTime,e.id=r.id,e.prevTaskId=f,e.active=r.active,e.done=r.done,e.crit=r.crit;var i=_.push(e);f=e.id,b[e.id]=i-1},e.findTaskById=function(t){var n=b[t];return _[n]},e.addTaskOrg=function(t,n){var e={section:l,type:l,description:t,task:t},r=m(h,n);e.startTime=r.startTime,e.endTime=r.endTime,e.id=r.id,e.active=r.active,e.done=r.done,e.crit=r.crit,h=e,c.push(e)};var x=function(){var t,n=e.getDateFormat(),r=function(t){var r=_[t],i=\"\";switch(_[t].raw.startTime.type){case\"prevTaskEnd\":var a=e.findTaskById(r.prevTaskId);r.startTime=a.endTime;break;case\"getStartDate\":i=d(void 0,n,_[t].raw.startTime.startData),i&&(_[t].startTime=i)}return _[t].startTime&&(_[t].endTime=p(_[t].startTime,n,_[t].raw.endTime.data),_[t].endTime&&(_[t].processed=!0)),_[t].processed},i=!0;for(t=0;t<_.length;t++)r(t),i=i&&_[t].processed;return i};e.parseError=function(t,e){n.mermaidAPI.parseError(t,e)}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../logger\":130,moment:106}],121:[function(t,n){\"use strict\";var e=t(\"./parser/gantt\").parser;e.yy=t(\"./ganttDb\");var r,i=t(\"../../d3\"),a=t(\"moment\"),u={titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'\"Open-Sans\", \"sans-serif\"'};n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){u[n]=t[n]})};var o;n.exports.draw=function(t,n){function s(t,n,e){var r=u.barHeight,a=r+u.barGap,o=u.topPadding,s=u.leftPadding,d=i.scale.linear().domain([0,A.length]).range([\"#00B9FA\",\"#F95002\"]).interpolate(i.interpolateHcl);l(s,o,n,e),c(t,a,o,s,r,d,n,e),h(a,o,s,r,d),f(s,o,n,e)}function c(t,n,e,r,i,a,o){_.append(\"g\").selectAll(\"rect\").data(t).enter().append(\"rect\").attr(\"x\",0).attr(\"y\",function(t,r){return r*n+e-2}).attr(\"width\",function(){return o-u.rightPadding/2}).attr(\"height\",n).attr(\"class\",function(t){for(var n=0;n<A.length;n++)if(t.type===A[n])return\"section section\"+n%u.numberSectionStyles;return\"section section0\"});var s=_.append(\"g\").selectAll(\"rect\").data(t).enter();s.append(\"rect\").attr(\"rx\",3).attr(\"ry\",3).attr(\"x\",function(t){return w(t.startTime)+r}).attr(\"y\",function(t,r){return r*n+e}).attr(\"width\",function(t){return w(t.endTime)-w(t.startTime)}).attr(\"height\",i).attr(\"class\",function(t){for(var n=\"task \",e=0,r=0;r<A.length;r++)t.type===A[r]&&(e=r%u.numberSectionStyles);return t.active?t.crit?n+\" activeCrit\"+e:n+\" active\"+e:t.done?t.crit?n+\" doneCrit\"+e:n+\" done\"+e:t.crit?n+\" crit\"+e:n+\" task\"+e}),s.append(\"text\").text(function(t){return t.task}).attr(\"font-size\",u.fontSize).attr(\"x\",function(t){var n=w(t.startTime),e=w(t.endTime),i=this.getBBox().width;return i>e-n?e+i+1.5*u.leftPadding>o?n+r-5:e+r+5:(e-n)/2+n+r}).attr(\"y\",function(t,r){return r*n+u.barHeight/2+(u.fontSize/2-2)+e}).attr(\"text-height\",i).attr(\"class\",function(t){for(var n=w(t.startTime),e=w(t.endTime),r=this.getBBox().width,i=0,a=0;a<A.length;a++)t.type===A[a]&&(i=a%u.numberSectionStyles);var s=\"\";return t.active&&(s=t.crit?\"activeCritText\"+i:\"activeText\"+i),t.done?s=t.crit?s+\" doneCritText\"+i:s+\" doneText\"+i:t.crit&&(s=s+\" critText\"+i),r>e-n?e+r+1.5*u.leftPadding>o?\"taskTextOutsideLeft taskTextOutside\"+i+\" \"+s:\"taskTextOutsideRight taskTextOutside\"+i+\" \"+s:\"taskText taskText\"+i+\" \"+s})}function l(t,n,e,a){var o,s=[[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"h1 %I:%M\",function(t){return t.getMinutes()}]],c=[[\"%Y\",function(){return!0}]],l=[[\"%I:%M\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}]];\"undefined\"!=typeof u.axisFormatter&&(l=[],u.axisFormatter.forEach(function(t){var n=[];n[0]=t[0],n[1]=t[1],l.push(n)})),o=s.concat(l).concat(c);var h=i.svg.axis().scale(w).orient(\"bottom\").tickSize(-a+n+u.gridLineStartPadding,0,0).tickFormat(i.time.format.multi(o));r>7&&230>r&&(h=h.ticks(i.time.monday.range)),_.append(\"g\").attr(\"class\",\"grid\").attr(\"transform\",\"translate(\"+t+\", \"+(a-50)+\")\").call(h).selectAll(\"text\").style(\"text-anchor\",\"middle\").attr(\"fill\",\"#000\").attr(\"stroke\",\"none\").attr(\"font-size\",10).attr(\"dy\",\"1em\")}function h(t,n){for(var e=[],r=0,i=0;i<A.length;i++)e[i]=[A[i],g(A[i],E)];_.append(\"g\").selectAll(\"text\").data(e).enter().append(\"text\").text(function(t){return t[0]}).attr(\"x\",10).attr(\"y\",function(i,a){if(!(a>0))return i[1]*t/2+n;for(var u=0;a>u;u++)return r+=e[a-1][1],i[1]*t/2+r*t+n}).attr(\"class\",function(t){for(var n=0;n<A.length;n++)if(t[0]===A[n])return\"sectionTitle sectionTitle\"+n%u.numberSectionStyles;return\"sectionTitle\"})}function f(t,n,e,r){var i=_.append(\"g\").attr(\"class\",\"today\"),a=new Date;i.append(\"line\").attr(\"x1\",w(a)+t).attr(\"x2\",w(a)+t).attr(\"y1\",u.titleTopMargin).attr(\"y2\",r-u.titleTopMargin).attr(\"class\",\"today\")}function d(t){for(var n={},e=[],r=0,i=t.length;i>r;++r)n.hasOwnProperty(t[r])||(n[t[r]]=!0,e.push(t[r]));return e}function p(t){for(var n=t.length,e={};n;)e[t[--n]]=(e[t[n]]||0)+1;return e}function g(t,n){return p(n)[t]||0}e.yy.clear(),e.parse(t);var y=document.getElementById(n);o=y.parentElement.offsetWidth,\"undefined\"==typeof o&&(o=1200),\"undefined\"!=typeof u.useWidth&&(o=u.useWidth);var m=e.yy.getTasks(),v=m.length*(u.barHeight+u.barGap)+2*u.topPadding;y.setAttribute(\"height\",\"100%\"),y.setAttribute(\"viewBox\",\"0 0 \"+o+\" \"+v);var _=i.select(\"#\"+n),b=i.min(m,function(t){return t.startTime}),x=i.max(m,function(t){return t.endTime}),w=i.time.scale().domain([i.min(m,function(t){return t.startTime}),i.max(m,function(t){return t.endTime})]).rangeRound([0,o-u.leftPadding-u.rightPadding]),A=[];r=a.duration(x-b).asDays();for(var k=0;k<m.length;k++)A.push(m[k].type);var E=A;A=d(A),s(m,o,v),\"undefined\"!=typeof u.useWidth&&y.setAttribute(\"width\",o),_.append(\"text\").text(e.yy.getTitle()).attr(\"x\",o/2).attr(\"y\",u.titleTopMargin).attr(\"class\",\"titleText\")}},{\"../../d3\":108,\"./ganttDb\":120,\"./parser/gantt\":122,moment:106}],122:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[6,8,10,11,12,13,14],r=[1,9],i=[1,10],a=[1,11],u=[1,12],o={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,dateFormat:11,title:12,section:13,taskTxt:14,taskData:15,$accept:0,$end:1},terminals_:{2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"title\",13:\"section\",14:\"taskTxt\",15:\"taskData\"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,2]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:return a[u-1];case 2:this.$=[];break;case 3:a[u-1].push(a[u]),this.$=a[u-1];break;case 4:case 5:this.$=a[u];break;case 6:case 7:this.$=[];break;case 8:r.setDateFormat(a[u].substr(11)),this.$=a[u].substr(11);break;case 9:r.setTitle(a[u].substr(6)),this.$=a[u].substr(6);break;case 10:r.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 11:r.addTask(a[u-1],a[u]),this.$=\"task\"}},table:[{3:1,4:[1,2]},{1:[3]},n(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,13:a,14:u},n(e,[2,7],{1:[2,1]}),n(e,[2,3]),{9:13,11:r,12:i,13:a,14:u},n(e,[2,5]),n(e,[2,6]),n(e,[2,8]),n(e,[2,9]),n(e,[2,10]),{15:[1,14]},n(e,[2,4]),n(e,[2,11])],defaultActions:{},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},s=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 10;case 1:break;case 2:break;case 3:break;case 4:return 4;case 5:return 11;case 6:return\"date\";case 7:return 12;case 8:return 13;case 9:return 14;case 10:return 15;case 11:return\":\";case 12:return 6;case 13:return\"INVALID\"}},rules:[/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return t}();return o.lexer=s,t.prototype=o,o.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:3,fs:1,path:2}],123:[function(t,n,e){\"use strict\";function r(t,n){return Math.floor(Math.random()*(n-t))+t}function i(){for(var t=\"0123456789abcdef\",n=\"\",e=0;7>e;e++)n+=t[r(0,16)];return n}function a(t,n){var e,r=!0;t:for(;r;){var i=t,u=n;for(r=!1,h.debug(\"Entering isfastforwardable:\",i.id,u.id);i.seq<=u.seq&&i!=u&&null!=u.parent;){if(Array.isArray(u.parent)){if(h.debug(\"In merge commit:\",u.parent),e=a(i,f[u.parent[0]]))return e;t=i,n=f[u.parent[1]],r=!0;continue t}u=f[u.parent]}return h.debug(i.id,u.id),i.id==u.id}}function u(t,n){var e=t.seq,r=n.seq;return e>r?a(n,t):!1}function o(t,n,e){var r=l.find(t,n);if(r){var i=l.indexOf(t,l.find(t,n));t.splice(i,1,e)}else t.push(e)}function s(t){var n=l.maxBy(t,\"seq\"),e=\"\";l.each(t,function(t){e+=t==n?\"\t*\":\"\t|\"});var r=[e,n.id,n.seq];if(l.each(p,function(t,e){t==n.id&&r.push(e)}),h.debug(r.join(\" \")),Array.isArray(n.parent)){var i=f[n.parent[0]];o(t,n,i),t.push(f[n.parent[1]])}else{if(null==n.parent)return;var a=f[n.parent];o(t,n,a)}t=l.uniqBy(t,\"id\"),s(t)}var c=t(\"../../logger\"),l=t(\"lodash\"),h=new c.Log(1),f={},d=null,p={master:d},g=\"master\",y=\"LR\",m=0;e.setDirection=function(t){y=t};var v={};e.setOptions=function(t){h.debug(\"options str\",t),t=t&&t.trim(),t=t||\"{}\";try{v=JSON.parse(t)}catch(n){h.error(\"error while parsing gitGraph options\",n.message)}},e.getOptions=function(){return v},e.commit=function(t){var n={id:i(),message:t,seq:m++,parent:null==d?null:d.id};d=n,f[n.id]=n,p[g]=n.id,h.debug(\"in pushCommit \"+n.id)},e.branch=function(t){p[t]=null!=d?d.id:null,h.debug(\"in createBranch\")},e.merge=function(t){var n=f[p[g]],e=f[p[t]];if(u(n,e))return void h.debug(\"Already merged\");if(a(n,e))p[g]=p[t],d=f[p[g]];else{var r={id:i(),message:\"merged branch \"+t+\" into \"+g,seq:m++,parent:[null==d?null:d.id,p[t]]};d=r,f[r.id]=r,p[g]=r.id}h.debug(p),h.debug(\"in mergeBranch\")},e.checkout=function(t){h.debug(\"in checkout\"),g=t;var n=p[g];d=f[n]},e.reset=function(t){h.debug(\"in reset\",t);var n=t.split(\":\")[0],e=parseInt(t.split(\":\")[1]),r=\"HEAD\"==n?d:f[p[n]];for(h.debug(r,e);e>0;)if(r=f[r.parent],e--,!r){var i=\"Critical error - unique parent commit not found during reset\";throw h.error(i),i}d=r,p[g]=r.id},e.prettyPrint=function(){h.debug(f);var t=e.getCommitsArray()[0];s([t])},e.clear=function(){f={},d=null,p={master:d},g=\"master\",m=0},e.getBranchesAsObjArray=function(){var t=l.map(p,function(t,n){return{name:n,commit:f[t]}});return t},e.getBranches=function(){return p},e.getCommits=function(){return f},e.getCommitsArray=function(){var t=Object.keys(f).map(function(t){return f[t]});return l.each(t,function(t){h.debug(t.id)}),l.orderBy(t,[\"seq\"],[\"desc\"])},e.getCurrentBranch=function(){return g},e.getDirection=function(){return y},e.getHead=function(){return d}},{\"../../logger\":130,lodash:105}],124:[function(t,n,e){\"use strict\";function r(t){t.append(\"defs\").append(\"g\").attr(\"id\",\"def-commit\").append(\"circle\").attr(\"r\",v.nodeRadius).attr(\"cx\",0).attr(\"cy\",0),t.select(\"#def-commit\").append(\"foreignObject\").attr(\"width\",v.nodeLabel.width).attr(\"height\",v.nodeLabel.height).attr(\"x\",v.nodeLabel.x).attr(\"y\",v.nodeLabel.y).attr(\"class\",\"node-label\").attr(\"requiredFeatures\",\"http://www.w3.org/TR/SVG11/feature#Extensibility\").append(\"xhtml:p\").html(\"\")}function i(t,n,e,r){r=r||\"basis\";var i=v.branchColors[e%v.branchColors.length],a=p.svg.line().x(function(t){return Math.round(t.x)}).y(function(t){return Math.round(t.y)}).interpolate(r);t.append(\"svg:path\").attr(\"d\",a(n)).style(\"stroke\",i).style(\"stroke-width\",v.lineStrokeWidth).style(\"fill\",\"none\")}function a(t,n){n=n||t.node().getBBox();var e=t.node().getCTM(),r=e.e+n.x*e.a,i=e.f+n.y*e.d;return{left:r,top:i,width:n.width,height:n.height}}function u(t,n,e,r,u){y.debug(\"svgDrawLineForCommits: \",n,e);var o=a(t.select(\"#node-\"+n+\" circle\")),s=a(t.select(\"#node-\"+e+\" circle\"));switch(r){case\"LR\":if(o.left-s.left>v.nodeSpacing){var c={x:o.left-v.nodeSpacing,y:s.top+s.height/2},l={x:s.left+s.width,y:s.top+s.height/2};i(t,[c,l],u,\"linear\"),i(t,[{x:o.left,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,y:c.y},c],u)}else i(t,[{x:o.left,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,\ny:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],u);break;case\"BT\":s.top-o.top>v.nodeSpacing?(c={x:s.left+s.width/2,y:o.top+o.height+v.nodeSpacing},l={x:s.left+s.width/2,y:s.top},i(t,[c,l],u,\"linear\"),i(t,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+o.height+v.nodeSpacing/2},{x:s.left+s.width/2,y:c.y-v.nodeSpacing/2},c],u)):i(t,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+v.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-v.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],u)}}function o(t,n){return t.select(n).node().cloneNode(!0)}function s(t,n,e,r){var i,a=Object.keys(m).length;if(f.isString(n))do{if(i=m[n],y.debug(\"in renderCommitHistory\",i.id,i.seq),t.select(\"#node-\"+n).size()>0)return;t.append(function(){return o(t,\"#def-commit\")}).attr(\"class\",\"commit\").attr(\"id\",function(){return\"node-\"+i.id}).attr(\"transform\",function(){switch(r){case\"LR\":return\"translate(\"+(i.seq*v.nodeSpacing+v.leftMargin)+\", \"+l*v.branchOffset+\")\";case\"BT\":return\"translate(\"+(l*v.branchOffset+v.leftMargin)+\", \"+(a-i.seq)*v.nodeSpacing+\")\"}}).attr(\"fill\",v.nodeFillColor).attr(\"stroke\",v.nodeStrokeColor).attr(\"stroke-width\",v.nodeStrokeWidth);var u=f.find(e,[\"commit\",i]);u&&(y.debug(\"found branch \",u.name),t.select(\"#node-\"+i.id+\" p\").append(\"xhtml:span\").attr(\"class\",\"branch-label\").text(u.name+\", \")),t.select(\"#node-\"+i.id+\" p\").append(\"xhtml:span\").attr(\"class\",\"commit-id\").text(i.id),\"\"!==i.message&&\"BT\"===r&&t.select(\"#node-\"+i.id+\" p\").append(\"xhtml:span\").attr(\"class\",\"commit-msg\").text(\", \"+i.message),n=i.parent}while(n&&m[n]);f.isArray(n)&&(y.debug(\"found merge commmit\",n),s(t,n[0],e,r),l++,s(t,n[1],e,r),l--)}function c(t,n,e,r){for(r=r||0;n.seq>0&&!n.lineDrawn;)f.isString(n.parent)?(u(t,n.id,n.parent,e,r),n.lineDrawn=!0,n=m[n.parent]):f.isArray(n.parent)&&(u(t,n.id,n.parent[0],e,r),u(t,n.id,n.parent[1],e,r+1),c(t,m[n.parent[1]],e,r+1),n.lineDrawn=!0,n=m[n.parent[0]])}var l,h=t(\"./gitGraphAst\"),f=t(\"lodash\"),d=t(\"./parser/gitGraph\"),p=t(\"../../d3\"),g=t(\"../../logger\"),y=new g.Log,m={},v={nodeSpacing:75,nodeFillColor:\"yellow\",nodeStrokeWidth:2,nodeStrokeColor:\"grey\",lineStrokeWidth:4,branchOffset:50,lineColor:\"grey\",leftMargin:50,branchColors:[\"#442f74\",\"#983351\",\"#609732\",\"#AA9A39\"],nodeRadius:15,nodeLabel:{width:75,height:100,x:-25,y:15}},_={};e.setConf=function(t){_=t},e.draw=function(t,n,e){try{var i;i=d.parser,i.yy=h,y.debug(\"in gitgraph renderer\",t,n,e),i.parse(t+\"\\n\"),v=f.extend(v,_,h.getOptions()),y.debug(\"effective options\",v);var a=h.getDirection();m=h.getCommits();var u=h.getBranchesAsObjArray();\"BT\"===a&&(v.nodeLabel.x=u.length*v.branchOffset,v.nodeLabel.width=\"100%\",v.nodeLabel.y=-2*v.nodeRadius);var o=p.select(\"#\"+n);r(o),l=1,f.each(u,function(t){s(o,t.commit.id,u,a),c(o,t.commit,a),l++}),o.attr(\"height\",function(){return\"BT\"===a?Object.keys(m).length*v.nodeSpacing:(u.length+1)*v.branchOffset})}catch(g){y.error(\"Error while rendering gitgraph\"),y.error(g.message)}}},{\"../../d3\":108,\"../../logger\":130,\"./gitGraphAst\":123,\"./parser/gitGraph\":125,lodash:105}],125:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[2,3],r=[1,7],i=[7,12,15,17,19,20,21],a=[7,11,12,15,17,19,20,21],u=[2,20],o=[1,32],s={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,\":\":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:return a[u-1];case 2:return r.setDirection(a[u-3]),a[u-1];case 4:r.setOptions(a[u-1]),this.$=a[u];break;case 5:a[u-1]+=a[u],this.$=a[u-1];break;case 7:this.$=[];break;case 8:a[u-1].push(a[u]),this.$=a[u-1];break;case 9:this.$=a[u-1];break;case 11:r.commit(a[u]);break;case 12:r.branch(a[u]);break;case 13:r.checkout(a[u]);break;case 14:r.merge(a[u]);break;case 15:r.reset(a[u]);break;case 16:this.$=\"\";break;case 17:this.$=a[u];break;case 18:this.$=a[u-1]+\":\"+a[u];break;case 19:this.$=a[u-1]+\":\"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:e,9:6,12:r},{5:[1,8]},{7:[1,9]},n(i,[2,7],{10:10,11:[1,11]}),n(a,[2,6]),{6:12,7:e,9:6,12:r},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},n(a,[2,5]),{7:[1,21]},n(i,[2,8]),{12:[1,22]},n(i,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},n(i,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:u,25:31,26:o},{12:u,25:33,26:o},{12:[2,18]},{12:u,25:34,26:o},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},c=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 12;case 1:break;case 2:break;case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:return 8;case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin(\"options\");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin(\"string\");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][a-zA-Z0-9_]+)/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};return t}();return s.lexer=c,t.prototype=s,s.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:3,fs:1,path:2}],126:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,2],r=[1,3],i=[1,4],a=[2,4],u=[1,9],o=[1,11],s=[1,12],c=[1,14],l=[1,15],h=[1,17],f=[1,18],d=[1,19],p=[1,20],g=[1,22],y=[1,23],m=[1,4,5,10,15,16,18,20,21,22,23,24,25,36],v=[1,31],_=[4,5,10,15,16,18,20,21,22,23,25,36],b=[34,35,36],x={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,participant:10,actor:11,AS:12,restOfLine:13,signal:14,activate:15,deactivate:16,note_statement:17,title:18,text2:19,loop:20,end:21,opt:22,alt:23,\"else\":24,note:25,placement:26,over:27,actor_pair:28,spaceList:29,\",\":30,left_of:31,right_of:32,signaltype:33,\"+\":34,\"-\":35,ACTOR:36,SOLID_OPEN_ARROW:37,DOTTED_OPEN_ARROW:38,SOLID_ARROW:39,DOTTED_ARROW:40,SOLID_CROSS:41,DOTTED_CROSS:42,TXT:43,$accept:0,$end:1},terminals_:{2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",10:\"participant\",12:\"AS\",13:\"restOfLine\",15:\"activate\",16:\"deactivate\",18:\"title\",20:\"loop\",21:\"end\",22:\"opt\",23:\"alt\",24:\"else\",25:\"note\",27:\"over\",30:\",\",31:\"left_of\",32:\"right_of\",34:\"+\",35:\"-\",36:\"ACTOR\",37:\"SOLID_OPEN_ARROW\",38:\"DOTTED_OPEN_ARROW\",39:\"SOLID_ARROW\",40:\"DOTTED_ARROW\",41:\"SOLID_CROSS\",42:\"DOTTED_CROSS\",43:\"TXT\"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,5],[9,3],[9,2],[9,3],[9,3],[9,2],[9,3],[9,4],[9,4],[9,7],[17,4],[17,4],[29,2],[29,1],[28,3],[28,1],[26,1],[26,1],[14,5],[14,5],[14,4],[11,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[19,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 3:return r.apply(a[u]),a[u];case 4:this.$=[];break;case 5:a[u-1].push(a[u]),this.$=a[u-1];break;case 6:case 7:this.$=a[u];break;case 8:this.$=[];break;case 9:a[u-3].description=a[u-1],this.$=a[u-3];break;case 10:this.$=a[u-1];break;case 12:this.$={type:\"activeStart\",signalType:r.LINETYPE.ACTIVE_START,actor:a[u-1]};break;case 13:this.$={type:\"activeEnd\",signalType:r.LINETYPE.ACTIVE_END,actor:a[u-1]};break;case 15:this.$=[{type:\"setTitle\",text:a[u-1]}];break;case 16:a[u-1].unshift({type:\"loopStart\",loopText:a[u-2],signalType:r.LINETYPE.LOOP_START}),a[u-1].push({type:\"loopEnd\",loopText:a[u-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[u-1];break;case 17:a[u-1].unshift({type:\"optStart\",optText:a[u-2],signalType:r.LINETYPE.OPT_START}),a[u-1].push({type:\"optEnd\",optText:a[u-2],signalType:r.LINETYPE.OPT_END}),this.$=a[u-1];break;case 18:a[u-4].unshift({type:\"altStart\",altText:a[u-5],signalType:r.LINETYPE.ALT_START}),a[u-4].push({type:\"else\",altText:a[u-2],signalType:r.LINETYPE.ALT_ELSE}),a[u-4]=a[u-4].concat(a[u-1]),a[u-4].push({type:\"altEnd\",signalType:r.LINETYPE.ALT_END}),this.$=a[u-4];break;case 19:this.$=[a[u-1],{type:\"addNote\",placement:a[u-2],actor:a[u-1].actor,text:a[u]}];break;case 20:a[u-2]=[].concat(a[u-1],a[u-1]).slice(0,2),a[u-2][0]=a[u-2][0].actor,a[u-2][1]=a[u-2][1].actor,this.$=[a[u-1],{type:\"addNote\",placement:r.PLACEMENT.OVER,actor:a[u-2].slice(0,2),text:a[u]}];break;case 23:this.$=[a[u-2],a[u]];break;case 24:this.$=a[u];break;case 25:this.$=r.PLACEMENT.LEFTOF;break;case 26:this.$=r.PLACEMENT.RIGHTOF;break;case 27:this.$=[a[u-4],a[u-1],{type:\"addMessage\",from:a[u-4].actor,to:a[u-1].actor,signalType:a[u-3],msg:a[u]},{type:\"activeStart\",signalType:r.LINETYPE.ACTIVE_START,actor:a[u-1]}];break;case 28:this.$=[a[u-4],a[u-1],{type:\"addMessage\",from:a[u-4].actor,to:a[u-1].actor,signalType:a[u-3],msg:a[u]},{type:\"activeEnd\",signalType:r.LINETYPE.ACTIVE_END,actor:a[u-4]}];break;case 29:this.$=[a[u-3],a[u-1],{type:\"addMessage\",from:a[u-3].actor,to:a[u-1].actor,signalType:a[u-2],msg:a[u]}];break;case 30:this.$={type:\"addActor\",actor:a[u]};break;case 31:this.$=r.LINETYPE.SOLID_OPEN;break;case 32:this.$=r.LINETYPE.DOTTED_OPEN;break;case 33:this.$=r.LINETYPE.SOLID;break;case 34:this.$=r.LINETYPE.DOTTED;break;case 35:this.$=r.LINETYPE.SOLID_CROSS;break;case 36:this.$=r.LINETYPE.DOTTED_CROSS;break;case 37:this.$=a[u].substring(1).trim().replace(/\\\\n/gm,\"\\n\")}},table:[{3:1,4:e,5:r,6:i},{1:[3]},{3:5,4:e,5:r,6:i},{3:6,4:e,5:r,6:i},n([1,4,5,10,15,16,18,20,22,23,25,36],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,22:d,23:p,25:g,36:y},n(m,[2,5]),{9:24,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,22:d,23:p,25:g,36:y},n(m,[2,7]),n(m,[2,8]),{11:25,36:y},{5:[1,26]},{11:27,36:y},{11:28,36:y},{5:[1,29]},{19:30,43:v},{13:[1,32]},{13:[1,33]},{13:[1,34]},{33:35,37:[1,36],38:[1,37],39:[1,38],40:[1,39],41:[1,40],42:[1,41]},{26:42,27:[1,43],31:[1,44],32:[1,45]},n([5,12,30,37,38,39,40,41,42,43],[2,30]),n(m,[2,6]),{5:[1,47],12:[1,46]},n(m,[2,11]),{5:[1,48]},{5:[1,49]},n(m,[2,14]),{5:[1,50]},{5:[2,37]},n(_,a,{7:51}),n(_,a,{7:52}),n([4,5,10,15,16,18,20,22,23,24,25,36],a,{7:53}),{11:56,34:[1,54],35:[1,55],36:y},n(b,[2,31]),n(b,[2,32]),n(b,[2,33]),n(b,[2,34]),n(b,[2,35]),n(b,[2,36]),{11:57,36:y},{11:59,28:58,36:y},{36:[2,25]},{36:[2,26]},{13:[1,60]},n(m,[2,10]),n(m,[2,12]),n(m,[2,13]),n(m,[2,15]),{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,21:[1,61],22:d,23:p,25:g,36:y},{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,21:[1,62],22:d,23:p,25:g,36:y},{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,22:d,23:p,24:[1,63],25:g,36:y},{11:64,36:y},{11:65,36:y},{19:66,43:v},{19:67,43:v},{19:68,43:v},{30:[1,69],43:[2,24]},{5:[1,70]},n(m,[2,16]),n(m,[2,17]),{13:[1,71]},{19:72,43:v},{19:73,43:v},{5:[2,29]},{5:[2,19]},{5:[2,20]},{11:74,36:y},n(m,[2,9]),n(_,a,{7:75}),{5:[2,27]},{5:[2,28]},{43:[2,23]},{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,21:[1,76],22:d,23:p,25:g,36:y},n(m,[2,18])],defaultActions:{5:[2,1],6:[2,2],31:[2,37],44:[2,25],45:[2,26],66:[2,29],67:[2,19],68:[2,20],72:[2,27],73:[2,28],74:[2,23]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},w=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:return this.begin(\"ID\"),10;case 6:return this.begin(\"ALIAS\"),36;case 7:return this.popState(),this.popState(),this.begin(\"LINE\"),12;case 8:return this.popState(),this.popState(),5;case 9:return this.begin(\"LINE\"),20;case 10:return this.begin(\"LINE\"),22;case 11:return this.begin(\"LINE\"),23;case 12:return this.begin(\"LINE\"),24;case 13:return this.popState(),13;case 14:return 21;case 15:return 31;case 16:return 32;case 17:return 27;case 18:return 25;case 19:return this.begin(\"ID\"),15;case 20:return this.begin(\"ID\"),16;case 21:return 18;case 22:return 6;case 23:return 30;case 24:return 5;case 25:return n.yytext=n.yytext.trim(),36;case 26:return 39;case 27:return 40;case 28:return 37;case 29:return 38;case 30:return 41;case 31:return 42;case 32:return 43;case 33:return 34;case 34:return 35;case 35:return 5;case 36:return\"INVALID\"}},rules:[/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[2,3,13],inclusive:!1},ALIAS:{rules:[2,3,7,8],inclusive:!1},ID:{rules:[2,3,6],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],inclusive:!0}}};return t}();return x.lexer=w,t.prototype=x,x.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:3,fs:1,path:2}],127:[function(t,n,e){(function(n){\"use strict\";var r={},i=[],a=[],u=\"\",o=t(\"../../logger\"),s=new o.Log;e.addActor=function(t,n,e){var i=r[t];i&&n===i.name&&null==e||(null==e&&(e=n),r[t]={name:n,description:e})},e.addMessage=function(t,n,e,r){i.push({from:t,to:n,message:e,answer:r})},e.addSignal=function(t,n,e,r){s.debug(\"Adding message from=\"+t+\" to=\"+n+\" message=\"+e+\" type=\"+r),i.push({from:t,to:n,message:e,type:r})},e.getMessages=function(){return i},e.getActors=function(){return r},e.getActor=function(t){return r[t]},e.getActorKeys=function(){return Object.keys(r)},e.getTitle=function(){return u},e.clear=function(){r={},i=[]},e.LINETYPE={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18},e.ARROWTYPE={FILLED:0,OPEN:1},e.PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2},e.addNote=function(t,n,r){var u={actor:t,placement:n,message:r},o=[].concat(t,t);a.push(u),i.push({from:o[0],to:o[1],message:r,type:e.LINETYPE.NOTE,placement:n})},e.setTitle=function(t){u=t},e.parseError=function(t,e){n.mermaidAPI.parseError(t,e)},e.apply=function(t){if(t instanceof Array)t.forEach(function(t){e.apply(t)});else switch(t.type){case\"addActor\":e.addActor(t.actor,t.actor,t.description);break;case\"activeStart\":e.addSignal(t.actor,void 0,void 0,t.signalType);break;case\"activeEnd\":e.addSignal(t.actor,void 0,void 0,t.signalType);break;case\"addNote\":e.addNote(t.actor,t.placement,t.text);break;case\"addMessage\":e.addSignal(t.from,t.to,t.msg,t.signalType);break;case\"loopStart\":e.addSignal(void 0,void 0,t.loopText,t.signalType);break;case\"loopEnd\":e.addSignal(void 0,void 0,void 0,t.signalType);break;case\"optStart\":e.addSignal(void 0,void 0,t.optText,t.signalType);break;case\"optEnd\":e.addSignal(void 0,void 0,void 0,t.signalType);break;case\"altStart\":e.addSignal(void 0,void 0,t.altText,t.signalType);break;case\"else\":e.addSignal(void 0,void 0,t.altText,t.signalType);break;case\"altEnd\":e.addSignal(void 0,void 0,void 0,t.signalType);break;case\"setTitle\":e.setTitle(t.text)}}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../logger\":130}],128:[function(t,n,e){\"use strict\";var r=t(\"./parser/sequenceDiagram\").parser;r.yy=t(\"./sequenceDb\");var i=t(\"./svgDraw\"),a=t(\"../../d3\"),u=t(\"../../logger\"),o=new u.Log,s={diagramMarginX:50,diagramMarginY:30,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!1,bottomMarginAdj:1,activationWidth:10};e.bounds={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],init:function(){this.sequenceItems=[],this.activations=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,n,e,r){t[n]=\"undefined\"==typeof t[n]?e:r(e,t[n])},updateBounds:function(t,n,r,i){function a(a){return function(c){o++;var l=u.sequenceItems.length-o+1;\n\nu.updateVal(c,\"starty\",n-l*s.boxMargin,Math.min),u.updateVal(c,\"stopy\",i+l*s.boxMargin,Math.max),u.updateVal(e.bounds.data,\"startx\",t-l*s.boxMargin,Math.min),u.updateVal(e.bounds.data,\"stopx\",r+l*s.boxMargin,Math.max),\"activation\"!=a&&(u.updateVal(c,\"startx\",t-l*s.boxMargin,Math.min),u.updateVal(c,\"stopx\",r+l*s.boxMargin,Math.max),u.updateVal(e.bounds.data,\"starty\",n-l*s.boxMargin,Math.min),u.updateVal(e.bounds.data,\"stopy\",i+l*s.boxMargin,Math.max))}}var u=this,o=0;this.sequenceItems.forEach(a()),this.activations.forEach(a(\"activation\"))},insert:function(t,n,r,i){var a,u,o,s;a=Math.min(t,r),o=Math.max(t,r),u=Math.min(n,i),s=Math.max(n,i),this.updateVal(e.bounds.data,\"startx\",a,Math.min),this.updateVal(e.bounds.data,\"starty\",u,Math.min),this.updateVal(e.bounds.data,\"stopx\",o,Math.max),this.updateVal(e.bounds.data,\"stopy\",s,Math.max),this.updateBounds(a,u,o,s)},newActivation:function(t,n){var e=r.yy.getActors()[t.from.actor],a=h(t.from.actor).length,u=e.x+s.width/2+(a-1)*s.activationWidth/2;this.activations.push({startx:u,starty:this.verticalPos+2,stopx:u+s.activationWidth,stopy:void 0,actor:t.from.actor,anchored:i.anchorElement(n)})},endActivation:function(t){var n=this.activations.map(function(t){return t.actor}).lastIndexOf(t.from.actor),e=this.activations.splice(n,1)[0];return e},newLoop:function(t){this.sequenceItems.push({startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t})},endLoop:function(){var t=this.sequenceItems.pop();return t},addElseToLoop:function(t){var n=this.sequenceItems.pop();n.elsey=e.bounds.getVerticalPos(),n.elseText=t,this.sequenceItems.push(n)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}};var c=function(t,n,r,a,u){var o=i.getNoteRect();o.x=n,o.y=r,o.width=u||s.width,o[\"class\"]=\"note\";var c=t.append(\"g\"),l=i.drawRect(c,o),h=i.getTextObj();h.x=n-4,h.y=r-13,h.textMargin=s.noteMargin,h.dy=\"1em\",h.text=a.message,h[\"class\"]=\"noteText\";var f=i.drawText(c,h,o.width-s.noteMargin),d=f[0][0].getBBox().height;!u&&d>s.width?(f.remove(),c=t.append(\"g\"),f=i.drawText(c,h,2*o.width-s.noteMargin),d=f[0][0].getBBox().height,l.attr(\"width\",2*o.width),e.bounds.insert(n,r,n+2*o.width,r+2*s.noteMargin+d)):e.bounds.insert(n,r,n+o.width,r+2*s.noteMargin+d),l.attr(\"height\",d+2*s.noteMargin),e.bounds.bumpVerticalPos(d+2*s.noteMargin)},l=function(t,n,i,a,u){var o,c=t.append(\"g\"),l=n+(i-n)/2,h=c.append(\"text\").attr(\"x\",l).attr(\"y\",a-7).style(\"text-anchor\",\"middle\").attr(\"class\",\"messageText\").text(u.message);o=\"undefined\"!=typeof h[0][0].getBBox?h[0][0].getBBox().width:h[0][0].getBoundingClientRect();var f;if(n===i){f=c.append(\"path\").attr(\"d\",\"M \"+n+\",\"+a+\" C \"+(n+60)+\",\"+(a-10)+\" \"+(n+60)+\",\"+(a+30)+\" \"+n+\",\"+(a+20)),e.bounds.bumpVerticalPos(30);var d=Math.max(o/2,100);e.bounds.insert(n-d,e.bounds.getVerticalPos()-10,i+d,e.bounds.getVerticalPos())}else f=c.append(\"line\"),f.attr(\"x1\",n),f.attr(\"y1\",a),f.attr(\"x2\",i),f.attr(\"y2\",a),e.bounds.insert(n,e.bounds.getVerticalPos()-10,i,e.bounds.getVerticalPos());u.type===r.yy.LINETYPE.DOTTED||u.type===r.yy.LINETYPE.DOTTED_CROSS||u.type===r.yy.LINETYPE.DOTTED_OPEN?(f.style(\"stroke-dasharray\",\"3, 3\"),f.attr(\"class\",\"messageLine1\")):f.attr(\"class\",\"messageLine0\");var p=\"\";s.arrowMarkerAbsolute&&(p=window.location.protocol+\"//\"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\\(/g,\"\\\\(\"),p=p.replace(/\\)/g,\"\\\\)\")),f.attr(\"stroke-width\",2),f.attr(\"stroke\",\"black\"),f.style(\"fill\",\"none\"),(u.type===r.yy.LINETYPE.SOLID||u.type===r.yy.LINETYPE.DOTTED)&&f.attr(\"marker-end\",\"url(\"+p+\"#arrowhead)\"),(u.type===r.yy.LINETYPE.SOLID_CROSS||u.type===r.yy.LINETYPE.DOTTED_CROSS)&&f.attr(\"marker-end\",\"url(\"+p+\"#crosshead)\")};n.exports.drawActors=function(t,n,r,a){var u;for(u=0;u<r.length;u++){var o=r[u];n[o].x=u*s.actorMargin+u*s.width,n[o].y=a,n[o].width=s.diagramMarginX,n[o].height=s.diagramMarginY,i.drawActor(t,n[o].x,a,n[o].description,s),e.bounds.insert(n[o].x,a,n[o].x+s.width,s.height)}e.bounds.bumpVerticalPos(s.height)},n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){s[n]=t[n]})};var h=function(t){return n.exports.bounds.activations.filter(function(n){return n.actor==t})},f=function(t){var n=r.yy.getActors(),e=h(t),i=e.reduce(function(t,n){return Math.min(t,n.startx)},n[t].x+s.width/2),a=e.reduce(function(t,n){return Math.max(t,n.stopx)},n[t].x+s.width/2);return[i,a]};n.exports.draw=function(t,u){function h(t,n){var r=e.bounds.endActivation(t);r.starty+18>n&&(r.starty=n-6,n+=12),i.drawActivation(y,r,n,s),e.bounds.insert(r.startx,n-10,r.stopx,n)}r.yy.clear(),r.parse(t+\"\\n\"),e.bounds.init();var d,p,g,y=a.select(\"#\"+u),m=r.yy.getActors(),v=r.yy.getActorKeys(),_=r.yy.getMessages(),b=r.yy.getTitle();n.exports.drawActors(y,m,v,0),i.insertArrowHead(y),i.insertArrowCrossHead(y);var x;_.forEach(function(t){var n;switch(t.type){case r.yy.LINETYPE.NOTE:e.bounds.bumpVerticalPos(s.boxMargin),d=m[t.from].x,p=m[t.to].x,t.placement===r.yy.PLACEMENT.RIGHTOF?c(y,d+(s.width+s.actorMargin)/2,e.bounds.getVerticalPos(),t):t.placement===r.yy.PLACEMENT.LEFTOF?c(y,d-(s.width+s.actorMargin)/2,e.bounds.getVerticalPos(),t):t.to===t.from?c(y,d,e.bounds.getVerticalPos(),t):(g=Math.abs(d-p)+s.actorMargin,c(y,(d+p+s.width-g)/2,e.bounds.getVerticalPos(),t,g));break;case r.yy.LINETYPE.ACTIVE_START:e.bounds.newActivation(t,y);break;case r.yy.LINETYPE.ACTIVE_END:h(t,e.bounds.getVerticalPos());break;case r.yy.LINETYPE.LOOP_START:e.bounds.bumpVerticalPos(s.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin+s.boxTextMargin);break;case r.yy.LINETYPE.LOOP_END:n=e.bounds.endLoop(),i.drawLoop(y,n,\"loop\",s),e.bounds.bumpVerticalPos(s.boxMargin);break;case r.yy.LINETYPE.OPT_START:e.bounds.bumpVerticalPos(s.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin+s.boxTextMargin);break;case r.yy.LINETYPE.OPT_END:n=e.bounds.endLoop(),i.drawLoop(y,n,\"opt\",s),e.bounds.bumpVerticalPos(s.boxMargin);break;case r.yy.LINETYPE.ALT_START:e.bounds.bumpVerticalPos(s.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin+s.boxTextMargin);break;case r.yy.LINETYPE.ALT_ELSE:e.bounds.bumpVerticalPos(s.boxMargin),n=e.bounds.addElseToLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin);break;case r.yy.LINETYPE.ALT_END:n=e.bounds.endLoop(),i.drawLoop(y,n,\"alt\",s),e.bounds.bumpVerticalPos(s.boxMargin);break;default:try{x=t,e.bounds.bumpVerticalPos(s.messageMargin);var a=f(t.from),u=f(t.to),o=a[0]<=u[0]?1:0,v=a[0]<u[0]?0:1;d=a[o],p=u[v];var _=e.bounds.getVerticalPos();l(y,d,p,_,t);var b=a.concat(u);e.bounds.insert(Math.min.apply(null,b),_,Math.max.apply(null,b),_)}catch(w){console.error(\"error while drawing message\",w)}}}),s.mirrorActors&&(e.bounds.bumpVerticalPos(2*s.boxMargin),n.exports.drawActors(y,m,v,e.bounds.getVerticalPos()));var w=e.bounds.getBounds();o.debug(\"For line height fix Querying: #\"+u+\" .actor-line\");var A=a.selectAll(\"#\"+u+\" .actor-line\");A.attr(\"y2\",w.stopy);var k=w.stopy-w.starty+2*s.diagramMarginY;s.mirrorActors&&(k=k-s.boxMargin+s.bottomMarginAdj);var E=w.stopx-w.startx+2*s.diagramMarginX;b&&y.append(\"text\").text(b).attr(\"x\",(w.stopx-w.startx)/2-2*s.diagramMarginX).attr(\"y\",-25),s.useMaxWidth?(y.attr(\"height\",\"100%\"),y.attr(\"width\",\"100%\"),y.attr(\"style\",\"max-width:\"+E+\"px;\")):(y.attr(\"height\",k),y.attr(\"width\",E));var M=b?40:0;y.attr(\"viewBox\",w.startx-s.diagramMarginX+\" -\"+(s.diagramMarginY+M)+\" \"+E+\" \"+(k+M))}},{\"../../d3\":108,\"../../logger\":130,\"./parser/sequenceDiagram\":126,\"./sequenceDb\":127,\"./svgDraw\":129}],129:[function(t,n,e){\"use strict\";e.drawRect=function(t,n){var e=t.append(\"rect\");return e.attr(\"x\",n.x),e.attr(\"y\",n.y),e.attr(\"fill\",n.fill),e.attr(\"stroke\",n.stroke),e.attr(\"width\",n.width),e.attr(\"height\",n.height),e.attr(\"rx\",n.rx),e.attr(\"ry\",n.ry),\"undefined\"!=typeof n[\"class\"]&&e.attr(\"class\",n[\"class\"]),e},e.drawText=function(t,n,e){var r=n.text.replace(/<br\\/?>/gi,\" \"),i=t.append(\"text\");i.attr(\"x\",n.x),i.attr(\"y\",n.y),i.style(\"text-anchor\",n.anchor),i.attr(\"fill\",n.fill),\"undefined\"!=typeof n[\"class\"]&&i.attr(\"class\",n[\"class\"]);var a=i.append(\"tspan\");return a.attr(\"x\",n.x+2*n.textMargin),a.text(r),\"undefined\"!=typeof i.textwrap&&i.textwrap({x:n.x,y:n.y,width:e,height:1800},n.textMargin),i},e.drawLabel=function(t,n){var r=e.getNoteRect();r.x=n.x,r.y=n.y,r.width=50,r.height=20,r.fill=\"#526e52\",r.stroke=\"none\",r[\"class\"]=\"labelBox\",e.drawRect(t,r),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,n.fill=\"white\",e.drawText(t,n)};var r=-1;e.drawActor=function(t,n,i,a,u){var o=n+u.width/2,s=t.append(\"g\");0===i&&(r++,s.append(\"line\").attr(\"id\",\"actor\"+r).attr(\"x1\",o).attr(\"y1\",5).attr(\"x2\",o).attr(\"y2\",2e3).attr(\"class\",\"actor-line\").attr(\"stroke-width\",\"0.5px\").attr(\"stroke\",\"#999\"));var c=e.getNoteRect();c.x=n,c.y=i,c.fill=\"#eaeaea\",c.width=u.width,c.height=u.height,c[\"class\"]=\"actor\",c.rx=3,c.ry=3,e.drawRect(s,c),s.append(\"text\").attr(\"x\",o).attr(\"y\",i+u.height/2+5).attr(\"class\",\"actor\").style(\"text-anchor\",\"middle\").text(a)},e.anchorElement=function(t){return t.append(\"g\")},e.drawActivation=function(t,n,r){var i=e.getNoteRect(),a=n.anchored;i.x=n.startx,i.y=n.starty,i.fill=\"#f4f4f4\",i.width=n.stopx-n.startx,i.height=r-n.starty,e.drawRect(a,i)},e.drawLoop=function(t,n,r,i){var a=t.append(\"g\"),u=function(t,n,e,r){a.append(\"line\").attr(\"x1\",t).attr(\"y1\",n).attr(\"x2\",e).attr(\"y2\",r).attr(\"stroke-width\",2).attr(\"stroke\",\"#526e52\").attr(\"class\",\"loopLine\")};u(n.startx,n.starty,n.stopx,n.starty),u(n.stopx,n.starty,n.stopx,n.stopy),u(n.startx,n.stopy,n.stopx,n.stopy),u(n.startx,n.starty,n.startx,n.stopy),\"undefined\"!=typeof n.elsey&&u(n.startx,n.elsey,n.stopx,n.elsey);var o=e.getTextObj();o.text=r,o.x=n.startx,o.y=n.starty,o.labelMargin=15,o[\"class\"]=\"labelText\",o.fill=\"white\",e.drawLabel(a,o),o=e.getTextObj(),o.text=\"[ \"+n.title+\" ]\",o.x=n.startx+(n.stopx-n.startx)/2,o.y=n.starty+1.5*i.boxMargin,o.anchor=\"middle\",o[\"class\"]=\"loopText\",e.drawText(a,o),\"undefined\"!=typeof n.elseText&&(o.text=\"[ \"+n.elseText+\" ]\",o.y=n.elsey+1.5*i.boxMargin,e.drawText(a,o))},e.insertArrowHead=function(t){t.append(\"defs\").append(\"marker\").attr(\"id\",\"arrowhead\").attr(\"refX\",5).attr(\"refY\",2).attr(\"markerWidth\",6).attr(\"markerHeight\",4).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 0,0 V 4 L6,2 Z\")},e.insertArrowCrossHead=function(t){var n=t.append(\"defs\"),e=n.append(\"marker\").attr(\"id\",\"crosshead\").attr(\"markerWidth\",15).attr(\"markerHeight\",8).attr(\"orient\",\"auto\").attr(\"refX\",16).attr(\"refY\",4);e.append(\"path\").attr(\"fill\",\"black\").attr(\"stroke\",\"#000000\").style(\"stroke-dasharray\",\"0, 0\").attr(\"stroke-width\",\"1px\").attr(\"d\",\"M 9,2 V 6 L16,4 Z\"),e.append(\"path\").attr(\"fill\",\"none\").attr(\"stroke\",\"#000000\").style(\"stroke-dasharray\",\"0, 0\").attr(\"stroke-width\",\"1px\").attr(\"d\",\"M 0,1 L 6,7 M 6,1 L 0,7\")},e.getTextObj=function(){var t={x:0,y:0,fill:\"black\",\"text-anchor\":\"start\",style:\"#666\",width:100,height:100,textMargin:0,rx:0,ry:0};return t},e.getNoteRect=function(){var t={x:0,y:0,fill:\"#EDF2AE\",stroke:\"#666\",width:100,anchor:\"start\",height:100,rx:0,ry:0};return t}},{}],130:[function(t,n,e){\"use strict\";function r(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getSeconds(),i=t.getMilliseconds();10>n&&(n=\"0\"+n),10>e&&(e=\"0\"+e),10>r&&(r=\"0\"+r),100>i&&(i=\"0\"+i),10>i&&(i=\"00\"+i);var a=n+\":\"+e+\":\"+r+\" (\"+i+\")\";return a}function i(t){this.level=t,this.log=function(){var t=Array.prototype.slice.call(arguments),n=t.shift(),e=this.level;\"undefined\"==typeof e&&(e=u),n>=e&&\"undefined\"!=typeof console&&\"undefined\"!=typeof console.log&&(t.unshift(\"[\"+r(new Date)+\"] \"),console.log.apply(console,t.map(function(t){return\"object\"==typeof t?JSON.stringify(t,null,2):t})))},this.trace=function(){var t=Array.prototype.slice.call(arguments);t.unshift(a.trace),this.log.apply(this,t)},this.debug=function(){var t=Array.prototype.slice.call(arguments);t.unshift(a.debug),this.log.apply(this,t)},this.info=function(){var t=Array.prototype.slice.call(arguments);t.unshift(a.info),this.log.apply(this,t)},this.warn=function(){var t=Array.prototype.slice.call(arguments);t.unshift(a.warn),this.log.apply(this,t)},this.error=function(){var t=Array.prototype.slice.call(arguments);t.unshift(a.error),this.log.apply(this,t)}}var a={debug:1,info:2,warn:3,error:4,fatal:5,\"default\":5},u=a.error;e.setLogLevel=function(t){u=t},e.Log=i},{}],131:[function(t,n,e){(function(n){\"use strict\";var r=t(\"./logger\"),i=new r.Log,a=t(\"./diagrams/flowchart/graphDb\"),u=t(\"./utils\"),o=t(\"./diagrams/flowchart/flowRenderer\"),s=t(\"./diagrams/sequenceDiagram/sequenceRenderer\"),c=t(\"./diagrams/example/exampleRenderer\"),l=t(\"./diagrams/example/parser/example\"),h=t(\"./diagrams/flowchart/parser/flow\"),f=t(\"./diagrams/flowchart/parser/dot\"),d=t(\"./diagrams/sequenceDiagram/parser/sequenceDiagram\"),p=t(\"./diagrams/sequenceDiagram/sequenceDb\"),g=t(\"./diagrams/example/exampleDb\"),y=t(\"./diagrams/gantt/ganttRenderer\"),m=t(\"./diagrams/gantt/parser/gantt\"),v=t(\"./diagrams/gantt/ganttDb\"),_=t(\"./diagrams/classDiagram/parser/classDiagram\"),b=t(\"./diagrams/classDiagram/classRenderer\"),x=t(\"./diagrams/classDiagram/classDb\"),w=t(\"./diagrams/gitGraph/parser/gitGraph\"),A=t(\"./diagrams/gitGraph/gitGraphRenderer\"),k=t(\"./diagrams/gitGraph/gitGraphAst\"),E=t(\"./d3\");SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())};var M={logLevel:5,cloneCssStyles:!0,startOnLoad:!0,arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequenceDiagram:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'\"Open-Sans\", \"sans-serif\"',numberSectionStyles:3,axisFormatter:[[\"%I:%M\",function(t){return t.getHours()}],[\"w. %U\",function(t){return 1==t.getDay()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%m-%y\",function(t){return t.getMonth()}]]},classDiagram:{},gitGraph:{},info:{}};r.setLogLevel(M.logLevel);var S=function(t){var n,e=u.detectType(t);switch(e){case\"gitGraph\":n=w,n.parser.yy=k;break;case\"graph\":n=h,n.parser.yy=a;break;case\"dotGraph\":n=f,n.parser.yy=a;break;case\"sequenceDiagram\":n=d,n.parser.yy=p;break;case\"info\":n=l,n.parser.yy=g;break;case\"gantt\":n=m,n.parser.yy=v;break;case\"classDiagram\":n=_,n.parser.yy=x}try{return n.parse(t),!0}catch(r){return!1}};e.parse=S,e.version=function(){return t(\"../package.json\").version},e.encodeEntities=function(t){var n=t;return n=n.replace(/style.*:\\S*#.*;/g,function(t){var n=t.substring(0,t.length-1);return n}),n=n.replace(/classDef.*:\\S*#.*;/g,function(t){var n=t.substring(0,t.length-1);return n}),n=n.replace(/#\\w+\\;/g,function(t){var n=t.substring(1,t.length-1),e=/^\\+?\\d+$/.test(n);return e?\"fl°°\"+n+\"¶ß\":\"fl°\"+n+\"¶ß\"})},e.decodeEntities=function(t){var n=t;return n=n.replace(/\\fl\\°\\°/g,function(){return\"&#\"}),n=n.replace(/\\fl\\°/g,function(){return\"&\"}),n=n.replace(/¶ß/g,function(){return\";\"})};var D=function(t,n,r,l){\"undefined\"!=typeof l?E.select(l).append(\"div\").attr(\"id\",\"d\"+t).append(\"svg\").attr(\"id\",t).attr(\"width\",\"100%\").attr(\"xmlns\",\"http://www.w3.org/2000/svg\").append(\"g\"):E.select(\"body\").append(\"div\").attr(\"id\",\"d\"+t).append(\"svg\").attr(\"id\",t).attr(\"width\",\"100%\").attr(\"xmlns\",\"http://www.w3.org/2000/svg\").append(\"g\"),window.txt=n,n=e.encodeEntities(n);var h=E.select(\"#d\"+t).node(),f=u.detectType(n),d={};switch(f){case\"gitGraph\":M.flowchart.arrowMarkerAbsolute=M.arrowMarkerAbsolute,A.setConf(M.gitGraph),A.draw(n,t,!1);break;case\"graph\":M.flowchart.arrowMarkerAbsolute=M.arrowMarkerAbsolute,o.setConf(M.flowchart),o.draw(n,t,!1),M.cloneCssStyles&&(d=o.getClasses(n,!1),u.cloneCssStyles(h.firstChild,d));break;case\"dotGraph\":M.flowchart.arrowMarkerAbsolute=M.arrowMarkerAbsolute,o.setConf(M.flowchart),o.draw(n,t,!0),M.cloneCssStyles&&(d=o.getClasses(n,!0),u.cloneCssStyles(h.firstChild,d));break;case\"sequenceDiagram\":M.sequenceDiagram.arrowMarkerAbsolute=M.arrowMarkerAbsolute,s.setConf(M.sequenceDiagram),s.draw(n,t),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[]);break;case\"gantt\":M.gantt.arrowMarkerAbsolute=M.arrowMarkerAbsolute,y.setConf(M.gantt),y.draw(n,t),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[]);break;case\"classDiagram\":M.classDiagram.arrowMarkerAbsolute=M.arrowMarkerAbsolute,b.setConf(M.classDiagram),b.draw(n,t),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[]);break;case\"info\":M.info.arrowMarkerAbsolute=M.arrowMarkerAbsolute,c.draw(n,t,e.version()),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[])}E.select(\"#d\"+t).selectAll(\"foreignobject div\").attr(\"xmlns\",\"http://www.w3.org/1999/xhtml\");var p=\"\";M.arrowMarkerAbsolute&&(p=window.location.protocol+\"//\"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\\(/g,\"\\\\(\"),p=p.replace(/\\)/g,\"\\\\)\"));var g=E.select(\"#d\"+t).node().innerHTML.replace(/url\\(#arrowhead/g,\"url(\"+p+\"#arrowhead\",\"g\");g=e.decodeEntities(g),\"undefined\"!=typeof r?r(g,a.bindFunctions):i.warn(\"CB = undefined!\");var m=E.select(\"#d\"+t).node();return null!==m&&\"function\"==typeof m.remove&&E.select(\"#d\"+t).node().remove(),g};e.render=function(t,n,e,r){try{if(1===arguments.length&&(n=t,t=\"mermaidId0\"),\"undefined\"!=typeof document)return D(t,n,e,r)}catch(a){i.warn(a)}};var C=function(t){var n,e=Object.keys(t);for(n=0;n<e.length;n++)if(\"object\"==typeof t[e[n]]){var r,a=Object.keys(t[e[n]]);for(r=0;r<a.length;r++)i.debug(\"Setting conf \",e[n],\"-\",a[r]),\"undefined\"==typeof M[e[n]]&&(M[e[n]]={}),i.debug(\"Setting config: \"+e[n]+\" \"+a[r]+\" to \"+t[e[n]][a[r]]),M[e[n]][a[r]]=t[e[n]][a[r]]}else M[e[n]]=t[e[n]]};e.initialize=function(t){i.debug(\"Initializing mermaidAPI\"),\"object\"==typeof t&&C(t),r.setLogLevel(M.logLevel)},e.getConfig=function(){return M},e.parseError=function(t,e){\"undefined\"!=typeof mermaid?n.mermaid.parseError(t,e):(i.debug(\"Mermaid Syntax error:\"),i.debug(t))},n.mermaidAPI={render:e.render,parse:e.parse,initialize:e.initialize,detectType:u.detectType,parseError:e.parseError,getConfig:e.getConfig}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../package.json\":107,\"./d3\":108,\"./diagrams/classDiagram/classDb\":109,\"./diagrams/classDiagram/classRenderer\":110,\"./diagrams/classDiagram/parser/classDiagram\":111,\"./diagrams/example/exampleDb\":112,\"./diagrams/example/exampleRenderer\":113,\"./diagrams/example/parser/example\":114,\"./diagrams/flowchart/flowRenderer\":116,\"./diagrams/flowchart/graphDb\":117,\"./diagrams/flowchart/parser/dot\":118,\"./diagrams/flowchart/parser/flow\":119,\"./diagrams/gantt/ganttDb\":120,\"./diagrams/gantt/ganttRenderer\":121,\"./diagrams/gantt/parser/gantt\":122,\"./diagrams/gitGraph/gitGraphAst\":123,\"./diagrams/gitGraph/gitGraphRenderer\":124,\"./diagrams/gitGraph/parser/gitGraph\":125,\"./diagrams/sequenceDiagram/parser/sequenceDiagram\":126,\"./diagrams/sequenceDiagram/sequenceDb\":127,\"./diagrams/sequenceDiagram/sequenceRenderer\":128,\"./logger\":130,\"./utils\":132}],132:[function(t,n,e){\"use strict\";var r=t(\"./logger\"),i=new r.Log,a=function(t){return t=t.replace(/^\\s*%%.*\\n/g,\"\\n\"),t.match(/^\\s*sequenceDiagram/)?\"sequenceDiagram\":t.match(/^\\s*digraph/)?\"dotGraph\":t.match(/^\\s*info/)?\"info\":t.match(/^\\s*gantt/)?\"gantt\":t.match(/^\\s*classDiagram/)?(i.debug(\"Detected classDiagram syntax\"),\"classDiagram\"):t.match(/^\\s*gitGraph/)?(i.debug(\"Detected gitGraph syntax\"),\"gitGraph\"):\"graph\"};e.detectType=a;var u=function(t,n){for(var e,r=\"\",a=document.styleSheets,u=0;u<a.length;u++)if(\"mermaid-svg-internal-css\"!==a[u].title)try{var o=a[u].cssRules;if(null!==o)for(var s=0;s<o.length;s++)if(e=o[s],\"undefined\"!=typeof e.style){var c;c=t.querySelectorAll(e.selectorText),c.length>0&&(r+=e.selectorText+\" { \"+e.style.cssText+\"}\\n\")}}catch(l){\"undefined\"!=typeof e&&i.warn('Invalid CSS selector \"'+e.selectorText+'\"',l)}var h=\"\",f=\"\";for(var d in n)n.hasOwnProperty(d)&&\"undefined\"!=typeof d&&(\"default\"===d?(n[\"default\"].styles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .node>rect { \"+n[d].styles.join(\"; \")+\"; }\\n\"),n[\"default\"].nodeLabelStyles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .node text { \"+n[d].nodeLabelStyles.join(\"; \")+\"; }\\n\"),n[\"default\"].edgeLabelStyles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .edgeLabel text { \"+n[d].edgeLabelStyles.join(\"; \")+\"; }\\n\"),n[\"default\"].clusterStyles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .cluster rect { \"+n[d].clusterStyles.join(\"; \")+\"; }\\n\")):n[d].styles instanceof Array&&(f+=\"#\"+t.id.trim()+\" .\"+d+\">rect, .\"+d+\">polygon, .\"+d+\">ellipse { \"+n[d].styles.join(\"; \")+\"; }\\n\"));if(\"\"!==r||\"\"!==h||\"\"!==f){var p=document.createElement(\"style\");p.setAttribute(\"type\",\"text/css\"),p.setAttribute(\"title\",\"mermaid-svg-internal-css\"),p.innerHTML=\"/* <![CDATA[ */\\n\",\"\"!==h&&(p.innerHTML+=h),\"\"!==r&&(p.innerHTML+=r),\"\"!==f&&(p.innerHTML+=f),p.innerHTML+=\"/* ]]> */\\n\",t.insertBefore(p,t.firstChild)}};e.cloneCssStyles=u},{\"./logger\":130}]},{},[131])(131)});\n})($tw.node ? $tw.fakeDocument : window.document)\n"
},
"$:/plugins/gt6796c/flowchart-tw5/mermaid.dark.css": {
"type": "text/css",
"title": "$:/plugins/gt6796c/flowchart-tw5/mermaid.dark.css",
"tags": "$:/tags/Stylesheet",
"text": "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.mermaid .label {\n color: #323D47;\n}\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #BDD5EA;\n stroke: #81B1DB;\n stroke-width: 1px;\n}\n.edgePath .path {\n stroke: lightgrey;\n}\n.edgeLabel {\n background-color: #e8e8e8;\n}\n.cluster rect {\n fill: #6D6D65 !important;\n rx: 4 !important;\n stroke: rgba(255, 255, 255, 0.25) !important;\n stroke-width: 1px !important;\n}\n.cluster text {\n fill: #F9FFFE;\n}\n.actor {\n stroke: #81B1DB;\n fill: #BDD5EA;\n}\ntext.actor {\n fill: black;\n stroke: none;\n}\n.actor-line {\n stroke: lightgrey;\n}\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: lightgrey;\n}\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n stroke: lightgrey;\n}\n#arrowhead {\n fill: lightgrey !important;\n}\n#crosshead path {\n fill: lightgrey !important;\n stroke: lightgrey !important;\n}\n.messageText {\n fill: lightgrey;\n stroke: none;\n}\n.labelBox {\n stroke: #81B1DB;\n fill: #BDD5EA;\n}\n.labelText {\n fill: #323D47;\n stroke: none;\n}\n.loopText {\n fill: lightgrey;\n stroke: none;\n}\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: #81B1DB;\n}\n.note {\n stroke: rgba(255, 255, 255, 0.25);\n fill: #fff5ad;\n}\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2;\n}\n.section0 {\n fill: rgba(255, 255, 255, 0.3);\n}\n.section2 {\n fill: #EAE8B9;\n}\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2;\n}\n.sectionTitle0 {\n fill: #F9FFFE;\n}\n.sectionTitle1 {\n fill: #F9FFFE;\n}\n.sectionTitle2 {\n fill: #F9FFFE;\n}\n.sectionTitle3 {\n fill: #F9FFFE;\n}\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n}\n/* Grid and axis */\n.grid .tick {\n stroke: rgba(255, 255, 255, 0.3);\n opacity: 0.3;\n shape-rendering: crispEdges;\n}\n.grid .tick text {\n fill: lightgrey;\n opacity: 0.5;\n}\n.grid path {\n stroke-width: 0;\n}\n/* Today line */\n.today {\n fill: none;\n stroke: #DB5757;\n stroke-width: 2px;\n}\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 1;\n}\n.taskText {\n text-anchor: middle;\n font-size: 11px;\n}\n.taskTextOutsideRight {\n fill: #323D47;\n text-anchor: start;\n font-size: 11px;\n}\n.taskTextOutsideLeft {\n fill: #323D47;\n text-anchor: end;\n font-size: 11px;\n}\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: #323D47;\n}\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #BDD5EA;\n stroke: rgba(255, 255, 255, 0.5);\n}\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: lightgrey;\n}\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: lightgrey;\n}\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #81B1DB;\n stroke: rgba(255, 255, 255, 0.5);\n}\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: #323D47 !important;\n}\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n fill: lightgrey;\n}\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: #323D47 !important;\n}\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #E83737;\n fill: #E83737;\n stroke-width: 2;\n}\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #E83737;\n fill: #81B1DB;\n stroke-width: 2;\n}\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #E83737;\n fill: lightgrey;\n stroke-width: 1;\n cursor: pointer;\n shape-rendering: crispEdges;\n}\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: lightgrey !important;\n}\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: #323D47 !important;\n}\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: lightgrey;\n}\n/*\n\n\n*/\n.node text {\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #6D6D65;\n border: 1px solid rgba(255, 255, 255, 0.25);\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n}\n"
},
"$:/plugins/gt6796c/flowchart-tw5/readme": {
"title": "$:/plugins/gt6796c/flowchart-tw5/readme",
"text": "This is a TiddlyWiki plugin for using flowchart.js and sequence-diagram.js\n\nIt is completely self-contained, and doesn't need an Internet connection in order to work. It works both in the browser and under Node.js.\n\nIt is currently based on [[flowchart.js v.1.6.3|http://flowchart.js.org]] and [[js-sequence-diagrams v1.0.6|https://bramp.github.io/js-sequence-diagrams/]]\n\n[[Source code|https://github.com/gt6796c/flowchart-tw5]]"
},
"$:/plugins/gt6796c/flowchart-tw5/typed-parser.js": {
"text": "/*\\\ntitle: $:/plugins/gt6796c/flowchart-tw5/typed-parser.js\ntype: application/javascript\nmodule-type: parser\n\nThis parser wraps unadorned railroad syntax into a railroad widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar FlowchartParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"flowchart\",\n\t\t\ttag: \"$flowchart\",\n\t\t\ttext: text\n\t\t};\n\tthis.tree = [element];\n};\n\nexports[\"text/vnd.tiddlywiki.flowchart\"] = FlowchartParser;\n\t\n\tvar SequenceDiagramParser = function(type,text,options) {\n\t\tvar element = {\n\t\t\ttype: \"seqdiag\",\n\t\t\ttag: \"$seqdiag\",\n\t\t\ttext: text\n\t\t};\n\t\tthis.tree = [element];\n\t};\n\n\texports[\"text/vnd.tiddlywiki.seqdiag\"] = SequenceDiagramParser;\n\n})();\n\n",
"title": "$:/plugins/gt6796c/flowchart-tw5/typed-parser.js",
"type": "application/javascript",
"module-type": "parser"
},
"$:/plugins/gt6796c/flowchart-tw5/usage": {
"title": "$:/plugins/gt6796c/flowchart-tw5/usage",
"text": "!flowchart.js\nUse the ``<$flowchart>`` widget and place the flowchart commands within it. Any of the options that could be specified\nin the ``.drawSVG()`` options can be specified as JSON-encoded values in attributes of the same name on the widget. The\nvalues of the attributes can also be the title of Data Tiddlers and the values will be used from the referenced Tiddler.\nYou can set the type of a Tiddler to text/vnd.tiddlywiki.flowchart and use the native commands directly in the Tiddler body. You can\nadd fields that are the names below prefixed with 'flowchart'. So \"scale\" becomes \"flowchart-scale\"\n\nThe available options are as follows (example values are provided)\n\n;x\n: appears to be overall width of drawing (0)\n;y\n:appears to be overall height of drawing (0)\n;line-width\n:(3)\n;line-length\n:(50)\n;text-margin\n;(10,kkuu)\n;font-size\n:(14)\n;font-color\n;(black)\n;line-color\n:(black)\n;element-color\n:(black)\n;fill\n:(white)\n;yes-text\n:(yes)\n;no-text\n:(no)\n;arrow-end\n:(block)\n;scale\n:(1)\n;direction\n: default direction for links. Values are 'right' or 'bottom' (\"bottom\")\n\nSymbols can be styled with the same attributes with a dictionary containing the symbol names and a nested dictionary with the styles attributes.\n\n```\n\"symbols\" = {\n \"start\" : { \"font-color\" : \"red\", \"element-color\" : \"green\", \"fill\" : \"yellow\"; },\n \"end\" : { \"class\" : \"end-element\" }\n}\n```\n\nNodes can also be styled with these attributes using flowstate\n\n```\n\"flowstate\" =\n{\n \"past\" : { \"fill\" : \"#CCCCCC) \"font-size\" : 12},\n \"current\" : {\"fill\" : \"yellow) \"font-color\" : \"red) \"font-weight\" : \"bold\"},\n \"future\" : { \"fill\" : \"#FFFF99\"},\n \"request\" : { \"fill\" : \"blue\"},\n \"invalid\": {\"fill\" : \"#444444\"},\n \"approved\" : { \"fill\" : \"#58C4A3) \"font-size\" : 12, \"yes-text\" : \"APPROVED) \"no-text\" : \"n/a\" },\n \"rejected\" : { \"fill\" : \"#C45879) \"font-size\" : 12, \"yes-text\" : \"n/a) \"no-text\" : \"REJECTED\" }\n}\n```\n\n!!Notes\n*JSON encoding only allows double-quotes ``\"`` as string delimiters\n*JSON encoding requires double-quotes around single string values\n\n!js-sequence-diagram\nUse the ``<$seqdiag>`` widget and place the js-sequence-diagram commands within it. Any of the options that can be specified\nin the ``.drawSVG()`` options variable can be specified as JSON-encoded values in attributes of the same name on the widgets.\nThe values of the attributes can also be the title of Data Tiddlers and the values will be used from the referenced Tiddler.\nYou can set the type of a Tiddler to text/vnd.tiddlywiki.seqdiag and use the native commands directly in the Tiddler body. You can\nadd fields that are the names below prefixed with 'seqdiag'. So \"theme\" becomes \"seqdiag-theme\"\n\n!!Notes\n*JSON encoding only allows double-quotes ``\"`` as string delimiters\n*JSON encoding requires double-quotes around single string values\n"
},
"$:/plugins/gt6796c/flowchart-tw5/wrapper.js": {
"text": "/*\\\ntitle: $:/plugins/gt6796c/flowchart-tw5/wrapper.js\ntype: application/javascript\nmodule-type: widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n var uniqueID = 1;\n\n var Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n if ($tw.browser && !window.Raphael) {\n window.eve = require(\"$:/plugins/gt6796c/flowchart-tw5/eve.js\");\n window.Raphael = require(\"$:/plugins/gt6796c/flowchart-tw5/raphael.js\");\n window.flowchart = require(\"$:/plugins/gt6796c/flowchart-tw5/flowchart.js\");\n window._ = require(\"$:/plugins/gt6796c/flowchart-tw5/underscore.js\");\n window.Diagram = require(\"$:/plugins/gt6796c/flowchart-tw5/sequence-diagram.js\");\n }\n if ($tw.browser && !window.mermaidAPI) {\n require(\"$:/plugins/gt6796c/flowchart-tw5/mermaidAPI.js\").mermaidAPI;\n }\n\n var FlowchartWidget = function(parseTreeNode, options) {\n this.initialise(parseTreeNode, options);\n };\n\n FlowchartWidget.prototype = new Widget();\n\n function getScriptBody(src,tag)\n {\n var scriptBody= src.getAttribute(\"text\", src.parseTreeNode.text || \"\");\n\n if (src.parseTreeNode.text) {\n scriptBody = src.parseTreeNode.text;\n }\n else if (src.parseTreeNode.children)\n {\n var kids = src.parseTreeNode.children;\n for (var k in kids)\n {\n var kk = kids[k];\n switch(kk.type)\n {\n // no wikiparsing found\n case \"text\":\n scriptBody += kk.text; break;\n // internal link, make it a permalink reference\n case \"link\":\n scriptBody += \"#\" + kk.children[0].text; break;\n // -- gets interpreted as an HTML element, we don't want that\n case \"entity\":\n switch(kk.entity)\n {\n case \"–\":\n scriptBody+=\"--\"; break;\n };\n break;\n // just re-write it back out\n case \"element\":\n switch (kk.tag)\n {\n case \"a\":\n scriptBody+=kk.children[0].text;\n }\n };\n }\n }\n else {\n scriptBody = \"\";\n }\n\n return scriptBody;\n\n };\n\n function getCanvas(src,tag)\n {\n var height = src.getAttribute(\"height\");\n var width = src.getAttribute(\"width\");\n\n var divNode = src.document.createElement(\"div\");\n var style = \"\";\n if (height) style +=\" height:\"+height;\n if (width) style +=\" width:\"+width;\n if (style) divNode.setAttribute(\"style\", style);\n divNode.setAttribute(\"id\", tag+\"_\" + uniqueID);\n\n uniqueID++;\n return divNode;\n };\n\n function getOptions(src, tag, options)\n {\n try {\n // try to set options from fields on tiddler first\n // [tag-xxx]\n var tt = src.getVariable('currentTiddler');\n if (tt) {\n var t = src.wiki.getTiddler(tt);\n if (t)\n {\n for (var f in t.fields) {\n var fi = f.indexOf(tag);\n if (fi != 0) continue;\n var k = f.substring(tag.length+1);\n var v = t.fields[f];\n // try as JSON\n try {\n options[k] = JSON.parse(v);\n }\n // last attempt is just a string\n catch (ex) {\n options[k] = v;\n }\n }\n }\n }\n // treat any attributes as JSON representations of options\n // for the object\n for (var att in src.attributes) {\n // we already used these in the div definition\n if (att == \"height\" || att == \"width\") continue;\n\n var attval = src.getAttribute(att);\n // allow for data from named tiddlers\n if ($tw.wiki.tiddlerExists(attval))\n {\n var data = $tw.wiki.getTiddlerData(attval);\n options[att] = data;\n }\n else {\n // try as JSON\n try { options[att] = JSON.parse(attval); }\n // last attempt is just a string\n catch (ex) { options[att] = attval; }\n }\n }\n }\n catch (ex) { console.error(ex); }\n\n return options;\n\n };\n\n /*\n Render this widget into the DOM\n */\n FlowchartWidget.prototype.render = function(parent,nextSibling) {\n this.parentDomNode = parent;\n this.computeAttributes();\n this.execute();\n\n var tag = 'flowchart';\n var scriptBody = getScriptBody(this,tag);\n var divNode = getCanvas(this,tag);\n parent.insertBefore(divNode, nextSibling);\n try {\n var options = {};\n getOptions(this, tag, options);\n \n var symbolFactory = function (id) {\n switch(id)\n {\n case \"foo\":\n var Foo = function(Symbol, chart, options) {\n var symbol = chart.paper.rect(0, 0, 0, 0, 20);\n options = options || {}, options.text = options.text || \"Foo\", Symbol.call(this, chart, options, symbol);\n }\n return Foo;\n }\n }\n var diagram = flowchart.parse(scriptBody, symbolFactory);\n diagram.drawSVG(divNode.id, options);\n }\n catch(ex)\n {\n divNode.innerText = ex;\n }\n\n this.domNodes.push(divNode);\n };\n\n FlowchartWidget.prototype.execute = function() {\n // Nothing to do\n };\n\n /*\n Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n */\n FlowchartWidget.prototype.refresh = function(changedTiddlers) {\n return false;\n };\n\n exports.flowchart = FlowchartWidget;\n\n var SequenceDiagramWidget = function(parseTreeNode, options) {\n this.initialise(parseTreeNode, options);\n };\n\n SequenceDiagramWidget.prototype = new Widget();\n \n /*\n Render this widget into the DOM\n */\n SequenceDiagramWidget.prototype.render = function(parent,nextSibling) {\n this.parentDomNode = parent;\n this.computeAttributes();\n this.execute();\n \n var tag = 'seqdiag';\n var scriptBody = getScriptBody(this,tag);\n var divNode = getCanvas(this,tag);\n parent.insertBefore(divNode, nextSibling);\n try {\n var options = {'theme' : 'simple'};\n getOptions(this, tag, options);\n var diagram = Diagram.parse(scriptBody);\n diagram.drawSVG(divNode.id, options); \n }\n catch(ex)\n {\n divNode.innerText = ex;\n }\n \n this.domNodes.push(divNode);\n };\n\n SequenceDiagramWidget.prototype.execute = function() {\n // Nothing to do\n };\n \n /*\n Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n */\n SequenceDiagramWidget.prototype.refresh = function(changedTiddlers) {\n return false;\n };\n\n exports.seqdiag = SequenceDiagramWidget;\n\n var MermaidWidget = function(parseTreeNode, options) {\n this.initialise(parseTreeNode, options);\n };\n\n MermaidWidget.prototype = new Widget();\n\n /*\n Render this widget into the DOM\n */\n MermaidWidget.prototype.render = function(parent,nextSibling) {\n this.parentDomNode = parent;\n this.computeAttributes();\n this.execute();\n\n var tag = 'mermaid';\n var scriptBody = getScriptBody(this,tag);\n var divNode = getCanvas(this,tag);\n var _insertSVG = function(svgCode, bindFunctions) {\n divNode.innerHTML = svgCode;\n }\n try {\n var options = {'theme' : 'simple'};\n getOptions(this, tag, options);\n mermaidAPI.render(divNode.id, scriptBody, _insertSVG);\n }\n catch(ex)\n {\n divNode.innerText = ex;\n }\n parent.insertBefore(divNode, nextSibling);\n\n this.domNodes.push(divNode);\n };\n\n MermaidWidget.prototype.execute = function() {\n // Nothing to do\n };\n\n /*\n Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n */\n MermaidWidget.prototype.refresh = function(changedTiddlers) {\n return false;\n };\n\n exports.mermaid = MermaidWidget;\n\n})();\n",
"title": "$:/plugins/gt6796c/flowchart-tw5/wrapper.js",
"type": "application/javascript",
"module-type": "widget"
}
}
}
{
"tiddlers": {
"$:/plugins/gt6796c/graph-tw5/example": {
"title": "$:/plugins/gt6796c/graph-tw5/example",
"text": "Notation\n\n```\n<$graph color='blue' thickness='1' minX=\"0\" minY=\"-6\" maxY=\"6\" equation=\"\nreturn 5 * Math.sin(x)\n \">\n</$graph>\n```\nResults\n\n<$graph color='blue' thickness='1' minX=\"0\" minY=\"-6\" maxY=\"6\" equation=\"\n5 * Math.sin(x)\n \">\n</$graph>\n\nNotation for multiple functions in one graph\n\n```\n<$graph color='[\"red\",\"blue\",\"green\"]' unitsPerTick=\"2\" minX=\"0\" minY=\"-6\" maxY=\"6\">\n5 * Math.sin(x)\n1/x\nx*x+x\n</$graph>\n```\nResults\n\n<$graph color='[\"red\",\"blue\",\"green\"]' unitsPerTick=\"2\" minX=\"0\" minY=\"-6\" maxY=\"6\">\n5 * Math.sin(x)\n1/x\nx*x+x\n</$graph>\n\nNotation for points and point sets in one graph (Note the space between the two opening array brackets. This is to prevent TiddlyWiki from treating it as a Tiddler.)\n\n```\n<$graph color='[\"red\",\"blue\",\"green\"]' minX=\"0\" minY=\"0\">\nx+3\n[2,2]\n[ [3,2],[4,1],[2,5] ]\n</$graph>\n```\nResults\n\n<$graph color='[\"red\",\"blue\",\"green\"]' minX=\"0\" minY=\"0\">\nx+3\n[2,2]\n[ [3,2],[4,1],[2,5] ]\n</$graph>\n\nYou can even do things like limits on your functions like this:\n(Note that the entire clause must not have any newlines in it)\n\n```\n<$graph color='blue' thickness='1' bounds=\"[0,-6,10,6]\" equation=\"\nx < /*lower*/ Math.PI/2 ? undefined : /*upper*/ x > 5*Math.PI/2 ? undefined : /*function*/ 5 * Math.sin(x)\n\">\n</$graph>\n```\n\nResults\n\n<$graph color='blue' thickness='1' bounds=\"[0,-6,10,6]\" equation=\"\nx < /*lower*/ Math.PI/2 ? undefined : /*upper*/ x > 5*Math.PI/2 ? undefined : /*function*/ 5 * Math.sin(x)\n\">\n</$graph>\n"
},
"$:/plugins/gt6796c/graph-tw5/graph.js": {
"text": "/*\\\ntitle: $:/plugins/gt6796c/graph-tw5/graph.js\ntype: application/javascript\nmodule-type: lib\n\n\\*/\n// Based on http://www.html5canvastutorials.com/labs/html5-canvas-graphing-an-equation/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n\n function Graph() { }\n\n Graph.prototype.configure = function(config) {\n // user defined properties\n this.canvas = config.canvas;\n this.minX = config.minX;\n this.minY = config.minY;\n this.maxX = config.maxX;\n this.maxY = config.maxY;\n this.unitsPerTick = config.unitsPerTick;\n\n // constants\n this.axisColor = '#aaa';\n this.font = '8pt Calibri';\n this.tickSize = 20;\n\n // relationships\n this.context = this.canvas.getContext('2d');\n this.rangeX = this.maxX - this.minX;\n this.rangeY = this.maxY - this.minY;\n this.unitX = this.canvas.width / this.rangeX;\n this.unitY = this.canvas.height / this.rangeY;\n this.centerY = Math.round(Math.abs(this.minY / this.rangeY) * this.canvas.height);\n this.centerX = Math.round(Math.abs(this.minX / this.rangeX) * this.canvas.width);\n this.iteration = (this.maxX - this.minX) / 1000;\n\n if (typeof(config.step) != \"undefined\")\n {\n // don't let absurd values through\n var step = parseFloat(config.step);\n if (step >= this.iteration)\n this.iteration=step;\n }\n\n this.scaleX = this.canvas.width / this.rangeX;\n this.scaleY = this.canvas.height / this.rangeY;\n\n // draw x and y axis\n this.drawXAxis();\n this.drawYAxis();\n }\n\n Graph.prototype.drawXAxis = function() {\n var context = this.context;\n var ypos = this.canvas.height - this.centerY;\n context.save();\n context.beginPath();\n context.moveTo(0, ypos);\n context.lineTo(this.canvas.width, ypos);\n context.strokeStyle = this.axisColor;\n context.lineWidth = 2;\n context.stroke();\n\n // draw tick marks\n var xPosIncrement = this.unitsPerTick * this.unitX;\n var xPos, unit;\n context.font = this.font;\n context.textAlign = 'center';\n context.textBaseline = 'top';\n\n // draw left tick marks\n xPos = this.centerX - xPosIncrement;\n unit = -1 * this.unitsPerTick;\n while(xPos > 0) {\n context.moveTo(xPos, ypos - this.tickSize / 2);\n context.lineTo(xPos, ypos + this.tickSize / 2);\n context.stroke();\n context.fillText(unit, xPos, ypos + this.tickSize / 2 + 3);\n unit -= this.unitsPerTick;\n xPos = Math.round(xPos - xPosIncrement);\n }\n\n // draw right tick marks\n xPos = this.centerX + xPosIncrement;\n unit = this.unitsPerTick;\n while(xPos < this.canvas.width) {\n context.moveTo(xPos, ypos - this.tickSize / 2);\n context.lineTo(xPos, ypos + this.tickSize / 2);\n context.stroke();\n context.fillText(unit, xPos, ypos + this.tickSize / 2 + 3);\n unit += this.unitsPerTick;\n xPos = Math.round(xPos + xPosIncrement);\n }\n context.restore();\n };\n\n Graph.prototype.drawYAxis = function() {\n var context = this.context;\n var ypos = this.canvas.height - this.centerY;\n context.save();\n context.beginPath();\n context.moveTo(this.centerX, 0);\n context.lineTo(this.centerX, this.canvas.height);\n context.strokeStyle = this.axisColor;\n context.lineWidth = 2;\n context.stroke();\n\n // draw tick marks\n var yPosIncrement = this.unitsPerTick * this.unitY;\n var yPos, unit;\n context.font = this.font;\n context.textAlign = 'right';\n context.textBaseline = 'middle';\n\n // draw top tick marks\n yPos = ypos - yPosIncrement;\n unit = this.unitsPerTick;\n while(yPos > 0) {\n context.moveTo(this.centerX - this.tickSize / 2, yPos);\n context.lineTo(this.centerX + this.tickSize / 2, yPos);\n context.stroke();\n context.fillText(unit, this.centerX - this.tickSize / 2 - 3, yPos);\n unit += this.unitsPerTick;\n yPos = Math.round(yPos - yPosIncrement);\n }\n\n // draw bottom tick marks\n yPos = ypos + yPosIncrement;\n unit = -1 * this.unitsPerTick;\n while(yPos < this.canvas.height) {\n context.moveTo(this.centerX - this.tickSize / 2, yPos);\n context.lineTo(this.centerX + this.tickSize / 2, yPos);\n context.stroke();\n context.fillText(unit, this.centerX - this.tickSize / 2 - 3, yPos);\n unit -= this.unitsPerTick;\n yPos = Math.round(yPos + yPosIncrement);\n }\n context.restore();\n };\n\n Graph.prototype.drawEquation = function(equation, color, thickness) {\n var context = this.context;\n context.save();\n context.save();\n this.transformContext();\n\n context.beginPath();\n context.moveTo(this.minX, equation(this.minX));\n\n var result = equation(this.minX.toFixed(4));\n // see if they've passed an array for points\n if (result instanceof Array)\n {\n // if what they sent is not an array of arrays (multiple points)\n // go ahead and wrap it so we have one code path\n var points = result[0] instanceof Array ? result : [result];\n var w = this.scaleY*this.iteration/3;\n var z = this.scaleX*this.iteration/3;\n for (var pi=0;pi<points.length;++pi)\n {\n var px = points[pi][0];\n var py = points[pi][1];\n context.fillStyle = color;\n context.fillRect(px-w,py-z,2*w,2*z);\n }\n\n }\n else {\n for (var x = this.minX + this.iteration; x <= this.maxX; x += this.iteration) {\n result = equation(x.toFixed(4));\n if (isFinite(result))\n context.lineTo(x, equation(x));\n }\n }\n\n context.restore();\n context.lineJoin = 'round';\n context.lineWidth = thickness;\n context.strokeStyle = color;\n context.stroke();\n context.restore();\n };\n\n Graph.prototype.transformContext = function() {\n var context = this.context;\n\n // move context to center of canvas\n this.context.translate(this.centerX, this.canvas.height - this.centerY);\n\n /*\n * stretch grid to fit the canvas window, and\n * invert the y scale so that that increments\n * as you move upwards\n */\n context.scale(this.scaleX, -this.scaleY);\n };\n\n exports.graph = Graph;\n\n})();\n",
"title": "$:/plugins/gt6796c/graph-tw5/graph.js",
"type": "application/javascript",
"module-type": "lib"
},
"$:/plugins/gt6796c/graph-tw5/license": {
"title": "$:/plugins/gt6796c/graph-tw5/license",
"text": "The MIT License (MIT)\n\nCopyright (c) 2016 Nathaniel Jones\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nDependencies:\nBased in part on http://www.html5canvastutorials.com/labs/html5-canvas-graphing-an-equation/ No License Found\n"
},
"$:/plugins/gt6796c/graph-tw5/readme": {
"title": "$:/plugins/gt6796c/graph-tw5/readme",
"text": "This is a TiddlyWiki plugin for creating simple graphs.\n\nIt is completely self-contained, and doesn't need an Internet connection in order to work. It works both in the browser and under Node.js.\n\n\n!Installation\nYou can either build from [[Source code|https://github.com/gt6796c/graph-tw5]] or install from [[here|https://gt6796c.github.io]]\n\n!Dependencies\n;This plugin requires:\n*[[rocklib Plugin|https://gt6796c.github.io]]\n\n! History\n;0.1.2\n*Fixed single color attributes and fixed example to use //color// instead of //colors//"
},
"$:/plugins/gt6796c/graph-tw5/typed-parser.js": {
"text": "/*\\\ntitle: $:/plugins/gt6796c/graph-tw5/typed-parser.js\ntype: application/javascript\nmodule-type: parser\n\nThis parser wraps unadorned railroad syntax into a railroad widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n\tvar GraphParser = function(type,text,options) {\n\t\tvar element = {\n\t\t\ttype: \"graph\",\n\t\t\ttag: \"$graph\",\n\t\t\ttext: text\n\t\t};\n\t\tthis.tree = [element];\n\t};\n\n\texports[\"text/vnd.tiddlywiki.graph\"] = GraphParser;\n\n})();\n\n",
"title": "$:/plugins/gt6796c/graph-tw5/typed-parser.js",
"type": "application/javascript",
"module-type": "parser"
},
"$:/plugins/gt6796c/graph-tw5/usage": {
"title": "$:/plugins/gt6796c/graph-tw5/usage",
"text": "This widget allows the user to create simple graphs and display them in a tiddler. The equation will be provided an 'x' value\nand should return the 'y' value. Multiple Equations can be specified on separate lines to represent a system of equations. Points can\nbe represented by defining the point's coordinates in the form of an array. Arrays can be nested to allow for multiple points\nto be the same color. (See examples)\n\nThe equation body can either be placed in the \"equation\" attribute or as the body of the widget.\n\nThe following attributes are customizable for the widget:\n\n; minX - integer\n: defaults to -1\n; minY - integer\n: defaults to -1\n; maxX - integer\n: defaults to 10\n; maxY - integer\n: default to 10\n; width - integer\n: defaults to \"not specified\"\n; height - integer\n: defaults to \"not specified\"\n; color - string\n: defaults to 'red'\n;thickness - integer\n: defaults to 2\n; unitsPerTick\n: defaults to 1\n; bounds - integer array\n: no default 2 elements sets the minX & minY. 4 elements sets minX, minY, maxX and maxY\n; step - float\n: defaults to '0.001'\n\nThe following attributes are for systems of equations:\n\n;color - json array of colors e.g. ['red','green','blue']\n: defaults to using value of 'color' attribute defined above\n;thickness - json array of integers e.g. [2,2,1]\n: defaults to using value of 'thickness' attribute defined above\n\nNote the number of colors & thicknesses should match the number of equations specified. If there are more equations specified, random colors will\nbe assigned.\n\n!!Notes\n*The body of the text is parsed as a Tiddler. If you need conflicting elements, use either the ``equation`` attribute on the widget or set the type field to ``text/vnd.tiddlywiki.graph`` and transclude the whole Tiddler\n** In particular, the Javascript array of array syntax will be parsed as a Tiddler Title unless you leave an empty space between the two opening brackets.\n* If you author a Tiddler with the Content type ``text/vnd.tiddlywiki.graph`` CamelCased variables may be assigned by using a 'dot' notation. (e.g. minX would be graph-min.x)\n"
},
"$:/plugins/gt6796c/graph-tw5/widget.js": {
"text": "/*\\\ntitle: $:/plugins/gt6796c/graph-tw5/widget.js\ntype: application/javascript\nmodule-type: widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n var Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n var Rocklib = require(\"$:/plugins/gt6796c/rocklib/widget-tools.js\").rocklib;\n var Graph = require(\"./graph.js\").graph;\n\n if ($tw.browser) {\n window.graph = new Graph();\n window.rocklib = new Rocklib();\n }\n\n\n var GraphWidget = function(parseTreeNode, options) {\n this.initialise(parseTreeNode, options);\n };\n\n GraphWidget.prototype = new Widget();\n\n /*\n Render this widget into the DOM\n */\n GraphWidget.prototype.render = function(parent,nextSibling) {\n this.parentDomNode = parent;\n this.computeAttributes();\n this.execute();\n\n var tag = 'graph';\n var scriptBody = rocklib.getScriptBody(this,\"equation\").trim();\n var canvas = rocklib.getCanvas(this,tag,\"canvas\");\n try {\n var options = {}\n options.minX = -1;\n options.minY = -1;\n options.maxX = 10;\n options.maxY = 10;\n options.color = '#000';\n options.thickness = 2;\n options.unitsPerTick = 1;\n\n rocklib.getOptions(this, tag, options);\n if (options.hasOwnProperty('bounds'))\n {\n var bounds = options['bounds']\n if (bounds.length == 2 || bounds.length == 4)\n {\n options.minX = bounds[0];\n options.minY = bounds[1];\n if (bounds.length == 4)\n {\n options.maxX = bounds[2];\n options.maxY = bounds[3];\n }\n }\n }\n // swap mins/maxes if they're messed up\n if (options.minY > options.maxY)\n {\n var s = options.maxY;\n options.maxY = options.minY;\n options.minY = s;\n }\n if (options.minX > options.maxX)\n {\n var s = options.maxX;\n options.maxX = options.minX;\n options.minX = s;\n }\n rocklib.hue = 0;\n options.canvas = canvas;\n graph.configure(options);\n var eqs = scriptBody.split('\\n');\n for (var i=0;i<eqs.length;++i) {\n var eq = eqs[i].trim();\n var f = Function('x', \"return \" + eq + \";\");\n var c = options.color;\n var needColor = options.color instanceof Array && i >= options.color.length;\n needColor |= typeof(options.color) == \"string\" && i > 0;\n if (needColor)\n {\n c = rocklib.nextColor(.75, 0.95);\n }\n else\n {\n c = typeof(options.color) == \"string\" ? options.color : options.color[i];\n }\n var t = typeof(options.thicknesses) != \"undefined\" && i < options.thicknesses.length ? options.thicknesses[i] : options.thickness;\n graph.drawEquation(f, c, t);\n }\n }\n catch(ex)\n {\n canvas = this.document.createElement(\"div\");\n canvas.innerText = ex.stack;\n }\n parent.insertBefore(canvas, nextSibling);\n\n this.domNodes.push(canvas);\n };\n\n GraphWidget.prototype.execute = function() {\n // Nothing to do\n };\n\n /*\n Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n */\n GraphWidget.prototype.refresh = function(changedTiddlers) {\n return false;\n };\n\n exports.graph = GraphWidget;\n\n})();\n",
"title": "$:/plugins/gt6796c/graph-tw5/widget.js",
"type": "application/javascript",
"module-type": "widget"
}
}
}
{
"tiddlers": {
"$:/plugins/gt6796c/mermaid-tw5/example": {
"title": "$:/plugins/gt6796c/mermaid-tw5/example",
"text": "See full examples from https://knsv.github.io/mermaid\n\nNotation\n\n```\ngraph LR;\n A[a node with text]-->B(a node with rounded corners);\n A--no links---C((a circle));\n B-->D{a diamond};\n C==>|arrow and text|D;\n C-. back to.->A;\n```\nResults\n\n<$mermaid text=\"\ngraph LR;\n A[a node with text]-->B(a node with rounded corners);\n A--no links---C((a circle));\n B-->D{a diamond};\n C==>|arrow and text|D;\n C-. back to.->A;\">\n</$mermaid>\n\nMore advanced usage is possible if you use the mermaid parser rather than the ``<$mermaid>``. Below are two more examples from the [[mermaid.js website|https://knsv.github.io/mermaid/#mermaid]]\n\n* [[Gant Chart |$:/plugins/gt6796c/mermaid-tw5/gant]]\n* [[Sequence Diagram |$:/plugins/gt6796c/mermaid-tw5/seq]]\n"
},
"$:/plugins/gt6796c/mermaid-tw5/mermaidAPI.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/mermaid-tw5/mermaidAPI.js",
"module-type": "library",
"text": "(function(document) {\n!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var n;\"undefined\"!=typeof window?n=window:\"undefined\"!=typeof global?n=global:\"undefined\"!=typeof self&&(n=self),n.mermaidAPI=t()}}(function(){var define,module,exports;return function t(n,e,r){function i(u,o){if(!e[u]){if(!n[u]){var s=\"function\"==typeof require&&require;if(!o&&s)return s(u,!0);if(a)return a(u,!0);var c=new Error(\"Cannot find module '\"+u+\"'\");throw c.code=\"MODULE_NOT_FOUND\",c}var l=e[u]={exports:{}};n[u][0].call(l.exports,function(t){var e=n[u][1][t];return i(e?e:t)},l,l.exports,t,n,e,r)}return e[u].exports}for(var a=\"function\"==typeof require&&require,u=0;u<r.length;u++)i(r[u]);return i}({1:[function(){},{}],2:[function(t,n){!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function e(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function r(t,n){return n>t?-1:t>n?1:t>=n?0:0/0}function i(t){return null===t?0/0:+t}function a(t){return!isNaN(t)}function u(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}}function o(t){return t.length}function s(t){for(var n=1;t*n%1;)n*=10;return n}function c(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function l(){this._=Object.create(null)}function h(t){return(t+=\"\")===gu||t[0]===yu?yu+t:t}function f(t){return(t+=\"\")[0]===yu?t.slice(1):t}function d(t){return h(t)in this._}function p(t){return(t=h(t))in this._&&delete this._[t]}function g(){var t=[];for(var n in this._)t.push(f(n));return t}function y(){var t=0;for(var n in this._)++t;return t}function m(){for(var t in this._)return!1;return!0}function v(){this._=Object.create(null)}function _(t){return t}function b(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function x(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=mu.length;r>e;++e){var i=mu[e]+n;if(i in t)return i}}function w(){}function A(){}function k(t){function n(){for(var n,r=e,i=-1,a=r.length;++i<a;)(n=r[i].on)&&n.apply(this,arguments);return t}var e=[],r=new l;return n.on=function(n,i){var a,u=r.get(n);return arguments.length<2?u&&u.on:(u&&(u.on=null,e=e.slice(0,a=e.indexOf(u)).concat(e.slice(a+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function E(){eu.event.preventDefault()}function M(){for(var t,n=eu.event;t=n.sourceEvent;)n=t;return n}function S(t){for(var n=new A,e=0,r=arguments.length;++e<r;)n[arguments[e]]=k(n);return n.of=function(e,r){return function(i){try{var a=i.sourceEvent=eu.event;i.target=t,eu.event=i,n[i.type].apply(e,r)}finally{eu.event=a}}},n}function D(t){return _u(t,Au),t}function C(t){return\"function\"==typeof t?t:function(){return bu(t,this)}}function T(t){return\"function\"==typeof t?t:function(){return xu(t,this)}}function F(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function a(){this.setAttributeNS(t.space,t.local,n)}function u(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}function o(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=eu.ns.qualify(t),null==n?t.local?r:e:\"function\"==typeof n?t.local?o:u:t.local?a:i}function O(t){return t.trim().replace(/\\s+/g,\" \")}function L(t){return new RegExp(\"(?:^|\\\\s+)\"+eu.requote(t)+\"(?:\\\\s+|$)\",\"g\")}function I(t){return(t+\"\").trim().split(/^|\\s+/)}function B(t,n){function e(){for(var e=-1;++e<i;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<i;)t[e](this,r)}t=I(t).map(N);var i=t.length;return\"function\"==typeof n?r:e}function N(t){var n=L(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute(\"class\")||\"\";r?(n.lastIndex=0,n.test(i)||e.setAttribute(\"class\",O(i+\" \"+t))):e.setAttribute(\"class\",O(i.replace(n,\" \")))}}function P(t,n,e){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,e)}function a(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}return null==n?r:\"function\"==typeof n?a:i}function R(t,n){function e(){delete this[t]}function r(){this[t]=n}function i(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:\"function\"==typeof n?i:r}function j(t){function n(){var n=this.ownerDocument,e=this.namespaceURI;return e?n.createElementNS(e,t):n.createElement(t)}function e(){return this.ownerDocument.createElementNS(t.space,t.local)}return\"function\"==typeof t?t:(t=eu.ns.qualify(t)).local?e:n}function Y(){var t=this.parentNode;t&&t.removeChild(this)}function U(t){return{__data__:t}}function $(t){return function(){return wu(this,t)}}function W(t){return arguments.length||(t=r),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function z(t,n){for(var e=0,r=t.length;r>e;e++)for(var i,a=t[e],u=0,o=a.length;o>u;u++)(i=a[u])&&n(i,u,e);return t}function q(t){return _u(t,Eu),t}function G(t){var n,e;return function(r,i,a){var u,o=t[a].update,s=o.length;for(a!=e&&(e=a,n=0),i>=n&&(n=i+1);!(u=o[n])&&++n<s;);return u}}function H(t,n,e){function r(){var n=this[u];n&&(this.removeEventListener(t,n,n.$),delete this[u])}function i(){var i=s(n,iu(arguments));r.call(this),this.addEventListener(t,this[u]=i,i.$=e),i._=n}function a(){var n,e=new RegExp(\"^__on([^.]+)\"+eu.requote(t)+\"$\");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}var u=\"__on\"+t,o=t.indexOf(\".\"),s=V;o>0&&(t=t.slice(0,o));var c=Mu.get(t);return c&&(t=c,s=Z),o?n?i:r:n?w:a}function V(t,n){return function(e){var r=eu.event;eu.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{eu.event=r}}}function Z(t,n){var e=V(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function X(n){var r=\".dragsuppress-\"+ ++Du,i=\"click\"+r,a=eu.select(e(n)).on(\"touchmove\"+r,E).on(\"dragstart\"+r,E).on(\"selectstart\"+r,E);if(null==Su&&(Su=\"onselectstart\"in n?!1:x(n.style,\"userSelect\")),Su){var u=t(n).style,o=u[Su];u[Su]=\"none\"}return function(t){if(a.on(r,null),Su&&(u[Su]=o),t){var n=function(){a.on(i,null)};a.on(i,function(){E(),n()},!0),setTimeout(n,0)}}}function K(t,n){n.changedTouches&&(n=n.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Cu){var a=e(t);if(a.scrollX||a.scrollY){r=eu.select(\"body\").append(\"svg\").style({position:\"absolute\",top:0,left:0,margin:0,padding:0,border:\"none\"},\"important\");var u=r[0][0].getScreenCTM();Cu=!(u.f||u.e),r.remove()}}return Cu?(i.x=n.pageX,i.y=n.pageY):(i.x=n.clientX,i.y=n.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var o=t.getBoundingClientRect();return[n.clientX-o.left-t.clientLeft,n.clientY-o.top-t.clientTop]}function Q(){return eu.event.changedTouches[0].identifier}function J(t){return t>0?1:0>t?-1:0}function tt(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function nt(t){return t>1?0:-1>t?Ou:Math.acos(t)}function et(t){return t>1?Bu:-1>t?-Bu:Math.asin(t)}function rt(t){return((t=Math.exp(t))-1/t)/2}function it(t){return((t=Math.exp(t))+1/t)/2}function at(t){return((t=Math.exp(2*t))-1)/(t+1)}function ut(t){return(t=Math.sin(t/2))*t}function ot(){}function st(t,n,e){return this instanceof st?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof st?new st(t.h,t.s,t.l):wt(\"\"+t,At,st):new st(t,n,e)}function ct(t,n,e){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?a+(u-a)*t/60:180>t?u:240>t?a+(u-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,u;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:0>n?0:n>1?1:n,e=0>e?0:e>1?1:e,u=.5>=e?e*(1+n):e+n-e*n,a=2*e-u,new vt(i(t+120),i(t),i(t-120))}function lt(t,n,e){return this instanceof lt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof lt?new lt(t.h,t.c,t.l):t instanceof ft?pt(t.l,t.a,t.b):pt((t=kt((t=eu.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new lt(t,n,e)}function ht(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new ft(e,Math.cos(t*=Nu)*n,Math.sin(t)*n)}function ft(t,n,e){return this instanceof ft?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof ft?new ft(t.l,t.a,t.b):t instanceof lt?ht(t.h,t.c,t.l):kt((t=vt(t)).r,t.g,t.b):new ft(t,n,e)}function dt(t,n,e){var r=(t+16)/116,i=r+n/500,a=r-e/200;return i=gt(i)*Hu,r=gt(r)*Vu,a=gt(a)*Zu,new vt(mt(3.2404542*i-1.5371385*r-.4985314*a),mt(-.969266*i+1.8760108*r+.041556*a),mt(.0556434*i-.2040259*r+1.0572252*a))}function pt(t,n,e){return t>0?new lt(Math.atan2(e,n)*Pu,Math.sqrt(n*n+e*e),t):new lt(0/0,0/0,t)}function gt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function yt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function mt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function vt(t,n,e){return this instanceof vt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof vt?new vt(t.r,t.g,t.b):wt(\"\"+t,vt,ct):new vt(t,n,e)}function _t(t){return new vt(t>>16,t>>8&255,255&t)}function bt(t){return _t(t)+\"\"}function xt(t){return 16>t?\"0\"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function wt(t,n,e){t=t.toLowerCase();var r,i,a,u=0,o=0,s=0;if(r=/([a-z]+)\\((.*)\\)/.exec(t))switch(i=r[2].split(\",\"),r[1]){case\"hsl\":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case\"rgb\":return n(Mt(i[0]),Mt(i[1]),Mt(i[2]))}return(a=Qu.get(t))?n(a.r,a.g,a.b):(null==t||\"#\"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(u=(3840&a)>>4,u=u>>4|u,o=240&a,o=o>>4|o,s=15&a,s=s<<4|s):7===t.length&&(u=(16711680&a)>>16,o=(65280&a)>>8,s=255&a)),n(u,o,s))}function At(t,n,e){var r,i,a=Math.min(t/=255,n/=255,e/=255),u=Math.max(t,n,e),o=u-a,s=(u+a)/2;return o?(i=.5>s?o/(u+a):o/(2-u-a),r=t==u?(n-e)/o+(e>n?6:0):n==u?(e-t)/o+2:(t-n)/o+4,r*=60):(r=0/0,i=s>0&&1>s?0:r),new st(r,i,s)}function kt(t,n,e){t=Et(t),n=Et(n),e=Et(e);var r=yt((.4124564*t+.3575761*n+.1804375*e)/Hu),i=yt((.2126729*t+.7151522*n+.072175*e)/Vu),a=yt((.0193339*t+.119192*n+.9503041*e)/Zu);return ft(116*i-16,500*(r-i),200*(i-a))}function Et(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Mt(t){var n=parseFloat(t);return\"%\"===t.charAt(t.length-1)?Math.round(2.55*n):n}function St(t){return\"function\"==typeof t?t:function(){return t}}function Dt(t){return function(n,e,r){return 2===arguments.length&&\"function\"==typeof e&&(r=e,e=null),Ct(n,e,t,r)}}function Ct(t,n,e,r){function i(){var t,n=s.status;if(!n&&Ft(s)||n>=200&&300>n||304===n){try{t=e.call(a,s)}catch(r){return void u.error.call(a,r)}u.load.call(a,t)}else u.error.call(a,s)}var a={},u=eu.dispatch(\"beforesend\",\"progress\",\"load\",\"error\"),o={},s=new XMLHttpRequest,c=null;return!this.XDomainRequest||\"withCredentials\"in s||!/^(http(s)?:)?\\/\\//.test(t)||(s=new XDomainRequest),\"onload\"in s?s.onload=s.onerror=i:s.onreadystatechange=function(){s.readyState>3&&i()},s.onprogress=function(t){var n=eu.event;eu.event=t;try{u.progress.call(a,s)}finally{eu.event=n}},a.header=function(t,n){return t=(t+\"\").toLowerCase(),arguments.length<2?o[t]:(null==n?delete o[t]:o[t]=n+\"\",a)},a.mimeType=function(t){return arguments.length?(n=null==t?null:t+\"\",a):n},a.responseType=function(t){return arguments.length?(c=t,a):c},a.response=function(t){return e=t,a},[\"get\",\"post\"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(iu(arguments)))}}),a.send=function(e,r,i){if(2===arguments.length&&\"function\"==typeof r&&(i=r,r=null),s.open(e,t,!0),null==n||\"accept\"in o||(o.accept=n+\",*/*\"),s.setRequestHeader)for(var l in o)s.setRequestHeader(l,o[l]);return null!=n&&s.overrideMimeType&&s.overrideMimeType(n),null!=c&&(s.responseType=c),null!=i&&a.on(\"error\",i).on(\"load\",function(t){i(null,t)}),u.beforesend.call(a,s),s.send(null==r?null:r),a},a.abort=function(){return s.abort(),a},eu.rebind(a,u,\"on\"),null==r?a:a.get(Tt(r))}function Tt(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function Ft(t){var n=t.responseType;return n&&\"text\"!==n?t.response:t.responseText}function Ot(){var t=Lt(),n=It()-t;n>24?(isFinite(n)&&(clearTimeout(eo),eo=setTimeout(Ot,n)),no=0):(no=1,io(Ot))}function Lt(){var t=Date.now();for(ro=Ju;ro;)t>=ro.t&&(ro.f=ro.c(t-ro.t)),ro=ro.n;return t}function It(){for(var t,n=Ju,e=1/0;n;)n.f?n=t?t.n=n.n:Ju=n.n:(n.t<e&&(e=n.t),n=(t=n).n);return to=t,e}function Bt(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Nt(t,n){var e=Math.pow(10,3*pu(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function Pt(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,a=r&&e?function(t,n){for(var i=t.length,a=[],u=0,o=r[0],s=0;i>0&&o>0&&(s+o+1>n&&(o=Math.max(1,n-s)),a.push(t.substring(i-=o,i+o)),!((s+=o+1)>n));)o=r[u=(u+1)%r.length];return a.reverse().join(e)}:_;return function(t){var e=uo.exec(t),r=e[1]||\" \",u=e[2]||\">\",o=e[3]||\"-\",s=e[4]||\"\",c=e[5],l=+e[6],h=e[7],f=e[8],d=e[9],p=1,g=\"\",y=\"\",m=!1,v=!0;switch(f&&(f=+f.substring(1)),(c||\"0\"===r&&\"=\"===u)&&(c=r=\"0\",u=\"=\"),d){case\"n\":h=!0,d=\"g\";break;case\"%\":p=100,y=\"%\",d=\"f\";break;case\"p\":p=100,y=\"%\",d=\"r\";break;case\"b\":case\"o\":case\"x\":case\"X\":\"#\"===s&&(g=\"0\"+d.toLowerCase());case\"c\":v=!1;case\"d\":m=!0,f=0;break;case\"s\":p=-1,d=\"r\"}\"$\"===s&&(g=i[0],y=i[1]),\"r\"!=d||f||(d=\"g\"),null!=f&&(\"g\"==d?f=Math.max(1,Math.min(21,f)):(\"e\"==d||\"f\"==d)&&(f=Math.max(0,Math.min(20,f)))),d=oo.get(d)||Rt;var _=c&&h;return function(t){var e=y;if(m&&t%1)return\"\";var i=0>t||0===t&&0>1/t?(t=-t,\"-\"):\"-\"===o?\"\":o;if(0>p){var s=eu.formatPrefix(t,f);t=s.scale(t),e=s.symbol+y}else t*=p;t=d(t,f);var b,x,w=t.lastIndexOf(\".\");if(0>w){var A=v?t.lastIndexOf(\"e\"):-1;0>A?(b=t,x=\"\"):(b=t.substring(0,A),x=t.substring(A))}else b=t.substring(0,w),x=n+t.substring(w+1);!c&&h&&(b=a(b,1/0));var k=g.length+b.length+x.length+(_?0:i.length),E=l>k?new Array(k=l-k+1).join(r):\"\";return _&&(b=a(E+b,E.length?l-x.length:1/0)),i+=g,t=b+x,(\"<\"===u?i+t+E:\">\"===u?E+i+t:\"^\"===u?E.substring(0,k>>=1)+i+t+E.substring(k):i+(_?t:E+t))+e}}}function Rt(t){return t+\"\"}function jt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Yt(t,n,e){function r(n){var e=t(n),r=a(e,1);return r-n>n-e?e:r}function i(e){return n(e=t(new co(e-1)),1),e}function a(t,e){return n(t=new co(+t),e),t}function u(t,r,a){var u=i(t),o=[];if(a>1)for(;r>u;)e(u)%a||o.push(new Date(+u)),n(u,1);else for(;r>u;)o.push(new Date(+u)),n(u,1);return o}function o(t,n,e){try{co=jt;var r=new jt;return r._=t,u(r,n,e)}finally{co=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=a,t.range=u;var s=t.utc=Ut(t);return s.floor=s,s.round=Ut(r),s.ceil=Ut(i),s.offset=Ut(a),s.range=o,t}function Ut(t){return function(n,e){try{co=jt;var r=new jt;return r._=n,t(r,e)._}finally{co=Date}}}function $t(t){function n(t){function n(n){for(var e,i,a,u=[],o=-1,s=0;++o<r;)37===t.charCodeAt(o)&&(u.push(t.slice(s,o)),null!=(i=ho[e=t.charAt(++o)])&&(e=t.charAt(++o)),(a=D[e])&&(e=a(n,null==i?\"e\"===e?\" \":\"0\":i)),u.push(e),s=o+1);return u.push(t.slice(s,o)),u.join(\"\")}var r=t.length;return n.parse=function(n){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=e(r,t,n,0);if(i!=n.length)return null;\"p\"in r&&(r.H=r.H%12+12*r.p);var a=null!=r.Z&&co!==jt,u=new(a?jt:co);return\"j\"in r?u.setFullYear(r.y,0,r.j):\"w\"in r&&(\"W\"in r||\"U\"in r)?(u.setFullYear(r.y,0,1),u.setFullYear(r.y,0,\"W\"in r?(r.w+6)%7+7*r.W-(u.getDay()+5)%7:r.w+7*r.U-(u.getDay()+6)%7)):u.setFullYear(r.y,r.m,r.d),u.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),a?u._:u},n.toString=function(){return t},n}function e(t,n,e,r){for(var i,a,u,o=0,s=n.length,c=e.length;s>o;){if(r>=c)return-1;if(i=n.charCodeAt(o++),37===i){if(u=n.charAt(o++),a=C[u in ho?n.charAt(o++):u],!a||(r=a(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(t,n,e){w.lastIndex=0;var r=w.exec(n.slice(e));return r?(t.w=A.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){b.lastIndex=0;var r=b.exec(n.slice(e));return r?(t.w=x.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,e){M.lastIndex=0;var r=M.exec(n.slice(e));return r?(t.m=S.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,e){k.lastIndex=0;var r=k.exec(n.slice(e));return r?(t.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,r){return e(t,D.c.toString(),n,r)}function s(t,n,r){return e(t,D.x.toString(),n,r)}function c(t,n,r){return e(t,D.X.toString(),n,r)}function l(t,n,e){var r=_.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}var h=t.dateTime,f=t.date,d=t.time,p=t.periods,g=t.days,y=t.shortDays,m=t.months,v=t.shortMonths;n.utc=function(t){function e(t){try{co=jt;var n=new co;return n._=t,r(n)}finally{co=Date}}var r=n(t);return e.parse=function(t){try{co=jt;var n=r.parse(t);return n&&n._}finally{co=Date}},e.toString=r.toString,e},n.multi=n.utc.multi=cn;var _=eu.map(),b=zt(g),x=qt(g),w=zt(y),A=qt(y),k=zt(m),E=qt(m),M=zt(v),S=qt(v);p.forEach(function(t,n){_.set(t.toLowerCase(),n)});var D={a:function(t){return y[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return v[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:n(h),d:function(t,n){return Wt(t.getDate(),n,2)},e:function(t,n){return Wt(t.getDate(),n,2)},H:function(t,n){return Wt(t.getHours(),n,2)},I:function(t,n){return Wt(t.getHours()%12||12,n,2)},j:function(t,n){return Wt(1+so.dayOfYear(t),n,3)},L:function(t,n){return Wt(t.getMilliseconds(),n,3)},m:function(t,n){return Wt(t.getMonth()+1,n,2)},M:function(t,n){return Wt(t.getMinutes(),n,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,n){return Wt(t.getSeconds(),n,2)},U:function(t,n){return Wt(so.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Wt(so.mondayOfYear(t),n,2)},x:n(f),X:n(d),y:function(t,n){return Wt(t.getFullYear()%100,n,2)},Y:function(t,n){return Wt(t.getFullYear()%1e4,n,4)},Z:on,\"%\":function(){return\"%\"}},C={a:r,A:i,b:a,B:u,c:o,d:tn,e:tn,H:en,I:en,j:nn,L:un,m:Jt,M:rn,p:l,S:an,U:Ht,w:Gt,W:Vt,x:s,X:c,y:Xt,Y:Zt,Z:Kt,\"%\":sn};return n}function Wt(t,n,e){var r=0>t?\"-\":\"\",i=(r?-t:t)+\"\",a=i.length;return r+(e>a?new Array(e-a+1).join(n)+i:i)}function zt(t){return new RegExp(\"^(?:\"+t.map(eu.requote).join(\"|\")+\")\",\"i\")}function qt(t){for(var n=new l,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Gt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Ht(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function Vt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function Zt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Xt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.y=Qt(+r[0]),e+r[0].length):-1}function Kt(t,n,e){return/^[+-]\\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function Qt(t){return t+(t>68?1900:2e3)}function Jt(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function tn(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function nn(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function en(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function rn(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function an(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function un(t,n,e){fo.lastIndex=0;var r=fo.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function on(t){var n=t.getTimezoneOffset(),e=n>0?\"-\":\"+\",r=pu(n)/60|0,i=pu(n)%60;return e+Wt(r,\"0\",2)+Wt(i,\"0\",2)}function sn(t,n,e){po.lastIndex=0;var r=po.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function cn(t){for(var n=t.length,e=-1;++e<n;)t[e][0]=this(t[e][0]);return function(n){for(var e=0,r=t[e];!r[1](n);)r=t[++e];return r[0](n)}}function ln(){}function hn(t,n,e){var r=e.s=t+n,i=r-t,a=r-i;e.t=t-a+(n-i)}function fn(t,n){t&&vo.hasOwnProperty(t.type)&&vo[t.type](t,n)}function dn(t,n,e){var r,i=-1,a=t.length-e;for(n.lineStart();++i<a;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function pn(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)dn(t[e],n,1);n.polygonEnd()}function gn(){function t(t,n){t*=Nu,n=n*Nu/2+Ou/4;var e=t-r,u=e>=0?1:-1,o=u*e,s=Math.cos(n),c=Math.sin(n),l=a*c,h=i*s+l*Math.cos(o),f=l*u*Math.sin(o);bo.add(Math.atan2(f,h)),r=t,i=s,a=c}var n,e,r,i,a;xo.point=function(u,o){xo.point=t,r=(n=u)*Nu,i=Math.cos(o=(e=o)*Nu/2+Ou/4),a=Math.sin(o)},xo.lineEnd=function(){t(n,e)}}function yn(t){var n=t[0],e=t[1],r=Math.cos(e);return[r*Math.cos(n),r*Math.sin(n),Math.sin(e)]}function mn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function vn(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function _n(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function bn(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function xn(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function wn(t){return[Math.atan2(t[1],t[0]),et(t[2])]}function An(t,n){return pu(t[0]-n[0])<Tu&&pu(t[1]-n[1])<Tu}function kn(t,n){t*=Nu;var e=Math.cos(n*=Nu);En(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function En(t,n,e){++wo,ko+=(t-ko)/wo,Eo+=(n-Eo)/wo,Mo+=(e-Mo)/wo}function Mn(){function t(t,i){t*=Nu;var a=Math.cos(i*=Nu),u=a*Math.cos(t),o=a*Math.sin(t),s=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*s-r*o)*c+(c=r*u-n*s)*c+(c=n*o-e*u)*c),n*u+e*o+r*s);Ao+=c,So+=c*(n+(n=u)),Do+=c*(e+(e=o)),Co+=c*(r+(r=s)),En(n,e,r)}var n,e,r;Lo.point=function(i,a){i*=Nu;var u=Math.cos(a*=Nu);n=u*Math.cos(i),e=u*Math.sin(i),r=Math.sin(a),Lo.point=t,En(n,e,r)}}function Sn(){Lo.point=kn}function Dn(){function t(t,n){t*=Nu;var e=Math.cos(n*=Nu),u=e*Math.cos(t),o=e*Math.sin(t),s=Math.sin(n),c=i*s-a*o,l=a*u-r*s,h=r*o-i*u,f=Math.sqrt(c*c+l*l+h*h),d=r*u+i*o+a*s,p=f&&-nt(d)/f,g=Math.atan2(f,d);To+=p*c,Fo+=p*l,Oo+=p*h,Ao+=g,So+=g*(r+(r=u)),Do+=g*(i+(i=o)),Co+=g*(a+(a=s)),En(r,i,a)}var n,e,r,i,a;Lo.point=function(u,o){n=u,e=o,Lo.point=t,u*=Nu;var s=Math.cos(o*=Nu);r=s*Math.cos(u),i=s*Math.sin(u),a=Math.sin(o),En(r,i,a)},Lo.lineEnd=function(){t(n,e),Lo.lineEnd=Sn,Lo.point=kn}}function Cn(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])}),e}function Tn(){return!0}function Fn(t,n,e,r,i){var a=[],u=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];if(An(e,r)){i.lineStart();for(var o=0;n>o;++o)i.point((e=t[o])[0],e[1]);return void i.lineEnd()}var s=new Ln(e,t,null,!0),c=new Ln(e,null,s,!1);s.o=c,a.push(s),u.push(c),s=new Ln(r,t,null,!1),c=new Ln(r,null,s,!0),s.o=c,a.push(s),u.push(c)}}),u.sort(n),On(a),On(u),a.length){for(var o=0,s=e,c=u.length;c>o;++o)u[o].e=s=!s;for(var l,h,f=a[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var o=0,c=l.length;c>o;++o)i.point((h=l[o])[0],h[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(p){l=d.p.z;for(var o=l.length-1;o>=0;--o)i.point((h=l[o])[0],h[1])}else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,l=d.z,p=!p}while(!d.v);i.lineEnd()}}}function On(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function Ln(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function In(t,n,e,r){return function(i,a){function u(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&a.point(n,e)}function o(t,n){var e=i(t,n);y.point(e[0],e[1])}function s(){v.point=o,y.lineStart()}function c(){v.point=u,y.lineEnd()}function l(t,n){g.push([t,n]);var e=i(t,n);b.point(e[0],e[1])}function h(){b.lineStart(),g=[]}function f(){l(g[0][0],g[0][1]),b.lineEnd();var t,n=b.clean(),e=_.buffer(),r=e.length;if(g.pop(),p.push(g),g=null,r)if(1&n){t=e[0];var i,r=t.length-1,u=-1;if(r>0){for(x||(a.polygonStart(),x=!0),a.lineStart();++u<r;)a.point((i=t[u])[0],i[1]);a.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),d.push(e.filter(Bn))}var d,p,g,y=n(a),m=i.invert(r[0],r[1]),v={point:u,lineStart:s,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=h,v.lineEnd=f,d=[],p=[]},polygonEnd:function(){v.point=u,v.lineStart=s,v.lineEnd=c,d=eu.merge(d);var t=Un(m,p);d.length?(x||(a.polygonStart(),x=!0),Fn(d,Pn,t,e,a)):t&&(x||(a.polygonStart(),x=!0),a.lineStart(),e(null,null,1,a),a.lineEnd()),x&&(a.polygonEnd(),x=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),e(null,null,1,a),a.lineEnd(),a.polygonEnd()}},_=Nn(),b=n(_),x=!1;return v}}function Bn(t){return t.length>1}function Nn(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:w,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function Pn(t,n){return((t=t.x)[0]<0?t[1]-Bu-Tu:Bu-t[1])-((n=n.x)[0]<0?n[1]-Bu-Tu:Bu-n[1])}function Rn(t){var n,e=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),n=1},point:function(a,u){var o=a>0?Ou:-Ou,s=pu(a-e);pu(s-Ou)<Tu?(t.point(e,r=(r+u)/2>0?Bu:-Bu),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(o,r),t.point(a,r),n=0):i!==o&&s>=Ou&&(pu(e-i)<Tu&&(e-=i*Tu),pu(a-o)<Tu&&(a-=o*Tu),r=jn(e,r,a,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(o,r),n=0),t.point(e=a,r=u),i=o},lineEnd:function(){t.lineEnd(),e=r=0/0},clean:function(){return 2-n}}}function jn(t,n,e,r){var i,a,u=Math.sin(t-e);return pu(u)>Tu?Math.atan((Math.sin(n)*(a=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(n))*Math.sin(t))/(i*a*u)):(n+r)/2}function Yn(t,n,e,r){var i;if(null==t)i=e*Bu,r.point(-Ou,i),r.point(0,i),r.point(Ou,i),r.point(Ou,0),r.point(Ou,-i),r.point(0,-i),r.point(-Ou,-i),r.point(-Ou,0),r.point(-Ou,i);else if(pu(t[0]-n[0])>Tu){var a=t[0]<n[0]?Ou:-Ou;i=e*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(n[0],n[1])}function Un(t,n){var e=t[0],r=t[1],i=[Math.sin(e),-Math.cos(e),0],a=0,u=0;bo.reset();for(var o=0,s=n.length;s>o;++o){var c=n[o],l=c.length;if(l)for(var h=c[0],f=h[0],d=h[1]/2+Ou/4,p=Math.sin(d),g=Math.cos(d),y=1;;){y===l&&(y=0),t=c[y];var m=t[0],v=t[1]/2+Ou/4,_=Math.sin(v),b=Math.cos(v),x=m-f,w=x>=0?1:-1,A=w*x,k=A>Ou,E=p*_;if(bo.add(Math.atan2(E*w*Math.sin(A),g*b+E*Math.cos(A))),a+=k?x+w*Lu:x,k^f>=e^m>=e){var M=vn(yn(h),yn(t));xn(M);var S=vn(i,M);xn(S);var D=(k^x>=0?-1:1)*et(S[2]);(r>D||r===D&&(M[0]||M[1]))&&(u+=k^x>=0?1:-1)}if(!y++)break;f=m,p=_,g=b,h=t}}return(-Tu>a||Tu>a&&0>bo)^1&u}function $n(t){function n(t,n){return Math.cos(t)*Math.cos(n)>a}function e(t){var e,a,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(h,f){var d,p=[h,f],g=n(h,f),y=u?g?0:i(h,f):g?i(h+(0>h?Ou:-Ou),f):0;if(!e&&(c=s=g)&&t.lineStart(),g!==s&&(d=r(e,p),(An(e,d)||An(p,d))&&(p[0]+=Tu,p[1]+=Tu,g=n(p[0],p[1]))),g!==s)l=0,g?(t.lineStart(),d=r(p,e),t.point(d[0],d[1])):(d=r(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(o&&e&&u^g){var m;y&a||!(m=r(p,e,!0))||(l=0,u?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&An(e,p)||t.point(p[0],p[1]),e=p,s=g,a=y},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return l|(c&&s)<<1}}}function r(t,n,e){var r=yn(t),i=yn(n),u=[1,0,0],o=vn(r,i),s=mn(o,o),c=o[0],l=s-c*c;if(!l)return!e&&t;var h=a*s/l,f=-a*c/l,d=vn(u,o),p=bn(u,h),g=bn(o,f);_n(p,g);var y=d,m=mn(p,y),v=mn(y,y),_=m*m-v*(mn(p,p)-1);if(!(0>_)){var b=Math.sqrt(_),x=bn(y,(-m-b)/v);if(_n(x,p),x=wn(x),!e)return x;var w,A=t[0],k=n[0],E=t[1],M=n[1];A>k&&(w=A,A=k,k=w);var S=k-A,D=pu(S-Ou)<Tu,C=D||Tu>S;if(!D&&E>M&&(w=E,E=M,M=w),C?D?E+M>0^x[1]<(pu(x[0]-A)<Tu?E:M):E<=x[1]&&x[1]<=M:S>Ou^(A<=x[0]&&x[0]<=k)){var T=bn(y,(-m+b)/v);return _n(T,p),[x,wn(T)]}}}function i(n,e){var r=u?t:Ou-t,i=0;return-r>n?i|=1:n>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var a=Math.cos(t),u=a>0,o=pu(a)>Tu,s=ge(t,6*Nu);return In(n,e,s,u?[0,-t]:[-Ou,t-Ou])}function Wn(t,n,e,r){return function(i){var a,u=i.a,o=i.b,s=u.x,c=u.y,l=o.x,h=o.y,f=0,d=1,p=l-s,g=h-c;if(a=t-s,p||!(a>0)){if(a/=p,0>p){if(f>a)return;d>a&&(d=a)}else if(p>0){if(a>d)return;a>f&&(f=a)}if(a=e-s,p||!(0>a)){if(a/=p,0>p){if(a>d)return;a>f&&(f=a)}else if(p>0){if(f>a)return;d>a&&(d=a)}if(a=n-c,g||!(a>0)){if(a/=g,0>g){if(f>a)return;d>a&&(d=a)}else if(g>0){if(a>d)return;a>f&&(f=a)}if(a=r-c,g||!(0>a)){if(a/=g,0>g){if(a>d)return;a>f&&(f=a)}else if(g>0){if(f>a)return;d>a&&(d=a)}return f>0&&(i.a={x:s+f*p,y:c+f*g}),1>d&&(i.b={x:s+d*p,y:c+d*g}),i}}}}}}function zn(t,n,e,r){function i(r,i){return pu(r[0]-t)<Tu?i>0?0:3:pu(r[0]-e)<Tu?i>0?2:1:pu(r[1]-n)<Tu?i>0?1:0:i>0?3:2}function a(t,n){return u(t.x,n.x)}function u(t,n){var e=i(t,1),r=i(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(o){function s(t){for(var n=0,e=y.length,r=t[1],i=0;e>i;++i)for(var a,u=1,o=y[i],s=o.length,c=o[0];s>u;++u)a=o[u],c[1]<=r?a[1]>r&&tt(c,a,t)>0&&++n:a[1]<=r&&tt(c,a,t)<0&&--n,c=a;return 0!==n}function c(a,o,s,c){var l=0,h=0;if(null==a||(l=i(a,s))!==(h=i(o,s))||u(a,o)<0^s>0){do c.point(0===l||3===l?t:e,l>1?r:n);while((l=(l+s+4)%4)!==h)}else c.point(o[0],o[1])}function l(i,a){return i>=t&&e>=i&&a>=n&&r>=a}function h(t,n){l(t,n)&&o.point(t,n)}function f(){C.point=p,y&&y.push(m=[]),k=!0,A=!1,x=w=0/0}function d(){g&&(p(v,_),b&&A&&S.rejoin(),g.push(S.buffer())),C.point=h,A&&o.lineEnd()}function p(t,n){t=Math.max(-Bo,Math.min(Bo,t)),n=Math.max(-Bo,Math.min(Bo,n));var e=l(t,n);if(y&&m.push([t,n]),k)v=t,_=n,b=e,k=!1,e&&(o.lineStart(),o.point(t,n));else if(e&&A)o.point(t,n);else{var r={a:{x:x,y:w},b:{x:t,y:n}};D(r)?(A||(o.lineStart(),o.point(r.a.x,r.a.y)),o.point(r.b.x,r.b.y),e||o.lineEnd(),E=!1):e&&(o.lineStart(),o.point(t,n),E=!1)}x=t,w=n,A=e}var g,y,m,v,_,b,x,w,A,k,E,M=o,S=Nn(),D=Wn(t,n,e,r),C={point:h,lineStart:f,lineEnd:d,polygonStart:function(){o=S,g=[],y=[],E=!0},polygonEnd:function(){o=M,g=eu.merge(g);var n=s([t,r]),e=E&&n,i=g.length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),c(null,null,1,o),o.lineEnd()),i&&Fn(g,a,n,c,o),o.polygonEnd()),g=y=m=null}};return C}}function qn(t){var n=0,e=Ou/3,r=oe(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Ou/180,e=t[1]*Ou/180):[n/Ou*180,e/Ou*180]},i}function Gn(t,n){function e(t,n){var e=Math.sqrt(a-2*i*Math.sin(n))/i;return[e*Math.sin(t*=i),u-e*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(n))/2,a=1+r*(2*i-r),u=Math.sqrt(a)/i;return e.invert=function(t,n){var e=u-n;return[Math.atan2(t,e)/i,et((a-(t*t+e*e)*i*i)/(2*i))]},e}function Hn(){function t(t,n){Po+=i*t-r*n,r=t,i=n}var n,e,r,i;$o.point=function(a,u){$o.point=t,n=r=a,e=i=u},$o.lineEnd=function(){t(n,e)}}function Vn(t,n){Ro>t&&(Ro=t),t>Yo&&(Yo=t),jo>n&&(jo=n),n>Uo&&(Uo=n)}function Zn(){function t(t,n){u.push(\"M\",t,\",\",n,a)}function n(t,n){u.push(\"M\",t,\",\",n),o.point=e}function e(t,n){u.push(\"L\",t,\",\",n)}function r(){o.point=t}function i(){u.push(\"Z\")}var a=Xn(4.5),u=[],o={point:t,lineStart:function(){o.point=n},lineEnd:r,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=r,o.point=t},pointRadius:function(t){return a=Xn(t),o},result:function(){if(u.length){var t=u.join(\"\");return u=[],t}}};return o}function Xn(t){return\"m0,\"+t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+-2*t+\"a\"+t+\",\"+t+\" 0 1,1 0,\"+2*t+\"z\"}function Kn(t,n){ko+=t,Eo+=n,++Mo}function Qn(){function t(t,r){var i=t-n,a=r-e,u=Math.sqrt(i*i+a*a);So+=u*(n+t)/2,Do+=u*(e+r)/2,Co+=u,Kn(n=t,e=r)}var n,e;zo.point=function(r,i){zo.point=t,Kn(n=r,e=i)}}function Jn(){zo.point=Kn}function te(){function t(t,n){var e=t-r,a=n-i,u=Math.sqrt(e*e+a*a);So+=u*(r+t)/2,Do+=u*(i+n)/2,Co+=u,u=i*t-r*n,To+=u*(r+t),Fo+=u*(i+n),Oo+=3*u,Kn(r=t,i=n)}var n,e,r,i;zo.point=function(a,u){zo.point=t,Kn(n=r=a,e=i=u)},zo.lineEnd=function(){t(n,e)}}function ne(t){function n(n,e){t.moveTo(n+u,e),t.arc(n,e,u,0,Lu)}function e(n,e){t.moveTo(n,e),o.point=r}function r(n,e){t.lineTo(n,e)}function i(){o.point=n}function a(){\nt.closePath()}var u=4.5,o={point:n,lineStart:function(){o.point=e},lineEnd:i,polygonStart:function(){o.lineEnd=a},polygonEnd:function(){o.lineEnd=i,o.point=n},pointRadius:function(t){return u=t,o},result:w};return o}function ee(t){function n(t){return(o?r:e)(t)}function e(n){return ae(n,function(e,r){e=t(e,r),n.point(e[0],e[1])})}function r(n){function e(e,r){e=t(e,r),n.point(e[0],e[1])}function r(){_=0/0,k.point=a,n.lineStart()}function a(e,r){var a=yn([e,r]),u=t(e,r);i(_,b,v,x,w,A,_=u[0],b=u[1],v=e,x=a[0],w=a[1],A=a[2],o,n),n.point(_,b)}function u(){k.point=e,n.lineEnd()}function s(){r(),k.point=c,k.lineEnd=l}function c(t,n){a(h=t,f=n),d=_,p=b,g=x,y=w,m=A,k.point=a}function l(){i(_,b,v,x,w,A,d,p,h,g,y,m,o,n),k.lineEnd=u,u()}var h,f,d,p,g,y,m,v,_,b,x,w,A,k={point:e,lineStart:r,lineEnd:u,polygonStart:function(){n.polygonStart(),k.lineStart=s},polygonEnd:function(){n.polygonEnd(),k.lineStart=r}};return k}function i(n,e,r,o,s,c,l,h,f,d,p,g,y,m){var v=l-n,_=h-e,b=v*v+_*_;if(b>4*a&&y--){var x=o+d,w=s+p,A=c+g,k=Math.sqrt(x*x+w*w+A*A),E=Math.asin(A/=k),M=pu(pu(A)-1)<Tu||pu(r-f)<Tu?(r+f)/2:Math.atan2(w,x),S=t(M,E),D=S[0],C=S[1],T=D-n,F=C-e,O=_*T-v*F;(O*O/b>a||pu((v*T+_*F)/b-.5)>.3||u>o*d+s*p+c*g)&&(i(n,e,r,o,s,c,D,C,M,x/=k,w/=k,A,y,m),m.point(D,C),i(D,C,M,x,w,A,l,h,f,d,p,g,y,m))}}var a=.5,u=Math.cos(30*Nu),o=16;return n.precision=function(t){return arguments.length?(o=(a=t*t)>0&&16,n):Math.sqrt(a)},n}function re(t){var n=ee(function(n,e){return t([n*Pu,e*Pu])});return function(t){return se(n(t))}}function ie(t){this.stream=t}function ae(t,n){return{point:n,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function ue(t){return oe(function(){return t})()}function oe(t){function n(t){return t=o(t[0]*Nu,t[1]*Nu),[t[0]*f+s,c-t[1]*f]}function e(t){return t=o.invert((t[0]-s)/f,(c-t[1])/f),t&&[t[0]*Pu,t[1]*Pu]}function r(){o=Cn(u=he(m,v,b),a);var t=a(g,y);return s=d-t[0]*f,c=p+t[1]*f,i()}function i(){return l&&(l.valid=!1,l=null),n}var a,u,o,s,c,l,h=ee(function(t,n){return t=a(t,n),[t[0]*f+s,c-t[1]*f]}),f=150,d=480,p=250,g=0,y=0,m=0,v=0,b=0,x=Io,w=_,A=null,k=null;return n.stream=function(t){return l&&(l.valid=!1),l=se(x(u,h(w(t)))),l.valid=!0,l},n.clipAngle=function(t){return arguments.length?(x=null==t?(A=t,Io):$n((A=+t)*Nu),i()):A},n.clipExtent=function(t){return arguments.length?(k=t,w=t?zn(t[0][0],t[0][1],t[1][0],t[1][1]):_,i()):k},n.scale=function(t){return arguments.length?(f=+t,r()):f},n.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],r()):[d,p]},n.center=function(t){return arguments.length?(g=t[0]%360*Nu,y=t[1]%360*Nu,r()):[g*Pu,y*Pu]},n.rotate=function(t){return arguments.length?(m=t[0]%360*Nu,v=t[1]%360*Nu,b=t.length>2?t[2]%360*Nu:0,r()):[m*Pu,v*Pu,b*Pu]},eu.rebind(n,h,\"precision\"),function(){return a=t.apply(this,arguments),n.invert=a.invert&&e,r()}}function se(t){return ae(t,function(n,e){t.point(n*Nu,e*Nu)})}function ce(t,n){return[t,n]}function le(t,n){return[t>Ou?t-Lu:-Ou>t?t+Lu:t,n]}function he(t,n,e){return t?n||e?Cn(de(t),pe(n,e)):de(t):n||e?pe(n,e):le}function fe(t){return function(n,e){return n+=t,[n>Ou?n-Lu:-Ou>n?n+Lu:n,e]}}function de(t){var n=fe(t);return n.invert=fe(-t),n}function pe(t,n){function e(t,n){var e=Math.cos(n),o=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*r+o*i;return[Math.atan2(s*a-l*u,o*r-c*i),et(l*a+s*u)]}var r=Math.cos(t),i=Math.sin(t),a=Math.cos(n),u=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),o=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*a-s*u;return[Math.atan2(s*a+c*u,o*r+l*i),et(l*r-o*i)]},e}function ge(t,n){var e=Math.cos(t),r=Math.sin(t);return function(i,a,u,o){var s=u*n;null!=i?(i=ye(e,i),a=ye(e,a),(u>0?a>i:i>a)&&(i+=u*Lu)):(i=t+u*Lu,a=t-.5*s);for(var c,l=i;u>0?l>a:a>l;l-=s)o.point((c=wn([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function ye(t,n){var e=yn(n);e[0]-=t,xn(e);var r=nt(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Tu)%(2*Math.PI)}function me(t,n,e){var r=eu.range(t,n-Tu,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function ve(t,n,e){var r=eu.range(t,n-Tu,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function _e(t){return t.source}function be(t){return t.target}function xe(t,n,e,r){var i=Math.cos(n),a=Math.sin(n),u=Math.cos(r),o=Math.sin(r),s=i*Math.cos(t),c=i*Math.sin(t),l=u*Math.cos(e),h=u*Math.sin(e),f=2*Math.asin(Math.sqrt(ut(r-n)+i*u*ut(e-t))),d=1/Math.sin(f),p=f?function(t){var n=Math.sin(t*=f)*d,e=Math.sin(f-t)*d,r=e*s+n*l,i=e*c+n*h,u=e*a+n*o;return[Math.atan2(i,r)*Pu,Math.atan2(u,Math.sqrt(r*r+i*i))*Pu]}:function(){return[t*Pu,n*Pu]};return p.distance=f,p}function we(){function t(t,i){var a=Math.sin(i*=Nu),u=Math.cos(i),o=pu((t*=Nu)-n),s=Math.cos(o);qo+=Math.atan2(Math.sqrt((o=u*Math.sin(o))*o+(o=r*a-e*u*s)*o),e*a+r*u*s),n=t,e=a,r=u}var n,e,r;Go.point=function(i,a){n=i*Nu,e=Math.sin(a*=Nu),r=Math.cos(a),Go.point=t},Go.lineEnd=function(){Go.point=Go.lineEnd=w}}function Ae(t,n){function e(n,e){var r=Math.cos(n),i=Math.cos(e),a=t(r*i);return[a*i*Math.sin(n),a*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),i=n(r),a=Math.sin(i),u=Math.cos(i);return[Math.atan2(t*a,r*u),Math.asin(r&&e*a/r)]},e}function ke(t,n){function e(t,n){u>0?-Bu+Tu>n&&(n=-Bu+Tu):n>Bu-Tu&&(n=Bu-Tu);var e=u/Math.pow(i(n),a);return[e*Math.sin(a*t),u-e*Math.cos(a*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Ou/4+t/2)},a=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(i(n)/i(t)),u=r*Math.pow(i(t),a)/a;return a?(e.invert=function(t,n){var e=u-n,r=J(a)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/a,2*Math.atan(Math.pow(u/r,1/a))-Bu]},e):Me}function Ee(t,n){function e(t,n){var e=a-n;return[e*Math.sin(i*t),a-e*Math.cos(i*t)]}var r=Math.cos(t),i=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),a=r/i+t;return pu(i)<Tu?ce:(e.invert=function(t,n){var e=a-n;return[Math.atan2(t,e)/i,a-J(i)*Math.sqrt(t*t+e*e)]},e)}function Me(t,n){return[t,Math.log(Math.tan(Ou/4+n/2))]}function Se(t){var n,e=ue(t),r=e.scale,i=e.translate,a=e.clipExtent;return e.scale=function(){var t=r.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.translate=function(){var t=i.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var u=a.apply(e,arguments);if(u===e){if(n=null==t){var o=Ou*r(),s=i();a([[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]])}}else n&&(u=null);return u},e.clipExtent(null)}function De(t,n){return[Math.log(Math.tan(Ou/4+n/2)),-t]}function Ce(t){return t[0]}function Te(t){return t[1]}function Fe(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;i++){for(;r>1&&tt(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Oe(t,n){return t[0]-n[0]||t[1]-n[1]}function Le(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function Ie(t,n,e,r){var i=t[0],a=e[0],u=n[0]-i,o=r[0]-a,s=t[1],c=e[1],l=n[1]-s,h=r[1]-c,f=(o*(s-c)-h*(i-a))/(h*u-o*l);return[i+f*u,s+f*l]}function Be(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function Ne(){rr(this),this.edge=this.site=this.circle=null}function Pe(t){var n=is.pop()||new Ne;return n.site=t,n}function Re(t){Ve(t),ns.remove(t),is.push(t),rr(t)}function je(t){var n=t.circle,e=n.x,r=n.cy,i={x:e,y:r},a=t.P,u=t.N,o=[t];Re(t);for(var s=a;s.circle&&pu(e-s.circle.x)<Tu&&pu(r-s.circle.cy)<Tu;)a=s.P,o.unshift(s),Re(s),s=a;o.unshift(s),Ve(s);for(var c=u;c.circle&&pu(e-c.circle.x)<Tu&&pu(r-c.circle.cy)<Tu;)u=c.N,o.push(c),Re(c),c=u;o.push(c),Ve(c);var l,h=o.length;for(l=1;h>l;++l)c=o[l],s=o[l-1],tr(c.edge,s.site,c.site,i);s=o[0],c=o[h-1],c.edge=Qe(s.site,c.site,null,i),He(s),He(c)}function Ye(t){for(var n,e,r,i,a=t.x,u=t.y,o=ns._;o;)if(r=Ue(o,u)-a,r>Tu)o=o.L;else{if(i=a-$e(o,u),!(i>Tu)){r>-Tu?(n=o.P,e=o):i>-Tu?(n=o,e=o.N):n=e=o;break}if(!o.R){n=o;break}o=o.R}var s=Pe(t);if(ns.insert(n,s),n||e){if(n===e)return Ve(n),e=Pe(n.site),ns.insert(s,e),s.edge=e.edge=Qe(n.site,s.site),He(n),void He(e);if(!e)return void(s.edge=Qe(n.site,s.site));Ve(n),Ve(e);var c=n.site,l=c.x,h=c.y,f=t.x-l,d=t.y-h,p=e.site,g=p.x-l,y=p.y-h,m=2*(f*y-d*g),v=f*f+d*d,_=g*g+y*y,b={x:(y*v-d*_)/m+l,y:(f*_-g*v)/m+h};tr(e.edge,c,p,b),s.edge=Qe(c,t,null,b),e.edge=Qe(t,p,null,b),He(n),He(e)}}function Ue(t,n){var e=t.site,r=e.x,i=e.y,a=i-n;if(!a)return r;var u=t.P;if(!u)return-(1/0);e=u.site;var o=e.x,s=e.y,c=s-n;if(!c)return o;var l=o-r,h=1/a-1/c,f=l/c;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*c)-s+c/2+i-a/2)))/h+r:(r+o)/2}function $e(t,n){var e=t.N;if(e)return Ue(e,n);var r=t.site;return r.y===n?r.x:1/0}function We(t){this.site=t,this.edges=[]}function ze(t){for(var n,e,r,i,a,u,o,s,c,l,h=t[0][0],f=t[1][0],d=t[0][1],p=t[1][1],g=ts,y=g.length;y--;)if(a=g[y],a&&a.prepare())for(o=a.edges,s=o.length,u=0;s>u;)l=o[u].end(),r=l.x,i=l.y,c=o[++u%s].start(),n=c.x,e=c.y,(pu(r-n)>Tu||pu(i-e)>Tu)&&(o.splice(u,0,new nr(Je(a.site,l,pu(r-h)<Tu&&p-i>Tu?{x:h,y:pu(n-h)<Tu?e:p}:pu(i-p)<Tu&&f-r>Tu?{x:pu(e-p)<Tu?n:f,y:p}:pu(r-f)<Tu&&i-d>Tu?{x:f,y:pu(n-f)<Tu?e:d}:pu(i-d)<Tu&&r-h>Tu?{x:pu(e-d)<Tu?n:h,y:d}:null),a.site,null)),++s)}function qe(t,n){return n.angle-t.angle}function Ge(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function He(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,a=e.site;if(r!==a){var u=i.x,o=i.y,s=r.x-u,c=r.y-o,l=a.x-u,h=a.y-o,f=2*(s*h-c*l);if(!(f>=-Fu)){var d=s*s+c*c,p=l*l+h*h,g=(h*d-c*p)/f,y=(s*p-l*d)/f,h=y+o,m=as.pop()||new Ge;m.arc=t,m.site=i,m.x=g+u,m.y=h+Math.sqrt(g*g+y*y),m.cy=h,t.circle=m;for(var v=null,_=rs._;_;)if(m.y<_.y||m.y===_.y&&m.x<=_.x){if(!_.L){v=_.P;break}_=_.L}else{if(!_.R){v=_;break}_=_.R}rs.insert(v,m),v||(es=m)}}}}function Ve(t){var n=t.circle;n&&(n.P||(es=n.N),rs.remove(n),as.push(n),rr(n),t.circle=null)}function Ze(t){for(var n,e=Jo,r=Wn(t[0][0],t[0][1],t[1][0],t[1][1]),i=e.length;i--;)n=e[i],(!Xe(n,t)||!r(n)||pu(n.a.x-n.b.x)<Tu&&pu(n.a.y-n.b.y)<Tu)&&(n.a=n.b=null,e.splice(i,1))}function Xe(t,n){var e=t.b;if(e)return!0;var r,i,a=t.a,u=n[0][0],o=n[1][0],s=n[0][1],c=n[1][1],l=t.l,h=t.r,f=l.x,d=l.y,p=h.x,g=h.y,y=(f+p)/2,m=(d+g)/2;if(g===d){if(u>y||y>=o)return;if(f>p){if(a){if(a.y>=c)return}else a={x:y,y:s};e={x:y,y:c}}else{if(a){if(a.y<s)return}else a={x:y,y:c};e={x:y,y:s}}}else if(r=(f-p)/(g-d),i=m-r*y,-1>r||r>1)if(f>p){if(a){if(a.y>=c)return}else a={x:(s-i)/r,y:s};e={x:(c-i)/r,y:c}}else{if(a){if(a.y<s)return}else a={x:(c-i)/r,y:c};e={x:(s-i)/r,y:s}}else if(g>d){if(a){if(a.x>=o)return}else a={x:u,y:r*u+i};e={x:o,y:r*o+i}}else{if(a){if(a.x<u)return}else a={x:o,y:r*o+i};e={x:u,y:r*u+i}}return t.a=a,t.b=e,!0}function Ke(t,n){this.l=t,this.r=n,this.a=this.b=null}function Qe(t,n,e,r){var i=new Ke(t,n);return Jo.push(i),e&&tr(i,t,n,e),r&&tr(i,n,t,r),ts[t.i].edges.push(new nr(i,t,n)),ts[n.i].edges.push(new nr(i,n,t)),i}function Je(t,n,e){var r=new Ke(t,null);return r.a=n,r.b=e,Jo.push(r),r}function tr(t,n,e,r){t.a||t.b?t.l===e?t.b=r:t.a=r:(t.a=r,t.l=n,t.r=e)}function nr(t,n,e){var r=t.a,i=t.b;this.edge=t,this.site=n,this.angle=e?Math.atan2(e.y-n.y,e.x-n.x):t.l===n?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function er(){this._=null}function rr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ir(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ar(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function ur(t){for(;t.L;)t=t.L;return t}function or(t,n){var e,r,i,a=t.sort(sr).pop();for(Jo=[],ts=new Array(t.length),ns=new er,rs=new er;;)if(i=es,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))(a.x!==e||a.y!==r)&&(ts[a.i]=new We(a),Ye(a),e=a.x,r=a.y),a=t.pop();else{if(!i)break;je(i.arc)}n&&(Ze(n),ze(n));var u={cells:ts,edges:Jo};return ns=rs=Jo=ts=null,u}function sr(t,n){return n.y-t.y||n.x-t.x}function cr(t,n,e){return(t.x-e.x)*(n.y-t.y)-(t.x-n.x)*(e.y-t.y)}function lr(t){return t.x}function hr(t){return t.y}function fr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function dr(t,n,e,r,i,a){if(!t(n,e,r,i,a)){var u=.5*(e+i),o=.5*(r+a),s=n.nodes;s[0]&&dr(t,s[0],e,r,u,o),s[1]&&dr(t,s[1],u,r,i,o),s[2]&&dr(t,s[2],e,o,u,a),s[3]&&dr(t,s[3],u,o,i,a)}}function pr(t,n,e,r,i,a,u){var o,s=1/0;return function c(t,l,h,f,d){if(!(l>a||h>u||r>f||i>d)){if(p=t.point){var p,g=n-t.x,y=e-t.y,m=g*g+y*y;if(s>m){var v=Math.sqrt(s=m);r=n-v,i=e-v,a=n+v,u=e+v,o=p}}for(var _=t.nodes,b=.5*(l+f),x=.5*(h+d),w=n>=b,A=e>=x,k=A<<1|w,E=k+4;E>k;++k)if(t=_[3&k])switch(3&k){case 0:c(t,l,h,b,x);break;case 1:c(t,b,h,f,x);break;case 2:c(t,l,x,b,d);break;case 3:c(t,b,x,f,d)}}}(t,r,i,a,u),o}function gr(t,n){t=eu.rgb(t),n=eu.rgb(n);var e=t.r,r=t.g,i=t.b,a=n.r-e,u=n.g-r,o=n.b-i;return function(t){return\"#\"+xt(Math.round(e+a*t))+xt(Math.round(r+u*t))+xt(Math.round(i+o*t))}}function yr(t,n){var e,r={},i={};for(e in t)e in n?r[e]=_r(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function mr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function vr(t,n){var e,r,i,a=os.lastIndex=ss.lastIndex=0,u=-1,o=[],s=[];for(t+=\"\",n+=\"\";(e=os.exec(t))&&(r=ss.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),o[u]?o[u]+=i:o[++u]=i),(e=e[0])===(r=r[0])?o[u]?o[u]+=r:o[++u]=r:(o[++u]=null,s.push({i:u,x:mr(e,r)})),a=ss.lastIndex;return a<n.length&&(i=n.slice(a),o[u]?o[u]+=i:o[++u]=i),o.length<2?s[0]?(n=s[0].x,function(t){return n(t)+\"\"}):function(){return n}:(n=s.length,function(t){for(var e,r=0;n>r;++r)o[(e=s[r]).i]=e.x(t);return o.join(\"\")})}function _r(t,n){for(var e,r=eu.interpolators.length;--r>=0&&!(e=eu.interpolators[r](t,n)););return e}function br(t,n){var e,r=[],i=[],a=t.length,u=n.length,o=Math.min(t.length,n.length);for(e=0;o>e;++e)r.push(_r(t[e],n[e]));for(;a>e;++e)i[e]=t[e];for(;u>e;++e)i[e]=n[e];return function(t){for(e=0;o>e;++e)i[e]=r[e](t);return i}}function xr(t){return function(n){return 0>=n?0:n>=1?1:t(n)}}function wr(t){return function(n){return 1-t(1-n)}}function Ar(t){return function(n){return.5*(.5>n?t(2*n):2-t(2-2*n))}}function kr(t){return t*t}function Er(t){return t*t*t}function Mr(t){if(0>=t)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(.5>t?e:3*(t-n)+e-.75)}function Sr(t){return function(n){return Math.pow(n,t)}}function Dr(t){return 1-Math.cos(t*Bu)}function Cr(t){return Math.pow(2,10*(t-1))}function Tr(t){return 1-Math.sqrt(1-t*t)}function Fr(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/Lu*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*Lu/n)}}function Or(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function Lr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Ir(t,n){t=eu.hcl(t),n=eu.hcl(n);var e=t.h,r=t.c,i=t.l,a=n.h-e,u=n.c-r,o=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.c:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return ht(e+a*t,r+u*t,i+o*t)+\"\"}}function Br(t,n){t=eu.hsl(t),n=eu.hsl(n);var e=t.h,r=t.s,i=t.l,a=n.h-e,u=n.s-r,o=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.s:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return ct(e+a*t,r+u*t,i+o*t)+\"\"}}function Nr(t,n){t=eu.lab(t),n=eu.lab(n);var e=t.l,r=t.a,i=t.b,a=n.l-e,u=n.a-r,o=n.b-i;return function(t){return dt(e+a*t,r+u*t,i+o*t)+\"\"}}function Pr(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function Rr(t){var n=[t.a,t.b],e=[t.c,t.d],r=Yr(n),i=jr(n,e),a=Yr(Ur(e,n,-i))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*Pu,this.translate=[t.e,t.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*Pu:0}function jr(t,n){return t[0]*n[0]+t[1]*n[1]}function Yr(t){var n=Math.sqrt(jr(t,t));return n&&(t[0]/=n,t[1]/=n),n}function Ur(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}function $r(t,n){var e,r=[],i=[],a=eu.transform(t),u=eu.transform(n),o=a.translate,s=u.translate,c=a.rotate,l=u.rotate,h=a.skew,f=u.skew,d=a.scale,p=u.scale;return o[0]!=s[0]||o[1]!=s[1]?(r.push(\"translate(\",null,\",\",null,\")\"),i.push({i:1,x:mr(o[0],s[0])},{i:3,x:mr(o[1],s[1])})):r.push(s[0]||s[1]?\"translate(\"+s+\")\":\"\"),c!=l?(c-l>180?l+=360:l-c>180&&(c+=360),i.push({i:r.push(r.pop()+\"rotate(\",null,\")\")-2,x:mr(c,l)})):l&&r.push(r.pop()+\"rotate(\"+l+\")\"),h!=f?i.push({i:r.push(r.pop()+\"skewX(\",null,\")\")-2,x:mr(h,f)}):f&&r.push(r.pop()+\"skewX(\"+f+\")\"),d[0]!=p[0]||d[1]!=p[1]?(e=r.push(r.pop()+\"scale(\",null,\",\",null,\")\"),i.push({i:e-4,x:mr(d[0],p[0])},{i:e-2,x:mr(d[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+\"scale(\"+p+\")\"),e=i.length,function(t){for(var n,a=-1;++a<e;)r[(n=i[a]).i]=n.x(t);return r.join(\"\")}}function Wr(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function zr(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function qr(t){for(var n=t.source,e=t.target,r=Hr(n,e),i=[n];n!==r;)n=n.parent,i.push(n);for(var a=i.length;e!==r;)i.splice(a,0,e),e=e.parent;return i}function Gr(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function Hr(t,n){if(t===n)return t;for(var e=Gr(t),r=Gr(n),i=e.pop(),a=r.pop(),u=null;i===a;)u=i,i=e.pop(),a=r.pop();return u}function Vr(t){t.fixed|=2}function Zr(t){t.fixed&=-7}function Xr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Kr(t){t.fixed&=-5}function Qr(t,n,e){var r=0,i=0;if(t.charge=0,!t.leaf)for(var a,u=t.nodes,o=u.length,s=-1;++s<o;)a=u[s],null!=a&&(Qr(a,n,e),t.charge+=a.charge,r+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=n*e[t.point.index];t.charge+=t.pointCharge=c,r+=c*t.point.x,i+=c*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Jr(t,n){return eu.rebind(t,n,\"sort\",\"children\",\"value\"),t.nodes=t,t.links=ai,t}function ti(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function ni(t,n){for(var e=[t],r=[];null!=(t=e.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,u=-1;++u<i;)e.push(a[u]);for(;null!=(t=r.pop());)n(t)}function ei(t){return t.children}function ri(t){return t.value}function ii(t,n){return n.value-t.value}function ai(t){return eu.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function ui(t){return t.x}function oi(t){return t.y}function si(t,n,e){t.y0=n,t.y=e}function ci(t){return eu.range(t.length)}function li(t){for(var n=-1,e=t[0].length,r=[];++n<e;)r[n]=0;return r}function hi(t){for(var n,e=1,r=0,i=t[0][1],a=t.length;a>e;++e)(n=t[e][1])>i&&(r=e,i=n);return r}function fi(t){return t.reduce(di,0)}function di(t,n){return t+n[1]}function pi(t,n){return gi(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function gi(t,n){for(var e=-1,r=+t[0],i=(t[1]-r)/n,a=[];++e<=n;)a[e]=i*e+r;return a}function yi(t){return[eu.min(t),eu.max(t)]}function mi(t,n){return t.value-n.value}function vi(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function _i(t,n){t._pack_next=n,n._pack_prev=t}function bi(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return.999*i*i>e*e+r*r}function xi(t){function n(t){l=Math.min(t.x-t.r,l),h=Math.max(t.x+t.r,h),f=Math.min(t.y-t.r,f),d=Math.max(t.y+t.r,d)}if((e=t.children)&&(c=e.length)){var e,r,i,a,u,o,s,c,l=1/0,h=-(1/0),f=1/0,d=-(1/0);if(e.forEach(wi),r=e[0],r.x=-r.r,r.y=0,n(r),c>1&&(i=e[1],i.x=i.r,i.y=0,n(i),c>2))for(a=e[2],Ei(r,i,a),n(a),vi(r,a),r._pack_prev=a,vi(a,i),i=r._pack_next,u=3;c>u;u++){Ei(r,i,a=e[u]);var p=0,g=1,y=1;for(o=i._pack_next;o!==i;o=o._pack_next,g++)if(bi(o,a)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&&!bi(s,a);s=s._pack_prev,y++);p?(y>g||g==y&&i.r<r.r?_i(r,i=o):_i(r=s,i),u--):(vi(r,a),i=a,n(a))}var m=(l+h)/2,v=(f+d)/2,_=0;for(u=0;c>u;u++)a=e[u],a.x-=m,a.y-=v,_=Math.max(_,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=_,e.forEach(Ai)}}function wi(t){t._pack_next=t._pack_prev=t}function Ai(t){delete t._pack_next,delete t._pack_prev}function ki(t,n,e,r){var i=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,i)for(var a=-1,u=i.length;++a<u;)ki(i[a],n,e,r)}function Ei(t,n,e){var r=t.r+e.r,i=n.x-t.x,a=n.y-t.y;if(r&&(i||a)){var u=n.r+e.r,o=i*i+a*a;u*=u,r*=r;var s=.5+(r-u)/(2*o),c=Math.sqrt(Math.max(0,2*u*(r+o)-(r-=o)*r-u*u))/(2*o);e.x=t.x+s*i+c*a,e.y=t.y+s*a-c*i}else e.x=t.x+r,e.y=t.y}function Mi(t,n){return t.parent==n.parent?1:2}function Si(t){var n=t.children;return n.length?n[0]:t.t}function Di(t){var n,e=t.children;return(n=e.length)?e[n-1]:t.t}function Ci(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Ti(t){for(var n,e=0,r=0,i=t.children,a=i.length;--a>=0;)n=i[a],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Fi(t,n,e){return t.a.parent===n.parent?t.a:e}function Oi(t){return 1+eu.max(t,function(t){return t.y})}function Li(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}function Ii(t){var n=t.children;return n&&n.length?Ii(n[0]):t}function Bi(t){var n,e=t.children;return e&&(n=e.length)?Bi(e[n-1]):t}function Ni(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Pi(t,n){var e=t.x+n[3],r=t.y+n[0],i=t.dx-n[1]-n[3],a=t.dy-n[0]-n[2];return 0>i&&(e+=i/2,i=0),0>a&&(r+=a/2,a=0),{x:e,y:r,dx:i,dy:a}}function Ri(t){var n=t[0],e=t[t.length-1];return e>n?[n,e]:[e,n]}function ji(t){return t.rangeExtent?t.rangeExtent():Ri(t.range())}function Yi(t,n,e,r){var i=e(t[0],t[1]),a=r(n[0],n[1]);return function(t){return a(i(t))}}function Ui(t,n){var e,r=0,i=t.length-1,a=t[r],u=t[i];return a>u&&(e=r,r=i,i=e,e=a,a=u,u=e),t[r]=n.floor(a),t[i]=n.ceil(u),t}function $i(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:_s}function Wi(t,n,e,r){var i=[],a=[],u=0,o=Math.min(t.length,n.length)-1;for(t[o]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<=o;)i.push(e(t[u-1],t[u])),a.push(r(n[u-1],n[u]));return function(n){var e=eu.bisect(t,n,1,o)-1;return a[e](i[e](n))}}function zi(t,n,e,r){function i(){var i=Math.min(t.length,n.length)>2?Wi:Yi,s=r?zr:Wr;return u=i(t,n,s,e),o=i(n,t,s,_r),a}function a(t){return u(t)}var u,o;return a.invert=function(t){return o(t)},a.domain=function(n){return arguments.length?(t=n.map(Number),i()):t},a.range=function(t){return arguments.length?(n=t,i()):n},a.rangeRound=function(t){return a.range(t).interpolate(Pr)},a.clamp=function(t){return arguments.length?(r=t,i()):r},a.interpolate=function(t){return arguments.length?(e=t,i()):e},a.ticks=function(n){return Vi(t,n)},a.tickFormat=function(n,e){return Zi(t,n,e)},a.nice=function(n){return Gi(t,n),i()},a.copy=function(){return zi(t,n,e,r)},i()}function qi(t,n){return eu.rebind(t,n,\"range\",\"rangeRound\",\"interpolate\",\"clamp\")}function Gi(t,n){return Ui(t,$i(Hi(t,n)[2]))}function Hi(t,n){null==n&&(n=10);var e=Ri(t),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),a=n/r*i;return.15>=a?i*=10:.35>=a?i*=5:.75>=a&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Vi(t,n){return eu.range.apply(eu,Hi(t,n))}function Zi(t,n,e){var r=Hi(t,n);if(e){var i=uo.exec(e);if(i.shift(),\"s\"===i[8]){var a=eu.formatPrefix(Math.max(pu(r[0]),pu(r[1])));return i[7]||(i[7]=\".\"+Xi(a.scale(r[2]))),i[8]=\"f\",e=eu.format(i.join(\"\")),function(t){return e(a.scale(t))+a.symbol}}i[7]||(i[7]=\".\"+Ki(i[8],r)),e=i.join(\"\")}else e=\",.\"+Xi(r[2])+\"f\";return eu.format(e)}function Xi(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ki(t,n){var e=Xi(n[2]);return t in bs?Math.abs(e-Xi(Math.max(pu(n[0]),pu(n[1]))))+ +(\"e\"!==t):e-2*(\"%\"===t)}function Qi(t,n,e,r){function i(t){return(e?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function a(t){return e?Math.pow(n,t):-Math.pow(n,-t)}function u(n){return t(i(n))}return u.invert=function(n){return a(t.invert(n))},u.domain=function(n){return arguments.length?(e=n[0]>=0,t.domain((r=n.map(Number)).map(i)),u):r},u.base=function(e){return arguments.length?(n=+e,t.domain(r.map(i)),u):n},u.nice=function(){var n=Ui(r.map(i),e?Math:ws);return t.domain(n),r=n.map(a),u},u.ticks=function(){var t=Ri(r),u=[],o=t[0],s=t[1],c=Math.floor(i(o)),l=Math.ceil(i(s)),h=n%1?2:n;if(isFinite(l-c)){if(e){for(;l>c;c++)for(var f=1;h>f;f++)u.push(a(c)*f);u.push(a(c))}else for(u.push(a(c));c++<l;)for(var f=h-1;f>0;f--)u.push(a(c)*f);for(c=0;u[c]<o;c++);for(l=u.length;u[l-1]>s;l--);u=u.slice(c,l)}return u},u.tickFormat=function(t,n){if(!arguments.length)return xs;arguments.length<2?n=xs:\"function\"!=typeof n&&(n=eu.format(n));var r,o=Math.max(.1,t/u.ticks().length),s=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/a(s(i(t)+r))<=o?n(t):\"\"}},u.copy=function(){return Qi(t.copy(),n,e,r)},qi(u,t)}function Ji(t,n,e){function r(n){return t(i(n))}var i=ta(n),a=ta(1/n);return r.invert=function(n){return a(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain((e=n.map(Number)).map(i)),r):e},r.ticks=function(t){return Vi(e,t)},r.tickFormat=function(t,n){return Zi(e,t,n)},r.nice=function(t){return r.domain(Gi(e,t))},r.exponent=function(u){return arguments.length?(i=ta(n=u),a=ta(1/n),t.domain(e.map(i)),r):n},r.copy=function(){return Ji(t.copy(),n,e)},qi(r,t)}function ta(t){return function(n){return 0>n?-Math.pow(-n,t):Math.pow(n,t)}}function na(t,n){function e(e){return a[((i.get(e)||(\"range\"===n.t?i.set(e,t.push(e)):0/0))-1)%a.length]}function r(n,e){return eu.range(t.length).map(function(t){return n+e*t})}var i,a,u;return e.domain=function(r){if(!arguments.length)return t;t=[],i=new l;for(var a,u=-1,o=r.length;++u<o;)i.has(a=r[u])||i.set(a,t.push(a));return e[n.t].apply(e,n.a)},e.range=function(t){return arguments.length?(a=t,u=0,n={t:\"range\",a:arguments},e):a},e.rangePoints=function(i,o){arguments.length<2&&(o=0);var s=i[0],c=i[1],l=t.length<2?(s=(s+c)/2,0):(c-s)/(t.length-1+o);return a=r(s+l*o/2,l),u=0,n={t:\"rangePoints\",a:arguments},e},e.rangeRoundPoints=function(i,o){arguments.length<2&&(o=0);var s=i[0],c=i[1],l=t.length<2?(s=c=Math.round((s+c)/2),0):(c-s)/(t.length-1+o)|0;return a=r(s+Math.round(l*o/2+(c-s-(t.length-1+o)*l)/2),l),u=0,n={t:\"rangeRoundPoints\",a:arguments},e},e.rangeBands=function(i,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var c=i[1]<i[0],l=i[c-0],h=i[1-c],f=(h-l)/(t.length-o+2*s);return a=r(l+f*s,f),c&&a.reverse(),u=f*(1-o),n={t:\"rangeBands\",a:arguments},e},e.rangeRoundBands=function(i,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var c=i[1]<i[0],l=i[c-0],h=i[1-c],f=Math.floor((h-l)/(t.length-o+2*s));return a=r(l+Math.round((h-l-(t.length-o)*f)/2),f),c&&a.reverse(),u=Math.round(f*(1-o)),n={t:\"rangeRoundBands\",a:arguments},e},e.rangeBand=function(){return u},e.rangeExtent=function(){return Ri(n.a[0])},e.copy=function(){return na(t,n)},e.domain(t)}function ea(t,n){function e(){var e=0,r=n.length;for(o=[];++e<r;)o[e-1]=eu.quantile(t,e/r);return u}function u(t){return isNaN(t=+t)?void 0:n[eu.bisect(o,t)]}var o;return u.domain=function(n){return arguments.length?(t=n.map(i).filter(a).sort(r),e()):t},u.range=function(t){return arguments.length?(n=t,e()):n},u.quantiles=function(){return o},u.invertExtent=function(e){return e=n.indexOf(e),0>e?[0/0,0/0]:[e>0?o[e-1]:t[0],e<o.length?o[e]:t[t.length-1]]},u.copy=function(){return ea(t,n)},e()}function ra(t,n,e){function r(n){return e[Math.max(0,Math.min(u,Math.floor(a*(n-t))))]}function i(){return a=e.length/(n-t),u=e.length-1,r}var a,u;return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],i()):[t,n]},r.range=function(t){return arguments.length?(e=t,i()):e},r.invertExtent=function(n){return n=e.indexOf(n),n=0>n?0/0:n/a+t,[n,n+1/a]},r.copy=function(){return ra(t,n,e)},i()}function ia(t,n){function e(e){return e>=e?n[eu.bisect(t,e)]:void 0}return e.domain=function(n){return arguments.length?(t=n,e):t},e.range=function(t){return arguments.length?(n=t,e):n},e.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},e.copy=function(){return ia(t,n)},e}function aa(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(n){return Vi(t,n)},n.tickFormat=function(n,e){return Zi(t,n,e)},n.copy=function(){return aa(t)},n}function ua(){return 0}function oa(t){return t.innerRadius}function sa(t){return t.outerRadius}function ca(t){return t.startAngle}function la(t){return t.endAngle}function ha(t){return t&&t.padAngle}function fa(t,n,e,r){return(t-e)*n-(n-r)*t>0?0:1}function da(t,n,e,r,i){var a=t[0]-n[0],u=t[1]-n[1],o=(i?r:-r)/Math.sqrt(a*a+u*u),s=o*u,c=-o*a,l=t[0]+s,h=t[1]+c,f=n[0]+s,d=n[1]+c,p=(l+f)/2,g=(h+d)/2,y=f-l,m=d-h,v=y*y+m*m,_=e-r,b=l*d-f*h,x=(0>m?-1:1)*Math.sqrt(_*_*v-b*b),w=(b*m-y*x)/v,A=(-b*y-m*x)/v,k=(b*m+y*x)/v,E=(-b*y+m*x)/v,M=w-p,S=A-g,D=k-p,C=E-g;return M*M+S*S>D*D+C*C&&(w=k,A=E),[[w-s,A-c],[w*e/_,A*e/_]]}function pa(t){function n(n){function u(){c.push(\"M\",a(t(l),o))}for(var s,c=[],l=[],h=-1,f=n.length,d=St(e),p=St(r);++h<f;)i.call(this,s=n[h],h)?l.push([+d.call(this,s,h),+p.call(this,s,h)]):l.length&&(u(),l=[]);return l.length&&u(),c.length?c.join(\"\"):null}var e=Ce,r=Te,i=Tn,a=ga,u=a.key,o=.7;return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n.defined=function(t){return arguments.length?(i=t,n):i},n.interpolate=function(t){return arguments.length?(u=\"function\"==typeof t?a=t:(a=Ds.get(t)||ga).key,n):u},n.tension=function(t){return arguments.length?(o=t,n):o},n}function ga(t){return t.join(\"L\")}function ya(t){return ga(t)+\"Z\"}function ma(t){for(var n=0,e=t.length,r=t[0],i=[r[0],\",\",r[1]];++n<e;)i.push(\"H\",(r[0]+(r=t[n])[0])/2,\"V\",r[1]);return e>1&&i.push(\"H\",r[0]),i.join(\"\")}function va(t){for(var n=0,e=t.length,r=t[0],i=[r[0],\",\",r[1]];++n<e;)i.push(\"V\",(r=t[n])[1],\"H\",r[0]);return i.join(\"\")}function _a(t){for(var n=0,e=t.length,r=t[0],i=[r[0],\",\",r[1]];++n<e;)i.push(\"H\",(r=t[n])[0],\"V\",r[1]);return i.join(\"\")}function ba(t,n){return t.length<4?ga(t):t[1]+Aa(t.slice(1,-1),ka(t,n))}function xa(t,n){return t.length<3?ga(t):t[0]+Aa((t.push(t[0]),t),ka([t[t.length-2]].concat(t,[t[1]]),n))}function wa(t,n){return t.length<3?ga(t):t[0]+Aa(t,ka(t,n))}function Aa(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return ga(t);var e=t.length!=n.length,r=\"\",i=t[0],a=t[1],u=n[0],o=u,s=1;if(e&&(r+=\"Q\"+(a[0]-2*u[0]/3)+\",\"+(a[1]-2*u[1]/3)+\",\"+a[0]+\",\"+a[1],i=t[1],s=2),n.length>1){o=n[1],a=t[s],s++,r+=\"C\"+(i[0]+u[0])+\",\"+(i[1]+u[1])+\",\"+(a[0]-o[0])+\",\"+(a[1]-o[1])+\",\"+a[0]+\",\"+a[1];for(var c=2;c<n.length;c++,s++)a=t[s],o=n[c],r+=\"S\"+(a[0]-o[0])+\",\"+(a[1]-o[1])+\",\"+a[0]+\",\"+a[1]}if(e){var l=t[s];r+=\"Q\"+(a[0]+2*o[0]/3)+\",\"+(a[1]+2*o[1]/3)+\",\"+l[0]+\",\"+l[1]}return r}function ka(t,n){for(var e,r=[],i=(1-n)/2,a=t[0],u=t[1],o=1,s=t.length;++o<s;)e=a,a=u,u=t[o],r.push([i*(u[0]-e[0]),i*(u[1]-e[1])]);return r}function Ea(t){if(t.length<3)return ga(t);var n=1,e=t.length,r=t[0],i=r[0],a=r[1],u=[i,i,i,(r=t[1])[0]],o=[a,a,a,r[1]],s=[i,\",\",a,\"L\",Ca(Fs,u),\",\",Ca(Fs,o)];for(t.push(t[e-1]);++n<=e;)r=t[n],u.shift(),u.push(r[0]),o.shift(),o.push(r[1]),Ta(s,u,o);return t.pop(),s.push(\"L\",r),s.join(\"\")}function Ma(t){if(t.length<4)return ga(t);for(var n,e=[],r=-1,i=t.length,a=[0],u=[0];++r<3;)n=t[r],a.push(n[0]),u.push(n[1]);for(e.push(Ca(Fs,a)+\",\"+Ca(Fs,u)),--r;++r<i;)n=t[r],a.shift(),a.push(n[0]),u.shift(),u.push(n[1]),Ta(e,a,u);return e.join(\"\")}function Sa(t){for(var n,e,r=-1,i=t.length,a=i+4,u=[],o=[];++r<4;)e=t[r%i],u.push(e[0]),o.push(e[1]);for(n=[Ca(Fs,u),\",\",Ca(Fs,o)],--r;++r<a;)e=t[r%i],u.shift(),u.push(e[0]),o.shift(),o.push(e[1]),Ta(n,u,o);return n.join(\"\")}function Da(t,n){var e=t.length-1;if(e)for(var r,i,a=t[0][0],u=t[0][1],o=t[e][0]-a,s=t[e][1]-u,c=-1;++c<=e;)r=t[c],i=c/e,r[0]=n*r[0]+(1-n)*(a+i*o),r[1]=n*r[1]+(1-n)*(u+i*s);return Ea(t)}function Ca(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function Ta(t,n,e){t.push(\"C\",Ca(Cs,n),\",\",Ca(Cs,e),\",\",Ca(Ts,n),\",\",Ca(Ts,e),\",\",Ca(Fs,n),\",\",Ca(Fs,e))}function Fa(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Oa(t){for(var n=0,e=t.length-1,r=[],i=t[0],a=t[1],u=r[0]=Fa(i,a);++n<e;)r[n]=(u+(u=Fa(i=a,a=t[n+1])))/2;return r[n]=u,r}function La(t){for(var n,e,r,i,a=[],u=Oa(t),o=-1,s=t.length-1;++o<s;)n=Fa(t[o],t[o+1]),pu(n)<Tu?u[o]=u[o+1]=0:(e=u[o]/n,r=u[o+1]/n,i=e*e+r*r,i>9&&(i=3*n/Math.sqrt(i),u[o]=i*e,u[o+1]=i*r));for(o=-1;++o<=s;)i=(t[Math.min(s,o+1)][0]-t[Math.max(0,o-1)][0])/(6*(1+u[o]*u[o])),\na.push([i||0,u[o]*i||0]);return a}function Ia(t){return t.length<3?ga(t):t[0]+Aa(t,La(t))}function Ba(t){for(var n,e,r,i=-1,a=t.length;++i<a;)n=t[i],e=n[0],r=n[1]-Bu,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function Na(t){function n(n){function s(){g.push(\"M\",o(t(m),h),l,c(t(y.reverse()),h),\"Z\")}for(var f,d,p,g=[],y=[],m=[],v=-1,_=n.length,b=St(e),x=St(i),w=e===r?function(){return d}:St(r),A=i===a?function(){return p}:St(a);++v<_;)u.call(this,f=n[v],v)?(y.push([d=+b.call(this,f,v),p=+x.call(this,f,v)]),m.push([+w.call(this,f,v),+A.call(this,f,v)])):y.length&&(s(),y=[],m=[]);return y.length&&s(),g.length?g.join(\"\"):null}var e=Ce,r=Ce,i=0,a=Te,u=Tn,o=ga,s=o.key,c=o,l=\"L\",h=.7;return n.x=function(t){return arguments.length?(e=r=t,n):r},n.x0=function(t){return arguments.length?(e=t,n):e},n.x1=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(i=a=t,n):a},n.y0=function(t){return arguments.length?(i=t,n):i},n.y1=function(t){return arguments.length?(a=t,n):a},n.defined=function(t){return arguments.length?(u=t,n):u},n.interpolate=function(t){return arguments.length?(s=\"function\"==typeof t?o=t:(o=Ds.get(t)||ga).key,c=o.reverse||o,l=o.closed?\"M\":\"L\",n):s},n.tension=function(t){return arguments.length?(h=t,n):h},n}function Pa(t){return t.radius}function Ra(t){return[t.x,t.y]}function ja(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]-Bu;return[e*Math.cos(r),e*Math.sin(r)]}}function Ya(){return 64}function Ua(){return\"circle\"}function $a(t){var n=Math.sqrt(t/Ou);return\"M0,\"+n+\"A\"+n+\",\"+n+\" 0 1,1 0,\"+-n+\"A\"+n+\",\"+n+\" 0 1,1 0,\"+n+\"Z\"}function Wa(t){return function(){var n,e;(n=this[t])&&(e=n[n.active])&&(--n.count?delete n[n.active]:delete this[t],n.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function za(t,n,e){return _u(t,Rs),t.namespace=n,t.id=e,t}function qa(t,n,e,r){var i=t.id,a=t.namespace;return z(t,\"function\"==typeof e?function(t,u,o){t[a][i].tween.set(n,r(e.call(t,t.__data__,u,o)))}:(e=r(e),function(t){t[a][i].tween.set(n,e)}))}function Ga(t){return null==t&&(t=\"\"),function(){this.textContent=t}}function Ha(t){return null==t?\"__transition__\":\"__transition_\"+t+\"__\"}function Va(t,n,e,r,i){var a=t[e]||(t[e]={active:0,count:0}),u=a[r];if(!u){var o=i.time;u=a[r]={tween:new l,time:o,delay:i.delay,duration:i.duration,ease:i.ease,index:n},i=null,++a.count,eu.timer(function(i){function s(e){if(a.active>r)return l();var i=a[a.active];i&&(--a.count,delete a[a.active],i.event&&i.event.interrupt.call(t,t.__data__,i.index)),a.active=r,u.event&&u.event.start.call(t,t.__data__,n),u.tween.forEach(function(e,r){(r=r.call(t,t.__data__,n))&&g.push(r)}),f=u.ease,h=u.duration,eu.timer(function(){return p.c=c(e||1)?Tn:c,1},0,o)}function c(e){if(a.active!==r)return 1;for(var i=e/h,o=f(i),s=g.length;s>0;)g[--s].call(t,o);return i>=1?(u.event&&u.event.end.call(t,t.__data__,n),l()):void 0}function l(){return--a.count?delete a[r]:delete t[e],1}var h,f,d=u.delay,p=ro,g=[];return p.t=d+o,i>=d?s(i-d):void(p.c=s)},0,o)}}function Za(t,n,e){t.attr(\"transform\",function(t){var r=n(t);return\"translate(\"+(isFinite(r)?r:e(t))+\",0)\"})}function Xa(t,n,e){t.attr(\"transform\",function(t){var r=n(t);return\"translate(0,\"+(isFinite(r)?r:e(t))+\")\"})}function Ka(t){return t.toISOString()}function Qa(t,n,e){function r(n){return t(n)}function i(t,e){var r=t[1]-t[0],i=r/e,a=eu.bisect(Hs,i);return a==Hs.length?[n.year,Hi(t.map(function(t){return t/31536e6}),e)[2]]:a?n[i/Hs[a-1]<Hs[a]/i?a-1:a]:[Xs,Hi(t,e)[2]]}return r.invert=function(n){return Ja(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(Ja)},r.nice=function(t,n){function e(e){return!isNaN(e)&&!t.range(e,Ja(+e+1),n).length}var a=r.domain(),u=Ri(a),o=null==t?i(u,10):\"number\"==typeof t&&i(u,t);return o&&(t=o[0],n=o[1]),r.domain(Ui(a,n>1?{floor:function(n){for(;e(n=t.floor(n));)n=Ja(n-1);return n},ceil:function(n){for(;e(n=t.ceil(n));)n=Ja(+n+1);return n}}:t))},r.ticks=function(t,n){var e=Ri(r.domain()),a=null==t?i(e,10):\"number\"==typeof t?i(e,t):!t.range&&[{range:t},n];return a&&(t=a[0],n=a[1]),t.range(e[0],Ja(+e[1]+1),1>n?1:n)},r.tickFormat=function(){return e},r.copy=function(){return Qa(t.copy(),n,e)},qi(r,t)}function Ja(t){return new Date(t)}function tu(t){return JSON.parse(t.responseText)}function nu(t){var n=au.createRange();return n.selectNode(au.body),n.createContextualFragment(t.responseText)}var eu={version:\"3.5.6\"},ru=[].slice,iu=function(t){return ru.call(t)},au=this.document;if(au)try{iu(au.documentElement.childNodes)[0].nodeType}catch(uu){iu=function(t){for(var n=t.length,e=new Array(n);n--;)e[n]=t[n];return e}}if(Date.now||(Date.now=function(){return+new Date}),au)try{au.createElement(\"DIV\").style.setProperty(\"opacity\",0,\"\")}catch(ou){var su=this.Element.prototype,cu=su.setAttribute,lu=su.setAttributeNS,hu=this.CSSStyleDeclaration.prototype,fu=hu.setProperty;su.setAttribute=function(t,n){cu.call(this,t,n+\"\")},su.setAttributeNS=function(t,n,e){lu.call(this,t,n,e+\"\")},hu.setProperty=function(t,n,e){fu.call(this,t,n+\"\",e)}}eu.ascending=r,eu.descending=function(t,n){return t>n?-1:n>t?1:n>=t?0:0/0},eu.min=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<a;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<a;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<a;)null!=(r=n.call(t,t[i],i))&&e>r&&(e=r)}return e},eu.max=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<a;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<a;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<a;)null!=(r=n.call(t,t[i],i))&&r>e&&(e=r)}return e},eu.extent=function(t,n){var e,r,i,a=-1,u=t.length;if(1===arguments.length){for(;++a<u;)if(null!=(r=t[a])&&r>=r){e=i=r;break}for(;++a<u;)null!=(r=t[a])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++a<u;)if(null!=(r=n.call(t,t[a],a))&&r>=r){e=i=r;break}for(;++a<u;)null!=(r=n.call(t,t[a],a))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},eu.sum=function(t,n){var e,r=0,i=t.length,u=-1;if(1===arguments.length)for(;++u<i;)a(e=+t[u])&&(r+=e);else for(;++u<i;)a(e=+n.call(t,t[u],u))&&(r+=e);return r},eu.mean=function(t,n){var e,r=0,u=t.length,o=-1,s=u;if(1===arguments.length)for(;++o<u;)a(e=i(t[o]))?r+=e:--s;else for(;++o<u;)a(e=i(n.call(t,t[o],o)))?r+=e:--s;return s?r/s:void 0},eu.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),i=+t[r-1],a=e-r;return a?i+a*(t[r]-i):i},eu.median=function(t,n){var e,u=[],o=t.length,s=-1;if(1===arguments.length)for(;++s<o;)a(e=i(t[s]))&&u.push(e);else for(;++s<o;)a(e=i(n.call(t,t[s],s)))&&u.push(e);return u.length?eu.quantile(u.sort(r),.5):void 0},eu.variance=function(t,n){var e,r,u=t.length,o=0,s=0,c=-1,l=0;if(1===arguments.length)for(;++c<u;)a(e=i(t[c]))&&(r=e-o,o+=r/++l,s+=r*(e-o));else for(;++c<u;)a(e=i(n.call(t,t[c],c)))&&(r=e-o,o+=r/++l,s+=r*(e-o));return l>1?s/(l-1):void 0},eu.deviation=function(){var t=eu.variance.apply(this,arguments);return t?Math.sqrt(t):t};var du=u(r);eu.bisectLeft=du.left,eu.bisect=eu.bisectRight=du.right,eu.bisector=function(t){return u(1===t.length?function(n,e){return r(t(n),e)}:t)},eu.shuffle=function(t,n,e){(a=arguments.length)<3&&(e=t.length,2>a&&(n=0));for(var r,i,a=e-n;a;)i=Math.random()*a--|0,r=t[a+n],t[a+n]=t[i+n],t[i+n]=r;return t},eu.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},eu.pairs=function(t){for(var n,e=0,r=t.length-1,i=t[0],a=new Array(0>r?0:r);r>e;)a[e]=[n=i,i=t[++e]];return a},eu.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,n=eu.min(arguments,o),e=new Array(n);++t<n;)for(var r,i=-1,a=e[t]=new Array(r);++i<r;)a[i]=arguments[i][t];return e},eu.transpose=function(t){return eu.zip.apply(eu,t)},eu.keys=function(t){var n=[];for(var e in t)n.push(e);return n},eu.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},eu.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},eu.merge=function(t){for(var n,e,r,i=t.length,a=-1,u=0;++a<i;)u+=t[a].length;for(e=new Array(u);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--u]=r[n];return e};var pu=Math.abs;eu.range=function(t,n,e){if(arguments.length<3&&(e=1,arguments.length<2&&(n=t,t=0)),(n-t)/e===1/0)throw new Error(\"infinite range\");var r,i=[],a=s(pu(e)),u=-1;if(t*=a,n*=a,e*=a,0>e)for(;(r=t+e*++u)>n;)i.push(r/a);else for(;(r=t+e*++u)<n;)i.push(r/a);return i},eu.map=function(t,n){var e=new l;if(t instanceof l)t.forEach(function(t,n){e.set(t,n)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)e.set(i,t[i]);else for(;++i<a;)e.set(n.call(t,r=t[i],i),r)}else for(var u in t)e.set(u,t[u]);return e};var gu=\"__proto__\",yu=\"\\x00\";c(l,{has:d,get:function(t){return this._[h(t)]},set:function(t,n){return this._[h(t)]=n},remove:p,keys:g,values:function(){var t=[];for(var n in this._)t.push(this._[n]);return t},entries:function(){var t=[];for(var n in this._)t.push({key:f(n),value:this._[n]});return t},size:y,empty:m,forEach:function(t){for(var n in this._)t.call(this,f(n),this._[n])}}),eu.nest=function(){function t(n,u,o){if(o>=a.length)return r?r.call(i,u):e?u.sort(e):u;for(var s,c,h,f,d=-1,p=u.length,g=a[o++],y=new l;++d<p;)(f=y.get(s=g(c=u[d])))?f.push(c):y.set(s,[c]);return n?(c=n(),h=function(e,r){c.set(e,t(n,r,o))}):(c={},h=function(e,r){c[e]=t(n,r,o)}),y.forEach(h),c}function n(t,e){if(e>=a.length)return t;var r=[],i=u[e++];return t.forEach(function(t,i){r.push({key:t,values:n(i,e)})}),i?r.sort(function(t,n){return i(t.key,n.key)}):r}var e,r,i={},a=[],u=[];return i.map=function(n,e){return t(e,n,0)},i.entries=function(e){return n(t(eu.map,e,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return u[a.length-1]=t,i},i.sortValues=function(t){return e=t,i},i.rollup=function(t){return r=t,i},i},eu.set=function(t){var n=new v;if(t)for(var e=0,r=t.length;r>e;++e)n.add(t[e]);return n},c(v,{has:d,add:function(t){return this._[h(t+=\"\")]=!0,t},remove:p,values:g,size:y,empty:m,forEach:function(t){for(var n in this._)t.call(this,f(n))}}),eu.behavior={},eu.rebind=function(t,n){for(var e,r=1,i=arguments.length;++r<i;)t[e=arguments[r]]=b(t,n,n[e]);return t};var mu=[\"webkit\",\"ms\",\"moz\",\"Moz\",\"o\",\"O\"];eu.dispatch=function(){for(var t=new A,n=-1,e=arguments.length;++n<e;)t[arguments[n]]=k(t);return t},A.prototype.on=function(t,n){var e=t.indexOf(\".\"),r=\"\";if(e>=0&&(r=t.slice(e+1),t=t.slice(0,e)),t)return arguments.length<2?this[t].on(r):this[t].on(r,n);if(2===arguments.length){if(null==n)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},eu.event=null,eu.requote=function(t){return t.replace(vu,\"\\\\$&\")};var vu=/[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g,_u={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]},bu=function(t,n){return n.querySelector(t)},xu=function(t,n){return n.querySelectorAll(t)},wu=function(t,n){var e=t.matches||t[x(t,\"matchesSelector\")];return(wu=function(t,n){return e.call(t,n)})(t,n)};\"function\"==typeof Sizzle&&(bu=function(t,n){return Sizzle(t,n)[0]||null},xu=Sizzle,wu=Sizzle.matchesSelector),eu.selection=function(){return eu.select(au.documentElement)};var Au=eu.selection.prototype=[];Au.select=function(t){var n,e,r,i,a=[];t=C(t);for(var u=-1,o=this.length;++u<o;){a.push(n=[]),n.parentNode=(r=this[u]).parentNode;for(var s=-1,c=r.length;++s<c;)(i=r[s])?(n.push(e=t.call(i,i.__data__,s,u)),e&&\"__data__\"in i&&(e.__data__=i.__data__)):n.push(null)}return D(a)},Au.selectAll=function(t){var n,e,r=[];t=T(t);for(var i=-1,a=this.length;++i<a;)for(var u=this[i],o=-1,s=u.length;++o<s;)(e=u[o])&&(r.push(n=iu(t.call(e,e.__data__,o,i))),n.parentNode=e);return D(r)};var ku={svg:\"http://www.w3.org/2000/svg\",xhtml:\"http://www.w3.org/1999/xhtml\",xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\",xmlns:\"http://www.w3.org/2000/xmlns/\"};eu.ns={prefix:ku,qualify:function(t){var n=t.indexOf(\":\"),e=t;return n>=0&&(e=t.slice(0,n),t=t.slice(n+1)),ku.hasOwnProperty(e)?{space:ku[e],local:t}:t}},Au.attr=function(t,n){if(arguments.length<2){if(\"string\"==typeof t){var e=this.node();return t=eu.ns.qualify(t),t.local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(F(n,t[n]));return this}return this.each(F(t,n))},Au.classed=function(t,n){if(arguments.length<2){if(\"string\"==typeof t){var e=this.node(),r=(t=I(t)).length,i=-1;if(n=e.classList){for(;++i<r;)if(!n.contains(t[i]))return!1}else for(n=e.getAttribute(\"class\");++i<r;)if(!L(t[i]).test(n))return!1;return!0}for(n in t)this.each(B(n,t[n]));return this}return this.each(B(t,n))},Au.style=function(t,n,r){var i=arguments.length;if(3>i){if(\"string\"!=typeof t){2>i&&(n=\"\");for(r in t)this.each(P(r,t[r],n));return this}if(2>i){var a=this.node();return e(a).getComputedStyle(a,null).getPropertyValue(t)}r=\"\"}return this.each(P(t,n,r))},Au.property=function(t,n){if(arguments.length<2){if(\"string\"==typeof t)return this.node()[t];for(n in t)this.each(R(n,t[n]));return this}return this.each(R(t,n))},Au.text=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?\"\":n}:null==t?function(){this.textContent=\"\"}:function(){this.textContent=t}):this.node().textContent},Au.html=function(t){return arguments.length?this.each(\"function\"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?\"\":n}:null==t?function(){this.innerHTML=\"\"}:function(){this.innerHTML=t}):this.node().innerHTML},Au.append=function(t){return t=j(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Au.insert=function(t,n){return t=j(t),n=C(n),this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})},Au.remove=function(){return this.each(Y)},Au.data=function(t,n){function e(t,e){var r,i,a,u=t.length,h=e.length,f=Math.min(u,h),d=new Array(h),p=new Array(h),g=new Array(u);if(n){var y,m=new l,v=new Array(u);for(r=-1;++r<u;)m.has(y=n.call(i=t[r],i.__data__,r))?g[r]=i:m.set(y,i),v[r]=y;for(r=-1;++r<h;)(i=m.get(y=n.call(e,a=e[r],r)))?i!==!0&&(d[r]=i,i.__data__=a):p[r]=U(a),m.set(y,!0);for(r=-1;++r<u;)m.get(v[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<f;)i=t[r],a=e[r],i?(i.__data__=a,d[r]=i):p[r]=U(a);for(;h>r;++r)p[r]=U(e[r]);for(;u>r;++r)g[r]=t[r]}p.update=d,p.parentNode=d.parentNode=g.parentNode=t.parentNode,o.push(p),s.push(d),c.push(g)}var r,i,a=-1,u=this.length;if(!arguments.length){for(t=new Array(u=(r=this[0]).length);++a<u;)(i=r[a])&&(t[a]=i.__data__);return t}var o=q([]),s=D([]),c=D([]);if(\"function\"==typeof t)for(;++a<u;)e(r=this[a],t.call(r,r.parentNode.__data__,a));else for(;++a<u;)e(r=this[a],t);return s.enter=function(){return o},s.exit=function(){return c},s},Au.datum=function(t){return arguments.length?this.property(\"__data__\",t):this.property(\"__data__\")},Au.filter=function(t){var n,e,r,i=[];\"function\"!=typeof t&&(t=$(t));for(var a=0,u=this.length;u>a;a++){i.push(n=[]),n.parentNode=(e=this[a]).parentNode;for(var o=0,s=e.length;s>o;o++)(r=e[o])&&t.call(r,r.__data__,o,a)&&n.push(r)}return D(i)},Au.order=function(){for(var t=-1,n=this.length;++t<n;)for(var e,r=this[t],i=r.length-1,a=r[i];--i>=0;)(e=r[i])&&(a&&a!==e.nextSibling&&a.parentNode.insertBefore(e,a),a=e);return this},Au.sort=function(t){t=W.apply(this,arguments);for(var n=-1,e=this.length;++n<e;)this[n].sort(t);return this.order()},Au.each=function(t){return z(this,function(n,e,r){t.call(n,n.__data__,e,r)})},Au.call=function(t){var n=iu(arguments);return t.apply(n[0]=this,n),this},Au.empty=function(){return!this.node()},Au.node=function(){for(var t=0,n=this.length;n>t;t++)for(var e=this[t],r=0,i=e.length;i>r;r++){var a=e[r];if(a)return a}return null},Au.size=function(){var t=0;return z(this,function(){++t}),t};var Eu=[];eu.selection.enter=q,eu.selection.enter.prototype=Eu,Eu.append=Au.append,Eu.empty=Au.empty,Eu.node=Au.node,Eu.call=Au.call,Eu.size=Au.size,Eu.select=function(t){for(var n,e,r,i,a,u=[],o=-1,s=this.length;++o<s;){r=(i=this[o]).update,u.push(n=[]),n.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(a=i[c])?(n.push(r[c]=e=t.call(i.parentNode,a.__data__,c,o)),e.__data__=a.__data__):n.push(null)}return D(u)},Eu.insert=function(t,n){return arguments.length<2&&(n=G(this)),Au.insert.call(this,t,n)},eu.select=function(n){var e;return\"string\"==typeof n?(e=[bu(n,au)],e.parentNode=au.documentElement):(e=[n],e.parentNode=t(n)),D([e])},eu.selectAll=function(t){var n;return\"string\"==typeof t?(n=iu(xu(t,au)),n.parentNode=au.documentElement):(n=t,n.parentNode=null),D([n])},Au.on=function(t,n,e){var r=arguments.length;if(3>r){if(\"string\"!=typeof t){2>r&&(n=!1);for(e in t)this.each(H(e,t[e],n));return this}if(2>r)return(r=this.node()[\"__on\"+t])&&r._;e=!1}return this.each(H(t,n,e))};var Mu=eu.map({mouseenter:\"mouseover\",mouseleave:\"mouseout\"});au&&Mu.forEach(function(t){\"on\"+t in au&&Mu.remove(t)});var Su,Du=0;eu.mouse=function(t){return K(t,M())};var Cu=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;eu.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=M().changedTouches),n)for(var r,i=0,a=n.length;a>i;++i)if((r=n[i]).identifier===e)return K(t,r)},eu.behavior.drag=function(){function t(){this.on(\"mousedown.drag\",a).on(\"touchstart.drag\",u)}function n(t,n,e,a,u){return function(){function o(){var t,e,r=n(f,g);r&&(t=r[0]-_[0],e=r[1]-_[1],p|=t|e,_=r,d({type:\"drag\",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:e}))}function s(){n(f,g)&&(m.on(a+y,null).on(u+y,null),v(p&&eu.event.target===h),d({type:\"dragend\"}))}var c,l=this,h=eu.event.target,f=l.parentNode,d=r.of(l,arguments),p=0,g=t(),y=\".drag\"+(null==g?\"\":\"-\"+g),m=eu.select(e(h)).on(a+y,o).on(u+y,s),v=X(h),_=n(f,g);i?(c=i.apply(l,arguments),c=[c.x-_[0],c.y-_[1]]):c=[0,0],d({type:\"dragstart\"})}}var r=S(t,\"drag\",\"dragstart\",\"dragend\"),i=null,a=n(w,eu.mouse,e,\"mousemove\",\"mouseup\"),u=n(Q,eu.touch,_,\"touchmove\",\"touchend\");return t.origin=function(n){return arguments.length?(i=n,t):i},eu.rebind(t,r,\"on\")},eu.touches=function(t,n){return arguments.length<2&&(n=M().touches),n?iu(n).map(function(n){var e=K(t,n);return e.identifier=n.identifier,e}):[]};var Tu=1e-6,Fu=Tu*Tu,Ou=Math.PI,Lu=2*Ou,Iu=Lu-Tu,Bu=Ou/2,Nu=Ou/180,Pu=180/Ou,Ru=Math.SQRT2,ju=2,Yu=4;eu.interpolateZoom=function(t,n){function e(t){var n=t*v;if(m){var e=it(g),u=a/(ju*f)*(e*at(Ru*n+g)-rt(g));return[r+u*c,i+u*l,a*e/it(Ru*n+g)]}return[r+t*c,i+t*l,a*Math.exp(Ru*n)]}var r=t[0],i=t[1],a=t[2],u=n[0],o=n[1],s=n[2],c=u-r,l=o-i,h=c*c+l*l,f=Math.sqrt(h),d=(s*s-a*a+Yu*h)/(2*a*ju*f),p=(s*s-a*a-Yu*h)/(2*s*ju*f),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(p*p+1)-p),m=y-g,v=(m||Math.log(s/a))/Ru;return e.duration=1e3*v,e},eu.behavior.zoom=function(){function t(t){t.on(F,h).on($u+\".zoom\",d).on(\"dblclick.zoom\",p).on(I,f)}function n(t){return[(t[0]-k.x)/k.k,(t[1]-k.y)/k.k]}function r(t){return[t[0]*k.k+k.x,t[1]*k.k+k.y]}function i(t){k.k=Math.max(D[0],Math.min(D[1],t))}function a(t,n){n=r(n),k.x+=t[0]-n[0],k.y+=t[1]-n[1]}function u(n,e,r,u){n.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,u)),a(y=e,r),n=eu.select(n),C>0&&(n=n.transition().duration(C)),n.call(t.event)}function o(){x&&x.domain(b.range().map(function(t){return(t-k.x)/k.k}).map(b.invert)),A&&A.domain(w.range().map(function(t){return(t-k.y)/k.k}).map(w.invert))}function s(t){T++||t({type:\"zoomstart\"})}function c(t){o(),t({type:\"zoom\",scale:k.k,translate:[k.x,k.y]})}function l(t){--T||(t({type:\"zoomend\"}),y=null)}function h(){function t(){h=1,a(eu.mouse(i),d),c(o)}function r(){f.on(O,null).on(L,null),p(h&&eu.event.target===u),l(o)}var i=this,u=eu.event.target,o=B.of(i,arguments),h=0,f=eu.select(e(i)).on(O,t).on(L,r),d=n(eu.mouse(i)),p=X(i);Ps.call(i),s(o)}function f(){function t(){var t=eu.touches(p);return d=k.k,t.forEach(function(t){t.identifier in y&&(y[t.identifier]=n(t))}),t}function e(){var n=eu.event.target;eu.select(n).on(b,r).on(x,o),w.push(n);for(var e=eu.event.changedTouches,i=0,a=e.length;a>i;++i)y[e[i].identifier]=null;var s=t(),c=Date.now();if(1===s.length){if(500>c-_){var l=s[0];u(p,l,y[l.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),E()}_=c}else if(s.length>1){var l=s[0],h=s[1],f=l[0]-h[0],d=l[1]-h[1];m=f*f+d*d}}function r(){var t,n,e,r,u=eu.touches(p);Ps.call(p);for(var o=0,s=u.length;s>o;++o,r=null)if(e=u[o],r=y[e.identifier]){if(n)break;t=e,n=r}if(r){var l=(l=e[0]-t[0])*l+(l=e[1]-t[1])*l,h=m&&Math.sqrt(l/m);t=[(t[0]+e[0])/2,(t[1]+e[1])/2],n=[(n[0]+r[0])/2,(n[1]+r[1])/2],i(h*d)}_=null,a(t,n),c(g)}function o(){if(eu.event.touches.length){for(var n=eu.event.changedTouches,e=0,r=n.length;r>e;++e)delete y[n[e].identifier];for(var i in y)return void t()}eu.selectAll(w).on(v,null),A.on(F,h).on(I,f),M(),l(g)}var d,p=this,g=B.of(p,arguments),y={},m=0,v=\".zoom-\"+eu.event.changedTouches[0].identifier,b=\"touchmove\"+v,x=\"touchend\"+v,w=[],A=eu.select(p),M=X(p);e(),s(g),A.on(F,null).on(I,e)}function d(){var t=B.of(this,arguments);v?clearTimeout(v):(Ps.call(this),g=n(y=m||eu.mouse(this)),s(t)),v=setTimeout(function(){v=null,l(t)},50),E(),i(Math.pow(2,.002*Uu())*k.k),a(y,g),c(t)}function p(){var t=eu.mouse(this),e=Math.log(k.k)/Math.LN2;u(this,t,n(t),eu.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}var g,y,m,v,_,b,x,w,A,k={x:0,y:0,k:1},M=[960,500],D=Wu,C=250,T=0,F=\"mousedown.zoom\",O=\"mousemove.zoom\",L=\"mouseup.zoom\",I=\"touchstart.zoom\",B=S(t,\"zoomstart\",\"zoom\",\"zoomend\");return $u||($u=\"onwheel\"in au?(Uu=function(){return-eu.event.deltaY*(eu.event.deltaMode?120:1)},\"wheel\"):\"onmousewheel\"in au?(Uu=function(){return eu.event.wheelDelta},\"mousewheel\"):(Uu=function(){return-eu.event.detail},\"MozMousePixelScroll\")),t.event=function(t){t.each(function(){var t=B.of(this,arguments),n=k;Bs?eu.select(this).transition().each(\"start.zoom\",function(){k=this.__chart__||{x:0,y:0,k:1},s(t)}).tween(\"zoom:zoom\",function(){var e=M[0],r=M[1],i=y?y[0]:e/2,a=y?y[1]:r/2,u=eu.interpolateZoom([(i-k.x)/k.k,(a-k.y)/k.k,e/k.k],[(i-n.x)/n.k,(a-n.y)/n.k,e/n.k]);return function(n){var r=u(n),o=e/r[2];this.__chart__=k={x:i-r[0]*o,y:a-r[1]*o,k:o},c(t)}}).each(\"interrupt.zoom\",function(){l(t)}).each(\"end.zoom\",function(){l(t)}):(this.__chart__=k,s(t),c(t),l(t))})},t.translate=function(n){return arguments.length?(k={x:+n[0],y:+n[1],k:k.k},o(),t):[k.x,k.y]},t.scale=function(n){return arguments.length?(k={x:k.x,y:k.y,k:+n},o(),t):k.k},t.scaleExtent=function(n){return arguments.length?(D=null==n?Wu:[+n[0],+n[1]],t):D},t.center=function(n){return arguments.length?(m=n&&[+n[0],+n[1]],t):m},t.size=function(n){return arguments.length?(M=n&&[+n[0],+n[1]],t):M},t.duration=function(n){return arguments.length?(C=+n,t):C},t.x=function(n){return arguments.length?(x=n,b=n.copy(),k={x:0,y:0,k:1},t):x},t.y=function(n){return arguments.length?(A=n,w=n.copy(),k={x:0,y:0,k:1},t):A},eu.rebind(t,B,\"on\")};var Uu,$u,Wu=[0,1/0];eu.color=ot,ot.prototype.toString=function(){return this.rgb()+\"\"},eu.hsl=st;var zu=st.prototype=new ot;zu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new st(this.h,this.s,this.l/t)},zu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new st(this.h,this.s,t*this.l)},zu.rgb=function(){return ct(this.h,this.s,this.l)},eu.hcl=lt;var qu=lt.prototype=new ot;qu.brighter=function(t){return new lt(this.h,this.c,Math.min(100,this.l+Gu*(arguments.length?t:1)))},qu.darker=function(t){return new lt(this.h,this.c,Math.max(0,this.l-Gu*(arguments.length?t:1)))},qu.rgb=function(){return ht(this.h,this.c,this.l).rgb()},eu.lab=ft;var Gu=18,Hu=.95047,Vu=1,Zu=1.08883,Xu=ft.prototype=new ot;Xu.brighter=function(t){return new ft(Math.min(100,this.l+Gu*(arguments.length?t:1)),this.a,this.b)},Xu.darker=function(t){return new ft(Math.max(0,this.l-Gu*(arguments.length?t:1)),this.a,this.b)},Xu.rgb=function(){return dt(this.l,this.a,this.b)},eu.rgb=vt;var Ku=vt.prototype=new ot;Ku.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,i=30;return n||e||r?(n&&i>n&&(n=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new vt(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new vt(i,i,i)},Ku.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new vt(t*this.r,t*this.g,t*this.b)},Ku.hsl=function(){return At(this.r,this.g,this.b)},Ku.toString=function(){return\"#\"+xt(this.r)+xt(this.g)+xt(this.b)};var Qu=eu.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qu.forEach(function(t,n){Qu.set(t,_t(n))}),eu.functor=St,eu.xhr=Dt(_),eu.dsv=function(t,n){function e(t,e,a){arguments.length<3&&(a=e,e=null);var u=Ct(t,n,null==e?r:i(e),a);return u.row=function(t){return arguments.length?u.response(null==(e=t)?r:i(t)):e},u}function r(t){return e.parse(t.responseText)}function i(t){return function(n){return e.parse(n.responseText,t)}}function a(n){return n.map(u).join(t)}function u(t){return o.test(t)?'\"'+t.replace(/\\\"/g,'\"\"')+'\"':t}var o=new RegExp('[\"'+t+\"\\n]\"),s=t.charCodeAt(0);return e.parse=function(t,n){var r;return e.parseRows(t,function(t,e){if(r)return r(t,e-1);var i=new Function(\"d\",\"return {\"+t.map(function(t,n){return JSON.stringify(t)+\": d[\"+n+\"]\"}).join(\",\")+\"}\");r=n?function(t,e){return n(i(t),e)}:i})},e.parseRows=function(t,n){function e(){if(l>=c)return u;if(i)return i=!1,a;var n=l;if(34===t.charCodeAt(n)){for(var e=n;e++<c;)if(34===t.charCodeAt(e)){if(34!==t.charCodeAt(e+1))break;++e}l=e+2;var r=t.charCodeAt(e+1);return 13===r?(i=!0,10===t.charCodeAt(e+2)&&++l):10===r&&(i=!0),t.slice(n+1,e).replace(/\"\"/g,'\"')}for(;c>l;){var r=t.charCodeAt(l++),o=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(l)&&(++l,++o);else if(r!==s)continue;return t.slice(n,l-o)}return t.slice(n)}for(var r,i,a={},u={},o=[],c=t.length,l=0,h=0;(r=e())!==u;){for(var f=[];r!==a&&r!==u;)f.push(r),r=e();n&&null==(f=n(f,h++))||o.push(f)}return o},e.format=function(n){if(Array.isArray(n[0]))return e.formatRows(n);var r=new v,i=[];return n.forEach(function(t){for(var n in t)r.has(n)||i.push(r.add(n))}),[i.map(u).join(t)].concat(n.map(function(n){return i.map(function(t){return u(n[t])}).join(t)})).join(\"\\n\")},e.formatRows=function(t){return t.map(a).join(\"\\n\")},e},eu.csv=eu.dsv(\",\",\"text/csv\"),eu.tsv=eu.dsv(\"\t\",\"text/tab-separated-values\");var Ju,to,no,eo,ro,io=this[x(this,\"requestAnimationFrame\")]||function(t){setTimeout(t,17)};eu.timer=function(t,n,e){var r=arguments.length;2>r&&(n=0),3>r&&(e=Date.now());var i=e+n,a={c:t,t:i,f:!1,n:null};to?to.n=a:Ju=a,to=a,no||(eo=clearTimeout(eo),no=1,io(Ot))},eu.timer.flush=function(){Lt(),It()},eu.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var ao=[\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"].map(Nt);eu.formatPrefix=function(t,n){var e=0;return t&&(0>t&&(t*=-1),n&&(t=eu.round(t,Bt(t,n))),e=1+Math.floor(1e-12+Math.log(t)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),ao[8+e/3]};var uo=/(?:([^{])?([<>=^]))?([+\\- ])?([$#])?(0)?(\\d+)?(,)?(\\.-?\\d+)?([a-z%])?/i,oo=eu.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,n){return t.toPrecision(n)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},r:function(t,n){return(t=eu.round(t,Bt(t,n))).toFixed(Math.max(0,Math.min(20,Bt(t*(1+1e-15),n))))}}),so=eu.time={},co=Date;jt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){lo.setUTCDate.apply(this._,arguments)},setDay:function(){lo.setUTCDay.apply(this._,arguments)},setFullYear:function(){lo.setUTCFullYear.apply(this._,arguments)},setHours:function(){lo.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){lo.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){lo.setUTCMinutes.apply(this._,arguments)},setMonth:function(){lo.setUTCMonth.apply(this._,arguments)},setSeconds:function(){lo.setUTCSeconds.apply(this._,arguments)},setTime:function(){lo.setTime.apply(this._,arguments)}};var lo=Date.prototype;so.year=Yt(function(t){return t=so.day(t),t.setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),so.years=so.year.range,so.years.utc=so.year.utc.range,so.day=Yt(function(t){var n=new co(2e3,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n},function(t,n){t.setDate(t.getDate()+n)},function(t){return t.getDate()-1}),so.days=so.day.range,so.days.utc=so.day.utc.range,so.dayOfYear=function(t){var n=so.year(t);return Math.floor((t-n-6e4*(t.getTimezoneOffset()-n.getTimezoneOffset()))/864e5)},[\"sunday\",\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\"].forEach(function(t,n){n=7-n;var e=so[t]=Yt(function(t){return(t=so.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,n){t.setDate(t.getDate()+7*Math.floor(n))},function(t){var e=so.year(t).getDay();return Math.floor((so.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});so[t+\"s\"]=e.range,so[t+\"s\"].utc=e.utc.range,so[t+\"OfYear\"]=function(t){var e=so.year(t).getDay();return Math.floor((so.dayOfYear(t)+(e+n)%7)/7);\n\n}}),so.week=so.sunday,so.weeks=so.sunday.range,so.weeks.utc=so.sunday.utc.range,so.weekOfYear=so.sundayOfYear;var ho={\"-\":\"\",_:\" \",0:\"0\"},fo=/^\\s*\\d+/,po=/^%/;eu.locale=function(t){return{numberFormat:Pt(t),timeFormat:$t(t)}};var go=eu.locale({decimal:\".\",thousands:\",\",grouping:[3],currency:[\"$\",\"\"],dateTime:\"%a %b %e %X %Y\",date:\"%m/%d/%Y\",time:\"%H:%M:%S\",periods:[\"AM\",\"PM\"],days:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],shortDays:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],months:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],shortMonths:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]});eu.format=go.numberFormat,eu.geo={},ln.prototype={s:0,t:0,add:function(t){hn(t,this.t,yo),hn(yo.s,this.s,this),this.s?this.t+=yo.t:this.s=yo.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var yo=new ln;eu.geo.stream=function(t,n){t&&mo.hasOwnProperty(t.type)?mo[t.type](t,n):fn(t,n)};var mo={Feature:function(t,n){fn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)fn(e[r].geometry,n)}},vo={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){dn(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)dn(e[r],n,0)},Polygon:function(t,n){pn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)pn(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)fn(e[r],n)}};eu.geo.area=function(t){return _o=0,eu.geo.stream(t,xo),_o};var _o,bo=new ln,xo={sphere:function(){_o+=4*Ou},point:w,lineStart:w,lineEnd:w,polygonStart:function(){bo.reset(),xo.lineStart=gn},polygonEnd:function(){var t=2*bo;_o+=0>t?4*Ou+t:t,xo.lineStart=xo.lineEnd=xo.point=w}};eu.geo.bounds=function(){function t(t,n){_.push(b=[l=t,f=t]),h>n&&(h=n),n>d&&(d=n)}function n(n,e){var r=yn([n*Nu,e*Nu]);if(m){var i=vn(m,r),a=[i[1],-i[0],0],u=vn(a,i);xn(u),u=wn(u);var s=n-p,c=s>0?1:-1,g=u[0]*Pu*c,y=pu(s)>180;if(y^(g>c*p&&c*n>g)){var v=u[1]*Pu;v>d&&(d=v)}else if(g=(g+360)%360-180,y^(g>c*p&&c*n>g)){var v=-u[1]*Pu;h>v&&(h=v)}else h>e&&(h=e),e>d&&(d=e);y?p>n?o(l,n)>o(l,f)&&(f=n):o(n,f)>o(l,f)&&(l=n):f>=l?(l>n&&(l=n),n>f&&(f=n)):n>p?o(l,n)>o(l,f)&&(f=n):o(n,f)>o(l,f)&&(l=n)}else t(n,e);m=r,p=n}function e(){x.point=n}function r(){b[0]=l,b[1]=f,x.point=t,m=null}function i(t,e){if(m){var r=t-p;v+=pu(r)>180?r+(r>0?360:-360):r}else g=t,y=e;xo.point(t,e),n(t,e)}function a(){xo.lineStart()}function u(){i(g,y),xo.lineEnd(),pu(v)>Tu&&(l=-(f=180)),b[0]=l,b[1]=f,m=null}function o(t,n){return(n-=t)<0?n+360:n}function s(t,n){return t[0]-n[0]}function c(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var l,h,f,d,p,g,y,m,v,_,b,x={point:t,lineStart:e,lineEnd:r,polygonStart:function(){x.point=i,x.lineStart=a,x.lineEnd=u,v=0,xo.polygonStart()},polygonEnd:function(){xo.polygonEnd(),x.point=t,x.lineStart=e,x.lineEnd=r,0>bo?(l=-(f=180),h=-(d=90)):v>Tu?d=90:-Tu>v&&(h=-90),b[0]=l,b[1]=f}};return function(t){d=f=-(l=h=1/0),_=[],eu.geo.stream(t,x);var n=_.length;if(n){_.sort(s);for(var e,r=1,i=_[0],a=[i];n>r;++r)e=_[r],c(e[0],i)||c(e[1],i)?(o(i[0],e[1])>o(i[0],i[1])&&(i[1]=e[1]),o(e[0],i[1])>o(i[0],i[1])&&(i[0]=e[0])):a.push(i=e);for(var u,e,p=-(1/0),n=a.length-1,r=0,i=a[n];n>=r;i=e,++r)e=a[r],(u=o(i[1],e[0]))>p&&(p=u,l=e[0],f=i[1])}return _=b=null,l===1/0||h===1/0?[[0/0,0/0],[0/0,0/0]]:[[l,h],[f,d]]}}(),eu.geo.centroid=function(t){wo=Ao=ko=Eo=Mo=So=Do=Co=To=Fo=Oo=0,eu.geo.stream(t,Lo);var n=To,e=Fo,r=Oo,i=n*n+e*e+r*r;return Fu>i&&(n=So,e=Do,r=Co,Tu>Ao&&(n=ko,e=Eo,r=Mo),i=n*n+e*e+r*r,Fu>i)?[0/0,0/0]:[Math.atan2(e,n)*Pu,et(r/Math.sqrt(i))*Pu]};var wo,Ao,ko,Eo,Mo,So,Do,Co,To,Fo,Oo,Lo={sphere:w,point:kn,lineStart:Mn,lineEnd:Sn,polygonStart:function(){Lo.lineStart=Dn},polygonEnd:function(){Lo.lineStart=Mn}},Io=In(Tn,Rn,Yn,[-Ou,-Ou/2]),Bo=1e9;eu.geo.clipExtent=function(){var t,n,e,r,i,a,u={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(o){return arguments.length?(a=zn(t=+o[0][0],n=+o[0][1],e=+o[1][0],r=+o[1][1]),i&&(i.valid=!1,i=null),u):[[t,n],[e,r]]}};return u.extent([[0,0],[960,500]])},(eu.geo.conicEqualArea=function(){return qn(Gn)}).raw=Gn,eu.geo.albers=function(){return eu.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},eu.geo.albersUsa=function(){function t(t){var a=t[0],u=t[1];return n=null,e(a,u),n||(r(a,u),n)||i(a,u),n}var n,e,r,i,a=eu.geo.albers(),u=eu.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=eu.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){n=[t,e]}};return t.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?u:i>=.166&&.234>i&&r>=-.214&&-.115>r?o:a).invert(t)},t.stream=function(t){var n=a.stream(t),e=u.stream(t),r=o.stream(t);return{point:function(t,i){n.point(t,i),e.point(t,i),r.point(t,i)},sphere:function(){n.sphere(),e.sphere(),r.sphere()},lineStart:function(){n.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){n.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){n.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){n.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},t.precision=function(n){return arguments.length?(a.precision(n),u.precision(n),o.precision(n),t):a.precision()},t.scale=function(n){return arguments.length?(a.scale(n),u.scale(.35*n),o.scale(n),t.translate(a.translate())):a.scale()},t.translate=function(n){if(!arguments.length)return a.translate();var c=a.scale(),l=+n[0],h=+n[1];return e=a.translate(n).clipExtent([[l-.455*c,h-.238*c],[l+.455*c,h+.238*c]]).stream(s).point,r=u.translate([l-.307*c,h+.201*c]).clipExtent([[l-.425*c+Tu,h+.12*c+Tu],[l-.214*c-Tu,h+.234*c-Tu]]).stream(s).point,i=o.translate([l-.205*c,h+.212*c]).clipExtent([[l-.214*c+Tu,h+.166*c+Tu],[l-.115*c-Tu,h+.234*c-Tu]]).stream(s).point,t},t.scale(1070)};var No,Po,Ro,jo,Yo,Uo,$o={point:w,lineStart:w,lineEnd:w,polygonStart:function(){Po=0,$o.lineStart=Hn},polygonEnd:function(){$o.lineStart=$o.lineEnd=$o.point=w,No+=pu(Po/2)}},Wo={point:Vn,lineStart:w,lineEnd:w,polygonStart:w,polygonEnd:w},zo={point:Kn,lineStart:Qn,lineEnd:Jn,polygonStart:function(){zo.lineStart=te},polygonEnd:function(){zo.point=Kn,zo.lineStart=Qn,zo.lineEnd=Jn}};eu.geo.path=function(){function t(t){return t&&(\"function\"==typeof o&&a.pointRadius(+o.apply(this,arguments)),u&&u.valid||(u=i(a)),eu.geo.stream(t,u)),a.result()}function n(){return u=null,t}var e,r,i,a,u,o=4.5;return t.area=function(t){return No=0,eu.geo.stream(t,i($o)),No},t.centroid=function(t){return ko=Eo=Mo=So=Do=Co=To=Fo=Oo=0,eu.geo.stream(t,i(zo)),Oo?[To/Oo,Fo/Oo]:Co?[So/Co,Do/Co]:Mo?[ko/Mo,Eo/Mo]:[0/0,0/0]},t.bounds=function(t){return Yo=Uo=-(Ro=jo=1/0),eu.geo.stream(t,i(Wo)),[[Ro,jo],[Yo,Uo]]},t.projection=function(t){return arguments.length?(i=(e=t)?t.stream||re(t):_,n()):e},t.context=function(t){return arguments.length?(a=null==(r=t)?new Zn:new ne(t),\"function\"!=typeof o&&a.pointRadius(o),n()):r},t.pointRadius=function(n){return arguments.length?(o=\"function\"==typeof n?n:(a.pointRadius(+n),+n),t):o},t.projection(eu.geo.albersUsa()).context(null)},eu.geo.transform=function(t){return{stream:function(n){var e=new ie(n);for(var r in t)e[r]=t[r];return e}}},ie.prototype={point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},eu.geo.projection=ue,eu.geo.projectionMutator=oe,(eu.geo.equirectangular=function(){return ue(ce)}).raw=ce.invert=ce,eu.geo.rotation=function(t){function n(n){return n=t(n[0]*Nu,n[1]*Nu),n[0]*=Pu,n[1]*=Pu,n}return t=he(t[0]%360*Nu,t[1]*Nu,t.length>2?t[2]*Nu:0),n.invert=function(n){return n=t.invert(n[0]*Nu,n[1]*Nu),n[0]*=Pu,n[1]*=Pu,n},n},le.invert=ce,eu.geo.circle=function(){function t(){var t=\"function\"==typeof r?r.apply(this,arguments):r,n=he(-t[0]*Nu,-t[1]*Nu,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=Pu,t[1]*=Pu}}),{type:\"Polygon\",coordinates:[i]}}var n,e,r=[0,0],i=6;return t.origin=function(n){return arguments.length?(r=n,t):r},t.angle=function(r){return arguments.length?(e=ge((n=+r)*Nu,i*Nu),t):n},t.precision=function(r){return arguments.length?(e=ge(n*Nu,(i=+r)*Nu),t):i},t.angle(90)},eu.geo.distance=function(t,n){var e,r=(n[0]-t[0])*Nu,i=t[1]*Nu,a=n[1]*Nu,u=Math.sin(r),o=Math.cos(r),s=Math.sin(i),c=Math.cos(i),l=Math.sin(a),h=Math.cos(a);return Math.atan2(Math.sqrt((e=h*u)*e+(e=c*l-s*h*o)*e),s*l+c*h*o)},eu.geo.graticule=function(){function t(){return{type:\"MultiLineString\",coordinates:n()}}function n(){return eu.range(Math.ceil(a/y)*y,i,y).map(f).concat(eu.range(Math.ceil(c/m)*m,s,m).map(d)).concat(eu.range(Math.ceil(r/p)*p,e,p).filter(function(t){return pu(t%y)>Tu}).map(l)).concat(eu.range(Math.ceil(o/g)*g,u,g).filter(function(t){return pu(t%m)>Tu}).map(h))}var e,r,i,a,u,o,s,c,l,h,f,d,p=10,g=p,y=90,m=360,v=2.5;return t.lines=function(){return n().map(function(t){return{type:\"LineString\",coordinates:t}})},t.outline=function(){return{type:\"Polygon\",coordinates:[f(a).concat(d(s).slice(1),f(i).reverse().slice(1),d(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.majorExtent(n).minorExtent(n):t.minorExtent()},t.majorExtent=function(n){return arguments.length?(a=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],a>i&&(n=a,a=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(v)):[[a,c],[i,s]]},t.minorExtent=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],o=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),o>u&&(n=o,o=u,u=n),t.precision(v)):[[r,o],[e,u]]},t.step=function(n){return arguments.length?t.majorStep(n).minorStep(n):t.minorStep()},t.majorStep=function(n){return arguments.length?(y=+n[0],m=+n[1],t):[y,m]},t.minorStep=function(n){return arguments.length?(p=+n[0],g=+n[1],t):[p,g]},t.precision=function(n){return arguments.length?(v=+n,l=me(o,u,90),h=ve(r,e,v),f=me(c,s,90),d=ve(a,i,v),t):v},t.majorExtent([[-180,-90+Tu],[180,90-Tu]]).minorExtent([[-180,-80-Tu],[180,80+Tu]])},eu.geo.greatArc=function(){function t(){return{type:\"LineString\",coordinates:[n||r.apply(this,arguments),e||i.apply(this,arguments)]}}var n,e,r=_e,i=be;return t.distance=function(){return eu.geo.distance(n||r.apply(this,arguments),e||i.apply(this,arguments))},t.source=function(e){return arguments.length?(r=e,n=\"function\"==typeof e?null:e,t):r},t.target=function(n){return arguments.length?(i=n,e=\"function\"==typeof n?null:n,t):i},t.precision=function(){return arguments.length?t:0},t},eu.geo.interpolate=function(t,n){return xe(t[0]*Nu,t[1]*Nu,n[0]*Nu,n[1]*Nu)},eu.geo.length=function(t){return qo=0,eu.geo.stream(t,Go),qo};var qo,Go={sphere:w,point:w,lineStart:we,lineEnd:w,polygonStart:w,polygonEnd:w},Ho=Ae(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(eu.geo.azimuthalEqualArea=function(){return ue(Ho)}).raw=Ho;var Vo=Ae(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},_);(eu.geo.azimuthalEquidistant=function(){return ue(Vo)}).raw=Vo,(eu.geo.conicConformal=function(){return qn(ke)}).raw=ke,(eu.geo.conicEquidistant=function(){return qn(Ee)}).raw=Ee;var Zo=Ae(function(t){return 1/t},Math.atan);(eu.geo.gnomonic=function(){return ue(Zo)}).raw=Zo,Me.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-Bu]},(eu.geo.mercator=function(){return Se(Me)}).raw=Me;var Xo=Ae(function(){return 1},Math.asin);(eu.geo.orthographic=function(){return ue(Xo)}).raw=Xo;var Ko=Ae(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(eu.geo.stereographic=function(){return ue(Ko)}).raw=Ko,De.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-Bu]},(eu.geo.transverseMercator=function(){var t=Se(De),n=t.center,e=t.rotate;return t.center=function(t){return t?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return t?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90])}).raw=De,eu.geom={},eu.geom.hull=function(t){function n(t){if(t.length<3)return[];var n,i=St(e),a=St(r),u=t.length,o=[],s=[];for(n=0;u>n;n++)o.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(o.sort(Oe),n=0;u>n;n++)s.push([o[n][0],-o[n][1]]);var c=Fe(o),l=Fe(s),h=l[0]===c[0],f=l[l.length-1]===c[c.length-1],d=[];for(n=c.length-1;n>=0;--n)d.push(t[o[c[n]][2]]);for(n=+h;n<l.length-f;++n)d.push(t[o[l[n]][2]]);return d}var e=Ce,r=Te;return arguments.length?n(t):(n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n)},eu.geom.polygon=function(t){return _u(t,Qo),t};var Qo=eu.geom.polygon.prototype=[];Qo.area=function(){for(var t,n=-1,e=this.length,r=this[e-1],i=0;++n<e;)t=r,r=this[n],i+=t[1]*r[0]-t[0]*r[1];return.5*i},Qo.centroid=function(t){var n,e,r=-1,i=this.length,a=0,u=0,o=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)n=o,o=this[r],e=n[0]*o[1]-o[0]*n[1],a+=(n[0]+o[0])*e,u+=(n[1]+o[1])*e;return[a*t,u*t]},Qo.clip=function(t){for(var n,e,r,i,a,u,o=Be(t),s=-1,c=this.length-Be(this),l=this[c-1];++s<c;){for(n=t.slice(),t.length=0,i=this[s],a=n[(r=n.length-o)-1],e=-1;++e<r;)u=n[e],Le(u,l,i)?(Le(a,l,i)||t.push(Ie(a,u,l,i)),t.push(u)):Le(a,l,i)&&t.push(Ie(a,u,l,i)),a=u;o&&t.push(t[0]),l=i}return t};var Jo,ts,ns,es,rs,is=[],as=[];We.prototype.prepare=function(){for(var t,n=this.edges,e=n.length;e--;)t=n[e].edge,t.b&&t.a||n.splice(e,1);return n.sort(qe),n.length},nr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},er.prototype={insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=ur(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(ir(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ar(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(ar(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ir(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,a=t.L,u=t.R;if(e=a?u?ur(u):a:u,i?i.L===t?i.L=e:i.R=e:this._=e,a&&u?(r=e.C,e.C=t.C,e.L=a,a.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,ir(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,ar(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,ir(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,ar(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,ir(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,ar(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},eu.geom.voronoi=function(t){function n(t){var n=new Array(t.length),r=o[0][0],i=o[0][1],a=o[1][0],u=o[1][1];return or(e(t),o).cells.forEach(function(e,o){var s=e.edges,c=e.site,l=n[o]=s.length?s.map(function(t){var n=t.start();return[n.x,n.y]}):c.x>=r&&c.x<=a&&c.y>=i&&c.y<=u?[[r,u],[a,u],[a,i],[r,i]]:[];l.point=t[o]}),n}function e(t){return t.map(function(t,n){return{x:Math.round(a(t,n)/Tu)*Tu,y:Math.round(u(t,n)/Tu)*Tu,i:n}})}var r=Ce,i=Te,a=r,u=i,o=us;return t?n(t):(n.links=function(t){return or(e(t)).edges.filter(function(t){return t.l&&t.r}).map(function(n){return{source:t[n.l.i],target:t[n.r.i]}})},n.triangles=function(t){var n=[];return or(e(t)).cells.forEach(function(e,r){for(var i,a,u=e.site,o=e.edges.sort(qe),s=-1,c=o.length,l=o[c-1].edge,h=l.l===u?l.r:l.l;++s<c;)i=l,a=h,l=o[s].edge,h=l.l===u?l.r:l.l,r<a.i&&r<h.i&&cr(u,a,h)<0&&n.push([t[r],t[a.i],t[h.i]])}),n},n.x=function(t){return arguments.length?(a=St(r=t),n):r},n.y=function(t){return arguments.length?(u=St(i=t),n):i},n.clipExtent=function(t){return arguments.length?(o=null==t?us:t,n):o===us?null:o},n.size=function(t){return arguments.length?n.clipExtent(t&&[[0,0],t]):o===us?null:o&&o[1]},n)};var us=[[-1e6,-1e6],[1e6,1e6]];eu.geom.delaunay=function(t){return eu.geom.voronoi().triangles(t)},eu.geom.quadtree=function(t,n,e,r,i){function a(t){function a(t,n,e,r,i,a,u,o){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var s=t.x,l=t.y;if(null!=s)if(pu(s-e)+pu(l-r)<.01)c(t,n,e,r,i,a,u,o);else{var h=t.point;t.x=t.y=t.point=null,c(t,h,s,l,i,a,u,o),c(t,n,e,r,i,a,u,o)}else t.x=e,t.y=r,t.point=n}else c(t,n,e,r,i,a,u,o)}function c(t,n,e,r,i,u,o,s){var c=.5*(i+o),l=.5*(u+s),h=e>=c,f=r>=l,d=f<<1|h;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=fr()),h?i=c:o=c,f?u=l:s=l,a(t,n,e,r,i,u,o,s)}var l,h,f,d,p,g,y,m,v,_=St(o),b=St(s);if(null!=n)g=n,y=e,m=r,v=i;else if(m=v=-(g=y=1/0),h=[],f=[],p=t.length,u)for(d=0;p>d;++d)l=t[d],l.x<g&&(g=l.x),l.y<y&&(y=l.y),l.x>m&&(m=l.x),l.y>v&&(v=l.y),h.push(l.x),f.push(l.y);else for(d=0;p>d;++d){var x=+_(l=t[d],d),w=+b(l,d);g>x&&(g=x),y>w&&(y=w),x>m&&(m=x),w>v&&(v=w),h.push(x),f.push(w)}var A=m-g,k=v-y;A>k?v=y+A:m=g+k;var E=fr();if(E.add=function(t){a(E,t,+_(t,++d),+b(t,d),g,y,m,v)},E.visit=function(t){dr(t,E,g,y,m,v)},E.find=function(t){return pr(E,t[0],t[1],g,y,m,v)},d=-1,null==n){for(;++d<p;)a(E,t[d],h[d],f[d],g,y,m,v);--d}else t.forEach(E.add);return h=f=t=l=null,E}var u,o=Ce,s=Te;return(u=arguments.length)?(o=lr,s=hr,3===u&&(i=e,r=n,e=n=0),a(t)):(a.x=function(t){return arguments.length?(o=t,a):o},a.y=function(t){return arguments.length?(s=t,a):s},a.extent=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),a):null==n?null:[[n,e],[r,i]]},a.size=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=e=0,r=+t[0],i=+t[1]),a):null==n?null:[r-n,i-e]},a)},eu.interpolateRgb=gr,eu.interpolateObject=yr,eu.interpolateNumber=mr,eu.interpolateString=vr;var os=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,ss=new RegExp(os.source,\"g\");eu.interpolate=_r,eu.interpolators=[function(t,n){var e=typeof n;return(\"string\"===e?Qu.has(n.toLowerCase())||/^(#|rgb\\(|hsl\\()/i.test(n)?gr:vr:n instanceof ot?gr:Array.isArray(n)?br:\"object\"===e&&isNaN(n)?yr:mr)(t,n)}],eu.interpolateArray=br;var cs=function(){return _},ls=eu.map({linear:cs,poly:Sr,quad:function(){return kr},cubic:function(){return Er},sin:function(){return Dr},exp:function(){return Cr},circle:function(){return Tr},elastic:Fr,back:Or,bounce:function(){return Lr}}),hs=eu.map({\"in\":_,out:wr,\"in-out\":Ar,\"out-in\":function(t){return Ar(wr(t))}});eu.ease=function(t){var n=t.indexOf(\"-\"),e=n>=0?t.slice(0,n):t,r=n>=0?t.slice(n+1):\"in\";return e=ls.get(e)||cs,r=hs.get(r)||_,xr(r(e.apply(null,ru.call(arguments,1))))},eu.interpolateHcl=Ir,eu.interpolateHsl=Br,eu.interpolateLab=Nr,eu.interpolateRound=Pr,eu.transform=function(t){var n=au.createElementNS(eu.ns.prefix.svg,\"g\");return(eu.transform=function(t){if(null!=t){n.setAttribute(\"transform\",t);var e=n.transform.baseVal.consolidate()}return new Rr(e?e.matrix:fs)})(t)},Rr.prototype.toString=function(){return\"translate(\"+this.translate+\")rotate(\"+this.rotate+\")skewX(\"+this.skew+\")scale(\"+this.scale+\")\"};var fs={a:1,b:0,c:0,d:1,e:0,f:0};eu.interpolateTransform=$r,eu.layout={},eu.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;++e<r;)n.push(qr(t[e]));return n}},eu.layout.chord=function(){function t(){var t,c,h,f,d,p={},g=[],y=eu.range(a),m=[];for(e=[],r=[],t=0,f=-1;++f<a;){for(c=0,d=-1;++d<a;)c+=i[f][d];g.push(c),m.push(eu.range(a)),t+=c}for(u&&y.sort(function(t,n){return u(g[t],g[n])}),o&&m.forEach(function(t,n){t.sort(function(t,e){return o(i[n][t],i[n][e])})}),t=(Lu-l*a)/t,c=0,f=-1;++f<a;){for(h=c,d=-1;++d<a;){var v=y[f],_=m[v][d],b=i[v][_],x=c,w=c+=b*t;p[v+\"-\"+_]={index:v,subindex:_,startAngle:x,endAngle:w,value:b}}r[v]={index:v,startAngle:h,endAngle:c,value:(c-h)/t},c+=l}for(f=-1;++f<a;)for(d=f-1;++d<a;){var A=p[f+\"-\"+d],k=p[d+\"-\"+f];(A.value||k.value)&&e.push(A.value<k.value?{source:k,target:A}:{source:A,target:k})}s&&n()}function n(){e.sort(function(t,n){return s((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var e,r,i,a,u,o,s,c={},l=0;return c.matrix=function(t){return arguments.length?(a=(i=t)&&i.length,e=r=null,c):i},c.padding=function(t){return arguments.length?(l=t,e=r=null,c):l},c.sortGroups=function(t){return arguments.length?(u=t,e=r=null,c):u},c.sortSubgroups=function(t){return arguments.length?(o=t,e=null,c):o},c.sortChords=function(t){return arguments.length?(s=t,e&&n(),c):s},c.chords=function(){return e||t(),e},c.groups=function(){return r||t(),r},c},eu.layout.force=function(){function t(t){return function(n,e,r,i){if(n.point!==t){var a=n.cx-t.x,u=n.cy-t.y,o=i-e,s=a*a+u*u;if(s>o*o/y){if(p>s){var c=n.charge/s;t.px-=a*c,t.py-=u*c}return!0}if(n.point&&s&&p>s){var c=n.pointCharge/s;t.px-=a*c,t.py-=u*c}}return!n.charge}}function n(t){t.px=eu.event.x,t.py=eu.event.y,o.resume()}var e,r,i,a,u,o={},s=eu.dispatch(\"start\",\"tick\",\"end\"),c=[1,1],l=.9,h=ds,f=ps,d=-30,p=gs,g=.1,y=.64,m=[],v=[];return o.tick=function(){if((r*=.99)<.005)return s.end({type:\"end\",alpha:r=0}),!0;var n,e,o,h,f,p,y,_,b,x=m.length,w=v.length;for(e=0;w>e;++e)o=v[e],h=o.source,f=o.target,_=f.x-h.x,b=f.y-h.y,(p=_*_+b*b)&&(p=r*a[e]*((p=Math.sqrt(p))-i[e])/p,_*=p,b*=p,f.x-=_*(y=h.weight/(f.weight+h.weight)),f.y-=b*y,h.x+=_*(y=1-y),h.y+=b*y);if((y=r*g)&&(_=c[0]/2,b=c[1]/2,e=-1,y))for(;++e<x;)o=m[e],o.x+=(_-o.x)*y,o.y+=(b-o.y)*y;if(d)for(Qr(n=eu.geom.quadtree(m),r,u),e=-1;++e<x;)(o=m[e]).fixed||n.visit(t(o));for(e=-1;++e<x;)o=m[e],o.fixed?(o.x=o.px,o.y=o.py):(o.x-=(o.px-(o.px=o.x))*l,o.y-=(o.py-(o.py=o.y))*l);s.tick({type:\"tick\",alpha:r})},o.nodes=function(t){return arguments.length?(m=t,o):m},o.links=function(t){return arguments.length?(v=t,o):v},o.size=function(t){return arguments.length?(c=t,o):c},o.linkDistance=function(t){return arguments.length?(h=\"function\"==typeof t?t:+t,o):h},o.distance=o.linkDistance,o.linkStrength=function(t){return arguments.length?(f=\"function\"==typeof t?t:+t,o):f},o.friction=function(t){return arguments.length?(l=+t,o):l},o.charge=function(t){return arguments.length?(d=\"function\"==typeof t?t:+t,o):d},o.chargeDistance=function(t){return arguments.length?(p=t*t,o):Math.sqrt(p)},o.gravity=function(t){return arguments.length?(g=+t,o):g},o.theta=function(t){return arguments.length?(y=t*t,o):Math.sqrt(y)},o.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(s.start({type:\"start\",alpha:r=t}),eu.timer(o.tick)),o):r},o.start=function(){function t(t,r){if(!e){for(e=new Array(s),o=0;s>o;++o)e[o]=[];for(o=0;l>o;++o){var i=v[o];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,u=e[n],o=-1,c=u.length;++o<c;)if(!isNaN(a=u[o][t]))return a;return Math.random()*r}var n,e,r,s=m.length,l=v.length,p=c[0],g=c[1];for(n=0;s>n;++n)(r=m[n]).index=n,r.weight=0;for(n=0;l>n;++n)r=v[n],\"number\"==typeof r.source&&(r.source=m[r.source]),\"number\"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(n=0;s>n;++n)r=m[n],isNaN(r.x)&&(r.x=t(\"x\",p)),isNaN(r.y)&&(r.y=t(\"y\",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],\"function\"==typeof h)for(n=0;l>n;++n)i[n]=+h.call(this,v[n],n);else for(n=0;l>n;++n)i[n]=h;if(a=[],\"function\"==typeof f)for(n=0;l>n;++n)a[n]=+f.call(this,v[n],n);else for(n=0;l>n;++n)a[n]=f;if(u=[],\"function\"==typeof d)for(n=0;s>n;++n)u[n]=+d.call(this,m[n],n);else for(n=0;s>n;++n)u[n]=d;return o.resume()},o.resume=function(){return o.alpha(.1)},o.stop=function(){return o.alpha(0)},o.drag=function(){return e||(e=eu.behavior.drag().origin(_).on(\"dragstart.force\",Vr).on(\"drag.force\",n).on(\"dragend.force\",Zr)),arguments.length?void this.on(\"mouseover.force\",Xr).on(\"mouseout.force\",Kr).call(e):e},eu.rebind(o,s,\"on\")};var ds=20,ps=1,gs=1/0;eu.layout.hierarchy=function(){function t(i){var a,u=[i],o=[];for(i.depth=0;null!=(a=u.pop());)if(o.push(a),(c=e.call(t,a,a.depth))&&(s=c.length)){for(var s,c,l;--s>=0;)u.push(l=c[s]),l.parent=a,l.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(t,a,a.depth)||0),delete a.children;return ni(i,function(t){var e,i;n&&(e=t.children)&&e.sort(n),r&&(i=t.parent)&&(i.value+=t.value)}),o}var n=ii,e=ei,r=ri;return t.sort=function(e){return arguments.length?(n=e,t):n},t.children=function(n){return arguments.length?(e=n,t):e},t.value=function(n){return arguments.length?(r=n,t):r},t.revalue=function(n){return r&&(ti(n,function(t){t.children&&(t.value=0)}),ni(n,function(n){var e;n.children||(n.value=+r.call(t,n,n.depth)||0),(e=n.parent)&&(e.value+=n.value)})),n},t},eu.layout.partition=function(){function t(n,e,r,i){var a=n.children;if(n.x=e,n.y=n.depth*i,n.dx=r,n.dy=i,a&&(u=a.length)){var u,o,s,c=-1;for(r=n.value?r/n.value:0;++c<u;)t(o=a[c],e,s=o.value*r,i),e+=s}}function n(t){var e=t.children,r=0;if(e&&(i=e.length))for(var i,a=-1;++a<i;)r=Math.max(r,n(e[a]));return 1+r}function e(e,a){var u=r.call(this,e,a);return t(u[0],0,i[0],i[1]/n(u[0])),u}var r=eu.layout.hierarchy(),i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},Jr(e,r)},eu.layout.pie=function(){function t(u){var o,s=u.length,c=u.map(function(e,r){return+n.call(t,e,r)}),l=+(\"function\"==typeof r?r.apply(this,arguments):r),h=(\"function\"==typeof i?i.apply(this,arguments):i)-l,f=Math.min(Math.abs(h)/s,+(\"function\"==typeof a?a.apply(this,arguments):a)),d=f*(0>h?-1:1),p=(h-s*d)/eu.sum(c),g=eu.range(s),y=[];return null!=e&&g.sort(e===ys?function(t,n){return c[n]-c[t]}:function(t,n){return e(u[t],u[n])}),g.forEach(function(t){y[t]={data:u[t],value:o=c[t],startAngle:l,endAngle:l+=o*p+d,padAngle:f}}),y}var n=Number,e=ys,r=0,i=Lu,a=0;return t.value=function(e){return arguments.length?(n=e,t):n},t.sort=function(n){return arguments.length?(e=n,t):e},t.startAngle=function(n){return arguments.length?(r=n,t):r},t.endAngle=function(n){return arguments.length?(i=n,t):i},t.padAngle=function(n){return arguments.length?(a=n,t):a},t};var ys={};eu.layout.stack=function(){function t(o,s){if(!(f=o.length))return o;var c=o.map(function(e,r){return n.call(t,e,r)}),l=c.map(function(n){return n.map(function(n,e){return[a.call(t,n,e),u.call(t,n,e)]})}),h=e.call(t,l,s);c=eu.permute(c,h),l=eu.permute(l,h);var f,d,p,g,y=r.call(t,l,s),m=c[0].length;for(p=0;m>p;++p)for(i.call(t,c[0][p],g=y[p],l[0][p][1]),d=1;f>d;++d)i.call(t,c[d][p],g+=l[d-1][p][1],l[d][p][1]);return o}var n=_,e=ci,r=li,i=si,a=ui,u=oi;return t.values=function(e){return arguments.length?(n=e,t):n},t.order=function(n){return arguments.length?(e=\"function\"==typeof n?n:ms.get(n)||ci,t):e},t.offset=function(n){return arguments.length?(r=\"function\"==typeof n?n:vs.get(n)||li,t):r},t.x=function(n){return arguments.length?(a=n,t):a},t.y=function(n){return arguments.length?(u=n,t):u},t.out=function(n){return arguments.length?(i=n,t):i},t};var ms=eu.map({\"inside-out\":function(t){var n,e,r=t.length,i=t.map(hi),a=t.map(fi),u=eu.range(r).sort(function(t,n){return i[t]-i[n]}),o=0,s=0,c=[],l=[];for(n=0;r>n;++n)e=u[n],s>o?(o+=a[e],c.push(e)):(s+=a[e],l.push(e));return l.reverse().concat(c)},reverse:function(t){return eu.range(t.length).reverse()},\"default\":ci}),vs=eu.map({silhouette:function(t){var n,e,r,i=t.length,a=t[0].length,u=[],o=0,s=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];r>o&&(o=r),u.push(r)}for(e=0;a>e;++e)s[e]=(o-u[e])/2;return s},wiggle:function(t){var n,e,r,i,a,u,o,s,c,l=t.length,h=t[0],f=h.length,d=[];for(d[0]=s=c=0,e=1;f>e;++e){for(n=0,i=0;l>n;++n)i+=t[n][e][1];for(n=0,a=0,o=h[e][0]-h[e-1][0];l>n;++n){for(r=0,u=(t[n][e][1]-t[n][e-1][1])/(2*o);n>r;++r)u+=(t[r][e][1]-t[r][e-1][1])/o;a+=u*t[n][e][1]}d[e]=s-=i?a/i*o:0,c>s&&(c=s)}for(e=0;f>e;++e)d[e]-=c;return d},expand:function(t){var n,e,r,i=t.length,a=t[0].length,u=1/i,o=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];if(r)for(n=0;i>n;n++)t[n][e][1]/=r;else for(n=0;i>n;n++)t[n][e][1]=u}for(e=0;a>e;++e)o[e]=0;return o},zero:li});eu.layout.histogram=function(){function t(t,a){for(var u,o,s=[],c=t.map(e,this),l=r.call(this,c,a),h=i.call(this,l,c,a),a=-1,f=c.length,d=h.length-1,p=n?1:1/f;++a<d;)u=s[a]=[],u.dx=h[a+1]-(u.x=h[a]),u.y=0;if(d>0)for(a=-1;++a<f;)o=c[a],o>=l[0]&&o<=l[1]&&(u=s[eu.bisect(h,o,1,d)-1],u.y+=p,u.push(t[a]));return s}var n=!0,e=Number,r=yi,i=pi;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=St(n),t):r},t.bins=function(n){return arguments.length?(i=\"number\"==typeof n?function(t){return gi(t,n)}:St(n),t):i},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},eu.layout.pack=function(){function t(t,a){var u=e.call(this,t,a),o=u[0],s=i[0],c=i[1],l=null==n?Math.sqrt:\"function\"==typeof n?n:function(){return n};if(o.x=o.y=0,ni(o,function(t){t.r=+l(t.value)}),ni(o,xi),r){var h=r*(n?1:Math.max(2*o.r/s,2*o.r/c))/2;ni(o,function(t){t.r+=h}),ni(o,xi),ni(o,function(t){t.r-=h})}return ki(o,s/2,c/2,n?1:1/Math.max(2*o.r/s,2*o.r/c)),u}var n,e=eu.layout.hierarchy().sort(mi),r=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},t.radius=function(e){return arguments.length?(n=null==e||\"function\"==typeof e?e:+e,t):n},t.padding=function(n){return arguments.length?(r=+n,t):r},Jr(t,e)},eu.layout.tree=function(){function t(t,i){var l=u.call(this,t,i),h=l[0],f=n(h);if(ni(f,e),f.parent.m=-f.z,ti(f,r),c)ti(h,a);else{var d=h,p=h,g=h;ti(h,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var y=o(d,p)/2-d.x,m=s[0]/(p.x+o(p,d)/2+y),v=s[1]/(g.depth||1);ti(h,function(t){t.x=(t.x+y)*m,t.y=t.depth*v})}return l}function n(t){for(var n,e={A:null,children:[t]},r=[e];null!=(n=r.pop());)for(var i,a=n.children,u=0,o=a.length;o>u;++u)r.push((a[u]=i={_:a[u],parent:n,children:(i=a[u].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:u}).a=i);return e.children[0]}function e(t){var n=t.children,e=t.parent.children,r=t.i?e[t.i-1]:null;if(n.length){Ti(t);var a=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+o(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+o(t._,r._));t.parent.A=i(t,r,t.parent.A||e[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,n,e){if(n){for(var r,i=t,a=t,u=n,s=i.parent.children[0],c=i.m,l=a.m,h=u.m,f=s.m;u=Di(u),i=Si(i),u&&i;)s=Si(s),a=Di(a),a.a=t,r=u.z+h-i.z-c+o(u._,i._),r>0&&(Ci(Fi(u,t,e),t,r),c+=r,l+=r),h+=u.m,c+=i.m,f+=s.m,l+=a.m;u&&!Di(a)&&(a.t=u,a.m+=h-l),i&&!Si(s)&&(s.t=i,s.m+=c-f,e=t)}return e}function a(t){t.x*=s[0],t.y=t.depth*s[1]}var u=eu.layout.hierarchy().sort(null).value(null),o=Mi,s=[1,1],c=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(c=null==(s=n)?a:null,t):c?null:s},t.nodeSize=function(n){return arguments.length?(c=null==(s=n)?null:a,t):c?s:null},Jr(t,u)},eu.layout.cluster=function(){function t(t,a){var u,o=n.call(this,t,a),s=o[0],c=0;ni(s,function(t){var n=t.children;n&&n.length?(t.x=Li(n),t.y=Oi(n)):(t.x=u?c+=e(t,u):0,t.y=0,u=t)});var l=Ii(s),h=Bi(s),f=l.x-e(l,h)/2,d=h.x+e(h,l)/2;return ni(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-f)/(d-f)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),o}var n=eu.layout.hierarchy().sort(null).value(null),e=Mi,r=[1,1],i=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(i=null==(r=n),t):i?null:r},t.nodeSize=function(n){return arguments.length?(i=null!=(r=n),t):i?r:null},Jr(t,n)},eu.layout.treemap=function(){function t(t,n){for(var e,r,i=-1,a=t.length;++i<a;)r=(e=t[i]).value*(0>n?0:n),e.area=isNaN(r)||0>=r?0:r}function n(e){var a=e.children;if(a&&a.length){var u,o,s,c=h(e),l=[],f=a.slice(),p=1/0,g=\"slice\"===d?c.dx:\"dice\"===d?c.dy:\"slice-dice\"===d?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(f,c.dx*c.dy/e.value),l.area=0;(s=f.length)>0;)l.push(u=f[s-1]),l.area+=u.area,\"squarify\"!==d||(o=r(l,g))<=p?(f.pop(),p=o):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(n)}}function e(n){var r=n.children;if(r&&r.length){\nvar a,u=h(n),o=r.slice(),s=[];for(t(o,u.dx*u.dy/n.value),s.area=0;a=o.pop();)s.push(a),s.area+=a.area,null!=a.z&&(i(s,a.z?u.dx:u.dy,u,!o.length),s.length=s.area=0);r.forEach(e)}}function r(t,n){for(var e,r=t.area,i=0,a=1/0,u=-1,o=t.length;++u<o;)(e=t[u].area)&&(a>e&&(a=e),e>i&&(i=e));return r*=r,n*=n,r?Math.max(n*i*p/r,r/(n*a*p)):1/0}function i(t,n,e,r){var i,a=-1,u=t.length,o=e.x,c=e.y,l=n?s(t.area/n):0;if(n==e.dx){for((r||l>e.dy)&&(l=e.dy);++a<u;)i=t[a],i.x=o,i.y=c,i.dy=l,o+=i.dx=Math.min(e.x+e.dx-o,l?s(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-o,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++a<u;)i=t[a],i.x=o,i.y=c,i.dx=l,c+=i.dy=Math.min(e.y+e.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=l,e.dx-=l}}function a(r){var i=u||o(r),a=i[0];return a.x=0,a.y=0,a.dx=c[0],a.dy=c[1],u&&o.revalue(a),t([a],a.dx*a.dy/a.value),(u?e:n)(a),f&&(u=i),i}var u,o=eu.layout.hierarchy(),s=Math.round,c=[1,1],l=null,h=Ni,f=!1,d=\"squarify\",p=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(c=t,a):c},a.padding=function(t){function n(n){var e=t.call(a,n,n.depth);return null==e?Ni(n):Pi(n,\"number\"==typeof e?[e,e,e,e]:e)}function e(n){return Pi(n,t)}if(!arguments.length)return l;var r;return h=null==(l=t)?Ni:\"function\"==(r=typeof t)?n:\"number\"===r?(t=[t,t,t,t],e):e,a},a.round=function(t){return arguments.length?(s=t?Math.round:Number,a):s!=Number},a.sticky=function(t){return arguments.length?(f=t,u=null,a):f},a.ratio=function(t){return arguments.length?(p=t,a):p},a.mode=function(t){return arguments.length?(d=t+\"\",a):d},Jr(a,o)},eu.random={normal:function(t,n){var e=arguments.length;return 2>e&&(n=1),1>e&&(t=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return t+n*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=eu.random.normal.apply(eu,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=eu.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,e=0;t>e;e++)n+=Math.random();return n}}},eu.scale={};var _s={floor:_,ceil:_};eu.scale.linear=function(){return zi([0,1],[0,1],_r,!1)};var bs={s:1,g:1,p:1,r:1,e:1};eu.scale.log=function(){return Qi(eu.scale.linear().domain([0,1]),10,!0,[1,10])};var xs=eu.format(\".0e\"),ws={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};eu.scale.pow=function(){return Ji(eu.scale.linear(),1,[0,1])},eu.scale.sqrt=function(){return eu.scale.pow().exponent(.5)},eu.scale.ordinal=function(){return na([],{t:\"range\",a:[[]]})},eu.scale.category10=function(){return eu.scale.ordinal().range(As)},eu.scale.category20=function(){return eu.scale.ordinal().range(ks)},eu.scale.category20b=function(){return eu.scale.ordinal().range(Es)},eu.scale.category20c=function(){return eu.scale.ordinal().range(Ms)};var As=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(bt),ks=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(bt),Es=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(bt),Ms=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(bt);eu.scale.quantile=function(){return ea([],[])},eu.scale.quantize=function(){return ra(0,1,[0,1])},eu.scale.threshold=function(){return ia([.5],[0,1])},eu.scale.identity=function(){return aa([0,1])},eu.svg={},eu.svg.arc=function(){function t(){var t=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),l=u.apply(this,arguments)-Bu,h=o.apply(this,arguments)-Bu,f=Math.abs(h-l),d=l>h?0:1;if(t>c&&(p=c,c=t,t=p),f>=Iu)return n(c,d)+(t?n(t,1-d):\"\")+\"Z\";var p,g,y,m,v,_,b,x,w,A,k,E,M=0,S=0,D=[];if((m=(+s.apply(this,arguments)||0)/2)&&(y=a===Ss?Math.sqrt(t*t+c*c):+a.apply(this,arguments),d||(S*=-1),c&&(S=et(y/c*Math.sin(m))),t&&(M=et(y/t*Math.sin(m)))),c){v=c*Math.cos(l+S),_=c*Math.sin(l+S),b=c*Math.cos(h-S),x=c*Math.sin(h-S);var C=Math.abs(h-l-2*S)<=Ou?0:1;if(S&&fa(v,_,b,x)===d^C){var T=(l+h)/2;v=c*Math.cos(T),_=c*Math.sin(T),b=x=null}}else v=_=0;if(t){w=t*Math.cos(h-M),A=t*Math.sin(h-M),k=t*Math.cos(l+M),E=t*Math.sin(l+M);var F=Math.abs(l-h+2*M)<=Ou?0:1;if(M&&fa(w,A,k,E)===1-d^F){var O=(l+h)/2;w=t*Math.cos(O),A=t*Math.sin(O),k=E=null}}else w=A=0;if((p=Math.min(Math.abs(c-t)/2,+i.apply(this,arguments)))>.001){g=c>t^d?0:1;var L=null==k?[w,A]:null==b?[v,_]:Ie([v,_],[k,E],[b,x],[w,A]),I=v-L[0],B=_-L[1],N=b-L[0],P=x-L[1],R=1/Math.sin(Math.acos((I*N+B*P)/(Math.sqrt(I*I+B*B)*Math.sqrt(N*N+P*P)))/2),j=Math.sqrt(L[0]*L[0]+L[1]*L[1]);if(null!=b){var Y=Math.min(p,(c-j)/(R+1)),U=da(null==k?[w,A]:[k,E],[v,_],c,Y,d),$=da([b,x],[w,A],c,Y,d);p===Y?D.push(\"M\",U[0],\"A\",Y,\",\",Y,\" 0 0,\",g,\" \",U[1],\"A\",c,\",\",c,\" 0 \",1-d^fa(U[1][0],U[1][1],$[1][0],$[1][1]),\",\",d,\" \",$[1],\"A\",Y,\",\",Y,\" 0 0,\",g,\" \",$[0]):D.push(\"M\",U[0],\"A\",Y,\",\",Y,\" 0 1,\",g,\" \",$[0])}else D.push(\"M\",v,\",\",_);if(null!=k){var W=Math.min(p,(t-j)/(R-1)),z=da([v,_],[k,E],t,-W,d),q=da([w,A],null==b?[v,_]:[b,x],t,-W,d);p===W?D.push(\"L\",q[0],\"A\",W,\",\",W,\" 0 0,\",g,\" \",q[1],\"A\",t,\",\",t,\" 0 \",d^fa(q[1][0],q[1][1],z[1][0],z[1][1]),\",\",1-d,\" \",z[1],\"A\",W,\",\",W,\" 0 0,\",g,\" \",z[0]):D.push(\"L\",q[0],\"A\",W,\",\",W,\" 0 0,\",g,\" \",z[0])}else D.push(\"L\",w,\",\",A)}else D.push(\"M\",v,\",\",_),null!=b&&D.push(\"A\",c,\",\",c,\" 0 \",C,\",\",d,\" \",b,\",\",x),D.push(\"L\",w,\",\",A),null!=k&&D.push(\"A\",t,\",\",t,\" 0 \",F,\",\",1-d,\" \",k,\",\",E);return D.push(\"Z\"),D.join(\"\")}function n(t,n){return\"M0,\"+t+\"A\"+t+\",\"+t+\" 0 1,\"+n+\" 0,\"+-t+\"A\"+t+\",\"+t+\" 0 1,\"+n+\" 0,\"+t}var e=oa,r=sa,i=ua,a=Ss,u=ca,o=la,s=ha;return t.innerRadius=function(n){return arguments.length?(e=St(n),t):e},t.outerRadius=function(n){return arguments.length?(r=St(n),t):r},t.cornerRadius=function(n){return arguments.length?(i=St(n),t):i},t.padRadius=function(n){return arguments.length?(a=n==Ss?Ss:St(n),t):a},t.startAngle=function(n){return arguments.length?(u=St(n),t):u},t.endAngle=function(n){return arguments.length?(o=St(n),t):o},t.padAngle=function(n){return arguments.length?(s=St(n),t):s},t.centroid=function(){var t=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,n=(+u.apply(this,arguments)+ +o.apply(this,arguments))/2-Bu;return[Math.cos(n)*t,Math.sin(n)*t]},t};var Ss=\"auto\";eu.svg.line=function(){return pa(_)};var Ds=eu.map({linear:ga,\"linear-closed\":ya,step:ma,\"step-before\":va,\"step-after\":_a,basis:Ea,\"basis-open\":Ma,\"basis-closed\":Sa,bundle:Da,cardinal:wa,\"cardinal-open\":ba,\"cardinal-closed\":xa,monotone:Ia});Ds.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var Cs=[0,2/3,1/3,0],Ts=[0,1/3,2/3,0],Fs=[0,1/6,2/3,1/6];eu.svg.line.radial=function(){var t=pa(Ba);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},va.reverse=_a,_a.reverse=va,eu.svg.area=function(){return Na(_)},eu.svg.area.radial=function(){var t=Na(Ba);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},eu.svg.chord=function(){function t(t,o){var s=n(this,a,t,o),c=n(this,u,t,o);return\"M\"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(e(s,c)?i(s.r,s.p1,s.r,s.p0):i(s.r,s.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,s.r,s.p0))+\"Z\"}function n(t,n,e,r){var i=n.call(t,e,r),a=o.call(t,i,r),u=s.call(t,i,r)-Bu,l=c.call(t,i,r)-Bu;return{r:a,a0:u,a1:l,p0:[a*Math.cos(u),a*Math.sin(u)],p1:[a*Math.cos(l),a*Math.sin(l)]}}function e(t,n){return t.a0==n.a0&&t.a1==n.a1}function r(t,n,e){return\"A\"+t+\",\"+t+\" 0 \"+ +(e>Ou)+\",1 \"+n}function i(t,n,e,r){return\"Q 0,0 \"+r}var a=_e,u=be,o=Pa,s=ca,c=la;return t.radius=function(n){return arguments.length?(o=St(n),t):o},t.source=function(n){return arguments.length?(a=St(n),t):a},t.target=function(n){return arguments.length?(u=St(n),t):u},t.startAngle=function(n){return arguments.length?(s=St(n),t):s},t.endAngle=function(n){return arguments.length?(c=St(n),t):c},t},eu.svg.diagonal=function(){function t(t,i){var a=n.call(this,t,i),u=e.call(this,t,i),o=(a.y+u.y)/2,s=[a,{x:a.x,y:o},{x:u.x,y:o},u];return s=s.map(r),\"M\"+s[0]+\"C\"+s[1]+\" \"+s[2]+\" \"+s[3]}var n=_e,e=be,r=Ra;return t.source=function(e){return arguments.length?(n=St(e),t):n},t.target=function(n){return arguments.length?(e=St(n),t):e},t.projection=function(n){return arguments.length?(r=n,t):r},t},eu.svg.diagonal.radial=function(){var t=eu.svg.diagonal(),n=Ra,e=t.projection;return t.projection=function(t){return arguments.length?e(ja(n=t)):n},t},eu.svg.symbol=function(){function t(t,r){return(Os.get(n.call(this,t,r))||$a)(e.call(this,t,r))}var n=Ua,e=Ya;return t.type=function(e){return arguments.length?(n=St(e),t):n},t.size=function(n){return arguments.length?(e=St(n),t):e},t};var Os=eu.map({circle:$a,cross:function(t){var n=Math.sqrt(t/5)/2;return\"M\"+-3*n+\",\"+-n+\"H\"+-n+\"V\"+-3*n+\"H\"+n+\"V\"+-n+\"H\"+3*n+\"V\"+n+\"H\"+n+\"V\"+3*n+\"H\"+-n+\"V\"+n+\"H\"+-3*n+\"Z\"},diamond:function(t){var n=Math.sqrt(t/(2*Is)),e=n*Is;return\"M0,\"+-n+\"L\"+e+\",0 0,\"+n+\" \"+-e+\",0Z\"},square:function(t){var n=Math.sqrt(t)/2;return\"M\"+-n+\",\"+-n+\"L\"+n+\",\"+-n+\" \"+n+\",\"+n+\" \"+-n+\",\"+n+\"Z\"},\"triangle-down\":function(t){var n=Math.sqrt(t/Ls),e=n*Ls/2;return\"M0,\"+e+\"L\"+n+\",\"+-e+\" \"+-n+\",\"+-e+\"Z\"},\"triangle-up\":function(t){var n=Math.sqrt(t/Ls),e=n*Ls/2;return\"M0,\"+-e+\"L\"+n+\",\"+e+\" \"+-n+\",\"+e+\"Z\"}});eu.svg.symbolTypes=Os.keys();var Ls=Math.sqrt(3),Is=Math.tan(30*Nu);Au.transition=function(t){for(var n,e,r=Bs||++js,i=Ha(t),a=[],u=Ns||{time:Date.now(),ease:Mr,delay:0,duration:250},o=-1,s=this.length;++o<s;){a.push(n=[]);for(var c=this[o],l=-1,h=c.length;++l<h;)(e=c[l])&&Va(e,l,i,r,u),n.push(e)}return za(a,i,r)},Au.interrupt=function(t){return this.each(null==t?Ps:Wa(Ha(t)))};var Bs,Ns,Ps=Wa(Ha()),Rs=[],js=0;Rs.call=Au.call,Rs.empty=Au.empty,Rs.node=Au.node,Rs.size=Au.size,eu.transition=function(t,n){return t&&t.transition?Bs?t.transition(n):t:eu.selection().transition(t)},eu.transition.prototype=Rs,Rs.select=function(t){var n,e,r,i=this.id,a=this.namespace,u=[];t=C(t);for(var o=-1,s=this.length;++o<s;){u.push(n=[]);for(var c=this[o],l=-1,h=c.length;++l<h;)(r=c[l])&&(e=t.call(r,r.__data__,l,o))?(\"__data__\"in r&&(e.__data__=r.__data__),Va(e,l,a,i,r[a][i]),n.push(e)):n.push(null)}return za(u,a,i)},Rs.selectAll=function(t){var n,e,r,i,a,u=this.id,o=this.namespace,s=[];t=T(t);for(var c=-1,l=this.length;++c<l;)for(var h=this[c],f=-1,d=h.length;++f<d;)if(r=h[f]){a=r[o][u],e=t.call(r,r.__data__,f,c),s.push(n=[]);for(var p=-1,g=e.length;++p<g;)(i=e[p])&&Va(i,p,o,u,a),n.push(i)}return za(s,o,u)},Rs.filter=function(t){var n,e,r,i=[];\"function\"!=typeof t&&(t=$(t));for(var a=0,u=this.length;u>a;a++){i.push(n=[]);for(var e=this[a],o=0,s=e.length;s>o;o++)(r=e[o])&&t.call(r,r.__data__,o,a)&&n.push(r)}return za(i,this.namespace,this.id)},Rs.tween=function(t,n){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(t):z(this,null==n?function(n){n[r][e].tween.remove(t)}:function(i){i[r][e].tween.set(t,n)})},Rs.attr=function(t,n){function e(){this.removeAttribute(o)}function r(){this.removeAttributeNS(o.space,o.local)}function i(t){return null==t?e:(t+=\"\",function(){var n,e=this.getAttribute(o);return e!==t&&(n=u(e,t),function(t){this.setAttribute(o,n(t))})})}function a(t){return null==t?r:(t+=\"\",function(){var n,e=this.getAttributeNS(o.space,o.local);return e!==t&&(n=u(e,t),function(t){this.setAttributeNS(o.space,o.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var u=\"transform\"==t?$r:_r,o=eu.ns.qualify(t);return qa(this,\"attr.\"+t,n,o.local?a:i)},Rs.attrTween=function(t,n){function e(t,e){var r=n.call(this,t,e,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,e){var r=n.call(this,t,e,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=eu.ns.qualify(t);return this.tween(\"attr.\"+t,i.local?r:e)},Rs.style=function(t,n,r){function i(){this.style.removeProperty(t)}function a(n){return null==n?i:(n+=\"\",function(){var i,a=e(this).getComputedStyle(this,null).getPropertyValue(t);return a!==n&&(i=_r(a,n),function(n){this.style.setProperty(t,i(n),r)})})}var u=arguments.length;if(3>u){if(\"string\"!=typeof t){2>u&&(n=\"\");for(r in t)this.style(r,t[r],n);return this}r=\"\"}return qa(this,\"style.\"+t,n,a)},Rs.styleTween=function(t,n,r){function i(i,a){var u=n.call(this,i,a,e(this).getComputedStyle(this,null).getPropertyValue(t));return u&&function(n){this.style.setProperty(t,u(n),r)}}return arguments.length<3&&(r=\"\"),this.tween(\"style.\"+t,i)},Rs.text=function(t){return qa(this,\"text\",t,Ga)},Rs.remove=function(){var t=this.namespace;return this.each(\"end.transition\",function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)})},Rs.ease=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].ease:(\"function\"!=typeof t&&(t=eu.ease.apply(eu,arguments)),z(this,function(r){r[e][n].ease=t}))},Rs.delay=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].delay:z(this,\"function\"==typeof t?function(r,i,a){r[e][n].delay=+t.call(r,r.__data__,i,a)}:(t=+t,function(r){r[e][n].delay=t}))},Rs.duration=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].duration:z(this,\"function\"==typeof t?function(r,i,a){r[e][n].duration=Math.max(1,t.call(r,r.__data__,i,a))}:(t=Math.max(1,t),function(r){r[e][n].duration=t}))},Rs.each=function(t,n){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Ns,a=Bs;try{Bs=e,z(this,function(n,i,a){Ns=n[r][e],t.call(n,n.__data__,i,a)})}finally{Ns=i,Bs=a}}else z(this,function(i){var a=i[r][e];(a.event||(a.event=eu.dispatch(\"start\",\"end\",\"interrupt\"))).on(t,n)});return this},Rs.transition=function(){for(var t,n,e,r,i=this.id,a=++js,u=this.namespace,o=[],s=0,c=this.length;c>s;s++){o.push(t=[]);for(var n=this[s],l=0,h=n.length;h>l;l++)(e=n[l])&&(r=e[u][i],Va(e,l,u,a,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(e)}return za(o,u,a)},eu.svg.axis=function(){function t(t){t.each(function(){var t,c=eu.select(this),l=this.__chart__||e,h=this.__chart__=e.copy(),f=null==s?h.ticks?h.ticks.apply(h,o):h.domain():s,d=null==n?h.tickFormat?h.tickFormat.apply(h,o):_:n,p=c.selectAll(\".tick\").data(f,h),g=p.enter().insert(\"g\",\".domain\").attr(\"class\",\"tick\").style(\"opacity\",Tu),y=eu.transition(p.exit()).style(\"opacity\",Tu).remove(),m=eu.transition(p.order()).style(\"opacity\",1),v=Math.max(i,0)+u,b=ji(h),x=c.selectAll(\".domain\").data([0]),w=(x.enter().append(\"path\").attr(\"class\",\"domain\"),eu.transition(x));g.append(\"line\"),g.append(\"text\");var A,k,E,M,S=g.select(\"line\"),D=m.select(\"line\"),C=p.select(\"text\").text(d),T=g.select(\"text\"),F=m.select(\"text\"),O=\"top\"===r||\"left\"===r?-1:1;if(\"bottom\"===r||\"top\"===r?(t=Za,A=\"x\",E=\"y\",k=\"x2\",M=\"y2\",C.attr(\"dy\",0>O?\"0em\":\".71em\").style(\"text-anchor\",\"middle\"),w.attr(\"d\",\"M\"+b[0]+\",\"+O*a+\"V0H\"+b[1]+\"V\"+O*a)):(t=Xa,A=\"y\",E=\"x\",k=\"y2\",M=\"x2\",C.attr(\"dy\",\".32em\").style(\"text-anchor\",0>O?\"end\":\"start\"),w.attr(\"d\",\"M\"+O*a+\",\"+b[0]+\"H0V\"+b[1]+\"H\"+O*a)),S.attr(M,O*i),T.attr(E,O*v),D.attr(k,0).attr(M,O*i),F.attr(A,0).attr(E,O*v),h.rangeBand){var L=h,I=L.rangeBand()/2;l=h=function(t){return L(t)+I}}else l.rangeBand?l=h:y.call(t,h,l);g.call(t,l,h),m.call(t,h,h)})}var n,e=eu.scale.linear(),r=Ys,i=6,a=6,u=3,o=[10],s=null;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in Us?n+\"\":Ys,t):r},t.ticks=function(){return arguments.length?(o=arguments,t):o},t.tickValues=function(n){return arguments.length?(s=n,t):s},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n){var e=arguments.length;return e?(i=+n,a=+arguments[e-1],t):i},t.innerTickSize=function(n){return arguments.length?(i=+n,t):i},t.outerTickSize=function(n){return arguments.length?(a=+n,t):a},t.tickPadding=function(n){return arguments.length?(u=+n,t):u},t.tickSubdivide=function(){return arguments.length&&t},t};var Ys=\"bottom\",Us={top:1,right:1,bottom:1,left:1};eu.svg.brush=function(){function t(e){e.each(function(){var e=eu.select(this).style(\"pointer-events\",\"all\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\").on(\"mousedown.brush\",a).on(\"touchstart.brush\",a),u=e.selectAll(\".background\").data([0]);u.enter().append(\"rect\").attr(\"class\",\"background\").style(\"visibility\",\"hidden\").style(\"cursor\",\"crosshair\"),e.selectAll(\".extent\").data([0]).enter().append(\"rect\").attr(\"class\",\"extent\").style(\"cursor\",\"move\");var o=e.selectAll(\".resize\").data(g,_);o.exit().remove(),o.enter().append(\"g\").attr(\"class\",function(t){return\"resize \"+t}).style(\"cursor\",function(t){return $s[t]}).append(\"rect\").attr(\"x\",function(t){return/[ew]$/.test(t)?-3:null}).attr(\"y\",function(t){return/^[ns]/.test(t)?-3:null}).attr(\"width\",6).attr(\"height\",6).style(\"visibility\",\"hidden\"),o.style(\"display\",t.empty()?\"none\":null);var s,h=eu.transition(e),f=eu.transition(u);c&&(s=ji(c),f.attr(\"x\",s[0]).attr(\"width\",s[1]-s[0]),r(h)),l&&(s=ji(l),f.attr(\"y\",s[0]).attr(\"height\",s[1]-s[0]),i(h)),n(h)})}function n(t){t.selectAll(\".resize\").attr(\"transform\",function(t){return\"translate(\"+h[+/e$/.test(t)]+\",\"+f[+/^s/.test(t)]+\")\"})}function r(t){t.select(\".extent\").attr(\"x\",h[0]),t.selectAll(\".extent,.n>rect,.s>rect\").attr(\"width\",h[1]-h[0])}function i(t){t.select(\".extent\").attr(\"y\",f[0]),t.selectAll(\".extent,.e>rect,.w>rect\").attr(\"height\",f[1]-f[0])}function a(){function a(){32==eu.event.keyCode&&(C||(_=null,F[0]-=h[1],F[1]-=f[1],C=2),E())}function g(){32==eu.event.keyCode&&2==C&&(F[0]+=h[1],F[1]+=f[1],C=0,E())}function y(){var t=eu.mouse(x),e=!1;b&&(t[0]+=b[0],t[1]+=b[1]),C||(eu.event.altKey?(_||(_=[(h[0]+h[1])/2,(f[0]+f[1])/2]),F[0]=h[+(t[0]<_[0])],F[1]=f[+(t[1]<_[1])]):_=null),S&&m(t,c,0)&&(r(k),e=!0),D&&m(t,l,1)&&(i(k),e=!0),e&&(n(k),A({type:\"brush\",mode:C?\"move\":\"resize\"}))}function m(t,n,e){var r,i,a=ji(n),s=a[0],c=a[1],l=F[e],g=e?f:h,y=g[1]-g[0];return C&&(s-=l,c-=y+l),r=(e?p:d)?Math.max(s,Math.min(c,t[e])):t[e],C?i=(r+=l)+y:(_&&(l=Math.max(s,Math.min(c,2*_[e]-r))),r>l?(i=r,r=l):i=l),g[0]!=r||g[1]!=i?(e?o=null:u=null,g[0]=r,g[1]=i,!0):void 0}function v(){y(),k.style(\"pointer-events\",\"all\").selectAll(\".resize\").style(\"display\",t.empty()?\"none\":null),eu.select(\"body\").style(\"cursor\",null),O.on(\"mousemove.brush\",null).on(\"mouseup.brush\",null).on(\"touchmove.brush\",null).on(\"touchend.brush\",null).on(\"keydown.brush\",null).on(\"keyup.brush\",null),T(),A({type:\"brushend\"})}var _,b,x=this,w=eu.select(eu.event.target),A=s.of(x,arguments),k=eu.select(x),M=w.datum(),S=!/^(n|s)$/.test(M)&&c,D=!/^(e|w)$/.test(M)&&l,C=w.classed(\"extent\"),T=X(x),F=eu.mouse(x),O=eu.select(e(x)).on(\"keydown.brush\",a).on(\"keyup.brush\",g);if(eu.event.changedTouches?O.on(\"touchmove.brush\",y).on(\"touchend.brush\",v):O.on(\"mousemove.brush\",y).on(\"mouseup.brush\",v),k.interrupt().selectAll(\"*\").interrupt(),C)F[0]=h[0]-F[0],F[1]=f[0]-F[1];else if(M){var L=+/w$/.test(M),I=+/^n/.test(M);b=[h[1-L]-F[0],f[1-I]-F[1]],F[0]=h[L],F[1]=f[I]}else eu.event.altKey&&(_=F.slice());k.style(\"pointer-events\",\"none\").selectAll(\".resize\").style(\"display\",null),eu.select(\"body\").style(\"cursor\",w.style(\"cursor\")),A({type:\"brushstart\"}),y()}var u,o,s=S(t,\"brushstart\",\"brush\",\"brushend\"),c=null,l=null,h=[0,0],f=[0,0],d=!0,p=!0,g=Ws[0];return t.event=function(t){t.each(function(){var t=s.of(this,arguments),n={x:h,y:f,i:u,j:o},e=this.__chart__||n;this.__chart__=n,Bs?eu.select(this).transition().each(\"start.brush\",function(){u=e.i,o=e.j,h=e.x,f=e.y,t({type:\"brushstart\"})}).tween(\"brush:brush\",function(){var e=br(h,n.x),r=br(f,n.y);return u=o=null,function(i){h=n.x=e(i),f=n.y=r(i),t({type:\"brush\",mode:\"resize\"})}}).each(\"end.brush\",function(){u=n.i,o=n.j,t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"})}):(t({type:\"brushstart\"}),t({type:\"brush\",mode:\"resize\"}),t({type:\"brushend\"}))})},t.x=function(n){return arguments.length?(c=n,g=Ws[!c<<1|!l],t):c},t.y=function(n){return arguments.length?(l=n,g=Ws[!c<<1|!l],t):l},t.clamp=function(n){return arguments.length?(c&&l?(d=!!n[0],p=!!n[1]):c?d=!!n:l&&(p=!!n),t):c&&l?[d,p]:c?d:l?p:null},t.extent=function(n){var e,r,i,a,s;return arguments.length?(c&&(e=n[0],r=n[1],l&&(e=e[0],r=r[0]),u=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(s=e,e=r,r=s),(e!=h[0]||r!=h[1])&&(h=[e,r])),l&&(i=n[0],a=n[1],c&&(i=i[1],a=a[1]),o=[i,a],l.invert&&(i=l(i),a=l(a)),i>a&&(s=i,i=a,a=s),(i!=f[0]||a!=f[1])&&(f=[i,a])),t):(c&&(u?(e=u[0],r=u[1]):(e=h[0],r=h[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(s=e,e=r,r=s))),l&&(o?(i=o[0],a=o[1]):(i=f[0],a=f[1],l.invert&&(i=l.invert(i),a=l.invert(a)),i>a&&(s=i,i=a,a=s))),c&&l?[[e,i],[r,a]]:c?[e,r]:l&&[i,a])},t.clear=function(){return t.empty()||(h=[0,0],f=[0,0],u=o=null),t},t.empty=function(){return!!c&&h[0]==h[1]||!!l&&f[0]==f[1]},eu.rebind(t,s,\"on\")};var $s={n:\"ns-resize\",e:\"ew-resize\",s:\"ns-resize\",w:\"ew-resize\",nw:\"nwse-resize\",ne:\"nesw-resize\",se:\"nwse-resize\",sw:\"nesw-resize\"},Ws=[[\"n\",\"e\",\"s\",\"w\",\"nw\",\"ne\",\"se\",\"sw\"],[\"e\",\"w\"],[\"n\",\"s\"],[]],zs=so.format=go.timeFormat,qs=zs.utc,Gs=qs(\"%Y-%m-%dT%H:%M:%S.%LZ\");zs.iso=Date.prototype.toISOString&&+new Date(\"2000-01-01T00:00:00.000Z\")?Ka:Gs,Ka.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},Ka.toString=Gs.toString,so.second=Yt(function(t){return new co(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),so.seconds=so.second.range,so.seconds.utc=so.second.utc.range,so.minute=Yt(function(t){return new co(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),so.minutes=so.minute.range,so.minutes.utc=so.minute.utc.range,so.hour=Yt(function(t){var n=t.getTimezoneOffset()/60;return new co(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),so.hours=so.hour.range,so.hours.utc=so.hour.utc.range,so.month=Yt(function(t){return t=so.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),so.months=so.month.range,so.months.utc=so.month.utc.range;var Hs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Vs=[[so.second,1],[so.second,5],[so.second,15],[so.second,30],[so.minute,1],[so.minute,5],[so.minute,15],[so.minute,30],[so.hour,1],[so.hour,3],[so.hour,6],[so.hour,12],[so.day,1],[so.day,2],[so.week,1],[so.month,1],[so.month,3],[so.year,1]],Zs=zs.multi([[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"%I:%M\",function(t){return t.getMinutes()}],[\"%I %p\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}],[\"%Y\",Tn]]),Xs={range:function(t,n,e){return eu.range(Math.ceil(t/e)*e,+n,e).map(Ja)},floor:_,ceil:_};Vs.year=so.year,so.scale=function(){return Qa(eu.scale.linear(),Vs,Zs)};var Ks=Vs.map(function(t){return[t[0].utc,t[1]]}),Qs=qs.multi([[\".%L\",function(t){return t.getUTCMilliseconds()}],[\":%S\",function(t){return t.getUTCSeconds()}],[\"%I:%M\",function(t){return t.getUTCMinutes()}],[\"%I %p\",function(t){return t.getUTCHours()}],[\"%a %d\",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[\"%b %d\",function(t){return 1!=t.getUTCDate()}],[\"%B\",function(t){return t.getUTCMonth()}],[\"%Y\",Tn]]);Ks.year=so.year.utc,so.scale.utc=function(){return Qa(eu.scale.linear(),Ks,Qs)},eu.text=Dt(function(t){return t.responseText}),eu.json=function(t,n){return Ct(t,\"application/json\",tu,n)},eu.html=function(t,n){return Ct(t,\"text/html\",nu,n)},eu.xml=Dt(function(t){return t.responseXML}),\"function\"==typeof define&&define.amd?define(eu):\"object\"==typeof n&&n.exports&&(n.exports=eu),this.d3=eu}()},{}],3:[function(t,n){n.exports={graphlib:t(\"./lib/graphlib\"),dagre:t(\"./lib/dagre\"),intersect:t(\"./lib/intersect\"),render:t(\"./lib/render\"),util:t(\"./lib/util\"),version:t(\"./lib/version\")}},{\"./lib/dagre\":10,\"./lib/graphlib\":11,\"./lib/intersect\":12,\"./lib/render\":27,\"./lib/util\":29,\"./lib/version\":30}],4:[function(t,n){function e(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),u=i.append(\"path\").attr(\"d\",\"M 0 0 L 10 5 L 0 10 z\").style(\"stroke-width\",1).style(\"stroke-dasharray\",\"1,0\");a.applyStyle(u,e[r+\"Style\"])}function r(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),u=i.append(\"path\").attr(\"d\",\"M 0 0 L 10 5 L 0 10 L 4 5 z\").style(\"stroke-width\",1).style(\"stroke-dasharray\",\"1,0\");a.applyStyle(u,e[r+\"Style\"])}function i(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),u=i.append(\"path\").attr(\"d\",\"M 0 5 L 10 5\").style(\"stroke-width\",1).style(\"stroke-dasharray\",\"1,0\");a.applyStyle(u,e[r+\"Style\"])}var a=t(\"./util\");n.exports={\"default\":e,normal:e,vee:r,undirected:i}},{\"./util\":29}],5:[function(t,n){function e(t,n){var e=n.nodes().filter(function(t){return r.isSubgraph(n,t)}),a=t.selectAll(\"g.cluster\").data(e,function(t){return t});return a.selectAll(\"*\").remove(),a.enter().append(\"g\").attr(\"class\",\"cluster\").attr(\"id\",function(t){var e=n.node(t);return e.id}).style(\"opacity\",0),r.applyTransition(a,n).style(\"opacity\",1),a.each(function(t){var e=n.node(t),r=d3.select(this);d3.select(this).append(\"rect\");var a=r.append(\"g\").attr(\"class\",\"label\");i(a,e,e.clusterLabelPos)}),a.selectAll(\"rect\").each(function(t){var e=n.node(t),i=d3.select(this);r.applyStyle(i,e.style)}),r.applyTransition(a.exit(),n).style(\"opacity\",0).remove(),a}var r=t(\"./util\"),i=t(\"./label/add-label\");n.exports=e},{\"./label/add-label\":20,\"./util\":29}],6:[function(t,n){\"use strict\";function e(t,n){var e=t.selectAll(\"g.edgeLabel\").data(n.edges(),function(t){return a.edgeToId(t)}).classed(\"update\",!0);return e.selectAll(\"*\").remove(),e.enter().append(\"g\").classed(\"edgeLabel\",!0).style(\"opacity\",0),e.each(function(t){var e=n.edge(t),a=i(u.select(this),n.edge(t),0,0).classed(\"label\",!0),o=a.node().getBBox();e.labelId&&a.attr(\"id\",e.labelId),r.has(e,\"width\")||(e.width=o.width),r.has(e,\"height\")||(e.height=o.height)}),a.applyTransition(e.exit(),n).style(\"opacity\",0).remove(),e}var r=t(\"./lodash\"),i=t(\"./label/add-label\"),a=t(\"./util\"),u=t(\"./d3\");n.exports=e},{\"./d3\":9,\"./label/add-label\":20,\"./lodash\":23,\"./util\":29}],7:[function(t,n){\"use strict\";function e(t,n,e){var i=t.selectAll(\"g.edgePath\").data(n.edges(),function(t){return l.edgeToId(t)}).classed(\"update\",!0);return u(i,n),o(i,n),l.applyTransition(i,n).style(\"opacity\",1),i.each(function(t){var e=h.select(this),r=n.edge(t);r.elem=this,r.id&&e.attr(\"id\",r.id),l.applyClass(e,r[\"class\"],(e.classed(\"update\")?\"update \":\"\")+\"edgePath\")}),i.selectAll(\"path.path\").each(function(t){var e=n.edge(t);e.arrowheadId=s.uniqueId(\"arrowhead\");var i=h.select(this).attr(\"marker-end\",function(){return\"url(#\"+e.arrowheadId+\")\"}).style(\"fill\",\"none\");l.applyTransition(i,n).attr(\"d\",function(t){return r(n,t)}),l.applyStyle(i,e.style)}),i.selectAll(\"defs *\").remove(),i.selectAll(\"defs\").each(function(t){var r=n.edge(t),i=e[r.arrowhead];i(h.select(this),r.arrowheadId,r,\"arrowhead\")}),i}function r(t,n){var e=t.edge(n),r=t.node(n.v),a=t.node(n.w),u=e.points.slice(1,e.points.length-1);return u.unshift(c(r,u[0])),u.push(c(a,u[u.length-1])),i(e,u)}function i(t,n){var e=h.svg.line().x(function(t){return t.x}).y(function(t){return t.y});return s.has(t,\"lineInterpolate\")&&e.interpolate(t.lineInterpolate),s.has(t,\"lineTension\")&&e.tension(Number(t.lineTension)),e(n)}function a(t){var n=t.getBBox(),e=t.getTransformToElement(t.ownerSVGElement).translate(n.width/2,n.height/2);return{x:e.e,y:e.f}}function u(t,n){var e=t.enter().append(\"g\").attr(\"class\",\"edgePath\").style(\"opacity\",0);e.append(\"path\").attr(\"class\",\"path\").attr(\"d\",function(t){var e=n.edge(t),r=n.node(t.v).elem,u=s.range(e.points.length).map(function(){return a(r)});return i(e,u)}),e.append(\"defs\")}function o(t,n){var e=t.exit();l.applyTransition(e,n).style(\"opacity\",0).remove(),l.applyTransition(e.select(\"path.path\"),n).attr(\"d\",function(t){var e=n.node(t.v);if(e){var r=s.range(this.pathSegList.length).map(function(){return e});return i({},r)}return h.select(this).attr(\"d\")})}var s=t(\"./lodash\"),c=t(\"./intersect/intersect-node\"),l=t(\"./util\"),h=t(\"./d3\");n.exports=e},{\"./d3\":9,\"./intersect/intersect-node\":16,\"./lodash\":23,\"./util\":29}],8:[function(t,n){\"use strict\";function e(t,n,e){var o=n.nodes().filter(function(t){return!a.isSubgraph(n,t)}),s=t.selectAll(\"g.node\").data(o,function(t){return t}).classed(\"update\",!0);return s.selectAll(\"*\").remove(),s.enter().append(\"g\").attr(\"class\",\"node\").style(\"opacity\",0),s.each(function(t){var o=n.node(t),s=u.select(this),c=s.append(\"g\").attr(\"class\",\"label\"),l=i(c,o),h=e[o.shape],f=r.pick(l.node().getBBox(),\"width\",\"height\");o.elem=this,o.id&&s.attr(\"id\",o.id),o.labelId&&c.attr(\"id\",o.labelId),a.applyClass(s,o[\"class\"],(s.classed(\"update\")?\"update \":\"\")+\"node\"),r.has(o,\"width\")&&(f.width=o.width),r.has(o,\"height\")&&(f.height=o.height),f.width+=o.paddingLeft+o.paddingRight,f.height+=o.paddingTop+o.paddingBottom,c.attr(\"transform\",\"translate(\"+(o.paddingLeft-o.paddingRight)/2+\",\"+(o.paddingTop-o.paddingBottom)/2+\")\");var d=h(u.select(this),f,o);a.applyStyle(d,o.style);var p=d.node().getBBox();o.width=p.width,o.height=p.height}),a.applyTransition(s.exit(),n).style(\"opacity\",0).remove(),s}var r=t(\"./lodash\"),i=t(\"./label/add-label\"),a=t(\"./util\"),u=t(\"./d3\");n.exports=e},{\"./d3\":9,\"./label/add-label\":20,\"./lodash\":23,\"./util\":29}],9:[function(t,n){n.exports=window.d3},{}],10:[function(t,n){var e;if(t)try{e=t(\"dagre\")}catch(r){}e||(e=window.dagre),n.exports=e},{dagre:52}],11:[function(t,n){var e;if(t)try{e=t(\"graphlib\")}catch(r){}e||(e=window.graphlib),n.exports=e},{graphlib:31}],12:[function(t,n){n.exports={node:t(\"./intersect-node\"),circle:t(\"./intersect-circle\"),ellipse:t(\"./intersect-ellipse\"),polygon:t(\"./intersect-polygon\"),rect:t(\"./intersect-rect\")}},{\"./intersect-circle\":13,\"./intersect-ellipse\":14,\"./intersect-node\":16,\"./intersect-polygon\":17,\"./intersect-rect\":18}],13:[function(t,n){function e(t,n,e){return r(t,n,n,e)}var r=t(\"./intersect-ellipse\");n.exports=e},{\"./intersect-ellipse\":14}],14:[function(t,n){function e(t,n,e,r){var i=t.x,a=t.y,u=i-r.x,o=a-r.y,s=Math.sqrt(n*n*o*o+e*e*u*u),c=Math.abs(n*e*u/s);r.x<i&&(c=-c);var l=Math.abs(n*e*o/s);return r.y<a&&(l=-l),{x:i+c,y:a+l}}n.exports=e},{}],15:[function(t,n){function e(t,n,e,i){var a,u,o,s,c,l,h,f,d,p,g,y,m,v,_;return a=n.y-t.y,o=t.x-n.x,c=n.x*t.y-t.x*n.y,d=a*e.x+o*e.y+c,p=a*i.x+o*i.y+c,0!==d&&0!==p&&r(d,p)||(u=i.y-e.y,s=e.x-i.x,l=i.x*e.y-e.x*i.y,h=u*t.x+s*t.yy+l,f=u*n.x+s*n.y+l,0!==h&&0!==f&&r(h,f)||(g=a*s-u*o,0===g))?void 0:(y=Math.abs(g/2),m=o*l-s*c,v=0>m?(m-y)/g:(m+y)/g,m=u*c-a*l,_=0>m?(m-y)/g:(m+y)/g,{x:v,y:_})}function r(t,n){return t*n>0}n.exports=e},{}],16:[function(t,n){function e(t,n){return t.intersect(n)}n.exports=e},{}],17:[function(t,n){function e(t,n,e){var i=t.x,a=t.y,u=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;n.forEach(function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)});for(var c=i-t.width/2-o,l=a-t.height/2-s,h=0;h<n.length;h++){var f=n[h],d=n[h<n.length-1?h+1:0],p=r(t,e,{x:c+f.x,y:l+f.y},{x:c+d.x,y:l+d.y});p&&u.push(p)}return u.length?(u.length>1&&u.sort(function(t,n){var r=t.x-e.x,i=t.y-e.y,a=Math.sqrt(r*r+i*i),u=n.x-e.x,o=n.y-e.y,s=Math.sqrt(u*u+o*o);return s>a?-1:a===s?0:1}),u[0]):(console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\",t),t)}var r=t(\"./intersect-line\");n.exports=e},{\"./intersect-line\":15}],18:[function(t,n){\nfunction e(t,n){var e,r,i=t.x,a=t.y,u=n.x-i,o=n.y-a,s=t.width/2,c=t.height/2;return Math.abs(o)*s>Math.abs(u)*c?(0>o&&(c=-c),e=0===o?0:c*u/o,r=c):(0>u&&(s=-s),e=s,r=0===u?0:s*o/u),{x:i+e,y:a+r}}n.exports=e},{}],19:[function(t,n){function e(t,n){var e=t.append(\"foreignObject\").attr(\"width\",\"100000\"),i=e.append(\"xhtml:div\"),a=n.label;switch(typeof a){case\"function\":i.insert(a);break;case\"object\":i.insert(function(){return a});break;default:i.html(a)}r.applyStyle(i,n.labelStyle),i.style(\"display\",\"inline-block\"),i.style(\"white-space\",\"nowrap\");var u,o;return i.each(function(){u=this.clientWidth,o=this.clientHeight}),e.attr(\"width\",u).attr(\"height\",o),e}var r=t(\"../util\");n.exports=e},{\"../util\":29}],20:[function(t,n){function e(t,n,e){var u=n.label,o=t.append(\"g\");\"svg\"===n.labelType?a(o,n):\"string\"!=typeof u||\"html\"===n.labelType?i(o,n):r(o,n);var s,c=o.node().getBBox();switch(e){case\"top\":s=-n.height/2;break;case\"bottom\":s=n.height/2-c.height;break;default:s=-c.height/2}return o.attr(\"transform\",\"translate(\"+-c.width/2+\",\"+s+\")\"),o}var r=t(\"./add-text-label\"),i=t(\"./add-html-label\"),a=t(\"./add-svg-label\");n.exports=e},{\"./add-html-label\":19,\"./add-svg-label\":21,\"./add-text-label\":22}],21:[function(t,n){function e(t,n){var e=t;return e.node().appendChild(n.label),r.applyStyle(e,n.labelStyle),e}var r=t(\"../util\");n.exports=e},{\"../util\":29}],22:[function(t,n){function e(t,n){for(var e=t.append(\"text\"),a=r(n.label).split(\"\\n\"),u=0;u<a.length;u++)e.append(\"tspan\").attr(\"xml:space\",\"preserve\").attr(\"dy\",\"1em\").attr(\"x\",\"1\").text(a[u]);return i.applyStyle(e,n.labelStyle),e}function r(t){for(var n,e=\"\",r=!1,i=0;i<t.length;++i)if(n=t[i],r){switch(n){case\"n\":e+=\"\\n\";break;default:e+=n}r=!1}else\"\\\\\"===n?r=!0:e+=n;return e}var i=t(\"../util\");n.exports=e},{\"../util\":29}],23:[function(t,n){var e;if(t)try{e=t(\"lodash\")}catch(r){}e||(e=window._),n.exports=e},{lodash:51}],24:[function(t,n){\"use strict\";function e(t,n){function e(t){var e=n.node(t);return\"translate(\"+e.x+\",\"+e.y+\")\"}var a=t.filter(function(){return!i.select(this).classed(\"update\")});a.attr(\"transform\",e),r.applyTransition(t,n).style(\"opacity\",1).attr(\"transform\",e),r.applyTransition(a.selectAll(\"rect\"),n).attr(\"width\",function(t){return n.node(t).width}).attr(\"height\",function(t){return n.node(t).height}).attr(\"x\",function(t){var e=n.node(t);return-e.width/2}).attr(\"y\",function(t){var e=n.node(t);return-e.height/2})}var r=t(\"./util\"),i=t(\"./d3\");n.exports=e},{\"./d3\":9,\"./util\":29}],25:[function(t,n){\"use strict\";function e(t,n){function e(t){var e=n.edge(t);return a.has(e,\"x\")?\"translate(\"+e.x+\",\"+e.y+\")\":\"\"}var u=t.filter(function(){return!i.select(this).classed(\"update\")});u.attr(\"transform\",e),r.applyTransition(t,n).style(\"opacity\",1).attr(\"transform\",e)}var r=t(\"./util\"),i=t(\"./d3\"),a=t(\"./lodash\");n.exports=e},{\"./d3\":9,\"./lodash\":23,\"./util\":29}],26:[function(t,n){\"use strict\";function e(t,n){function e(t){var e=n.node(t);return\"translate(\"+e.x+\",\"+e.y+\")\"}var a=t.filter(function(){return!i.select(this).classed(\"update\")});a.attr(\"transform\",e),r.applyTransition(t,n).style(\"opacity\",1).attr(\"transform\",e)}var r=t(\"./util\"),i=t(\"./d3\");n.exports=e},{\"./d3\":9,\"./util\":29}],27:[function(t,n){function e(){var n=t(\"./create-nodes\"),e=t(\"./create-clusters\"),u=t(\"./create-edge-labels\"),s=t(\"./create-edge-paths\"),c=t(\"./position-nodes\"),l=t(\"./position-edge-labels\"),h=t(\"./position-clusters\"),f=t(\"./shapes\"),d=t(\"./arrows\"),p=function(t,p){r(p);var g=a(t,\"output\"),y=a(g,\"clusters\"),m=a(g,\"edgePaths\"),v=u(a(g,\"edgeLabels\"),p),_=n(a(g,\"nodes\"),p,f);o(p),c(_,p),l(v,p),s(m,p,d);var b=e(y,p);h(b,p),i(p)};return p.createNodes=function(t){return arguments.length?(n=t,p):n},p.createClusters=function(t){return arguments.length?(e=t,p):e},p.createEdgeLabels=function(t){return arguments.length?(u=t,p):u},p.createEdgePaths=function(t){return arguments.length?(s=t,p):s},p.shapes=function(t){return arguments.length?(f=t,p):f},p.arrows=function(t){return arguments.length?(d=t,p):d},p}function r(t){t.nodes().forEach(function(n){var e=t.node(n);u.has(e,\"label\")||t.children(n).length||(e.label=n),u.has(e,\"paddingX\")&&u.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),u.has(e,\"paddingY\")&&u.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),u.has(e,\"padding\")&&u.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),u.defaults(e,s),u.each([\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"paddingBottom\"],function(t){e[t]=Number(e[t])}),u.has(e,\"width\")&&(e._prevWidth=e.width),u.has(e,\"height\")&&(e._prevHeight=e.height)}),t.edges().forEach(function(n){var e=t.edge(n);u.has(e,\"label\")||(e.label=\"\"),u.defaults(e,c)})}function i(t){u.each(t.nodes(),function(n){var e=t.node(n);u.has(e,\"_prevWidth\")?e.width=e._prevWidth:delete e.width,u.has(e,\"_prevHeight\")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight})}function a(t,n){var e=t.select(\"g.\"+n);return e.empty()&&(e=t.append(\"g\").attr(\"class\",n)),e}var u=t(\"./lodash\"),o=t(\"./dagre\").layout;n.exports=e;var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:\"rect\"},c={arrowhead:\"normal\",lineInterpolate:\"linear\"}},{\"./arrows\":4,\"./create-clusters\":5,\"./create-edge-labels\":6,\"./create-edge-paths\":7,\"./create-nodes\":8,\"./dagre\":10,\"./lodash\":23,\"./position-clusters\":24,\"./position-edge-labels\":25,\"./position-nodes\":26,\"./shapes\":28}],28:[function(t,n){\"use strict\";function e(t,n,e){var r=t.insert(\"rect\",\":first-child\").attr(\"rx\",e.rx).attr(\"ry\",e.ry).attr(\"x\",-n.width/2).attr(\"y\",-n.height/2).attr(\"width\",n.width).attr(\"height\",n.height);return e.intersect=function(t){return u(e,t)},r}function r(t,n,e){var r=n.width/2,i=n.height/2,a=t.insert(\"ellipse\",\":first-child\").attr(\"x\",-n.width/2).attr(\"y\",-n.height/2).attr(\"rx\",r).attr(\"ry\",i);return e.intersect=function(t){return o(e,r,i,t)},a}function i(t,n,e){var r=Math.max(n.width,n.height)/2,i=t.insert(\"circle\",\":first-child\").attr(\"x\",-n.width/2).attr(\"y\",-n.height/2).attr(\"r\",r);return e.intersect=function(t){return s(e,r,t)},i}function a(t,n,e){var r=n.width*Math.SQRT2/2,i=n.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=t.insert(\"polygon\",\":first-child\").attr(\"points\",a.map(function(t){return t.x+\",\"+t.y}).join(\" \"));return e.intersect=function(t){return c(e,a,t)},u}var u=t(\"./intersect/intersect-rect\"),o=t(\"./intersect/intersect-ellipse\"),s=t(\"./intersect/intersect-circle\"),c=t(\"./intersect/intersect-polygon\");n.exports={rect:e,ellipse:r,circle:i,diamond:a}},{\"./intersect/intersect-circle\":13,\"./intersect/intersect-ellipse\":14,\"./intersect/intersect-polygon\":17,\"./intersect/intersect-rect\":18}],29:[function(t,n){function e(t,n){return!!t.children(n).length}function r(t){return i(t.v)+\":\"+i(t.w)+\":\"+i(t.name)}function i(t){return t?String(t).replace(c,\"\\\\:\"):\"\"}function a(t,n){n&&t.attr(\"style\",n)}function u(t,n,e){n&&t.attr(\"class\",n).attr(\"class\",e+\" \"+t.attr(\"class\"))}function o(t,n){var e=n.graph();if(s.isPlainObject(e)){var r=e.transition;if(s.isFunction(r))return r(t)}return t}var s=t(\"./lodash\");n.exports={isSubgraph:e,edgeToId:r,applyStyle:a,applyClass:u,applyTransition:o};var c=/:/g},{\"./lodash\":23}],30:[function(t,n){n.exports=\"0.4.10\"},{}],31:[function(t,n){var e=t(\"./lib\");n.exports={Graph:e.Graph,json:t(\"./lib/json\"),alg:t(\"./lib/alg\"),version:e.version}},{\"./lib\":47,\"./lib/alg\":38,\"./lib/json\":48}],32:[function(t,n){function e(t){function n(a){r.has(i,a)||(i[a]=!0,e.push(a),r.each(t.successors(a),n),r.each(t.predecessors(a),n))}var e,i={},a=[];return r.each(t.nodes(),function(t){e=[],n(t),e.length&&a.push(e)}),a}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":49}],33:[function(t,n){function e(t,n,e){i.isArray(n)||(n=[n]);var a=[],u={};return i.each(n,function(n){if(!t.hasNode(n))throw new Error(\"Graph does not have node: \"+n);r(t,n,\"post\"===e,u,a)}),a}function r(t,n,e,a,u){i.has(a,n)||(a[n]=!0,e||u.push(n),i.each(t.neighbors(n),function(n){r(t,n,e,a,u)}),e&&u.push(n))}var i=t(\"../lodash\");n.exports=e},{\"../lodash\":49}],34:[function(t,n){function e(t,n,e){return i.transform(t.nodes(),function(i,a){i[a]=r(t,a,n,e)},{})}var r=t(\"./dijkstra\"),i=t(\"../lodash\");n.exports=e},{\"../lodash\":49,\"./dijkstra\":35}],35:[function(t,n){function e(t,n,e,i){return r(t,String(n),e||u,i||function(n){return t.outEdges(n)})}function r(t,n,e,r){var i,u,o={},s=new a,c=function(t){var n=t.v!==i?t.v:t.w,r=o[n],a=e(t),c=u.distance+a;if(0>a)throw new Error(\"dijkstra does not allow negative edge weights. Bad edge: \"+t+\" Weight: \"+a);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(n,c))};for(t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;o[t]={distance:e},s.add(t,e)});s.size()>0&&(i=s.removeMin(),u=o[i],u.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return o}var i=t(\"../lodash\"),a=t(\"../data/priority-queue\");n.exports=e;var u=i.constant(1)},{\"../data/priority-queue\":45,\"../lodash\":49}],36:[function(t,n){function e(t){return r.filter(i(t),function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])})}var r=t(\"../lodash\"),i=t(\"./tarjan\");n.exports=e},{\"../lodash\":49,\"./tarjan\":43}],37:[function(t,n){function e(t,n,e){return r(t,n||a,e||function(n){return t.outEdges(n)})}function r(t,n,e){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){var i=e.v===t?e.w:e.v,a=n(e);r[t][i]={distance:a,predecessor:t}})}),i.forEach(function(t){var n=r[t];i.forEach(function(e){var a=r[e];i.forEach(function(e){var r=a[t],i=n[e],u=a[e],o=r.distance+i.distance;o<u.distance&&(u.distance=o,u.predecessor=i.predecessor)})})}),r}var i=t(\"../lodash\");n.exports=e;var a=i.constant(1)},{\"../lodash\":49}],38:[function(t,n){n.exports={components:t(\"./components\"),dijkstra:t(\"./dijkstra\"),dijkstraAll:t(\"./dijkstra-all\"),findCycles:t(\"./find-cycles\"),floydWarshall:t(\"./floyd-warshall\"),isAcyclic:t(\"./is-acyclic\"),postorder:t(\"./postorder\"),preorder:t(\"./preorder\"),prim:t(\"./prim\"),tarjan:t(\"./tarjan\"),topsort:t(\"./topsort\")}},{\"./components\":32,\"./dijkstra\":35,\"./dijkstra-all\":34,\"./find-cycles\":36,\"./floyd-warshall\":37,\"./is-acyclic\":39,\"./postorder\":40,\"./preorder\":41,\"./prim\":42,\"./tarjan\":43,\"./topsort\":44}],39:[function(t,n){function e(t){try{r(t)}catch(n){if(n instanceof r.CycleException)return!1;throw n}return!0}var r=t(\"./topsort\");n.exports=e},{\"./topsort\":44}],40:[function(t,n){function e(t,n){return r(t,n,\"post\")}var r=t(\"./dfs\");n.exports=e},{\"./dfs\":33}],41:[function(t,n){function e(t,n){return r(t,n,\"pre\")}var r=t(\"./dfs\");n.exports=e},{\"./dfs\":33}],42:[function(t,n){function e(t,n){function e(t){var e=t.v===u?t.w:t.v,r=c.priority(e);if(void 0!==r){var i=n(t);r>i&&(s[e]=u,c.decrease(e,i))}}var u,o=new i,s={},c=new a;if(0===t.nodeCount())return o;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),o.setNode(t)}),c.decrease(t.nodes()[0],0);for(var l=!1;c.size()>0;){if(u=c.removeMin(),r.has(s,u))o.setEdge(u,s[u]);else{if(l)throw new Error(\"Input graph is not connected: \"+t);l=!0}t.nodeEdges(u).forEach(e)}return o}var r=t(\"../lodash\"),i=t(\"../graph\"),a=t(\"../data/priority-queue\");n.exports=e},{\"../data/priority-queue\":45,\"../graph\":46,\"../lodash\":49}],43:[function(t,n){function e(t){function n(o){var s=a[o]={onStack:!0,lowlink:e,index:e++};if(i.push(o),t.successors(o).forEach(function(t){r.has(a,t)?a[t].onStack&&(s.lowlink=Math.min(s.lowlink,a[t].index)):(n(t),s.lowlink=Math.min(s.lowlink,a[t].lowlink))}),s.lowlink===s.index){var c,l=[];do c=i.pop(),a[c].onStack=!1,l.push(c);while(o!==c);u.push(l)}}var e=0,i=[],a={},u=[];return t.nodes().forEach(function(t){r.has(a,t)||n(t)}),u}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":49}],44:[function(t,n){function e(t){function n(o){if(i.has(a,o))throw new r;i.has(e,o)||(a[o]=!0,e[o]=!0,i.each(t.predecessors(o),n),delete a[o],u.push(o))}var e={},a={},u=[];if(i.each(t.sinks(),n),i.size(e)!==t.nodeCount())throw new r;return u}function r(){}var i=t(\"../lodash\");n.exports=e,e.CycleException=r},{\"../lodash\":49}],45:[function(t,n){function e(){this._arr=[],this._keyIndices={}}var r=t(\"../lodash\");n.exports=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(t){return r.has(this._keyIndices,t)},e.prototype.priority=function(t){var n=this._keyIndices[t];return void 0!==n?this._arr[n].priority:void 0},e.prototype.min=function(){if(0===this.size())throw new Error(\"Queue underflow\");return this._arr[0].key},e.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,a=i.length;return e[t]=a,i.push({key:t,priority:n}),this._decrease(a),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},e.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error(\"New priority is greater than current priority. Key: \"+t+\" Old: \"+this._arr[e].priority+\" New: \"+n);this._arr[e].priority=n,this._decrease(e)},e.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e<n.length&&(i=n[e].priority<n[i].priority?e:i,r<n.length&&(i=n[r].priority<n[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},e.prototype._decrease=function(t){for(var n,e=this._arr,r=e[t].priority;0!==t&&(n=t>>1,!(e[n].priority<r));)this._swap(t,n),t=n},e.prototype._swap=function(t,n){var e=this._arr,r=this._keyIndices,i=e[t],a=e[n];e[t]=a,e[n]=i,r[a.key]=t,r[i.key]=n}},{\"../lodash\":49}],46:[function(t,n){\"use strict\";function e(t){this._isDirected=s.has(t,\"directed\")?t.directed:!0,this._isMultigraph=s.has(t,\"multigraph\")?t.multigraph:!1,this._isCompound=s.has(t,\"compound\")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=s.constant(void 0),this._defaultEdgeLabelFn=s.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(t,n){t[n]?t[n]++:t[n]=1}function i(t,n){--t[n]||delete t[n]}function a(t,n,e,r){var i=\"\"+n,a=\"\"+e;if(!t&&i>a){var u=i;i=a,a=u}return i+h+a+h+(s.isUndefined(r)?c:r)}function u(t,n,e,r){var i=\"\"+n,a=\"\"+e;if(!t&&i>a){var u=i;i=a,a=u}var o={v:i,w:a};return r&&(o.name=r),o}function o(t,n){return a(t,n.v,n.w,n.name)}var s=t(\"./lodash\");n.exports=e;var c=\"\\x00\",l=\"\\x00\",h=\"\u0001\";e.prototype._nodeCount=0,e.prototype._edgeCount=0,e.prototype.isDirected=function(){return this._isDirected},e.prototype.isMultigraph=function(){return this._isMultigraph},e.prototype.isCompound=function(){return this._isCompound},e.prototype.setGraph=function(t){return this._label=t,this},e.prototype.graph=function(){return this._label},e.prototype.setDefaultNodeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultNodeLabelFn=t,this},e.prototype.nodeCount=function(){return this._nodeCount},e.prototype.nodes=function(){return s.keys(this._nodes)},e.prototype.sources=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._in[t])},this)},e.prototype.sinks=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._out[t])},this)},e.prototype.setNodes=function(t,n){var e=arguments;return s.each(t,function(t){e.length>1?this.setNode(t,n):this.setNode(t)},this),this},e.prototype.setNode=function(t,n){return s.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=l,this._children[t]={},this._children[l][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},e.prototype.node=function(t){return this._nodes[t]},e.prototype.hasNode=function(t){return s.has(this._nodes,t)},e.prototype.removeNode=function(t){var n=this;if(s.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],s.each(this.children(t),function(t){this.setParent(t)},this),delete this._children[t]),s.each(s.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],s.each(s.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},e.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error(\"Cannot set parent in a non-compound graph\");if(s.isUndefined(n))n=l;else{n+=\"\";for(var e=n;!s.isUndefined(e);e=this.parent(e))if(e===t)throw new Error(\"Setting \"+n+\" as parent of \"+t+\" would create create a cycle\");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},e.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},e.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==l)return n}},e.prototype.children=function(t){if(s.isUndefined(t)&&(t=l),this._isCompound){var n=this._children[t];if(n)return s.keys(n)}else{if(t===l)return this.nodes();if(this.hasNode(t))return[]}},e.prototype.predecessors=function(t){var n=this._preds[t];return n?s.keys(n):void 0},e.prototype.successors=function(t){var n=this._sucs[t];return n?s.keys(n):void 0},e.prototype.neighbors=function(t){var n=this.predecessors(t);return n?s.union(n,this.successors(t)):void 0},e.prototype.filterNodes=function(t){function n(t){var a=r.parent(t);return void 0===a||e.hasNode(a)?(i[t]=a,a):a in i?i[a]:n(a)}var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph()),s.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)},this),s.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,this.edge(t))},this);var r=this,i={};return this._isCompound&&s.each(e.nodes(),function(t){e.setParent(t,n(t))}),e},e.prototype.setDefaultEdgeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultEdgeLabelFn=t,this},e.prototype.edgeCount=function(){return this._edgeCount},e.prototype.edges=function(){return s.values(this._edgeObjs)},e.prototype.setPath=function(t,n){var e=this,r=arguments;return s.reduce(t,function(t,i){return r.length>1?e.setEdge(t,i,n):e.setEdge(t,i),i}),this},e.prototype.setEdge=function(){var t,n,e,i,o=!1,c=arguments[0];\"object\"==typeof c&&null!==c&&\"v\"in c?(t=c.v,n=c.w,e=c.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=c,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=\"\"+t,n=\"\"+n,s.isUndefined(e)||(e=\"\"+e);var l=a(this._isDirected,t,n,e);if(s.has(this._edgeLabels,l))return o&&(this._edgeLabels[l]=i),this;if(!s.isUndefined(e)&&!this._isMultigraph)throw new Error(\"Cannot set a named edge when isMultigraph = false\");this.setNode(t),this.setNode(n),this._edgeLabels[l]=o?i:this._defaultEdgeLabelFn(t,n,e);var h=u(this._isDirected,t,n,e);return t=h.v,n=h.w,Object.freeze(h),this._edgeObjs[l]=h,r(this._preds[n],t),r(this._sucs[t],n),this._in[n][l]=h,this._out[t][l]=h,this._edgeCount++,this},e.prototype.edge=function(t,n,e){var r=1===arguments.length?o(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return this._edgeLabels[r]},e.prototype.hasEdge=function(t,n,e){var r=1===arguments.length?o(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return s.has(this._edgeLabels,r)},e.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?o(this._isDirected,arguments[0]):a(this._isDirected,t,n,e),u=this._edgeObjs[r];return u&&(t=u.v,n=u.w,delete this._edgeLabels[r],delete this._edgeObjs[r],i(this._preds[n],t),i(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},e.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.v===n}):r}},e.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.w===n}):r}},e.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);return e?e.concat(this.outEdges(t,n)):void 0}},{\"./lodash\":49}],47:[function(t,n){n.exports={Graph:t(\"./graph\"),version:t(\"./version\")}},{\"./graph\":46,\"./version\":50}],48:[function(t,n){function e(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:r(t),edges:i(t)};return u.isUndefined(t.graph())||(n.value=u.clone(t.graph())),n}function r(t){return u.map(t.nodes(),function(n){var e=t.node(n),r=t.parent(n),i={v:n};return u.isUndefined(e)||(i.value=e),u.isUndefined(r)||(i.parent=r),i})}function i(t){return u.map(t.edges(),function(n){var e=t.edge(n),r={v:n.v,w:n.w};return u.isUndefined(n.name)||(r.name=n.name),u.isUndefined(e)||(r.value=e),r})}function a(t){var n=new o(t.options).setGraph(t.value);return u.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),u.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}var u=t(\"./lodash\"),o=t(\"./graph\");n.exports={write:e,read:a}},{\"./graph\":46,\"./lodash\":49}],49:[function(t,n){var e;if(\"function\"==typeof t)try{e=t(\"lodash\")}catch(r){}e||(e=window._),n.exports=e},{lodash:51}],50:[function(t,n){n.exports=\"1.0.7\"},{}],51:[function(t,n,e){(function(t){(function(){function r(t,n){if(t!==n){var e=null===t,r=t===E,i=t===t,a=null===n,u=n===E,o=n===n;if(t>n&&!a||!i||e&&!u&&o||r&&o)return 1;if(n>t&&!e||!o||a&&!r&&i||u&&i)return-1}return 0}function i(t,n,e){for(var r=t.length,i=e?r:-1;e?i--:++i<r;)if(n(t[i],i,t))return i;return-1}function a(t,n,e){if(n!==n)return y(t,e);for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}function u(t){return\"function\"==typeof t||!1}function o(t){return null==t?\"\":t+\"\"}function s(t,n){for(var e=-1,r=t.length;++e<r&&n.indexOf(t.charAt(e))>-1;);return e}function c(t,n){for(var e=t.length;e--&&n.indexOf(t.charAt(e))>-1;);return e}function l(t,n){return r(t.criteria,n.criteria)||t.index-n.index}function h(t,n,e){for(var i=-1,a=t.criteria,u=n.criteria,o=a.length,s=e.length;++i<o;){var c=r(a[i],u[i]);if(c){if(i>=s)return c;var l=e[i];return c*(\"asc\"===l||l===!0?1:-1)}}return t.index-n.index}function f(t){return zt[t]}function d(t){return qt[t]}function p(t,n,e){return n?t=Vt[t]:e&&(t=Zt[t]),\"\\\\\"+t}function g(t){return\"\\\\\"+Zt[t]}function y(t,n,e){for(var r=t.length,i=n+(e?0:-1);e?i--:++i<r;){var a=t[i];if(a!==a)return i}return-1}function m(t){return!!t&&\"object\"==typeof t}function v(t){return 160>=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function _(t,n){for(var e=-1,r=t.length,i=-1,a=[];++e<r;)t[e]===n&&(t[e]=z,a[++i]=e);return a}function b(t,n){for(var e,r=-1,i=t.length,a=-1,u=[];++r<i;){var o=t[r],s=n?n(o,r,t):o;r&&e===s||(e=s,u[++a]=o)}return u}function x(t){for(var n=-1,e=t.length;++n<e&&v(t.charCodeAt(n)););return n}function w(t){for(var n=t.length;n--&&v(t.charCodeAt(n)););return n}function A(t){return Gt[t]}function k(t){function n(t){if(m(t)&&!Co(t)&&!(t instanceof K)){if(t instanceof v)return t;if(tu.call(t,\"__chain__\")&&tu.call(t,\"__wrapped__\"))return dr(t)}return new v(t)}function e(){}function v(t,n,e){this.__wrapped__=t,this.__actions__=e||[],this.__chain__=!!n}function K(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Su,this.__views__=[]}function nt(){var t=new K(this.__wrapped__);return t.__actions__=tn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=tn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=tn(this.__views__),t}function rt(){if(this.__filtered__){var t=new K(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function zt(){var t=this.__wrapped__.value(),n=this.__dir__,e=Co(t),r=0>n,i=e?t.length:0,a=Ge(0,i,this.__views__),u=a.start,o=a.end,s=o-u,c=r?o:u-1,l=this.__iteratees__,h=l.length,f=0,d=wu(s,this.__takeCount__);if(!e||Y>i||i==s&&d==s)return re(r&&e?t.reverse():t,this.__actions__);var p=[];t:for(;s--&&d>f;){c+=n;for(var g=-1,y=t[c];++g<h;){var m=l[g],v=m.iteratee,_=m.type,b=v(y);if(_==$)y=b;else if(!b){if(_==U)continue t;break t}}p[f++]=y}return p}function qt(){this.__data__={}}function Gt(t){return this.has(t)&&delete this.__data__[t]}function Ht(t){return\"__proto__\"==t?E:this.__data__[t]}function Vt(t){return\"__proto__\"!=t&&tu.call(this.__data__,t)}function Zt(t,n){return\"__proto__\"!=t&&(this.__data__[t]=n),this}function Xt(t){var n=t?t.length:0;for(this.data={hash:yu(null),set:new lu};n--;)this.push(t[n])}function Kt(t,n){var e=t.data,r=\"string\"==typeof n||Ii(n)?e.set.has(n):e.hash[n];return r?0:-1}function Qt(t){var n=this.data;\"string\"==typeof t||Ii(t)?n.set.add(t):n.hash[t]=!0}function Jt(t,n){for(var e=-1,r=t.length,i=-1,a=n.length,u=Ya(r+a);++e<r;)u[e]=t[e];for(;++i<a;)u[e++]=n[i];return u}function tn(t,n){var e=-1,r=t.length;for(n||(n=Ya(r));++e<r;)n[e]=t[e];return n}function nn(t,n){for(var e=-1,r=t.length;++e<r&&n(t[e],e,t)!==!1;);return t}function an(t,n){for(var e=t.length;e--&&n(t[e],e,t)!==!1;);return t}function un(t,n){for(var e=-1,r=t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function on(t,n,e,r){for(var i=-1,a=t.length,u=r,o=u;++i<a;){var s=t[i],c=+n(s);e(c,u)&&(u=c,o=s)}return o}function sn(t,n){for(var e=-1,r=t.length,i=-1,a=[];++e<r;){var u=t[e];n(u,e,t)&&(a[++i]=u)}return a}function cn(t,n){for(var e=-1,r=t.length,i=Ya(r);++e<r;)i[e]=n(t[e],e,t);return i}function ln(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function hn(t,n,e,r){var i=-1,a=t.length;for(r&&a&&(e=t[++i]);++i<a;)e=n(e,t[i],i,t);return e}function fn(t,n,e,r){var i=t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function dn(t,n){for(var e=-1,r=t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}function pn(t,n){for(var e=t.length,r=0;e--;)r+=+n(t[e])||0;return r}function gn(t,n){return t===E?n:t}function yn(t,n,e,r){return t!==E&&tu.call(r,e)?t:n}function mn(t,n,e){for(var r=-1,i=Yo(n),a=i.length;++r<a;){var u=i[r],o=t[u],s=e(o,n[u],u,t,n);(s===s?s===o:o!==o)&&(o!==E||u in t)||(t[u]=s)}return t}function vn(t,n){return null==n?t:bn(n,Yo(n),t)}function _n(t,n){for(var e=-1,r=null==t,i=!r&&Ke(t),a=i?t.length:0,u=n.length,o=Ya(u);++e<u;){var s=n[e];o[e]=i?Qe(s,a)?t[s]:E:r?E:t[s]}return o}function bn(t,n,e){e||(e={});for(var r=-1,i=n.length;++r<i;){var a=n[r];e[a]=t[a]}return e}function xn(t,n,e){var r=typeof t;return\"function\"==r?n===E?t:ue(t,n,e):null==t?Sa:\"object\"==r?Yn(t):n===E?La(t):Un(t,n)}function wn(t,n,e,r,i,a,u){var o;if(e&&(o=i?e(t,r,i):e(t)),o!==E)return o;if(!Ii(t))return t;var s=Co(t);if(s){if(o=He(t),!n)return tn(t,o)}else{var c=eu.call(t),l=c==X;if(c!=J&&c!=q&&(!l||i))return Wt[c]?Ze(t,c,n):i?t:{};if(o=Ve(l?{}:t),!n)return vn(o,t)}a||(a=[]),u||(u=[]);for(var h=a.length;h--;)if(a[h]==t)return u[h];return a.push(t),u.push(o),(s?nn:On)(t,function(r,i){o[i]=wn(r,n,e,i,t,a,u)}),o}function An(t,n,e){if(\"function\"!=typeof t)throw new Za(W);return hu(function(){t.apply(E,e)},n)}function kn(t,n){var e=t?t.length:0,r=[];if(!e)return r;var i=-1,u=We(),o=u==a,s=o&&n.length>=Y?ge(n):null,c=n.length;s&&(u=Kt,o=!1,n=s);t:for(;++i<e;){var l=t[i];if(o&&l===l){for(var h=c;h--;)if(n[h]===l)continue t;r.push(l)}else u(n,l,0)<0&&r.push(l)}return r}function En(t,n){var e=!0;return Bu(t,function(t,r,i){return e=!!n(t,r,i)}),e}function Mn(t,n,e,r){var i=r,a=i;return Bu(t,function(t,u,o){var s=+n(t,u,o);(e(s,i)||s===r&&s===a)&&(i=s,a=t)}),a}function Sn(t,n,e,r){var i=t.length;for(e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),r=r===E||r>i?i:+r||0,0>r&&(r+=i),i=e>r?0:r>>>0,e>>>=0;i>e;)t[e++]=n;return t}function Dn(t,n){var e=[];return Bu(t,function(t,r,i){n(t,r,i)&&e.push(t)}),e}function Cn(t,n,e,r){var i;return e(t,function(t,e,a){return n(t,e,a)?(i=r?e:t,!1):void 0}),i}function Tn(t,n,e,r){r||(r=[]);for(var i=-1,a=t.length;++i<a;){var u=t[i];m(u)&&Ke(u)&&(e||Co(u)||Ei(u))?n?Tn(u,n,e,r):ln(r,u):e||(r[r.length]=u)}return r}function Fn(t,n){return Pu(t,n,ta)}function On(t,n){return Pu(t,n,Yo)}function Ln(t,n){return Ru(t,n,Yo)}function In(t,n){for(var e=-1,r=n.length,i=-1,a=[];++e<r;){var u=n[e];Li(t[u])&&(a[++i]=u)}return a}function Bn(t,n,e){if(null!=t){e!==E&&e in hr(t)&&(n=[e]);for(var r=0,i=n.length;null!=t&&i>r;)t=t[n[r++]];return r&&r==i?t:E}}function Nn(t,n,e,r,i,a){return t===n?!0:null==t||null==n||!Ii(t)&&!m(n)?t!==t&&n!==n:Pn(t,n,Nn,e,r,i,a)}function Pn(t,n,e,r,i,a,u){var o=Co(t),s=Co(n),c=G,l=G;o||(c=eu.call(t),c==q?c=J:c!=J&&(o=Wi(t))),s||(l=eu.call(n),l==q?l=J:l!=J&&(s=Wi(n)));var h=c==J,f=l==J,d=c==l;if(d&&!o&&!h)return je(t,n,c);if(!i){var p=h&&tu.call(t,\"__wrapped__\"),g=f&&tu.call(n,\"__wrapped__\");if(p||g)return e(p?t.value():t,g?n.value():n,r,i,a,u)}if(!d)return!1;a||(a=[]),u||(u=[]);for(var y=a.length;y--;)if(a[y]==t)return u[y]==n;a.push(t),u.push(n);var m=(o?Re:Ye)(t,n,e,r,i,a,u);return a.pop(),u.pop(),m}function Rn(t,n,e){var r=n.length,i=r,a=!e;if(null==t)return!i;for(t=hr(t);r--;){var u=n[r];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++r<i;){u=n[r];var o=u[0],s=t[o],c=u[1];if(a&&u[2]){if(s===E&&!(o in t))return!1}else{var l=e?e(s,c,o):E;if(!(l===E?Nn(c,s,e,!0):l))return!1}}return!0}function jn(t,n){var e=-1,r=Ke(t)?Ya(t.length):[];return Bu(t,function(t,i,a){r[++e]=n(t,i,a)}),r}function Yn(t){var n=ze(t);if(1==n.length&&n[0][2]){var e=n[0][0],r=n[0][1];return function(t){return null==t?!1:t[e]===r&&(r!==E||e in hr(t))}}return function(t){return Rn(t,n)}}function Un(t,n){var e=Co(t),r=tr(t)&&rr(n),i=t+\"\";return t=fr(t),function(a){if(null==a)return!1;var u=i;if(a=hr(a),!(!e&&r||u in a)){if(a=1==t.length?a:Bn(a,Zn(t,0,-1)),null==a)return!1;u=Mr(t),a=hr(a)}return a[u]===n?n!==E||u in a:Nn(n,a[u],E,!0)}}function $n(t,n,e,r,i){if(!Ii(t))return t;var a=Ke(n)&&(Co(n)||Wi(n)),u=a?E:Yo(n);return nn(u||n,function(o,s){if(u&&(s=o,o=n[s]),m(o))r||(r=[]),i||(i=[]),Wn(t,n,s,$n,e,r,i);else{var c=t[s],l=e?e(c,o,s,t,n):E,h=l===E;h&&(l=o),l===E&&(!a||s in t)||!h&&(l===l?l===c:c!==c)||(t[s]=l)}}),t}function Wn(t,n,e,r,i,a,u){for(var o=a.length,s=n[e];o--;)if(a[o]==s)return void(t[e]=u[o]);var c=t[e],l=i?i(c,s,e,t,n):E,h=l===E;h&&(l=s,Ke(s)&&(Co(s)||Wi(s))?l=Co(c)?c:Ke(c)?tn(c):[]:Yi(s)||Ei(s)?l=Ei(c)?Vi(c):Yi(c)?c:{}:h=!1),a.push(s),u.push(l),h?t[e]=r(l,s,i,a,u):(l===l?l!==c:c===c)&&(t[e]=l)}function zn(t){return function(n){return null==n?E:n[t]}}function qn(t){var n=t+\"\";return t=fr(t),function(e){return Bn(e,t,n)}}function Gn(t,n){for(var e=t?n.length:0;e--;){var r=n[e];if(r!=i&&Qe(r)){var i=r;fu.call(t,r,1)}}return t}function Hn(t,n){return t+mu(Eu()*(n-t+1))}function Vn(t,n,e,r,i){return i(t,function(t,i,a){e=r?(r=!1,t):n(e,t,i,a)}),e}function Zn(t,n,e){var r=-1,i=t.length;n=null==n?0:+n||0,0>n&&(n=-n>i?0:i+n),e=e===E||e>i?i:+e||0,0>e&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var a=Ya(i);++r<i;)a[r]=t[r+n];return a}function Xn(t,n){var e;return Bu(t,function(t,r,i){return e=n(t,r,i),!e}),!!e}function Kn(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}function Qn(t,n,e){var r=Ue(),i=-1;n=cn(n,function(t){return r(t)});var a=jn(t,function(t){var e=cn(n,function(n){return n(t)});return{criteria:e,index:++i,value:t}});return Kn(a,function(t,n){return h(t,n,e)})}function Jn(t,n){var e=0;return Bu(t,function(t,r,i){e+=+n(t,r,i)||0}),e}function te(t,n){var e=-1,r=We(),i=t.length,u=r==a,o=u&&i>=Y,s=o?ge():null,c=[];s?(r=Kt,u=!1):(o=!1,s=n?[]:c);t:for(;++e<i;){var l=t[e],h=n?n(l,e,t):l;if(u&&l===l){for(var f=s.length;f--;)if(s[f]===h)continue t;n&&s.push(h),c.push(l)}else r(s,h,0)<0&&((n||o)&&s.push(h),c.push(l))}return c}function ne(t,n){for(var e=-1,r=n.length,i=Ya(r);++e<r;)i[e]=t[n[e]];return i}function ee(t,n,e,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&n(t[a],a,t););return e?Zn(t,r?0:a,r?a+1:i):Zn(t,r?a+1:0,r?i:a)}function re(t,n){var e=t;e instanceof K&&(e=e.value());for(var r=-1,i=n.length;++r<i;){var a=n[r];e=a.func.apply(a.thisArg,ln([e],a.args))}return e}function ie(t,n,e){var r=0,i=t?t.length:r;if(\"number\"==typeof n&&n===n&&Tu>=i){for(;i>r;){\nvar a=r+i>>>1,u=t[a];(e?n>=u:n>u)&&null!==u?r=a+1:i=a}return i}return ae(t,n,Sa,e)}function ae(t,n,e,r){n=e(n);for(var i=0,a=t?t.length:0,u=n!==n,o=null===n,s=n===E;a>i;){var c=mu((i+a)/2),l=e(t[c]),h=l!==E,f=l===l;if(u)var d=f||r;else d=o?f&&h&&(r||null!=l):s?f&&(r||h):null==l?!1:r?n>=l:n>l;d?i=c+1:a=c}return wu(a,Cu)}function ue(t,n,e){if(\"function\"!=typeof t)return Sa;if(n===E)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,a){return t.call(n,e,r,i,a)};case 5:return function(e,r,i,a,u){return t.call(n,e,r,i,a,u)}}return function(){return t.apply(n,arguments)}}function oe(t){var n=new au(t.byteLength),e=new du(n);return e.set(new du(t)),n}function se(t,n,e){for(var r=e.length,i=-1,a=xu(t.length-r,0),u=-1,o=n.length,s=Ya(o+a);++u<o;)s[u]=n[u];for(;++i<r;)s[e[i]]=t[i];for(;a--;)s[u++]=t[i++];return s}function ce(t,n,e){for(var r=-1,i=e.length,a=-1,u=xu(t.length-i,0),o=-1,s=n.length,c=Ya(u+s);++a<u;)c[a]=t[a];for(var l=a;++o<s;)c[l+o]=n[o];for(;++r<i;)c[l+e[r]]=t[a++];return c}function le(t,n){return function(e,r,i){var a=n?n():{};if(r=Ue(r,i,3),Co(e))for(var u=-1,o=e.length;++u<o;){var s=e[u];t(a,s,r(s,u,e),e)}else Bu(e,function(n,e,i){t(a,n,r(n,e,i),i)});return a}}function he(t){return mi(function(n,e){var r=-1,i=null==n?0:e.length,a=i>2?e[i-2]:E,u=i>2?e[2]:E,o=i>1?e[i-1]:E;for(\"function\"==typeof a?(a=ue(a,o,5),i-=2):(a=\"function\"==typeof o?o:E,i-=a?1:0),u&&Je(e[0],e[1],u)&&(a=3>i?E:a,i=1);++r<i;){var s=e[r];s&&t(n,s,a)}return n})}function fe(t,n){return function(e,r){var i=e?Uu(e):0;if(!er(i))return t(e,r);for(var a=n?i:-1,u=hr(e);(n?a--:++a<i)&&r(u[a],a,u)!==!1;);return e}}function de(t){return function(n,e,r){for(var i=hr(n),a=r(n),u=a.length,o=t?u:-1;t?o--:++o<u;){var s=a[o];if(e(i[s],s,i)===!1)break}return n}}function pe(t,n){function e(){var i=this&&this!==en&&this instanceof e?r:t;return i.apply(n,arguments)}var r=me(t);return e}function ge(t){return yu&&lu?new Xt(t):null}function ye(t){return function(n){for(var e=-1,r=ka(la(n)),i=r.length,a=\"\";++e<i;)a=t(a,r[e],e);return a}}function me(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Iu(t.prototype),r=t.apply(e,n);return Ii(r)?r:e}}function ve(t){function n(e,r,i){i&&Je(e,r,i)&&(r=E);var a=Pe(e,t,E,E,E,E,E,r);return a.placeholder=n.placeholder,a}return n}function _e(t,n){return mi(function(e){var r=e[0];return null==r?r:(e.push(n),t.apply(E,e))})}function be(t,n){return function(e,r,i){if(i&&Je(e,r,i)&&(r=E),r=Ue(r,i,3),1==r.length){e=Co(e)?e:lr(e);var a=on(e,r,t,n);if(!e.length||a!==n)return a}return Mn(e,r,t,n)}}function xe(t,n){return function(e,r,a){if(r=Ue(r,a,3),Co(e)){var u=i(e,r,n);return u>-1?e[u]:E}return Cn(e,r,t)}}function we(t){return function(n,e,r){return n&&n.length?(e=Ue(e,r,3),i(n,e,t)):-1}}function Ae(t){return function(n,e,r){return e=Ue(e,r,3),Cn(n,e,t,!0)}}function ke(t){return function(){for(var n,e=arguments.length,r=t?e:-1,i=0,a=Ya(e);t?r--:++r<e;){var u=a[i++]=arguments[r];if(\"function\"!=typeof u)throw new Za(W);!n&&v.prototype.thru&&\"wrapper\"==$e(u)&&(n=new v([],!0))}for(r=n?-1:e;++r<e;){u=a[r];var o=$e(u),s=\"wrapper\"==o?Yu(u):E;n=s&&nr(s[0])&&s[1]==(I|T|O|B)&&!s[4].length&&1==s[9]?n[$e(s[0])].apply(n,s[3]):1==u.length&&nr(u)?n[o]():n.thru(u)}return function(){var t=arguments,r=t[0];if(n&&1==t.length&&Co(r)&&r.length>=Y)return n.plant(r).value();for(var i=0,u=e?a[i].apply(this,t):r;++i<e;)u=a[i].call(this,u);return u}}}function Ee(t,n){return function(e,r,i){return\"function\"==typeof r&&i===E&&Co(e)?t(e,r):n(e,ue(r,i,3))}}function Me(t){return function(n,e,r){return(\"function\"!=typeof e||r!==E)&&(e=ue(e,r,3)),t(n,e,ta)}}function Se(t){return function(n,e,r){return(\"function\"!=typeof e||r!==E)&&(e=ue(e,r,3)),t(n,e)}}function De(t){return function(n,e,r){var i={};return e=Ue(e,r,3),On(n,function(n,r,a){var u=e(n,r,a);r=t?u:r,n=t?n:u,i[r]=n}),i}}function Ce(t){return function(n,e,r){return n=o(n),(t?n:\"\")+Le(n,e,r)+(t?\"\":n)}}function Te(t){var n=mi(function(e,r){var i=_(r,n.placeholder);return Pe(e,t,E,r,i)});return n}function Fe(t,n){return function(e,r,i,a){var u=arguments.length<3;return\"function\"==typeof r&&a===E&&Co(e)?t(e,r,i,u):Vn(e,Ue(r,a,4),i,u,n)}}function Oe(t,n,e,r,i,a,u,o,s,c){function l(){for(var v=arguments.length,b=v,x=Ya(v);b--;)x[b]=arguments[b];if(r&&(x=se(x,r,i)),a&&(x=ce(x,a,u)),p||y){var w=l.placeholder,A=_(x,w);if(v-=A.length,c>v){var k=o?tn(o):E,M=xu(c-v,0),C=p?A:E,T=p?E:A,F=p?x:E,I=p?E:x;n|=p?O:L,n&=~(p?L:O),g||(n&=~(S|D));var B=[t,n,e,F,C,I,T,k,s,M],N=Oe.apply(E,B);return nr(t)&&$u(N,B),N.placeholder=w,N}}var P=f?e:this,R=d?P[t]:t;return o&&(x=sr(x,o)),h&&s<x.length&&(x.length=s),this&&this!==en&&this instanceof l&&(R=m||me(t)),R.apply(P,x)}var h=n&I,f=n&S,d=n&D,p=n&T,g=n&C,y=n&F,m=d?E:me(t);return l}function Le(t,n,e){var r=t.length;if(n=+n,r>=n||!_u(n))return\"\";var i=n-r;return e=null==e?\" \":e+\"\",ya(e,gu(i/e.length)).slice(0,i)}function Ie(t,n,e,r){function i(){for(var n=-1,o=arguments.length,s=-1,c=r.length,l=Ya(c+o);++s<c;)l[s]=r[s];for(;o--;)l[s++]=arguments[++n];var h=this&&this!==en&&this instanceof i?u:t;return h.apply(a?e:this,l)}var a=n&S,u=me(t);return i}function Be(t){var n=za[t];return function(t,e){return e=e===E?0:+e||0,e?(e=su(10,e),n(t*e)/e):n(t)}}function Ne(t){return function(n,e,r,i){var a=Ue(r);return null==r&&a===xn?ie(n,e,t):ae(n,e,a(r,i,1),t)}}function Pe(t,n,e,r,i,a,u,o){var s=n&D;if(!s&&\"function\"!=typeof t)throw new Za(W);var c=r?r.length:0;if(c||(n&=~(O|L),r=i=E),c-=i?i.length:0,n&L){var l=r,h=i;r=i=E}var f=s?E:Yu(t),d=[t,n,e,r,i,l,h,a,u,o];if(f&&(ir(d,f),n=d[1],o=d[9]),d[9]=null==o?s?0:t.length:xu(o-c,0)||0,n==S)var p=pe(d[0],d[2]);else p=n!=O&&n!=(S|O)||d[4].length?Oe.apply(E,d):Ie.apply(E,d);var g=f?ju:$u;return g(p,d)}function Re(t,n,e,r,i,a,u){var o=-1,s=t.length,c=n.length;if(s!=c&&!(i&&c>s))return!1;for(;++o<s;){var l=t[o],h=n[o],f=r?r(i?h:l,i?l:h,o):E;if(f!==E){if(f)continue;return!1}if(i){if(!dn(n,function(t){return l===t||e(l,t,r,i,a,u)}))return!1}else if(l!==h&&!e(l,h,r,i,a,u))return!1}return!0}function je(t,n,e){switch(e){case H:case V:return+t==+n;case Z:return t.name==n.name&&t.message==n.message;case Q:return t!=+t?n!=+n:t==+n;case tt:case et:return t==n+\"\"}return!1}function Ye(t,n,e,r,i,a,u){var o=Yo(t),s=o.length,c=Yo(n),l=c.length;if(s!=l&&!i)return!1;for(var h=s;h--;){var f=o[h];if(!(i?f in n:tu.call(n,f)))return!1}for(var d=i;++h<s;){f=o[h];var p=t[f],g=n[f],y=r?r(i?g:p,i?p:g,f):E;if(!(y===E?e(p,g,r,i,a,u):y))return!1;d||(d=\"constructor\"==f)}if(!d){var m=t.constructor,v=n.constructor;if(m!=v&&\"constructor\"in t&&\"constructor\"in n&&!(\"function\"==typeof m&&m instanceof m&&\"function\"==typeof v&&v instanceof v))return!1}return!0}function Ue(t,e,r){var i=n.callback||Ea;return i=i===Ea?xn:i,r?i(t,e,r):i}function $e(t){for(var n=t.name,e=Lu[n],r=e?e.length:0;r--;){var i=e[r],a=i.func;if(null==a||a==t)return i.name}return n}function We(t,e,r){var i=n.indexOf||kr;return i=i===kr?a:i,t?i(t,e,r):i}function ze(t){for(var n=na(t),e=n.length;e--;)n[e][2]=rr(n[e][1]);return n}function qe(t,n){var e=null==t?E:t[n];return Pi(e)?e:E}function Ge(t,n,e){for(var r=-1,i=e.length;++r<i;){var a=e[r],u=a.size;switch(a.type){case\"drop\":t+=u;break;case\"dropRight\":n-=u;break;case\"take\":n=wu(n,t+u);break;case\"takeRight\":t=xu(t,n-u)}}return{start:t,end:n}}function He(t){var n=t.length,e=new t.constructor(n);return n&&\"string\"==typeof t[0]&&tu.call(t,\"index\")&&(e.index=t.index,e.input=t.input),e}function Ve(t){var n=t.constructor;return\"function\"==typeof n&&n instanceof n||(n=Ga),new n}function Ze(t,n,e){var r=t.constructor;switch(n){case it:return oe(t);case H:case V:return new r(+t);case at:case ut:case ot:case st:case ct:case lt:case ht:case ft:case dt:var i=t.buffer;return new r(e?oe(i):i,t.byteOffset,t.length);case Q:case et:return new r(t);case tt:var a=new r(t.source,Ot.exec(t));a.lastIndex=t.lastIndex}return a}function Xe(t,n,e){null==t||tr(n,t)||(n=fr(n),t=1==n.length?t:Bn(t,Zn(n,0,-1)),n=Mr(n));var r=null==t?t:t[n];return null==r?E:r.apply(t,e)}function Ke(t){return null!=t&&er(Uu(t))}function Qe(t,n){return t=\"number\"==typeof t||Bt.test(t)?+t:-1,n=null==n?Fu:n,t>-1&&t%1==0&&n>t}function Je(t,n,e){if(!Ii(e))return!1;var r=typeof n;if(\"number\"==r?Ke(e)&&Qe(n,e.length):\"string\"==r&&n in e){var i=e[n];return t===t?t===i:i!==i}return!1}function tr(t,n){var e=typeof t;if(\"string\"==e&&Et.test(t)||\"number\"==e)return!0;if(Co(t))return!1;var r=!kt.test(t);return r||null!=n&&t in hr(n)}function nr(t){var e=$e(t);if(!(e in K.prototype))return!1;var r=n[e];if(t===r)return!0;var i=Yu(r);return!!i&&t===i[0]}function er(t){return\"number\"==typeof t&&t>-1&&t%1==0&&Fu>=t}function rr(t){return t===t&&!Ii(t)}function ir(t,n){var e=t[1],r=n[1],i=e|r,a=I>i,u=r==I&&e==T||r==I&&e==B&&t[7].length<=n[8]||r==(I|B)&&e==T;if(!a&&!u)return t;r&S&&(t[2]=n[2],i|=e&S?0:C);var o=n[3];if(o){var s=t[3];t[3]=s?se(s,o,n[4]):tn(o),t[4]=s?_(t[3],z):tn(n[4])}return o=n[5],o&&(s=t[5],t[5]=s?ce(s,o,n[6]):tn(o),t[6]=s?_(t[5],z):tn(n[6])),o=n[7],o&&(t[7]=tn(o)),r&I&&(t[8]=null==t[8]?n[8]:wu(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i,t}function ar(t,n){return t===E?n:To(t,n,ar)}function ur(t,n){t=hr(t);for(var e=-1,r=n.length,i={};++e<r;){var a=n[e];a in t&&(i[a]=t[a])}return i}function or(t,n){var e={};return Fn(t,function(t,r,i){n(t,r,i)&&(e[r]=t)}),e}function sr(t,n){for(var e=t.length,r=wu(n.length,e),i=tn(t);r--;){var a=n[r];t[r]=Qe(a,e)?i[a]:E}return t}function cr(t){for(var n=ta(t),e=n.length,r=e&&t.length,i=!!r&&er(r)&&(Co(t)||Ei(t)),a=-1,u=[];++a<e;){var o=n[a];(i&&Qe(o,r)||tu.call(t,o))&&u.push(o)}return u}function lr(t){return null==t?[]:Ke(t)?Ii(t)?t:Ga(t):aa(t)}function hr(t){return Ii(t)?t:Ga(t)}function fr(t){if(Co(t))return t;var n=[];return o(t).replace(Mt,function(t,e,r,i){n.push(r?i.replace(Tt,\"$1\"):e||t)}),n}function dr(t){return t instanceof K?t.clone():new v(t.__wrapped__,t.__chain__,tn(t.__actions__))}function pr(t,n,e){n=(e?Je(t,n,e):null==n)?1:xu(mu(n)||1,1);for(var r=0,i=t?t.length:0,a=-1,u=Ya(gu(i/n));i>r;)u[++a]=Zn(t,r,r+=n);return u}function gr(t){for(var n=-1,e=t?t.length:0,r=-1,i=[];++n<e;){var a=t[n];a&&(i[++r]=a)}return i}function yr(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),Zn(t,0>n?0:n)):[]}function mr(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),n=r-(+n||0),Zn(t,0,0>n?0:n)):[]}function vr(t,n,e){return t&&t.length?ee(t,Ue(n,e,3),!0,!0):[]}function _r(t,n,e){return t&&t.length?ee(t,Ue(n,e,3),!0):[]}function br(t,n,e,r){var i=t?t.length:0;return i?(e&&\"number\"!=typeof e&&Je(t,n,e)&&(e=0,r=i),Sn(t,n,e,r)):[]}function xr(t){return t?t[0]:E}function wr(t,n,e){var r=t?t.length:0;return e&&Je(t,n,e)&&(n=!1),r?Tn(t,n):[]}function Ar(t){var n=t?t.length:0;return n?Tn(t,!0):[]}function kr(t,n,e){var r=t?t.length:0;if(!r)return-1;if(\"number\"==typeof e)e=0>e?xu(r+e,0):e;else if(e){var i=ie(t,n);return r>i&&(n===n?n===t[i]:t[i]!==t[i])?i:-1}return a(t,n,e||0)}function Er(t){return mr(t,1)}function Mr(t){var n=t?t.length:0;return n?t[n-1]:E}function Sr(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=r;if(\"number\"==typeof e)i=(0>e?xu(r+e,0):wu(e||0,r-1))+1;else if(e){i=ie(t,n,!0)-1;var a=t[i];return(n===n?n===a:a!==a)?i:-1}if(n!==n)return y(t,i,!0);for(;i--;)if(t[i]===n)return i;return-1}function Dr(){var t=arguments,n=t[0];if(!n||!n.length)return n;for(var e=0,r=We(),i=t.length;++e<i;)for(var a=0,u=t[e];(a=r(n,u,a))>-1;)fu.call(n,a,1);return n}function Cr(t,n,e){var r=[];if(!t||!t.length)return r;var i=-1,a=[],u=t.length;for(n=Ue(n,e,3);++i<u;){var o=t[i];n(o,i,t)&&(r.push(o),a.push(i))}return Gn(t,a),r}function Tr(t){return yr(t,1)}function Fr(t,n,e){var r=t?t.length:0;return r?(e&&\"number\"!=typeof e&&Je(t,n,e)&&(n=0,e=r),Zn(t,n,e)):[]}function Or(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),Zn(t,0,0>n?0:n)):[]}function Lr(t,n,e){var r=t?t.length:0;return r?((e?Je(t,n,e):null==n)&&(n=1),n=r-(+n||0),Zn(t,0>n?0:n)):[]}function Ir(t,n,e){return t&&t.length?ee(t,Ue(n,e,3),!1,!0):[]}function Br(t,n,e){return t&&t.length?ee(t,Ue(n,e,3)):[]}function Nr(t,n,e,r){var i=t?t.length:0;if(!i)return[];null!=n&&\"boolean\"!=typeof n&&(r=e,e=Je(t,n,r)?E:n,n=!1);var u=Ue();return(null!=e||u!==xn)&&(e=u(e,r,3)),n&&We()==a?b(t,e):te(t,e)}function Pr(t){if(!t||!t.length)return[];var n=-1,e=0;t=sn(t,function(t){return Ke(t)?(e=xu(t.length,e),!0):void 0});for(var r=Ya(e);++n<e;)r[n]=cn(t,zn(n));return r}function Rr(t,n,e){var r=t?t.length:0;if(!r)return[];var i=Pr(t);return null==n?i:(n=ue(n,e,4),cn(i,function(t){return hn(t,n,E,!0)}))}function jr(){for(var t=-1,n=arguments.length;++t<n;){var e=arguments[t];if(Ke(e))var r=r?ln(kn(r,e),kn(e,r)):e}return r?te(r):[]}function Yr(t,n){var e=-1,r=t?t.length:0,i={};for(!r||n||Co(t[0])||(n=[]);++e<r;){var a=t[e];n?i[a]=n[e]:a&&(i[a[0]]=a[1])}return i}function Ur(t){var e=n(t);return e.__chain__=!0,e}function $r(t,n,e){return n.call(e,t),t}function Wr(t,n,e){return n.call(e,t)}function zr(){return Ur(this)}function qr(){return new v(this.value(),this.__chain__)}function Gr(t){for(var n,r=this;r instanceof e;){var i=dr(r);n?a.__wrapped__=i:n=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,n}function Hr(){var t=this.__wrapped__,n=function(t){return e&&e.__dir__<0?t:t.reverse()};if(t instanceof K){var e=t;return this.__actions__.length&&(e=new K(this)),e=e.reverse(),e.__actions__.push({func:Wr,args:[n],thisArg:E}),new v(e,this.__chain__)}return this.thru(n)}function Vr(){return this.value()+\"\"}function Zr(){return re(this.__wrapped__,this.__actions__)}function Xr(t,n,e){var r=Co(t)?un:En;return e&&Je(t,n,e)&&(n=E),(\"function\"!=typeof n||e!==E)&&(n=Ue(n,e,3)),r(t,n)}function Kr(t,n,e){var r=Co(t)?sn:Dn;return n=Ue(n,e,3),r(t,n)}function Qr(t,n){return ro(t,Yn(n))}function Jr(t,n,e,r){var i=t?Uu(t):0;return er(i)||(t=aa(t),i=t.length),e=\"number\"!=typeof e||r&&Je(n,e,r)?0:0>e?xu(i+e,0):e||0,\"string\"==typeof t||!Co(t)&&$i(t)?i>=e&&t.indexOf(n,e)>-1:!!i&&We(t,n,e)>-1}function ti(t,n,e){var r=Co(t)?cn:jn;return n=Ue(n,e,3),r(t,n)}function ni(t,n){return ti(t,La(n))}function ei(t,n,e){var r=Co(t)?sn:Dn;return n=Ue(n,e,3),r(t,function(t,e,r){return!n(t,e,r)})}function ri(t,n,e){if(e?Je(t,n,e):null==n){t=lr(t);var r=t.length;return r>0?t[Hn(0,r-1)]:E}var i=-1,a=Hi(t),r=a.length,u=r-1;for(n=wu(0>n?0:+n||0,r);++i<n;){var o=Hn(i,u),s=a[o];a[o]=a[i],a[i]=s}return a.length=n,a}function ii(t){return ri(t,Su)}function ai(t){var n=t?Uu(t):0;return er(n)?n:Yo(t).length}function ui(t,n,e){var r=Co(t)?dn:Xn;return e&&Je(t,n,e)&&(n=E),(\"function\"!=typeof n||e!==E)&&(n=Ue(n,e,3)),r(t,n)}function oi(t,n,e){if(null==t)return[];e&&Je(t,n,e)&&(n=E);var r=-1;n=Ue(n,e,3);var i=jn(t,function(t,e,i){return{criteria:n(t,e,i),index:++r,value:t}});return Kn(i,l)}function si(t,n,e,r){return null==t?[]:(r&&Je(n,e,r)&&(e=E),Co(n)||(n=null==n?[]:[n]),Co(e)||(e=null==e?[]:[e]),Qn(t,n,e))}function ci(t,n){return Kr(t,Yn(n))}function li(t,n){if(\"function\"!=typeof n){if(\"function\"!=typeof t)throw new Za(W);var e=t;t=n,n=e}return t=_u(t=+t)?t:0,function(){return--t<1?n.apply(this,arguments):void 0}}function hi(t,n,e){return e&&Je(t,n,e)&&(n=E),n=t&&null==n?t.length:xu(+n||0,0),Pe(t,I,E,E,E,E,n)}function fi(t,n){var e;if(\"function\"!=typeof n){if(\"function\"!=typeof t)throw new Za(W);var r=t;t=n,n=r}return function(){return--t>0&&(e=n.apply(this,arguments)),1>=t&&(n=E),e}}function di(t,n,e){function r(){d&&uu(d),c&&uu(c),g=0,c=d=p=E}function i(n,e){e&&uu(e),c=d=p=E,n&&(g=go(),l=t.apply(f,s),d||c||(s=f=E))}function a(){var t=n-(go()-h);0>=t||t>n?i(p,c):d=hu(a,t)}function u(){i(m,d)}function o(){if(s=arguments,h=go(),f=this,p=m&&(d||!v),y===!1)var e=v&&!d;else{c||v||(g=h);var r=y-(h-g),i=0>=r||r>y;i?(c&&(c=uu(c)),g=h,l=t.apply(f,s)):c||(c=hu(u,r))}return i&&d?d=uu(d):d||n===y||(d=hu(a,n)),e&&(i=!0,l=t.apply(f,s)),!i||d||c||(s=f=E),l}var s,c,l,h,f,d,p,g=0,y=!1,m=!0;if(\"function\"!=typeof t)throw new Za(W);if(n=0>n?0:+n||0,e===!0){var v=!0;m=!1}else Ii(e)&&(v=!!e.leading,y=\"maxWait\"in e&&xu(+e.maxWait||0,n),m=\"trailing\"in e?!!e.trailing:m);return o.cancel=r,o}function pi(t,n){if(\"function\"!=typeof t||n&&\"function\"!=typeof n)throw new Za(W);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],a=e.cache;if(a.has(i))return a.get(i);var u=t.apply(this,r);return e.cache=a.set(i,u),u};return e.cache=new pi.Cache,e}function gi(t){if(\"function\"!=typeof t)throw new Za(W);return function(){return!t.apply(this,arguments)}}function yi(t){return fi(2,t)}function mi(t,n){if(\"function\"!=typeof t)throw new Za(W);return n=xu(n===E?t.length-1:+n||0,0),function(){for(var e=arguments,r=-1,i=xu(e.length-n,0),a=Ya(i);++r<i;)a[r]=e[n+r];switch(n){case 0:return t.call(this,a);case 1:return t.call(this,e[0],a);case 2:return t.call(this,e[0],e[1],a)}var u=Ya(n+1);for(r=-1;++r<n;)u[r]=e[r];return u[n]=a,t.apply(this,u)}}function vi(t){if(\"function\"!=typeof t)throw new Za(W);return function(n){return t.apply(this,n)}}function _i(t,n,e){var r=!0,i=!0;if(\"function\"!=typeof t)throw new Za(W);return e===!1?r=!1:Ii(e)&&(r=\"leading\"in e?!!e.leading:r,i=\"trailing\"in e?!!e.trailing:i),di(t,n,{leading:r,maxWait:+n,trailing:i})}function bi(t,n){return n=null==n?Sa:n,Pe(n,O,E,[t],[])}function xi(t,n,e,r){return n&&\"boolean\"!=typeof n&&Je(t,n,e)?n=!1:\"function\"==typeof n&&(r=e,e=n,n=!1),\"function\"==typeof e?wn(t,n,ue(e,r,1)):wn(t,n)}function wi(t,n,e){return\"function\"==typeof n?wn(t,!0,ue(n,e,1)):wn(t,!0)}function Ai(t,n){return t>n}function ki(t,n){return t>=n}function Ei(t){return m(t)&&Ke(t)&&tu.call(t,\"callee\")&&!cu.call(t,\"callee\")}function Mi(t){return t===!0||t===!1||m(t)&&eu.call(t)==H}function Si(t){return m(t)&&eu.call(t)==V}function Di(t){return!!t&&1===t.nodeType&&m(t)&&!Yi(t)}function Ci(t){return null==t?!0:Ke(t)&&(Co(t)||$i(t)||Ei(t)||m(t)&&Li(t.splice))?!t.length:!Yo(t).length}function Ti(t,n,e,r){e=\"function\"==typeof e?ue(e,r,3):E;var i=e?e(t,n):E;return i===E?Nn(t,n,e):!!i}function Fi(t){return m(t)&&\"string\"==typeof t.message&&eu.call(t)==Z}function Oi(t){return\"number\"==typeof t&&_u(t)}function Li(t){return Ii(t)&&eu.call(t)==X}function Ii(t){var n=typeof t;return!!t&&(\"object\"==n||\"function\"==n)}function Bi(t,n,e,r){return e=\"function\"==typeof e?ue(e,r,3):E,Rn(t,ze(n),e)}function Ni(t){return ji(t)&&t!=+t}function Pi(t){return null==t?!1:Li(t)?iu.test(Ja.call(t)):m(t)&&It.test(t)}function Ri(t){return null===t}function ji(t){return\"number\"==typeof t||m(t)&&eu.call(t)==Q}function Yi(t){var n;if(!m(t)||eu.call(t)!=J||Ei(t)||!tu.call(t,\"constructor\")&&(n=t.constructor,\"function\"==typeof n&&!(n instanceof n)))return!1;var e;return Fn(t,function(t,n){e=n}),e===E||tu.call(t,e)}function Ui(t){return Ii(t)&&eu.call(t)==tt}function $i(t){return\"string\"==typeof t||m(t)&&eu.call(t)==et}function Wi(t){return m(t)&&er(t.length)&&!!$t[eu.call(t)]}function zi(t){return t===E}function qi(t,n){return n>t}function Gi(t,n){return n>=t}function Hi(t){var n=t?Uu(t):0;return er(n)?n?tn(t):[]:aa(t)}function Vi(t){return bn(t,ta(t))}function Zi(t,n,e){var r=Iu(t);return e&&Je(t,n,e)&&(n=E),n?vn(r,n):r}function Xi(t){return In(t,ta(t))}function Ki(t,n,e){var r=null==t?E:Bn(t,fr(n),n+\"\");return r===E?e:r}function Qi(t,n){if(null==t)return!1;var e=tu.call(t,n);if(!e&&!tr(n)){if(n=fr(n),t=1==n.length?t:Bn(t,Zn(n,0,-1)),null==t)return!1;n=Mr(n),e=tu.call(t,n)}return e||er(t.length)&&Qe(n,t.length)&&(Co(t)||Ei(t))}function Ji(t,n,e){e&&Je(t,n,e)&&(n=E);for(var r=-1,i=Yo(t),a=i.length,u={};++r<a;){var o=i[r],s=t[o];n?tu.call(u,s)?u[s].push(o):u[s]=[o]:u[s]=o}return u}function ta(t){if(null==t)return[];Ii(t)||(t=Ga(t));var n=t.length;n=n&&er(n)&&(Co(t)||Ei(t))&&n||0;for(var e=t.constructor,r=-1,i=\"function\"==typeof e&&e.prototype===t,a=Ya(n),u=n>0;++r<n;)a[r]=r+\"\";for(var o in t)u&&Qe(o,n)||\"constructor\"==o&&(i||!tu.call(t,o))||a.push(o);return a}function na(t){t=hr(t);for(var n=-1,e=Yo(t),r=e.length,i=Ya(r);++n<r;){var a=e[n];i[n]=[a,t[a]]}return i}function ea(t,n,e){var r=null==t?E:t[n];return r===E&&(null==t||tr(n,t)||(n=fr(n),t=1==n.length?t:Bn(t,Zn(n,0,-1)),r=null==t?E:t[Mr(n)]),r=r===E?e:r),Li(r)?r.call(t):r}function ra(t,n,e){if(null==t)return t;var r=n+\"\";n=null!=t[r]||tr(n,t)?[r]:fr(n);for(var i=-1,a=n.length,u=a-1,o=t;null!=o&&++i<a;){var s=n[i];Ii(o)&&(i==u?o[s]=e:null==o[s]&&(o[s]=Qe(n[i+1])?[]:{})),o=o[s]}return t}function ia(t,n,e,r){var i=Co(t)||Wi(t);if(n=Ue(n,r,4),null==e)if(i||Ii(t)){var a=t.constructor;e=i?Co(t)?new a:[]:Iu(Li(a)?a.prototype:E)}else e={};return(i?nn:On)(t,function(t,r,i){return n(e,t,r,i)}),e}function aa(t){return ne(t,Yo(t))}function ua(t){return ne(t,ta(t))}function oa(t,n,e){return n=+n||0,e===E?(e=n,n=0):e=+e||0,t>=wu(n,e)&&t<xu(n,e)}function sa(t,n,e){e&&Je(t,n,e)&&(n=e=E);var r=null==t,i=null==n;if(null==e&&(i&&\"boolean\"==typeof t?(e=t,t=1):\"boolean\"==typeof n&&(e=n,i=!0)),r&&i&&(n=1,i=!1),t=+t||0,i?(n=t,t=0):n=+n||0,e||t%1||n%1){var a=Eu();return wu(t+a*(n-t+ou(\"1e-\"+((a+\"\").length-1))),n)}return Hn(t,n)}function ca(t){return t=o(t),t&&t.charAt(0).toUpperCase()+t.slice(1)}function la(t){return t=o(t),t&&t.replace(Nt,f).replace(Ct,\"\")}function ha(t,n,e){t=o(t),n+=\"\";var r=t.length;return e=e===E?r:wu(0>e?0:+e||0,r),e-=n.length,e>=0&&t.indexOf(n,e)==e}function fa(t){return t=o(t),t&&bt.test(t)?t.replace(vt,d):t}function da(t){return t=o(t),t&&Dt.test(t)?t.replace(St,p):t||\"(?:)\"}function pa(t,n,e){t=o(t),n=+n;var r=t.length;if(r>=n||!_u(n))return t;var i=(n-r)/2,a=mu(i),u=gu(i);return e=Le(\"\",u,e),e.slice(0,a)+t+e}function ga(t,n,e){return(e?Je(t,n,e):null==n)?n=0:n&&(n=+n),t=_a(t),ku(t,n||(Lt.test(t)?16:10))}function ya(t,n){var e=\"\";if(t=o(t),n=+n,1>n||!t||!_u(n))return e;do n%2&&(e+=t),n=mu(n/2),t+=t;while(n);return e}function ma(t,n,e){return t=o(t),e=null==e?0:wu(0>e?0:+e||0,t.length),t.lastIndexOf(n,e)==e}function va(t,e,r){var i=n.templateSettings;r&&Je(t,e,r)&&(e=r=E),t=o(t),e=mn(vn({},r||e),i,yn);var a,u,s=mn(vn({},e.imports),i.imports,yn),c=Yo(s),l=ne(s,c),h=0,f=e.interpolate||Pt,d=\"__p += '\",p=Ha((e.escape||Pt).source+\"|\"+f.source+\"|\"+(f===At?Ft:Pt).source+\"|\"+(e.evaluate||Pt).source+\"|$\",\"g\"),y=\"//# sourceURL=\"+(\"sourceURL\"in e?e.sourceURL:\"lodash.templateSources[\"+ ++Ut+\"]\")+\"\\n\";t.replace(p,function(n,e,r,i,o,s){return r||(r=i),d+=t.slice(h,s).replace(Rt,g),e&&(a=!0,d+=\"' +\\n__e(\"+e+\") +\\n'\"),o&&(u=!0,d+=\"';\\n\"+o+\";\\n__p += '\"),r&&(d+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),h=s+n.length,n}),d+=\"';\\n\";var m=e.variable;m||(d=\"with (obj) {\\n\"+d+\"\\n}\\n\"),d=(u?d.replace(pt,\"\"):d).replace(gt,\"$1\").replace(yt,\"$1;\"),d=\"function(\"+(m||\"obj\")+\") {\\n\"+(m?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(u?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+d+\"return __p\\n}\";var v=Ko(function(){return Wa(c,y+\"return \"+d).apply(E,l)});if(v.source=d,Fi(v))throw v;return v}function _a(t,n,e){var r=t;return(t=o(t))?(e?Je(r,n,e):null==n)?t.slice(x(t),w(t)+1):(n+=\"\",t.slice(s(t,n),c(t,n)+1)):t}function ba(t,n,e){var r=t;return t=o(t),t?t.slice((e?Je(r,n,e):null==n)?x(t):s(t,n+\"\")):t}function xa(t,n,e){var r=t;return t=o(t),t?(e?Je(r,n,e):null==n)?t.slice(0,w(t)+1):t.slice(0,c(t,n+\"\")+1):t}function wa(t,n,e){e&&Je(t,n,e)&&(n=E);var r=N,i=P;if(null!=n)if(Ii(n)){var a=\"separator\"in n?n.separator:a;r=\"length\"in n?+n.length||0:r,i=\"omission\"in n?o(n.omission):i}else r=+n||0;if(t=o(t),r>=t.length)return t;var u=r-i.length;if(1>u)return i;var s=t.slice(0,u);if(null==a)return s+i;if(Ui(a)){if(t.slice(u).search(a)){var c,l,h=t.slice(0,u);for(a.global||(a=Ha(a.source,(Ot.exec(a)||\"\")+\"g\")),a.lastIndex=0;c=a.exec(h);)l=c.index;s=s.slice(0,null==l?u:l)}}else if(t.indexOf(a,u)!=u){var f=s.lastIndexOf(a);f>-1&&(s=s.slice(0,f))}return s+i}function Aa(t){return t=o(t),t&&_t.test(t)?t.replace(mt,A):t}function ka(t,n,e){return e&&Je(t,n,e)&&(n=E),t=o(t),t.match(n||jt)||[]}function Ea(t,n,e){return e&&Je(t,n,e)&&(n=E),m(t)?Da(t):xn(t,n)}function Ma(t){return function(){return t}}function Sa(t){return t}function Da(t){return Yn(wn(t,!0))}function Ca(t,n){return Un(t,wn(n,!0))}function Ta(t,n,e){if(null==e){var r=Ii(n),i=r?Yo(n):E,a=i&&i.length?In(n,i):E;(a?a.length:r)||(a=!1,e=n,n=t,t=this)}a||(a=In(n,Yo(n)));var u=!0,o=-1,s=Li(t),c=a.length;e===!1?u=!1:Ii(e)&&\"chain\"in e&&(u=e.chain);for(;++o<c;){var l=a[o],h=n[l];t[l]=h,s&&(t.prototype[l]=function(n){return function(){var e=this.__chain__;if(u||e){var r=t(this.__wrapped__),i=r.__actions__=tn(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,ln([this.value()],arguments))}}(h))}return t}function Fa(){return en._=ru,this}function Oa(){}function La(t){return tr(t)?zn(t):qn(t)}function Ia(t){return function(n){return Bn(t,fr(n),n+\"\")}}function Ba(t,n,e){e&&Je(t,n,e)&&(n=e=E),t=+t||0,e=null==e?1:+e||0,null==n?(n=t,t=0):n=+n||0;for(var r=-1,i=xu(gu((n-t)/(e||1)),0),a=Ya(i);++r<i;)a[r]=t,t+=e;return a}function Na(t,n,e){if(t=mu(t),1>t||!_u(t))return[];var r=-1,i=Ya(wu(t,Du));for(n=ue(n,e,1);++r<t;)Du>r?i[r]=n(r):n(r);return i}function Pa(t){var n=++nu;return o(t)+n}function Ra(t,n){return(+t||0)+(+n||0)}function ja(t,n,e){return e&&Je(t,n,e)&&(n=E),n=Ue(n,e,3),1==n.length?pn(Co(t)?t:lr(t),n):Jn(t,n)}t=t?rn.defaults(en.Object(),t,rn.pick(en,Yt)):en;{var Ya=t.Array,Ua=t.Date,$a=t.Error,Wa=t.Function,za=t.Math,qa=t.Number,Ga=t.Object,Ha=t.RegExp,Va=t.String,Za=t.TypeError,Xa=Ya.prototype,Ka=Ga.prototype,Qa=Va.prototype,Ja=Wa.prototype.toString,tu=Ka.hasOwnProperty,nu=0,eu=Ka.toString,ru=en._,iu=Ha(\"^\"+Ja.call(tu).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),au=t.ArrayBuffer,uu=t.clearTimeout,ou=t.parseFloat,su=za.pow,cu=Ka.propertyIsEnumerable,lu=qe(t,\"Set\"),hu=t.setTimeout,fu=Xa.splice,du=t.Uint8Array,pu=qe(t,\"WeakMap\"),gu=za.ceil,yu=qe(Ga,\"create\"),mu=za.floor,vu=qe(Ya,\"isArray\"),_u=t.isFinite,bu=qe(Ga,\"keys\"),xu=za.max,wu=za.min,Au=qe(Ua,\"now\"),ku=t.parseInt,Eu=za.random,Mu=qa.NEGATIVE_INFINITY,Su=qa.POSITIVE_INFINITY,Du=4294967295,Cu=Du-1,Tu=Du>>>1,Fu=9007199254740991,Ou=pu&&new pu,Lu={};n.support={}}n.templateSettings={escape:xt,evaluate:wt,interpolate:At,variable:\"\",imports:{_:n}};var Iu=function(){function t(){}return function(n){if(Ii(n)){t.prototype=n;var e=new t;t.prototype=E}return e||{}}}(),Bu=fe(On),Nu=fe(Ln,!0),Pu=de(),Ru=de(!0),ju=Ou?function(t,n){return Ou.set(t,n),t}:Sa,Yu=Ou?function(t){return Ou.get(t)}:Oa,Uu=zn(\"length\"),$u=function(){var t=0,n=0;return function(e,r){var i=go(),a=j-(i-n);if(n=i,a>0){if(++t>=R)return e}else t=0;return ju(e,r)}}(),Wu=mi(function(t,n){return m(t)&&Ke(t)?kn(t,Tn(n,!1,!0)):[]}),zu=we(),qu=we(!0),Gu=mi(function(t){for(var n=t.length,e=n,r=Ya(h),i=We(),u=i==a,o=[];e--;){var s=t[e]=Ke(s=t[e])?s:[];r[e]=u&&s.length>=120?ge(e&&s):null}var c=t[0],l=-1,h=c?c.length:0,f=r[0];t:for(;++l<h;)if(s=c[l],(f?Kt(f,s):i(o,s,0))<0){for(var e=n;--e;){var d=r[e];if((d?Kt(d,s):i(t[e],s,0))<0)continue t}f&&f.push(s),o.push(s)}return o}),Hu=mi(function(t,n){n=Tn(n);var e=_n(t,n);return Gn(t,n.sort(r)),e}),Vu=Ne(),Zu=Ne(!0),Xu=mi(function(t){return te(Tn(t,!1,!0))}),Ku=mi(function(t,n){return Ke(t)?kn(t,n):[]}),Qu=mi(Pr),Ju=mi(function(t){var n=t.length,e=n>2?t[n-2]:E,r=n>1?t[n-1]:E;return n>2&&\"function\"==typeof e?n-=2:(e=n>1&&\"function\"==typeof r?(--n,r):E,r=E),t.length=n,Rr(t,e,r)}),to=mi(function(t){return t=Tn(t),this.thru(function(n){return Jt(Co(n)?n:[hr(n)],t)})}),no=mi(function(t,n){return _n(t,Tn(n))}),eo=le(function(t,n,e){tu.call(t,e)?++t[e]:t[e]=1}),ro=xe(Bu),io=xe(Nu,!0),ao=Ee(nn,Bu),uo=Ee(an,Nu),oo=le(function(t,n,e){tu.call(t,e)?t[e].push(n):t[e]=[n]}),so=le(function(t,n,e){t[e]=n}),co=mi(function(t,n,e){var r=-1,i=\"function\"==typeof n,a=tr(n),u=Ke(t)?Ya(t.length):[];return Bu(t,function(t){var o=i?n:a&&null!=t?t[n]:E;u[++r]=o?o.apply(t,e):Xe(t,n,e)}),u}),lo=le(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),ho=Fe(hn,Bu),fo=Fe(fn,Nu),po=mi(function(t,n){if(null==t)return[];var e=n[2];return e&&Je(n[0],n[1],e)&&(n.length=1),Qn(t,Tn(n),[])}),go=Au||function(){return(new Ua).getTime()},yo=mi(function(t,n,e){var r=S;if(e.length){var i=_(e,yo.placeholder);r|=O}return Pe(t,r,n,e,i)}),mo=mi(function(t,n){n=n.length?Tn(n):Xi(t);for(var e=-1,r=n.length;++e<r;){var i=n[e];t[i]=Pe(t[i],S,t)}return t}),vo=mi(function(t,n,e){var r=S|D;if(e.length){var i=_(e,vo.placeholder);r|=O}return Pe(n,r,t,e,i)}),_o=ve(T),bo=ve(F),xo=mi(function(t,n){return An(t,1,n)}),wo=mi(function(t,n,e){return An(t,n,e)}),Ao=ke(),ko=ke(!0),Eo=mi(function(t,n){if(n=Tn(n),\"function\"!=typeof t||!un(n,u))throw new Za(W);var e=n.length;return mi(function(r){for(var i=wu(r.length,e);i--;)r[i]=n[i](r[i]);return t.apply(this,r)})}),Mo=Te(O),So=Te(L),Do=mi(function(t,n){return Pe(t,B,E,E,E,Tn(n))}),Co=vu||function(t){return m(t)&&er(t.length)&&eu.call(t)==G},To=he($n),Fo=he(function(t,n,e){return e?mn(t,n,e):vn(t,n)}),Oo=_e(Fo,gn),Lo=_e(To,ar),Io=Ae(On),Bo=Ae(Ln),No=Me(Pu),Po=Me(Ru),Ro=Se(On),jo=Se(Ln),Yo=bu?function(t){var n=null==t?E:t.constructor;return\"function\"==typeof n&&n.prototype===t||\"function\"!=typeof t&&Ke(t)?cr(t):Ii(t)?bu(t):[]}:cr,Uo=De(!0),$o=De(),Wo=mi(function(t,n){if(null==t)return{};if(\"function\"!=typeof n[0]){var n=cn(Tn(n),Va);return ur(t,kn(ta(t),n))}var e=ue(n[0],n[1],3);return or(t,function(t,n,r){return!e(t,n,r)})}),zo=mi(function(t,n){return null==t?{}:\"function\"==typeof n[0]?or(t,ue(n[0],n[1],3)):ur(t,Tn(n))}),qo=ye(function(t,n,e){return n=n.toLowerCase(),t+(e?n.charAt(0).toUpperCase()+n.slice(1):n)}),Go=ye(function(t,n,e){return t+(e?\"-\":\"\")+n.toLowerCase()}),Ho=Ce(),Vo=Ce(!0),Zo=ye(function(t,n,e){return t+(e?\"_\":\"\")+n.toLowerCase()}),Xo=ye(function(t,n,e){return t+(e?\" \":\"\")+(n.charAt(0).toUpperCase()+n.slice(1))}),Ko=mi(function(t,n){try{return t.apply(E,n)}catch(e){return Fi(e)?e:new $a(e)}}),Qo=mi(function(t,n){return function(e){return Xe(e,t,n)}}),Jo=mi(function(t,n){return function(e){return Xe(t,e,n)}}),ts=Be(\"ceil\"),ns=Be(\"floor\"),es=be(Ai,Mu),rs=be(qi,Su),is=Be(\"round\");return n.prototype=e.prototype,v.prototype=Iu(e.prototype),v.prototype.constructor=v,K.prototype=Iu(e.prototype),K.prototype.constructor=K,qt.prototype[\"delete\"]=Gt,qt.prototype.get=Ht,qt.prototype.has=Vt,qt.prototype.set=Zt,Xt.prototype.push=Qt,pi.Cache=qt,n.after=li,n.ary=hi,n.assign=Fo,n.at=no,n.before=fi,n.bind=yo,n.bindAll=mo,n.bindKey=vo,n.callback=Ea,n.chain=Ur,n.chunk=pr,n.compact=gr,n.constant=Ma,n.countBy=eo,n.create=Zi,n.curry=_o,n.curryRight=bo,n.debounce=di,n.defaults=Oo,n.defaultsDeep=Lo,n.defer=xo,n.delay=wo,n.difference=Wu,n.drop=yr,n.dropRight=mr,n.dropRightWhile=vr,n.dropWhile=_r,n.fill=br,n.filter=Kr,n.flatten=wr,n.flattenDeep=Ar,n.flow=Ao,n.flowRight=ko,n.forEach=ao,n.forEachRight=uo,n.forIn=No,n.forInRight=Po,n.forOwn=Ro,n.forOwnRight=jo,n.functions=Xi,n.groupBy=oo,n.indexBy=so,n.initial=Er,n.intersection=Gu,n.invert=Ji,n.invoke=co,n.keys=Yo,n.keysIn=ta,n.map=ti,n.mapKeys=Uo,n.mapValues=$o,n.matches=Da,n.matchesProperty=Ca,n.memoize=pi,n.merge=To,n.method=Qo,n.methodOf=Jo,n.mixin=Ta,n.modArgs=Eo,n.negate=gi,n.omit=Wo,n.once=yi,n.pairs=na,n.partial=Mo,n.partialRight=So,n.partition=lo,n.pick=zo,n.pluck=ni,n.property=La,n.propertyOf=Ia,n.pull=Dr,n.pullAt=Hu,n.range=Ba,n.rearg=Do,n.reject=ei,n.remove=Cr,n.rest=Tr,n.restParam=mi,n.set=ra,n.shuffle=ii,n.slice=Fr,n.sortBy=oi,n.sortByAll=po,n.sortByOrder=si,n.spread=vi,n.take=Or,n.takeRight=Lr,n.takeRightWhile=Ir,n.takeWhile=Br,n.tap=$r,n.throttle=_i,n.thru=Wr,n.times=Na,n.toArray=Hi,n.toPlainObject=Vi,n.transform=ia,n.union=Xu,n.uniq=Nr,n.unzip=Pr,n.unzipWith=Rr,n.values=aa,n.valuesIn=ua,n.where=ci,n.without=Ku,n.wrap=bi,n.xor=jr,n.zip=Qu,n.zipObject=Yr,n.zipWith=Ju,n.backflow=ko,n.collect=ti,n.compose=ko,n.each=ao,n.eachRight=uo,n.extend=Fo,n.iteratee=Ea,n.methods=Xi,n.object=Yr,n.select=Kr,n.tail=Tr,n.unique=Nr,Ta(n,n),n.add=Ra,n.attempt=Ko,\nn.camelCase=qo,n.capitalize=ca,n.ceil=ts,n.clone=xi,n.cloneDeep=wi,n.deburr=la,n.endsWith=ha,n.escape=fa,n.escapeRegExp=da,n.every=Xr,n.find=ro,n.findIndex=zu,n.findKey=Io,n.findLast=io,n.findLastIndex=qu,n.findLastKey=Bo,n.findWhere=Qr,n.first=xr,n.floor=ns,n.get=Ki,n.gt=Ai,n.gte=ki,n.has=Qi,n.identity=Sa,n.includes=Jr,n.indexOf=kr,n.inRange=oa,n.isArguments=Ei,n.isArray=Co,n.isBoolean=Mi,n.isDate=Si,n.isElement=Di,n.isEmpty=Ci,n.isEqual=Ti,n.isError=Fi,n.isFinite=Oi,n.isFunction=Li,n.isMatch=Bi,n.isNaN=Ni,n.isNative=Pi,n.isNull=Ri,n.isNumber=ji,n.isObject=Ii,n.isPlainObject=Yi,n.isRegExp=Ui,n.isString=$i,n.isTypedArray=Wi,n.isUndefined=zi,n.kebabCase=Go,n.last=Mr,n.lastIndexOf=Sr,n.lt=qi,n.lte=Gi,n.max=es,n.min=rs,n.noConflict=Fa,n.noop=Oa,n.now=go,n.pad=pa,n.padLeft=Ho,n.padRight=Vo,n.parseInt=ga,n.random=sa,n.reduce=ho,n.reduceRight=fo,n.repeat=ya,n.result=ea,n.round=is,n.runInContext=k,n.size=ai,n.snakeCase=Zo,n.some=ui,n.sortedIndex=Vu,n.sortedLastIndex=Zu,n.startCase=Xo,n.startsWith=ma,n.sum=ja,n.template=va,n.trim=_a,n.trimLeft=ba,n.trimRight=xa,n.trunc=wa,n.unescape=Aa,n.uniqueId=Pa,n.words=ka,n.all=Xr,n.any=ui,n.contains=Jr,n.eq=Ti,n.detect=ro,n.foldl=ho,n.foldr=fo,n.head=xr,n.include=Jr,n.inject=ho,Ta(n,function(){var t={};return On(n,function(e,r){n.prototype[r]||(t[r]=e)}),t}(),!1),n.sample=ri,n.prototype.sample=function(t){return this.__chain__||null!=t?this.thru(function(n){return ri(n,t)}):ri(this.value())},n.VERSION=M,nn([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(t){n[t].placeholder=n}),nn([\"drop\",\"take\"],function(t,n){K.prototype[t]=function(e){var r=this.__filtered__;if(r&&!n)return new K(this);e=null==e?1:xu(mu(e)||0,0);var i=this.clone();return r?i.__takeCount__=wu(i.__takeCount__,e):i.__views__.push({size:e,type:t+(i.__dir__<0?\"Right\":\"\")}),i},K.prototype[t+\"Right\"]=function(n){return this.reverse()[t](n).reverse()}}),nn([\"filter\",\"map\",\"takeWhile\"],function(t,n){var e=n+1,r=e!=$;K.prototype[t]=function(t,n){var i=this.clone();return i.__iteratees__.push({iteratee:Ue(t,n,1),type:e}),i.__filtered__=i.__filtered__||r,i}}),nn([\"first\",\"last\"],function(t,n){var e=\"take\"+(n?\"Right\":\"\");K.prototype[t]=function(){return this[e](1).value()[0]}}),nn([\"initial\",\"rest\"],function(t,n){var e=\"drop\"+(n?\"\":\"Right\");K.prototype[t]=function(){return this.__filtered__?new K(this):this[e](1)}}),nn([\"pluck\",\"where\"],function(t,n){var e=n?\"filter\":\"map\",r=n?Yn:La;K.prototype[t]=function(t){return this[e](r(t))}}),K.prototype.compact=function(){return this.filter(Sa)},K.prototype.reject=function(t,n){return t=Ue(t,n,1),this.filter(function(n){return!t(n)})},K.prototype.slice=function(t,n){t=null==t?0:+t||0;var e=this;return e.__filtered__&&(t>0||0>n)?new K(e):(0>t?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==E&&(n=+n||0,e=0>n?e.dropRight(-n):e.take(n-t)),e)},K.prototype.takeRightWhile=function(t,n){return this.reverse().takeWhile(t,n).reverse()},K.prototype.toArray=function(){return this.take(Su)},On(K.prototype,function(t,e){var r=/^(?:filter|map|reject)|While$/.test(e),i=/^(?:first|last)$/.test(e),a=n[i?\"take\"+(\"last\"==e?\"Right\":\"\"):e];a&&(n.prototype[e]=function(){var n=i?[1]:arguments,e=this.__chain__,u=this.__wrapped__,o=!!this.__actions__.length,s=u instanceof K,c=n[0],l=s||Co(u);l&&r&&\"function\"==typeof c&&1!=c.length&&(s=l=!1);var h=function(t){return i&&e?a(t,1)[0]:a.apply(E,ln([t],n))},f={func:Wr,args:[h],thisArg:E},d=s&&!o;if(i&&!e)return d?(u=u.clone(),u.__actions__.push(f),t.call(u)):a.call(E,this.value())[0];if(!i&&l){u=d?u:new K(this);var p=t.apply(u,n);return p.__actions__.push(f),new v(p,e)}return this.thru(h)})}),nn([\"join\",\"pop\",\"push\",\"replace\",\"shift\",\"sort\",\"splice\",\"split\",\"unshift\"],function(t){var e=(/^(?:replace|split)$/.test(t)?Qa:Xa)[t],r=/^(?:push|sort|unshift)$/.test(t)?\"tap\":\"thru\",i=/^(?:join|pop|replace|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;return i&&!this.__chain__?e.apply(this.value(),t):this[r](function(n){return e.apply(n,t)})}}),On(K.prototype,function(t,e){var r=n[e];if(r){var i=r.name,a=Lu[i]||(Lu[i]=[]);a.push({name:e,func:r})}}),Lu[Oe(E,D).name]=[{name:\"wrapper\",func:E}],K.prototype.clone=nt,K.prototype.reverse=rt,K.prototype.value=zt,n.prototype.chain=zr,n.prototype.commit=qr,n.prototype.concat=to,n.prototype.plant=Gr,n.prototype.reverse=Hr,n.prototype.toString=Vr,n.prototype.run=n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=Zr,n.prototype.collect=n.prototype.map,n.prototype.head=n.prototype.first,n.prototype.select=n.prototype.filter,n.prototype.tail=n.prototype.rest,n}var E,M=\"3.10.1\",S=1,D=2,C=4,T=8,F=16,O=32,L=64,I=128,B=256,N=30,P=\"...\",R=150,j=16,Y=200,U=1,$=2,W=\"Expected a function\",z=\"__lodash_placeholder__\",q=\"[object Arguments]\",G=\"[object Array]\",H=\"[object Boolean]\",V=\"[object Date]\",Z=\"[object Error]\",X=\"[object Function]\",K=\"[object Map]\",Q=\"[object Number]\",J=\"[object Object]\",tt=\"[object RegExp]\",nt=\"[object Set]\",et=\"[object String]\",rt=\"[object WeakMap]\",it=\"[object ArrayBuffer]\",at=\"[object Float32Array]\",ut=\"[object Float64Array]\",ot=\"[object Int8Array]\",st=\"[object Int16Array]\",ct=\"[object Int32Array]\",lt=\"[object Uint8Array]\",ht=\"[object Uint8ClampedArray]\",ft=\"[object Uint16Array]\",dt=\"[object Uint32Array]\",pt=/\\b__p \\+= '';/g,gt=/\\b(__p \\+=) '' \\+/g,yt=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,mt=/&(?:amp|lt|gt|quot|#39|#96);/g,vt=/[&<>\"'`]/g,_t=RegExp(mt.source),bt=RegExp(vt.source),xt=/<%-([\\s\\S]+?)%>/g,wt=/<%([\\s\\S]+?)%>/g,At=/<%=([\\s\\S]+?)%>/g,kt=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?\\1)\\]/,Et=/^\\w*$/,Mt=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,St=/^[:!,]|[\\\\^$.*+?()[\\]{}|\\/]|(^[0-9a-fA-Fnrtuvx])|([\\n\\r\\u2028\\u2029])/g,Dt=RegExp(St.source),Ct=/[\\u0300-\\u036f\\ufe20-\\ufe23]/g,Tt=/\\\\(\\\\)?/g,Ft=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,Ot=/\\w*$/,Lt=/^0[xX]/,It=/^\\[object .+?Constructor\\]$/,Bt=/^\\d+$/,Nt=/[\\xc0-\\xd6\\xd8-\\xde\\xdf-\\xf6\\xf8-\\xff]/g,Pt=/($^)/,Rt=/['\\n\\r\\u2028\\u2029\\\\]/g,jt=function(){var t=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",n=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]+\";return RegExp(t+\"+(?=\"+t+n+\")|\"+t+\"?\"+n+\"|\"+t+\"+|[0-9]+\",\"g\")}(),Yt=[\"Array\",\"ArrayBuffer\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Math\",\"Number\",\"Object\",\"RegExp\",\"Set\",\"String\",\"_\",\"clearTimeout\",\"isFinite\",\"parseFloat\",\"parseInt\",\"setTimeout\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\"],Ut=-1,$t={};$t[at]=$t[ut]=$t[ot]=$t[st]=$t[ct]=$t[lt]=$t[ht]=$t[ft]=$t[dt]=!0,$t[q]=$t[G]=$t[it]=$t[H]=$t[V]=$t[Z]=$t[X]=$t[K]=$t[Q]=$t[J]=$t[tt]=$t[nt]=$t[et]=$t[rt]=!1;var Wt={};Wt[q]=Wt[G]=Wt[it]=Wt[H]=Wt[V]=Wt[at]=Wt[ut]=Wt[ot]=Wt[st]=Wt[ct]=Wt[Q]=Wt[J]=Wt[tt]=Wt[et]=Wt[lt]=Wt[ht]=Wt[ft]=Wt[dt]=!0,Wt[Z]=Wt[X]=Wt[K]=Wt[nt]=Wt[rt]=!1;var zt={\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"Ç\":\"C\",\"ç\":\"c\",\"Ð\":\"D\",\"ð\":\"d\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"Ñ\":\"N\",\"ñ\":\"n\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"Ý\":\"Y\",\"ý\":\"y\",\"ÿ\":\"y\",\"Æ\":\"Ae\",\"æ\":\"ae\",\"Þ\":\"Th\",\"þ\":\"th\",\"ß\":\"ss\"},qt={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\",\"`\":\"`\"},Gt={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\",\"`\":\"`\"},Ht={\"function\":!0,object:!0},Vt={0:\"x30\",1:\"x31\",2:\"x32\",3:\"x33\",4:\"x34\",5:\"x35\",6:\"x36\",7:\"x37\",8:\"x38\",9:\"x39\",A:\"x41\",B:\"x42\",C:\"x43\",D:\"x44\",E:\"x45\",F:\"x46\",a:\"x61\",b:\"x62\",c:\"x63\",d:\"x64\",e:\"x65\",f:\"x66\",n:\"x6e\",r:\"x72\",t:\"x74\",u:\"x75\",v:\"x76\",x:\"x78\"},Zt={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Xt=Ht[typeof e]&&e&&!e.nodeType&&e,Kt=Ht[typeof n]&&n&&!n.nodeType&&n,Qt=Xt&&Kt&&\"object\"==typeof t&&t&&t.Object&&t,Jt=Ht[typeof self]&&self&&self.Object&&self,tn=Ht[typeof window]&&window&&window.Object&&window,nn=Kt&&Kt.exports===Xt&&Xt,en=Qt||tn!==(this&&this.window)&&tn||Jt||this,rn=k();\"function\"==typeof define&&\"object\"==typeof define.amd&&define.amd?(en._=rn,define(function(){return rn})):Xt&&Kt?nn?(Kt.exports=rn)._=rn:Xt._=rn:en._=rn}).call(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],52:[function(t,n){n.exports={graphlib:t(\"./lib/graphlib\"),layout:t(\"./lib/layout\"),debug:t(\"./lib/debug\"),util:{time:t(\"./lib/util\").time,notime:t(\"./lib/util\").notime},version:t(\"./lib/version\")}},{\"./lib/debug\":57,\"./lib/graphlib\":58,\"./lib/layout\":60,\"./lib/util\":80,\"./lib/version\":81}],53:[function(t,n){\"use strict\";function e(t){function n(t){return function(n){return t.edge(n).weight}}var e=\"greedy\"===t.graph().acyclicer?u(t,n(t)):r(t);a.each(e,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,a.uniqueId(\"rev\"))})}function r(t){function n(u){a.has(i,u)||(i[u]=!0,r[u]=!0,a.each(t.outEdges(u),function(t){a.has(r,t.w)?e.push(t):n(t.w)}),delete r[u])}var e=[],r={},i={};return a.each(t.nodes(),n),e}function i(t){a.each(t.edges(),function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}})}var a=t(\"./lodash\"),u=t(\"./greedy-fas\");n.exports={run:e,undo:i}},{\"./greedy-fas\":59,\"./lodash\":61}],54:[function(t,n){function e(t){function n(e){var a=t.children(e),u=t.node(e);if(a.length&&i.each(a,n),i.has(u,\"minRank\")){u.borderLeft=[],u.borderRight=[];for(var o=u.minRank,s=u.maxRank+1;s>o;++o)r(t,\"borderLeft\",\"_bl\",e,u,o),r(t,\"borderRight\",\"_br\",e,u,o)}}i.each(t.children(),n)}function r(t,n,e,r,i,u){var o={width:0,height:0,rank:u,borderType:n},s=i[n][u-1],c=a.addDummyNode(t,\"border\",o,e);i[n][u]=c,t.setParent(c,r),s&&t.setEdge(s,c,{weight:1})}var i=t(\"./lodash\"),a=t(\"./util\");n.exports=e},{\"./lodash\":61,\"./util\":80}],55:[function(t,n){\"use strict\";function e(t){var n=t.graph().rankdir.toLowerCase();(\"lr\"===n||\"rl\"===n)&&i(t)}function r(t){var n=t.graph().rankdir.toLowerCase();(\"bt\"===n||\"rl\"===n)&&u(t),(\"lr\"===n||\"rl\"===n)&&(s(t),i(t))}function i(t){l.each(t.nodes(),function(n){a(t.node(n))}),l.each(t.edges(),function(n){a(t.edge(n))})}function a(t){var n=t.width;t.width=t.height,t.height=n}function u(t){l.each(t.nodes(),function(n){o(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,o),l.has(e,\"y\")&&o(e)})}function o(t){t.y=-t.y}function s(t){l.each(t.nodes(),function(n){c(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,c),l.has(e,\"x\")&&c(e)})}function c(t){var n=t.x;t.x=t.y,t.y=n}var l=t(\"./lodash\");n.exports={adjust:e,undo:r}},{\"./lodash\":61}],56:[function(t,n){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,n){return\"_next\"!==t&&\"_prev\"!==t?n:void 0}n.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;return n!==t?(r(n),n):void 0},e.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&r(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},e.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,i)),e=e._prev;return\"[\"+t.join(\", \")+\"]\"}},{}],57:[function(t,n){function e(t){var n=i.buildLayerMatrix(t),e=new a({compound:!0,multigraph:!0}).setGraph({});return r.each(t.nodes(),function(n){e.setNode(n,{label:n}),e.setParent(n,\"layer\"+t.node(n).rank)}),r.each(t.edges(),function(t){e.setEdge(t.v,t.w,{},t.name)}),r.each(n,function(t,n){var i=\"layer\"+n;e.setNode(i,{rank:\"same\"}),r.reduce(t,function(t,n){return e.setEdge(t,n,{style:\"invis\"}),n})}),e}var r=t(\"./lodash\"),i=t(\"./util\"),a=t(\"./graphlib\").Graph;n.exports={debugOrdering:e}},{\"./graphlib\":58,\"./lodash\":61,\"./util\":80}],58:[function(t,n){var e;if(\"function\"==typeof t)try{e=t(\"graphlib\")}catch(r){}e||(e=window.graphlib),n.exports=e},{graphlib:82}],59:[function(t,n){function e(t,n){if(t.nodeCount()<=1)return[];var e=a(t,n||l),i=r(e.graph,e.buckets,e.zeroIdx);return o.flatten(o.map(i,function(n){return t.outEdges(n.v,n.w)}),!0)}function r(t,n,e){for(var r,a=[],u=n[n.length-1],o=n[0];t.nodeCount();){for(;r=o.dequeue();)i(t,n,e,r);for(;r=u.dequeue();)i(t,n,e,r);if(t.nodeCount())for(var s=n.length-2;s>0;--s)if(r=n[s].dequeue()){a=a.concat(i(t,n,e,r,!0));break}}return a}function i(t,n,e,r,i){var a=i?[]:void 0;return o.each(t.inEdges(r.v),function(r){var o=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,u(n,e,s)}),o.each(t.outEdges(r.v),function(r){var i=t.edge(r),a=r.w,o=t.node(a);o[\"in\"]-=i,u(n,e,o)}),t.removeNode(r.v),a}function a(t,n){var e=new s,r=0,i=0;o.each(t.nodes(),function(t){e.setNode(t,{v:t,\"in\":0,out:0})}),o.each(t.edges(),function(t){var a=e.edge(t.v,t.w)||0,u=n(t),o=a+u;e.setEdge(t.v,t.w,o),i=Math.max(i,e.node(t.v).out+=u),r=Math.max(r,e.node(t.w)[\"in\"]+=u)});var a=o.range(i+r+3).map(function(){return new c}),l=r+1;return o.each(e.nodes(),function(t){u(a,l,e.node(t))}),{graph:e,buckets:a,zeroIdx:l}}function u(t,n,e){e.out?e[\"in\"]?t[e.out-e[\"in\"]+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}var o=t(\"./lodash\"),s=t(\"./graphlib\").Graph,c=t(\"./data/list\");n.exports=e;var l=o.constant(1)},{\"./data/list\":56,\"./graphlib\":58,\"./lodash\":61}],60:[function(t,n){\"use strict\";function e(t,n){var e=n&&n.debugTiming?O.time:O.notime;e(\"layout\",function(){var n=e(\" buildLayoutGraph\",function(){return a(t)});e(\" runLayout\",function(){r(n,e)}),e(\" updateInputGraph\",function(){i(t,n)})})}function r(t,n){n(\" makeSpaceForEdgeLabels\",function(){u(t)}),n(\" removeSelfEdges\",function(){g(t)}),n(\" acyclic\",function(){x.run(t)}),n(\" nestingGraph.run\",function(){S.run(t)}),n(\" rank\",function(){A(O.asNonCompoundGraph(t))}),n(\" injectEdgeLabelProxies\",function(){o(t)}),n(\" removeEmptyRanks\",function(){M(t)}),n(\" nestingGraph.cleanup\",function(){S.cleanup(t)}),n(\" normalizeRanks\",function(){k(t)}),n(\" assignRankMinMax\",function(){s(t)}),n(\" removeEdgeLabelProxies\",function(){c(t)}),n(\" normalize.run\",function(){w.run(t)}),n(\" parentDummyChains\",function(){E(t)}),n(\" addBorderSegments\",function(){D(t)}),n(\" order\",function(){T(t)}),n(\" insertSelfEdges\",function(){y(t)}),n(\" adjustCoordinateSystem\",function(){C.adjust(t)}),n(\" position\",function(){F(t)}),n(\" positionSelfEdges\",function(){m(t)}),n(\" removeBorderNodes\",function(){p(t)}),n(\" normalize.undo\",function(){w.undo(t)}),n(\" fixupEdgeLabelCoords\",function(){f(t)}),n(\" undoCoordinateSystem\",function(){C.undo(t)}),n(\" translateGraph\",function(){l(t)}),n(\" assignNodeIntersects\",function(){h(t)}),n(\" reversePoints\",function(){d(t)}),n(\" acyclic.undo\",function(){x.undo(t)})}function i(t,n){b.each(t.nodes(),function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))}),b.each(t.edges(),function(e){var r=t.edge(e),i=n.edge(e);r.points=i.points,b.has(i,\"x\")&&(r.x=i.x,r.y=i.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}function a(t){var n=new L({multigraph:!0,compound:!0}),e=_(t.graph());return n.setGraph(b.merge({},B,v(e,I),b.pick(e,N))),b.each(t.nodes(),function(e){var r=_(t.node(e));n.setNode(e,b.defaults(v(r,P),R)),n.setParent(e,t.parent(e))}),b.each(t.edges(),function(e){var r=_(t.edge(e));n.setEdge(e,b.merge({},Y,v(r,j),b.pick(r,U)))}),n}function u(t){var n=t.graph();n.ranksep/=2,b.each(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,\"c\"!==r.labelpos.toLowerCase()&&(\"TB\"===n.rankdir||\"BT\"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function o(t){b.each(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i=t.node(n.w),a={rank:(i.rank-r.rank)/2+r.rank,e:n};O.addDummyNode(t,\"edge-proxy\",a,\"_ep\")}})}function s(t){var n=0;b.each(t.nodes(),function(e){var r=t.node(e);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,n=b.max(n,r.maxRank))}),t.graph().maxRank=n}function c(t){b.each(t.nodes(),function(n){var e=t.node(n);\"edge-proxy\"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))})}function l(t){function n(t){var n=t.x,u=t.y,o=t.width,s=t.height;e=Math.min(e,n-o/2),r=Math.max(r,n+o/2),i=Math.min(i,u-s/2),a=Math.max(a,u+s/2)}var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,a=0,u=t.graph(),o=u.marginx||0,s=u.marginy||0;b.each(t.nodes(),function(e){n(t.node(e))}),b.each(t.edges(),function(e){var r=t.edge(e);b.has(r,\"x\")&&n(r)}),e-=o,i-=s,b.each(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),b.each(t.edges(),function(n){var r=t.edge(n);b.each(r.points,function(t){t.x-=e,t.y-=i}),b.has(r,\"x\")&&(r.x-=e),b.has(r,\"y\")&&(r.y-=i)}),u.width=r-e+o,u.height=a-i+s}function h(t){b.each(t.edges(),function(n){var e,r,i=t.edge(n),a=t.node(n.v),u=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=u,r=a),i.points.unshift(O.intersectRect(a,e)),i.points.push(O.intersectRect(u,r))})}function f(t){b.each(t.edges(),function(n){var e=t.edge(n);if(b.has(e,\"x\"))switch((\"l\"===e.labelpos||\"r\"===e.labelpos)&&(e.width-=e.labeloffset),e.labelpos){case\"l\":e.x-=e.width/2+e.labeloffset;break;case\"r\":e.x+=e.width/2+e.labeloffset}})}function d(t){b.each(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}function p(t){b.each(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),r=t.node(e.borderTop),i=t.node(e.borderBottom),a=t.node(b.last(e.borderLeft)),u=t.node(b.last(e.borderRight));e.width=Math.abs(u.x-a.x),e.height=Math.abs(i.y-r.y),e.x=a.x+e.width/2,e.y=r.y+e.height/2}}),b.each(t.nodes(),function(n){\"border\"===t.node(n).dummy&&t.removeNode(n)})}function g(t){b.each(t.edges(),function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}})}function y(t){var n=O.buildLayerMatrix(t);b.each(n,function(n){var e=0;b.each(n,function(n,r){var i=t.node(n);i.order=r+e,b.each(i.selfEdges,function(n){O.addDummyNode(t,\"selfedge\",{width:n.label.width,height:n.label.height,rank:i.rank,order:r+ ++e,e:n.e,label:n.label},\"_se\")}),delete i.selfEdges})})}function m(t){b.each(t.nodes(),function(n){var e=t.node(n);if(\"selfedge\"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,a=r.y,u=e.x-i,o=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*u/3,y:a-o},{x:i+5*u/6,y:a-o},{x:i+u,y:a},{x:i+5*u/6,y:a+o},{x:i+2*u/3,y:a+o}],e.label.x=e.x,e.label.y=e.y}})}function v(t,n){return b.mapValues(b.pick(t,n),Number)}function _(t){var n={};return b.each(t,function(t,e){n[e.toLowerCase()]=t}),n}var b=t(\"./lodash\"),x=t(\"./acyclic\"),w=t(\"./normalize\"),A=t(\"./rank\"),k=t(\"./util\").normalizeRanks,E=t(\"./parent-dummy-chains\"),M=t(\"./util\").removeEmptyRanks,S=t(\"./nesting-graph\"),D=t(\"./add-border-segments\"),C=t(\"./coordinate-system\"),T=t(\"./order\"),F=t(\"./position\"),O=t(\"./util\"),L=t(\"./graphlib\").Graph;n.exports=e;var I=[\"nodesep\",\"edgesep\",\"ranksep\",\"marginx\",\"marginy\"],B={ranksep:50,edgesep:20,nodesep:50,rankdir:\"tb\"},N=[\"acyclicer\",\"ranker\",\"rankdir\",\"align\"],P=[\"width\",\"height\"],R={width:0,height:0},j=[\"minlen\",\"weight\",\"width\",\"height\",\"labeloffset\"],Y={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:\"r\"},U=[\"labelpos\"]},{\"./acyclic\":53,\"./add-border-segments\":54,\"./coordinate-system\":55,\"./graphlib\":58,\"./lodash\":61,\"./nesting-graph\":62,\"./normalize\":63,\"./order\":68,\"./parent-dummy-chains\":73,\"./position\":75,\"./rank\":77,\"./util\":80}],61:[function(t,n){n.exports=t(49)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/lodash.js\":49,lodash:102}],62:[function(t,n){function e(t){var n=s.addDummyNode(t,\"root\",{},\"_root\"),e=i(t),u=o.max(e)-1,c=2*u+1;t.graph().nestingRoot=n,o.each(t.edges(),function(n){t.edge(n).minlen*=c});var l=a(t)+1;o.each(t.children(),function(i){r(t,n,c,l,u,e,i)}),t.graph().nodeRankFactor=c}function r(t,n,e,i,a,u,c){var l=t.children(c);if(!l.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:e}));var h=s.addBorderNode(t,\"_bt\"),f=s.addBorderNode(t,\"_bb\"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,o.each(l,function(o){r(t,n,e,i,a,u,o);var s=t.node(o),l=s.borderTop?s.borderTop:o,d=s.borderBottom?s.borderBottom:o,p=s.borderTop?i:2*i,g=l!==d?1:a-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(n,h,{weight:0,minlen:a+u[c]})}function i(t){function n(r,i){var a=t.children(r);a&&a.length&&o.each(a,function(t){n(t,i+1)}),e[r]=i}var e={};return o.each(t.children(),function(t){n(t,1)}),e}function a(t){return o.reduce(t.edges(),function(n,e){return n+t.edge(e).weight},0)}function u(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,o.each(t.edges(),function(n){var e=t.edge(n);e.nestingEdge&&t.removeEdge(n)})}var o=t(\"./lodash\"),s=t(\"./util\");n.exports={run:e,cleanup:u}},{\"./lodash\":61,\"./util\":80}],63:[function(t,n){\"use strict\";function e(t){t.graph().dummyChains=[],a.each(t.edges(),function(n){r(t,n)})}function r(t,n){var e=n.v,r=t.node(e).rank,i=n.w,a=t.node(i).rank,o=n.name,s=t.edge(n),c=s.labelRank;if(a!==r+1){t.removeEdge(n);var l,h,f;for(f=0,++r;a>r;++f,++r)s.points=[],h={width:0,height:0,edgeLabel:s,edgeObj:n,rank:r},l=u.addDummyNode(t,\"edge\",h,\"_d\"),r===c&&(h.width=s.width,h.height=s.height,h.dummy=\"edge-label\",h.labelpos=s.labelpos),t.setEdge(e,l,{weight:s.weight},o),0===f&&t.graph().dummyChains.push(l),e=l;t.setEdge(e,i,{weight:s.weight},o)}}function i(t){a.each(t.graph().dummyChains,function(n){var e,r=t.node(n),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)e=t.successors(n)[0],t.removeNode(n),i.points.push({x:r.x,y:r.y}),\"edge-label\"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),n=e,r=t.node(n)})}var a=t(\"./lodash\"),u=t(\"./util\");n.exports={run:e,undo:i}},{\"./lodash\":61,\"./util\":80}],64:[function(t,n){function e(t,n,e){var i,a={};r.each(e,function(e){for(var r,u,o=t.parent(e);o;){if(r=t.parent(o),r?(u=a[r],a[r]=o):(u=i,i=o),u&&u!==o)return void n.setEdge(u,o);o=r}})}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":61}],65:[function(t,n){function e(t,n){return r.map(n,function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}})}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":61}],66:[function(t,n){function e(t,n,e){var u=r(t),o=new a({compound:!0}).setGraph({root:u}).setDefaultNodeLabel(function(n){return t.node(n)});return i.each(t.nodes(),function(r){var a=t.node(r),s=t.parent(r);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(o.setNode(r),o.setParent(r,s||u),i.each(t[e](r),function(n){var e=n.v===r?n.w:n.v,a=o.edge(e,r),u=i.isUndefined(a)?0:a.weight;o.setEdge(e,r,{weight:t.edge(n).weight+u})}),i.has(a,\"minRank\")&&o.setNode(r,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),o}function r(t){for(var n;t.hasNode(n=i.uniqueId(\"_root\")););return n}var i=t(\"../lodash\"),a=t(\"../graphlib\").Graph;n.exports=e},{\"../graphlib\":58,\"../lodash\":61}],67:[function(t,n){\"use strict\";function e(t,n){for(var e=0,i=1;i<n.length;++i)e+=r(t,n[i-1],n[i]);return e}function r(t,n,e){for(var r=i.zipObject(e,i.map(e,function(t,n){return n})),a=i.flatten(i.map(n,function(n){return i.chain(t.outEdges(n)).map(function(n){return{pos:r[n.w],weight:t.edge(n).weight}}).sortBy(\"pos\").value()}),!0),u=1;u<e.length;)u<<=1;var o=2*u-1;u-=1;var s=i.map(new Array(o),function(){return 0}),c=0;return i.each(a.forEach(function(t){var n=t.pos+u;s[n]+=t.weight;for(var e=0;n>0;)n%2&&(e+=s[n+1]),n=n-1>>1,s[n]+=t.weight;c+=t.weight*e})),c}var i=t(\"../lodash\");n.exports=e},{\"../lodash\":61}],68:[function(t,n){\"use strict\";function e(t){var n=d.maxRank(t),e=r(t,u.range(1,n+1),\"inEdges\"),c=r(t,u.range(n-1,-1,-1),\"outEdges\"),l=o(t);a(t,l);for(var h,f=Number.POSITIVE_INFINITY,p=0,g=0;4>g;++p,++g){i(p%2?e:c,p%4>=2),l=d.buildLayerMatrix(t);var y=s(t,l);f>y&&(g=0,h=u.cloneDeep(l),f=y)}a(t,h)}function r(t,n,e){return u.map(n,function(n){return l(t,n,e)})}function i(t,n){var e=new f;u.each(t,function(t){var r=t.graph().root,i=c(t,r,e,n);u.each(i.vs,function(n,e){t.node(n).order=e}),h(t,e,i.vs)})}function a(t,n){u.each(n,function(n){u.each(n,function(n,e){t.node(n).order=e})})}var u=t(\"../lodash\"),o=t(\"./init-order\"),s=t(\"./cross-count\"),c=t(\"./sort-subgraph\"),l=t(\"./build-layer-graph\"),h=t(\"./add-subgraph-constraints\"),f=t(\"../graphlib\").Graph,d=t(\"../util\");n.exports=e},{\"../graphlib\":58,\"../lodash\":61,\"../util\":80,\"./add-subgraph-constraints\":64,\"./build-layer-graph\":66,\"./cross-count\":67,\"./init-order\":69,\"./sort-subgraph\":71}],69:[function(t,n){\"use strict\";function e(t){function n(i){if(!r.has(e,i)){e[i]=!0;var a=t.node(i);u[a.rank].push(i),r.each(t.successors(i),n)}}var e={},i=r.filter(t.nodes(),function(n){return!t.children(n).length}),a=r.max(r.map(i,function(n){return t.node(n).rank})),u=r.map(r.range(a+1),function(){return[]}),o=r.sortBy(i,function(n){return t.node(n).rank});return r.each(o,n),u}var r=t(\"../lodash\");n.exports=e},{\"../lodash\":61}],70:[function(t,n){\"use strict\";function e(t,n){var e={};a.each(t,function(t,n){var r=e[t.v]={indegree:0,\"in\":[],out:[],vs:[t.v],i:n};a.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),a.each(n.edges(),function(t){var n=e[t.v],r=e[t.w];a.isUndefined(n)||a.isUndefined(r)||(r.indegree++,n.out.push(e[t.w]))});var i=a.filter(e,function(t){return!t.indegree});return r(i)}function r(t){function n(t){return function(n){n.merged||(a.isUndefined(n.barycenter)||a.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&i(t,n)}}function e(n){return function(e){e[\"in\"].push(n),0===--e.indegree&&t.push(e)}}for(var r=[];t.length;){var u=t.pop();r.push(u),a.each(u[\"in\"].reverse(),n(u)),a.each(u.out,e(u))}return a.chain(r).filter(function(t){return!t.merged}).map(function(t){return a.pick(t,[\"vs\",\"i\",\"barycenter\",\"weight\"])}).value()}function i(t,n){var e=0,r=0;t.weight&&(e+=t.barycenter*t.weight,r+=t.weight),n.weight&&(e+=n.barycenter*n.weight,r+=n.weight),t.vs=n.vs.concat(t.vs),t.barycenter=e/r,t.weight=r,t.i=Math.min(n.i,t.i),n.merged=!0}var a=t(\"../lodash\");n.exports=e},{\"../lodash\":61}],71:[function(t,n){function e(t,n,c,l){var h=t.children(n),f=t.node(n),d=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};d&&(h=a.filter(h,function(t){return t!==d&&t!==p}));var y=u(t,h);a.each(y,function(n){if(t.children(n.v).length){var r=e(t,n.v,c,l);g[n.v]=r,a.has(r,\"barycenter\")&&i(n,r)}});var m=o(y,c);r(m,g);var v=s(m,l);if(d&&(v.vs=a.flatten([d,v.vs,p],!0),t.predecessors(d).length)){var _=t.node(t.predecessors(d)[0]),b=t.node(t.predecessors(p)[0]);a.has(v,\"barycenter\")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+_.order+b.order)/(v.weight+2),v.weight+=2}return v}function r(t,n){a.each(t,function(t){t.vs=a.flatten(t.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}function i(t,n){a.isUndefined(t.barycenter)?(t.barycenter=n.barycenter,t.weight=n.weight):(t.barycenter=(t.barycenter*t.weight+n.barycenter*n.weight)/(t.weight+n.weight),t.weight+=n.weight)}var a=t(\"../lodash\"),u=t(\"./barycenter\"),o=t(\"./resolve-conflicts\"),s=t(\"./sort\");n.exports=e},{\"../lodash\":61,\"./barycenter\":65,\"./resolve-conflicts\":70,\"./sort\":72}],72:[function(t,n){function e(t,n){var e=u.partition(t,function(t){return a.has(t,\"barycenter\")}),o=e.lhs,s=a.sortBy(e.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;o.sort(i(!!n)),f=r(c,s,f),a.each(o,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=r(c,s,f)});var d={vs:a.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}function r(t,n,e){for(var r;n.length&&(r=a.last(n)).i<=e;)n.pop(),t.push(r.vs),e++;return e}function i(t){return function(n,e){return n.barycenter<e.barycenter?-1:n.barycenter>e.barycenter?1:t?e.i-n.i:n.i-e.i}}var a=t(\"../lodash\"),u=t(\"../util\");n.exports=e},{\"../lodash\":61,\"../util\":80}],73:[function(t,n){function e(t){var n=i(t);a.each(t.graph().dummyChains,function(e){for(var i=t.node(e),a=i.edgeObj,u=r(t,n,a.v,a.w),o=u.path,s=u.lca,c=0,l=o[c],h=!0;e!==a.w;){if(i=t.node(e),h){for(;(l=o[c])!==s&&t.node(l).maxRank<i.rank;)c++;l===s&&(h=!1)}if(!h){for(;c<o.length-1&&t.node(l=o[c+1]).minRank<=i.rank;)c++;l=o[c]}t.setParent(e,l),e=t.successors(e)[0]}})}function r(t,n,e,r){var i,a,u=[],o=[],s=Math.min(n[e].low,n[r].low),c=Math.max(n[e].lim,n[r].lim);i=e;do i=t.parent(i),u.push(i);while(i&&(n[i].low>s||c>n[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)o.push(i);return{path:u.concat(o.reverse()),lca:a}}function i(t){function n(i){var u=r;a.each(t.children(i),n),e[i]={low:u,lim:r++}}var e={},r=0;return a.each(t.children(),n),e}var a=t(\"./lodash\");n.exports=e},{\"./lodash\":61}],74:[function(t,n){\"use strict\";function e(t,n){function e(n,e){var u=0,o=0,s=n.length,c=y.last(e);return y.each(e,function(n,l){var h=i(t,n),f=h?t.node(h).order:s;(h||n===c)&&(y.each(e.slice(o,l+1),function(n){y.each(t.predecessors(n),function(e){var i=t.node(e),o=i.order;!(u>o||o>f)||i.dummy&&t.node(n).dummy||a(r,e,n)})}),o=l+1,u=f)}),e}var r={};return y.reduce(n,e),r}function r(t,n){function e(n,e,r,u,o){var s;y.each(y.range(e,r),function(e){s=n[e],t.node(s).dummy&&y.each(t.predecessors(s),function(n){var e=t.node(n);e.dummy&&(e.order<u||e.order>o)&&a(i,n,s)})})}function r(n,r){var i,a=-1,u=0;return y.each(r,function(o,s){if(\"border\"===t.node(o).dummy){var c=t.predecessors(o);c.length&&(i=t.node(c[0]).order,e(r,u,s,a,i),u=s,a=i)}e(r,u,r.length,i,n.length)}),r}var i={};return y.reduce(n,r),i}function i(t,n){return t.node(n).dummy?y.find(t.predecessors(n),function(n){return t.node(n).dummy}):void 0}function a(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function u(t,n,e){if(n>e){var r=n;n=e,e=r}return y.has(t[n],e)}function o(t,n,e,r){var i={},a={},o={};return y.each(n,function(t){y.each(t,function(t,n){i[t]=t,a[t]=t,o[t]=n})}),y.each(n,function(t){var n=-1;y.each(t,function(t){var s=r(t);if(s.length){s=y.sortBy(s,function(t){return o[t]});for(var c=(s.length-1)/2,l=Math.floor(c),h=Math.ceil(c);h>=l;++l){var f=s[l];a[t]===t&&n<o[f]&&!u(e,t,f)&&(a[f]=t,a[t]=i[t]=i[f],n=o[f])}}})}),{root:i,align:a}}function s(t,n,e,r,i){function a(t){y.has(l,t)||(l[t]=!0,o[t]=y.reduce(s.inEdges(t),function(t,n){return a(n.v),Math.max(t,o[n.v]+s.edge(n))},0))}function u(n){if(2!==l[n]){l[n]++;var e=t.node(n),r=y.reduce(s.outEdges(n),function(t,n){return u(n.w),Math.min(t,o[n.w]-s.edge(n))},Number.POSITIVE_INFINITY);r!==Number.POSITIVE_INFINITY&&e.borderType!==h&&(o[n]=Math.max(o[n],r))}}var o={},s=c(t,n,e,i),l={};y.each(s.nodes(),a);var h=i?\"borderLeft\":\"borderRight\";return y.each(s.nodes(),u),y.each(r,function(t){o[t]=o[e[t]]}),o}function c(t,n,e,r){var i=new m,a=t.graph(),u=p(a.nodesep,a.edgesep,r);return y.each(n,function(n){var r;y.each(n,function(n){var a=e[n];if(i.setNode(a),r){var o=e[r],s=i.edge(o,a);i.setEdge(o,a,Math.max(u(t,n,r),s||0))}r=n})}),i}function l(t,n){return y.min(n,function(n){var e=y.min(n,function(n,e){return n-g(t,e)/2}),r=y.max(n,function(n,e){return n+g(t,e)/2});return r-e})}function h(t,n){var e=y.min(n),r=y.max(n);y.each([\"u\",\"d\"],function(i){y.each([\"l\",\"r\"],function(a){var u,o=i+a,s=t[o];s!==n&&(u=\"l\"===a?e-y.min(s):r-y.max(s),u&&(t[o]=y.mapValues(s,function(t){return t+u})))})})}function f(t,n){return y.mapValues(t.ul,function(e,r){if(n)return t[n.toLowerCase()][r];var i=y.sortBy(y.pluck(t,r));return(i[1]+i[2])/2})}function d(t){var n,i=v.buildLayerMatrix(t),a=y.merge(e(t,i),r(t,i)),u={};y.each([\"u\",\"d\"],function(e){n=\"u\"===e?i:y.values(i).reverse(),y.each([\"l\",\"r\"],function(r){\"r\"===r&&(n=y.map(n,function(t){return y.values(t).reverse()}));var i=y.bind(\"u\"===e?t.predecessors:t.successors,t),c=o(t,n,a,i),l=s(t,n,c.root,c.align,\"r\"===r);\"r\"===r&&(l=y.mapValues(l,function(t){return-t})),u[e+r]=l})});var c=l(t,u);return h(u,c),f(u,t.graph().align)}function p(t,n,e){return function(r,i,a){var u,o=r.node(i),s=r.node(a),c=0;if(c+=o.width/2,y.has(o,\"labelpos\"))switch(o.labelpos.toLowerCase()){\ncase\"l\":u=-o.width/2;break;case\"r\":u=o.width/2}if(u&&(c+=e?u:-u),u=0,c+=(o.dummy?n:t)/2,c+=(s.dummy?n:t)/2,c+=s.width/2,y.has(s,\"labelpos\"))switch(s.labelpos.toLowerCase()){case\"l\":u=s.width/2;break;case\"r\":u=-s.width/2}return u&&(c+=e?u:-u),u=0,c}}function g(t,n){return t.node(n).width}var y=t(\"../lodash\"),m=t(\"../graphlib\").Graph,v=t(\"../util\");n.exports={positionX:d,findType1Conflicts:e,findType2Conflicts:r,addConflict:a,hasConflict:u,verticalAlignment:o,horizontalCompaction:s,alignCoordinates:h,findSmallestWidthAlignment:l,balance:f}},{\"../graphlib\":58,\"../lodash\":61,\"../util\":80}],75:[function(t,n){\"use strict\";function e(t){t=a.asNonCompoundGraph(t),r(t),i.each(u(t),function(n,e){t.node(e).x=n})}function r(t){var n=a.buildLayerMatrix(t),e=t.graph().ranksep,r=0;i.each(n,function(n){var a=i.max(i.map(n,function(n){return t.node(n).height}));i.each(n,function(n){t.node(n).y=r+a/2}),r+=a+e})}var i=t(\"../lodash\"),a=t(\"../util\"),u=t(\"./bk\").positionX;n.exports=e},{\"../lodash\":61,\"../util\":80,\"./bk\":74}],76:[function(t,n){\"use strict\";function e(t){var n=new o({directed:!1}),e=t.nodes()[0],u=t.nodeCount();n.setNode(e,{});for(var c,l;r(n,t)<u;)c=i(n,t),l=n.hasNode(c.v)?s(t,c):-s(t,c),a(n,t,l);return n}function r(t,n){function e(r){u.each(n.nodeEdges(r),function(i){var a=i.v,u=r===a?i.w:a;t.hasNode(u)||s(n,i)||(t.setNode(u,{}),t.setEdge(r,u,{}),e(u))})}return u.each(t.nodes(),e),t.nodeCount()}function i(t,n){return u.min(n.edges(),function(e){return t.hasNode(e.v)!==t.hasNode(e.w)?s(n,e):void 0})}function a(t,n,e){u.each(t.nodes(),function(t){n.node(t).rank+=e})}var u=t(\"../lodash\"),o=t(\"../graphlib\").Graph,s=t(\"./util\").slack;n.exports=e},{\"../graphlib\":58,\"../lodash\":61,\"./util\":79}],77:[function(t,n){\"use strict\";function e(t){switch(t.graph().ranker){case\"network-simplex\":i(t);break;case\"tight-tree\":r(t);break;case\"longest-path\":c(t);break;default:i(t)}}function r(t){u(t),o(t)}function i(t){s(t)}var a=t(\"./util\"),u=a.longestPath,o=t(\"./feasible-tree\"),s=t(\"./network-simplex\");n.exports=e;var c=u},{\"./feasible-tree\":76,\"./network-simplex\":78,\"./util\":79}],78:[function(t,n){\"use strict\";function e(t){t=b(t),m(t);var n=g(t);u(n),r(n,t);for(var e,i;e=s(n);)i=c(n,t,e),l(n,t,e,i)}function r(t,n){var e=_(t,t.nodes());e=e.slice(0,e.length-1),p.each(e,function(e){i(t,n,e)})}function i(t,n,e){var r=t.node(e),i=r.parent;t.edge(e,i).cutvalue=a(t,n,e)}function a(t,n,e){var r=t.node(e),i=r.parent,a=!0,u=n.edge(e,i),o=0;return u||(a=!1,u=n.edge(i,e)),o=u.weight,p.each(n.nodeEdges(e),function(r){var u=r.v===e,s=u?r.w:r.v;if(s!==i){var c=u===a,l=n.edge(r).weight;if(o+=c?l:-l,f(t,e,s)){var h=t.edge(e,s).cutvalue;o+=c?-h:h}}}),o}function u(t,n){arguments.length<2&&(n=t.nodes()[0]),o(t,{},1,n)}function o(t,n,e,r,i){var a=e,u=t.node(r);return n[r]=!0,p.each(t.neighbors(r),function(i){p.has(n,i)||(e=o(t,n,e,i,r))}),u.low=a,u.lim=e++,i?u.parent=i:delete u.parent,e}function s(t){return p.find(t.edges(),function(n){return t.edge(n).cutvalue<0})}function c(t,n,e){var r=e.v,i=e.w;n.hasEdge(r,i)||(r=e.w,i=e.v);var a=t.node(r),u=t.node(i),o=a,s=!1;a.lim>u.lim&&(o=u,s=!0);var c=p.filter(n.edges(),function(n){return s===d(t,t.node(n.v),o)&&s!==d(t,t.node(n.w),o)});return p.min(c,function(t){return y(n,t)})}function l(t,n,e,i){var a=e.v,o=e.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),u(t),r(t,n),h(t,n)}function h(t,n){var e=p.find(t.nodes(),function(t){return!n.node(t).parent}),r=v(t,e);r=r.slice(1),p.each(r,function(e){var r=t.node(e).parent,i=n.edge(e,r),a=!1;i||(i=n.edge(r,e),a=!0),n.node(e).rank=n.node(r).rank+(a?i.minlen:-i.minlen)})}function f(t,n,e){return t.hasEdge(n,e)}function d(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}var p=t(\"../lodash\"),g=t(\"./feasible-tree\"),y=t(\"./util\").slack,m=t(\"./util\").longestPath,v=t(\"../graphlib\").alg.preorder,_=t(\"../graphlib\").alg.postorder,b=t(\"../util\").simplify;n.exports=e,e.initLowLimValues=u,e.initCutValues=r,e.calcCutValue=a,e.leaveEdge=s,e.enterEdge=c,e.exchangeEdges=l},{\"../graphlib\":58,\"../lodash\":61,\"../util\":80,\"./feasible-tree\":76,\"./util\":79}],79:[function(t,n){\"use strict\";function e(t){function n(r){var a=t.node(r);if(i.has(e,r))return a.rank;e[r]=!0;var u=i.min(i.map(t.outEdges(r),function(e){return n(e.w)-t.edge(e).minlen}));return u===Number.POSITIVE_INFINITY&&(u=0),a.rank=u}var e={};i.each(t.sources(),n)}function r(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}var i=t(\"../lodash\");n.exports={longestPath:e,slack:r}},{\"../lodash\":61}],80:[function(t,n){\"use strict\";function e(t,n,e,r){var i;do i=y.uniqueId(r);while(t.hasNode(i));return e.dummy=n,t.setNode(i,e),i}function r(t){var n=(new m).setGraph(t.graph());return y.each(t.nodes(),function(e){n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),n}function i(t){var n=new m({multigraph:t.isMultigraph()}).setGraph(t.graph());return y.each(t.nodes(),function(e){t.children(e).length||n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){n.setEdge(e,t.edge(e))}),n}function a(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.outEdges(n),function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function u(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.inEdges(n),function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function o(t,n){var e=t.x,r=t.y,i=n.x-e,a=n.y-r,u=t.width/2,o=t.height/2;if(!i&&!a)throw new Error(\"Not possible to find intersection inside of the rectangle\");var s,c;return Math.abs(a)*u>Math.abs(i)*o?(0>a&&(o=-o),s=o*i/a,c=o):(0>i&&(u=-u),s=u,c=u*a/i),{x:e+s,y:r+c}}function s(t){var n=y.map(y.range(f(t)+1),function(){return[]});return y.each(t.nodes(),function(e){var r=t.node(e),i=r.rank;y.isUndefined(i)||(n[i][r.order]=e)}),n}function c(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank}));y.each(t.nodes(),function(e){var r=t.node(e);y.has(r,\"rank\")&&(r.rank-=n)})}function l(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank})),e=[];y.each(t.nodes(),function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)});var r=0,i=t.graph().nodeRankFactor;y.each(e,function(n,e){y.isUndefined(n)&&e%i!==0?--r:r&&y.each(n,function(n){t.node(n).rank+=r})})}function h(t,n,r,i){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=i),e(t,\"border\",a,n)}function f(t){return y.max(y.map(t.nodes(),function(n){var e=t.node(n).rank;return y.isUndefined(e)?void 0:e}))}function d(t,n){var e={lhs:[],rhs:[]};return y.each(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e}function p(t,n){var e=y.now();try{return n()}finally{console.log(t+\" time: \"+(y.now()-e)+\"ms\")}}function g(t,n){return n()}var y=t(\"./lodash\"),m=t(\"./graphlib\").Graph;n.exports={addDummyNode:e,simplify:r,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:u,intersectRect:o,buildLayerMatrix:s,normalizeRanks:c,removeEmptyRanks:l,addBorderNode:h,maxRank:f,partition:d,time:p,notime:g}},{\"./graphlib\":58,\"./lodash\":61}],81:[function(t,n){n.exports=\"0.7.4\"},{}],82:[function(t,n){n.exports=t(31)},{\"./lib\":98,\"./lib/alg\":89,\"./lib/json\":99,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/index.js\":31}],83:[function(t,n){n.exports=t(32)},{\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/components.js\":32}],84:[function(t,n){n.exports=t(33)},{\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/dfs.js\":33}],85:[function(t,n){n.exports=t(34)},{\"../lodash\":100,\"./dijkstra\":86,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/dijkstra-all.js\":34}],86:[function(t,n){n.exports=t(35)},{\"../data/priority-queue\":96,\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/dijkstra.js\":35}],87:[function(t,n){n.exports=t(36)},{\"../lodash\":100,\"./tarjan\":94,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/find-cycles.js\":36}],88:[function(t,n){n.exports=t(37)},{\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/floyd-warshall.js\":37}],89:[function(t,n){n.exports=t(38)},{\"./components\":83,\"./dijkstra\":86,\"./dijkstra-all\":85,\"./find-cycles\":87,\"./floyd-warshall\":88,\"./is-acyclic\":90,\"./postorder\":91,\"./preorder\":92,\"./prim\":93,\"./tarjan\":94,\"./topsort\":95,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/index.js\":38}],90:[function(t,n){n.exports=t(39)},{\"./topsort\":95,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/is-acyclic.js\":39}],91:[function(t,n){n.exports=t(40)},{\"./dfs\":84,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/postorder.js\":40}],92:[function(t,n){n.exports=t(41)},{\"./dfs\":84,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/preorder.js\":41}],93:[function(t,n){n.exports=t(42)},{\"../data/priority-queue\":96,\"../graph\":97,\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/prim.js\":42}],94:[function(t,n){n.exports=t(43)},{\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/tarjan.js\":43}],95:[function(t,n){n.exports=t(44)},{\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/alg/topsort.js\":44}],96:[function(t,n){n.exports=t(45)},{\"../lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/data/priority-queue.js\":45}],97:[function(t,n){n.exports=t(46)},{\"./lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/graph.js\":46}],98:[function(t,n){n.exports=t(47)},{\"./graph\":97,\"./version\":101,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/index.js\":47}],99:[function(t,n){n.exports=t(48)},{\"./graph\":97,\"./lodash\":100,\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/json.js\":48}],100:[function(t,n){n.exports=t(49)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/lodash.js\":49,lodash:102}],101:[function(t,n){n.exports=t(50)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/graphlib/lib/version.js\":50}],102:[function(t,n){n.exports=t(51)},{\"/Users/knut/source/mermaid/node_modules/dagre-d3/node_modules/lodash/index.js\":51}],103:[function(t,n,e){(function(t){(function(){function r(t,n){return t.set(n[0],n[1]),t}function i(t,n){return t.add(n),t}function a(t,n,e){var r=e.length;switch(r){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function u(t,n,e,r){for(var i=-1,a=t?t.length:0;++i<a;){var u=t[i];n(r,u,e(u),t)}return r}function o(t,n){for(var e=-1,r=t?t.length:0;++e<r&&n(t[e],e,t)!==!1;);return t}function s(t,n){for(var e=t?t.length:0;e--&&n(t[e],e,t)!==!1;);return t}function c(t,n){for(var e=-1,r=t?t.length:0;++e<r;)if(!n(t[e],e,t))return!1;return!0}function l(t,n){for(var e=-1,r=t?t.length:0,i=0,a=[];++e<r;){var u=t[e];n(u,e,t)&&(a[i++]=u)}return a}function h(t,n){var e=t?t.length:0;return!!e&&b(t,n,0)>-1}function f(t,n,e){for(var r=-1,i=t?t.length:0;++r<i;)if(e(n,t[r]))return!0;return!1}function d(t,n){for(var e=-1,r=t?t.length:0,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function p(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function g(t,n,e,r){var i=-1,a=t?t.length:0;for(r&&a&&(e=t[++i]);++i<a;)e=n(e,t[i],i,t);return e}function y(t,n,e,r){var i=t?t.length:0;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function m(t,n){for(var e=-1,r=t?t.length:0;++e<r;)if(n(t[e],e,t))return!0;return!1}function v(t,n,e){var r;return e(t,function(t,e,i){return n(t,e,i)?(r=e,!1):void 0}),r}function _(t,n,e,r){for(var i=t.length,a=e+(r?1:-1);r?a--:++a<i;)if(n(t[a],a,t))return a;return-1}function b(t,n,e){if(n!==n)return j(t,e);for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}function x(t,n,e,r){for(var i=e-1,a=t.length;++i<a;)if(r(t[i],n))return i;return-1}function w(t,n){var e=t?t.length:0;return e?E(t,n)/e:kt}function A(t,n,e,r,i){return i(t,function(t,i,a){e=r?(r=!1,t):n(e,t,i,a)}),e}function k(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}function E(t,n){for(var e,r=-1,i=t.length;++r<i;){var a=n(t[r]);a!==X&&(e=e===X?a:e+a)}return e}function M(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function S(t,n){return d(n,function(n){return[n,t[n]]})}function D(t){return function(n){return t(n)}}function C(t,n){return d(n,function(n){return t[n]})}function T(t,n){return t.has(n)}function F(t,n){for(var e=-1,r=t.length;++e<r&&b(n,t[e],0)>-1;);return e}function O(t,n){for(var e=t.length;e--&&b(n,t[e],0)>-1;);return e}function L(t){return t&&t.Object===Object?t:null}function I(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&r++;return r}function B(t){return Se[t]}function N(t){return De[t]}function P(t){return\"\\\\\"+Te[t]}function R(t,n){return null==t?X:t[n]}function j(t,n,e){for(var r=t.length,i=n+(e?1:-1);e?i--:++i<r;){var a=t[i];if(a!==a)return i}return-1}function Y(t){var n=!1;if(null!=t&&\"function\"!=typeof t.toString)try{n=!!(t+\"\")}catch(e){}return n}function U(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}function $(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function W(t,n){for(var e=-1,r=t.length,i=0,a=[];++e<r;){var u=t[e];(u===n||u===nt)&&(t[e]=nt,a[i++]=e)}return a}function z(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=t}),e}function q(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=[t,t]}),e}function G(t){if(!t||!xe.test(t))return t.length;for(var n=_e.lastIndex=0;_e.test(t);)n++;return n}function H(t){return t.match(_e)}function V(t){return Ce[t]}function Z(t){function n(t){if(vo(t)&&!yh(t)&&!(t instanceof In)){if(t instanceof L)return t;if(Cc.call(t,\"__wrapped__\"))return ha(t)}return new L(t)}function e(){}function L(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=X}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Et,this.__views__=[]}function Bn(){var t=new In(this.__wrapped__);return t.__actions__=ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ei(this.__views__),t}function Nn(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Pn(){var t=this.__wrapped__.value(),n=this.__dir__,e=yh(t),r=0>n,i=e?t.length:0,a=$i(0,i,this.__views__),u=a.start,o=a.end,s=o-u,c=r?o:u-1,l=this.__iteratees__,h=l.length,f=0,d=Jc(s,this.__takeCount__);if(!e||Q>i||i==s&&d==s)return Pr(t,this.__actions__);var p=[];t:for(;s--&&d>f;){c+=n;for(var g=-1,y=t[c];++g<h;){var m=l[g],v=m.iteratee,_=m.type,b=v(y);if(_==_t)y=b;else if(!b){if(_==vt)continue t;break t}}p[f++]=y}return p}function Rn(t){var n=-1,e=t?t.length:0;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function jn(){this.__data__=ll?ll(null):{}}function Yn(t){return this.has(t)&&delete this.__data__[t]}function Un(t){var n=this.__data__;if(ll){var e=n[t];return e===tt?X:e}return Cc.call(n,t)?n[t]:X}function $n(t){var n=this.__data__;return ll?n[t]!==X:Cc.call(n,t)}function Wn(t,n){var e=this.__data__;return e[t]=ll&&n===X?tt:n,this}function zn(t){var n=-1,e=t?t.length:0;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function qn(){this.__data__=[]}function Gn(t){var n=this.__data__,e=pe(n,t);if(0>e)return!1;var r=n.length-1;return e==r?n.pop():zc.call(n,e,1),!0}function Hn(t){var n=this.__data__,e=pe(n,t);return 0>e?X:n[e][1]}function Vn(t){return pe(this.__data__,t)>-1}function Zn(t,n){var e=this.__data__,r=pe(e,t);return 0>r?e.push([t,n]):e[r][1]=n,this}function Xn(t){var n=-1,e=t?t.length:0;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Kn(){this.__data__={hash:new Rn,map:new(ul||zn),string:new Rn}}function Qn(t){return Ni(this,t)[\"delete\"](t)}function Jn(t){return Ni(this,t).get(t)}function te(t){return Ni(this,t).has(t)}function ne(t,n){return Ni(this,t).set(t,n),this}function ee(t){var n=-1,e=t?t.length:0;for(this.__data__=new Xn;++n<e;)this.add(t[n])}function re(t){return this.__data__.set(t,tt),this}function ie(t){return this.__data__.has(t)}function ae(t){this.__data__=new zn(t)}function ue(){this.__data__=new zn}function oe(t){return this.__data__[\"delete\"](t)}function se(t){return this.__data__.get(t)}function ce(t){return this.__data__.has(t)}function le(t,n){var e=this.__data__;return e instanceof zn&&e.__data__.length==Q&&(e=this.__data__=new Xn(e.__data__)),e.set(t,n),this}function he(t,n,e,r){return t===X||to(t,kc[e])&&!Cc.call(r,e)?n:t}function fe(t,n,e){(e!==X&&!to(t[n],e)||\"number\"==typeof n&&e===X&&!(n in t))&&(t[n]=e)}function de(t,n,e){var r=t[n];Cc.call(t,n)&&to(r,e)&&(e!==X||n in t)||(t[n]=e)}function pe(t,n){for(var e=t.length;e--;)if(to(t[e][0],n))return e;return-1}function ge(t,n,e,r){return wl(t,function(t,i,a){n(r,t,e(t),a)}),r}function ye(t,n){return t&&ri(n,rs(n),t)}function _e(t,n){for(var e=-1,r=null==t,i=n.length,a=Array(i);++e<i;)a[e]=r?X:ts(t,n[e]);return a}function Se(t,n,e){return t===t&&(e!==X&&(t=e>=t?t:e),n!==X&&(t=t>=n?t:n)),t}function De(t,n,e,r,i,a,u){var s;if(r&&(s=a?r(t,i,a,u):r(t)),s!==X)return s;if(!mo(t))return t;var c=yh(t);if(c){if(s=zi(t),!n)return ei(t,s)}else{var l=Ui(t),h=l==Lt||l==It;if(mh(t))return zr(t,n);if(l==Pt||l==Dt||h&&!a){if(Y(t))return a?t:{};if(s=qi(h?{}:t),!n)return ii(t,ye(s,t))}else{if(!Me[l])return a?t:{};s=Gi(t,l,De,n)}}u||(u=new ae);var f=u.get(t);if(f)return f;if(u.set(t,s),!c)var d=e?Fi(t):rs(t);return o(d||t,function(i,a){d&&(a=i,i=t[a]),de(s,a,De(i,n,e,r,a,t,u))}),s}function Ce(t){var n=rs(t),e=n.length;return function(r){if(null==r)return!e;for(var i=e;i--;){var a=n[i],u=t[a],o=r[a];if(o===X&&!(a in Object(r))||!u(o))return!1}return!0}}function Te(t){return mo(t)?$c(t):{}}function Le(t,n,e){if(\"function\"!=typeof t)throw new wc(J);return qc(function(){t.apply(X,e)},n)}function Ie(t,n,e,r){var i=-1,a=h,u=!0,o=t.length,s=[],c=n.length;if(!o)return s;e&&(n=d(n,D(e))),r?(a=f,u=!1):n.length>=Q&&(a=T,u=!1,n=new ee(n));t:for(;++i<o;){var l=t[i],p=e?e(l):l;if(l=r||0!==l?l:0,u&&p===p){for(var g=c;g--;)if(n[g]===p)continue t;s.push(l)}else a(n,p,r)||s.push(l)}return s}function Ne(t,n){var e=!0;return wl(t,function(t,r,i){return e=!!n(t,r,i)}),e}function Pe(t,n,e){for(var r=-1,i=t.length;++r<i;){var a=t[r],u=n(a);if(null!=u&&(o===X?u===u&&!Oo(u):e(u,o)))var o=u,s=a}return s}function Re(t,n,e,r){var i=t.length;for(e=jo(e),0>e&&(e=-e>i?0:i+e),r=r===X||r>i?i:jo(r),0>r&&(r+=i),r=e>r?0:Yo(r);r>e;)t[e++]=n;return t}function Ue(t,n){var e=[];return wl(t,function(t,r,i){n(t,r,i)&&e.push(t)}),e}function $e(t,n,e,r,i){var a=-1,u=t.length;for(e||(e=Vi),i||(i=[]);++a<u;){var o=t[a];n>0&&e(o)?n>1?$e(o,n-1,e,r,i):p(i,o):r||(i[i.length]=o)}return i}function We(t,n){return t&&kl(t,n,rs)}function ze(t,n){return t&&El(t,n,rs)}function qe(t,n){return l(n,function(n){return po(t[n])})}function Ge(t,n){n=Qi(n,t)?[n]:$r(n);for(var e=0,r=n.length;null!=t&&r>e;)t=t[ca(n[e++])];return e&&e==r?t:X}function He(t,n,e){var r=n(t);return yh(t)?r:p(r,e(t))}function Ve(t,n){return t>n}function Ze(t,n){return null!=t&&(Cc.call(t,n)||\"object\"==typeof t&&n in t&&null===ji(t))}function Xe(t,n){return null!=t&&n in Object(t)}function Ke(t,n,e){return t>=Jc(n,e)&&t<Qc(n,e)}function Qe(t,n,e){for(var r=e?f:h,i=t[0].length,a=t.length,u=a,o=Array(a),s=1/0,c=[];u--;){var l=t[u];u&&n&&(l=d(l,D(n))),s=Jc(l.length,s),o[u]=!e&&(n||i>=120&&l.length>=120)?new ee(u&&l):X}l=t[0];var p=-1,g=o[0];t:for(;++p<i&&c.length<s;){var y=l[p],m=n?n(y):y;if(y=e||0!==y?y:0,!(g?T(g,m):r(c,m,e))){for(u=a;--u;){var v=o[u];if(!(v?T(v,m):r(t[u],m,e)))continue t}g&&g.push(m),c.push(y)}}return c}function Je(t,n,e,r){return We(t,function(t,i,a){n(r,e(t),i,a)}),r}function tr(t,n,e){Qi(n,t)||(n=$r(n),t=oa(t,n),n=Ta(n));var r=null==t?t:t[ca(n)];return null==r?X:a(r,t,e)}function nr(t,n,e,r,i){return t===n?!0:null==t||null==n||!mo(t)&&!vo(n)?t!==t&&n!==n:er(t,n,nr,e,r,i)}function er(t,n,e,r,i,a){var u=yh(t),o=yh(n),s=Ct,c=Ct;u||(s=Ui(t),s=s==Dt?Pt:s),o||(c=Ui(n),c=c==Dt?Pt:c);var l=s==Pt&&!Y(t),h=c==Pt&&!Y(n),f=s==c;if(f&&!l)return a||(a=new ae),u||Lo(t)?Di(t,n,e,r,i,a):Ci(t,n,s,e,r,i,a);if(!(i&dt)){var d=l&&Cc.call(t,\"__wrapped__\"),p=h&&Cc.call(n,\"__wrapped__\");if(d||p){var g=d?t.value():t,y=p?n.value():n;return a||(a=new ae),e(g,y,r,i,a)}}return f?(a||(a=new ae),Ti(t,n,e,r,i,a)):!1}function rr(t,n,e,r){var i=e.length,a=i,u=!r;if(null==t)return!a;for(t=Object(t);i--;){var o=e[i];if(u&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<a;){o=e[i];var s=o[0],c=t[s],l=o[1];if(u&&o[2]){if(c===X&&!(s in t))return!1}else{var h=new ae;if(r)var f=r(c,l,s,t,n,h);if(!(f===X?nr(l,c,r,ft|dt,h):f))return!1}}return!0}function ir(t){if(!mo(t)||na(t))return!1;var n=po(t)||Y(t)?Ic:Dn;return n.test(la(t))}function ar(t){return\"function\"==typeof t?t:null==t?Gs:\"object\"==typeof t?yh(t)?hr(t[0],t[1]):lr(t):tc(t)}function ur(t){return Kc(Object(t))}function or(t){t=null==t?t:Object(t);var n=[];for(var e in t)n.push(e);return n}function sr(t,n){return n>t}function cr(t,n){var e=-1,r=ro(t)?Array(t.length):[];return wl(t,function(t,i,a){r[++e]=n(t,i,a)}),r}function lr(t){var n=Pi(t);return 1==n.length&&n[0][2]?ia(n[0][0],n[0][1]):function(e){return e===t||rr(e,t,n)}}function hr(t,n){return Qi(t)&&ra(n)?ia(ca(t),n):function(e){var r=ts(e,t);return r===X&&r===n?es(e,t):nr(n,r,X,ft|dt)}}function fr(t,n,e,r,i){if(t!==n){if(!yh(n)&&!Lo(n))var a=is(n);o(a||n,function(u,o){if(a&&(o=u,u=n[o]),mo(u))i||(i=new ae),dr(t,n,o,e,fr,r,i);else{var s=r?r(t[o],u,o+\"\",t,n,i):X;s===X&&(s=u),fe(t,o,s)}})}}function dr(t,n,e,r,i,a,u){var o=t[e],s=n[e],c=u.get(s);if(c)return void fe(t,e,c);var l=a?a(o,s,e+\"\",t,n,u):X,h=l===X;h&&(l=s,yh(s)||Lo(s)?yh(o)?l=o:io(o)?l=ei(o):(h=!1,l=De(s,!0)):So(s)||no(s)?no(o)?l=$o(o):!mo(o)||r&&po(o)?(h=!1,l=De(s,!0)):l=o:h=!1),u.set(s,l),h&&i(l,s,r,a,u),u[\"delete\"](s),fe(t,e,l)}function pr(t,n){var e=t.length;if(e)return n+=0>n?e:0,Xi(n,e)?t[n]:X}function gr(t,n,e){var r=-1;n=d(n.length?n:[Gs],D(Bi()));var i=cr(t,function(t){var e=d(n,function(n){return n(t)});return{criteria:e,index:++r,value:t}});return k(i,function(t,n){return Jr(t,n,e)})}function yr(t,n){return t=Object(t),g(n,function(n,e){return e in t&&(n[e]=t[e]),n},{})}function mr(t,n){for(var e=-1,r=Oi(t),i=r.length,a={};++e<i;){var u=r[e],o=t[u];n(o,u)&&(a[u]=o)}return a}function vr(t){return function(n){return null==n?X:n[t]}}function _r(t){return function(n){return Ge(n,t)}}function br(t,n,e,r){var i=r?x:b,a=-1,u=n.length,o=t;for(t===n&&(n=ei(n)),e&&(o=d(t,D(e)));++a<u;)for(var s=0,c=n[a],l=e?e(c):c;(s=i(o,l,s,r))>-1;)o!==t&&zc.call(o,s,1),zc.call(t,s,1);return t}function xr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==a){var a=i;if(Xi(i))zc.call(t,i,1);else if(Qi(i,t))delete t[ca(i)];else{var u=$r(i),o=oa(t,u);null!=o&&delete o[ca(Ta(u))]}}}return t}function wr(t,n){return t+Hc(nl()*(n-t+1))}function Ar(t,n,e,r){for(var i=-1,a=Qc(Gc((n-t)/(e||1)),0),u=Array(a);a--;)u[r?a:++i]=t,t+=e;return u}function kr(t,n){var e=\"\";if(!t||1>n||n>wt)return e;do n%2&&(e+=t),n=Hc(n/2),n&&(t+=t);while(n);return e}function Er(t,n,e,r){n=Qi(n,t)?[n]:$r(n);for(var i=-1,a=n.length,u=a-1,o=t;null!=o&&++i<a;){var s=ca(n[i]);if(mo(o)){var c=e;if(i!=u){var l=o[s];c=r?r(l,s,o):X,c===X&&(c=null==l?Xi(n[i+1])?[]:{}:l)}de(o,s,c)}o=o[s]}return t}function Mr(t,n,e){var r=-1,i=t.length;0>n&&(n=-n>i?0:i+n),e=e>i?i:e,0>e&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var a=Array(i);++r<i;)a[r]=t[r+n];return a}function Sr(t,n){var e;return wl(t,function(t,r,i){return e=n(t,r,i),!e}),!!e}function Dr(t,n,e){var r=0,i=t?t.length:r;if(\"number\"==typeof n&&n===n&&St>=i){for(;i>r;){var a=r+i>>>1,u=t[a];null!==u&&!Oo(u)&&(e?n>=u:n>u)?r=a+1:i=a}return i}return Cr(t,n,Gs,e)}function Cr(t,n,e,r){n=e(n);for(var i=0,a=t?t.length:0,u=n!==n,o=null===n,s=Oo(n),c=n===X;a>i;){var l=Hc((i+a)/2),h=e(t[l]),f=h!==X,d=null===h,p=h===h,g=Oo(h);if(u)var y=r||p;else y=c?p&&(r||f):o?p&&f&&(r||!d):s?p&&f&&!d&&(r||!g):d||g?!1:r?n>=h:n>h;y?i=l+1:a=l}return Jc(a,Mt)}function Tr(t,n){for(var e=-1,r=t.length,i=0,a=[];++e<r;){var u=t[e],o=n?n(u):u;if(!e||!to(o,s)){var s=o;a[i++]=0===u?0:u}}return a}function Fr(t){return\"number\"==typeof t?t:Oo(t)?kt:+t}function Or(t){if(\"string\"==typeof t)return t;if(Oo(t))return xl?xl.call(t):\"\";var n=t+\"\";return\"0\"==n&&1/t==-xt?\"-0\":n}function Lr(t,n,e){var r=-1,i=h,a=t.length,u=!0,o=[],s=o;if(e)u=!1,i=f;else if(a>=Q){var c=n?null:Sl(t);if(c)return z(c);u=!1,i=T,s=new ee}else s=n?[]:o;t:for(;++r<a;){var l=t[r],d=n?n(l):l;if(l=e||0!==l?l:0,u&&d===d){for(var p=s.length;p--;)if(s[p]===d)continue t;n&&s.push(d),o.push(l)}else i(s,d,e)||(s!==o&&s.push(d),o.push(l))}return o}function Ir(t,n){n=Qi(n,t)?[n]:$r(n),t=oa(t,n);var e=ca(Ta(n));return!(null!=t&&Ze(t,e))||delete t[e]}function Br(t,n,e,r){return Er(t,n,e(Ge(t,n)),r)}function Nr(t,n,e,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&n(t[a],a,t););return e?Mr(t,r?0:a,r?a+1:i):Mr(t,r?a+1:0,r?i:a)}function Pr(t,n){var e=t;return e instanceof In&&(e=e.value()),g(n,function(t,n){return n.func.apply(n.thisArg,p([t],n.args))},e)}function Rr(t,n,e){for(var r=-1,i=t.length;++r<i;)var a=a?p(Ie(a,t[r],n,e),Ie(t[r],a,n,e)):t[r];return a&&a.length?Lr(a,n,e):[]}function jr(t,n,e){for(var r=-1,i=t.length,a=n.length,u={};++r<i;){var o=a>r?n[r]:X;e(u,t[r],o)}return u}function Yr(t){return io(t)?t:[]}function Ur(t){return\"function\"==typeof t?t:Gs}function $r(t){return yh(t)?t:Ll(t)}function Wr(t,n,e){var r=t.length;return e=e===X?r:e,!n&&e>=r?t:Mr(t,n,e)}function zr(t,n){if(n)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}function qr(t){var n=new t.constructor(t.byteLength);return new Rc(n).set(new Rc(t)),n}function Gr(t,n){var e=n?qr(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function Hr(t,n,e){var i=n?e($(t),!0):$(t);return g(i,r,new t.constructor)}function Vr(t){var n=new t.constructor(t.source,kn.exec(t));return n.lastIndex=t.lastIndex,n}function Zr(t,n,e){var r=n?e(z(t),!0):z(t);return g(r,i,new t.constructor)}function Xr(t){return bl?Object(bl.call(t)):{}}function Kr(t,n){var e=n?qr(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Qr(t,n){if(t!==n){var e=t!==X,r=null===t,i=t===t,a=Oo(t),u=n!==X,o=null===n,s=n===n,c=Oo(n);if(!o&&!c&&!a&&t>n||a&&u&&s&&!o&&!c||r&&u&&s||!e&&s||!i)return 1;if(!r&&!a&&!c&&n>t||c&&e&&i&&!r&&!a||o&&e&&i||!u&&i||!s)return-1}return 0}function Jr(t,n,e){for(var r=-1,i=t.criteria,a=n.criteria,u=i.length,o=e.length;++r<u;){var s=Qr(i[r],a[r]);if(s){if(r>=o)return s;var c=e[r];return s*(\"desc\"==c?-1:1)}}return t.index-n.index}function ti(t,n,e,r){for(var i=-1,a=t.length,u=e.length,o=-1,s=n.length,c=Qc(a-u,0),l=Array(s+c),h=!r;++o<s;)l[o]=n[o];for(;++i<u;)(h||a>i)&&(l[e[i]]=t[i]);for(;c--;)l[o++]=t[i++];return l}function ni(t,n,e,r){for(var i=-1,a=t.length,u=-1,o=e.length,s=-1,c=n.length,l=Qc(a-o,0),h=Array(l+c),f=!r;++i<l;)h[i]=t[i];for(var d=i;++s<c;)h[d+s]=n[s];for(;++u<o;)(f||a>i)&&(h[d+e[u]]=t[i++]);return h}function ei(t,n){var e=-1,r=t.length;for(n||(n=Array(r));++e<r;)n[e]=t[e];return n}function ri(t,n,e,r){e||(e={});for(var i=-1,a=n.length;++i<a;){var u=n[i],o=r?r(e[u],t[u],u,e,t):t[u];de(e,u,o)}return e}function ii(t,n){return ri(t,Yi(t),n)}function ai(t,n){return function(e,r){var i=yh(e)?u:ge,a=n?n():{};return i(e,t,Bi(r),a)}}function ui(t){return zu(function(n,e){var r=-1,i=e.length,a=i>1?e[i-1]:X,u=i>2?e[2]:X;for(a=t.length>3&&\"function\"==typeof a?(i--,a):X,u&&Ki(e[0],e[1],u)&&(a=3>i?X:a,i=1),n=Object(n);++r<i;){var o=e[r];o&&t(n,o,r,a)}return n})}function oi(t,n){return function(e,r){if(null==e)return e;if(!ro(e))return t(e,r);for(var i=e.length,a=n?i:-1,u=Object(e);(n?a--:++a<i)&&r(u[a],a,u)!==!1;);return e}}function si(t){return function(n,e,r){for(var i=-1,a=Object(n),u=r(n),o=u.length;o--;){var s=u[t?o:++i];if(e(a[s],s,a)===!1)break}return n}}function ci(t,n,e){function r(){var n=this&&this!==je&&this instanceof r?a:t;return n.apply(i?e:this,arguments)}var i=n&et,a=fi(t);return r}function li(t){return function(n){n=zo(n);var e=xe.test(n)?H(n):X,r=e?e[0]:n.charAt(0),i=e?Wr(e,1).join(\"\"):n.slice(1);return r[t]()+i}}function hi(t){return function(n){return g($s(ws(n).replace(me,\"\")),t,\"\")}}function fi(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Te(t.prototype),r=t.apply(e,n);return mo(r)?r:e}}function di(t,n,e){function r(){for(var u=arguments.length,o=Array(u),s=u,c=Ii(r);s--;)o[s]=arguments[s];var l=3>u&&o[0]!==c&&o[u-1]!==c?[]:W(o,c);if(u-=l.length,e>u)return ki(t,n,yi,r.placeholder,X,o,l,X,X,e-u);var h=this&&this!==je&&this instanceof r?i:t;return a(h,this,o)}var i=fi(t);return r}function pi(t){return function(n,e,r){var i=Object(n);if(e=Bi(e,3),!ro(n))var a=rs(n);var u=t(a||n,function(t,n){return a&&(n=t,t=i[n]),e(t,n,i)},r);return u>-1?n[a?a[u]:u]:X}}function gi(t){return zu(function(n){n=$e(n,1);var e=n.length,r=e,i=L.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if(\"function\"!=typeof a)throw new wc(J);if(i&&!u&&\"wrapper\"==Li(a))var u=new L([],!0)}for(r=u?r:e;++r<e;){a=n[r];var o=Li(a),s=\"wrapper\"==o?Dl(a):X;u=s&&ta(s[0])&&s[1]==(ct|at|ot|lt)&&!s[4].length&&1==s[9]?u[Li(s[0])].apply(u,s[3]):1==a.length&&ta(a)?u[o]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&yh(r)&&r.length>=Q)return u.plant(r).value();for(var i=0,a=e?n[i].apply(this,t):r;++i<e;)a=n[i].call(this,a);return a}})}function yi(t,n,e,r,i,a,u,o,s,c){function l(){for(var m=arguments.length,v=Array(m),_=m;_--;)v[_]=arguments[_];if(p)var b=Ii(l),x=I(v,b);if(r&&(v=ti(v,r,i,p)),a&&(v=ni(v,a,u,p)),m-=x,p&&c>m){var w=W(v,b);return ki(t,n,yi,l.placeholder,e,v,w,o,s,c-m)}var A=f?e:this,k=d?A[t]:t;return m=v.length,o?v=sa(v,o):g&&m>1&&v.reverse(),h&&m>s&&(v.length=s),this&&this!==je&&this instanceof l&&(k=y||fi(k)),k.apply(A,v)}var h=n&ct,f=n&et,d=n&rt,p=n&(at|ut),g=n&ht,y=d?X:fi(t);return l}function mi(t,n){return function(e,r){return Je(e,t,n(r),{})}}function vi(t){return function(n,e){var r;if(n===X&&e===X)return 0;if(n!==X&&(r=n),e!==X){if(r===X)return e;\"string\"==typeof n||\"string\"==typeof e?(n=Or(n),e=Or(e)):(n=Fr(n),e=Fr(e)),r=t(n,e)}return r}}function _i(t){return zu(function(n){return n=1==n.length&&yh(n[0])?d(n[0],D(Bi())):d($e(n,1,Zi),D(Bi())),zu(function(e){var r=this;return t(n,function(t){return a(t,r,e)})})})}function bi(t,n){n=n===X?\" \":Or(n);var e=n.length;if(2>e)return e?kr(n,t):n;var r=kr(n,Gc(t/G(n)));return xe.test(n)?Wr(H(r),0,t).join(\"\"):r.slice(0,t)}function xi(t,n,e,r){function i(){for(var n=-1,s=arguments.length,c=-1,l=r.length,h=Array(l+s),f=this&&this!==je&&this instanceof i?o:t;++c<l;)h[c]=r[c];for(;s--;)h[c++]=arguments[++n];return a(f,u?e:this,h)}var u=n&et,o=fi(t);return i}function wi(t){return function(n,e,r){return r&&\"number\"!=typeof r&&Ki(n,e,r)&&(e=r=X),n=Uo(n),n=n===n?n:0,e===X?(e=n,n=0):e=Uo(e)||0,r=r===X?e>n?1:-1:Uo(r)||0,Ar(n,e,r,t)}}function Ai(t){return function(n,e){return(\"string\"!=typeof n||\"string\"!=typeof e)&&(n=Uo(n),e=Uo(e)),t(n,e)}}function ki(t,n,e,r,i,a,u,o,s,c){var l=n&at,h=l?u:X,f=l?X:u,d=l?a:X,p=l?X:a;n|=l?ot:st,n&=~(l?st:ot),n&it||(n&=~(et|rt));var g=[t,n,i,d,h,p,f,o,s,c],y=e.apply(X,g);return ta(t)&&Ol(y,g),y.placeholder=r,y}function Ei(t){var n=bc[t];return function(t,e){if(t=Uo(t),e=Jc(jo(e),292)){var r=(zo(t)+\"e\").split(\"e\"),i=n(r[0]+\"e\"+(+r[1]+e));return r=(zo(i)+\"e\").split(\"e\"),\n+(r[0]+\"e\"+(+r[1]-e))}return n(t)}}function Mi(t){return function(n){var e=Ui(n);return e==Bt?$(n):e==Yt?q(n):S(n,t(n))}}function Si(t,n,e,r,i,a,u,o){var s=n&rt;if(!s&&\"function\"!=typeof t)throw new wc(J);var c=r?r.length:0;if(c||(n&=~(ot|st),r=i=X),u=u===X?u:Qc(jo(u),0),o=o===X?o:jo(o),c-=i?i.length:0,n&st){var l=r,h=i;r=i=X}var f=s?X:Dl(t),d=[t,n,e,r,i,l,h,a,u,o];if(f&&aa(d,f),t=d[0],n=d[1],e=d[2],r=d[3],i=d[4],o=d[9]=null==d[9]?s?0:t.length:Qc(d[9]-c,0),!o&&n&(at|ut)&&(n&=~(at|ut)),n&&n!=et)p=n==at||n==ut?di(t,n,o):n!=ot&&n!=(et|ot)||i.length?yi.apply(X,d):xi(t,n,e,r);else var p=ci(t,n,e);var g=f?Ml:Ol;return g(p,d)}function Di(t,n,e,r,i,a){var u=i&dt,o=t.length,s=n.length;if(o!=s&&!(u&&s>o))return!1;var c=a.get(t);if(c)return c==n;var l=-1,h=!0,f=i&ft?new ee:X;for(a.set(t,n);++l<o;){var d=t[l],p=n[l];if(r)var g=u?r(p,d,l,n,t,a):r(d,p,l,t,n,a);if(g!==X){if(g)continue;h=!1;break}if(f){if(!m(n,function(t,n){return f.has(n)||d!==t&&!e(d,t,r,i,a)?void 0:f.add(n)})){h=!1;break}}else if(d!==p&&!e(d,p,r,i,a)){h=!1;break}}return a[\"delete\"](t),h}function Ci(t,n,e,r,i,a,u){switch(e){case Gt:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case qt:return t.byteLength==n.byteLength&&r(new Rc(t),new Rc(n))?!0:!1;case Tt:case Ft:return+t==+n;case Ot:return t.name==n.name&&t.message==n.message;case Nt:return t!=+t?n!=+n:t==+n;case jt:case Ut:return t==n+\"\";case Bt:var o=$;case Yt:var s=a&dt;if(o||(o=z),t.size!=n.size&&!s)return!1;var c=u.get(t);return c?c==n:(a|=ft,u.set(t,n),Di(o(t),o(n),r,i,a,u));case $t:if(bl)return bl.call(t)==bl.call(n)}return!1}function Ti(t,n,e,r,i,a){var u=i&dt,o=rs(t),s=o.length,c=rs(n),l=c.length;if(s!=l&&!u)return!1;for(var h=s;h--;){var f=o[h];if(!(u?f in n:Ze(n,f)))return!1}var d=a.get(t);if(d)return d==n;var p=!0;a.set(t,n);for(var g=u;++h<s;){f=o[h];var y=t[f],m=n[f];if(r)var v=u?r(m,y,f,n,t,a):r(y,m,f,t,n,a);if(!(v===X?y===m||e(y,m,r,i,a):v)){p=!1;break}g||(g=\"constructor\"==f)}if(p&&!g){var _=t.constructor,b=n.constructor;_!=b&&\"constructor\"in t&&\"constructor\"in n&&!(\"function\"==typeof _&&_ instanceof _&&\"function\"==typeof b&&b instanceof b)&&(p=!1)}return a[\"delete\"](t),p}function Fi(t){return He(t,rs,Yi)}function Oi(t){return He(t,is,Tl)}function Li(t){for(var n=t.name+\"\",e=dl[n],r=Cc.call(dl,n)?e.length:0;r--;){var i=e[r],a=i.func;if(null==a||a==t)return i.name}return n}function Ii(t){var e=Cc.call(n,\"placeholder\")?n:t;return e.placeholder}function Bi(){var t=n.iteratee||Hs;return t=t===Hs?ar:t,arguments.length?t(arguments[0],arguments[1]):t}function Ni(t,n){var e=t.__data__;return Ji(n)?e[\"string\"==typeof n?\"string\":\"hash\"]:e.map}function Pi(t){for(var n=rs(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,ra(i)]}return n}function Ri(t,n){var e=R(t,n);return ir(e)?e:X}function ji(t){return Vc(Object(t))}function Yi(t){return Yc(Object(t))}function Ui(t){return Oc.call(t)}function $i(t,n,e){for(var r=-1,i=e.length;++r<i;){var a=e[r],u=a.size;switch(a.type){case\"drop\":t+=u;break;case\"dropRight\":n-=u;break;case\"take\":n=Jc(n,t+u);break;case\"takeRight\":t=Qc(t,n-u)}}return{start:t,end:n}}function Wi(t,n,e){n=Qi(n,t)?[n]:$r(n);for(var r,i=-1,a=n.length;++i<a;){var u=ca(n[i]);if(!(r=null!=t&&e(t,u)))break;t=t[u]}if(r)return r;var a=t?t.length:0;return!!a&&yo(a)&&Xi(u,a)&&(yh(t)||Fo(t)||no(t))}function zi(t){var n=t.length,e=t.constructor(n);return n&&\"string\"==typeof t[0]&&Cc.call(t,\"index\")&&(e.index=t.index,e.input=t.input),e}function qi(t){return\"function\"!=typeof t.constructor||ea(t)?{}:Te(ji(t))}function Gi(t,n,e,r){var i=t.constructor;switch(n){case qt:return qr(t);case Tt:case Ft:return new i(+t);case Gt:return Gr(t,r);case Ht:case Vt:case Zt:case Xt:case Kt:case Qt:case Jt:case tn:case nn:return Kr(t,r);case Bt:return Hr(t,r,e);case Nt:case Ut:return new i(t);case jt:return Vr(t);case Yt:return Zr(t,r,e);case $t:return Xr(t)}}function Hi(t){var n=t?t.length:X;return yo(n)&&(yh(t)||Fo(t)||no(t))?M(n,String):null}function Vi(t){return yh(t)||no(t)}function Zi(t){return yh(t)&&!(2==t.length&&!po(t[0]))}function Xi(t,n){return n=null==n?wt:n,!!n&&(\"number\"==typeof t||Tn.test(t))&&t>-1&&t%1==0&&n>t}function Ki(t,n,e){if(!mo(e))return!1;var r=typeof n;return(\"number\"==r?ro(e)&&Xi(n,e.length):\"string\"==r&&n in e)?to(e[n],t):!1}function Qi(t,n){if(yh(t))return!1;var e=typeof t;return\"number\"==e||\"symbol\"==e||\"boolean\"==e||null==t||Oo(t)?!0:pn.test(t)||!dn.test(t)||null!=n&&t in Object(n)}function Ji(t){var n=typeof t;return\"string\"==n||\"number\"==n||\"symbol\"==n||\"boolean\"==n?\"__proto__\"!==t:null===t}function ta(t){var e=Li(t),r=n[e];if(\"function\"!=typeof r||!(e in In.prototype))return!1;if(t===r)return!0;var i=Dl(r);return!!i&&t===i[0]}function na(t){return!!Sc&&Sc in t}function ea(t){var n=t&&t.constructor,e=\"function\"==typeof n&&n.prototype||kc;return t===e}function ra(t){return t===t&&!mo(t)}function ia(t,n){return function(e){return null==e?!1:e[t]===n&&(n!==X||t in Object(e))}}function aa(t,n){var e=t[1],r=n[1],i=e|r,a=(et|rt|ct)>i,u=r==ct&&e==at||r==ct&&e==lt&&t[7].length<=n[8]||r==(ct|lt)&&n[7].length<=n[8]&&e==at;if(!a&&!u)return t;r&et&&(t[2]=n[2],i|=e&et?0:it);var o=n[3];if(o){var s=t[3];t[3]=s?ti(s,o,n[4]):o,t[4]=s?W(t[3],nt):n[4]}return o=n[5],o&&(s=t[5],t[5]=s?ni(s,o,n[6]):o,t[6]=s?W(t[5],nt):n[6]),o=n[7],o&&(t[7]=o),r&ct&&(t[8]=null==t[8]?n[8]:Jc(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i,t}function ua(t,n,e,r,i,a){return mo(t)&&mo(n)&&fr(t,n,X,ua,a.set(n,t)),t}function oa(t,n){return 1==n.length?t:Ge(t,Mr(n,0,-1))}function sa(t,n){for(var e=t.length,r=Jc(n.length,e),i=ei(t);r--;){var a=n[r];t[r]=Xi(a,e)?i[a]:X}return t}function ca(t){if(\"string\"==typeof t||Oo(t))return t;var n=t+\"\";return\"0\"==n&&1/t==-xt?\"-0\":n}function la(t){if(null!=t){try{return Dc.call(t)}catch(n){}try{return t+\"\"}catch(n){}}return\"\"}function ha(t){if(t instanceof In)return t.clone();var n=new L(t.__wrapped__,t.__chain__);return n.__actions__=ei(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function fa(t,n,e){n=(e?Ki(t,n,e):n===X)?1:Qc(jo(n),0);var r=t?t.length:0;if(!r||1>n)return[];for(var i=0,a=0,u=Array(Gc(r/n));r>i;)u[a++]=Mr(t,i,i+=n);return u}function da(t){for(var n=-1,e=t?t.length:0,r=0,i=[];++n<e;){var a=t[n];a&&(i[r++]=a)}return i}function pa(){for(var t=arguments.length,n=Array(t?t-1:0),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return t?p(yh(e)?ei(e):[e],$e(n,1)):[]}function ga(t,n,e){var r=t?t.length:0;return r?(n=e||n===X?1:jo(n),Mr(t,0>n?0:n,r)):[]}function ya(t,n,e){var r=t?t.length:0;return r?(n=e||n===X?1:jo(n),n=r-n,Mr(t,0,0>n?0:n)):[]}function ma(t,n){return t&&t.length?Nr(t,Bi(n,3),!0,!0):[]}function va(t,n){return t&&t.length?Nr(t,Bi(n,3),!0):[]}function _a(t,n,e,r){var i=t?t.length:0;return i?(e&&\"number\"!=typeof e&&Ki(t,n,e)&&(e=0,r=i),Re(t,n,e,r)):[]}function ba(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=null==e?0:jo(e);return 0>i&&(i=Qc(r+i,0)),_(t,Bi(n,3),i)}function xa(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=r-1;return e!==X&&(i=jo(e),i=0>e?Qc(r+i,0):Jc(i,r-1)),_(t,Bi(n,3),i,!0)}function wa(t){var n=t?t.length:0;return n?$e(t,1):[]}function Aa(t){var n=t?t.length:0;return n?$e(t,xt):[]}function ka(t,n){var e=t?t.length:0;return e?(n=n===X?1:jo(n),$e(t,n)):[]}function Ea(t){for(var n=-1,e=t?t.length:0,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}function Ma(t){return t&&t.length?t[0]:X}function Sa(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=null==e?0:jo(e);return 0>i&&(i=Qc(r+i,0)),b(t,n,i)}function Da(t){return ya(t,1)}function Ca(t,n){return t?Xc.call(t,n):\"\"}function Ta(t){var n=t?t.length:0;return n?t[n-1]:X}function Fa(t,n,e){var r=t?t.length:0;if(!r)return-1;var i=r;if(e!==X&&(i=jo(e),i=(0>i?Qc(r+i,0):Jc(i,r-1))+1),n!==n)return j(t,i-1,!0);for(;i--;)if(t[i]===n)return i;return-1}function Oa(t,n){return t&&t.length?pr(t,jo(n)):X}function La(t,n){return t&&t.length&&n&&n.length?br(t,n):t}function Ia(t,n,e){return t&&t.length&&n&&n.length?br(t,n,Bi(e)):t}function Ba(t,n,e){return t&&t.length&&n&&n.length?br(t,n,X,e):t}function Na(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],a=t.length;for(n=Bi(n,3);++r<a;){var u=t[r];n(u,r,t)&&(e.push(u),i.push(r))}return xr(t,i),e}function Pa(t){return t?rl.call(t):t}function Ra(t,n,e){var r=t?t.length:0;return r?(e&&\"number\"!=typeof e&&Ki(t,n,e)?(n=0,e=r):(n=null==n?0:jo(n),e=e===X?r:jo(e)),Mr(t,n,e)):[]}function ja(t,n){return Dr(t,n)}function Ya(t,n,e){return Cr(t,n,Bi(e))}function Ua(t,n){var e=t?t.length:0;if(e){var r=Dr(t,n);if(e>r&&to(t[r],n))return r}return-1}function $a(t,n){return Dr(t,n,!0)}function Wa(t,n,e){return Cr(t,n,Bi(e),!0)}function za(t,n){var e=t?t.length:0;if(e){var r=Dr(t,n,!0)-1;if(to(t[r],n))return r}return-1}function qa(t){return t&&t.length?Tr(t):[]}function Ga(t,n){return t&&t.length?Tr(t,Bi(n)):[]}function Ha(t){return ga(t,1)}function Va(t,n,e){return t&&t.length?(n=e||n===X?1:jo(n),Mr(t,0,0>n?0:n)):[]}function Za(t,n,e){var r=t?t.length:0;return r?(n=e||n===X?1:jo(n),n=r-n,Mr(t,0>n?0:n,r)):[]}function Xa(t,n){return t&&t.length?Nr(t,Bi(n,3),!1,!0):[]}function Ka(t,n){return t&&t.length?Nr(t,Bi(n,3)):[]}function Qa(t){return t&&t.length?Lr(t):[]}function Ja(t,n){return t&&t.length?Lr(t,Bi(n)):[]}function tu(t,n){return t&&t.length?Lr(t,X,n):[]}function nu(t){if(!t||!t.length)return[];var n=0;return t=l(t,function(t){return io(t)?(n=Qc(t.length,n),!0):void 0}),M(n,function(n){return d(t,vr(n))})}function eu(t,n){if(!t||!t.length)return[];var e=nu(t);return null==n?e:d(e,function(t){return a(n,X,t)})}function ru(t,n){return jr(t||[],n||[],de)}function iu(t,n){return jr(t||[],n||[],Er)}function au(t){var e=n(t);return e.__chain__=!0,e}function uu(t,n){return n(t),t}function ou(t,n){return n(t)}function su(){return au(this)}function cu(){return new L(this.value(),this.__chain__)}function lu(){this.__values__===X&&(this.__values__=Po(this.value()));var t=this.__index__>=this.__values__.length,n=t?X:this.__values__[this.__index__++];return{done:t,value:n}}function hu(){return this}function fu(t){for(var n,r=this;r instanceof e;){var i=ha(r);i.__index__=0,i.__values__=X,n?a.__wrapped__=i:n=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,n}function du(){var t=this.__wrapped__;if(t instanceof In){var n=t;return this.__actions__.length&&(n=new In(this)),n=n.reverse(),n.__actions__.push({func:ou,args:[Pa],thisArg:X}),new L(n,this.__chain__)}return this.thru(Pa)}function pu(){return Pr(this.__wrapped__,this.__actions__)}function gu(t,n,e){var r=yh(t)?c:Ne;return e&&Ki(t,n,e)&&(n=X),r(t,Bi(n,3))}function yu(t,n){var e=yh(t)?l:Ue;return e(t,Bi(n,3))}function mu(t,n){return $e(Au(t,n),1)}function vu(t,n){return $e(Au(t,n),xt)}function _u(t,n,e){return e=e===X?1:jo(e),$e(Au(t,n),e)}function bu(t,n){var e=yh(t)?o:wl;return e(t,Bi(n,3))}function xu(t,n){var e=yh(t)?s:Al;return e(t,Bi(n,3))}function wu(t,n,e,r){t=ro(t)?t:ys(t),e=e&&!r?jo(e):0;var i=t.length;return 0>e&&(e=Qc(i+e,0)),Fo(t)?i>=e&&t.indexOf(n,e)>-1:!!i&&b(t,n,e)>-1}function Au(t,n){var e=yh(t)?d:cr;return e(t,Bi(n,3))}function ku(t,n,e,r){return null==t?[]:(yh(n)||(n=null==n?[]:[n]),e=r?X:e,yh(e)||(e=null==e?[]:[e]),gr(t,n,e))}function Eu(t,n,e){var r=yh(t)?g:A,i=arguments.length<3;return r(t,Bi(n,4),e,i,wl)}function Mu(t,n,e){var r=yh(t)?y:A,i=arguments.length<3;return r(t,Bi(n,4),e,i,Al)}function Su(t,n){var e=yh(t)?l:Ue;return n=Bi(n,3),e(t,function(t,e,r){return!n(t,e,r)})}function Du(t){var n=ro(t)?t:ys(t),e=n.length;return e>0?n[wr(0,e-1)]:X}function Cu(t,n,e){var r=-1,i=Po(t),a=i.length,u=a-1;for(n=(e?Ki(t,n,e):n===X)?1:Se(jo(n),0,a);++r<n;){var o=wr(r,u),s=i[o];i[o]=i[r],i[r]=s}return i.length=n,i}function Tu(t){return Cu(t,Et)}function Fu(t){if(null==t)return 0;if(ro(t)){var n=t.length;return n&&Fo(t)?G(t):n}if(vo(t)){var e=Ui(t);if(e==Bt||e==Yt)return t.size}return rs(t).length}function Ou(t,n,e){var r=yh(t)?m:Sr;return e&&Ki(t,n,e)&&(n=X),r(t,Bi(n,3))}function Lu(){return vc.now()}function Iu(t,n){if(\"function\"!=typeof n)throw new wc(J);return t=jo(t),function(){return--t<1?n.apply(this,arguments):void 0}}function Bu(t,n,e){return n=e?X:n,n=t&&null==n?t.length:n,Si(t,ct,X,X,X,X,n)}function Nu(t,n){var e;if(\"function\"!=typeof n)throw new wc(J);return t=jo(t),function(){return--t>0&&(e=n.apply(this,arguments)),1>=t&&(n=X),e}}function Pu(t,n,e){n=e?X:n;var r=Si(t,at,X,X,X,X,X,n);return r.placeholder=Pu.placeholder,r}function Ru(t,n,e){n=e?X:n;var r=Si(t,ut,X,X,X,X,X,n);return r.placeholder=Ru.placeholder,r}function ju(t,n,e){function r(n){var e=f,r=d;return f=d=X,v=n,g=t.apply(r,e)}function i(t){return v=t,y=qc(o,n),_?r(t):g}function a(t){var e=t-m,r=t-v,i=n-e;return b?Jc(i,p-r):i}function u(t){var e=t-m,r=t-v;return m===X||e>=n||0>e||b&&r>=p}function o(){var t=Lu();return u(t)?s(t):void(y=qc(o,a(t)))}function s(t){return y=X,x&&f?r(t):(f=d=X,g)}function c(){v=0,f=m=d=y=X}function l(){return y===X?g:s(Lu())}function h(){var t=Lu(),e=u(t);if(f=arguments,d=this,m=t,e){if(y===X)return i(m);if(b)return y=qc(o,n),r(m)}return y===X&&(y=qc(o,n)),g}var f,d,p,g,y,m,v=0,_=!1,b=!1,x=!0;if(\"function\"!=typeof t)throw new wc(J);return n=Uo(n)||0,mo(e)&&(_=!!e.leading,b=\"maxWait\"in e,p=b?Qc(Uo(e.maxWait)||0,n):p,x=\"trailing\"in e?!!e.trailing:x),h.cancel=c,h.flush=l,h}function Yu(t){return Si(t,ht)}function Uu(t,n){if(\"function\"!=typeof t||n&&\"function\"!=typeof n)throw new wc(J);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],a=e.cache;if(a.has(i))return a.get(i);var u=t.apply(this,r);return e.cache=a.set(i,u),u};return e.cache=new(Uu.Cache||Xn),e}function $u(t){if(\"function\"!=typeof t)throw new wc(J);return function(){return!t.apply(this,arguments)}}function Wu(t){return Nu(2,t)}function zu(t,n){if(\"function\"!=typeof t)throw new wc(J);return n=Qc(n===X?t.length-1:jo(n),0),function(){for(var e=arguments,r=-1,i=Qc(e.length-n,0),u=Array(i);++r<i;)u[r]=e[n+r];switch(n){case 0:return t.call(this,u);case 1:return t.call(this,e[0],u);case 2:return t.call(this,e[0],e[1],u)}var o=Array(n+1);for(r=-1;++r<n;)o[r]=e[r];return o[n]=u,a(t,this,o)}}function qu(t,n){if(\"function\"!=typeof t)throw new wc(J);return n=n===X?0:Qc(jo(n),0),zu(function(e){var r=e[n],i=Wr(e,0,n);return r&&p(i,r),a(t,this,i)})}function Gu(t,n,e){var r=!0,i=!0;if(\"function\"!=typeof t)throw new wc(J);return mo(e)&&(r=\"leading\"in e?!!e.leading:r,i=\"trailing\"in e?!!e.trailing:i),ju(t,n,{leading:r,maxWait:n,trailing:i})}function Hu(t){return Bu(t,1)}function Vu(t,n){return n=null==n?Gs:n,hh(n,t)}function Zu(){if(!arguments.length)return[];var t=arguments[0];return yh(t)?t:[t]}function Xu(t){return De(t,!1,!0)}function Ku(t,n){return De(t,!1,!0,n)}function Qu(t){return De(t,!0,!0)}function Ju(t,n){return De(t,!0,!0,n)}function to(t,n){return t===n||t!==t&&n!==n}function no(t){return io(t)&&Cc.call(t,\"callee\")&&(!Wc.call(t,\"callee\")||Oc.call(t)==Dt)}function eo(t){return vo(t)&&Oc.call(t)==qt}function ro(t){return null!=t&&yo(Cl(t))&&!po(t)}function io(t){return vo(t)&&ro(t)}function ao(t){return t===!0||t===!1||vo(t)&&Oc.call(t)==Tt}function uo(t){return vo(t)&&Oc.call(t)==Ft}function oo(t){return!!t&&1===t.nodeType&&vo(t)&&!So(t)}function so(t){if(ro(t)&&(yh(t)||Fo(t)||po(t.splice)||no(t)||mh(t)))return!t.length;if(vo(t)){var n=Ui(t);if(n==Bt||n==Yt)return!t.size}for(var e in t)if(Cc.call(t,e))return!1;return!(fl&&rs(t).length)}function co(t,n){return nr(t,n)}function lo(t,n,e){e=\"function\"==typeof e?e:X;var r=e?e(t,n):X;return r===X?nr(t,n,e):!!r}function ho(t){return vo(t)?Oc.call(t)==Ot||\"string\"==typeof t.message&&\"string\"==typeof t.name:!1}function fo(t){return\"number\"==typeof t&&Zc(t)}function po(t){var n=mo(t)?Oc.call(t):\"\";return n==Lt||n==It}function go(t){return\"number\"==typeof t&&t==jo(t)}function yo(t){return\"number\"==typeof t&&t>-1&&t%1==0&&wt>=t}function mo(t){var n=typeof t;return!!t&&(\"object\"==n||\"function\"==n)}function vo(t){return!!t&&\"object\"==typeof t}function _o(t){return vo(t)&&Ui(t)==Bt}function bo(t,n){return t===n||rr(t,n,Pi(n))}function xo(t,n,e){return e=\"function\"==typeof e?e:X,rr(t,n,Pi(n),e)}function wo(t){return Mo(t)&&t!=+t}function Ao(t){if(Fl(t))throw new _c(\"This method is not supported with `core-js`. Try https://github.com/es-shims.\");return ir(t)}function ko(t){return null===t}function Eo(t){return null==t}function Mo(t){return\"number\"==typeof t||vo(t)&&Oc.call(t)==Nt}function So(t){if(!vo(t)||Oc.call(t)!=Pt||Y(t))return!1;var n=ji(t);if(null===n)return!0;var e=Cc.call(n,\"constructor\")&&n.constructor;return\"function\"==typeof e&&e instanceof e&&Dc.call(e)==Fc}function Do(t){return mo(t)&&Oc.call(t)==jt}function Co(t){return go(t)&&t>=-wt&&wt>=t}function To(t){return vo(t)&&Ui(t)==Yt}function Fo(t){return\"string\"==typeof t||!yh(t)&&vo(t)&&Oc.call(t)==Ut}function Oo(t){return\"symbol\"==typeof t||vo(t)&&Oc.call(t)==$t}function Lo(t){return vo(t)&&yo(t.length)&&!!Ee[Oc.call(t)]}function Io(t){return t===X}function Bo(t){return vo(t)&&Ui(t)==Wt}function No(t){return vo(t)&&Oc.call(t)==zt}function Po(t){if(!t)return[];if(ro(t))return Fo(t)?H(t):ei(t);if(Uc&&t[Uc])return U(t[Uc]());var n=Ui(t),e=n==Bt?$:n==Yt?z:ys;return e(t)}function Ro(t){if(!t)return 0===t?t:0;if(t=Uo(t),t===xt||t===-xt){var n=0>t?-1:1;return n*At}return t===t?t:0}function jo(t){var n=Ro(t),e=n%1;return n===n?e?n-e:n:0}function Yo(t){return t?Se(jo(t),0,Et):0}function Uo(t){if(\"number\"==typeof t)return t;if(Oo(t))return kt;if(mo(t)){var n=po(t.valueOf)?t.valueOf():t;t=mo(n)?n+\"\":n}if(\"string\"!=typeof t)return 0===t?t:+t;t=t.replace(vn,\"\");var e=Sn.test(t);return e||Cn.test(t)?Oe(t.slice(2),e?2:8):Mn.test(t)?kt:+t}function $o(t){return ri(t,is(t))}function Wo(t){return Se(jo(t),-wt,wt)}function zo(t){return null==t?\"\":Or(t)}function qo(t,n){var e=Te(t);return n?ye(e,n):e}function Go(t,n){return v(t,Bi(n,3),We)}function Ho(t,n){return v(t,Bi(n,3),ze)}function Vo(t,n){return null==t?t:kl(t,Bi(n,3),is)}function Zo(t,n){return null==t?t:El(t,Bi(n,3),is)}function Xo(t,n){return t&&We(t,Bi(n,3))}function Ko(t,n){return t&&ze(t,Bi(n,3))}function Qo(t){return null==t?[]:qe(t,rs(t))}function Jo(t){return null==t?[]:qe(t,is(t))}function ts(t,n,e){var r=null==t?X:Ge(t,n);return r===X?e:r}function ns(t,n){return null!=t&&Wi(t,n,Ze)}function es(t,n){return null!=t&&Wi(t,n,Xe)}function rs(t){var n=ea(t);if(!n&&!ro(t))return ur(t);var e=Hi(t),r=!!e,i=e||[],a=i.length;for(var u in t)!Ze(t,u)||r&&(\"length\"==u||Xi(u,a))||n&&\"constructor\"==u||i.push(u);return i}function is(t){for(var n=-1,e=ea(t),r=or(t),i=r.length,a=Hi(t),u=!!a,o=a||[],s=o.length;++n<i;){var c=r[n];u&&(\"length\"==c||Xi(c,s))||\"constructor\"==c&&(e||!Cc.call(t,c))||o.push(c)}return o}function as(t,n){var e={};return n=Bi(n,3),We(t,function(t,r,i){e[n(t,r,i)]=t}),e}function us(t,n){var e={};return n=Bi(n,3),We(t,function(t,r,i){e[r]=n(t,r,i)}),e}function os(t,n){return n=Bi(n),mr(t,function(t,e){return!n(t,e)})}function ss(t,n){return null==t?{}:mr(t,Bi(n))}function cs(t,n,e){n=Qi(n,t)?[n]:$r(n);var r=-1,i=n.length;for(i||(t=X,i=1);++r<i;){var a=null==t?X:t[ca(n[r])];a===X&&(r=i,a=e),t=po(a)?a.call(t):a}return t}function ls(t,n,e){return null==t?t:Er(t,n,e)}function hs(t,n,e,r){return r=\"function\"==typeof r?r:X,null==t?t:Er(t,n,e,r)}function fs(t,n,e){var r=yh(t)||Lo(t);if(n=Bi(n,4),null==e)if(r||mo(t)){var i=t.constructor;e=r?yh(t)?new i:[]:po(i)?Te(ji(t)):{}}else e={};return(r?o:We)(t,function(t,r,i){return n(e,t,r,i)}),e}function ds(t,n){return null==t?!0:Ir(t,n)}function ps(t,n,e){return null==t?t:Br(t,n,Ur(e))}function gs(t,n,e,r){return r=\"function\"==typeof r?r:X,null==t?t:Br(t,n,Ur(e),r)}function ys(t){return t?C(t,rs(t)):[]}function ms(t){return null==t?[]:C(t,is(t))}function vs(t,n,e){return e===X&&(e=n,n=X),e!==X&&(e=Uo(e),e=e===e?e:0),n!==X&&(n=Uo(n),n=n===n?n:0),Se(Uo(t),n,e)}function _s(t,n,e){return n=Uo(n)||0,e===X?(e=n,n=0):e=Uo(e)||0,t=Uo(t),Ke(t,n,e)}function bs(t,n,e){if(e&&\"boolean\"!=typeof e&&Ki(t,n,e)&&(n=e=X),e===X&&(\"boolean\"==typeof n?(e=n,n=X):\"boolean\"==typeof t&&(e=t,t=X)),t===X&&n===X?(t=0,n=1):(t=Uo(t)||0,n===X?(n=t,t=0):n=Uo(n)||0),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var i=nl();return Jc(t+i*(n-t+Fe(\"1e-\"+((i+\"\").length-1))),n)}return wr(t,n)}function xs(t){return Wh(zo(t).toLowerCase())}function ws(t){return t=zo(t),t&&t.replace(Fn,B).replace(ve,\"\")}function As(t,n,e){t=zo(t),n=Or(n);var r=t.length;return e=e===X?r:Se(jo(e),0,r),e-=n.length,e>=0&&t.indexOf(n,e)==e}function ks(t){return t=zo(t),t&&cn.test(t)?t.replace(on,N):t}function Es(t){return t=zo(t),t&&mn.test(t)?t.replace(yn,\"\\\\$&\"):t}function Ms(t,n,e){t=zo(t),n=jo(n);var r=n?G(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return bi(Hc(i),e)+t+bi(Gc(i),e)}function Ss(t,n,e){t=zo(t),n=jo(n);var r=n?G(t):0;return n&&n>r?t+bi(n-r,e):t}function Ds(t,n,e){t=zo(t),n=jo(n);var r=n?G(t):0;return n&&n>r?bi(n-r,e)+t:t}function Cs(t,n,e){return e||null==n?n=0:n&&(n=+n),t=zo(t).replace(vn,\"\"),tl(t,n||(En.test(t)?16:10))}function Ts(t,n,e){return n=(e?Ki(t,n,e):n===X)?1:jo(n),kr(zo(t),n)}function Fs(){var t=arguments,n=zo(t[0]);return t.length<3?n:el.call(n,t[1],t[2])}function Os(t,n,e){return e&&\"number\"!=typeof e&&Ki(t,n,e)&&(n=e=X),(e=e===X?Et:e>>>0)?(t=zo(t),t&&(\"string\"==typeof n||null!=n&&!Do(n))&&(n=Or(n),\"\"==n&&xe.test(t))?Wr(H(t),0,e):il.call(t,n,e)):[]}function Ls(t,n,e){return t=zo(t),e=Se(jo(e),0,t.length),t.lastIndexOf(Or(n),e)==e}function Is(t,e,r){var i=n.templateSettings;r&&Ki(t,e,r)&&(e=X),t=zo(t),e=wh({},e,i,he);var a,u,o=wh({},e.imports,i.imports,he),s=rs(o),c=C(o,s),l=0,h=e.interpolate||On,f=\"__p += '\",d=xc((e.escape||On).source+\"|\"+h.source+\"|\"+(h===fn?An:On).source+\"|\"+(e.evaluate||On).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(\"sourceURL\"in e?e.sourceURL:\"lodash.templateSources[\"+ ++ke+\"]\")+\"\\n\";t.replace(d,function(n,e,r,i,o,s){return r||(r=i),f+=t.slice(l,s).replace(Ln,P),e&&(a=!0,f+=\"' +\\n__e(\"+e+\") +\\n'\"),o&&(u=!0,f+=\"';\\n\"+o+\";\\n__p += '\"),r&&(f+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),l=s+n.length,n}),f+=\"';\\n\";var g=e.variable;g||(f=\"with (obj) {\\n\"+f+\"\\n}\\n\"),f=(u?f.replace(en,\"\"):f).replace(rn,\"$1\").replace(an,\"$1;\"),f=\"function(\"+(g||\"obj\")+\") {\\n\"+(g?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(u?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+f+\"return __p\\n}\";var y=zh(function(){return Function(s,p+\"return \"+f).apply(X,c)});if(y.source=f,ho(y))throw y;return y}function Bs(t){return zo(t).toLowerCase()}function Ns(t){return zo(t).toUpperCase()}function Ps(t,n,e){if(t=zo(t),t&&(e||n===X))return t.replace(vn,\"\");if(!t||!(n=Or(n)))return t;var r=H(t),i=H(n),a=F(r,i),u=O(r,i)+1;return Wr(r,a,u).join(\"\")}function Rs(t,n,e){if(t=zo(t),t&&(e||n===X))return t.replace(bn,\"\");if(!t||!(n=Or(n)))return t;var r=H(t),i=O(r,H(n))+1;return Wr(r,0,i).join(\"\")}function js(t,n,e){if(t=zo(t),t&&(e||n===X))return t.replace(_n,\"\");if(!t||!(n=Or(n)))return t;var r=H(t),i=F(r,H(n));return Wr(r,i).join(\"\")}function Ys(t,n){var e=pt,r=gt;if(mo(n)){var i=\"separator\"in n?n.separator:i;e=\"length\"in n?jo(n.length):e,r=\"omission\"in n?Or(n.omission):r}t=zo(t);var a=t.length;if(xe.test(t)){var u=H(t);a=u.length}if(e>=a)return t;var o=e-G(r);if(1>o)return r;var s=u?Wr(u,0,o).join(\"\"):t.slice(0,o);if(i===X)return s+r;if(u&&(o+=s.length-o),Do(i)){if(t.slice(o).search(i)){var c,l=s;for(i.global||(i=xc(i.source,zo(kn.exec(i))+\"g\")),i.lastIndex=0;c=i.exec(l);)var h=c.index;s=s.slice(0,h===X?o:h)}}else if(t.indexOf(Or(i),o)!=o){var f=s.lastIndexOf(i);f>-1&&(s=s.slice(0,f))}return s+r}function Us(t){return t=zo(t),t&&sn.test(t)?t.replace(un,V):t}function $s(t,n,e){return t=zo(t),n=e?X:n,n===X&&(n=we.test(t)?be:xn),t.match(n)||[]}function Ws(t){var n=t?t.length:0,e=Bi();return t=n?d(t,function(t){if(\"function\"!=typeof t[1])throw new wc(J);return[e(t[0]),t[1]]}):[],zu(function(e){for(var r=-1;++r<n;){var i=t[r];if(a(i[0],this,e))return a(i[1],this,e)}})}function zs(t){return Ce(De(t,!0))}function qs(t){return function(){return t}}function Gs(t){return t}function Hs(t){return ar(\"function\"==typeof t?t:De(t,!0))}function Vs(t){return lr(De(t,!0))}function Zs(t,n){return hr(t,De(n,!0))}function Xs(t,n,e){var r=rs(n),i=qe(n,r);null!=e||mo(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=qe(n,rs(n)));var a=!(mo(e)&&\"chain\"in e&&!e.chain),u=po(t);return o(i,function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(a||n){var e=t(this.__wrapped__),i=e.__actions__=ei(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,p([this.value()],arguments))})}),t}function Ks(){return je._===this&&(je._=Lc),this}function Qs(){}function Js(t){return t=jo(t),zu(function(n){return pr(n,t)})}function tc(t){return Qi(t)?vr(ca(t)):_r(t)}function nc(t){return function(n){return null==t?X:Ge(t,n)}}function ec(){return[]}function rc(){return!1}function ic(){return{}}function ac(){return\"\"}function uc(){return!0}function oc(t,n){if(t=jo(t),1>t||t>wt)return[];var e=Et,r=Jc(t,Et);n=Bi(n),t-=Et;for(var i=M(r,n);++e<t;)n(e);return i}function sc(t){return yh(t)?d(t,ca):Oo(t)?[t]:ei(Ll(t))}function cc(t){var n=++Tc;return zo(t)+n}function lc(t){return t&&t.length?Pe(t,Gs,Ve):X}function hc(t,n){return t&&t.length?Pe(t,Bi(n),Ve):X}function fc(t){return w(t,Gs)}function dc(t,n){return w(t,Bi(n))}function pc(t){return t&&t.length?Pe(t,Gs,sr):X}function gc(t,n){return t&&t.length?Pe(t,Bi(n),sr):X}function yc(t){return t&&t.length?E(t,Gs):0}function mc(t,n){return t&&t.length?E(t,Bi(n)):0}t=t?Ye.defaults({},t,Ye.pick(je,Ae)):je;var vc=t.Date,_c=t.Error,bc=t.Math,xc=t.RegExp,wc=t.TypeError,Ac=t.Array.prototype,kc=t.Object.prototype,Ec=t.String.prototype,Mc=t[\"__core-js_shared__\"],Sc=function(){var t=/[^.]+$/.exec(Mc&&Mc.keys&&Mc.keys.IE_PROTO||\"\");return t?\"Symbol(src)_1.\"+t:\"\"}(),Dc=t.Function.prototype.toString,Cc=kc.hasOwnProperty,Tc=0,Fc=Dc.call(Object),Oc=kc.toString,Lc=je._,Ic=xc(\"^\"+Dc.call(Cc).replace(yn,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),Bc=Be?t.Buffer:X,Nc=t.Reflect,Pc=t.Symbol,Rc=t.Uint8Array,jc=Nc?Nc.enumerate:X,Yc=Object.getOwnPropertySymbols,Uc=\"symbol\"==typeof(Uc=Pc&&Pc.iterator)?Uc:X,$c=Object.create,Wc=kc.propertyIsEnumerable,zc=Ac.splice,qc=function(n,e){return t.setTimeout.call(je,n,e)},Gc=bc.ceil,Hc=bc.floor,Vc=Object.getPrototypeOf,Zc=t.isFinite,Xc=Ac.join,Kc=Object.keys,Qc=bc.max,Jc=bc.min,tl=t.parseInt,nl=bc.random,el=Ec.replace,rl=Ac.reverse,il=Ec.split,al=Ri(t,\"DataView\"),ul=Ri(t,\"Map\"),ol=Ri(t,\"Promise\"),sl=Ri(t,\"Set\"),cl=Ri(t,\"WeakMap\"),ll=Ri(Object,\"create\"),hl=cl&&new cl,fl=!Wc.call({valueOf:1},\"valueOf\"),dl={},pl=la(al),gl=la(ul),yl=la(ol),ml=la(sl),vl=la(cl),_l=Pc?Pc.prototype:X,bl=_l?_l.valueOf:X,xl=_l?_l.toString:X;n.templateSettings={escape:ln,evaluate:hn,interpolate:fn,variable:\"\",imports:{_:n}},n.prototype=e.prototype,n.prototype.constructor=n,L.prototype=Te(e.prototype),L.prototype.constructor=L,In.prototype=Te(e.prototype),In.prototype.constructor=In,Rn.prototype.clear=jn,Rn.prototype[\"delete\"]=Yn,Rn.prototype.get=Un,Rn.prototype.has=$n,Rn.prototype.set=Wn,zn.prototype.clear=qn,zn.prototype[\"delete\"]=Gn,zn.prototype.get=Hn,zn.prototype.has=Vn,zn.prototype.set=Zn,Xn.prototype.clear=Kn,Xn.prototype[\"delete\"]=Qn,Xn.prototype.get=Jn,Xn.prototype.has=te,Xn.prototype.set=ne,ee.prototype.add=ee.prototype.push=re,ee.prototype.has=ie,ae.prototype.clear=ue,ae.prototype[\"delete\"]=oe,ae.prototype.get=se,ae.prototype.has=ce,ae.prototype.set=le;var wl=oi(We),Al=oi(ze,!0),kl=si(),El=si(!0);jc&&!Wc.call({valueOf:1},\"valueOf\")&&(or=function(t){return U(jc(t))});var Ml=hl?function(t,n){return hl.set(t,n),t}:Gs,Sl=sl&&1/z(new sl([,-0]))[1]==xt?function(t){return new sl(t)}:Qs,Dl=hl?function(t){return hl.get(t)}:Qs,Cl=vr(\"length\");Yc||(Yi=ec);var Tl=Yc?function(t){for(var n=[];t;)p(n,Yi(t)),t=ji(t);return n}:Yi;(al&&Ui(new al(new ArrayBuffer(1)))!=Gt||ul&&Ui(new ul)!=Bt||ol&&Ui(ol.resolve())!=Rt||sl&&Ui(new sl)!=Yt||cl&&Ui(new cl)!=Wt)&&(Ui=function(t){var n=Oc.call(t),e=n==Pt?t.constructor:X,r=e?la(e):X;if(r)switch(r){case pl:return Gt;case gl:return Bt;case yl:return Rt;case ml:return Yt;case vl:return Wt}return n});var Fl=Mc?po:rc,Ol=function(){var t=0,n=0;return function(e,r){var i=Lu(),a=mt-(i-n);if(n=i,a>0){if(++t>=yt)return e}else t=0;return Ml(e,r)}}(),Ll=Uu(function(t){var n=[];return zo(t).replace(gn,function(t,e,r,i){n.push(r?i.replace(wn,\"$1\"):e||t)}),n}),Il=zu(function(t,n){return io(t)?Ie(t,$e(n,1,io,!0)):[]}),Bl=zu(function(t,n){var e=Ta(n);return io(e)&&(e=X),io(t)?Ie(t,$e(n,1,io,!0),Bi(e)):[]}),Nl=zu(function(t,n){var e=Ta(n);return io(e)&&(e=X),io(t)?Ie(t,$e(n,1,io,!0),X,e):[]}),Pl=zu(function(t){var n=d(t,Yr);return n.length&&n[0]===t[0]?Qe(n):[]}),Rl=zu(function(t){var n=Ta(t),e=d(t,Yr);return n===Ta(e)?n=X:e.pop(),e.length&&e[0]===t[0]?Qe(e,Bi(n)):[]}),jl=zu(function(t){var n=Ta(t),e=d(t,Yr);return n===Ta(e)?n=X:e.pop(),e.length&&e[0]===t[0]?Qe(e,X,n):[]}),Yl=zu(La),Ul=zu(function(t,n){n=$e(n,1);var e=t?t.length:0,r=_e(t,n);return xr(t,d(n,function(t){return Xi(t,e)?+t:t}).sort(Qr)),r}),$l=zu(function(t){return Lr($e(t,1,io,!0))}),Wl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Lr($e(t,1,io,!0),Bi(n))}),zl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Lr($e(t,1,io,!0),X,n)}),ql=zu(function(t,n){return io(t)?Ie(t,n):[]}),Gl=zu(function(t){return Rr(l(t,io))}),Hl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Rr(l(t,io),Bi(n))}),Vl=zu(function(t){var n=Ta(t);return io(n)&&(n=X),Rr(l(t,io),X,n)}),Zl=zu(nu),Xl=zu(function(t){var n=t.length,e=n>1?t[n-1]:X;return e=\"function\"==typeof e?(t.pop(),e):X,eu(t,e)}),Kl=zu(function(t){t=$e(t,1);var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return _e(n,t)};return!(n>1||this.__actions__.length)&&r instanceof In&&Xi(e)?(r=r.slice(e,+e+(n?1:0)),r.__actions__.push({func:ou,args:[i],thisArg:X}),new L(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(X),t})):this.thru(i)}),Ql=ai(function(t,n,e){Cc.call(t,e)?++t[e]:t[e]=1}),Jl=pi(ba),th=pi(xa),nh=ai(function(t,n,e){Cc.call(t,e)?t[e].push(n):t[e]=[n]}),eh=zu(function(t,n,e){var r=-1,i=\"function\"==typeof n,u=Qi(n),o=ro(t)?Array(t.length):[];return wl(t,function(t){var s=i?n:u&&null!=t?t[n]:X;o[++r]=s?a(s,t,e):tr(t,n,e)}),o}),rh=ai(function(t,n,e){t[e]=n}),ih=ai(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),ah=zu(function(t,n){if(null==t)return[];var e=n.length;return e>1&&Ki(t,n[0],n[1])?n=[]:e>2&&Ki(n[0],n[1],n[2])&&(n=[n[0]]),n=1==n.length&&yh(n[0])?n[0]:$e(n,1,Zi),gr(t,n,[])}),uh=zu(function(t,n,e){var r=et;if(e.length){var i=W(e,Ii(uh));r|=ot}return Si(t,r,n,e,i)}),oh=zu(function(t,n,e){var r=et|rt;if(e.length){var i=W(e,Ii(oh));r|=ot}return Si(n,r,t,e,i)}),sh=zu(function(t,n){return Le(t,1,n)}),ch=zu(function(t,n,e){return Le(t,Uo(n)||0,e)});Uu.Cache=Xn;var lh=zu(function(t,n){n=1==n.length&&yh(n[0])?d(n[0],D(Bi())):d($e(n,1,Zi),D(Bi()));var e=n.length;return zu(function(r){for(var i=-1,u=Jc(r.length,e);++i<u;)r[i]=n[i].call(this,r[i]);return a(t,this,r)})}),hh=zu(function(t,n){var e=W(n,Ii(hh));return Si(t,ot,X,n,e)}),fh=zu(function(t,n){var e=W(n,Ii(fh));return Si(t,st,X,n,e)}),dh=zu(function(t,n){return Si(t,lt,X,X,X,$e(n,1))}),ph=Ai(Ve),gh=Ai(function(t,n){return t>=n}),yh=Array.isArray,mh=Bc?function(t){return t instanceof Bc}:rc,vh=Ai(sr),_h=Ai(function(t,n){return n>=t}),bh=ui(function(t,n){if(fl||ea(n)||ro(n))return void ri(n,rs(n),t);for(var e in n)Cc.call(n,e)&&de(t,e,n[e])}),xh=ui(function(t,n){if(fl||ea(n)||ro(n))return void ri(n,is(n),t);for(var e in n)de(t,e,n[e])}),wh=ui(function(t,n,e,r){ri(n,is(n),t,r)}),Ah=ui(function(t,n,e,r){ri(n,rs(n),t,r)}),kh=zu(function(t,n){return _e(t,$e(n,1))}),Eh=zu(function(t){return t.push(X,he),a(wh,X,t)}),Mh=zu(function(t){return t.push(X,ua),a(Fh,X,t)}),Sh=mi(function(t,n,e){t[n]=e},qs(Gs)),Dh=mi(function(t,n,e){Cc.call(t,n)?t[n].push(e):t[n]=[e]},Bi),Ch=zu(tr),Th=ui(function(t,n,e){fr(t,n,e)}),Fh=ui(function(t,n,e,r){fr(t,n,e,r)}),Oh=zu(function(t,n){return null==t?{}:(n=d($e(n,1),ca),yr(t,Ie(Oi(t),n)))}),Lh=zu(function(t,n){return null==t?{}:yr(t,d($e(n,1),ca))}),Ih=Mi(rs),Bh=Mi(is),Nh=hi(function(t,n,e){return n=n.toLowerCase(),t+(e?xs(n):n)}),Ph=hi(function(t,n,e){return t+(e?\"-\":\"\")+n.toLowerCase()}),Rh=hi(function(t,n,e){\nreturn t+(e?\" \":\"\")+n.toLowerCase()}),jh=li(\"toLowerCase\"),Yh=hi(function(t,n,e){return t+(e?\"_\":\"\")+n.toLowerCase()}),Uh=hi(function(t,n,e){return t+(e?\" \":\"\")+Wh(n)}),$h=hi(function(t,n,e){return t+(e?\" \":\"\")+n.toUpperCase()}),Wh=li(\"toUpperCase\"),zh=zu(function(t,n){try{return a(t,X,n)}catch(e){return ho(e)?e:new _c(e)}}),qh=zu(function(t,n){return o($e(n,1),function(n){n=ca(n),t[n]=uh(t[n],t)}),t}),Gh=gi(),Hh=gi(!0),Vh=zu(function(t,n){return function(e){return tr(e,t,n)}}),Zh=zu(function(t,n){return function(e){return tr(t,e,n)}}),Xh=_i(d),Kh=_i(c),Qh=_i(m),Jh=wi(),tf=wi(!0),nf=vi(function(t,n){return t+n}),ef=Ei(\"ceil\"),rf=vi(function(t,n){return t/n}),af=Ei(\"floor\"),uf=vi(function(t,n){return t*n}),of=Ei(\"round\"),sf=vi(function(t,n){return t-n});return n.after=Iu,n.ary=Bu,n.assign=bh,n.assignIn=xh,n.assignInWith=wh,n.assignWith=Ah,n.at=kh,n.before=Nu,n.bind=uh,n.bindAll=qh,n.bindKey=oh,n.castArray=Zu,n.chain=au,n.chunk=fa,n.compact=da,n.concat=pa,n.cond=Ws,n.conforms=zs,n.constant=qs,n.countBy=Ql,n.create=qo,n.curry=Pu,n.curryRight=Ru,n.debounce=ju,n.defaults=Eh,n.defaultsDeep=Mh,n.defer=sh,n.delay=ch,n.difference=Il,n.differenceBy=Bl,n.differenceWith=Nl,n.drop=ga,n.dropRight=ya,n.dropRightWhile=ma,n.dropWhile=va,n.fill=_a,n.filter=yu,n.flatMap=mu,n.flatMapDeep=vu,n.flatMapDepth=_u,n.flatten=wa,n.flattenDeep=Aa,n.flattenDepth=ka,n.flip=Yu,n.flow=Gh,n.flowRight=Hh,n.fromPairs=Ea,n.functions=Qo,n.functionsIn=Jo,n.groupBy=nh,n.initial=Da,n.intersection=Pl,n.intersectionBy=Rl,n.intersectionWith=jl,n.invert=Sh,n.invertBy=Dh,n.invokeMap=eh,n.iteratee=Hs,n.keyBy=rh,n.keys=rs,n.keysIn=is,n.map=Au,n.mapKeys=as,n.mapValues=us,n.matches=Vs,n.matchesProperty=Zs,n.memoize=Uu,n.merge=Th,n.mergeWith=Fh,n.method=Vh,n.methodOf=Zh,n.mixin=Xs,n.negate=$u,n.nthArg=Js,n.omit=Oh,n.omitBy=os,n.once=Wu,n.orderBy=ku,n.over=Xh,n.overArgs=lh,n.overEvery=Kh,n.overSome=Qh,n.partial=hh,n.partialRight=fh,n.partition=ih,n.pick=Lh,n.pickBy=ss,n.property=tc,n.propertyOf=nc,n.pull=Yl,n.pullAll=La,n.pullAllBy=Ia,n.pullAllWith=Ba,n.pullAt=Ul,n.range=Jh,n.rangeRight=tf,n.rearg=dh,n.reject=Su,n.remove=Na,n.rest=zu,n.reverse=Pa,n.sampleSize=Cu,n.set=ls,n.setWith=hs,n.shuffle=Tu,n.slice=Ra,n.sortBy=ah,n.sortedUniq=qa,n.sortedUniqBy=Ga,n.split=Os,n.spread=qu,n.tail=Ha,n.take=Va,n.takeRight=Za,n.takeRightWhile=Xa,n.takeWhile=Ka,n.tap=uu,n.throttle=Gu,n.thru=ou,n.toArray=Po,n.toPairs=Ih,n.toPairsIn=Bh,n.toPath=sc,n.toPlainObject=$o,n.transform=fs,n.unary=Hu,n.union=$l,n.unionBy=Wl,n.unionWith=zl,n.uniq=Qa,n.uniqBy=Ja,n.uniqWith=tu,n.unset=ds,n.unzip=nu,n.unzipWith=eu,n.update=ps,n.updateWith=gs,n.values=ys,n.valuesIn=ms,n.without=ql,n.words=$s,n.wrap=Vu,n.xor=Gl,n.xorBy=Hl,n.xorWith=Vl,n.zip=Zl,n.zipObject=ru,n.zipObjectDeep=iu,n.zipWith=Xl,n.entries=Ih,n.entriesIn=Bh,n.extend=xh,n.extendWith=wh,Xs(n,n),n.add=nf,n.attempt=zh,n.camelCase=Nh,n.capitalize=xs,n.ceil=ef,n.clamp=vs,n.clone=Xu,n.cloneDeep=Qu,n.cloneDeepWith=Ju,n.cloneWith=Ku,n.deburr=ws,n.divide=rf,n.endsWith=As,n.eq=to,n.escape=ks,n.escapeRegExp=Es,n.every=gu,n.find=Jl,n.findIndex=ba,n.findKey=Go,n.findLast=th,n.findLastIndex=xa,n.findLastKey=Ho,n.floor=af,n.forEach=bu,n.forEachRight=xu,n.forIn=Vo,n.forInRight=Zo,n.forOwn=Xo,n.forOwnRight=Ko,n.get=ts,n.gt=ph,n.gte=gh,n.has=ns,n.hasIn=es,n.head=Ma,n.identity=Gs,n.includes=wu,n.indexOf=Sa,n.inRange=_s,n.invoke=Ch,n.isArguments=no,n.isArray=yh,n.isArrayBuffer=eo,n.isArrayLike=ro,n.isArrayLikeObject=io,n.isBoolean=ao,n.isBuffer=mh,n.isDate=uo,n.isElement=oo,n.isEmpty=so,n.isEqual=co,n.isEqualWith=lo,n.isError=ho,n.isFinite=fo,n.isFunction=po,n.isInteger=go,n.isLength=yo,n.isMap=_o,n.isMatch=bo,n.isMatchWith=xo,n.isNaN=wo,n.isNative=Ao,n.isNil=Eo,n.isNull=ko,n.isNumber=Mo,n.isObject=mo,n.isObjectLike=vo,n.isPlainObject=So,n.isRegExp=Do,n.isSafeInteger=Co,n.isSet=To,n.isString=Fo,n.isSymbol=Oo,n.isTypedArray=Lo,n.isUndefined=Io,n.isWeakMap=Bo,n.isWeakSet=No,n.join=Ca,n.kebabCase=Ph,n.last=Ta,n.lastIndexOf=Fa,n.lowerCase=Rh,n.lowerFirst=jh,n.lt=vh,n.lte=_h,n.max=lc,n.maxBy=hc,n.mean=fc,n.meanBy=dc,n.min=pc,n.minBy=gc,n.stubArray=ec,n.stubFalse=rc,n.stubObject=ic,n.stubString=ac,n.stubTrue=uc,n.multiply=uf,n.nth=Oa,n.noConflict=Ks,n.noop=Qs,n.now=Lu,n.pad=Ms,n.padEnd=Ss,n.padStart=Ds,n.parseInt=Cs,n.random=bs,n.reduce=Eu,n.reduceRight=Mu,n.repeat=Ts,n.replace=Fs,n.result=cs,n.round=of,n.runInContext=Z,n.sample=Du,n.size=Fu,n.snakeCase=Yh,n.some=Ou,n.sortedIndex=ja,n.sortedIndexBy=Ya,n.sortedIndexOf=Ua,n.sortedLastIndex=$a,n.sortedLastIndexBy=Wa,n.sortedLastIndexOf=za,n.startCase=Uh,n.startsWith=Ls,n.subtract=sf,n.sum=yc,n.sumBy=mc,n.template=Is,n.times=oc,n.toFinite=Ro,n.toInteger=jo,n.toLength=Yo,n.toLower=Bs,n.toNumber=Uo,n.toSafeInteger=Wo,n.toString=zo,n.toUpper=Ns,n.trim=Ps,n.trimEnd=Rs,n.trimStart=js,n.truncate=Ys,n.unescape=Us,n.uniqueId=cc,n.upperCase=$h,n.upperFirst=Wh,n.each=bu,n.eachRight=xu,n.first=Ma,Xs(n,function(){var t={};return We(n,function(e,r){Cc.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=K,o([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(t){n[t].placeholder=n}),o([\"drop\",\"take\"],function(t,n){In.prototype[t]=function(e){var r=this.__filtered__;if(r&&!n)return new In(this);e=e===X?1:Qc(jo(e),0);var i=this.clone();return r?i.__takeCount__=Jc(e,i.__takeCount__):i.__views__.push({size:Jc(e,Et),type:t+(i.__dir__<0?\"Right\":\"\")}),i},In.prototype[t+\"Right\"]=function(n){return this.reverse()[t](n).reverse()}}),o([\"filter\",\"map\",\"takeWhile\"],function(t,n){var e=n+1,r=e==vt||e==bt;In.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Bi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),o([\"head\",\"last\"],function(t,n){var e=\"take\"+(n?\"Right\":\"\");In.prototype[t]=function(){return this[e](1).value()[0]}}),o([\"initial\",\"tail\"],function(t,n){var e=\"drop\"+(n?\"\":\"Right\");In.prototype[t]=function(){return this.__filtered__?new In(this):this[e](1)}}),In.prototype.compact=function(){return this.filter(Gs)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=zu(function(t,n){return\"function\"==typeof t?new In(this):this.map(function(e){return tr(e,t,n)})}),In.prototype.reject=function(t){return t=Bi(t,3),this.filter(function(n){return!t(n)})},In.prototype.slice=function(t,n){t=jo(t);var e=this;return e.__filtered__&&(t>0||0>n)?new In(e):(0>t?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==X&&(n=jo(n),e=0>n?e.dropRight(-n):e.take(n-t)),e)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(Et)},We(In.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),a=n[i?\"take\"+(\"last\"==e?\"Right\":\"\"):e],u=i||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,o=i?[1]:arguments,s=e instanceof In,c=o[0],l=s||yh(e),h=function(t){var e=a.apply(n,p([t],o));return i&&f?e[0]:e};l&&r&&\"function\"==typeof c&&1!=c.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,g=u&&!f,y=s&&!d;if(!u&&l){e=y?e:new In(this);var m=t.apply(e,o);return m.__actions__.push({func:ou,args:[h],thisArg:X}),new L(m,f)}return g&&y?t.apply(this,o):(m=this.thru(h),g?i?m.value()[0]:m.value():m)})}),o([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=Ac[t],r=/^(?:push|sort|unshift)$/.test(t)?\"tap\":\"thru\",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(yh(n)?n:[],t)}return this[r](function(n){return e.apply(yh(n)?n:[],t)})}}),We(In.prototype,function(t,e){var r=n[e];if(r){var i=r.name+\"\",a=dl[i]||(dl[i]=[]);a.push({name:e,func:r})}}),dl[yi(X,rt).name]=[{name:\"wrapper\",func:X}],In.prototype.clone=Bn,In.prototype.reverse=Nn,In.prototype.value=Pn,n.prototype.at=Kl,n.prototype.chain=su,n.prototype.commit=cu,n.prototype.next=lu,n.prototype.plant=fu,n.prototype.reverse=du,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=pu,Uc&&(n.prototype[Uc]=hu),n}var X,K=\"4.13.1\",Q=200,J=\"Expected a function\",tt=\"__lodash_hash_undefined__\",nt=\"__lodash_placeholder__\",et=1,rt=2,it=4,at=8,ut=16,ot=32,st=64,ct=128,lt=256,ht=512,ft=1,dt=2,pt=30,gt=\"...\",yt=150,mt=16,vt=1,_t=2,bt=3,xt=1/0,wt=9007199254740991,At=1.7976931348623157e308,kt=0/0,Et=4294967295,Mt=Et-1,St=Et>>>1,Dt=\"[object Arguments]\",Ct=\"[object Array]\",Tt=\"[object Boolean]\",Ft=\"[object Date]\",Ot=\"[object Error]\",Lt=\"[object Function]\",It=\"[object GeneratorFunction]\",Bt=\"[object Map]\",Nt=\"[object Number]\",Pt=\"[object Object]\",Rt=\"[object Promise]\",jt=\"[object RegExp]\",Yt=\"[object Set]\",Ut=\"[object String]\",$t=\"[object Symbol]\",Wt=\"[object WeakMap]\",zt=\"[object WeakSet]\",qt=\"[object ArrayBuffer]\",Gt=\"[object DataView]\",Ht=\"[object Float32Array]\",Vt=\"[object Float64Array]\",Zt=\"[object Int8Array]\",Xt=\"[object Int16Array]\",Kt=\"[object Int32Array]\",Qt=\"[object Uint8Array]\",Jt=\"[object Uint8ClampedArray]\",tn=\"[object Uint16Array]\",nn=\"[object Uint32Array]\",en=/\\b__p \\+= '';/g,rn=/\\b(__p \\+=) '' \\+/g,an=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,un=/&(?:amp|lt|gt|quot|#39|#96);/g,on=/[&<>\"'`]/g,sn=RegExp(un.source),cn=RegExp(on.source),ln=/<%-([\\s\\S]+?)%>/g,hn=/<%([\\s\\S]+?)%>/g,fn=/<%=([\\s\\S]+?)%>/g,dn=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,pn=/^\\w*$/,gn=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(\\.|\\[\\])(?:\\4|$))/g,yn=/[\\\\^$.*+?()[\\]{}|]/g,mn=RegExp(yn.source),vn=/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\\\\ud83c[\\\\udffb-\\\\udfff]\",ne=\"(?:\"+Zn+\"|\"+te+\")\",ee=\"[^\"+In+\"]\",re=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",ie=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",ae=\"[\"+Wn+\"]\",ue=\"\\\\u200d\",oe=\"(?:\"+Qn+\"|\"+Jn+\")\",se=\"(?:\"+ae+\"|\"+Jn+\")\",ce=\"(?:\"+Gn+\"(?:d|ll|m|re|s|t|ve))?\",le=\"(?:\"+Gn+\"(?:D|LL|M|RE|S|T|VE))?\",he=ne+\"?\",fe=\"[\"+zn+\"]?\",de=\"(?:\"+ue+\"(?:\"+[ee,re,ie].join(\"|\")+\")\"+fe+he+\")*\",pe=fe+he+de,ge=\"(?:\"+[Kn,re,ie].join(\"|\")+\")\"+pe,ye=\"(?:\"+[ee+Zn+\"?\",Zn,re,ie,Hn].join(\"|\")+\")\",me=RegExp(Gn,\"g\"),ve=RegExp(Zn,\"g\"),_e=RegExp(te+\"(?=\"+te+\")|\"+ye+pe,\"g\"),be=RegExp([ae+\"?\"+Qn+\"+\"+ce+\"(?=\"+[Vn,ae,\"$\"].join(\"|\")+\")\",se+\"+\"+le+\"(?=\"+[Vn,ae+oe,\"$\"].join(\"|\")+\")\",ae+\"?\"+oe+\"+\"+ce,ae+\"+\"+le,Xn,ge].join(\"|\"),\"g\"),xe=RegExp(\"[\"+ue+In+Bn+Nn+zn+\"]\"),we=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ae=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"Reflect\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint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":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"Ý\":\"Y\",\"ý\":\"y\",\"ÿ\":\"y\",\"Æ\":\"Ae\",\"æ\":\"ae\",\"Þ\":\"Th\",\"þ\":\"th\",\"ß\":\"ss\"},De={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\",\"`\":\"`\"},Ce={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\",\"`\":\"`\"},Te={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Fe=parseFloat,Oe=parseInt,Le=\"object\"==typeof e&&e,Ie=Le&&\"object\"==typeof n&&n,Be=Ie&&Ie.exports===Le,Ne=L(\"object\"==typeof t&&t),Pe=L(\"object\"==typeof self&&self),Re=L(\"object\"==typeof this&&this),je=Ne||Pe||Re||Function(\"return this\")(),Ye=Z();(Pe||{})._=Ye,\"function\"==typeof define&&\"object\"==typeof define.amd&&define.amd?define(function(){return Ye}):Ie?((Ie.exports=Ye)._=Ye,Le._=Ye):je._=Ye}).call(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],104:[function(t,n,e){!function(t,r){\"object\"==typeof e&&\"undefined\"!=typeof n?n.exports=r():\"function\"==typeof define&&define.amd?define(r):t.moment=r()}(this,function(){\"use strict\";function e(){return sr.apply(null,arguments)}function r(t){sr=t}function i(t){return t instanceof Array||\"[object Array]\"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||\"[object Date]\"===Object.prototype.toString.call(t)}function u(t,n){var e,r=[];for(e=0;e<t.length;++e)r.push(n(t[e],e));return r}function o(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function s(t,n){for(var e in n)o(n,e)&&(t[e]=n[e]);return o(n,\"toString\")&&(t.toString=n.toString),o(n,\"valueOf\")&&(t.valueOf=n.valueOf),t}function c(t,n,e,r){return Pt(t,n,e,r,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function h(t){return null==t._pf&&(t._pf=l()),t._pf}function f(t){if(null==t._isValid){var n=h(t),e=cr.call(n.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&e),t._strict&&(t._isValid=t._isValid&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour)}return t._isValid}function d(t){var n=c(0/0);return null!=t?s(h(n),t):h(n).userInvalidated=!0,n}function p(t){return void 0===t}function g(t,n){var e,r,i;if(p(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),p(n._i)||(t._i=n._i),p(n._f)||(t._f=n._f),p(n._l)||(t._l=n._l),p(n._strict)||(t._strict=n._strict),p(n._tzm)||(t._tzm=n._tzm),p(n._isUTC)||(t._isUTC=n._isUTC),p(n._offset)||(t._offset=n._offset),p(n._pf)||(t._pf=h(n)),p(n._locale)||(t._locale=n._locale),lr.length>0)for(e in lr)r=lr[e],i=n[r],p(i)||(t[r]=i);return t}function y(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():0/0),hr===!1&&(hr=!0,e.updateOffset(this),hr=!1)}function m(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function v(t){return 0>t?Math.ceil(t):Math.floor(t)}function _(t){var n=+t,e=0;return 0!==n&&isFinite(n)&&(e=v(n)),e}function b(t,n,e){var r,i=Math.min(t.length,n.length),a=Math.abs(t.length-n.length),u=0;for(r=0;i>r;r++)(e&&t[r]!==n[r]||!e&&_(t[r])!==_(n[r]))&&u++;return u+a}function x(t){e.suppressDeprecationWarnings===!1&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+t)}function w(t,n){var r=!0;return s(function(){return null!=e.deprecationHandler&&e.deprecationHandler(null,t),r&&(x(t+\"\\nArguments: \"+Array.prototype.slice.call(arguments).join(\", \")+\"\\n\"+(new Error).stack),r=!1),n.apply(this,arguments)},n)}function A(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),fr[t]||(x(n),fr[t]=!0)}function k(t){return t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}function E(t){return\"[object Object]\"===Object.prototype.toString.call(t)}function M(t){var n,e;for(e in t)n=t[e],k(n)?this[e]=n:this[\"_\"+e]=n;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+\"|\"+/\\d{1,2}/.source)}function S(t,n){var e,r=s({},t);for(e in n)o(n,e)&&(E(t[e])&&E(n[e])?(r[e]={},s(r[e],t[e]),s(r[e],n[e])):null!=n[e]?r[e]=n[e]:delete r[e]);return r}function D(t){null!=t&&this.set(t)}function C(t){return t?t.toLowerCase().replace(\"_\",\"-\"):t}function T(t){for(var n,e,r,i,a=0;a<t.length;){for(i=C(t[a]).split(\"-\"),n=i.length,e=C(t[a+1]),e=e?e.split(\"-\"):null;n>0;){if(r=F(i.slice(0,n).join(\"-\")))return r;if(e&&e.length>=n&&b(i,e,!0)>=n-1)break;n--}a++}return null}function F(e){var r=null;if(!yr[e]&&\"undefined\"!=typeof n&&n&&n.exports)try{r=pr._abbr,t(\"./locale/\"+e),O(r)}catch(i){}return yr[e]}function O(t,n){var e;return t&&(e=p(n)?B(t):L(t,n),e&&(pr=e)),pr._abbr}function L(t,n){return null!==n?(n.abbr=t,null!=yr[t]?(A(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale\"),n=S(yr[t]._config,n)):null!=n.parentLocale&&(null!=yr[n.parentLocale]?n=S(yr[n.parentLocale]._config,n):A(\"parentLocaleUndefined\",\"specified parentLocale is not defined yet\")),yr[t]=new D(n),O(t),yr[t]):(delete yr[t],null)}function I(t,n){if(null!=n){var e;null!=yr[t]&&(n=S(yr[t]._config,n)),e=new D(n),e.parentLocale=yr[t],yr[t]=e,O(t)}else null!=yr[t]&&(null!=yr[t].parentLocale?yr[t]=yr[t].parentLocale:null!=yr[t]&&delete yr[t]);return yr[t]}function B(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return pr;if(!i(t)){if(n=F(t))return n;t=[t]}return T(t)}function N(){return dr(yr)}function P(t,n){var e=t.toLowerCase();mr[e]=mr[e+\"s\"]=mr[n]=t}function R(t){return\"string\"==typeof t?mr[t]||mr[t.toLowerCase()]:void 0}function j(t){var n,e,r={};for(e in t)o(t,e)&&(n=R(e),n&&(r[n]=t[e]));return r}function Y(t,n){return function(r){return null!=r?($(this,t,r),e.updateOffset(this,n),this):U(this,t)}}function U(t,n){return t.isValid()?t._d[\"get\"+(t._isUTC?\"UTC\":\"\")+n]():0/0}function $(t,n,e){t.isValid()&&t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+n](e)}function W(t,n){var e;if(\"object\"==typeof t)for(e in t)this.set(e,t[e]);else if(t=R(t),k(this[t]))return this[t](n);return this}function z(t,n,e){var r=\"\"+Math.abs(t),i=n-r.length,a=t>=0;return(a?e?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function q(t,n,e,r){var i=r;\"string\"==typeof r&&(i=function(){return this[r]()}),t&&(xr[t]=i),n&&(xr[n[0]]=function(){return z(i.apply(this,arguments),n[1],n[2])}),e&&(xr[e]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function G(t){return t.match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\")}function H(t){var n,e,r=t.match(vr);for(n=0,e=r.length;e>n;n++)r[n]=xr[r[n]]?xr[r[n]]:G(r[n]);return function(n){var i,a=\"\";for(i=0;e>i;i++)a+=r[i]instanceof Function?r[i].call(n,t):r[i];return a}}function V(t,n){return t.isValid()?(n=Z(n,t.localeData()),br[n]=br[n]||H(n),br[n](t)):t.localeData().invalidDate()}function Z(t,n){function e(t){return n.longDateFormat(t)||t}var r=5;for(_r.lastIndex=0;r>=0&&_r.test(t);)t=t.replace(_r,e),_r.lastIndex=0,r-=1;return t}function X(t,n,e){jr[t]=k(n)?n:function(t){return t&&e?e:n}}function K(t,n){return o(jr,t)?jr[t](n._strict,n._locale):new RegExp(Q(t))}function Q(t){return J(t.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(t,n,e,r,i){return n||e||r||i}))}function J(t){return t.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function tt(t,n){var e,r=n;for(\"string\"==typeof t&&(t=[t]),\"number\"==typeof n&&(r=function(t,e){e[n]=_(t)}),e=0;e<t.length;e++)Yr[t[e]]=r}function nt(t,n){tt(t,function(t,e,r,i){r._w=r._w||{},n(t,r._w,r,i)})}function et(t,n,e){null!=n&&o(Yr,t)&&Yr[t](n,e._a,e,t)}function rt(t,n){return new Date(Date.UTC(t,n+1,0)).getUTCDate()}function it(t,n){return i(this._months)?this._months[t.month()]:this._months[Xr.test(n)?\"format\":\"standalone\"][t.month()]}function at(t,n){return i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Xr.test(n)?\"format\":\"standalone\"][t.month()]}function ut(t,n,e){var r,i,a,u=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;12>r;++r)a=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,\"\").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,\"\").toLocaleLowerCase();return e?\"MMM\"===n?(i=gr.call(this._shortMonthsParse,u),-1!==i?i:null):(i=gr.call(this._longMonthsParse,u),-1!==i?i:null):\"MMM\"===n?(i=gr.call(this._shortMonthsParse,u),-1!==i?i:(i=gr.call(this._longMonthsParse,u),-1!==i?i:null)):(i=gr.call(this._longMonthsParse,u),-1!==i?i:(i=gr.call(this._shortMonthsParse,u),-1!==i?i:null))}function ot(t,n,e){var r,i,a;if(this._monthsParseExact)return ut.call(this,t,n,e);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=c([2e3,r]),e&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp(\"^\"+this.months(i,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[r]=new RegExp(\"^\"+this.monthsShort(i,\"\").replace(\".\",\"\")+\"$\",\"i\")),e||this._monthsParse[r]||(a=\"^\"+this.months(i,\"\")+\"|^\"+this.monthsShort(i,\"\"),this._monthsParse[r]=new RegExp(a.replace(\".\",\"\"),\"i\")),e&&\"MMMM\"===n&&this._longMonthsParse[r].test(t))return r;if(e&&\"MMM\"===n&&this._shortMonthsParse[r].test(t))return r;if(!e&&this._monthsParse[r].test(t))return r}}function st(t,n){var e;if(!t.isValid())return t;if(\"string\"==typeof n)if(/^\\d+$/.test(n))n=_(n);else if(n=t.localeData().monthsParse(n),\"number\"!=typeof n)return t;return e=Math.min(t.date(),rt(t.year(),n)),t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+\"Month\"](n,e),t}function ct(t){return null!=t?(st(this,t),e.updateOffset(this,!0),this):U(this,\"Month\")}function lt(){return rt(this.year(),this.month())}function ht(t){return this._monthsParseExact?(o(this,\"_monthsRegex\")||dt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex}function ft(t){return this._monthsParseExact?(o(this,\"_monthsRegex\")||dt.call(this),t?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex}function dt(){function t(t,n){return n.length-t.length}var n,e,r=[],i=[],a=[];for(n=0;12>n;n++)e=c([2e3,n]),r.push(this.monthsShort(e,\"\")),i.push(this.months(e,\"\")),a.push(this.months(e,\"\")),a.push(this.monthsShort(e,\"\"));for(r.sort(t),i.sort(t),a.sort(t),n=0;12>n;n++)r[n]=J(r[n]),i[n]=J(i[n]),a[n]=J(a[n]);this._monthsRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\"),this._monthsShortStrictRegex=new RegExp(\"^(\"+r.join(\"|\")+\")\",\"i\")}function pt(t){var n,e=t._a;return e&&-2===h(t).overflow&&(n=e[$r]<0||e[$r]>11?$r:e[Wr]<1||e[Wr]>rt(e[Ur],e[$r])?Wr:e[zr]<0||e[zr]>24||24===e[zr]&&(0!==e[qr]||0!==e[Gr]||0!==e[Hr])?zr:e[qr]<0||e[qr]>59?qr:e[Gr]<0||e[Gr]>59?Gr:e[Hr]<0||e[Hr]>999?Hr:-1,h(t)._overflowDayOfYear&&(Ur>n||n>Wr)&&(n=Wr),h(t)._overflowWeeks&&-1===n&&(n=Vr),h(t)._overflowWeekday&&-1===n&&(n=Zr),h(t).overflow=n),t}function gt(t){var n,e,r,i,a,u,o=t._i,s=ni.exec(o)||ei.exec(o);if(s){for(h(t).iso=!0,n=0,e=ii.length;e>n;n++)if(ii[n][1].exec(s[1])){i=ii[n][0],r=ii[n][2]!==!1;break}if(null==i)return void(t._isValid=!1);if(s[3]){for(n=0,e=ai.length;e>n;n++)if(ai[n][1].exec(s[3])){a=(s[2]||\" \")+ai[n][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(s[4]){if(!ri.exec(s[4]))return void(t._isValid=!1);u=\"Z\"}t._f=i+(a||\"\")+(u||\"\"),Tt(t)}else t._isValid=!1}function yt(t){var n=ui.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(gt(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function mt(t,n,e,r,i,a,u){var o=new Date(t,n,e,r,i,a,u);return 100>t&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function vt(t){var n=new Date(Date.UTC.apply(null,arguments));return 100>t&&t>=0&&isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t),n}function _t(t){return bt(t)?366:365}function bt(t){return t%4===0&&t%100!==0||t%400===0}function xt(){return bt(this.year())}function wt(t,n,e){var r=7+n-e,i=(7+vt(t,0,r).getUTCDay()-n)%7;return-i+r-1}function At(t,n,e,r,i){var a,u,o=(7+e-r)%7,s=wt(t,r,i),c=1+7*(n-1)+o+s;return 0>=c?(a=t-1,u=_t(a)+c):c>_t(t)?(a=t+1,u=c-_t(t)):(a=t,u=c),{year:a,dayOfYear:u}}function kt(t,n,e){var r,i,a=wt(t.year(),n,e),u=Math.floor((t.dayOfYear()-a-1)/7)+1;return 1>u?(i=t.year()-1,r=u+Et(i,n,e)):u>Et(t.year(),n,e)?(r=u-Et(t.year(),n,e),i=t.year()+1):(i=t.year(),r=u),{week:r,year:i}}function Et(t,n,e){var r=wt(t,n,e),i=wt(t+1,n,e);return(_t(t)-r+i)/7}function Mt(t,n,e){return null!=t?t:null!=n?n:e}function St(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Dt(t){var n,e,r,i,a=[];if(!t._d){for(r=St(t),t._w&&null==t._a[Wr]&&null==t._a[$r]&&Ct(t),t._dayOfYear&&(i=Mt(t._a[Ur],r[Ur]),t._dayOfYear>_t(i)&&(h(t)._overflowDayOfYear=!0),e=vt(i,0,t._dayOfYear),t._a[$r]=e.getUTCMonth(),t._a[Wr]=e.getUTCDate()),n=0;3>n&&null==t._a[n];++n)t._a[n]=a[n]=r[n];for(;7>n;n++)t._a[n]=a[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[zr]&&0===t._a[qr]&&0===t._a[Gr]&&0===t._a[Hr]&&(t._nextDay=!0,t._a[zr]=0),t._d=(t._useUTC?vt:mt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[zr]=24)}}function Ct(t){var n,e,r,i,a,u,o,s;n=t._w,null!=n.GG||null!=n.W||null!=n.E?(a=1,u=4,e=Mt(n.GG,t._a[Ur],kt(Rt(),1,4).year),r=Mt(n.W,1),i=Mt(n.E,1),(1>i||i>7)&&(s=!0)):(a=t._locale._week.dow,u=t._locale._week.doy,e=Mt(n.gg,t._a[Ur],kt(Rt(),a,u).year),r=Mt(n.w,1),null!=n.d?(i=n.d,(0>i||i>6)&&(s=!0)):null!=n.e?(i=n.e+a,(n.e<0||n.e>6)&&(s=!0)):i=a),1>r||r>Et(e,a,u)?h(t)._overflowWeeks=!0:null!=s?h(t)._overflowWeekday=!0:(o=At(e,r,i,a,u),t._a[Ur]=o.year,t._dayOfYear=o.dayOfYear)}function Tt(t){if(t._f===e.ISO_8601)return void gt(t);t._a=[],h(t).empty=!0;var n,r,i,a,u,o=\"\"+t._i,s=o.length,c=0;for(i=Z(t._f,t._locale).match(vr)||[],n=0;n<i.length;n++)a=i[n],r=(o.match(K(a,t))||[])[0],r&&(u=o.substr(0,o.indexOf(r)),u.length>0&&h(t).unusedInput.push(u),o=o.slice(o.indexOf(r)+r.length),c+=r.length),xr[a]?(r?h(t).empty=!1:h(t).unusedTokens.push(a),et(a,r,t)):t._strict&&!r&&h(t).unusedTokens.push(a);h(t).charsLeftOver=s-c,o.length>0&&h(t).unusedInput.push(o),h(t).bigHour===!0&&t._a[zr]<=12&&t._a[zr]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[zr]=Ft(t._locale,t._a[zr],t._meridiem),Dt(t),pt(t)}function Ft(t,n,e){var r;return null==e?n:null!=t.meridiemHour?t.meridiemHour(n,e):null!=t.isPM?(r=t.isPM(e),r&&12>n&&(n+=12),r||12!==n||(n=0),n):n}function Ot(t){var n,e,r,i,a;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(0/0));for(i=0;i<t._f.length;i++)a=0,n=g({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[i],Tt(n),f(n)&&(a+=h(n).charsLeftOver,a+=10*h(n).unusedTokens.length,h(n).score=a,(null==r||r>a)&&(r=a,e=n));s(t,e||n)}function Lt(t){if(!t._d){var n=j(t._i);t._a=u([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),Dt(t)}}function It(t){var n=new y(pt(Bt(t)));return n._nextDay&&(n.add(1,\"d\"),n._nextDay=void 0),n}function Bt(t){var n=t._i,e=t._f;return t._locale=t._locale||B(t._l),null===n||void 0===e&&\"\"===n?d({nullInput:!0}):(\"string\"==typeof n&&(t._i=n=t._locale.preparse(n)),m(n)?new y(pt(n)):(i(e)?Ot(t):e?Tt(t):a(n)?t._d=n:Nt(t),f(t)||(t._d=null),t))}function Nt(t){var n=t._i;void 0===n?t._d=new Date(e.now()):a(n)?t._d=new Date(n.valueOf()):\"string\"==typeof n?yt(t):i(n)?(t._a=u(n.slice(0),function(t){return parseInt(t,10)}),Dt(t)):\"object\"==typeof n?Lt(t):\"number\"==typeof n?t._d=new Date(n):e.createFromInputFallback(t)}function Pt(t,n,e,r,i){var a={};return\"boolean\"==typeof e&&(r=e,e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=e,a._i=t,a._f=n,a._strict=r,It(a)}function Rt(t,n,e,r){return Pt(t,n,e,r,!1)}function jt(t,n){var e,r;if(1===n.length&&i(n[0])&&(n=n[0]),!n.length)return Rt();for(e=n[0],r=1;r<n.length;++r)(!n[r].isValid()||n[r][t](e))&&(e=n[r]);return e}function Yt(){var t=[].slice.call(arguments,0);return jt(\"isBefore\",t)}function Ut(){var t=[].slice.call(arguments,0);return jt(\"isAfter\",t)}function $t(t){var n=j(t),e=n.year||0,r=n.quarter||0,i=n.month||0,a=n.week||0,u=n.day||0,o=n.hour||0,s=n.minute||0,c=n.second||0,l=n.millisecond||0;this._milliseconds=+l+1e3*c+6e4*s+1e3*o*60*60,this._days=+u+7*a,this._months=+i+3*r+12*e,this._data={},this._locale=B(),this._bubble()}function Wt(t){return t instanceof $t}function zt(t,n){q(t,0,0,function(){var t=this.utcOffset(),e=\"+\";return 0>t&&(t=-t,e=\"-\"),e+z(~~(t/60),2)+n+z(~~t%60,2)})}function qt(t,n){var e=(n||\"\").match(t)||[],r=e[e.length-1]||[],i=(r+\"\").match(hi)||[\"-\",0,0],a=+(60*i[1])+_(i[2]);return\"+\"===i[0]?a:-a}function Gt(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(m(t)||a(t)?t.valueOf():Rt(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),e.updateOffset(r,!1),r):Rt(t).local()}function Ht(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Vt(t,n){var r,i=this._offset||0;return this.isValid()?null!=t?(\"string\"==typeof t?t=qt(Nr,t):Math.abs(t)<16&&(t=60*t),!this._isUTC&&n&&(r=Ht(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,\"m\"),i!==t&&(!n||this._changeInProgress?fn(this,un(t-i,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Ht(this):null!=t?this:0/0}function Zt(t,n){return null!=t?(\"string\"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()}function Xt(t){return this.utcOffset(0,t)}function Kt(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ht(this),\"m\")),this}function Qt(){return this._tzm?this.utcOffset(this._tzm):\"string\"==typeof this._i&&this.utcOffset(qt(Br,this._i)),this}function Jt(t){return this.isValid()?(t=t?Rt(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function tn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function nn(){if(!p(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=Bt(t),t._a){var n=t._isUTC?c(t._a):Rt(t._a);this._isDSTShifted=this.isValid()&&b(t._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function en(){return this.isValid()?!this._isUTC:!1}function rn(){return this.isValid()?this._isUTC:!1}function an(){return this.isValid()?this._isUTC&&0===this._offset:!1}function un(t,n){var e,r,i,a=t,u=null;return Wt(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:\"number\"==typeof t?(a={},n?a[n]=t:a.milliseconds=t):(u=fi.exec(t))?(e=\"-\"===u[1]?-1:1,a={y:0,d:_(u[Wr])*e,h:_(u[zr])*e,m:_(u[qr])*e,s:_(u[Gr])*e,ms:_(u[Hr])*e}):(u=di.exec(t))?(e=\"-\"===u[1]?-1:1,a={y:on(u[2],e),M:on(u[3],e),w:on(u[4],e),d:on(u[5],e),h:on(u[6],e),m:on(u[7],e),s:on(u[8],e)}):null==a?a={}:\"object\"==typeof a&&(\"from\"in a||\"to\"in a)&&(i=cn(Rt(a.from),Rt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new $t(a),Wt(t)&&o(t,\"_locale\")&&(r._locale=t._locale),r}function on(t,n){var e=t&&parseFloat(t.replace(\",\",\".\"));return(isNaN(e)?0:e)*n}function sn(t,n){var e={milliseconds:0,months:0};return e.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(e.months,\"M\").isAfter(n)&&--e.months,e.milliseconds=+n-+t.clone().add(e.months,\"M\"),e}function cn(t,n){var e;return t.isValid()&&n.isValid()?(n=Gt(n,t),t.isBefore(n)?e=sn(t,n):(e=sn(n,t),e.milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function ln(t){return 0>t?-1*Math.round(-1*t):Math.round(t)}function hn(t,n){return function(e,r){var i,a;return null===r||isNaN(+r)||(A(n,\"moment().\"+n+\"(period, number) is deprecated. Please use moment().\"+n+\"(number, period).\"),\na=e,e=r,r=a),e=\"string\"==typeof e?+e:e,i=un(e,r),fn(this,i,t),this}}function fn(t,n,r,i){var a=n._milliseconds,u=ln(n._days),o=ln(n._months);t.isValid()&&(i=null==i?!0:i,a&&t._d.setTime(t._d.valueOf()+a*r),u&&$(t,\"Date\",U(t,\"Date\")+u*r),o&&st(t,U(t,\"Month\")+o*r),i&&e.updateOffset(t,u||o))}function dn(t,n){var e=t||Rt(),r=Gt(e,this).startOf(\"day\"),i=this.diff(r,\"days\",!0),a=-6>i?\"sameElse\":-1>i?\"lastWeek\":0>i?\"lastDay\":1>i?\"sameDay\":2>i?\"nextDay\":7>i?\"nextWeek\":\"sameElse\",u=n&&(k(n[a])?n[a]():n[a]);return this.format(u||this.localeData().calendar(a,this,Rt(e)))}function pn(){return new y(this)}function gn(t,n){var e=m(t)?t:Rt(t);return this.isValid()&&e.isValid()?(n=R(p(n)?\"millisecond\":n),\"millisecond\"===n?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(n).valueOf()):!1}function yn(t,n){var e=m(t)?t:Rt(t);return this.isValid()&&e.isValid()?(n=R(p(n)?\"millisecond\":n),\"millisecond\"===n?this.valueOf()<e.valueOf():this.clone().endOf(n).valueOf()<e.valueOf()):!1}function mn(t,n,e,r){return r=r||\"()\",(\"(\"===r[0]?this.isAfter(t,e):!this.isBefore(t,e))&&(\")\"===r[1]?this.isBefore(n,e):!this.isAfter(n,e))}function vn(t,n){var e,r=m(t)?t:Rt(t);return this.isValid()&&r.isValid()?(n=R(n||\"millisecond\"),\"millisecond\"===n?this.valueOf()===r.valueOf():(e=r.valueOf(),this.clone().startOf(n).valueOf()<=e&&e<=this.clone().endOf(n).valueOf())):!1}function _n(t,n){return this.isSame(t,n)||this.isAfter(t,n)}function bn(t,n){return this.isSame(t,n)||this.isBefore(t,n)}function xn(t,n,e){var r,i,a,u;return this.isValid()?(r=Gt(t,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),n=R(n),\"year\"===n||\"month\"===n||\"quarter\"===n?(u=wn(this,r),\"quarter\"===n?u/=3:\"year\"===n&&(u/=12)):(a=this-r,u=\"second\"===n?a/1e3:\"minute\"===n?a/6e4:\"hour\"===n?a/36e5:\"day\"===n?(a-i)/864e5:\"week\"===n?(a-i)/6048e5:a),e?u:v(u)):0/0):0/0}function wn(t,n){var e,r,i=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(i,\"months\");return 0>n-a?(e=t.clone().add(i-1,\"months\"),r=(n-a)/(a-e)):(e=t.clone().add(i+1,\"months\"),r=(n-a)/(e-a)),-(i+r)||0}function An(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")}function kn(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?k(Date.prototype.toISOString)?this.toDate().toISOString():V(t,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\"):V(t,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}function En(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=V(this,t);return this.localeData().postformat(n)}function Mn(t,n){return this.isValid()&&(m(t)&&t.isValid()||Rt(t).isValid())?un({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Sn(t){return this.from(Rt(),t)}function Dn(t,n){return this.isValid()&&(m(t)&&t.isValid()||Rt(t).isValid())?un({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Cn(t){return this.to(Rt(),t)}function Tn(t){var n;return void 0===t?this._locale._abbr:(n=B(t),null!=n&&(this._locale=n),this)}function Fn(){return this._locale}function On(t){switch(t=R(t)){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}return\"week\"===t&&this.weekday(0),\"isoWeek\"===t&&this.isoWeekday(1),\"quarter\"===t&&this.month(3*Math.floor(this.month()/3)),this}function Ln(t){return t=R(t),void 0===t||\"millisecond\"===t?this:(\"date\"===t&&(t=\"day\"),this.startOf(t).add(1,\"isoWeek\"===t?\"week\":t).subtract(1,\"ms\"))}function In(){return this._d.valueOf()-6e4*(this._offset||0)}function Bn(){return Math.floor(this.valueOf()/1e3)}function Nn(){return this._offset?new Date(this.valueOf()):this._d}function Pn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Rn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function jn(){return this.isValid()?this.toISOString():null}function Yn(){return f(this)}function Un(){return s({},h(this))}function $n(){return h(this).overflow}function Wn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function zn(t,n){q(0,[t,t.length],0,n)}function qn(t){return Zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gn(t){return Zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Hn(){return Et(this.year(),1,4)}function Vn(){var t=this.localeData()._week;return Et(this.year(),t.dow,t.doy)}function Zn(t,n,e,r,i){var a;return null==t?kt(this,r,i).year:(a=Et(t,r,i),n>a&&(n=a),Xn.call(this,t,n,e,r,i))}function Xn(t,n,e,r,i){var a=At(t,n,e,r,i),u=vt(a.year,0,a.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}function Kn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Qn(t){return kt(t,this._week.dow,this._week.doy).week}function Jn(){return this._week.dow}function te(){return this._week.doy}function ne(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),\"d\")}function ee(t){var n=kt(this,1,4).week;return null==t?n:this.add(7*(t-n),\"d\")}function re(t,n){return\"string\"!=typeof t?t:isNaN(t)?(t=n.weekdaysParse(t),\"number\"==typeof t?t:null):parseInt(t,10)}function ie(t,n){return i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?\"format\":\"standalone\"][t.day()]}function ae(t){return this._weekdaysShort[t.day()]}function ue(t){return this._weekdaysMin[t.day()]}function oe(t,n,e){var r,i,a,u=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;7>r;++r)a=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,\"\").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,\"\").toLocaleLowerCase();return e?\"dddd\"===n?(i=gr.call(this._weekdaysParse,u),-1!==i?i:null):\"ddd\"===n?(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:null):(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:null):\"dddd\"===n?(i=gr.call(this._weekdaysParse,u),-1!==i?i:(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:null))):\"ddd\"===n?(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:(i=gr.call(this._weekdaysParse,u),-1!==i?i:(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:null))):(i=gr.call(this._minWeekdaysParse,u),-1!==i?i:(i=gr.call(this._weekdaysParse,u),-1!==i?i:(i=gr.call(this._shortWeekdaysParse,u),-1!==i?i:null)))}function se(t,n,e){var r,i,a;if(this._weekdaysParseExact)return oe.call(this,t,n,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;7>r;r++){if(i=c([2e3,1]).day(r),e&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp(\"^\"+this.weekdays(i,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._shortWeekdaysParse[r]=new RegExp(\"^\"+this.weekdaysShort(i,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._minWeekdaysParse[r]=new RegExp(\"^\"+this.weekdaysMin(i,\"\").replace(\".\",\".?\")+\"$\",\"i\")),this._weekdaysParse[r]||(a=\"^\"+this.weekdays(i,\"\")+\"|^\"+this.weekdaysShort(i,\"\")+\"|^\"+this.weekdaysMin(i,\"\"),this._weekdaysParse[r]=new RegExp(a.replace(\".\",\"\"),\"i\")),e&&\"dddd\"===n&&this._fullWeekdaysParse[r].test(t))return r;if(e&&\"ddd\"===n&&this._shortWeekdaysParse[r].test(t))return r;if(e&&\"dd\"===n&&this._minWeekdaysParse[r].test(t))return r;if(!e&&this._weekdaysParse[r].test(t))return r}}function ce(t){if(!this.isValid())return null!=t?this:0/0;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=re(t,this.localeData()),this.add(t-n,\"d\")):n}function le(t){if(!this.isValid())return null!=t?this:0/0;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,\"d\")}function he(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:0/0}function fe(t){return this._weekdaysParseExact?(o(this,\"_weekdaysRegex\")||ge.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex}function de(t){return this._weekdaysParseExact?(o(this,\"_weekdaysRegex\")||ge.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function pe(t){return this._weekdaysParseExact?(o(this,\"_weekdaysRegex\")||ge.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function ge(){function t(t,n){return n.length-t.length}var n,e,r,i,a,u=[],o=[],s=[],l=[];for(n=0;7>n;n++)e=c([2e3,1]).day(n),r=this.weekdaysMin(e,\"\"),i=this.weekdaysShort(e,\"\"),a=this.weekdays(e,\"\"),u.push(r),o.push(i),s.push(a),l.push(r),l.push(i),l.push(a);for(u.sort(t),o.sort(t),s.sort(t),l.sort(t),n=0;7>n;n++)o[n]=J(o[n]),s[n]=J(s[n]),l[n]=J(l[n]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\")}function ye(t){var n=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==t?n:this.add(t-n,\"d\")}function me(){return this.hours()%12||12}function ve(){return this.hours()||24}function _e(t,n){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function be(t,n){return n._meridiemParse}function xe(t){return\"p\"===(t+\"\").toLowerCase().charAt(0)}function we(t,n,e){return t>11?e?\"pm\":\"PM\":e?\"am\":\"AM\"}function Ae(t,n){n[Hr]=_(1e3*(\"0.\"+t))}function ke(){return this._isUTC?\"UTC\":\"\"}function Ee(){return this._isUTC?\"Coordinated Universal Time\":\"\"}function Me(t){return Rt(1e3*t)}function Se(){return Rt.apply(null,arguments).parseZone()}function De(t,n,e){var r=this._calendar[t];return k(r)?r.call(n,e):r}function Ce(t){var n=this._longDateFormat[t],e=this._longDateFormat[t.toUpperCase()];return n||!e?n:(this._longDateFormat[t]=e.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function Te(){return this._invalidDate}function Fe(t){return this._ordinal.replace(\"%d\",t)}function Oe(t){return t}function Le(t,n,e,r){var i=this._relativeTime[e];return k(i)?i(t,n,e,r):i.replace(/%d/i,t)}function Ie(t,n){var e=this._relativeTime[t>0?\"future\":\"past\"];return k(e)?e(n):e.replace(/%s/i,n)}function Be(t,n,e,r){var i=B(),a=c().set(r,n);return i[e](a,t)}function Ne(t,n,e){if(\"number\"==typeof t&&(n=t,t=void 0),t=t||\"\",null!=n)return Be(t,n,e,\"month\");var r,i=[];for(r=0;12>r;r++)i[r]=Be(t,r,e,\"month\");return i}function Pe(t,n,e,r){\"boolean\"==typeof t?(\"number\"==typeof n&&(e=n,n=void 0),n=n||\"\"):(n=t,e=n,t=!1,\"number\"==typeof n&&(e=n,n=void 0),n=n||\"\");var i=B(),a=t?i._week.dow:0;if(null!=e)return Be(n,(e+a)%7,r,\"day\");var u,o=[];for(u=0;7>u;u++)o[u]=Be(n,(u+a)%7,r,\"day\");return o}function Re(t,n){return Ne(t,n,\"months\")}function je(t,n){return Ne(t,n,\"monthsShort\")}function Ye(t,n,e){return Pe(t,n,e,\"weekdays\")}function Ue(t,n,e){return Pe(t,n,e,\"weekdaysShort\")}function $e(t,n,e){return Pe(t,n,e,\"weekdaysMin\")}function We(){var t=this._data;return this._milliseconds=Yi(this._milliseconds),this._days=Yi(this._days),this._months=Yi(this._months),t.milliseconds=Yi(t.milliseconds),t.seconds=Yi(t.seconds),t.minutes=Yi(t.minutes),t.hours=Yi(t.hours),t.months=Yi(t.months),t.years=Yi(t.years),this}function ze(t,n,e,r){var i=un(n,e);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function qe(t,n){return ze(this,t,n,1)}function Ge(t,n){return ze(this,t,n,-1)}function He(t){return 0>t?Math.floor(t):Math.ceil(t)}function Ve(){var t,n,e,r,i,a=this._milliseconds,u=this._days,o=this._months,s=this._data;return a>=0&&u>=0&&o>=0||0>=a&&0>=u&&0>=o||(a+=864e5*He(Xe(o)+u),u=0,o=0),s.milliseconds=a%1e3,t=v(a/1e3),s.seconds=t%60,n=v(t/60),s.minutes=n%60,e=v(n/60),s.hours=e%24,u+=v(e/24),i=v(Ze(u)),o+=i,u-=He(Xe(i)),r=v(o/12),o%=12,s.days=u,s.months=o,s.years=r,this}function Ze(t){return 4800*t/146097}function Xe(t){return 146097*t/4800}function Ke(t){var n,e,r=this._milliseconds;if(t=R(t),\"month\"===t||\"year\"===t)return n=this._days+r/864e5,e=this._months+Ze(n),\"month\"===t?e:e/12;switch(n=this._days+Math.round(Xe(this._months)),t){case\"week\":return n/7+r/6048e5;case\"day\":return n+r/864e5;case\"hour\":return 24*n+r/36e5;case\"minute\":return 1440*n+r/6e4;case\"second\":return 86400*n+r/1e3;case\"millisecond\":return Math.floor(864e5*n)+r;default:throw new Error(\"Unknown unit \"+t)}}function Qe(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12)}function Je(t){return function(){return this.as(t)}}function tr(t){return t=R(t),this[t+\"s\"]()}function nr(t){return function(){return this._data[t]}}function er(){return v(this.days()/7)}function rr(t,n,e,r,i){return i.relativeTime(n||1,!!e,t,r)}function ir(t,n,e){var r=un(t).abs(),i=ea(r.as(\"s\")),a=ea(r.as(\"m\")),u=ea(r.as(\"h\")),o=ea(r.as(\"d\")),s=ea(r.as(\"M\")),c=ea(r.as(\"y\")),l=i<ra.s&&[\"s\",i]||1>=a&&[\"m\"]||a<ra.m&&[\"mm\",a]||1>=u&&[\"h\"]||u<ra.h&&[\"hh\",u]||1>=o&&[\"d\"]||o<ra.d&&[\"dd\",o]||1>=s&&[\"M\"]||s<ra.M&&[\"MM\",s]||1>=c&&[\"y\"]||[\"yy\",c];return l[2]=n,l[3]=+t>0,l[4]=e,rr.apply(null,l)}function ar(t,n){return void 0===ra[t]?!1:void 0===n?ra[t]:(ra[t]=n,!0)}function ur(t){var n=this.localeData(),e=ir(this,!t,n);return t&&(e=n.pastFuture(+this,e)),n.postformat(e)}function or(){var t,n,e,r=ia(this._milliseconds)/1e3,i=ia(this._days),a=ia(this._months);t=v(r/60),n=v(t/60),r%=60,t%=60,e=v(a/12),a%=12;var u=e,o=a,s=i,c=n,l=t,h=r,f=this.asSeconds();return f?(0>f?\"-\":\"\")+\"P\"+(u?u+\"Y\":\"\")+(o?o+\"M\":\"\")+(s?s+\"D\":\"\")+(c||l||h?\"T\":\"\")+(c?c+\"H\":\"\")+(l?l+\"M\":\"\")+(h?h+\"S\":\"\"):\"P0D\"}var sr,cr;cr=Array.prototype.some?Array.prototype.some:function(t){for(var n=Object(this),e=n.length>>>0,r=0;e>r;r++)if(r in n&&t.call(this,n[r],r,n))return!0;return!1};var lr=e.momentProperties=[],hr=!1,fr={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var dr;dr=Object.keys?Object.keys:function(t){var n,e=[];for(n in t)o(t,n)&&e.push(n);return e};var pr,gr,yr={},mr={},vr=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,_r=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,br={},xr={},wr=/\\d/,Ar=/\\d\\d/,kr=/\\d{3}/,Er=/\\d{4}/,Mr=/[+-]?\\d{6}/,Sr=/\\d\\d?/,Dr=/\\d\\d\\d\\d?/,Cr=/\\d\\d\\d\\d\\d\\d?/,Tr=/\\d{1,3}/,Fr=/\\d{1,4}/,Or=/[+-]?\\d{1,6}/,Lr=/\\d+/,Ir=/[+-]?\\d+/,Br=/Z|[+-]\\d\\d:?\\d\\d/gi,Nr=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi,Pr=/[+-]?\\d+(\\.\\d{1,3})?/,Rr=/[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i,jr={},Yr={},Ur=0,$r=1,Wr=2,zr=3,qr=4,Gr=5,Hr=6,Vr=7,Zr=8;gr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},q(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1}),q(\"MMM\",0,0,function(t){return this.localeData().monthsShort(this,t)}),q(\"MMMM\",0,0,function(t){return this.localeData().months(this,t)}),P(\"month\",\"M\"),X(\"M\",Sr),X(\"MM\",Sr,Ar),X(\"MMM\",function(t,n){return n.monthsShortRegex(t)}),X(\"MMMM\",function(t,n){return n.monthsRegex(t)}),tt([\"M\",\"MM\"],function(t,n){n[$r]=_(t)-1}),tt([\"MMM\",\"MMMM\"],function(t,n,e,r){var i=e._locale.monthsParse(t,r,e._strict);null!=i?n[$r]=i:h(e).invalidMonth=t});var Xr=/D[oD]?(\\[[^\\[\\]]*\\]|\\s+)+MMMM?/,Kr=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),Qr=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),Jr=Rr,ti=Rr,ni=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?/,ei=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?/,ri=/Z|[+-]\\d\\d(?::?\\d\\d)?/,ii=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],ai=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],ui=/^\\/?Date\\((\\-?\\d+)/i;e.createFromInputFallback=w(\"moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.\",function(t){t._d=new Date(t._i+(t._useUTC?\" UTC\":\"\"))}),q(\"Y\",0,0,function(){var t=this.year();return 9999>=t?\"\"+t:\"+\"+t}),q(0,[\"YY\",2],0,function(){return this.year()%100}),q(0,[\"YYYY\",4],0,\"year\"),q(0,[\"YYYYY\",5],0,\"year\"),q(0,[\"YYYYYY\",6,!0],0,\"year\"),P(\"year\",\"y\"),X(\"Y\",Ir),X(\"YY\",Sr,Ar),X(\"YYYY\",Fr,Er),X(\"YYYYY\",Or,Mr),X(\"YYYYYY\",Or,Mr),tt([\"YYYYY\",\"YYYYYY\"],Ur),tt(\"YYYY\",function(t,n){n[Ur]=2===t.length?e.parseTwoDigitYear(t):_(t)}),tt(\"YY\",function(t,n){n[Ur]=e.parseTwoDigitYear(t)}),tt(\"Y\",function(t,n){n[Ur]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return _(t)+(_(t)>68?1900:2e3)};var oi=Y(\"FullYear\",!0);e.ISO_8601=function(){};var si=w(\"moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548\",function(){var t=Rt.apply(null,arguments);return this.isValid()&&t.isValid()?this>t?this:t:d()}),ci=w(\"moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548\",function(){var t=Rt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:d()}),li=function(){return Date.now?Date.now():+new Date};zt(\"Z\",\":\"),zt(\"ZZ\",\"\"),X(\"Z\",Nr),X(\"ZZ\",Nr),tt([\"Z\",\"ZZ\"],function(t,n,e){e._useUTC=!0,e._tzm=qt(Nr,t)});var hi=/([\\+\\-]|\\d\\d)/gi;e.updateOffset=function(){};var fi=/^(\\-)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)\\.?(\\d{3})?\\d*)?$/,di=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;un.fn=$t.prototype;var pi=hn(1,\"add\"),gi=hn(-1,\"subtract\");e.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",e.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var yi=w(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(t){return void 0===t?this.localeData():this.locale(t)});q(0,[\"gg\",2],0,function(){return this.weekYear()%100}),q(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),zn(\"gggg\",\"weekYear\"),zn(\"ggggg\",\"weekYear\"),zn(\"GGGG\",\"isoWeekYear\"),zn(\"GGGGG\",\"isoWeekYear\"),P(\"weekYear\",\"gg\"),P(\"isoWeekYear\",\"GG\"),X(\"G\",Ir),X(\"g\",Ir),X(\"GG\",Sr,Ar),X(\"gg\",Sr,Ar),X(\"GGGG\",Fr,Er),X(\"gggg\",Fr,Er),X(\"GGGGG\",Or,Mr),X(\"ggggg\",Or,Mr),nt([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(t,n,e,r){n[r.substr(0,2)]=_(t)}),nt([\"gg\",\"GG\"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),q(\"Q\",0,\"Qo\",\"quarter\"),P(\"quarter\",\"Q\"),X(\"Q\",wr),tt(\"Q\",function(t,n){n[$r]=3*(_(t)-1)}),q(\"w\",[\"ww\",2],\"wo\",\"week\"),q(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),P(\"week\",\"w\"),P(\"isoWeek\",\"W\"),X(\"w\",Sr),X(\"ww\",Sr,Ar),X(\"W\",Sr),X(\"WW\",Sr,Ar),nt([\"w\",\"ww\",\"W\",\"WW\"],function(t,n,e,r){n[r.substr(0,1)]=_(t)});var mi={dow:0,doy:6};q(\"D\",[\"DD\",2],\"Do\",\"date\"),P(\"date\",\"D\"),X(\"D\",Sr),X(\"DD\",Sr,Ar),X(\"Do\",function(t,n){return t?n._ordinalParse:n._ordinalParseLenient}),tt([\"D\",\"DD\"],Wr),tt(\"Do\",function(t,n){n[Wr]=_(t.match(Sr)[0],10)});var vi=Y(\"Date\",!0);q(\"d\",0,\"do\",\"day\"),q(\"dd\",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q(\"ddd\",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q(\"dddd\",0,0,function(t){return this.localeData().weekdays(this,t)}),q(\"e\",0,0,\"weekday\"),q(\"E\",0,0,\"isoWeekday\"),P(\"day\",\"d\"),P(\"weekday\",\"e\"),P(\"isoWeekday\",\"E\"),X(\"d\",Sr),X(\"e\",Sr),X(\"E\",Sr),X(\"dd\",function(t,n){return n.weekdaysMinRegex(t)}),X(\"ddd\",function(t,n){return n.weekdaysShortRegex(t)}),X(\"dddd\",function(t,n){return n.weekdaysRegex(t)}),nt([\"dd\",\"ddd\",\"dddd\"],function(t,n,e,r){var i=e._locale.weekdaysParse(t,r,e._strict);null!=i?n.d=i:h(e).invalidWeekday=t}),nt([\"d\",\"e\",\"E\"],function(t,n,e,r){n[r]=_(t)});var _i=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),bi=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),xi=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),wi=Rr,Ai=Rr,ki=Rr;q(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),P(\"dayOfYear\",\"DDD\"),X(\"DDD\",Tr),X(\"DDDD\",kr),tt([\"DDD\",\"DDDD\"],function(t,n,e){e._dayOfYear=_(t)}),q(\"H\",[\"HH\",2],0,\"hour\"),q(\"h\",[\"hh\",2],0,me),q(\"k\",[\"kk\",2],0,ve),q(\"hmm\",0,0,function(){return\"\"+me.apply(this)+z(this.minutes(),2)}),q(\"hmmss\",0,0,function(){return\"\"+me.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),q(\"Hmm\",0,0,function(){return\"\"+this.hours()+z(this.minutes(),2)}),q(\"Hmmss\",0,0,function(){return\"\"+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),_e(\"a\",!0),_e(\"A\",!1),P(\"hour\",\"h\"),X(\"a\",be),X(\"A\",be),X(\"H\",Sr),X(\"h\",Sr),X(\"HH\",Sr,Ar),X(\"hh\",Sr,Ar),X(\"hmm\",Dr),X(\"hmmss\",Cr),X(\"Hmm\",Dr),X(\"Hmmss\",Cr),tt([\"H\",\"HH\"],zr),tt([\"a\",\"A\"],function(t,n,e){e._isPm=e._locale.isPM(t),e._meridiem=t}),tt([\"h\",\"hh\"],function(t,n,e){n[zr]=_(t),h(e).bigHour=!0}),tt(\"hmm\",function(t,n,e){var r=t.length-2;n[zr]=_(t.substr(0,r)),n[qr]=_(t.substr(r)),h(e).bigHour=!0}),tt(\"hmmss\",function(t,n,e){var r=t.length-4,i=t.length-2;n[zr]=_(t.substr(0,r)),n[qr]=_(t.substr(r,2)),n[Gr]=_(t.substr(i)),h(e).bigHour=!0}),tt(\"Hmm\",function(t,n){var e=t.length-2;n[zr]=_(t.substr(0,e)),n[qr]=_(t.substr(e))}),tt(\"Hmmss\",function(t,n){var e=t.length-4,r=t.length-2;n[zr]=_(t.substr(0,e)),n[qr]=_(t.substr(e,2)),n[Gr]=_(t.substr(r))});var Ei=/[ap]\\.?m?\\.?/i,Mi=Y(\"Hours\",!0);q(\"m\",[\"mm\",2],0,\"minute\"),P(\"minute\",\"m\"),X(\"m\",Sr),X(\"mm\",Sr,Ar),tt([\"m\",\"mm\"],qr);var Si=Y(\"Minutes\",!1);q(\"s\",[\"ss\",2],0,\"second\"),P(\"second\",\"s\"),X(\"s\",Sr),X(\"ss\",Sr,Ar),tt([\"s\",\"ss\"],Gr);var Di=Y(\"Seconds\",!1);q(\"S\",0,0,function(){return~~(this.millisecond()/100)}),q(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),q(0,[\"SSS\",3],0,\"millisecond\"),q(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),q(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),q(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),q(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),q(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),q(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),P(\"millisecond\",\"ms\"),X(\"S\",Tr,wr),X(\"SS\",Tr,Ar),X(\"SSS\",Tr,kr);var Ci;for(Ci=\"SSSS\";Ci.length<=9;Ci+=\"S\")X(Ci,Lr);for(Ci=\"S\";Ci.length<=9;Ci+=\"S\")tt(Ci,Ae);var Ti=Y(\"Milliseconds\",!1);q(\"z\",0,0,\"zoneAbbr\"),q(\"zz\",0,0,\"zoneName\");var Fi=y.prototype;Fi.add=pi,Fi.calendar=dn,Fi.clone=pn,Fi.diff=xn,Fi.endOf=Ln,Fi.format=En,Fi.from=Mn,Fi.fromNow=Sn,Fi.to=Dn,Fi.toNow=Cn,Fi.get=W,Fi.invalidAt=$n,Fi.isAfter=gn,Fi.isBefore=yn,Fi.isBetween=mn,Fi.isSame=vn,Fi.isSameOrAfter=_n,Fi.isSameOrBefore=bn,Fi.isValid=Yn,Fi.lang=yi,Fi.locale=Tn,Fi.localeData=Fn,Fi.max=ci,Fi.min=si,Fi.parsingFlags=Un,Fi.set=W,Fi.startOf=On,Fi.subtract=gi,Fi.toArray=Pn,Fi.toObject=Rn,Fi.toDate=Nn,Fi.toISOString=kn,Fi.toJSON=jn,Fi.toString=An,Fi.unix=Bn,Fi.valueOf=In,Fi.creationData=Wn,Fi.year=oi,Fi.isLeapYear=xt,Fi.weekYear=qn,Fi.isoWeekYear=Gn,Fi.quarter=Fi.quarters=Kn,Fi.month=ct,Fi.daysInMonth=lt,Fi.week=Fi.weeks=ne,Fi.isoWeek=Fi.isoWeeks=ee,Fi.weeksInYear=Vn,Fi.isoWeeksInYear=Hn,Fi.date=vi,Fi.day=Fi.days=ce,Fi.weekday=le,Fi.isoWeekday=he,Fi.dayOfYear=ye,Fi.hour=Fi.hours=Mi,Fi.minute=Fi.minutes=Si,Fi.second=Fi.seconds=Di,Fi.millisecond=Fi.milliseconds=Ti,Fi.utcOffset=Vt,Fi.utc=Xt,Fi.local=Kt,Fi.parseZone=Qt,Fi.hasAlignedHourOffset=Jt,Fi.isDST=tn,Fi.isDSTShifted=nn,Fi.isLocal=en,Fi.isUtcOffset=rn,Fi.isUtc=an,Fi.isUTC=an,Fi.zoneAbbr=ke,Fi.zoneName=Ee,Fi.dates=w(\"dates accessor is deprecated. Use date instead.\",vi),Fi.months=w(\"months accessor is deprecated. Use month instead\",ct),Fi.years=w(\"years accessor is deprecated. Use year instead\",oi),Fi.zone=w(\"moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779\",Zt);var Oi=Fi,Li={sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},Ii={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},Bi=\"Invalid date\",Ni=\"%d\",Pi=/\\d{1,2}/,Ri={future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},ji=D.prototype;ji._calendar=Li,ji.calendar=De,ji._longDateFormat=Ii,ji.longDateFormat=Ce,ji._invalidDate=Bi,ji.invalidDate=Te,ji._ordinal=Ni,ji.ordinal=Fe,ji._ordinalParse=Pi,ji.preparse=Oe,ji.postformat=Oe,ji._relativeTime=Ri,ji.relativeTime=Le,ji.pastFuture=Ie,ji.set=M,ji.months=it,ji._months=Kr,ji.monthsShort=at,ji._monthsShort=Qr,ji.monthsParse=ot,ji._monthsRegex=ti,ji.monthsRegex=ft,ji._monthsShortRegex=Jr,ji.monthsShortRegex=ht,ji.week=Qn,ji._week=mi,ji.firstDayOfYear=te,ji.firstDayOfWeek=Jn,ji.weekdays=ie,ji._weekdays=_i,ji.weekdaysMin=ue,ji._weekdaysMin=xi,ji.weekdaysShort=ae,ji._weekdaysShort=bi,ji.weekdaysParse=se,ji._weekdaysRegex=wi,ji.weekdaysRegex=fe,ji._weekdaysShortRegex=Ai,ji.weekdaysShortRegex=de,ji._weekdaysMinRegex=ki,ji.weekdaysMinRegex=pe,ji.isPM=xe,ji._meridiemParse=Ei,ji.meridiem=we,O(\"en\",{ordinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10,e=1===_(t%100/10)?\"th\":1===n?\"st\":2===n?\"nd\":3===n?\"rd\":\"th\";return t+e}}),e.lang=w(\"moment.lang is deprecated. Use moment.locale instead.\",O),e.langData=w(\"moment.langData is deprecated. Use moment.localeData instead.\",B);var Yi=Math.abs,Ui=Je(\"ms\"),$i=Je(\"s\"),Wi=Je(\"m\"),zi=Je(\"h\"),qi=Je(\"d\"),Gi=Je(\"w\"),Hi=Je(\"M\"),Vi=Je(\"y\"),Zi=nr(\"milliseconds\"),Xi=nr(\"seconds\"),Ki=nr(\"minutes\"),Qi=nr(\"hours\"),Ji=nr(\"days\"),ta=nr(\"months\"),na=nr(\"years\"),ea=Math.round,ra={s:45,m:45,h:22,d:26,M:11},ia=Math.abs,aa=$t.prototype;aa.abs=We,aa.add=qe,aa.subtract=Ge,aa.as=Ke,aa.asMilliseconds=Ui,aa.asSeconds=$i,aa.asMinutes=Wi,aa.asHours=zi,aa.asDays=qi,aa.asWeeks=Gi,aa.asMonths=Hi,aa.asYears=Vi,aa.valueOf=Qe,aa._bubble=Ve,aa.get=tr,aa.milliseconds=Zi,aa.seconds=Xi,aa.minutes=Ki,aa.hours=Qi,aa.days=Ji,aa.weeks=er,aa.months=ta,aa.years=na,aa.humanize=ur,aa.toISOString=or,aa.toString=or,aa.toJSON=or,aa.locale=Tn,aa.localeData=Fn,aa.toIsoString=w(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",or),aa.lang=yi,q(\"X\",0,0,\"unix\"),q(\"x\",0,0,\"valueOf\"),X(\"x\",Ir),X(\"X\",Pr),tt(\"X\",function(t,n,e){e._d=new Date(1e3*parseFloat(t,10))}),tt(\"x\",function(t,n,e){e._d=new Date(_(t))}),e.version=\"2.13.0\",r(Rt),e.fn=Oi,e.min=Yt,e.max=Ut,e.now=li,e.utc=c,e.unix=Me,e.months=Re,e.isDate=a,e.locale=O,e.invalid=d,e.duration=un,e.isMoment=m,e.weekdays=Ye,e.parseZone=Se,e.localeData=B,e.isDuration=Wt,e.monthsShort=je,e.weekdaysMin=$e,e.defineLocale=L,e.updateLocale=I,e.locales=N,e.weekdaysShort=Ue,e.normalizeUnits=R,e.relativeTimeThreshold=ar,e.prototype=Oi;var ua=e;return ua})},{}],105:[function(t,n,e){(function(t){function n(t,n){for(var e=0,r=t.length-1;r>=0;r--){var i=t[r];\".\"===i?t.splice(r,1):\"..\"===i?(t.splice(r,1),e++):e&&(t.splice(r,1),e--)}if(n)for(;e--;e)t.unshift(\"..\");return t}function r(t,n){if(t.filter)return t.filter(n);for(var e=[],r=0;r<t.length;r++)n(t[r],r,t)&&e.push(t[r]);return e}var i=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/,a=function(t){return i.exec(t).slice(1)};e.resolve=function(){for(var e=\"\",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var u=a>=0?arguments[a]:t.cwd();if(\"string\"!=typeof u)throw new TypeError(\"Arguments to path.resolve must be strings\");u&&(e=u+\"/\"+e,i=\"/\"===u.charAt(0))}return e=n(r(e.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),(i?\"/\":\"\")+e||\".\"},e.normalize=function(t){var i=e.isAbsolute(t),a=\"/\"===u(t,-1);return t=n(r(t.split(\"/\"),function(t){return!!t}),!i).join(\"/\"),t||i||(t=\".\"),t&&a&&(t+=\"/\"),(i?\"/\":\"\")+t},e.isAbsolute=function(t){return\"/\"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,function(t){if(\"string\"!=typeof t)throw new TypeError(\"Arguments to path.join must be strings\");return t}).join(\"/\"))},e.relative=function(t,n){function r(t){for(var n=0;n<t.length&&\"\"===t[n];n++);for(var e=t.length-1;e>=0&&\"\"===t[e];e--);return n>e?[]:t.slice(n,e-n+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split(\"/\")),a=r(n.split(\"/\")),u=Math.min(i.length,a.length),o=u,s=0;u>s;s++)if(i[s]!==a[s]){o=s;break}for(var c=[],s=o;s<i.length;s++)c.push(\"..\");return c=c.concat(a.slice(o)),c.join(\"/\")},e.sep=\"/\",e.delimiter=\":\",e.dirname=function(t){var n=a(t),e=n[0],r=n[1];return e||r?(r&&(r=r.substr(0,r.length-1)),e+r):\".\"},e.basename=function(t,n){var e=a(t)[2];return n&&e.substr(-1*n.length)===n&&(e=e.substr(0,e.length-n.length)),e},e.extname=function(t){return a(t)[3]};var u=\"b\"===\"ab\".substr(-1)?function(t,n,e){return t.substr(n,e)}:function(t,n,e){return 0>n&&(n=t.length+n),t.substr(n,e)}}).call(this,t(\"_process\"))},{_process:106}],106:[function(t,n){function e(){}var r=n.exports={};r.nextTick=function(){var t=\"undefined\"!=typeof window&&window.setImmediate,n=\"undefined\"!=typeof window&&window.MutationObserver,e=\"undefined\"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var r=[];if(n){var i=document.createElement(\"div\"),a=new MutationObserver(function(){var t=r.slice();r.length=0,t.forEach(function(t){t()})});return a.observe(i,{attributes:!0}),function(t){r.length||i.setAttribute(\"yes\",\"no\"),r.push(t)}}return e?(window.addEventListener(\"message\",function(t){var n=t.source;if((n===window||null===n)&&\"process-tick\"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage(\"process-tick\",\"*\")}):function(t){setTimeout(t,0)}}(),r.title=\"browser\",r.browser=!0,r.env={},r.argv=[],r.on=e,r.addListener=e,r.once=e,r.off=e,r.removeListener=e,r.removeAllListeners=e,r.emit=e,r.binding=function(){throw new Error(\"process.binding is not supported\")},r.cwd=function(){return\"/\"},r.chdir=function(){throw new Error(\"process.chdir is not supported\")}},{}],107:[function(t,n){n.exports={name:\"mermaid\",version:\"7.0.0\",description:\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.\",main:\"src/mermaid.js\",keywords:[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\"],bin:{mermaid:\"./bin/mermaid.js\"},scripts:{live:\"live-server ./test/examples\",lint:\"node node_modules/eslint/bin/eslint.js src\",jison:\"gulp jison_legacy\",karma:\"node node_modules/karma/bin/karma start karma.conf.js --single-run\",watch:\"source ./scripts/watch.sh\",doc:\"rm -r build;rm -r dist/www;gulp vartree;cp dist/www/all.html ../mermaid-pages/index.html;cp dist/mermaid.js ../mermaid-pages/javascripts/lib;cp dist/mermaid.forest.css ../mermaid-pages/stylesheets\",tape:\"node node_modules/tape/bin/tape test/cli_test-*.js\",jasmine:\"npm run jison &&node node_modules/jasmine-es6/bin/jasmine.js\",pretest:\"npm run jison\",test:\"npm run dist && npm run karma && npm run tape\",\"dist-slim-mermaid\":\"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.slim.js -x d3 && cat dist/mermaid.slim.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaid.slim.min.js\",\"dist-slim-mermaidAPI\":\"node node_modules/browserify/bin/cmd.js src/mermaidAPI.js -t babelify -s mermaidAPI -o dist/mermaidAPI.slim.js -x d3 && cat dist/mermaidAPI.slim.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaidAPI.slim.min.js\",\n\"dist-mermaid\":\"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.js && cat dist/mermaid.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaid.min.js\",\"dist-mermaid-nomin\":\"node node_modules/browserify/bin/cmd.js src/mermaid.js -t babelify -s mermaid -o dist/mermaid.js\",\"dist-mermaidAPI\":\"node node_modules/browserify/bin/cmd.js src/mermaidAPI.js -t babelify -s mermaidAPI -o dist/mermaidAPI.js && cat dist/mermaidAPI.js | node node_modules/uglifyjs/bin/uglifyjs -mc > dist/mermaidAPI.min.js\",dist:\"npm run dist-slim-mermaid && npm run dist-slim-mermaidAPI && npm run dist-mermaid && npm run dist-mermaidAPI\"},repository:{type:\"git\",url:\"https://github.com/knsv/mermaid\"},author:\"Knut Sveidqvist\",license:\"MIT\",dependencies:{chalk:\"^0.5.1\",d3:\"3.5.6\",dagre:\"^0.7.4\",\"dagre-d3\":\"0.4.10\",he:\"^0.5.0\",lodash:\"^4.6.1\",minimist:\"^1.1.0\",mkdirp:\"^0.5.0\",moment:\"^2.9.0\",semver:\"^4.1.1\",which:\"^1.0.8\"},devDependencies:{async:\"^0.9.0\",\"babel-eslint\":\"^4.1.3\",babelify:\"^6.4.0\",browserify:\"~6.2.0\",clone:\"^0.2.0\",\"codeclimate-test-reporter\":\"0.0.4\",dateformat:\"^1.0.11\",dox:\"^0.8.0\",eslint:\"^1.6.0\",\"eslint-watch\":\"^2.1.2\",\"event-stream\":\"^3.2.0\",foundation:\"^4.2.1-1\",\"front-matter\":\"^0.2.0\",gulp:\"~3.9.0\",\"gulp-bower\":\"0.0.10\",\"gulp-browserify\":\"^0.5.0\",\"gulp-bump\":\"^0.1.11\",\"gulp-concat\":\"~2.4.1\",\"gulp-data\":\"^1.1.1\",\"gulp-dox\":\"^0.1.6\",\"gulp-ext-replace\":\"^0.2.0\",\"gulp-filelog\":\"^0.4.1\",\"gulp-front-matter\":\"^1.2.3\",\"gulp-hogan\":\"^1.1.0\",\"gulp-if\":\"^1.2.5\",\"gulp-insert\":\"^0.4.0\",\"gulp-istanbul\":\"^0.4.0\",\"gulp-jasmine\":\"~2.1.0\",\"gulp-jasmine-browser\":\"^0.2.3\",\"gulp-jison\":\"~1.2.0\",\"gulp-jshint\":\"^1.9.0\",\"gulp-less\":\"^3.0.1\",\"gulp-livereload\":\"^3.8.0\",\"gulp-marked\":\"^1.0.0\",\"gulp-mdvars\":\"^2.0.0\",\"gulp-qunit\":\"~1.2.1\",\"gulp-rename\":\"~1.2.0\",\"gulp-shell\":\"^0.2.10\",\"gulp-tag-version\":\"^1.2.1\",\"gulp-uglify\":\"~1.0.1\",\"gulp-util\":\"^3.0.7\",\"gulp-vartree\":\"^2.0.1\",\"hogan.js\":\"^3.0.2\",jasmine:\"2.3.2\",\"jasmine-es6\":\"0.0.18\",jison:\"zaach/jison\",jsdom:\"^7.0.2\",\"jshint-stylish\":\"^2.0.1\",karma:\"^0.13.15\",\"karma-babel-preprocessor\":\"^6.0.1\",\"karma-browserify\":\"^4.4.0\",\"karma-jasmine\":\"^0.3.6\",\"karma-phantomjs-launcher\":\"^0.2.1\",\"live-server\":\"^0.9.0\",\"map-stream\":\"0.0.6\",marked:\"^0.3.2\",\"mock-browser\":\"^0.91.34\",path:\"^0.4.9\",phantomjs:\"^2.1.3\",proxyquire:\"^1.7.3\",\"proxyquire-universal\":\"^1.0.8\",proxyquireify:\"^3.0.0\",\"require-dir\":\"^0.3.0\",rewire:\"^2.1.3\",rimraf:\"^2.2.8\",tape:\"^3.0.3\",testdom:\"^2.0.0\",uglifyjs:\"^2.4.10\",\"vinyl-source-stream\":\"^1.1.0\",watchify:\"^3.6.1\"}}},{}],108:[function(t,n){\"use strict\";var e;if(\"undefined\"!=typeof t)try{e=t(\"d3\")}catch(r){}e||(e=window.d3),n.exports=e,function(){var t=!1;if(t=\"tspans\",e.selection.prototype.textwrap)return!1;if(\"undefined\"==typeof t)var t=!1;e.selection.prototype.textwrap=e.selection.enter.prototype.textwrap=function(n,r){var i,r=parseInt(r)||0,a=this,u=function(t){var n=t[0][0],r=n.tagName.toString();if(\"rect\"!==r)return!1;var i={};return i.x=e.select(n).attr(\"x\")||0,i.y=e.select(n).attr(\"y\")||0,i.width=e.select(n).attr(\"width\")||0,i.height=e.select(n).attr(\"height\")||0,i.attr=t.attr,i},o=function(t){if(t.attr||(t.attr=function(t){return this[t]?this[t]:void 0}),\"object\"==typeof t&&\"undefined\"!=typeof t.x&&\"undefined\"!=typeof t.y&&\"undefined\"!=typeof t.width&&\"undefined\"!=typeof t.height)return t;if(\"function\"==typeof Array.isArray&&Array.isArray(t)||\"[object Array]\"===Object.prototype.toString.call(t)){var n=u(t);return n}return!1},s=function(t,n){var e=t;return 0!==n&&(e.x=parseInt(e.x)+n,e.y=parseInt(e.y)+n,e.width-=2*n,e.height-=2*n),e},c=o(n);if(r&&(c=s(c,r)),0!=a.length&&e&&n&&c){n=c;var l,h=function(t){var r=e.select(t[0].parentNode),a=r.select(\"text\"),u=a.style(\"line-height\"),o=a.text();a.remove();var s=r.append(\"foreignObject\");s.attr(\"requiredFeatures\",\"http://www.w3.org/TR/SVG11/feature#Extensibility\").attr(\"x\",n.x).attr(\"y\",n.y).attr(\"width\",n.width).attr(\"height\",n.height);var c=s.append(\"xhtml:div\").attr(\"class\",\"wrapped\");c.style(\"height\",n.height).style(\"width\",n.width).html(o),u&&c.style(\"line-height\",u),i=r.select(\"foreignObject\")},f=function(t){var a,u=t[0],o=u.parentNode,s=e.select(u),c=u.getBBox().height,l=u.getBBox().width,h=c,f=s.style(\"line-height\");if(a=f&&parseInt(f)?parseInt(f.replace(\"px\",\"\")):h,l>n.width){var d=s.text();if(s.text(\"\"),d){var p,g;if(-1!==d.indexOf(\" \")){var p=\" \";g=d.split(\" \")}else{p=\"\";var y=d.length,m=Math.ceil(l/n.width),v=Math.floor(y/m);v*m>=y||m++;for(var _,b,g=[],x=0;m>x;x++)b=x*v,_=d.substr(b,v),g.push(_)}for(var w=[],A=0,k={},x=0;x<g.length;x++){var E,M=g[x],S=s.text(),D=u.getComputedTextLength();E=S?S+p+M:M,s.text(E);var C=u.getComputedTextLength();if(C>n.width&&S&&\"\"!==S&&(A+=D,k={string:S,width:D,offset:A},w.push(k),s.text(\"\"),s.text(M),x==g.length-1&&(E=M,s.text(E),C=u.getComputedTextLength())),x==g.length-1){s.text(\"\");var T=E;T&&\"\"!==T&&(C-A>0&&(C-=A),k={string:T,width:C,offset:A},w.push(k))}}var F;s.text(\"\");for(var x=0;x<w.length;x++){var _=w[x].string;if(x>0){w[x-1]}x*a<n.height-1.5*a&&(F=s.append(\"tspan\").text(_),F.attr(\"dy\",function(){return x>0?a:void 0}),F.attr(\"x\",function(){var t=n.x;return r&&(t+=r),t}))}}}s.attr(\"y\",function(){var t=n.y;return a&&(t+=a),r&&(t+=r),t}),s.attr(\"x\",function(){var t=n.x;return r&&(t+=r),t}),i=e.select(o).selectAll(\"text\")};t&&(\"foreignobjects\"==t?l=h:\"tspans\"==t&&(l=f)),t||(l=\"undefined\"!=typeof SVGForeignObjectElement?h:f);for(var d=0;d<a.length;d++){var p=a[d];l(p)}return i}return a?a:!1}}()},{d3:2}],109:[function(t,n,e){\"use strict\";var r,i=t(\"../../logger\"),a=new i.Log,u=[];r={};e.addClass=function(t){\"undefined\"==typeof r[t]&&(r[t]={id:t,methods:[],members:[]})},e.clear=function(){u=[],r={}},n.exports.getClass=function(t){return r[t]},n.exports.getClasses=function(){return r},n.exports.getRelations=function(){return u},e.addRelation=function(t){a.warn(\"Adding relation: \"+JSON.stringify(t)),e.addClass(t.id1),e.addClass(t.id2),u.push(t)},e.addMembers=function(t,n){var e=r[t];\"string\"==typeof n&&(\")\"===n.substr(-1)?e.methods.push(n):e.members.push(n))},e.cleanupLabel=function(t){return\":\"===t.substring(0,1)?t.substr(2).trim():t.trim()},e.lineType={LINE:0,DOTTED_LINE:1},e.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}},{\"../../logger\":130}],110:[function(t,n){\"use strict\";var e=t(\"./parser/classDiagram\").parser,r=t(\"./classDb\");e.yy=r;var i,a=t(\"../../d3\"),u=t(\"../../logger\"),o=t(\"dagre\"),s=new u.Log;i={};var c=0,l={dividerMargin:10,padding:5,textHeight:14},h=function(t){var n,e=Object.keys(i);for(n=0;n<e.length;n++)if(i[e[n]].label===t)return e[n];return void 0},f=function(t){t.append(\"defs\").append(\"marker\").attr(\"id\",\"extensionStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 1,7 L18,13 V 1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"extensionEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 1,1 V 13 L18,7 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"compositionStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"compositionEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"aggregationStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"aggregationEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"dependencyStart\").attr(\"class\",\"extension\").attr(\"refX\",0).attr(\"refY\",7).attr(\"markerWidth\",190).attr(\"markerHeight\",240).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 5,7 L9,13 L1,7 L9,1 Z\"),t.append(\"defs\").append(\"marker\").attr(\"id\",\"dependencyEnd\").attr(\"refX\",19).attr(\"refY\",7).attr(\"markerWidth\",20).attr(\"markerHeight\",28).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 18,7 L9,13 L14,7 L9,1 Z\")},d=0,p=function(t,n,e){var i=function(t){switch(t){case r.relationType.AGGREGATION:return\"aggregation\";case r.relationType.EXTENSION:return\"extension\";case r.relationType.COMPOSITION:return\"composition\";case r.relationType.DEPENDENCY:return\"dependency\"}},u=n.points,o=a.svg.line().x(function(t){return t.x}).y(function(t){return t.y}).interpolate(\"basis\"),s=t.append(\"path\").attr(\"d\",o(u)).attr(\"id\",\"edge\"+d).attr(\"class\",\"relation\"),c=\"\";l.arrowMarkerAbsolute&&(c=window.location.protocol+\"//\"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\\(/g,\"\\\\(\"),c=c.replace(/\\)/g,\"\\\\)\")),\"none\"!==e.relation.type1&&s.attr(\"marker-start\",\"url(\"+c+\"#\"+i(e.relation.type1)+\"Start)\"),\"none\"!==e.relation.type2&&s.attr(\"marker-end\",\"url(\"+c+\"#\"+i(e.relation.type2)+\"End)\");var h,f,p=n.points.length;if(p%2!==0){var g=n.points[Math.floor(p/2)],y=n.points[Math.ceil(p/2)];h=(g.x+y.x)/2,f=(g.y+y.y)/2}else{var m=n.points[Math.floor(p/2)];h=m.x,f=m.y}if(\"undefined\"!=typeof e.title){var v=t.append(\"g\").attr(\"class\",\"classLabel\"),_=v.append(\"text\").attr(\"class\",\"label\").attr(\"x\",h).attr(\"y\",f).attr(\"fill\",\"red\").attr(\"text-anchor\",\"middle\").text(e.title);window.label=_;var b=_.node().getBBox();v.insert(\"rect\",\":first-child\").attr(\"class\",\"box\").attr(\"x\",b.x-l.padding/2).attr(\"y\",b.y-l.padding/2).attr(\"width\",b.width+2*l.padding/2).attr(\"height\",b.height+2*l.padding/2)}d++},g=function(t,n){s.info(\"Rendering class \"+n);var e=function(t,n,e){var r=t.append(\"tspan\").attr(\"x\",l.padding).text(n);e||r.attr(\"dy\",l.textHeight)},r=\"classId\"+c,a={id:r,label:n.id,width:0,height:0},u=t.append(\"g\").attr(\"id\",r).attr(\"class\",\"classGroup\"),o=u.append(\"text\").attr(\"x\",l.padding).attr(\"y\",l.textHeight+l.padding).text(n.id),h=o.node().getBBox().height,f=u.append(\"line\").attr(\"x1\",0).attr(\"y1\",l.padding+h+l.dividerMargin/2).attr(\"y2\",l.padding+h+l.dividerMargin/2),d=u.append(\"text\").attr(\"x\",l.padding).attr(\"y\",h+l.dividerMargin+l.textHeight).attr(\"fill\",\"white\").attr(\"class\",\"classText\"),p=!0;n.members.forEach(function(t){e(d,t,p),p=!1});var g=d.node().getBBox(),y=u.append(\"line\").attr(\"x1\",0).attr(\"y1\",l.padding+h+3*l.dividerMargin/2+g.height).attr(\"y2\",l.padding+h+3*l.dividerMargin/2+g.height),m=u.append(\"text\").attr(\"x\",l.padding).attr(\"y\",h+2*l.dividerMargin+g.height+l.textHeight).attr(\"fill\",\"white\").attr(\"class\",\"classText\");p=!0,n.methods.forEach(function(t){e(m,t,p),p=!1});var v=u.node().getBBox();return u.insert(\"rect\",\":first-child\").attr(\"x\",0).attr(\"y\",0).attr(\"width\",v.width+2*l.padding).attr(\"height\",v.height+l.padding+.5*l.dividerMargin),f.attr(\"x2\",v.width+2*l.padding),y.attr(\"x2\",v.width+2*l.padding),a.width=v.width+2*l.padding,a.height=v.height+l.padding+.5*l.dividerMargin,i[r]=a,c++,a};n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){l[n]=t[n]})},n.exports.draw=function(t,n){e.yy.clear(),e.parse(t),s.info(\"Rendering diagram \"+t);var i=a.select(\"#\"+n);f(i);var u=new o.graphlib.Graph({multigraph:!0});u.setGraph({isMultiGraph:!0}),u.setDefaultEdgeLabel(function(){return{}});var c,l=r.getClasses(),d=Object.keys(l);for(c=0;c<d.length;c++){var y=l[d[c]],m=g(i,y);u.setNode(m.id,m),s.info(\"Org height: \"+m.height)}var v=r.getRelations(),c=0;v.forEach(function(t){c+=1,s.info(\"tjoho\"+h(t.id1)+h(t.id2)+JSON.stringify(t)),u.setEdge(h(t.id1),h(t.id2),{relation:t})}),o.layout(u),u.nodes().forEach(function(t){\"undefined\"!=typeof t&&(s.debug(\"Node \"+t+\": \"+JSON.stringify(u.node(t))),a.select(\"#\"+t).attr(\"transform\",\"translate(\"+(u.node(t).x-u.node(t).width/2)+\",\"+(u.node(t).y-u.node(t).height/2)+\" )\"))}),u.edges().forEach(function(t){s.debug(\"Edge \"+t.v+\" -> \"+t.w+\": \"+JSON.stringify(u.edge(t))),p(i,u.edge(t),u.edge(t).relation)}),i.attr(\"height\",\"100%\"),i.attr(\"width\",\"100%\")}},{\"../../d3\":108,\"../../logger\":130,\"./classDb\":109,\"./parser/classDiagram\":111,dagre:52}],111:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,11],r=[1,12],i=[1,13],a=[1,15],u=[1,16],o=[1,17],s=[6,8],c=[1,26],l=[1,27],h=[1,28],f=[1,29],d=[1,30],p=[1,31],g=[6,8,13,17,23,26,27,28,29,30,31],y=[6,8,13,17,23,26,27,28,29,30,31,45,46,47],m=[23,45,46,47],v=[23,30,31,45,46,47],_=[23,26,27,28,29,45,46,47],b=[6,8,13],x=[1,46],w={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,CLASS_DIAGRAM:5,NEWLINE:6,statements:7,EOF:8,statement:9,className:10,alphaNumToken:11,relationStatement:12,LABEL:13,classStatement:14,methodStatement:15,CLASS:16,STRUCT_START:17,members:18,STRUCT_STOP:19,MEMBER:20,SEPARATOR:21,relation:22,STR:23,relationType:24,lineType:25,AGGREGATION:26,EXTENSION:27,COMPOSITION:28,DEPENDENCY:29,LINE:30,DOTTED_LINE:31,commentToken:32,textToken:33,graphCodeTokens:34,textNoTagsToken:35,TAGSTART:36,TAGEND:37,\"==\":38,\"--\":39,PCT:40,DEFAULT:41,SPACE:42,MINUS:43,keywords:44,UNICODE_TEXT:45,NUM:46,ALPHA:47,$accept:0,$end:1},terminals_:{2:\"error\",5:\"CLASS_DIAGRAM\",6:\"NEWLINE\",8:\"EOF\",13:\"LABEL\",16:\"CLASS\",17:\"STRUCT_START\",19:\"STRUCT_STOP\",20:\"MEMBER\",21:\"SEPARATOR\",23:\"STR\",26:\"AGGREGATION\",27:\"EXTENSION\",28:\"COMPOSITION\",29:\"DEPENDENCY\",30:\"LINE\",31:\"DOTTED_LINE\",34:\"graphCodeTokens\",36:\"TAGSTART\",37:\"TAGEND\",38:\"==\",39:\"--\",40:\"PCT\",41:\"DEFAULT\",42:\"SPACE\",43:\"MINUS\",44:\"keywords\",45:\"UNICODE_TEXT\",46:\"NUM\",47:\"ALPHA\"},productions_:[0,[3,1],[4,4],[7,1],[7,3],[10,2],[10,1],[9,1],[9,2],[9,1],[9,1],[14,2],[14,5],[18,1],[18,2],[15,1],[15,2],[15,1],[15,1],[12,3],[12,4],[12,4],[12,5],[22,3],[22,2],[22,2],[22,1],[24,1],[24,1],[24,1],[24,1],[25,1],[25,1],[32,1],[32,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[35,1],[35,1],[35,1],[35,1],[11,1],[11,1],[11,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 5:this.$=a[u-1]+a[u];break;case 6:this.$=a[u];break;case 7:r.addRelation(a[u]);break;case 8:a[u-1].title=r.cleanupLabel(a[u]),r.addRelation(a[u-1]);break;case 12:r.addMembers(a[u-3],a[u-1]);break;case 13:this.$=[a[u]];break;case 14:a[u].push(a[u-1]),this.$=a[u];break;case 15:break;case 16:r.addMembers(a[u-1],r.cleanupLabel(a[u]));break;case 17:console.warn(\"Member\",a[u]);break;case 18:break;case 19:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:\"none\",relationTitle2:\"none\"};break;case 20:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:\"none\"};break;case 21:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:\"none\",relationTitle2:a[u-1]};break;case 22:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 23:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 24:this.$={type1:\"none\",type2:a[u],lineType:a[u-1]};break;case 25:this.$={type1:a[u-1],type2:\"none\",lineType:a[u]};break;case 26:this.$={type1:\"none\",type2:\"none\",lineType:a[u]};break;case 27:this.$=r.relationType.AGGREGATION;break;case 28:this.$=r.relationType.EXTENSION;break;case 29:this.$=r.relationType.COMPOSITION;break;case 30:this.$=r.relationType.DEPENDENCY;break;case 31:this.$=r.lineType.LINE;break;case 32:this.$=r.lineType.DOTTED_LINE}},table:[{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:10,11:14,12:7,14:8,15:9,16:e,20:r,21:i,45:a,46:u,47:o},{8:[1,18]},{6:[1,19],8:[2,3]},n(s,[2,7],{13:[1,20]}),n(s,[2,9]),n(s,[2,10]),n(s,[2,15],{22:21,24:24,25:25,13:[1,23],23:[1,22],26:c,27:l,28:h,29:f,30:d,31:p}),{10:32,11:14,45:a,46:u,47:o},n(s,[2,17]),n(s,[2,18]),n(g,[2,6],{11:14,10:33,45:a,46:u,47:o}),n(y,[2,46]),n(y,[2,47]),n(y,[2,48]),{1:[2,2]},{7:34,9:6,10:10,11:14,12:7,14:8,15:9,16:e,20:r,21:i,45:a,46:u,47:o},n(s,[2,8]),{10:35,11:14,23:[1,36],45:a,46:u,47:o},{22:37,24:24,25:25,26:c,27:l,28:h,29:f,30:d,31:p},n(s,[2,16]),{25:38,30:d,31:p},n(m,[2,26],{24:39,26:c,27:l,28:h,29:f}),n(v,[2,27]),n(v,[2,28]),n(v,[2,29]),n(v,[2,30]),n(_,[2,31]),n(_,[2,32]),n(s,[2,11],{17:[1,40]}),n(g,[2,5]),{8:[2,4]},n(b,[2,19]),{10:41,11:14,45:a,46:u,47:o},{10:42,11:14,23:[1,43],45:a,46:u,47:o},n(m,[2,25],{24:44,26:c,27:l,28:h,29:f}),n(m,[2,24]),{18:45,20:x},n(b,[2,21]),n(b,[2,20]),{10:47,11:14,45:a,46:u,47:o},n(m,[2,23]),{19:[1,48]},{18:49,19:[2,13],20:x},n(b,[2,22]),n(s,[2,12]),{19:[2,14]}],defaultActions:{2:[2,1],18:[2,2],34:[2,4],49:[2,14]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},A=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:break;case 1:return 6;case 2:break;case 3:return 5;case 4:return this.begin(\"struct\"),17;case 5:return this.popState(),19;case 6:break;case 7:return\"MEMBER\";case 8:return 16;case 9:this.begin(\"string\");break;case 10:this.popState();break;case 11:return\"STR\";case 12:return 27;case 13:return 27;case 14:return 29;case 15:return 29;case 16:return 28;case 17:return 26;case 18:return 30;case 19:return 31;case 20:return 13;case 21:return 43;case 22:return\"DOT\";case 23:return\"PLUS\";case 24:return 40;case 25:return\"EQUALS\";case 26:return\"EQUALS\";case 27:return 47;case 28:return\"PUNCTUATION\";case 29:return 46;case 30:return 45;case 31:return 42;case 32:return 8}},rules:[/^(?:%%[^\\n]*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^#\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:[A-Za-z]+)/,/^(?:[!\"#$%&'*+,-.`?\\\\_\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],conditions:{string:{rules:[10,11],inclusive:!1},struct:{rules:[5,6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,8,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],inclusive:!0}}};return t}();return w.lexer=A,t.prototype=w,w.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:106,fs:1,path:105}],112:[function(t,n,e){(function(n){\"use strict\";var r=t(\"../../logger\"),i=new r.Log,a=\"\",u=!1;e.setMessage=function(t){i.debug(\"Setting message to: \"+t),a=t},e.getMessage=function(){return a},e.setInfo=function(t){u=t},e.getInfo=function(){return u},e.parseError=function(t,e){n.mermaidAPI.parseError(t,e)}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../logger\":130}],113:[function(t,n,e){\"use strict\";var r=t(\"./exampleDb\"),i=t(\"./parser/example.js\"),a=t(\"../../d3\"),u=t(\"../../logger\"),o=new u.Log;e.draw=function(t,n,e){var u;u=i.parser,u.yy=r,o.debug(\"Renering example diagram\"),u.parse(t);var s=a.select(\"#\"+n),c=s.append(\"g\");c.append(\"text\").attr(\"x\",100).attr(\"y\",40).attr(\"class\",\"version\").attr(\"font-size\",\"32px\").style(\"text-anchor\",\"middle\").text(\"mermaid \"+e),s.attr(\"height\",100),s.attr(\"width\",400)}},{\"../../d3\":108,\"../../logger\":130,\"./exampleDb\":112,\"./parser/example.js\":114}],114:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[6,9,10,12],r={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,message:11,say:12,TXT:13,$accept:0,$end:1},terminals_:{2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\",12:\"say\",13:\"TXT\"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1],[8,1],[11,2]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:return r;case 4:break;case 6:r.setInfo(!0);break;case 7:r.setMessage(a[u]);break;case 8:this.$=a[u-1].substring(1).trim().replace(/\\\\n/gm,\"\\n\")}},table:[{3:1,4:[1,2]},{1:[3]},n(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],11:9,12:[1,10]},{1:[2,1]},n(e,[2,3]),n(e,[2,4]),n(e,[2,5]),n(e,[2,6]),n(e,[2,7]),{13:[1,11]},n(e,[2,8])],defaultActions:{4:[2,1]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={\nyy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},i=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 9;case 1:return 10;case 2:return 4;case 3:return 12;case 4:return 13;case 5:return 6;case 6:return\"INVALID\"}},rules:[/^(?:[\\n]+)/i,/^(?:showInfo\\b)/i,/^(?:info\\b)/i,/^(?:say\\b)/i,/^(?::[^#\\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return t}();return r.lexer=i,t.prototype=r,r.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:106,fs:1,path:105}],115:[function(t,n){\"use strict\";var e,r=t(\"../../logger\"),i=new r.Log;if(t)try{e=t(\"dagre-d3\")}catch(a){i.debug(\"Could not load dagre-d3\")}e||(e=window.dagreD3),n.exports=e},{\"../../logger\":130,\"dagre-d3\":3}],116:[function(t,n,e){\"use strict\";var r=t(\"./graphDb\"),i=t(\"./parser/flow\"),a=t(\"./parser/dot\"),u=t(\"../../d3\"),o=t(\"./dagre-d3\"),s=t(\"../../logger\"),c=new s.Log,l={};n.exports.setConf=function(t){var n,e=Object.keys(t);for(n=0;n<e.length;n++)l[e[n]]=t[e[n]]},e.addVertices=function(t,n){var e=Object.keys(t),r=function(t,n){var e;for(e=0;e<n.length;e++)\"undefined\"!=typeof n[e]&&(t=t+n[e]+\";\");return t};e.forEach(function(e){var i,a=t[e],u=\"\";a.classes.length>0&&(u=a.classes.join(\" \"));var o=\"\";o=r(o,a.styles),i=\"undefined\"==typeof a.text?a.id:a.text;var s=\"\";if(l.htmlLabels)s=\"html\",i=i.replace(/fa:fa[\\w\\-]+/g,function(t){return'<i class=\"fa '+t.substring(3)+'\"></i>'});else{var c=document.createElementNS(\"http://www.w3.org/2000/svg\",\"text\"),h=i.split(/<br>/),f=0;for(f=0;f<h.length;f++){var d=document.createElementNS(\"http://www.w3.org/2000/svg\",\"tspan\");d.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",\"preserve\"),d.setAttribute(\"dy\",\"1em\"),d.setAttribute(\"x\",\"1\"),d.textContent=h[f],c.appendChild(d)}s=\"svg\",i=c}var p=0,g=\"\";switch(a.type){case\"round\":p=5,g=\"rect\";break;case\"square\":g=\"rect\";break;case\"diamond\":g=\"question\";break;case\"odd\":g=\"rect_left_inv_arrow\";break;case\"odd_right\":g=\"rect_left_inv_arrow\";break;case\"circle\":g=\"circle\";break;case\"ellipse\":g=\"ellipse\";break;case\"group\":g=\"rect\",i=l.htmlLabels?\"\":document.createElementNS(\"http://www.w3.org/2000/svg\",\"text\");break;default:g=\"rect\"}n.setNode(a.id,{labelType:s,shape:g,label:i,rx:p,ry:p,\"class\":u,style:o,id:a.id})})},e.addEdges=function(t,n){var e,r=0;\"undefined\"!=typeof t.defaultStyle&&(e=t.defaultStyle.toString().replace(/,/g,\";\")),t.forEach(function(i){r++;var a={};a.arrowhead=\"arrow_open\"===i.type?\"none\":\"normal\";var u=\"\";if(\"undefined\"!=typeof i.style)i.style.forEach(function(t){u=u+t+\";\"});else switch(i.stroke){case\"normal\":u=\"fill:none\",\"undefined\"!=typeof e&&(u=e);break;case\"dotted\":u=\"stroke: #333; fill:none;stroke-width:2px;stroke-dasharray:3;\";break;case\"thick\":u=\"stroke: #333; stroke-width: 3.5px;fill:none\"}a.style=u,\"undefined\"!=typeof i.interpolate?a.lineInterpolate=i.interpolate:\"undefined\"!=typeof t.defaultInterpolate&&(a.lineInterpolate=t.defaultInterpolate),\"undefined\"==typeof i.text?\"undefined\"!=typeof i.style&&(a.arrowheadStyle=\"fill: #333\"):(a.arrowheadStyle=\"fill: #333\",\"undefined\"==typeof i.style?(a.labelpos=\"c\",l.htmlLabels?(a.labelType=\"html\",a.label='<span class=\"edgeLabel\">'+i.text+\"</span>\"):(a.labelType=\"text\",a.style=\"stroke: #333; stroke-width: 1.5px;fill:none\",a.label=i.text.replace(/<br>/g,\"\\n\"))):a.label=i.text.replace(/<br>/g,\"\\n\")),n.setEdge(i.start,i.end,a,r)})},e.getClasses=function(t,n){var e;r.clear(),e=n?a.parser:i.parser,e.yy=r,e.parse(t);var u=r.getClasses();return\"undefined\"==typeof u[\"default\"]&&(u[\"default\"]={id:\"default\"},u[\"default\"].styles=[],u[\"default\"].clusterStyles=[\"rx:4px\",\"fill: rgb(255, 255, 222)\",\"rx: 4px\",\"stroke: rgb(170, 170, 51)\",\"stroke-width: 1px\"],u[\"default\"].nodeLabelStyles=[\"fill:#000\",\"stroke:none\",\"font-weight:300\",'font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serf',\"font-size:14px\"],u[\"default\"].edgeLabelStyles=[\"fill:#000\",\"stroke:none\",\"font-weight:300\",'font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serf',\"font-size:14px\"]),u},e.draw=function(t,n,s){c.debug(\"Drawing flowchart\");var h;r.clear(),h=s?a.parser:i.parser,h.yy=r;try{h.parse(t)}catch(f){c.debug(\"Parsing failed\")}var d;d=r.getDirection(),\"undefined\"==typeof d&&(d=\"TD\");var p,g=new o.graphlib.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,marginx:20,marginy:20}).setDefaultEdgeLabel(function(){return{}}),y=r.getSubGraphs(),m=0;for(m=y.length-1;m>=0;m--)p=y[m],r.addVertex(p.id,p.title,\"group\",void 0);var v=r.getVertices(),_=r.getEdges();m=0;var b;for(m=y.length-1;m>=0;m--)for(p=y[m],u.selectAll(\"cluster\").append(\"text\"),b=0;b<p.nodes.length;b++)g.setParent(p.nodes[b],p.id);e.addVertices(v,g),e.addEdges(_,g);var x=new o.render;x.shapes().question=function(t,n,e){var r=n.width,i=n.height,a=.8*(r+i),u=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],s=t.insert(\"polygon\",\":first-child\").attr(\"points\",u.map(function(t){return t.x+\",\"+t.y}).join(\" \")).attr(\"rx\",5).attr(\"ry\",5).attr(\"transform\",\"translate(\"+-a/2+\",\"+2*a/4+\")\");return e.intersect=function(t){return o.intersect.polygon(e,u,t)},s},x.shapes().rect_left_inv_arrow=function(t,n,e){var r=n.width,i=n.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],u=t.insert(\"polygon\",\":first-child\").attr(\"points\",a.map(function(t){return t.x+\",\"+t.y}).join(\" \")).attr(\"transform\",\"translate(\"+-r/2+\",\"+2*i/4+\")\");return e.intersect=function(t){return o.intersect.polygon(e,a,t)},u},x.shapes().rect_right_inv_arrow=function(t,n,e){var r=n.width,i=n.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],u=t.insert(\"polygon\",\":first-child\").attr(\"points\",a.map(function(t){return t.x+\",\"+t.y}).join(\" \")).attr(\"transform\",\"translate(\"+-r/2+\",\"+2*i/4+\")\");return e.intersect=function(t){return o.intersect.polygon(e,a,t)},u},x.arrows().none=function(t,n,e,r){var i=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\"),a=i.append(\"path\").attr(\"d\",\"M 0 0 L 0 0 L 0 0 z\");o.util.applyStyle(a,e[r+\"Style\"])},x.arrows().normal=function(t,n){{var e=t.append(\"marker\").attr(\"id\",n).attr(\"viewBox\",\"0 0 10 10\").attr(\"refX\",9).attr(\"refY\",5).attr(\"markerUnits\",\"strokeWidth\").attr(\"markerWidth\",8).attr(\"markerHeight\",6).attr(\"orient\",\"auto\");e.append(\"path\").attr(\"d\",\"M 0 0 L 10 5 L 0 10 z\").attr(\"class\",\"arrowheadPath\").style(\"stroke-width\",1).style(\"stroke-dasharray\",\"1,0\")}};var w=u.select(\"#\"+n),A=u.select(\"#\"+n+\" g\");for(x(A,g),A.selectAll(\"g.node\").attr(\"title\",function(){return r.getTooltip(this.id)}),l.useMaxWidth?(w.attr(\"height\",\"100%\"),w.attr(\"width\",l.width),w.attr(\"viewBox\",\"0 0 \"+(g.graph().width+20)+\" \"+(g.graph().height+20)),w.attr(\"style\",\"max-width:\"+(g.graph().width+20)+\"px;\")):(w.attr(\"height\",g.graph().height),\"undefined\"==typeof l.width?w.attr(\"width\",g.graph().width):w.attr(\"width\",l.width),w.attr(\"viewBox\",\"0 0 \"+(g.graph().width+20)+\" \"+(g.graph().height+20))),r.indexNodes(\"subGraph\"+m),m=0;m<y.length;m++)if(p=y[m],\"undefined\"!==p.title){var k=document.querySelectorAll(\"#\"+n+\" #\"+p.id+\" rect\"),E=document.querySelectorAll(\"#\"+n+\" #\"+p.id),M=k[0].x.baseVal.value,S=k[0].y.baseVal.value,D=k[0].width.baseVal.value,C=u.select(E[0]),T=C.append(\"text\");T.attr(\"x\",M+D/2),T.attr(\"y\",S+14),T.attr(\"fill\",\"black\"),T.attr(\"stroke\",\"none\"),T.attr(\"id\",n+\"Text\"),T.style(\"text-anchor\",\"middle\"),T.text(\"undefined\"==typeof p.title?\"Undef\":p.title)}if(!l.htmlLabels){var m,F=document.querySelectorAll(\"#\"+n+\" .edgeLabel .label\");for(m=0;m<F.length;m++){var O=F[m],L=O.getBBox(),I=document.createElementNS(\"http://www.w3.org/2000/svg\",\"rect\");I.setAttribute(\"rx\",0),I.setAttribute(\"ry\",0),I.setAttribute(\"width\",L.width),I.setAttribute(\"height\",L.height),I.setAttribute(\"style\",\"fill:#e8e8e8;\"),O.insertBefore(I,O.firstChild)}}}},{\"../../d3\":108,\"../../logger\":130,\"./dagre-d3\":115,\"./graphDb\":117,\"./parser/dot\":118,\"./parser/flow\":119}],117:[function(require,module,exports){(function(global){\"use strict\";var Logger=require(\"../../logger\"),log=new Logger.Log,utils=require(\"../../utils\"),d3=require(\"../../d3\"),vertices={},edges=[],classes=[],subGraphs=[],tooltips={},subCount=0,direction,funs=[];exports.addVertex=function(t,n,e,r){var i;\"undefined\"!=typeof t&&0!==t.trim().length&&(\"undefined\"==typeof vertices[t]&&(vertices[t]={id:t,styles:[],classes:[]}),\"undefined\"!=typeof n&&(i=n.trim(),'\"'===i[0]&&'\"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),vertices[t].text=i),\"undefined\"!=typeof e&&(vertices[t].type=e),\"undefined\"!=typeof e&&(vertices[t].type=e),\"undefined\"!=typeof r&&null!==r&&r.forEach(function(n){vertices[t].styles.push(n)}))},exports.addLink=function(t,n,e,r){log.info(\"Got edge...\",t,n);var i={start:t,end:n,type:void 0,text:\"\"};r=e.text,\"undefined\"!=typeof r&&(i.text=r.trim(),'\"'===i.text[0]&&'\"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),\"undefined\"!=typeof e&&(i.type=e.type,i.stroke=e.stroke),edges.push(i)},exports.updateLinkInterpolate=function(t,n){\"default\"===t?edges.defaultInterpolate=n:edges[t].interpolate=n},exports.updateLink=function(t,n){\"default\"===t?edges.defaultStyle=n:(-1===utils.isSubstringInArray(\"fill\",n)&&n.push(\"fill:none\"),edges[t].style=n)},exports.addClass=function(t,n){\"undefined\"==typeof classes[t]&&(classes[t]={id:t,styles:[]}),\"undefined\"!=typeof n&&null!==n&&n.forEach(function(n){classes[t].styles.push(n)})},exports.setDirection=function(t){direction=t},exports.setClass=function(t,n){t.indexOf(\",\")>0?t.split(\",\").forEach(function(t){\"undefined\"!=typeof vertices[t]&&vertices[t].classes.push(n)}):\"undefined\"!=typeof vertices[t]&&vertices[t].classes.push(n)};var setTooltip=function(t,n){\"undefined\"!=typeof n&&(tooltips[t]=n)},setClickFun=function setClickFun(id,functionName){\"undefined\"!=typeof functionName&&\"undefined\"!=typeof vertices[id]&&funs.push(function(element){var elem=d3.select(element).select(\"#\"+id);null!==elem&&elem.on(\"click\",function(){eval(functionName+\"('\"+id+\"')\")})})},setLink=function(t,n){\"undefined\"!=typeof n&&\"undefined\"!=typeof vertices[t]&&funs.push(function(e){var r=d3.select(e).select(\"#\"+t);null!==r&&r.on(\"click\",function(){window.open(n,\"newTab\")})})};exports.getTooltip=function(t){return tooltips[t]},exports.setClickEvent=function(t,n,e,r){t.indexOf(\",\")>0?t.split(\",\").forEach(function(t){setTooltip(t,r),setClickFun(t,n),setLink(t,e)}):(setTooltip(t,r),setClickFun(t,n),setLink(t,e))},exports.bindFunctions=function(t){funs.forEach(function(n){n(t)})},exports.getDirection=function(){return direction},exports.getVertices=function(){return vertices},exports.getEdges=function(){return edges},exports.getClasses=function(){return classes};var setupToolTips=function(t){var n=d3.select(\".mermaidTooltip\");null===n[0][0]&&(n=d3.select(\"body\").append(\"div\").attr(\"class\",\"mermaidTooltip\").style(\"opacity\",0));var e=d3.select(t).select(\"svg\"),r=e.selectAll(\"g.node\");r.on(\"mouseover\",function(){var t=d3.select(this),e=t.attr(\"title\");if(null!==e){var r=this.getBoundingClientRect();n.transition().duration(200).style(\"opacity\",\".9\"),n.html(t.attr(\"title\")).style(\"left\",r.left+(r.right-r.left)/2+\"px\").style(\"top\",r.top-14+document.body.scrollTop+\"px\"),t.classed(\"hover\",!0)}}).on(\"mouseout\",function(){n.transition().duration(500).style(\"opacity\",0);var t=d3.select(this);t.classed(\"hover\",!1)})};funs.push(setupToolTips),exports.clear=function(){vertices={},classes={},edges=[],funs=[],funs.push(setupToolTips),subGraphs=[],subCount=0,tooltips=[]},exports.defaultStyle=function(){return\"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;\"},exports.addSubGraph=function(t,n){function e(t){var n={\"boolean\":{},number:{},string:{}},e=[];return t.filter(function(t){var r=typeof t;return\" \"===t?!1:r in n?n[r].hasOwnProperty(t)?!1:n[r][t]=!0:e.indexOf(t)>=0?!1:e.push(t)})}var r=[];r=e(r.concat.apply(r,t));var i={id:\"subGraph\"+subCount,nodes:r,title:n};return subGraphs.push(i),subCount+=1,i.id};var getPosForId=function(t){var n;for(n=0;n<subGraphs.length;n++)if(subGraphs[n].id===t)return n;return-1},secCount=-1,posCrossRef=[],indexNodes=function t(n,e){var r=subGraphs[e].nodes;if(secCount+=1,!(secCount>2e3)){if(posCrossRef[secCount]=e,subGraphs[e].id===n)return{result:!0,count:0};for(var i=0,a=1;i<r.length;){var u=getPosForId(r[i]);if(u>=0){var o=t(n,u);if(o.result)return{result:!0,count:a+o.count};a+=o.count}i+=1}return{result:!1,count:a}}};exports.getDepthFirstPos=function(t){return posCrossRef[t]},exports.indexNodes=function(){secCount=-1,subGraphs.length>0&&indexNodes(\"none\",subGraphs.length-1,0)},exports.getSubGraphs=function(){return subGraphs},exports.parseError=function(t,n){global.mermaidAPI.parseError(t,n)}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../d3\":108,\"../../logger\":130,\"../../utils\":132}],118:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,5],r=[1,6],i=[1,12],a=[1,13],u=[1,14],o=[1,15],s=[1,16],c=[1,17],l=[1,18],h=[1,19],f=[1,20],d=[1,21],p=[1,22],g=[8,16,17,18,19,20,21,22,23,24,25,26],y=[1,37],m=[1,33],v=[1,34],_=[1,35],b=[1,36],x=[8,10,16,17,18,19,20,21,22,23,24,25,26,28,32,37,39,40,45,57,58],w=[10,28],A=[10,28,37,57,58],k=[2,49],E=[1,45],M=[1,48],S=[1,49],D=[1,52],C=[2,65],T=[1,65],F=[1,66],O=[1,67],L=[1,68],I=[1,69],B=[1,70],N=[1,71],P=[1,72],R=[1,73],j=[8,16,17,18,19,20,21,22,23,24,25,26,47],Y=[10,28,37],U={trace:function(){},yy:{},symbols_:{error:2,expressions:3,graph:4,EOF:5,graphStatement:6,idStatement:7,\"{\":8,stmt_list:9,\"}\":10,strict:11,GRAPH:12,DIGRAPH:13,textNoTags:14,textNoTagsToken:15,ALPHA:16,NUM:17,COLON:18,PLUS:19,EQUALS:20,MULT:21,DOT:22,BRKT:23,SPACE:24,MINUS:25,keywords:26,stmt:27,\";\":28,node_stmt:29,edge_stmt:30,attr_stmt:31,\"=\":32,subgraph:33,attr_list:34,NODE:35,EDGE:36,\"[\":37,a_list:38,\"]\":39,\",\":40,edgeRHS:41,node_id:42,edgeop:43,port:44,\":\":45,compass_pt:46,SUBGRAPH:47,n:48,ne:49,e:50,se:51,s:52,sw:53,w:54,nw:55,c:56,ARROW_POINT:57,ARROW_OPEN:58,$accept:0,$end:1},terminals_:{2:\"error\",5:\"EOF\",8:\"{\",10:\"}\",11:\"strict\",12:\"GRAPH\",13:\"DIGRAPH\",16:\"ALPHA\",17:\"NUM\",18:\"COLON\",19:\"PLUS\",20:\"EQUALS\",21:\"MULT\",22:\"DOT\",23:\"BRKT\",24:\"SPACE\",25:\"MINUS\",26:\"keywords\",28:\";\",32:\"=\",35:\"NODE\",36:\"EDGE\",37:\"[\",39:\"]\",40:\",\",45:\":\",47:\"SUBGRAPH\",48:\"n\",49:\"ne\",50:\"e\",51:\"se\",52:\"s\",53:\"sw\",54:\"w\",55:\"nw\",56:\"c\",57:\"ARROW_POINT\",58:\"ARROW_OPEN\"},productions_:[0,[3,2],[4,5],[4,6],[4,4],[6,1],[6,1],[7,1],[14,1],[14,2],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[9,1],[9,3],[27,1],[27,1],[27,1],[27,3],[27,1],[31,2],[31,2],[31,2],[34,4],[34,3],[34,3],[34,2],[38,5],[38,5],[38,3],[30,3],[30,3],[30,2],[30,2],[41,3],[41,3],[41,2],[41,2],[29,2],[29,1],[42,2],[42,1],[44,4],[44,2],[44,2],[33,5],[33,4],[33,3],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,0],[43,1],[43,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:this.$=a[u-1];break;case 2:this.$=a[u-4];break;case 3:this.$=a[u-5];break;case 4:this.$=a[u-3];break;case 8:case 10:case 11:this.$=a[u];break;case 9:this.$=a[u-1]+\"\"+a[u];break;case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:this.$=a[u];break;case 17:this.$=\"<br>\";break;case 39:this.$=\"oy\";break;case 40:r.addLink(a[u-1],a[u].id,a[u].op),this.$=\"oy\";break;case 42:r.addLink(a[u-1],a[u].id,a[u].op),this.$={op:a[u-2],id:a[u-1]};break;case 44:this.$={op:a[u-1],id:a[u]};break;case 48:r.addVertex(a[u-1]),this.$=a[u-1];break;case 49:r.addVertex(a[u]),this.$=a[u];break;case 66:this.$=\"arrow\";break;case 67:this.$=\"arrow_open\"}},table:[{3:1,4:2,6:3,11:[1,4],12:e,13:r},{1:[3]},{5:[1,7]},{7:8,8:[1,9],14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{6:23,12:e,13:r},n(g,[2,5]),n(g,[2,6]),{1:[2,1]},{8:[1,24]},{7:30,8:y,9:25,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},n([8,10,28,32,37,39,40,45,57,58],[2,7],{15:38,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p}),n(x,[2,8]),n(x,[2,10]),n(x,[2,11]),n(x,[2,12]),n(x,[2,13]),n(x,[2,14]),n(x,[2,15]),n(x,[2,16]),n(x,[2,17]),n(x,[2,18]),n(x,[2,19]),n(x,[2,20]),{7:39,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:40,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{10:[1,41]},{10:[2,21],28:[1,42]},n(w,[2,23]),n(w,[2,24]),n(w,[2,25]),n(A,k,{44:44,32:[1,43],45:E}),n(w,[2,27],{41:46,43:47,57:M,58:S}),n(w,[2,47],{43:47,34:50,41:51,37:D,57:M,58:S}),{34:53,37:D},{34:54,37:D},{34:55,37:D},{7:56,8:[1,57],14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:58,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},n(x,[2,9]),{8:[1,59]},{10:[1,60]},{5:[2,4]},{7:30,8:y,9:61,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{7:62,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},n(A,[2,48]),n(A,C,{14:10,15:11,7:63,46:64,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,48:T,49:F,50:O,51:L,52:I,53:B,54:N,55:P,56:R}),n(w,[2,41],{34:74,37:D}),{7:77,8:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,33:76,42:75,47:b},n(j,[2,66]),n(j,[2,67]),n(w,[2,46]),n(w,[2,40],{34:78,37:D}),{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:79,39:[1,80]},n(w,[2,28]),n(w,[2,29]),n(w,[2,30]),{8:[1,82]},{7:30,8:y,9:83,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{10:[1,84]},{7:30,8:y,9:85,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{5:[2,2]},{10:[2,22]},n(w,[2,26]),n(A,[2,51],{45:[1,86]}),n(A,[2,52]),n(A,[2,56]),n(A,[2,57]),n(A,[2,58]),n(A,[2,59]),n(A,[2,60]),n(A,[2,61]),n(A,[2,62]),n(A,[2,63]),n(A,[2,64]),n(w,[2,38]),n(Y,[2,44],{43:47,41:87,57:M,58:S}),n(Y,[2,45],{43:47,41:88,57:M,58:S}),n(A,k,{44:44,45:E}),n(w,[2,39]),{39:[1,89]},n(w,[2,34],{34:90,37:D}),{32:[1,91]},{7:30,8:y,9:92,12:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:_,42:32,47:b},{10:[1,93]},n(A,[2,55]),{10:[1,94]},n(A,C,{46:95,48:T,49:F,50:O,51:L,52:I,53:B,54:N,55:P,56:R}),n(Y,[2,42]),n(Y,[2,43]),n(w,[2,33],{34:96,37:D}),n(w,[2,32]),{7:97,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{10:[1,98]},n(A,[2,54]),{5:[2,3]},n(A,[2,50]),n(w,[2,31]),{28:[1,99],39:[2,37],40:[1,100]},n(A,[2,53]),{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:101},{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:102},{39:[2,35]},{39:[2,36]}],defaultActions:{7:[2,1],41:[2,4],60:[2,2],61:[2,22],94:[2,3],101:[2,35],102:[2,36]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},$=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;\n\nthis._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:return\"STYLE\";case 1:return\"LINKSTYLE\";case 2:return\"CLASSDEF\";case 3:return\"CLASS\";case 4:return\"CLICK\";case 5:return 12;case 6:return 13;case 7:return 47;case 8:return 35;case 9:return 36;case 10:return\"DIR\";case 11:return\"DIR\";case 12:return\"DIR\";case 13:return\"DIR\";case 14:return\"DIR\";case 15:return\"DIR\";case 16:return 17;case 17:return 23;case 18:return 18;case 19:return 28;case 20:return 40;case 21:return 32;case 22:return 21;case 23:return 22;case 24:return\"ARROW_CROSS\";case 25:return 57;case 26:return\"ARROW_CIRCLE\";case 27:return 58;case 28:return 25;case 29:return 19;case 30:return 20;case 31:return 16;case 32:return\"PIPE\";case 33:return\"PS\";case 34:return\"PE\";case 35:return 37;case 36:return 39;case 37:return 8;case 38:return 10;case 39:return\"QUOTE\";case 40:return 24;case 41:return\"NEWLINE\";case 42:return 5}},rules:[/^(?:style\\b)/,/^(?:linkStyle\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:digraph\\b)/,/^(?:subgraph\\b)/,/^(?:node\\b)/,/^(?:edge\\b)/,/^(?:LR\\b)/,/^(?:RL\\b)/,/^(?:TB\\b)/,/^(?:BT\\b)/,/^(?:TD\\b)/,/^(?:BR\\b)/,/^(?:[0-9])/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:=)/,/^(?:\\*)/,/^(?:\\.)/,/^(?:--[x])/,/^(?:->)/,/^(?:--[o])/,/^(?:--)/,/^(?:-)/,/^(?:\\+)/,/^(?:=)/,/^(?:[\\u0021-\\u0027\\u002A-\\u002E\\u003F\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC_])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:\\s)/,/^(?:\\n)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],inclusive:!0}}};return t}();return U.lexer=$,t.prototype=U,U.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:106,fs:1,path:105}],119:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,4],r=[1,3],i=[1,5],a=[1,8,9,10,11,13,18,30,46,71,72,73,74,75,81,86,88,89,91,92,94,95,96,97,98],u=[2,2],o=[1,12],s=[1,13],c=[1,14],l=[1,15],h=[1,31],f=[1,33],d=[1,22],p=[1,34],g=[1,24],y=[1,25],m=[1,26],v=[1,27],_=[1,28],b=[1,38],x=[1,40],w=[1,35],A=[1,39],k=[1,45],E=[1,44],M=[1,36],S=[1,37],D=[1,41],C=[1,42],T=[1,43],F=[1,8,9,10,11,13,18,30,32,46,71,72,73,74,75,81,86,88,89,91,92,94,95,96,97,98],O=[1,53],L=[1,52],I=[1,54],B=[1,72],N=[1,80],P=[1,81],R=[1,66],j=[1,65],Y=[1,85],U=[1,84],$=[1,82],W=[1,83],z=[1,73],q=[1,68],G=[1,67],H=[1,63],V=[1,75],Z=[1,76],X=[1,77],K=[1,78],Q=[1,79],J=[1,70],tt=[1,69],nt=[8,9,11],et=[8,9,11,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64],rt=[1,115],it=[8,9,10,11,13,15,18,36,38,40,42,46,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,86,88,89,91,92,94,95,96,97,98],at=[8,9,10,11,12,13,15,16,17,18,30,32,36,37,38,39,40,41,42,43,46,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,71,72,73,74,75,78,81,84,86,88,89,91,92,94,95,96,97,98],ut=[1,117],ot=[1,118],st=[8,9,10,11,13,18,30,32,46,71,72,73,74,75,81,86,88,89,91,92,94,95,96,97,98],ct=[8,9,10,11,12,13,15,16,17,18,30,32,37,39,41,43,46,50,51,52,53,54,56,57,58,59,60,61,62,63,64,65,71,72,73,74,75,78,81,84,86,88,89,91,92,94,95,96,97,98],lt=[13,18,46,81,86,88,89,91,92,94,95,96,97,98],ht=[13,18,46,49,65,81,86,88,89,91,92,94,95,96,97,98],ft=[1,191],dt=[1,188],pt=[1,195],gt=[1,192],yt=[1,189],mt=[1,196],vt=[1,186],_t=[1,187],bt=[1,190],xt=[1,193],wt=[1,194],At=[1,213],kt=[8,9,11,86],Et=[8,9,10,11,46,71,80,81,84,86,88,89,90,91,92],Mt={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,DIR:13,FirstStmtSeperator:14,TAGEND:15,TAGSTART:16,UP:17,DOWN:18,ending:19,endToken:20,spaceList:21,spaceListNewline:22,verticeStatement:23,separator:24,styleStatement:25,linkStyleStatement:26,classDefStatement:27,classStatement:28,clickStatement:29,subgraph:30,text:31,end:32,vertex:33,link:34,alphaNum:35,SQS:36,SQE:37,PS:38,PE:39,\"(-\":40,\"-)\":41,DIAMOND_START:42,DIAMOND_STOP:43,alphaNumStatement:44,alphaNumToken:45,MINUS:46,linkStatement:47,arrowText:48,TESTSTR:49,\"--\":50,ARROW_POINT:51,ARROW_CIRCLE:52,ARROW_CROSS:53,ARROW_OPEN:54,\"-.\":55,DOTTED_ARROW_POINT:56,DOTTED_ARROW_CIRCLE:57,DOTTED_ARROW_CROSS:58,DOTTED_ARROW_OPEN:59,\"==\":60,THICK_ARROW_POINT:61,THICK_ARROW_CIRCLE:62,THICK_ARROW_CROSS:63,THICK_ARROW_OPEN:64,PIPE:65,textToken:66,STR:67,commentText:68,commentToken:69,keywords:70,STYLE:71,LINKSTYLE:72,CLASSDEF:73,CLASS:74,CLICK:75,textNoTags:76,textNoTagsToken:77,DEFAULT:78,stylesOpt:79,HEX:80,NUM:81,INTERPOLATE:82,commentStatement:83,PCT:84,style:85,COMMA:86,styleComponent:87,ALPHA:88,COLON:89,UNIT:90,BRKT:91,DOT:92,graphCodeTokens:93,PUNCTUATION:94,UNICODE_TEXT:95,PLUS:96,EQUALS:97,MULT:98,TAG_START:99,TAG_END:100,QUOTE:101,$accept:0,$end:1},terminals_:{2:\"error\",8:\"SEMI\",9:\"NEWLINE\",10:\"SPACE\",11:\"EOF\",12:\"GRAPH\",13:\"DIR\",15:\"TAGEND\",16:\"TAGSTART\",17:\"UP\",18:\"DOWN\",30:\"subgraph\",32:\"end\",36:\"SQS\",37:\"SQE\",38:\"PS\",39:\"PE\",40:\"(-\",41:\"-)\",42:\"DIAMOND_START\",43:\"DIAMOND_STOP\",46:\"MINUS\",49:\"TESTSTR\",50:\"--\",51:\"ARROW_POINT\",52:\"ARROW_CIRCLE\",53:\"ARROW_CROSS\",54:\"ARROW_OPEN\",55:\"-.\",56:\"DOTTED_ARROW_POINT\",57:\"DOTTED_ARROW_CIRCLE\",58:\"DOTTED_ARROW_CROSS\",59:\"DOTTED_ARROW_OPEN\",60:\"==\",61:\"THICK_ARROW_POINT\",62:\"THICK_ARROW_CIRCLE\",63:\"THICK_ARROW_CROSS\",64:\"THICK_ARROW_OPEN\",65:\"PIPE\",67:\"STR\",71:\"STYLE\",72:\"LINKSTYLE\",73:\"CLASSDEF\",74:\"CLASS\",75:\"CLICK\",78:\"DEFAULT\",80:\"HEX\",81:\"NUM\",82:\"INTERPOLATE\",84:\"PCT\",86:\"COMMA\",88:\"ALPHA\",89:\"COLON\",90:\"UNIT\",91:\"BRKT\",92:\"DOT\",94:\"PUNCTUATION\",95:\"UNICODE_TEXT\",96:\"PLUS\",97:\"EQUALS\",98:\"MULT\",99:\"TAG_START\",100:\"TAG_END\",101:\"QUOTE\"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,4],[4,4],[4,4],[4,4],[4,4],[19,2],[19,1],[20,1],[20,1],[20,1],[14,1],[14,1],[14,2],[22,2],[22,2],[22,1],[22,1],[21,2],[21,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,5],[7,4],[24,1],[24,1],[24,1],[23,3],[23,1],[33,4],[33,5],[33,6],[33,7],[33,4],[33,5],[33,4],[33,5],[33,4],[33,5],[33,4],[33,5],[33,1],[33,2],[35,1],[35,2],[44,1],[44,1],[44,1],[44,1],[34,2],[34,3],[34,3],[34,1],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[48,3],[31,1],[31,2],[31,1],[68,1],[68,2],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[76,1],[76,2],[27,5],[27,5],[28,5],[29,5],[29,7],[29,5],[29,7],[25,5],[25,5],[26,5],[26,5],[26,9],[26,9],[26,7],[26,7],[83,3],[79,1],[79,3],[85,1],[85,2],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[69,1],[69,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[77,1],[77,1],[77,1],[77,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 2:this.$=[];break;case 3:a[u]!==[]&&a[u-1].push(a[u]),this.$=a[u-1];break;case 4:case 57:case 59:case 60:case 92:case 94:case 95:case 108:this.$=a[u];break;case 11:r.setDirection(a[u-1]),this.$=a[u-1];break;case 12:r.setDirection(\"LR\"),this.$=a[u-1];break;case 13:r.setDirection(\"RL\"),this.$=a[u-1];break;case 14:r.setDirection(\"BT\"),this.$=a[u-1];break;case 15:r.setDirection(\"TB\"),this.$=a[u-1];break;case 30:this.$=a[u-1];break;case 31:case 32:case 33:case 34:case 35:this.$=[];break;case 36:this.$=r.addSubGraph(a[u-1],a[u-3]);break;case 37:this.$=r.addSubGraph(a[u-1],void 0);break;case 41:r.addLink(a[u-2],a[u],a[u-1]),this.$=[a[u-2],a[u]];break;case 42:this.$=[a[u]];break;case 43:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"square\");break;case 44:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"square\");break;case 45:this.$=a[u-5],r.addVertex(a[u-5],a[u-2],\"circle\");break;case 46:this.$=a[u-6],r.addVertex(a[u-6],a[u-3],\"circle\");break;case 47:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"ellipse\");break;case 48:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"ellipse\");break;case 49:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"round\");break;case 50:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"round\");break;case 51:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"diamond\");break;case 52:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"diamond\");break;case 53:this.$=a[u-3],r.addVertex(a[u-3],a[u-1],\"odd\");break;case 54:this.$=a[u-4],r.addVertex(a[u-4],a[u-2],\"odd\");break;case 55:this.$=a[u],r.addVertex(a[u]);break;case 56:this.$=a[u-1],r.addVertex(a[u-1]);break;case 58:case 93:case 96:case 109:this.$=a[u-1]+\"\"+a[u];break;case 61:this.$=\"v\";break;case 62:this.$=\"-\";break;case 63:a[u-1].text=a[u],this.$=a[u-1];break;case 64:case 65:a[u-2].text=a[u-1],this.$=a[u-2];break;case 66:this.$=a[u];break;case 67:this.$={type:\"arrow\",stroke:\"normal\",text:a[u-1]};break;case 68:this.$={type:\"arrow_circle\",stroke:\"normal\",text:a[u-1]};break;case 69:this.$={type:\"arrow_cross\",stroke:\"normal\",text:a[u-1]};break;case 70:this.$={type:\"arrow_open\",stroke:\"normal\",text:a[u-1]};break;case 71:this.$={type:\"arrow\",stroke:\"dotted\",text:a[u-1]};break;case 72:this.$={type:\"arrow_circle\",stroke:\"dotted\",text:a[u-1]};break;case 73:this.$={type:\"arrow_cross\",stroke:\"dotted\",text:a[u-1]};break;case 74:this.$={type:\"arrow_open\",stroke:\"dotted\",text:a[u-1]};break;case 75:this.$={type:\"arrow\",stroke:\"thick\",text:a[u-1]};break;case 76:this.$={type:\"arrow_circle\",stroke:\"thick\",text:a[u-1]};break;case 77:this.$={type:\"arrow_cross\",stroke:\"thick\",text:a[u-1]};break;case 78:this.$={type:\"arrow_open\",stroke:\"thick\",text:a[u-1]};break;case 79:this.$={type:\"arrow\",stroke:\"normal\"};break;case 80:this.$={type:\"arrow_circle\",stroke:\"normal\"};break;case 81:this.$={type:\"arrow_cross\",stroke:\"normal\"};break;case 82:this.$={type:\"arrow_open\",stroke:\"normal\"};break;case 83:this.$={type:\"arrow\",stroke:\"dotted\"};break;case 84:this.$={type:\"arrow_circle\",stroke:\"dotted\"};break;case 85:this.$={type:\"arrow_cross\",stroke:\"dotted\"};break;case 86:this.$={type:\"arrow_open\",stroke:\"dotted\"};break;case 87:this.$={type:\"arrow\",stroke:\"thick\"};break;case 88:this.$={type:\"arrow_circle\",stroke:\"thick\"};break;case 89:this.$={type:\"arrow_cross\",stroke:\"thick\"};break;case 90:this.$={type:\"arrow_open\",stroke:\"thick\"};break;case 91:this.$=a[u-1];break;case 110:case 111:this.$=a[u-4],r.addClass(a[u-2],a[u]);break;case 112:this.$=a[u-4],r.setClass(a[u-2],a[u]);break;case 113:this.$=a[u-4],r.setClickEvent(a[u-2],a[u],void 0,void 0);break;case 114:this.$=a[u-6],r.setClickEvent(a[u-4],a[u-2],void 0,a[u]);break;case 115:this.$=a[u-4],r.setClickEvent(a[u-2],void 0,a[u],void 0);break;case 116:this.$=a[u-6],r.setClickEvent(a[u-4],void 0,a[u-2],a[u]);break;case 117:this.$=a[u-4],r.addVertex(a[u-2],void 0,void 0,a[u]);break;case 118:case 119:case 120:this.$=a[u-4],r.updateLink(a[u-2],a[u]);break;case 121:case 122:this.$=a[u-8],r.updateLinkInterpolate(a[u-6],a[u-2]),r.updateLink(a[u-6],a[u]);break;case 123:case 124:this.$=a[u-6],r.updateLinkInterpolate(a[u-4],a[u]);break;case 126:this.$=[a[u]];break;case 127:a[u-2].push(a[u]),this.$=a[u-2];break;case 129:this.$=a[u-1]+a[u]}},table:[{3:1,4:2,9:e,10:r,12:i},{1:[3]},n(a,u,{5:6}),{4:7,9:e,10:r,12:i},{4:8,9:e,10:r,12:i},{10:[1,9]},{1:[2,1],6:10,7:11,8:o,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,33:23,35:29,44:30,45:32,46:p,71:g,72:y,73:m,74:v,75:_,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(a,[2,9]),n(a,[2,10]),{13:[1,46],15:[1,47],16:[1,48],17:[1,49],18:[1,50]},n(F,[2,3]),n(F,[2,4]),n(F,[2,5]),n(F,[2,6]),n(F,[2,7]),n(F,[2,8]),{8:O,9:L,11:I,24:51},{8:O,9:L,11:I,24:55},{8:O,9:L,11:I,24:56},{8:O,9:L,11:I,24:57},{8:O,9:L,11:I,24:58},{8:O,9:L,11:I,24:59},{8:O,9:L,10:B,11:I,12:N,13:P,15:R,16:j,17:Y,18:U,24:61,30:$,31:60,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(nt,[2,42],{34:86,47:87,50:[1,88],51:[1,91],52:[1,92],53:[1,93],54:[1,94],55:[1,89],56:[1,95],57:[1,96],58:[1,97],59:[1,98],60:[1,90],61:[1,99],62:[1,100],63:[1,101],64:[1,102]}),{10:[1,103]},{10:[1,104]},{10:[1,105]},{10:[1,106]},{10:[1,107]},n(et,[2,55],{45:32,21:113,44:114,10:rt,13:h,15:[1,112],18:f,36:[1,108],38:[1,109],40:[1,110],42:[1,111],46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(it,[2,57]),n(it,[2,59]),n(it,[2,60]),n(it,[2,61]),n(it,[2,62]),n(at,[2,154]),n(at,[2,155]),n(at,[2,156]),n(at,[2,157]),n(at,[2,158]),n(at,[2,159]),n(at,[2,160]),n(at,[2,161]),n(at,[2,162]),n(at,[2,163]),n(at,[2,164]),{8:ut,9:ot,10:rt,14:116,21:119},{8:ut,9:ot,10:rt,14:120,21:119},{8:ut,9:ot,10:rt,14:121,21:119},{8:ut,9:ot,10:rt,14:122,21:119},{8:ut,9:ot,10:rt,14:123,21:119},n(F,[2,30]),n(F,[2,38]),n(F,[2,39]),n(F,[2,40]),n(F,[2,31]),n(F,[2,32]),n(F,[2,33]),n(F,[2,34]),n(F,[2,35]),{8:O,9:L,10:B,11:I,12:N,13:P,15:R,16:j,17:Y,18:U,24:124,30:$,32:W,45:71,46:z,50:q,60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(st,u,{5:126}),n(ct,[2,92]),n(ct,[2,94]),n(ct,[2,143]),n(ct,[2,144]),n(ct,[2,145]),n(ct,[2,146]),n(ct,[2,147]),n(ct,[2,148]),n(ct,[2,149]),n(ct,[2,150]),n(ct,[2,151]),n(ct,[2,152]),n(ct,[2,153]),n(ct,[2,97]),n(ct,[2,98]),n(ct,[2,99]),n(ct,[2,100]),n(ct,[2,101]),n(ct,[2,102]),n(ct,[2,103]),n(ct,[2,104]),n(ct,[2,105]),n(ct,[2,106]),n(ct,[2,107]),{13:h,18:f,33:127,35:29,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(lt,[2,66],{48:128,49:[1,129],65:[1,130]}),{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:131,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:132,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:133,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(ht,[2,79]),n(ht,[2,80]),n(ht,[2,81]),n(ht,[2,82]),n(ht,[2,83]),n(ht,[2,84]),n(ht,[2,85]),n(ht,[2,86]),n(ht,[2,87]),n(ht,[2,88]),n(ht,[2,89]),n(ht,[2,90]),{13:h,18:f,35:134,44:30,45:32,46:p,80:[1,135],81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{78:[1,136],81:[1,137]},{13:h,18:f,35:139,44:30,45:32,46:p,78:[1,138],81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:140,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:141,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:142,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:144,32:W,38:[1,143],45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:145,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:146,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:147,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,56]),n(it,[2,58]),n(et,[2,29],{21:148,10:rt}),n(a,[2,11]),n(a,[2,21]),n(a,[2,22]),{9:[1,149]},n(a,[2,12]),n(a,[2,13]),n(a,[2,14]),n(a,[2,15]),n(st,u,{5:150}),n(ct,[2,93]),{6:10,7:11,8:o,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,32:[1,151],33:23,35:29,44:30,45:32,46:p,71:g,72:y,73:m,74:v,75:_,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(nt,[2,41]),n(lt,[2,63],{10:[1,152]}),{10:[1,153]},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:154,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,51:[1,155],52:[1,156],53:[1,157],54:[1,158],60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,56:[1,159],57:[1,160],58:[1,161],59:[1,162],60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,60:G,61:[1,163],62:[1,164],63:[1,165],64:[1,166],66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,167],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,168]},{10:[1,169]},{10:[1,170]},{10:[1,171]},{10:[1,172],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,173],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:[1,174],13:h,18:f,44:114,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,37:[1,175],45:71,46:z,50:q,60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,31:176,32:W,45:71,46:z,50:q,60:G,66:62,67:H,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,39:[1,177],45:71,46:z,50:q,60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,41:[1,178],45:71,46:z,50:q,60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,43:[1,179],45:71,46:z,50:q,60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,37:[1,180],45:71,46:z,50:q,60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,28]),n(a,[2,23]),{6:10,7:11,8:o,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,32:[1,181],33:23,35:29,44:30,45:32,46:p,71:g,72:y,73:m,74:v,75:_,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(F,[2,37]),n(lt,[2,65]),n(lt,[2,64]),{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,45:71,46:z,50:q,60:G,65:[1,182],66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(lt,[2,67]),n(lt,[2,68]),n(lt,[2,69]),n(lt,[2,70]),n(lt,[2,71]),n(lt,[2,72]),n(lt,[2,73]),n(lt,[2,74]),n(lt,[2,75]),n(lt,[2,76]),n(lt,[2,77]),n(lt,[2,78]),{10:ft,46:dt,71:pt,79:183,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:197,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:198,80:gt,81:yt,82:[1,199],84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:200,80:gt,81:yt,82:[1,201],84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:202,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:203,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{13:h,18:f,35:204,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:205,44:30,45:32,46:p,67:[1,206],81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,43],{21:207,10:rt}),{10:B,12:N,13:P,15:R,16:j,17:Y,18:U,30:$,32:W,39:[1,208],45:71,46:z,50:q,60:G,66:125,70:74,71:V,72:Z,73:X,74:K,75:Q,77:64,78:J,81:b,84:tt,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},n(et,[2,49],{21:209,10:rt}),n(et,[2,47],{21:210,10:rt}),n(et,[2,51],{21:211,10:rt}),n(et,[2,53],{21:212,10:rt}),n(F,[2,36]),n([10,13,18,46,81,86,88,89,91,92,94,95,96,97,98],[2,91]),n(nt,[2,117],{86:At}),n(kt,[2,126],{87:214,10:ft,46:dt,71:pt,80:gt,81:yt,84:mt,88:vt,89:_t,90:bt,91:xt,92:wt}),n(Et,[2,128]),n(Et,[2,130]),n(Et,[2,131]),n(Et,[2,132]),n(Et,[2,133]),n(Et,[2,134]),n(Et,[2,135]),n(Et,[2,136]),n(Et,[2,137]),n(Et,[2,138]),n(Et,[2,139]),n(Et,[2,140]),n(nt,[2,118],{86:At}),n(nt,[2,119],{86:At}),{10:[1,215]},n(nt,[2,120],{86:At}),{10:[1,216]},n(nt,[2,110],{86:At}),n(nt,[2,111],{86:At}),n(nt,[2,112],{45:32,44:114,13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,113],{45:32,44:114,10:[1,217],13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,115],{10:[1,218]}),n(et,[2,44]),{39:[1,219]},n(et,[2,50]),n(et,[2,48]),n(et,[2,52]),n(et,[2,54]),{10:ft,46:dt,71:pt,80:gt,81:yt,84:mt,85:220,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},n(Et,[2,129]),{13:h,18:f,35:221,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{13:h,18:f,35:222,44:30,45:32,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T},{67:[1,223]},{67:[1,224]},n(et,[2,45],{21:225,10:rt}),n(kt,[2,127],{87:214,10:ft,46:dt,71:pt,80:gt,81:yt,84:mt,88:vt,89:_t,90:bt,91:xt,92:wt}),n(nt,[2,123],{45:32,44:114,10:[1,226],13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,124],{45:32,44:114,10:[1,227],13:h,18:f,46:p,81:b,86:x,88:w,89:A,91:k,92:E,94:M,95:S,96:D,97:C,98:T}),n(nt,[2,114]),n(nt,[2,116]),n(et,[2,46]),{10:ft,46:dt,71:pt,79:228,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},{10:ft,46:dt,71:pt,79:229,80:gt,81:yt,84:mt,85:184,87:185,88:vt,89:_t,90:bt,91:xt,92:wt},n(nt,[2,121],{86:At}),n(nt,[2,122],{86:At})],defaultActions:{},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},St=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;\n\nreturn t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:break;case 1:this.begin(\"string\");break;case 2:this.popState();break;case 3:return\"STR\";case 4:return 71;case 5:return 78;case 6:return 72;case 7:return 82;case 8:return 73;case 9:return 74;case 10:return 75;case 11:return 12;case 12:return 30;case 13:return 32;case 14:return 13;case 15:return 13;case 16:return 13;case 17:return 13;case 18:return 13;case 19:return 13;case 20:return 81;case 21:return 91;case 22:return 89;case 23:return 8;case 24:return 86;case 25:return 98;case 26:return 16;case 27:return 15;case 28:return 17;case 29:return 18;case 30:return 53;case 31:return 51;case 32:return 52;case 33:return 54;case 34:return 58;case 35:return 56;case 36:return 57;case 37:return 59;case 38:return 58;case 39:return 56;case 40:return 57;case 41:return 59;case 42:return 63;case 43:return 61;case 44:return 62;case 45:return 64;case 46:return 50;case 47:return 55;case 48:return 60;case 49:return 40;case 50:return 41;case 51:return 46;case 52:return 92;case 53:return 96;case 54:return 84;case 55:return 97;case 56:return 97;case 57:return 88;case 58:return 94;case 59:return 95;case 60:return 65;case 61:return 38;case 62:return 39;case 63:return 36;case 64:return 37;case 65:return 42;case 66:return 43;case 67:return 101;case 68:return 9;case 69:return 10;case 70:return 11}},rules:[/^(?:%%[^\\n]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(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0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:\\n+)/,/^(?:\\s)/,/^(?:$)/],conditions:{string:{rules:[2,3],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70],inclusive:!0}}};return t}();return Mt.lexer=St,t.prototype=Mt,Mt.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:106,fs:1,path:105}],120:[function(t,n,e){(function(n){\"use strict\";var r=t(\"moment\"),i=t(\"../../logger\"),a=new i.Log,u=\"\",o=\"\",s=[],c=[],l=\"\";e.clear=function(){s=[],c=[],l=\"\",o=\"\",g=0,h=void 0,f=void 0,_=[]},e.setDateFormat=function(t){u=t},e.getDateFormat=function(){return u},e.setTitle=function(t){o=t},e.getTitle=function(){return o},e.addSection=function(t){l=t,s.push(t)},e.getTasks=function(){for(var t=x(),n=10,e=0;!t&&n>e;)t=x(),e++;return c=_};var h,f,d=function(t,n,i){i=i.trim();var u=/^after\\s+([\\d\\w\\-]+)/,o=u.exec(i.trim());if(null!==o){var s=e.findTaskById(o[1]);if(\"undefined\"==typeof s){var c=new Date;return c.setHours(0,0,0,0),c}return s.endTime}return r(i,n.trim(),!0).isValid()?r(i,n.trim(),!0).toDate():(a.debug(\"Invalid date:\"+i),a.debug(\"With date format:\"+n.trim()),new Date)},p=function(t,n,e){if(e=e.trim(),r(e,n.trim(),!0).isValid())return r(e,n.trim()).toDate();var i=r(t),a=/^([\\d]+)([wdhms])/,u=a.exec(e.trim());if(null!==u){switch(u[2]){case\"s\":i.add(u[1],\"seconds\");break;case\"m\":i.add(u[1],\"minutes\");break;case\"h\":i.add(u[1],\"hours\");break;case\"d\":i.add(u[1],\"days\");break;case\"w\":i.add(u[1],\"weeks\")}return i.toDate()}return i.toDate()},g=0,y=function(t){return\"undefined\"==typeof t?(g+=1,\"task\"+g):t},m=function(t,n){var r;r=\":\"===n.substr(0,1)?n.substr(1,n.length):n;for(var i=r.split(\",\"),a={},u=e.getDateFormat(),o=!0;o;)o=!1,i[0].match(/^\\s*active\\s*$/)&&(a.active=!0,i.shift(1),o=!0),i[0].match(/^\\s*done\\s*$/)&&(a.done=!0,i.shift(1),o=!0),i[0].match(/^\\s*crit\\s*$/)&&(a.crit=!0,i.shift(1),o=!0);var s;for(s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=y(),a.startTime=t.endTime,a.endTime=p(a.startTime,u,i[0]);break;case 2:a.id=y(),a.startTime=d(void 0,u,i[0]),a.endTime=p(a.startTime,u,i[1]);break;case 3:a.id=y(i[0]),a.startTime=d(void 0,u,i[1]),a.endTime=p(a.startTime,u,i[2])}return a},v=function(t,n){var e;e=\":\"===n.substr(0,1)?n.substr(1,n.length):n;for(var r=e.split(\",\"),i={},a=!0;a;)a=!1,r[0].match(/^\\s*active\\s*$/)&&(i.active=!0,r.shift(1),a=!0),r[0].match(/^\\s*done\\s*$/)&&(i.done=!0,r.shift(1),a=!0),r[0].match(/^\\s*crit\\s*$/)&&(i.crit=!0,r.shift(1),a=!0);var u;for(u=0;u<r.length;u++)r[u]=r[u].trim();switch(r.length){case 1:i.id=y(),i.startTime={type:\"prevTaskEnd\",id:t},i.endTime={data:r[0]};break;case 2:i.id=y(),i.startTime={type:\"getStartDate\",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=y(r[0]),i.startTime={type:\"getStartDate\",startData:r[1]},i.endTime={data:r[2]}}return i},_=[],b={};e.addTask=function(t,n){var e={section:l,type:l,processed:!1,raw:{data:n},task:t},r=v(f,n);e.raw.startTime=r.startTime,e.raw.endTime=r.endTime,e.id=r.id,e.prevTaskId=f,e.active=r.active,e.done=r.done,e.crit=r.crit;var i=_.push(e);f=e.id,b[e.id]=i-1},e.findTaskById=function(t){var n=b[t];return _[n]},e.addTaskOrg=function(t,n){var e={section:l,type:l,description:t,task:t},r=m(h,n);e.startTime=r.startTime,e.endTime=r.endTime,e.id=r.id,e.active=r.active,e.done=r.done,e.crit=r.crit,h=e,c.push(e)};var x=function(){var t,n=e.getDateFormat(),r=function(t){var r=_[t],i=\"\";switch(_[t].raw.startTime.type){case\"prevTaskEnd\":var a=e.findTaskById(r.prevTaskId);r.startTime=a.endTime;break;case\"getStartDate\":i=d(void 0,n,_[t].raw.startTime.startData),i&&(_[t].startTime=i)}return _[t].startTime&&(_[t].endTime=p(_[t].startTime,n,_[t].raw.endTime.data),_[t].endTime&&(_[t].processed=!0)),_[t].processed},i=!0;for(t=0;t<_.length;t++)r(t),i=i&&_[t].processed;return i};e.parseError=function(t,e){n.mermaidAPI.parseError(t,e)}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../logger\":130,moment:104}],121:[function(t,n){\"use strict\";var e=t(\"./parser/gantt\").parser;e.yy=t(\"./ganttDb\");var r,i=t(\"../../d3\"),a=t(\"moment\"),u={titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'\"Open-Sans\", \"sans-serif\"'};n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){u[n]=t[n]})};var o;n.exports.draw=function(t,n){function s(t,n,e){var r=u.barHeight,a=r+u.barGap,o=u.topPadding,s=u.leftPadding,d=i.scale.linear().domain([0,A.length]).range([\"#00B9FA\",\"#F95002\"]).interpolate(i.interpolateHcl);l(s,o,n,e),c(t,a,o,s,r,d,n,e),h(a,o,s,r,d),f(s,o,n,e)}function c(t,n,e,r,i,a,o){_.append(\"g\").selectAll(\"rect\").data(t).enter().append(\"rect\").attr(\"x\",0).attr(\"y\",function(t,r){return r*n+e-2}).attr(\"width\",function(){return o-u.rightPadding/2}).attr(\"height\",n).attr(\"class\",function(t){for(var n=0;n<A.length;n++)if(t.type===A[n])return\"section section\"+n%u.numberSectionStyles;return\"section section0\"});var s=_.append(\"g\").selectAll(\"rect\").data(t).enter();s.append(\"rect\").attr(\"rx\",3).attr(\"ry\",3).attr(\"x\",function(t){return w(t.startTime)+r}).attr(\"y\",function(t,r){return r*n+e}).attr(\"width\",function(t){return w(t.endTime)-w(t.startTime)}).attr(\"height\",i).attr(\"class\",function(t){for(var n=\"task \",e=0,r=0;r<A.length;r++)t.type===A[r]&&(e=r%u.numberSectionStyles);return t.active?t.crit?n+\" activeCrit\"+e:n+\" active\"+e:t.done?t.crit?n+\" doneCrit\"+e:n+\" done\"+e:t.crit?n+\" crit\"+e:n+\" task\"+e}),s.append(\"text\").text(function(t){return t.task}).attr(\"font-size\",u.fontSize).attr(\"x\",function(t){var n=w(t.startTime),e=w(t.endTime),i=this.getBBox().width;return i>e-n?e+i+1.5*u.leftPadding>o?n+r-5:e+r+5:(e-n)/2+n+r}).attr(\"y\",function(t,r){return r*n+u.barHeight/2+(u.fontSize/2-2)+e}).attr(\"text-height\",i).attr(\"class\",function(t){for(var n=w(t.startTime),e=w(t.endTime),r=this.getBBox().width,i=0,a=0;a<A.length;a++)t.type===A[a]&&(i=a%u.numberSectionStyles);var s=\"\";return t.active&&(s=t.crit?\"activeCritText\"+i:\"activeText\"+i),t.done?s=t.crit?s+\" doneCritText\"+i:s+\" doneText\"+i:t.crit&&(s=s+\" critText\"+i),r>e-n?e+r+1.5*u.leftPadding>o?\"taskTextOutsideLeft taskTextOutside\"+i+\" \"+s:\"taskTextOutsideRight taskTextOutside\"+i+\" \"+s:\"taskText taskText\"+i+\" \"+s})}function l(t,n,e,a){var o,s=[[\".%L\",function(t){return t.getMilliseconds()}],[\":%S\",function(t){return t.getSeconds()}],[\"h1 %I:%M\",function(t){return t.getMinutes()}]],c=[[\"%Y\",function(){return!0}]],l=[[\"%I:%M\",function(t){return t.getHours()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%B\",function(t){return t.getMonth()}]];\"undefined\"!=typeof u.axisFormatter&&(l=[],u.axisFormatter.forEach(function(t){var n=[];n[0]=t[0],n[1]=t[1],l.push(n)})),o=s.concat(l).concat(c);var h=i.svg.axis().scale(w).orient(\"bottom\").tickSize(-a+n+u.gridLineStartPadding,0,0).tickFormat(i.time.format.multi(o));r>7&&230>r&&(h=h.ticks(i.time.monday.range)),_.append(\"g\").attr(\"class\",\"grid\").attr(\"transform\",\"translate(\"+t+\", \"+(a-50)+\")\").call(h).selectAll(\"text\").style(\"text-anchor\",\"middle\").attr(\"fill\",\"#000\").attr(\"stroke\",\"none\").attr(\"font-size\",10).attr(\"dy\",\"1em\")}function h(t,n){for(var e=[],r=0,i=0;i<A.length;i++)e[i]=[A[i],g(A[i],E)];_.append(\"g\").selectAll(\"text\").data(e).enter().append(\"text\").text(function(t){return t[0]}).attr(\"x\",10).attr(\"y\",function(i,a){if(!(a>0))return i[1]*t/2+n;for(var u=0;a>u;u++)return r+=e[a-1][1],i[1]*t/2+r*t+n}).attr(\"class\",function(t){for(var n=0;n<A.length;n++)if(t[0]===A[n])return\"sectionTitle sectionTitle\"+n%u.numberSectionStyles;return\"sectionTitle\"})}function f(t,n,e,r){var i=_.append(\"g\").attr(\"class\",\"today\"),a=new Date;i.append(\"line\").attr(\"x1\",w(a)+t).attr(\"x2\",w(a)+t).attr(\"y1\",u.titleTopMargin).attr(\"y2\",r-u.titleTopMargin).attr(\"class\",\"today\")}function d(t){for(var n={},e=[],r=0,i=t.length;i>r;++r)n.hasOwnProperty(t[r])||(n[t[r]]=!0,e.push(t[r]));return e}function p(t){for(var n=t.length,e={};n;)e[t[--n]]=(e[t[n]]||0)+1;return e}function g(t,n){return p(n)[t]||0}e.yy.clear(),e.parse(t);var y=document.getElementById(n);o=y.parentElement.offsetWidth,\"undefined\"==typeof o&&(o=1200),\"undefined\"!=typeof u.useWidth&&(o=u.useWidth);var m=e.yy.getTasks(),v=m.length*(u.barHeight+u.barGap)+2*u.topPadding;y.setAttribute(\"height\",\"100%\"),y.setAttribute(\"viewBox\",\"0 0 \"+o+\" \"+v);var _=i.select(\"#\"+n),b=i.min(m,function(t){return t.startTime}),x=i.max(m,function(t){return t.endTime}),w=i.time.scale().domain([i.min(m,function(t){return t.startTime}),i.max(m,function(t){return t.endTime})]).rangeRound([0,o-u.leftPadding-u.rightPadding]),A=[];r=a.duration(x-b).asDays();for(var k=0;k<m.length;k++)A.push(m[k].type);var E=A;A=d(A),s(m,o,v),\"undefined\"!=typeof u.useWidth&&y.setAttribute(\"width\",o),_.append(\"text\").text(e.yy.getTitle()).attr(\"x\",o/2).attr(\"y\",u.titleTopMargin).attr(\"class\",\"titleText\")}},{\"../../d3\":108,\"./ganttDb\":120,\"./parser/gantt\":122,moment:104}],122:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[6,8,10,11,12,13,14],r=[1,9],i=[1,10],a=[1,11],u=[1,12],o={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,dateFormat:11,title:12,section:13,taskTxt:14,taskData:15,$accept:0,$end:1},terminals_:{2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"title\",13:\"section\",14:\"taskTxt\",15:\"taskData\"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,2]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:return a[u-1];case 2:this.$=[];break;case 3:a[u-1].push(a[u]),this.$=a[u-1];break;case 4:case 5:this.$=a[u];break;case 6:case 7:this.$=[];break;case 8:r.setDateFormat(a[u].substr(11)),this.$=a[u].substr(11);break;case 9:r.setTitle(a[u].substr(6)),this.$=a[u].substr(6);break;case 10:r.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 11:r.addTask(a[u-1],a[u]),this.$=\"task\"}},table:[{3:1,4:[1,2]},{1:[3]},n(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,13:a,14:u},n(e,[2,7],{1:[2,1]}),n(e,[2,3]),{9:13,11:r,12:i,13:a,14:u},n(e,[2,5]),n(e,[2,6]),n(e,[2,8]),n(e,[2,9]),n(e,[2,10]),{15:[1,14]},n(e,[2,4]),n(e,[2,11])],defaultActions:{},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},s=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 10;case 1:break;case 2:break;case 3:break;case 4:return 4;case 5:return 11;case 6:return\"date\";case 7:return 12;case 8:return 13;case 9:return 14;case 10:return 15;case 11:return\":\";case 12:return 6;case 13:return\"INVALID\"}},rules:[/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return t}();return o.lexer=s,t.prototype=o,o.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:106,fs:1,path:105}],123:[function(t,n,e){\"use strict\";function r(t,n){return Math.floor(Math.random()*(n-t))+t}function i(){for(var t=\"0123456789abcdef\",n=\"\",e=0;7>e;e++)n+=t[r(0,16)];return n}function a(t,n){var e,r=!0;t:for(;r;){var i=t,u=n;for(r=!1,h.debug(\"Entering isfastforwardable:\",i.id,u.id);i.seq<=u.seq&&i!=u&&null!=u.parent;){if(Array.isArray(u.parent)){if(h.debug(\"In merge commit:\",u.parent),e=a(i,f[u.parent[0]]))return e;t=i,n=f[u.parent[1]],r=!0;continue t}u=f[u.parent]}return h.debug(i.id,u.id),i.id==u.id}}function u(t,n){var e=t.seq,r=n.seq;return e>r?a(n,t):!1}function o(t,n,e){var r=l.find(t,n);if(r){var i=l.indexOf(t,l.find(t,n));t.splice(i,1,e)}else t.push(e)}function s(t){var n=l.maxBy(t,\"seq\"),e=\"\";l.each(t,function(t){e+=t==n?\"\t*\":\"\t|\"});var r=[e,n.id,n.seq];if(l.each(p,function(t,e){t==n.id&&r.push(e)}),h.debug(r.join(\" \")),Array.isArray(n.parent)){var i=f[n.parent[0]];o(t,n,i),t.push(f[n.parent[1]])}else{if(null==n.parent)return;var a=f[n.parent];o(t,n,a)}t=l.uniqBy(t,\"id\"),s(t)}var c=t(\"../../logger\"),l=t(\"lodash\"),h=new c.Log(1),f={},d=null,p={master:d},g=\"master\",y=\"LR\",m=0;e.setDirection=function(t){y=t};var v={};e.setOptions=function(t){h.debug(\"options str\",t),t=t&&t.trim(),t=t||\"{}\";try{v=JSON.parse(t)}catch(n){h.error(\"error while parsing gitGraph options\",n.message)}},e.getOptions=function(){return v},e.commit=function(t){var n={id:i(),message:t,seq:m++,parent:null==d?null:d.id};d=n,f[n.id]=n,p[g]=n.id,h.debug(\"in pushCommit \"+n.id)},e.branch=function(t){p[t]=null!=d?d.id:null,h.debug(\"in createBranch\")},e.merge=function(t){var n=f[p[g]],e=f[p[t]];if(u(n,e))return void h.debug(\"Already merged\");if(a(n,e))p[g]=p[t],d=f[p[g]];else{var r={id:i(),message:\"merged branch \"+t+\" into \"+g,seq:m++,parent:[null==d?null:d.id,p[t]]};d=r,f[r.id]=r,p[g]=r.id}h.debug(p),h.debug(\"in mergeBranch\")},e.checkout=function(t){h.debug(\"in checkout\"),g=t;var n=p[g];d=f[n]},e.reset=function(t){h.debug(\"in reset\",t);var n=t.split(\":\")[0],e=parseInt(t.split(\":\")[1]),r=\"HEAD\"==n?d:f[p[n]];for(h.debug(r,e);e>0;)if(r=f[r.parent],e--,!r){var i=\"Critical error - unique parent commit not found during reset\";throw h.error(i),i}d=r,p[g]=r.id},e.prettyPrint=function(){h.debug(f);var t=e.getCommitsArray()[0];s([t])},e.clear=function(){f={},d=null,p={master:d},g=\"master\",m=0},e.getBranchesAsObjArray=function(){var t=l.map(p,function(t,n){return{name:n,commit:f[t]}});return t},e.getBranches=function(){return p},e.getCommits=function(){return f},e.getCommitsArray=function(){var t=Object.keys(f).map(function(t){return f[t]});return l.each(t,function(t){h.debug(t.id)}),l.orderBy(t,[\"seq\"],[\"desc\"])},e.getCurrentBranch=function(){return g},e.getDirection=function(){return y},e.getHead=function(){return d}},{\"../../logger\":130,lodash:103}],124:[function(t,n,e){\"use strict\";function r(t){t.append(\"defs\").append(\"g\").attr(\"id\",\"def-commit\").append(\"circle\").attr(\"r\",v.nodeRadius).attr(\"cx\",0).attr(\"cy\",0),t.select(\"#def-commit\").append(\"foreignObject\").attr(\"width\",v.nodeLabel.width).attr(\"height\",v.nodeLabel.height).attr(\"x\",v.nodeLabel.x).attr(\"y\",v.nodeLabel.y).attr(\"class\",\"node-label\").attr(\"requiredFeatures\",\"http://www.w3.org/TR/SVG11/feature#Extensibility\").append(\"xhtml:p\").html(\"\")}function i(t,n,e,r){r=r||\"basis\";var i=v.branchColors[e%v.branchColors.length],a=p.svg.line().x(function(t){return Math.round(t.x)}).y(function(t){return Math.round(t.y)}).interpolate(r);t.append(\"svg:path\").attr(\"d\",a(n)).style(\"stroke\",i).style(\"stroke-width\",v.lineStrokeWidth).style(\"fill\",\"none\")}function a(t,n){n=n||t.node().getBBox();var e=t.node().getCTM(),r=e.e+n.x*e.a,i=e.f+n.y*e.d;\n\nreturn{left:r,top:i,width:n.width,height:n.height}}function u(t,n,e,r,u){y.debug(\"svgDrawLineForCommits: \",n,e);var o=a(t.select(\"#node-\"+n+\" circle\")),s=a(t.select(\"#node-\"+e+\" circle\"));switch(r){case\"LR\":if(o.left-s.left>v.nodeSpacing){var c={x:o.left-v.nodeSpacing,y:s.top+s.height/2},l={x:s.left+s.width,y:s.top+s.height/2};i(t,[c,l],u,\"linear\"),i(t,[{x:o.left,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,y:c.y},c],u)}else i(t,[{x:o.left,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-v.nodeSpacing/2,y:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],u);break;case\"BT\":s.top-o.top>v.nodeSpacing?(c={x:s.left+s.width/2,y:o.top+o.height+v.nodeSpacing},l={x:s.left+s.width/2,y:s.top},i(t,[c,l],u,\"linear\"),i(t,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+o.height+v.nodeSpacing/2},{x:s.left+s.width/2,y:c.y-v.nodeSpacing/2},c],u)):i(t,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+v.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-v.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],u)}}function o(t,n){return t.select(n).node().cloneNode(!0)}function s(t,n,e,r){var i,a=Object.keys(m).length;if(f.isString(n))do{if(i=m[n],y.debug(\"in renderCommitHistory\",i.id,i.seq),t.select(\"#node-\"+n).size()>0)return;t.append(function(){return o(t,\"#def-commit\")}).attr(\"class\",\"commit\").attr(\"id\",function(){return\"node-\"+i.id}).attr(\"transform\",function(){switch(r){case\"LR\":return\"translate(\"+(i.seq*v.nodeSpacing+v.leftMargin)+\", \"+l*v.branchOffset+\")\";case\"BT\":return\"translate(\"+(l*v.branchOffset+v.leftMargin)+\", \"+(a-i.seq)*v.nodeSpacing+\")\"}}).attr(\"fill\",v.nodeFillColor).attr(\"stroke\",v.nodeStrokeColor).attr(\"stroke-width\",v.nodeStrokeWidth);var u=f.find(e,[\"commit\",i]);u&&(y.debug(\"found branch \",u.name),t.select(\"#node-\"+i.id+\" p\").append(\"xhtml:span\").attr(\"class\",\"branch-label\").text(u.name+\", \")),t.select(\"#node-\"+i.id+\" p\").append(\"xhtml:span\").attr(\"class\",\"commit-id\").text(i.id),\"\"!==i.message&&\"BT\"===r&&t.select(\"#node-\"+i.id+\" p\").append(\"xhtml:span\").attr(\"class\",\"commit-msg\").text(\", \"+i.message),n=i.parent}while(n&&m[n]);f.isArray(n)&&(y.debug(\"found merge commmit\",n),s(t,n[0],e,r),l++,s(t,n[1],e,r),l--)}function c(t,n,e,r){for(r=r||0;n.seq>0&&!n.lineDrawn;)f.isString(n.parent)?(u(t,n.id,n.parent,e,r),n.lineDrawn=!0,n=m[n.parent]):f.isArray(n.parent)&&(u(t,n.id,n.parent[0],e,r),u(t,n.id,n.parent[1],e,r+1),c(t,m[n.parent[1]],e,r+1),n.lineDrawn=!0,n=m[n.parent[0]])}var l,h=t(\"./gitGraphAst\"),f=t(\"lodash\"),d=t(\"./parser/gitGraph\"),p=t(\"../../d3\"),g=t(\"../../logger\"),y=new g.Log,m={},v={nodeSpacing:75,nodeFillColor:\"yellow\",nodeStrokeWidth:2,nodeStrokeColor:\"grey\",lineStrokeWidth:4,branchOffset:50,lineColor:\"grey\",leftMargin:50,branchColors:[\"#442f74\",\"#983351\",\"#609732\",\"#AA9A39\"],nodeRadius:15,nodeLabel:{width:75,height:100,x:-25,y:15}},_={};e.setConf=function(t){_=t},e.draw=function(t,n,e){try{var i;i=d.parser,i.yy=h,y.debug(\"in gitgraph renderer\",t,n,e),i.parse(t+\"\\n\"),v=f.extend(v,_,h.getOptions()),y.debug(\"effective options\",v);var a=h.getDirection();m=h.getCommits();var u=h.getBranchesAsObjArray();\"BT\"===a&&(v.nodeLabel.x=u.length*v.branchOffset,v.nodeLabel.width=\"100%\",v.nodeLabel.y=-2*v.nodeRadius);var o=p.select(\"#\"+n);r(o),l=1,f.each(u,function(t){s(o,t.commit.id,u,a),c(o,t.commit,a),l++}),o.attr(\"height\",function(){return\"BT\"===a?Object.keys(m).length*v.nodeSpacing:(u.length+1)*v.branchOffset})}catch(g){y.error(\"Error while rendering gitgraph\"),y.error(g.message)}}},{\"../../d3\":108,\"../../logger\":130,\"./gitGraphAst\":123,\"./parser/gitGraph\":125,lodash:103}],125:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[2,3],r=[1,7],i=[7,12,15,17,19,20,21],a=[7,11,12,15,17,19,20,21],u=[2,20],o=[1,32],s={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,\":\":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 1:return a[u-1];case 2:return r.setDirection(a[u-3]),a[u-1];case 4:r.setOptions(a[u-1]),this.$=a[u];break;case 5:a[u-1]+=a[u],this.$=a[u-1];break;case 7:this.$=[];break;case 8:a[u-1].push(a[u]),this.$=a[u-1];break;case 9:this.$=a[u-1];break;case 11:r.commit(a[u]);break;case 12:r.branch(a[u]);break;case 13:r.checkout(a[u]);break;case 14:r.merge(a[u]);break;case 15:r.reset(a[u]);break;case 16:this.$=\"\";break;case 17:this.$=a[u];break;case 18:this.$=a[u-1]+\":\"+a[u];break;case 19:this.$=a[u-1]+\":\"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:e,9:6,12:r},{5:[1,8]},{7:[1,9]},n(i,[2,7],{10:10,11:[1,11]}),n(a,[2,6]),{6:12,7:e,9:6,12:r},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},n(a,[2,5]),{7:[1,21]},n(i,[2,8]),{12:[1,22]},n(i,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},n(i,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:u,25:31,26:o},{12:u,25:33,26:o},{12:[2,18]},{12:u,25:34,26:o},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},c=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 12;case 1:break;case 2:break;case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:return 8;case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin(\"options\");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin(\"string\");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][a-zA-Z0-9_]+)/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};return t}();return s.lexer=c,t.prototype=s,s.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:106,fs:1,path:105}],126:[function(t,n,e){(function(r){\"use strict\";var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,2],r=[1,3],i=[1,4],a=[2,4],u=[1,9],o=[1,11],s=[1,12],c=[1,14],l=[1,15],h=[1,17],f=[1,18],d=[1,19],p=[1,20],g=[1,22],y=[1,23],m=[1,4,5,10,15,16,18,20,21,22,23,24,25,36],v=[1,31],_=[4,5,10,15,16,18,20,21,22,23,25,36],b=[34,35,36],x={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,participant:10,actor:11,AS:12,restOfLine:13,signal:14,activate:15,deactivate:16,note_statement:17,title:18,text2:19,loop:20,end:21,opt:22,alt:23,\"else\":24,note:25,placement:26,over:27,actor_pair:28,spaceList:29,\",\":30,left_of:31,right_of:32,signaltype:33,\"+\":34,\"-\":35,ACTOR:36,SOLID_OPEN_ARROW:37,DOTTED_OPEN_ARROW:38,SOLID_ARROW:39,DOTTED_ARROW:40,SOLID_CROSS:41,DOTTED_CROSS:42,TXT:43,$accept:0,$end:1},terminals_:{2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",10:\"participant\",12:\"AS\",13:\"restOfLine\",15:\"activate\",16:\"deactivate\",18:\"title\",20:\"loop\",21:\"end\",22:\"opt\",23:\"alt\",24:\"else\",25:\"note\",27:\"over\",30:\",\",31:\"left_of\",32:\"right_of\",34:\"+\",35:\"-\",36:\"ACTOR\",37:\"SOLID_OPEN_ARROW\",38:\"DOTTED_OPEN_ARROW\",39:\"SOLID_ARROW\",40:\"DOTTED_ARROW\",41:\"SOLID_CROSS\",42:\"DOTTED_CROSS\",43:\"TXT\"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,5],[9,3],[9,2],[9,3],[9,3],[9,2],[9,3],[9,4],[9,4],[9,7],[17,4],[17,4],[29,2],[29,1],[28,3],[28,1],[26,1],[26,1],[14,5],[14,5],[14,4],[11,1],[33,1],[33,1],[33,1],[33,1],[33,1],[33,1],[19,1]],performAction:function(t,n,e,r,i,a){var u=a.length-1;switch(i){case 3:return r.apply(a[u]),a[u];case 4:this.$=[];break;case 5:a[u-1].push(a[u]),this.$=a[u-1];break;case 6:case 7:this.$=a[u];break;case 8:this.$=[];break;case 9:a[u-3].description=a[u-1],this.$=a[u-3];break;case 10:this.$=a[u-1];break;case 12:this.$={type:\"activeStart\",signalType:r.LINETYPE.ACTIVE_START,actor:a[u-1]};break;case 13:this.$={type:\"activeEnd\",signalType:r.LINETYPE.ACTIVE_END,actor:a[u-1]};break;case 15:this.$=[{type:\"setTitle\",text:a[u-1]}];break;case 16:a[u-1].unshift({type:\"loopStart\",loopText:a[u-2],signalType:r.LINETYPE.LOOP_START}),a[u-1].push({type:\"loopEnd\",loopText:a[u-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[u-1];break;case 17:a[u-1].unshift({type:\"optStart\",optText:a[u-2],signalType:r.LINETYPE.OPT_START}),a[u-1].push({type:\"optEnd\",optText:a[u-2],signalType:r.LINETYPE.OPT_END}),this.$=a[u-1];break;case 18:a[u-4].unshift({type:\"altStart\",altText:a[u-5],signalType:r.LINETYPE.ALT_START}),a[u-4].push({type:\"else\",altText:a[u-2],signalType:r.LINETYPE.ALT_ELSE}),a[u-4]=a[u-4].concat(a[u-1]),a[u-4].push({type:\"altEnd\",signalType:r.LINETYPE.ALT_END}),this.$=a[u-4];break;case 19:this.$=[a[u-1],{type:\"addNote\",placement:a[u-2],actor:a[u-1].actor,text:a[u]}];break;case 20:a[u-2]=[].concat(a[u-1],a[u-1]).slice(0,2),a[u-2][0]=a[u-2][0].actor,a[u-2][1]=a[u-2][1].actor,this.$=[a[u-1],{type:\"addNote\",placement:r.PLACEMENT.OVER,actor:a[u-2].slice(0,2),text:a[u]}];break;case 23:this.$=[a[u-2],a[u]];break;case 24:this.$=a[u];break;case 25:this.$=r.PLACEMENT.LEFTOF;break;case 26:this.$=r.PLACEMENT.RIGHTOF;break;case 27:this.$=[a[u-4],a[u-1],{type:\"addMessage\",from:a[u-4].actor,to:a[u-1].actor,signalType:a[u-3],msg:a[u]},{type:\"activeStart\",signalType:r.LINETYPE.ACTIVE_START,actor:a[u-1]}];break;case 28:this.$=[a[u-4],a[u-1],{type:\"addMessage\",from:a[u-4].actor,to:a[u-1].actor,signalType:a[u-3],msg:a[u]},{type:\"activeEnd\",signalType:r.LINETYPE.ACTIVE_END,actor:a[u-4]}];break;case 29:this.$=[a[u-3],a[u-1],{type:\"addMessage\",from:a[u-3].actor,to:a[u-1].actor,signalType:a[u-2],msg:a[u]}];break;case 30:this.$={type:\"addActor\",actor:a[u]};break;case 31:this.$=r.LINETYPE.SOLID_OPEN;break;case 32:this.$=r.LINETYPE.DOTTED_OPEN;break;case 33:this.$=r.LINETYPE.SOLID;break;case 34:this.$=r.LINETYPE.DOTTED;break;case 35:this.$=r.LINETYPE.SOLID_CROSS;break;case 36:this.$=r.LINETYPE.DOTTED_CROSS;break;case 37:this.$=a[u].substring(1).trim().replace(/\\\\n/gm,\"\\n\")}},table:[{3:1,4:e,5:r,6:i},{1:[3]},{3:5,4:e,5:r,6:i},{3:6,4:e,5:r,6:i},n([1,4,5,10,15,16,18,20,22,23,25,36],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,22:d,23:p,25:g,36:y},n(m,[2,5]),{9:24,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,22:d,23:p,25:g,36:y},n(m,[2,7]),n(m,[2,8]),{11:25,36:y},{5:[1,26]},{11:27,36:y},{11:28,36:y},{5:[1,29]},{19:30,43:v},{13:[1,32]},{13:[1,33]},{13:[1,34]},{33:35,37:[1,36],38:[1,37],39:[1,38],40:[1,39],41:[1,40],42:[1,41]},{26:42,27:[1,43],31:[1,44],32:[1,45]},n([5,12,30,37,38,39,40,41,42,43],[2,30]),n(m,[2,6]),{5:[1,47],12:[1,46]},n(m,[2,11]),{5:[1,48]},{5:[1,49]},n(m,[2,14]),{5:[1,50]},{5:[2,37]},n(_,a,{7:51}),n(_,a,{7:52}),n([4,5,10,15,16,18,20,22,23,24,25,36],a,{7:53}),{11:56,34:[1,54],35:[1,55],36:y},n(b,[2,31]),n(b,[2,32]),n(b,[2,33]),n(b,[2,34]),n(b,[2,35]),n(b,[2,36]),{11:57,36:y},{11:59,28:58,36:y},{36:[2,25]},{36:[2,26]},{13:[1,60]},n(m,[2,10]),n(m,[2,12]),n(m,[2,13]),n(m,[2,15]),{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,21:[1,61],22:d,23:p,25:g,36:y},{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,21:[1,62],22:d,23:p,25:g,36:y},{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,22:d,23:p,24:[1,63],25:g,36:y},{11:64,36:y},{11:65,36:y},{19:66,43:v},{19:67,43:v},{19:68,43:v},{30:[1,69],43:[2,24]},{5:[1,70]},n(m,[2,16]),n(m,[2,17]),{13:[1,71]},{19:72,43:v},{19:73,43:v},{5:[2,29]},{5:[2,19]},{5:[2,20]},{11:74,36:y},n(m,[2,9]),n(_,a,{7:75}),{5:[2,27]},{5:[2,28]},{43:[2,23]},{4:u,5:o,8:8,9:10,10:s,11:21,14:13,15:c,16:l,17:16,18:h,20:f,21:[1,76],22:d,23:p,25:g,36:y},n(m,[2,18])],defaultActions:{5:[2,1],6:[2,2],31:[2,37],44:[2,25],45:[2,26],66:[2,29],67:[2,19],68:[2,20],72:[2,27],73:[2,28],74:[2,23]},parseError:function(t,n){if(!n.recoverable){var e=function(t,n){this.message=t,this.hash=n};throw e.prototype=Error,new e(t,n)}this.trace(t)},parse:function(t){var n=this,e=[0],r=[null],i=[],a=this.table,u=\"\",o=0,s=0,c=0,l=2,h=1,f=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,\"undefined\"==typeof d.yylloc&&(d.yylloc={});var y=d.yylloc;i.push(y);var m=d.options&&d.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,_,b,x,w,A,k,E,M,S=function(){var t;return t=d.lex()||h,\"number\"!=typeof t&&(t=n.symbols_[t]||t),t},D={};;){if(b=e[e.length-1],this.defaultActions[b]?x=this.defaultActions[b]:((null===v||\"undefined\"==typeof v)&&(v=S()),x=a[b]&&a[b][v]),\"undefined\"==typeof x||!x.length||!x[0]){var C=\"\";M=[];for(A in a[b])this.terminals_[A]&&A>l&&M.push(\"'\"+this.terminals_[A]+\"'\");C=d.showPosition?\"Parse error on line \"+(o+1)+\":\\n\"+d.showPosition()+\"\\nExpecting \"+M.join(\", \")+\", got '\"+(this.terminals_[v]||v)+\"'\":\"Parse error on line \"+(o+1)+\": Unexpected \"+(v==h?\"end of input\":\"'\"+(this.terminals_[v]||v)+\"'\"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:y,expected:M})}if(x[0]instanceof Array&&x.length>1)throw new Error(\"Parse Error: multiple actions possible at state: \"+b+\", token: \"+v);switch(x[0]){case 1:e.push(v),r.push(d.yytext),i.push(d.yylloc),e.push(x[1]),v=null,_?(v=_,_=null):(s=d.yyleng,u=d.yytext,o=d.yylineno,y=d.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[x[1]][1],D.$=r[r.length-k],D._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},m&&(D._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(D,[u,s,o,p.yy,x[1],r,i].concat(f)),\"undefined\"!=typeof w)return w;k&&(e=e.slice(0,-1*k*2),r=r.slice(0,-1*k),i=i.slice(0,-1*k)),e.push(this.productions_[x[1]][0]),r.push(D.$),i.push(D._$),E=a[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}},w=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\"\",this.conditionStack=[\"INITIAL\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\\r\\n?|\\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\\r\\n?|\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\\r\\n?|\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\"...\":\"\")+t.substr(-20).replace(/\\n/g,\"\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\"...\":\"\")).replace(/\\n/g,\"\")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join(\"-\");return t+this.upcomingInput()+\"\\n\"+n+\"^\"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\\r\\n?|\\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\r?\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext=\"\",this.match=\"\");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):\"\"===this._input?this.EOF:this.parseError(\"Lexical error on line \"+(this.yylineno+1)+\". Unrecognized text.\\n\"+this.showPosition(),{text:\"\",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:\"INITIAL\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\"case-insensitive\":!0},performAction:function(t,n,e,r){switch(e){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:return this.begin(\"ID\"),10;case 6:return this.begin(\"ALIAS\"),36;case 7:return this.popState(),this.popState(),this.begin(\"LINE\"),12;case 8:return this.popState(),this.popState(),5;case 9:return this.begin(\"LINE\"),20;case 10:return this.begin(\"LINE\"),22;case 11:return this.begin(\"LINE\"),23;case 12:return this.begin(\"LINE\"),24;case 13:return this.popState(),13;case 14:return 21;case 15:return 31;case 16:return 32;case 17:return 27;case 18:return 25;case 19:return this.begin(\"ID\"),15;case 20:return this.begin(\"ID\"),16;case 21:return 18;case 22:return 6;case 23:return 30;case 24:return 5;case 25:return n.yytext=n.yytext.trim(),36;case 26:return 39;case 27:return 40;case 28:return 37;case 29:return 38;case 30:return 41;case 31:return 42;case 32:return 43;case 33:return 34;case 34:return 35;case 35:return 5;case 36:return\"INVALID\"}},rules:[/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[2,3,13],inclusive:!1},ALIAS:{rules:[2,3,7,8],inclusive:!1},ID:{rules:[2,3,6],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],inclusive:!0}}};return t}();return x.lexer=w,t.prototype=x,x.Parser=t,new t}();\"undefined\"!=typeof t&&\"undefined\"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log(\"Usage: \"+n[0]+\" FILE\"),r.exit(1));var i=t(\"fs\").readFileSync(t(\"path\").normalize(n[1]),\"utf8\");return e.parser.parse(i)},\"undefined\"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t(\"_process\"))},{_process:106,fs:1,path:105}],127:[function(t,n,e){(function(n){\"use strict\";var r={},i=[],a=[],u=\"\",o=t(\"../../logger\"),s=new o.Log;e.addActor=function(t,n,e){var i=r[t];i&&n===i.name&&null==e||(null==e&&(e=n),r[t]={name:n,description:e})},e.addMessage=function(t,n,e,r){i.push({from:t,to:n,message:e,answer:r})},e.addSignal=function(t,n,e,r){s.debug(\"Adding message from=\"+t+\" to=\"+n+\" message=\"+e+\" type=\"+r),i.push({from:t,to:n,message:e,type:r})},e.getMessages=function(){return i},e.getActors=function(){return r},e.getActor=function(t){return r[t]},e.getActorKeys=function(){return Object.keys(r)},e.getTitle=function(){return u},e.clear=function(){r={},i=[]},e.LINETYPE={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18},e.ARROWTYPE={FILLED:0,OPEN:1},e.PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2},e.addNote=function(t,n,r){var u={actor:t,placement:n,message:r},o=[].concat(t,t);a.push(u),i.push({from:o[0],to:o[1],message:r,type:e.LINETYPE.NOTE,placement:n})},e.setTitle=function(t){u=t},e.parseError=function(t,e){n.mermaidAPI.parseError(t,e)},e.apply=function(t){if(t instanceof Array)t.forEach(function(t){e.apply(t)});else switch(t.type){case\"addActor\":e.addActor(t.actor,t.actor,t.description);break;case\"activeStart\":e.addSignal(t.actor,void 0,void 0,t.signalType);break;case\"activeEnd\":e.addSignal(t.actor,void 0,void 0,t.signalType);break;case\"addNote\":e.addNote(t.actor,t.placement,t.text);break;case\"addMessage\":e.addSignal(t.from,t.to,t.msg,t.signalType);break;case\"loopStart\":e.addSignal(void 0,void 0,t.loopText,t.signalType);break;case\"loopEnd\":e.addSignal(void 0,void 0,void 0,t.signalType);break;case\"optStart\":e.addSignal(void 0,void 0,t.optText,t.signalType);break;case\"optEnd\":e.addSignal(void 0,void 0,void 0,t.signalType);break;case\"altStart\":e.addSignal(void 0,void 0,t.altText,t.signalType);break;case\"else\":e.addSignal(void 0,void 0,t.altText,t.signalType);break;case\"altEnd\":e.addSignal(void 0,void 0,void 0,t.signalType);break;case\"setTitle\":e.setTitle(t.text)}}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../../logger\":130}],128:[function(t,n,e){\"use strict\";var r=t(\"./parser/sequenceDiagram\").parser;r.yy=t(\"./sequenceDb\");var i=t(\"./svgDraw\"),a=t(\"../../d3\"),u=t(\"../../logger\"),o=new u.Log,s={\ndiagramMarginX:50,diagramMarginY:30,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!1,bottomMarginAdj:1,activationWidth:10,textPlacement:\"tspan\"};e.bounds={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],init:function(){this.sequenceItems=[],this.activations=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,n,e,r){t[n]=\"undefined\"==typeof t[n]?e:r(e,t[n])},updateBounds:function(t,n,r,i){function a(a){return function(c){o++;var l=u.sequenceItems.length-o+1;u.updateVal(c,\"starty\",n-l*s.boxMargin,Math.min),u.updateVal(c,\"stopy\",i+l*s.boxMargin,Math.max),u.updateVal(e.bounds.data,\"startx\",t-l*s.boxMargin,Math.min),u.updateVal(e.bounds.data,\"stopx\",r+l*s.boxMargin,Math.max),\"activation\"!=a&&(u.updateVal(c,\"startx\",t-l*s.boxMargin,Math.min),u.updateVal(c,\"stopx\",r+l*s.boxMargin,Math.max),u.updateVal(e.bounds.data,\"starty\",n-l*s.boxMargin,Math.min),u.updateVal(e.bounds.data,\"stopy\",i+l*s.boxMargin,Math.max))}}var u=this,o=0;this.sequenceItems.forEach(a()),this.activations.forEach(a(\"activation\"))},insert:function(t,n,r,i){var a,u,o,s;a=Math.min(t,r),o=Math.max(t,r),u=Math.min(n,i),s=Math.max(n,i),this.updateVal(e.bounds.data,\"startx\",a,Math.min),this.updateVal(e.bounds.data,\"starty\",u,Math.min),this.updateVal(e.bounds.data,\"stopx\",o,Math.max),this.updateVal(e.bounds.data,\"stopy\",s,Math.max),this.updateBounds(a,u,o,s)},newActivation:function(t,n){var e=r.yy.getActors()[t.from.actor],a=h(t.from.actor).length,u=e.x+s.width/2+(a-1)*s.activationWidth/2;this.activations.push({startx:u,starty:this.verticalPos+2,stopx:u+s.activationWidth,stopy:void 0,actor:t.from.actor,anchored:i.anchorElement(n)})},endActivation:function(t){var n=this.activations.map(function(t){return t.actor}).lastIndexOf(t.from.actor),e=this.activations.splice(n,1)[0];return e},newLoop:function(t){this.sequenceItems.push({startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t})},endLoop:function(){var t=this.sequenceItems.pop();return t},addElseToLoop:function(t){var n=this.sequenceItems.pop();n.elsey=e.bounds.getVerticalPos(),n.elseText=t,this.sequenceItems.push(n)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}};var c=function(t,n,r,a,u){var o=i.getNoteRect();o.x=n,o.y=r,o.width=u||s.width,o[\"class\"]=\"note\";var c=t.append(\"g\"),l=i.drawRect(c,o),h=i.getTextObj();h.x=n-4,h.y=r-13,h.textMargin=s.noteMargin,h.dy=\"1em\",h.text=a.message,h[\"class\"]=\"noteText\";var f=i.drawText(c,h,o.width-s.noteMargin),d=f[0][0].getBBox().height;!u&&d>s.width?(f.remove(),c=t.append(\"g\"),f=i.drawText(c,h,2*o.width-s.noteMargin),d=f[0][0].getBBox().height,l.attr(\"width\",2*o.width),e.bounds.insert(n,r,n+2*o.width,r+2*s.noteMargin+d)):e.bounds.insert(n,r,n+o.width,r+2*s.noteMargin+d),l.attr(\"height\",d+2*s.noteMargin),e.bounds.bumpVerticalPos(d+2*s.noteMargin)},l=function(t,n,i,a,u){var o,c=t.append(\"g\"),l=n+(i-n)/2,h=c.append(\"text\").attr(\"x\",l).attr(\"y\",a-7).style(\"text-anchor\",\"middle\").attr(\"class\",\"messageText\").text(u.message);o=\"undefined\"!=typeof h[0][0].getBBox?h[0][0].getBBox().width:h[0][0].getBoundingClientRect();var f;if(n===i){f=c.append(\"path\").attr(\"d\",\"M \"+n+\",\"+a+\" C \"+(n+60)+\",\"+(a-10)+\" \"+(n+60)+\",\"+(a+30)+\" \"+n+\",\"+(a+20)),e.bounds.bumpVerticalPos(30);var d=Math.max(o/2,100);e.bounds.insert(n-d,e.bounds.getVerticalPos()-10,i+d,e.bounds.getVerticalPos())}else f=c.append(\"line\"),f.attr(\"x1\",n),f.attr(\"y1\",a),f.attr(\"x2\",i),f.attr(\"y2\",a),e.bounds.insert(n,e.bounds.getVerticalPos()-10,i,e.bounds.getVerticalPos());u.type===r.yy.LINETYPE.DOTTED||u.type===r.yy.LINETYPE.DOTTED_CROSS||u.type===r.yy.LINETYPE.DOTTED_OPEN?(f.style(\"stroke-dasharray\",\"3, 3\"),f.attr(\"class\",\"messageLine1\")):f.attr(\"class\",\"messageLine0\");var p=\"\";s.arrowMarkerAbsolute&&(p=window.location.protocol+\"//\"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\\(/g,\"\\\\(\"),p=p.replace(/\\)/g,\"\\\\)\")),f.attr(\"stroke-width\",2),f.attr(\"stroke\",\"black\"),f.style(\"fill\",\"none\"),(u.type===r.yy.LINETYPE.SOLID||u.type===r.yy.LINETYPE.DOTTED)&&f.attr(\"marker-end\",\"url(\"+p+\"#arrowhead)\"),(u.type===r.yy.LINETYPE.SOLID_CROSS||u.type===r.yy.LINETYPE.DOTTED_CROSS)&&f.attr(\"marker-end\",\"url(\"+p+\"#crosshead)\")};n.exports.drawActors=function(t,n,r,a){var u;for(u=0;u<r.length;u++){var o=r[u];n[o].x=u*s.actorMargin+u*s.width,n[o].y=a,n[o].width=s.diagramMarginX,n[o].height=s.diagramMarginY,i.drawActor(t,n[o].x,a,n[o].description,s),e.bounds.insert(n[o].x,a,n[o].x+s.width,s.height)}e.bounds.bumpVerticalPos(s.height)},n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){s[n]=t[n]})};var h=function(t){return n.exports.bounds.activations.filter(function(n){return n.actor==t})},f=function(t){var n=r.yy.getActors(),e=h(t),i=e.reduce(function(t,n){return Math.min(t,n.startx)},n[t].x+s.width/2),a=e.reduce(function(t,n){return Math.max(t,n.stopx)},n[t].x+s.width/2);return[i,a]};n.exports.draw=function(t,u){function h(t,n){var r=e.bounds.endActivation(t);r.starty+18>n&&(r.starty=n-6,n+=12),i.drawActivation(y,r,n,s),e.bounds.insert(r.startx,n-10,r.stopx,n)}r.yy.clear(),r.parse(t+\"\\n\"),e.bounds.init();var d,p,g,y=a.select(\"#\"+u),m=r.yy.getActors(),v=r.yy.getActorKeys(),_=r.yy.getMessages(),b=r.yy.getTitle();n.exports.drawActors(y,m,v,0),i.insertArrowHead(y),i.insertArrowCrossHead(y);var x;_.forEach(function(t){var n;switch(t.type){case r.yy.LINETYPE.NOTE:e.bounds.bumpVerticalPos(s.boxMargin),d=m[t.from].x,p=m[t.to].x,t.placement===r.yy.PLACEMENT.RIGHTOF?c(y,d+(s.width+s.actorMargin)/2,e.bounds.getVerticalPos(),t):t.placement===r.yy.PLACEMENT.LEFTOF?c(y,d-(s.width+s.actorMargin)/2,e.bounds.getVerticalPos(),t):t.to===t.from?c(y,d,e.bounds.getVerticalPos(),t):(g=Math.abs(d-p)+s.actorMargin,c(y,(d+p+s.width-g)/2,e.bounds.getVerticalPos(),t,g));break;case r.yy.LINETYPE.ACTIVE_START:e.bounds.newActivation(t,y);break;case r.yy.LINETYPE.ACTIVE_END:h(t,e.bounds.getVerticalPos());break;case r.yy.LINETYPE.LOOP_START:e.bounds.bumpVerticalPos(s.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin+s.boxTextMargin);break;case r.yy.LINETYPE.LOOP_END:n=e.bounds.endLoop(),i.drawLoop(y,n,\"loop\",s),e.bounds.bumpVerticalPos(s.boxMargin);break;case r.yy.LINETYPE.OPT_START:e.bounds.bumpVerticalPos(s.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin+s.boxTextMargin);break;case r.yy.LINETYPE.OPT_END:n=e.bounds.endLoop(),i.drawLoop(y,n,\"opt\",s),e.bounds.bumpVerticalPos(s.boxMargin);break;case r.yy.LINETYPE.ALT_START:e.bounds.bumpVerticalPos(s.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin+s.boxTextMargin);break;case r.yy.LINETYPE.ALT_ELSE:e.bounds.bumpVerticalPos(s.boxMargin),n=e.bounds.addElseToLoop(t.message),e.bounds.bumpVerticalPos(s.boxMargin);break;case r.yy.LINETYPE.ALT_END:n=e.bounds.endLoop(),i.drawLoop(y,n,\"alt\",s),e.bounds.bumpVerticalPos(s.boxMargin);break;default:try{x=t,e.bounds.bumpVerticalPos(s.messageMargin);var a=f(t.from),u=f(t.to),o=a[0]<=u[0]?1:0,v=a[0]<u[0]?0:1;d=a[o],p=u[v];var _=e.bounds.getVerticalPos();l(y,d,p,_,t);var b=a.concat(u);e.bounds.insert(Math.min.apply(null,b),_,Math.max.apply(null,b),_)}catch(w){console.error(\"error while drawing message\",w)}}}),s.mirrorActors&&(e.bounds.bumpVerticalPos(2*s.boxMargin),n.exports.drawActors(y,m,v,e.bounds.getVerticalPos()));var w=e.bounds.getBounds();o.debug(\"For line height fix Querying: #\"+u+\" .actor-line\");var A=a.selectAll(\"#\"+u+\" .actor-line\");A.attr(\"y2\",w.stopy);var k=w.stopy-w.starty+2*s.diagramMarginY;s.mirrorActors&&(k=k-s.boxMargin+s.bottomMarginAdj);var E=w.stopx-w.startx+2*s.diagramMarginX;b&&y.append(\"text\").text(b).attr(\"x\",(w.stopx-w.startx)/2-2*s.diagramMarginX).attr(\"y\",-25),s.useMaxWidth?(y.attr(\"height\",\"100%\"),y.attr(\"width\",\"100%\"),y.attr(\"style\",\"max-width:\"+E+\"px;\")):(y.attr(\"height\",k),y.attr(\"width\",E));var M=b?40:0;y.attr(\"viewBox\",w.startx-s.diagramMarginX+\" -\"+(s.diagramMarginY+M)+\" \"+E+\" \"+(k+M))}},{\"../../d3\":108,\"../../logger\":130,\"./parser/sequenceDiagram\":126,\"./sequenceDb\":127,\"./svgDraw\":129}],129:[function(t,n,e){\"use strict\";e.drawRect=function(t,n){var e=t.append(\"rect\");return e.attr(\"x\",n.x),e.attr(\"y\",n.y),e.attr(\"fill\",n.fill),e.attr(\"stroke\",n.stroke),e.attr(\"width\",n.width),e.attr(\"height\",n.height),e.attr(\"rx\",n.rx),e.attr(\"ry\",n.ry),\"undefined\"!=typeof n[\"class\"]&&e.attr(\"class\",n[\"class\"]),e},e.drawText=function(t,n,e){var r=n.text.replace(/<br\\/?>/gi,\" \"),i=t.append(\"text\");i.attr(\"x\",n.x),i.attr(\"y\",n.y),i.style(\"text-anchor\",n.anchor),i.attr(\"fill\",n.fill),\"undefined\"!=typeof n[\"class\"]&&i.attr(\"class\",n[\"class\"]);var a=i.append(\"tspan\");return a.attr(\"x\",n.x+2*n.textMargin),a.text(r),\"undefined\"!=typeof i.textwrap&&i.textwrap({x:n.x,y:n.y,width:e,height:1800},n.textMargin),i},e.drawLabel=function(t,n){var r=e.getNoteRect();r.x=n.x,r.y=n.y,r.width=50,r.height=20,r.fill=\"#526e52\",r.stroke=\"none\",r[\"class\"]=\"labelBox\",e.drawRect(t,r),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,n.fill=\"white\",e.drawText(t,n)};var r=-1;e.drawActor=function(t,n,a,u,o){var s=n+o.width/2,c=t.append(\"g\");0===a&&(r++,c.append(\"line\").attr(\"id\",\"actor\"+r).attr(\"x1\",s).attr(\"y1\",5).attr(\"x2\",s).attr(\"y2\",2e3).attr(\"class\",\"actor-line\").attr(\"stroke-width\",\"0.5px\").attr(\"stroke\",\"#999\"));var l=e.getNoteRect();l.x=n,l.y=a,l.fill=\"#eaeaea\",l.width=o.width,l.height=o.height,l[\"class\"]=\"actor\",l.rx=3,l.ry=3,e.drawRect(c,l),i(o)(u,c,l.x,l.y,l.width,l.height,{\"class\":\"actor\"})},e.anchorElement=function(t){return t.append(\"g\")},e.drawActivation=function(t,n,r){var i=e.getNoteRect(),a=n.anchored;i.x=n.startx,i.y=n.starty,i.fill=\"#f4f4f4\",i.width=n.stopx-n.startx,i.height=r-n.starty,e.drawRect(a,i)},e.drawLoop=function(t,n,r,i){var a=t.append(\"g\"),u=function(t,n,e,r){a.append(\"line\").attr(\"x1\",t).attr(\"y1\",n).attr(\"x2\",e).attr(\"y2\",r).attr(\"stroke-width\",2).attr(\"stroke\",\"#526e52\").attr(\"class\",\"loopLine\")};u(n.startx,n.starty,n.stopx,n.starty),u(n.stopx,n.starty,n.stopx,n.stopy),u(n.startx,n.stopy,n.stopx,n.stopy),u(n.startx,n.starty,n.startx,n.stopy),\"undefined\"!=typeof n.elsey&&u(n.startx,n.elsey,n.stopx,n.elsey);var o=e.getTextObj();o.text=r,o.x=n.startx,o.y=n.starty,o.labelMargin=15,o[\"class\"]=\"labelText\",o.fill=\"white\",e.drawLabel(a,o),o=e.getTextObj(),o.text=\"[ \"+n.title+\" ]\",o.x=n.startx+(n.stopx-n.startx)/2,o.y=n.starty+1.5*i.boxMargin,o.anchor=\"middle\",o[\"class\"]=\"loopText\",e.drawText(a,o),\"undefined\"!=typeof n.elseText&&(o.text=\"[ \"+n.elseText+\" ]\",o.y=n.elsey+1.5*i.boxMargin,e.drawText(a,o))},e.insertArrowHead=function(t){t.append(\"defs\").append(\"marker\").attr(\"id\",\"arrowhead\").attr(\"refX\",5).attr(\"refY\",2).attr(\"markerWidth\",6).attr(\"markerHeight\",4).attr(\"orient\",\"auto\").append(\"path\").attr(\"d\",\"M 0,0 V 4 L6,2 Z\")},e.insertArrowCrossHead=function(t){var n=t.append(\"defs\"),e=n.append(\"marker\").attr(\"id\",\"crosshead\").attr(\"markerWidth\",15).attr(\"markerHeight\",8).attr(\"orient\",\"auto\").attr(\"refX\",16).attr(\"refY\",4);e.append(\"path\").attr(\"fill\",\"black\").attr(\"stroke\",\"#000000\").style(\"stroke-dasharray\",\"0, 0\").attr(\"stroke-width\",\"1px\").attr(\"d\",\"M 9,2 V 6 L16,4 Z\"),e.append(\"path\").attr(\"fill\",\"none\").attr(\"stroke\",\"#000000\").style(\"stroke-dasharray\",\"0, 0\").attr(\"stroke-width\",\"1px\").attr(\"d\",\"M 0,1 L 6,7 M 6,1 L 0,7\")},e.getTextObj=function(){var t={x:0,y:0,fill:\"black\",\"text-anchor\":\"start\",style:\"#666\",width:100,height:100,textMargin:0,rx:0,ry:0};return t},e.getNoteRect=function(){var t={x:0,y:0,fill:\"#EDF2AE\",stroke:\"#666\",width:100,anchor:\"start\",height:100,rx:0,ry:0};return t};var i=function(){function t(t,n,e,i,a,u,o){var s=n.append(\"text\").attr(\"x\",e+a/2).attr(\"y\",i+u/2+5).style(\"text-anchor\",\"middle\").text(t);r(s,o)}function n(t,n,e,i,a,u,o){var s=n.append(\"text\").attr(\"x\",e+a/2).attr(\"y\",i).style(\"text-anchor\",\"middle\");if(s.append(\"tspan\").attr(\"x\",e+a/2).attr(\"dy\",\"0\").text(t),\"undefined\"!=typeof s.textwrap){s.textwrap({x:e+a/2,y:i,width:a,height:u},0);var c=s.selectAll(\"tspan\");c.length>0&&c[0].length>0&&(c=c[0],s.attr(\"y\",i+(u/2-s[0][0].getBBox().height*(1-1/c.length)/2)).attr(\"dominant-baseline\",\"central\").attr(\"alignment-baseline\",\"central\"))}r(s,o)}function e(t,e,i,a,u,o,s){var c=e.append(\"switch\"),l=c.append(\"foreignObject\").attr(\"x\",i).attr(\"y\",a).attr(\"width\",u).attr(\"height\",o),h=l.append(\"div\").style(\"display\",\"table\").style(\"height\",\"100%\").style(\"width\",\"100%\");h.append(\"div\").style(\"display\",\"table-cell\").style(\"text-align\",\"center\").style(\"vertical-align\",\"middle\").text(t),n(t,c,i,a,u,o,s),r(h,s)}function r(t,n){for(var e in n)n.hasOwnProperty(e)&&t.attr(e,n[e])}return function(r){return\"fo\"===r.textPlacement?e:\"old\"===r.textPlacement?t:n}}()},{}],130:[function(t,n,e){\"use strict\";function r(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getSeconds(),i=t.getMilliseconds();10>n&&(n=\"0\"+n),10>e&&(e=\"0\"+e),10>r&&(r=\"0\"+r),100>i&&(i=\"0\"+i),10>i&&(i=\"00\"+i);var a=n+\":\"+e+\":\"+r+\" (\"+i+\")\";return a}function i(t){var n=r(new Date);return\"%c \"+n+\" :%c\"+t+\": \"}function a(t){this.level=t,this.log=function(){var t=Array.prototype.slice.call(arguments),n=t.shift(),e=this.level;\"undefined\"==typeof e&&(e=o),n>=e&&\"undefined\"!=typeof console&&\"undefined\"!=typeof console.log&&(t.unshift(\"[\"+r(new Date)+\"] \"),console.log.apply(console,t.map(function(t){return\"object\"==typeof t?t.toString()+JSON.stringify(t,null,2):t})))},this.trace=window.console.debug.bind(window.console,i(\"TRACE\",name),\"color:grey;\",\"color: grey;\"),this.debug=window.console.debug.bind(window.console,i(\"DEBUG\",name),\"color:grey;\",\"color: green;\"),this.info=window.console.debug.bind(window.console,i(\"INFO\",name),\"color:grey;\",\"color: blue;\"),this.warn=window.console.debug.bind(window.console,i(\"WARN\",name),\"color:grey;\",\"color: orange;\"),this.error=window.console.debug.bind(window.console,i(\"ERROR\",name),\"color:grey;\",\"color: red;\")}var u={debug:1,info:2,warn:3,error:4,fatal:5,\"default\":5},o=u.error;e.setLogLevel=function(t){o=t},e.Log=a},{}],131:[function(t,n,e){(function(n){\"use strict\";var r=t(\"./logger\"),i=new r.Log,a=t(\"./diagrams/flowchart/graphDb\"),u=t(\"./utils\"),o=t(\"./diagrams/flowchart/flowRenderer\"),s=t(\"./diagrams/sequenceDiagram/sequenceRenderer\"),c=t(\"./diagrams/example/exampleRenderer\"),l=t(\"./diagrams/example/parser/example\"),h=t(\"./diagrams/flowchart/parser/flow\"),f=t(\"./diagrams/flowchart/parser/dot\"),d=t(\"./diagrams/sequenceDiagram/parser/sequenceDiagram\"),p=t(\"./diagrams/sequenceDiagram/sequenceDb\"),g=t(\"./diagrams/example/exampleDb\"),y=t(\"./diagrams/gantt/ganttRenderer\"),m=t(\"./diagrams/gantt/parser/gantt\"),v=t(\"./diagrams/gantt/ganttDb\"),_=t(\"./diagrams/classDiagram/parser/classDiagram\"),b=t(\"./diagrams/classDiagram/classRenderer\"),x=t(\"./diagrams/classDiagram/classDb\"),w=t(\"./diagrams/gitGraph/parser/gitGraph\"),A=t(\"./diagrams/gitGraph/gitGraphRenderer\"),k=t(\"./diagrams/gitGraph/gitGraphAst\"),E=t(\"./d3\");SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())};var M={logLevel:5,cloneCssStyles:!0,startOnLoad:!0,arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequenceDiagram:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'\"Open-Sans\", \"sans-serif\"',numberSectionStyles:3,axisFormatter:[[\"%I:%M\",function(t){return t.getHours()}],[\"w. %U\",function(t){return 1==t.getDay()}],[\"%a %d\",function(t){return t.getDay()&&1!=t.getDate()}],[\"%b %d\",function(t){return 1!=t.getDate()}],[\"%m-%y\",function(t){return t.getMonth()}]]},classDiagram:{},gitGraph:{},info:{}};r.setLogLevel(M.logLevel);var S=function(t){var n,e=u.detectType(t);switch(e){case\"gitGraph\":n=w,n.parser.yy=k;break;case\"graph\":n=h,n.parser.yy=a;break;case\"dotGraph\":n=f,n.parser.yy=a;break;case\"sequenceDiagram\":n=d,n.parser.yy=p;break;case\"info\":n=l,n.parser.yy=g;break;case\"gantt\":n=m,n.parser.yy=v;break;case\"classDiagram\":n=_,n.parser.yy=x}try{return n.parse(t),!0}catch(r){return!1}};e.parse=S,e.version=function(){return t(\"../package.json\").version},e.encodeEntities=function(t){var n=t;return n=n.replace(/style.*:\\S*#.*;/g,function(t){var n=t.substring(0,t.length-1);return n}),n=n.replace(/classDef.*:\\S*#.*;/g,function(t){var n=t.substring(0,t.length-1);return n}),n=n.replace(/#\\w+\\;/g,function(t){var n=t.substring(1,t.length-1),e=/^\\+?\\d+$/.test(n);return e?\"fl°°\"+n+\"¶ß\":\"fl°\"+n+\"¶ß\"})},e.decodeEntities=function(t){var n=t;return n=n.replace(/\\fl\\°\\°/g,function(){return\"&#\"}),n=n.replace(/\\fl\\°/g,function(){return\"&\"}),n=n.replace(/¶ß/g,function(){return\";\"})};var D=function(t,n,r,l){if(\"undefined\"!=typeof l)l.innerHTML=\"\",E.select(l).append(\"div\").attr(\"id\",\"d\"+t).append(\"svg\").attr(\"id\",t).attr(\"width\",\"100%\").attr(\"xmlns\",\"http://www.w3.org/2000/svg\").append(\"g\");else{var h=document.querySelector(\"#d\"+t);h&&(h.innerHTML=\"\"),E.select(\"body\").append(\"div\").attr(\"id\",\"d\"+t).append(\"svg\").attr(\"id\",t).attr(\"width\",\"100%\").attr(\"xmlns\",\"http://www.w3.org/2000/svg\").append(\"g\")}window.txt=n,n=e.encodeEntities(n);var h=E.select(\"#d\"+t).node(),f=u.detectType(n),d={};switch(f){case\"gitGraph\":M.flowchart.arrowMarkerAbsolute=M.arrowMarkerAbsolute,A.setConf(M.gitGraph),A.draw(n,t,!1);break;case\"graph\":M.flowchart.arrowMarkerAbsolute=M.arrowMarkerAbsolute,o.setConf(M.flowchart),o.draw(n,t,!1),M.cloneCssStyles&&(d=o.getClasses(n,!1),u.cloneCssStyles(h.firstChild,d));break;case\"dotGraph\":M.flowchart.arrowMarkerAbsolute=M.arrowMarkerAbsolute,o.setConf(M.flowchart),o.draw(n,t,!0),M.cloneCssStyles&&(d=o.getClasses(n,!0),u.cloneCssStyles(h.firstChild,d));break;case\"sequenceDiagram\":M.sequenceDiagram.arrowMarkerAbsolute=M.arrowMarkerAbsolute,s.setConf(M.sequenceDiagram),s.draw(n,t),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[]);break;case\"gantt\":M.gantt.arrowMarkerAbsolute=M.arrowMarkerAbsolute,y.setConf(M.gantt),y.draw(n,t),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[]);break;case\"classDiagram\":M.classDiagram.arrowMarkerAbsolute=M.arrowMarkerAbsolute,b.setConf(M.classDiagram),b.draw(n,t),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[]);break;case\"info\":M.info.arrowMarkerAbsolute=M.arrowMarkerAbsolute,c.draw(n,t,e.version()),M.cloneCssStyles&&u.cloneCssStyles(h.firstChild,[])}E.select(\"#d\"+t).selectAll(\"foreignobject div\").attr(\"xmlns\",\"http://www.w3.org/1999/xhtml\");var p=\"\";M.arrowMarkerAbsolute&&(p=window.location.protocol+\"//\"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\\(/g,\"\\\\(\"),p=p.replace(/\\)/g,\"\\\\)\"));var g=E.select(\"#d\"+t).node().innerHTML.replace(/url\\(#arrowhead/g,\"url(\"+p+\"#arrowhead\",\"g\");g=e.decodeEntities(g),\"undefined\"!=typeof r?r(g,a.bindFunctions):i.warn(\"CB = undefined!\");var m=E.select(\"#d\"+t).node();return null!==m&&\"function\"==typeof m.remove&&E.select(\"#d\"+t).node().remove(),g};e.render=function(t,n,e,r){try{if(1===arguments.length&&(n=t,t=\"mermaidId0\"),\"undefined\"!=typeof document)return D(t,n,e,r)}catch(a){i.warn(a)}};var C=function(t){var n,e=Object.keys(t);for(n=0;n<e.length;n++)if(\"object\"==typeof t[e[n]]){var r,a=Object.keys(t[e[n]]);for(r=0;r<a.length;r++)i.debug(\"Setting conf \",e[n],\"-\",a[r]),\"undefined\"==typeof M[e[n]]&&(M[e[n]]={}),i.debug(\"Setting config: \"+e[n]+\" \"+a[r]+\" to \"+t[e[n]][a[r]]),M[e[n]][a[r]]=t[e[n]][a[r]]}else M[e[n]]=t[e[n]]};e.initialize=function(t){i.debug(\"Initializing mermaidAPI\"),\"object\"==typeof t&&C(t),r.setLogLevel(M.logLevel)},e.getConfig=function(){return M},e.parseError=function(t,e){\"undefined\"!=typeof mermaid?n.mermaid.parseError(t,e):(i.debug(\"Mermaid Syntax error:\"),i.debug(t))},n.mermaidAPI={render:e.render,parse:e.parse,initialize:e.initialize,detectType:u.detectType,parseError:e.parseError,getConfig:e.getConfig}}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{\"../package.json\":107,\"./d3\":108,\"./diagrams/classDiagram/classDb\":109,\"./diagrams/classDiagram/classRenderer\":110,\"./diagrams/classDiagram/parser/classDiagram\":111,\"./diagrams/example/exampleDb\":112,\"./diagrams/example/exampleRenderer\":113,\"./diagrams/example/parser/example\":114,\"./diagrams/flowchart/flowRenderer\":116,\"./diagrams/flowchart/graphDb\":117,\"./diagrams/flowchart/parser/dot\":118,\"./diagrams/flowchart/parser/flow\":119,\"./diagrams/gantt/ganttDb\":120,\"./diagrams/gantt/ganttRenderer\":121,\"./diagrams/gantt/parser/gantt\":122,\"./diagrams/gitGraph/gitGraphAst\":123,\"./diagrams/gitGraph/gitGraphRenderer\":124,\"./diagrams/gitGraph/parser/gitGraph\":125,\"./diagrams/sequenceDiagram/parser/sequenceDiagram\":126,\"./diagrams/sequenceDiagram/sequenceDb\":127,\"./diagrams/sequenceDiagram/sequenceRenderer\":128,\"./logger\":130,\"./utils\":132}],132:[function(t,n,e){\"use strict\";var r=t(\"./logger\"),i=new r.Log,a=function(t){return t=t.replace(/^\\s*%%.*\\n/g,\"\\n\"),t.match(/^\\s*sequenceDiagram/)?\"sequenceDiagram\":t.match(/^\\s*digraph/)?\"dotGraph\":t.match(/^\\s*info/)?\"info\":t.match(/^\\s*gantt/)?\"gantt\":t.match(/^\\s*classDiagram/)?(i.debug(\"Detected classDiagram syntax\"),\"classDiagram\"):t.match(/^\\s*gitGraph/)?(i.debug(\"Detected gitGraph syntax\"),\"gitGraph\"):\"graph\"};e.detectType=a;var u=function(t,n){for(var e,r=\"\",a=document.styleSheets,u=0;u<a.length;u++)if(\"mermaid-svg-internal-css\"!==a[u].title)try{var o=a[u].cssRules;if(null!==o)for(var s=0;s<o.length;s++)if(e=o[s],\"undefined\"!=typeof e.style){var c;c=t.querySelectorAll(e.selectorText),c.length>0&&(r+=e.selectorText+\" { \"+e.style.cssText+\"}\\n\")}}catch(l){\"undefined\"!=typeof e&&i.warn('Invalid CSS selector \"'+e.selectorText+'\"',l)}var h=\"\",f=\"\";for(var d in n)n.hasOwnProperty(d)&&\"undefined\"!=typeof d&&(\"default\"===d?(n[\"default\"].styles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .node>rect { \"+n[d].styles.join(\"; \")+\"; }\\n\"),n[\"default\"].nodeLabelStyles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .node text { \"+n[d].nodeLabelStyles.join(\"; \")+\"; }\\n\"),n[\"default\"].edgeLabelStyles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .edgeLabel text { \"+n[d].edgeLabelStyles.join(\"; \")+\"; }\\n\"),n[\"default\"].clusterStyles instanceof Array&&(h+=\"#\"+t.id.trim()+\" .cluster rect { \"+n[d].clusterStyles.join(\"; \")+\"; }\\n\")):n[d].styles instanceof Array&&(f+=\"#\"+t.id.trim()+\" .\"+d+\">rect, .\"+d+\">polygon, .\"+d+\">circle, .\"+d+\">ellipse { \"+n[d].styles.join(\"; \")+\"; }\\n\"));if(\"\"!==r||\"\"!==h||\"\"!==f){var p=document.createElement(\"style\");p.setAttribute(\"type\",\"text/css\"),p.setAttribute(\"title\",\"mermaid-svg-internal-css\"),p.innerHTML=\"/* <![CDATA[ */\\n\",\"\"!==h&&(p.innerHTML+=h),\"\"!==r&&(p.innerHTML+=r),\"\"!==f&&(p.innerHTML+=f),p.innerHTML+=\"/* ]]> */\\n\",t.insertBefore(p,t.firstChild)}};e.cloneCssStyles=u;var o=function(t,n){for(var e=0;e<n.length;e++)if(n[e].match(t))return e;return-1};e.isSubstringInArray=o},{\"./logger\":130}]},{},[131])(131)});\n})($tw.node ? $tw.fakeDocument : window.document)\n"
},
"$:/plugins/gt6796c/mermaid-tw5/mermaid.dark.css": {
"type": "text/css",
"title": "$:/plugins/gt6796c/mermaid-tw5/mermaid.dark.css",
"tags": "$:/tags/Stylesheet",
"text": "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.mermaid .label {\n color: #323D47;\n}\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #BDD5EA;\n stroke: #81B1DB;\n stroke-width: 1px;\n}\n.edgePath .path {\n stroke: lightgrey;\n}\n.edgeLabel {\n background-color: #e8e8e8;\n}\n.cluster rect {\n fill: #6D6D65 !important;\n rx: 4 !important;\n stroke: rgba(255, 255, 255, 0.25) !important;\n stroke-width: 1px !important;\n}\n.cluster text {\n fill: #F9FFFE;\n}\n.actor {\n stroke: #81B1DB;\n fill: #BDD5EA;\n}\ntext.actor {\n fill: black;\n stroke: none;\n}\n.actor-line {\n stroke: lightgrey;\n}\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: lightgrey;\n}\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n stroke: lightgrey;\n}\n#arrowhead {\n fill: lightgrey !important;\n}\n#crosshead path {\n fill: lightgrey !important;\n stroke: lightgrey !important;\n}\n.messageText {\n fill: lightgrey;\n stroke: none;\n}\n.labelBox {\n stroke: #81B1DB;\n fill: #BDD5EA;\n}\n.labelText {\n fill: #323D47;\n stroke: none;\n}\n.loopText {\n fill: lightgrey;\n stroke: none;\n}\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: #81B1DB;\n}\n.note {\n stroke: rgba(255, 255, 255, 0.25);\n fill: #fff5ad;\n}\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2;\n}\n.section0 {\n fill: rgba(255, 255, 255, 0.3);\n}\n.section2 {\n fill: #EAE8B9;\n}\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2;\n}\n.sectionTitle0 {\n fill: #F9FFFE;\n}\n.sectionTitle1 {\n fill: #F9FFFE;\n}\n.sectionTitle2 {\n fill: #F9FFFE;\n}\n.sectionTitle3 {\n fill: #F9FFFE;\n}\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n}\n/* Grid and axis */\n.grid .tick {\n stroke: rgba(255, 255, 255, 0.3);\n opacity: 0.3;\n shape-rendering: crispEdges;\n}\n.grid .tick text {\n fill: lightgrey;\n opacity: 0.5;\n}\n.grid path {\n stroke-width: 0;\n}\n/* Today line */\n.today {\n fill: none;\n stroke: #DB5757;\n stroke-width: 2px;\n}\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 1;\n}\n.taskText {\n text-anchor: middle;\n font-size: 11px;\n}\n.taskTextOutsideRight {\n fill: #323D47;\n text-anchor: start;\n font-size: 11px;\n}\n.taskTextOutsideLeft {\n fill: #323D47;\n text-anchor: end;\n font-size: 11px;\n}\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: #323D47;\n}\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #BDD5EA;\n stroke: rgba(255, 255, 255, 0.5);\n}\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: lightgrey;\n}\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: lightgrey;\n}\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #81B1DB;\n stroke: rgba(255, 255, 255, 0.5);\n}\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: #323D47 !important;\n}\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n fill: lightgrey;\n}\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: #323D47 !important;\n}\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #E83737;\n fill: #E83737;\n stroke-width: 2;\n}\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #E83737;\n fill: #81B1DB;\n stroke-width: 2;\n}\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #E83737;\n fill: lightgrey;\n stroke-width: 1;\n cursor: pointer;\n shape-rendering: crispEdges;\n}\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: lightgrey !important;\n}\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: #323D47 !important;\n}\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: lightgrey;\n}\n/*\n\n\n*/\n.node text {\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #6D6D65;\n border: 1px solid rgba(255, 255, 255, 0.25);\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n}\n"
},
"$:/plugins/gt6796c/mermaid-tw5/mermaid.css": {
"type": "text/css",
"title": "$:/plugins/gt6796c/mermaid-tw5/mermaid.css",
"tags": "$:/tags/Stylesheet",
"text": "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.mermaid .label {\n color: #333;\n}\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #ECECFF;\n stroke: #CCCCFF;\n stroke-width: 1px;\n}\n.edgePath .path {\n stroke: #333333;\n}\n.edgeLabel {\n background-color: #e8e8e8;\n}\n.cluster rect {\n fill: #ffffde !important;\n rx: 4 !important;\n stroke: #aaaa33 !important;\n stroke-width: 1px !important;\n}\n.cluster text {\n fill: #333;\n}\n.actor {\n stroke: #CCCCFF;\n fill: #ECECFF;\n}\ntext.actor {\n fill: black;\n stroke: none;\n}\n.actor-line {\n stroke: grey;\n}\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: #333;\n}\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n stroke: #333;\n}\n#arrowhead {\n fill: #333;\n}\n#crosshead path {\n fill: #333 !important;\n stroke: #333 !important;\n}\n.messageText {\n fill: #333;\n stroke: none;\n}\n.labelBox {\n stroke: #CCCCFF;\n fill: #ECECFF;\n}\n.labelText {\n fill: black;\n stroke: none;\n}\n.loopText {\n fill: black;\n stroke: none;\n}\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: #CCCCFF;\n}\n.note {\n stroke: #aaaa33;\n fill: #fff5ad;\n}\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2;\n}\n.section0 {\n fill: rgba(102, 102, 255, 0.49);\n}\n.section2 {\n fill: #fff400;\n}\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2;\n}\n.sectionTitle0 {\n fill: #333;\n}\n.sectionTitle1 {\n fill: #333;\n}\n.sectionTitle2 {\n fill: #333;\n}\n.sectionTitle3 {\n fill: #333;\n}\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n}\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.3;\n shape-rendering: crispEdges;\n}\n.grid path {\n stroke-width: 0;\n}\n/* Today line */\n.today {\n fill: none;\n stroke: red;\n stroke-width: 2px;\n}\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2;\n}\n.taskText {\n text-anchor: middle;\n font-size: 11px;\n}\n.taskTextOutsideRight {\n fill: black;\n text-anchor: start;\n font-size: 11px;\n}\n.taskTextOutsideLeft {\n fill: black;\n text-anchor: end;\n font-size: 11px;\n}\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white;\n}\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #8a90dd;\n stroke: #534fbc;\n}\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: black;\n}\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: black;\n}\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #bfc7ff;\n stroke: #534fbc;\n}\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: black !important;\n}\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2;\n}\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: black !important;\n}\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #ff8888;\n fill: red;\n stroke-width: 2;\n}\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #ff8888;\n fill: #bfc7ff;\n stroke-width: 2;\n}\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #ff8888;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n}\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: black !important;\n}\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: black !important;\n}\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: black;\n}\n/*\n\n\n*/\n.node text {\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #ffffde;\n border: 1px solid #aaaa33;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n}\n"
},
"$:/plugins/gt6796c/mermaid-tw5/mermaid.forest.css": {
"type": "text/css",
"title": "$:/plugins/gt6796c/mermaid-tw5/mermaid.forest.css",
"tags": "$:/tags/Stylesheet",
"text": "/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n.mermaid .label {\n font-family: 'trebuchet ms', verdana, arial;\n color: #333;\n}\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1px;\n}\n.edgePath .path {\n stroke: green;\n stroke-width: 1.5px;\n}\n.edgeLabel {\n background-color: #e8e8e8;\n}\n.cluster rect {\n fill: #cdffb2 !important;\n rx: 4 !important;\n stroke: #6eaa49 !important;\n stroke-width: 1px !important;\n}\n.cluster text {\n fill: #333;\n}\n.actor {\n stroke: #13540c;\n fill: #cde498;\n}\ntext.actor {\n fill: black;\n stroke: none;\n}\n.actor-line {\n stroke: grey;\n}\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: #333;\n}\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: \"2 2\";\n stroke: #333;\n}\n#arrowhead {\n fill: #333;\n}\n#crosshead path {\n fill: #333 !important;\n stroke: #333 !important;\n}\n.messageText {\n fill: #333;\n stroke: none;\n}\n.labelBox {\n stroke: #326932;\n fill: #cde498;\n}\n.labelText {\n fill: black;\n stroke: none;\n}\n.loopText {\n fill: black;\n stroke: none;\n}\n.loopLine {\n stroke-width: 2;\n stroke-dasharray: \"2 2\";\n marker-end: \"url(#arrowhead)\";\n stroke: #326932;\n}\n.note {\n stroke: #6eaa49;\n fill: #fff5ad;\n}\n.noteText {\n fill: black;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\n/** Section styling */\n.section {\n stroke: none;\n opacity: 0.2;\n}\n.section0 {\n fill: #6eaa49;\n}\n.section2 {\n fill: #6eaa49;\n}\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2;\n}\n.sectionTitle0 {\n fill: #333;\n}\n.sectionTitle1 {\n fill: #333;\n}\n.sectionTitle2 {\n fill: #333;\n}\n.sectionTitle3 {\n fill: #333;\n}\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n}\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.3;\n shape-rendering: crispEdges;\n}\n.grid path {\n stroke-width: 0;\n}\n/* Today line */\n.today {\n fill: none;\n stroke: red;\n stroke-width: 2px;\n}\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2;\n}\n.taskText {\n text-anchor: middle;\n font-size: 11px;\n}\n.taskTextOutsideRight {\n fill: black;\n text-anchor: start;\n font-size: 11px;\n}\n.taskTextOutsideLeft {\n fill: black;\n text-anchor: end;\n font-size: 11px;\n}\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white;\n}\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #487e3a;\n stroke: #13540c;\n}\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: black;\n}\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: black;\n}\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #cde498;\n stroke: #13540c;\n}\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: black !important;\n}\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2;\n}\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: black !important;\n}\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #ff8888;\n fill: red;\n stroke-width: 2;\n}\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #ff8888;\n fill: #cde498;\n stroke-width: 2;\n}\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #ff8888;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n}\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: black !important;\n}\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: black !important;\n}\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: black;\n}\n/*\n\n\n*/\ng.classGroup text {\n fill: #13540c;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\ng.classGroup rect {\n fill: #cde498;\n stroke: #13540c;\n}\ng.classGroup line {\n stroke: #13540c;\n stroke-width: 1;\n}\nsvg .classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #cde498;\n opacity: 0.5;\n}\nsvg .classLabel .label {\n fill: #13540c;\n}\n.relation {\n stroke: #13540c;\n stroke-width: 1;\n fill: none;\n}\n.composition {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1;\n}\n#compositionStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1;\n}\n#compositionEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1;\n}\n.aggregation {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1;\n}\n#aggregationStart {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1;\n}\n#aggregationEnd {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1;\n}\n#dependencyStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1;\n}\n#dependencyEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1;\n}\n#extensionStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1;\n}\n#extensionEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1;\n}\n.node text {\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 14px;\n}\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-size: 12px;\n background: #cdffb2;\n border: 1px solid #6eaa49;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n}\n"
},
"$:/plugins/gt6796c/mermaid-tw5/gant": {
"type": "text/vnd.tiddlywiki.mermaid",
"title": "$:/plugins/gt6796c/mermaid-tw5/gant",
"text": "gantt\n dateFormat YYYY-MM-DD\n title Adding GANTT diagram functionality to mermaid\n section A section\n Completed task :done, des1, 2014-01-06,2014-01-08\n Active task :active, des2, 2014-01-09, 3d\n Future task : des3, after des2, 5d\n Future task2 : des4, after des3, 5d\n section Critical tasks\n Completed task in the critical line :crit, done, 2014-01-06,24h\n Implement parser and jison :crit, done, after des1, 2d\n Create tests for parser :crit, active, 3d\n Future task in critical line :crit, 5d\n Create tests for renderer :2d\n Add to mermaid :1d\n\n"
},
"$:/plugins/gt6796c/mermaid-tw5/seq": {
"type": "text/vnd.tiddlywiki.mermaid",
"title": "$:/plugins/gt6796c/mermaid-tw5/seq",
"text": "%% Example of sequence diagram\nsequenceDiagram\n Alice->>John: Hello John, how are you?\n John-->>Alice: Great!\n"
},
"$:/plugins/gt6796c/mermaid-tw5/license": {
"title": "$:/plugins/gt6796c/mermaid-tw5/license",
"text": "The MIT License (MIT)\n\nCopyright (c) 2016 Nathaniel Jones\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nDependencies:\n\nDepends on mermaid.js. License can be found at https://github.com/knsv/mermaid/blob/master/LICENSE\n"
},
"$:/plugins/gt6796c/mermaid-tw5/readme": {
"title": "$:/plugins/gt6796c/mermaid-tw5/readme",
"text": "This is a TiddlyWiki plugin for using mermaid.js.\n\nIt is completely self-contained, and doesn't need an Internet connection in order to work. It works both in the browser and under Node.js.\n\nIt is currently based on [[mermaid.js v.7.0.0|https://knsv.github.io/mermaid]]\n\n!Installation\nYou can either build from [[Source code|https://github.com/gt6796c/mermaid-tw5]] or install from [[here|https://gt6796c.github.io]]\n\n!Dependencies\n;This plugin requires:\n*[[rocklib Plugin|https://gt6796c.github.io]]\n\n!Notes\nWhen you are editing a Twiddler and have preview mode on, you will accrue lots of temporary shapes that are rendered by mermaid.js as you type. The WYSIWYG-as-you-type nature of TW does not play very nicely with mermaid's rendering. A simple page refresh clears them all away, they are completely transient. It is deep in mermaid.js code to try to change this and that outside what I want to do.\n\n!Troubleshooting\nIf you are getting just a blank preview/twiddler. Please try the mermaid commands in a Tiddler that has its type set to ''text/vnd.tiddlywiki.mermaid'' before filing any issues. This is how I understand the parser to work and there is no workaround.\n\n!History\n;0.2.1\n: Updated to use [[mermaid.js v.7.0.0|https://knsv.github.io/mermaid]]\n;0.1.1\n: Updated to use [[rocklib|$:/plugins/gt6796c/rocklib]]\n"
},
"$:/plugins/gt6796c/mermaid-tw5/typed-parser.js": {
"text": "/*\\\ntitle: $:/plugins/gt6796c/mermaid-tw5/typed-parser.js\ntype: application/javascript\nmodule-type: parser\n\nThis parser wraps unadorned railroad syntax into a railroad widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n\tvar MermaidParser = function(type,text,options) {\n\t\tvar element = {\n\t\t\ttype: \"mermaid\",\n\t\t\ttag: \"$mermaid\",\n\t\t\ttext: text\n\t\t};\n\t\tthis.tree = [element];\n\t};\n\n\texports[\"text/vnd.tiddlywiki.mermaid\"] = MermaidParser;\n\n})();\n\n",
"title": "$:/plugins/gt6796c/mermaid-tw5/typed-parser.js",
"type": "application/javascript",
"module-type": "parser"
},
"$:/plugins/gt6796c/mermaid-tw5/usage": {
"title": "$:/plugins/gt6796c/mermaid-tw5/usage",
"text": "!mermaid\nUse the ``<$mermaid>`` widget and place the mermaid commands within it. Any of the options that can be specified\nin the ``.render()`` options variable can be specified as JSON-encoded values in attributes of the same name on the widgets.\nThe values of the attributes can also be the title of Data Tiddlers and the values will be used from the referenced Tiddler.\nYou can set the type of a Tiddler to text/vnd.tiddlywiki.mermaid and use the native commands directly in the Tiddler body. You can\nadd fields that are the names below prefixed with 'mermaid'. So \"theme\" becomes \"mermaid-theme\"\n\n!Troubleshooting\n;When in doubt, please create a test case by creating a tiddler that has ``type=text/vnd.tiddlywiki.mermaid`` and contains ''only'' mermaid commands, (no TW markup or other contents)\n:TW treats any text inside of a Tiddler designated as a \"normal Twiddler\" (meaning type=text/vnd.tiddlywiki) as Tiddler Markup. Full stop. I've put into place some \"unparsing\" but it is twitchy difficult to maintain and buggy. So if you have cool, advanced uses of mermaid that fail in the ``<$mermaid>`` tag but work on with the type setup as mermaid, then that is probably the best you're going to get\n*As much as I'd like to make this not be this way, it just isn't possible with my skills/understanding.\n*JSON encoding only allows double-quotes ``\"`` as string delimiters\n*JSON encoding requires double-quotes around single string values\n"
},
"$:/plugins/gt6796c/mermaid-tw5/wrapper.js": {
"text": "/*\\\ntitle: $:/plugins/gt6796c/mermaid-tw5/wrapper.js\ntype: application/javascript\nmodule-type: widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n var uniqueID = 1;\n\n var Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n var Rocklib = require(\"$:/plugins/gt6796c/rocklib/widget-tools.js\").rocklib;\n if ($tw.browser && !window.mermaidAPI) {\n window.rocklib = new Rocklib();\n require(\"$:/plugins/gt6796c/mermaid-tw5/mermaidAPI.js\").mermaidAPI;\n }\n\n\n var MermaidWidget = function(parseTreeNode, options) {\n this.initialise(parseTreeNode, options);\n };\n\n MermaidWidget.prototype = new Widget();\n\n /*\n Render this widget into the DOM\n */\n MermaidWidget.prototype.render = function(parent,nextSibling) {\n this.parentDomNode = parent;\n this.computeAttributes();\n this.execute();\n\n var tag = 'mermaid';\n var scriptBody = rocklib.getScriptBody(this,\"text\");\n var divNode = rocklib.getCanvas(this,tag);\n var _insertSVG = function(svgCode, bindFunctions) {\n divNode.innerHTML = svgCode;\n }\n try {\n var options = {'theme' : 'simple'};\n rocklib.getOptions(this, tag, options);\n mermaidAPI.render(divNode.id, scriptBody, _insertSVG);\n }\n catch(ex)\n {\n divNode.innerText = ex;\n }\n parent.insertBefore(divNode, nextSibling);\n\n this.domNodes.push(divNode);\n };\n\n MermaidWidget.prototype.execute = function() {\n // Nothing to do\n };\n\n /*\n Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n */\n MermaidWidget.prototype.refresh = function(changedTiddlers) {\n return false;\n };\n\n exports.mermaid = MermaidWidget;\n\n})();\n",
"title": "$:/plugins/gt6796c/mermaid-tw5/wrapper.js",
"type": "application/javascript",
"module-type": "widget"
}
}
}
/* Flowchart variables */
/* Sequence Diagram variables */
/* Gantt chart variables */
.mermaid .label {
color: #333;
}
.node rect,
.node circle,
.node ellipse,
.node polygon {
fill: #ECECFF;
stroke: #CCCCFF;
stroke-width: 1px;
}
.edgePath .path {
stroke: #333333;
}
.edgeLabel {
background-color: #e8e8e8;
}
.cluster rect {
fill: #ffffde !important;
rx: 4 !important;
stroke: #aaaa33 !important;
stroke-width: 1px !important;
}
.cluster text {
fill: #333;
}
.actor {
stroke: #CCCCFF;
fill: #ECECFF;
}
text.actor {
fill: black;
stroke: none;
}
.actor-line {
stroke: grey;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: "2 2";
marker-end: "url(#arrowhead)";
stroke: #333;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: "2 2";
stroke: #333;
}
#arrowhead {
fill: #333;
}
#crosshead path {
fill: #333 !important;
stroke: #333 !important;
}
.messageText {
fill: #333;
stroke: none;
}
.labelBox {
stroke: #CCCCFF;
fill: #ECECFF;
}
.labelText {
fill: black;
stroke: none;
}
.loopText {
fill: black;
stroke: none;
}
.loopLine {
stroke-width: 2;
stroke-dasharray: "2 2";
marker-end: "url(#arrowhead)";
stroke: #CCCCFF;
}
.note {
stroke: #aaaa33;
fill: #fff5ad;
}
.noteText {
fill: black;
stroke: none;
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}
/** Section styling */
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: rgba(102, 102, 255, 0.49);
}
.section2 {
fill: #fff400;
}
.section1,
.section3 {
fill: white;
opacity: 0.2;
}
.sectionTitle0 {
fill: #333;
}
.sectionTitle1 {
fill: #333;
}
.sectionTitle2 {
fill: #333;
}
.sectionTitle3 {
fill: #333;
}
.sectionTitle {
text-anchor: start;
font-size: 11px;
text-height: 14px;
}
/* Grid and axis */
.grid .tick {
stroke: lightgrey;
opacity: 0.3;
shape-rendering: crispEdges;
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: red;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-size: 11px;
}
.taskTextOutsideRight {
fill: black;
text-anchor: start;
font-size: 11px;
}
.taskTextOutsideLeft {
fill: black;
text-anchor: end;
font-size: 11px;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: white;
}
.task0,
.task1,
.task2,
.task3 {
fill: #8a90dd;
stroke: #534fbc;
}
.taskTextOutside0,
.taskTextOutside2 {
fill: black;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: black;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: #bfc7ff;
stroke: #534fbc;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: black !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: grey;
fill: lightgrey;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: black !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: #ff8888;
fill: red;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: #ff8888;
fill: #bfc7ff;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: #ff8888;
fill: lightgrey;
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: black !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: black !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: black;
}
/*
*/
.node text {
stroke: #020202;
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial;
font-size: 12px;
background: #ffffde;
border: 1px solid #aaaa33;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
/* Flowchart variables */
/* Sequence Diagram variables */
/* Gantt chart variables */
.mermaid .label {
color: #323D47;
}
.node rect,
.node circle,
.node ellipse,
.node polygon {
fill: #BDD5EA;
stroke: #81B1DB;
stroke-width: 1px;
}
.edgePath .path {
stroke: lightgrey;
}
.edgeLabel {
background-color: #e8e8e8;
}
.cluster rect {
fill: #6D6D65 !important;
rx: 4 !important;
stroke: rgba(255, 255, 255, 0.25) !important;
stroke-width: 1px !important;
}
.cluster text {
fill: #F9FFFE;
}
.actor {
stroke: #81B1DB;
fill: #BDD5EA;
}
text.actor {
fill: black;
stroke: none;
}
.actor-line {
stroke: lightgrey;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: "2 2";
marker-end: "url(#arrowhead)";
stroke: lightgrey;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: "2 2";
stroke: lightgrey;
}
#arrowhead {
fill: lightgrey !important;
}
#crosshead path {
fill: lightgrey !important;
stroke: lightgrey !important;
}
.messageText {
fill: lightgrey;
stroke: none;
}
.labelBox {
stroke: #81B1DB;
fill: #BDD5EA;
}
.labelText {
fill: #323D47;
stroke: none;
}
.loopText {
fill: lightgrey;
stroke: none;
}
.loopLine {
stroke-width: 2;
stroke-dasharray: "2 2";
marker-end: "url(#arrowhead)";
stroke: #81B1DB;
}
.note {
stroke: rgba(255, 255, 255, 0.25);
fill: #fff5ad;
}
.noteText {
fill: black;
stroke: none;
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}
/** Section styling */
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: rgba(255, 255, 255, 0.3);
}
.section2 {
fill: #EAE8B9;
}
.section1,
.section3 {
fill: white;
opacity: 0.2;
}
.sectionTitle0 {
fill: #F9FFFE;
}
.sectionTitle1 {
fill: #F9FFFE;
}
.sectionTitle2 {
fill: #F9FFFE;
}
.sectionTitle3 {
fill: #F9FFFE;
}
.sectionTitle {
text-anchor: start;
font-size: 11px;
text-height: 14px;
}
/* Grid and axis */
.grid .tick {
stroke: rgba(255, 255, 255, 0.3);
opacity: 0.3;
shape-rendering: crispEdges;
}
.grid .tick text {
fill: lightgrey;
opacity: 0.5;
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: #DB5757;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 1;
}
.taskText {
text-anchor: middle;
font-size: 11px;
}
.taskTextOutsideRight {
fill: #323D47;
text-anchor: start;
font-size: 11px;
}
.taskTextOutsideLeft {
fill: #323D47;
text-anchor: end;
font-size: 11px;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: #323D47;
}
.task0,
.task1,
.task2,
.task3 {
fill: #BDD5EA;
stroke: rgba(255, 255, 255, 0.5);
}
.taskTextOutside0,
.taskTextOutside2 {
fill: lightgrey;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: lightgrey;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: #81B1DB;
stroke: rgba(255, 255, 255, 0.5);
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: #323D47 !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
fill: lightgrey;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: #323D47 !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: #E83737;
fill: #E83737;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: #E83737;
fill: #81B1DB;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: #E83737;
fill: lightgrey;
stroke-width: 1;
cursor: pointer;
shape-rendering: crispEdges;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: lightgrey !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: #323D47 !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: lightgrey;
}
/*
*/
.node text {
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
color: #ffffff;
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial;
font-size: 12px;
background: #6D6D65;
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
/* Flowchart variables */
/* Sequence Diagram variables */
/* Gantt chart variables */
.mermaid .label {
font-family: 'trebuchet ms', verdana, arial;
color: #333;
}
.node rect,
.node circle,
.node ellipse,
.node polygon {
fill: #cde498;
stroke: #13540c;
stroke-width: 1px;
}
.edgePath .path {
stroke: green;
stroke-width: 1.5px;
}
.edgeLabel {
background-color: #e8e8e8;
}
.cluster rect {
fill: #cdffb2 !important;
rx: 4 !important;
stroke: #6eaa49 !important;
stroke-width: 1px !important;
}
.cluster text {
fill: #333;
}
.actor {
stroke: #13540c;
fill: #cde498;
}
text.actor {
fill: black;
stroke: none;
}
.actor-line {
stroke: grey;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: "2 2";
marker-end: "url(#arrowhead)";
stroke: #333;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: "2 2";
stroke: #333;
}
#arrowhead {
fill: #333;
}
#crosshead path {
fill: #333 !important;
stroke: #333 !important;
}
.messageText {
fill: #333;
stroke: none;
}
.labelBox {
stroke: #326932;
fill: #cde498;
}
.labelText {
fill: black;
stroke: none;
}
.loopText {
fill: black;
stroke: none;
}
.loopLine {
stroke-width: 2;
stroke-dasharray: "2 2";
marker-end: "url(#arrowhead)";
stroke: #326932;
}
.note {
stroke: #6eaa49;
fill: #fff5ad;
}
.noteText {
fill: black;
stroke: none;
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}
/** Section styling */
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: #6eaa49;
}
.section2 {
fill: #6eaa49;
}
.section1,
.section3 {
fill: white;
opacity: 0.2;
}
.sectionTitle0 {
fill: #333;
}
.sectionTitle1 {
fill: #333;
}
.sectionTitle2 {
fill: #333;
}
.sectionTitle3 {
fill: #333;
}
.sectionTitle {
text-anchor: start;
font-size: 11px;
text-height: 14px;
}
/* Grid and axis */
.grid .tick {
stroke: lightgrey;
opacity: 0.3;
shape-rendering: crispEdges;
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: red;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-size: 11px;
}
.taskTextOutsideRight {
fill: black;
text-anchor: start;
font-size: 11px;
}
.taskTextOutsideLeft {
fill: black;
text-anchor: end;
font-size: 11px;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: white;
}
.task0,
.task1,
.task2,
.task3 {
fill: #487e3a;
stroke: #13540c;
}
.taskTextOutside0,
.taskTextOutside2 {
fill: black;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: black;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: #cde498;
stroke: #13540c;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: black !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: grey;
fill: lightgrey;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: black !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: #ff8888;
fill: red;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: #ff8888;
fill: #cde498;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: #ff8888;
fill: lightgrey;
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: black !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: black !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: black;
}
/*
*/
g.classGroup text {
fill: #13540c;
stroke: none;
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}
g.classGroup rect {
fill: #cde498;
stroke: #13540c;
}
g.classGroup line {
stroke: #13540c;
stroke-width: 1;
}
svg .classLabel .box {
stroke: none;
stroke-width: 0;
fill: #cde498;
opacity: 0.5;
}
svg .classLabel .label {
fill: #13540c;
}
.relation {
stroke: #13540c;
stroke-width: 1;
fill: none;
}
.composition {
fill: #13540c;
stroke: #13540c;
stroke-width: 1;
}
#compositionStart {
fill: #13540c;
stroke: #13540c;
stroke-width: 1;
}
#compositionEnd {
fill: #13540c;
stroke: #13540c;
stroke-width: 1;
}
.aggregation {
fill: #cde498;
stroke: #13540c;
stroke-width: 1;
}
#aggregationStart {
fill: #cde498;
stroke: #13540c;
stroke-width: 1;
}
#aggregationEnd {
fill: #cde498;
stroke: #13540c;
stroke-width: 1;
}
#dependencyStart {
fill: #13540c;
stroke: #13540c;
stroke-width: 1;
}
#dependencyEnd {
fill: #13540c;
stroke: #13540c;
stroke-width: 1;
}
#extensionStart {
fill: #13540c;
stroke: #13540c;
stroke-width: 1;
}
#extensionEnd {
fill: #13540c;
stroke: #13540c;
stroke-width: 1;
}
.node text {
color: #ffffff;
font-family: 'trebuchet ms', verdana, arial;
font-size: 14px;
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial;
font-size: 12px;
background: #cdffb2;
border: 1px solid #6eaa49;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
{
"tiddlers": {
"$:/plugins/gt6796c/rocklib/widget-tools.js": {
"type": "application/javascript",
"title": "$:/plugins/gt6796c/rocklib/widget-tools.js",
"module-type": "library",
"text": "/*\\\n title: $:/plugins/gt6796c/rocklib/widget-tools.js\n type: application/javascript\n*/\n\n(function() {\n\n\"use strict\";\n\n function Rocklib()\n {\n this.uniqueID = 1;\n this.hue = .2;\n };\n\n // tries to un-parse the wikitext. of dubious value\n Rocklib.prototype.getScriptBody = function(src,attr)\n {\n var scriptBody= src.getAttribute(attr, src.parseTreeNode.text || \"\");\n\n if (src.parseTreeNode.text) {\n scriptBody = src.parseTreeNode.text;\n }\n else if (src.parseTreeNode.children)\n {\n var kids = src.parseTreeNode.children;\n for (var k in kids)\n {\n var kk = kids[k];\n switch(kk.type)\n {\n // no wikiparsing found\n case \"text\":\n scriptBody += kk.text; break;\n // internal link, make it a permalink reference\n case \"link\":\n scriptBody += \"#\" + kk.children[0].text; break;\n // -- gets interpreted as an HTML element, we don't want that\n case \"entity\":\n switch(kk.entity)\n {\n case \"–\":\n scriptBody+=\"--\"; break;\n };\n break;\n // just re-write it back out\n case \"element\":\n switch (kk.tag)\n {\n case \"a\":\n scriptBody+=kk.children[0].text;\n }\n };\n }\n }\n\n return scriptBody;\n };\n\n /**\n * Runs through lots of ways to get options. It can pull them from a named data Tiddler, from the fields of the\n * Tiddler, and from the attributes of the widget specified by 'tag'. Any value pulled is treated as JSON first\n * and then as straight text.\n * @param src\n * @param tag\n * @param options\n * @returns {*}\n */\n Rocklib.prototype.getOptions = function(src, tag, options)\n {\n try {\n // try to set options from fields on tiddler first\n // [tag-xxx]\n var tt = src.getVariable('currentTiddler');\n if (tt) {\n var t = src.wiki.getTiddler(tt);\n if (t)\n {\n // this looks for fields that start with our tag\n // and then maps a.x to aX since something is\n // unCamelCasing the vars\n for (var f in t.fields) {\n var fi = f.indexOf(tag);\n if (fi != 0) continue;\n var k = f.substring(tag.length + 1);\n var cap = k.indexOf(\".\");\n while (cap > -1) {\n if (k.length < cap+2) break;\n k = k.substring(0, cap) + k.charAt(cap + 1).toUpperCase() + k.substring(cap + 2);\n cap = k.indexOf(\".\");\n }\n var v = t.fields[f];\n // try as JSON\n try {\n options[k] = JSON.parse(v);\n }\n // last attempt is just a string\n catch (ex) {\n options[k] = v;\n }\n }\n }\n }\n // treat any attributes as JSON representations of options\n // for the object\n for (var att in src.attributes) {\n\n var attval = src.getAttribute(att);\n // allow for data from named tiddlers\n if ($tw.wiki.tiddlerExists(attval))\n {\n var data = $tw.wiki.getTiddlerData(attval);\n options[att] = data;\n }\n else {\n // try as JSON\n try { options[att] = JSON.parse(attval); }\n // last attempt is just a string\n catch (ex) { options[att] = attval; }\n }\n }\n }\n catch (ex) { console.error(ex); }\n\n return options;\n\n };\n\n /**\n * Retrieves a canvas to work with based on the calling functions need of a \"div\" or \"canvas\" element\n * @param src\n * @param tag\n * @param type\n * @returns {Element}\n */\n Rocklib.prototype.getCanvas = function(src, tag, type) {\n type = typeof(type) === \"undefined\" ? \"div\" : type;\n\n var height = src.getAttribute(\"height\");\n var width = src.getAttribute(\"width\");\n\n var canvas = src.document.createElement(type);\n var style = \"\";\n if (type === \"canvas\") {\n if (width) canvas.width = width;\n if (height) canvas.height = height;\n }\n else {\n if (height) style += \" height:\" + height;\n if (width) style += \" width:\" + width;\n if (style) canvas.setAttribute(\"style\", style);\n }\n canvas.setAttribute(\"id\", tag+\"_\" + this.uniqueID);\n\n this.uniqueID++;\n return canvas;\n };\n\n /**\n * based on http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/\n * @param s\n * @param v\n * @returns {string}\n */\n Rocklib.prototype.nextColor = function(s, v)\n {\n var golden_ratio_conjugate = 0.618033988749895\n this.hue += golden_ratio_conjugate;\n this.hue %= 1;\n var rgb = this.hsv_to_rgb(this.hue, s, v);\n return \"#\" + rgb.r.toString(16) + rgb.g.toString(16) + rgb.b.toString(16);\n };\n\n\n /**\n * Taken from http://stackoverflow.com/questions/17242144/javascript-convert-hsb-hsv-color-to-rgb-accurately\n */\n /* accepts parameters\n * r Object = {r:x, g:y, b:z}\n * OR\n * r, g, b\n */\n\n Rocklib.prototype.rgb_to_hsv = function (r, g, b) {\n if (arguments.length === 1) {\n g = r.g, b = r.b, r = r.r;\n }\n var max = Math.max(r, g, b), min = Math.min(r, g, b),\n d = max - min,\n h,\n s = (max === 0 ? 0 : d / max),\n v = max / 255;\n\n switch (max) {\n case min: h = 0; break;\n case r: h = (g - b) + d * (g < b ? 6: 0); h /= 6 * d; break;\n case g: h = (b - r) + d * 2; h /= 6 * d; break;\n case b: h = (r - g) + d * 4; h /= 6 * d; break;\n }\n\n return {\n h: h,\n s: s,\n v: v\n };\n };\n\n /**\n * Taken from http://stackoverflow.com/questions/17242144/javascript-convert-hsb-hsv-color-to-rgb-accurately\n */\n /* accepts parameters\n * h Object = {h:x, s:y, v:z}\n * OR\n * h, s, v\n */\n Rocklib.prototype.hsv_to_rgb = function(h, s, v) {\n var r, g, b, i, f, p, q, t;\n if (arguments.length === 1) {\n s = h.s, v = h.v, h = h.h;\n }\n i = Math.floor(h * 6);\n f = h * 6 - i;\n p = v * (1 - s);\n q = v * (1 - f * s);\n t = v * (1 - (1 - f) * s);\n switch (i % 6) {\n case 0: r = v, g = t, b = p; break;\n case 1: r = q, g = v, b = p; break;\n case 2: r = p, g = v, b = t; break;\n case 3: r = p, g = q, b = v; break;\n case 4: r = t, g = p, b = v; break;\n case 5: r = v, g = p, b = q; break;\n }\n return {\n r: Math.round(r * 255),\n g: Math.round(g * 255),\n b: Math.round(b * 255)\n };\n };\n\n exports.rocklib = Rocklib;\n\n})();\n\n"
},
"$:/plugins/gt6796c/rocklib/license": {
"title": "$:/plugins/gt6796c/rocklib/license",
"text": "The MIT License (MIT)\n\nCopyright (c) 2016 Nathaniel Jones\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
},
"$:/plugins/gt6796c/rocklib/readme": {
"title": "$:/plugins/gt6796c/rocklib/readme",
"text": "\nThis plugin packages [[rocklib|https://github.com/gt6796c/rocklib]] for use by other plugins. It does not provide any end-user visible features.\n\nNo user-visible elements.\n\nprovides the following functions:\n\n;getScriptBody(src, att)\n: attempts to pull the text out of ``src`` element's body or the specified attribute ``att``\n\n;getOptions(src,tag,options)\n: in the case of a widget, adds all of ``src`` element's attributes into the ``options`` object\n: in the case of a Tiddler, adds all of the fields that begin with ``tag`` into the ``options`` object (minus the ``tag-`` prefix)\n: All options are first treated as Data Tiddler Names, then JSON, and finally as plain text\n\n;getCanvas(src,tag,type)\n: creates a uniquely-named \"canvas\" which may be of type ``type``. Supported types are ``div`` and ``canvas``\n: The height and width attributes from the ``src`` element will be applied to the canvas\n\n;nextColor(s,v)\n: returns a random-ish color string from the same palette as specified byt the ``s`` saturation and ``h`` hue.\n: The color is in the form of ``#rrggbb``\n\n;rgb_to_hsv(r,g,b)\n: returns array of [hue, saturation, value]\n: r can be array of [r,g,b] or individual parameters can be used\n\n;hsv_to_rgb(h,s,v)\n: returns array of [red, green, blue]\n: h can be array of [h,s,v] or individual parameters can be used\n"
}
}
}
{
"tiddlers": {
"$:/config/EditTemplateFields/Visibility/shorttext": {
"title": "$:/config/EditTemplateFields/Visibility/shorttext",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/buttons/new-board": {
"title": "$:/plugins/reidgould/dpbd/buttons/new-board",
"tags": "$:/tags/PageControls",
"list-after": "$:/core/ui/Buttons/new-tiddler",
"caption": "{{$:/plugins/reidgould/dpbd/images/Dropboard}} New Board",
"description": "New Board",
"text": "<$button tooltip=\"New Board\" class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-new-tiddler\" title=\"New Board\" tags=\"\" text=\"\"\"<$transclude tiddler=\"$:/plugins/reidgould/dpbd/templates/view/Board\" mode=\"inline\" />\"\"\" />\n<$list filter=\"[<tv-config-toolbar-icons>prefix[yes]]\">\n{{$:/plugins/reidgould/dpbd/images/Dropboard}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\">New Board</span>\n</$list>\n</$button>"
},
"$:/plugins/reidgould/dpbd/common/Macros": {
"tags": "$:/tags/Macro",
"title": "$:/plugins/reidgould/dpbd/common/Macros",
"text": "\\define EmptyString(strEmpty:\"\")\n$strEmpty$\n\\end\n\n\\define alert(alertText:\"\")\n <$action-createtiddler $basetitle=\"Alert\" component=\"Alert from $(currentTiddler)$\" tags=\"$:/tags/Alert\" text=\"$alertText$\" />\n\\end\n\n\\define action-Notify-NoActionDraggedOntoSame()\n <$action-sendmessage $message=\"tm-notify\" $param=\"$:/plugins/reidgould/dpbd/notifications/NoActionDraggedOntoSame\" />\n\\end\n\n\\define action-Notify-NoActionSearchList()\n <$action-sendmessage $message=\"tm-notify\" $param=\"$:/plugins/reidgould/dpbd/notifications/NoActionSearchList\" />\n\\end\n\n\\define action-Notify-shortidNotInstalled()\n <$action-sendmessage $message=\"tm-notify\" $param=\"$:/plugins/reidgould/dpbd/notifications/shortidNotInstalled\" />\n\\end\n\n\\define filter-BoardL2(board)\n[[$board$]] [[$board$]tagging[]]\n\\end\n\n\\define filter-BoardL3(board)\n[[$board$]] [[$board$]tagging[]] [[$board$]tagging[]tagging[]]\n\\end\n\n\\define filter-BoardL2_currentBoard()\n[<currentBoardTiddler>] [<currentBoardTiddler>tagging[]]\n\\end\n\n\\define filter-BoardL3_currentBoard()\n[<currentBoardTiddler>] [<currentBoardTiddler>tagging[]] [<currentBoardTiddler>tagging[]tagging[]]\n\\end\n\n\\define filter-Lists_currentBoard()\n[<currentBoardTiddler>tagging[]]\n\\end\n\n\n\n\n\\define List-StoryList()\n$(currentTiddler)$\n\\end\n\n\\define List-HistoryList()\n$(EmptyString)$\n\\end\n\n\\define tiddler-SearchListFilter-Stage()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/searchListFilter/Stage\n\\end\n\n\\define tiddler-SearchListFilter-Live()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/SearchListFilter/Live\n\\end\n\n\\define filter-SearchList()\n$(filter-SearchListText)$ -[[$(currentBoardTiddler)$]] -[[$(currentBoardTiddler)$]tagging[]] -[[$(currentBoardTiddler)$]tagging[]tagging[]] +[remove<list-TiddlersWithDrafts>] +[remove<list-TiddlersWithDraftsMain>] +[is[tiddler]]\n\\end\n\n\\define tiddler-UserFilter-Stage()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/UserFilter/Stage\n\\end\n\n\\define tiddler-UserFilter-Live()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/UserFilter/Live\n\\end\n\n\\define filter-currentList()\n[<currentListTiddler>tagging[]] +[remove<list-TiddlersWithDrafts>] +[remove<list-TiddlersWithDraftsMain>] $(filter-userText)$\n\\end\n\n\\define tiddler-Holding()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/Holding\n\\end\n\\define HeldToolTip()\n$(currentHeldTiddler)$ — $(val-HeldShorttext)$\n\\end\n\n\\define tiddler-SideBar()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/SideBar\n\\end\n\\define wikitext-SideBar-Content()\n <$tiddler tiddler=\"$(currentBoardTiddler)$\">\n <span class=\"dpbd-SB-Container_Reset-OIV-_ dpbd-SB-Reset-VO-_\">\n <$transclude tiddler=\"$:/plugins/reidgould/dpbd/templates/view/Board\" mode=\"inline\" />\n </span>\n </$tiddler>\n\\end\n\\define wikitext-SideBar-Button-Delete()\n <$button class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Button-OV-_\" actions=\"\"\"<$action-deletetiddler $tiddler=<<tiddler-SideBar>> />\"\"\" >\n <span class=\"_-_-img_inline-OV-_C\">{{$:/core/images/close-button}}</span>\n </$button>\n\\end\n\\define wikitext-SideBar-Button-Create()\n <$button class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Button-OV-_\" actions=\"\"\"\n <$action-createtiddler $basetitle=<<tiddler-SideBar>> tags=\"$:/tags/SideBar\" caption=<<currentBoardTiddler>> text=<<wikitext-SideBar-Content>> />\n <$action-deletefield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-listwidth-em\" />\n <$action-setfield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-listwidth-num\" $value=\"1\" />\n <$action-sendmessage $message=\"tm-close-tiddler\" $param=<<currentBoardTiddler>> />\n <$action-setfield $tiddler=\"$:/state/tab/sidebar--1835078512\" $field=\"text\" $value=<<tiddler-SideBar>> />\n \"\"\" >\n <span class=\"_-_-img_inline-OV-_C\">{{$:/core/images/new-button}}</span>\n </$button>\n\\end\n\n\\define tiddler-ListWidth-Stage()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/ListWidth/Stage\n\\end\n\n\\define tiddler-BoardHeight-Stage()\n$:/plugins/reidgould/dpbd/state/$(currentBoardTiddler)$/BoardHeight/Stage\n\\end\n\n\\define tiddler-popupTagsState()\n$:/plugins/reidgould/dpbd/state/$(qualify)$/tagPopup\n\\end\n\n\\define tiddler-popupUserFilter()\n$:/plugins/reidgould/dpbd/state/$(qualify)$/UserFilterPopup\n\\end\n\n\\define tiddler-popupSearchList()\n$:/plugins/reidgould/dpbd/state/$(qualify)$/SearchListPopup\n\\end\n\n\\define tiddler-popupBoardHeight()\n$:/plugins/reidgould/dpbd/state/$(qualify)$/BoardHeightPopup\n\\end\n\n\\define tiddler-popupListWidth()\n$:/plugins/reidgould/dpbd/state/$(qualify)$/ListWidthPopup\n\\end\n\n\\define tiddler-New-SaveTitle()\n$:/plugins/reidgould/dpbd/state/NewTiddler\n\\end\n\n\\define style-TagColor()\nbackground-color: $(val-TagColor)$;\n\\end\n\n\\define style-IconColor()\nfill:$(foregroundColor)$;\n\\end\n\n\n\n\n\\define val-BoardHeight-Default()\n85vh\n\\end\n\\define style-BoardHeight()\nheight: $(val-BoardHeight)$;\n\\end\n\\define Val-ListTitle-Collapsed()\ncalc($(val-BoardHeight)$ - 12em)\n\\end\n\\define style-ListTitle-Collapsed()\nmax-width: $(value-ListTitle-Height)$;\n\\end\n\n\\define val-ListWidth-Num-Default()\n3\n\\end\n\\define val-ListWidth-Em-Default()\n%(EmptyString)%\n\\end\n\\define val-ListWidthMax-Default()\n9999em\n\\end\n\n\\define table-ListWidth-Num()\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16\n\\end\n\\define table-ListWidth-Pct()\n100 50 33.333 25 20 16.666 14.285 12.5 11.111 10 9.090 8.333 7.692 7.142 6.666 6.25\n\\end\n\\define table-ListWidth-Dec()\n1 0.5 0.333 0.25 0.2 0.166 0.142 0.125 0.111 0.1 0.090 0.083 0.076 0.071 0.066 0.062\n\\end\n\n\\define val-WidthPropVal-Pct()\ncalc($(val-ListWidth-Pct)$% - 0.5em)\n\\end\n\\define val-WidthPropVal-Em()\n$(val-ListWidth-Em)$em\n\\end\n\\define style-Flex-Em()\nflex: 0 0 $(val-ListWidth-Em)$em;\n\\end\n\\define style-Flex-Dec()\nflex: $(val-ListWidth-Dec)$ 0 0em;\n\\end\n\n\\define style-ListWidth()\nmin-width: $(val-listWidthMin)$; max-width: $(val-listWidthMax)$;\n\\end\n\n\n\n\n\\define action-ResetListToTagging(tiddler-ToReset)\n <!-- Assign a new list in which tiddler order is as discovered by the tagging operator. -->\n <!-- The order returned by the tagging operator is determined by list field, list-before and list-after fields, and adds other tiddlers with the tag to the end. -->\n <!-- Without this step, the insertbefore listop cannot work when the action tiddler is dragged onto a tiddler that is not in the list. -->\n <!-- The drawback is that tiddlers added to the list which are not also tagged by the list are eliminated. -->\n <!-- Also, when doing this operation frequently or on larger lists, we should watch to see if performance becomes a problem. -->\n <$set name=\"list-Tagging\" filter=\"[[$tiddler-ToReset$]tagging[]]\">\n <$action-setfield $tiddler=\"\"\"$tiddler-ToReset$\"\"\" $field=\"list\" $value=<<list-Tagging>> />\n </$set>\n\\end\n\n\\define action-DeleteHolding-IfHeldMatches(tiddler-Match)\n <$set name=\"tiddler-Held\" value={{{[<tiddler-Holding>get[text]] }}} >\n <$set name=\"action-DeleteHolding\" filter=\"[[$tiddler-Match$]] -[<tiddler-Held>]\"\n value=\"\"\n emptyValue=\"\"\"<$action-deletetiddler $tiddler=<<tiddler-Holding>> />\"\"\" >\n <<action-DeleteHolding>>\n </$set>\n </$set>\n\\end\n\n\\define action-RemoveTwoWay_OneFromMany(tiddler-ToRemove, filter-Target-ByDef)\n <$set name=\"list-Targets\" filter=<<$filter-Target-ByDef$>> >\n <!-- Remove tags from the one tiddler of all target Tiddlers. -->\n <$action-listops $tiddler=\"\"\"$tiddler-ToRemove$\"\"\" $tags=\"+[remove<list-Targets>]\" />\n <!-- Remove the one tiddler from lists of all target Tiddlers. -->\n <$list filter=<<list-Targets>> variable=\"eachList\">\n <$action-listops $tiddler=<<eachList>> $subfilter=\"-[[$tiddler-ToRemove$]]\" />\n </$list>\n </$set>\n </$set>\n\\end\n\n\\define action-RemoveTwoWay(tiddler-ToRemove, tiddler-Target)\n <!-- Remove the tiddler-ToRemove from this tiddler-Target -->\n <$action-listops $tiddler=\"\"\"$tiddler-Target$\"\"\" $subfilter=\"-[[$tiddler-ToRemove$]]\" />\n <!-- Remove this tag from the tiddler-ToRemove -->\n <$action-listops $tiddler=\"\"\"$tiddler-ToRemove$\"\"\" $tags=\"-[[$tiddler-Target$]]\"/>\n\\end\n\n\\define action-AddTwoWay(tiddler-Add, tiddler-Target, tiddler-Before)\n <$set name=\"tiddler-Before\" value=\"$tiddler-Before$\">\n <!-- Add the tiddler-Add to this tiddler-Target -->\n <$action-listops $tiddler=\"\"\"$tiddler-Target$\"\"\" $subfilter=\"+[insertbefore:tiddler-Before[$tiddler-Add$]]\" />\n <!-- Add this tag to the tiddler-Add -->\n <$action-listops $tiddler=\"\"\"$tiddler-Add$\"\"\" $tags=\"[[$tiddler-Target$]]\"/>\n </$set>\n\\end\n\n\\define action-InsertTwoWay(tiddler-Insert, tiddler-Before, tiddler-In, filter-UniqueAmong-byDef)\n <$macrocall $name=\"action-ResetListToTagging\" tiddler-ToReset=\"\"\"$tiddler-In$\"\"\" />\n <$macrocall $name=\"action-RemoveTwoWay_OneFromMany\" tiddler-ToRemove=\"\"\"$tiddler-Insert$\"\"\" filter-Target-ByDef=\"\"\"$filter-UniqueAmong-byDef$\"\"\" />\n <$macrocall $name=\"action-AddTwoWay\" tiddler-Add=\"\"\"$tiddler-Insert$\"\"\" tiddler-Target=\"\"\"$tiddler-In$\"\"\" tiddler-Before=\"\"\"$tiddler-Before$\"\"\" />\n\\end\n\n\\define action-InsertTwoWay-New(tiddler-Before, tiddler-In)\n <$vars val-shortid=<<shortid>> >\n <$list filter=\"[<val-shortid>] -[[]] +[count[]]\" variable=\"val-shortidInstalled\">\n <$list filter=\"[<val-shortidInstalled>prefix[0]]\">\n <$macrocall $name=\"action-InsertTwoWay-New-WithDefault\" tiddler-Before=\"\"\"$tiddler-Before$\"\"\" tiddler-In=\"\"\"$tiddler-In$\"\"\" />\n </$list>\n <$list filter=\"[<val-shortidInstalled>prefix[1]]\">\n <$macrocall $name=\"action-InsertTwoWay-New-WithID\" tiddler-Before=\"\"\"$tiddler-Before$\"\"\" tiddler-In=\"\"\"$tiddler-In$\"\"\" />\n </$list>\n </$list>\n </$vars>\n\\end\n\\define action-InsertTwoWay-New-WithDefault(tiddler-Before, tiddler-In)\n <$action-sendmessage $message=\"tm-new-tiddler\" navigateFromTitle=\"\"\"$tiddler-Before$\"\"\" tags=\"\"\"$tiddler-In$\"\"\" />\n <<action-Notify-shortidNotInstalled>>\n\\end\n\\define action-InsertTwoWay-New-WithID(tiddler-Before, tiddler-In)\n <$set name=\"tiddler-New\" value={{{ [<val-shortid>addprefix[tid/]] }}} >\n <$action-createtiddler $basetitle=<<tiddler-New>> />\n <$macrocall $name=\"action-ResetListToTagging\" tiddler-ToReset=\"\"\"$tiddler-In$\"\"\" />\n <$macrocall $name=\"action-AddTwoWay\" tiddler-Add=<<tiddler-New>> tiddler-Target=\"\"\"$tiddler-In$\"\"\" tiddler-Before=\"\"\"$tiddler-Before$\"\"\" />\n <$action-sendmessage $message=\"tm-edit-tiddler\" $param=<<tiddler-New>> />\n </$set>\n\\end\n\n\n\n\n\\define action-Droppable-List()\n <<action-CheckDragOfSearchList_List>>\n\\end\n\\define action-CheckDragOfSearchList_List()\n <!-- SEQUENCE AFTER action-Droppable-List -->\n <!-- If actionTiddler is tiddler-SearchListFilter-Live, notify with no action. -->\n <$set name=\"action-DiffOrSearchList\" filter=\"[<actionTiddler>] -[<tiddler-SearchListFilter-Live>]\"\n value=<<action-CheckNew_List>>\n emptyValue=<<action-Notify-NoActionSearchList>> >\n <<action-DiffOrSearchList>>\n </$set>\n\\end\n\\define action-CheckNew_List()\n <!-- SEQUENCE AFTER action-CheckDragOfSearchList_List -->\n <$set name=\"action-ExistingOrNew\" filter=\"[<actionTiddler>] -[[$:/plugins/reidgould/dpbd/action/newTiddler]]\"\n value=<<action-CheckSame_List>>\n emptyValue=\"\"\"<$macrocall $name=\"action-InsertTwoWay-New\" tiddler-Before=<<currentListTiddler>> tiddler-In=<<currentBoardTiddler>> />\"\"\" >\n <<action-ExistingOrNew>>\n </$set>\n\\end\n\\define action-CheckSame_List()\n <!-- SEQUENCE AFTER action-CheckNew_List -->\n <$set name=\"action-DiffOrSame\" filter=\"[<currentListTiddler>] -[<actionTiddler>]\"\n value=<<action-DropList>>\n emptyValue=<<action-Notify-NoActionDraggedOntoSame>> >\n <<action-DiffOrSame>>\n </$set>\n\\end\n\\define action-DropList()\n <!-- SEQUENCE AFTER action-CheckSame_List -->\n <$macrocall $name=\"action-DeleteHolding-IfHeldMatches\" tiddler-Match=<<actionTiddler>> />\n <$macrocall $name=\"action-InsertTwoWay\" tiddler-Insert=<<actionTiddler>> tiddler-Before=<<currentListTiddler>> tiddler-In=<<currentBoardTiddler>> filter-UniqueAmong-byDef=\"filter-BoardL2_currentBoard\" />\n\\end\n\n\\define action-Droppable-Card()\n <<action-CheckDragIntoSearchList>>\n\\end\n\\define action-CheckDragIntoSearchList()\n <!-- SEQUENCE AFTER action-Droppable-Card -->\n <!-- If currentListTiddler is tiddler-SearchListFilter-Live, notify with no action. -->\n <$set name=\"action-DiffOrSearchList\" filter=\"[<currentListTiddler>] -[<tiddler-SearchListFilter-Live>]\"\n value=<<action-CheckDragOfSearchList_Card>>\n emptyValue=<<action-Notify-NoActionSearchList>> >\n <<action-DiffOrSearchList>>\n </$set>\n\\end\n\\define action-CheckDragOfSearchList_Card()\n <!-- SEQUENCE AFTER action-CheckDragIntoSearchList -->\n <!-- If actionTiddler is tiddler-SearchListFilter-Live, notify with no action. -->\n <$set name=\"action-DiffOrSearchListIsAction\" filter=\"[<actionTiddler>] -[<tiddler-SearchListFilter-Live>]\"\n value=<<action-CheckNew_Card>>\n emptyValue=<<action-Notify-NoActionSearchList>> >\n <<action-DiffOrSearchListIsAction>>\n </$set>\n\\end\n\\define action-CheckNew_Card()\n <!-- SEQUENCE AFTER action-CheckDragOfSearchList_Card -->\n <$set name=\"action-ExistingOrNew\" filter=\"[<actionTiddler>] -[[$:/plugins/reidgould/dpbd/action/newTiddler]]\"\n value=\"\"\"<$macrocall $name=\"action-CheckDragIntoSelf\" />\"\"\"\n emptyValue=\"\"\"<$macrocall $name=\"action-InsertTwoWay-New\" tiddler-Before=<<currentCardTiddler>> tiddler-In=<<currentListTiddler>> />\"\"\" >\n <<action-ExistingOrNew>>\n </$set>\n\\end\n\\define action-CheckDragIntoSelf()\n <!-- SEQUENCE AFTER action-CheckNew_Card -->\n <$set name=\"action-DiffOrSelf\" filter=\"[<currentListTiddler>] -[<actionTiddler>]\"\n value=<<action-CheckSame_Card>>\n emptyValue=<<action-Notify-NoActionDraggedOntoSame>> >\n <<action-DiffOrSelf>>\n </$set>\n\\end\n\\define action-CheckSame_Card()\n <!-- SEQUENCE AFTER action-CheckDragIntoSelf -->\n <$set name=\"action-DiffOrSame\" filter=\"[<currentCardTiddler>] -[<actionTiddler>]\"\n value=<<action-DropCard>>\n emptyValue=<<action-Notify-NoActionDraggedOntoSame>> >\n <<action-DiffOrSame>>\n </$set>\n\\end\n\\define action-DropCard()\n <!-- SEQUENCE AFTER action-CheckSame_Card -->\n <$macrocall $name=\"action-DeleteHolding-IfHeldMatches\" tiddler-Match=<<actionTiddler>> />\n <$macrocall $name=\"action-InsertTwoWay\" tiddler-Insert=<<actionTiddler>>tiddler-Before=<<currentCardTiddler>> tiddler-In=<<currentListTiddler>> filter-UniqueAmong-byDef=\"filter-Lists_currentBoard\" />\n <!-- If action tiddler is in filter-Lists_currentBoard, remove it. Doing this instead of using filter-BoardL2_currentBoard in filter-UniqueAmong-byDef above avoids unnecessary rerendering of the board which causes loss of scroll position. -->\n <<action-ConditionalRemoveActionTidFromList>>\n\\end\n\\define action-ConditionalRemoveActionTidFromList()\n <!-- SEQUENCE AFTER action-DropCard -->\n <$set name=\"list-Tiddlers\" filter=\"$(filter-Lists_currentBoard)$\" >\n <$set name=\"action-DoRemove\" filter=\"[enlist<list-Tiddlers>] +[field:title<actionTiddler>]\"\n value=\"\"\"<$macrocall $name=\"action-RemoveTwoWay\" tiddler-ToRemove=<<actionTiddler>> tiddler-Target=<<currentBoardTiddler>> />\"\"\"\n emptyValue=\"\" >\n <<action-DoRemove>>\n </$set>\n </$set>\n\\end\n\n\\define action-RemoveFromBoard()\n <$macrocall $name=\"action-RemoveTwoWay_OneFromMany\" tiddler-ToRemove=<<actionTiddler>> filter-Target-ByDef=\"filter-BoardL2_currentBoard\" />\n\\end"
},
"$:/plugins/reidgould/dpbd/common/Stylesheet": {
"tags": "$:/tags/Stylesheet",
"title": "$:/plugins/reidgould/dpbd/common/Stylesheet",
"text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline hardlinebreaks html commentinline commentblock\n<!-- This rule set prevents unwanted interpretation of wikitext syntax inside a stylesheet or macro definition tiddler. -->\n<!-- Style html tag not not needed when tiddler has $:/tags/Stylesheet tag. This is preferable because it allows us to see the text when the tiddler is open, and also prevents styles without the tag from applying just because the tiddler is open on the page. -->\n\"\"\"\n\n/* ================================================================\n * ### class/id name format:\n * namespace-HINT_CONTEXT-class_or_id_name-HINT_RULE_TYPES-HINT_SELECTOR_OR_COMBINATOR\n * ================================================================\n * ### Hints for rule types.\n * _ - Identifier (No style properties.)\n * ----------------------------------------------------------------\n * ## Usage hints.\n * S - State (e.g. menu open or closed.)\n * P - Preference (A rule to isolate values intended to be overwritten. e.g. for themes.)\n * E - Extend (A rule intended to be extended by others not used directly.)\n * ----------------------------------------------------------------\n * ## Property hints.\n * B - Base (i.e. Global reset. May contain properties usually hinted at by other style types.)\n * O - Layout Outer\n * I - Layout Inner\n * V - Visual Appearance\n * T - Text\n * D - Dynamic (For pseudo selectors and media queries.)\n * Z - Transforms (And transitions.)\n * M - Miscellaneous\n * ================================================================\n * ### Hints for selector or combinator use.\n * ----------------------------------------------------------------\n * _ - Simple (There is a rule that applies to the element the class/id is used on.)\n * ----------------------------------------------------------------\n * ## Selector hints.\n * T - Type (There is a rule that applies when this class/id is used on a particular element type.)\n * S - Class or ID (There is a rule that applies when this class/id is used with another class/id.)\n * A - Attribute (There is a rule that applies when this class/id is used with an attribute selector.)\n * ----------------------------------------------------------------\n * ## Combinator hints. (Lower case hint indicates that this class/id is the descendant or sibling.)\n * N - Adjacent sibling (There is a rule that applies to an element that is the adjacent/next sibling after this class/id.)\n * L - General sibling (There is a rule that applies to an element that is a general/later sibling after this class/id.)\n * C - Child (There is a rule that applies to an element that is a child of this class/id.)\n * D - Descendant (There is a rule that applies to an element that is a descendant of this class/id.)\n * ================================================================\n**/\n\n\n\n\n/* ==== Board\n** ================================================================ */\n\n.dpbd-_-Board-OI-_ {\n /*-- Layout Outer --*/\n /* \"height\" set in style property on element */\n border-style: none dashed;\n border-width: 0 0.25em;\n border-color: <<color tab-divider>>;\n padding: 0.25em 0.5em 0em 0.5em;\n /*-- Layout Inner --*/\n position: relative;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: stretch;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-B-Row_Title-O-_ {\n /*-- Layout Outer --*/\n flex: 0 0 auto;\n padding: 0;\n margin: 0;\n}\n\n.dpbd-B-Row_Title_h2-O-_ {\n /*-- Layout Outer --*/\n margin: 0 0 0.25em 0;\n display: inline-block;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-B-Row_ControlBanner-OI-_ {\n /*-- Layout Outer --*/\n flex: 0 0 auto;\n padding: 0;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: space-between;\n align-content: flex-start;\n align-items: flex-start;\n overflow: hidden;\n margin: -0.125em -0.25em;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-B-Row_List-OI-_ {\n /*-- Layout Outer --*/\n flex: 1 1 0em;\n overflow: hidden;\n padding: 0;\n margin: 0.75em -0.25em;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: stretch;\n}\n\n.dpbd-B_RL-Container_List-OI-_ {\n /*-- Layout Outer --*/\n /* TODO: Remove this unnecessary workaround. */\n /* half pixel padding on each side eliminates a\n * horizontal scroll when content should fit perfectly. */\n padding: 0 0.5px;\n margin: 0.75em 0;\n flex: 1 1 0px;\n overflow: auto;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: stretch;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-B-Footer-OT-_ {\n /*-- Layout Outer --*/\n position: absolute;\n bottom: 0em;\n right: 1em;\n max-width: 100%;\n overflow: hidden;\n /*-- text --*/\n font-size: 0.75em;\n}\n\n.dpbd-B-EmptyMessage-OM-_ {\n /*-- Layout Outer --*/\n position: absolute;\n width: 100%;\n height: 100%;\n padding: 0.5em;\n /*-- miscellaneous --*/\n pointer-events: none;\n}\n\n\n/* ---- Control Banner\n** ---------------------------------------------------------------- */\n\n.dpbd-CB-Container_WidgetDrop-OI-_ {\n /*-- Layout Outer --*/\n flex: 0 1 auto;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: flex-start;\n}\n\n.dpbd-CB-ContainerSub_WidgetDrop-OI-_ {\n /*-- Layout Outer --*/\n flex: 0 1 auto;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: flex-start;\n}\n\n/* . . . . . . . . */\n\n.dpbd-CB-Container_WidgetInput-OI-_ {\n /*-- Layout Outer --*/\n flex: 0 1 auto;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: flex-start;\n}\n\n.dpbd-CB-ContainerSub_WidgetInput-OI-_ {\n /*-- Layout Outer --*/\n flex: 0 1 auto;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: flex-start;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-CB-Widget-O-_ {\n /*-- Layout Outer --*/\n flex: 0 0 auto;\n height: 3em;\n margin: 0.125em 0.25em;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n\n/* ---- Control Banner - Drop Area Widget\n** ---------------------------------------------------------------- */\n\n.dpbd-CB-WidgetDrop-OI-_,\n.dpbd-CB-WidgetDrop-OI-_.dpbd-CB-WidgetDrop-OI-_.dpbd-CB-WidgetDrop-OI-_\n{\n /*-- Layout Outer --*/\n position: relative;\n width: 8em;\n padding: 0.5em 0.25em;\n /*-- Layout Inner --*/\n text-align: center;\n overflow: hidden;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-CB_WD-Droppable-OI-_ {\n /*-- Layout Outer --*/\n position: absolute;\n top: auto;\n left: 0;\n width: auto;\n height: auto;\n /*-- Layout Inner --*/\n padding: 0 0.25em;\n}\n\n.dpbd-CB_WD-p-OIT-_C,\n.dpbd-CB_WD-p-OIT-_C.dpbd-CB_WD-p-OIT-_C\n{\n /*-- Layout Outer --*/\n margin: 0;\n max-height: 2.125em;\n min-height: 2.125em;\n /*-- Layout Inner --*/\n overflow: hidden;\n /*-- Text --*/\n line-height: 1em;\n}\n\n.dpbd-CB_WD-p-OIT-_C > svg {\n /*-- Layout Outer --*/\n height: 2em;\n width: auto;\n float: left;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-CB_WD-Card-O-_,\n.dpbd-CB_WD-Card-O-_.dpbd-CB_WD-Card-O-_.dpbd-CB_WD-Card-O-_\n{\n /*-- Layout Outer --*/\n margin-top: -0.25em;\n padding: 0.125em 0.25em;\n min-height: 0;\n}\n\n.dpbd-CB_WD-HeldTitle-OT-_ {\n /*-- Layout Outer --*/\n display: inline-block;\n width: calc(100% - 2em);\n /*-- Text --*/\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n\n/* ---- Control Banner - Input Widget\n** ---------------------------------------------------------------- */\n\n.dpbd-CB-WidgetInput-O-_ {\n /*-- Layout Outer --*/\n width: auto;\n min-width: 1.5em;\n padding: 0\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-CB_WI-Label_p-OT-_,\n.dpbd-CB_WI-Label_p-OT-_.dpbd-CB_WI-Label_p-OT-_ {\n /*-- Layout Outer --*/\n display: block;\n min-height: 1.5em;\n max-height: 1.5em;\n margin: 0;\n /*-- Text --*/\n white-space: nowrap;\n line-height: 1em;\n}\n\n.dpbd-CB_WI-Input-O-_ {\n /*-- Layout Outer --*/\n display: block;\n width: 100%;\n}\n\n.dpbd-CB_WI-Input_Button-OV-_ {\n /*-- Layout Outer --*/\n padding: 0;\n min-height: 1.5em;\n max-height: 1.5em;\n /*-- Visual --*/\n fill: <<color button-foreground>>;\n}\n\n.dpbd-CB_WI-Input_Container_Checkbox-OTV-_ {\n /*-- Layout Outer --*/\n height: 1.5em;\n /*-- Text --*/\n text-align: center;\n line-height: 1.75em;\n /*-- Visual --*/\n background: whitesmoke;\n border-color: darkgray;\n border-style: solid;\n border-width: 1px;\n border-radius: 2px;\n}\n\n.dpbd-CB_WI-Input_Container_Checkbox-OTV-_ > label > input[type=\"checkbox\"] {\n height: 1em;\n width: 1em;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-CB_WI-Popup-OIV-_C,\n.dpbd-CB_WI-Popup-OIV-_C.dpbd-CB_WI-Popup-OIV-_C\n{\n /*-- Layout Outer --*/\n display: flex;\n /*-- Layout Inner --*/\n align-items: baseline;\n padding-left: 0.5em;\n padding-right: 0.5em;\n /*-- Visual --*/\n color: <<color sidebar-tab-foreground-selected>>;\n}\n\n.dpbd-CB_WI-Popup-OIV-_C.dpbd-CB_WI-Popup-OIV-_C > * > svg,\n.dpbd-CB_WI-Popup-OIV-_C.dpbd-CB_WI-Popup-OIV-_C > * > a\n{\n /*-- Visual --*/\n color: <<color sidebar-tab-foreground-selected>>;\n fill: <<color sidebar-tab-foreground-selected>>;\n}\n\n.dpbd-CB_WI_P-FlexC-O-_,\n.dpbd-CB_WI_P-FlexC-O-_.dpbd-CB_WI_P-FlexC-O-_\n{\n /*-- Layout Outer --*/\n display: initial;\n flex: 0 0 auto;\n width: auto;\n padding: 0;\n margin: 0 0.25em;\n}\n\n.dpbd-CB_WI_P-FlexE-O-_ {\n /*-- Layout Outer --*/\n display: initial;\n flex: 1 0 4em;\n width: auto;\n padding: 0;\n margin: 0 0.25em;\n}\n\n.dpbd-CB_WI_P-Button-OV-_,\n.dpbd-CB_WI_P-Button-OV-_.dpbd-CB_WI_P-Button-OV-_.dpbd-CB_WI_P-Button-OV-_\n{\n /*-- Layout Outer --*/\n padding-left: 0.25em;\n padding-right: 0.25em;\n /*-- Visual --*/\n color: <<color sidebar-tab-foreground-selected>>;\n fill: <<color sidebar-tab-foreground-selected>>;\n}\n\n.dpbd-CB_WI_P-Child_TextArea-O-_ {\n /*-- Layout Outer --*/\n width: 100%;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n/* =======/=======/=======/=======/=======/=======/=======/=======/ */\n\n\n\n\n/* ==== List\n** ================================================================ */\n\n.dpbd-_-List-OI-_ {\n /*-- Layout Outer --*/\n position: relative;\n min-width: 15.5em;\n /* \"min-width\" set in style property on element */\n /* \"max-width\" set in style property on element */\n margin: 0 0.25em;\n flex: 1 0 0em;\n align-self: auto;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: stretch;\n margin-bottom: 0.25em;\n /* Last resort to avoid scrollbars caused by collapsed list\n * titles in cases where height differs from assumed ideal\n * value. (e.g. when control banner wraps.) */\n overflow: hidden;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-L-Container_Card-OI-_ {\n /*-- Layout Outer --*/\n flex: 1 1 auto;\n align-self: auto;\n /*-- Layout Inner --*/\n overflow: auto;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: stretch;\n}\n\n\n/* ---- Title Bar\n** ---------------------------------------------------------------- */\n\n.dpbd-L-TitleBar-OIV-_ {\n /*-- Layout Outer --*/\n flex: 0 0 auto;\n align-self: auto;\n /*-- Layout Inner --*/\n padding: 0.75em 0.5em 0.375em 0.5em;\n /*-- Visual --*/\n border-style: solid solid none solid;\n border-color: <<color tab-border-selected>>;\n border-width: 1px;\n background-color: <<color tab-background-selected>>;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-L_TB-Title-I-_ {\n /*-- Layout Inner --*/\n padding: 0.25em 0 0.25em 0;\n}\n\n.dpbd-L_TB-Title_Collapsed-OZTM-_ {\n /*-- Layout Outer --*/\n position: absolute;\n top: 0;\n left: 0;\n /* \"max-width\" set in style property on element */\n /*-- Transforms and Transitions --*/\n transform-origin: left top;\n transform: rotateZ(90deg) translateX(4em) translateY(-2.25em);\n /*-- Text --*/\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n /*-- Miscellaneous --*/\n pointer-events: none;\n}\n\n.dpbd-L_TB-Title_h3-O-_ {\n /*-- Layout Outer --*/\n display: inline;\n margin: 0;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-L_TB-ColorPreview-OI-_ {\n /*-- Layout Outer --*/\n position: absolute;\n top: 0px;\n left: 0;\n width: 100%;\n height: 0.25em;\n /*-- Layout Inner --*/\n padding: 0 0.5em;\n}\n\n.dpbd-L_TB-ColorPreview_Child-OV-_ {\n /*-- Layout Outer --*/\n width: 100%;\n height: 100%;\n /*-- Visual --*/\n /* \"background-color\" set in style property on element */\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-L_TB-DropArea_Left-OI-_,\n.dpbd-L_TB-DropArea_Left-OI-_.dpbd-L_TB-DropArea_Left-OI-_.dpbd-L_TB-DropArea_Left-OI-_\n{\n /*-- Layout Outer --*/\n position: relative;\n display: inline;\n vertical-align: text-top;\n line-height: 1em;\n margin: 0em 0.25em 0em 0em;\n /*-- Layout Inner --*/\n padding: 0.375em 0 0.125em 0.375em;\n}\n\n.dpbd-L_TB-Container_DropArea_Right-O-_,\n.dpbd-L_TB-Container_DropArea_Right-O-_.dpbd-L_TB-Container_DropArea_Right-O-_\n{\n /*-- Layout Outer --*/\n float: right;\n white-space: nowrap; /* Workaround for a display issue in Firefox. */\n}\n\n.dpbd-L_TB-DropArea_Right-OIT-_,\n.dpbd-L_TB-DropArea_Right-OIT-_.dpbd-L_TB-DropArea_Right-OIT-_.dpbd-L_TB-DropArea_Right-OIT-_\n{\n /*-- Layout Outer --*/\n position: relative;\n display: inline;\n vertical-align: text-top;\n line-height: 1em;\n margin: 0em 0em 0em 0.25em;\n /*-- Layout Inner --*/\n padding: 0.375em 0.375em 0.125em 0.375em;\n /*-- Text --*/\n white-space: nowrap; /* Workaround for a display issue in Firefox. */\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-L_TB-Container_ButtonCollapse-O-_,\n.dpbd-L_TB-Container_ButtonCollapse-O-_.dpbd-L_TB-Container_ButtonCollapse-O-_\n{\n /*-- Layout Outer --*/\n float: right;\n}\n\n.dpbd-L_TB-ButtonCollapse-OIV_,\n.dpbd-L_TB-ButtonCollapse-OIV_.dpbd-L_TB-ButtonCollapse-OIV_\n{\n /*-- Layout Outer --*/\n display: inline;\n vertical-align: top;\n margin: 0em;\n /*-- Layout Inner --*/\n padding: 0.25em 0.375em 0.25em 0.375em;\n /*-- Visual --*/\n fill: <<color tiddler-controls-foreground>>;\n}\n\n.dpbd-L_TB-ButtonCollapse_ImgTransform-OZ-_,\n.dpbd-L_TB-ButtonCollapse_ImgTransform-OZ-_.dpbd-L_TB-ButtonCollapse_ImgTransform-OZ-_\n{\n /*-- Layout Outer --*/\n display: inline-block;\n /*-- Transforms --*/\n transform-origin: top right;\n transform: rotateZ(-90deg) translateY(-50%);\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n/* =======/=======/=======/=======/=======/=======/=======/=======/ */\n\n\n\n\n/* ==== Card\n** ================================================================ */\n\n.dpbd-_-Card-OV-_,\n.dpbd-_-Card-OV-_.dpbd-_-Card-OV-_.dpbd-_-Card-OV-_\n{\n /*-- Layout Outer --*/\n /* EXTENDS tc-tiddler-frame */\n max-width: 100%; /* Restrict width when using fixed-fluid layout (tc-tiddler-frame sets width). */\n min-height: 2.5em;\n margin-bottom: 0.5em;\n padding: 0 0.5em;\n /*-- Visual --*/\n background-color: <<color dropdown-background>>;\n}\n\n.dpbd-_-Droppable_Card-O-_, /* The droppable widget does not seem to apply its class attribute to the element, so we use the following rule. */\n.dpbd-L-Container_Card-OI-_ > .tc-droppable {\n /*-- Layout Outer --*/\n flex: 0 0 auto;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-C-TiddlerControls-OIT-_ {\n /*-- Layout Outer --*/\n margin: 0.15em 0 0 0;\n clear: right;\n float: right;\n /*-- Layout Inner --*/\n padding: 0;\n /*-- Text --*/\n line-height: 1em;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-C-TiddlerIcon-OIVT-_ {\n /*-- Layout Outer --*/\n max-height: 1em;\n margin: 0.625em 0.125em 0 0;\n float: left;\n clear: none;\n /*-- Layout Inner --*/\n padding: 0;\n /*-- Visual --*/\n /* \"fill\" set in style property on element */\n /*-- Text --*/\n line-height: 1em;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-C-Container_IconInfo-O-_ {\n /*-- Layout Outer --*/\n position: absolute;\n bottom: 0;\n right: 0.25em;\n}\n\n.dpbd-C-IconInfo-OV-_ {\n /*-- Layout Outer --*/\n display: inline-block;\n /*-- Visual --*/\n fill: <<color message-foreground>>;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-C-TagPreview-OI-_ {\n /*-- Layout Outer --*/\n position: absolute;\n top: -1px;\n left: 0;\n width: 100%;\n height: 0.25em;\n /*-- Layout Inner --*/\n padding: 0 0.5em;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: stretch;\n}\n\n.dpbd-C-TagPreview_Child-OVM-_ {\n /*-- Layout Outer --*/\n flex: 1 1 auto;\n align-self: auto;\n margin-right: 2px;\n /*-- Visual --*/\n /* \"background-color\" set in style property on element */\n /*-- Miscellaneous --*/\n cursor: help;\n}\n\n/* . . . . . . . . */\n\n.dpbd-C-ColorPreview-OI-_ {\n /*-- Layout Outer --*/\n position: absolute;\n top: 0;\n left: -1px;\n width: 0.25em;\n height: 1.875em;\n /*-- Layout Inner --*/\n padding-top: 0.375em;\n}\n\n.dpbd-C-ColorPreview_Child-OV-_ {\n /*-- Layout Outer --*/\n width: 100%;\n height: 100%;\n /*-- Visual --*/\n /* \"background-color\" set in style property on element */\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-C-Popup_TagEditor-OIV-_CD {\n /*-- Layout Outer --*/\n max-width: 80%;\n /*-- Visual --*/\n background-color: white;\n}\n\n.dpbd-C-Popup_TagEditor-OIV-_CD > .tc-edit-tags {\n /*-- Visual --*/\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n}\n\n.dpbd-C-Popup_TagEditor-OIV-_CD .tc-block-dropdown {\n /*-- Layout Outer --*/\n min-width: 0;\n max-width: 120%;\n max-height: 15em;\n /*-- Layout Inner --*/\n overflow-y: scroll;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-C-EditTitle-T-D > .tc-titlebar {\n /*-- Text --*/\n font-size: 0.75em;\n}\n\n.dpbd-C-TextEditorToolbar-OT-D .tc-editor-toolbar {\n /*-- Layout Outer --*/\n margin-top: 0;\n /*-- Text --*/\n font-size: 0.75em;\n}\n\n/* =======/=======/=======/=======/=======/=======/=======/=======/ */\n\n\n\n\n/* ==== Other - In Namespace\n** ================================================================ */\n\n\n/* ---- Card Content and shorttext - View and Edit\n** ---------------------------------------------------------------- */\n\n.dpbd-C-TextView-OIVM-_C {\n /*-- Text --*/\n line-height: inherit;\n}\n\n.dpbd-C-TextView-OIVM-_C > div,\n.dpbd-C-TextView-OIVM-_C > img,\n.dpbd-C-TextView-OIVM-_C.dpbd-C-TextView-OIVM-_C.dpbd-C-TextView-OIVM-_C.dpbd-C-TextView-OIVM-_C > p\n{\n /*-- Layout Outer --*/\n /* Additional specificity for \"p\" needed in sidebar. */\n margin-top: 0.5em;\n margin-bottom: 0.5em;\n}\n\n.dpbd-C-TextView-OIVM-_C > ul,\n.dpbd-C-TextView-OIVM-_C > ol\n{\n /*-- Layout Inner --*/\n padding-left: 1.25em;\n}\n\n.dpbd-_-ShorttextView-OM-C > img,\n.dpbd-_-ShorttextView-OM-C > svg\n{\n /*-- Layout Outer --*/\n height: 1em;\n width: auto;\n}\n\n.dpbd-C-TextView-OIVM-_C > img,\n.dpbd-_-ShorttextView-OM-C > img\n{\n /*-- Miscellaneous --*/\n /* Dragging a tiddler with an image creates a\n * new tiddler with the content of the title\n * being the data uri of the image. */\n pointer-events: none;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-_-MainView_Shorttext-OTV-S.tc-subtitle {\n /*-- Layout Outer --*/\n margin: 0 0 0.5em 0;\n /*-- Text --*/\n font-size: 1em;\n /*-- Visual --*/\n color: <<color tiddler-title-foreground>>;\n}\n\n/* . . . . . . . . */\n\n.dpbd-_-MainEdit_Shorttext-I-_ {\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: stretch;\n align-items: flex-start;\n}\n\n.dpbd-_-MainEdit_Shorttext_Textarea-O-_ {\n /*-- Layout Outer --*/\n flex: 1 0 auto;\n}\n\n.dpbd-_-MainEdit_Shorttext_Button-O-_ {\n /*-- Layout Outer --*/\n flex: 0 0 auto;\n margin: 0.25em 0 0 0.25em;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n\n/* ---- Drop Area and Droppable Placeholders\n** ---------------------------------------------------------------- */\n\n.dpbd-_-DropArea-IV-_,\n.dpbd-_-DropArea-IV-_.dpbd-_-DropArea-IV-_\n{\n /*-- Layout Inner --*/\n /* EXTENDS tc-edit-tags */\n padding: 1em 0.25em 1em 0.25em;\n /*-- Visual --*/\n color: <<color sidebar-tab-foreground-selected>>;\n fill: <<color sidebar-tab-foreground-selected>>;\n border-color: <<color sidebar-tab-border-selected>>;\n background: <<color sidebar-tab-background-selected>>;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.tc-droppable.tc-dragover > .dpbd-DA-IndicatorThin-OV-c {\n /*-- Layout Outer --*/\n display: block;\n box-sizing: border-box;\n height: 0;\n /*-- Visual --*/\n border: 0;\n}\n\n.tc-droppable.tc-dragover > .dpbd-DA-IndicatorThin-OV-c > .dpbd-DA-IndicatorThin_Child-OV-c {\n /*-- Layout Outer --*/\n display: block;\n box-sizing: content-box;\n position: relative;\n top: -4px;\n left: -2px;\n height: 0;\n width: calc(100% + 4px);\n /*-- Visual --*/\n border-width: 2px 0 0 0;\n border-style: dashed none none none;\n border-color: <<color primary>>;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-DA-IndicatorBottom-OV-_D {\n /*-- Layout Outer --*/\n flex: 1 0 2.5em;\n position: relative;\n}\n\n.dpbd-DA-IndicatorBottom-OV-_D > .tc-droppable {\n /*-- Layout Outer --*/\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n.dpbd-DA-IndicatorBottom-OV-_D > .tc-droppable.tc-dragover {\n /*-- Visual --*/\n border: 2px dashed <<color primary>>;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n.dpbd-DA-IndicatorList-OV-_D {\n /*-- Layout Outer --*/\n display: none;\n}\n\n.tc-droppable.tc-dragover > .dpbd-DA-IndicatorList-OV-_D {\n /*-- Layout Outer --*/\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n /*-- Visual --*/\n border: 2px dashed <<color primary>>;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n\n/* ---- Search List\n** ---------------------------------------------------------------- */\n\n.dpbd-SL-DropArea-IV-_,\n.dpbd-SL-DropArea-IV-_.dpbd-SL-DropArea-IV-_\n{\n /*-- Layout Outer --*/\n /* EXTENDS tc-edit-tags */\n /*-- Layout Inner --*/\n padding: 1em 0.25em 1em 0.25em;\n /*-- Visual --*/\n background: none;\n box-shadow: none;\n line-height: 1.25;\n color: <<color sidebar-tab-foreground-selected>>;\n fill: <<color sidebar-tab-foreground-selected>>;\n border-color: <<color sidebar-tab-border-selected>>;\n background: <<color sidebar-tab-background-selected>>;\n border-style: dashed;\n}\n\n.dpbd-SL-Card-V-_,\n.dpbd-SL-Card-V-_.dpbd-SL-Card-V-_\n{\n /*-- Visual --*/\n border: 1px dashed <<color sidebar-tab-border-selected>>;\n}\n\n.dpbd-SL-Container_List-OI-_ {\n /*-- Layout Outer --*/\n /* \"flex\" set in style property on element */\n border-right: 0.25em dashed #ddd;\n /*-- Layout Inner --*/\n display: flex;\n flex-direction: column;\n padding: 0.75em 0.5em 0.75em 0;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n/* =======/=======/=======/=======/=======/=======/=======/=======/ */\n\n\n\n\n/* ==== Other - TiddlyWiki Overrides and Extensions\n** ================================================================ */\n\n/* ---- TW Helpers\n** ---------------------------------------------------------------- */\n\n.dpbd-_-FillColor_ControlsForeground-V-_,\n.dpbd-_-FillColor_ControlsForeground-V-_.dpbd-_-FillColor_ControlsForeground-V-_\n{\n /*-- Visual --*/\n fill: <<color tiddler-controls-foreground>>;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n/* ---- SideBar Reset\n** ---------------------------------------------------------------- */\n\n.dpbd-SB-Container_Reset-OIV-_ {\n /*-- Layout Outer --*/\n min-width: 100%;\n max-width: 100%;\n margin-top: 0.5em;\n display: inline-block;\n /*-- Layout Inner --*/\n padding: 0.5em;\n /*-- Visual --*/\n border-color: <<colour tab-border>>;\n border-width: 3px 1px 1px 1px;\n border-style: double dashed dashed dashed;\n}\n\n.dpbd-SB-Reset-VO-_ {\n /*-- Visual --*/\n background-color: <<color tiddler-background>>;\n color: <<color foreground>>;\n fill: <<color foreground>>;\n}\n\n.dpbd-SB-Reset-VO-_.dpbd-SB-Reset-VO-_ a.tc-tiddlylink,\n.dpbd-SB-Reset-VO-_.dpbd-SB-Reset-VO-_ a.tc-tiddlylink:hover\n{\n /*-- Visual --*/\n color: <<color tiddler-link-foreground>>;\n}\n\n.tc-sidebar-header .tc-sidebar-lists .dpbd-SB-Reset-VO-_ p {\n /*-- Layout Outer --*/\n margin-top: unset;\n margin-bottom: unset;\n}\n\n/* -------/-------/-------/-------/-------/-------/-------/-------/ */\n\n/* =======/=======/=======/=======/=======/=======/=======/=======/ */\n\n\n\n\n/* ==== Other - General Use\n** ================================================================ */\n\n._-_-Button_StyleLink-OVTM-_,\n._-_-Button_StyleLink-OVTM-_._-_-Button_StyleLink-OVTM-_ {\n /*-- Layout Inner --*/\n padding: 0;\n /*-- Visual --*/\n color: <<color primary>>;\n fill: <<color primary>>;\n border: none;\n background: none;\n /*-- Text --*/\n font-family: arial, sans-serif; /*input has OS specific font-family*/\n /*-- Miscellaneous --*/\n cursor: pointer;\n}\n\n._-_-Button_StyleLink-OVTM-_:hover {\n /*-- Visual --*/\n text-decoration: underline;\n}\n\n/* . . . . . . . . */\n\n._-_-img_inline-OV-_C {\n /*-- Visual --*/\n /* \"fill\" set in style property on element */\n}\n\n._-_-img_inline-OV-_C > img,\n._-_-img_inline-OV-_C > svg\n{\n /*-- Layout Outer --*/\n height: 1em;\n width: auto;\n}\n\n._-_-img_inline_help-M-_ {\n /*-- Miscellaneous --*/\n cursor: help;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n._-_-Position_TR-O-_ {\n /*-- Layout Outer --*/\n position: absolute;\n top: 0.125em;\n right: 0.125em;\n}\n\n/* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */\n\n._-_-VerticalRule-OV-_ {\n /*-- Layout Outer --*/\n display: inline;\n margin: 0 0.5em;\n /*-- Visual --*/\n border-style: none none none solid ;\n border-width: 0 0 0 1px ;\n border-color: black;\n}\n\n/* =======/=======/=======/=======/=======/=======/=======/=======/ */\n\n\"\"\""
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/bold": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/bold",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/editor-height": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/editor-height",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/excise": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/excise",
"text": "show"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-1": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-1",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-2": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-2",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-3": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-3",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/italic": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/italic",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/line-width": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/line-width",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/link": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/link",
"text": "show"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/list-bullet": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/list-bullet",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/list-number": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/list-number",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-block": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-block",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-line": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-line",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/picture": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/picture",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/quote": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/quote",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/stamp": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/stamp",
"text": "show"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/strikethrough": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/strikethrough",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/subscript": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/subscript",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/superscript": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/superscript",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/underline": {
"title": "$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/underline",
"text": "hide"
},
"$:/plugins/reidgould/dpbd/images/Dropboard": {
"title": "$:/plugins/reidgould/dpbd/images/Dropboard",
"text": "<svg class=\"tc-image-options-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 22 22\">\n<g>\n <rect x=\"15.5\" y=\"3\" width=\"3.5\" height=\"2\"/>\n <rect x=\"9\" y=\"3\" width=\"4\" height=\"2\"/>\n <rect x=\"9\" y=\"6\" width=\"4\" height=\"2\"/>\n <rect x=\"9\" y=\"9\" width=\"4\" height=\"2\"/>\n <rect x=\"9\" y=\"12\" width=\"4\" height=\"2\"/>\n <rect x=\"3\" y=\"3\" width=\"3.5\" height=\"2\"/>\n <rect x=\"3\" y=\"6\" width=\"3.5\" height=\"2\"/>\n <path d=\"M19,0H3C1.4,0,0,1.4,0,3v16c0,1.6,1.4,3,3,3h16c1.6,0,3-1.4,3-3V3C22,1.4,20.7,0,19,0z M14.5,20V2H19c0.5,0,1,0.5,1,1v16\n c0,0.5-0.5,1-1,1H14.5z M8,20V2h6v18L8,20z M2,19V3c0-0.5,0.5-1,1-1h4.5v18H3C2.5,20,2,19.5,2,19z\"/>\n</g>\n</svg>\n"
},
"$:/plugins/reidgould/dpbd/license": {
"title": "$:/plugins/reidgould/dpbd/license",
"type": "text/plain",
"text": "Dropboard created by Reid Gould, (reidgould [at] gmail [dot] com)\n\nCopyright (c) 2017, Reid Gould\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
},
"$:/plugins/reidgould/dpbd/notifications/NoActionDraggedOntoSame": {
"title": "$:/plugins/reidgould/dpbd/notifications/NoActionDraggedOntoSame",
"text": "No Action. Dragged onto same."
},
"$:/plugins/reidgould/dpbd/notifications/NoActionSearchList": {
"title": "$:/plugins/reidgould/dpbd/notifications/NoActionSearchList",
"text": "No Action. Cannot drag the Search List or drop into it, only drag cards out."
},
"$:/plugins/reidgould/dpbd/ui/notifications/shortidNotInstalled": {
"title": "$:/plugins/reidgould/dpbd/ui/notifications/shortidNotInstalled",
"text": "New tiddler not placed properly?<br>\nInstall <a href=\"http://reidgould.github.io/tiddlywiki-shortid-plugin\" target=\"_blank\" rel=\"noopener noreferrer\">shortid</a>."
},
"$:/plugins/reidgould/dpbd/readme": {
"title": "$:/plugins/reidgould/dpbd/readme",
"type": "text/x-markdown",
"text": "# Dropboard\nA TiddlyWiki plugin for kanban like organization in the style of Trello using boards, lists, and cards.\n\nCreated by [Reid Gould](https://www.reidgould.com) <[reidgould@gmail.com](mailto:reidgould@gmail.com)>\n\n* [Source on GitHub](https://github.com/reidgould/tiddlywiki-dropboard).\n* [User Guide in a TiddlyWiki](http://reidgould.github.io/tiddlywiki-dropboard).\n\nGet Dropboard by opening the User Guide and choosing one of the methods found there, or by cloning this repository and using `npm run` to execute the scripts listed in \"package.json\".\n"
},
"$:/plugins/reidgould/dpbd/snippets/BoardTemplate": {
"title": "$:/plugins/reidgould/dpbd/snippets/BoardTemplate",
"tags": "$:/tags/TextEditor/Snippet",
"caption": "Dropboard - Board Template",
"text": "<$transclude tiddler=\"$:/plugins/reidgould/dpbd/templates/view/Board\" mode=\"inline\" />"
},
"$:/plugins/reidgould/dpbd/templates/edit/Card": {
"title": "$:/plugins/reidgould/dpbd/templates/edit/Card",
"text": "\\define action-Save()\n <$action-sendmessage $message=\"tm-add-tag\" $param={{$:/temp/NewTagName}}/>\n <$action-deletetiddler $tiddler=\"$:/temp/NewTagName\"/>\n <$action-sendmessage $message=\"tm-add-field\" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>\n <$action-deletetiddler $tiddler=\"$:/temp/newfieldname\"/>\n <$action-deletetiddler $tiddler=\"$:/temp/newfieldvalue\"/>\n <$action-sendmessage $message=\"tm-save-tiddler\"/>\n\\end\n\\define class-Card-Norm()\n tc-tiddler-frame tc-tiddler-edit-frame dpbd-C-TextEditorToolbar-OT-D $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ dpbd-_-Card-OV-_\n\\end\n\\define class-Card-SearchList()\n tc-tiddler-frame tc-tiddler-edit-frame dpbd-C-TextEditorToolbar-OT-D $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ dpbd-_-Card-OV-_ dpbd-SL-Card-V-_\n\\end\n\\define config-visibility-title()\n$:/plugins/reidgould/dpbd/config/EditorToolbarButtons/Visibility/$(currentTiddler)$\n\\end\n\n<$set name=\"currentCardTiddler\" value=<<currentTiddler>> >\n<$set name=\"class-Card\" filter=\"[<currentListTiddler>field:title<tiddler-SearchListFilter-Live>]\"\n value=<<class-Card-SearchList>>\n emptyValue=<<class-Card-Norm>> >\n<$droppable actions=<<action-Droppable-Card>> >\n<div class=\"dpbd-DA-IndicatorThin-OV-c\">\n <div class=\"dpbd-DA-IndicatorThin_Child-OV-c\"></div>\n</div>\n<div class=<<class-Card>>>\n <$fieldmangler>\n <!-- keeping this SetWidget for storyTiddler for internals from TW core -->\n <$set name=\"storyTiddler\" value=<<currentTiddler>>>\n <$keyboard key=\"((cancel-edit-tiddler))\" message=\"tm-cancel-tiddler\">\n <$keyboard key=\"((save-tiddler))\" actions=<<action-Save>>>\n <div class=\"dpbd-C-TiddlerControls-OI-_\">\n <$button message=\"tm-delete-tiddler\" tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=\"tc-btn-invisible dpbd-_-FillColor_ControlsForeground-V-_\">\n {{$:/core/images/delete-button}}\n </$button>\n <$button message=\"tm-cancel-tiddler\" tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=\"tc-btn-invisible dpbd-_-FillColor_ControlsForeground-V-_\">\n {{$:/core/images/cancel-button}}\n </$button>\n <$button actions=<<action-Save>> tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=\"tc-btn-invisible dpbd-_-FillColor_ControlsForeground-V-_\">\n {{$:/core/images/save-button}}\n </$button>\n </div>\n <span class=\"dpbd-C-EditTitle-T-D\">\n <$transclude tiddler=\"$:/core/ui/EditTemplate/title\" mode=\"inline\" />\n </span>\n <$edit-text field=\"shorttext\" tag=\"textarea\" autoHeight=\"yes\" minHeight=\"1.25em\" focus=\"yes\" class=\"tc-edit-texteditor\" placeholder={{$:/plugins/reidgould/dpbd/templates/shorttextPlaceholder}} />\n <<currentTiddler>>\n <$list filter=\"[<currentTiddler>regexp:shorttext[\\n]]\" variable=\"\">\n <div class=\"tc-message-box\">\n <p>{{$:/core/images/warning}} Warning: avoid using multiple lines in shorttext. Tiddlers with newline characters in shorttext create invalid \".tid\" files.</p>\n </div>\n </$list>\n <$edit\n field=\"text\"\n focus=\"no\"\n class=\"tc-edit-texteditor\"\n placeholder={{$:/language/EditTemplate/Body/Placeholder}}\n ><$set\n value=<<currentTiddler>>\n ><$list\n filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]\"\n ><$reveal\n type=\"nomatch\"\n state=<<config-visibility-title>>\n text=\"hide\"\n class=\"tc-text-editor-toolbar-item-wrapper\"\n ><$transclude\n tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\"\n mode=\"inline\"\n /></$reveal></$list></$set></$edit>\n </$keyboard>\n </$keyboard>\n </$set>\n </$fieldmangler>\n</div>\n</$droppable>\n</$set>\n</$set>"
},
"$:/plugins/reidgould/dpbd/templates/edit/shorttext": {
"title": "$:/plugins/reidgould/dpbd/templates/edit/shorttext",
"tags": "$:/tags/EditTemplate",
"list-before": "$:/core/ui/EditTemplate/body",
"text": "<div class=\"dpbd-_-MainEdit_Shorttext-I-_\">\n <div class=\"dpbd-_-MainEdit_Shorttext_Textarea-O-_\">\n <$edit-text field=\"shorttext\" tag=\"textarea\" autoHeight=\"yes\" minHeight=\"1.25em\" focus=\"no\" class=\"tc-edit-texteditor\" placeholder={{$:/plugins/reidgould/dpbd/templates/shorttextPlaceholder}} />\n </div>\n <div class=\"dpbd-_-MainEdit_Shorttext_Button-O-_ tc-tiddler-controls\">\n <$button actions=\"\"\"<$action-deletefield shorttext />\"\"\" tooltip=\"delete field shorttext\" class=\"tc-btn-invisible\">\n {{$:/core/images/close-button}}\n </$button>\n </div>\n</div>\n<$list filter=\"[<currentTiddler>regexp:shorttext[\\n]]\" variable=\"\">\n <div class=\"tc-message-box\">\n <p>{{$:/core/images/warning}} Warning: avoid using multiple lines in shorttext. Tiddlers with newline characters in shorttext create invalid \".tid\" files.</p>\n </div>\n</$list>"
},
"$:/plugins/reidgould/dpbd/templates/shorttextPlaceholder": {
"title": "$:/plugins/reidgould/dpbd/templates/shorttextPlaceholder",
"text": "\"shorttext\" for plain text up to a paragraph. Use \"title\" as ID, \"text\" for large content."
},
"$:/plugins/reidgould/dpbd/templates/view/Board": {
"title": "$:/plugins/reidgould/dpbd/templates/view/Board",
"text": "<$set name=\"currentBoardTiddler\" value=<<currentTiddler>> >\n<$set name=\"val-BoardHeight\" filter={{{[<currentBoardTiddler>get[dpbd-boardheight]]}}} value=\"\" emptyValue=<<val-BoardHeight-Default>> >\n<div class=\"dpbd-_-Board-OI-_\" style=<<style-BoardHeight>> >\n <$list filter=\"[<currentBoardTiddler>] -[<storyTiddler>] +[count[]] -[[0]]\" variable=\"\">\n <div class=\"dpbd-B-Row_Title-O-_\">\n <$set name=\"tv-wikilinks\" value={{$:/config/Tiddlers/TitleLinks}}>\n <$link>\n <$set name=\"foregroundColor\" value={{!!color}} >\n <span class=\"_-_-img_inline-OV-_C\" style=<<style-IconColor>>>\n <$transclude tiddler={{!!icon}} mode=\"inline\" />\n </span>\n </$set>\n <$list filter=\"[all[current]removeprefix[$:/]]\">\n <h2 class=\"tc-title\" title={{$:/language/SystemTiddler/Tooltip}}>\n <span class=\"tc-system-title-prefix\">$:/</span><$text text=<<currentTiddler>>/>\n </h2>\n </$list>\n <$list filter=\"[all[current]!prefix[$:/]]\">\n <h2 class=\"tc-title dpbd-B-Row_Title_h2-O-_\">\n <$view field=\"title\"/>\n </h2>\n </$list>\n </$link>\n <$list filter=\"[<windowTiddler>] -[<currentBoardTiddler>] -[[]]\" variable=\"\">\n in\n <$link to=<<windowTiddler>> >\n <<windowTiddler>>\n </$link>\n </$list>\n </$set>\n </div>\n </$list>\n <div class=\"dpbd-B-Row_ControlBanner-OI-_\">\n <div class=\"dpbd-CB-Container_WidgetDrop-OI-_\">\n <div class=\"dpbd-CB-ContainerSub_WidgetDrop-OI-_\">\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetDrop-OI-_ tc-edit-tags dpbd-_-DropArea-IV-_\" title=\"Drop into either card or list position.\">\n <$draggable tiddler=\"$:/plugins/reidgould/dpbd/action/newTiddler\" class=\"dpbd-_-Card-OV-_ dpbd-CB_WD-Card-O-_ tc-tiddler-frame\">\n <p class=\"dpbd-CB_WD-p-OIT-_C\">{{$:/core/images/new-button}}New Tiddler</p>\n </$draggable>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetDrop-OI-_ tc-edit-tags dpbd-_-DropArea-IV-_\" >\n <$droppable actions=\"\"\"\n <$action-deletetiddler $tiddler=<<tiddler-Holding>> />\n <$action-createtiddler $basetitle=<<tiddler-Holding>> text=<<actionTiddler>> /> \"\"\" >\n <div class=\"dpbd-CB_WD-Droppable-OI-_\"><p class=\"dpbd-CB_WD-p-OIT-_C\">{{$:/core/images/full-screen-button}}Hold Tiddler </p></div>\n </$droppable>\n <$list filter=\"[<tiddler-Holding>get[title]]\" >\n <$tiddler tiddler={{{ [<tiddler-Holding>get[text]] }}} >\n <$vars currentHeldTiddler=<<currentTiddler>> val-HeldShorttext={{!!shorttext}} >\n <$draggable tiddler=<<currentTiddler>> class=\"dpbd-_-Card-OV-_ dpbd-CB_WD-Card-O-_ tc-tiddler-frame\">\n <$button actions=\"\"\"<$action-deletetiddler $tiddler=<<tiddler-Holding>> />\"\"\" class=\"tc-btn-invisible dpbd-_-FillColor_ControlsForeground-V-_ _-_-Position_TR-O-_\">\n {{$:/core/images/close-button}}\n </$button>\n <p class=\"dpbd-CB_WD-p-OIT-_C\" title=<<HeldToolTip>>>\n {{$:/core/images/file}}\n Tiddler: \n <span class=\"dpbd-CB_WD-HeldTitle-OT-_ dpbd-_-ShorttextView-OM-C\">\n <$set name=\"field-shorttextOrTitle\" filter=\"[<currentTiddler>has[shorttext]]\" value=\"shorttext\" emptyValue=\"title\">\n <$transclude field=<<field-shorttextOrTitle>> mode=\"inline\" class=\"\" />\n </$set>\n </span>\n </p>\n </$draggable>\n </$vars>\n </$tiddler>\n </$list>\n </div>\n </div>\n <div class=\"dpbd-CB-ContainerSub_WidgetDrop-OI-_\">\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetDrop-OI-_ tc-edit-tags dpbd-_-DropArea-IV-_\" >\n <$droppable actions=\"\"\"<$action-navigate $to=<<actionTiddler>> $scroll=\"yes\" />\"\"\" >\n <div class=\"dpbd-CB_WD-Droppable-OI-_\"><p class=\"dpbd-CB_WD-p-OIT-_C\">{{$:/core/images/export-button}}Open in Main Story</p></div>\n </$droppable>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetDrop-OI-_ tc-edit-tags dpbd-_-DropArea-IV-_\" >\n <$droppable actions=\"\"\"<<action-RemoveFromBoard>>\"\"\" >\n <div class=\"dpbd-CB_WD-Droppable-OI-_\"><p class=\"dpbd-CB_WD-p-OIT-_C\">{{$:/core/images/close-button}}Remove from Board</p></div>\n </$droppable>\n </div>\n </div>\n </div>\n <div class=\"dpbd-CB-Container_WidgetInput-OI-_\">\n <div class=\"dpbd-CB-ContainerSub_WidgetInput-OI-_\">\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"Filter (append to each)\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">Filter</p>\n <$button class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Button-OV-_\" popup=<<tiddler-popupUserFilter>> >{{$:/core/images/unfold-button}}</$button>\n <$reveal type=\"popup\" state=<<tiddler-popupUserFilter>> position=\"below\" class=\"tc-popup-keep\">\n <div class=\"tc-drop-down dpbd-CB_WI-Popup-OIV-_C\">\n <span class=\"dpbd-CB_WI_P-FlexE-O-_\">\n <$edit-text tiddler=<<tiddler-UserFilter-Stage>> tag=\"input\" type=\"text\" default=\"\" placeholder=\"Use only + or - runs.\" class=\"dpbd-CB_WI_P-Child_TextArea-O-_\" />\n </span>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ dpbd-CB_WI_P-Button-OV-_\" actions=\"\"\"\n <$action-deletetiddler $tiddler=<<tiddler-UserFilter-Live>> />\n <$action-createtiddler $basetitle=<<tiddler-UserFilter-Live>> text={{{ [<tiddler-UserFilter-Stage>get[text]] }}} />\n \"\"\">\n Set\n </$button>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ tc-btn-invisible\" actions=\"\"\"\n <$action-deletetiddler $tiddler=<<tiddler-UserFilter-Stage>> />\n <$action-deletetiddler $tiddler=<<tiddler-UserFilter-Live>> />\n \"\"\" >\n {{$:/core/images/close-button}}\n </$button>\n </div>\n </$reveal>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"Display Text Field\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">Text</p>\n <div class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Container_Checkbox-OTV-_\">\n <$checkbox class=\"\" field=\"dpbd-displaytext\" checked=\"yes\" unchecked=\"no\" default=\"yes\"></$checkbox>\n </div>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"Display Image Tiddlers\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">Image</p>\n <div class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Container_Checkbox-OTV-_\">\n <$checkbox class=\"\" field=\"dpbd-displayimages\" checked=\"yes\" unchecked=\"no\" default=\"yes\"></$checkbox>\n </div>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"Search List Filter.\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">Search</p>\n <$button class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Button-OV-_\" popup=<<tiddler-popupSearchList>> >{{$:/core/images/unfold-button}}</$button>\n <$reveal type=\"popup\" state=<<tiddler-popupSearchList>> position=\"below\" class=\"tc-popup-keep\">\n <div class=\"tc-drop-down dpbd-CB_WI-Popup-OIV-_C\">\n <span class=\"dpbd-CB_WI_P-FlexE-O-_\">\n <$edit-text tiddler=<<tiddler-SearchListFilter-Stage>> tag=\"input\" type=\"text\" default=\"\" placeholder=\"Excludes tiddlers on board.\" class=\"dpbd-CB_WI_P-Child_TextArea-O-_\" />\n </span>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ dpbd-CB_WI_P-Button-OV-_\" actions=\"\"\"\n <$action-deletetiddler $tiddler=<<tiddler-SearchListFilter-Live>> />\n <$action-createtiddler $basetitle=<<tiddler-SearchListFilter-Live>> text={{{ [<tiddler-SearchListFilter-Stage>get[text]] }}} /> \"\"\">\n Set\n </$button>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ tc-btn-invisible\" actions=\"\"\"\n <$action-deletetiddler $tiddler=<<tiddler-SearchListFilter-Stage>> />\n <$action-deletetiddler $tiddler=<<tiddler-SearchListFilter-Live>> />\n \"\"\" >\n {{$:/core/images/close-button}}\n </$button>\n </div>\n </$reveal>\n </div>\n </div>\n <div class=\"dpbd-CB-ContainerSub_WidgetInput-OI-_\">\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"Board Height\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">Height</p>\n <$button class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Button-OV-_\" popup=<<tiddler-popupBoardHeight>> >{{$:/core/images/unfold-button}}</$button>\n <$reveal type=\"popup\" state=<<tiddler-popupBoardHeight>> position=\"below\" class=\"tc-popup-keep\">\n <div class=\"tc-drop-down dpbd-CB_WI-Popup-OIV-_C\">\n <$set name=\"val-BoardHeight-current\" value={{{ [<currentBoardTiddler>get[dpbd-boardheight]] }}} >\n <span class=\"dpbd-CB_WI_P-FlexE-O-_\">\n <$edit-text tiddler=<<tiddler-BoardHeight-Stage>> tag=\"input\" type=\"text\" default=\"\" placeholder=<<val-BoardHeight-current>> class=\"dpbd-CB_WI_P-Child_TextArea-O-_\" />\n </span>\n </$set>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ dpbd-CB_WI_P-Button-OV-_\" actions=\"\"\"\n <$action-setfield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-boardheight\" $value={{{ [<tiddler-BoardHeight-Stage>get[text]addsuffix[vh]] }}} />\n <$action-deletetiddler $tiddler=<<tiddler-BoardHeight-Stage>> />\n \"\"\">\n Set (vh)\n </$button>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ tc-btn-invisible\" actions=\"\"\"\n <$action-deletetiddler $tiddler=<<tiddler-BoardHeight-Stage>> />\n <$action-deletefield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-boardheight\" />\n \"\"\" >\n {{$:/core/images/close-button}}\n </$button>\n </div>\n </$reveal>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"List Width\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">Width</p>\n <$button class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Button-OV-_\" popup=<<tiddler-popupListWidth>> >{{$:/core/images/unfold-button}}</$button>\n <$reveal type=\"popup\" state=<<tiddler-popupListWidth>> position=\"below\" class=\"tc-popup-keep\">\n <div class=\"tc-drop-down dpbd-CB_WI-Popup-OIV-_C\">\n <$set name=\"val-ListWidth-current\" value={{{ [<currentBoardTiddler>get[dpbd-listwidth-em]] }}} >\n <span class=\"dpbd-CB_WI_P-FlexE-O-_\">\n <$edit-text tiddler=<<tiddler-ListWidth-Stage>> tag=\"input\" type=\"text\" default=\"\" placeholder=<<val-ListWidth-current>> class=\"dpbd-CB_WI_P-Child_TextArea-O-_\" />\n </span>\n </$set>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ dpbd-CB_WI_P-Button-OV-_\" actions=\"\"\"\n <$action-setfield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-listwidth-em\" $value={{{ [<tiddler-ListWidth-Stage>get[text]] }}} />\n <$action-deletetiddler $tiddler=<<tiddler-ListWidth-Stage>> />\n \"\"\">\n Set (em)\n </$button>\n <p class=\"_-_-VerticalRule-OV-_ dpbd-CB_WI_P-FlexC-O-_\">‌</p>\n <p class=\"dpbd-CB_WI_P-FlexC-O-_\">Fit:</p>\n <$select class=\"dpbd-CB_WI_P-FlexC-O-_\" tiddler=<<currentBoardTiddler>> field=\"dpbd-listwidth-num\"\n actions=\"\"\"\n <$action-setfield $field=\"dpbd-widthismax\" $value=\"yes\" />\n <$action-deletefield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-listwidth-em\" />\n \"\"\" >\n <$list filter=\"[enlist<table-ListWidth-Num>]\" variable=\"val-ListWidth-Num-Current\">\n <option value=<<val-ListWidth-Num-Current>> ><<val-ListWidth-Num-Current>></option>\n </$list>\n </$select>\n <p class=\"_-_-VerticalRule-OV-_ dpbd-CB_WI_P-FlexC-O-_\">‌</p>\n <$checkbox class=\"dpbd-CB_WI_P-FlexC-O-_\" field=\"dpbd-widthismax\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> Is Max</$checkbox>\n <p class=\"_-_-VerticalRule-OV-_ dpbd-CB_WI_P-FlexC-O-_\">‌</p>\n <$button class=\"dpbd-CB_WI_P-FlexC-O-_ tc-btn-invisible\" actions=\"\"\"\n <$action-deletetiddler $tiddler=<<tiddler-ListWidth-Stage>> />\n <$action-deletefield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-listwidth-num\" />\n <$action-deletefield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-listwidth-em\" />\n <$action-deletefield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-widthismax\" />\n \"\"\" >\n {{$:/core/images/close-button}}\n </$button>\n </div>\n </$reveal>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"Open In New Window\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">Window</p>\n <$button class=\"dpbd-CB_WI-Input-O-_ dpbd-CB_WI-Input_Button-OV-_\" actions=\"\"\"\n <$action-sendmessage $message=\"tm-open-window\" $param=<<storyTiddler>> width=\"9999\" height=\"9999\" windowTiddler=<<storyTiddler>> />\n <$action-setfield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-boardheight\" $value=\"100%\" />\n <$action-sendmessage $message=\"tm-close-tiddler\" $param=<<storyTiddler>> />\n \"\"\" >\n <span class=\"_-_-img_inline-OV-_C\">{{$:/core/images/open-window}}</span>\n </$button>\n </div>\n <div class=\"dpbd-CB-Widget-O-_ dpbd-CB-WidgetInput-O-_\" title=\"Show in SideBar\">\n <p class=\"dpbd-CB_WI-Label_p-OT-_\">SideBar</p>\n <$set name=\"wikitext-SideBar-Button\" filter=\"[<tiddler-SideBar>has:field[title]]\"\n value=<<wikitext-SideBar-Button-Delete>>\n emptyValue=<<wikitext-SideBar-Button-Create>> >\n <<wikitext-SideBar-Button>>\n </$set>\n </div>\n </div>\n </div>\n </div>\n <!-- Set values if board has fields. -->\n <$set name=\"val-ListWidth-Em\" filter=\"[<currentBoardTiddler>has:value[dpbd-listwidth-em]]\"\n value={{{[<currentBoardTiddler>get[dpbd-listwidth-em]]}}}\n emptyValue=<<val-ListWidth-Em-Default>> >\n <$set name=\"val-ListWidth-Num\" filter=\"[<currentBoardTiddler>has:value[dpbd-listwidth-num]]\"\n value={{{[<currentBoardTiddler>get[dpbd-listwidth-num]]}}}\n emptyValue=<<val-ListWidth-Num-Default>> >\n <!-- Unshift table if necessary. Decimal part of new values are because listop disallows duplicates. -->\n <$set name=\"list-ListWidth-Pct-SL\" filter=\"[[100.001]] [enlist<table-ListWidth-Pct>]\" >\n <$set name=\"table-ListWidth-Pct\" filter=\"[field:title<tiddler-SearchListFilter-Live>]\"\n value=<<list-ListWidth-Pct-SL>>\n emptyValue=<<table-ListWidth-Pct>> >\n <$set name=\"list-ListWidth-Dec-SL\" filter=\"[[1.001]] [enlist<table-ListWidth-Dec>]\" >\n <$set name=\"table-ListWidth-Dec\" filter=\"[field:title<tiddler-SearchListFilter-Live>]\"\n value=<<list-ListWidth-Dec-SL>>\n emptyValue=<<table-ListWidth-Dec >\n <!-- Set final values from table lookup. -->\n <$set name=\"val-ListWidth-Pct\" value={{{ [enlist<table-ListWidth-Pct>nth<val-ListWidth-Num>] }}} >\n <$set name=\"val-ListWidth-Dec\" value={{{ [enlist<table-ListWidth-Dec>nth<val-ListWidth-Num>] }}} >\n <!-- Use Em value if set, otherwise use percent value. -->\n <$set name=\"val-listWidthMin\" filter=\"[<currentBoardTiddler>has:value[dpbd-listwidth-em]]\"\n value=<<val-WidthPropVal-Em>>\n emptyValue=<<val-WidthPropVal-Pct>> >\n <div class=\"dpbd-B-Row_List-OI-_\" >\n <$list filter=\"[field:title<tiddler-SearchListFilter-Live>]\" >\n <$set name=\"style-Width--SearchList-Container\" filter=\"[<currentBoardTiddler>has:value[dpbd-listwidth-em]]\"\n value=<<style-Flex-Em>>\n emptyValue=<<style-Flex-Dec>> >\n <div class=\"dpbd-SL-Container_List-OI-_\" style=<<style-Width--SearchList-Container>> >\n <$transclude tiddler=\"$:/plugins/reidgould/dpbd/templates/view/List\" mode=\"inline\" />\n </div>\n </$set>\n </$list>\n <div class=\"dpbd-B_RL-Container_List-OI-_\" >\n <$list filter=\"[<currentTiddler>tagging[]!has[draft.of]]\"\n emptyMessage=\"\"\"\n <div class=\"tc-edit-tags dpbd-_-DropArea-IV-_\" style=\"flex:1 1 auto;\">\n <$droppable actions=<<action-Droppable-List>> >\n <div class=\"dpbd-B-EmptyMessage-OM-_\" style=\"position:relative;\">\n Drag in the \"New Tiddler\" above, or any existing tiddler, to use it as a list.\n </div>\n </$droppable>\n </div>\n \"\"\">\n <$transclude tiddler=\"$:/plugins/reidgould/dpbd/templates/view/List\" mode=\"inline\" />\n </$list>\n </div>\n </div>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n <$list filter=\"[<currentBoardTiddler>get[dpbd-boardheight]suffix[%]]\" variable=\"\">\n <$list filter=\"[<storyTiddler>] -[[]]\" variable=\"\">\n <div style=\"text-align:center;margin:0.5em;\">\n Currently in \"Window\" mode.<br>\n <$button actions=\"\"\"\n <$action-deletefield $tiddler=<<currentBoardTiddler>> $field=\"dpbd-boardheight\" />\n \"\"\">\n Restore default height.\n </$button>\n </div>\n </$list>\n </$list>\n <div class=\"dpbd-B-Footer-OT-_\">\n <$link to=\"$:/plugins/reidgould/dpbd\">{{$:/plugins/reidgould/dpbd!!name}}</$link> by <a href={{$:/plugins/reidgould/dpbd!!author-web}} target=\"_blank\" rel=\"noopener noreferrer\">{{$:/plugins/reidgould/dpbd!!author-name}}</a>\n </div>\n</div>\n</$set>\n</$set>"
},
"$:/plugins/reidgould/dpbd/templates/view/Card": {
"title": "$:/plugins/reidgould/dpbd/templates/view/Card",
"text": "<$set name=\"currentCardTiddler\" value=<<currentTiddler>> >\n <$droppable class=\"dpbd-_-Droppable_Card-O-_\" actions=<<action-Droppable-Card>> >\n <$macrocall $name=\"wikitext-CardView\" palette-tagBackground={{$:/palette}} />\n </$droppable>\n</$set>"
},
"$:/plugins/reidgould/dpbd/templates/view/CardMacros": {
"title": "$:/plugins/reidgould/dpbd/templates/view/CardMacros",
"tags": "$:/tags/Macro",
"text": "\\define wikitext-Text-IfTextDisplay()\n <$list filter=\"[<currentBoardTiddler>!field:dpbd-displaytext[no]]\" variable=\"\">\n <$transclude field=\"text\" mode=\"block\" />\n </$list>\n\\end\n\n\\define wikitext-Image-IfImageDisplay()\n <$list filter=\"[<currentBoardTiddler>!field:dpbd-displayimages[no]]\" variable=\"\">\n <$transclude field=\"text\" mode=\"block\" />\n </$list>\n\\end\n\n\\define wikitext-CardView(palette-tagBackground)\n <$set name=\"class-Card\" filter=\"[<currentListTiddler>field:title<tiddler-SearchListFilter-Live>]\"\n value=\"tc-tiddler-frame dpbd-_-Card-OV-_ dpbd-SL-Card-V-_\"\n emptyValue=\"tc-tiddler-frame dpbd-_-Card-OV-_\" >\n <div class=\"dpbd-DA-IndicatorThin-OV-c\">\n <div class=\"dpbd-DA-IndicatorThin_Child-OV-c\"></div>\n </div>\n <$draggable tiddler=<<currentTiddler>> class=<<class-Card>> >\n <$set name=\"foregroundColor\" value={{!!color}} >\n <div class=\"dpbd-C-TiddlerIcon-OIVT-_\" style=<<style-IconColor>> >\n <span class=\"_-_-img_inline-OV-_C\"><$transclude tiddler={{!!icon}} mode=\"inline\" /></span>\n </div>\n </$set>\n <div class=\"dpbd-C-TiddlerControls-OIT-_\">\n <$button popup=<<tiddler-popupTagsState>> tooltip={{$:/language/Buttons/Tag/Hint}} aria-label={{$:/language/Buttons/Tag/Caption}} class=\"tc-btn-invisible dpbd-_-FillColor_ControlsForeground-V-_\">\n {{$:/core/images/tag-button}}\n </$button>\n <$button message=\"tm-edit-tiddler\" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=\"tc-btn-invisible dpbd-_-FillColor_ControlsForeground-V-_\" >\n {{$:/core/images/edit-button}}\n </$button>\n </div>\n <$reveal type=\"popup\" state=<<tiddler-popupTagsState>> position=\"belowleft\" class=\"tc-popup-keep dpbd-C-Popup_TagEditor-OIV-_CD\">\n <$transclude tiddler=\"$:/core/ui/EditTemplate/tags\" />\n </$reveal>\n <div class=\"dpbd-C-TagPreview-OI-_\">\n <$list filter=\"[<currentTiddler>tags[]] -[<currentListTiddler>] +[sort[title]]\">\n <$wikify name=\"val-TagColor-Default\" text={{$palette-tagBackground$##tag-background}} mode=\"inline\" output=\"html\">\n <$set name=\"val-TagColor\" filter=\"[<currentTiddler>has[color]]\" value={{!!color}} emptyValue=<<val-TagColor-Default>> >\n <$set name=\"field-shorttextOrTitle\" filter=\"[<currentTiddler>get[shorttext]]\" emptyValue=<<currentTiddler>> >\n <div class=\"dpbd-C-TagPreview_Child-OVM-_\" style=<<style-TagColor>> title=<<field-shorttextOrTitle>> ></div>\n </$set>\n </$set>\n </$wikify>\n </$list>\n </div>\n <div class=\"dpbd-C-ColorPreview-OI-_\">\n <$list filter=\"[<currentTiddler>has:field[color]]\">\n <$set name=\"val-TagColor\" value={{{ [<currentTiddler>get[color]] }}} >\n <div class=\"dpbd-C-ColorPreview_Child-OV-_\" style=<<style-TagColor>> ></div>\n </$set>\n </$list>\n </div>\n <div class=\"dpbd-C-Container_IconInfo-O-_\">\n <$list filter=\"[<currentCardTiddler>has:value[text]!is[image]]\" variable=\"\">\n <$list filter=\"[<currentBoardTiddler>field:displayText[no]]\" variable=\"\">\n <div class=\"dpbd-C-IconInfo-OV-_\" title=\"This tiddler contains text. Open in main story to view.\">\n <span class=\"_-_-img_inline-OV-_C _-_-img_inline_help-M-_\">{{$:/core/images/import-button}}</span>\n </div>\n </$list>\n </$list>\n <$list filter=\"[<currentCardTiddler>has[list]]\" variable=\"\">\n <div class=\"dpbd-C-IconInfo-OV-_\" title=\"This tiddler contains a list.\">\n <span class=\"_-_-img_inline-OV-_C _-_-img_inline_help-M-_\">{{$:/core/images/storyview-classic}}</span>\n </div>\n </$list>\n </div>\n <div title={{!!title}} class=\"dpbd-C-TextView-OIVM-_C\">\n <$set name=\"field-shorttextOrTitle\" filter=\"[<currentTiddler>has[shorttext]]\" value=\"shorttext\" emptyValue=\"title\">\n <p class=\"dpbd-_-ShorttextView-OM-C\">\n <$transclude field=<<field-shorttextOrTitle>> mode=\"inline\" class=\"\" />\n </p>\n </$set>\n <$set name=\"wikitext-LargeContent\" filter=\"[<currentCardTiddler>is[image]]\"\n value=<<wikitext-Image-IfImageDisplay>>\n emptyValue=<<wikitext-Text-IfTextDisplay>> >\n <<wikitext-LargeContent>>\n </$set>\n </div>\n </$draggable>\n </$set>\n\\end"
},
"$:/plugins/reidgould/dpbd/templates/view/List": {
"title": "$:/plugins/reidgould/dpbd/templates/view/List",
"text": "<$set name=\"currentListTiddler\" value=<<currentTiddler>> >\n <!-- Setup for collapsed lists. -->\n <$set name=\"list-collapse_in\"\n value={{{[<currentListTiddler>get[dpbd-collapse_in]]}}} >\n <$set name=\"is_collapsed\" filter=\"[enlist<list-collapse_in>field:title<currentBoardTiddler>]\"\n value=\"$:/plugins/reidgould/dpbd/values/yes\"\n emptyValue=\"$:/plugins/reidgould/dpbd/values/no\" >\n <$set name=\"class-ListTitle\" filter=\"[<is_collapsed>field:title[$:/plugins/reidgould/dpbd/values/yes]]\"\n value=\"\"\"dpbd-L_TB-Title_Collapsed-OZTM-_\"\"\"\n emptyValue=\"\"\"dpbd-L_TB-Title-I-_\"\"\" >\n <$set name=\"value-ListTitle-Height\" filter=\"[<currentBoardTiddler>get[dpbd-boardheight]suffix[%]]\"\n value=\"calc(100vh - 16em)\"\n emptyValue=<<Val-ListTitle-Collapsed>> >\n <$set name=\"style-ListTitle\" filter=\"[<is_collapsed>field:title[$:/plugins/reidgould/dpbd/values/yes]]\"\n value=<<style-ListTitle-Collapsed>>\n emptyValue=\"\" >\n <!-- Set values for list width -->\n <$set name=\"val-listWidthMin\" filter=\"[<is_collapsed>field:title[$:/plugins/reidgould/dpbd/values/yes]]\"\n value=\"3em\"\n emptyValue=<<val-listWidthMin>> >\n <$set name=\"val-listWidthMin\" filter=\"[<currentListTiddler>field:title<tiddler-SearchListFilter-Live>]\"\n value=\"100%\"\n emptyValue=<<val-listWidthMin>> >\n <$set name=\"val-listWidthMax\" filter=\"[<currentBoardTiddler>!field:dpbd-widthismax[no]] [<is_collapsed>field:title[$:/plugins/reidgould/dpbd/values/yes]]\"\n value=<<val-listWidthMin>>\n emptyValue=<<val-ListWidthMax-Default>> >\n <!-- Set visual style for \"Search List\" -->\n <$set name=\"class-scrollableArea\" filter=\"[<currentListTiddler>field:title<tiddler-SearchListFilter-Live>]\"\n value=\"tc-edit-tags dpbd-L-Container_Card-OI-_ dpbd-SL-DropArea-IV-_\"\n emptyValue=\"tc-edit-tags dpbd-L-Container_Card-OI-_ dpbd-_-DropArea-IV-_\" >\n <div class=\"dpbd-_-List-OI-_\" style=<<style-ListWidth>> >\n <$draggable tiddler=<<currentTiddler>> class=\"dpbd-L-TitleBar-OIV-_\" >\n <$list filter=\"[<currentListTiddler>!field:title<tiddler-SearchListFilter-Live>]\" variable=\"\">\n <$list filter=\"[<is_collapsed>!field:title[$:/plugins/reidgould/dpbd/values/yes]]\" variable=\"\">\n <span class=\"tc-edit-tags dpbd-_-DropArea-IV-_ dpbd-L_TB-DropArea_Left-OI-_\" title=\"Drop tiddler here to place in list position.\">\n <$droppable actions=<<action-Droppable-List>> >\n <span class=\"_-_-img_inline-OV-_C\">{{$:/core/images/chevron-left}}</span>\n <div class=\"dpbd-DA-IndicatorList-OV-_D\">\n </div>\n </$droppable>\n </span>\n <span class=\"dpbd-L_TB-Container_DropArea_Right-O-_\">\n <span class=\"tc-edit-tags dpbd-_-DropArea-IV-_ dpbd-L_TB-DropArea_Right-OIT-_\" title=\"Drop tiddler here to place in list position.\">\n <$set name=\"currentListTiddler\" value={{{ [<currentListTiddler>next<currentBoardTiddler>] }}} >\n <$droppable actions=<<action-Droppable-List>> >\n <span class=\"_-_-img_inline-OV-_C\">{{$:/core/images/chevron-right}}</span>\n <div class=\"dpbd-DA-IndicatorList-OV-_D\">\n </div>\n </$droppable>\n </$set>\n </span>\n </span>\n <span class=\"dpbd-L_TB-Container_ButtonCollapse-O-_\">\n <$button tag=\"span\" class=\"tc-btn-invisible dpbd-L_TB-ButtonCollapse-OIV_\" tooltip=\"Collapse list.\"\n actions=\"\"\"<$action-listops $tiddler=<<currentListTiddler>> $field=\"dpbd-collapse_in\" $subfilter=\"[<currentBoardTiddler>]\" />\"\"\" >\n <span class=\"_-_-img_inline-OV-_C dpbd-L_TB-ButtonCollapse_ImgTransform-OZ-_\">{{$:/core/images/fold-button}}</span>\n </$button>\n </span>\n </$list>\n <$list filter=\"[<is_collapsed>field:title[$:/plugins/reidgould/dpbd/values/yes]]\" variable=\"\">\n <$button tag=\"span\" class=\"tc-btn-invisible dpbd-L_TB-ButtonCollapse-OIV_\" tooltip=\"Expand list.\"\n actions=\"\"\"<$action-listops $tiddler=<<currentListTiddler>> $field=\"dpbd-collapse_in\" $subfilter=\"-[<currentBoardTiddler>]\" />\"\"\" >\n <span class=\"_-_-img_inline-OV-_C dpbd-L_TB-ButtonCollapse_ImgTransform-OZ-_\">{{$:/core/images/unfold-button}}</span>\n </$button>\n </$list>\n </$list>\n <div class=\"dpbd-L_TB-ColorPreview-OI-_\">\n <$list filter=\"[<currentTiddler>has:field[color]]\" variable=\"\">\n <$set name=\"val-TagColor\" value={{{ [<currentTiddler>get[color]] }}} >\n <div class=\"dpbd-L_TB-ColorPreview_Child-OV-_\" style=<<style-TagColor>> ></div>\n </$set>\n </$list>\n </div>\n <span class=<<class-ListTitle>> style=<<style-ListTitle>> >\n <$set name=\"foregroundColor\" value={{!!color}}>\n <span class=\"_-_-img_inline-OV-_C\" style=<<style-IconColor>>>\n <$transclude tiddler={{!!icon}} mode=\"inline\" />\n </span>\n </$set>\n <$link>\n <$list filter=\"[<currentListTiddler>!field:title<tiddler-SearchListFilter-Live>]\" variable=\"\">\n <$set name=\"field-shorttextOrTitle\" filter=\"[<currentTiddler>has[shorttext]]\" value=\"shorttext\" emptyValue=\"title\">\n <h3 class=\"tc-title dpbd-L_TB-Title_h3-O-_\"><$transclude field=<<field-shorttextOrTitle>> mode=\"inline\"/></h3>\n </$set>\n </$list>\n <$list filter=\"[<currentListTiddler>field:title<tiddler-SearchListFilter-Live>]\" variable=\"\">\n <h3 class=\"tc-title dpbd-L_TB-Title_h3-O-_\">Search List</h3>\n </$list>\n </$link>\n </span>\n </$draggable>\n <div class=<<class-scrollableArea>> >\n <$navigator story=<<List-StoryList>> history=<<List-HistoryList>> openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n <$linkcatcher>\n <$list filter=\"[<is_collapsed>!field:title[$:/plugins/reidgould/dpbd/values/yes]]\" variable=\"\">\n <$list filter=\"[<currentListTiddler>!field:title<tiddler-SearchListFilter-Live>]\" variable=\"\">\n <$set name=\"list-TiddlersWithDrafts\" filter=\"[list<currentListTiddler>get[draft.of]]\">\n <$set name=\"list-TiddlersWithDraftsMain\" filter=\"[list[$:/StoryList]has[draft.of]]\">\n <$set name=\"filter-userText\" value={{{ [<tiddler-UserFilter-Live>get[text]] }}} >\n <$list filter=<<filter-currentList>> history=<<List-HistoryList>> template=\"$:/plugins/reidgould/dpbd/templates/view/Card\" editTemplate=\"$:/plugins/reidgould/dpbd/templates/edit/Card\" storyview={{$:/view}}\n emptyMessage=\"\"\"\n <div class=\"dpbd-B-EmptyMessage-OM-_\">\n Drag in the \"New Tiddler\" above, or any existing tiddler, to include it in a list.\n </div>\n \"\"\" />\n </$set>\n </$set>\n </$set>\n </$list>\n <$list filter=\"[<currentListTiddler>field:title<tiddler-SearchListFilter-Live>]\" variable=\"\">\n <$set name=\"list-TiddlersWithDrafts\" filter=\"[list<currentListTiddler>get[draft.of]]\">\n <$set name=\"list-TiddlersWithDraftsMain\" filter=\"[list[$:/StoryList]has[draft.of]]\">\n <$set name=\"filter-SearchListText\" value={{{ [<tiddler-SearchListFilter-Live>get[text]] }}}>\n <$list filter=<<filter-SearchList>> history=\"\" template=\"$:/plugins/reidgould/dpbd/templates/view/Card\" editTemplate=\"$:/plugins/reidgould/dpbd/templates/edit/Card\" storyview={{$:/view}}\n emptyMessage=\"\"\"\n <div class=\"dpbd-B-EmptyMessage-OM-_\">\n No tiddlers found by Search List filter.\n </div>\n \"\"\" />\n </$set>\n </$set>\n </$set>\n </$list>\n </$list>\n <$tiddler tiddler=\"\">\n <div class=\"dpbd-DA-IndicatorBottom-OV-_D\">\n <$droppable actions=<<action-Droppable-Card>> >\n </$droppable>\n </div>\n </$tiddler>\n </$linkcatcher>\n </$navigator>\n </div>\n </div>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n </$set>\n</$set>"
},
"$:/plugins/reidgould/dpbd/templates/view/shorttext": {
"title": "$:/plugins/reidgould/dpbd/templates/view/shorttext",
"tags": "$:/tags/ViewTemplate",
"list-before": "$:/core/ui/ViewTemplate/body",
"text": "<$list filter=\"[<currentTiddler>has[shorttext]]\" >\n <h3 class=\"tc-subtitle dpbd-_-MainView_Shorttext-OTV-S dpbd-_-ShorttextView-OM-C\">\n <$transclude field=\"shorttext\" mode=\"inline\" class=\"\" />\n </h3>\n</$list>"
},
"$:/plugins/reidgould/dpbd/values/no": {
"title": "$:/plugins/reidgould/dpbd/values/no",
"text": ""
},
"$:/plugins/reidgould/dpbd/values/yes": {
"title": "$:/plugins/reidgould/dpbd/values/yes",
"text": ""
},
"$:/plugins/reidgould/dpbd/version": {
"title": "$:/plugins/reidgould/dpbd/version",
"text": "1.0.2"
}
}
}
{
"tiddlers": {
"$:/plugins/reidgould/shortid/shortid-macro.js": {
"text": "/*\\\ntitle: $:/plugins/reidgould/shortid/shortid-macro.js\ntype: application/javascript\nmodule-type: macro\nMacro to return a short, URL friendly, unique id.\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"shortid\";\n\nexports.params = [\n \"prefix\"\n];\n\n/*\nRun the macro\n*/\nexports.run = function(prefix) {\n let id = $tw.utils.shortid.generate();\n return prefix ? prefix + id : id;\n};\n\n})();\n",
"title": "$:/plugins/reidgould/shortid/shortid-macro.js",
"type": "application/javascript",
"module-type": "macro"
},
"$:/plugins/reidgould/shortid/shortid-util.js": {
"text": "/*\\\r\ntitle: $:/plugins/reidgould/shortid/shortid-util.js\r\ntype: application/javascript\r\nmodule-type: utils\r\nBundle of the shortid package for tiddlywiki.\r\n\\*/\r\n\n!function(t,r){for(var e in r)t[e]=r[e]}(exports,function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var e={};return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,\"a\",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p=\"\",r(r.s=2)}([function(t,r,e){\"use strict\";function n(){p=!1}function o(t){if(!t)return void(a!==d&&(a=d,n()));if(t!==a){if(t.length!==d.length)throw new Error(\"Custom alphabet for shortid must be \"+d.length+\" unique characters. You submitted \"+t.length+\" characters: \"+t);var r=t.split(\"\").filter(function(t,r,e){return r!==e.lastIndexOf(t)});if(r.length)throw new Error(\"Custom alphabet for shortid must be \"+d.length+\" unique characters. These characters were not unique: \"+r.join(\", \"));a=t,n()}}function u(t){return o(t),a}function i(t){h.seed(t),l!==t&&(n(),l=t)}function s(){a||o(d);for(var t,r=a.split(\"\"),e=[],n=h.nextValue();r.length>0;)n=h.nextValue(),t=Math.floor(n*r.length),e.push(r.splice(t,1)[0]);return e.join(\"\")}function c(){return p||(p=s())}function f(t){return c()[t]}var a,l,p,h=e(6),d=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-\";t.exports={characters:u,seed:i,lookup:f,shuffled:c}},function(t,r,e){\"use strict\";function n(t,r){for(var e,n=0,u=\"\";!e;)u+=t(r>>4*n&15|o()),e=r<Math.pow(16,n+1),n++;return u}var o=e(7);t.exports=n},function(t,r,e){t.exports=e(3)},function(t,r,e){var n=e(4),o=function(){};Object.defineProperty(o,\"generate\",{configurable:!1,enumerable:!1,writable:!1,value:n.generate}),r.shortid=o},function(t,r,e){\"use strict\";t.exports=e(5)},function(t,r,e){\"use strict\";function n(r){return s.seed(r),t.exports}function o(r){return l=r,t.exports}function u(t){return void 0!==t&&s.characters(t),s.shuffled()}function i(){return f(l)}var s=e(0),c=(e(1),e(8)),f=e(9),a=e(10),l=e(11)||0;t.exports=i,t.exports.generate=i,t.exports.seed=n,t.exports.worker=o,t.exports.characters=u,t.exports.decode=c,t.exports.isValid=a},function(t,r,e){\"use strict\";function n(){return(u=(9301*u+49297)%233280)/233280}function o(t){u=t}var u=1;t.exports={nextValue:n,seed:o}},function(t,r,e){\"use strict\";function n(){if(!o||!o.getRandomValues)return 48&Math.floor(256*Math.random());var t=new Uint8Array(1);return o.getRandomValues(t),48&t[0]}var o=\"object\"==typeof window&&(window.crypto||window.msCrypto);t.exports=n},function(t,r,e){\"use strict\";function n(t){var r=o.shuffled();return{version:15&r.indexOf(t.substr(0,1)),worker:15&r.indexOf(t.substr(1,1))}}var o=e(0);t.exports=n},function(t,r,e){\"use strict\";function n(t){var r=\"\",e=Math.floor(.001*(Date.now()-c));return e===u?o++:(o=0,u=e),r+=i(s.lookup,f),r+=i(s.lookup,t),o>0&&(r+=i(s.lookup,o)),r+=i(s.lookup,e)}var o,u,i=e(1),s=e(0),c=1459707606518,f=6;t.exports=n},function(t,r,e){\"use strict\";function n(t){if(!t||\"string\"!=typeof t||t.length<6)return!1;for(var r=o.characters(),e=t.length,n=0;n<e;n++)if(-1===r.indexOf(t[n]))return!1;return!0}var o=e(0);t.exports=n},function(t,r,e){\"use strict\";t.exports=0}]));",
"title": "$:/plugins/reidgould/shortid/shortid-util.js",
"type": "application/javascript",
"module-type": "utils"
},
"$:/plugins/reidgould/shortid/readme": {
"title": "$:/plugins/reidgould/shortid/readme",
"type": "text/x-markdown",
"text": "# shortid Plugin\n\nThe [shortid](https://github.com/dylang/shortid) package bundled as a macro for TiddlyWiki.\n\nSource found at:\nhttps://github.com/reidgould/tiddlywiki-shortid-plugin\n\nWiki found at:\nhttp://reidgould.github.io/tiddlywiki-shortid-plugin\n\n## Usage:\n\nIn wikitext:\n\n`<<shortid>>`\n\nReturns a short id.\n\nUsing parameter \"prefix\":\n\n`<<shortid \"prefix/text/\">>`\n\n`<$macrocall $name=\"shortid\" prefix=\"prefix/text/\" />`\n\nReturns a short id prefixed with the passed value.\n\n## Attribution:\n\n### shortid copyright:\n> Copyright (c) 2016 Dylan Greene, contributors.\n\n### shortid license:\n> Copyright (c) Dylan Greene\n> All rights reserved.\n>\n> MIT +no-false-attribs License\n>\n> Permission is hereby granted, free of charge, to any person\n> obtaining a copy of this software and associated documentation\n> files (the \"Software\"), to deal in the Software without\n> restriction, including without limitation the rights to use,\n> copy, modify, merge, publish, distribute, sublicense, and/or sell\n> copies of the Software, and to permit persons to whom the\n> Software is furnished to do so, subject to the following\n> conditions:\n>\n> The above copyright notice and this permission notice shall be\n> included in all copies or substantial portions of the Software.\n>\n> Distributions of all or part of the Software intended to be used\n> by the recipients as they would use the unmodified Software,\n> containing modifications that substantially alter, remove, or\n> disable functionality of the Software, outside of the documented\n> configuration mechanisms provided by the Software, shall be\n> modified such that the Original Author's bug reporting email\n> addresses and urls are either replaced with the contact information\n> of the parties responsible for the changes, or removed entirely.\n>\n> THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n> OTHER DEALINGS IN THE SOFTWARE.\n"
},
"$:/plugins/reidgould/shortid/license": {
"title": "$:/plugins/reidgould/shortid/license",
"type": "text/plain",
"text": "shortid plugin created by Reid Gould, (reidgould [at] gmail [dot] com)\n\nCopyright (c) 2017, Reid Gould\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
}
}
}
{
"tiddlers": {
"GeoTiddler": {
"title": "GeoTiddler",
"created": "20151130173416239",
"modified": "20170115153450584",
"type": "text/vnd.tiddlywiki",
"text": "[[GeoTiddler]]s are tiddlers containing geographical data. [[geoSyntax|$:/plugins/sycom/leaflet/geoSyntax]] lists the available objects. [[geoJson|https://en.wikipedia.org/wiki/GeoJSON]] data are also accepted. You may specify a color for all objects displayed through `color` field.\n\n!! tiddler with geo TiddlerFields\nYou can upgrade your tiddler by putting some geo metadata ([[wgs 84 coordinates|https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84]]) in it's TiddlerFields. See [[geoSyntax|$:/plugins/sycom/leaflet/geoSyntax]] for the list of object types you can draw. Popup will show the first part of the tiddler. If the tiddler contains a leafmap widget, it will be rendered as `text/plain` in order to avoid crash...\n\n!! geoJSON tiddler\nYou can define a geoJson tiddler like [[tiddlyWikiFrCommunity|$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity]] and then display the data by calling it. Just put your geoJson data in the body and declare the tiddler as application/json. Any `application/json` tiddler called will be considered as geoJson. The popups will show\n\n* a title\n** the `name` or the `title` attribute in properties if exists,\n** if not, the firsts attributes of properties until they are 8 characters long\n* a description\n** the `description` attribute in properties if exists,\n** if not, the data stored in each feature as a bulleted list.\n\n!! tiddler grouping [[GeoTiddler]]s\nYou can use `tiddlers` or `filter` as TiddlerFields to make a group of tiddlers. You can apply some styling options to all the group using `style`, `color` or `marker` TiddlerFields and then call the tiddler in your map to render all those tiddler at the same time. This will be a good way to make thematic maps indeed...\n"
},
"$:/plugins/sycom/leaflet/devDiary": {
"title": "$:/plugins/sycom/leaflet/devDiary",
"created": "20151110173416000",
"modified": "20180531171500000",
"type": "text/vnd.tiddlywiki",
"text": "Some notes about coding this plugin. Might be useful to others...\n\n* 20180602\n** added a template that will display a map of embeded object for tiddlers containing one of the geoTiddlers fiels.\n** updtated leaflet and marker-cluster to 1.3.1 - the easy way. Just replaced with new version and no deprecation at all \\o/ !\n* 20180531\n** converting all `.svg.tid` files to `.svg` + `.svg.meta` pairs. Will allow git client to make svg viewable in web interface. Also compressed SVG as much as possible with great https://jakearchibald.github.io/svgomg/ tool.\n** tweak : for svg embedding local TiddlyWiki colors (eg `$primary$`), forced type to `text/vnd.tiddlywiki` to preserve them.\n* 20170317\n** lot of work around cluster size, cluster color when using filter. Cluster size depends on point % for the cluster, clusterRadius and zoom.\n* 20170311\n** added styling options and also the grouping tiddler capabilities. Discovered that direct styling in SVG ''does not always'' [[overwrite css styling|http://stackoverflow.com/questions/24293880/svg-why-does-external-css-override-inline-style-for-text]].\n* 20170129\n** adding some markers. And it's possible to create yours.\n* 20170115\n** darling birthday edit. Clustering by tiddler is on track. Will have to look for clustering direct passing object through widget.\n* 20161111\n** armistice edit! can now disable clustering or set clustering distance. Bug #9 fixed. may be cluster size will be too big for big databases\n* 20161106\n** color parameter is partially implemented. Note that direct styling like `fill` in svg element wont take on class styling through css...\n* 20161104\n** after many attemps, managed to include tiddler excerpt in popups for mapping geoTiddler. Had to include an escape rule for tiddler containing a leafmap widget. No larsen, but a big bug (map number probably).\n** also managed to give the marker the color of the primary color. Note for later there is probably a bug if primary color is defined with `<<colour>>` macro.\n* 20161102\n** ok, when importing some library, don't forget to use `require()` in order to conclude. Silly guy. Still some polishing needed, but clustering know works...\n* 20161101\n** fighting with markercluster capabilities. At this point seems I can add the script but the MarkerClusterGroup class is not recognized when called...\n* 20161031\n** gave up inserting external layers.svg in stylesheet. Issues with `<$text />` and `{{ }}`... Created svg in a separate tiddler for the record but inserting directly an \"escaped\" version in [[mapCss.css|$:/plugins/sycom/leaflet/mapCssTweaks.css.tid]]\n* 20161030\n** working on different markers. Not so good at designing them though ;-) Putted default leaflet svg marker. Using Inkscape to edit svg easily and SVGO extension in atom to compress them. First attempt to put layers icon as svg. Issues...\n* 20161029\n** trying to put svg marker instead of png ones. Will be better for changing colors, content... using data:image/svg+xml. Svg has to bring xmlns ~~and xmlns:xlink~~ with it in order to work...\n* 20161025\n** after big fight, managed to call images as embeded through css without writing full base64 code. Had to add `html` to the \"rules only\" list at the beginning of the css code\n* 20161024\n** geojson implemented. Will need to add cluster soon. Some question about geojson attributes to create the popup...\n* 20161021\n** updated leaflet.js to 1.0.1 moved base64 image to mapCss.css in order to avoid problems when updating leaflet.\n** Updated tileLayer list. min/max checked for this time. Detect if tile id is wrong to alert user and display osm instead.\n* 20160314\n** corrected caption errors for example and roadmap. Have to write an install process in demo site (gh-page) since writing this in plugin is nonsense.\n* 20151124\n** wondering the best way to release plugin code in gitlab (or github). Can't be a fork of TiddlyWiki. Don't want to lose .git history.\n** ok I'm dumb. All is written in the dev TiddlyWiki : http://tiddlywiki.com/dev/#Developing%20p lugins%20using%20Node.js%20and%20GitHub . Lost .git history since cuting tree is bad. But history was still short...\n* 20151123\n** not able to use directly tiddler stored images as css background.\n** decided to use base64 form in css. Not so elegant as I wished, but works.\n* 20151121\n** fighting with parameters : not imported from widget with `this.getAttribute()`\n** solved by adding the parameter computation before : `this.computeAttributes();`\n* 20151115\n** some problems to declare leaflet.js library : fail during build since there is no window, no document.\n** solved by creating the tiddlywiki.files importer.\n* 20151110\n** starting some tests. Inspiration from d3plugin (also creating widget and importing library)\n"
},
"$:/plugins/sycom/leaflet/geoSyntax": {
"title": "$:/plugins/sycom/leaflet/geoSyntax",
"created": "20151119173416239",
"modified": "20151211173250584",
"type": "text/vnd.tiddlywiki",
"caption": "geoSyntax",
"text": "Geographical objects can be stored\n\n* in a GeoTiddler by creating a ''//type// : // pattern//'' metadata field pair in any tiddler or by storing geoJson data in it and setting your tiddler to `application/JSON` type. Call it in the widget with ''places'' attribute : `places='{\"tiddler\":\"title of your tiddler\"}'`\n* in several [[GeoTiddlers|GeoTiddler]]. Call them in the widget with ''places'' attribute\n** via a space separated list of [[GeoTiddlers|GeoTiddler]] : `places='{\"tiddlers\":\"tiddler1 tiddler2 tiddler3\"}'`\n** via a [[filter|http://tiddlywiki.com/#Filters]] selection of [[GeoTiddlers|GeoTiddler]] : `places='{\"filter\":\"[[your filter]]\"}'`\n* straight in the widget with ''places'' attribute : `places='{\"object type\":\"coordinates pattern\"}'`\n\n!! Everything might be a GeoTiddler\n\nIn a very much tiddlywiki way, a tiddler may also refer to a list or a selection of tiddlers using `tiddlers` or `filter` metadata fields. You may add styling informations to all refered tiddler with `style`, `color` or `marker` metadata fields. Calling this tiddler with `<$leafmap />` will render all refered tiddlers.\n\n!! Tool for creating shapes\nAs not everyone has a GIS in his head, And the plugin does not implement yet any tool for creating geo shapes, there is (very basic) tool for that : [ext[Draw for TiddlyWiki leaflet plugin|http://sycom.github.io/TiddlyWiki-Plugins/leafletDraw.html]]\n\n!! Geographical objects you can display on your map\n\n| !type | !description | !pattern |\n|''point'' |a unique point defined by a comma separated latitude,longitude pair |`y,x` |\n|''points''|a points collection defined by a space separated ''point'' definition list |`y1,x1 y2,x2 y3,x3 ...` |\n|''polygon''|a closed surfacic place defined like an //ordered// ''points'' collection just above |`y1,x1 y2,x2 y3,x3 ...` |\n|''polygons''|a polygons collection defined by a pipe (`|`) separated list of ''polygon'' definitions |`y1,x1 y2,x2 y3,x3|y4,x4 y5...` |\n|''polyline''|an open path place defined like the ''polygon'' just above |`y1,x1 y2,x2 y3,x3 ...` |\n|''polylines''|a polylines collection defined by a pipe (`|`) separated list of ''polyline'' definitions |`y1,x1 y2,x2 y3,x3|y4,x4 y5...` |\n|''geojson''|a [[geojson|http://geojson.org/]] object. If set through a tiddler field, please crunch it to one single line|see [[rfc7946|https://tools.ietf.org/html/rfc7946]]|\n"
},
"$:/plugins/sycom/leaflet/markers": {
"title": "$:/plugins/sycom/leaflet/markers",
"created": "20170129172401910",
"modified": "20170129172401910",
"type": "text/vnd.tiddlywiki",
"caption": "Markers",
"text": "markers are used to display point(s) related informations. Default marker is [[marker|$:/plugins/sycom/leaflet/images/marker.svg]].\n\n!! Available markers\n\nfor now, available markers are those\n\n<$list filter='[all[shadows]has[marker_dim]has[caption]]'><span style=\"display:inline-block;text-align:center;margin:0 .5em;padding:.5em;border:.5px dotted\"><$tiddler tiddler={{!!title}}><$transclude/></$tiddler><br/><$link to={{!!title}}>{{!!caption}}</$link></span></$list>\n\n!! Create your own markers\n\nHave a look at existing ones above for inspiration and hack. Markers are svg pieces with some mandatory tweaks :\n\n* a marker is based upon ''two'' tiddlers, one for the marker and one for the shadow\n* add a `caption` field to the marker tiddler (not for the shadow svg).\n* the `title` of your marker tiddler will be `$:/plugins/sycom/leaflet/images/`''caption''`.svg`\n* and the `title` of the marker shadow tiddler will be `$:/plugins/sycom/leaflet/images/`''caption''`shadow.svg`\n* a `marker_dim` field wich defines //width// //height// //x-anchor// //y-anchors//. Please check that your //width// and //height// value are the same as in `<svg (...) width=\"15\" height=\"15\">`\n* don't forget to add `xmlns` attribute : `<svg xmlns=\"http://www.w3.org/2000/svg\" (...)`\n* if you want your marker to change color upon tiddlywiki or widget parameters, use `$primary$` for the color attribute of your svg\n"
},
"$:/plugins/sycom/leaflet/roadmap": {
"title": "$:/plugins/sycom/leaflet/roadmap",
"created": "20151209173416000",
"modified": "20180531171500000",
"type": "text/vnd.tiddlywiki",
"caption": "Roadmap",
"text": "Not really a roadmap just a list for future development ideas. You'd better take a look at [[issues|https://framagit.org/sycom/TiddlyWiki-Plugins/boards]] on the repo. And add yours if you dare ;-)\n\n* add a tool to draw shapes, lines and collect coordinates. Until this, You may use [[Draw for TiddlyWiki leaflet plugin|http://sycom.github.io/TiddlyWiki-Plugins/leafletDraw.html]]\n* add categories options\n* add text, title capabilities\n* try a tiddler template based upon field presence to render data for all geoTiddler\n* ...\n\n* ~~try to put other types of pins (svg? icons?)~~ ''0.8.0'' : you may change markers via the //marker// option and design your own markers\n* ~~add color(s) options~~ ''0.7.2'' : color can be set via //color// tiddler field or forced through //color// option\n* ~~add a clustering functionality (at least for points)~~ ''0.7.0'' : each data group is know clustering points\n* ~~add geoJSON tiddlers~~ ''0.6.0'' : added geojsontiddler rendering\n* ~~map tiddlers with the same tag(s)~~ ''0.5.0'' : added filter places request\n"
},
"$:/plugins/sycom/leaflet/tileLayers": {
"title": "$:/plugins/sycom/leaflet/tileLayers",
"created": "20151119173416239",
"modified": "20161020222250584",
"type": "text/vnd.tiddlywiki",
"caption": "tileLayers",
"text": "tileLayers are the //background// of the leaflet map. They will not be available offline and will not display at every zoom level.\n\n!! Available tile layers\n\nedit [[tileLayers.json|$:/plugins/sycom/leaflet/lib/tileLayers.json]] if you want to add / remove tile layers.\n\n| !id | !description | !zoom min/max |\n|''osm'' |[[OpenStreetMap|http://openstreetmap.org]] classic tile layer | 1/20 |\n|''osmfr'' |[[OpenStreetMap|http://openstreetmap.org]] with //baguette// smell | 1/20 |\n|''osmbw'' |Black and White version of [[OpenStreetMap|http://openstreetmap.org]] tiles by Wikimedia labs | 1/20 |\n|''sat'' |Satellite photographic layer provided by Esri | 1/18 |\n|''natgeo'' |National Geographic style layer provided by Esri| 1/12 |\n|''toner'' |Black and white styled OpenStreetMap data provided by [[Stamen|http://stamen.com]] | 1/20 |\n|''water'' |Watercolor styled OpenStreetMap data provided by [[Stamen|http://stamen.com]] | 1/20 |\n|''thunder'' |Pale styled OpenStreetMap data provided by [[Thunderforest|http://thunderforest.com]] | 1/20 |\n|''dark'' |\"Dark Matter\" styled OpenStreetMap data provided by [[CartoDB|https://cartodb.com/basemaps]] | 1/20 |\n|''positron'' |\"Positron\" styled OpenStreetMap data provided by [[CartoDB|https://cartodb.com/basemaps]] | 1/20 |\n"
},
"$:/plugins/sycom/leaflet/usage": {
"title": "$:/plugins/sycom/leaflet/usage",
"created": "20151119173416239",
"modified": "20170129153650584",
"type": "text/vnd.tiddlywiki",
"caption": "Usage",
"text": "The widget is called by using `<$leafmap />`. You may specify some options :\n\n!!! widget attributes\n|!Attribute |!Description |!Default |\n|''width'' |the width of the map (px or tiddler %)| `100%`|\n|''height''|the height of the map (px only)| `420px`|\n\n!!! leaflet map attributes\n|!Attribute |!Description |!Default |\n|''places'' |a json object with the geographical data you want to display. Can be stored in tiddlers as metadata fields. See [[geoSyntax|$:/plugins/sycom/leaflet/geoSyntax]] for more informations ||\n|''style'' |a json object containing styling information for your polygons and polylines objects in the map. Will overwrite GeoTiddler style if exists. Refer to [[leaflet documentation|http://leafletjs.com/reference-1.0.3.html#path]] for all options| `{ }`|\n|''color'' |a color for drawing that will apply to all objects in the map. Will also overwrite GeoTiddler color attributes and //style// (if defined) colors| `<<colour primary>>`|\n|''marker''|the name of the marker you want for points. See [[markers|$:/plugins/sycom/leaflet/markers]] for more informations| `marker`|\n|''tile'' |the //id// or the //number// of the tile layer you want to use. See [[tileLayers|$:/plugins/sycom/leaflet/tileLayers]] for more informations | `osm`|\n|''cluster''|set the clustering distance between points. also can disable clustering with no value or `0` or `\"\"`| `80`|\n|''clusterType''|set if points are clustered for whole map (`map`) or for each tiddler (`tiddler`) displayed.| `map`|\n|''tileControl'' |''if present'' add a control to select the tile layer you want ||\n|''lat'' |map center latitude. Will overwrite places auto-centering | `52.8`|\n|''long'' |map center longitude. Will overwrite places auto-centering | `-2.6`|\n|''zoom'' |zoom level as defined by leaflet : int value between `0` (world map) and `20` (ant view) | |\n"
},
"$:/plugins/sycom/leaflet/example": {
"title": "$:/plugins/sycom/leaflet/example",
"type": "text/vnd.tiddlywiki",
"caption": "Example",
"text": "Different ways to use the [[leaflet plugin|$:/plugins/sycom/leaflet]]\n\n{{$:/plugins/sycom/leaflet/example/leaflet_with_geotiddler}}\n\n{{$:/plugins/sycom/leaflet/example/leaflet_with_geojsontiddler}}\n\n{{$:/plugins/sycom/leaflet/example/leaflet_with_non-tiddler_geo_data}}\n\n{{$:/plugins/sycom/leaflet/example/leaflet_with_filter}}\n"
},
"$:/plugins/sycom/leaflet/example/leaflet_with_filter": {
"title": "$:/plugins/sycom/leaflet/example/leaflet_with_filter",
"created": "20151211173500000",
"modified": "20170317163500000",
"text": "!! a map of a filter\nthis one displays all tiddlers tagged with <<tag example>> (there's a //all shadow// tweak, since they are shadowed). There is also one cluster per tiddler. Some colors are set from within each tiddler with `color` field.\n\n```\n<$leafmap tile='toner'\n\tplaces='{\"filter\":\"[all[shadows]tag[example]]\"}' clusterType='tiddler'/>\n```\n<$leafmap tile='toner'\n\tplaces='{\"filter\":\"[all[shadows]tag[example]]\"}' clusterType='tiddler'/>\n"
},
"$:/plugins/sycom/leaflet/example/leaflet_with_geojsontiddler": {
"title": "$:/plugins/sycom/leaflet/example/leaflet_with_geojsontiddler",
"created": "20161025150936935",
"modified": "20170318235936935",
"tags": "example leaflet",
"text": "!! a map of a geoJson tiddler\nThis one displays [[tiddlyWikiFrCommunity|$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity]] (that has a color field set to red), which is an almost direct geojson data extraction from the umap [[Utilisateurs du forum TiddlyWiki FR|https://umap.openstreetmap.fr/fr/map/tiddlywikifr_65983#6/46.995/2.549]]. `color` is set to orange, `marker` to pin. Cluster distance is default (80) on the first, set to 30 on the second.\n\n```\n<$leafmap tileControl\n places='{\"tiddler\":\"$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity\"}'\n style='{\"color\":\"orange\"}'\n marker='pin'/>\n<$leafmap tileControl cluster=\"30\"\n places='{\"tiddler\":\"$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity\"}'\n marker='pin'/>\n```\n<$leafmap tileControl\n places='{\"tiddler\":\"$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity\"}'\n style='{\"color\":\"orange\"}'\n marker='pin'/>\n<$leafmap tileControl cluster=\"30\"\n places='{\"tiddler\":\"$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity\"}'\n marker='pin'/>\n"
},
"$:/plugins/sycom/leaflet/example/leaflet_with_geotiddler": {
"title": "$:/plugins/sycom/leaflet/example/leaflet_with_geotiddler",
"created": "20151207090936935",
"modified": "20161025222038568",
"tags": "example leaflet",
"text": "!! a map of a GeoTiddler\nthis one displays the tiddler [[placeTiddler|$:/plugins/sycom/leaflet/example/placeTiddler]]. Note the tileControl attribute that enables map background selection. As the tiddler has its `color` field set to pink, objects are rendered pink. The cat is know a panther ;-). The tiddler also have a `style` field to define dash and thickness of the stroke...\n\n```\n<$leafmap\n tileControl\n places='{\"tiddler\":\"$:/plugins/sycom/leaflet/example/placeTiddler\"}'/>\n```\n<$leafmap\n tileControl\n places='{\"tiddler\":\"$:/plugins/sycom/leaflet/example/placeTiddler\"}'/>\n"
},
"$:/plugins/sycom/leaflet/example/leaflet_with_non-tiddler_geo_data": {
"title": "$:/plugins/sycom/leaflet/example/leaflet_with_non-tiddler_geo_data",
"point": "6.5,19.72",
"created": "20151207090936935",
"modified": "20151211172038568",
"tags": "example leaflet",
"text": "!! a map with data on the go\nvery useful for fast mapping. All objects that might be embedded in GeoTiddler can be used here. Let's display a map with satellite imagery and\n\n* a ''point'' at `6.5,19.72`\n* a ''polyline'' at `6.4,19.7 6.6,19.74`\n\nnote this tiddler is also a geoTiddler with one point at `6.5,19.72`\n\n```\n<$leafmap tile='sat'\n\tplaces='{\"point\":\"6.5,19.72\",\"polyline\":\"6.4,19.7 6.6,19.74\"}'/>\n```\n\n<$leafmap tile='sat'\n\tplaces='{\"point\":\"6.5,19.72\",\"polyline\":\"6.4,19.7 6.6,19.74\"}'/>\n"
},
"$:/plugins/sycom/leaflet/example/placeTiddler": {
"title": "$:/plugins/sycom/leaflet/example/placeTiddler",
"points": "52.799933,-2.589812 52.799959,-2.590939",
"polygon": "52.800608,-2.591668 52.800225,-2.591829 52.799849,-2.591937 52.799603,-2.591990 52.799427,-2.591990 52.799187,-2.591894 52.798863,-2.591550 52.798727,-2.591357 52.798662,-2.591121 52.798636,-2.590853 52.798655,-2.590542 52.798668,-2.590467 52.798701,-2.590359 52.798649,-2.590113 52.798623,-2.589920 52.798610,-2.589716 52.798636,-2.589437 52.798694,-2.589136 52.798850,-2.588975 52.799051,-2.588793 52.799311,-2.588707 52.799525,-2.588707 52.799726,-2.588772 52.800018,-2.588857 52.800290,-2.588911 52.800511,-2.589040 52.800731,-2.589126 52.800816,-2.589211 52.800413,-2.589812 52.800446,-2.590166 52.800452,-2.590520 52.800433,-2.590810 52.800426,-2.591068 52.800751,-2.591550 52.800621,-2.591679",
"polylines": "52.799382,-2.590059 52.799641,-2.588321|52.799330,-2.590048 52.799447,-2.588342|52.799265,-2.590059 52.799181,-2.588342|52.799486,-2.590724 52.799706,-2.592301|52.799414,-2.590767 52.799525,-2.592366|52.799356,-2.590714 52.799278,-2.592355",
"created": "20151119173416000",
"modified": "20151211173153114",
"color": "#ff80c0",
"style": "{\"dashArray\":\"6, 10\",\"weight\":\"8\"}",
"type": "text/vnd.tiddlywiki",
"tags": "example leaflet geometry",
"text": "This tiddler contains\n\n* a two `points` list : 52.799933,-2.589812 52.799959,-2.590939\n* a `polygon` : 52.800608,-2.591668 52.800225,-2.591829 52.799849 (...)\n* a `polyline`s list : 52.799382,-2.590059 52.799641,-2.588321|52.799330,-2.590048 52.799447,-2.588342|52.799265,(...)\n\nIt has also some styling informations\n\n* `color` is set to pink\n* `style` defines a dashed 8px thick line\n\ngo to edit mode to see the full data fields\n"
},
"/usr/local/lib/node_modules/tiddlywiki/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity.old": {
"title": "/usr/local/lib/node_modules/tiddlywiki/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity.old",
"text": "created: 20161025143416000\nmodified: 20170317143416000\ntitle: $:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity\ntype: application/json\ntags: example leaflet geojson\ncolor: #dd0000\n\n{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"name\":\"Aknar\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.4442090000000007,43.604652]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"CdriC\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.563166,47.478419]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Disanv Parean\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.4072784,49.1846226]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Fab13n\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[5.5867,45.1184]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Fabio\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.916515000000004,47.8664401]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Florent V.\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[0.156237,45.648377]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Joël\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[4.740042686462402,46.10446454226022]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Johanne\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-74.09016960000002,45.65189590000001]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Lakemp\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.19249,48.59338]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"LauDai\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.4750973000000158,43.5664556]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Lucivam\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[4.390278,45.434722]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Mikabi\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.44,43.604652]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Nico\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.2569674000000077,48.9899655]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Nicolas Friedli\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[6.8411643,46.9425711]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Phil\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[3.98337,50.36155]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Piwig\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-1.677793,48.117266]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Sylvain Comte\",\"description\":\"Créateur du leaflet map plugin\",\"url\":\"http://sylvain.comte.online.fr\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.08954,49.43584]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Sylvain Naudin\",\"description\":\"Admin du forum\",\"url\":\"http://sylvain.naud.in\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.155689,45.471894]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Thierry Pasquier\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[0.3333,46.5833]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Vincent Delcros\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[5.2788245000000416,50.5500944]}}]}\n",
"type": ".old"
},
"$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity": {
"title": "$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity",
"text": "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"name\":\"Aknar\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.4442090000000007,43.604652]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"CdriC\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.563166,47.478419]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Disanv Parean\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.4072784,49.1846226]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Emmanuel\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.3522219000000177,48.85661400000001]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Escrivant\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.3868,48.871958]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Fab13n\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[5.5867,45.1184]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Fabio\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.916515000000004,47.8664401]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Florent\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[0.156237,45.648377]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"François\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.478413899999964,43.543794]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Gub\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.4442090000000007,43.604652]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"jargenty\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.321621999999934,43.514707]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Jérôme\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-2.429759,47.328003]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Joël\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[4.740042686462402,46.10446454226022]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Johanne\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-74.09016960000002,45.65189590000001]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Lakemp\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.19249,48.59338]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"LauDai\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.4750973000000158,43.5664556]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"LongSlowBakery\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-2.4834849999999733,52.903552]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Lucivam\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[4.390278,45.434722]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"m4dz\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.3522219000000177,48.85661400000001]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Matthias\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.560016,47.470006]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Michel\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[7.261953199999994,43.7101728]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Mikabi\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.44,43.604652]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Nico\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.2569674000000077,48.9899655]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Nicolas\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[6.8411643,46.9425711]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"pariswiki\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.29,48.8]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Phil\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[3.98337,50.36155]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Piwig\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-1.677793,48.117266]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Ploum\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[0.1995560000000296,48.00611000000001]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Scapharnaum\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[7.74553,48.58392]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Solaine\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[8.227512,46.818188]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Sylvain Comte\",\"description\":\"Créateur du leaflet map plugin\",\"url\":\"http://sylvain.comte.online.fr\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.08954,49.43584]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Sylvain Naudin\",\"description\":\"Admin du forum\",\"url\":\"http://sylvain.naud.in\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.155689,45.471894]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Thierry\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[0.3333,46.5833]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Thomas Elmiger\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[8.541694,47.376887]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Vincent\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[5.2788245000000416,50.5500944]}},{\"type\":\"Feature\",\"properties\":{\"name\":\"Yan\",\"description\":\"\",\"url\":\"\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[2.0517,46.22475]}}]}\n",
"type": "application/json",
"created": "20161025143416000",
"modified": "20180602193416000",
"source": "https://umap.openstreetmap.fr/fr/map/tiddlywikifr_65983",
"tags": "example leaflet geojson",
"color": "#dd0000"
},
"$:/ext/modules/widgets/geolocation-widget.js": {
"text": "/*\\\ntitle: $:/ext/modules/wigets/geolocation-widget.js\ntype: application/javascript\nmodule-type: widget\n\nGeolocation widget\n\n\\*/\n(function() {\n /*jslint node: true, browser: true */\n /*global $tw: false */\n \"use strict\";\n var Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n var GeolocationWidget = function(parseTreeNode, options) {\n this.initialise(parseTreeNode, options);\n };\n\n /* Inherit from the base widget class */\n GeolocationWidget.prototype = new Widget();\n\n /* Compute the internal state of the widget */\n GeolocationWidget.prototype.execute = function() {\n // Get attributes\n this.target = this.getAttribute(\"target\") || this.getVariable(\"currentTiddler\");\n this.icon = this.getAttribute(\"icon\") || \"$:/core/images/globe\";\n this.text = this.getAttribute(\"text\") || undefined;\n this.accuracy = this.getAttribute(\"accuracy\");\n this.type = this.getAttribute(\"type\") || \"point\";\n // Make child widgets\n this.makeChildWidgets();\n };\n\n /* Render this widget into the DOM */\n GeolocationWidget.prototype.render = function(parent, nextSibling) {\n var self = this;\n // Remember parent\n this.parentDomNode = parent;\n // Compute attributes and execute state\n this.computeAttributes();\n this.execute();\n // Create element\n var tag = \"button\";\n if (this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {\n tag = this.buttonTag;\n }\n var domNode = this.document.createElement(tag);\n // Add a click event handler\n domNode.addEventListener(\"click\", function(event) {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(\n // success callback\n function(position) {\n /* to replace by field populating (point(s) polyline(s) or polygon(s)) */\n /* default : if tiddler has point field, will create a points field to store new data;\n if tiddler has points field, will add a new point to the tiddler field;\t*/\n var target = self.target;\n var accuracy = self.accuracy;\n var type = self.type;\n var newPoint = position.coords.latitude + \",\" + position.coords.longitude;\n /* check if tiddler has a geofield */\n var track = \"\";\n if (!$tw.wiki.getTiddler(target)) $tw.wiki.setText(target, \"text\", null, \"\", null);\n var flds = $tw.wiki.getTiddler(target).fields\n if (flds.points) {\n track = flds.points;\n $tw.wiki.setText(target, \"points\", null, track + \" \" + newPoint, null);\n infoLocation(\"new point \" + newPoint + \" added to \" + target);\n\n } else {\n if (flds.point && flds.point !== null) {\n track = flds.point;\n $tw.wiki.setText(target, \"points\", null, track + \" \" + newPoint, null);\n $tw.wiki.setText(target, \"point\", null, null, null);\n infoLocation(\"new point \" + newPoint + \" added to \" + target);\n } else {\n $tw.wiki.setText(target, \"point\", null, newPoint, null);\n infoLocation(\"new point \" + newPoint + \" added to \" + target);\n }\n }\n },\n // error callback\n function(error) {\n noLocation(error.message + \". You may not are connected via httpS://\")\n }\n );\n } else {\n noLocation(\"position disabled or not supported by your browser\");\n }\n }, false);\n /* dress up button */\n var buttonContent;\n // if text parameter, will use it for the button\n if (self.text) {\n buttonContent = self.text;\n } else {\n // if not, looking for an icon\n /* !todo: ?question: should the icon depend on \"type\" parameter? */\n buttonContent = $tw.wiki.getTiddler(self.icon).fields.text;\n }\n domNode.innerHTML = buttonContent;\n // Insert element\n parent.insertBefore(domNode, nextSibling);\n this.renderChildren(domNode, null);\n this.domNodes.push(domNode);\n };\n\n function noLocation(message) {\n /* !todo: ?question: replace by \"modal\" alert? */\n // create or update a temporary message tiddler \n $tw.wiki.setText(\"$:/temp/noLocationMessage\", \"text\", null, \"geolocation access denied: \" + message, null);\n // displays it in modal\n $tw.modal.display(\"$:/temp/noLocationMessage\");\n }\n\n function infoLocation(message) {\n // create or update a temporary message tiddler \n $tw.wiki.setText(\"$:/temp/viewLocationMessage\", \"text\", null, message, null);\n // displays it in modal\n $tw.notifier.display(\"$:/temp/viewLocationMessage\");\n }\n /*\n We don't allow actions to propagate because we trigger actions ourselves\n */\n GeolocationWidget.prototype.allowActionPropagation = function() {\n return false;\n };\n\n exports.geoloc = GeolocationWidget;\n\n})();",
"title": "$:/ext/modules/widgets/geolocation-widget.js",
"type": "application/javascript",
"module-type": "widget"
},
"geoLocationWidget": {
"caption": "action-createtiddler",
"created": "20180906130958091",
"modified": "20180906132645752",
"author": "Sylvain Comte",
"tags": "Widgets",
"title": "geoLocationWidget",
"type": "text/vnd.tiddlywiki",
"text": "! Introduction\nThe ''geolocation'' widget is used to collect geographic position of the browser running the wiki. For now position will be added the //point// (or //points// if there is more than one point) field of the target tiddler. Those fields may then be used with the [[Leaflet Map Plugin|https://sycom.github.io/TiddlyWiki-Plugins/#Leaflet%20plugin]], or whatever tool using geographic coordinates.\n\n* The widget is not dependant from Leaflet Map Plugin (but is bundled in it). You may install it alone\n* The widget will only work on //https// website, due to security limitation of the geolocation implemented in browsers\n\n! Content and Attributes\nThe [[geolocation widget|$:/ext/modules/widgets/geolocation-widget.js]] will create a button to collect your browser's position. Any content within it is ignored.\n\n| !Attribute | !Description | !Default |\n|target |The tiddler (title) in which data will be stored |//current tiddler// |\n|icon |The title of the icon used to dress up the button|$:/core/images/globe |\n|text |The text displayed in the button (will overwrite the icon)|`undefined` |\n\nMore options will come later (//accuracy//, //object type//...).\n\n! Examples\n\n```\n<$geoloc target=\"Geolocation Store\" />\n```\n\n<$geoloc target=\"Geolocation Store\" />\n\n! Source\nThe ''geolocation widget'' is developped aside Leaflet Map Plugin. Source code can be found on the same repository : https://framagit.org/sycom/TiddlyWiki-Plugins/tree/master/ext/modules/widget/geolocation\n\n"
},
"$:/plugins/sycom/leaflet/icon": {
"title": "$:/plugins/sycom/leaflet/icon",
"tags": "$:/tags/Image",
"text": "<svg class=\"tc-image-leaflet-map tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n <g fill-rule=\"evenodd\">\n <path d=\"M64 0L9.4 32v64L64 128l54.6-32V32zM48.8 32.4l30.8 7.8V95l-30.8-7.8zm57.2 2.4v54.7L82 95V40.2zm-59.8-2.2v54.7L21 92.8V38zm-10.4 5.9a5.2 5.2 0 0 0-5.1 5c0 1.1.6 2.6 1.1 3.6l4 7.6 3.9-7.6c.4-1 1.1-2.4 1.1-3.6 0-2.6-2.3-5-5-5zm-.2 3h.2c1 0 2 .9 2 2a2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1 .8-2 1.8-2zM64.2 44c-7 0-13 6.1-13 12.7 0 3 1.7 6.8 3 9.4l10 19.3L74 66c1.2-2.6 3-6.2 3-9.4C77 50.1 71.2 44 64 44zm0 7.7a5 5 0 0 1 5 5 5 5 0 0 1-10 0 5 5 0 0 1 5-5zM25.6 59a3.5 3.5 0 0 0-3.4 3.3c0 .8.5 1.8.8 2.5l2.6 5 2.6-5c.3-.7.8-1.7.8-2.5 0-1.7-1.5-3.3-3.4-3.3zm0 2a1.3 1.3 0 1 1 0 2.6 1.3 1.3 0 0 1-1.3-1.3 1.3 1.3 0 0 1 1.3-1.3zM92 66.8c-2.7 0-5 2.4-5 5 0 1.2.6 2.7 1.1 3.7l4 7.5 3.8-7.5c.5-1 1.2-2.4 1.2-3.7 0-2.6-2.3-5-5-5zm0 3c1.1 0 2 1 2 2a2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1 .9-1.9 2-2z\"/>\n <path d=\"M69-158h58v67H69z\" fill=\"#fff\"/>\n </g>\n</svg>\n"
},
"$:/plugins/sycom/leaflet/images/layers.svg": {
"title": "$:/plugins/sycom/leaflet/images/layers.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"26\" width=\"26\"><path d=\"M0 17l13-8 13 8-13 8-13-8\" fill=\"#b9b9b9\"/><path d=\"M0 17v1l13 8 13-8v-1l-13 8z\" fill=\"#737373\"/><path d=\"M0 13l13-8 13 8-13 8-13-8\" fill=\"#cdcdcd\"/>\n <path d=\"M0 13v1l13 8 13-8v-1l-13 8z\" fill=\"#737373\"/><path d=\"M0 9l13-8 13 8-13 8L0 9\" fill-opacity=\".6\" fill=\"#e9e9e9\"/><path d=\"M0 9v1l13 8 13-8V9l-13 8z\" fill=\"#737373\"/></svg>\n",
"type": "image/svg+xml",
"created": "20161028202401905",
"modified": "20180531154011600",
"tags": "$:/tags/Image"
},
"$:/plugins/sycom/leaflet/images/marker.svg": {
"title": "$:/plugins/sycom/leaflet/images/marker.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"25\" height=\"40\" fill-rule=\"evenodd\"><path fill=\"none\" d=\"M6.279 4.463h12.625v14.5H6.279z\"/><path fill=\"$primary$\" fill-opacity=\".8\" stroke=\"#fff\" stroke-linecap=\"round\" d=\"M12.544.5C5.971.5.5 6.191.5 12.366c0 2.778 1.564 6.308 2.694 8.746L12.5 38.984l9.262-17.872c1.13-2.438 2.738-5.791 2.738-8.746C24.5 6.191 19.117.5 12.544.5zm0 7.155a4.714 4.714 0 0 1 4.679 4.71c0 2.588-2.095 4.663-4.679 4.679-2.584-.017-4.679-2.09-4.679-4.679a4.714 4.714 0 0 1 4.679-4.71z\" class=\"leaflet-marker-colored\"/><path fill=\"none\" stroke=\"#fff\" stroke-linecap=\"round\" stroke-opacity=\".9\" d=\"M12.531 1.607c-5.944 0-10.938 5.219-10.938 10.75 0 2.359 1.443 5.832 2.563 8.25l.031.031L12.5 36.607l8.25-15.969.031-.031c1.135-2.448 2.625-5.706 2.625-8.25 0-5.538-4.931-10.75-10.875-10.75zm0 4.969c3.168.021 5.781 2.601 5.781 5.781 0 3.18-2.613 5.761-5.781 5.781-3.168-.02-5.75-2.61-5.75-5.781 0-3.172 2.582-5.761 5.75-5.781z\"/></svg>\n",
"type": "text/vnd.tiddlywiki",
"created": "20161028202401905",
"modified": "20180531124011600",
"tags": "$:/tags/Image",
"marker_dim": "25 40 12.5 40",
"caption": "marker"
},
"$:/plugins/sycom/leaflet/images/markershadow.svg": {
"title": "$:/plugins/sycom/leaflet/images/markershadow.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"50\" height=\"40\"><filter id=\"a\" width=\"200\" height=\"200\" x=\"-50\" y=\"-50\"><feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"1.5\"/></filter><path fill=\"none\" d=\"M47 0a52 52 0 0 0-34 21L0 40l30-19 13-9c7-6 9-12 4-12zm-9 7a3 8 58 0 1-2 5c-3 3-7 5-9 5-3 0-2-2 1-5a3 8 58 0 1 10-5z\" filter=\"url(#a)\"/></svg>\n",
"type": "image/svg+xml",
"created": "20161028202401905",
"modified": "20180531155500000",
"tags": "$:/tags/Image",
"marker_dim": "50 40 0 40"
},
"$:/plugins/sycom/leaflet/images/pin.svg": {
"title": "$:/plugins/sycom/leaflet/images/pin.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"35\"><defs><linearGradient id=\"a\"><stop offset=\"0\" stop-color=\"#fff\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\"0\"/></linearGradient><radialGradient id=\"b\" cx=\"7\" cy=\"7\" r=\"8\" fx=\"5\" fy=\"5\" gradientTransform=\"scale(1.12)\" gradientUnits=\"userSpaceOnUse\" href=\"#a\"/></defs><g fill-rule=\"evenodd\"><path d=\"M9 20h2v15H9z\"/><circle cx=\"10\" cy=\"10\" r=\"10\" class=\"leaflet-marker-colored\" fill-opacity=\".8\" fill=\"$primary$\"/><circle cx=\"10\" cy=\"10\" r=\"10\" fill=\"url(#b)\"/></g></svg>\n",
"type": "text/vnd.tiddlywiki",
"created": "20161028202401905",
"modified": "20180531154500000",
"tags": "$:/tags/Image",
"marker_dim": "20 35 10 35",
"caption": "pin"
},
"$:/plugins/sycom/leaflet/images/pinshadow.svg": {
"title": "$:/plugins/sycom/leaflet/images/pinshadow.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"15\" height=\"15\"><filter id=\"a\" width=\"200\" height=\"200\" x=\"-50\" y=\"-50\"><feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"1.5\"/></filter><ellipse cx=\"8\" cy=\"8\" style=\"stroke:none; fill-opacity:.3; filter: url(#a)\" rx=\"7\" ry=\"7\"/></svg>\n",
"type": "image/svg+xml",
"created": "20170129162401910",
"modified": "20180531155000000",
"tags": "$:/tags/Image",
"marker_dim": "15 15 5 7"
},
"$:/plugins/sycom/leaflet/images/point.svg": {
"title": "$:/plugins/sycom/leaflet/images/point.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"15\" height=\"15\" fill-rule=\"evenodd\"><ellipse cx=\"7.5\" cy=\"7.5\" fill=\"none\" stroke=\"#fff\" stroke-opacity=\".8\" rx=\"7.5\" ry=\"7.5\"/><ellipse cx=\"7.5\" cy=\"7.5\" fill=\"$primary$\" fill-opacity=\".8\" stroke=\"#000\" stroke-opacity=\".8\" stroke-width=\".5\" class=\"leaflet-marker-colored\" rx=\"7\" ry=\"7\"/></svg>\n",
"type": "text/vnd.tiddlywiki",
"created": "20170129162401905",
"modified": "20180531165500000",
"tags": "$:/tags/Image",
"marker_dim": "15 15 7.5 7.5",
"caption": "point"
},
"$:/plugins/sycom/leaflet/images/pointshadow.svg": {
"title": "$:/plugins/sycom/leaflet/images/pointshadow.svg",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"15\" height=\"15\"><filter id=\"a\" width=\"200\" height=\"200\" x=\"-50\" y=\"-50\"><feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"1.5\"/></filter><ellipse cx=\"7.5\" cy=\"7.5\" fill-opacity=\".3\" filter=\"url(#a)\" rx=\"7.2\" ry=\"7.2\"/></svg>\n",
"type": "image/svg+xml",
"created": "20170129162401910",
"modified": "20180531165600000",
"tags": "$:/tags/Image",
"marker_dim": "15 15 0 12"
},
"$:/plugins/sycom/leaflet/lib/tileLayers.json": {
"text": "[\n {\n \"id\": \"osmfr\",\n \"nom\": \"OSM France\",\n \"url\": \"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png\",\n \"attrib\": \"fond par <a href='http://osm.org/copyright'>OSM</a>, licence <a href='http://creativecommons.org/licenses/by-sa/3.0'>CC BY SA</a>. Données ©Contributeurs <a href='http://openstreetmap.org'>OSM</a>, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"osm\",\n \"nom\": \"OpenStreetMap\",\n \"url\": \"http://{s}.tile.osm.org/{z}/{x}/{y}.png\",\n \"attrib\": \"Map tiles by ©<a href='http://osm.org/copyright'>OSM</a>, licence <a href='http://creativecommons.org/licenses/by-sa/3.0'>CC BY SA</a>. Data by ©<a href='http://openstreetmap.org'>OSM</a> contributors, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"osmbw\",\n \"nom\": \"OSM N&B\",\n \"url\": \"http://www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png\",\n \"attrib\": \"Tiles hosted by wikimedia labs. Data by ©<a href='http://openstreetmap.org'>OSM</a> contributors, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"sat\",\n \"nom\": \"Satellite Esri\",\n \"url\": \"http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}\",\n \"attrib\": \"©Map tiles by Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"natgeo\",\n \"nom\": \"National Geog.\",\n \"url\": \"http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}\",\n \"attrib\": \"©Map tiles by Esri — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC\",\n \"zMin\": 1,\n \"zMax\": 12\n },\n {\n \"id\": \"toner\",\n \"nom\": \"Black Ink\",\n \"url\": \"http://{s}.tile.stamen.com/toner/{z}/{x}/{y}.png\",\n \"attrib\": \"Map tiles by <a href='http://stamen.com'>Stamen Design</a>, licence <a href='http://creativecommons.org/licenses/by/3.0'>CC BY 3.0</a>. Data by ©<a href='http://openstreetmap.org'>OSM</a> contributors, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"water\",\n \"nom\": \"Water painting\",\n \"url\": \"http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.png\",\n \"attrib\": \"Map tiles by <a href='http://stamen.com'>Stamen Design</a>, licence <a href='http://creativecommons.org/licenses/by/3.0'>CC BY 3.0</a>. Data by ©<a href='http://openstreetmap.org'>OSM</a> contributors, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"thunder\",\n \"nom\": \"Thunderforest\",\n \"url\": \"http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png\",\n \"attrib\": \"Map tiles by <a href='http://thunderforest.com/'>Thunderforest</a>. Data by ©<a href='http://openstreetmap.org'>OSM</a> contributors, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"dark\",\n \"nom\": \"Dark Matter\",\n \"url\": \"http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png\",\n \"attrib\": \"©Map tiles by <a href='https://cartodb.com/basemaps/' target='_blank'>CartoDB</a>, under <a href='https://creativecommons.org/licenses/by/3.0/' target='_blank'>CC BY 3.0</a>. Data by ©<a href='http://openstreetmap.org'>OSM</a> contributors, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n },\n {\n \"id\": \"positron\",\n \"nom\": \"Positron\",\n \"url\": \"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png\",\n \"attrib\": \"©Map tiles by <a href='https://cartodb.com/basemaps/' target='_blank'>CartoDB</a>, under <a href='https://creativecommons.org/licenses/by/3.0/' target='_blank'>CC BY 3.0</a>. Data by ©<a href='http://openstreetmap.org'>OSM</a> contributors, licence <a href='http://opendatacommons.org/licenses/odbl/'>ODbL</a>.\",\n \"zMin\": 1,\n \"zMax\": 20\n }\n]\n",
"type": "application/json",
"title": "$:/plugins/sycom/leaflet/lib/tileLayers.json"
},
"$:/plugins/sycom/leaflet/lib/leaflet.css": {
"text": "/* required styles */\n\n.leaflet-pane,\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-tile-container,\n.leaflet-pane > svg,\n.leaflet-pane > canvas,\n.leaflet-zoom-box,\n.leaflet-image-layer,\n.leaflet-layer {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t}\n.leaflet-container {\n\toverflow: hidden;\n\t}\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t user-select: none;\n\t -webkit-user-drag: none;\n\t}\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\n.leaflet-safari .leaflet-tile {\n\timage-rendering: -webkit-optimize-contrast;\n\t}\n/* hack that prevents hw layers \"stretching\" when loading new tiles */\n.leaflet-safari .leaflet-tile-container {\n\twidth: 1600px;\n\theight: 1600px;\n\t-webkit-transform-origin: 0 0;\n\t}\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\tdisplay: block;\n\t}\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\n.leaflet-container .leaflet-overlay-pane svg,\n.leaflet-container .leaflet-marker-pane img,\n.leaflet-container .leaflet-shadow-pane img,\n.leaflet-container .leaflet-tile-pane img,\n.leaflet-container img.leaflet-image-layer {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\t}\n\n.leaflet-container.leaflet-touch-zoom {\n\t-ms-touch-action: pan-x pan-y;\n\ttouch-action: pan-x pan-y;\n\t}\n.leaflet-container.leaflet-touch-drag {\n\t-ms-touch-action: pinch-zoom;\n\t/* Fallback for FF which doesn't support pinch-zoom */\n\ttouch-action: none;\n\ttouch-action: pinch-zoom;\n}\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.leaflet-container {\n\t-webkit-tap-highlight-color: transparent;\n}\n.leaflet-container a {\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\n}\n.leaflet-tile {\n\tfilter: inherit;\n\tvisibility: hidden;\n\t}\n.leaflet-tile-loaded {\n\tvisibility: inherit;\n\t}\n.leaflet-zoom-box {\n\twidth: 0;\n\theight: 0;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tz-index: 800;\n\t}\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\n.leaflet-overlay-pane svg {\n\t-moz-user-select: none;\n\t}\n\n.leaflet-pane { z-index: 400; }\n\n.leaflet-tile-pane { z-index: 200; }\n.leaflet-overlay-pane { z-index: 400; }\n.leaflet-shadow-pane { z-index: 500; }\n.leaflet-marker-pane { z-index: 600; }\n.leaflet-tooltip-pane { z-index: 650; }\n.leaflet-popup-pane { z-index: 700; }\n\n.leaflet-map-pane canvas { z-index: 100; }\n.leaflet-map-pane svg { z-index: 200; }\n\n.leaflet-vml-shape {\n\twidth: 1px;\n\theight: 1px;\n\t}\n.lvml {\n\tbehavior: url(#default#VML);\n\tdisplay: inline-block;\n\tposition: absolute;\n\t}\n\n\n/* control positioning */\n\n.leaflet-control {\n\tposition: relative;\n\tz-index: 800;\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n.leaflet-top,\n.leaflet-bottom {\n\tposition: absolute;\n\tz-index: 1000;\n\tpointer-events: none;\n\t}\n.leaflet-top {\n\ttop: 0;\n\t}\n.leaflet-right {\n\tright: 0;\n\t}\n.leaflet-bottom {\n\tbottom: 0;\n\t}\n.leaflet-left {\n\tleft: 0;\n\t}\n.leaflet-control {\n\tfloat: left;\n\tclear: both;\n\t}\n.leaflet-right .leaflet-control {\n\tfloat: right;\n\t}\n.leaflet-top .leaflet-control {\n\tmargin-top: 10px;\n\t}\n.leaflet-bottom .leaflet-control {\n\tmargin-bottom: 10px;\n\t}\n.leaflet-left .leaflet-control {\n\tmargin-left: 10px;\n\t}\n.leaflet-right .leaflet-control {\n\tmargin-right: 10px;\n\t}\n\n\n/* zoom and fade animations */\n\n.leaflet-fade-anim .leaflet-tile {\n\twill-change: opacity;\n\t}\n.leaflet-fade-anim .leaflet-popup {\n\topacity: 0;\n\t-webkit-transition: opacity 0.2s linear;\n\t -moz-transition: opacity 0.2s linear;\n\t -o-transition: opacity 0.2s linear;\n\t transition: opacity 0.2s linear;\n\t}\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\n\topacity: 1;\n\t}\n.leaflet-zoom-animated {\n\t-webkit-transform-origin: 0 0;\n\t -ms-transform-origin: 0 0;\n\t transform-origin: 0 0;\n\t}\n.leaflet-zoom-anim .leaflet-zoom-animated {\n\twill-change: transform;\n\t}\n.leaflet-zoom-anim .leaflet-zoom-animated {\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\n\t}\n.leaflet-zoom-anim .leaflet-tile,\n.leaflet-pan-anim .leaflet-tile {\n\t-webkit-transition: none;\n\t -moz-transition: none;\n\t -o-transition: none;\n\t transition: none;\n\t}\n\n.leaflet-zoom-anim .leaflet-zoom-hide {\n\tvisibility: hidden;\n\t}\n\n\n/* cursors */\n\n.leaflet-interactive {\n\tcursor: pointer;\n\t}\n.leaflet-grab {\n\tcursor: -webkit-grab;\n\tcursor: -moz-grab;\n\t}\n.leaflet-crosshair,\n.leaflet-crosshair .leaflet-interactive {\n\tcursor: crosshair;\n\t}\n.leaflet-popup-pane,\n.leaflet-control {\n\tcursor: auto;\n\t}\n.leaflet-dragging .leaflet-grab,\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\n.leaflet-dragging .leaflet-marker-draggable {\n\tcursor: move;\n\tcursor: -webkit-grabbing;\n\tcursor: -moz-grabbing;\n\t}\n\n/* marker & overlays interactivity */\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-image-layer,\n.leaflet-pane > svg path,\n.leaflet-tile-container {\n\tpointer-events: none;\n\t}\n\n.leaflet-marker-icon.leaflet-interactive,\n.leaflet-image-layer.leaflet-interactive,\n.leaflet-pane > svg path.leaflet-interactive {\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n\n/* visual tweaks */\n\n.leaflet-container {\n\tbackground: #ddd;\n\toutline: 0;\n\t}\n.leaflet-container a {\n\tcolor: #0078A8;\n\t}\n.leaflet-container a.leaflet-active {\n\toutline: 2px solid orange;\n\t}\n.leaflet-zoom-box {\n\tborder: 2px dotted #38f;\n\tbackground: rgba(255,255,255,0.5);\n\t}\n\n\n/* general typography */\n.leaflet-container {\n\tfont: 12px/1.5 \"Helvetica Neue\", Arial, Helvetica, sans-serif;\n\t}\n\n\n/* general toolbar styles */\n\n.leaflet-bar {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\n\tborder-radius: 4px;\n\t}\n.leaflet-bar a,\n.leaflet-bar a:hover {\n\tbackground-color: #fff;\n\tborder-bottom: 1px solid #ccc;\n\twidth: 26px;\n\theight: 26px;\n\tline-height: 26px;\n\tdisplay: block;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcolor: black;\n\t}\n.leaflet-bar a,\n.leaflet-control-layers-toggle {\n\tbackground-position: 50% 50%;\n\tbackground-repeat: no-repeat;\n\tdisplay: block;\n\t}\n.leaflet-bar a:hover {\n\tbackground-color: #f4f4f4;\n\t}\n.leaflet-bar a:first-child {\n\tborder-top-left-radius: 4px;\n\tborder-top-right-radius: 4px;\n\t}\n.leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\tborder-bottom: none;\n\t}\n.leaflet-bar a.leaflet-disabled {\n\tcursor: default;\n\tbackground-color: #f4f4f4;\n\tcolor: #bbb;\n\t}\n\n.leaflet-touch .leaflet-bar a {\n\twidth: 30px;\n\theight: 30px;\n\tline-height: 30px;\n\t}\n.leaflet-touch .leaflet-bar a:first-child {\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n\t}\n.leaflet-touch .leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 2px;\n\tborder-bottom-right-radius: 2px;\n\t}\n\n/* zoom control */\n\n.leaflet-control-zoom-in,\n.leaflet-control-zoom-out {\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\n\ttext-indent: 1px;\n\t}\n\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\n\tfont-size: 22px;\n\t}\n\n\n/* layers control */\n\n.leaflet-control-layers {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\n\tbackground: #fff;\n\tborder-radius: 5px;\n\t}\n.leaflet-control-layers-toggle {\n\tbackground-image: url(images/layers.png);\n\twidth: 36px;\n\theight: 36px;\n\t}\n.leaflet-retina .leaflet-control-layers-toggle {\n\tbackground-image: url(images/layers-2x.png);\n\tbackground-size: 26px 26px;\n\t}\n.leaflet-touch .leaflet-control-layers-toggle {\n\twidth: 44px;\n\theight: 44px;\n\t}\n.leaflet-control-layers .leaflet-control-layers-list,\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\n\tdisplay: none;\n\t}\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\n\tdisplay: block;\n\tposition: relative;\n\t}\n.leaflet-control-layers-expanded {\n\tpadding: 6px 10px 6px 6px;\n\tcolor: #333;\n\tbackground: #fff;\n\t}\n.leaflet-control-layers-scrollbar {\n\toverflow-y: scroll;\n\toverflow-x: hidden;\n\tpadding-right: 5px;\n\t}\n.leaflet-control-layers-selector {\n\tmargin-top: 2px;\n\tposition: relative;\n\ttop: 1px;\n\t}\n.leaflet-control-layers label {\n\tdisplay: block;\n\t}\n.leaflet-control-layers-separator {\n\theight: 0;\n\tborder-top: 1px solid #ddd;\n\tmargin: 5px -10px 5px -6px;\n\t}\n\n/* Default icon URLs */\n.leaflet-default-icon-path {\n\tbackground-image: url(images/marker-icon.png);\n\t}\n\n\n/* attribution and scale controls */\n\n.leaflet-container .leaflet-control-attribution {\n\tbackground: #fff;\n\tbackground: rgba(255, 255, 255, 0.7);\n\tmargin: 0;\n\t}\n.leaflet-control-attribution,\n.leaflet-control-scale-line {\n\tpadding: 0 5px;\n\tcolor: #333;\n\t}\n.leaflet-control-attribution a {\n\ttext-decoration: none;\n\t}\n.leaflet-control-attribution a:hover {\n\ttext-decoration: underline;\n\t}\n.leaflet-container .leaflet-control-attribution,\n.leaflet-container .leaflet-control-scale {\n\tfont-size: 11px;\n\t}\n.leaflet-left .leaflet-control-scale {\n\tmargin-left: 5px;\n\t}\n.leaflet-bottom .leaflet-control-scale {\n\tmargin-bottom: 5px;\n\t}\n.leaflet-control-scale-line {\n\tborder: 2px solid #777;\n\tborder-top: none;\n\tline-height: 1.1;\n\tpadding: 2px 5px 1px;\n\tfont-size: 11px;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\n\tbackground: #fff;\n\tbackground: rgba(255, 255, 255, 0.5);\n\t}\n.leaflet-control-scale-line:not(:first-child) {\n\tborder-top: 2px solid #777;\n\tborder-bottom: none;\n\tmargin-top: -2px;\n\t}\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\n\tborder-bottom: 2px solid #777;\n\t}\n\n.leaflet-touch .leaflet-control-attribution,\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tbox-shadow: none;\n\t}\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tborder: 2px solid rgba(0,0,0,0.2);\n\tbackground-clip: padding-box;\n\t}\n\n\n/* popup */\n\n.leaflet-popup {\n\tposition: absolute;\n\ttext-align: center;\n\tmargin-bottom: 20px;\n\t}\n.leaflet-popup-content-wrapper {\n\tpadding: 1px;\n\ttext-align: left;\n\tborder-radius: 12px;\n\t}\n.leaflet-popup-content {\n\tmargin: 13px 19px;\n\tline-height: 1.4;\n\t}\n.leaflet-popup-content p {\n\tmargin: 18px 0;\n\t}\n.leaflet-popup-tip-container {\n\twidth: 40px;\n\theight: 20px;\n\tposition: absolute;\n\tleft: 50%;\n\tmargin-left: -20px;\n\toverflow: hidden;\n\tpointer-events: none;\n\t}\n.leaflet-popup-tip {\n\twidth: 17px;\n\theight: 17px;\n\tpadding: 1px;\n\n\tmargin: -10px auto 0;\n\n\t-webkit-transform: rotate(45deg);\n\t -moz-transform: rotate(45deg);\n\t -ms-transform: rotate(45deg);\n\t -o-transform: rotate(45deg);\n\t transform: rotate(45deg);\n\t}\n.leaflet-popup-content-wrapper,\n.leaflet-popup-tip {\n\tbackground: white;\n\tcolor: #333;\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\n\t}\n.leaflet-container a.leaflet-popup-close-button {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tpadding: 4px 4px 0 0;\n\tborder: none;\n\ttext-align: center;\n\twidth: 18px;\n\theight: 14px;\n\tfont: 16px/14px Tahoma, Verdana, sans-serif;\n\tcolor: #c3c3c3;\n\ttext-decoration: none;\n\tfont-weight: bold;\n\tbackground: transparent;\n\t}\n.leaflet-container a.leaflet-popup-close-button:hover {\n\tcolor: #999;\n\t}\n.leaflet-popup-scrolled {\n\toverflow: auto;\n\tborder-bottom: 1px solid #ddd;\n\tborder-top: 1px solid #ddd;\n\t}\n\n.leaflet-oldie .leaflet-popup-content-wrapper {\n\tzoom: 1;\n\t}\n.leaflet-oldie .leaflet-popup-tip {\n\twidth: 24px;\n\tmargin: 0 auto;\n\n\t-ms-filter: \"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\n\t}\n.leaflet-oldie .leaflet-popup-tip-container {\n\tmargin-top: -1px;\n\t}\n\n.leaflet-oldie .leaflet-control-zoom,\n.leaflet-oldie .leaflet-control-layers,\n.leaflet-oldie .leaflet-popup-content-wrapper,\n.leaflet-oldie .leaflet-popup-tip {\n\tborder: 1px solid #999;\n\t}\n\n\n/* div icon */\n\n.leaflet-div-icon {\n\tbackground: #fff;\n\tborder: 1px solid #666;\n\t}\n\n\n/* Tooltip */\n/* Base styles for the element that has a tooltip */\n.leaflet-tooltip {\n\tposition: absolute;\n\tpadding: 6px;\n\tbackground-color: #fff;\n\tborder: 1px solid #fff;\n\tborder-radius: 3px;\n\tcolor: #222;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\tpointer-events: none;\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\n\t}\n.leaflet-tooltip.leaflet-clickable {\n\tcursor: pointer;\n\tpointer-events: auto;\n\t}\n.leaflet-tooltip-top:before,\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\tposition: absolute;\n\tpointer-events: none;\n\tborder: 6px solid transparent;\n\tbackground: transparent;\n\tcontent: \"\";\n\t}\n\n/* Directions */\n\n.leaflet-tooltip-bottom {\n\tmargin-top: 6px;\n}\n.leaflet-tooltip-top {\n\tmargin-top: -6px;\n}\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-top:before {\n\tleft: 50%;\n\tmargin-left: -6px;\n\t}\n.leaflet-tooltip-top:before {\n\tbottom: 0;\n\tmargin-bottom: -12px;\n\tborder-top-color: #fff;\n\t}\n.leaflet-tooltip-bottom:before {\n\ttop: 0;\n\tmargin-top: -12px;\n\tmargin-left: -6px;\n\tborder-bottom-color: #fff;\n\t}\n.leaflet-tooltip-left {\n\tmargin-left: -6px;\n}\n.leaflet-tooltip-right {\n\tmargin-left: 6px;\n}\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\ttop: 50%;\n\tmargin-top: -6px;\n\t}\n.leaflet-tooltip-left:before {\n\tright: 0;\n\tmargin-right: -12px;\n\tborder-left-color: #fff;\n\t}\n.leaflet-tooltip-right:before {\n\tleft: 0;\n\tmargin-left: -12px;\n\tborder-right-color: #fff;\n\t}\n",
"type": "text/css",
"title": "$:/plugins/sycom/leaflet/lib/leaflet.css",
"tags": "$:/tags/Stylesheet"
},
"$:/plugins/sycom/leaflet/lib/leaflet-markercluster.css": {
"text": ".leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {\n\t-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;\n\ttransition: transform 0.3s ease-out, opacity 0.3s ease-in;\n}\n\n.leaflet-cluster-spider-leg {\n\t/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */\n\t-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;\n\t-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;\n\t-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;\n\ttransition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;\n}\n",
"type": "text/css",
"title": "$:/plugins/sycom/leaflet/lib/leaflet-markercluster.css",
"tags": "$:/tags/Stylesheet"
},
"$:/plugins/sycom/leaflet/lib/leaflet.js": {
"text": "var L;if($tw.browser){\n/* @preserve\n * Leaflet 1.3.1, a JS library for interactive maps. http://leafletjs.com\n * (c) 2010-2017 Vladimir Agafonkin, (c) 2010-2011 CloudMade\n */\n!function(t,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?i(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],i):i(t.L={})}(this,function(t){\"use strict\";function i(t){var i,e,n,o;for(e=1,n=arguments.length;e<n;e++){o=arguments[e];for(i in o)t[i]=o[i]}return t}function e(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}function n(t){return t._leaflet_id=t._leaflet_id||++ti,t._leaflet_id}function o(t,i,e){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(e,o),o=!1)},s=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(r,i),n=!0)}}function s(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}function r(){return!1}function a(t,i){var e=Math.pow(10,void 0===i?6:i);return Math.round(t*e)/e}function h(t){return t.trim?t.trim():t.replace(/^\\s+|\\s+$/g,\"\")}function u(t){return h(t).split(/\\s+/)}function l(t,i){t.hasOwnProperty(\"options\")||(t.options=t.options?Qt(t.options):{});for(var e in i)t.options[e]=i[e];return t.options}function c(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+\"=\"+encodeURIComponent(t[o]));return(i&&-1!==i.indexOf(\"?\")?\"&\":\"?\")+n.join(\"&\")}function _(t,i){return t.replace(ii,function(t,e){var n=i[e];if(void 0===n)throw new Error(\"No value provided for variable \"+t);return\"function\"==typeof n&&(n=n(i)),n})}function d(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}function p(t){return window[\"webkit\"+t]||window[\"moz\"+t]||window[\"ms\"+t]}function m(t){var i=+new Date,e=Math.max(0,16-(i-oi));return oi=i+e,window.setTimeout(t,e)}function f(t,i,n){if(!n||si!==m)return si.call(window,e(t,i));t.call(i)}function g(t){t&&ri.call(window,t)}function v(){}function y(t){if(\"undefined\"!=typeof L&&L&&L.Mixin){t=ei(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn(\"Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.\",(new Error).stack)}}function x(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}function w(t,i,e){return t instanceof x?t:ei(t)?new x(t[0],t[1]):void 0===t||null===t?t:\"object\"==typeof t&&\"x\"in t&&\"y\"in t?new x(t.x,t.y):new x(t,i,e)}function P(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function b(t,i){return!t||t instanceof P?t:new P(t,i)}function T(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function z(t,i){return t instanceof T?t:new T(t,i)}function M(t,i,e){if(isNaN(t)||isNaN(i))throw new Error(\"Invalid LatLng object: (\"+t+\", \"+i+\")\");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function C(t,i,e){return t instanceof M?t:ei(t)&&\"object\"!=typeof t[0]?3===t.length?new M(t[0],t[1],t[2]):2===t.length?new M(t[0],t[1]):null:void 0===t||null===t?t:\"object\"==typeof t&&\"lat\"in t?new M(t.lat,\"lng\"in t?t.lng:t.lon,t.alt):void 0===i?null:new M(t,i,e)}function Z(t,i,e,n){if(ei(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=e,this._d=n}function S(t,i,e,n){return new Z(t,i,e,n)}function E(t){return document.createElementNS(\"http://www.w3.org/2000/svg\",t)}function k(t,i){var e,n,o,s,r,a,h=\"\";for(e=0,o=t.length;e<o;e++){for(n=0,s=(r=t[e]).length;n<s;n++)a=r[n],h+=(n?\"L\":\"M\")+a.x+\" \"+a.y;h+=i?Xi?\"z\":\"x\":\"\"}return h||\"M0 0\"}function I(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function A(t,i,e,n){return\"touchstart\"===i?O(t,e,n):\"touchmove\"===i?W(t,e,n):\"touchend\"===i&&H(t,e,n),this}function B(t,i,e){var n=t[\"_leaflet_\"+i+e];return\"touchstart\"===i?t.removeEventListener(Qi,n,!1):\"touchmove\"===i?t.removeEventListener(te,n,!1):\"touchend\"===i&&(t.removeEventListener(ie,n,!1),t.removeEventListener(ee,n,!1)),this}function O(t,i,n){var o=e(function(t){if(\"mouse\"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(ne.indexOf(t.target.tagName)<0))return;$(t)}j(t,i)});t[\"_leaflet_touchstart\"+n]=o,t.addEventListener(Qi,o,!1),se||(document.documentElement.addEventListener(Qi,R,!0),document.documentElement.addEventListener(te,D,!0),document.documentElement.addEventListener(ie,N,!0),document.documentElement.addEventListener(ee,N,!0),se=!0)}function R(t){oe[t.pointerId]=t,re++}function D(t){oe[t.pointerId]&&(oe[t.pointerId]=t)}function N(t){delete oe[t.pointerId],re--}function j(t,i){t.touches=[];for(var e in oe)t.touches.push(oe[e]);t.changedTouches=[t],i(t)}function W(t,i,e){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&\"mouse\"!==t.pointerType||0!==t.buttons)&&j(t,i)};t[\"_leaflet_touchmove\"+e]=n,t.addEventListener(te,n,!1)}function H(t,i,e){var n=function(t){j(t,i)};t[\"_leaflet_touchend\"+e]=n,t.addEventListener(ie,n,!1),t.addEventListener(ee,n,!1)}function F(t,i,e){function n(t){var i;if(Ui){if(!Pi||\"mouse\"===t.pointerType)return;i=re}else i=t.touches.length;if(!(i>1)){var e=Date.now(),n=e-(s||e);r=t.touches?t.touches[0]:t,a=n>0&&n<=h,s=e}}function o(t){if(a&&!r.cancelBubble){if(Ui){if(!Pi||\"mouse\"===t.pointerType)return;var e,n,o={};for(n in r)e=r[n],o[n]=e&&e.bind?e.bind(r):e;r=o}r.type=\"dblclick\",i(r),s=null}}var s,r,a=!1,h=250;return t[ue+ae+e]=n,t[ue+he+e]=o,t[ue+\"dblclick\"+e]=i,t.addEventListener(ae,n,!1),t.addEventListener(he,o,!1),t.addEventListener(\"dblclick\",i,!1),this}function U(t,i){var e=t[ue+ae+i],n=t[ue+he+i],o=t[ue+\"dblclick\"+i];return t.removeEventListener(ae,e,!1),t.removeEventListener(he,n,!1),Pi||t.removeEventListener(\"dblclick\",o,!1),this}function V(t,i,e,n){if(\"object\"==typeof i)for(var o in i)G(t,o,i[o],e);else for(var s=0,r=(i=u(i)).length;s<r;s++)G(t,i[s],e,n);return this}function q(t,i,e,n){if(\"object\"==typeof i)for(var o in i)K(t,o,i[o],e);else if(i)for(var s=0,r=(i=u(i)).length;s<r;s++)K(t,i[s],e,n);else{for(var a in t[le])K(t,a,t[le][a]);delete t[le]}return this}function G(t,i,e,o){var s=i+n(e)+(o?\"_\"+n(o):\"\");if(t[le]&&t[le][s])return this;var r=function(i){return e.call(o||t,i||window.event)},a=r;Ui&&0===i.indexOf(\"touch\")?A(t,i,r,s):!Vi||\"dblclick\"!==i||!F||Ui&&Si?\"addEventListener\"in t?\"mousewheel\"===i?t.addEventListener(\"onwheel\"in t?\"wheel\":\"mousewheel\",r,!1):\"mouseenter\"===i||\"mouseleave\"===i?(r=function(i){i=i||window.event,ot(t,i)&&a(i)},t.addEventListener(\"mouseenter\"===i?\"mouseover\":\"mouseout\",r,!1)):(\"click\"===i&&Ti&&(r=function(t){st(t,a)}),t.addEventListener(i,r,!1)):\"attachEvent\"in t&&t.attachEvent(\"on\"+i,r):F(t,r,s),t[le]=t[le]||{},t[le][s]=r}function K(t,i,e,o){var s=i+n(e)+(o?\"_\"+n(o):\"\"),r=t[le]&&t[le][s];if(!r)return this;Ui&&0===i.indexOf(\"touch\")?B(t,i,s):!Vi||\"dblclick\"!==i||!U||Ui&&Si?\"removeEventListener\"in t?\"mousewheel\"===i?t.removeEventListener(\"onwheel\"in t?\"wheel\":\"mousewheel\",r,!1):t.removeEventListener(\"mouseenter\"===i?\"mouseover\":\"mouseleave\"===i?\"mouseout\":i,r,!1):\"detachEvent\"in t&&t.detachEvent(\"on\"+i,r):U(t,s),t[le][s]=null}function Y(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,nt(t),this}function X(t){return G(t,\"mousewheel\",Y),this}function J(t){return V(t,\"mousedown touchstart dblclick\",Y),G(t,\"click\",et),this}function $(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Q(t){return $(t),Y(t),this}function tt(t,i){if(!i)return new x(t.clientX,t.clientY);var e=i.getBoundingClientRect(),n=e.width/i.offsetWidth||1,o=e.height/i.offsetHeight||1;return new x(t.clientX/n-e.left-i.clientLeft,t.clientY/o-e.top-i.clientTop)}function it(t){return Pi?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ce:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function et(t){_e[t.type]=!0}function nt(t){var i=_e[t.type];return _e[t.type]=!1,i}function ot(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}function st(t,i){var e=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=pi&&e-pi;n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?Q(t):(pi=e,i(t))}function rt(t){return\"string\"==typeof t?document.getElementById(t):t}function at(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||\"auto\"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[i]:null}return\"auto\"===e?null:e}function ht(t,i,e){var n=document.createElement(t);return n.className=i||\"\",e&&e.appendChild(n),n}function ut(t){var i=t.parentNode;i&&i.removeChild(t)}function lt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ct(t){var i=t.parentNode;i.lastChild!==t&&i.appendChild(t)}function _t(t){var i=t.parentNode;i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function dt(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=gt(t);return e.length>0&&new RegExp(\"(^|\\\\s)\"+i+\"(\\\\s|$)\").test(e)}function pt(t,i){if(void 0!==t.classList)for(var e=u(i),n=0,o=e.length;n<o;n++)t.classList.add(e[n]);else if(!dt(t,i)){var s=gt(t);ft(t,(s?s+\" \":\"\")+i)}}function mt(t,i){void 0!==t.classList?t.classList.remove(i):ft(t,h((\" \"+gt(t)+\" \").replace(\" \"+i+\" \",\" \")))}function ft(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function gt(t){return void 0===t.className.baseVal?t.className:t.className.baseVal}function vt(t,i){\"opacity\"in t.style?t.style.opacity=i:\"filter\"in t.style&&yt(t,i)}function yt(t,i){var e=!1,n=\"DXImageTransform.Microsoft.Alpha\";try{e=t.filters.item(n)}catch(t){if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=\" progid:\"+n+\"(opacity=\"+i+\")\"}function xt(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function wt(t,i,e){var n=i||new x(0,0);t.style[pe]=(Oi?\"translate(\"+n.x+\"px,\"+n.y+\"px)\":\"translate3d(\"+n.x+\"px,\"+n.y+\"px,0)\")+(e?\" scale(\"+e+\")\":\"\")}function Lt(t,i){t._leaflet_pos=i,Ni?wt(t,i):(t.style.left=i.x+\"px\",t.style.top=i.y+\"px\")}function Pt(t){return t._leaflet_pos||new x(0,0)}function bt(){V(window,\"dragstart\",$)}function Tt(){q(window,\"dragstart\",$)}function zt(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Mt(),ve=t,ye=t.style.outline,t.style.outline=\"none\",V(window,\"keydown\",Mt))}function Mt(){ve&&(ve.style.outline=ye,ve=void 0,ye=void 0,q(window,\"keydown\",Mt))}function Ct(t,i){if(!i||!t.length)return t.slice();var e=i*i;return t=kt(t,e),t=St(t,e)}function Zt(t,i,e){return Math.sqrt(Rt(t,i,e,!0))}function St(t,i){var e=t.length,n=new(typeof Uint8Array!=void 0+\"\"?Uint8Array:Array)(e);n[0]=n[e-1]=1,Et(t,n,i,0,e-1);var o,s=[];for(o=0;o<e;o++)n[o]&&s.push(t[o]);return s}function Et(t,i,e,n,o){var s,r,a,h=0;for(r=n+1;r<=o-1;r++)(a=Rt(t[r],t[n],t[o],!0))>h&&(s=r,h=a);h>e&&(i[s]=1,Et(t,i,e,n,s),Et(t,i,e,s,o))}function kt(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;n<s;n++)Ot(t[n],t[o])>i&&(e.push(t[n]),o=n);return o<s-1&&e.push(t[s-1]),e}function It(t,i,e,n,o){var s,r,a,h=n?Se:Bt(t,e),u=Bt(i,e);for(Se=u;;){if(!(h|u))return[t,i];if(h&u)return!1;a=Bt(r=At(t,i,s=h||u,e,o),e),s===h?(t=r,h=a):(i=r,u=a)}}function At(t,i,e,n,o){var s,r,a=i.x-t.x,h=i.y-t.y,u=n.min,l=n.max;return 8&e?(s=t.x+a*(l.y-t.y)/h,r=l.y):4&e?(s=t.x+a*(u.y-t.y)/h,r=u.y):2&e?(s=l.x,r=t.y+h*(l.x-t.x)/a):1&e&&(s=u.x,r=t.y+h*(u.x-t.x)/a),new x(s,r,o)}function Bt(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function Ot(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n}function Rt(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return u>0&&((o=((t.x-s)*a+(t.y-r)*h)/u)>1?(s=e.x,r=e.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new x(s,r)}function Dt(t){return!ei(t[0])||\"object\"!=typeof t[0][0]&&void 0!==t[0][0]}function Nt(t){return console.warn(\"Deprecated use of _flat, please use L.LineUtil.isFlat instead.\"),Dt(t)}function jt(t,i,e){var n,o,s,r,a,h,u,l,c,_=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Bt(t[o],i);for(r=0;r<4;r++){for(l=_[r],n=[],o=0,s=(u=t.length)-1;o<u;s=o++)a=t[o],h=t[s],a._code&l?h._code&l||((c=At(h,a,l,i,e))._code=Bt(c,i),n.push(c)):(h._code&l&&((c=At(h,a,l,i,e))._code=Bt(c,i),n.push(c)),n.push(a));t=n}return t}function Wt(t,i){var e,n,o,s,r=\"Feature\"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],u=i&&i.pointToLayer,l=i&&i.coordsToLatLng||Ht;if(!a&&!r)return null;switch(r.type){case\"Point\":return e=l(a),u?u(t,e):new Xe(e);case\"MultiPoint\":for(o=0,s=a.length;o<s;o++)e=l(a[o]),h.push(u?u(t,e):new Xe(e));return new qe(h);case\"LineString\":case\"MultiLineString\":return n=Ft(a,\"LineString\"===r.type?0:1,l),new tn(n,i);case\"Polygon\":case\"MultiPolygon\":return n=Ft(a,\"Polygon\"===r.type?1:2,l),new en(n,i);case\"GeometryCollection\":for(o=0,s=r.geometries.length;o<s;o++){var c=Wt({geometry:r.geometries[o],type:\"Feature\",properties:t.properties},i);c&&h.push(c)}return new qe(h);default:throw new Error(\"Invalid GeoJSON object.\")}}function Ht(t){return new M(t[1],t[0],t[2])}function Ft(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?Ft(t[s],i-1,e):(e||Ht)(t[s]),o.push(n);return o}function Ut(t,i){return i=\"number\"==typeof i?i:6,void 0!==t.alt?[a(t.lng,i),a(t.lat,i),a(t.alt,i)]:[a(t.lng,i),a(t.lat,i)]}function Vt(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?Vt(t[s],i-1,e,n):Ut(t[s],n));return!i&&e&&o.push(o[0]),o}function qt(t,e){return t.feature?i({},t.feature,{geometry:e}):Gt(e)}function Gt(t){return\"Feature\"===t.type||\"FeatureCollection\"===t.type?t:{type:\"Feature\",properties:{},geometry:t}}function Kt(t,i){return new nn(t,i)}function Yt(t,i){return new dn(t,i)}function Xt(t){return Yi?new fn(t):null}function Jt(t){return Xi||Ji?new xn(t):null}var $t=Object.freeze;Object.freeze=function(t){return t};var Qt=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}(),ti=0,ii=/\\{ *([\\w_-]+) *\\}/g,ei=Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},ni=\"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=\",oi=0,si=window.requestAnimationFrame||p(\"RequestAnimationFrame\")||m,ri=window.cancelAnimationFrame||p(\"CancelAnimationFrame\")||p(\"CancelRequestAnimationFrame\")||function(t){window.clearTimeout(t)},ai=(Object.freeze||Object)({freeze:$t,extend:i,create:Qt,bind:e,lastId:ti,stamp:n,throttle:o,wrapNum:s,falseFn:r,formatNum:a,trim:h,splitWords:u,setOptions:l,getParamString:c,template:_,isArray:ei,indexOf:d,emptyImageUrl:ni,requestFn:si,cancelFn:ri,requestAnimFrame:f,cancelAnimFrame:g});v.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=Qt(n);o.constructor=e,e.prototype=o;for(var s in this)this.hasOwnProperty(s)&&\"prototype\"!==s&&\"__super__\"!==s&&(e[s]=this[s]);return t.statics&&(i(e,t.statics),delete t.statics),t.includes&&(y(t.includes),i.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=i(Qt(o.options),t.options)),i(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=o._initHooks.length;t<i;t++)o._initHooks[t].call(this)}},e},v.include=function(t){return i(this.prototype,t),this},v.mergeOptions=function(t){return i(this.prototype.options,t),this},v.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e=\"function\"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var hi={on:function(t,i,e){if(\"object\"==typeof t)for(var n in t)this._on(n,t[n],i);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],i,e);return this},off:function(t,i,e){if(t)if(\"object\"==typeof t)for(var n in t)this._off(n,t[n],i);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._off(t[o],i,e);else delete this._events;return this},_on:function(t,i,e){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),e===this&&(e=void 0);for(var o={fn:i,ctx:e},s=n,r=0,a=s.length;r<a;r++)if(s[r].fn===i&&s[r].ctx===e)return;s.push(o)},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t]))if(i){if(e===this&&(e=void 0),n)for(o=0,s=n.length;o<s;o++){var a=n[o];if(a.ctx===e&&a.fn===i)return a.fn=r,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,s=n.length;o<s;o++)n[o].fn=r;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var h=s[r];h.fn.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,i){var e=this._events&&this._events[t];if(e&&e.length)return!0;if(i)for(var n in this._eventParents)if(this._eventParents[n].listens(t,i))return!0;return!1},once:function(t,i,n){if(\"object\"==typeof t){for(var o in t)this.once(o,t[o],i);return this}var s=e(function(){this.off(t,i,n).off(t,s,n)},this);return this.on(t,i,n).on(t,s,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[n(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[n(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};hi.addEventListener=hi.on,hi.removeEventListener=hi.clearAllEventListeners=hi.off,hi.addOneTimeEventListener=hi.once,hi.fireEvent=hi.fire,hi.hasEventListeners=hi.listens;var ui=v.extend(hi),li=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new x(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new x(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=li(this.x),this.y=li(this.y),this},distanceTo:function(t){var i=(t=w(t)).x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){return(t=w(t)).x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return\"Point(\"+a(this.x)+\", \"+a(this.y)+\")\"}},P.prototype={extend:function(t){return t=w(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new x((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new x(this.min.x,this.max.y)},getTopRight:function(){return new x(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return(t=\"number\"==typeof t[0]||t instanceof x?w(t):b(t))instanceof P?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.x<e.x,r=o.y>i.y&&n.y<e.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},T.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof M)i=t,e=t;else{if(!(t instanceof T))return t?this.extend(C(t)||z(t)):this;if(i=t._southWest,e=t._northEast,!i||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new M(i.lat,i.lng),this._northEast=new M(e.lat,e.lng)),this},pad:function(t){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*t,o=Math.abs(i.lng-e.lng)*t;return new T(new M(i.lat-n,i.lng-o),new M(e.lat+n,e.lng+o))},getCenter:function(){return new M((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new M(this.getNorth(),this.getWest())},getSouthEast:function(){return new M(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=\"number\"==typeof t[0]||t instanceof M||\"lat\"in t?C(t):z(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof T?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lat<e.lat,r=o.lng>i.lng&&n.lng<e.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(\",\")},equals:function(t,i){return!!t&&(t=z(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}},M.prototype={equals:function(t,i){return!!t&&(t=C(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return\"LatLng(\"+a(this.lat,t)+\", \"+a(this.lng,t)+\")\"},distanceTo:function(t){return _i.distance(this,C(t))},wrap:function(){return _i.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return z([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new M(this.lat,this.lng,this.alt)}};var ci={latLngToPoint:function(t,i){var e=this.projection.project(t),n=this.scale(i);return this.transformation._transform(e,n)},pointToLatLng:function(t,i){var e=this.scale(i),n=this.transformation.untransform(t,e);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,e=this.scale(t);return new P(this.transformation.transform(i.min,e),this.transformation.transform(i.max,e))},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng;return new M(this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),n=i.lat-e.lat,o=i.lng-e.lng;if(0===n&&0===o)return t;var s=t.getSouthWest(),r=t.getNorthEast();return new T(new M(s.lat-n,s.lng-o),new M(r.lat-n,r.lng-o))}},_i=i({},ci,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,n=t.lat*e,o=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),r=Math.sin((i.lng-t.lng)*e/2),a=s*s+Math.cos(n)*Math.cos(o)*r*r,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}}),di={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,n=Math.max(Math.min(e,t.lat),-e),o=Math.sin(n*i);return new x(this.R*t.lng*i,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var i=180/Math.PI;return new M((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=6378137*Math.PI;return new P([-t,-t],[t,t])}()};Z.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new x((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};var pi,mi,fi,gi,vi=i({},_i,{code:\"EPSG:3857\",projection:di,transformation:function(){var t=.5/(Math.PI*di.R);return S(t,.5,-t,.5)}()}),yi=i({},vi,{code:\"EPSG:900913\"}),xi=document.documentElement.style,wi=\"ActiveXObject\"in window,Li=wi&&!document.addEventListener,Pi=\"msLaunchUri\"in navigator&&!(\"documentMode\"in document),bi=I(\"webkit\"),Ti=I(\"android\"),zi=I(\"android 2\")||I(\"android 3\"),Mi=parseInt(/WebKit\\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ci=Ti&&I(\"Google\")&&Mi<537&&!(\"AudioNode\"in window),Zi=!!window.opera,Si=I(\"chrome\"),Ei=I(\"gecko\")&&!bi&&!Zi&&!wi,ki=!Si&&I(\"safari\"),Ii=I(\"phantom\"),Ai=\"OTransition\"in xi,Bi=0===navigator.platform.indexOf(\"Win\"),Oi=wi&&\"transition\"in xi,Ri=\"WebKitCSSMatrix\"in window&&\"m11\"in new window.WebKitCSSMatrix&&!zi,Di=\"MozPerspective\"in xi,Ni=!window.L_DISABLE_3D&&(Oi||Ri||Di)&&!Ai&&!Ii,ji=\"undefined\"!=typeof orientation||I(\"mobile\"),Wi=ji&&bi,Hi=ji&&Ri,Fi=!window.PointerEvent&&window.MSPointerEvent,Ui=!(!window.PointerEvent&&!Fi),Vi=!window.L_NO_TOUCH&&(Ui||\"ontouchstart\"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),qi=ji&&Zi,Gi=ji&&Ei,Ki=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Yi=!!document.createElement(\"canvas\").getContext,Xi=!(!document.createElementNS||!E(\"svg\").createSVGRect),Ji=!Xi&&function(){try{var t=document.createElement(\"div\");t.innerHTML='<v:shape adj=\"1\"/>';var i=t.firstChild;return i.style.behavior=\"url(#default#VML)\",i&&\"object\"==typeof i.adj}catch(t){return!1}}(),$i=(Object.freeze||Object)({ie:wi,ielt9:Li,edge:Pi,webkit:bi,android:Ti,android23:zi,androidStock:Ci,opera:Zi,chrome:Si,gecko:Ei,safari:ki,phantom:Ii,opera12:Ai,win:Bi,ie3d:Oi,webkit3d:Ri,gecko3d:Di,any3d:Ni,mobile:ji,mobileWebkit:Wi,mobileWebkit3d:Hi,msPointer:Fi,pointer:Ui,touch:Vi,mobileOpera:qi,mobileGecko:Gi,retina:Ki,canvas:Yi,svg:Xi,vml:Ji}),Qi=Fi?\"MSPointerDown\":\"pointerdown\",te=Fi?\"MSPointerMove\":\"pointermove\",ie=Fi?\"MSPointerUp\":\"pointerup\",ee=Fi?\"MSPointerCancel\":\"pointercancel\",ne=[\"INPUT\",\"SELECT\",\"OPTION\"],oe={},se=!1,re=0,ae=Fi?\"MSPointerDown\":Ui?\"pointerdown\":\"touchstart\",he=Fi?\"MSPointerUp\":Ui?\"pointerup\":\"touchend\",ue=\"_leaflet_\",le=\"_leaflet_events\",ce=Bi&&Si?2*window.devicePixelRatio:Ei?window.devicePixelRatio:1,_e={},de=(Object.freeze||Object)({on:V,off:q,stopPropagation:Y,disableScrollPropagation:X,disableClickPropagation:J,preventDefault:$,stop:Q,getMousePosition:tt,getWheelDelta:it,fakeStop:et,skipped:nt,isExternalTarget:ot,addListener:V,removeListener:q}),pe=xt([\"transform\",\"WebkitTransform\",\"OTransform\",\"MozTransform\",\"msTransform\"]),me=xt([\"webkitTransition\",\"transition\",\"OTransition\",\"MozTransition\",\"msTransition\"]),fe=\"webkitTransition\"===me||\"OTransition\"===me?me+\"End\":\"transitionend\";if(\"onselectstart\"in document)mi=function(){V(window,\"selectstart\",$)},fi=function(){q(window,\"selectstart\",$)};else{var ge=xt([\"userSelect\",\"WebkitUserSelect\",\"OUserSelect\",\"MozUserSelect\",\"msUserSelect\"]);mi=function(){if(ge){var t=document.documentElement.style;gi=t[ge],t[ge]=\"none\"}},fi=function(){ge&&(document.documentElement.style[ge]=gi,gi=void 0)}}var ve,ye,xe=(Object.freeze||Object)({TRANSFORM:pe,TRANSITION:me,TRANSITION_END:fe,get:rt,getStyle:at,create:ht,remove:ut,empty:lt,toFront:ct,toBack:_t,hasClass:dt,addClass:pt,removeClass:mt,setClass:ft,getClass:gt,setOpacity:vt,testProp:xt,setTransform:wt,setPosition:Lt,getPosition:Pt,disableTextSelection:mi,enableTextSelection:fi,disableImageDrag:bt,enableImageDrag:Tt,preventOutline:zt,restoreOutline:Mt}),we=ui.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Pt(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire(\"start\"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=f(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));i&&e._round(),Lt(this._el,e),this.fire(\"step\")},_complete:function(){g(this._animId),this._inProgress=!1,this.fire(\"end\")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Le=ui.extend({options:{crs:vi,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=l(this,i),this._initContainer(t),this._initLayout(),this._onResize=e(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(C(i.center),i.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=me&&Ni&&!qi&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),V(this._proxy,fe,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(C(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e),this)},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(Ni?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(Ni?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var n=this.getZoomScale(i),o=this.getSize().divideBy(2),s=(t instanceof x?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():z(t);var e=w(i.paddingTopLeft||i.padding||[0,0]),n=w(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));if((o=\"number\"==typeof i.maxZoom?Math.min(i.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(e).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(a).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,i){if(!(t=z(t)).isValid())throw new Error(\"Bounds are not valid.\");var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=w(t).round(),i=i||{},!t.x&&!t.y)return this.fire(\"moveend\");if(!0!==i.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new we,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire(\"movestart\"),!1!==i.animate){pt(this._mapPane,\"leaflet-pan-anim\");var e=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire(\"move\").fire(\"moveend\");return this},flyTo:function(t,i,e){function n(t){var i=(g*g-m*m+(t?-1:1)*x*x*v*v)/(2*(t?g:m)*x*v),e=Math.sqrt(i*i+1)-i;return e<1e-9?-18:Math.log(e)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function r(t){return o(t)/s(t)}function a(t){return m*(s(w)/s(w+y*t))}function h(t){return m*(s(w)*r(w+y*t)-o(w))/x}function u(t){return 1-Math.pow(1-t,1.5)}function l(){var e=(Date.now()-L)/b,n=u(e)*P;e<=1?(this._flyToFrame=f(l,this),this._move(this.unproject(c.add(_.subtract(c).multiplyBy(h(n)/v)),p),this.getScaleZoom(m/a(n),p),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}if(!1===(e=e||{}).animate||!Ni)return this.setView(t,i,e);this._stop();var c=this.project(this.getCenter()),_=this.project(t),d=this.getSize(),p=this._zoom;t=C(t),i=void 0===i?p:i;var m=Math.max(d.x,d.y),g=m*this.getZoomScale(p,i),v=_.distanceTo(c)||1,y=1.42,x=y*y,w=n(0),L=Date.now(),P=(n(1)-w)/y,b=e.duration?1e3*e.duration:1e3*P*.8;return this._moveStart(!0,e.noMoveStart),l.call(this),this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){return(t=z(t)).isValid()?(this.options.maxBounds&&this.off(\"moveend\",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on(\"moveend\",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off(\"moveend\",this._panInsideMaxBounds))},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire(\"zoomlevelschange\"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire(\"zoomlevelschange\"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,z(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),r=o.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire(\"move\"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(e(this.fire,this,\"moveend\"),200)):this.fire(\"moveend\")),this.fire(\"resize\",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire(\"viewreset\"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!(\"geolocation\"in navigator))return this._handleGeolocationError({code:0,message:\"Geolocation not supported.\"}),this;var n=e(this._handleGeolocationResponse,this),o=e(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?\"permission denied\":2===i?\"position unavailable\":\"timeout\");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire(\"locationerror\",{code:i,message:\"Geolocation error: \"+e+\".\"})},_handleGeolocationResponse:function(t){var i=new M(t.coords.latitude,t.coords.longitude),e=i.toBounds(t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(e);this.setView(i,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:i,bounds:e,timestamp:t.timestamp};for(var r in t.coords)\"number\"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire(\"locationfound\",s)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error(\"Map container is being reused by another instance\");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire(\"unload\");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)ut(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e=ht(\"div\",\"leaflet-pane\"+(t?\" leaflet-\"+t.replace(\"Pane\",\"\")+\"-pane\":\"\"),i||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new T(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=z(t),e=w(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=b(this.project(a,n),this.project(r,n)).getSize(),l=Ni?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_);return n=this.getScaleZoom(d,n),l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new P(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return\"string\"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(C(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(w(t),i)},layerPointToLatLng:function(t){var i=w(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(C(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(C(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,i){return this.options.crs.distance(C(t),C(i))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(C(t)))},mouseEventToContainerPoint:function(t){return tt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=rt(t);if(!i)throw new Error(\"Map container not found.\");if(i._leaflet_id)throw new Error(\"Map container is already initialized.\");V(i,\"scroll\",this._onScroll,this),this._containerId=n(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ni,pt(t,\"leaflet-container\"+(Vi?\" leaflet-touch\":\"\")+(Ki?\" leaflet-retina\":\"\")+(Li?\" leaflet-oldie\":\"\")+(ki?\" leaflet-safari\":\"\")+(this._fadeAnimated?\" leaflet-fade-anim\":\"\"));var i=at(t,\"position\");\"absolute\"!==i&&\"relative\"!==i&&\"fixed\"!==i&&(t.style.position=\"relative\"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane(\"mapPane\",this._container),Lt(this._mapPane,new x(0,0)),this.createPane(\"tilePane\"),this.createPane(\"shadowPane\"),this.createPane(\"overlayPane\"),this.createPane(\"markerPane\"),this.createPane(\"tooltipPane\"),this.createPane(\"popupPane\"),this.options.markerZoomAnimation||(pt(t.markerPane,\"leaflet-zoom-hide\"),pt(t.shadowPane,\"leaflet-zoom-hide\"))},_resetView:function(t,i){Lt(this._mapPane,new x(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire(\"viewprereset\");var n=this._zoom!==i;this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire(\"viewreset\"),e&&this.fire(\"load\")},_moveStart:function(t,i){return t&&this.fire(\"zoomstart\"),i||this.fire(\"movestart\"),this},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire(\"zoom\",e),this.fire(\"move\",e)},_moveEnd:function(t){return t&&this.fire(\"zoomend\"),this.fire(\"moveend\")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Lt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error(\"Set map center and zoom first.\")},_initEvents:function(t){this._targets={},this._targets[n(this._container)]=this;var i=t?q:V;i(this._container,\"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress\",this._handleDOMEvent,this),this.options.trackResize&&i(window,\"resize\",this._onResize,this),Ni&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,\"moveend\",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=f(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,o=[],s=\"mouseout\"===i||\"mouseover\"===i,r=t.target||t.srcElement,a=!1;r;){if((e=this._targets[n(r)])&&(\"click\"===i||\"preclick\"===i)&&!t._simulated&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(s&&!ot(r,t))break;if(o.push(e),s)break}if(r===this._container)break;r=r.parentNode}return o.length||a||s||!ot(r,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!nt(t)){var i=t.type;\"mousedown\"!==i&&\"keypress\"!==i||zt(t.target||t.srcElement),this._fireDOMEvent(t,i)}},_mouseEvents:[\"click\",\"dblclick\",\"mouseover\",\"mouseout\",\"contextmenu\"],_fireDOMEvent:function(t,e,n){if(\"click\"===t.type){var o=i({},t);o.type=\"preclick\",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e))).length){var s=n[0];\"contextmenu\"===e&&s.listens(e,!0)&&$(t);var r={originalEvent:t};if(\"keypress\"!==t.type){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h<n.length;h++)if(n[h].fire(e,r,!0),r.originalEvent._stopped||!1===n[h].options.bubblingMouseEvents&&-1!==d(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on(\"load\",t,i),this},_getMapPanePos:function(){return Pt(this._mapPane)||new x(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return b([this.project(t.getSouthWest(),i)._subtract(n),this.project(t.getNorthWest(),i)._subtract(n),this.project(t.getSouthEast(),i)._subtract(n),this.project(t.getNorthEast(),i)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e)return t;var n=this.project(t,i),o=this.getSize().divideBy(2),s=new P(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,e,i);return r.round().equals([0,0])?t:this.unproject(n.add(r),i)},_limitOffset:function(t,i){if(!i)return t;var e=this.getPixelBounds(),n=new P(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(n,i))},_getBoundsOffset:function(t,i,e){var n=b(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),o=n.min.subtract(t.min),s=n.max.subtract(t.max);return new x(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=Ni?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire(\"move\")},_onPanTransitionEnd:function(){mt(this._mapPane,\"leaflet-pan-anim\"),this.fire(\"moveend\")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=ht(\"div\",\"leaflet-proxy leaflet-zoom-animated\");this._panes.mapPane.appendChild(t),this.on(\"zoomanim\",function(t){var i=pe,e=this._proxy.style[i];wt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on(\"load moveend\",function(){var t=this.getCenter(),i=this.getZoom();wt(this._proxy,this.project(t,i),this.getZoomScale(i,1))},this),this._on(\"unload\",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ut(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf(\"transform\")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName(\"leaflet-zoom-animated\").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(o))&&(f(function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,pt(this._mapPane,\"leaflet-zoom-anim\")),this.fire(\"zoomanim\",{center:t,zoom:i,noUpdate:o}),setTimeout(e(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&mt(this._mapPane,\"leaflet-zoom-anim\"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),f(function(){this._moveEnd(!0)},this))}}),Pe=v.extend({options:{position:\"topright\"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return pt(i,\"leaflet-control\"),-1!==e.indexOf(\"bottom\")?n.insertBefore(i,n.firstChild):n.appendChild(i),this},remove:function(){return this._map?(ut(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),be=function(t){return new Pe(t)};Le.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var s=e+t+\" \"+e+o;i[t+o]=ht(\"div\",s,n)}var i=this._controlCorners={},e=\"leaflet-\",n=this._controlContainer=ht(\"div\",e+\"control-container\",this._container);t(\"top\",\"left\"),t(\"top\",\"right\"),t(\"bottom\",\"left\"),t(\"bottom\",\"right\")},_clearControlPos:function(){for(var t in this._controlCorners)ut(this._controlCorners[t]);ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Te=Pe.extend({options:{collapsed:!0,position:\"topright\",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){l(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on(\"zoomend\",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on(\"add remove\",this._onLayerChange,this);return this._container},addTo:function(t){return Pe.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off(\"zoomend\",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off(\"add remove\",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off(\"add remove\",this._onLayerChange,this);var i=this._getLayer(n(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){pt(this._container,\"leaflet-control-layers-expanded\"),this._form.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._form.clientHeight?(pt(this._form,\"leaflet-control-layers-scrollbar\"),this._form.style.height=t+\"px\"):mt(this._form,\"leaflet-control-layers-scrollbar\"),this._checkDisabledLayers(),this},collapse:function(){return mt(this._container,\"leaflet-control-layers-expanded\"),this},_initLayout:function(){var t=\"leaflet-control-layers\",i=this._container=ht(\"div\",t),e=this.options.collapsed;i.setAttribute(\"aria-haspopup\",!0),J(i),X(i);var n=this._form=ht(\"form\",t+\"-list\");e&&(this._map.on(\"click\",this.collapse,this),Ti||V(i,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=ht(\"a\",t+\"-toggle\",i);o.href=\"#\",o.title=\"Layers\",Vi?(V(o,\"click\",Q),V(o,\"click\",this.expand,this)):V(o,\"focus\",this.expand,this),e||this.expand(),this._baseLayersList=ht(\"div\",t+\"-base\",n),this._separator=ht(\"div\",t+\"-separator\",n),this._overlaysList=ht(\"div\",t+\"-overlays\",n),i.appendChild(n)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&n(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,n){this._map&&t.on(\"add remove\",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:n}),this.options.sortLayers&&this._layers.sort(e(function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;lt(this._baseLayersList),lt(this._overlaysList),this._layerControlInputs=[];var t,i,e,n,o=0;for(e=0;e<this._layers.length;e++)n=this._layers[e],this._addItem(n),i=i||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?\"\":\"none\"),this._separator.style.display=i&&t?\"\":\"none\",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(n(t.target)),e=i.overlay?\"add\"===t.type?\"overlayadd\":\"overlayremove\":\"add\"===t.type?\"baselayerchange\":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='<input type=\"radio\" class=\"leaflet-control-layers-selector\" name=\"'+t+'\"'+(i?' checked=\"checked\"':\"\")+\"/>\",n=document.createElement(\"div\");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement(\"label\"),o=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement(\"input\")).type=\"checkbox\",i.className=\"leaflet-control-layers-selector\",i.defaultChecked=o):i=this._createRadioElement(\"leaflet-base-layers\",o),this._layerControlInputs.push(i),i.layerId=n(t.layer),V(i,\"click\",this._onInputClick,this);var s=document.createElement(\"span\");s.innerHTML=\" \"+t.name;var r=document.createElement(\"div\");return e.appendChild(r),r.appendChild(i),r.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;s>=0;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;o>=0;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),ze=Pe.extend({options:{position:\"topleft\",zoomInText:\"+\",zoomInTitle:\"Zoom in\",zoomOutText:\"−\",zoomOutTitle:\"Zoom out\"},onAdd:function(t){var i=\"leaflet-control-zoom\",e=ht(\"div\",i+\" leaflet-bar\"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+\"-in\",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+\"-out\",e,this._zoomOut),this._updateDisabled(),t.on(\"zoomend zoomlevelschange\",this._updateDisabled,this),e},onRemove:function(t){t.off(\"zoomend zoomlevelschange\",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=ht(\"a\",e,n);return s.innerHTML=t,s.href=\"#\",s.title=i,s.setAttribute(\"role\",\"button\"),s.setAttribute(\"aria-label\",i),J(s),V(s,\"click\",Q),V(s,\"click\",o,this),V(s,\"click\",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i=\"leaflet-disabled\";mt(this._zoomInButton,i),mt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMinZoom())&&pt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMaxZoom())&&pt(this._zoomInButton,i)}});Le.mergeOptions({zoomControl:!0}),Le.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ze,this.addControl(this.zoomControl))});var Me=Pe.extend({options:{position:\"bottomleft\",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i=ht(\"div\",\"leaflet-control-scale\"),e=this.options;return this._addScales(e,\"leaflet-control-scale-line\",i),t.on(e.updateWhenIdle?\"moveend\":\"move\",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?\"moveend\":\"move\",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=ht(\"div\",i,e)),t.imperial&&(this._iScale=ht(\"div\",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+\" m\":i/1e3+\" km\";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;o>5280?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+\" mi\",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+\" ft\",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+\"px\",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+\"\").length-1),e=t/i;return e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1,i*e}}),Ce=Pe.extend({options:{position:\"bottomright\",prefix:'<a href=\"http://leafletjs.com\" title=\"A JS library for interactive maps\">Leaflet</a>'},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=ht(\"div\",\"leaflet-control-attribution\"),J(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(\", \")),this._container.innerHTML=e.join(\" | \")}}});Le.mergeOptions({attributionControl:!0}),Le.addInitHook(function(){this.options.attributionControl&&(new Ce).addTo(this)});Pe.Layers=Te,Pe.Zoom=ze,Pe.Scale=Me,Pe.Attribution=Ce,be.layers=function(t,i,e){return new Te(t,i,e)},be.zoom=function(t){return new ze(t)},be.scale=function(t){return new Me(t)},be.attribution=function(t){return new Ce(t)};var Ze=v.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ze.addTo=function(t,i){return t.addHandler(i,this),this};var Se,Ee={Events:hi},ke=Vi?\"touchstart mousedown\":\"mousedown\",Ie={mousedown:\"mouseup\",touchstart:\"touchend\",pointerdown:\"touchend\",MSPointerDown:\"touchend\"},Ae={mousedown:\"mousemove\",touchstart:\"touchmove\",pointerdown:\"touchmove\",MSPointerDown:\"touchmove\"},Be=ui.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){l(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(V(this._dragStartTarget,ke,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Be._dragging===this&&this.finishDrag(),q(this._dragStartTarget,ke,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!dt(this._element,\"leaflet-zoom-anim\")&&!(Be._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Be._dragging=this,this._preventOutline&&zt(this._element),bt(),mi(),this._moving)))){this.fire(\"down\");var i=t.touches?t.touches[0]:t;this._startPoint=new x(i.clientX,i.clientY),V(document,Ae[t.type],this._onMove,this),V(document,Ie[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,e=new x(i.clientX,i.clientY).subtract(this._startPoint);(e.x||e.y)&&(Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||($(t),this._moved||(this.fire(\"dragstart\"),this._moved=!0,this._startPos=Pt(this._element).subtract(e),pt(document.body,\"leaflet-dragging\"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pt(this._lastTarget,\"leaflet-drag-target\")),this._newPos=this._startPos.add(e),this._moving=!0,g(this._animRequest),this._lastEvent=t,this._animRequest=f(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire(\"predrag\",t),Lt(this._element,this._newPos),this.fire(\"drag\",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){mt(document.body,\"leaflet-dragging\"),this._lastTarget&&(mt(this._lastTarget,\"leaflet-drag-target\"),this._lastTarget=null);for(var t in Ae)q(document,Ae[t],this._onMove,this),q(document,Ie[t],this._onUp,this);Tt(),fi(),this._moved&&this._moving&&(g(this._animRequest),this.fire(\"dragend\",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Be._dragging=!1}}),Oe=(Object.freeze||Object)({simplify:Ct,pointToSegmentDistance:Zt,closestPointOnSegment:function(t,i,e){return Rt(t,i,e)},clipSegment:It,_getEdgeIntersection:At,_getBitCode:Bt,_sqClosestPointOnSegment:Rt,isFlat:Dt,_flat:Nt}),Re=(Object.freeze||Object)({clipPolygon:jt}),De={project:function(t){return new x(t.lng,t.lat)},unproject:function(t){return new M(t.y,t.x)},bounds:new P([-180,-90],[180,90])},Ne={R:6378137,R_MINOR:6356752.314245179,bounds:new P([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,n=t.lat*i,o=this.R_MINOR/e,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-e*Math.log(Math.max(a,1e-10)),new x(t.lng*i*e,n)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,u=.1;h<15&&Math.abs(u)>1e-7;h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=u=Math.PI/2-2*Math.atan(r*i)-a;return new M(a*e,t.x*e/n)}},je=(Object.freeze||Object)({LonLat:De,Mercator:Ne,SphericalMercator:di}),We=i({},_i,{code:\"EPSG:3395\",projection:Ne,transformation:function(){var t=.5/(Math.PI*Ne.R);return S(t,.5,-t,.5)}()}),He=i({},_i,{code:\"EPSG:4326\",projection:De,transformation:S(1/180,1,-1/180,.5)}),Fe=i({},ci,{projection:De,transformation:S(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});ci.Earth=_i,ci.EPSG3395=We,ci.EPSG3857=vi,ci.EPSG900913=yi,ci.EPSG4326=He,ci.Simple=Fe;var Ue=ui.extend({options:{pane:\"overlayPane\",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[n(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[n(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var e=this.getEvents();i.on(e,this),this.once(\"remove\",function(){i.off(e,this)},this)}this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire(\"add\"),i.fire(\"layeradd\",{layer:this})}}});Le.include({addLayer:function(t){if(!t._layerAdd)throw new Error(\"The provided object is not a Layer.\");var i=n(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=n(t);return this._layers[i]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire(\"layerremove\",{layer:t}),t.fire(\"remove\")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&n(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?ei(t)?t:[t]:[]).length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[n(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=n(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,e=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,e!==this._getZoomSpan()&&this.fire(\"zoomlevelschange\"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ve=Ue.extend({initialize:function(t,i){l(this,i),this._layers={};var e,n;if(t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)(e=this._layers[i])[t]&&e[t].apply(e,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke(\"setZIndex\",t)},getLayerId:function(t){return n(t)}}),qe=Ve.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ve.prototype.addLayer.call(this,t),this.fire(\"layeradd\",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ve.prototype.removeLayer.call(this,t),this.fire(\"layerremove\",{layer:t})):this},setStyle:function(t){return this.invoke(\"setStyle\",t)},bringToFront:function(){return this.invoke(\"bringToFront\")},bringToBack:function(){return this.invoke(\"bringToBack\")},getBounds:function(){var t=new T;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}}),Ge=v.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){l(this,t)},createIcon:function(t){return this._createIcon(\"icon\",t)},createShadow:function(t){return this._createIcon(\"shadow\",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if(\"icon\"===t)throw new Error(\"iconUrl not set in Icon options (see the docs).\");return null}var n=this._createImg(e,i&&\"IMG\"===i.tagName?i:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,i){var e=this.options,n=e[i+\"Size\"];\"number\"==typeof n&&(n=[n,n]);var o=w(n),s=w(\"shadow\"===i&&e.shadowAnchor||e.iconAnchor||o&&o.divideBy(2,!0));t.className=\"leaflet-marker-\"+i+\" \"+(e.className||\"\"),s&&(t.style.marginLeft=-s.x+\"px\",t.style.marginTop=-s.y+\"px\"),o&&(t.style.width=o.x+\"px\",t.style.height=o.y+\"px\")},_createImg:function(t,i){return i=i||document.createElement(\"img\"),i.src=t,i},_getIconUrl:function(t){return Ki&&this.options[t+\"RetinaUrl\"]||this.options[t+\"Url\"]}}),Ke=Ge.extend({options:{iconUrl:\"marker-icon.png\",iconRetinaUrl:\"marker-icon-2x.png\",shadowUrl:\"marker-shadow.png\",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Ke.imagePath||(Ke.imagePath=this._detectIconPath()),(this.options.imagePath||Ke.imagePath)+Ge.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=ht(\"div\",\"leaflet-default-icon-path\",document.body),i=at(t,\"background-image\")||at(t,\"backgroundImage\");return document.body.removeChild(t),i=null===i||0!==i.indexOf(\"url\")?\"\":i.replace(/^url\\([\"']?/,\"\").replace(/marker-icon\\.png[\"']?\\)$/,\"\")}}),Ye=Ze.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Be(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pt(t,\"leaflet-marker-draggable\")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&mt(this._marker._icon,\"leaflet-marker-draggable\")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,e=i._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=L.DomUtil.getPosition(i._icon),r=e.getPixelBounds(),a=e.getPixelOrigin(),h=b(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));if(!h.contains(s)){var u=w((Math.max(h.max.x,s.x)-h.max.x)/(r.max.x-h.max.x)-(Math.min(h.min.x,s.x)-h.min.x)/(r.min.x-h.min.x),(Math.max(h.max.y,s.y)-h.max.y)/(r.max.y-h.max.y)-(Math.min(h.min.y,s.y)-h.min.y)/(r.min.y-h.min.y)).multiplyBy(n);e.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),L.DomUtil.setPosition(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=f(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire(\"movestart\").fire(\"dragstart\")},_onPreDrag:function(t){this._marker.options.autoPan&&(g(this._panRequest),this._panRequest=f(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,e=i._shadow,n=Pt(i._icon),o=i._map.layerPointToLatLng(n);e&&Lt(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire(\"move\",t).fire(\"drag\",t)},_onDragEnd:function(t){g(this._panRequest),delete this._oldLatLng,this._marker.fire(\"moveend\").fire(\"dragend\",t)}}),Xe=Ue.extend({options:{icon:new Ke,interactive:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10,keyboard:!0,title:\"\",alt:\"\",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:\"markerPane\",bubblingMouseEvents:!1},initialize:function(t,i){l(this,i),this._latlng=C(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on(\"zoomanim\",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off(\"zoomanim\",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=C(t),this.update(),this.fire(\"move\",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i=\"leaflet-zoom-\"+(this._zoomAnimated?\"animated\":\"hide\"),e=t.icon.createIcon(this._icon),n=!1;e!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),\"IMG\"===e.tagName&&(e.alt=t.alt||\"\")),pt(e,i),t.keyboard&&(e.tabIndex=\"0\"),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(pt(o,i),o.alt=\"\"),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane(\"shadowPane\").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ut(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ut(this._shadow),this._shadow=null},_setPos:function(t){Lt(this._icon,t),this._shadow&&Lt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(pt(this._icon,\"leaflet-interactive\"),this.addInteractiveTarget(this._icon),Ye)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ye(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;vt(this._icon,t),this._shadow&&vt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Je=Ue.extend({options:{stroke:!0,color:\"#3388ff\",weight:3,opacity:1,lineCap:\"round\",lineJoin:\"round\",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:\"evenodd\",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return l(this,t),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),$e=Je.extend({options:{fill:!0,radius:10},initialize:function(t,i){l(this,i),this._latlng=C(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=C(t),this.redraw(),this.fire(\"move\",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return Je.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),n=[t+e,i+e];this._pxBounds=new P(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Qe=$e.extend({initialize:function(t,e,n){if(\"number\"==typeof e&&(e=i({},n,{radius:e})),l(this,e),this._latlng=C(t),isNaN(this.options.radius))throw new Error(\"Circle radius cannot be NaN\");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new T(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Je.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,e=this._map,n=e.options.crs;if(n.distance===_i.distance){var o=Math.PI/180,s=this._mRadius/_i.R/o,r=e.project([i+s,t]),a=e.project([i-s,t]),h=r.add(a).divideBy(2),u=e.unproject(h).lat,l=Math.acos((Math.cos(s*o)-Math.sin(i*o)*Math.sin(u*o))/(Math.cos(i*o)*Math.cos(u*o)))/o;(isNaN(l)||0===l)&&(l=s/Math.cos(Math.PI/180*i)),this._point=h.subtract(e.getPixelOrigin()),this._radius=isNaN(l)?0:h.x-e.project([u,t-l]).x,this._radiusY=h.y-r.y}else{var c=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=e.latLngToLayerPoint(this._latlng),this._radius=this._point.x-e.latLngToLayerPoint(c).x}this._updateBounds()}}),tn=Je.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){l(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,e,n=1/0,o=null,s=Rt,r=0,a=this._parts.length;r<a;r++)for(var h=this._parts[r],u=1,l=h.length;u<l;u++){var c=s(t,i=h[u-1],e=h[u],!0);c<n&&(n=c,o=s(t,i,e))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error(\"Must add layer to map before using getCenter()\");var t,i,e,n,o,s,r,a=this._rings[0],h=a.length;if(!h)return null;for(t=0,i=0;t<h-1;t++)i+=a[t].distanceTo(a[t+1])/2;if(0===i)return this._map.layerPointToLatLng(a[0]);for(t=0,n=0;t<h-1;t++)if(o=a[t],s=a[t+1],e=o.distanceTo(s),(n+=e)>i)return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=C(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new T,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Dt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=Dt(t),n=0,o=t.length;n<o;n++)e?(i[n]=C(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t);var i=this._clickTolerance(),e=new x(i,i);this._bounds.isValid()&&t.isValid()&&(t.min._subtract(e),t.max._add(e),this._pxBounds=t)},_projectLatlngs:function(t,i,e){var n,o,s=t[0]instanceof M,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var i,e,n,o,s,r,a,h=this._parts;for(i=0,n=0,o=this._rings.length;i<o;i++)for(e=0,s=(a=this._rings[i]).length;e<s-1;e++)(r=It(a[e],a[e+1],t,e,!0))&&(h[n]=h[n]||[],h[n].push(r[0]),r[1]===a[e+1]&&e!==s-2||(h[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=Ct(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,s=this._parts.length;e<s;e++)for(n=0,o=(r=(a=this._parts[e]).length)-1;n<r;o=n++)if((i||0!==n)&&Zt(t,a[o],a[n])<=h)return!0;return!1}});tn._flat=Nt;var en=tn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error(\"Must add layer to map before using getCenter()\");var t,i,e,n,o,s,r,a,h,u=this._rings[0],l=u.length;if(!l)return null;for(s=r=a=0,t=0,i=l-1;t<l;i=t++)e=u[t],n=u[i],o=e.y*n.x-n.y*e.x,r+=(e.x+n.x)*o,a+=(e.y+n.y)*o,s+=3*o;return h=0===s?u[0]:[r/s,a/s],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var i=tn.prototype._convertLatLngs.call(this,t),e=i.length;return e>=2&&i[0]instanceof M&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){tn.prototype._setLatLngs.call(this,t),Dt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Dt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new x(i,i);if(t=new P(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;o<s;o++)(n=jt(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,h,u=!1;if(!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(h=(i=this._parts[o]).length)-1;s<h;r=s++)e=i[s],n=i[r],e.y>t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||tn.prototype._containsPoint.call(this,t,!0)}}),nn=qe.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=ei(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)((n=o[i]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=Wt(t,s);return r?(r.feature=Gt(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){\"function\"==typeof i&&(i=i(t.feature)),t.setStyle&&t.setStyle(i)}}),on={toGeoJSON:function(t){return qt(this,{type:\"Point\",coordinates:Ut(this.getLatLng(),t)})}};Xe.include(on),Qe.include(on),$e.include(on),tn.include({toGeoJSON:function(t){var i=!Dt(this._latlngs),e=Vt(this._latlngs,i?1:0,!1,t);return qt(this,{type:(i?\"Multi\":\"\")+\"LineString\",coordinates:e})}}),en.include({toGeoJSON:function(t){var i=!Dt(this._latlngs),e=i&&!Dt(this._latlngs[0]),n=Vt(this._latlngs,e?2:i?1:0,!0,t);return i||(n=[n]),qt(this,{type:(e?\"Multi\":\"\")+\"Polygon\",coordinates:n})}}),Ve.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}),qt(this,{type:\"MultiPoint\",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(\"MultiPoint\"===i)return this.toMultiPoint(t);var e=\"GeometryCollection\"===i,n=[];return this.eachLayer(function(i){if(i.toGeoJSON){var o=i.toGeoJSON(t);if(e)n.push(o.geometry);else{var s=Gt(o);\"FeatureCollection\"===s.type?n.push.apply(n,s.features):n.push(s)}}}),e?qt(this,{geometries:n,type:\"GeometryCollection\"}):{type:\"FeatureCollection\",features:n}}});var sn=Kt,rn=Ue.extend({options:{opacity:1,alt:\"\",interactive:!1,crossOrigin:!1,errorOverlayUrl:\"\",zIndex:1,className:\"\"},initialize:function(t,i,e){this._url=t,this._bounds=z(i),l(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pt(this._image,\"leaflet-interactive\"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ut(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ct(this._image),this},bringToBack:function(){return this._map&&_t(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=z(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=\"IMG\"===this._url.tagName,i=this._image=t?this._url:ht(\"img\");pt(i,\"leaflet-image-layer\"),this._zoomAnimated&&pt(i,\"leaflet-zoom-animated\"),this.options.className&&pt(i,this.options.className),i.onselectstart=r,i.onmousemove=r,i.onload=e(this.fire,this,\"load\"),i.onerror=e(this._overlayOnError,this,\"error\"),this.options.crossOrigin&&(i.crossOrigin=\"\"),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;wt(this._image,e,i)},_reset:function(){var t=this._image,i=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();Lt(t,i.min),t.style.width=e.x+\"px\",t.style.height=e.y+\"px\"},_updateOpacity:function(){vt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire(\"error\");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),an=rn.extend({options:{autoplay:!0,loop:!0},_initImage:function(){var t=\"VIDEO\"===this._url.tagName,i=this._image=t?this._url:ht(\"video\");if(pt(i,\"leaflet-image-layer\"),this._zoomAnimated&&pt(i,\"leaflet-zoom-animated\"),i.onselectstart=r,i.onmousemove=r,i.onloadeddata=e(this.fire,this,\"load\"),t){for(var n=i.getElementsByTagName(\"source\"),o=[],s=0;s<n.length;s++)o.push(n[s].src);this._url=n.length>0?o:[i.src]}else{ei(this._url)||(this._url=[this._url]),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop;for(var a=0;a<this._url.length;a++){var h=ht(\"source\");h.src=this._url[a],i.appendChild(h)}}}}),hn=Ue.extend({options:{offset:[0,7],className:\"\",pane:\"popupPane\"},initialize:function(t,i){l(this,t),this._source=i},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&vt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&vt(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(vt(this._container,0),this._removeTimeout=setTimeout(e(ut,void 0,this._container),200)):ut(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=C(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility=\"hidden\",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility=\"\",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ct(this._container),this},bringToBack:function(){return this._map&&_t(this._container),this},_updateContent:function(){if(this._content){var t=this._contentNode,i=\"function\"==typeof this._content?this._content(this._source||this):this._content;if(\"string\"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire(\"contentupdate\")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=w(this.options.offset),e=this._getAnchor();this._zoomAnimated?Lt(this._container,t.add(e)):i=i.add(t).add(e);var n=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=n+\"px\",this._container.style.left=o+\"px\"}},_getAnchor:function(){return[0,0]}}),un=hn.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:\"\"},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){hn.prototype.onAdd.call(this,t),t.fire(\"popupopen\",{popup:this}),this._source&&(this._source.fire(\"popupopen\",{popup:this},!0),this._source instanceof Je||this._source.on(\"preclick\",Y))},onRemove:function(t){hn.prototype.onRemove.call(this,t),t.fire(\"popupclose\",{popup:this}),this._source&&(this._source.fire(\"popupclose\",{popup:this},!0),this._source instanceof Je||this._source.off(\"preclick\",Y))},getEvents:function(){var t=hn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t=\"leaflet-popup\",i=this._container=ht(\"div\",t+\" \"+(this.options.className||\"\")+\" leaflet-zoom-animated\"),e=this._wrapper=ht(\"div\",t+\"-content-wrapper\",i);if(this._contentNode=ht(\"div\",t+\"-content\",e),J(e),X(this._contentNode),V(e,\"contextmenu\",Y),this._tipContainer=ht(\"div\",t+\"-tip-container\",i),this._tip=ht(\"div\",t+\"-tip\",this._tipContainer),this.options.closeButton){var n=this._closeButton=ht(\"a\",t+\"-close-button\",i);n.href=\"#close\",n.innerHTML=\"×\",V(n,\"click\",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width=\"\",i.whiteSpace=\"nowrap\";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth),e=Math.max(e,this.options.minWidth),i.width=e+1+\"px\",i.whiteSpace=\"\",i.height=\"\";var n=t.offsetHeight,o=this.options.maxHeight;o&&n>o?(i.height=o+\"px\",pt(t,\"leaflet-popup-scrolled\")):mt(t,\"leaflet-popup-scrolled\"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();Lt(this._container,i.add(e))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,i=parseInt(at(this._container,\"marginBottom\"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,o=new x(this._containerLeft,-e-this._containerBottom);o._add(Pt(this._container));var s=t.layerPointToContainerPoint(o),r=w(this.options.autoPanPadding),a=w(this.options.autoPanPaddingTopLeft||r),h=w(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire(\"autopanstart\").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),Q(t)},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Le.mergeOptions({closePopupOnClick:!0}),Le.include({openPopup:function(t,i,e){return t instanceof un||(t=new un(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Ue.include({bindPopup:function(t,i){return t instanceof un?(l(t,i),this._popup=t,t._source=this):(this._popup&&!i||(this._popup=new un(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){if(t instanceof Ue||(i=t,t=this),t instanceof qe)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;this._popup&&this._map&&(Q(t),i instanceof Je?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ln=hn.extend({options:{pane:\"tooltipPane\",offset:[0,0],direction:\"auto\",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){hn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire(\"tooltipopen\",{tooltip:this}),this._source&&this._source.fire(\"tooltipopen\",{tooltip:this},!0)},onRemove:function(t){hn.prototype.onRemove.call(this,t),t.fire(\"tooltipclose\",{tooltip:this}),this._source&&this._source.fire(\"tooltipclose\",{tooltip:this},!0)},getEvents:function(){var t=hn.prototype.getEvents.call(this);return Vi&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t=\"leaflet-tooltip \"+(this.options.className||\"\")+\" leaflet-zoom-\"+(this._zoomAnimated?\"animated\":\"hide\");this._contentNode=this._container=ht(\"div\",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i=this._map,e=this._container,n=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),s=this.options.direction,r=e.offsetWidth,a=e.offsetHeight,h=w(this.options.offset),u=this._getAnchor();\"top\"===s?t=t.add(w(-r/2+h.x,-a+h.y+u.y,!0)):\"bottom\"===s?t=t.subtract(w(r/2-h.x,-h.y,!0)):\"center\"===s?t=t.subtract(w(r/2+h.x,a/2-u.y+h.y,!0)):\"right\"===s||\"auto\"===s&&o.x<n.x?(s=\"right\",t=t.add(w(h.x+u.x,u.y-a/2+h.y,!0))):(s=\"left\",t=t.subtract(w(r+u.x-h.x,a/2-u.y-h.y,!0))),mt(e,\"leaflet-tooltip-right\"),mt(e,\"leaflet-tooltip-left\"),mt(e,\"leaflet-tooltip-top\"),mt(e,\"leaflet-tooltip-bottom\"),pt(e,\"leaflet-tooltip-\"+s),Lt(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&vt(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Le.include({openTooltip:function(t,i,e){return t instanceof ln||(t=new ln(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Ue.include({bindTooltip:function(t,i){return t instanceof ln?(l(t,i),this._tooltip=t,t._source=this):(this._tooltip&&!i||(this._tooltip=new ln(i,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var i=t?\"off\":\"on\",e={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),Vi&&(e.click=this._openTooltip)),this[i](e),this._tooltipHandlersAdded=!t}},openTooltip:function(t,i){if(t instanceof Ue||(i=t,t=this),t instanceof qe)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=t,this._tooltip.update(),this._map.openTooltip(this._tooltip,i),this._tooltip.options.interactive&&this._tooltip._container&&(pt(this._tooltip._container,\"leaflet-clickable\"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(mt(this._tooltip._container,\"leaflet-clickable\"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var i=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(i,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,e,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),e=this._map.containerPointToLayerPoint(i),n=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(n)}});var cn=Ge.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:\"leaflet-div-icon\"},createIcon:function(t){var i=t&&\"DIV\"===t.tagName?t:document.createElement(\"div\"),e=this.options;if(i.innerHTML=!1!==e.html?e.html:\"\",e.bgPos){var n=w(e.bgPos);i.style.backgroundPosition=-n.x+\"px \"+-n.y+\"px\"}return this._setIconStyles(i,\"icon\"),i},createShadow:function(){return null}});Ge.Default=Ke;var _n=Ue.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ji,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:\"tilePane\",className:\"\",keepBuffer:2},initialize:function(t){l(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ut(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ct(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_t(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement(\"div\")},getTileSize:function(){var t=this.options.tileSize;return t instanceof x?t:new x(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-1/0,1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Li){vt(this._container,this.options.opacity);var t=+new Date,i=!1,e=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);vt(o.el,s),s<1?i=!0:(o.active?e=!0:this._onOpaqueTile(o),o.active=!0)}}e&&!this._noPrune&&this._pruneTiles(),i&&(g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this))}},_onOpaqueTile:r,_initContainer:function(){this._container||(this._container=ht(\"div\",\"leaflet-layer \"+(this.options.className||\"\")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var e in this._levels)this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(ut(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=ht(\"div\",\"leaflet-tile-container leaflet-zoom-animated\",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:r,_onRemoveLevel:r,_onCreateLevel:r,_pruneTiles:function(){if(this._map){var t,i,e=this._map.getZoom();if(e>this.options.maxZoom||e<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)if((i=this._tiles[t]).current&&!i.active){var n=i.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ut(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,e,n){var o=Math.floor(t/2),s=Math.floor(i/2),r=e-1,a=new x(+o,+s);a.z=+r;var h=this._tileCoordsToKey(a),u=this._tiles[h];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),r>n&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new x(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=this._clampZoom(Math.round(i));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,i,e){var n=this._map.getZoomScale(e,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i,e)).round();Ni?wt(t.el,o,n):Lt(t.el,o)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),n=i.getZoomScale(e,this._tileZoom),o=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(2*n);return new P(o.subtract(s),o.add(s))},_update:function(t){var i=this._map;if(i){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,h=new P(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error(\"Attempted to load an infinite number of tiles\");for(var u in this._tiles){var l=this._tiles[u].coords;l.z===this._tileZoom&&h.contains(new x(l.x,l.y))||(this._tiles[u].current=!1)}if(Math.abs(e-this._tileZoom)>1)this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d=new x(_,c);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:r.push(d)}}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire(\"loading\"));var m=document.createDocumentFragment();for(_=0;_<r.length;_++)this._addTile(r[_],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[i.unproject(n,t.z),i.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new T(i[0],i[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_tileCoordsToKey:function(t){return t.x+\":\"+t.y+\":\"+t.z},_keyToTileCoords:function(t){var i=t.split(\":\"),e=new x(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(Ci||i.el.setAttribute(\"src\",ni),ut(i.el),delete this._tiles[t],this.fire(\"tileunload\",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){pt(t,\"leaflet-tile\");var i=this.getTileSize();t.style.width=i.x+\"px\",t.style.height=i.y+\"px\",t.onselectstart=r,t.onmousemove=r,Li&&this.options.opacity<1&&vt(t,this.options.opacity),Ti&&!zi&&(t.style.WebkitBackfaceVisibility=\"hidden\")},_addTile:function(t,i){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),e(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&f(e(this._tileReady,this,t,null,s)),Lt(s,n),this._tiles[o]={el:s,coords:t,current:!0},i.appendChild(s),this.fire(\"tileloadstart\",{tile:s,coords:t})},_tileReady:function(t,i,n){if(this._map){i&&this.fire(\"tileerror\",{error:i,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(vt(n.el,0),g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(pt(n.el,\"leaflet-tile-loaded\"),this.fire(\"tileload\",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire(\"load\"),Li||!this._map._fadeAnimated?f(this._pruneTiles,this):setTimeout(e(this._pruneTiles,this),250)))}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new x(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new P(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),dn=_n.extend({options:{minZoom:0,maxZoom:18,subdomains:\"abc\",errorTileUrl:\"\",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,(i=l(this,i)).detectRetina&&Ki&&i.maxZoom>0&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),\"string\"==typeof i.subdomains&&(i.subdomains=i.subdomains.split(\"\")),Ti||this.on(\"tileunload\",this._onTileRemove)},setUrl:function(t,i){return this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement(\"img\");return V(n,\"load\",e(this._tileOnLoad,this,i,n)),V(n,\"error\",e(this._tileOnError,this,i,n)),this.options.crossOrigin&&(n.crossOrigin=\"\"),n.alt=\"\",n.setAttribute(\"role\",\"presentation\"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Ki?\"@2x\":\"\",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e[\"-y\"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,i){Li?setTimeout(e(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute(\"src\")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,n=this.options.zoomOffset;return e&&(t=i-t),t+n},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=r,i.onerror=r,i.complete||(i.src=ni,ut(i),delete this._tiles[t]))}}),pn=dn.extend({defaultWmsParams:{service:\"WMS\",request:\"GetMap\",layers:\"\",styles:\"\",format:\"image/jpeg\",transparent:!1,version:\"1.1.1\"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=l(this,e)).detectRetina&&Ki?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?\"crs\":\"srs\";this.wmsParams[i]=this._crs.code,dn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,n=b(e.project(i[0]),e.project(i[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===He?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(\",\"),a=L.TileLayer.prototype.getTileUrl.call(this,t);return a+c(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?\"&BBOX=\":\"&bbox=\")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});dn.WMS=pn,Yt.wms=function(t,i){return new pn(t,i)};var mn=Ue.extend({options:{padding:.1,tolerance:0},initialize:function(t){l(this,t),n(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&pt(this._container,\"leaflet-zoom-animated\")),this.getPane().appendChild(this._container),this._update(),this.on(\"update\",this._updatePaths,this)},onRemove:function(){this.off(\"update\",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=Pt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i).subtract(s),a=o.multiplyBy(-e).add(n).add(o).subtract(r);Ni?wt(this._container,a,e):Lt(this._container,a)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new P(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),fn=mn.extend({getEvents:function(){var t=mn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){mn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement(\"canvas\");V(t,\"mousemove\",o(this._onMouseMove,32,this),this),V(t,\"click dblclick mousedown mouseup contextmenu\",this._onClick,this),V(t,\"mouseout\",this._handleMouseOut,this),this._ctx=t.getContext(\"2d\")},_destroyContainer:function(){delete this._ctx,ut(this._container),q(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){this._redrawBounds=null;for(var t in this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},mn.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),n=Ki?2:1;Lt(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+\"px\",i.style.height=e.y+\"px\",Ki&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire(\"update\")}},_reset:function(){mn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[n(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,n=i.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[L.stamp(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(t.options.dashArray){var i,e=t.options.dashArray.split(\",\"),n=[];for(i=0;i<e.length;i++)n.push(Number(e[i]));t.options._dashArray=n}},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||f(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var e=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(this._drawnLayers[t._leaflet_id]=t,h.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)s=r[e][n],h[n?\"lineTo\":\"moveTo\"](s.x,s.y);i&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var i=t._point,e=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;this._drawnLayers[t._leaflet_id]=t,1!==o&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!==o&&e.restore(),this._fillStroke(e,t)}},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||\"evenodd\")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(n)&&!this._map._draggableMoved(i)&&(e=i);e&&(et(t),this._fireEvent([e],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(mt(this._container,\"leaflet-interactive\"),this._fireEvent([i],t,\"mouseout\"),this._hoveredLayer=null)},_handleMouseHover:function(t,i){for(var e,n,o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(pt(this._container,\"leaflet-interactive\"),this._fireEvent([n],t,\"mouseover\"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i=t._order,e=i.next,n=i.prev;e&&(e.prev=n,n?n.next=e:e&&(this._drawFirst=e),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t))},_bringToBack:function(t){var i=t._order,e=i.next,n=i.prev;n&&(n.next=e,e?e.prev=n:n&&(this._drawLast=n),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t))}}),gn=function(){try{return document.namespaces.add(\"lvml\",\"urn:schemas-microsoft-com:vml\"),function(t){return document.createElement(\"<lvml:\"+t+' class=\"lvml\">')}}catch(t){return function(t){return document.createElement(\"<\"+t+' xmlns=\"urn:schemas-microsoft.com:vml\" class=\"lvml\">')}}}(),vn={_initContainer:function(){this._container=ht(\"div\",\"leaflet-vml-container\")},_update:function(){this._map._animatingZoom||(mn.prototype._update.call(this),this.fire(\"update\"))},_initPath:function(t){var i=t._container=gn(\"shape\");pt(i,\"leaflet-vml-shape \"+(this.options.className||\"\")),i.coordsize=\"1 1\",t._path=gn(\"path\"),i.appendChild(t._path),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;ut(i),t.removeInteractiveTarget(i),delete this._layers[n(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i||(i=t._stroke=gn(\"stroke\")),o.appendChild(i),i.weight=n.weight+\"px\",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=ei(n.dashArray)?n.dashArray.join(\" \"):n.dashArray.replace(/( *, *)/g,\" \"):i.dashStyle=\"\",i.endcap=n.lineCap.replace(\"butt\",\"flat\"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e||(e=t._fill=gn(\"fill\")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?\"M0 0\":\"AL \"+i.x+\",\"+i.y+\" \"+e+\",\"+n+\" 0,23592600\")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ct(t._container)},_bringToBack:function(t){_t(t._container)}},yn=Ji?gn:E,xn=mn.extend({getEvents:function(){var t=mn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=yn(\"svg\"),this._container.setAttribute(\"pointer-events\",\"none\"),this._rootGroup=yn(\"g\"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ut(this._container),q(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){mn.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute(\"width\",i.x),e.setAttribute(\"height\",i.y)),Lt(e,t.min),e.setAttribute(\"viewBox\",[t.min.x,t.min.y,i.x,i.y].join(\" \")),this.fire(\"update\")}},_initPath:function(t){var i=t._path=yn(\"path\");t.options.className&&pt(i,t.options.className),t.options.interactive&&pt(i,\"leaflet-interactive\"),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ut(t._path),t.removeInteractiveTarget(t._path),delete this._layers[n(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute(\"stroke\",e.color),i.setAttribute(\"stroke-opacity\",e.opacity),i.setAttribute(\"stroke-width\",e.weight),i.setAttribute(\"stroke-linecap\",e.lineCap),i.setAttribute(\"stroke-linejoin\",e.lineJoin),e.dashArray?i.setAttribute(\"stroke-dasharray\",e.dashArray):i.removeAttribute(\"stroke-dasharray\"),e.dashOffset?i.setAttribute(\"stroke-dashoffset\",e.dashOffset):i.removeAttribute(\"stroke-dashoffset\")):i.setAttribute(\"stroke\",\"none\"),e.fill?(i.setAttribute(\"fill\",e.fillColor||e.color),i.setAttribute(\"fill-opacity\",e.fillOpacity),i.setAttribute(\"fill-rule\",e.fillRule||\"evenodd\")):i.setAttribute(\"fill\",\"none\"))},_updatePoly:function(t,i){this._setPath(t,k(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n=\"a\"+e+\",\"+(Math.max(Math.round(t._radiusY),1)||e)+\" 0 1,0 \",o=t._empty()?\"M0 0\":\"M\"+(i.x-e)+\",\"+i.y+n+2*e+\",0 \"+n+2*-e+\",0 \";this._setPath(t,o)},_setPath:function(t,i){t._path.setAttribute(\"d\",i)},_bringToFront:function(t){ct(t._path)},_bringToBack:function(t){_t(t._path)}});Ji&&xn.include(vn),Le.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this.options.preferCanvas&&Xt()||Jt()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(\"overlayPane\"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=xn&&Jt({pane:t})||fn&&Xt({pane:t}),this._paneRenderers[t]=i),i}});var wn=en.extend({initialize:function(t,i){en.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=z(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});xn.create=yn,xn.pointsToPath=k,nn.geometryToLayer=Wt,nn.coordsToLatLng=Ht,nn.coordsToLatLngs=Ft,nn.latLngToCoords=Ut,nn.latLngsToCoords=Vt,nn.getFeature=qt,nn.asFeature=Gt,Le.mergeOptions({boxZoom:!0});var Ln=Ze.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on(\"unload\",this._destroy,this)},addHooks:function(){V(this._container,\"mousedown\",this._onMouseDown,this)},removeHooks:function(){q(this._container,\"mousedown\",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ut(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),mi(),bt(),this._startPoint=this._map.mouseEventToContainerPoint(t),V(document,{contextmenu:Q,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ht(\"div\",\"leaflet-zoom-box\",this._container),pt(this._container,\"leaflet-crosshair\"),this._map.fire(\"boxzoomstart\")),this._point=this._map.mouseEventToContainerPoint(t);var i=new P(this._point,this._startPoint),e=i.getSize();Lt(this._box,i.min),this._box.style.width=e.x+\"px\",this._box.style.height=e.y+\"px\"},_finish:function(){this._moved&&(ut(this._box),mt(this._container,\"leaflet-crosshair\")),fi(),Tt(),q(document,{contextmenu:Q,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(e(this._resetState,this),0);var i=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire(\"boxzoomend\",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Le.addInitHook(\"addHandler\",\"boxZoom\",Ln),Le.mergeOptions({doubleClickZoom:!0});var Pn=Ze.extend({addHooks:function(){this._map.on(\"dblclick\",this._onDoubleClick,this)},removeHooks:function(){this._map.off(\"dblclick\",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;\"center\"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});Le.addInitHook(\"addHandler\",\"doubleClickZoom\",Pn),Le.mergeOptions({dragging:!0,inertia:!zi,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var bn=Ze.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Be(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on(\"predrag\",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on(\"predrag\",this._onPreDragWrap,this),t.on(\"zoomend\",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}pt(this._map._container,\"leaflet-grab leaflet-touch-drag\"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){mt(this._map._container,\"leaflet-grab\"),mt(this._map._container,\"leaflet-touch-drag\"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=z(this._map.options.maxBounds);this._offsetLimit=b(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire(\"movestart\").fire(\"dragstart\"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(i),this._prunePositions(i)}this._map.fire(\"move\",t).fire(\"drag\",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)<Math.abs(s+e)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var i=this._map,e=i.options,n=!e.inertia||this._times.length<2;if(i.fire(\"dragend\",t),n)i.fire(\"moveend\");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,r=e.easeLinearity,a=o.multiplyBy(r/s),h=a.distanceTo([0,0]),u=Math.min(e.inertiaMaxSpeed,h),l=a.multiplyBy(u/h),c=u/(e.inertiaDeceleration*r),_=l.multiplyBy(-c/2).round();_.x||_.y?(_=i._limitOffset(_,i.options.maxBounds),f(function(){i.panBy(_,{duration:c,easeLinearity:r,noMoveStart:!0,animate:!0})})):i.fire(\"moveend\")}}});Le.addInitHook(\"addHandler\",\"dragging\",bn),Le.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Tn=Ze.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex=\"0\"),V(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),q(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,n=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(n,e)}},_onFocus:function(){this._focused=!0,this._map.fire(\"focus\")},_onBlur:function(){this._focused=!1,this._map.fire(\"blur\")},_setPanDelta:function(t){var i,e,n=this._panKeys={},o=this.keyCodes;for(i=0,e=o.left.length;i<e;i++)n[o.left[i]]=[-1*t,0];for(i=0,e=o.right.length;i<e;i++)n[o.right[i]]=[t,0];for(i=0,e=o.down.length;i<e;i++)n[o.down[i]]=[0,t];for(i=0,e=o.up.length;i<e;i++)n[o.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,e,n=this._zoomKeys={},o=this.keyCodes;for(i=0,e=o.zoomIn.length;i<e;i++)n[o.zoomIn[i]]=t;for(i=0,e=o.zoomOut.length;i<e;i++)n[o.zoomOut[i]]=-t},_addHooks:function(){V(document,\"keydown\",this._onKeyDown,this)},_removeHooks:function(){q(document,\"keydown\",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e=t.keyCode,n=this._map;if(e in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;i=this._panKeys[e],t.shiftKey&&(i=w(i).multiplyBy(3)),n.panBy(i),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Q(t)}}});Le.addInitHook(\"addHandler\",\"keyboard\",Tn),Le.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var zn=Ze.extend({addHooks:function(){V(this._map._container,\"mousewheel\",this._onWheelScroll,this),this._delta=0},removeHooks:function(){q(this._map._container,\"mousewheel\",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=it(t),n=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(e(this._performZoom,this),o),Q(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=e?Math.ceil(o/e)*e:o,r=t._limitZoom(i+(this._delta>0?s:-s))-i;this._delta=0,this._startTime=null,r&&(\"center\"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});Le.addInitHook(\"addHandler\",\"scrollWheelZoom\",zn),Le.mergeOptions({tap:!0,tapTolerance:15});var Mn=Ze.extend({addHooks:function(){V(this._map._container,\"touchstart\",this._onDown,this)},removeHooks:function(){q(this._map._container,\"touchstart\",this._onDown,this)},_onDown:function(t){if(t.touches){if($(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos=this._newPos=new x(i.clientX,i.clientY),n.tagName&&\"a\"===n.tagName.toLowerCase()&&pt(n,\"leaflet-active\"),this._holdTimeout=setTimeout(e(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent(\"contextmenu\",i))},this),1e3),this._simulateEvent(\"mousedown\",i),V(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),q(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],e=i.target;e&&e.tagName&&\"a\"===e.tagName.toLowerCase()&&mt(e,\"leaflet-active\"),this._simulateEvent(\"mouseup\",i),this._isTapValid()&&this._simulateEvent(\"click\",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new x(i.clientX,i.clientY),this._simulateEvent(\"mousemove\",i)},_simulateEvent:function(t,i){var e=document.createEvent(\"MouseEvents\");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});Vi&&!Ui&&Le.addInitHook(\"addHandler\",\"tap\",Mn),Le.mergeOptions({touchZoom:Vi&&!zi,bounceAtZoomLimits:!0});var Cn=Ze.extend({addHooks:function(){pt(this._map._container,\"leaflet-touch-zoom\"),V(this._map._container,\"touchstart\",this._onTouchStart,this)},removeHooks:function(){mt(this._map._container,\"leaflet-touch-zoom\"),q(this._map._container,\"touchstart\",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),\"center\"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),V(document,\"touchmove\",this._onTouchMove,this),V(document,\"touchend\",this._onTouchEnd,this),$(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),o=i.mouseEventToContainerPoint(t.touches[1]),s=n.distanceTo(o)/this._startDist;if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),\"center\"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),g(this._animRequest);var a=e(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=f(a,this,!0),$(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,g(this._animRequest),q(document,\"touchmove\",this._onTouchMove),q(document,\"touchend\",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Le.addInitHook(\"addHandler\",\"touchZoom\",Cn),Le.BoxZoom=Ln,Le.DoubleClickZoom=Pn,Le.Drag=bn,Le.Keyboard=Tn,Le.ScrollWheelZoom=zn,Le.Tap=Mn,Le.TouchZoom=Cn;var Zn=window.L;window.L=t,Object.freeze=$t,t.version=\"1.3.1\",t.noConflict=function(){return window.L=Zn,this},t.Control=Pe,t.control=be,t.Browser=$i,t.Evented=ui,t.Mixin=Ee,t.Util=ai,t.Class=v,t.Handler=Ze,t.extend=i,t.bind=e,t.stamp=n,t.setOptions=l,t.DomEvent=de,t.DomUtil=xe,t.PosAnimation=we,t.Draggable=Be,t.LineUtil=Oe,t.PolyUtil=Re,t.Point=x,t.point=w,t.Bounds=P,t.bounds=b,t.Transformation=Z,t.transformation=S,t.Projection=je,t.LatLng=M,t.latLng=C,t.LatLngBounds=T,t.latLngBounds=z,t.CRS=ci,t.GeoJSON=nn,t.geoJSON=Kt,t.geoJson=sn,t.Layer=Ue,t.LayerGroup=Ve,t.layerGroup=function(t,i){return new Ve(t,i)},t.FeatureGroup=qe,t.featureGroup=function(t){return new qe(t)},t.ImageOverlay=rn,t.imageOverlay=function(t,i,e){return new rn(t,i,e)},t.VideoOverlay=an,t.videoOverlay=function(t,i,e){return new an(t,i,e)},t.DivOverlay=hn,t.Popup=un,t.popup=function(t,i){return new un(t,i)},t.Tooltip=ln,t.tooltip=function(t,i){return new ln(t,i)},t.Icon=Ge,t.icon=function(t){return new Ge(t)},t.DivIcon=cn,t.divIcon=function(t){return new cn(t)},t.Marker=Xe,t.marker=function(t,i){return new Xe(t,i)},t.TileLayer=dn,t.tileLayer=Yt,t.GridLayer=_n,t.gridLayer=function(t){return new _n(t)},t.SVG=xn,t.svg=Jt,t.Renderer=mn,t.Canvas=fn,t.canvas=Xt,t.Path=Je,t.CircleMarker=$e,t.circleMarker=function(t,i){return new $e(t,i)},t.Circle=Qe,t.circle=function(t,i,e){return new Qe(t,i,e)},t.Polyline=tn,t.polyline=function(t,i){return new tn(t,i)},t.Polygon=en,t.polygon=function(t,i){return new en(t,i)},t.Rectangle=wn,t.rectangle=function(t,i){return new wn(t,i)},t.Map=Le,t.map=function(t,i){return new Le(t,i)}});\n}\nexports.L = L;\n",
"type": "application/javascript",
"title": "$:/plugins/sycom/leaflet/lib/leaflet.js",
"module-type": "library"
},
"$:/plugins/sycom/leaflet/lib/leaflet-markercluster.js": {
"text": "if($tw.browser){\n!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e.Leaflet=e.Leaflet||{},e.Leaflet.markercluster=e.Leaflet.markercluster||{}))}(this,function(e){\"use strict\";var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:\"#222\",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire(\"layeradd\",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire(\"layeradd\",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire(\"layeradd\",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):e.getLatLng?this._map?e.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire(\"layerremove\",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire(\"layerremove\",{layer:e}),this):(this._nonPointGroup.removeLayer(e),this.fire(\"layerremove\",{layer:e}),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,n=this._featureGroup,r=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,h=e.length,l=0,u=!0;if(this._map){var _=(new Date).getTime(),d=L.bind(function(){for(var c=(new Date).getTime();h>l;l++){if(s&&0===l%200){var p=(new Date).getTime()-c;if(p>o)break}if(i=e[l],i instanceof L.LayerGroup)u&&(e=e.slice(),u=!1),this._extractNonGroupLayers(i,e),h=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire(\"layeradd\",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var f=i.__parent.getAllChildMarkers(),m=f[0]===i?f[1]:f[0];n.removeLayer(m)}}else r.addLayer(i),t||this.fire(\"layeradd\",{layer:i})}a&&a(l,h,(new Date).getTime()-_),l===h?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)},this);d()}else for(var c=this._needsClustering;h>l;l++)i=e[l],i instanceof L.LayerGroup?(u&&(e=e.slice(),u=!1),this._extractNonGroupLayers(i,e),h=e.length):i.getLatLng?this.hasLayer(i)||c.push(i):r.addLayer(i);return this},removeLayers:function(e){var t,i,n=e.length,r=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(t=0;n>t;t++)i=e[t],i instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),n=e.length):(this._arraySplice(this._needsClustering,i),s.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire(\"layerremove\",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),h=n;for(t=0;h>t;t++)i=a[t],i instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),h=a.length):this._unspiderfyLayer(i)}for(t=0;n>t;t++)i=e[t],i instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),n=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire(\"layerremove\",{layer:i}),r.hasLayer(i)&&(r.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire(\"layerremove\",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;t>=0;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,n,r,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),n=s.length-1;n>=0;n--){for(i=!0,r=o.length-1;r>=0;r--)if(o[r].layer===s[n]){i=!1;break}i&&e.call(t,s[n])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer(function(t){e.push(t)}),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer(function(i){L.stamp(i)===e&&(t=i)}),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;t>=0;t--)if(i[t]===e)return!0;for(i=this._needsRemoving,t=i.length-1;t>=0;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){\"function\"!=typeof t&&(t=function(){});var i=function(){!e._icon&&!e.__parent._icon||this._inZoomAnimation||(this._map.off(\"moveend\",i,this),this.off(\"animationend\",i,this),e._icon?t():e.__parent._icon&&(this.once(\"spiderfied\",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on(\"moveend\",i,this),this._map.panTo(e.getLatLng())):(this._map.on(\"moveend\",i,this),this.on(\"animationend\",i,this),e.__parent.zoomToBounds())},onAdd:function(e){this._map=e;var t,i,n;if(!isFinite(this._map.getMaxZoom()))throw\"Map has no maxZoom specified\";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;i>t;t++)n=this._needsRemoving[t],n.newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(t=0,i=this._needsRemoving.length;i>t;t++)n=this._needsRemoving[t],this._removeLayer(n.layer,!0),n.layer._latlng=n.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on(\"zoomend\",this._zoomEnd,this),this._map.on(\"moveend\",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off(\"zoomend\",this._zoomEnd,this),e.off(\"moveend\",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(\" leaflet-cluster-anim\",\"\"),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;i>=0;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,n=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());t>=r&&n[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){e.target.__dragStart&&this._moveChild(e.target,e.target.__dragStart,e.target._latlng),delete e.target.__dragStart},_removeLayer:function(e,t,i){var n=this._gridClusters,r=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var h,l=e.__parent,u=l._markers;for(this._arraySplice(u,e);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<a));)t&&l._childCount<=1?(h=l._markers[0]===e?l._markers[1]:l._markers[0],n[l._zoom].removeObject(l,o.project(l._cLatLng,l._zoom)),r[l._zoom].addObject(h,o.project(h.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(h),h.__parent=l.__parent,l._icon&&(s.removeLayer(l),i||s.addLayer(h))):l._iconNeedsUpdate=!0,l=l.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e=\"cluster\"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,\"cluster\"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=\" marker-cluster-\";return i+=10>t?\"small\":100>t?\"medium\":\"large\",new L.DivIcon({html:\"<div><span>\"+t+\"</span></div>\",className:\"marker-cluster\"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick;(t||n)&&this.on(\"clusterclick\",this._zoomOrSpiderfy,this),i&&(this.on(\"clustermouseover\",this._showCoverage,this),this.on(\"clustermouseout\",this._hideCoverage,this),e.on(\"zoomend\",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){for(var t=e.layer,i=t;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),e.layer.getChildCount()>2&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this._map;(e||i)&&this.off(\"clusterclick\",this._zoomOrSpiderfy,this),t&&(this.off(\"clustermouseover\",this._showCoverage,this),this.off(\"clustermouseout\",this._hideCoverage,this),n.off(\"zoomend\",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;\"function\"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var r=e;r>=t;r--)this._gridClusters[r]=new L.DistanceGrid(n(r)),this._gridUnclustered[r]=new L.DistanceGrid(n(r));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,n,r=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);t>=o;t--){i=this._map.project(e.getLatLng(),t);var a=r[t].getNearObject(i);if(a)return a._addChild(e),e.__parent=a,void 0;if(a=s[t].getNearObject(i)){var h=a.__parent;h&&this._removeLayer(a,!1);var l=new this._markerCluster(this,t,a,e);r[t].addObject(l,this._map.project(l._cLatLng,t)),a.__parent=l,e.__parent=l;var u=l;for(n=t-1;n>h._zoom;n--)u=new this._markerCluster(this,n,u),r[n].addObject(u,this._map.project(a.getLatLng(),n));return h._addChild(u),this._removeFromGridUnclustered(a,t),void 0}s[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()})},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,n=e.getLayers(),r=0;for(t=t||[];r<n.length;r++)i=n[r],i instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){var t=e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}});return t}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire(\"animationend\")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire(\"animationend\")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=\" leaflet-cluster-anim\",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,n=this._getExpandedVisibleBounds(),r=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,e,s,function(s){var o,a=s._latlng,h=s._markers;for(n.contains(a)||(a=null),s._isSingleParent()&&e+1===t?(r.removeLayer(s),s._recursivelyAddChildrenToMap(null,t,n)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,t,n)),i=h.length-1;i>=0;i--)o=h[i],n.contains(o._latlng)||r.removeLayer(o)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,t),r.eachLayer(function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()}),this._topClusterLevel._recursively(n,e,t,function(e){e._recursivelyRestoreChildPositions(t)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(n,e,s,function(e){r.removeLayer(e),e.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,n=this._featureGroup;n.addLayer(e),t!==e&&(t._childCount>2?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue(function(){n.removeLayer(e),e.clusterShow(),i._animationEnd()})):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var n=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(n,r,t+1,i);var s=this;this._forceLayout(),e._recursivelyBecomeVisible(n,i),this._enqueue(function(){if(1===e._childCount){var o=e._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else e._recursively(n,i,r,function(e){e._recursivelyRemoveChildrenFromMap(n,r,t+1)});s._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(\" leaflet-cluster-anim\",\"\")),this._inZoomAnimation--,this.fire(\"animationend\")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(e){e=e||[];for(var t=this._childClusters.length-1;t>=0;t--)this._childClusters[t].getAllChildMarkers(e);for(var i=this._markers.length-1;i>=0;i--)e.push(this._markers[i]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),n=this._group._map,r=n.getBoundsZoom(this._bounds),s=this._zoom+1,o=n.getZoom();i.length>0&&r>s;){s++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._childClusters);i=a}r>s?this._group._map.setView(this._latlng,s):o>=r?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,n,r=this._markers,s=this._childClusters,o=0,a=0,h=this._childCount;if(0!==h){for(this._resetBounds(),e=0;e<r.length;e++)i=r[e]._latlng,this._bounds.extend(i),o+=i.lat,a+=i.lng;for(e=0;e<s.length;e++)t=s[e],t._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,n=t._childCount,o+=i.lat*n,a+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(o/h,a/h),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,function(e){var i,n,r=e._markers;for(i=r.length-1;i>=0;i--)n=r[i],n._icon&&(n._setPos(t),n.clusterHide())},function(e){var i,n,r=e._childClusters;for(i=r.length-1;i>=0;i--)n=r[i],n._icon&&(n._setPos(t),n.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,n){this._recursively(e,n,t,function(r){r._recursivelyAnimateChildrenIn(e,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),i),r._isSingleParent()&&i-1===n?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(e,t,i)):r.clusterHide(),r._addToMap()})},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,function(e){e.clusterShow()})},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,function(n){if(t!==n._zoom)for(var r=n._markers.length-1;r>=0;r--){var s=n._markers[r];i.contains(s._latlng)&&(e&&(s._backupLatlng=s.getLatLng(),s.setLatLng(e),s.clusterHide&&s.clusterHide()),n._group._featureGroup.addLayer(s))}},function(t){t._addToMap(e)})},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;t>=0;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,n){var r,s;this._recursively(e,t-1,i-1,function(e){for(s=e._markers.length-1;s>=0;s--)r=e._markers[s],n&&n.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())},function(e){for(s=e._childClusters.length-1;s>=0;s--)r=e._childClusters[s],n&&n.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())})},_recursively:function(e,t,i,n,r){var s,o,a=this._childClusters,h=this._zoom;if(h>=t&&(n&&n(this),r&&h===i&&r(this)),t>h||i>h)for(s=a.length-1;s>=0;s--)o=a[s],e.intersects(o._bounds)&&o._recursively(e,t,i,n,r)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){return this.options.opacityWhenUnclustered=this.options.opacity||1,this.setOpacity(0)},clusterShow:function(){var e=this.setOpacity(this.options.opacity||this.options.opacityWhenUnclustered);return delete this.options.opacityWhenUnclustered,e}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),n=this._getCoord(t.y),r=this._grid,s=r[n]=r[n]||{},o=s[i]=s[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,o.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,n,r=this._getCoord(t.x),s=this._getCoord(t.y),o=this._grid,a=o[s]=o[s]||{},h=a[r]=a[r]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,n=h.length;n>i;i++)if(h[i]===e)return h.splice(i,1),1===n&&delete a[r],!0},eachObject:function(e,t){var i,n,r,s,o,a,h,l=this._grid;for(i in l){o=l[i];for(n in o)for(a=o[n],r=0,s=a.length;s>r;r++)h=e.call(t,a[r]),h&&(r--,s--)}},getNearObject:function(e){var t,i,n,r,s,o,a,h,l=this._getCoord(e.x),u=this._getCoord(e.y),_=this._objectPoint,d=this._sqCellSize,c=null;for(t=u-1;u+1>=t;t++)if(r=this._grid[t])for(i=l-1;l+1>=i;i++)if(s=r[i])for(n=0,o=s.length;o>n;n++)a=s[n],h=this._sqDist(_[L.Util.stamp(a)],e),(d>h||d>=h&&null===c)&&(d=h,c=a);return c},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n}},function(){L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat,n=t[0].lng-t[1].lng;return n*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,n,r,s=0,o=null,a=[];for(i=t.length-1;i>=0;i--)n=t[i],r=this.getDistant(n,e),r>0&&(a.push(n),r>s&&(s=r,o=n));return{maxPoint:o,newPoints:a}},buildConvexHull:function(e,t){var i=[],n=this.findMostDistantPointFromBaseLine(e,t);return n.maxPoint?(i=i.concat(this.buildConvexHull([e[0],n.maxPoint],n.newPoints)),i=i.concat(this.buildConvexHull([n.maxPoint,e[1]],n.newPoints))):[e[0]]},getConvexHull:function(e){var t,i=!1,n=!1,r=!1,s=!1,o=null,a=null,h=null,l=null,u=null,_=null;for(t=e.length-1;t>=0;t--){var d=e[t];(i===!1||d.lat>i)&&(o=d,i=d.lat),(n===!1||d.lat<n)&&(a=d,n=d.lat),(r===!1||d.lng>r)&&(h=d,r=d.lng),(s===!1||d.lng<s)&&(l=d,s=d.lng)}n!==i?(_=a,u=o):(_=l,u=h);var c=[].concat(this.buildConvexHull([_,u],e),this.buildConvexHull([u,_],e));return c}}}(),L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),n=[];for(t=i.length-1;t>=0;t--)e=i[t].getLatLng(),n.push(e);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(),i=this._group,n=i._map,r=n.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,t.length>=this._circleSpiralSwitchover?e=this._generatePointsSpiral(t.length,r):(r.y+=10,e=this._generatePointsCircle(t.length,r)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,n,r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e),s=r/this._2PI,o=this._2PI/e,a=[];for(s=Math.max(s,35),a.length=e,i=0;e>i;i++)n=this._circleStartAngle+i*o,a[i]=new L.Point(t.x+s*Math.cos(n),t.y+s*Math.sin(n))._round();return a},_generatePointsSpiral:function(e,t){var i,n=this._group.options.spiderfyDistanceMultiplier,r=n*this._spiralLengthStart,s=n*this._spiralFootSeparation,o=n*this._spiralLengthFactor*this._2PI,a=0,h=[];for(h.length=e,i=e;i>=0;i--)e>i&&(h[i]=new L.Point(t.x+r*Math.cos(a),t.y+r*Math.sin(a))._round()),a+=s/r+5e-4*i,r+=o/a;return h},_noanimationUnspiderfy:function(){var e,t,i=this._group,n=i._map,r=i._featureGroup,s=this.getAllChildMarkers();for(i._ignoreMove=!0,this.setOpacity(1),t=s.length-1;t>=0;t--)e=s[t],r.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(n.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire(\"unspiderfied\",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,n,r,s,o=this._group,a=o._map,h=o._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,i=0;i<e.length;i++)s=a.layerPointToLatLng(t[i]),n=e[i],r=new L.Polyline([this._latlng,s],l),a.addLayer(r),n._spiderLeg=r,n._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.setZIndexOffset&&n.setZIndexOffset(1e6),h.addLayer(n);this.setOpacity(.3),o._ignoreMove=!1,o.fire(\"spiderfied\",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,n,r,s,o,a,h=this,l=this._group,u=l._map,_=l._featureGroup,d=this._latlng,c=u.latLngToLayerPoint(d),p=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),m=f.opacity;for(void 0===m&&(m=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),p?(f.opacity=0,f.className=(f.className||\"\")+\" leaflet-cluster-spider-leg\"):f.opacity=m,l._ignoreMove=!0,i=0;i<e.length;i++)n=e[i],a=u.layerPointToLatLng(t[i]),r=new L.Polyline([d,a],f),u.addLayer(r),n._spiderLeg=r,p&&(s=r._path,o=s.getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),_.addLayer(n),n._setPos&&n._setPos(c);for(l._forceLayout(),l._animationStart(),i=e.length-1;i>=0;i--)a=u.layerPointToLatLng(t[i]),n=e[i],n._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),p&&(r=n._spiderLeg,s=r._path,s.style.strokeDashoffset=0,r.setStyle({opacity:m}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout(function(){l._animationEnd(),l.fire(\"spiderfied\",{cluster:h,markers:e})},200)},_animationUnspiderfy:function(e){var t,i,n,r,s,o,a=this,h=this._group,l=h._map,u=h._featureGroup,_=e?l._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(),c=L.Path.SVG;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),i=d.length-1;i>=0;i--)t=d[i],t._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,o=!0,t._setPos&&(t._setPos(_),o=!1),t.clusterHide&&(t.clusterHide(),o=!1),o&&u.removeLayer(t),c&&(n=t._spiderLeg,r=n._path,s=r.getTotalLength()+.1,r.style.strokeDashoffset=s,n.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var e=0;for(i=d.length-1;i>=0;i--)t=d[i],t._spiderLeg&&e++;for(i=d.length-1;i>=0;i--)t=d[i],t._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),e>1&&u.removeLayer(t),l.removeLayer(t._spiderLeg),delete t._spiderLeg);h._animationEnd(),h.fire(\"unspiderfied\",{cluster:a,markers:d})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on(\"click\",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on(\"zoomstart\",this._unspiderfyZoomStart,this),this._map.on(\"zoomend\",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off(\"click\",this._unspiderfyWrapper,this),this._map.off(\"zoomstart\",this._unspiderfyZoomStart,this),this._map.off(\"zoomanim\",this._unspiderfyZoomAnim,this),this._map.off(\"zoomend\",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()\n},_unspiderfyZoomStart:function(){this._map&&this._map.on(\"zoomanim\",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,\"leaflet-touching\")||(this._map.off(\"zoomanim\",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i});\n//# sourceMappingURL=leaflet.markercluster.js.map\n}\n",
"type": "application/javascript",
"title": "$:/plugins/sycom/leaflet/lib/leaflet-markercluster.js",
"module-type": "library"
},
"$:/plugins/sycom/leaflet/mapCssTweaks.css.tid": {
"title": "$:/plugins/sycom/leaflet/mapCssTweaks.css.tid",
"created": "20161028202401905",
"modified": "20161111151011600",
"tags": "[[$:/tags/Stylesheet]]",
"text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html\n\n/* add some styling tweaks to leaflet */\n.leaflet-right {\n\tmax-width:50%\n}\n.leaflet-popup-content h6 {\n\tfont-size:.7rem;\n\tmargin:0 0 .2rem 0\n}\n\n.leaflet-control-attribution {\n\theight:1.5em;\n}\n.leaflet-control-attribution:hover {\n\theight:auto;\n}\n\n.leaflet-top, .leaflet-bottom {\n z-index:999;\n}\n\n/* solve conflict between tw and leaflet */\n.leaflet-zoom-animated {max-width: initial !important}\n\n/* solve background image problem for layer control */\n.leaflet-control-layers-toggle {\n\tbackground-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20height%3D%2226%22%20width%3D%2226%22%3E%3Cpath%20d%3D%22M.032%2017.056l13-8%2013%208-13%208-13-8%22%20fill%3D%22%23b9b9b9%22/%3E%3Cpath%20d%3D%22M.032%2017.056l-.032.93%2013%208%2013-8%20.032-.93-13%208z%22%20fill%3D%22%23737373%22/%3E%3Cpath%20d%3D%22M0%2013.076l13-8%2013%208-13%208-13-8%22%20fill%3D%22%23cdcdcd%22/%3E%3Cpath%20d%3D%22M0%2013.076v.91l13%208%2013-8v-.91l-13%208z%22%20fill%3D%22%23737373%22/%3E%3Cpath%20d%3D%22M0%208.986l13-8%2013%208-13%208-13-8%22%20fill-opacity%3D%22.585%22%20stroke%3D%22%23797979%22%20stroke-width%3D%22.1%22%20fill%3D%22%23e9e9e9%22/%3E%3Cpath%20d%3D%22M0%208.986v1l13%208%2013-8v-1l-13%208z%22%20fill%3D%22%23737373%22/%3E%3C/svg%3E') !important\n}\n\n/* default polygon stylin */\n.polyline {fill:none}\n.leaflet-popup-content ul {padding:0 1em}\n\n/* some styling for clusters */\n.marker-cluster div {\n min-width:16px;min-height:16px;\n border-radius:50%;border:none;\n vertical-align:middle;text-align:center;font-weight:bold\n }\n.marker-cluster div div{width:100%;height:100%}\n.marker-cluster div span {display:block;text-shadow:0px 0px 6px #ffffff}\n\npath.leaflet-clickable {fill:<<colour primary>>;fill-opacity: 0.5;stroke:<<colour primary>>}\n.leaflet-marker-colored {fill:<<colour primary>>}\n"
},
"$:/plugins/sycom/leaflet/mapWidget.tid": {
"title": "$:/plugins/sycom/leaflet/mapWidget.tid",
"text": "/*\\\ncreated: 20151028202401905\nmodified: 20170318234011605\ntitle: $:/plugins/sycom/leaflet/mapWidget.tid\ntype: application/javascript\nmodule-type: widget\n\nA widget for displaying leaflet map in TiddlyWiki\n\n\\*/\n\n(function() {\n /* ----------------------- */\n /*jslint node: true, browser: true */\n /*global $tw: false */\n \"use strict\";\n var Widget = require(\"$:/core/modules/widgets/widget.js\").widget,\n L = require(\"$:/plugins/sycom/leaflet/lib/leaflet.js\"),\n markerClusterGroup = require(\"$:/plugins/sycom/leaflet/lib/leaflet-markercluster.js\");\n\n var mapWidget = function(parseTreeNode, options) {\n this.initialise(parseTreeNode, options);\n };\n\n // global vars\n var Map = [], // map collection\n map = 0, // map order number\n tn = 0, // tiddler number\n fCluster = [], // the clusters\n Colour = [], // the colors\n clusterRadius = [], // cluster radii\n clusterType = [], // clustering for whole map or for each tiddler\n lfltDefBounds = [\n [52.75, -2.55],\n [52.85, -2.65]\n ], // default bounds when nothing given\n bounds, // global bounds for map ?todo one per map?\n iter = [], // iteration indicator to avoid infinite loops\n setting = {}; // the map's settings\n\n /* Inherit from the base widget class */\n mapWidget.prototype = new Widget();\n\n /* Render this widget into the DOM */\n mapWidget.prototype.render = function(parent, nextSibling) {\n bounds = null;\n // Compute our attributes\n this.computeAttributes();\n // Get the base settings for rendering : width / height (default : 100% / 500px)\n // !todo : make a settings tidller in order to let user set it for the whole wiki (may be inspired from roadtree)\n // !todo what happens if windows is resized?\n var width = this.getAttribute(\"width\", \"100%\"),\n height = this.getAttribute(\"height\", \"420px\");\n // creating the div container\n var div = this.document.createElement(\"div\");\n div.setAttribute(\"id\", \"lfltMap-\" + map);\n div.setAttribute(\"style\", \"width:\" + width + \";height:\" + height);\n // Save the parent dom node\n this.parentDomNode = parent;\n // Compute our attributes\n // this.computeAttributes();\n // create the container\n parent.insertBefore(div, nextSibling);\n this.domNodes.push(div);\n // Create the map\n this.createMap();\n // Execute our logic\n this.execute();\n // increment map number indicator\n map += 1;\n };\n\n /* Create the map for the widget */\n mapWidget.prototype.createMap = function(parent, nextSibling) {\n // create the leaflet and push it to #lfltMap\n Map[map] = L.map('lfltMap-' + map);\n // Install base tile layer (if none provided, default is \"osm\")\n // get tilelayers from JSON\n var fonds = JSON.parse(this.wiki.getTiddlerText(\"$:/plugins/sycom/leaflet/lib/tileLayers.json\"));\n // create tile layers list object from json list\n var Tiles = []; // leaflet tile layers\n var tiles = {}; // tile identifier for control\n // look for tile parameter\n setting.tile = this.getAttribute(\"tile\", \"osm\");\n setting.marker = this.getAttribute(\"marker\", null);\n // create tile layer list\n for (var i in fonds) {\n if (i == setting.tile || fonds[i].id == setting.tile) {\n setting.tile = fonds[i].id;\n }\n var couche = new L.TileLayer(fonds[i].url, {\n attribution: fonds[i].attrib,\n minZoom: fonds[i].zMin,\n maxZoom: fonds[i].zMax,\n unloadInvisibleTiles: true\n });\n Tiles[fonds[i].id] = couche;\n tiles[fonds[i].nom] = couche;\n }\n // if user entered a wrong tile id\n if (Tiles[setting.tile] === undefined) {\n setting.tile = \"osm\";\n $tw.utils.error(\"Seems you entered a wrong tile id, displayed osm instead. Please refer to plugin documentation to avoid this - error : \" + error);\n }\n Tiles[setting.tile].addTo(Map[map]);\n // install tile layer control if needed\n setting.tileControl = this.getAttribute(\"tileControl\");\n if (setting.tileControl) {\n var tControl = L.control.layers(tiles);\n tControl.addTo(Map[map]);\n }\n /* !todo to come next (will have to implement leaflet.draw extension)\n // look for draw parameter\n setting.drawControl = this.getAttribute(\"drawControl\");\n if (setting.drawControl) {\n // Initialize the FeatureGroup to store editable layers\n var drawnItems = new L.FeatureGroup();\n Map[map].addLayer(drawnItems);\n // Initialize the draw control and pass it the FeatureGroup of editable layers\n var drawControl = new L.Control.Draw({\n edit: {\n featureGroup: drawnItems\n }\n }\n );\n Map[map].addControl(drawControl);\n }\n*/\n };\n\n /* Compute the internal state of the widget */\n mapWidget.prototype.execute = function() {\n // getting wiki primary color\n // check if you defined a tiddler name for palette but no tiddler with that\n if(this.wiki.getTiddlerData(this.wiki.getTiddlerText(\"$:/palette\"))) Colour.wiki = this.wiki.getTiddlerData(this.wiki.getTiddlerText(\"$:/palette\")).primary;\n // switch back to basic blue\n else Colour.wiki = \"#5778d8\";\n\n // switch back to basic tiddlywiki blue if primary is defined from another color\n /* notes to upgrade this process\n if primaire is <<colour xxxx>> set to default gray\n if primaire.match(\"<<\") primaire=\"#555\"; */\n if (Colour.wiki.match(/</g)) Colour.wiki = \"#5778d8\";\n\n // getting style parameters\n var style = this.getAttribute(\"style\", undefined);\n var st;\n // case style defined\n if(style !== undefined) {\n st = JSON.parse(style);\n // color parameter will overwrite style color and style fillColor parameter\n if(st.fillColor) Colour[map] = this.getAttribute(\"color\", st.fillColor);\n else Colour[map] = this.getAttribute(\"color\", st.color);\n }\n // case style undefined\n else {\n st = null;\n // checking if user defined a color if no color go undefined\n Colour[map] = this.getAttribute(\"color\", undefined);\n }\n // create default icon\n // ?todo: only if there are points to display?\n L.icon.default = lfltIcon(setColor(null, map), setting.marker, map);\n\n // create whole map cluster\n // getting cluster size parameter, if exists\n clusterRadius[map] = this.getAttribute(\"cluster\", 80);\n clusterType[map] = this.getAttribute(\"clusterType\", \"map\");\n if (clusterRadius[map] === 0 || clusterType[map] == \"tiddler\") {\n // if clusterRadius null or clustering by tiddler, no whole clustering\n fCluster[map] = L.featureGroup();\n } else {\n // creating a cluter group for whole map\n fCluster[map] = L.markerClusterGroup({\n name: \"Cluster\" + map,\n polygonOptions: {\"weight\":\"0.5\"},\n maxClusterRadius: clusterRadius[map],\n /* for the record. may be a function\n function() {return (clusterRadius - 50) / 9 * Map[map].getZoom() + 50 - (clusterRadius - 50) / 9 },*/\n iconCreateFunction: createCluster\n });\n }\n // Get the declared places from the attributes\n var places = this.getAttribute(\"places\", undefined);\n var feature = L.featureGroup();\n // Render the map\n if (places) mapPlaces(this,\n JSON.parse(places),\n Map[map],\n fCluster[map],\n null,\n Colour[map],\n this.getAttribute(\"marker\"),\n st\n );\n\n // set map to objects bounds\n if (bounds) {\n Map[map].fitBounds(bounds);\n } else {\n bounds = lfltDefBounds;\n Map[map].fitBounds(bounds);\n }\n // if lat long zoom settings, overwrite bounds\n setting.lat = this.getAttribute(\"lat\");\n setting.lg = this.getAttribute(\"long\");\n setting.zoom = this.getAttribute(\"zoom\");\n // overwrite lat and long center\n if (setting.lat && setting.lg) {\n Map[map].setView([setting.lat, setting.lg]);\n }\n // overwrite zoom\n if (setting.zoom) {\n Map[map].setZoom(setting.zoom);\n }\n };\n\n // mapping a places json object (parent object, places json object, destination feature, destination cluster, popup for base objects, ands style parameters : color, marker, json style)\n function mapPlaces(obj, plcs, feat, clust, pop, col, mark, style) {\n // create feature for this mapping turn\n var feature = L.featureGroup();\n // case 1 : data in a tiddler\n if (plcs.tiddler) {\n // if no tiddler is given (single space) map current Tiddler\n // !todo would be much better if so when no attribute at all...\n if (plcs.tiddler == \" \") {\n mapTiddler(obj, obj.getVariable(\"currentTiddler\"), feature, clust, pop, col, mark, style);\n }\n // else, map the given tiddler\n else {\n // get data fields in the tiddler, let's seek for geo data\n mapTiddler(obj, plcs.tiddler, feature, clust, pop, col, mark, style);\n }\n }\n // case 2 : data in multiple tiddlers\n if (plcs.tiddlers) {\n mapTiddlers(obj, plcs.tiddlers, feature, clust, pop, col, mark, style);\n }\n // case 3 : data in tiddlers following a filter\n if (plcs.filter) {\n mapFilter(obj, plcs.filter, feature, clust, pop, col, mark, style);\n }\n // case 4 : data are directly listed in places (point(s) - polygon - polyline - geojson)\n // for each we will\n // - use dedicated function to populate mapping turn layer\n // - add layer to map\n if (plcs.point) {\n // add the point to the cluster layer\n mapPoint(plcs.point, clust, pop, col, mark);\n // add the cluster layer to map\n feature.addLayer(clust);\n // set bounds\n }\n if (plcs.points) {\n // ?todo : create a cluster for those points if clusterType == \"tiddler\"\n mapPoints(plcs.points, clust, pop, col, mark);\n feature.addLayer(clust);\n }\n if (plcs.polygon) {\n var polygFeat = L.featureGroup();\n mapPolyg(plcs.polygon, polygFeat, pop, col, style);\n polygFeat.addTo(feature);\n }\n if (plcs.polygons) {\n var polygsFeat = L.featureGroup();\n mapPolygs(plcs.polygons, polygsFeat, pop, col, style);\n polygsFeat.addTo(feature);\n }\n if (plcs.polyline) {\n var polylFeat = L.featureGroup();\n mapPolyl(plcs.polyline, polylFeat, pop, col, style);\n polylFeat.addTo(feature);\n }\n if (plcs.polylines) {\n var polylsFeat = L.featureGroup();\n mapPolyls(plcs.polylines, polylsFeat, pop, col, style);\n polylsFeat.addTo(feature);\n }\n if (plcs.geojson) {\n // !todo : create a cluster for those points if clusterType == \"tiddler\"\n var geojsonFeat = L.featureGroup();\n mapGeoJson(plcs.geojson, geojsonFeat, clust, col, mark, style);\n geojsonFeat.addTo(feat);\n }\n // add feature to map\n feature.addTo(feat);\n extBounds(feature);\n }\n\n // add a marker for a point\n function mapPoint(coord, clust, pop, col, mark) {\n try {\n var location = coord.split(\",\");\n } catch (err) {displayError(\"point coord error\", err);}\n try {\n var marker = L.marker(location, {\n icon: lfltIcon(col, mark, map)\n });\n if (pop) marker.bindPopup(pop);\n\t\t\tif (clust.count) clust.count +=1;\n\t\t\telse clust.count = 1;\n clust.addLayer(marker);\n } catch (err) {displayError(\"point marker error\", err);}\n }\n // add a marker serie for a points list\n function mapPoints(list, clust, pop, col, mark) {\n var Points = list.split(\" \");\n for (var pt in Points) {\n mapPoint(Points[pt], clust, pop, col, mark);\n }\n }\n\n // add a polygon\n function mapPolyg(list, feat, pop, col, st) {\n var Coords = list.split(\" \");\n var Shape = [];\n try {\n for (var nd in Coords) {\n var location = Coords[nd].split(\",\");\n Shape.push(location);\n }\n } catch (err) {\n displayError(\"polygone\", err);\n }\n try {\n var polygon = L.polygon(Shape, {\n color: setColor(col, map)\n });\n if (st) polygon.setStyle(checkStyle(st, col));\n if (pop) polygon.bindPopup(pop);\n polygon.addTo(feat);\n } catch (err) {\n displayError(\"polygone\", err);\n }\n }\n // add a polygons collection\n function mapPolygs(collec, feat, pop, col, st) {\n var Polys = collec.split(\"|\");\n for (var pg in Polys) {\n mapPolyg(Polys[pg], feat, pop, col, st);\n }\n }\n // add a polyline\n function mapPolyl(list, feat, pop, col, st) {\n var Coords = list.split(\" \");\n var Line = [];\n try {\n for (var nd in Coords) {\n var location = Coords[nd].split(\",\");\n Line.push(location);\n }\n } catch (err) {\n displayError(\"polyline\", err);\n }\n try {\n var polyline = L.polyline(Line, {\n color: setColor(col,map)\n });\n if (st) polyline.setStyle(checkStyle(st, col));\n if (pop) polyline.bindPopup(pop);\n // add polyline class in order to make fill transparent\n polyline.setStyle({\n \"className\": \"polyline\"\n }).addTo(feat);\n } catch (err) {\n displayError(\"polyline\", err);\n }\n }\n // add a polylines collection\n function mapPolyls(collec, feat, pop, col, st) {\n var Lines = collec.split(\"|\");\n for (var ln in Lines) {\n mapPolyl(Lines[ln], feat, pop, col, st);\n }\n }\n\n // add a geojson set\n function mapGeoJson(geojson, feat, clust, col, mark, st) {\n try {\n var data = JSON.parse(geojson);\n var geoJson = L.geoJSON(data, {\n // adding style\n style: function (feature) {\n // get feature style only if style is not injected\n // ?todo : only overwrite injected values?\n if (st === undefined || st === null) {\n st = {};\n if(feature.properties.style !== undefined) st = feature.properties.style;\n }\n // get feature properties style if exists\n if(feature.properties.color !== undefined) {\n st.color = feature.properties.color;\n st.fillColor = st.color;\n }\n // color parameter overwrite style color if exists\n if (col !== undefined && col !== null) {\n st.color = col;\n st.fillColor = col;\n }\n // if no color is defined at the end, fallback\n if (st.color === undefined) {\n col = setColor(col, map);\n st.color = col;\n st.fillColor = col;\n }\n return st;\n },\n onEachFeature: function (feature, layer) {\n layer.bindPopup(jsonPop(feature));\n },\n // adding points\n pointToLayer: function(geoJsonPoint, latlng) {\n // working to get color (from properties)\n var cl;\n if(geoJsonPoint.properties.color !== undefined) cl = geoJsonPoint.properties.color;\n if(geoJsonPoint.properties.fillColor !== undefined) cl = geoJsonPoint.properties.fillColor;\n if(col !== undefined && col !== null) cl = col;\n // binding default icon\n var jsonPoint = L.marker(latlng, {\n icon: lfltIcon(cl, mark, map)\n });\n jsonPoint.bindPopup(jsonPop(geoJsonPoint));\n\t\t\t\t\tif (clust.count) clust.count +=1;\n\t\t\t\t\telse clust.count = 1;\n clust.addLayer(jsonPoint);\n }\n });\n\n // ?todo : should we add clust to feat or to geoJson? should we add clust even if it's already here?\n feat.addLayer(clust);\n feat.addLayer(geoJson);\n } catch (error) {displayError(\"there was an error when displaying geoJson. error : \", error);}\n }\n\n // map a tiddler\n function mapTiddler(obj, tid, feat, clust, pop, col, mark, style) {\n if(iter.map.tid === undefined) iter.map.tid = 1;\n else iter.map.tid +=1;\n if(iter.map.tid < 4242) {\n // get data fields in the tiddler, let's seek for geo data\n var flds = obj.wiki.getTiddler(tid).fields,\n feature = L.featureGroup(), // create the tiddler feature\n popup = \"\"; // create the popup text\n // setting marker, color, style\n // if no marker injected, trying to get from tiddler\n if(mark === null || mark === undefined) {\n if(flds.marker) mark = flds.marker;\n }\n // working style and color together\n var cl, st = {};\n // style\n if(flds.style) st = JSON.parse(flds.style);\n // overwrite with injected values\n if (style !== undefined && style !== null) {\n st = style;\n /* ?todo : should we overwrite only injected?\n \tfor (var v in st) {\n if(style.v !== undefined) st.v = style.v;\n }\n \tfor (var v in style) {\n \t}*/\n }\n // color\n if (flds.color) cl = flds.color;\n // overwrite with injected color style if exists\n if (style !== undefined && style !== null) {\n if (st.fillColor !== undefined) cl = st.fillColor\n }\n // overwrite with injected color also in style\n if (col !== undefined && col !== null) {\n cl = col;\n st.color = cl; st.fillColor = cl;\n }\n Colour[\"t\" + tn] = cl;\n // if clusterType is tiddler, creating a cluster group for tiddler\n // also will have to deal with the filter / tiddler distinction\n if (clusterType[map] == \"tiddler\") {\n // ?todo : automate cluster creation?\n fCluster[\"t\" + tn] = L.markerClusterGroup({\n name: \"Cluster\" + map + \"Cluster\" + tn,\n polygonOptions: {\"weight\":\"0.5\"},\n maxClusterRadius: clusterRadius[map],\n /* for the record. may be a function\n function() {return (clusterRadius - 50) / 9 * Map[map].getZoom() + 50 - (clusterRadius - 50) / 9 },*/\n iconCreateFunction: createCluster\n });\n } else {\n fCluster[\"t\" + tn] = fCluster[map];\n }\n\n // case 1 : data stored in a json tiddler\n if (flds.type == \"application/json\") {\n // for now, assuming any json stored data is geoJson...\n var data = obj.wiki.getTiddlerText(tid);\n mapGeoJson(data, feature, fCluster[\"t\" + tn], Colour[\"t\" + tn], mark, st);\n feat.addLayer(feature);\n }\n // case 2 if tiddler is not JSON data, display tiddler stored geodata as point(s), polygon, polyline...\n else {\n // create the popup for base objects\n popup = \"<h4><a href=\\\"#\" + encodeURIComponent(flds.title) + \"\\\">\" + flds.title + \"</a></h4>\";\n var content = \"\";\n if (flds.text !== \"\") {\n // if tiddler contains a widget, avoid html rendering\n if (flds.text.match(/<\\$leafmap/)) {\n content += \"<pre>\" + flds.text + \"</pre>\";\n }\n // else render\n else {\n content += obj.wiki.renderTiddler(\"text/html\", tid).substring(0, 420);\n }\n }\n // adding a link to the tiddler\n content += \"<br/>(<a href=\\\"#\" + encodeURIComponent(flds.title) + \"\\\" title=\\\"read more...\\\">...</a>)\";\n popup += content;\n\n // map recursively (!!! danger !!!)\n mapPlaces(obj,\n flds,\n feature,\n fCluster[\"t\" + tn],\n popup,\n cl,\n mark,\n st\n );\n feature.addTo(feat);\n }\n /*\n// check if anything was rendered before binding popup\n if (wasRendered == 0) console.log(\"tw-leaflet-map-plugin > non geotiddler was listed and not rendered : \" + flds.title);\n // add the layer to the feature\n feature.addLayer(subFeat);\n feature.addTo(Map[map]); // layer.addTo(Map[map]);\n } */\n // get layer bounds for automatic zoom\n extBounds(feature);\n tn++;\n }\n // it tiddler rendered two many times for same map. Stoping and error launch\n else $tw.utils.error(\"tiddler [[\" + tid + \"]] was rendered more than 4242 times in this map. Please double check circular dependencies...\");\n }\n\n // map a tiddler collection\n function mapTiddlers(obj, list, feat, clust, pop, col, mark, style) {\n var Tids = list.split(\" \");\n for (var td in Tids) {\n mapTiddler(obj, Tids[td], feat, clust, pop, col, mark, style);\n }\n }\n\n // map tiddlers with a filter\n function mapFilter(obj, filter, feat, clust, pop, col, mark, style) {\n try {\n var Tids = obj.wiki.filterTiddlers(filter);\n for (var td in Tids) {\n mapTiddler(obj, Tids[td], feat, clust, pop, col, mark, style);\n }\n } catch (error) {\n $tw.utils.error(\"sorry there was something wrong when trying to map your filter. error : \" + error);\n }\n }\n\n // icon url creator\n function iconUrl(col, tid, m) {\n var icone = escape($tw.wiki.renderTiddler(\"text/html\", tid).replace(\"$primary$\", setColor(col, m)).replace(\"</p>\", \"\").replace(\"<p>\", \"\"));\n return ('data:image/svg+xml;charset=UTF-8,' + icone);\n }\n\n // create marker\n // ?todo only if there are points to display;\n function lfltIcon(col, tid, m) {\n // checking if marker is defined. Fallback to default\n if(tid === undefined || tid === null) tid = \"$:/plugins/sycom/leaflet/images/marker.svg\";\n else tid = \"$:/plugins/sycom/leaflet/images/\" + tid + \".svg\";\n if($tw.wiki.getTiddler(tid) === undefined) tid = \"$:/plugins/sycom/leaflet/images/marker.svg\";\n // !todo create shadow from icon by transform matrix?\n var shad = tid.split(\".svg\")[0] + \"shadow.svg\",\n shadowUrl = 'data:image/svg+xml;charset=UTF-8,' + escape($tw.wiki.getTiddlerText(shad));\n // get dimensions in tiddler\n var MarkDim = $tw.wiki.getTiddler(tid).fields.marker_dim.split(\" \");\n var ShadDim = $tw.wiki.getTiddler(shad).fields.marker_dim.split(\" \");\n var theIcon = L.icon({\n iconUrl: iconUrl(col, tid, m),\n iconRetinaUrl: iconUrl(col, tid, m),\n iconSize: [MarkDim[0], MarkDim[1]],\n iconAnchor: [MarkDim[2], MarkDim[3]],\n popupAnchor: [0, -MarkDim[3]],\n shadowUrl: shadowUrl,\n shadowRetinaUrl: shadowUrl,\n shadowSize: [ShadDim[0], ShadDim[1]],\n shadowAnchor: [ShadDim[2], ShadDim[3]]\n });\n return theIcon;\n }\n\n // set color with fallback to map color or wiki...\n function setColor(col, m) {\n if(m === undefined) m = map;\n if (col === undefined || col === null) col = Colour[m];\n if (col === undefined || col === null) col = Colour.wiki;\n return col;\n }\n\n // set style with fallback to map color or wiki...\n function checkStyle(sty, col) {\n if (col === undefined || col === null) {\n if(sty.color === undefined) sty.color = setColor(col, map);\n if(sty.fillColor === undefined) sty.fillColor = setColor(col, map);\n }\n else {\n sty.color = col;\n sty.fillColor = col;\n }\n return sty;\n }\n\n // coordinate error message\n function displayError(objectType, error) {\n $tw.utils.error(\"there was an error when mapping a \" + objectType + \" - error : \" + error);\n }\n\n // adjust bounds to layer\n function extBounds(feat) {\n try {\n if (bounds) {\n bounds.extend(feat.getBounds());\n } else {\n if (feat.getBounds()._northEast) {\n bounds = feat.getBounds();\n }\n }\n } catch (error) {\n $tw.utils.error(\"there was an error when trying to zoom on bounds. error : \" + error);\n }\n }\n\n // cluster icon creation\n function createCluster(clust) {\n // getting back map number\n var m = this.name.split(\"Cluster\")[1],\n t = this.name.split(\"Cluster\")[2],\n zC = Map[m].getZoom(),\n z0,cTot,cCol,cOpa;\n // checking object density mean for the map\n if (t === undefined) {\n if (fCluster[m].z0 === undefined) fCluster[m].z0 = zC;\n z0 = fCluster[m].z0;\n if (fCluster[m].count === undefined) fCluster[m].count = 1;\n cTot = fCluster[m].count;\n cCol = setColor(Colour[m],m);\n cOpa = 0.85\n }\n else {\n if (fCluster[\"t\" + t].z0 === undefined) fCluster[\"t\" + t].z0 = zC;\n z0 = fCluster[\"t\" + t].z0;\n if (fCluster[\"t\" + t].count === undefined) fCluster[\"t\" + t].count = 1;\n cTot = fCluster[\"t\" + t].count;\n cCol = setColor(Colour[\"t\" + t],m);\n cOpa = 0.65\n }\n // cluster icon size will be based on item number and zoom\n // !todo: use density to get a more \"local\" percentage before calculating size\n var cC = clust.getChildCount(),\n cS = 20 * Math.log(clusterRadius[m]) * (1 + Math.log(cTot)/Math.max(cTot * Math.pow(2,zC-z0),Math.log(cTot))) * (1 - 1 / ((Math.log(cTot) / cTot) * Math.pow(2,zC-z0) * cC + 1));\n if (cS < 34) cS = 34;\n var cF; // font size of cluster text\n if (cC > 9999) cF = cS / 3;\n else {if (cC > 999) cF = cS / 3.5;\n else cF = cS / 2}\n if (cF < 12) cF = 12;\n // creating icon. Checking tiddler or whole clustering before\n return new L.DivIcon({\n html: '<div style=\"width:' + cS + 'px;height:' + cS + 'px;font-size:' + cF + 'px;background-color:' + cCol + ';border-color:' + cCol + ';opacity:'+cOpa+'\"><div><span style=\"line-height:' + cS + 'px;opacity:'+(cOpa+0.12)+'\">' + cC + \"</span></div></div>\",\n className: \"marker-cluster marker-cluster-\" + cC,\n iconSize: new L.Point(cS, cS)\n });\n }\n\n // popup function for Json\n function jsonPop(feat) {\n // extracting data to create popup (all non-null data!)\n var Prop = feat.properties,\n jsontitle = \"\",\n jsondesc = \"\",\n jsonhtml = \"\";\n // testing if properties title or name exists\n if (Prop.name) jsontitle += Prop.name + \" \";\n if (Prop.title) jsontitle += Prop.title + \" \";\n if (Prop.description) jsondesc += Prop.description + \"\";\n // populating other data\n // if we got a title\n if (jsontitle !== \"\") {\n jsonhtml += \"<h4>\" + jsontitle + \"</h4>\";\n // if we got a description let's give it\n if (jsondesc !== \"\") jsonhtml += jsondesc;\n else {\n jsonhtml+= \"<ul>\";\n for (var p in Prop) {\n if (Prop[p] !== null && Prop[p] !== \"\" && p != \"name\" && p != \"title\") jsonhtml += \"<li>\" + p + \" : \" + Prop[p] + \"</li>\";\n }\n jsonhtml += \"</ul>\";\n }\n }\n // if we have no title, giving one with first fields\n else {\n // in case we've got a description. Stop after title\n if (jsondesc !== \"\") {\n for (var pr in Prop) {\n // if title is really to short (as an id), taking next field\n if (jsontitle.length < 8) jsontitle += Prop[pr] + \" \";\n else break;\n }\n jsonhtml = \"<h4>\" + jsontitle + \"</h4>\" + jsonhtml;\n }\n else {\n for (var po in Prop) {\n // if title is really to short (as an id), taking next field\n if (jsontitle.length < 4) jsontitle += Prop[po] + \" \";\n else {\n if (Prop[po] !== null && Prop[po] !== \"\") jsonhtml += \"<li>\" + po + \" : \" + Prop[po] + \"</li>\";\n }\n }\n jsonhtml = \"<h4>\" + jsontitle + \"</h4><ul>\" + jsonhtml + \"</ul>\";\n }\n }\n return jsonhtml;\n }\n\n exports.leafmap = mapWidget;\n\n})();\n/*\nMISC NOTES for later\nJSON.parse(tiddler.fields.text);\nvar jsonData = this.wiki.getTiddlerAsJson(this.to),\n*/\n",
"created": "20151028202401905",
"modified": "20170318234011605",
"type": "application/javascript",
"module-type": "widget"
},
"$:/plugins/sycom/leaflet/readme": {
"title": "$:/plugins/sycom/leaflet/readme",
"text": "The [leaflet plugin](#$:/plugins/sycom/leaflet) is a work in progress integration of the [leaflet][leaflet] library in TiddlyWiki in order to display geographical purpose tiddlers.\n\nHave a look at [demo page on the web][plugindemo] or at integrated documentation which describes usage and examples.\n\nKeep in mind that the plugin might be buggy or imperfect. Please [report any comment or issue][issues] on main repo.\n\n## Sources / licenses\n* [leaflet][leaflet] library (_1.3.1_) - License 2-clause BSD\n * leaflet-[markerCluster][markercluster] extension - Licence MIT\n* [leaflet plugin][source] is released under similar [BSD 3-Clause license][license] as TiddlyWiki.\n!! Side projects\n\n[plugindemo]: https://sycom.gitlab.io/TiddlyWiki-Plugins/#Michel%20Strogoff%20from%20the%20sky\n[source]: https://framagit.org/sycom/TiddlyWiki-Plugins/plugins/sycom/leaflet\n[issues]: https://framagit.org/sycom/TiddlyWiki-Plugins/issues\n[leaflet]: http://leafletjs.com/\n[markercluster]: https://github.com/Leaflet/Leaflet.markercluster\n[license]: https://framagit.org/sycom/TiddlyWiki-Plugins/LICENSE.md\n",
"type": "text/x-markdown",
"created": "20151119173416000",
"modified": "20190332172200000",
"caption": "Readme"
},
"$:/plugins/sycom/leaflet/templates/geoTiddler": {
"title": "$:/plugins/sycom/leaflet/templates/geoTiddler",
"created": "20180602095702318",
"modified": "20180602105242971",
"tags": "$:/tags/ViewTemplate",
"type": "text/vnd.tiddlywiki",
"text": "<$list filter=\"[all[current]has[point]] [all[current]has[points]] [all[current]has[polyline]] [all[current]has[polylines]] [all[current]has[polygon]] [all[current]has[polygons]] [all[current]has[places]] [all[current]has[geojson]]\">\n <$leafmap places='{\"tiddler\":\" \"}' height='240px'/>\n</$list>\n"
}
}
}
Different ways to use the [[leaflet plugin|$:/plugins/sycom/leaflet]]
{{$:/plugins/sycom/leaflet/example/leaflet_with_geotiddler}}
{{$:/plugins/sycom/leaflet/example/leaflet_with_geojsontiddler}}
{{$:/plugins/sycom/leaflet/example/leaflet_with_non-tiddler_geo_data}}
{{$:/plugins/sycom/leaflet/example/leaflet_with_filter}}
{
"tiddlers": {
"$:/plugins/telmiger/ColorAction/coloraction.js": {
"text": "/*\\\ntitle: $:/plugins/telmiger/ColorAction/coloraction.js\ntype: application/javascript\nmodule-type: macro\n\nBased on TinyColor by Brian Grinstead: $:/plugins/telmiger/ColorAction/tinycolor.js\nExtended, adapted and documented for TiddlyWiki 5 by Thomas Elmiger\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"coloraction\";\n\nexports.params = [\n {name: \"color\", default: \"#000\"},\n {name: \"mod\", default: false},\n {name: \"value\", default: false},\n {name: \"alpha\", default: false},\n {name: \"action\", default: \"toRgbString\"}\n];\n\nif (typeof window !== 'undefined') {\n var tinycolor = require(\"$:/plugins/telmiger/ColorAction/tinycolor.js\");\n}\n\n/*\nWikify\n*/\nfunction wikifyText(t) {\n\tvar Parser = $tw.wiki.parseText(\"text/vnd.tiddlywiki\",t,{\n\t\t\tparseAsInline: true\n\t\t});\n\tvar WidgetNode = $tw.wiki.makeWidget(Parser,{\n\t\t\tdocument: $tw.fakeDocument\n\t\t});\n\tvar Container = $tw.fakeDocument.createElement(\"div\");\n\tWidgetNode.render(Container,null);\n\treturn Container.textContent;\n}\n\n/*\nPrecision for decimals\n*/\nfunction addPrecisionDecimals(value,decimals) { \n const beforecomma = value.toString().split('.')[0].length;\n const precision = beforecomma + parseInt(decimals);\n return (precision > 0 && precision < 101) ? value.toPrecision(precision) : \"invalid decimals\";\n}\n\n/* \nalphaBlend – idea adapted from https://github.com/bgrins/TinyColor/issues/157\n*/\nfunction alphaBlend(color1,color2) {\n const basecolor = tinycolor(color1);\n const blendcolor = tinycolor(color2);\n const base = [basecolor._r, basecolor._g, basecolor._b, basecolor._a];\n const add = [blendcolor._r, blendcolor._g, blendcolor._b, blendcolor._a];\n let mix = [];\n mix[3] = 1 - (1 - add[3]) * (1 - base[3]); // alpha\n mix[0] = Math.round((add[0] * add[3] / mix[3]) + (base[0] * base[3] * (1 - add[3]) / mix[3])); // red\n mix[1] = Math.round((add[1] * add[3] / mix[3]) + (base[1] * base[3] * (1 - add[3]) / mix[3])); // green\n mix[2] = Math.round((add[2] * add[3] / mix[3]) + (base[2] * base[3] * (1 - add[3]) / mix[3])); // blue\n const finalcolor = tinycolor.fromRatio({r: mix[0], g: mix[1], b: mix[2], a: mix[3]});\n return finalcolor.toRgbString(); \n}\n\n/* \nalphaContrast – calculate alpha against a background first\n*/\nfunction alphaContrast(background,foreground) {\n // maybe calculate a ± margin like Lea Verou does on https://leaverou.github.io/contrast-ratio/ ?\n // color.overlayOn(Color.BLACK).luminance + ' - ' + color.overlayOn(Color.WHITE).luminance;\n let color1 = background;\n const alpha1 = tinycolor(background).getAlpha();\n if(alpha1 < 1) {\n if(tinycolor(foreground).isLight() && tinycolor(background).isDark()) {\n color1 = alphaBlend(\"#000\", background);\n }\n else {\n color1 = alphaBlend(\"#fff\", background);\n }\n }\n // if foreground has transparency do an alphaBlend on background\n const alpha2 = tinycolor(foreground).getAlpha();\n const color2 = alpha2 < 1 ? alphaBlend(color1, foreground) : foreground;\n return tinycolor.readability(color1, color2);\n}\n\n/* \nprecisionContrast – indicate precision for alphaContrast\n*/\nfunction precisionContrast(background,foreground,decimals,indicator) {\n const contrast = alphaContrast(background, foreground);\n const result = addPrecisionDecimals(contrast, decimals);\n const alpha = tinycolor(background).getAlpha();\n return alpha < 1 && indicator ? indicator + result : result;\n}\n\n/* \ninvert – convert to negative\n*/\nfunction invert(color) {\n const basecolor = tinycolor(color);\n const base = [basecolor._r, basecolor._g, basecolor._b, basecolor._a];\n let inverted = [];\n inverted[0] = Math.round(255 - base[0]); // red\n inverted[1] = Math.round(255 - base[1]); // green\n inverted[2] = Math.round(255 - base[2]); // blue\n const finalcolor = tinycolor.fromRatio({r: inverted[0], g: inverted[1], b: inverted[2], a: base[3]});\n return finalcolor.toRgbString(); \n}\n\n/* \ninvertBrightness\n*/\nfunction invertBrightness(color) {\n const basecolor = tinycolor(color);\n const brightness = basecolor.getBrightness(); // 0–255\n const shift = Math.round((255 - (brightness * 2)) / 2.55);\n let inverted = shift >= 0 ? basecolor.brighten(shift) : basecolor.darken(shift * -1);\n return inverted.toRgb(); \n}\n\n/*\nRun the macro\n*/\nexports.run = function(color,mod,value,alpha,action) {\n var result = \"\";\n var color1 = wikifyText(color);\n var mycolor = color1 !== \"random\" ? tinycolor(color1) : tinycolor.random();\n if(value === false) {\n // set default\n value = mod === \"mix\" ? 50 : 10;\n }\n // apply modification\n if(mod) {\n if(mod === \"lighten\" || mod === \"brighten\" || mod === \"darken\"\n || mod === \"desaturate\" || mod === \"saturate\" || mod === \"spin\") {\n mycolor[mod](parseInt(value, 10));\n }\n else if(mod === \"greyscale\") {\n mycolor[mod]();\n }\n else if(mod === \"complement\") {\n mycolor.spin(180);\n }\n else if(mod === \"invert\") {\n mycolor = tinycolor(invert(color1));\n }\n else if(mod === \"invertBrightness\") {\n mycolor = tinycolor(invertBrightness(color1));\n }\n else if(action === \"getContrast\" || action === \"getReadability\" \n || action === \"mix\" || action === \"alphablend\" || action === \"compare\" || action === \"equals\") {\n // set mod as color2, don’t use alpha param\n let secondcolor = wikifyText(mod);\n var color2 = tinycolor(secondcolor).toRgbString();\n alpha = false;\n }\n }\n // set alpha\n if(alpha) {\n mycolor.setAlpha(alpha);\n }\n // execute action\n if(action !== \"toRgbString\") {\n if(action === \"getBrightness\" || action === \"getFormat\" || action === \"getLuminance\"\n || action === \"getAlpha\" || action === \"isLight\" || action === \"isDark\"|| action === \"isValid\"\n || action === \"toHexString\" || action === \"toHsvString\" || action === \"toHslString\"\n || action === \"toHex\"|| action === \"toName\" || action === \"toFilter\") {\n result = mycolor[action]();\n }\n else if(action === \"toHsl\" || action === \"toHsv\") {\n let objResult = mycolor[action]();\n result = JSON.stringify(objResult);\n }\n else if(action === \"getContrast\") {\n result= precisionContrast(color1, color2, 1, \"~\");\n }\n else if(action === \"getReadability\") {\n let contrastratio = precisionContrast(color1, color2, 1);\n result = contrastratio >= 3 ? \"AA large\" : \"fail\";\n result = contrastratio >= 4.5 ? \"AAA large/AA small\" : result;\n result = contrastratio >= 7 ? \"AAA small\" : result;\n }\n else if(action === \"mix\") {\n result = tinycolor.mix(color1, color2, value);\n }\n else if(action === \"alphablend\") {\n result = alphaBlend(color1, color2);\n }\n else if(action === \"equals\") {\n result = tinycolor.equals(color1, color2);\n }\n else if(action === \"getOriginalInput\") {\n result = mycolor.getOriginalInput();\n }\n }\n else {\n result = mycolor.toRgbString(); \n }\n result = result === 0 ? \"0\" : result;\n result = result === false ? \"false\" : result;\n return result;\n};\n\n})();\n",
"type": "application/javascript",
"title": "$:/plugins/telmiger/ColorAction/coloraction.js",
"tags": "StylesheetManager",
"module-type": "macro",
"modifier": "Thomas Elmiger",
"modified": "20180128092244840",
"creator": "Thomas Elmiger",
"created": "20170626211546891"
},
"$:/plugins/telmiger/ColorAction/colors": {
"created": "20180104210557083",
"creator": "Thomas Elmiger",
"text": "!!! Named Colors\n\n[[TinyColor|https://github.com/bgrins/TinyColor]] supports named colors according to ''W3C Extended color keywords'' supported by popular browsers. The list is the same as the SVG 1.0 color keyword names.\n\nSee https://www.w3.org/TR/css-color-3/#svg-color\n\n\n!!! Note for developers\nThe list of colours might be the same as in $:/core/modules/utils/dom/csscolorparser.js (var kCSSColorTable). Maybe we can import it from there in the future?",
"title": "$:/plugins/telmiger/ColorAction/colors",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20180106170406842"
},
"$:/plugins/telmiger/ColorAction/licence": {
"text": "`TinyColor and ColorAction are both published under the MIT Licence.`\n\n!!! TinyColor\nThe library in $:/plugins/telmiger/ColorAction/tinycolor.js is<br>\nCopyright (c), Brian Grinstead, https://briangrinstead.com\n\n!!! ColorAction\nThe macro in $:/plugins/telmiger/ColorAction/coloraction.js is<br>\nCopyright (c), Thomas Elmiger, https://thomas-elmiger.ch\n\n!!! MIT Licence\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"title": "$:/plugins/telmiger/ColorAction/licence",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20180104064048013",
"creator": "Thomas Elmiger",
"created": "20180104062422859"
},
"$:/plugins/telmiger/ColorAction/readme": {
"created": "20180102220706333",
"creator": "Thomas Elmiger",
"text": "!! Working with color\n\nThis plugin lets you work with one or two colors using one or two of these possibilities:\n\n* ''actions'' tell you something about a color\n* ''modifications'' calculate a new color based on an input color\n** additionally you can set an ''alpha'' value for the resulting color\n* ''utilities'' give you a random color or spin the color wheel\n* ''two color actions'' compare or combine colors in different ways\n\nThe macro handles most methods from https://github.com/bgrins/TinyColor#methods plus some additional ones: //invert//, //invertBrightness// and //alphablend//.\n\n!!! Syntax and attributes\n\nNote: if the color input is not valid then the macro will act like it was //black// when being used with other actions than //isValid//.\n\n`<<coloraction #000 lighten 95 .5 toHex>>`\n<br>Result: <<coloraction #000 lighten 95 .5 toHex>>\n\n```\n<$macrocall $name=\"coloraction\" color=\"#000\" mod=\"lighten\" value=\"95\" alpha=\".5\" action=\"toHex\"/>\n```\nResult: <$macrocall $name=\"coloraction\" color=\"#000\" mod=\"lighten\" value=\"95\" alpha=\".5\" action=\"toHex\"/>\n\n!!!! Default attribute values\n* color: #000\n* mod: false\n* value: 10 / 50 for action \"mix\"\n* alpha: false\n* action: toRgbString\n\n!!!! Modifications (mod)\n* lighten\n* brighten\n* darken\n* desaturate\n* saturate\n* greyscale\n\n''Modification utilities''\n\n* //spin// gets you another color from the color wheel which is tuned //value// degrees\n* //complement// (implemented with a spin-workaround)\n* //invert// \n* //invertBrightness//\n* Get a random color: Use //random// instead of a color value.\n\n!!!! Alpha\n* setAlpha is implemented as a separate parameter //alpha.//\n\n!!!! Actions\n\n* getFormat\n* getBrightness\n* isValid\n* isLight\n* isDark\n* getAlpha\n* getLuminance\n* getOriginalInput\n* toHex\n* toHsl – returns a JSON-string\n* toHsv – returns a JSON-string\n* toHexString\n* toHslString\n* toHsvString\n* toName\n* toFilter\n\n---\n\n!!! Two color actions\nThe second attribute //mod// is used as second color.\n\n* color: background\n* color2: foreground\n\n!!!! Readability and contrast\nImplementations differ from https://github.com/bgrins/TinyColor#readability\n\n//NB:// If the first/background color has an alpha < 1 we assume a white or black background behind it. If the foreground is light and the background is dark, then black is used, else white. The lack of precision is indicated using a tilde ~ in front of the resulting value. \n\n```\n<$macrocall $name=\"coloraction\" color=\"#000\" mod=\"#f59\" action=\"getReadability\"/>\n```\n\nResult: <$macrocall $name=\"coloraction\" color=\"#000\" mod=\"#f59\" action=\"getReadability\"/>\n\n* getContrast\n** Returns the contrast ratio between two colors.\n* getReadability\n** Returns the best grade of the following:\n**# AAA small (>= 7:1)\n**# AAA large/AA small (>= 4.5:1)\n**# AA large (>= 3:1)\n**# fail (< 3:1)\n\n!!!! Mix \n* //value// defines the percentage of color2 (defaults to 50)\n* alpha value is mixed separately\n\n```\n<<coloraction \"rgb(100,0,0)\" \"rgba(0,0,100,.5)\" \"75\" action:\"mix\">>\n```\nResult: <$macrocall $name=\"coloraction\" color=\"rgb(100,0,0)\" mod=\"rgba(0,0,100,.5)\" value=\"75\" action=\"mix\"/>\n\n!!!! Alphablend\nThis uses color1 as background and color2/mod as a foreground overlay. \n\n* For optimal results color2 should have an alpha value < 1 so some of the background is blended in. \n* Any //value// attribute is ignored.\n\n```\n<<coloraction \"rgb(100,0,0)\" \"rgba(0,0,100,.5)\" action:\"alphablend\">>\n```\nResult: <<coloraction \"rgb(100,0,0)\" \"rgba(0,0,100,.5)\" action:\"alphablend\">>\n\n!!!! Equals – is it the same?\n\n```\n<<coloraction \"rgba(0,0,255,1)\" #00f action:\"equals\">>\n```\nResult: <<coloraction \"rgba(0,0,255,1)\" #00f action:\"equals\">>\n\n---\n\n!!! Not implemented\n* isReadable – we have getReadability instead\n* mostReadable – TW has $:/core/modules/macros/contrastcolour.js for this (?)\n* Color Combinations other than //complement//\n** analogous\n** monochromatic\n** splitcomplement\n** triad\n** tetrad\n* clone\n* maybe I overlooked something …",
"title": "$:/plugins/telmiger/ColorAction/readme",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20180128100040464"
},
"$:/plugins/telmiger/ColorAction/tinycolor.js": {
"text": "// TinyColor v1.4.1\n// https://github.com/bgrins/TinyColor\n\n(function(Math) {\n\nvar trimLeft = /^\\s+/,\n trimRight = /\\s+$/,\n tinyCounter = 0,\n mathRound = Math.round,\n mathMin = Math.min,\n mathMax = Math.max,\n mathRandom = Math.random;\n\nfunction tinycolor (color, opts) {\n\n color = (color) ? color : '';\n opts = opts || { };\n\n // If input is already a tinycolor, return itself\n if (color instanceof tinycolor) {\n return color;\n }\n // If we are called as a function, call using new instead\n if (!(this instanceof tinycolor)) {\n return new tinycolor(color, opts);\n }\n\n var rgb = inputToRGB(color);\n this._originalInput = color,\n this._r = rgb.r,\n this._g = rgb.g,\n this._b = rgb.b,\n this._a = rgb.a,\n this._roundA = mathRound(100*this._a) / 100,\n this._format = opts.format || rgb.format;\n this._gradientType = opts.gradientType;\n\n // Don't let the range of [0,255] come back in [0,1].\n // Potentially lose a little bit of precision here, but will fix issues where\n // .5 gets interpreted as half of the total, instead of half of 1\n // If it was supposed to be 128, this was already taken care of by `inputToRgb`\n if (this._r < 1) { this._r = mathRound(this._r); }\n if (this._g < 1) { this._g = mathRound(this._g); }\n if (this._b < 1) { this._b = mathRound(this._b); }\n\n this._ok = rgb.ok;\n this._tc_id = tinyCounter++;\n}\n\ntinycolor.prototype = {\n isDark: function() {\n return this.getBrightness() < 128;\n },\n isLight: function() {\n return !this.isDark();\n },\n isValid: function() {\n return this._ok;\n },\n getOriginalInput: function() {\n return this._originalInput;\n },\n getFormat: function() {\n return this._format;\n },\n getAlpha: function() {\n return this._a;\n },\n getBrightness: function() {\n //http://www.w3.org/TR/AERT#color-contrast\n var rgb = this.toRgb();\n return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;\n },\n getLuminance: function() {\n //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n var rgb = this.toRgb();\n var RsRGB, GsRGB, BsRGB, R, G, B;\n RsRGB = rgb.r/255;\n GsRGB = rgb.g/255;\n BsRGB = rgb.b/255;\n\n if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}\n if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}\n if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}\n return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);\n },\n setAlpha: function(value) {\n this._a = boundAlpha(value);\n this._roundA = mathRound(100*this._a) / 100;\n return this;\n },\n toHsv: function() {\n var hsv = rgbToHsv(this._r, this._g, this._b);\n return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };\n },\n toHsvString: function() {\n var hsv = rgbToHsv(this._r, this._g, this._b);\n var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);\n return (this._a == 1) ?\n \"hsv(\" + h + \", \" + s + \"%, \" + v + \"%)\" :\n \"hsva(\" + h + \", \" + s + \"%, \" + v + \"%, \"+ this._roundA + \")\";\n },\n toHsl: function() {\n var hsl = rgbToHsl(this._r, this._g, this._b);\n return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };\n },\n toHslString: function() {\n var hsl = rgbToHsl(this._r, this._g, this._b);\n var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);\n return (this._a == 1) ?\n \"hsl(\" + h + \", \" + s + \"%, \" + l + \"%)\" :\n \"hsla(\" + h + \", \" + s + \"%, \" + l + \"%, \"+ this._roundA + \")\";\n },\n toHex: function(allow3Char) {\n return rgbToHex(this._r, this._g, this._b, allow3Char);\n },\n toHexString: function(allow3Char) {\n return '#' + this.toHex(allow3Char);\n },\n toHex8: function(allow4Char) {\n return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);\n },\n toHex8String: function(allow4Char) {\n return '#' + this.toHex8(allow4Char);\n },\n toRgb: function() {\n return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };\n },\n toRgbString: function() {\n return (this._a == 1) ?\n \"rgb(\" + mathRound(this._r) + \", \" + mathRound(this._g) + \", \" + mathRound(this._b) + \")\" :\n \"rgba(\" + mathRound(this._r) + \", \" + mathRound(this._g) + \", \" + mathRound(this._b) + \", \" + this._roundA + \")\";\n },\n toPercentageRgb: function() {\n return { r: mathRound(bound01(this._r, 255) * 100) + \"%\", g: mathRound(bound01(this._g, 255) * 100) + \"%\", b: mathRound(bound01(this._b, 255) * 100) + \"%\", a: this._a };\n },\n toPercentageRgbString: function() {\n return (this._a == 1) ?\n \"rgb(\" + mathRound(bound01(this._r, 255) * 100) + \"%, \" + mathRound(bound01(this._g, 255) * 100) + \"%, \" + mathRound(bound01(this._b, 255) * 100) + \"%)\" :\n \"rgba(\" + mathRound(bound01(this._r, 255) * 100) + \"%, \" + mathRound(bound01(this._g, 255) * 100) + \"%, \" + mathRound(bound01(this._b, 255) * 100) + \"%, \" + this._roundA + \")\";\n },\n toName: function() {\n if (this._a === 0) {\n return \"transparent\";\n }\n\n if (this._a < 1) {\n return false;\n }\n\n return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;\n },\n toFilter: function(secondColor) {\n var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);\n var secondHex8String = hex8String;\n var gradientType = this._gradientType ? \"GradientType = 1, \" : \"\";\n\n if (secondColor) {\n var s = tinycolor(secondColor);\n secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);\n }\n\n return \"progid:DXImageTransform.Microsoft.gradient(\"+gradientType+\"startColorstr=\"+hex8String+\",endColorstr=\"+secondHex8String+\")\";\n },\n toString: function(format) {\n var formatSet = !!format;\n format = format || this._format;\n\n var formattedString = false;\n var hasAlpha = this._a < 1 && this._a >= 0;\n var needsAlphaFormat = !formatSet && hasAlpha && (format === \"hex\" || format === \"hex6\" || format === \"hex3\" || format === \"hex4\" || format === \"hex8\" || format === \"name\");\n\n if (needsAlphaFormat) {\n // Special case for \"transparent\", all other non-alpha formats\n // will return rgba when there is transparency.\n if (format === \"name\" && this._a === 0) {\n return this.toName();\n }\n return this.toRgbString();\n }\n if (format === \"rgb\") {\n formattedString = this.toRgbString();\n }\n if (format === \"prgb\") {\n formattedString = this.toPercentageRgbString();\n }\n if (format === \"hex\" || format === \"hex6\") {\n formattedString = this.toHexString();\n }\n if (format === \"hex3\") {\n formattedString = this.toHexString(true);\n }\n if (format === \"hex4\") {\n formattedString = this.toHex8String(true);\n }\n if (format === \"hex8\") {\n formattedString = this.toHex8String();\n }\n if (format === \"name\") {\n formattedString = this.toName();\n }\n if (format === \"hsl\") {\n formattedString = this.toHslString();\n }\n if (format === \"hsv\") {\n formattedString = this.toHsvString();\n }\n\n return formattedString || this.toHexString();\n },\n clone: function() {\n return tinycolor(this.toString());\n },\n\n _applyModification: function(fn, args) {\n var color = fn.apply(null, [this].concat([].slice.call(args)));\n this._r = color._r;\n this._g = color._g;\n this._b = color._b;\n this.setAlpha(color._a);\n return this;\n },\n lighten: function() {\n return this._applyModification(lighten, arguments);\n },\n brighten: function() {\n return this._applyModification(brighten, arguments);\n },\n darken: function() {\n return this._applyModification(darken, arguments);\n },\n desaturate: function() {\n return this._applyModification(desaturate, arguments);\n },\n saturate: function() {\n return this._applyModification(saturate, arguments);\n },\n greyscale: function() {\n return this._applyModification(greyscale, arguments);\n },\n spin: function() {\n return this._applyModification(spin, arguments);\n },\n\n _applyCombination: function(fn, args) {\n return fn.apply(null, [this].concat([].slice.call(args)));\n },\n analogous: function() {\n return this._applyCombination(analogous, arguments);\n },\n complement: function() {\n return this._applyCombination(complement, arguments);\n },\n monochromatic: function() {\n return this._applyCombination(monochromatic, arguments);\n },\n splitcomplement: function() {\n return this._applyCombination(splitcomplement, arguments);\n },\n triad: function() {\n return this._applyCombination(triad, arguments);\n },\n tetrad: function() {\n return this._applyCombination(tetrad, arguments);\n }\n};\n\n// If input is an object, force 1 into \"1.0\" to handle ratios properly\n// String input requires \"1.0\" as input, so 1 will be treated as 1\ntinycolor.fromRatio = function(color, opts) {\n if (typeof color == \"object\") {\n var newColor = {};\n for (var i in color) {\n if (color.hasOwnProperty(i)) {\n if (i === \"a\") {\n newColor[i] = color[i];\n }\n else {\n newColor[i] = convertToPercentage(color[i]);\n }\n }\n }\n color = newColor;\n }\n\n return tinycolor(color, opts);\n};\n\n// Given a string or object, convert that input to RGB\n// Possible string inputs:\n//\n// \"red\"\n// \"#f00\" or \"f00\"\n// \"#ff0000\" or \"ff0000\"\n// \"#ff000000\" or \"ff000000\"\n// \"rgb 255 0 0\" or \"rgb (255, 0, 0)\"\n// \"rgb 1.0 0 0\" or \"rgb (1, 0, 0)\"\n// \"rgba (255, 0, 0, 1)\" or \"rgba 255, 0, 0, 1\"\n// \"rgba (1.0, 0, 0, 1)\" or \"rgba 1.0, 0, 0, 1\"\n// \"hsl(0, 100%, 50%)\" or \"hsl 0 100% 50%\"\n// \"hsla(0, 100%, 50%, 1)\" or \"hsla 0 100% 50%, 1\"\n// \"hsv(0, 100%, 100%)\" or \"hsv 0 100% 100%\"\n//\nfunction inputToRGB(color) {\n\n var rgb = { r: 0, g: 0, b: 0 };\n var a = 1;\n var s = null;\n var v = null;\n var l = null;\n var ok = false;\n var format = false;\n\n if (typeof color == \"string\") {\n color = stringInputToObject(color);\n }\n\n if (typeof color == \"object\") {\n if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {\n rgb = rgbToRgb(color.r, color.g, color.b);\n ok = true;\n format = String(color.r).substr(-1) === \"%\" ? \"prgb\" : \"rgb\";\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {\n s = convertToPercentage(color.s);\n v = convertToPercentage(color.v);\n rgb = hsvToRgb(color.h, s, v);\n ok = true;\n format = \"hsv\";\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {\n s = convertToPercentage(color.s);\n l = convertToPercentage(color.l);\n rgb = hslToRgb(color.h, s, l);\n ok = true;\n format = \"hsl\";\n }\n\n if (color.hasOwnProperty(\"a\")) {\n a = color.a;\n }\n }\n\n a = boundAlpha(a);\n\n return {\n ok: ok,\n format: color.format || format,\n r: mathMin(255, mathMax(rgb.r, 0)),\n g: mathMin(255, mathMax(rgb.g, 0)),\n b: mathMin(255, mathMax(rgb.b, 0)),\n a: a\n };\n}\n\n\n// Conversion Functions\n// --------------------\n\n// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:\n// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>\n\n// `rgbToRgb`\n// Handle bounds / percentage checking to conform to CSS color spec\n// <http://www.w3.org/TR/css3-color/>\n// *Assumes:* r, g, b in [0, 255] or [0, 1]\n// *Returns:* { r, g, b } in [0, 255]\nfunction rgbToRgb(r, g, b){\n return {\n r: bound01(r, 255) * 255,\n g: bound01(g, 255) * 255,\n b: bound01(b, 255) * 255\n };\n}\n\n// `rgbToHsl`\n// Converts an RGB color value to HSL.\n// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]\n// *Returns:* { h, s, l } in [0,1]\nfunction rgbToHsl(r, g, b) {\n\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n\n var max = mathMax(r, g, b), min = mathMin(r, g, b);\n var h, s, l = (max + min) / 2;\n\n if(max == min) {\n h = s = 0; // achromatic\n }\n else {\n var d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n switch(max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n\n h /= 6;\n }\n\n return { h: h, s: s, l: l };\n}\n\n// `hslToRgb`\n// Converts an HSL color value to RGB.\n// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]\n// *Returns:* { r, g, b } in the set [0, 255]\nfunction hslToRgb(h, s, l) {\n var r, g, b;\n\n h = bound01(h, 360);\n s = bound01(s, 100);\n l = bound01(l, 100);\n\n function hue2rgb(p, q, t) {\n if(t < 0) t += 1;\n if(t > 1) t -= 1;\n if(t < 1/6) return p + (q - p) * 6 * t;\n if(t < 1/2) return q;\n if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;\n return p;\n }\n\n if(s === 0) {\n r = g = b = l; // achromatic\n }\n else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n\n// `rgbToHsv`\n// Converts an RGB color value to HSV\n// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]\n// *Returns:* { h, s, v } in [0,1]\nfunction rgbToHsv(r, g, b) {\n\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n\n var max = mathMax(r, g, b), min = mathMin(r, g, b);\n var h, s, v = max;\n\n var d = max - min;\n s = max === 0 ? 0 : d / max;\n\n if(max == min) {\n h = 0; // achromatic\n }\n else {\n switch(max) {\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n case g: h = (b - r) / d + 2; break;\n case b: h = (r - g) / d + 4; break;\n }\n h /= 6;\n }\n return { h: h, s: s, v: v };\n}\n\n// `hsvToRgb`\n// Converts an HSV color value to RGB.\n// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]\n// *Returns:* { r, g, b } in the set [0, 255]\n function hsvToRgb(h, s, v) {\n\n h = bound01(h, 360) * 6;\n s = bound01(s, 100);\n v = bound01(v, 100);\n\n var i = Math.floor(h),\n f = h - i,\n p = v * (1 - s),\n q = v * (1 - f * s),\n t = v * (1 - (1 - f) * s),\n mod = i % 6,\n r = [v, q, p, p, t, v][mod],\n g = [t, v, v, q, p, p][mod],\n b = [p, p, t, v, v, q][mod];\n\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n\n// `rgbToHex`\n// Converts an RGB color to hex\n// Assumes r, g, and b are contained in the set [0, 255]\n// Returns a 3 or 6 character hex\nfunction rgbToHex(r, g, b, allow3Char) {\n\n var hex = [\n pad2(mathRound(r).toString(16)),\n pad2(mathRound(g).toString(16)),\n pad2(mathRound(b).toString(16))\n ];\n\n // Return a 3 character hex if possible\n if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);\n }\n\n return hex.join(\"\");\n}\n\n// `rgbaToHex`\n// Converts an RGBA color plus alpha transparency to hex\n// Assumes r, g, b are contained in the set [0, 255] and\n// a in [0, 1]. Returns a 4 or 8 character rgba hex\nfunction rgbaToHex(r, g, b, a, allow4Char) {\n\n var hex = [\n pad2(mathRound(r).toString(16)),\n pad2(mathRound(g).toString(16)),\n pad2(mathRound(b).toString(16)),\n pad2(convertDecimalToHex(a))\n ];\n\n // Return a 4 character hex if possible\n if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);\n }\n\n return hex.join(\"\");\n}\n\n// `rgbaToArgbHex`\n// Converts an RGBA color to an ARGB Hex8 string\n// Rarely used, but required for \"toFilter()\"\nfunction rgbaToArgbHex(r, g, b, a) {\n\n var hex = [\n pad2(convertDecimalToHex(a)),\n pad2(mathRound(r).toString(16)),\n pad2(mathRound(g).toString(16)),\n pad2(mathRound(b).toString(16))\n ];\n\n return hex.join(\"\");\n}\n\n// `equals`\n// Can be called with any tinycolor input\ntinycolor.equals = function (color1, color2) {\n if (!color1 || !color2) { return false; }\n return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();\n};\n\ntinycolor.random = function() {\n return tinycolor.fromRatio({\n r: mathRandom(),\n g: mathRandom(),\n b: mathRandom()\n });\n};\n\n\n// Modification Functions\n// ----------------------\n// Thanks to less.js for some of the basics here\n// <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>\n\nfunction desaturate(color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.s -= amount / 100;\n hsl.s = clamp01(hsl.s);\n return tinycolor(hsl);\n}\n\nfunction saturate(color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.s += amount / 100;\n hsl.s = clamp01(hsl.s);\n return tinycolor(hsl);\n}\n\nfunction greyscale(color) {\n return tinycolor(color).desaturate(100);\n}\n\nfunction lighten (color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.l += amount / 100;\n hsl.l = clamp01(hsl.l);\n return tinycolor(hsl);\n}\n\nfunction brighten(color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var rgb = tinycolor(color).toRgb();\n rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));\n rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));\n rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));\n return tinycolor(rgb);\n}\n\nfunction darken (color, amount) {\n amount = (amount === 0) ? 0 : (amount || 10);\n var hsl = tinycolor(color).toHsl();\n hsl.l -= amount / 100;\n hsl.l = clamp01(hsl.l);\n return tinycolor(hsl);\n}\n\n// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.\n// Values outside of this range will be wrapped into this range.\nfunction spin(color, amount) {\n var hsl = tinycolor(color).toHsl();\n var hue = (hsl.h + amount) % 360;\n hsl.h = hue < 0 ? 360 + hue : hue;\n return tinycolor(hsl);\n}\n\n// Combination Functions\n// ---------------------\n// Thanks to jQuery xColor for some of the ideas behind these\n// <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>\n\nfunction complement(color) {\n var hsl = tinycolor(color).toHsl();\n hsl.h = (hsl.h + 180) % 360;\n return tinycolor(hsl);\n}\n\nfunction triad(color) {\n var hsl = tinycolor(color).toHsl();\n var h = hsl.h;\n return [\n tinycolor(color),\n tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),\n tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })\n ];\n}\n\nfunction tetrad(color) {\n var hsl = tinycolor(color).toHsl();\n var h = hsl.h;\n return [\n tinycolor(color),\n tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),\n tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),\n tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })\n ];\n}\n\nfunction splitcomplement(color) {\n var hsl = tinycolor(color).toHsl();\n var h = hsl.h;\n return [\n tinycolor(color),\n tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),\n tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})\n ];\n}\n\nfunction analogous(color, results, slices) {\n results = results || 6;\n slices = slices || 30;\n\n var hsl = tinycolor(color).toHsl();\n var part = 360 / slices;\n var ret = [tinycolor(color)];\n\n for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {\n hsl.h = (hsl.h + part) % 360;\n ret.push(tinycolor(hsl));\n }\n return ret;\n}\n\nfunction monochromatic(color, results) {\n results = results || 6;\n var hsv = tinycolor(color).toHsv();\n var h = hsv.h, s = hsv.s, v = hsv.v;\n var ret = [];\n var modification = 1 / results;\n\n while (results--) {\n ret.push(tinycolor({ h: h, s: s, v: v}));\n v = (v + modification) % 1;\n }\n\n return ret;\n}\n\n// Utility Functions\n// ---------------------\n\ntinycolor.mix = function(color1, color2, amount) {\n amount = (amount === 0) ? 0 : (amount || 50);\n\n var rgb1 = tinycolor(color1).toRgb();\n var rgb2 = tinycolor(color2).toRgb();\n\n var p = amount / 100;\n\n var rgba = {\n r: ((rgb2.r - rgb1.r) * p) + rgb1.r,\n g: ((rgb2.g - rgb1.g) * p) + rgb1.g,\n b: ((rgb2.b - rgb1.b) * p) + rgb1.b,\n a: ((rgb2.a - rgb1.a) * p) + rgb1.a\n };\n\n return tinycolor(rgba);\n};\n\n\n// Readability Functions\n// ---------------------\n// <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)\n\n// `contrast`\n// Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)\ntinycolor.readability = function(color1, color2) {\n var c1 = tinycolor(color1);\n var c2 = tinycolor(color2);\n return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);\n};\n\n// `isReadable`\n// Ensure that foreground and background color combinations meet WCAG2 guidelines.\n// The third argument is an optional Object.\n// the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';\n// the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.\n// If the entire object is absent, isReadable defaults to {level:\"AA\",size:\"small\"}.\n\n// *Example*\n// tinycolor.isReadable(\"#000\", \"#111\") => false\n// tinycolor.isReadable(\"#000\", \"#111\",{level:\"AA\",size:\"large\"}) => false\ntinycolor.isReadable = function(color1, color2, wcag2) {\n var readability = tinycolor.readability(color1, color2);\n var wcag2Parms, out;\n\n out = false;\n\n wcag2Parms = validateWCAG2Parms(wcag2);\n switch (wcag2Parms.level + wcag2Parms.size) {\n case \"AAsmall\":\n case \"AAAlarge\":\n out = readability >= 4.5;\n break;\n case \"AAlarge\":\n out = readability >= 3;\n break;\n case \"AAAsmall\":\n out = readability >= 7;\n break;\n }\n return out;\n\n};\n\n// `mostReadable`\n// Given a base color and a list of possible foreground or background\n// colors for that base, returns the most readable color.\n// Optionally returns Black or White if the most readable color is unreadable.\n// *Example*\n// tinycolor.mostReadable(tinycolor.mostReadable(\"#123\", [\"#124\", \"#125\"],{includeFallbackColors:false}).toHexString(); // \"#112255\"\n// tinycolor.mostReadable(tinycolor.mostReadable(\"#123\", [\"#124\", \"#125\"],{includeFallbackColors:true}).toHexString(); // \"#ffffff\"\n// tinycolor.mostReadable(\"#a8015a\", [\"#faf3f3\"],{includeFallbackColors:true,level:\"AAA\",size:\"large\"}).toHexString(); // \"#faf3f3\"\n// tinycolor.mostReadable(\"#a8015a\", [\"#faf3f3\"],{includeFallbackColors:true,level:\"AAA\",size:\"small\"}).toHexString(); // \"#ffffff\"\ntinycolor.mostReadable = function(baseColor, colorList, args) {\n var bestColor = null;\n var bestScore = 0;\n var readability;\n var includeFallbackColors, level, size ;\n args = args || {};\n includeFallbackColors = args.includeFallbackColors ;\n level = args.level;\n size = args.size;\n\n for (var i= 0; i < colorList.length ; i++) {\n readability = tinycolor.readability(baseColor, colorList[i]);\n if (readability > bestScore) {\n bestScore = readability;\n bestColor = tinycolor(colorList[i]);\n }\n }\n\n if (tinycolor.isReadable(baseColor, bestColor, {\"level\":level,\"size\":size}) || !includeFallbackColors) {\n return bestColor;\n }\n else {\n args.includeFallbackColors=false;\n return tinycolor.mostReadable(baseColor,[\"#fff\", \"#000\"],args);\n }\n};\n\n\n// Big List of Colors\n// ------------------\n// <http://www.w3.org/TR/css3-color/#svg-color>\n\nvar names = tinycolor.names = {\n aliceblue: \"f0f8ff\",\n antiquewhite: \"faebd7\",\n aqua: \"0ff\",\n aquamarine: \"7fffd4\",\n azure: \"f0ffff\",\n beige: \"f5f5dc\",\n bisque: \"ffe4c4\",\n black: \"000\",\n blanchedalmond: \"ffebcd\",\n blue: \"00f\",\n blueviolet: \"8a2be2\",\n brown: \"a52a2a\",\n burlywood: \"deb887\",\n burntsienna: \"ea7e5d\",\n cadetblue: \"5f9ea0\",\n chartreuse: \"7fff00\",\n chocolate: \"d2691e\",\n coral: \"ff7f50\",\n cornflowerblue: \"6495ed\",\n cornsilk: \"fff8dc\",\n crimson: \"dc143c\",\n cyan: \"0ff\",\n darkblue: \"00008b\",\n darkcyan: \"008b8b\",\n darkgoldenrod: \"b8860b\",\n darkgray: \"a9a9a9\",\n darkgreen: \"006400\",\n darkgrey: \"a9a9a9\",\n darkkhaki: \"bdb76b\",\n darkmagenta: \"8b008b\",\n darkolivegreen: \"556b2f\",\n darkorange: \"ff8c00\",\n darkorchid: \"9932cc\",\n darkred: \"8b0000\",\n darksalmon: \"e9967a\",\n darkseagreen: \"8fbc8f\",\n darkslateblue: \"483d8b\",\n darkslategray: \"2f4f4f\",\n darkslategrey: \"2f4f4f\",\n darkturquoise: \"00ced1\",\n darkviolet: \"9400d3\",\n deeppink: \"ff1493\",\n deepskyblue: \"00bfff\",\n dimgray: \"696969\",\n dimgrey: \"696969\",\n dodgerblue: \"1e90ff\",\n firebrick: \"b22222\",\n floralwhite: \"fffaf0\",\n forestgreen: \"228b22\",\n fuchsia: \"f0f\",\n gainsboro: \"dcdcdc\",\n ghostwhite: \"f8f8ff\",\n gold: \"ffd700\",\n goldenrod: \"daa520\",\n gray: \"808080\",\n green: \"008000\",\n greenyellow: \"adff2f\",\n grey: \"808080\",\n honeydew: \"f0fff0\",\n hotpink: \"ff69b4\",\n indianred: \"cd5c5c\",\n indigo: \"4b0082\",\n ivory: \"fffff0\",\n khaki: \"f0e68c\",\n lavender: \"e6e6fa\",\n lavenderblush: \"fff0f5\",\n lawngreen: \"7cfc00\",\n lemonchiffon: \"fffacd\",\n lightblue: \"add8e6\",\n lightcoral: \"f08080\",\n lightcyan: \"e0ffff\",\n lightgoldenrodyellow: \"fafad2\",\n lightgray: \"d3d3d3\",\n lightgreen: \"90ee90\",\n lightgrey: \"d3d3d3\",\n lightpink: \"ffb6c1\",\n lightsalmon: \"ffa07a\",\n lightseagreen: \"20b2aa\",\n lightskyblue: \"87cefa\",\n lightslategray: \"789\",\n lightslategrey: \"789\",\n lightsteelblue: \"b0c4de\",\n lightyellow: \"ffffe0\",\n lime: \"0f0\",\n limegreen: \"32cd32\",\n linen: \"faf0e6\",\n magenta: \"f0f\",\n maroon: \"800000\",\n mediumaquamarine: \"66cdaa\",\n mediumblue: \"0000cd\",\n mediumorchid: \"ba55d3\",\n mediumpurple: \"9370db\",\n mediumseagreen: \"3cb371\",\n mediumslateblue: \"7b68ee\",\n mediumspringgreen: \"00fa9a\",\n mediumturquoise: \"48d1cc\",\n mediumvioletred: \"c71585\",\n midnightblue: \"191970\",\n mintcream: \"f5fffa\",\n mistyrose: \"ffe4e1\",\n moccasin: \"ffe4b5\",\n navajowhite: \"ffdead\",\n navy: \"000080\",\n oldlace: \"fdf5e6\",\n olive: \"808000\",\n olivedrab: \"6b8e23\",\n orange: \"ffa500\",\n orangered: \"ff4500\",\n orchid: \"da70d6\",\n palegoldenrod: \"eee8aa\",\n palegreen: \"98fb98\",\n paleturquoise: \"afeeee\",\n palevioletred: \"db7093\",\n papayawhip: \"ffefd5\",\n peachpuff: \"ffdab9\",\n peru: \"cd853f\",\n pink: \"ffc0cb\",\n plum: \"dda0dd\",\n powderblue: \"b0e0e6\",\n purple: \"800080\",\n rebeccapurple: \"663399\",\n red: \"f00\",\n rosybrown: \"bc8f8f\",\n royalblue: \"4169e1\",\n saddlebrown: \"8b4513\",\n salmon: \"fa8072\",\n sandybrown: \"f4a460\",\n seagreen: \"2e8b57\",\n seashell: \"fff5ee\",\n sienna: \"a0522d\",\n silver: \"c0c0c0\",\n skyblue: \"87ceeb\",\n slateblue: \"6a5acd\",\n slategray: \"708090\",\n slategrey: \"708090\",\n snow: \"fffafa\",\n springgreen: \"00ff7f\",\n steelblue: \"4682b4\",\n tan: \"d2b48c\",\n teal: \"008080\",\n thistle: \"d8bfd8\",\n tomato: \"ff6347\",\n turquoise: \"40e0d0\",\n violet: \"ee82ee\",\n wheat: \"f5deb3\",\n white: \"fff\",\n whitesmoke: \"f5f5f5\",\n yellow: \"ff0\",\n yellowgreen: \"9acd32\"\n};\n\n\n// Make it easy to access colors via `hexNames[hex]`\nvar hexNames = tinycolor.hexNames = flip(names);\n\n\n// Utilities\n// ---------\n\n// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`\nfunction flip(o) {\n var flipped = { };\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n flipped[o[i]] = i;\n }\n }\n return flipped;\n}\n\n// Return a valid alpha value [0,1] with all invalid values being set to 1\nfunction boundAlpha(a) {\n a = parseFloat(a);\n\n if (isNaN(a) || a < 0 || a > 1) {\n a = 1;\n }\n\n return a;\n}\n\n// Take input from [0, n] and return it as [0, 1]\nfunction bound01(n, max) {\n if (isOnePointZero(n)) { n = \"100%\"; }\n\n var processPercent = isPercentage(n);\n n = mathMin(max, mathMax(0, parseFloat(n)));\n\n // Automatically convert percentage into number\n if (processPercent) {\n n = parseInt(n * max, 10) / 100;\n }\n\n // Handle floating point rounding errors\n if ((Math.abs(n - max) < 0.000001)) {\n return 1;\n }\n\n // Convert into [0, 1] range if it isn't already\n return (n % max) / parseFloat(max);\n}\n\n// Force a number between 0 and 1\nfunction clamp01(val) {\n return mathMin(1, mathMax(0, val));\n}\n\n// Parse a base-16 hex value into a base-10 integer\nfunction parseIntFromHex(val) {\n return parseInt(val, 16);\n}\n\n// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1\n// <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>\nfunction isOnePointZero(n) {\n return typeof n == \"string\" && n.indexOf('.') != -1 && parseFloat(n) === 1;\n}\n\n// Check to see if string passed in is a percentage\nfunction isPercentage(n) {\n return typeof n === \"string\" && n.indexOf('%') != -1;\n}\n\n// Force a hex value to have 2 characters\nfunction pad2(c) {\n return c.length == 1 ? '0' + c : '' + c;\n}\n\n// Replace a decimal with it's percentage value\nfunction convertToPercentage(n) {\n if (n <= 1) {\n n = (n * 100) + \"%\";\n }\n\n return n;\n}\n\n// Converts a decimal to a hex value\nfunction convertDecimalToHex(d) {\n return Math.round(parseFloat(d) * 255).toString(16);\n}\n// Converts a hex value to a decimal\nfunction convertHexToDecimal(h) {\n return (parseIntFromHex(h) / 255);\n}\n\nvar matchers = (function() {\n\n // <http://www.w3.org/TR/css3-values/#integers>\n var CSS_INTEGER = \"[-\\\\+]?\\\\d+%?\";\n\n // <http://www.w3.org/TR/css3-values/#number-value>\n var CSS_NUMBER = \"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\";\n\n // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.\n var CSS_UNIT = \"(?:\" + CSS_NUMBER + \")|(?:\" + CSS_INTEGER + \")\";\n\n // Actual matching.\n // Parentheses and commas are optional, but not required.\n // Whitespace can take the place of commas or opening paren\n var PERMISSIVE_MATCH3 = \"[\\\\s|\\\\(]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")\\\\s*\\\\)?\";\n var PERMISSIVE_MATCH4 = \"[\\\\s|\\\\(]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")[,|\\\\s]+(\" + CSS_UNIT + \")\\\\s*\\\\)?\";\n\n return {\n CSS_UNIT: new RegExp(CSS_UNIT),\n rgb: new RegExp(\"rgb\" + PERMISSIVE_MATCH3),\n rgba: new RegExp(\"rgba\" + PERMISSIVE_MATCH4),\n hsl: new RegExp(\"hsl\" + PERMISSIVE_MATCH3),\n hsla: new RegExp(\"hsla\" + PERMISSIVE_MATCH4),\n hsv: new RegExp(\"hsv\" + PERMISSIVE_MATCH3),\n hsva: new RegExp(\"hsva\" + PERMISSIVE_MATCH4),\n hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/\n };\n})();\n\n// `isValidCSSUnit`\n// Take in a single string / number and check to see if it looks like a CSS unit\n// (see `matchers` above for definition).\nfunction isValidCSSUnit(color) {\n return !!matchers.CSS_UNIT.exec(color);\n}\n\n// `stringInputToObject`\n// Permissive string parsing. Take in a number of formats, and output an object\n// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`\nfunction stringInputToObject(color) {\n\n color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();\n var named = false;\n if (names[color]) {\n color = names[color];\n named = true;\n }\n else if (color == 'transparent') {\n return { r: 0, g: 0, b: 0, a: 0, format: \"name\" };\n }\n\n // Try to match string input using regular expressions.\n // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]\n // Just return an object and let the conversion functions handle that.\n // This way the result will be the same whether the tinycolor is initialized with string or object.\n var match;\n if ((match = matchers.rgb.exec(color))) {\n return { r: match[1], g: match[2], b: match[3] };\n }\n if ((match = matchers.rgba.exec(color))) {\n return { r: match[1], g: match[2], b: match[3], a: match[4] };\n }\n if ((match = matchers.hsl.exec(color))) {\n return { h: match[1], s: match[2], l: match[3] };\n }\n if ((match = matchers.hsla.exec(color))) {\n return { h: match[1], s: match[2], l: match[3], a: match[4] };\n }\n if ((match = matchers.hsv.exec(color))) {\n return { h: match[1], s: match[2], v: match[3] };\n }\n if ((match = matchers.hsva.exec(color))) {\n return { h: match[1], s: match[2], v: match[3], a: match[4] };\n }\n if ((match = matchers.hex8.exec(color))) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n a: convertHexToDecimal(match[4]),\n format: named ? \"name\" : \"hex8\"\n };\n }\n if ((match = matchers.hex6.exec(color))) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n format: named ? \"name\" : \"hex\"\n };\n }\n if ((match = matchers.hex4.exec(color))) {\n return {\n r: parseIntFromHex(match[1] + '' + match[1]),\n g: parseIntFromHex(match[2] + '' + match[2]),\n b: parseIntFromHex(match[3] + '' + match[3]),\n a: convertHexToDecimal(match[4] + '' + match[4]),\n format: named ? \"name\" : \"hex8\"\n };\n }\n if ((match = matchers.hex3.exec(color))) {\n return {\n r: parseIntFromHex(match[1] + '' + match[1]),\n g: parseIntFromHex(match[2] + '' + match[2]),\n b: parseIntFromHex(match[3] + '' + match[3]),\n format: named ? \"name\" : \"hex\"\n };\n }\n\n return false;\n}\n\nfunction validateWCAG2Parms(parms) {\n // return valid WCAG2 parms for isReadable.\n // If input parms are invalid, return {\"level\":\"AA\", \"size\":\"small\"}\n var level, size;\n parms = parms || {\"level\":\"AA\", \"size\":\"small\"};\n level = (parms.level || \"AA\").toUpperCase();\n size = (parms.size || \"small\").toLowerCase();\n if (level !== \"AA\" && level !== \"AAA\") {\n level = \"AA\";\n }\n if (size !== \"small\" && size !== \"large\") {\n size = \"small\";\n }\n return {\"level\":level, \"size\":size};\n}\n\n// Node: Export function\nif (typeof module !== \"undefined\" && module.exports) {\n module.exports = tinycolor;\n}\n// AMD/requirejs: Define the module\nelse if (typeof define === 'function' && define.amd) {\n define(function () {return tinycolor;});\n}\n// Browser: Expose to window\nelse {\n window.tinycolor = tinycolor;\n}\n\n})(Math);\n",
"type": "application/javascript",
"title": "$:/plugins/telmiger/ColorAction/tinycolor.js",
"module-type": "library",
"modifier": "Thomas Elmiger",
"modified": "20180104210121385",
"creator": "Thomas Elmiger",
"created": "20180102215141661"
},
"$:/plugins/telmiger/ColorAction/usage": {
"created": "20180104211952441",
"creator": "Thomas Elmiger",
"text": "Documentation is not as extensive as one could wish at the moment. You can open [[this tiddler|$:/plugins/telmiger/ColorAction/usage]] in edit mode and activate the preview to compare macros and results.\n\n!!! Usage and Examples\n\n!!!! Actions\n\n* No parameters: <<coloraction>>\n* Color only (red): <<coloraction red>>\n* getFormat: <<coloraction #fff action:getFormat>>\n* Brightness of red: <<coloraction red action:getBrightness>>\n* Luminance of black: <<coloraction black action:getLuminance>>\n* Check input: <$macrocall $name=\"coloraction\" color=<<--white>> alpha=\".5\" action=\"getOriginalInput\"/>\n** Input core colour macro: <$macrocall $name=\"coloraction\" color=<<colour primary>> action=\"getOriginalInput\"/> \n* Named colours: #f00 is ''<<coloraction #f00 action:toName>>''\n* Filter: <<coloraction #f00 action:toFilter>>\n\n---\n\n!!! Modifications\n\n* darken f00: <<coloraction #f00 darken>>\n* lighten the result: <<coloraction \"rgb(204, 0, 0)\" lighten>>\n* lighten black, apply alpha: <<coloraction #000 lighten 95 .5>>\n* brighten red: <<coloraction #f00 brighten 50>>\n* convert to greyscale: <<coloraction \"rgb(204, 102, 102)\" greyscale>>\n* desaturate to grey:<<coloraction \"rgb(204, 102, 102)\" desaturate 100>>\n* saturate 30/255: <<coloraction \"rgb(204, 102, 102)\" saturate 30>>\n* saturate 100: <<coloraction \"rgb(99, 100, 100)\" saturate 100>>\n\n!!!! Saturate gray color? It turns redish.\n`<<coloraction \"rgb(20, 20, 20)\" saturate 100>>`\n\nResult: <<coloraction \"rgb(20, 20, 20)\" saturate 100>>\n\n\n!!!! Complement\n* Page background, complement of <$macrocall $name=coloraction color=<<colour page-background>> action=getOriginalInput/> is this: <$macrocall $name=coloraction color=<<colour page-background>> mod=complement/>\n* complement for #f00: <<coloraction #f00 complement action:toHex>>\n** backwards from #00ffff: <<coloraction #00ffff complement action:toHex>>\n* complement with alpha 0.3: <<coloraction \"rgba(200, 20, 20, .3)\" complement>>\n\nThe //complement// modification is implemented as a spin with a value of 180 (the result is the same). \n\n!!!! Invert\nOther than complement, this inverts the brightness of a colour too: \n\n* invert #f00: <<coloraction #f00 invert action:toHex>>\n* invert #333: <<coloraction #333 invert action:toHex>>\n* invert with alpha 0.3: <<coloraction \"rgba(200, 20, 20, .3)\" invert>>\n\n\n!!!! Spinning\n* spin 360 returns input, e.g. for #f00: <<coloraction #f00 spin 360 1 toHexString>>\n* spin 90: <<coloraction #f00 spin 90>>\n* spin 180: <<coloraction #f00 spin 180>>\n* Spin the variable for page-background: <$macrocall $name=coloraction color=<<colour page-background>> mod=\"spin\" value=\"180\"/>\n* negative spin works too: <<coloraction #f00 spin -180>>\n\n---\n\n!!!! Mix and Alphablend\n\nmix: <<coloraction \"rgb(100,0,0)\" \"rgba(0,0,100,.5)\" \"75\" action:\"mix\">>\n\nmix default (50): <<coloraction \"rgb(100,0,0)\" \"rgb(0,0,100)\" action:\"mix\">>\n\nalphablend: <<coloraction \"rgba(0, 0, 0, .5)\" \"rgba(0, 10, 100, .5)\" .5 action:\"alphablend\">>\n\nalphablend2 – <<coloraction \"rgb(200, 100, 50)\" \"rgba(250,200,100, .5)\" .5 action:\"alphablend\">>\n\n---\n\n!!!! Random colors\n<<coloraction random>><br>\n<<coloraction random>>\n",
"title": "$:/plugins/telmiger/ColorAction/usage",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20180128100812041"
},
"$:/plugins/telmiger/ColorAction/icon": {
"created": "20180104213435074",
"text": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64.003\" height=\"64.003\" viewBox=\"-500.5 395.5 64.003 64.003\"><path fill=\"#ddd\" d=\"M-468.5 396.5l26.426 15.5v31l-26.425 15.5-26.426-15.5v-31l26.427-15.5z\"/><path fill=\"#FFF\" d=\"M-485.996 419.088h34.99v16.824h-34.99z\"/><path fill=\"#E2001A\" d=\"M-468.5 405.5c-12.15 0-22 9.85-22 22s9.85 22 22 22 22-9.85 22-22-9.85-22-22-22zm13.11 21.637c-1.022.682-2.674 1.023-4.954 1.023h-2.838c-1.505 0-2.598.3-3.28.9-.68.6-1.22 1.804-1.622 3.615 0 0-.063.526-.178.526s-.13-.31-.184-.562c-.056-.263-.14-.59-.256-.977-.224-.758-.447-1.332-.67-1.72-.27-.482-.613-.87-1.024-1.165-.412-.294-.883-.47-1.413-.528l-.74-.088h-3.637c-2.178 0-3.796-.343-4.855-1.024-1.764-1.12-2.71-3.24-2.842-6.357-.01-.25 0-.48.047-.772h.208c.142 1.41 1.304 2.502 2.158 3.274.853.77 2.222 1.155 4.104 1.155h3.3c1.896 0 3.28.436 4.158 1.306.79.786 1.31 2.017 1.56 3.69.028.183.012.263.064.263.053 0 .04-.09.06-.278.253-2.173 1.094-3.627 2.522-4.363.88-.46 2.28-.676 4.196-.652l2.257.035c1.527.023 2.814-.278 3.86-.908 1.046-.63 2.285-1.803 2.425-3.52h.21c.065.17.057.56.045.828-.13 3.105-1.023 5.206-2.68 6.3z\"/></svg>",
"type": "image/svg+xml",
"title": "$:/plugins/telmiger/ColorAction/icon",
"tags": "",
"modified": "20180104213446709"
}
}
}
{
"tiddlers": {
"$:/plugins/telmiger/support": {
"created": "20181103150753927",
"text": "!! Support the Author\n\n''Hi!'' I’m Thomas, the author of [[tid.li/tw5/plugins.html|https://tid.li/tw5/plugins.html]]. Feedback is always welcome, as well as funding for maintenance, support and new projects :)\n\n---\n\n!!! One Time Support\n\nIf using my plugins just makes you happy, consider a one time payment via ~PayPal to reward the effort:\n\nhttps://www.paypal.me/telmiger\n\n---\n\n!!! Permanent Support\n\nIf my tools make you more productive or save you time in your job or your everyday life, you can support me as a Patron: \n\nhttps://www.patreon.com/telmiger\n\n---\n\n!!! Thank You\n\nSubstantial parts of my availabe time go to the deveopment of useful plugins for [[TiddlyWiki|https://tiddlywiki.com/]]. – Many others do the same and I would like to thank them all, especially [[Jeremy Ruston|https://tiddlywiki.com/#JeremyRuston]] and all the active members of the community!\n\n//Hereby I promise to share future revenues (if any) with other developers who’s works I use or who inspired me.//\n\nIf you like my work, I would be very happy to hear from you.\n\n''Thank you very much for your support!''<br>\n//Thomas//\n\nhttps://thomas-elmiger.ch",
"title": "$:/plugins/telmiger/support",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20181104091650389",
"creator": "Thomas Elmiger"
},
"$:/plugins/telmiger/simple-search/images/search-button": {
"text": "<svg class=\"tc-image-advanced-search-button tc-image-button\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path d=\"M74.5651535,87.9848361 C66.9581537,93.0488876 57.8237115,96 48,96 C21.490332,96 0,74.509668 0,48 C0,21.490332 21.490332,0 48,0 C74.509668,0 96,21.490332 96,48 C96,57.8541369 93.0305793,67.0147285 87.9377231,74.6357895 L122.284919,108.982985 C125.978897,112.676963 125.973757,118.65366 122.284271,122.343146 C118.593975,126.033442 112.613238,126.032921 108.92411,122.343793 L74.5651535,87.9848361 Z M48,80 C65.673112,80 80,65.673112 80,48 C80,30.326888 65.673112,16 48,16 C30.326888,16 16,30.326888 16,48 C16,65.673112 30.326888,80 48,80 Z\"></path>\n </g>\n</svg>",
"title": "$:/plugins/telmiger/simple-search/images/search-button",
"tags": "$:/tags/Image",
"modifier": "Thomas Elmiger",
"modified": "20181031165957574",
"creator": "Thomas Elmiger",
"created": "20181031165637871"
},
"$:/plugins/telmiger/simple-search/license": {
"created": "20180104062422859",
"text": "`Simple Search is published under the MIT License.`\n\n!!! Simple Search\nThe content of $:/plugins/telmiger/simple-search is<br>\nCopyright (c), Thomas Elmiger, https://thomas-elmiger.ch\n\n!!! The MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"title": "$:/plugins/telmiger/simple-search/license",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20181104090212451",
"creator": "Thomas Elmiger"
},
"$:/plugins/telmiger/simple-search/readme": {
"created": "20170208062643245",
"creator": "Thomas Elmiger",
"text": "!! Simple Search \n\nThis plugin provides a nice and simple interface for searching your wiki. It is designed for mobile and desktop screens. \n''Reduce to the max.'' The standard search input field in the sidebar is gone, instead there is a {{$:/plugins/telmiger/simple-search/ui/Buttons/search}} [[button|$:/plugins/telmiger/simple-search/ui/Buttons/search]].\n\n\n!!! Keyboard accessible\n\n* Press <kbd>Shift</kbd> + <kbd>Space</kbd> to ''launch and close'' Simple Search (new //global keyboard shortcut// for TW 5.1.18+). \n* Jump to search results with <kbd>Tab</kbd>. Then, depending on your browser and settings, select a list item using <kbd>Tab</kbd> or arrow keys <kbd>up</kbd> and <kbd>down</kbd>.\n* Confirm with <kbd>Enter</kbd>.\n\n\n!!! Search in fields\nPrimary results are listed for tiddlers containing the search term in the ''title'' OR the ''caption'' fields. \n\nThe secondary list finds results based on all other fields (not title nor caption). This can be adapted via settings.\n\n\n!!! Create tiddlers\n\nEmpty result list? No problem. Create missing tiddlers using the search term as title and caption. \n\n* Hit <kbd>Tab</kbd> until you reach the plus button (+).\n* Create a tiddler with <kbd>Enter</kbd>.\n\nSee template options on the ''settings tab''. – Hat tip to //Diego Mesa// for inspiring this feature.\n\n\n!!! Settings\n\nMake sure to visit the ''settings tab'' to adjust your preferences.\n\n\n!! Core overruling\n\nThis plugin overwrites $:/core/ui/SideBarSegments/search and nothing else.",
"title": "$:/plugins/telmiger/simple-search/readme",
"tags": "EditorCounter",
"modifier": "Thomas Elmiger",
"modified": "20190303120136619"
},
"$:/plugins/telmiger/simple-search/results": {
"created": "20181101220620505",
"creator": "Thomas Elmiger",
"text": "\\define close-simple-search()\n<<simple-search-closeSearch>>\n<$action-navigate $to=<<navigateTo>>/>\n\\end\n<div class=\"tc-search-results\">\n<$linkcatcher actions=<<close-simple-search>>>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\"\"\">\n{{$:/plugins/telmiger/simple-search/SearchResultsList}}\n</$list>\n</$linkcatcher>\n</div>",
"title": "$:/plugins/telmiger/simple-search/results",
"tags": "",
"modified": "20190303202919126",
"modifier": "Thomas Elmiger"
},
"$:/plugins/telmiger/simple-search/search.css": {
"created": "20181016202403907",
"creator": "Thomas Elmiger",
"text": "/*\n** Simple Search\n** (c) Thomas Elmiger\n** \"\"\" \n*/\n\n/* Zoomin Storyview Hack */\n\n[data-tiddler-title=\"$:/Search\"].tc-tiddler-view-frame.tc-storyview-zoomin-tiddler {\n display: block !important;\n}\n\n\n/* Search layer */\n\n.tc-layer-search {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n z-index: 10001;\n background-color: rgba(0,0,0,0.66);\n}\n\n\n/* Search box */\n\n.tc-simple-search {\n position: fixed;\n top: 1rem;\n right: 3vw;\n left: 3vw;\n width: 94vw;\n height: 5rem;\n z-index: 102;\n max-width: 100%;\n background-color: rgba(0,0,0,0.75);\n padding: 1rem .5rem 1rem 1rem;\n border-radius: 0.5rem;\n border: 1px solid {{$:/plugins/telmiger/simple-search/settings/border-colour}};\n}\n\n.tc-simple-search .tc-search input[type=search],\n.tc-simple-search .tc-search input[type=search]:focus {\n -webkit-appearance: none; -moz-appearance: none;\n padding: 0 .25rem .125rem .25rem;\n width: calc(100% - 4rem);\n margin-right: .25rem;\n color: rgb(13, 13, 13);\n border: solid 1px transparent;\n border-radius: .25rem;\n background-color: rgb(222, 222, 222);\n}\n\n.tc-simple-search .tc-search input[type=search]:focus {\n background-color: rgb(242, 242, 242);\n}\n\n@media (min-width: 42rem) {\n\n .tc-simple-search {\n right: 4rem;\n left: 4rem;\n width: calc(100% - 8rem);\n height: 6rem;\n padding: 1rem 2rem 1rem 3rem;\n }\n\n .tc-simple-search .tc-search input[type=search],\n .tc-simple-search .tc-search input[type=search]:focus {\n padding: 0 .5rem .25rem .5rem;\n width: calc(100% - 5rem);\n margin-right: .75rem;\n font-size: 1.5rem;\n }\n\n .tc-simple-search .tc-search button {\n margin-right: .25rem;\n }\n\n .tc-simple-search .tc-search a svg,\n .tc-simple-search .tc-search button svg {\n width: 1.2rem;\n height: 1.2rem;\n }\n\n}\n\n@media (min-width: 77rem) {\n\n .tc-simple-search {\n right: 10vw;\n left: 10vw;\n width: 80vw;\n height: 7.66rem;\n padding: 2rem 3rem 2rem 4rem;\n }\n\n .tc-simple-search .tc-search input[type=search],\n .tc-simple-search .tc-search input[type=search]:focus {\n padding: 0 .5rem .25rem .5rem;\n width: calc(100% - 6rem);\n margin-right: 1rem;\n font-size: 1.75rem;\n }\n\n .tc-simple-search .tc-search button {\n margin-right: .5rem;\n }\n\n .tc-simple-search .tc-search a svg,\n .tc-simple-search .tc-search button svg {\n width: 1.33rem;\n height: 1.33rem;\n }\n\n}\n\n\n/* Search buttons */\n\n.tc-simple-search-results button {\n margin: .25rem 0;\n color: lightgray;\n}\n\n.tc-simple-search .tc-search button svg {\n fill: lightgray;\n}\n\n.tc-simple-search .tc-search button:hover svg,\n.tc-simple-search .tc-search button:focus svg {\n fill: rgb(150, 150, 150);\n}\n\n.tc-simple-search button.te-btn-mini svg {\n width: 0.75rem;\n height: 0.75rem;\n}\n\n\n/* Search results */\n\n\n.tc-simple-search .tc-block-dropdown-wrapper {\n position: absolute;\n width: 90vw;\n margin-top: 2rem;\n margin-left: -3vw;\n}\n\n@media (min-width: 42rem) {\n .tc-simple-search .tc-block-dropdown-wrapper {\n width: calc(100% - 6rem);\n margin-left: 0;\n }\n}\n\n@media (min-width: 77rem) {\n .tc-simple-search .tc-block-dropdown-wrapper {\n width: 72vw;\n }\n}\n\n.tc-simple-search p {\n line-height: 1;\n margin: 1.25rem 0 0.75rem 0;\n}\n\n.tc-simple-search .tc-search-results ul {\n list-style: none;\n padding-left: 0.25rem;\n}\n\n.tc-simple-search .tc-search-drop-down .tc-search-results a.tc-tiddlylink {\n white-space: initial;\n padding: 0.25rem 0.5rem;\n line-height: 1.1;\n border: 1px solid transparent;\n}\n\n.tc-simple-search .tc-search-drop-down .tc-search-results a.tc-tiddlylink:focus {\n border: 1px dotted lightgray;\n}\n\n.tc-simple-search .tc-search + .tc-block-dropdown-wrapper {\n margin: 0 1rem 0 0;\n}\n\n.tc-simple-search .tc-block-dropdown.tc-search-drop-down {\n margin: 0;\n max-height: 50vh;\n overflow: auto;\n}\n\n.tc-block-dropdown.tc-search-drop-down {\n position: relative;\n margin-right: 1rem;\n padding-left: .5rem; padding-right: .5rem;\n max-width: 100%;\n}\n\n@media (min-width: 42rem) {\n .tc-simple-search .tc-block-dropdown.tc-search-drop-down {\n max-height: 60vh;\n }\n}\n\n@media (min-width: 77rem) {\n .tc-simple-search .tc-block-dropdown.tc-search-drop-down {\n max-height: 80vh;\n }\n}\n\n\n/* Close and Edit buttons */\n\n.tc-layer-search .te-close-this {\n width: 100%;\n height: 100%;\n}\n\n.tc-layer-search .te-close-this button {\n width: 100%;\n height: 100%;\n text-align: right;\n}\n\n.tc-layer-search .te-close-this svg {\n display: none;\n}\n\n@media (min-width: 42rem) {\n .tc-layer-search .te-close-this svg {\n display: inherit;\n fill: lightgray;\n position: absolute;\n top: 1rem;\n right: 1rem;\n }\n}\n\n.tc-layer-search .te-edit-this button {\n z-index: 102;\n position: absolute;\n bottom: 1rem;\n left: 1rem;\n width: 1rem;\n height: 1rem;\n font-size: 1.2rem;\n}\n\n\n/* Hide tiddler info and frame */\n\n[data-tiddler-title=\"$:/Search\"] .tc-tiddler-title,\n[data-tiddler-title=\"$:/Search\"] .tc-subtitle,\n[data-tiddler-title=\"$:/Search\"] .tc-fold-banner,\n[data-tiddler-title=\"$:/Search\"] .tc-tags-wrapper\n{\n display: none;\n padding: 0;\n margin: 0;\n}\n\n[data-tiddler-title=\"$:/Search\"].tc-tiddler-view-frame,\n[data-tiddler-title=\"$:/Search\"] .tc-tiddler-body > p {\n height: 0;\n width: 0;\n padding: 0;\n margin: 0;\n border: none;\n}\n\n\n/* End \"\"\" */",
"title": "$:/plugins/telmiger/simple-search/search.css",
"tags": "$:/tags/Stylesheet",
"modifier": "Thomas Elmiger",
"modified": "20190127221727503"
},
"$:/plugins/telmiger/simple-search/ui/Buttons/search": {
"text": "\\define search-button-label()\n<$list filter=\"[<tv-config-toolbar-icons>prefix[yes]]\">\n{{$:/plugins/telmiger/simple-search/images/search-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/plugins/telmiger/simple-search/ui/Buttons/search!!description}}/></span>\n</$list>\n\\end\n\n\\define control-panel-button-on(class)\n<$button tooltip={{$:/plugins/telmiger/simple-search/ui/Buttons/search!!description}} aria-label={{$:/plugins/telmiger/simple-search/ui/Buttons/search!!description}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<<simple-search-openSearch>>\n<<search-button-label>>\n</$button>\n\\end\n\n\\define control-panel-button-off(class)\n<$button tooltip=\"Close Search\" aria-label=\"Hide tiddler Search\" class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<<simple-search-closeSearch>>\n<<search-button-label>>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Search]]\" emptyMessage=<<control-panel-button-on>>>\n<<control-panel-button-off \"tc-selected\">>\n</$list>\n",
"title": "$:/plugins/telmiger/simple-search/ui/Buttons/search",
"tags": "$:/tags/PageControls",
"modifier": "Thomas Elmiger",
"modified": "20190303171930542",
"description": "Search",
"creator": "Thomas Elmiger",
"created": "20181031170153387",
"caption": "{{$:/plugins/telmiger/simple-search/images/search-button}} Search"
},
"$:/Search": {
"created": "20181031180159723",
"creator": "Thomas Elmiger",
"text": "<div class=\"tc-layer-search\">\n<div class=\"te-close-this\">\n{{$:/plugins/telmiger/simple-search/ui/Buttons/close-search}}\n</div>\n<div class=\"tc-simple-search\">\n<$set name=\"searchTiddler\" value=\"$:/temp/advancedsearch\">\n<div class=\"tc-search\">\n<$edit-text tiddler=<<searchTiddler>> type=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify \"$:/state/popup/search-dropdown\">> class=\"tc-popup-handle\"/>{{$:/plugins/telmiger/simple-search/ui/Buttons/advanced-search}}<$reveal tag=\"div\" class=\"tc-block-dropdown-wrapper tc-simple-search-results\" state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n<$reveal tag=\"div\" class=\"tc-block-dropdown tc-search-drop-down tc-popup-handle\" state=<<qualify \"$:/state/popup/search-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<$list filter=\"[<searchTiddler>minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n{{$:/plugins/telmiger/simple-search/results}}\n</$list>\n</$reveal>\n</$reveal><$reveal state=<<searchTiddler>> type=\"nomatch\" text=\"\">{{$:/plugins/telmiger/simple-search/ui/Buttons/clear-search}}\n<div class=\"tc-simple-search-results\">\n{{$:/plugins/telmiger/simple-search/ui/Buttons/new-tiddler}}\n<$button tooltip=\"show/hide filtered list\" aria-label=\"toggle results\" popup=<<qualify \"$:/state/popup/search-dropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n<$list filter=\"[<searchTiddler>minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$set name=\"searchTerm\" value={{{ [<searchTiddler>get[text]] }}}>\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[!is[system]search:*<searchTerm>]\"/>\"\"\">\n{{$:/language/Search/Matches}}\n</$set>\n</$set>\n</$list>\n</$button>\n{{$:/plugins/telmiger/simple-search/ui/Buttons/options}}\n</div>\n</$reveal>\n</div>\n\n</$set>\n</div>\n<$reveal type=\"match\" state=\"$:/plugins/telmiger/simple-search/settings/edit\" text=\"yes\">\n<span class=\"te-edit-this\">\n<$button message=\"tm-edit-tiddler\" param={{!!title}} tooltip=\"edit tiddler\" aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>\n{{$:/core/images/edit-button}}\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\">edit</span>\n</$list>\n</$button>\n</span>\n</$reveal>\n</div>",
"title": "$:/Search",
"modifier": "Thomas Elmiger",
"modified": "20190303205937724",
"icon": "$:/plugins/telmiger/simple-search/images/search-button"
},
"$:/plugins/telmiger/simple-search/icon": {
"created": "20181104090446387",
"text": "{{$:/plugins/telmiger/simple-search/images/search-button}}",
"title": "$:/plugins/telmiger/simple-search/icon",
"tags": "",
"modified": "20181104090618636"
},
"$:/plugins/telmiger/simple-search/settings": {
"created": "20181104092840050",
"creator": "Thomas Elmiger",
"text": "\\define lingo-base() $:/language/ControlPanel/Basics/\n\n!! Settings\n\n!!! Design\n\n''Layer animation:'' Simple Search feels rather slow for values above 150, so make sure to adapt this TW setting. <br>\n<$link to=\"$:/config/AnimationDuration\"><<lingo AnimDuration/Prompt>></$link> <$edit-text tiddler=\"$:/config/AnimationDuration\" default=\"\" tag=\"input\"/>\n\n''Search box border:'' Adapt the colour to the design of your wiki. Use //transparent// if you don’t want a border. <br>\n[[Border colour:|$:/plugins/telmiger/simple-search/settings/border-colour]] <$edit-text tiddler=\"$:/plugins/telmiger/simple-search/settings/border-colour\" tag=\"input\"/> <$edit-text tiddler=\"$:/plugins/telmiger/simple-search/settings/border-colour\" type=\"color\" tag=\"input\"/>\n\n\n!!! Show button\n\n<$checkbox tiddler=\"$:/config/PageControlButtons/Visibility/$:/plugins/telmiger/simple-search/ui/Buttons/search\" field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"> Page Toolbar (in the sidebar)</$checkbox>\n\n<$checkbox tiddler=\"$:/plugins/telmiger/simple-search/ui/Buttons/search\" tag=\"$:/tags/TopRightBar\"> Top Right Bar (besides the sidebar toggle, permanently visible)</$checkbox>\n\n\n!!! Create new tiddlers\n\nThe next field defines a template for generating the title and caption for new tiddlers based on search terms. The default value `{{$:/temp/advancedsearch}}` uses just the search term.\n\n<label>''Title template:'' <$edit-text tiddler=\"$:/plugins/telmiger/simple-search/settings/new-tpl\" size=\"20\" tag=\"input\"/></label>\n\nUse the following field to add tags to tiddlers created via Simple Search. Don’t forget to add brackets to tags containing spaces, e.g. `[[My Tag]] Foo Bar`.\n\n<label>''Tag template:'' <$edit-text tiddler=\"$:/plugins/telmiger/simple-search/settings/new-tags\" size=\"20\" tag=\"input\"/></label>\n\n\n!!! Minimal search term length\n\n<label><$edit-text tiddler=\"$:/config/Search/MinLength\" size=\"3\" tag=\"input\"/> ''characters''</label>\n\n\n!!! Fields to search\n\n<label>''Field list:'' <$edit-text tiddler=\"$:/plugins/telmiger/simple-search/filter-other\" size=\"20\" tag=\"input\"/></label>\n\nThis list defines, which fields are relevant for the secondary result list (“Other”). The default value `-caption,title` leads to searches in all fields except caption and title. See [[search operator documentation|https://tiddlywiki.com/#search%20Operator]] for more info.\n\n---\n\n!!! Edit mode \n\nWould you like to edit the tiddler $:/Search? Activate edit mode here:\n\n<$checkbox tiddler=\"$:/plugins/telmiger/simple-search/settings/edit\" field=\"text\" checked=\"yes\" unchecked=\"no\"> Show edit icon in lower left corner of the screen.</$checkbox>",
"title": "$:/plugins/telmiger/simple-search/settings",
"tags": "",
"modified": "20190303200051652",
"modifier": "Thomas Elmiger"
},
"$:/plugins/telmiger/simple-search/settings/border-colour": {
"created": "20181104130108875",
"title": "$:/plugins/telmiger/simple-search/settings/border-colour",
"text": "transparent",
"modified": "20181104131002009"
},
"$:/config/ShortcutInfo/simple-search": {
"text": "Launch a search",
"title": "$:/config/ShortcutInfo/simple-search",
"tags": ""
},
"$:/config/shortcuts/simple-search": {
"created": "20181222220644632",
"text": "shift-Space",
"title": "$:/config/shortcuts/simple-search",
"modified": "20181222220651656"
},
"$:/plugins/telmiger/simple-search/ui/KeyboardShortcuts/search": {
"text": "\\import $:/plugins/telmiger/simple-search/macros\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Search]]\" emptyMessage=<<simple-search-openSearch>>>\n<<simple-search-closeSearch>>\n</$list>\n</$navigator>",
"title": "$:/plugins/telmiger/simple-search/ui/KeyboardShortcuts/search",
"tags": "$:/tags/KeyboardShortcut",
"modifier": "Thomas Elmiger",
"modified": "20190303193712461",
"key": "((simple-search))",
"creator": "Thomas Elmiger",
"created": "20190129170004355"
},
"$:/plugins/telmiger/simple-search/support": {
"created": "20181222180114594",
"text": "{{$:/plugins/telmiger/support}}",
"title": "$:/plugins/telmiger/simple-search/support",
"tags": "",
"modified": "20181222180139534"
},
"$:/plugins/telmiger/simple-search/SearchResultsList": {
"created": "20190101192116785",
"creator": "Thomas Elmiger",
"text": "<div tabindex=\"0\">\n{{$:/plugins/telmiger/simple-search/SearchResultsTop}}\n{{$:/plugins/telmiger/simple-search/SearchResultsOther}}\n</div>",
"title": "$:/plugins/telmiger/simple-search/SearchResultsList",
"tags": "$:/tags/SearchResults",
"modified": "20190101201812743",
"modifier": "Thomas Elmiger",
"caption": "Simple Search"
},
"$:/plugins/telmiger/simple-search/ui/ListItemTemplate": {
"created": "20181230141935738",
"creator": "Thomas Elmiger",
"text": "<li class=\"tc-menu-list-item\">\n<$link to={{!!title}} tooltip=\"title: {{!!title}}\">\n<$view field=\"caption\"><$view field=\"title\"/></$view>\n</$link>\n</li>",
"title": "$:/plugins/telmiger/simple-search/ui/ListItemTemplate",
"tags": "",
"caption": "Template for search list items",
"modified": "20181230142103379",
"modifier": "Thomas Elmiger"
},
"$:/config/AnimationDuration": {
"text": "150",
"title": "$:/config/AnimationDuration",
"modified": "20181104093401834",
"created": "20181104093400732"
},
"$:/plugins/telmiger/simple-search/filter-other": {
"created": "20181230131454911",
"creator": "Thomas Elmiger",
"text": "-caption,title",
"title": "$:/plugins/telmiger/simple-search/filter-other",
"tags": "",
"modified": "20181230131454911",
"modifier": "Thomas Elmiger"
},
"$:/plugins/telmiger/simple-search/ui/Buttons/advanced-search": {
"created": "20190101210358315",
"creator": "Thomas Elmiger",
"text": "<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<<simple-search-closeSearch>>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n{{$:/core/images/advanced-search-button}}\n</$button>",
"title": "$:/plugins/telmiger/simple-search/ui/Buttons/advanced-search",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20190303201445296",
"caption": "Simple to Advanced Search"
},
"$:/plugins/telmiger/simple-search/ui/Buttons/clear-search": {
"text": "<$button class=\"tc-btn-invisible\" tooltip=\"clear search field\" aria-label=\"reset search\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=\"\" />\n{{$:/core/images/close-button}}\n</$button>",
"title": "$:/plugins/telmiger/simple-search/ui/Buttons/clear-search",
"tags": "",
"modifier": "Thomas Elmiger",
"modified": "20190303195058522",
"creator": "Thomas Elmiger",
"created": "20190101210749466",
"caption": "Clear Search"
},
"$:/plugins/telmiger/simple-search/ui/Buttons/new-tiddler": {
"created": "20190101203433764",
"creator": "Thomas Elmiger",
"text": "<$wikify name=\"id\" text=\"{{$:/plugins/telmiger/simple-search/settings/new-tpl}}\">\n<$button tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=\"tc-btn-invisible te-btn-mini\">\n<<simple-search-closeSearch>>\n<$action-createtiddler $basetitle=<<id>> tags={{$:/plugins/telmiger/simple-search/settings/new-tags}} text=\"\" caption=<<id>>/>\n<$action-navigate $to=<<id>>/>\n<$action-sendmessage $message=\"tm-edit-tiddler\" $param=<<id>>/>\n{{$:/core/images/new-button}}\n</$button>\n</$wikify>",
"title": "$:/plugins/telmiger/simple-search/ui/Buttons/new-tiddler",
"modifier": "Thomas Elmiger",
"modified": "20190303203604937",
"description": "{{$:/language/Buttons/NewTiddler/Hint}}",
"caption": "Create tiddler named with search term"
},
"$:/plugins/telmiger/simple-search/ui/Buttons/options": {
"created": "20190101204729675",
"creator": "Thomas Elmiger",
"text": "<$button tooltip=\"Options\" class=\"tc-btn-invisible te-btn-mini\">\n<<simple-search-closeSearch>>\n<$action-navigate $to=\"$:/plugins/telmiger/simple-search/settings\"/>\n{{$:/core/images/options-button}}\n</$button>",
"title": "$:/plugins/telmiger/simple-search/ui/Buttons/options",
"modified": "20190303201928917",
"caption": "Simple Search Options",
"modifier": "Thomas Elmiger",
"tags": ""
},
"$:/plugins/telmiger/simple-search/settings/new-tags": {
"created": "20190101213434925",
"title": "$:/plugins/telmiger/simple-search/settings/new-tags",
"text": "",
"modified": "20190101213434926"
},
"$:/plugins/telmiger/simple-search/settings/new-tpl": {
"created": "20190101213442298",
"creator": "Thomas Elmiger",
"title": "$:/plugins/telmiger/simple-search/settings/new-tpl",
"text": "{{$:/temp/advancedsearch}}",
"modified": "20190303200214861",
"modifier": "Thomas Elmiger"
},
"$:/plugins/telmiger/simple-search/SearchResultsOther": {
"created": "20190101201254151",
"creator": "Thomas Elmiger",
"text": "\\define other()\n<small>//Other//</small>\n<ul class=\"te-nav-list\">\n<$wikify name=\"other-filter\" text=\"[!is[system]search:{{$:/plugins/telmiger/simple-search/filter-other}}{$(searchTiddler)$}sort[title]limit[250]]\">\n<$list filter=<<other-filter>> template=\"$:/plugins/telmiger/simple-search/ui/ListItemTemplate\"/>\n</$wikify>\n</ul>\n\\end\n<<other>>",
"title": "$:/plugins/telmiger/simple-search/SearchResultsOther",
"modified": "20190101202507272",
"modifier": "Thomas Elmiger",
"caption": "Simple Search Other"
},
"$:/plugins/telmiger/simple-search/SearchResultsTop": {
"created": "20190101201620497",
"creator": "Thomas Elmiger",
"text": "\\define top()\n<small>//Caption/Title//</small>\n<ul class=\"te-nav-list\">\n<$list filter=\"[!is[system]search:caption,title{$(searchTiddler)$}sort[caption]limit[250]]\" template=\"$:/plugins/telmiger/simple-search/ui/ListItemTemplate\"/>\n</ul>\n\\end\n<<top>>",
"title": "$:/plugins/telmiger/simple-search/SearchResultsTop",
"modified": "20190101202403247",
"modifier": "Thomas Elmiger",
"caption": "Simple Search Top",
"tags": ""
},
"$:/core/ui/SideBarSegments/search": {
"created": "20190127221311868",
"creator": "Thomas Elmiger",
"title": "$:/core/ui/SideBarSegments/search",
"text": "",
"modified": "20190127221328995",
"modifier": "Thomas Elmiger"
},
"$:/plugins/telmiger/simple-search/macros": {
"created": "20190303170108747",
"creator": "Thomas Elmiger",
"text": "\\define tempStory() $:/temp/simple-search/story\n\n\\define simple-search-openSearch()\n<$action-navigate $to=\"$:/Search\" $scroll=\"no\"/>\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]\">\n<<simple-search-closeAdvanced>>\n</$list>\n\\end\n\n\\define simple-search-closeSearch()\n<$action-sendmessage $message=\"tm-close-tiddler\" $param=\"$:/Search\"/>\n<<simple-search-restoreAdvanced>>\n\\end\n\n\\define simple-search-closeAdvanced()\n<$set name=\"myStory\" filter=\"[list[$:/StoryList]]\" >\n<$action-setfield $tiddler=<<tempStory>> $field=\"text\" $value=<<myStory>>/>\n</$set>\n<$action-sendmessage $message=\"tm-close-tiddler\" $param=\"$:/AdvancedSearch\"/>\n\\end\n\n\\define simple-search-restoreAdvanced()\n<$list filter=\"[<tempStory>!is[missing]]\">\n<$action-setfield $tiddler=\"$:/StoryList\" list={{{ [<tempStory>get[text]] }}}/>\n<$action-deletetiddler $tiddler=<<tempStory>>/>\n</$list>\n\\end",
"title": "$:/plugins/telmiger/simple-search/macros",
"tags": "$:/tags/Macro",
"modifier": "Thomas Elmiger",
"modified": "20190303202350255"
},
"$:/plugins/telmiger/simple-search/ui/Buttons/close-search": {
"created": "20190303205314106",
"creator": "Thomas Elmiger",
"text": "<$button tooltip=\"Close Search\" aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>\n<<simple-search-closeSearch>>\n{{$:/core/images/close-button}}\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\">close</span>\n</$list>\n</$button>",
"title": "$:/plugins/telmiger/simple-search/ui/Buttons/close-search",
"modifier": "Thomas Elmiger",
"modified": "20190303212719631",
"caption": "{{$:/core/images/close-button}} Close Search"
}
}
}
{
"tiddlers": {
"$:/Tekan/AddCard": {
"created": "20170911035313861",
"creator": "Riz",
"text": "\\define newHereButtonTags()\n[[$(currentList)$]]\n\\end\n\n\n\\define addNote()\n<$action-createtiddler $basetitle={{$:/NewNote}} tags=<<newHereButtonTags>> />\n<$action-listops $tiddler=<<currentList>> $subfilter=\"[{$:/NewNote}]\"/>\n<$action-setfield $tiddler=\"$:/NewNote\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/state/AddNote\" text=\"\"/>\n\\end\n\n\\define cancelNote()\n<$action-setfield $tiddler=\"$:/NewNote\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/state/AddNote\" text=\"\"/>\n\\end\n\n<$reveal type=\"nomatch\" state=\"$:/state/AddNote\" text=<<currentList>>>\n\t<$button class=\"tc-btn-invisible\" set=\"$:/state/AddNote\" setTo=<<currentList>>>Add a card...</$button>\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/state/AddNote\" text=<<currentList>>>\n \t\n <$keyboard key=\"enter\" actions=<<addNote>> tag=\"div\">\n <$edit-text autoHeight=\"yes\" focus=\"yes\" placeholder=\"Add new note\" default=\"New card\" tiddler=\"$:/NewNote\"/>\n </$keyboard>\n\t\t\n <$button class=\"smallgreenbutton\" actions=<<addNote>>>Add</$button>\n <$button class=\"tc-btn-invisible\" style=\"margin: 0 5px;\" actions=<<cancelNote>>>{{$:/core/images/close-button}}</$button>\n \t\n \n</$reveal>",
"title": "$:/Tekan/AddCard",
"tags": "$:/Tekan",
"modifier": "Riz",
"modified": "20170920012854365"
},
"$:/Tekan/AddList": {
"text": "\\define boardandlist()\n$(currentBoard)$/$(listname)$\n\\end\n\n\\define boardnametag()\n[[$(currentBoard)$]]\n\\end\n\n\\define AddList()\n<$action-createtiddler $basetitle=<<boardandlist>> tags=<<boardnametag>> caption=<<listname>>/>\n<$action-listops $tiddler=<<currentBoard>> $subfilter=\"[<boardandlist>]\"/>\n<$action-setfield $tiddler=\"$:/state/newlisttemp\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/state/addnewlist\" text=\"\"/>\n\\end\n\n\\define CancelList()\n<$action-setfield $tiddler=\"$:/state/newlisttemp\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/state/addnewlist\" text=\"\"/>\n\\end\n\n<style>\n.list-wrapper-add {\n\theight: auto;\n\tmin-height: 30px;\n\tpadding: 4px;\n\tbackground-color: #E2E4E6;\n\t-webkit-transition: background 85ms ease-in,opacity 40ms ease-in,border-color 85ms ease-in;\n\ttransition: background 85ms ease-in,opacity 40ms ease-in,border-color 85ms ease-in;\n}\n.list-name-input {\n\tbackground: rgba(0,0,0,.05) !important;\n\tbox-shadow: inset 0 1px 8px rgba(0,0,0,.15);\n border: 1px solid #aaa;\n\tdisplay: block;\n\tmargin: 0;\n\t-webkit-transition: margin 85ms ease-in,background 85ms ease-in;\n\ttransition: margin 85ms ease-in,background 85ms ease-in;\n\twidth: 100%;\n\tmargin-bottom: 10px;\n\tpadding: 7px;\n}\n</style>\n\n<$reveal state=\"$:/state/addnewlist\" type=\"nomatch\" text=\"list\">\n <div class=\"list\">\n\t\t<div class=\"semitransparent\"> \n <$button class=\"semitransparentborderless\" style=\"width:100%;text-align:left;\" set=\"$:/state/addnewlist\" setTo=\"list\"> \n Add a list...\n </$button>\n\t\t</div>\n</div>\n</$reveal>\n\n<$reveal state=\"$:/state/addnewlist\" type=\"match\" text=\"list\">\n<div class=\"list list-wrapper-add\">\n \n \n\t<$edit-text default=\"New list\" class=\"list-name-input\" tiddler=\"$:/state/newlisttemp\" placeholder=\"Add a list…\" tag=\"input\"/>\n <$set name=\"listname\" value={{$:/state/newlisttemp}}>\n\t<$button class=\"smallgreenbutton\" actions=<<AddList>>>Add list</$button>\n <$button class=\"tc-btn-invisible\" style=\"padding: 5px;fill: #999;\" actions=<<CancelList>>>{{$:/core/images/close-button}}</$button>\n </$set>\n \n \n</div>\n</$reveal>",
"title": "$:/Tekan/AddList",
"tags": "$:/Tekan",
"modified": "20170919213556081",
"created": "20170919045208973"
},
"$:/Tekan/BoardSelect": {
"created": "20170910194902289",
"text": "\\define setboard()\n<$action-setfield $tiddler=\"$:/Tekan/CurrentBoard\" text=<<currentTiddler>>/>\n\\end\n\n\n<$button popup=<<qualify \"$:/state/popup/board\">>>Board</$button>\n<$reveal state=<<qualify \"$:/state/popup/board\">> type=\"popup\" position=\"below\" animate=\"yes\">\n <div class=\"whitebgdropdown\">\n <$list filter=\"[tag[$:/tags/Tekanboard]!has[draft.of]]\">\n <div style=\"height:30px;\"></div>\n<$button style=\"background: #fff;\" actions=<<setboard>>>\n <div class=\"compact-board-tile-wrapper\">\n <span class=\"simplesquare\" style=\"background-color: #0079BF;\"> </span>\n <span class=\"compact-board-tile-fade\">{{!!title}}</span>\n </div>\n</$button>\n </$list>\n </div>\n</$reveal>",
"title": "$:/Tekan/BoardSelect",
"tags": "$:/Tekan",
"modified": "20170922170418180"
},
"$:/Tekan/Main": {
"created": "20170918191921058",
"creator": "Riz",
"text": "\\define currentListTag()\n[[$(currentList)$]]\n\\end\n\n\\define drop-actions()\n<$action-listops $tiddler=<<actionTiddler>> $tags=\"-[tag<currentBoard>]\"/>\n<$action-listops $tiddler=<<actionTiddler>> $tags=<<currentListTag>>/>\n<$list filter=\"[tag<currentBoard>]\">\n<$action-listops $subfilter=\"-[<actionTiddler>]\"/>\n</$list>\n<$action-listops $tiddler=<<currentList>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n<$action-sendmessage $message=\"tm-auto-save-wiki\"/>\n\\end\n\n\n\n\n\\define currentBoardTags()\n[[$(currentBoard)$]]\n\\end\n\n\\define droplist()\n<$action-listops $tiddler=<<currentBoard>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n<$action-setfield $tiddler=<<actionTiddler>> $field=\"tags\" $value=<<currentBoardTags>>/>\n<$action-sendmessage $message=\"tm-auto-save-wiki\"/>\n\\end\n\n\\define cardeditops()\n<$action-setfield $tiddler=\"$:/state/editcard\" text=<<currentTiddler>>/>\n<$action-sendmessage $message=\"tm-modal\" $param=\"$:/Tikan/EditCardModal\" currentList=<<currentList>> currentCard=<<currentTiddler>>/>\n\\end\n\n\\define popupstate()\n$:/state/listops/$(currentList)$\n\\end\n\n\\define deletelist()\n<$list filter=\"[tag<currentList>]\">\n<$action-deletetiddler $tiddler=<<currentTiddler>>/>\n</$list>\n<$action-deletetiddler $tiddler=<<currentList>>/>\n<$action-listops $tiddler=<<currentBoard>> $subfilter=\"+[remove<currentList>]\"/>\n<$action-sendmessage $message=\"tm-auto-save-wiki\"/>\n\\end\n\n\\define archivelist()\n<$list filter=\"[tag<currentList>]\">\n<$action-listops $tags=\"archive\"/>\n</$list>\n<$action-setfield $tiddler=<<currentList>> list=\"\"/>\n\\end\n\n\n<style>\n.icon-edit::before {\ncontent: \"✎\";\n}\n.icon-overflow-menu-horizontal::before {\n\tcontent: \"···\";\n}\n</style>\n\n<div class=\"ui\">\n\t{{$:/Tekan/Navbar}}\n\t<div class=\"lists\">\n <$set name=\"currentBoard\" value={{$:/Tekan/CurrentBoard}}>\n <$list filter=\"[tag<currentBoard>!has[draft.of]]\" variable=\"currentList\">\n\t\t<div class=\"list\">\n <header>\n\t\t\t\t\t\t\t<$draggable filter=\"[tag<currentList>!has[draft.of]]\"> <$transclude tiddler=<<currentList>> field=\"caption\"><$view tiddler=<<currentList>> field=\"title\"/> </$transclude>\n <$button tag=\"span\" class=\"icon-sm icon-overflow-menu-horizontal listitem\" popup=<<popupstate>>></$button>\n <$reveal type=\"popup\" position=\"below\" state=<<popupstate>>>\n <div class=\"pop-over\" style=\"right: auto;top: auto;\">\n <div class=\"pop-over-header\"><span class=\"pop-over-header-title\">List Actions</span>\n </div>\n <$button tag=\"div\" class=\"listopsbutton\" actions=<<deletelist>>>Delete List</$button>\n <$button tag=\"div\" class=\"listopsbutton\" actions=<<archivelist>>>Archive List</$button>\n </div>\n </$reveal>\n </$draggable>\n </header>\n \t\t\t<ul>\n <$list filter=\"[tag<currentList>!tag[archive]sortby{!!list}!has[draft.of]]\">\n \t\t\t\t\t\t<div style=\"position: relative;\">\n <$droppable actions=<<drop-actions>>>\n <div class=\"tc-droppable-placeholder\">\n \n </div>\n <div>\n \t\t<$draggable tiddler=<<currentTiddler>> tag=\"li\"><$view field=\"title\"/>\n <$button tag=\"span\" class=\"icon-sm icon-edit list-card-operation listitem\" actions=<<cardeditops>>></$button> \n </$draggable>\n </div>\n </$droppable>\n </div>\n </$list>\n \t\t\t</ul>\n \t\t<$tiddler tiddler=\"\">\n <div class=\"footer\">\n\t\t\t\t\t\t<$droppable actions=<<drop-actions>> tag=\"div\">\n\t\t\t\t\t\t\t\t<div class=\"tc-droppable-placeholder\">\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<footer>{{||$:/Tekan/AddCard}}</footer>\n\t\t\t\t\t\t</$droppable>\n </div>\n </$tiddler>\n\t\t\t \n\t\t</div>\n </$list>\n \n \t\t{{||$:/Tekan/AddList}}\n \t\t<$reveal state=\"$:/state/rearrlist\" type=\"match\" text=\"show\">\n \t\t<div class=\"list\">\n \t\t <header>Lists of <<currentBoard>></header>\n\t \t\t<ul>\n\t \t\t\n\t\t\t <$list filter=\"[tag<currentBoard>sortby{!!list}]\">\n\t\t\t\t\t<div style=\"position: relative;\">\n\t\t\t <$droppable actions=<<droplist>>>\n\t\t\t <div class=\"tc-droppable-placeholder\">\n\t\t\t \n\t\t\t </div>\n\t\t\t <div>\n\t\t\t \t\t<$draggable tiddler=<<currentTiddler>> tag=\"li\"> <$transclude tiddler=<<currentList>> field=\"caption\"><$view tiddler=<<currentList>> field=\"title\"/> </$transclude>\n\t\t\t \t</$draggable>\n\t\t\t </div>\n\t\t\t </$droppable>\n\t\t\t </div>\n\t\t\t </$list>\n\t\t\t \n\t \t\n\t\t\t</ul>\n \n \t\t \t<footer><$button class=\"smallgreenbutton\" set=\"$:/state/rearrlist\" setTo=\"\">Done</$button></footer>\n \t\t</div>\n \t\t</$reveal>\n \t</$set>\n\t</div>\n</div>",
"title": "$:/Tekan/Main",
"tags": "$:/Tekan",
"modifier": "Riz",
"modified": "20170922194340197"
},
"$:/Tekan/Navbar": {
"created": "20170913174601878",
"creator": "Riz",
"text": "<nav class=\"navbar app\">\n \t<div class=\"header-user-left\">\n \t\t<span class=\"header-btn-icon\">{{$:/Tekan/BoardSelect}}</span>\n\t\t</div>\n\n\t\t<div class=\"header-user\">\n<span class=\"header-btn-icon\">{{$:/Tekan/NavboardButtons}}</span>\n <$list filter=\"[tag[$:/Tekan/BoardbarButton]]\">\n\t\t\t<span class=\"header-btn-icon\"><$transclude/></span>\n </$list> \n\t\t</div>\n\t</nav>\n<nav class=\"navbar board\"><$set name=\"currentBoard\" filter=\"[{$:/Tekan/CurrentBoard}minlength[1]]\" value={{$:/Tekan/CurrentBoard}} emptyValue=\"You need to either create a board or switch to an existing one\"><$text text=<<currentBoard>>/></$set></nav>",
"title": "$:/Tekan/Navbar",
"tags": "$:/Tekan",
"modified": "20170922043533653",
"modifier": "Riz"
},
"$:/Tekan/NavboardButtons": {
"created": "20170910185559552",
"creator": "Riz",
"text": "\\define AddNewBoard()\n<$action-createtiddler $basetitle={{$:/state/boardNewTitle}} tags=\"$:/tags/Tekanboard\"/>\n<$action-setfield $tiddler=\"$:/Tekan/CurrentBoard\" $value={{$:/state/boardNewTitle}}/>\n<$action-setfield $tiddler=\"$:/state/boardNewTitle\" text=\"\"/>\n\\end\n\n\\define deleteboard()\n<$set name=\"currentBoard\" value={{$:/Tekan/CurrentBoard}}>\n<$list filter=\"[tag<currentBoard>]\" variable=\"currentList\">\n<$action-deletetiddler $tiddler=<<currentList>>/>\n<$list filter=\"[tag<currentList>]\" variable=\"currentCard\">\n<$action-deletetiddler $tiddler=<<currentCard>>/>\n<$list filter=\"[tag<currentCard>]\" variable=\"currentChecklistitem\">\n<$action-deletetiddler $tiddler=<<currentChecklistitem>>/>\n</$list>\n</$list>\n</$list>\n<$action-deletetiddler $tiddler=<<currentBoard>>/>\n</$set>\n<$action-setfield $tiddler=\"$:/Tekan/CurrentBoard\" text=\"\"/>\n<$action-deletetiddler $tiddler=\"$:/state/deleteboardpopup\"/>\n\\end\n<$set name=\"currentBoard\" value={{$:/Tekan/CurrentBoard}}>\n<$list filter=\"[tag[$:/Tekan/Button]]\"><$transclude/></$list>\n</$set>\n<$button tooltip=\"Rearrange lists\" set=\"$:/state/rearrlist\" setTo=\"show\">A</$button>\n<$button tooltip=\"Delete board\" popup=\"$:/state/deleteboardpopup\" style=\"fill:#fff;\">{{$:/core/images/delete-button}}</$button>\n<$reveal type=\"popup\" class=\"tc-popup-keep\" state=\"$:/state/deleteboardpopup\">\n<div class=\"md-modal md-effect-1 md-show\">\n<div class=\"md-content\">\n\t\t\t\t<h3>delete Board<$button tag=\"span\" style=\"right:0;position: absolute;padding: 0 3%;fill:#fff;cursor:pointer\">{{$:/core/images/close-button}}<$action-deletetiddler $tiddler=\"$:/state/deleteboardpopup\"/></$button></h3>\n\t\t\t\t<div>\n\t\t\t\t\t<p>This will delete the board, along with all its lists, its cards, items in card checkboxes</p>\n\t\t\t\t\t<p>Are you sure?</p>\n <div class=\"mdbuttons\">\n\t\t\t\t\t<$button actions=<<deleteboard>> class=\"md-close\">Delete</$button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n </$reveal>\n<$button tooltip=\"Add new board\" popup=\"$:/state/newboardstate\">\n+</$button>\n<$reveal state=\"$:/state/newboardstate\" type=\"popup\" class=\"tc-popup-keep\" position=\"below\" text=\"showthepopup\">\n<div class=\"pop-over\">\n\t<div>\n\t\t<div class=\"pop-over-header\">\n\t\t\t<span class=\"pop-over-header-title\">Create Board</span>\n\t\t\t<a href=\"#\" class=\"pop-over-header-close-btn icon-sm icon-close\"></a>\n\t\t</div>\n\n\n\t\t<div class=\"pop-over-content\" style=\"max-height: 323px;\">\n\t\t<div>\n\t\t\t<label>Title</label>\n <$edit-text class=\"list-name-input\" tiddler=\"$:/state/boardNewTitle\" placeholder=\"What are you organizing?\" default=\"New board\" tag=\"input\"/>\n\n\t\t\t<div><$button style=\"background: -webkit-linear-gradient(top,#5AAC44 0,#519839 100%);background: linear-gradient(to bottom,#5AAC44 0,#519839 100%);\" set=\"$:/state/newboardstate\" setTo=\"\" actions=<<AddNewBoard>>>Create New Board</$button></div>\n\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</$reveal>\n<$button tooltip=\"Switch back to TW5\">@@fill:white;{{$:/core/images/opacity}}@@\n<$list filter=\"[all[shadows+tiddlers]tag[TwelloMode]!has[draft.of]]\">\n<$action-setfield tags=\"$:/tags/PageTemplate\"/>\n</$list>\n<$action-deletetiddler $tiddler=\"$:/Tekan/Main\"/>\n<$action-deletetiddler $tiddler=\"$:/Tekan/Substyles\"/>\n</$button>\n",
"title": "$:/Tekan/NavboardButtons",
"tags": "$:/Tekan",
"modifier": "Riz",
"modified": "20170922195246728"
},
"$:/Tekan/Substyles": {
"created": "20170910190007347",
"creator": "Riz",
"text": ".ui {\n\tfont: 12px Arial,Helvetica,sans-serif;\nmargin: 0;\n\tline-height: 1.3em;\n}\n\n.ui {\n\tfont-size: 12px !important;\n\t\n}\n.ui {\n height: 100vh;\n display: -ms-grid;\n display: grid;\n -ms-grid-rows: 40px 50px 1fr;\n grid-template-rows: 40px 50px 1fr;\n background-color: #0079bf;\n color: #eee;\n}\n\n.navbar {\n padding-left: 10px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.navbar.app {\n background-color: #0067a3;\n font-size: 1.5rem;\n}\n.navbar.board {\n\tfont: 18px Arial,Helvetica,sans-serif;\n\tcursor: default;\n\tfont-weight: 700;\n\tline-height: 30px;\n}\n\n.lists {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\toverflow-x: auto;\n\n}\n.lists > * {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n margin-left: 10px;\n}\n.lists::after {\n content: '';\n -webkit-box-flex: 0;\n -ms-flex: 0 0 10px;\n flex: 0 0 10px;\n}\n\n.list {\n width: 270px;\n height: calc(100% - 10px - 17px);\n}\n.list > * {\n background-color: #e2e4e6;\n color: #333;\n padding: 0 8px;\n}\n.list header {\n line-height: 36px;\n font-size: 16px;\n font-weight: bold;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n position: relative;\n}\n.list footer {\n line-height: 36px;\n color: #888;\n}\n.list .footer {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.list ul {\n list-style: none;\n margin: 0;\n max-height: calc(100% - 36px - 36px);\n overflow-y: auto;\n}\n.list ul li {\n\tbackground-color: #fff;\n\tpadding: 10px;\n\tborder-radius: 3px;\n\tbox-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);\n\tmargin-bottom: 10px;\n}\n\n.list ul li img {\n display: block;\n width: calc(100% + 2 * 10px);\n margin: -10px 0 10px -10px;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n\n/* Substyles */\n\n.compact-board-tile-wrapper {\n\tcolor: #333;\n\tfont-size: 15px;\n\tline-height: 36px;\n\tbackground-color: #E0EFF7;\n\tmargin-bottom: 5px;\n\tborder-radius: 3px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n \nfooter .tc-reveal { padding: 10px 0 4px 0; }\n \n \nfooter textarea {\n\tbackground: #fff;\n\tborder-radius: 5px;\n\tborder: none;\n\tbox-shadow: none;\n\theight: auto;\n\tmargin-bottom: 4px;\n\tmargin-top: 10px;\n\tmax-height: 162px;\n\tmin-height: 54px;\n\toverflow-y: auto;\n\tpadding: 0;\n\tpadding: 8px;\n\twidth: 100%; }\n \n \n.header-btn-icon button {\n\tbackground: linear-gradient(to bottom,rgba(255,255,255,.3) 0,rgba(255,255,255,.2) 100%);\n\tborder-radius: 3px;\n\tborder: 0;\n\tcolor: #f3f3f3;\n\tdisplay: block;\n\tfloat: left;\n\tfont-weight: 700;\n\tfont-family: Arial,Helvetica,sans-serif;\n font-size: 14px;\n\tline-height: 30px;\n\tmargin-right: 8px;\n\tmin-width: 30px;\n\tpadding: 0 8px;\n\ttext-decoration: none; }\n \n \n.header-user {\n\tposition: absolute;\n\tright: 0; }\n \n \n\n/* Task List */\n \n.list-card-operation {\n\tbackground-clip: padding-box;\n\tbackground-color: #EDEFF0;\n\tbackground-origin: padding-box;\n\topacity: 0;\n\t }\n\n\n.list ul li.tc-draggable {\n position: relative; }\n\n\n.list ul li.tc-draggable:hover {\n\tbackground-color: #EDEFF0;\n\tborder-bottom-color: #D6DADC; }\n \n\t.list ul li.tc-draggable:hover .list-card-operation { opacity: 1; }\n \n\n.icon-sm {\n\tcolor: #400;\n\tdisplay: inline-block;\n\tfont-family: trellicons;\n\tfont-size: 12pt;\n\tfont-style: normal;\n\tfont-weight: 400;\n\theight: 30px;\n\tline-height: 25px;\n\ttext-align: center;\n\ttext-decoration: none;\n\twidth: 30px; }\n \n.listitem {\n \tposition: absolute;\n\tright: 3px;\n\ttop: 3px;\n \tz-index: 40; \n\tborder-radius: 3px;\n\tpadding: 4px;\t}\n\t.listitem:hover { background-color: #D6DADC; }\n \n\n \n \n /* Modal Button */\n.materialbutton {\n\tbackground-color: #26a69a;\n\tborder-radius: 2px;\n\tborder: none;\n\tcolor: #fff;\n\theight: 30px;\n\tletter-spacing: .5px;\n\tline-height: 30px;\n\tpadding: 0 2rem;\n\ttext-decoration: none;\n\tmargin: 5px 1px;}\n \n\n /*Add new list button*/\n.semitransparent {\n\tbackground: rgba(0,0,0,.12);\n\tborder-radius: 3px;\n\tcolor: #fff;\n\tcursor: pointer;\n\theight: auto;\n\tmargin: 0 5px;\n\tmin-height: 30px;\n\tpadding: 4px;\n\twidth: 270px; }\n \n /* Any button*/\n.semitransparentborderless {\n\tbackground: transparent;\n\tborder: none;\n\tcolor: rgba(255,255,255,.7);\n\tpadding: 7px; }\n \n/*Add new card button*/\n.smallgreenbutton {\n\tbackground: -webkit-linear-gradient(top,#5AAC44 0,#519839 100%);\n\tbackground: linear-gradient(to bottom,#5AAC44 0,#519839 100%);\n\tborder-radius: 3px;\n\tborder: none;\n\tcolor: #fff;\n\tdisplay: inline-block;\n\tfont-weight: 700;\n\tline-height: 22px;\n\tmargin: 0 6px 0 0;\n\tmin-height: 30px;\n\toutline: 0;\n\tpadding: 4px 1pc;\n\tvertical-align: top; }\n \n \n.tc-dropzone p { margin:0 }\n\n \n.wheatbordertextbox textarea {\n\tborder: 1px solid #ccc;\n border-radius: 4px;\n\theight: auto;\n\tpadding: 6px 12px;\n width: 100%;\n\t }\n\n\n/*--------------*/\n\n/* ----- Add New board ------*/\n.pop-over {\n\tbackground: #fff;\n\tborder-radius: 3px;\n\tborder: 1px solid #D6DADC;\n\tborder-bottom-color: #C4C9CC;\n\tbox-shadow: 0 1px 6px rgba(0,0,0,.15);\n\toverflow: hidden;\n\twidth: 300px;\n\tz-index: 70;\n\t-webkit-transform: translate3d(0,0,0);\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n font-size: 14px;\n}\n.pop-over-header {\n\theight: 36px;\n\tposition: relative;\n\tmargin-bottom: 8px;\n\ttext-align: center;\n}\n.pop-over-header-title {\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\tcolor: #838c91;\n\tdisplay: block;\n\tline-height: 36px;\n\tborder-bottom: 1px solid #D6DADC;\n\tmargin: 0 10px;\n\toverflow: hidden;\n\tposition: relative;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tz-index: 1;\n\tfont-size: 14px;\n}\n.pop-over-content {\n\toverflow-x: hidden;\n\toverflow-y: auto;\n\tpadding: 0 10px 10px;\n}\nlabel{\n\tdisplay: block;\n\tfont-weight: 700;\n\tmargin-bottom: 4px;\n\tcolor: #333;\n}\n\n/*--------------*/\n\n/*--Edit Modal ---*/\n.window-header {\n\tmargin: 8px 2pc;\n\tpadding: 0 8px;\n\tposition: relative;\n\tz-index: 1;\n}\n.window-title {\n\tpadding-top: 3px;\n}\n.mod-card-back-title {\n\tbackground: 0 0 !important;\n\tborder-radius: 3px;\n\tbox-shadow: none;\n\tfont-size: 18px;\n\tfont-weight: 700;\n\theight: 30px;\n\tline-height: 22px;\n\tmargin: -4px -6px;\n\tmin-height: 30px;\n\tpadding: 4px 6px;\n\tresize: none;\n\tborder: 1px solid transparent;\n}\n.ui input {\n transition: background 85ms ease-in,border-color 85ms ease-in;\n width: 100%;\n}\n\n\n.mod-card-back-title:focus {\n background-color: rgba(255,255,255,.9) !important;\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\tborder: 1px solid #0079BF;\n\tbox-shadow: 0 0 2px 0 #0284C6;\n}\n.window-main-col {\n\tfloat: left;\n\tmargin: 0;\n\toverflow-x: hidden;\n\toverflow-y: auto;\n\tmin-height: 24px;\n\tpadding: 0 8px 8px;\n\tposition: relative;\n\twidth: 540px;\n\tz-index: 0;\n}\n\n\n.window-main-col {\n\tfloat: left;\n\tmargin: 0;\n\toverflow-x: hidden;\n\toverflow-y: auto;\n\tmin-height: 24px;\n\tpadding: 0 8px 8px;\n\tposition: relative;\n\twidth: 540px;\n\tz-index: 0;\n}\n\n.window-module {\n\tclear: both;\n\tmargin-bottom: 1pc;\n\tposition: relative;\n}\n.window-module-title-no-divider {\n\tborder-bottom: none;\n}\n.window-module-title {\n\tpadding: 8px;\n\tposition: relative;\n\tmargin: 0 24px 8px;\n}\n.window-module-title h3 {\n\tdisplay: inline-block;\n\twidth: auto;\n\tmargin: 0;\n\tmin-height: 18px;\n\tmin-width: 40px;\n\tfont-size: 1pc;\n\tline-height: 1.25em;\n\tfont-weight: 800;\n\tcolor: gray;\n}\n.new-comment {\n\tposition: relative;\n\tmargin: 0 0 20px 38px;\n}\n.comment-frame {\n\tbackground-color: #fff;\n\tborder-radius: 3px;\n\tbox-shadow: 0 1px 2px rgba(0,0,0,.23);\n\tmargin: 4px 4px 9pt 0;\n}\n.comment-box {\n\tposition: relative;\n}\n.comment-box-input {\n\tbackground: 0 0;\n\n\tmargin: 0;\n\tmin-height: 75px;\n\tpadding: 9px 11px 0;\n\twidth: 100%;\n\tresize: none;\n border:0;\n\tborder-bottom: solid 30px transparent;\n\toverflow: hidden;\n\toverflow-wrap: break-word;\n\t\n}\n\n.u-gutter {\n\tmargin-left: 2pc;\n\tmargin-bottom: 1pc;\n}\n.checklist-new-item-text, .checklist-new-item-text:hover {\n\tbackground: 0 0 !important;\n\tbox-shadow: none;\n\tcursor: pointer;\n\tmargin-bottom: 4px;\n\tmax-height: 2pc;\n\toverflow: hidden;\n\tresize: none;\n\ttext-decoration: none;\n\tborder: 1px solid transparent;\n\theight: 30px;\n}\n\n.checklist-new-item-text:focus {\n\tbackground: #fff !important;\n\tborder-color: #298FCA;\n\tbox-shadow: 0 0 2px #298FCA;\n}\n\ninput[type=\"checkbox\"], input[type=\"radio\"] {\n width: auto;\n}\n.tc-modal-body {\n\tmax-height: 90vh !important;\n}\n\n.button-link {\n\tbackground: #E2E4E6;\n\tbox-shadow: 0 1px 0 0 #C4C9CC;\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\tcursor: pointer;\n\tdisplay: block;\n\theight: 2pc;\n\tmargin-top: 8px;\n\tmax-width: 300px;\n\tpadding: 7px 7px 7px 11px;\n\tposition: relative;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder-radius: 3px;\n\tfont-weight: 700;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tcolor: #444;\n}\n\n.window-main-col {\n\tfloat: left;\n\tmargin: 0;\n\toverflow-x: hidden;\n\toverflow-y: auto;\n\tmin-height: 24px;\n\tpadding: 0 8px 8px;\n\tposition: relative;\n\twidth: 65%;\n\tz-index: 0;\n}\n\n\n.window-sidebar {\n\tfloat: right;\n\tpadding: 8px 1pc 8px 8px;\n\twidth: 30%;\n\toverflow: hidden;\n\tz-index: 10;\n}\n.window-module {\n\tclear: both;\n\tmargin-bottom: 1pc;\n\tposition: relative;\n}\n\n.button-link {\n\tbackground: #E2E4E6;\n\tbox-shadow: 0 1px 0 0 #C4C9CC;\n\t-moz-box-sizing: border-box;\n\tbox-sizing: border-box;\n\tcursor: pointer;\n\tdisplay: block;\n\theight: 2pc;\n\tmargin-top: 10px;\n\tposition: relative;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tborder-radius: 3px;\n\tfont-weight: 700;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tcolor: #444;\n\twidth: 100%;\n\tborder: 1px solid transparent;\n\ttext-align: left;\n\tpadding-left: 15%;\n}\n\n/* ---- ------*/\n\n/* ------ Delete board popup ------*/\n.md-modal {\n\tposition: fixed;\n\ttop: 30%;\n\tleft: 50%;\n\twidth: 50%;\n\tmax-width: 630px;\n\tmin-width: 320px;\n\theight: auto;\n\tz-index: 2000;\n\t-webkit-transform: translateX(-50%) translateY(-50%);\n\t-moz-transform: translateX(-50%) translateY(-50%);\n\t-ms-transform: translateX(-50%) translateY(-50%);\n\ttransform: translateX(-50%) translateY(-50%);\n}\n\n.md-content {\n\tcolor: #fff;\n\tbackground: #e74c3c;\n\tposition: absolute;\n\tborder-radius: 3px;\n\tmargin: 0 auto;\n}\n\n.md-content h3 {\n\tmargin: 0;\n\tpadding: 0.4em;\n\ttext-align: center;\n\tfont-size: 30px;\n\tfont-weight: 300;\n\topacity: 0.8;\n\tbackground: rgba(0,0,0,0.1);\n\tborder-radius: 3px 3px 0 0;\n}\n.md-content > div {\n\tpadding: 15px 40px 30px;\n\tmargin: 0;\n\tfont-weight: 300;\n\tfont-size: 20px;\n text-align: center;\n}\n\n\n.md-content > div p {\n\tmargin: 0;\n\tpadding: 10px 0;\n}\n.md-content button {\n\t\n\tmargin: 0 auto;\n\tfont-size: 0.8em;\n border: none;\n\tpadding: 0.6em 1.2em;\n\tbackground: #c0392b;\n\tcolor: #fff;\n\tfont-family: 'Lato', Calibri, Arial, sans-serif;\n\n\tletter-spacing: 1px;\n\ttext-transform: uppercase;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\t\n\tborder-radius: 2px;\n}\n\n.mdbuttons {\n\tmargin: auto;\n\tposition: relative;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 40%;\n\tpadding: 5% 0;\n}\n\n/** ------------**/\n\n/* Stepping away from TW5 styles*/\n.tc-notification {display:none}\n.tc-droppable.tc-dragover > .tc-droppable-placeholder {\n\theight: 1px !important;\n border:none !important;\n\tborder-bottom: 2px solid grey !important;\n}\n.tc-modal {\n\tbackground-color: #EDEFF0 !important;\n\tborder-radius: 2px;\n\tmargin: 3pc 0 5pc;\n\toverflow: hidden;\n\tposition: relative;\n\twidth: 60% !important;\n\tleft: 20% !important;\n}\n.tc-modal-header {\n\tdisplay: none !important;\n}\n.tc-modal-footer {\n\tdisplay: none !important;\n}\n\n\n\n/** ------------**/\n\n\n/** Listops button **/\n.listopsbutton {\npadding: 3px 10px;\nmargin: 0 5%;\n}\n.listopsbutton:hover {\n\tbackground: #298FCA;\n\tcolor: #fff;\n}\n/** ------------**/\n\nfooter textarea {line-height: 22px;}\n\n/**-----Board Select-----**/\n.whitebgdropdown {\n\twidth: 280px;\n\toverflow: hidden;\n\tborder: 1px solid #bbb;\n border-radius: 0 3px 3px 0;\n\tbackground-color: #ffffff;\n\tpadding: 7px 0 7px 0;\n\tmargin: 4px 0 0 0;\n\twhite-space: nowrap;\n\ttext-shadow: none;\n top: 45px;\n\tz-index: 60;\n\tline-height: 1.4;\n box-shadow: 0 3px 6px rgba(0,0,0,.4);\n}\n.whitebgdropdown a, .whitebgdropdown button {\n\tdisplay: block;\n\tpadding: 0 10px 0 10px;\n\twidth: 100%;\n\ttext-align: left;\n\tcolor: #333333;\n\tline-height: 1.4;\n}\n.simplesquare {\n\tbackground-color: #0079BF;\n\tdisplay: inline-block;\n\theight: 36px;\n\topacity: .7;\n\twidth: 36px;\n\tborder-radius: 5px;\n\tmargin-right: 3px;\n}\n\n/**-----Board Select END-----**/\n\n\n@media all and (max-width: 640px) {\n .lists {flex-wrap:wrap;}\n .list {height:auto; padding: 10px 0;}\n .pop-over{\n position: fixed;\n left: 0;\n\ttop:20%;\n\twidth: 100%;\n }\n .tc-modal {\n\twidth: 100% !important;\n\tleft: 0;\n\t}\n .md-modal.md-effect-1.md-show {\n\twidth: 100%;\n\t}\n .mdbuttons {\n\tmargin: 0 30%;\n\t}\n}",
"type": "text/css",
"title": "$:/Tekan/Substyles",
"tags": "$:/Tekan $:/tags/Stylesheet",
"modifier": "Riz",
"modified": "20170922172832077"
},
"$:/Tekan/Switch": {
"created": "20170910184159665",
"creator": "Riz",
"text": "<$button class=\"tc-btn-invisible\">{{$:/core/images/opacity}}\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]\">\n<$action-setfield tags=\"TwelloMode\"/>\n</$list>\n<$action-setfield $tiddler=\"$:/Tekan/Main\" tags=\"$:/tags/PageTemplate\"/>\n<$action-listops $tiddler=\"$:/Tekan/Substyles\" $tags=\"$:/tags/Stylesheet\"/>\n</$button>",
"title": "$:/Tekan/Switch",
"tags": "$:/Tekan $:/tags/PageControls",
"modifier": "Riz",
"modified": "20170922134147562"
},
"$:/Tikan/EditCardModal": {
"text": "\\define checklisttag()\n[[$(currentCard)$]]\n\\end\n\n\\define addchecklistitem()\n<$action-createtiddler $basetitle={{$:/state/checklistitem}} tags=<<checklisttag>>/>\n<$action-setfield $tiddler=\"$:/state/checklistitem\" text=\"\"/>\n\\end\n\n\\define archivechecklist()\n<$list filter=\"[tag<currentCard>tag[done]!tag[archive]]\">\n<$action-listops $tags=\"archive\"/>\n</$list>\n\\end\n<div class=\"window-header\">\n <span class=\"window-header-icon icon-lg icon-card\"></span>\n <div class=\"window-title\">\n<$edit-text class=\"mod-card-back-title\" style=\"overflow: hidden; overflow-wrap: break-word; height: 26px;\" tag=\"input\" tiddler=\"$:/state/editcard\"/>\n<div>in list <<currentList>> <$list filter=\"[<currentCard>tag[archive]]\">{{archive||$:/core/ui/TagTemplate}}</$list></div>\n</div>\n<$button class=\"smallgreenbutton\" style=\"margin-top: 10px;\">Change\n<$action-setfield $tiddler=<<currentCard>> $field=\"title\" $value={{$:/state/editcard}}/>\n<$action-deletetiddler $tiddler=<<currentCard>>/>\n</$button>\n</div>\n\n\n <$set name=\"currentCard\" value={{$:/state/editcard}}>\n\n\n<div class=\"window-main-col\">\n<div class=\"window-module add-comment-section\">\n \t<div class=\"window-module-title window-module-title-no-divider\">\n\t \t<span class=\"window-module-title-icon icon-lg icon-comment\"></span>\n\t <h3>Add Comment</h3>\n\t</div>\n <div class=\"new-comment\">\n <div class=\"comment-frame\">\n <div class=\"comment-box\">\n \t\t\t\t<$edit-text class=\"comment-box-input\" placeholder=\"Write a comment…\" style=\"overflow: hidden; overflow-wrap: break-word; height: 75px;\" tiddler=<<currentCard>> default=\"No Comments\"/>\n </div>\n </div>\n </div>\n</div>\n \n \n \n\t<div class=\"checklistarea\">\n\t<div class=\"window-module-title window-module-title-no-divider\">\n\t \t<span class=\"window-module-title-icon icon-lg icon-comment\"></span>\n\t <h3>Checklist</h3>\n\t</div>\n \t<div class=\"u-gutter\">\n\t\t <$edit-text class=\"checklist-new-item-text \" placeholder=\"Add an item…\" style=\"overflow-x: hidden; overflow-y: scroll; overflow-wrap: break-word; height: 48px;\" tag=\"input\" tiddler=\"$:/state/checklistitem\" default=\"New item\"/>\n\t\t <$button class=\"smallgreenbutton\" actions=<<addchecklistitem>>>Add</$button>\n </div>\n\t\t<div class=\"u-gutter\">\n\t\t <$list filter=\"[tag<currentCard>!tag[done]!tag[archive]]\">\n\t\t <$checkbox tag=\"done\"> <$view field=\"title\"/></$checkbox>\n\t\t </$list>\n\n\t\t <$list filter=\"[tag<currentCard>tag[done]!tag[archive]]\">\n\t\t <$checkbox tag=\"done\"> ~~<$view field=\"title\"/>~~</$checkbox>\n\t\t </$list>\n\t\t <$button class=\"smallgreenbutton\" style=\"background: #4DB6AC;color:#eee;margin: 5% 0;\" actions=<<archivechecklist>>>Archive Done Checklist Items</$button>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"window-sidebar\" style=\"left: 864px; top: 0px;\">\n<div class=\"window-module u-clearfix\">\n\t\t<$button class=\"button-link\" style=\"background: #EE6E73;color: #fff;\">Delete\n\t\t\t<$action-deletetiddler $tiddler=<<currentCard>>/>\n\t\t\t<$action-sendmessage $message=\"tm-close-tiddler\"/>\n <$action-listops $tiddler=<<currentList>> $subfilter=\"+[remove<currentCard>]\"/>\n\t\t</$button>\n\t\t<$button class=\"button-link\">Archive\n\t\t\t<$action-listops $tiddler=<<currentCard>> $tags=\"archive\"/>\n <$action-listops $tiddler=<<currentList>> $subfilter=\"+[remove<currentCard>]\"/>\n\t\t</$button>\n\t\t<$button class=\"button-link\">Done\n\t\t\t<$action-sendmessage $message=\"tm-close-tiddler\"/>\n\t\t</$button>\n</div>\n</div>\n</$set>",
"title": "$:/Tikan/EditCardModal",
"tags": "$:/Tekan",
"modified": "20170919214833730",
"created": "20170919125005908"
},
"$:/plugins/tesseract/tekan/readme": {
"created": "20170919234633271",
"creator": "Riz",
"text": "! Tekan\n\nTekan is a simple kanban client using TW5. ",
"title": "$:/plugins/tesseract/tekan/readme",
"tags": "",
"modified": "20170919235214823",
"modifier": "Riz"
}
}
}
{"tiddlers":{"$:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Brands.css":{"title":"$:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Brands.css","tags":"$:/tags/Stylesheet","type":"text/css","text":"/* autoimported retrieved from 'fontawesome-free-5.8.2-web' */\n@font-face {\n font-family: 'Font Awesome 5 Brands';\n font-style: normal;\n font-weight: normal;\n src: url('data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAVX4AA0AAAAB+UABSbrhAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcik7xOkdERUYAAAFMAAAAHgAAAB4AKgG1T1MvMgAAAWwAAABPAAAAYEIQ5ZJjbWFwAAABvAAAAwkAAAV6Eu4UmWdhc3AAAATIAAAACAAAAAj//wADZ2x5ZgAABNAAATw9AAHOEJRTNq9oZWFkAAFBEAAAADMAAAA2FMnDQWhoZWEAAUFEAAAAIQAAACQENgPgaG10eAABQWgAAAJjAAAGujRmBgpsb2NhAAFDzAAAA2AAAANgNVqnlG1heHAAAUcsAAAAHwAAACACGANPbmFtZQABR0wAAAIUAAAFf3xycyVwb3N0AAFJYAAADJcAABQbHE4wK3icY2BgYGQAghsJmjlg+nvyMyj9HABK5ggAAAAAAQAAAAwAAAAWAAAAAgABAAMBrgACAAQAAAACAAAAAHicY2BhfMU4gYGVgYHRhzGNgYHBHUp/ZZBkaGFgYGJgZWaAAUYBBgQISHNNYWj40PjDifHA/wMMeoxnGEIagGrACq0YlwIpBQZGAIbADr4AeJzt021olmUUB/D72R6b93095zzbjDJQMFLQRHGrfGtOGUYfKkgR3yjxQ5KvQ2nStNRtOmq+UE7THsWXMMec1syWL6RDSB50TJ3aFGS+rGYi+HKfc+7rvuYSny4eR5Sf+mRf/MM58Ifrw+EHl+M4mc6j6eNE7HaiJbZF0j0aneo4kVxbspxcv8Jf61f7W/1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IO4CtlODV7tvAxq1H81okYD23G7/zAzCdyRlH3bwEY0MZi06TW17TcWl1aYKhDKxFU89ieNRcKMj+AMnCefOoib+RzeYOPdvRcc4jPHdDrr2Q9GbAw/Jy30PwHB++wAt6n0atGW4Le2vxJHEmQLl2bCrPPobtTpCeQu/wrGH+jEAA==') format('woff');\n}\n\n.fab {\n font-family: 'Font Awesome 5 Brands';\n font-style: normal;\n font-weight: normal;\n}\n"},"$:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Regular.css":{"title":"$:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Regular.css","tags":"$:/tags/Stylesheet","type":"text/css","text":"/* autoimported retrieved from 'fontawesome-free-5.8.2-web' */\n@font-face {\n font-family: 'Font Awesome 5 Free';\n font-style: normal;\n font-weight: 400;\n src: url('data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAEGkAA0AAAAAhSwBSbrhAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcik7xNkdERUYAAAFMAAAAHgAAAB4AKgCgT1MvMgAAAWwAAABPAAAAYEGT4xtjbWFwAAABvAAAAdwAAAPax6DI9Gdhc3AAAAOYAAAACAAAAAj//wADZ2x5ZgAAA6AAADVGAABuxGwbBR1oZWFkAAA46AAAADMAAAA2FMnDKWhoZWEAADkcAAAAHwAAACQENQLRaG10eAAAOTwAAACuAAACVBKwAHRsb2NhAAA57AAAATYAAAE26EXLiG1heHAAADskAAAAHwAAACAA6gCvbmFtZQAAO0QAAAIRAAAFVSw0Mbtwb3N0AAA9WAAABEkAAAer/E9Bu3icY2BgYGQAghsJmjlg+nvyIyj9HABKwgf8AAAAAQAAAAwAAAAWAAAAAgABAAMAmQACAAQAAAACAAAAAHicY2BhfMs4gYGVgYHRhzGNgYHBHUp/ZZBkaGFgYGJgZWaAAUYBBgQISHNNYWj4wPL1BOOB/wcY9BjPMIQ0ANWAFVoxLgVSCgyMAIeIDscAeJzV0s1LlHEQB/DfPm4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7IvbV9f2pxz9homLelOrytANDTEfuYmGTV+wOssHfvQLRk3Y1G3zvqK9s6LYGm265iIlhbA2iuz1rZc1s7pQ88A9Hd22j65coGtVKa6pb7i9lP8DXCSBdgAAAA==') format('woff');\n}\n\n.far {\n font-family: 'Font Awesome 5 Free';\n font-style: normal;\n font-weight: 400;\n}\n"},"$:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Solid.css":{"title":"$:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Solid.css","tags":"$:/tags/Stylesheet","type":"text/css","text":"/* autoimported retrieved from 'fontawesome-free-5.8.2-web' */\n@font-face {\n font-family: 'Font Awesome 5 Free';\n font-style: normal;\n font-weight: 900;\n src: url('data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAXgAAA0AAAAC2DgBSbrhAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcik7xNkdERUYAAAFMAAAAHgAAAB4AKgOxT1MvMgAAAWwAAABPAAAAYEOD5ZxjbWFwAAABvAAABkEAAAsSQPJJQmdhc3AAAAgAAAAACAAAAAj//wADZ2x5ZgAACAgAAUXOAAJ7NFjMBploZWFkAAFN2AAAADUAAAA2FNfDKWhoZWEAAU4QAAAAIAAAACQEQwXsaG10eAABTjAAAAO5AAAOrDgHAsxsb2NhAAFR7AAACYUAAA6wBDEq0G1heHAAAVt0AAAAHwAAACAEDQDsbmFtZQABW5QAAAIPAAAFJUe2Lstwb3N0AAFdpAAAGlkAAC1tHQ2Q6HicY2BgYGQAghsJmjlg+nvyIyj9HABKwgf8AAAAAQAAAAwAAAAWAAAAAgABAAMDqgACAAQAAAACAAAAAHicY2Bh/MHcwsDKwMDow5jGwMDgDqW/MkgytDAwMDGwMjPAAKMAAwIEpLmmMDR8YPhhx3jg/wEGPcYzDCENQDVghVaMS4GUAgMjAHg3Dj0AeJzt1mtwlsUVB/AngRjJnrPnVcSA0hSwddRWwGIFvHAZUBAkhaY6wZgIiKl4aSnScguV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MidxV6fUdieulqGNc0d81cWqFjpn5lXXOWcx1rvvxgEYh/7FSwrmJTAowz/K5dTxbxkNJ/azLv0ipc6A7Qq3tPJhzXmIUPDjt2k+q/McE4Nx5NrQB33QZBmPOWUiWiOM2W9awC4MfBssrlti905cIyhrpl/R02ov4OzuYd+kq+jQOw4QLP+aiCGfUjgjlNmwFeOgxUgRcPqw3mayZsFXAv0pUPvyhiA07KMDJffdOI9cibZqsW3s02+xwhXGNHRvY0stB6P8BwE21TQAAAA==') format('woff');\n}\n\n.fa, .fas {\n font-family: 'Font Awesome 5 Free';\n font-style: normal;\n font-weight: 900;\n}\n"},"$:/plugins/TheDiveO/FontAwesome/history":{"title":"$:/plugins/TheDiveO/FontAwesome/history","created":"20140901110931199","modified":"20190509195707164","type":"text/vnd.tiddlywiki","text":"* ''1.2.18'' -- updates to Font Awesome 5.8.2.\n\n* ''1.2.17'' -- updates to Font Awesome 5.8.1, adding several new categories, such as \"alert\", \"beverage\", \"energy\", et cetera. However, most of these new categories simply rehash existing icons, so there are only few really new icons to be found in this release.\n\n* ''1.2.16'' -- updates to Font Awesome 5.7.2.\n\n* ''1.2.15'' -- updates to Font Awesome 5.6.3. This adds new categories, such as \"autumn\", \"holliday\" and \"halloween\" with new icons, as well as updating existing categories with additional icons.\n\n* ''1.2.14''\n** updates to Font Awesome Free 5.3.1.\n** fixes crash in `--update` command when glyph in icons.json lacks a search terms property.\n\n* ''1.2.13''\n** switches to fetching the most recent Font Awesome Free download URL via GitHub API; this way, we can get rid of the (fine!) Puppeteer package and a truckload of update overhead.\n** npm package maintenance update: move development dependencies out of the general dependencies.\n\n* ''1.2.12'' -- updates to Font Awesome Free 5.2.0. This adds new category packs for \"automotive\", \"medical\", \"education\", and \"maps\".\n\n* ''1.2.11'' -- updates to Font Awesome Free 5.1.11.\n\n* ''1.2.10'' (1.2.9)\n** updates to Font Awesome 5.1.0, which brings new categories \"design\", \"emoji\" and \"travel\", and their icons -- as well as some updates and icon additions.\n** updates the update mechanism to work with the new 5.1.x packaging.\n\n* ''1.2.8'' -- updates to Font Awesome Free 5.0.13. This brings three new catogies: animals, buildings, and mathematics.\n\n* ''1.2.7'' -- updates to Font Awesome Free 5.0.12 -- they really do rapid updates, do they?! Glad that updating this plugin is automated...\n\n* ''1.2.6'' -- updates to Font Awesome Free 5.0.11.\n\n* ''1.2.5'' -- updates to Font Awesome Free 5.0.10.\n\n* ''1.2.4''\n** adds unicode code point info to the cheatsheet.\n\n* ''1.2.3''\n** makes TW5FontAwesome plugin available as npm package `tw5-fontawesome`.\n** adds ~ThirdFlow plugin as npm dependency `tw5-thirdflow`.\n\n* ''1.2.2''\n** updates to Font Awesome Free 5.0.9.\n** adds new categories //Charity//, //Chat//, and //Moving//.\n** adds new \"Font Awesome 5\" tab to the [[Control Panel|$:/ControlPanel]] that allows customizing the plugin: enable/disable internal and external link styling.\n\n* ''1.2.1''\n** adds missing category information.\n** adds automated update of category information from the Font Awesome 5 web site, as part of the normal update process:\n*** `npm run update` updates only if there is a newer version of Font Awesome 5 Free available from https://fontawesome.com/\n*** `npm run forceupdate` updates unconditionally.\n\n* ''1.2.0''\n** updates to Font Awesome Free 5.0.8.\n** adds category filtering to the cheatsheet.\n** adds Font Awesome 5 category meta data.\n** brings a new (fully) automatic update and release mechanism:\n*** use `$ npm run update-fontawesome` to update the development files to the newest Font Awesome version that is available online.\n*** use `$ npm run release` to create the plugin release file(s).\n** upgrades to most recent version of the [[ThirdFlow|http://thediveo.github.io/ThirdFlow/]] plugin: this comes with a new automated release mechanism.\n** refactors development command `--update-fontawesome` to directly download the most recent Font Awesome 5 Free package .zip from https://fontawesome.com. The only optional parameter to this command is `force` which forces re-updating, even if the font currently installed in the dev wiki is the same version as the one downloaded.\n** upgrades ThirdFlow plugin and now uses the new automated release file generation mechanism.\n\n* ''1.1.2''\n** fixes ~TiddlyWiki-internal links to system tiddlers not showing the gear symbol in the tiddler editor preview pane.\n\n* ''1.1.1''\n** upgrades to Font Awesome 5.0.4.\n** adds update/import command to ~FontAwesome 5 demo ~TiddlyWiki to update ~~from a Font Awesome zip package~~ [//online//]. Use `--update-fontawesome` when running the plugin development ~TiddlyWiki under Node.js.\n*** The `--update-fontawesome` command ~~expects the (path and) name of a Font Awesome zip package from which it will then update itself~~ [//has no parameters, or alternatively a single parameter `force`//]. ~~There is no need to unpack the zip package.~~ For instance:<div><strike>\n\n```bash\n$ tiddlywiki editions/develop --verbose --update-fontawesome ~/Downloads/fontawesome-free-5.0.2-zip --server 8080 $:/core/save/all text/plain text/html\n```\n\n</strike></div>\n*** If for some reason you need to re-update from the same Font Awesome zip package, specify an additional `force` parameter after the zip package file name parameter. For instance:<div><strike>\n\n```bash\n$ tiddlywiki editions/develop --verbose --update-fontawesome ~/Downloads/fontawesome-free-5.0.2-zip force --server 8080 $:/core/save/all text/plain text/html\n```\n</strike></div>\n* ''1.1.0''\n** upgrades to Font Awesome 5.0.2.\n** upgrades user macros to allow to specify the Font Awesome font family: `fas` (//Font Awesome Solid//), `far` (//Font Awesome Regular//), and `fab` (//Font Awesome Brands//).\n** upgrades stylesheets to new Font Awesome font mess, introduces [[$:/plugins/TheDiveO/FontAwesome/macros/css settings]] shorthand macros to avoid lengthy CSS properties assignments in CSS rules using Font Awesome.\n* ''1.0.7''\n** fix overly greedy image URL adornments, so that they don't apply to TW5-internal images. Now, an internal [[tree.jpeg]] doesn't get adornment, while [[http://thediveo.github.io/TW5FontAwesome/fa-flag.png]] still does, so the type of document can be glanced quickly.\n** small visual improvement to `fa-lbadge` which adds a small right margin to the badge, so that the adjacent text doesn't seem to visually collide with the badge anymore.\n* ''1.0.6''\n** link adornments for image URLs (`.jpg`/`.jpeg`, `.png`, `.gif`, `.tif`/`.tiff`)\n* ''1.0.5''\n** maintenance: upgrade ThirdFlow plugin to 1.1.11.\n* ''1.0.4''\n** improved display of link adornments by removing the link underlining from the adornments.\n** fixed CSS class name bug in `fa-lbox` macro. Also added new `fa-lbadge` macro. Added documentation.\n** oh, the magic of the `list-after` field, when applied to CSS tiddlers, avoids overuse of CSS `!important` declarations.\n\n* ''1.0.3''\n** fixed CSS to ensure that our embedded Font Awesome font always takes precendence over any system-installed Font Awesome font. This ensures a consistent user experience, especially when the local Font Awesome would be an older version.\n\n* ''1.0.2''\n** fixes base64 encoding of the embedded Font Awesome woff.\n** updated documentation with a warning about system-installed fonts taking precedence.\n** updated instructions on how to update the embedded font yourself.\n\n* ''1.0.1''\n** incorporates recent Font Awesome 4.7.0.\n** CSS updated to 4.7.0 too.\n** development version contains updated Third Flow plugin.\n\n* ''1.0.0''\n** never released.\n\n* ''0.9.2-beta''\n** stable beta release with Font Awesome 4.2.0.\n\n* ''v0.0.1-beta1''\n** initial plugin release.\n"},"$:/plugins/TheDiveO/FontAwesome/icon":{"title":"$:/plugins/TheDiveO/FontAwesome/icon","created":"20140901103643546","modified":"20140901123044951","tags":"$:/tags/Image","type":"text/vnd.tiddlywiki","text":"<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\">\n <g fill-rule=\"evenodd\">\n <path \n d=\"m 13.75,0 -11.71875,6.875 0,13.75 11.71875,6.875 11.71875,-6.875 0,-13.75 L 13.75,0 z M 6.28125,5.78125 c 0.3579097,1.42e-5 0.6530496,0.1218163 0.90625,0.375 0.2531946,0.2532114 0.4062468,0.5796012 0.40625,0.9375 -3.2e-6,0.4864625 -0.2240993,0.8370553 -0.65625,1.09375 l 0,12.84375 c -2.6e-6,0.08791 -0.029668,0.15448 -0.09375,0.21875 -0.064087,0.06427 -0.1620941,0.09375 -0.25,0.09375 l -0.625,0 c -0.08791,-1e-6 -0.1859173,-0.02948 -0.25,-0.09375 C 5.6546643,21.18573 5.6249987,21.119157 5.625,21.03125 l 0,-12.84375 C 5.1924761,7.9308053 4.9999994,7.5802125 5,7.09375 4.9999994,6.7358512 5.1216167,6.4094614 5.375,6.15625 5.6283811,5.9030663 5.9233364,5.7812642 6.28125,5.78125 z m 6.6875,1.3125 c 0.722833,1.29e-5 1.403139,0.085316 2.03125,0.28125 0.628089,0.1959592 1.367727,0.4764702 2.21875,0.875 0.256694,0.1281803 0.53739,0.2187616 0.875,0.21875 0.364546,1.16e-5 0.758471,-0.076903 1.1875,-0.21875 0.428999,-0.1418231 0.811026,-0.2931062 1.125,-0.46875 0.313942,-0.1756193 0.594637,-0.3581524 0.875,-0.5 0.28033,-0.1418222 0.474573,-0.1874871 0.5625,-0.1875 0.175429,1.29e-5 0.340379,0.059159 0.46875,0.1875 0.128335,0.1283659 0.187481,0.2616962 0.1875,0.4375 l 0,7.75 c -1.9e-5,0.168803 -0.04062,0.283957 -0.125,0.375 -0.08442,0.09105 -0.223803,0.186697 -0.40625,0.28125 -1.45198,0.78379 -2.709891,1.187503 -3.75,1.1875 -0.412222,3e-6 -0.828017,-0.07008 -1.25,-0.21875 -0.422009,-0.148665 -0.782943,-0.324365 -1.09375,-0.5 -0.310829,-0.175628 -0.686986,-0.351512 -1.15625,-0.5 C 14.249466,15.94527 13.743089,15.875004 13.25,15.875 c -1.296838,4e-6 -2.850298,0.514176 -4.6875,1.5 -0.1148759,0.06095 -0.2359002,0.09375 -0.34375,0.09375 -0.1758202,3e-6 -0.3091502,-0.09039 -0.4375,-0.21875 -0.1283567,-0.12835 -0.1875032,-0.26205 -0.1875,-0.4375 l 0,-7.53125 c -3.2e-6,-0.2164353 0.1030684,-0.4073566 0.3125,-0.5625 0.1418315,-0.094545 0.3893527,-0.2417266 0.78125,-0.4375 1.593792,-0.8107376 3.03169,-1.1874871 4.28125,-1.1875 z m 4.4375,1.9375 c -0.342706,0.1226406 -0.355438,0.656233 -0.5,1.375 -0.223336,-0.06073 -0.456025,-0.114193 -0.6875,-0.125 -0.319018,-0.021 -0.822172,0.073 -1.1875,0.0625 -0.365324,-0.0105 -1.089266,-0.319558 -1.6875,-0.25 -0.240525,0.02958 -0.495457,0.05507 -0.71875,0.15625 -0.136605,0.0619 -0.307097,0.253524 -0.40625,0.28125 -0.999033,0.2793 -2.6450261,0.290617 -2.3125,-1.21875 0.02589,-0.1159319 0.051471,-0.2239389 0,-0.25 -0.06413,-0.032479 -0.11842,0.018948 -0.15625,0.09375 -0.5817319,1.263211 0.450231,2.090082 1.625,2.09375 0.368882,-0.02847 0.188339,-0.02825 0.53125,-0.09375 l 0,0.0625 c -0.02423,0.418425 0.151498,0.773091 0.5,1 -0.159883,0.455791 -0.470574,0.831401 -0.6875,1.25 0.08154,0.520418 0.625493,1.213538 0.84375,1.3125 0.19213,0.08713 0.590499,0.108967 0.6875,-0.03125 0.03464,-0.06594 0.03819,-0.208665 0,-0.28125 0.164063,0.181767 0.379948,0.409467 0.59375,0.53125 0.128025,0.06105 0.26257,0.120068 0.40625,0.125 l 0.15625,-0.03125 c 0.09128,-0.01967 0.220122,-0.01257 0.28125,-0.09375 0.06906,-0.117457 0.0042,-0.445257 -0.28125,-0.46875 -0.285459,-0.02351 -0.487565,-0.141306 -0.75,-0.53125 -0.216207,-0.376982 0.06825,-0.879067 0.15625,-1.25 0.451569,0.07267 0.885787,0.123856 1.34375,0.125 0.198682,-0.0101 0.397908,-0.02487 0.59375,-0.0625 0.06247,0.159574 0.248509,0.592654 0.25,0.71875 0.0042,0.355223 -0.119979,0.738597 -0.0625,1.09375 0.03593,0.104625 -0.01675,0.27314 0.1875,0.28125 0.122159,0.0062 0.03564,0.02295 0.21875,0.03125 l 0.1875,0 c 0.201842,0.338685 0.353672,0.332318 0.75,0.34375 L 17.375,15.25 c 0.06687,-0.02489 0.146577,-0.02959 0.1875,-0.09375 0.133768,-0.194285 -0.220263,-0.284732 -0.34375,-0.5 -0.123507,-0.215248 -0.635898,-1.387969 -0.25,-1.71875 0.385924,-0.330776 0.809257,-0.471475 0.96875,-0.78125 0.06907,-0.139714 0.138021,-0.279525 0.15625,-0.4375 0.09397,0.07799 0.154815,0.152169 0.28125,0.15625 0.334451,0.02101 0.632038,-0.392722 0.78125,-0.78125 0.07973,-0.238471 0.140218,-0.485838 0.125,-0.71875 -0.04092,-0.4488514 0.01685,-0.9204038 0.375,-1.21875 C 19.302812,9.334652 18.96272,9.5357952 18.5625,9.59375 18.341438,9.5266203 18.109109,9.4905105 17.875,9.5 17.760279,9.3505649 17.607384,9.0636657 17.40625,9.03125 z m -4.75,4.34375 c -0.01157,0.166727 -0.02255,0.305428 0.03125,0.46875 0.163898,0.134904 0.380252,0.35428 0.53125,0.5 -0.082,-0.02263 -0.235596,-0.0612 -0.3125,-0.03125 L 12.84375,14.28125 12.8125,14.25 c -0.108862,-0.1172 -0.395316,-0.310466 -0.34375,-0.5 0.04127,-0.131581 0.125136,-0.250383 0.1875,-0.375 z\" transform=\"scale(4.6545455,4.6545455)\"\n/>\n </g>\n</svg>"},"$:/plugins/TheDiveO/FontAwesome/license":{"title":"$:/plugins/TheDiveO/FontAwesome/license","created":"20140901105404058","modified":"20170223103858754","type":"text/vnd.tiddlywiki","text":"This plugin is licensed as follows:\n\n* Font Awesome font license: [[SIL OFL 1.1|http://scripts.sil.org/OFL]].\n* Font Awesome CSS and LESS files licenses: [[MIT License|http://opensource.org/licenses/mit-license.html]].\n* everything else in this plugin is (c) by TheDiveO and licensed under the [[MIT License|http://opensource.org/licenses/mit-license.html]]."},"$:/plugins/TheDiveO/FontAwesome/macros/css settings":{"title":"$:/plugins/TheDiveO/FontAwesome/macros/css settings","created":"20171230210524160","modified":"20171230211107336","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define fa-plugin-font-solid()\n font-family: 'Font Awesome 5 Free';\n font-style: normal;\n font-weight: 900; \n\\end\n\n\\define fa-plugin-font-regular()\n font-family: 'Font Awesome 5 Free';\n font-style: normal;\n font-weight: 400; \n\\end\n\n\\define fa-plugin-font-brands()\n font-family: 'Font Awesome 5 Brands';\n font-style: normal;\n font-weight: normal; \n\\end\n"},"$:/plugins/TheDiveO/FontAwesome/macros/fa/doc":{"title":"$:/plugins/TheDiveO/FontAwesome/macros/fa/doc","created":"20140831145557569","modified":"20171230205047837","type":"text/vnd.tiddlywiki","text":"Convenience macros to typeset symbols from Font Awesome.\n\n;`fa-lbox` //glyph//:\"fa-flag\" //fam//:\"fas\"\n: typesets the Font Awesome glyp (defaults to `fa-flag` glyph) in a gray box, and pulls it to the left.\n: As Font Awesome 5.0 has broken up the single 4.x font into multiple fonts, this macro now sports a second optional parameter for setting the font family. Allowed values are `fas` (for //Font Awesome Solid//), `far` (for //Font Awesome Regular//), and finally `fab` (for //Font Awesome Brands//).\n\n;`fa-lbadge` //glyph//:\"fa-flag\"\n: typesets the Font Awesome glyph (defaults to `fa-flag` glyph) in inverse, on a round badge. Also pulls the badge with the icon to the left.\n: As Font Awesome 5.0 has broken up the single 4.x font into multiple fonts, this macro now sports a second optional parameter for setting the font family. Allowed values are `fas` (for //Font Awesome Solid//), `far` (for //Font Awesome Regular//), and finally `fab` (for //Font Awesome Brands//).\n\n;`fa-clear`\n: convenience macro that inserts an empty HTML `div` element with styling `clear:both`. Use this before multiple `fa-lbox` and `fa-lbadge` macros to avoid them piling up from left to right."},"$:/plugins/TheDiveO/FontAwesome/macros/fa":{"title":"$:/plugins/TheDiveO/FontAwesome/macros/fa","created":"20140831145445334","modified":"20171230204202514","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define fa-lbox(glyph:\"fa-flag\",fam:\"fas\")\n<i class=\"$fam$ fa-2x pull-left fa-border $glyph$\"></i>\n\\end\n\n\\define fa-lbadge(glyph:\"fa-flag\",fam:\"fas\")\n<span class=\"fa-stack fa-lg fa-pull-left\" style=\"margin-right: .3em;\"><i class=\"fas fa-circle fa-stack-2x\"></i><i class=\"$fam$ fa-stack-1x fa-inverse $glyph$\"></i></span>\n\\end\n\n\\define fa-clear()\n<div style=\"clear:both;\"/>\n\\end\n"},"$:/plugins/TheDiveO/FontAwesome/macros/global-macros":{"title":"$:/plugins/TheDiveO/FontAwesome/macros/global-macros","created":"20180328184036630","modified":"20180328191101221","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define fa5-cfgpath(cfg) $:/config/fa5/$cfg$\n\n\\define fa5-cfgfilterexpr() [<cfg>get[text]] [[yes]] +[first[]prefix[yes]]"},"$:/plugins/TheDiveO/FontAwesome/readme":{"title":"$:/plugins/TheDiveO/FontAwesome/readme","created":"20140901105307611","modified":"20180112190527729","type":"text/vnd.tiddlywiki","text":"This plugin adds support for Font Awesome to your ~TiddlyWiki 5. It embeds the [[Font Awesome|http://fontawesome.io/]] within this plugin, so you don't need to install this font in your operating system. You may, but the //embedded// Font Awesome will take precedence to ensure a consistent user experience.\n\nTo install this plugin in your own ~TiddlyWiki(s), simply drop this [[FontAwesome plugin|$:/plugins/TheDiveO/FontAwesome]] onto your own ~TiddlyWiki(s): this will then import it."},"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/FontAwesome":{"title":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/FontAwesome","created":"20170227162302202","list-after":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks","modified":"20180328191153542","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html\n\n<$set name=\"cfg\" value=<<fa5-cfgpath \"decorate-wk-extlinks\">> >\n<$list filter=<<fa5-cfgfilterexpr>> >\n\na[href^=\"http://fontawesome.io/\"].tc-tiddlylink-external:before,\na[href^=\"http://fontawesome.com/\"].tc-tiddlylink-external:before,\na[href^=\"https://fontawesome.io/\"].tc-tiddlylink-external:before,\na[href^=\"https://fontawesome.com/\"].tc-tiddlylink-external:before {\n <<fa-plugin-font-brands>>\n content: '\\f425\\202f' !important;\n display: inline-block;\n}\n\n</$list>\n</$set>"},"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/GitHub":{"title":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/GitHub","created":"20170223102202986","list-after":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks","modified":"20180328191203844","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html\n\n<$set name=\"cfg\" value=<<fa5-cfgpath \"decorate-wk-extlinks\">> >\n<$list filter=<<fa5-cfgfilterexpr>> >\n\na[href^=\"http://\"][href*=\"github.com\"]:before {\n <<fa-plugin-font-brands>>\n font-size: 90%;\n content: '\\f09b\\202f';\n}\n\n</$list>\n</$set>"},"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/Wikipedia":{"title":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/Wikipedia","created":"20170223100306336","modified":"20180328191215033","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html\n\n<$set name=\"cfg\" value=<<fa5-cfgpath \"decorate-wk-extlinks\">> >\n<$list filter=<<fa5-cfgfilterexpr>> >\n\na[href^=\"http://\"][href*=\".wikipedia.org\"]:before {\n <<fa-plugin-font-brands>>\n font-size: 90%;\n content: '[\\f266]\\202f';\n}\n\n</$list>\n</$set>"},"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/doctypes":{"title":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks/doctypes","created":"20170301201914393","list-after":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks","modified":"20180328191142557","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html\n\n<$set name=\"cfg\" value=<<fa5-cfgpath \"decorate-extdoclinks\">> >\n<$list filter=<<fa5-cfgfilterexpr>> >\n\na[href$=\".pdf\"].tc-tiddlylink-external:before {\n <<fa-plugin-font-regular>>\n content: '\\f1c1\\202f';\n display: inline-block;\n}\n\na[href$=\".gz\"].tc-tiddlylink-external:before, \na[href$=\".zip\"].tc-tiddlylink-external:before,\na[href$=\".7z\"].tc-tiddlylink-external:before {\n <<fa-plugin-font-regular>>\n content: '\\f1c6\\202f';\n display: inline-block;\n}\n\na[href$=\".jpg\"].tc-tiddlylink-external:before,\na[href$=\".jpeg\"].tc-tiddlylink-external:before,\na[href$=\".png\"].tc-tiddlylink-external:before,\na[href$=\".gif\"].tc-tiddlylink-external:before,\na[href$=\".tif\"].tc-tiddlylink-external:before,\na[href$=\".tiff\"].tc-tiddlylink-external:before {\n <<fa-plugin-font-regular>>\n content: '\\f1c5\\202f';\n display: inline-block;\n}\n\n</$list>\n</$set>"},"$:/plugins/TheDiveO/FontAwesome/styles/extlinks":{"title":"$:/plugins/TheDiveO/FontAwesome/styles/extlinks","created":"20170223100043117","modified":"20180328191133975","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html\n\n<$set name=\"cfg\" value=<<fa5-cfgpath \"decorate-extlinks\">> >\n<$list filter=<<fa5-cfgfilterexpr>> >\n\na[href^=\"http://\"]:before {\n <<fa-plugin-font-solid>>\n font-size: 80%;\n content: '\\f35d\\202f';\n display: inline-block;\n}\n\na[href^=\"https://\"]:before {\n <<fa-plugin-font-solid>>\n font-size: 80%;\n content: '\\f023\\202f';\n display: inline-block;\n}\n\n</$list>\n</$set>"},"$:/plugins/TheDiveO/FontAwesome/styles/fontawesome 5.css":{"title":"$:/plugins/TheDiveO/FontAwesome/styles/fontawesome 5.css","tags":"$:/tags/Stylesheet","type":"text/css","text":"/* autoimported from 'fontawesome-free-5.8.2-web' */\n/*!\n * Font Awesome Free 5.8.2 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */\n.fa,\n.fas,\n.far,\n.fal,\n.fab {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n display: inline-block;\n font-style: normal;\n font-variant: normal;\n text-rendering: auto;\n line-height: 1; }\n\n.fa-lg {\n font-size: 1.33333em;\n line-height: 0.75em;\n vertical-align: -.0667em; }\n\n.fa-xs {\n font-size: .75em; }\n\n.fa-sm {\n font-size: .875em; }\n\n.fa-1x {\n font-size: 1em; }\n\n.fa-2x {\n font-size: 2em; }\n\n.fa-3x {\n font-size: 3em; }\n\n.fa-4x {\n font-size: 4em; }\n\n.fa-5x {\n font-size: 5em; }\n\n.fa-6x {\n font-size: 6em; }\n\n.fa-7x {\n font-size: 7em; }\n\n.fa-8x {\n font-size: 8em; }\n\n.fa-9x {\n font-size: 9em; }\n\n.fa-10x {\n font-size: 10em; }\n\n.fa-fw {\n text-align: center;\n width: 1.25em; }\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0; }\n .fa-ul > li {\n position: relative; }\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit; }\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: .1em;\n padding: .2em .25em .15em; }\n\n.fa-pull-left {\n float: left; }\n\n.fa-pull-right {\n float: right; }\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: .3em; }\n\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: .3em; }\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear; }\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8); }\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg); }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg); }\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg); }\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg); }\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1); }\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1); }\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1); }\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none; }\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em; }\n\n.fa-stack-1x,\n.fa-stack-2x {\n left: 0;\n position: absolute;\n text-align: center;\n width: 100%; }\n\n.fa-stack-1x {\n line-height: inherit; }\n\n.fa-stack-2x {\n font-size: 2em; }\n\n.fa-inverse {\n color: #fff; }\n\n/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen\nreaders do not read off random characters that represent icons */\n.fa-500px:before {\n content: \"\\f26e\"; }\n\n.fa-accessible-icon:before {\n content: \"\\f368\"; }\n\n.fa-accusoft:before {\n content: \"\\f369\"; }\n\n.fa-acquisitions-incorporated:before {\n content: \"\\f6af\"; }\n\n.fa-ad:before {\n content: \"\\f641\"; }\n\n.fa-address-book:before {\n content: \"\\f2b9\"; }\n\n.fa-address-card:before {\n content: \"\\f2bb\"; }\n\n.fa-adjust:before {\n content: \"\\f042\"; }\n\n.fa-adn:before {\n content: \"\\f170\"; }\n\n.fa-adobe:before {\n content: \"\\f778\"; }\n\n.fa-adversal:before {\n content: \"\\f36a\"; }\n\n.fa-affiliatetheme:before {\n content: \"\\f36b\"; }\n\n.fa-air-freshener:before {\n content: \"\\f5d0\"; }\n\n.fa-airbnb:before {\n content: \"\\f834\"; }\n\n.fa-algolia:before {\n content: \"\\f36c\"; }\n\n.fa-align-center:before {\n content: \"\\f037\"; }\n\n.fa-align-justify:before {\n content: \"\\f039\"; }\n\n.fa-align-left:before {\n content: \"\\f036\"; }\n\n.fa-align-right:before {\n content: \"\\f038\"; }\n\n.fa-alipay:before {\n content: \"\\f642\"; }\n\n.fa-allergies:before {\n content: \"\\f461\"; }\n\n.fa-amazon:before {\n content: \"\\f270\"; }\n\n.fa-amazon-pay:before {\n content: \"\\f42c\"; }\n\n.fa-ambulance:before {\n content: \"\\f0f9\"; }\n\n.fa-american-sign-language-interpreting:before {\n content: \"\\f2a3\"; }\n\n.fa-amilia:before {\n content: \"\\f36d\"; }\n\n.fa-anchor:before {\n content: \"\\f13d\"; }\n\n.fa-android:before {\n content: \"\\f17b\"; }\n\n.fa-angellist:before {\n content: \"\\f209\"; }\n\n.fa-angle-double-down:before {\n content: \"\\f103\"; }\n\n.fa-angle-double-left:before {\n content: \"\\f100\"; }\n\n.fa-angle-double-right:before {\n content: \"\\f101\"; }\n\n.fa-angle-double-up:before {\n content: \"\\f102\"; }\n\n.fa-angle-down:before {\n content: \"\\f107\"; }\n\n.fa-angle-left:before {\n content: \"\\f104\"; }\n\n.fa-angle-right:before {\n content: \"\\f105\"; }\n\n.fa-angle-up:before {\n content: \"\\f106\"; }\n\n.fa-angry:before {\n content: \"\\f556\"; }\n\n.fa-angrycreative:before {\n content: \"\\f36e\"; }\n\n.fa-angular:before {\n content: \"\\f420\"; }\n\n.fa-ankh:before {\n content: \"\\f644\"; }\n\n.fa-app-store:before {\n content: \"\\f36f\"; }\n\n.fa-app-store-ios:before {\n content: \"\\f370\"; }\n\n.fa-apper:before {\n content: \"\\f371\"; }\n\n.fa-apple:before {\n content: \"\\f179\"; }\n\n.fa-apple-alt:before {\n content: \"\\f5d1\"; }\n\n.fa-apple-pay:before {\n content: \"\\f415\"; }\n\n.fa-archive:before {\n content: \"\\f187\"; }\n\n.fa-archway:before {\n content: \"\\f557\"; }\n\n.fa-arrow-alt-circle-down:before {\n content: \"\\f358\"; }\n\n.fa-arrow-alt-circle-left:before {\n content: \"\\f359\"; }\n\n.fa-arrow-alt-circle-right:before {\n content: \"\\f35a\"; }\n\n.fa-arrow-alt-circle-up:before {\n content: \"\\f35b\"; }\n\n.fa-arrow-circle-down:before {\n content: \"\\f0ab\"; }\n\n.fa-arrow-circle-left:before {\n content: \"\\f0a8\"; }\n\n.fa-arrow-circle-right:before {\n content: \"\\f0a9\"; }\n\n.fa-arrow-circle-up:before {\n content: \"\\f0aa\"; }\n\n.fa-arrow-down:before {\n content: \"\\f063\"; }\n\n.fa-arrow-left:before {\n content: \"\\f060\"; }\n\n.fa-arrow-right:before {\n content: \"\\f061\"; }\n\n.fa-arrow-up:before {\n content: \"\\f062\"; }\n\n.fa-arrows-alt:before {\n content: \"\\f0b2\"; }\n\n.fa-arrows-alt-h:before {\n content: \"\\f337\"; }\n\n.fa-arrows-alt-v:before {\n content: \"\\f338\"; }\n\n.fa-artstation:before {\n content: \"\\f77a\"; }\n\n.fa-assistive-listening-systems:before {\n content: \"\\f2a2\"; }\n\n.fa-asterisk:before {\n content: \"\\f069\"; }\n\n.fa-asymmetrik:before {\n content: \"\\f372\"; }\n\n.fa-at:before {\n content: \"\\f1fa\"; }\n\n.fa-atlas:before {\n content: \"\\f558\"; }\n\n.fa-atlassian:before {\n content: \"\\f77b\"; }\n\n.fa-atom:before {\n content: \"\\f5d2\"; }\n\n.fa-audible:before {\n content: \"\\f373\"; }\n\n.fa-audio-description:before {\n content: \"\\f29e\"; }\n\n.fa-autoprefixer:before {\n content: \"\\f41c\"; }\n\n.fa-avianex:before {\n content: \"\\f374\"; }\n\n.fa-aviato:before {\n content: \"\\f421\"; }\n\n.fa-award:before {\n content: \"\\f559\"; }\n\n.fa-aws:before {\n content: \"\\f375\"; }\n\n.fa-baby:before {\n content: \"\\f77c\"; }\n\n.fa-baby-carriage:before {\n content: \"\\f77d\"; }\n\n.fa-backspace:before {\n content: \"\\f55a\"; }\n\n.fa-backward:before {\n content: \"\\f04a\"; }\n\n.fa-bacon:before {\n content: \"\\f7e5\"; }\n\n.fa-balance-scale:before {\n content: \"\\f24e\"; }\n\n.fa-ban:before {\n content: \"\\f05e\"; }\n\n.fa-band-aid:before {\n content: \"\\f462\"; }\n\n.fa-bandcamp:before {\n content: \"\\f2d5\"; }\n\n.fa-barcode:before {\n content: \"\\f02a\"; }\n\n.fa-bars:before {\n content: \"\\f0c9\"; }\n\n.fa-baseball-ball:before {\n content: \"\\f433\"; }\n\n.fa-basketball-ball:before {\n content: \"\\f434\"; }\n\n.fa-bath:before {\n content: \"\\f2cd\"; }\n\n.fa-battery-empty:before {\n content: \"\\f244\"; }\n\n.fa-battery-full:before {\n content: \"\\f240\"; }\n\n.fa-battery-half:before {\n content: \"\\f242\"; }\n\n.fa-battery-quarter:before {\n content: \"\\f243\"; }\n\n.fa-battery-three-quarters:before {\n content: \"\\f241\"; }\n\n.fa-battle-net:before {\n content: \"\\f835\"; }\n\n.fa-bed:before {\n content: \"\\f236\"; }\n\n.fa-beer:before {\n content: \"\\f0fc\"; }\n\n.fa-behance:before {\n content: \"\\f1b4\"; }\n\n.fa-behance-square:before {\n content: \"\\f1b5\"; }\n\n.fa-bell:before {\n content: \"\\f0f3\"; }\n\n.fa-bell-slash:before {\n content: \"\\f1f6\"; }\n\n.fa-bezier-curve:before {\n content: \"\\f55b\"; }\n\n.fa-bible:before {\n content: \"\\f647\"; }\n\n.fa-bicycle:before {\n content: \"\\f206\"; }\n\n.fa-bimobject:before {\n content: \"\\f378\"; }\n\n.fa-binoculars:before {\n content: \"\\f1e5\"; }\n\n.fa-biohazard:before {\n content: \"\\f780\"; }\n\n.fa-birthday-cake:before {\n content: \"\\f1fd\"; }\n\n.fa-bitbucket:before {\n content: \"\\f171\"; }\n\n.fa-bitcoin:before {\n content: \"\\f379\"; }\n\n.fa-bity:before {\n content: \"\\f37a\"; }\n\n.fa-black-tie:before {\n content: \"\\f27e\"; }\n\n.fa-blackberry:before {\n content: \"\\f37b\"; }\n\n.fa-blender:before {\n content: \"\\f517\"; }\n\n.fa-blender-phone:before {\n content: \"\\f6b6\"; }\n\n.fa-blind:before {\n content: \"\\f29d\"; }\n\n.fa-blog:before {\n content: \"\\f781\"; }\n\n.fa-blogger:before {\n content: \"\\f37c\"; }\n\n.fa-blogger-b:before {\n content: \"\\f37d\"; }\n\n.fa-bluetooth:before {\n content: \"\\f293\"; }\n\n.fa-bluetooth-b:before {\n content: \"\\f294\"; }\n\n.fa-bold:before {\n content: \"\\f032\"; }\n\n.fa-bolt:before {\n content: \"\\f0e7\"; }\n\n.fa-bomb:before {\n content: \"\\f1e2\"; }\n\n.fa-bone:before {\n content: \"\\f5d7\"; }\n\n.fa-bong:before {\n content: \"\\f55c\"; }\n\n.fa-book:before {\n content: \"\\f02d\"; }\n\n.fa-book-dead:before {\n content: \"\\f6b7\"; }\n\n.fa-book-medical:before {\n content: \"\\f7e6\"; }\n\n.fa-book-open:before {\n content: \"\\f518\"; }\n\n.fa-book-reader:before {\n content: \"\\f5da\"; }\n\n.fa-bookmark:before {\n content: \"\\f02e\"; }\n\n.fa-bootstrap:before {\n content: \"\\f836\"; }\n\n.fa-bowling-ball:before {\n content: \"\\f436\"; }\n\n.fa-box:before {\n content: \"\\f466\"; }\n\n.fa-box-open:before {\n content: \"\\f49e\"; }\n\n.fa-boxes:before {\n content: \"\\f468\"; }\n\n.fa-braille:before {\n content: \"\\f2a1\"; }\n\n.fa-brain:before {\n content: \"\\f5dc\"; }\n\n.fa-bread-slice:before {\n content: \"\\f7ec\"; }\n\n.fa-briefcase:before {\n content: \"\\f0b1\"; }\n\n.fa-briefcase-medical:before {\n content: \"\\f469\"; }\n\n.fa-broadcast-tower:before {\n content: \"\\f519\"; }\n\n.fa-broom:before {\n content: \"\\f51a\"; }\n\n.fa-brush:before {\n content: \"\\f55d\"; }\n\n.fa-btc:before {\n content: \"\\f15a\"; }\n\n.fa-buffer:before {\n content: \"\\f837\"; }\n\n.fa-bug:before {\n content: \"\\f188\"; }\n\n.fa-building:before {\n content: \"\\f1ad\"; }\n\n.fa-bullhorn:before {\n content: \"\\f0a1\"; }\n\n.fa-bullseye:before {\n content: \"\\f140\"; }\n\n.fa-burn:before {\n content: \"\\f46a\"; }\n\n.fa-buromobelexperte:before {\n content: \"\\f37f\"; }\n\n.fa-bus:before {\n content: \"\\f207\"; }\n\n.fa-bus-alt:before {\n content: \"\\f55e\"; }\n\n.fa-business-time:before {\n content: \"\\f64a\"; }\n\n.fa-buysellads:before {\n content: \"\\f20d\"; }\n\n.fa-calculator:before {\n content: \"\\f1ec\"; }\n\n.fa-calendar:before {\n content: \"\\f133\"; }\n\n.fa-calendar-alt:before {\n content: \"\\f073\"; }\n\n.fa-calendar-check:before {\n content: \"\\f274\"; }\n\n.fa-calendar-day:before {\n content: \"\\f783\"; }\n\n.fa-calendar-minus:before {\n content: \"\\f272\"; }\n\n.fa-calendar-plus:before {\n content: \"\\f271\"; }\n\n.fa-calendar-times:before {\n content: \"\\f273\"; }\n\n.fa-calendar-week:before {\n content: \"\\f784\"; }\n\n.fa-camera:before {\n content: \"\\f030\"; }\n\n.fa-camera-retro:before {\n content: \"\\f083\"; }\n\n.fa-campground:before {\n content: \"\\f6bb\"; }\n\n.fa-canadian-maple-leaf:before {\n content: \"\\f785\"; }\n\n.fa-candy-cane:before {\n content: \"\\f786\"; }\n\n.fa-cannabis:before {\n content: \"\\f55f\"; }\n\n.fa-capsules:before {\n content: \"\\f46b\"; }\n\n.fa-car:before {\n content: \"\\f1b9\"; }\n\n.fa-car-alt:before {\n content: \"\\f5de\"; }\n\n.fa-car-battery:before {\n content: \"\\f5df\"; }\n\n.fa-car-crash:before {\n content: \"\\f5e1\"; }\n\n.fa-car-side:before {\n content: \"\\f5e4\"; }\n\n.fa-caret-down:before {\n content: \"\\f0d7\"; }\n\n.fa-caret-left:before {\n content: \"\\f0d9\"; }\n\n.fa-caret-right:before {\n content: \"\\f0da\"; }\n\n.fa-caret-square-down:before {\n content: \"\\f150\"; }\n\n.fa-caret-square-left:before {\n content: \"\\f191\"; }\n\n.fa-caret-square-right:before {\n content: \"\\f152\"; }\n\n.fa-caret-square-up:before {\n content: \"\\f151\"; }\n\n.fa-caret-up:before {\n content: \"\\f0d8\"; }\n\n.fa-carrot:before {\n content: \"\\f787\"; }\n\n.fa-cart-arrow-down:before {\n content: \"\\f218\"; }\n\n.fa-cart-plus:before {\n content: \"\\f217\"; }\n\n.fa-cash-register:before {\n content: \"\\f788\"; }\n\n.fa-cat:before {\n content: \"\\f6be\"; }\n\n.fa-cc-amazon-pay:before {\n content: \"\\f42d\"; }\n\n.fa-cc-amex:before {\n content: \"\\f1f3\"; }\n\n.fa-cc-apple-pay:before {\n content: \"\\f416\"; }\n\n.fa-cc-diners-club:before {\n content: \"\\f24c\"; }\n\n.fa-cc-discover:before {\n content: \"\\f1f2\"; }\n\n.fa-cc-jcb:before {\n content: \"\\f24b\"; }\n\n.fa-cc-mastercard:before {\n content: \"\\f1f1\"; }\n\n.fa-cc-paypal:before {\n content: \"\\f1f4\"; }\n\n.fa-cc-stripe:before {\n content: \"\\f1f5\"; }\n\n.fa-cc-visa:before {\n content: \"\\f1f0\"; }\n\n.fa-centercode:before {\n content: \"\\f380\"; }\n\n.fa-centos:before {\n content: \"\\f789\"; }\n\n.fa-certificate:before {\n content: \"\\f0a3\"; }\n\n.fa-chair:before {\n content: \"\\f6c0\"; }\n\n.fa-chalkboard:before {\n content: \"\\f51b\"; }\n\n.fa-chalkboard-teacher:before {\n content: \"\\f51c\"; }\n\n.fa-charging-station:before {\n content: \"\\f5e7\"; }\n\n.fa-chart-area:before {\n content: \"\\f1fe\"; }\n\n.fa-chart-bar:before {\n content: \"\\f080\"; }\n\n.fa-chart-line:before {\n content: \"\\f201\"; }\n\n.fa-chart-pie:before {\n content: \"\\f200\"; }\n\n.fa-check:before {\n content: \"\\f00c\"; }\n\n.fa-check-circle:before {\n content: \"\\f058\"; }\n\n.fa-check-double:before {\n content: \"\\f560\"; }\n\n.fa-check-square:before {\n content: \"\\f14a\"; }\n\n.fa-cheese:before {\n content: \"\\f7ef\"; }\n\n.fa-chess:before {\n content: \"\\f439\"; }\n\n.fa-chess-bishop:before {\n content: \"\\f43a\"; }\n\n.fa-chess-board:before {\n content: \"\\f43c\"; }\n\n.fa-chess-king:before {\n content: \"\\f43f\"; }\n\n.fa-chess-knight:before {\n content: \"\\f441\"; }\n\n.fa-chess-pawn:before {\n content: \"\\f443\"; }\n\n.fa-chess-queen:before {\n content: \"\\f445\"; }\n\n.fa-chess-rook:before {\n content: \"\\f447\"; }\n\n.fa-chevron-circle-down:before {\n content: \"\\f13a\"; }\n\n.fa-chevron-circle-left:before {\n content: \"\\f137\"; }\n\n.fa-chevron-circle-right:before {\n content: \"\\f138\"; }\n\n.fa-chevron-circle-up:before {\n content: \"\\f139\"; }\n\n.fa-chevron-down:before {\n content: \"\\f078\"; }\n\n.fa-chevron-left:before {\n content: \"\\f053\"; }\n\n.fa-chevron-right:before {\n content: \"\\f054\"; }\n\n.fa-chevron-up:before {\n content: \"\\f077\"; }\n\n.fa-child:before {\n content: \"\\f1ae\"; }\n\n.fa-chrome:before {\n content: \"\\f268\"; }\n\n.fa-chromecast:before {\n content: \"\\f838\"; }\n\n.fa-church:before {\n content: \"\\f51d\"; }\n\n.fa-circle:before {\n content: \"\\f111\"; }\n\n.fa-circle-notch:before {\n content: \"\\f1ce\"; }\n\n.fa-city:before {\n content: \"\\f64f\"; }\n\n.fa-clinic-medical:before {\n content: \"\\f7f2\"; }\n\n.fa-clipboard:before {\n content: \"\\f328\"; }\n\n.fa-clipboard-check:before {\n content: \"\\f46c\"; }\n\n.fa-clipboard-list:before {\n content: \"\\f46d\"; }\n\n.fa-clock:before {\n content: \"\\f017\"; }\n\n.fa-clone:before {\n content: \"\\f24d\"; }\n\n.fa-closed-captioning:before {\n content: \"\\f20a\"; }\n\n.fa-cloud:before {\n content: \"\\f0c2\"; }\n\n.fa-cloud-download-alt:before {\n content: \"\\f381\"; }\n\n.fa-cloud-meatball:before {\n content: \"\\f73b\"; }\n\n.fa-cloud-moon:before {\n content: \"\\f6c3\"; }\n\n.fa-cloud-moon-rain:before {\n content: \"\\f73c\"; }\n\n.fa-cloud-rain:before {\n content: \"\\f73d\"; }\n\n.fa-cloud-showers-heavy:before {\n content: \"\\f740\"; }\n\n.fa-cloud-sun:before {\n content: \"\\f6c4\"; }\n\n.fa-cloud-sun-rain:before {\n content: \"\\f743\"; }\n\n.fa-cloud-upload-alt:before {\n content: \"\\f382\"; }\n\n.fa-cloudscale:before {\n content: \"\\f383\"; }\n\n.fa-cloudsmith:before {\n content: \"\\f384\"; }\n\n.fa-cloudversify:before {\n content: \"\\f385\"; }\n\n.fa-cocktail:before {\n content: \"\\f561\"; }\n\n.fa-code:before {\n content: \"\\f121\"; }\n\n.fa-code-branch:before {\n content: \"\\f126\"; }\n\n.fa-codepen:before {\n content: \"\\f1cb\"; }\n\n.fa-codiepie:before {\n content: \"\\f284\"; }\n\n.fa-coffee:before {\n content: \"\\f0f4\"; }\n\n.fa-cog:before {\n content: \"\\f013\"; }\n\n.fa-cogs:before {\n content: \"\\f085\"; }\n\n.fa-coins:before {\n content: \"\\f51e\"; }\n\n.fa-columns:before {\n content: \"\\f0db\"; }\n\n.fa-comment:before {\n content: \"\\f075\"; }\n\n.fa-comment-alt:before {\n content: \"\\f27a\"; }\n\n.fa-comment-dollar:before {\n content: \"\\f651\"; }\n\n.fa-comment-dots:before {\n content: \"\\f4ad\"; }\n\n.fa-comment-medical:before {\n content: \"\\f7f5\"; }\n\n.fa-comment-slash:before {\n content: \"\\f4b3\"; }\n\n.fa-comments:before {\n content: \"\\f086\"; }\n\n.fa-comments-dollar:before {\n content: \"\\f653\"; }\n\n.fa-compact-disc:before {\n content: \"\\f51f\"; }\n\n.fa-compass:before {\n content: \"\\f14e\"; }\n\n.fa-compress:before {\n content: \"\\f066\"; }\n\n.fa-compress-arrows-alt:before {\n content: \"\\f78c\"; }\n\n.fa-concierge-bell:before {\n content: \"\\f562\"; }\n\n.fa-confluence:before {\n content: \"\\f78d\"; }\n\n.fa-connectdevelop:before {\n content: \"\\f20e\"; }\n\n.fa-contao:before {\n content: \"\\f26d\"; }\n\n.fa-cookie:before {\n content: \"\\f563\"; }\n\n.fa-cookie-bite:before {\n content: \"\\f564\"; }\n\n.fa-copy:before {\n content: \"\\f0c5\"; }\n\n.fa-copyright:before {\n content: \"\\f1f9\"; }\n\n.fa-couch:before {\n content: \"\\f4b8\"; }\n\n.fa-cpanel:before {\n content: \"\\f388\"; }\n\n.fa-creative-commons:before {\n content: \"\\f25e\"; }\n\n.fa-creative-commons-by:before {\n content: \"\\f4e7\"; }\n\n.fa-creative-commons-nc:before {\n content: \"\\f4e8\"; }\n\n.fa-creative-commons-nc-eu:before {\n content: \"\\f4e9\"; }\n\n.fa-creative-commons-nc-jp:before {\n content: \"\\f4ea\"; }\n\n.fa-creative-commons-nd:before {\n content: \"\\f4eb\"; }\n\n.fa-creative-commons-pd:before {\n content: \"\\f4ec\"; }\n\n.fa-creative-commons-pd-alt:before {\n content: \"\\f4ed\"; }\n\n.fa-creative-commons-remix:before {\n content: \"\\f4ee\"; }\n\n.fa-creative-commons-sa:before {\n content: \"\\f4ef\"; }\n\n.fa-creative-commons-sampling:before {\n content: \"\\f4f0\"; }\n\n.fa-creative-commons-sampling-plus:before {\n content: \"\\f4f1\"; }\n\n.fa-creative-commons-share:before {\n content: \"\\f4f2\"; }\n\n.fa-creative-commons-zero:before {\n content: \"\\f4f3\"; }\n\n.fa-credit-card:before {\n content: \"\\f09d\"; }\n\n.fa-critical-role:before {\n content: \"\\f6c9\"; }\n\n.fa-crop:before {\n content: \"\\f125\"; }\n\n.fa-crop-alt:before {\n content: \"\\f565\"; }\n\n.fa-cross:before {\n content: \"\\f654\"; }\n\n.fa-crosshairs:before {\n content: \"\\f05b\"; }\n\n.fa-crow:before {\n content: \"\\f520\"; }\n\n.fa-crown:before {\n content: \"\\f521\"; }\n\n.fa-crutch:before {\n content: \"\\f7f7\"; }\n\n.fa-css3:before {\n content: \"\\f13c\"; }\n\n.fa-css3-alt:before {\n content: \"\\f38b\"; }\n\n.fa-cube:before {\n content: \"\\f1b2\"; }\n\n.fa-cubes:before {\n content: \"\\f1b3\"; }\n\n.fa-cut:before {\n content: \"\\f0c4\"; }\n\n.fa-cuttlefish:before {\n content: \"\\f38c\"; }\n\n.fa-d-and-d:before {\n content: \"\\f38d\"; }\n\n.fa-d-and-d-beyond:before {\n content: \"\\f6ca\"; }\n\n.fa-dashcube:before {\n content: \"\\f210\"; }\n\n.fa-database:before {\n content: \"\\f1c0\"; }\n\n.fa-deaf:before {\n content: \"\\f2a4\"; }\n\n.fa-delicious:before {\n content: \"\\f1a5\"; }\n\n.fa-democrat:before {\n content: \"\\f747\"; }\n\n.fa-deploydog:before {\n content: \"\\f38e\"; }\n\n.fa-deskpro:before {\n content: \"\\f38f\"; }\n\n.fa-desktop:before {\n content: \"\\f108\"; }\n\n.fa-dev:before {\n content: \"\\f6cc\"; }\n\n.fa-deviantart:before {\n content: \"\\f1bd\"; }\n\n.fa-dharmachakra:before {\n content: \"\\f655\"; }\n\n.fa-dhl:before {\n content: \"\\f790\"; }\n\n.fa-diagnoses:before {\n content: \"\\f470\"; }\n\n.fa-diaspora:before {\n content: \"\\f791\"; }\n\n.fa-dice:before {\n content: \"\\f522\"; }\n\n.fa-dice-d20:before {\n content: \"\\f6cf\"; }\n\n.fa-dice-d6:before {\n content: \"\\f6d1\"; }\n\n.fa-dice-five:before {\n content: \"\\f523\"; }\n\n.fa-dice-four:before {\n content: \"\\f524\"; }\n\n.fa-dice-one:before {\n content: \"\\f525\"; }\n\n.fa-dice-six:before {\n content: \"\\f526\"; }\n\n.fa-dice-three:before {\n content: \"\\f527\"; }\n\n.fa-dice-two:before {\n content: \"\\f528\"; }\n\n.fa-digg:before {\n content: \"\\f1a6\"; }\n\n.fa-digital-ocean:before {\n content: \"\\f391\"; }\n\n.fa-digital-tachograph:before {\n content: \"\\f566\"; }\n\n.fa-directions:before {\n content: \"\\f5eb\"; }\n\n.fa-discord:before {\n content: \"\\f392\"; }\n\n.fa-discourse:before {\n content: \"\\f393\"; }\n\n.fa-divide:before {\n content: \"\\f529\"; }\n\n.fa-dizzy:before {\n content: \"\\f567\"; }\n\n.fa-dna:before {\n content: \"\\f471\"; }\n\n.fa-dochub:before {\n content: \"\\f394\"; }\n\n.fa-docker:before {\n content: \"\\f395\"; }\n\n.fa-dog:before {\n content: \"\\f6d3\"; }\n\n.fa-dollar-sign:before {\n content: \"\\f155\"; }\n\n.fa-dolly:before {\n content: \"\\f472\"; }\n\n.fa-dolly-flatbed:before {\n content: \"\\f474\"; }\n\n.fa-donate:before {\n content: \"\\f4b9\"; }\n\n.fa-door-closed:before {\n content: \"\\f52a\"; }\n\n.fa-door-open:before {\n content: \"\\f52b\"; }\n\n.fa-dot-circle:before {\n content: \"\\f192\"; }\n\n.fa-dove:before {\n content: \"\\f4ba\"; }\n\n.fa-download:before {\n content: \"\\f019\"; }\n\n.fa-draft2digital:before {\n content: \"\\f396\"; }\n\n.fa-drafting-compass:before {\n content: \"\\f568\"; }\n\n.fa-dragon:before {\n content: \"\\f6d5\"; }\n\n.fa-draw-polygon:before {\n content: \"\\f5ee\"; }\n\n.fa-dribbble:before {\n content: \"\\f17d\"; }\n\n.fa-dribbble-square:before {\n content: \"\\f397\"; }\n\n.fa-dropbox:before {\n content: \"\\f16b\"; }\n\n.fa-drum:before {\n content: \"\\f569\"; }\n\n.fa-drum-steelpan:before {\n content: \"\\f56a\"; }\n\n.fa-drumstick-bite:before {\n content: \"\\f6d7\"; }\n\n.fa-drupal:before {\n content: \"\\f1a9\"; }\n\n.fa-dumbbell:before {\n content: \"\\f44b\"; }\n\n.fa-dumpster:before {\n content: \"\\f793\"; }\n\n.fa-dumpster-fire:before {\n content: \"\\f794\"; }\n\n.fa-dungeon:before {\n content: \"\\f6d9\"; }\n\n.fa-dyalog:before {\n content: \"\\f399\"; }\n\n.fa-earlybirds:before {\n content: \"\\f39a\"; }\n\n.fa-ebay:before {\n content: \"\\f4f4\"; }\n\n.fa-edge:before {\n content: \"\\f282\"; }\n\n.fa-edit:before {\n content: \"\\f044\"; }\n\n.fa-egg:before {\n content: \"\\f7fb\"; }\n\n.fa-eject:before {\n content: \"\\f052\"; }\n\n.fa-elementor:before {\n content: \"\\f430\"; }\n\n.fa-ellipsis-h:before {\n content: \"\\f141\"; }\n\n.fa-ellipsis-v:before {\n content: \"\\f142\"; }\n\n.fa-ello:before {\n content: \"\\f5f1\"; }\n\n.fa-ember:before {\n content: \"\\f423\"; }\n\n.fa-empire:before {\n content: \"\\f1d1\"; }\n\n.fa-envelope:before {\n content: \"\\f0e0\"; }\n\n.fa-envelope-open:before {\n content: \"\\f2b6\"; }\n\n.fa-envelope-open-text:before {\n content: \"\\f658\"; }\n\n.fa-envelope-square:before {\n content: \"\\f199\"; }\n\n.fa-envira:before {\n content: \"\\f299\"; }\n\n.fa-equals:before {\n content: \"\\f52c\"; }\n\n.fa-eraser:before {\n content: \"\\f12d\"; }\n\n.fa-erlang:before {\n content: \"\\f39d\"; }\n\n.fa-ethereum:before {\n content: \"\\f42e\"; }\n\n.fa-ethernet:before {\n content: \"\\f796\"; }\n\n.fa-etsy:before {\n content: \"\\f2d7\"; }\n\n.fa-euro-sign:before {\n content: \"\\f153\"; }\n\n.fa-evernote:before {\n content: \"\\f839\"; }\n\n.fa-exchange-alt:before {\n content: \"\\f362\"; }\n\n.fa-exclamation:before {\n content: \"\\f12a\"; }\n\n.fa-exclamation-circle:before {\n content: \"\\f06a\"; }\n\n.fa-exclamation-triangle:before {\n content: \"\\f071\"; }\n\n.fa-expand:before {\n content: \"\\f065\"; }\n\n.fa-expand-arrows-alt:before {\n content: \"\\f31e\"; }\n\n.fa-expeditedssl:before {\n content: \"\\f23e\"; }\n\n.fa-external-link-alt:before {\n content: \"\\f35d\"; }\n\n.fa-external-link-square-alt:before {\n content: \"\\f360\"; }\n\n.fa-eye:before {\n content: \"\\f06e\"; }\n\n.fa-eye-dropper:before {\n content: \"\\f1fb\"; }\n\n.fa-eye-slash:before {\n content: \"\\f070\"; }\n\n.fa-facebook:before {\n content: \"\\f09a\"; }\n\n.fa-facebook-f:before {\n content: \"\\f39e\"; }\n\n.fa-facebook-messenger:before {\n content: \"\\f39f\"; }\n\n.fa-facebook-square:before {\n content: \"\\f082\"; }\n\n.fa-fantasy-flight-games:before {\n content: \"\\f6dc\"; }\n\n.fa-fast-backward:before {\n content: \"\\f049\"; }\n\n.fa-fast-forward:before {\n content: \"\\f050\"; }\n\n.fa-fax:before {\n content: \"\\f1ac\"; }\n\n.fa-feather:before {\n content: \"\\f52d\"; }\n\n.fa-feather-alt:before {\n content: \"\\f56b\"; }\n\n.fa-fedex:before {\n content: \"\\f797\"; }\n\n.fa-fedora:before {\n content: \"\\f798\"; }\n\n.fa-female:before {\n content: \"\\f182\"; }\n\n.fa-fighter-jet:before {\n content: \"\\f0fb\"; }\n\n.fa-figma:before {\n content: \"\\f799\"; }\n\n.fa-file:before {\n content: \"\\f15b\"; }\n\n.fa-file-alt:before {\n content: \"\\f15c\"; }\n\n.fa-file-archive:before {\n content: \"\\f1c6\"; }\n\n.fa-file-audio:before {\n content: \"\\f1c7\"; }\n\n.fa-file-code:before {\n content: \"\\f1c9\"; }\n\n.fa-file-contract:before {\n content: \"\\f56c\"; }\n\n.fa-file-csv:before {\n content: \"\\f6dd\"; }\n\n.fa-file-download:before {\n content: \"\\f56d\"; }\n\n.fa-file-excel:before {\n content: \"\\f1c3\"; }\n\n.fa-file-export:before {\n content: \"\\f56e\"; }\n\n.fa-file-image:before {\n content: \"\\f1c5\"; }\n\n.fa-file-import:before {\n content: \"\\f56f\"; }\n\n.fa-file-invoice:before {\n content: \"\\f570\"; }\n\n.fa-file-invoice-dollar:before {\n content: \"\\f571\"; }\n\n.fa-file-medical:before {\n content: \"\\f477\"; }\n\n.fa-file-medical-alt:before {\n content: \"\\f478\"; }\n\n.fa-file-pdf:before {\n content: \"\\f1c1\"; }\n\n.fa-file-powerpoint:before {\n content: \"\\f1c4\"; }\n\n.fa-file-prescription:before {\n content: \"\\f572\"; }\n\n.fa-file-signature:before {\n content: \"\\f573\"; }\n\n.fa-file-upload:before {\n content: \"\\f574\"; }\n\n.fa-file-video:before {\n content: \"\\f1c8\"; }\n\n.fa-file-word:before {\n content: \"\\f1c2\"; }\n\n.fa-fill:before {\n content: \"\\f575\"; }\n\n.fa-fill-drip:before {\n content: \"\\f576\"; }\n\n.fa-film:before {\n content: \"\\f008\"; }\n\n.fa-filter:before {\n content: \"\\f0b0\"; }\n\n.fa-fingerprint:before {\n content: \"\\f577\"; }\n\n.fa-fire:before {\n content: \"\\f06d\"; }\n\n.fa-fire-alt:before {\n content: \"\\f7e4\"; }\n\n.fa-fire-extinguisher:before {\n content: \"\\f134\"; }\n\n.fa-firefox:before {\n content: \"\\f269\"; }\n\n.fa-first-aid:before {\n content: \"\\f479\"; }\n\n.fa-first-order:before {\n content: \"\\f2b0\"; }\n\n.fa-first-order-alt:before {\n content: \"\\f50a\"; }\n\n.fa-firstdraft:before {\n content: \"\\f3a1\"; }\n\n.fa-fish:before {\n content: \"\\f578\"; }\n\n.fa-fist-raised:before {\n content: \"\\f6de\"; }\n\n.fa-flag:before {\n content: \"\\f024\"; }\n\n.fa-flag-checkered:before {\n content: \"\\f11e\"; }\n\n.fa-flag-usa:before {\n content: \"\\f74d\"; }\n\n.fa-flask:before {\n content: \"\\f0c3\"; }\n\n.fa-flickr:before {\n content: \"\\f16e\"; }\n\n.fa-flipboard:before {\n content: \"\\f44d\"; }\n\n.fa-flushed:before {\n content: \"\\f579\"; }\n\n.fa-fly:before {\n content: \"\\f417\"; }\n\n.fa-folder:before {\n content: \"\\f07b\"; }\n\n.fa-folder-minus:before {\n content: \"\\f65d\"; }\n\n.fa-folder-open:before {\n content: \"\\f07c\"; }\n\n.fa-folder-plus:before {\n content: \"\\f65e\"; }\n\n.fa-font:before {\n content: \"\\f031\"; }\n\n.fa-font-awesome:before {\n content: \"\\f2b4\"; }\n\n.fa-font-awesome-alt:before {\n content: \"\\f35c\"; }\n\n.fa-font-awesome-flag:before {\n content: \"\\f425\"; }\n\n.fa-font-awesome-logo-full:before {\n content: \"\\f4e6\"; }\n\n.fa-fonticons:before {\n content: \"\\f280\"; }\n\n.fa-fonticons-fi:before {\n content: \"\\f3a2\"; }\n\n.fa-football-ball:before {\n content: \"\\f44e\"; }\n\n.fa-fort-awesome:before {\n content: \"\\f286\"; }\n\n.fa-fort-awesome-alt:before {\n content: \"\\f3a3\"; }\n\n.fa-forumbee:before {\n content: \"\\f211\"; }\n\n.fa-forward:before {\n content: \"\\f04e\"; }\n\n.fa-foursquare:before {\n content: \"\\f180\"; }\n\n.fa-free-code-camp:before {\n content: \"\\f2c5\"; }\n\n.fa-freebsd:before {\n content: \"\\f3a4\"; }\n\n.fa-frog:before {\n content: \"\\f52e\"; }\n\n.fa-frown:before {\n content: \"\\f119\"; }\n\n.fa-frown-open:before {\n content: \"\\f57a\"; }\n\n.fa-fulcrum:before {\n content: \"\\f50b\"; }\n\n.fa-funnel-dollar:before {\n content: \"\\f662\"; }\n\n.fa-futbol:before {\n content: \"\\f1e3\"; }\n\n.fa-galactic-republic:before {\n content: \"\\f50c\"; }\n\n.fa-galactic-senate:before {\n content: \"\\f50d\"; }\n\n.fa-gamepad:before {\n content: \"\\f11b\"; }\n\n.fa-gas-pump:before {\n content: \"\\f52f\"; }\n\n.fa-gavel:before {\n content: \"\\f0e3\"; }\n\n.fa-gem:before {\n content: \"\\f3a5\"; }\n\n.fa-genderless:before {\n content: \"\\f22d\"; }\n\n.fa-get-pocket:before {\n content: \"\\f265\"; }\n\n.fa-gg:before {\n content: \"\\f260\"; }\n\n.fa-gg-circle:before {\n content: \"\\f261\"; }\n\n.fa-ghost:before {\n content: \"\\f6e2\"; }\n\n.fa-gift:before {\n content: \"\\f06b\"; }\n\n.fa-gifts:before {\n content: \"\\f79c\"; }\n\n.fa-git:before {\n content: \"\\f1d3\"; }\n\n.fa-git-alt:before {\n content: \"\\f841\"; }\n\n.fa-git-square:before {\n content: \"\\f1d2\"; }\n\n.fa-github:before {\n content: \"\\f09b\"; }\n\n.fa-github-alt:before {\n content: \"\\f113\"; }\n\n.fa-github-square:before {\n content: \"\\f092\"; }\n\n.fa-gitkraken:before {\n content: \"\\f3a6\"; }\n\n.fa-gitlab:before {\n content: \"\\f296\"; }\n\n.fa-gitter:before {\n content: \"\\f426\"; }\n\n.fa-glass-cheers:before {\n content: \"\\f79f\"; }\n\n.fa-glass-martini:before {\n content: \"\\f000\"; }\n\n.fa-glass-martini-alt:before {\n content: \"\\f57b\"; }\n\n.fa-glass-whiskey:before {\n content: \"\\f7a0\"; }\n\n.fa-glasses:before {\n content: \"\\f530\"; }\n\n.fa-glide:before {\n content: \"\\f2a5\"; }\n\n.fa-glide-g:before {\n content: \"\\f2a6\"; }\n\n.fa-globe:before {\n content: \"\\f0ac\"; }\n\n.fa-globe-africa:before {\n content: \"\\f57c\"; }\n\n.fa-globe-americas:before {\n content: \"\\f57d\"; }\n\n.fa-globe-asia:before {\n content: \"\\f57e\"; }\n\n.fa-globe-europe:before {\n content: \"\\f7a2\"; }\n\n.fa-gofore:before {\n content: \"\\f3a7\"; }\n\n.fa-golf-ball:before {\n content: \"\\f450\"; }\n\n.fa-goodreads:before {\n content: \"\\f3a8\"; }\n\n.fa-goodreads-g:before {\n content: \"\\f3a9\"; }\n\n.fa-google:before {\n content: \"\\f1a0\"; }\n\n.fa-google-drive:before {\n content: \"\\f3aa\"; }\n\n.fa-google-play:before {\n content: \"\\f3ab\"; }\n\n.fa-google-plus:before {\n content: \"\\f2b3\"; }\n\n.fa-google-plus-g:before {\n content: \"\\f0d5\"; }\n\n.fa-google-plus-square:before {\n content: \"\\f0d4\"; }\n\n.fa-google-wallet:before {\n content: \"\\f1ee\"; }\n\n.fa-gopuram:before {\n content: \"\\f664\"; }\n\n.fa-graduation-cap:before {\n content: \"\\f19d\"; }\n\n.fa-gratipay:before {\n content: \"\\f184\"; }\n\n.fa-grav:before {\n content: \"\\f2d6\"; }\n\n.fa-greater-than:before {\n content: \"\\f531\"; }\n\n.fa-greater-than-equal:before {\n content: \"\\f532\"; }\n\n.fa-grimace:before {\n content: \"\\f57f\"; }\n\n.fa-grin:before {\n content: \"\\f580\"; }\n\n.fa-grin-alt:before {\n content: \"\\f581\"; }\n\n.fa-grin-beam:before {\n content: \"\\f582\"; }\n\n.fa-grin-beam-sweat:before {\n content: \"\\f583\"; }\n\n.fa-grin-hearts:before {\n content: \"\\f584\"; }\n\n.fa-grin-squint:before {\n content: \"\\f585\"; }\n\n.fa-grin-squint-tears:before {\n content: \"\\f586\"; }\n\n.fa-grin-stars:before {\n content: \"\\f587\"; }\n\n.fa-grin-tears:before {\n content: \"\\f588\"; }\n\n.fa-grin-tongue:before {\n content: \"\\f589\"; }\n\n.fa-grin-tongue-squint:before {\n content: \"\\f58a\"; }\n\n.fa-grin-tongue-wink:before {\n content: \"\\f58b\"; }\n\n.fa-grin-wink:before {\n content: \"\\f58c\"; }\n\n.fa-grip-horizontal:before {\n content: \"\\f58d\"; }\n\n.fa-grip-lines:before {\n content: \"\\f7a4\"; }\n\n.fa-grip-lines-vertical:before {\n content: \"\\f7a5\"; }\n\n.fa-grip-vertical:before {\n content: \"\\f58e\"; }\n\n.fa-gripfire:before {\n content: \"\\f3ac\"; }\n\n.fa-grunt:before {\n content: \"\\f3ad\"; }\n\n.fa-guitar:before {\n content: \"\\f7a6\"; }\n\n.fa-gulp:before {\n content: \"\\f3ae\"; }\n\n.fa-h-square:before {\n content: \"\\f0fd\"; }\n\n.fa-hacker-news:before {\n content: \"\\f1d4\"; }\n\n.fa-hacker-news-square:before {\n content: \"\\f3af\"; }\n\n.fa-hackerrank:before {\n content: \"\\f5f7\"; }\n\n.fa-hamburger:before {\n content: \"\\f805\"; }\n\n.fa-hammer:before {\n content: \"\\f6e3\"; }\n\n.fa-hamsa:before {\n content: \"\\f665\"; }\n\n.fa-hand-holding:before {\n content: \"\\f4bd\"; }\n\n.fa-hand-holding-heart:before {\n content: \"\\f4be\"; }\n\n.fa-hand-holding-usd:before {\n content: \"\\f4c0\"; }\n\n.fa-hand-lizard:before {\n content: \"\\f258\"; }\n\n.fa-hand-middle-finger:before {\n content: \"\\f806\"; }\n\n.fa-hand-paper:before {\n content: \"\\f256\"; }\n\n.fa-hand-peace:before {\n content: \"\\f25b\"; }\n\n.fa-hand-point-down:before {\n content: \"\\f0a7\"; }\n\n.fa-hand-point-left:before {\n content: \"\\f0a5\"; }\n\n.fa-hand-point-right:before {\n content: \"\\f0a4\"; }\n\n.fa-hand-point-up:before {\n content: \"\\f0a6\"; }\n\n.fa-hand-pointer:before {\n content: \"\\f25a\"; }\n\n.fa-hand-rock:before {\n content: \"\\f255\"; }\n\n.fa-hand-scissors:before {\n content: \"\\f257\"; }\n\n.fa-hand-spock:before {\n content: \"\\f259\"; }\n\n.fa-hands:before {\n content: \"\\f4c2\"; }\n\n.fa-hands-helping:before {\n content: \"\\f4c4\"; }\n\n.fa-handshake:before {\n content: \"\\f2b5\"; }\n\n.fa-hanukiah:before {\n content: \"\\f6e6\"; }\n\n.fa-hard-hat:before {\n content: \"\\f807\"; }\n\n.fa-hashtag:before {\n content: \"\\f292\"; }\n\n.fa-hat-wizard:before {\n content: \"\\f6e8\"; }\n\n.fa-haykal:before {\n content: \"\\f666\"; }\n\n.fa-hdd:before {\n content: \"\\f0a0\"; }\n\n.fa-heading:before {\n content: \"\\f1dc\"; }\n\n.fa-headphones:before {\n content: \"\\f025\"; }\n\n.fa-headphones-alt:before {\n content: \"\\f58f\"; }\n\n.fa-headset:before {\n content: \"\\f590\"; }\n\n.fa-heart:before {\n content: \"\\f004\"; }\n\n.fa-heart-broken:before {\n content: \"\\f7a9\"; }\n\n.fa-heartbeat:before {\n content: \"\\f21e\"; }\n\n.fa-helicopter:before {\n content: \"\\f533\"; }\n\n.fa-highlighter:before {\n content: \"\\f591\"; }\n\n.fa-hiking:before {\n content: \"\\f6ec\"; }\n\n.fa-hippo:before {\n content: \"\\f6ed\"; }\n\n.fa-hips:before {\n content: \"\\f452\"; }\n\n.fa-hire-a-helper:before {\n content: \"\\f3b0\"; }\n\n.fa-history:before {\n content: \"\\f1da\"; }\n\n.fa-hockey-puck:before {\n content: \"\\f453\"; }\n\n.fa-holly-berry:before {\n content: \"\\f7aa\"; }\n\n.fa-home:before {\n content: \"\\f015\"; }\n\n.fa-hooli:before {\n content: \"\\f427\"; }\n\n.fa-hornbill:before {\n content: \"\\f592\"; }\n\n.fa-horse:before {\n content: \"\\f6f0\"; }\n\n.fa-horse-head:before {\n content: \"\\f7ab\"; }\n\n.fa-hospital:before {\n content: \"\\f0f8\"; }\n\n.fa-hospital-alt:before {\n content: \"\\f47d\"; }\n\n.fa-hospital-symbol:before {\n content: \"\\f47e\"; }\n\n.fa-hot-tub:before {\n content: \"\\f593\"; }\n\n.fa-hotdog:before {\n content: \"\\f80f\"; }\n\n.fa-hotel:before {\n content: \"\\f594\"; }\n\n.fa-hotjar:before {\n content: \"\\f3b1\"; }\n\n.fa-hourglass:before {\n content: \"\\f254\"; }\n\n.fa-hourglass-end:before {\n content: \"\\f253\"; }\n\n.fa-hourglass-half:before {\n content: \"\\f252\"; }\n\n.fa-hourglass-start:before {\n content: \"\\f251\"; }\n\n.fa-house-damage:before {\n content: \"\\f6f1\"; }\n\n.fa-houzz:before {\n content: \"\\f27c\"; }\n\n.fa-hryvnia:before {\n content: \"\\f6f2\"; }\n\n.fa-html5:before {\n content: \"\\f13b\"; }\n\n.fa-hubspot:before {\n content: \"\\f3b2\"; }\n\n.fa-i-cursor:before {\n content: \"\\f246\"; }\n\n.fa-ice-cream:before {\n content: \"\\f810\"; }\n\n.fa-icicles:before {\n content: \"\\f7ad\"; }\n\n.fa-id-badge:before {\n content: \"\\f2c1\"; }\n\n.fa-id-card:before {\n content: \"\\f2c2\"; }\n\n.fa-id-card-alt:before {\n content: \"\\f47f\"; }\n\n.fa-igloo:before {\n content: \"\\f7ae\"; }\n\n.fa-image:before {\n content: \"\\f03e\"; }\n\n.fa-images:before {\n content: \"\\f302\"; }\n\n.fa-imdb:before {\n content: \"\\f2d8\"; }\n\n.fa-inbox:before {\n content: \"\\f01c\"; }\n\n.fa-indent:before {\n content: \"\\f03c\"; }\n\n.fa-industry:before {\n content: \"\\f275\"; }\n\n.fa-infinity:before {\n content: \"\\f534\"; }\n\n.fa-info:before {\n content: \"\\f129\"; }\n\n.fa-info-circle:before {\n content: \"\\f05a\"; }\n\n.fa-instagram:before {\n content: \"\\f16d\"; }\n\n.fa-intercom:before {\n content: \"\\f7af\"; }\n\n.fa-internet-explorer:before {\n content: \"\\f26b\"; }\n\n.fa-invision:before {\n content: \"\\f7b0\"; }\n\n.fa-ioxhost:before {\n content: \"\\f208\"; }\n\n.fa-italic:before {\n content: \"\\f033\"; }\n\n.fa-itch-io:before {\n content: \"\\f83a\"; }\n\n.fa-itunes:before {\n content: \"\\f3b4\"; }\n\n.fa-itunes-note:before {\n content: \"\\f3b5\"; }\n\n.fa-java:before {\n content: \"\\f4e4\"; }\n\n.fa-jedi:before {\n content: \"\\f669\"; }\n\n.fa-jedi-order:before {\n content: \"\\f50e\"; }\n\n.fa-jenkins:before {\n content: \"\\f3b6\"; }\n\n.fa-jira:before {\n content: \"\\f7b1\"; }\n\n.fa-joget:before {\n content: \"\\f3b7\"; }\n\n.fa-joint:before {\n content: \"\\f595\"; }\n\n.fa-joomla:before {\n content: \"\\f1aa\"; }\n\n.fa-journal-whills:before {\n content: \"\\f66a\"; }\n\n.fa-js:before {\n content: \"\\f3b8\"; }\n\n.fa-js-square:before {\n content: \"\\f3b9\"; }\n\n.fa-jsfiddle:before {\n content: \"\\f1cc\"; }\n\n.fa-kaaba:before {\n content: \"\\f66b\"; }\n\n.fa-kaggle:before {\n content: \"\\f5fa\"; }\n\n.fa-key:before {\n content: \"\\f084\"; }\n\n.fa-keybase:before {\n content: \"\\f4f5\"; }\n\n.fa-keyboard:before {\n content: \"\\f11c\"; }\n\n.fa-keycdn:before {\n content: \"\\f3ba\"; }\n\n.fa-khanda:before {\n content: \"\\f66d\"; }\n\n.fa-kickstarter:before {\n content: \"\\f3bb\"; }\n\n.fa-kickstarter-k:before {\n content: \"\\f3bc\"; }\n\n.fa-kiss:before {\n content: \"\\f596\"; }\n\n.fa-kiss-beam:before {\n content: \"\\f597\"; }\n\n.fa-kiss-wink-heart:before {\n content: \"\\f598\"; }\n\n.fa-kiwi-bird:before {\n content: \"\\f535\"; }\n\n.fa-korvue:before {\n content: \"\\f42f\"; }\n\n.fa-landmark:before {\n content: \"\\f66f\"; }\n\n.fa-language:before {\n content: \"\\f1ab\"; }\n\n.fa-laptop:before {\n content: \"\\f109\"; }\n\n.fa-laptop-code:before {\n content: \"\\f5fc\"; }\n\n.fa-laptop-medical:before {\n content: \"\\f812\"; }\n\n.fa-laravel:before {\n content: \"\\f3bd\"; }\n\n.fa-lastfm:before {\n content: \"\\f202\"; }\n\n.fa-lastfm-square:before {\n content: \"\\f203\"; }\n\n.fa-laugh:before {\n content: \"\\f599\"; }\n\n.fa-laugh-beam:before {\n content: \"\\f59a\"; }\n\n.fa-laugh-squint:before {\n content: \"\\f59b\"; }\n\n.fa-laugh-wink:before {\n content: \"\\f59c\"; }\n\n.fa-layer-group:before {\n content: \"\\f5fd\"; }\n\n.fa-leaf:before {\n content: \"\\f06c\"; }\n\n.fa-leanpub:before {\n content: \"\\f212\"; }\n\n.fa-lemon:before {\n content: \"\\f094\"; }\n\n.fa-less:before {\n content: \"\\f41d\"; }\n\n.fa-less-than:before {\n content: \"\\f536\"; }\n\n.fa-less-than-equal:before {\n content: \"\\f537\"; }\n\n.fa-level-down-alt:before {\n content: \"\\f3be\"; }\n\n.fa-level-up-alt:before {\n content: \"\\f3bf\"; }\n\n.fa-life-ring:before {\n content: \"\\f1cd\"; }\n\n.fa-lightbulb:before {\n content: \"\\f0eb\"; }\n\n.fa-line:before {\n content: \"\\f3c0\"; }\n\n.fa-link:before {\n content: \"\\f0c1\"; }\n\n.fa-linkedin:before {\n content: \"\\f08c\"; }\n\n.fa-linkedin-in:before {\n content: \"\\f0e1\"; }\n\n.fa-linode:before {\n content: \"\\f2b8\"; }\n\n.fa-linux:before {\n content: \"\\f17c\"; }\n\n.fa-lira-sign:before {\n content: \"\\f195\"; }\n\n.fa-list:before {\n content: \"\\f03a\"; }\n\n.fa-list-alt:before {\n content: \"\\f022\"; }\n\n.fa-list-ol:before {\n content: \"\\f0cb\"; }\n\n.fa-list-ul:before {\n content: \"\\f0ca\"; }\n\n.fa-location-arrow:before {\n content: \"\\f124\"; }\n\n.fa-lock:before {\n content: \"\\f023\"; }\n\n.fa-lock-open:before {\n content: \"\\f3c1\"; }\n\n.fa-long-arrow-alt-down:before {\n content: \"\\f309\"; }\n\n.fa-long-arrow-alt-left:before {\n content: \"\\f30a\"; }\n\n.fa-long-arrow-alt-right:before {\n content: \"\\f30b\"; }\n\n.fa-long-arrow-alt-up:before {\n content: \"\\f30c\"; }\n\n.fa-low-vision:before {\n content: \"\\f2a8\"; }\n\n.fa-luggage-cart:before {\n content: \"\\f59d\"; }\n\n.fa-lyft:before {\n content: \"\\f3c3\"; }\n\n.fa-magento:before {\n content: \"\\f3c4\"; }\n\n.fa-magic:before {\n content: \"\\f0d0\"; }\n\n.fa-magnet:before {\n content: \"\\f076\"; }\n\n.fa-mail-bulk:before {\n content: \"\\f674\"; }\n\n.fa-mailchimp:before {\n content: \"\\f59e\"; }\n\n.fa-male:before {\n content: \"\\f183\"; }\n\n.fa-mandalorian:before {\n content: \"\\f50f\"; }\n\n.fa-map:before {\n content: \"\\f279\"; }\n\n.fa-map-marked:before {\n content: \"\\f59f\"; }\n\n.fa-map-marked-alt:before {\n content: \"\\f5a0\"; }\n\n.fa-map-marker:before {\n content: \"\\f041\"; }\n\n.fa-map-marker-alt:before {\n content: \"\\f3c5\"; }\n\n.fa-map-pin:before {\n content: \"\\f276\"; }\n\n.fa-map-signs:before {\n content: \"\\f277\"; }\n\n.fa-markdown:before {\n content: \"\\f60f\"; }\n\n.fa-marker:before {\n content: \"\\f5a1\"; }\n\n.fa-mars:before {\n content: \"\\f222\"; }\n\n.fa-mars-double:before {\n content: \"\\f227\"; }\n\n.fa-mars-stroke:before {\n content: \"\\f229\"; }\n\n.fa-mars-stroke-h:before {\n content: \"\\f22b\"; }\n\n.fa-mars-stroke-v:before {\n content: \"\\f22a\"; }\n\n.fa-mask:before {\n content: \"\\f6fa\"; }\n\n.fa-mastodon:before {\n content: \"\\f4f6\"; }\n\n.fa-maxcdn:before {\n content: \"\\f136\"; }\n\n.fa-medal:before {\n content: \"\\f5a2\"; }\n\n.fa-medapps:before {\n content: \"\\f3c6\"; }\n\n.fa-medium:before {\n content: \"\\f23a\"; }\n\n.fa-medium-m:before {\n content: \"\\f3c7\"; }\n\n.fa-medkit:before {\n content: \"\\f0fa\"; }\n\n.fa-medrt:before {\n content: \"\\f3c8\"; }\n\n.fa-meetup:before {\n content: \"\\f2e0\"; }\n\n.fa-megaport:before {\n content: \"\\f5a3\"; }\n\n.fa-meh:before {\n content: \"\\f11a\"; }\n\n.fa-meh-blank:before {\n content: \"\\f5a4\"; }\n\n.fa-meh-rolling-eyes:before {\n content: \"\\f5a5\"; }\n\n.fa-memory:before {\n content: \"\\f538\"; }\n\n.fa-mendeley:before {\n content: \"\\f7b3\"; }\n\n.fa-menorah:before {\n content: \"\\f676\"; }\n\n.fa-mercury:before {\n content: \"\\f223\"; }\n\n.fa-meteor:before {\n content: \"\\f753\"; }\n\n.fa-microchip:before {\n content: \"\\f2db\"; }\n\n.fa-microphone:before {\n content: \"\\f130\"; }\n\n.fa-microphone-alt:before {\n content: \"\\f3c9\"; }\n\n.fa-microphone-alt-slash:before {\n content: \"\\f539\"; }\n\n.fa-microphone-slash:before {\n content: \"\\f131\"; }\n\n.fa-microscope:before {\n content: \"\\f610\"; }\n\n.fa-microsoft:before {\n content: \"\\f3ca\"; }\n\n.fa-minus:before {\n content: \"\\f068\"; }\n\n.fa-minus-circle:before {\n content: \"\\f056\"; }\n\n.fa-minus-square:before {\n content: \"\\f146\"; }\n\n.fa-mitten:before {\n content: \"\\f7b5\"; }\n\n.fa-mix:before {\n content: \"\\f3cb\"; }\n\n.fa-mixcloud:before {\n content: \"\\f289\"; }\n\n.fa-mizuni:before {\n content: \"\\f3cc\"; }\n\n.fa-mobile:before {\n content: \"\\f10b\"; }\n\n.fa-mobile-alt:before {\n content: \"\\f3cd\"; }\n\n.fa-modx:before {\n content: \"\\f285\"; }\n\n.fa-monero:before {\n content: \"\\f3d0\"; }\n\n.fa-money-bill:before {\n content: \"\\f0d6\"; }\n\n.fa-money-bill-alt:before {\n content: \"\\f3d1\"; }\n\n.fa-money-bill-wave:before {\n content: \"\\f53a\"; }\n\n.fa-money-bill-wave-alt:before {\n content: \"\\f53b\"; }\n\n.fa-money-check:before {\n content: \"\\f53c\"; }\n\n.fa-money-check-alt:before {\n content: \"\\f53d\"; }\n\n.fa-monument:before {\n content: \"\\f5a6\"; }\n\n.fa-moon:before {\n content: \"\\f186\"; }\n\n.fa-mortar-pestle:before {\n content: \"\\f5a7\"; }\n\n.fa-mosque:before {\n content: \"\\f678\"; }\n\n.fa-motorcycle:before {\n content: \"\\f21c\"; }\n\n.fa-mountain:before {\n content: \"\\f6fc\"; }\n\n.fa-mouse-pointer:before {\n content: \"\\f245\"; }\n\n.fa-mug-hot:before {\n content: \"\\f7b6\"; }\n\n.fa-music:before {\n content: \"\\f001\"; }\n\n.fa-napster:before {\n content: \"\\f3d2\"; }\n\n.fa-neos:before {\n content: \"\\f612\"; }\n\n.fa-network-wired:before {\n content: \"\\f6ff\"; }\n\n.fa-neuter:before {\n content: \"\\f22c\"; }\n\n.fa-newspaper:before {\n content: \"\\f1ea\"; }\n\n.fa-nimblr:before {\n content: \"\\f5a8\"; }\n\n.fa-nintendo-switch:before {\n content: \"\\f418\"; }\n\n.fa-node:before {\n content: \"\\f419\"; }\n\n.fa-node-js:before {\n content: \"\\f3d3\"; }\n\n.fa-not-equal:before {\n content: \"\\f53e\"; }\n\n.fa-notes-medical:before {\n content: \"\\f481\"; }\n\n.fa-npm:before {\n content: \"\\f3d4\"; }\n\n.fa-ns8:before {\n content: \"\\f3d5\"; }\n\n.fa-nutritionix:before {\n content: \"\\f3d6\"; }\n\n.fa-object-group:before {\n content: \"\\f247\"; }\n\n.fa-object-ungroup:before {\n content: \"\\f248\"; }\n\n.fa-odnoklassniki:before {\n content: \"\\f263\"; }\n\n.fa-odnoklassniki-square:before {\n content: \"\\f264\"; }\n\n.fa-oil-can:before {\n content: \"\\f613\"; }\n\n.fa-old-republic:before {\n content: \"\\f510\"; }\n\n.fa-om:before {\n content: \"\\f679\"; }\n\n.fa-opencart:before {\n content: \"\\f23d\"; }\n\n.fa-openid:before {\n content: \"\\f19b\"; }\n\n.fa-opera:before {\n content: \"\\f26a\"; }\n\n.fa-optin-monster:before {\n content: \"\\f23c\"; }\n\n.fa-osi:before {\n content: \"\\f41a\"; }\n\n.fa-otter:before {\n content: \"\\f700\"; }\n\n.fa-outdent:before {\n content: \"\\f03b\"; }\n\n.fa-page4:before {\n content: \"\\f3d7\"; }\n\n.fa-pagelines:before {\n content: \"\\f18c\"; }\n\n.fa-pager:before {\n content: \"\\f815\"; }\n\n.fa-paint-brush:before {\n content: \"\\f1fc\"; }\n\n.fa-paint-roller:before {\n content: \"\\f5aa\"; }\n\n.fa-palette:before {\n content: \"\\f53f\"; }\n\n.fa-palfed:before {\n content: \"\\f3d8\"; }\n\n.fa-pallet:before {\n content: \"\\f482\"; }\n\n.fa-paper-plane:before {\n content: \"\\f1d8\"; }\n\n.fa-paperclip:before {\n content: \"\\f0c6\"; }\n\n.fa-parachute-box:before {\n content: \"\\f4cd\"; }\n\n.fa-paragraph:before {\n content: \"\\f1dd\"; }\n\n.fa-parking:before {\n content: \"\\f540\"; }\n\n.fa-passport:before {\n content: \"\\f5ab\"; }\n\n.fa-pastafarianism:before {\n content: \"\\f67b\"; }\n\n.fa-paste:before {\n content: \"\\f0ea\"; }\n\n.fa-patreon:before {\n content: \"\\f3d9\"; }\n\n.fa-pause:before {\n content: \"\\f04c\"; }\n\n.fa-pause-circle:before {\n content: \"\\f28b\"; }\n\n.fa-paw:before {\n content: \"\\f1b0\"; }\n\n.fa-paypal:before {\n content: \"\\f1ed\"; }\n\n.fa-peace:before {\n content: \"\\f67c\"; }\n\n.fa-pen:before {\n content: \"\\f304\"; }\n\n.fa-pen-alt:before {\n content: \"\\f305\"; }\n\n.fa-pen-fancy:before {\n content: \"\\f5ac\"; }\n\n.fa-pen-nib:before {\n content: \"\\f5ad\"; }\n\n.fa-pen-square:before {\n content: \"\\f14b\"; }\n\n.fa-pencil-alt:before {\n content: \"\\f303\"; }\n\n.fa-pencil-ruler:before {\n content: \"\\f5ae\"; }\n\n.fa-penny-arcade:before {\n content: \"\\f704\"; }\n\n.fa-people-carry:before {\n content: \"\\f4ce\"; }\n\n.fa-pepper-hot:before {\n content: \"\\f816\"; }\n\n.fa-percent:before {\n content: \"\\f295\"; }\n\n.fa-percentage:before {\n content: \"\\f541\"; }\n\n.fa-periscope:before {\n content: \"\\f3da\"; }\n\n.fa-person-booth:before {\n content: \"\\f756\"; }\n\n.fa-phabricator:before {\n content: \"\\f3db\"; }\n\n.fa-phoenix-framework:before {\n content: \"\\f3dc\"; }\n\n.fa-phoenix-squadron:before {\n content: \"\\f511\"; }\n\n.fa-phone:before {\n content: \"\\f095\"; }\n\n.fa-phone-slash:before {\n content: \"\\f3dd\"; }\n\n.fa-phone-square:before {\n content: \"\\f098\"; }\n\n.fa-phone-volume:before {\n content: \"\\f2a0\"; }\n\n.fa-php:before {\n content: \"\\f457\"; }\n\n.fa-pied-piper:before {\n content: \"\\f2ae\"; }\n\n.fa-pied-piper-alt:before {\n content: \"\\f1a8\"; }\n\n.fa-pied-piper-hat:before {\n content: \"\\f4e5\"; }\n\n.fa-pied-piper-pp:before {\n content: \"\\f1a7\"; }\n\n.fa-piggy-bank:before {\n content: \"\\f4d3\"; }\n\n.fa-pills:before {\n content: \"\\f484\"; }\n\n.fa-pinterest:before {\n content: \"\\f0d2\"; }\n\n.fa-pinterest-p:before {\n content: \"\\f231\"; }\n\n.fa-pinterest-square:before {\n content: \"\\f0d3\"; }\n\n.fa-pizza-slice:before {\n content: \"\\f818\"; }\n\n.fa-place-of-worship:before {\n content: \"\\f67f\"; }\n\n.fa-plane:before {\n content: \"\\f072\"; }\n\n.fa-plane-arrival:before {\n content: \"\\f5af\"; }\n\n.fa-plane-departure:before {\n content: \"\\f5b0\"; }\n\n.fa-play:before {\n content: \"\\f04b\"; }\n\n.fa-play-circle:before {\n content: \"\\f144\"; }\n\n.fa-playstation:before {\n content: \"\\f3df\"; }\n\n.fa-plug:before {\n content: \"\\f1e6\"; }\n\n.fa-plus:before {\n content: \"\\f067\"; }\n\n.fa-plus-circle:before {\n content: \"\\f055\"; }\n\n.fa-plus-square:before {\n content: \"\\f0fe\"; }\n\n.fa-podcast:before {\n content: \"\\f2ce\"; }\n\n.fa-poll:before {\n content: \"\\f681\"; }\n\n.fa-poll-h:before {\n content: \"\\f682\"; }\n\n.fa-poo:before {\n content: \"\\f2fe\"; }\n\n.fa-poo-storm:before {\n content: \"\\f75a\"; }\n\n.fa-poop:before {\n content: \"\\f619\"; }\n\n.fa-portrait:before {\n content: \"\\f3e0\"; }\n\n.fa-pound-sign:before {\n content: \"\\f154\"; }\n\n.fa-power-off:before {\n content: \"\\f011\"; }\n\n.fa-pray:before {\n content: \"\\f683\"; }\n\n.fa-praying-hands:before {\n content: \"\\f684\"; }\n\n.fa-prescription:before {\n content: \"\\f5b1\"; }\n\n.fa-prescription-bottle:before {\n content: \"\\f485\"; }\n\n.fa-prescription-bottle-alt:before {\n content: \"\\f486\"; }\n\n.fa-print:before {\n content: \"\\f02f\"; }\n\n.fa-procedures:before {\n content: \"\\f487\"; }\n\n.fa-product-hunt:before {\n content: \"\\f288\"; }\n\n.fa-project-diagram:before {\n content: \"\\f542\"; }\n\n.fa-pushed:before {\n content: \"\\f3e1\"; }\n\n.fa-puzzle-piece:before {\n content: \"\\f12e\"; }\n\n.fa-python:before {\n content: \"\\f3e2\"; }\n\n.fa-qq:before {\n content: \"\\f1d6\"; }\n\n.fa-qrcode:before {\n content: \"\\f029\"; }\n\n.fa-question:before {\n content: \"\\f128\"; }\n\n.fa-question-circle:before {\n content: \"\\f059\"; }\n\n.fa-quidditch:before {\n content: \"\\f458\"; }\n\n.fa-quinscape:before {\n content: \"\\f459\"; }\n\n.fa-quora:before {\n content: \"\\f2c4\"; }\n\n.fa-quote-left:before {\n content: \"\\f10d\"; }\n\n.fa-quote-right:before {\n content: \"\\f10e\"; }\n\n.fa-quran:before {\n content: \"\\f687\"; }\n\n.fa-r-project:before {\n content: \"\\f4f7\"; }\n\n.fa-radiation:before {\n content: \"\\f7b9\"; }\n\n.fa-radiation-alt:before {\n content: \"\\f7ba\"; }\n\n.fa-rainbow:before {\n content: \"\\f75b\"; }\n\n.fa-random:before {\n content: \"\\f074\"; }\n\n.fa-raspberry-pi:before {\n content: \"\\f7bb\"; }\n\n.fa-ravelry:before {\n content: \"\\f2d9\"; }\n\n.fa-react:before {\n content: \"\\f41b\"; }\n\n.fa-reacteurope:before {\n content: \"\\f75d\"; }\n\n.fa-readme:before {\n content: \"\\f4d5\"; }\n\n.fa-rebel:before {\n content: \"\\f1d0\"; }\n\n.fa-receipt:before {\n content: \"\\f543\"; }\n\n.fa-recycle:before {\n content: \"\\f1b8\"; }\n\n.fa-red-river:before {\n content: \"\\f3e3\"; }\n\n.fa-reddit:before {\n content: \"\\f1a1\"; }\n\n.fa-reddit-alien:before {\n content: \"\\f281\"; }\n\n.fa-reddit-square:before {\n content: \"\\f1a2\"; }\n\n.fa-redhat:before {\n content: \"\\f7bc\"; }\n\n.fa-redo:before {\n content: \"\\f01e\"; }\n\n.fa-redo-alt:before {\n content: \"\\f2f9\"; }\n\n.fa-registered:before {\n content: \"\\f25d\"; }\n\n.fa-renren:before {\n content: \"\\f18b\"; }\n\n.fa-reply:before {\n content: \"\\f3e5\"; }\n\n.fa-reply-all:before {\n content: \"\\f122\"; }\n\n.fa-replyd:before {\n content: \"\\f3e6\"; }\n\n.fa-republican:before {\n content: \"\\f75e\"; }\n\n.fa-researchgate:before {\n content: \"\\f4f8\"; }\n\n.fa-resolving:before {\n content: \"\\f3e7\"; }\n\n.fa-restroom:before {\n content: \"\\f7bd\"; }\n\n.fa-retweet:before {\n content: \"\\f079\"; }\n\n.fa-rev:before {\n content: \"\\f5b2\"; }\n\n.fa-ribbon:before {\n content: \"\\f4d6\"; }\n\n.fa-ring:before {\n content: \"\\f70b\"; }\n\n.fa-road:before {\n content: \"\\f018\"; }\n\n.fa-robot:before {\n content: \"\\f544\"; }\n\n.fa-rocket:before {\n content: \"\\f135\"; }\n\n.fa-rocketchat:before {\n content: \"\\f3e8\"; }\n\n.fa-rockrms:before {\n content: \"\\f3e9\"; }\n\n.fa-route:before {\n content: \"\\f4d7\"; }\n\n.fa-rss:before {\n content: \"\\f09e\"; }\n\n.fa-rss-square:before {\n content: \"\\f143\"; }\n\n.fa-ruble-sign:before {\n content: \"\\f158\"; }\n\n.fa-ruler:before {\n content: \"\\f545\"; }\n\n.fa-ruler-combined:before {\n content: \"\\f546\"; }\n\n.fa-ruler-horizontal:before {\n content: \"\\f547\"; }\n\n.fa-ruler-vertical:before {\n content: \"\\f548\"; }\n\n.fa-running:before {\n content: \"\\f70c\"; }\n\n.fa-rupee-sign:before {\n content: \"\\f156\"; }\n\n.fa-sad-cry:before {\n content: \"\\f5b3\"; }\n\n.fa-sad-tear:before {\n content: \"\\f5b4\"; }\n\n.fa-safari:before {\n content: \"\\f267\"; }\n\n.fa-salesforce:before {\n content: \"\\f83b\"; }\n\n.fa-sass:before {\n content: \"\\f41e\"; }\n\n.fa-satellite:before {\n content: \"\\f7bf\"; }\n\n.fa-satellite-dish:before {\n content: \"\\f7c0\"; }\n\n.fa-save:before {\n content: \"\\f0c7\"; }\n\n.fa-schlix:before {\n content: \"\\f3ea\"; }\n\n.fa-school:before {\n content: \"\\f549\"; }\n\n.fa-screwdriver:before {\n content: \"\\f54a\"; }\n\n.fa-scribd:before {\n content: \"\\f28a\"; }\n\n.fa-scroll:before {\n content: \"\\f70e\"; }\n\n.fa-sd-card:before {\n content: \"\\f7c2\"; }\n\n.fa-search:before {\n content: \"\\f002\"; }\n\n.fa-search-dollar:before {\n content: \"\\f688\"; }\n\n.fa-search-location:before {\n content: \"\\f689\"; }\n\n.fa-search-minus:before {\n content: \"\\f010\"; }\n\n.fa-search-plus:before {\n content: \"\\f00e\"; }\n\n.fa-searchengin:before {\n content: \"\\f3eb\"; }\n\n.fa-seedling:before {\n content: \"\\f4d8\"; }\n\n.fa-sellcast:before {\n content: \"\\f2da\"; }\n\n.fa-sellsy:before {\n content: \"\\f213\"; }\n\n.fa-server:before {\n content: \"\\f233\"; }\n\n.fa-servicestack:before {\n content: \"\\f3ec\"; }\n\n.fa-shapes:before {\n content: \"\\f61f\"; }\n\n.fa-share:before {\n content: \"\\f064\"; }\n\n.fa-share-alt:before {\n content: \"\\f1e0\"; }\n\n.fa-share-alt-square:before {\n content: \"\\f1e1\"; }\n\n.fa-share-square:before {\n content: \"\\f14d\"; }\n\n.fa-shekel-sign:before {\n content: \"\\f20b\"; }\n\n.fa-shield-alt:before {\n content: \"\\f3ed\"; }\n\n.fa-ship:before {\n content: \"\\f21a\"; }\n\n.fa-shipping-fast:before {\n content: \"\\f48b\"; }\n\n.fa-shirtsinbulk:before {\n content: \"\\f214\"; }\n\n.fa-shoe-prints:before {\n content: \"\\f54b\"; }\n\n.fa-shopping-bag:before {\n content: \"\\f290\"; }\n\n.fa-shopping-basket:before {\n content: \"\\f291\"; }\n\n.fa-shopping-cart:before {\n content: \"\\f07a\"; }\n\n.fa-shopware:before {\n content: \"\\f5b5\"; }\n\n.fa-shower:before {\n content: \"\\f2cc\"; }\n\n.fa-shuttle-van:before {\n content: \"\\f5b6\"; }\n\n.fa-sign:before {\n content: \"\\f4d9\"; }\n\n.fa-sign-in-alt:before {\n content: \"\\f2f6\"; }\n\n.fa-sign-language:before {\n content: \"\\f2a7\"; }\n\n.fa-sign-out-alt:before {\n content: \"\\f2f5\"; }\n\n.fa-signal:before {\n content: \"\\f012\"; }\n\n.fa-signature:before {\n content: \"\\f5b7\"; }\n\n.fa-sim-card:before {\n content: \"\\f7c4\"; }\n\n.fa-simplybuilt:before {\n content: \"\\f215\"; }\n\n.fa-sistrix:before {\n content: \"\\f3ee\"; }\n\n.fa-sitemap:before {\n content: \"\\f0e8\"; }\n\n.fa-sith:before {\n content: \"\\f512\"; }\n\n.fa-skating:before {\n content: \"\\f7c5\"; }\n\n.fa-sketch:before {\n content: \"\\f7c6\"; }\n\n.fa-skiing:before {\n content: \"\\f7c9\"; }\n\n.fa-skiing-nordic:before {\n content: \"\\f7ca\"; }\n\n.fa-skull:before {\n content: \"\\f54c\"; }\n\n.fa-skull-crossbones:before {\n content: \"\\f714\"; }\n\n.fa-skyatlas:before {\n content: \"\\f216\"; }\n\n.fa-skype:before {\n content: \"\\f17e\"; }\n\n.fa-slack:before {\n content: \"\\f198\"; }\n\n.fa-slack-hash:before {\n content: \"\\f3ef\"; }\n\n.fa-slash:before {\n content: \"\\f715\"; }\n\n.fa-sleigh:before {\n content: \"\\f7cc\"; }\n\n.fa-sliders-h:before {\n content: \"\\f1de\"; }\n\n.fa-slideshare:before {\n content: \"\\f1e7\"; }\n\n.fa-smile:before {\n content: \"\\f118\"; }\n\n.fa-smile-beam:before {\n content: \"\\f5b8\"; }\n\n.fa-smile-wink:before {\n content: \"\\f4da\"; }\n\n.fa-smog:before {\n content: \"\\f75f\"; }\n\n.fa-smoking:before {\n content: \"\\f48d\"; }\n\n.fa-smoking-ban:before {\n content: \"\\f54d\"; }\n\n.fa-sms:before {\n content: \"\\f7cd\"; }\n\n.fa-snapchat:before {\n content: \"\\f2ab\"; }\n\n.fa-snapchat-ghost:before {\n content: \"\\f2ac\"; }\n\n.fa-snapchat-square:before {\n content: \"\\f2ad\"; }\n\n.fa-snowboarding:before {\n content: \"\\f7ce\"; }\n\n.fa-snowflake:before {\n content: \"\\f2dc\"; }\n\n.fa-snowman:before {\n content: \"\\f7d0\"; }\n\n.fa-snowplow:before {\n content: \"\\f7d2\"; }\n\n.fa-socks:before {\n content: \"\\f696\"; }\n\n.fa-solar-panel:before {\n content: \"\\f5ba\"; }\n\n.fa-sort:before {\n content: \"\\f0dc\"; }\n\n.fa-sort-alpha-down:before {\n content: \"\\f15d\"; }\n\n.fa-sort-alpha-up:before {\n content: \"\\f15e\"; }\n\n.fa-sort-amount-down:before {\n content: \"\\f160\"; }\n\n.fa-sort-amount-up:before {\n content: \"\\f161\"; }\n\n.fa-sort-down:before {\n content: \"\\f0dd\"; }\n\n.fa-sort-numeric-down:before {\n content: \"\\f162\"; }\n\n.fa-sort-numeric-up:before {\n content: \"\\f163\"; }\n\n.fa-sort-up:before {\n content: \"\\f0de\"; }\n\n.fa-soundcloud:before {\n content: \"\\f1be\"; }\n\n.fa-sourcetree:before {\n content: \"\\f7d3\"; }\n\n.fa-spa:before {\n content: \"\\f5bb\"; }\n\n.fa-space-shuttle:before {\n content: \"\\f197\"; }\n\n.fa-speakap:before {\n content: \"\\f3f3\"; }\n\n.fa-speaker-deck:before {\n content: \"\\f83c\"; }\n\n.fa-spider:before {\n content: \"\\f717\"; }\n\n.fa-spinner:before {\n content: \"\\f110\"; }\n\n.fa-splotch:before {\n content: \"\\f5bc\"; }\n\n.fa-spotify:before {\n content: \"\\f1bc\"; }\n\n.fa-spray-can:before {\n content: \"\\f5bd\"; }\n\n.fa-square:before {\n content: \"\\f0c8\"; }\n\n.fa-square-full:before {\n content: \"\\f45c\"; }\n\n.fa-square-root-alt:before {\n content: \"\\f698\"; }\n\n.fa-squarespace:before {\n content: \"\\f5be\"; }\n\n.fa-stack-exchange:before {\n content: \"\\f18d\"; }\n\n.fa-stack-overflow:before {\n content: \"\\f16c\"; }\n\n.fa-stackpath:before {\n content: \"\\f842\"; }\n\n.fa-stamp:before {\n content: \"\\f5bf\"; }\n\n.fa-star:before {\n content: \"\\f005\"; }\n\n.fa-star-and-crescent:before {\n content: \"\\f699\"; }\n\n.fa-star-half:before {\n content: \"\\f089\"; }\n\n.fa-star-half-alt:before {\n content: \"\\f5c0\"; }\n\n.fa-star-of-david:before {\n content: \"\\f69a\"; }\n\n.fa-star-of-life:before {\n content: \"\\f621\"; }\n\n.fa-staylinked:before {\n content: \"\\f3f5\"; }\n\n.fa-steam:before {\n content: \"\\f1b6\"; }\n\n.fa-steam-square:before {\n content: \"\\f1b7\"; }\n\n.fa-steam-symbol:before {\n content: \"\\f3f6\"; }\n\n.fa-step-backward:before {\n content: \"\\f048\"; }\n\n.fa-step-forward:before {\n content: \"\\f051\"; }\n\n.fa-stethoscope:before {\n content: \"\\f0f1\"; }\n\n.fa-sticker-mule:before {\n content: \"\\f3f7\"; }\n\n.fa-sticky-note:before {\n content: \"\\f249\"; }\n\n.fa-stop:before {\n content: \"\\f04d\"; }\n\n.fa-stop-circle:before {\n content: \"\\f28d\"; }\n\n.fa-stopwatch:before {\n content: \"\\f2f2\"; }\n\n.fa-store:before {\n content: \"\\f54e\"; }\n\n.fa-store-alt:before {\n content: \"\\f54f\"; }\n\n.fa-strava:before {\n content: \"\\f428\"; }\n\n.fa-stream:before {\n content: \"\\f550\"; }\n\n.fa-street-view:before {\n content: \"\\f21d\"; }\n\n.fa-strikethrough:before {\n content: \"\\f0cc\"; }\n\n.fa-stripe:before {\n content: \"\\f429\"; }\n\n.fa-stripe-s:before {\n content: \"\\f42a\"; }\n\n.fa-stroopwafel:before {\n content: \"\\f551\"; }\n\n.fa-studiovinari:before {\n content: \"\\f3f8\"; }\n\n.fa-stumbleupon:before {\n content: \"\\f1a4\"; }\n\n.fa-stumbleupon-circle:before {\n content: \"\\f1a3\"; }\n\n.fa-subscript:before {\n content: \"\\f12c\"; }\n\n.fa-subway:before {\n content: \"\\f239\"; }\n\n.fa-suitcase:before {\n content: \"\\f0f2\"; }\n\n.fa-suitcase-rolling:before {\n content: \"\\f5c1\"; }\n\n.fa-sun:before {\n content: \"\\f185\"; }\n\n.fa-superpowers:before {\n content: \"\\f2dd\"; }\n\n.fa-superscript:before {\n content: \"\\f12b\"; }\n\n.fa-supple:before {\n content: \"\\f3f9\"; }\n\n.fa-surprise:before {\n content: \"\\f5c2\"; }\n\n.fa-suse:before {\n content: \"\\f7d6\"; }\n\n.fa-swatchbook:before {\n content: \"\\f5c3\"; }\n\n.fa-swimmer:before {\n content: \"\\f5c4\"; }\n\n.fa-swimming-pool:before {\n content: \"\\f5c5\"; }\n\n.fa-symfony:before {\n content: \"\\f83d\"; }\n\n.fa-synagogue:before {\n content: \"\\f69b\"; }\n\n.fa-sync:before {\n content: \"\\f021\"; }\n\n.fa-sync-alt:before {\n content: \"\\f2f1\"; }\n\n.fa-syringe:before {\n content: \"\\f48e\"; }\n\n.fa-table:before {\n content: \"\\f0ce\"; }\n\n.fa-table-tennis:before {\n content: \"\\f45d\"; }\n\n.fa-tablet:before {\n content: \"\\f10a\"; }\n\n.fa-tablet-alt:before {\n content: \"\\f3fa\"; }\n\n.fa-tablets:before {\n content: \"\\f490\"; }\n\n.fa-tachometer-alt:before {\n content: \"\\f3fd\"; }\n\n.fa-tag:before {\n content: \"\\f02b\"; }\n\n.fa-tags:before {\n content: \"\\f02c\"; }\n\n.fa-tape:before {\n content: \"\\f4db\"; }\n\n.fa-tasks:before {\n content: \"\\f0ae\"; }\n\n.fa-taxi:before {\n content: \"\\f1ba\"; }\n\n.fa-teamspeak:before {\n content: \"\\f4f9\"; }\n\n.fa-teeth:before {\n content: \"\\f62e\"; }\n\n.fa-teeth-open:before {\n content: \"\\f62f\"; }\n\n.fa-telegram:before {\n content: \"\\f2c6\"; }\n\n.fa-telegram-plane:before {\n content: \"\\f3fe\"; }\n\n.fa-temperature-high:before {\n content: \"\\f769\"; }\n\n.fa-temperature-low:before {\n content: \"\\f76b\"; }\n\n.fa-tencent-weibo:before {\n content: \"\\f1d5\"; }\n\n.fa-tenge:before {\n content: \"\\f7d7\"; }\n\n.fa-terminal:before {\n content: \"\\f120\"; }\n\n.fa-text-height:before {\n content: \"\\f034\"; }\n\n.fa-text-width:before {\n content: \"\\f035\"; }\n\n.fa-th:before {\n content: \"\\f00a\"; }\n\n.fa-th-large:before {\n content: \"\\f009\"; }\n\n.fa-th-list:before {\n content: \"\\f00b\"; }\n\n.fa-the-red-yeti:before {\n content: \"\\f69d\"; }\n\n.fa-theater-masks:before {\n content: \"\\f630\"; }\n\n.fa-themeco:before {\n content: \"\\f5c6\"; }\n\n.fa-themeisle:before {\n content: \"\\f2b2\"; }\n\n.fa-thermometer:before {\n content: \"\\f491\"; }\n\n.fa-thermometer-empty:before {\n content: \"\\f2cb\"; }\n\n.fa-thermometer-full:before {\n content: \"\\f2c7\"; }\n\n.fa-thermometer-half:before {\n content: \"\\f2c9\"; }\n\n.fa-thermometer-quarter:before {\n content: \"\\f2ca\"; }\n\n.fa-thermometer-three-quarters:before {\n content: \"\\f2c8\"; }\n\n.fa-think-peaks:before {\n content: \"\\f731\"; }\n\n.fa-thumbs-down:before {\n content: \"\\f165\"; }\n\n.fa-thumbs-up:before {\n content: \"\\f164\"; }\n\n.fa-thumbtack:before {\n content: \"\\f08d\"; }\n\n.fa-ticket-alt:before {\n content: \"\\f3ff\"; }\n\n.fa-times:before {\n content: \"\\f00d\"; }\n\n.fa-times-circle:before {\n content: \"\\f057\"; }\n\n.fa-tint:before {\n content: \"\\f043\"; }\n\n.fa-tint-slash:before {\n content: \"\\f5c7\"; }\n\n.fa-tired:before {\n content: \"\\f5c8\"; }\n\n.fa-toggle-off:before {\n content: \"\\f204\"; }\n\n.fa-toggle-on:before {\n content: \"\\f205\"; }\n\n.fa-toilet:before {\n content: \"\\f7d8\"; }\n\n.fa-toilet-paper:before {\n content: \"\\f71e\"; }\n\n.fa-toolbox:before {\n content: \"\\f552\"; }\n\n.fa-tools:before {\n content: \"\\f7d9\"; }\n\n.fa-tooth:before {\n content: \"\\f5c9\"; }\n\n.fa-torah:before {\n content: \"\\f6a0\"; }\n\n.fa-torii-gate:before {\n content: \"\\f6a1\"; }\n\n.fa-tractor:before {\n content: \"\\f722\"; }\n\n.fa-trade-federation:before {\n content: \"\\f513\"; }\n\n.fa-trademark:before {\n content: \"\\f25c\"; }\n\n.fa-traffic-light:before {\n content: \"\\f637\"; }\n\n.fa-train:before {\n content: \"\\f238\"; }\n\n.fa-tram:before {\n content: \"\\f7da\"; }\n\n.fa-transgender:before {\n content: \"\\f224\"; }\n\n.fa-transgender-alt:before {\n content: \"\\f225\"; }\n\n.fa-trash:before {\n content: \"\\f1f8\"; }\n\n.fa-trash-alt:before {\n content: \"\\f2ed\"; }\n\n.fa-trash-restore:before {\n content: \"\\f829\"; }\n\n.fa-trash-restore-alt:before {\n content: \"\\f82a\"; }\n\n.fa-tree:before {\n content: \"\\f1bb\"; }\n\n.fa-trello:before {\n content: \"\\f181\"; }\n\n.fa-tripadvisor:before {\n content: \"\\f262\"; }\n\n.fa-trophy:before {\n content: \"\\f091\"; }\n\n.fa-truck:before {\n content: \"\\f0d1\"; }\n\n.fa-truck-loading:before {\n content: \"\\f4de\"; }\n\n.fa-truck-monster:before {\n content: \"\\f63b\"; }\n\n.fa-truck-moving:before {\n content: \"\\f4df\"; }\n\n.fa-truck-pickup:before {\n content: \"\\f63c\"; }\n\n.fa-tshirt:before {\n content: \"\\f553\"; }\n\n.fa-tty:before {\n content: \"\\f1e4\"; }\n\n.fa-tumblr:before {\n content: \"\\f173\"; }\n\n.fa-tumblr-square:before {\n content: \"\\f174\"; }\n\n.fa-tv:before {\n content: \"\\f26c\"; }\n\n.fa-twitch:before {\n content: \"\\f1e8\"; }\n\n.fa-twitter:before {\n content: \"\\f099\"; }\n\n.fa-twitter-square:before {\n content: \"\\f081\"; }\n\n.fa-typo3:before {\n content: \"\\f42b\"; }\n\n.fa-uber:before {\n content: \"\\f402\"; }\n\n.fa-ubuntu:before {\n content: \"\\f7df\"; }\n\n.fa-uikit:before {\n content: \"\\f403\"; }\n\n.fa-umbrella:before {\n content: \"\\f0e9\"; }\n\n.fa-umbrella-beach:before {\n content: \"\\f5ca\"; }\n\n.fa-underline:before {\n content: \"\\f0cd\"; }\n\n.fa-undo:before {\n content: \"\\f0e2\"; }\n\n.fa-undo-alt:before {\n content: \"\\f2ea\"; }\n\n.fa-uniregistry:before {\n content: \"\\f404\"; }\n\n.fa-universal-access:before {\n content: \"\\f29a\"; }\n\n.fa-university:before {\n content: \"\\f19c\"; }\n\n.fa-unlink:before {\n content: \"\\f127\"; }\n\n.fa-unlock:before {\n content: \"\\f09c\"; }\n\n.fa-unlock-alt:before {\n content: \"\\f13e\"; }\n\n.fa-untappd:before {\n content: \"\\f405\"; }\n\n.fa-upload:before {\n content: \"\\f093\"; }\n\n.fa-ups:before {\n content: \"\\f7e0\"; }\n\n.fa-usb:before {\n content: \"\\f287\"; }\n\n.fa-user:before {\n content: \"\\f007\"; }\n\n.fa-user-alt:before {\n content: \"\\f406\"; }\n\n.fa-user-alt-slash:before {\n content: \"\\f4fa\"; }\n\n.fa-user-astronaut:before {\n content: \"\\f4fb\"; }\n\n.fa-user-check:before {\n content: \"\\f4fc\"; }\n\n.fa-user-circle:before {\n content: \"\\f2bd\"; }\n\n.fa-user-clock:before {\n content: \"\\f4fd\"; }\n\n.fa-user-cog:before {\n content: \"\\f4fe\"; }\n\n.fa-user-edit:before {\n content: \"\\f4ff\"; }\n\n.fa-user-friends:before {\n content: \"\\f500\"; }\n\n.fa-user-graduate:before {\n content: \"\\f501\"; }\n\n.fa-user-injured:before {\n content: \"\\f728\"; }\n\n.fa-user-lock:before {\n content: \"\\f502\"; }\n\n.fa-user-md:before {\n content: \"\\f0f0\"; }\n\n.fa-user-minus:before {\n content: \"\\f503\"; }\n\n.fa-user-ninja:before {\n content: \"\\f504\"; }\n\n.fa-user-nurse:before {\n content: \"\\f82f\"; }\n\n.fa-user-plus:before {\n content: \"\\f234\"; }\n\n.fa-user-secret:before {\n content: \"\\f21b\"; }\n\n.fa-user-shield:before {\n content: \"\\f505\"; }\n\n.fa-user-slash:before {\n content: \"\\f506\"; }\n\n.fa-user-tag:before {\n content: \"\\f507\"; }\n\n.fa-user-tie:before {\n content: \"\\f508\"; }\n\n.fa-user-times:before {\n content: \"\\f235\"; }\n\n.fa-users:before {\n content: \"\\f0c0\"; }\n\n.fa-users-cog:before {\n content: \"\\f509\"; }\n\n.fa-usps:before {\n content: \"\\f7e1\"; }\n\n.fa-ussunnah:before {\n content: \"\\f407\"; }\n\n.fa-utensil-spoon:before {\n content: \"\\f2e5\"; }\n\n.fa-utensils:before {\n content: \"\\f2e7\"; }\n\n.fa-vaadin:before {\n content: \"\\f408\"; }\n\n.fa-vector-square:before {\n content: \"\\f5cb\"; }\n\n.fa-venus:before {\n content: \"\\f221\"; }\n\n.fa-venus-double:before {\n content: \"\\f226\"; }\n\n.fa-venus-mars:before {\n content: \"\\f228\"; }\n\n.fa-viacoin:before {\n content: \"\\f237\"; }\n\n.fa-viadeo:before {\n content: \"\\f2a9\"; }\n\n.fa-viadeo-square:before {\n content: \"\\f2aa\"; }\n\n.fa-vial:before {\n content: \"\\f492\"; }\n\n.fa-vials:before {\n content: \"\\f493\"; }\n\n.fa-viber:before {\n content: \"\\f409\"; }\n\n.fa-video:before {\n content: \"\\f03d\"; }\n\n.fa-video-slash:before {\n content: \"\\f4e2\"; }\n\n.fa-vihara:before {\n content: \"\\f6a7\"; }\n\n.fa-vimeo:before {\n content: \"\\f40a\"; }\n\n.fa-vimeo-square:before {\n content: \"\\f194\"; }\n\n.fa-vimeo-v:before {\n content: \"\\f27d\"; }\n\n.fa-vine:before {\n content: \"\\f1ca\"; }\n\n.fa-vk:before {\n content: \"\\f189\"; }\n\n.fa-vnv:before {\n content: \"\\f40b\"; }\n\n.fa-volleyball-ball:before {\n content: \"\\f45f\"; }\n\n.fa-volume-down:before {\n content: \"\\f027\"; }\n\n.fa-volume-mute:before {\n content: \"\\f6a9\"; }\n\n.fa-volume-off:before {\n content: \"\\f026\"; }\n\n.fa-volume-up:before {\n content: \"\\f028\"; }\n\n.fa-vote-yea:before {\n content: \"\\f772\"; }\n\n.fa-vr-cardboard:before {\n content: \"\\f729\"; }\n\n.fa-vuejs:before {\n content: \"\\f41f\"; }\n\n.fa-walking:before {\n content: \"\\f554\"; }\n\n.fa-wallet:before {\n content: \"\\f555\"; }\n\n.fa-warehouse:before {\n content: \"\\f494\"; }\n\n.fa-water:before {\n content: \"\\f773\"; }\n\n.fa-wave-square:before {\n content: \"\\f83e\"; }\n\n.fa-waze:before {\n content: \"\\f83f\"; }\n\n.fa-weebly:before {\n content: \"\\f5cc\"; }\n\n.fa-weibo:before {\n content: \"\\f18a\"; }\n\n.fa-weight:before {\n content: \"\\f496\"; }\n\n.fa-weight-hanging:before {\n content: \"\\f5cd\"; }\n\n.fa-weixin:before {\n content: \"\\f1d7\"; }\n\n.fa-whatsapp:before {\n content: \"\\f232\"; }\n\n.fa-whatsapp-square:before {\n content: \"\\f40c\"; }\n\n.fa-wheelchair:before {\n content: \"\\f193\"; }\n\n.fa-whmcs:before {\n content: \"\\f40d\"; }\n\n.fa-wifi:before {\n content: \"\\f1eb\"; }\n\n.fa-wikipedia-w:before {\n content: \"\\f266\"; }\n\n.fa-wind:before {\n content: \"\\f72e\"; }\n\n.fa-window-close:before {\n content: \"\\f410\"; }\n\n.fa-window-maximize:before {\n content: \"\\f2d0\"; }\n\n.fa-window-minimize:before {\n content: \"\\f2d1\"; }\n\n.fa-window-restore:before {\n content: \"\\f2d2\"; }\n\n.fa-windows:before {\n content: \"\\f17a\"; }\n\n.fa-wine-bottle:before {\n content: \"\\f72f\"; }\n\n.fa-wine-glass:before {\n content: \"\\f4e3\"; }\n\n.fa-wine-glass-alt:before {\n content: \"\\f5ce\"; }\n\n.fa-wix:before {\n content: \"\\f5cf\"; }\n\n.fa-wizards-of-the-coast:before {\n content: \"\\f730\"; }\n\n.fa-wolf-pack-battalion:before {\n content: \"\\f514\"; }\n\n.fa-won-sign:before {\n content: \"\\f159\"; }\n\n.fa-wordpress:before {\n content: \"\\f19a\"; }\n\n.fa-wordpress-simple:before {\n content: \"\\f411\"; }\n\n.fa-wpbeginner:before {\n content: \"\\f297\"; }\n\n.fa-wpexplorer:before {\n content: \"\\f2de\"; }\n\n.fa-wpforms:before {\n content: \"\\f298\"; }\n\n.fa-wpressr:before {\n content: \"\\f3e4\"; }\n\n.fa-wrench:before {\n content: \"\\f0ad\"; }\n\n.fa-x-ray:before {\n content: \"\\f497\"; }\n\n.fa-xbox:before {\n content: \"\\f412\"; }\n\n.fa-xing:before {\n content: \"\\f168\"; }\n\n.fa-xing-square:before {\n content: \"\\f169\"; }\n\n.fa-y-combinator:before {\n content: \"\\f23b\"; }\n\n.fa-yahoo:before {\n content: \"\\f19e\"; }\n\n.fa-yammer:before {\n content: \"\\f840\"; }\n\n.fa-yandex:before {\n content: \"\\f413\"; }\n\n.fa-yandex-international:before {\n content: \"\\f414\"; }\n\n.fa-yarn:before {\n content: \"\\f7e3\"; }\n\n.fa-yelp:before {\n content: \"\\f1e9\"; }\n\n.fa-yen-sign:before {\n content: \"\\f157\"; }\n\n.fa-yin-yang:before {\n content: \"\\f6ad\"; }\n\n.fa-yoast:before {\n content: \"\\f2b1\"; }\n\n.fa-youtube:before {\n content: \"\\f167\"; }\n\n.fa-youtube-square:before {\n content: \"\\f431\"; }\n\n.fa-zhihu:before {\n content: \"\\f63f\"; }\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px; }\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto; }\n"},"$:/plugins/TheDiveO/FontAwesome/styles/tiddlylinks/system":{"title":"$:/plugins/TheDiveO/FontAwesome/styles/tiddlylinks/system","created":"20171230212437805","modified":"20180328191223958","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html\n\n<$set name=\"cfg\" value=<<fa5-cfgpath \"decorate-syslinks\">> >\n<$list filter=<<fa5-cfgfilterexpr>> >\n\n/* system tiddler titles starting with $:/... */\n.tc-tiddler-body a.tc-tiddlylink[href^=\"#%24%3A%2F\"]:before,\n.tc-tiddler-preview-preview a.tc-tiddlylink[href^=\"#%24%3A%2F\"]:before {\n <<fa-plugin-font-solid>>\n font-size: 80%;\n content: '\\f013\\202f';\n display: inline-block;\n}\n\n</$list>\n</$set>"},"$:/plugins/TheDiveO/FontAwesome/ui/ControlPanel/FontAwesome":{"title":"$:/plugins/TheDiveO/FontAwesome/ui/ControlPanel/FontAwesome","caption":"Font Awesome","created":"20180328182555066","modified":"20180328190604063","tags":"$:/tags/ControlPanel","type":"text/vnd.tiddlywiki","text":"Customize the Font Awesome 5 plugin.\n\n<$checkbox tiddler=<<fa5-cfgpath \"decorate-syslinks\">> field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\" > decorate system links: [[$:/ControlPanel]]</$checkbox>\n\n<$checkbox tiddler=<<fa5-cfgpath \"decorate-extlinks\">> field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\" > decorate external links: [[TiddlyWiki|http://tiddlywiki.com]] [[Wikipedia|https://en.wikipedia.org/wiki/TiddlyWiki]]</$checkbox>\n\n<$checkbox tiddler=<<fa5-cfgpath \"decorate-extdoclinks\">> field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\" > decorate external document links: https://example.org/document.pdf</$checkbox>\n\n<$checkbox tiddler=<<fa5-cfgpath \"decorate-wk-extlinks\">> field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\" > decorate external well-known links: http://github.com http://en.wikipedia.org</$checkbox>"}}}
{
"tiddlers": {
"$:/_Zaphod_SBBG1": {
"created": "20160804115808032",
"title": "$:/_Zaphod_SBBG1",
"text": "<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.5); }</style>",
"creator": "Zaphod Beeblebrox",
"modified": "20160813035939853",
"modifier": "Zaphod Beeblebrox",
"tags": ""
},
"$:/_Zaphod_SBBG2": {
"created": "20160802164833844",
"text": "<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.0); }</style>",
"creator": "Zaphod Beeblebrox",
"modified": "20160813040014089",
"modifier": "Zaphod Beeblebrox",
"tags": "",
"title": "$:/_Zaphod_SBBG2"
},
"$:/_Zaphod_SideBarShade.css": {
"created": "20160812223918435",
"text": "/* ==================== */\n/* ControlPanel Element */\n/* ==================== */\n\n.ShadeWrapperCP {\n display: flex;\n margin-left: auto;\n margin-right: auto;\n}\n\n.ShadeContainerCP {\n display: flex;\n flex-flow: row wrap;\n}\n\n.ShadeTitleCP {\n flex-grow: 1;\n width: 100%;\n background-color: #000000;\n color: #FFFFFF;\n font-weight: bold;\n text-align: center;\n}\n\n.ShadeHeaderCP {\n width: 114px;\n background-color: lightblue;\n color: black;\n text-align: center;\n font-size: 120%;\n font-weight: bold;\n}\n\n.ShadeCellCP {\n flex-grow: 1;\n background-color: silver;\n font-size: 10pt;\n padding: 10px;\n}\n\n.ShadeElementCP {\n display: inline-block;\n width: 100px;\n font-weight: bold;\n text-align: right;\n}\n\n\n/* =============== */\n/* SideBar Element */\n/* =============== */\n\n.ShadeWrapperSB {\n display: flex;\n width: 95%;\n margin-left: auto;\n margin-right: auto;\n}\n\n.ShadeContainerSB {\n display: flex;\n flex-flow: row wrap;\n}\n\n.ShadeTitleSB {\n flex-grow: 1;\n width: 100%;\n background-color: #000000;\n color: #FFFFFF;\n font-weight: bold;\n text-align: center;\n}\n\n.ShadeHeaderSB {\n width: 114px;\n background-color: lightblue;\n color: black;\n font-size: 120%;\n text-align: center;\n font-weight: bold;\n}\n\n.ShadeCellSB {\n flex-grow: 1;\n/* background-color: rgba(255,255,255,0.8); */\n/* background-color: silver; */\n font-size: 10pt;\n padding: 10px;\n}\n\n.ShadeElementSB {\n display: inline-block;\n width: 100px;\n font-weight: bold;\n text-align: right;\n}",
"title": "$:/_Zaphod_SideBarShade.css",
"tags": "$:/tags/Stylesheet",
"modified": "20160813034245824",
"type": "text/css"
},
"$:/_Zaphod_SideBarShadeCP": {
"created": "20160819145842293",
"modified": "20160819145900302",
"text": "<div class=\"ShadeWrapperCP\">\n<div class=\"ShadeContainerCP\">\n<div class=\"ShadeTitleCP\">~SideBar Shade ©®™ :Þ Settings</div>\n<div class=\"ShadeCellCP\">\n<div class=\"ShadeHeaderCP\">Opacity: 80%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellCP\">\n<div class=\"ShadeHeaderCP\">Opacity: 70%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellCP\">\n<div class=\"ShadeHeaderCP\">Opacity: 60%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.8); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellCP\">\n<div class=\"ShadeHeaderCP\">Opacity: 50%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.5); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellCP\">\n<div class=\"ShadeHeaderCP\">Opacity: 40%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.4); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellCP\">\n<div class=\"ShadeHeaderCP\">Opacity: 30%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.3); }</style>\"></$radio><div class=\"ShadeElementCP\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n</div>\n</div>",
"caption": "SideBar Shade",
"tags": "$:/tags/ControlPanel/Appearance Zaphod",
"title": "$:/_Zaphod_SideBarShadeCP",
"list-after": "$:/themes/tiddlywiki/vanilla/themetweaks"
},
"$:/_Zaphod_SideBarShadeSB": {
"created": "20160813025333526",
"text": "<div class=\"ShadeWrapperSB\">\n<div class=\"ShadeContainerSB\">\n<div class=\"ShadeTitleSB\">~SideBar Shade ©®™ :Þ Settings</div>\n<div class=\"ShadeCellSB\">\n<div class=\"ShadeHeaderSB\">Opacity: 80%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellSB\">\n<div class=\"ShadeHeaderSB\">Opacity: 70%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellSB\">\n<div class=\"ShadeHeaderSB\">Opacity: 60%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.8); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellSB\">\n<div class=\"ShadeHeaderSB\">Opacity: 50%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.5); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellSB\">\n<div class=\"ShadeHeaderSB\">Opacity: 40%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.4); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n<div class=\"ShadeCellSB\">\n<div class=\"ShadeHeaderSB\">Opacity: 30%</div>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,0,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: black; color: white;\">Black</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,0,0,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: red; color: white;\">Red</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,255,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: white; color: black;\">White</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,255,0,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: green; color: white;\">Green</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(0,0,255,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: blue; color: white;\">Blue</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,120,0,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: orange; color: white;\">Orange</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(255,255,0,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: yellow; color: black;\">Yellow</div><br/>\n<$radio tiddler=\"$:/_Zaphod_SBBG1\" field=\"text\" value=\"<style>.tc-sidebar-scrollable { background-color: rgba(138,43,236,0.3); }</style>\"></$radio><div class=\"ShadeElementSB\" style=\"background-color: purple; color: white;\">Purple</div><br/>\n</div>\n</div>\n</div>",
"caption": "SideBar Shade",
"modified": "20160813072919008",
"tags": "$:/tags/SideBar",
"title": "$:/_Zaphod_SideBarShadeSB"
},
"Zaphod's SideBar Shade ReadMe": {
"created": "20160813074724614",
"modified": "20160813075601192",
"text": "!Welcome to the \"~SideBar Shade®©™\" :Þ\n\n After starting to use full-screen pictures as backgrounds in my TW, the links in the the ~SideBar became hard to read when displaying some lighter-colored backgrounds. My solution to this was to make the background of the ~SideBar a darker shade, but after finding the correct element to target //(the ''.tc-sidebar-scrollable'')//, I then ran into the problem of what happens when you hide the ~SideBar? My new colored 'Shade' remained, looking very trashy and out-of-place…\n\n Well, after a lot of reading and searching, trying this method and that one, I finally came up with what you have here. It may not be the most ideal solution, and I'll be the first to admit that it isn't the most //elegant//, but it works, at least to my current satisfaction.\n\n I have included two variants; one that appears as a tab in your ~ControlPanel under the 'Appearance' tab, and one that appears in your ~SideBar. Feel free to use either/both as you see fit ,,<img src=\"http://i.imgur.com/WgjjEap.gif\">,,\n\n<div style=\"width: 60%; text-align: justify;\">\n\n!!Tiddlers included in this plugin:\n\n*[[Zaphod's SideBar Shade ReadMe]] --> This file\n*[[$:/_Zaphod_SideBarShade.css]] --> CSS styling for all the little fiddly bits that make up the 'interface'\n*[[$:/_Zaphod_SideBarShadeCP]] --> The ~ControlPanel variant\n*[[$:/_Zaphod_SideBarShadeSB]] --> The ~SideBar variant\n*[[$:/_Zaphod_SBBG1]] --> The 'Shade' definition\n*[[$:/_Zaphod_SBBG2]] --> Definition to 'clear' the shade when hiding the ~SideBar\n*[[$:/core/ui/TopBar/menu]] --> A replacement for the Show/Hide ~SideBar button\n**''@@color:red;__If you have other Plugins, etc. that make modifications to the ~TopBar Menu button__, either disable/uninstall them before importing this plugin, or make a backup copy of your@@ <br>//~$:/core/ui/TopBar/menu // @@color:red;file before installing.@@ ''\n**''This file will replace your default //~$:/core/ui/TopBar/menu // file, but should you wish to return things to 'normal,' simply delete the file and the original will be restored.''\n</div>\n\n---\n!Installation\n\n Just drag this [[]] file into your ~TiddlyWiki and drop it onto the green bar that appears at the top, then click 'Install' when the dialogue pops up. You might have to reload your TW for everything to take effect.",
"tags": "",
"title": "Zaphod's SideBar Shade ReadMe"
},
"$:/core/ui/TopBar/menu": {
"created": "20160804114955972",
"text": "<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"no\">\n<$button set=\"$:/state/sidebar\" setTo=\"no\" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class=\"tc-btn-invisible\">{{$:/core/images/chevron-right}}\n<$transclude tiddler=\"$:/_Zaphod_SBBG1\"/>\n</$button>\n</$reveal>\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"no\">\n<$button set=\"$:/state/sidebar\" setTo=\"yes\" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class=\"tc-btn-invisible\">{{$:/core/images/chevron-left}}\n<$transclude tiddler=\"$:/_Zaphod_SBBG2\"/>\n</$button>\n</$reveal>\n",
"creator": "Zaphod Beeblebrox",
"modified": "20160813040119299",
"modifier": "Zaphod Beeblebrox",
"tags": "$:/tags/TopRightBar",
"title": "$:/core/ui/TopBar/menu"
}
}
}
---
<h1>↓↓↓ Search↓↓↓</h1><h3>
<$set name="searchTiddler" value="$:/temp/search">
<div class="tc-search">
<$edit-text tiddler="$:/temp/search" type="search" tag="input"
focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify
"$:/state/popup/search-dropdown">> class="tc-popup-handle"/>
<$reveal state="$:/temp/search" type="nomatch" text="">
<$button popup=<<qualify "$:/state/popup/search-dropdown">>
class="tc-btn-invisible">
<$set name="resultCount" value="""<$count
filter="[!is[system]search{$(searchTiddler)$}]"/>""">
{{$:/core/images/down-arrow}} {{$:/language/Search/Matches}}
</$set>
</$button>
</$reveal>
<$reveal state="$:/temp/search" type="match" text="">
<$button to="$:/AdvancedSearch"
tooltip={{$:/language/Buttons/AdvancedSearch/Hint}}
aria-label={{$:/language/Buttons/AdvancedSearch/Caption}}
class="tc-btn-invisible">
{{$:/core/images/advanced-search-button}}
</$button>
</$reveal>
</div>
<$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/temp/search"
type="nomatch" text="">
<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down
tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">>
type="nomatch" text="" default="">
{{$:/core/ui/SearchResults}}
</$reveal>
</$reveal>
</$set>
</h3>
<h1>↑↑↑ Search ↑↑↑</h1>
---
collection of links / manuals / howtos / examples for solving daily problems in it and maybe other stuff by UNFUGK::Multiversity
_MULTIVERSITY_::[LINKS|MANUALS|HOWTO]
Startpage_Index_Placeholder
$:/core/ui/EditTemplate/body/preview/output
$:/core/ui/ImportPreviews/DiffFields
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/core/ui/AdvancedSearch/System
$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/interaction
$:/core/ui/ControlPanel/Palette
$:/core/ui/ControlPanel/Basics
$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/vis
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/vis
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/core/ui/ControlPanel/Plugins/Installed/Plugins
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/core/ui/ControlPanel/EditorTypes
$:/core/ui/DefaultSearchResultList
$:/core/ui/ControlPanel/Appearance
$:/core/ui/TiddlerInfo/Advanced
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/core/ui/TiddlerInfo/Tools
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters
$:/core/ui/ControlPanel/Saving/GitHub
$:/plugins/felixhayashi/tiddlymap/dialog/configureView/vis
$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/vis
$:/core/ui/MoreSideBar/System
$:/core/ui/ControlPanel/Toolbars/ViewToolbar
$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/styling
Yog Sothoth_Fürchtegott Unfugk
\define lt() <$text text='<'/>
\define gt() <$text text='>'/>
\define yes() [img [$:/_tickmark-green]]
\define no() [img [$:/_no-green]]
\define imgpath(img) images/$img$
\define imageit(image:"image.jpg")
<$set name=path value=<<imgpath "$image$">>>
<a href="$image$" target="new"><img src=<<path>> width="25%" height="25%" /></a>
</$set>
\end
sys:fs:net:cluster:glusterfs
<$button tooltip="View as a Tekan Board" aria-label="Board" class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/storyview-classic}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Close/Caption}}/></span>
</$list>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]">
<$action-setfield tags="TwelloMode"/>
</$list>
<$action-setfield $tiddler="$:/Tekan/Main" tags="$:/tags/PageTemplate"/>
<$action-listops $tiddler="$:/Tekan/Substyles" $tags="$:/tags/Stylesheet"/>
<$action-setfield $tiddler="$:/Tekan/CurrentBoard" text=<<currentTiddler>>/>
</$button>
{
"tiddlers": {
"$:/info/browser": {
"title": "$:/info/browser",
"text": "yes"
},
"$:/info/node": {
"title": "$:/info/node",
"text": "no"
},
"$:/info/url/full": {
"title": "$:/info/url/full",
"text": "https://doc-links-manual-howto.github.io/pub/wiki.html"
},
"$:/info/url/host": {
"title": "$:/info/url/host",
"text": "doc-links-manual-howto.github.io"
},
"$:/info/url/hostname": {
"title": "$:/info/url/hostname",
"text": "doc-links-manual-howto.github.io"
},
"$:/info/url/protocol": {
"title": "$:/info/url/protocol",
"text": "https:"
},
"$:/info/url/port": {
"title": "$:/info/url/port",
"text": ""
},
"$:/info/url/pathname": {
"title": "$:/info/url/pathname",
"text": "/pub/wiki.html"
},
"$:/info/url/search": {
"title": "$:/info/url/search",
"text": ""
},
"$:/info/url/origin": {
"title": "$:/info/url/origin",
"text": "https://doc-links-manual-howto.github.io"
},
"$:/info/browser/screen/width": {
"title": "$:/info/browser/screen/width",
"text": "1920"
},
"$:/info/browser/screen/height": {
"title": "$:/info/browser/screen/height",
"text": "1080"
},
"$:/info/browser/language": {
"title": "$:/info/browser/language",
"text": "de-DE"
}
}
}
$:/themes/tiddlywiki/vanilla
{
"tiddlers": {
"$:/themes/tiddlywiki/snowwhite/base": {
"title": "$:/themes/tiddlywiki/snowwhite/base",
"tags": "[[$:/tags/Stylesheet]]",
"text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n.tc-sidebar-header {\n\ttext-shadow: 0 1px 0 <<colour sidebar-foreground-shadow>>;\n}\n\n.tc-tiddler-info {\n\t<<box-shadow \"inset 1px 2px 3px rgba(0,0,0,0.1)\">>\n}\n\n@media screen {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow \"1px 1px 5px rgba(0, 0, 0, 0.3)\">>\n\t}\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow none>>\n\t}\n}\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t<<transition \"fill 150ms ease-in-out\">>\n}\n\n.tc-tiddler-controls button.tc-selected,\n.tc-page-controls button.tc-selected {\n\t<<filter \"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\">>\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-edit-tags {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-tiddler-frame .tc-edit-tags input.tc-edit-texteditor {\n\t<<box-shadow \"none\">>\n\tborder: none;\n\toutline: none;\n}\n\ntextarea.tc-edit-texteditor {\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};\n}\n\ncanvas.tc-edit-bitmapeditor {\n\t<<box-shadow \"2px 2px 5px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t<<box-shadow \"inset 0 1px 0 #fff\">>;\n}\n\n\n.tc-alert {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.6)\">>\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n\ttext-shadow: 0 1px 0 rgba(255,255,255, 0.8);\n}\n\n.tc-sidebar-lists .tc-tab-set .tc-tab-divider {\n\tborder-top: none;\n\theight: 1px;\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.1) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.05) 100%\">>\n}\n\n.tc-message-box img {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n\n.tc-plugin-info {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n"
}
}
}
{
"tiddlers": {
"$:/themes/tiddlywiki/vanilla/themetweaks": {
"title": "$:/themes/tiddlywiki/vanilla/themetweaks",
"tags": "$:/tags/ControlPanel/Appearance",
"caption": "{{$:/language/ThemeTweaks/ThemeTweaks}}",
"text": "\\define lingo-base() $:/language/ThemeTweaks/\n\n\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n\\define backgroundimage-dropdown()\n<div class=\"tc-drop-down-wrapper\">\n<$button popup=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"\n\t$value=<<imageTitle>>\n/>\n\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n\\end\n\n\\define backgroundimageattachment-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\" default=\"scroll\">\n<option value=\"scroll\"><<lingo Settings/BackgroundImageAttachment/Scroll>></option>\n<option value=\"fixed\"><<lingo Settings/BackgroundImageAttachment/Fixed>></option>\n</$select>\n\\end\n\n\\define backgroundimagesize-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\" default=\"scroll\">\n<option value=\"auto\"><<lingo Settings/BackgroundImageSize/Auto>></option>\n<option value=\"cover\"><<lingo Settings/BackgroundImageSize/Cover>></option>\n<option value=\"contain\"><<lingo Settings/BackgroundImageSize/Contain>></option>\n</$select>\n\\end\n\n<<lingo ThemeTweaks/Hint>>\n\n! <<lingo Options>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><<lingo Options/SidebarLayout>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><option value=\"fixed-fluid\"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option value=\"fluid-fixed\"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><<lingo Options/StickyTitles>></$link><br>//<<lingo Options/StickyTitles/Hint>>// |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><option value=\"no\">{{$:/language/No}}</option><option value=\"yes\">{{$:/language/Yes}}</option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><<lingo Options/CodeWrapping>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><option value=\"pre\">{{$:/language/No}}</option><option value=\"pre-wrap\">{{$:/language/Yes}}</option></$select> |\n\n! <<lingo Settings>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\"><<lingo Settings/EditorFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" default=\"\" tag=\"input\"/> |<<backgroundimage-dropdown>> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | |\n\n! <<lingo Metrics>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\"><<lingo Metrics/FontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\"><<lingo Metrics/LineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\"><<lingo Metrics/BodyFontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\"><<lingo Metrics/BodyLineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\"><<lingo Metrics/StoryLeft>></$link><br>//<<lingo Metrics/StoryLeft/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\"><<lingo Metrics/StoryTop>></$link><br>//<<lingo Metrics/StoryTop/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\"><<lingo Metrics/StoryRight>></$link><br>//<<lingo Metrics/StoryRight/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\"><<lingo Metrics/StoryWidth>></$link><br>//<<lingo Metrics/StoryWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\"><<lingo Metrics/TiddlerWidth>></$link><br>//<<lingo Metrics/TiddlerWidth/Hint>>//<br> |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\"><<lingo Metrics/SidebarBreakpoint>></$link><br>//<<lingo Metrics/SidebarBreakpoint/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\"><<lingo Metrics/SidebarWidth>></$link><br>//<<lingo Metrics/SidebarWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\" default=\"\" tag=\"input\"/> |\n"
},
"$:/themes/tiddlywiki/vanilla/base": {
"title": "$:/themes/tiddlywiki/vanilla/base",
"tags": "[[$:/tags/Stylesheet]]",
"text": "\\define custom-background-datauri()\n<$set name=\"background\" value={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}>\n<$list filter=\"[<background>is[image]]\">\n`background: url(`\n<$list filter=\"[<background>!has[_canonical_uri]]\">\n`\"`<$macrocall $name=\"datauri\" title={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}/>`\"`\n</$list>\n<$list filter=\"[<background>has[_canonical_uri]]\">\n`\"`<$view tiddler={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}} field=\"_canonical_uri\"/>`\"`\n</$list>\n`) center center;`\n`background-attachment: `{{$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment}}`;\n-webkit-background-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;\n-moz-background-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;\n-o-background-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;\nbackground-size:` {{$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize}}`;`\n</$list>\n</$set>\n\\end\n\n\\define if-fluid-fixed(text,hiddenSidebarText)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" type=\"match\" text=\"fluid-fixed\">\n$text$\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">\n$hiddenSidebarText$\n</$reveal>\n</$reveal>\n\\end\n\n\\define if-editor-height-fixed(then,else)\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n$then$\n</$reveal>\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n$else$\n</$reveal>\n\\end\n\n\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock\n\n/*\n** Start with the normalize CSS reset, and then belay some of its effects\n*/\n\n{{$:/themes/tiddlywiki/vanilla/reset}}\n\n*, input[type=\"search\"] {\n\tbox-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\t-webkit-box-sizing: border-box;\n}\n\nhtml button {\n\tline-height: 1.2;\n\tcolor: <<colour button-foreground>>;\n\tbackground: <<colour button-background>>;\n\tborder-color: <<colour button-border>>;\n}\n\n/*\n** Basic element styles\n*/\n\nhtml {\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/fontfamily}};\n\ttext-rendering: optimizeLegibility; /* Enables kerning and ligatures etc. */\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n}\n\nhtml:-webkit-full-screen {\n\tbackground-color: <<colour page-background>>;\n}\n\nbody.tc-body {\n\tfont-size: {{$:/themes/tiddlywiki/vanilla/metrics/fontsize}};\n\tline-height: {{$:/themes/tiddlywiki/vanilla/metrics/lineheight}};\n\tword-wrap: break-word;\n\t<<custom-background-datauri>>\n\tcolor: <<colour foreground>>;\n\tbackground-color: <<colour page-background>>;\n\tfill: <<colour foreground>>;\n}\n\n<<if-background-attachment \"\"\"\n\nbody.tc-body {\n background-color: transparent;\n}\n\n\"\"\">>\n\nh1, h2, h3, h4, h5, h6 {\n\tline-height: 1.2;\n\tfont-weight: 300;\n}\n\npre {\n\tdisplay: block;\n\tpadding: 14px;\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n\tword-break: normal;\n\tword-wrap: break-word;\n\twhite-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};\n\tbackground-color: <<colour pre-background>>;\n\tborder: 1px solid <<colour pre-border>>;\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};\n}\n\ncode {\n\tcolor: <<colour code-foreground>>;\n\tbackground-color: <<colour code-background>>;\n\tborder: 1px solid <<colour code-border>>;\n\twhite-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};\n}\n\nblockquote {\n\tborder-left: 5px solid <<colour blockquote-bar>>;\n\tmargin-left: 25px;\n\tpadding-left: 10px;\n\tquotes: \"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\";\n}\n\nblockquote.tc-big-quote {\n\tfont-family: Georgia, serif;\n\tposition: relative;\n\tbackground: <<colour pre-background>>;\n\tborder-left: none;\n\tmargin-left: 50px;\n\tmargin-right: 50px;\n\tpadding: 10px;\n border-radius: 8px;\n}\n\nblockquote.tc-big-quote cite:before {\n\tcontent: \"\\2014 \\2009\";\n}\n\nblockquote.tc-big-quote:before {\n\tfont-family: Georgia, serif;\n\tcolor: <<colour blockquote-bar>>;\n\tcontent: open-quote;\n\tfont-size: 8em;\n\tline-height: 0.1em;\n\tmargin-right: 0.25em;\n\tvertical-align: -0.4em;\n\tposition: absolute;\n left: -50px;\n top: 42px;\n}\n\nblockquote.tc-big-quote:after {\n\tfont-family: Georgia, serif;\n\tcolor: <<colour blockquote-bar>>;\n\tcontent: close-quote;\n\tfont-size: 8em;\n\tline-height: 0.1em;\n\tmargin-right: 0.25em;\n\tvertical-align: -0.4em;\n\tposition: absolute;\n right: -80px;\n bottom: -20px;\n}\n\ndl dt {\n\tfont-weight: bold;\n\tmargin-top: 6px;\n}\n\nbutton, textarea, input, select {\n\toutline-color: <<colour primary>>;\n}\n\ntextarea,\ninput[type=text],\ninput[type=search],\ninput[type=\"\"],\ninput:not([type]) {\n\tcolor: <<colour foreground>>;\n\tbackground: <<colour background>>;\n}\n\ninput[type=\"checkbox\"] {\n vertical-align: middle;\n}\n\n.tc-muted {\n\tcolor: <<colour muted-foreground>>;\n}\n\nsvg.tc-image-button {\n\tpadding: 0px 1px 1px 0px;\n}\n\n.tc-icon-wrapper > svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\nkbd {\n\tdisplay: inline-block;\n\tpadding: 3px 5px;\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tcolor: <<colour foreground>>;\n\tvertical-align: middle;\n\tbackground-color: <<colour background>>;\n\tborder: solid 1px <<colour muted-foreground>>;\n\tborder-bottom-color: <<colour muted-foreground>>;\n\tborder-radius: 3px;\n\tbox-shadow: inset 0 -1px 0 <<colour muted-foreground>>;\n}\n\n/*\nMarkdown likes putting code elements inside pre elements\n*/\npre > code {\n\tpadding: 0;\n\tborder: none;\n\tbackground-color: inherit;\n\tcolor: inherit;\n}\n\ntable {\n\tborder: 1px solid <<colour table-border>>;\n\twidth: auto;\n\tmax-width: 100%;\n\tcaption-side: bottom;\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n}\n\ntable th, table td {\n\tpadding: 0 7px 0 7px;\n\tborder-top: 1px solid <<colour table-border>>;\n\tborder-left: 1px solid <<colour table-border>>;\n}\n\ntable thead tr td, table th {\n\tbackground-color: <<colour table-header-background>>;\n\tfont-weight: bold;\n}\n\ntable tfoot tr td {\n\tbackground-color: <<colour table-footer-background>>;\n}\n\n.tc-csv-table {\n\twhite-space: nowrap;\n}\n\n.tc-tiddler-frame img,\n.tc-tiddler-frame svg,\n.tc-tiddler-frame canvas,\n.tc-tiddler-frame embed,\n.tc-tiddler-frame iframe {\n\tmax-width: 100%;\n}\n\n.tc-tiddler-body > embed,\n.tc-tiddler-body > iframe {\n\twidth: 100%;\n\theight: 600px;\n}\n\n/*\n** Links\n*/\n\nbutton.tc-tiddlylink,\na.tc-tiddlylink {\n\ttext-decoration: none;\n\tfont-weight: 500;\n\tcolor: <<colour tiddler-link-foreground>>;\n\t-webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */\n}\n\n.tc-sidebar-lists a.tc-tiddlylink {\n\tcolor: <<colour sidebar-tiddler-link-foreground>>;\n}\n\n.tc-sidebar-lists a.tc-tiddlylink:hover {\n\tcolor: <<colour sidebar-tiddler-link-foreground-hover>>;\n}\n\nbutton.tc-tiddlylink:hover,\na.tc-tiddlylink:hover {\n\ttext-decoration: underline;\n}\n\na.tc-tiddlylink-resolves {\n}\n\na.tc-tiddlylink-shadow {\n\tfont-weight: bold;\n}\n\na.tc-tiddlylink-shadow.tc-tiddlylink-resolves {\n\tfont-weight: normal;\n}\n\na.tc-tiddlylink-missing {\n\tfont-style: italic;\n}\n\na.tc-tiddlylink-external {\n\ttext-decoration: underline;\n\tcolor: <<colour external-link-foreground>>;\n\tbackground-color: <<colour external-link-background>>;\n}\n\na.tc-tiddlylink-external:visited {\n\tcolor: <<colour external-link-foreground-visited>>;\n\tbackground-color: <<colour external-link-background-visited>>;\n}\n\na.tc-tiddlylink-external:hover {\n\tcolor: <<colour external-link-foreground-hover>>;\n\tbackground-color: <<colour external-link-background-hover>>;\n}\n\n/*\n** Drag and drop styles\n*/\n\n.tc-tiddler-dragger {\n\tposition: relative;\n\tz-index: -10000;\n}\n\n.tc-tiddler-dragger-inner {\n\tposition: absolute;\n\ttop: -1000px;\n\tleft: -1000px;\n\tdisplay: inline-block;\n\tpadding: 8px 20px;\n\tfont-size: 16.9px;\n\tfont-weight: bold;\n\tline-height: 20px;\n\tcolor: <<colour dragger-foreground>>;\n\ttext-shadow: 0 1px 0 rgba(0, 0, 0, 1);\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour dragger-background>>;\n\tborder-radius: 20px;\n}\n\n.tc-tiddler-dragger-cover {\n\tposition: absolute;\n\tbackground-color: <<colour page-background>>;\n}\n\n.tc-dropzone {\n\tposition: relative;\n}\n\n.tc-dropzone.tc-dragover:before {\n\tz-index: 10000;\n\tdisplay: block;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbackground: <<colour dropzone-background>>;\n\ttext-align: center;\n\tcontent: \"<<lingo DropMessage>>\";\n}\n\n.tc-droppable > .tc-droppable-placeholder {\n\tdisplay: none;\n}\n\n.tc-droppable.tc-dragover > .tc-droppable-placeholder {\n\tdisplay: block;\n\tborder: 2px dashed <<colour dropzone-background>>;\n}\n\n.tc-draggable {\n\tcursor: move;\n}\n\n.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder,\n.tc-links-draggable-list .tc-droppable-placeholder {\n\tline-height: 2em;\n\theight: 2em;\n}\n\n.tc-sidebar-tab-open-item {\n\tposition: relative;\n}\n\n.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg {\n\tfont-size: 0.7em;\n\tfill: <<colour muted-foreground>>;\n}\n\n/*\n** Plugin reload warning\n*/\n\n.tc-plugin-reload-warning {\n\tz-index: 1000;\n\tdisplay: block;\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbackground: <<colour alert-background>>;\n\ttext-align: center;\n}\n\n/*\n** Buttons\n*/\n\nbutton svg, button img, label svg, label img {\n\tvertical-align: middle;\n}\n\n.tc-btn-invisible {\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n \tcursor: pointer;\n\tcolor: <<colour foreground>>;\n}\n\n.tc-btn-boxed {\n\tfont-size: 0.6em;\n\tpadding: 0.2em;\n\tmargin: 1px;\n\tbackground: none;\n\tborder: 1px solid <<colour tiddler-controls-foreground>>;\n\tborder-radius: 0.25em;\n}\n\nhtml body.tc-body .tc-btn-boxed svg {\n\tfont-size: 1.6666em;\n}\n\n.tc-btn-boxed:hover {\n\tbackground: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n}\n\nhtml body.tc-body .tc-btn-boxed:hover svg {\n\tfill: <<colour background>>;\n}\n\n.tc-btn-rounded {\n\tfont-size: 0.5em;\n\tline-height: 2;\n\tpadding: 0em 0.3em 0.2em 0.4em;\n\tmargin: 1px;\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n\tborder-radius: 2em;\n}\n\nhtml body.tc-body .tc-btn-rounded svg {\n\tfont-size: 1.6666em;\n\tfill: <<colour background>>;\n}\n\n.tc-btn-rounded:hover {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour background>>;\n\tcolor: <<colour muted-foreground>>;\n}\n\nhtml body.tc-body .tc-btn-rounded:hover svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-icon svg {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-text {\n\tpadding: 0;\n\tmargin: 0;\n}\n\n/* used for documentation \"fake\" buttons */\n.tc-btn-standard {\n\tline-height: 1.8;\n\tcolor: #667;\n\tbackground-color: #e0e0e0;\n\tborder: 1px solid #888;\n\tpadding: 2px 1px 2px 1px;\n\tmargin: 1px 4px 1px 4px;\n}\n\n.tc-btn-big-green {\n\tdisplay: inline-block;\n\tpadding: 8px;\n\tmargin: 4px 8px 4px 8px;\n\tbackground: <<colour download-background>>;\n\tcolor: <<colour download-foreground>>;\n\tfill: <<colour download-foreground>>;\n\tborder: none;\n\tborder-radius: 2px;\n\tfont-size: 1.2em;\n\tline-height: 1.4em;\n\ttext-decoration: none;\n}\n\n.tc-btn-big-green svg,\n.tc-btn-big-green img {\n\theight: 2em;\n\twidth: 2em;\n\tvertical-align: middle;\n\tfill: <<colour download-foreground>>;\n}\n\n.tc-primary-btn {\n \tbackground: <<colour primary>>;\n}\n\n.tc-sidebar-lists input {\n\tcolor: <<colour foreground>>;\n}\n\n.tc-sidebar-lists button {\n\tcolor: <<colour sidebar-button-foreground>>;\n\tfill: <<colour sidebar-button-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini {\n\tcolor: <<colour sidebar-muted-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini:hover {\n\tcolor: <<colour sidebar-muted-foreground-hover>>;\n}\n\nbutton svg.tc-image-button, button .tc-image-button img {\n\theight: 1em;\n\twidth: 1em;\n}\n\n.tc-unfold-banner {\n\tposition: absolute;\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n\twidth: 100%;\n\twidth: calc(100% + 2px);\n\tmargin-left: -43px;\n\ttext-align: center;\n\tborder-top: 2px solid <<colour tiddler-info-background>>;\n\tmargin-top: 4px;\n}\n\n.tc-unfold-banner:hover {\n\tbackground: <<colour tiddler-info-background>>;\n\tborder-top: 2px solid <<colour tiddler-info-border>>;\n}\n\n.tc-unfold-banner svg, .tc-fold-banner svg {\n\theight: 0.75em;\n\tfill: <<colour tiddler-controls-foreground>>;\n}\n\n.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg {\n\tfill: <<colour tiddler-controls-foreground-hover>>;\n}\n\n.tc-fold-banner {\n\tposition: absolute;\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n\twidth: 23px;\n\ttext-align: center;\n\tmargin-left: -35px;\n\ttop: 6px;\n\tbottom: 6px;\n}\n\n.tc-fold-banner:hover {\n\tbackground: <<colour tiddler-info-background>>;\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-unfold-banner {\n\t\tposition: static;\n\t\twidth: calc(100% + 59px);\n\t}\n\n\t.tc-fold-banner {\n\t\twidth: 16px;\n\t\tmargin-left: -16px;\n\t\tfont-size: 0.75em;\n\t}\n\n}\n\n/*\n** Tags and missing tiddlers\n*/\n\n.tc-tag-list-item {\n\tposition: relative;\n\tdisplay: inline-block;\n\tmargin-right: 7px;\n}\n\n.tc-tags-wrapper {\n\tmargin: 4px 0 14px 0;\n}\n\n.tc-missing-tiddler-label {\n\tfont-style: italic;\n\tfont-weight: normal;\n\tdisplay: inline-block;\n\tfont-size: 11.844px;\n\tline-height: 14px;\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n}\n\nbutton.tc-tag-label, span.tc-tag-label {\n\tdisplay: inline-block;\n\tpadding: 0.16em 0.7em;\n\tfont-size: 0.9em;\n\tfont-weight: 400;\n\tline-height: 1.2em;\n\tcolor: <<colour tag-foreground>>;\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour tag-background>>;\n\tborder-radius: 1em;\n}\n\n.tc-sidebar-scrollable .tc-tag-label {\n\ttext-shadow: none;\n}\n\n.tc-untagged-separator {\n\twidth: 10em;\n\tleft: 0;\n\tmargin-left: 0;\n\tborder: 0;\n\theight: 1px;\n\tbackground: <<colour tab-divider>>;\n}\n\nbutton.tc-untagged-label {\n\tbackground-color: <<colour untagged-background>>;\n}\n\n.tc-tag-label svg, .tc-tag-label img {\n\theight: 1em;\n\twidth: 1em;\n\tvertical-align: text-bottom;\n}\n\n.tc-edit-tags button.tc-remove-tag-button svg {\n\tfont-size: 0.7em;\n\tvertical-align: middle;\n}\n\n.tc-tag-manager-table .tc-tag-label {\n\twhite-space: normal;\n}\n\n.tc-tag-manager-tag {\n\twidth: 100%;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button {\n\toutline: none;\n}\n\n/*\n** Page layout\n*/\n\n.tc-topbar {\n\tposition: fixed;\n\tz-index: 1200;\n}\n\n.tc-topbar-left {\n\tleft: 29px;\n\ttop: 5px;\n}\n\n.tc-topbar-right {\n\ttop: 5px;\n\tright: 29px;\n}\n\n.tc-topbar button {\n\tpadding: 8px;\n}\n\n.tc-topbar svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-topbar button:hover svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-sidebar-header {\n\tcolor: <<colour sidebar-foreground>>;\n\tfill: <<colour sidebar-foreground>>;\n}\n\n.tc-sidebar-header .tc-title a.tc-tiddlylink-resolves {\n\tfont-weight: 300;\n}\n\n.tc-sidebar-header .tc-sidebar-lists p {\n\tmargin-top: 3px;\n\tmargin-bottom: 3px;\n}\n\n.tc-sidebar-header .tc-missing-tiddler-label {\n\tcolor: <<colour sidebar-foreground>>;\n}\n\n.tc-advanced-search input {\n\twidth: 60%;\n}\n\n.tc-search a svg {\n\twidth: 1.2em;\n\theight: 1.2em;\n\tvertical-align: middle;\n}\n\n.tc-page-controls {\n\tmargin-top: 14px;\n\tfont-size: 1.5em;\n}\n\n.tc-page-controls .tc-drop-down {\n font-size: 1rem;\n}\n\n.tc-page-controls button {\n\tmargin-right: 0.5em;\n}\n\n.tc-page-controls a.tc-tiddlylink:hover {\n\ttext-decoration: none;\n}\n\n.tc-page-controls img {\n\twidth: 1em;\n}\n\n.tc-page-controls svg {\n\tfill: <<colour sidebar-controls-foreground>>;\n}\n\n.tc-page-controls button:hover svg, .tc-page-controls a:hover svg {\n\tfill: <<colour sidebar-controls-foreground-hover>>;\n}\n\n.tc-menu-list-item {\n\twhite-space: nowrap;\n}\n\n.tc-menu-list-count {\n\tfont-weight: bold;\n}\n\n.tc-menu-list-subitem {\n\tpadding-left: 7px;\n}\n\n.tc-story-river {\n\tposition: relative;\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-sidebar-header {\n\t\tpadding: 14px;\n\t\tmin-height: 32px;\n\t\tmargin-top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};\n\t}\n\n\t.tc-story-river {\n\t\tposition: relative;\n\t\tpadding: 0;\n\t}\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-message-box {\n\t\tmargin: 21px -21px 21px -21px;\n\t}\n\n\t.tc-sidebar-scrollable {\n\t\tposition: fixed;\n\t\ttop: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};\n\t\tleft: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};\n\t\tbottom: 0;\n\t\tright: 0;\n\t\toverflow-y: auto;\n\t\toverflow-x: auto;\n\t\t-webkit-overflow-scrolling: touch;\n\t\tmargin: 0 0 0 -42px;\n\t\tpadding: 71px 0 28px 42px;\n\t}\n\n\thtml[dir=\"rtl\"] .tc-sidebar-scrollable {\n\t\tleft: auto;\n\t\tright: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};\n\t}\n\n\t.tc-story-river {\n\t\tposition: relative;\n\t\tleft: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};\n\t\ttop: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};\n\t\twidth: {{$:/themes/tiddlywiki/vanilla/metrics/storywidth}};\n\t\tpadding: 42px 42px 42px 42px;\n\t}\n\n<<if-no-sidebar \"\n\n\t.tc-story-river {\n\t\twidth: calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}});\n\t}\n\n\">>\n\n}\n\n@media print {\n\n\tbody.tc-body {\n\t\tbackground-color: transparent;\n\t}\n\n\t.tc-sidebar-header, .tc-topbar {\n\t\tdisplay: none;\n\t}\n\n\t.tc-story-river {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.tc-story-river .tc-tiddler-frame {\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tpadding: 0;\n\t}\n}\n\n/*\n** Tiddler styles\n*/\n\n.tc-tiddler-frame {\n\tposition: relative;\n\tmargin-bottom: 28px;\n\tbackground-color: <<colour tiddler-background>>;\n\tborder: 1px solid <<colour tiddler-border>>;\n}\n\n{{$:/themes/tiddlywiki/vanilla/sticky}}\n\n.tc-tiddler-info {\n\tpadding: 14px 42px 14px 42px;\n\tbackground-color: <<colour tiddler-info-background>>;\n\tborder-top: 1px solid <<colour tiddler-info-border>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-border>>;\n}\n\n.tc-tiddler-info p {\n\tmargin-top: 3px;\n\tmargin-bottom: 3px;\n}\n\n.tc-tiddler-info .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour tiddler-info-tab-background>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-tab-background>>;\n}\n\n.tc-view-field-table {\n\twidth: 100%;\n}\n\n.tc-view-field-name {\n\twidth: 1%; /* Makes this column be as narrow as possible */\n\ttext-align: right;\n\tfont-style: italic;\n\tfont-weight: 200;\n}\n\n.tc-view-field-value {\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\tpadding: 14px 14px 14px 14px;\n\t}\n\n\t.tc-tiddler-info {\n\t\tmargin: 0 -14px 0 -14px;\n\t}\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\tpadding: 28px 42px 42px 42px;\n\t\twidth: {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}};\n\t\tborder-radius: 2px;\n\t}\n\n<<if-no-sidebar \"\n\n\t.tc-tiddler-frame {\n\t\twidth: 100%;\n\t}\n\n\">>\n\n\t.tc-tiddler-info {\n\t\tmargin: 0 -42px 0 -42px;\n\t}\n}\n\n.tc-site-title,\n.tc-titlebar {\n\tfont-weight: 300;\n\tfont-size: 2.35em;\n\tline-height: 1.2em;\n\tcolor: <<colour tiddler-title-foreground>>;\n\tmargin: 0;\n}\n\n.tc-site-title {\n\tcolor: <<colour site-title-foreground>>;\n}\n\n.tc-tiddler-title-icon {\n\tvertical-align: middle;\n}\n\n.tc-system-title-prefix {\n\tcolor: <<colour muted-foreground>>;\n}\n\n.tc-titlebar h2 {\n\tfont-size: 1em;\n\tdisplay: inline;\n}\n\n.tc-titlebar img {\n\theight: 1em;\n}\n\n.tc-subtitle {\n\tfont-size: 0.9em;\n\tcolor: <<colour tiddler-subtitle-foreground>>;\n\tfont-weight: 300;\n}\n\n.tc-tiddler-missing .tc-title {\n font-style: italic;\n font-weight: normal;\n}\n\n.tc-tiddler-frame .tc-tiddler-controls {\n\tfloat: right;\n}\n\n.tc-tiddler-controls .tc-drop-down {\n\tfont-size: 0.6em;\n}\n\n.tc-tiddler-controls .tc-drop-down .tc-drop-down {\n\tfont-size: 1em;\n}\n\n.tc-tiddler-controls > span > button,\n.tc-tiddler-controls > span > span > button,\n.tc-tiddler-controls > span > span > span > button {\n\tvertical-align: baseline;\n\tmargin-left:5px;\n}\n\n.tc-tiddler-controls button svg, .tc-tiddler-controls button img,\n.tc-search button svg, .tc-search a svg {\n\tfill: <<colour tiddler-controls-foreground>>;\n}\n\n.tc-tiddler-controls button svg, .tc-tiddler-controls button img {\n\theight: 0.75em;\n}\n\n.tc-search button svg, .tc-search a svg {\n height: 1.2em;\n width: 1.2em;\n margin: 0 0.25em;\n}\n\n.tc-tiddler-controls button.tc-selected svg,\n.tc-page-controls button.tc-selected svg {\n\tfill: <<colour tiddler-controls-foreground-selected>>;\n}\n\n.tc-tiddler-controls button.tc-btn-invisible:hover svg,\n.tc-search button:hover svg, .tc-search a:hover svg {\n\tfill: <<colour tiddler-controls-foreground-hover>>;\n}\n\n@media print {\n\t.tc-tiddler-controls {\n\t\tdisplay: none;\n\t}\n}\n\n.tc-tiddler-help { /* Help prompts within tiddler template */\n\tcolor: <<colour muted-foreground>>;\n\tmargin-top: 14px;\n}\n\n.tc-tiddler-help a.tc-tiddlylink {\n\tcolor: <<colour very-muted-foreground>>;\n}\n\n.tc-tiddler-frame .tc-edit-texteditor {\n\twidth: 100%;\n\tmargin: 4px 0 4px 0;\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor,\n.tc-tiddler-frame textarea.tc-edit-texteditor,\n.tc-tiddler-frame iframe.tc-edit-texteditor {\n\tpadding: 3px 3px 3px 3px;\n\tborder: 1px solid <<colour tiddler-editor-border>>;\n\tbackground-color: <<colour tiddler-editor-background>>;\n\tline-height: 1.3em;\n\t-webkit-appearance: none;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};\n}\n\n.tc-tiddler-frame .tc-binary-warning {\n\twidth: 100%;\n\theight: 5em;\n\ttext-align: center;\n\tpadding: 3em 3em 6em 3em;\n\tbackground: <<colour alert-background>>;\n\tborder: 1px solid <<colour alert-border>>;\n}\n\ncanvas.tc-edit-bitmapeditor {\n\tborder: 6px solid <<colour tiddler-editor-border-image>>;\n\tcursor: crosshair;\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tmargin-top: 6px;\n\tmargin-bottom: 6px;\n}\n\n.tc-edit-bitmapeditor-width {\n\tdisplay: block;\n}\n\n.tc-edit-bitmapeditor-height {\n\tdisplay: block;\n}\n\n.tc-tiddler-body {\n\tclear: both;\n}\n\n.tc-tiddler-frame .tc-tiddler-body {\n\tfont-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}};\n\tline-height: {{$:/themes/tiddlywiki/vanilla/metrics/bodylineheight}};\n}\n\n.tc-titlebar, .tc-tiddler-edit-title {\n\toverflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */\n}\n\nhtml body.tc-body.tc-single-tiddler-window {\n\tmargin: 1em;\n\tbackground: <<colour tiddler-background>>;\n}\n\n.tc-single-tiddler-window img,\n.tc-single-tiddler-window svg,\n.tc-single-tiddler-window canvas,\n.tc-single-tiddler-window embed,\n.tc-single-tiddler-window iframe {\n\tmax-width: 100%;\n}\n\n/*\n** Editor\n*/\n\n.tc-editor-toolbar {\n\tmargin-top: 8px;\n}\n\n.tc-editor-toolbar button {\n\tvertical-align: middle;\n\tbackground-color: <<colour tiddler-controls-foreground>>;\n\tcolor: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour tiddler-controls-foreground-selected>>;\n\tborder-radius: 4px;\n\tpadding: 3px;\n\tmargin: 2px 0 2px 4px;\n}\n\n.tc-editor-toolbar button.tc-text-editor-toolbar-item-adjunct {\n\tmargin-left: 1px;\n\twidth: 1em;\n\tborder-radius: 8px;\n}\n\n.tc-editor-toolbar button.tc-text-editor-toolbar-item-start-group {\n\tmargin-left: 11px;\n}\n\n.tc-editor-toolbar button.tc-selected {\n\tbackground-color: <<colour primary>>;\n}\n\n.tc-editor-toolbar button svg {\n\twidth: 1.6em;\n\theight: 1.2em;\n}\n\n.tc-editor-toolbar button:hover {\n\tbackground-color: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour background>>;\n\tcolor: <<colour background>>;\n}\n\n.tc-editor-toolbar .tc-text-editor-toolbar-more {\n\twhite-space: normal;\n}\n\n.tc-editor-toolbar .tc-text-editor-toolbar-more button {\n\tdisplay: inline-block;\n\tpadding: 3px;\n\twidth: auto;\n}\n\n.tc-editor-toolbar .tc-search-results {\n\tpadding: 0;\n}\n\n/*\n** Adjustments for fluid-fixed mode\n*/\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n<<if-fluid-fixed text:\"\"\"\n\n\t.tc-story-river {\n\t\tpadding-right: 0;\n\t\tposition: relative;\n\t\twidth: auto;\n\t\tleft: 0;\n\t\tmargin-left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};\n\t\tmargin-right: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};\n\t}\n\n\t.tc-tiddler-frame {\n\t\twidth: 100%;\n\t}\n\n\t.tc-sidebar-scrollable {\n\t\tleft: auto;\n\t\tbottom: 0;\n\t\tright: 0;\n\t\twidth: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};\n\t}\n\n\tbody.tc-body .tc-storyview-zoomin-tiddler {\n\t\twidth: 100%;\n\t\twidth: calc(100% - 42px);\n\t}\n\n\"\"\" hiddenSidebarText:\"\"\"\n\n\t.tc-story-river {\n\t\tpadding-right: 3em;\n\t\tmargin-right: 0;\n\t}\n\n\tbody.tc-body .tc-storyview-zoomin-tiddler {\n\t\twidth: 100%;\n\t\twidth: calc(100% - 84px);\n\t}\n\n\"\"\">>\n\n}\n\n/*\n** Toolbar buttons\n*/\n\n.tc-page-controls svg.tc-image-new-button {\n fill: <<colour toolbar-new-button>>;\n}\n\n.tc-page-controls svg.tc-image-options-button {\n fill: <<colour toolbar-options-button>>;\n}\n\n.tc-page-controls svg.tc-image-save-button {\n fill: <<colour toolbar-save-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-info-button {\n fill: <<colour toolbar-info-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-edit-button {\n fill: <<colour toolbar-edit-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-close-button {\n fill: <<colour toolbar-close-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-delete-button {\n fill: <<colour toolbar-delete-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-cancel-button {\n fill: <<colour toolbar-cancel-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-done-button {\n fill: <<colour toolbar-done-button>>;\n}\n\n/*\n** Tiddler edit mode\n*/\n\n.tc-tiddler-edit-frame em.tc-edit {\n\tcolor: <<colour muted-foreground>>;\n\tfont-style: normal;\n}\n\n.tc-edit-type-dropdown a.tc-tiddlylink-missing {\n\tfont-style: normal;\n}\n\n.tc-edit-tags {\n\tborder: 1px solid <<colour tiddler-editor-border>>;\n\tpadding: 4px 8px 4px 8px;\n}\n\n.tc-edit-add-tag {\n\tdisplay: inline-block;\n}\n\n.tc-edit-add-tag .tc-add-tag-name input {\n\twidth: 50%;\n}\n\n.tc-edit-add-tag .tc-keyboard {\n\tdisplay:inline;\n}\n\n.tc-edit-tags .tc-tag-label {\n\tdisplay: inline-block;\n}\n\n.tc-edit-tags-list {\n\tmargin: 14px 0 14px 0;\n}\n\n.tc-remove-tag-button {\n\tpadding-left: 4px;\n}\n\n.tc-tiddler-preview {\n\toverflow: auto;\n}\n\n.tc-tiddler-preview-preview {\n\tfloat: right;\n\twidth: 49%;\n\tborder: 1px solid <<colour tiddler-editor-border>>;\n\tmargin: 4px 0 3px 3px;\n\tpadding: 3px 3px 3px 3px;\n}\n\n<<if-editor-height-fixed then:\"\"\"\n\n.tc-tiddler-preview-preview {\n\toverflow-y: scroll;\n\theight: {{$:/config/TextEditor/EditorHeight/Height}};\n}\n\n\"\"\">>\n\n.tc-tiddler-frame .tc-tiddler-preview .tc-edit-texteditor {\n\twidth: 49%;\n}\n\n.tc-tiddler-frame .tc-tiddler-preview canvas.tc-edit-bitmapeditor {\n\tmax-width: 49%;\n}\n\n.tc-edit-fields {\n\twidth: 100%;\n}\n\n\n.tc-edit-fields table, .tc-edit-fields tr, .tc-edit-fields td {\n\tborder: none;\n\tpadding: 4px;\n}\n\n.tc-edit-fields > tbody > .tc-edit-field:nth-child(odd) {\n\tbackground-color: <<colour tiddler-editor-fields-odd>>;\n}\n\n.tc-edit-fields > tbody > .tc-edit-field:nth-child(even) {\n\tbackground-color: <<colour tiddler-editor-fields-even>>;\n}\n\n.tc-edit-field-name {\n\ttext-align: right;\n}\n\n.tc-edit-field-value input {\n\twidth: 100%;\n}\n\n.tc-edit-field-remove {\n}\n\n.tc-edit-field-remove svg {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n\tvertical-align: middle;\n}\n\n.tc-edit-field-add-name {\n\tdisplay: inline-block;\n\twidth: 15%;\n}\n\n.tc-edit-field-add-value {\n\tdisplay: inline-block;\n\twidth: 40%;\n}\n\n.tc-edit-field-add-button {\n\tdisplay: inline-block;\n\twidth: 10%;\n}\n\n/*\n** Storyview Classes\n*/\n\n.tc-storyview-zoomin-tiddler {\n\tposition: absolute;\n\tdisplay: block;\n\twidth: 100%;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-storyview-zoomin-tiddler {\n\t\twidth: calc(100% - 84px);\n\t}\n\n}\n\n/*\n** Dropdowns\n*/\n\n.tc-btn-dropdown {\n\ttext-align: left;\n}\n\n.tc-btn-dropdown svg, .tc-btn-dropdown img {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-drop-down-wrapper {\n\tposition: relative;\n}\n\n.tc-drop-down {\n\tmin-width: 380px;\n\tborder: 1px solid <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\n\tpadding: 7px 0 7px 0;\n\tmargin: 4px 0 0 0;\n\twhite-space: nowrap;\n\ttext-shadow: none;\n\tline-height: 1.4;\n}\n\n.tc-drop-down .tc-drop-down {\n\tmargin-left: 14px;\n}\n\n.tc-drop-down button svg, .tc-drop-down a svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-drop-down button.tc-btn-invisible:hover svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-drop-down p {\n\tpadding: 0 14px 0 14px;\n}\n\n.tc-drop-down svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-drop-down img {\n\twidth: 1em;\n}\n\n.tc-drop-down a, .tc-drop-down button {\n\tdisplay: block;\n\tpadding: 0 14px 0 14px;\n\twidth: 100%;\n\ttext-align: left;\n\tcolor: <<colour foreground>>;\n\tline-height: 1.4;\n}\n\n.tc-drop-down .tc-tab-set .tc-tab-buttons button {\n\tdisplay: inline-block;\n width: auto;\n margin-bottom: 0px;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.tc-drop-down .tc-prompt {\n\tpadding: 0 14px;\n}\n\n.tc-drop-down .tc-chooser {\n\tborder: none;\n}\n\n.tc-drop-down .tc-chooser .tc-swatches-horiz {\n\tfont-size: 0.4em;\n\tpadding-left: 1.2em;\n}\n\n.tc-drop-down .tc-file-input-wrapper {\n\twidth: 100%;\n}\n\n.tc-drop-down .tc-file-input-wrapper button {\n\tcolor: <<colour foreground>>;\n}\n\n.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\n\ttext-decoration: none;\n}\n\n.tc-drop-down .tc-tab-buttons button {\n\tbackground-color: <<colour dropdown-tab-background>>;\n}\n\n.tc-drop-down .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour dropdown-tab-background-selected>>;\n\tborder-bottom: 1px solid <<colour dropdown-tab-background-selected>>;\n}\n\n.tc-drop-down-bullet {\n\tdisplay: inline-block;\n\twidth: 0.5em;\n}\n\n.tc-drop-down .tc-tab-contents a {\n\tpadding: 0 0.5em 0 0.5em;\n}\n\n.tc-block-dropdown-wrapper {\n\tposition: relative;\n}\n\n.tc-block-dropdown {\n\tposition: absolute;\n\tmin-width: 220px;\n\tborder: 1px solid <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\n\tpadding: 7px 0;\n\tmargin: 4px 0 0 0;\n\twhite-space: nowrap;\n\tz-index: 1000;\n\ttext-shadow: none;\n}\n\n.tc-block-dropdown.tc-search-drop-down {\n\tmargin-left: -12px;\n}\n\n.tc-block-dropdown a {\n\tdisplay: block;\n\tpadding: 4px 14px 4px 14px;\n}\n\n.tc-block-dropdown.tc-search-drop-down a {\n\tdisplay: block;\n\tpadding: 0px 10px 0px 10px;\n}\n\n.tc-drop-down .tc-dropdown-item-plain,\n.tc-block-dropdown .tc-dropdown-item-plain {\n\tpadding: 4px 14px 4px 7px;\n}\n\n.tc-drop-down .tc-dropdown-item,\n.tc-block-dropdown .tc-dropdown-item {\n\tpadding: 4px 14px 4px 7px;\n\tcolor: <<colour muted-foreground>>;\n}\n\n.tc-block-dropdown a:hover {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\n\ttext-decoration: none;\n}\n\n.tc-search-results {\n\tpadding: 0 7px 0 7px;\n}\n\n.tc-image-chooser, .tc-colour-chooser {\n\twhite-space: normal;\n}\n\n.tc-image-chooser a,\n.tc-colour-chooser a {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\ttext-align: center;\n\tposition: relative;\n}\n\n.tc-image-chooser a {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tpadding: 2px;\n\tmargin: 2px;\n\twidth: 4em;\n\theight: 4em;\n}\n\n.tc-colour-chooser a {\n\tpadding: 3px;\n\twidth: 2em;\n\theight: 2em;\n\tvertical-align: middle;\n}\n\n.tc-image-chooser a:hover,\n.tc-colour-chooser a:hover {\n\tbackground: <<colour primary>>;\n\tpadding: 0px;\n\tborder: 3px solid <<colour primary>>;\n}\n\n.tc-image-chooser a svg,\n.tc-image-chooser a img {\n\tdisplay: inline-block;\n\twidth: auto;\n\theight: auto;\n\tmax-width: 3.5em;\n\tmax-height: 3.5em;\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tmargin: auto;\n}\n\n/*\n** Modals\n*/\n\n.tc-modal-wrapper {\n\tposition: fixed;\n\toverflow: auto;\n\toverflow-y: scroll;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tz-index: 900;\n}\n\n.tc-modal-backdrop {\n\tposition: fixed;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tz-index: 1000;\n\tbackground-color: <<colour modal-backdrop>>;\n}\n\n.tc-modal {\n\tz-index: 1100;\n\tbackground-color: <<colour modal-background>>;\n\tborder: 1px solid <<colour modal-border>>;\n}\n\n@media (max-width: 55em) {\n\t.tc-modal {\n\t\tposition: fixed;\n\t\ttop: 1em;\n\t\tleft: 1em;\n\t\tright: 1em;\n\t}\n\n\t.tc-modal-body {\n\t\toverflow-y: auto;\n\t\tmax-height: 400px;\n\t\tmax-height: 60vh;\n\t}\n}\n\n@media (min-width: 55em) {\n\t.tc-modal {\n\t\tposition: fixed;\n\t\ttop: 2em;\n\t\tleft: 25%;\n\t\twidth: 50%;\n\t}\n\n\t.tc-modal-body {\n\t\toverflow-y: auto;\n\t\tmax-height: 400px;\n\t\tmax-height: 60vh;\n\t}\n}\n\n.tc-modal-header {\n\tpadding: 9px 15px;\n\tborder-bottom: 1px solid <<colour modal-header-border>>;\n}\n\n.tc-modal-header h3 {\n\tmargin: 0;\n\tline-height: 30px;\n}\n\n.tc-modal-header img, .tc-modal-header svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-modal-body {\n\tpadding: 15px;\n}\n\n.tc-modal-footer {\n\tpadding: 14px 15px 15px;\n\tmargin-bottom: 0;\n\ttext-align: right;\n\tbackground-color: <<colour modal-footer-background>>;\n\tborder-top: 1px solid <<colour modal-footer-border>>;\n}\n\n/*\n** Notifications\n*/\n\n.tc-notification {\n\tposition: fixed;\n\ttop: 14px;\n\tright: 42px;\n\tz-index: 1300;\n\tmax-width: 280px;\n\tpadding: 0 14px 0 14px;\n\tbackground-color: <<colour notification-background>>;\n\tborder: 1px solid <<colour notification-border>>;\n}\n\n/*\n** Tabs\n*/\n\n.tc-tab-set.tc-vertical {\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n}\n\n.tc-tab-buttons {\n\tfont-size: 0.85em;\n\tpadding-top: 1em;\n\tmargin-bottom: -2px;\n}\n\n.tc-tab-buttons.tc-vertical {\n\tz-index: 100;\n\tdisplay: block;\n\tpadding-top: 14px;\n\tvertical-align: top;\n\ttext-align: right;\n\tmargin-bottom: inherit;\n\tmargin-right: -1px;\n\tmax-width: 33%;\n\t-webkit-flex: 0 0 auto;\n\tflex: 0 0 auto;\n}\n\n.tc-tab-buttons button.tc-tab-selected {\n\tcolor: <<colour tab-foreground-selected>>;\n\tbackground-color: <<colour tab-background-selected>>;\n\tborder-left: 1px solid <<colour tab-border-selected>>;\n\tborder-top: 1px solid <<colour tab-border-selected>>;\n\tborder-right: 1px solid <<colour tab-border-selected>>;\n}\n\n.tc-tab-buttons button {\n\tcolor: <<colour tab-foreground>>;\n\tpadding: 3px 5px 3px 5px;\n\tmargin-right: 0.3em;\n\tfont-weight: 300;\n\tborder: none;\n\tbackground: inherit;\n\tbackground-color: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-right: 1px solid <<colour tab-border>>;\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n}\n\n.tc-tab-buttons.tc-vertical button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin-top: 3px;\n\tmargin-right: 0;\n\ttext-align: right;\n\tbackground-color: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tborder-right: none;\n\tborder-top-left-radius: 2px;\n\tborder-bottom-left-radius: 2px;\n\tborder-top-right-radius: 0;\n\tborder-bottom-right-radius: 0;\n}\n\n.tc-tab-buttons.tc-vertical button.tc-tab-selected {\n\tbackground-color: <<colour tab-background-selected>>;\n\tborder-right: 1px solid <<colour tab-background-selected>>;\n}\n\n.tc-tab-divider {\n\tborder-top: 1px solid <<colour tab-divider>>;\n}\n\n.tc-tab-divider.tc-vertical {\n\tdisplay: none;\n}\n\n.tc-tab-content {\n\tmargin-top: 14px;\n}\n\n.tc-tab-content.tc-vertical {\n word-break: break-word;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding-top: 0;\n\tpadding-left: 14px;\n\tborder-left: 1px solid <<colour tab-border>>;\n\t-webkit-flex: 1 0 70%;\n\tflex: 1 0 70%;\n}\n\n.tc-sidebar-lists .tc-tab-buttons {\n\tmargin-bottom: -1px;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\n\tcolor: <<colour sidebar-tab-foreground-selected>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border-selected>>;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button {\n\tbackground-color: <<colour sidebar-tab-background>>;\n\tcolor: <<colour sidebar-tab-foreground>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border>>;\n}\n\n.tc-sidebar-lists .tc-tab-divider {\n\tborder-top: 1px solid <<colour sidebar-tab-divider>>;\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\tdisplay: block;\n\twidth: 100%;\n\tbackground-color: <<colour sidebar-tab-background>>;\n\tborder-top: none;\n\tborder-left: none;\n\tborder-bottom: none;\n\tborder-right: 1px solid #ccc;\n\tmargin-bottom: inherit;\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\n\tborder: none;\n}\n\n/*\n** Manager\n*/\n\n.tc-manager-wrapper {\n\t\n}\n\n.tc-manager-controls {\n\t\n}\n\n.tc-manager-control {\n\tmargin: 0.5em 0;\n}\n\n.tc-manager-list {\n\twidth: 100%;\n\tborder-top: 1px solid <<colour muted-foreground>>;\n\tborder-left: 1px solid <<colour muted-foreground>>;\n\tborder-right: 1px solid <<colour muted-foreground>>;\n}\n\n.tc-manager-list-item {\n\n}\n\n.tc-manager-list-item-heading {\n display: block;\n width: 100%;\n text-align: left;\t\n\tborder-bottom: 1px solid <<colour muted-foreground>>;\n\tpadding: 3px;\n}\n\n.tc-manager-list-item-heading-selected {\n\tfont-weight: bold;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n\tbackground-color: <<colour foreground>>;\n}\n\n.tc-manager-list-item-heading:hover {\n\tbackground: <<colour primary>>;\n\tcolor: <<colour background>>;\n}\n\n.tc-manager-list-item-content {\n\tdisplay: flex;\n}\n\n.tc-manager-list-item-content-sidebar {\n flex: 1 0;\n background: <<colour tiddler-editor-background>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\n white-space: nowrap;\n}\n\n.tc-manager-list-item-content-item-heading {\n\tdisplay: block;\n\twidth: 100%;\n\ttext-align: left;\n background: <<colour muted-foreground>>;\n\ttext-transform: uppercase;\n\tfont-size: 0.6em;\n\tfont-weight: bold;\n padding: 0.5em 0 0.5em 0;\n}\n\n.tc-manager-list-item-content-item-body {\n\tpadding: 0 0.5em 0 0.5em;\n}\n\n.tc-manager-list-item-content-item-body > pre {\n\tmargin: 0.5em 0 0.5em 0;\n\tborder: none;\n\tbackground: inherit;\n}\n\n.tc-manager-list-item-content-tiddler {\n flex: 3 1;\n border-left: 0.5em solid <<colour muted-foreground>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\n}\n\n.tc-manager-list-item-content-item-body > table {\n\tborder: none;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.tc-manager-list-item-content-item-body > table td {\n\tborder: none;\n}\n\n.tc-manager-icon-editor > button {\n\twidth: 100%;\n}\n\n.tc-manager-icon-editor > button > svg,\n.tc-manager-icon-editor > button > button {\n\twidth: 100%;\n\theight: auto;\n}\n\n/*\n** Alerts\n*/\n\n.tc-alerts {\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tmax-width: 500px;\n\tz-index: 20000;\n}\n\n.tc-alert {\n\tposition: relative;\n\tmargin: 28px;\n\tpadding: 14px 14px 14px 14px;\n\tborder: 2px solid <<colour alert-border>>;\n\tbackground-color: <<colour alert-background>>;\n}\n\n.tc-alert-toolbar {\n\tposition: absolute;\n\ttop: 14px;\n\tright: 14px;\n}\n\n.tc-alert-toolbar svg {\n\tfill: <<colour alert-muted-foreground>>;\n}\n\n.tc-alert-subtitle {\n\tcolor: <<colour alert-muted-foreground>>;\n\tfont-weight: bold;\n}\n\n.tc-alert-highlight {\n\tcolor: <<colour alert-highlight>>;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-static-alert {\n\t\tposition: relative;\n\t}\n\n\t.tc-static-alert-inner {\n\t\tposition: absolute;\n\t\tz-index: 100;\n\t}\n\n}\n\n.tc-static-alert-inner {\n\tpadding: 0 2px 2px 42px;\n\tcolor: <<colour static-alert-foreground>>;\n}\n\n/*\n** Floating drafts list\n*/\n\n.tc-drafts-list {\n\tz-index: 2000;\n\tposition: fixed;\n\tfont-size: 0.8em;\n\tleft: 0;\n\tbottom: 0;\n}\n\n.tc-drafts-list a {\n\tmargin: 0 0.5em;\n\tpadding: 4px 4px;\n\tborder-top-left-radius: 4px;\n\tborder-top-right-radius: 4px;\n\tborder: 1px solid <<colour background>>;\n\tborder-bottom-none;\n\tbackground: <<colour dirty-indicator>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a:hover {\n\ttext-decoration: none;\n\tbackground: <<colour foreground>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a svg {\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: text-bottom;\n}\n\n/*\n** Control panel\n*/\n\n.tc-control-panel td {\n\tpadding: 4px;\n}\n\n.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {\n\twidth: 100%;\n}\n\n.tc-plugin-info {\n\tdisplay: block;\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground-colour: <<colour background>>;\n\tmargin: 0.5em 0 0.5em 0;\n\tpadding: 4px;\n}\n\n.tc-plugin-info-disabled {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n\tbackground: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n}\n\n.tc-plugin-info-disabled:hover {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n\tbackground: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n}\n\na.tc-tiddlylink.tc-plugin-info:hover {\n\ttext-decoration: none;\n\tbackground-color: <<colour primary>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour foreground>>;\n}\n\na.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-plugin-info-chunk {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.tc-plugin-info-chunk h1 {\n\tfont-size: 1em;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk h2 {\n\tfont-size: 0.8em;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk div {\n\tfont-size: 0.7em;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info:hover > .tc-plugin-info-chunk > img, .tc-plugin-info:hover > .tc-plugin-info-chunk > svg {\n\twidth: 2em;\n\theight: 2em;\n\tfill: <<colour foreground>>;\n}\n\n.tc-plugin-info > .tc-plugin-info-chunk > img, .tc-plugin-info > .tc-plugin-info-chunk > svg {\n\twidth: 2em;\n\theight: 2em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-plugin-info.tc-small-icon > .tc-plugin-info-chunk > img, .tc-plugin-info.tc-small-icon > .tc-plugin-info-chunk > svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-plugin-info-dropdown {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tmargin-top: -8px;\n}\n\n.tc-plugin-info-dropdown-message {\n\tbackground: <<colour message-background>>;\n\tpadding: 0.5em 1em 0.5em 1em;\n\tfont-weight: bold;\n\tfont-size: 0.8em;\n}\n\n.tc-plugin-info-dropdown-body {\n\tpadding: 1em 1em 1em 1em;\n}\n\n.tc-check-list {\n\tline-height: 2em;\n}\n\n.tc-check-list .tc-image-button {\n\theight: 1.5em;\n}\n\n/*\n** Message boxes\n*/\n\n.tc-message-box {\n\tborder: 1px solid <<colour message-border>>;\n\tbackground: <<colour message-background>>;\n\tpadding: 0px 21px 0px 21px;\n\tfont-size: 12px;\n\tline-height: 18px;\n\tcolor: <<colour message-foreground>>;\n}\n\n.tc-message-box svg {\n\twidth: 1em;\n\theight: 1em;\n vertical-align: text-bottom;\n}\n\n/*\n** Pictures\n*/\n\n.tc-bordered-image {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tpadding: 5px;\n\tmargin: 5px;\n}\n\n/*\n** Floats\n*/\n\n.tc-float-right {\n\tfloat: right;\n}\n\n/*\n** Chooser\n*/\n\n.tc-chooser {\n\tborder-right: 1px solid <<colour table-header-background>>;\n\tborder-left: 1px solid <<colour table-header-background>>;\n}\n\n\n.tc-chooser-item {\n\tborder-bottom: 1px solid <<colour table-header-background>>;\n\tborder-top: 1px solid <<colour table-header-background>>;\n\tpadding: 2px 4px 2px 14px;\n}\n\n.tc-drop-down .tc-chooser-item {\n\tpadding: 2px;\n}\n\n.tc-chosen,\n.tc-chooser-item:hover {\n\tbackground-color: <<colour table-header-background>>;\n\tborder-color: <<colour table-footer-background>>;\n}\n\n.tc-chosen .tc-tiddlylink {\n\tcursor:default;\n}\n\n.tc-chooser-item .tc-tiddlylink {\n\tdisplay: block;\n\ttext-decoration: none;\n\tbackground-color: transparent;\n}\n\n.tc-chooser-item:hover .tc-tiddlylink:hover {\n\ttext-decoration: none;\n}\n\n.tc-drop-down .tc-chosen .tc-tiddlylink,\n.tc-drop-down .tc-chooser-item .tc-tiddlylink:hover {\n\tcolor: <<colour foreground>>;\n}\n\n.tc-chosen > .tc-tiddlylink:before {\n\tmargin-left: -10px;\n\tposition: relative;\n\tcontent: \"» \";\n}\n\n.tc-chooser-item svg,\n.tc-chooser-item img{\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: middle;\n}\n\n.tc-language-chooser .tc-image-button img {\n\twidth: 2em;\n\tvertical-align: -0.15em;\n}\n\n/*\n** Palette swatches\n*/\n\n.tc-swatches-horiz {\n}\n\n.tc-swatches-horiz .tc-swatch {\n\tdisplay: inline-block;\n}\n\n.tc-swatch {\n\twidth: 2em;\n\theight: 2em;\n\tmargin: 0.4em;\n\tborder: 1px solid #888;\n}\n\ninput.tc-palette-manager-colour-input {\n\twidth: 100%;\n\tpadding: 0;\n}\n\n/*\n** Table of contents\n*/\n\n.tc-sidebar-lists .tc-table-of-contents {\n\twhite-space: nowrap;\n}\n\n.tc-table-of-contents button {\n\tcolor: <<colour sidebar-foreground>>;\n}\n\n.tc-table-of-contents svg {\n\twidth: 0.7em;\n\theight: 0.7em;\n\tvertical-align: middle;\n\tfill: <<colour sidebar-foreground>>;\n}\n\n.tc-table-of-contents ol {\n\tlist-style-type: none;\n\tpadding-left: 0;\n}\n\n.tc-table-of-contents ol ol {\n\tpadding-left: 1em;\n}\n\n.tc-table-of-contents li {\n\tfont-size: 1.0em;\n\tfont-weight: bold;\n}\n\n.tc-table-of-contents li a {\n\tfont-weight: bold;\n}\n\n.tc-table-of-contents li li {\n\tfont-size: 0.95em;\n\tfont-weight: normal;\n\tline-height: 1.4;\n}\n\n.tc-table-of-contents li li a {\n\tfont-weight: normal;\n}\n\n.tc-table-of-contents li li li {\n\tfont-size: 0.95em;\n\tfont-weight: 200;\n\tline-height: 1.5;\n}\n\n.tc-table-of-contents li li li li {\n\tfont-size: 0.95em;\n\tfont-weight: 200;\n}\n\n.tc-tabbed-table-of-contents {\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents {\n\tz-index: 100;\n\tdisplay: inline-block;\n\tpadding-left: 1em;\n\tmax-width: 50%;\n\t-webkit-flex: 0 0 auto;\n\tflex: 0 0 auto;\n\tbackground: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a,\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {\n\tdisplay: block;\n\tpadding: 0.12em 1em 0.12em 0.25em;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a {\n\tborder-top: 1px solid <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-background>>;\n\tborder-bottom: 1px solid <<colour tab-background>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover {\n\ttext-decoration: none;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour background>>;\n\tmargin-right: -1px;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a:hover {\n\ttext-decoration: none;\n}\n\n.tc-tabbed-table-of-contents .tc-tabbed-table-of-contents-content {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding-left: 1.5em;\n\tpadding-right: 1.5em;\n\tborder: 1px solid <<colour tab-border>>;\n\t-webkit-flex: 1 0 50%;\n\tflex: 1 0 50%;\n}\n\n/*\n** Dirty indicator\n*/\n\nbody.tc-dirty span.tc-dirty-indicator, body.tc-dirty span.tc-dirty-indicator svg {\n\tfill: <<colour dirty-indicator>>;\n\tcolor: <<colour dirty-indicator>>;\n}\n\n/*\n** File inputs\n*/\n\n.tc-file-input-wrapper {\n\tposition: relative;\n\toverflow: hidden;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.tc-file-input-wrapper input[type=file] {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tfont-size: 999px;\n\tmax-width: 100%;\n\tmax-height: 100%;\n\tfilter: alpha(opacity=0);\n\topacity: 0;\n\toutline: none;\n\tbackground: white;\n\tcursor: pointer;\n\tdisplay: inline-block;\n}\n\n/*\n** Thumbnail macros\n*/\n\n.tc-thumbnail-wrapper {\n\tposition: relative;\n\tdisplay: inline-block;\n\tmargin: 6px;\n\tvertical-align: top;\n}\n\n.tc-thumbnail-right-wrapper {\n\tfloat:right;\n\tmargin: 0.5em 0 0.5em 0.5em;\n}\n\n.tc-thumbnail-image {\n\ttext-align: center;\n\toverflow: hidden;\n\tborder-radius: 3px;\n}\n\n.tc-thumbnail-image svg,\n.tc-thumbnail-image img {\n\tfilter: alpha(opacity=1);\n\topacity: 1;\n\tmin-width: 100%;\n\tmin-height: 100%;\n\tmax-width: 100%;\n}\n\n.tc-thumbnail-wrapper:hover .tc-thumbnail-image svg,\n.tc-thumbnail-wrapper:hover .tc-thumbnail-image img {\n\tfilter: alpha(opacity=0.8);\n\topacity: 0.8;\n}\n\n.tc-thumbnail-background {\n\tposition: absolute;\n\tborder-radius: 3px;\n}\n\n.tc-thumbnail-icon svg,\n.tc-thumbnail-icon img {\n\twidth: 3em;\n\theight: 3em;\n\t<<filter \"drop-shadow(2px 2px 4px rgba(0,0,0,0.3))\">>\n}\n\n.tc-thumbnail-wrapper:hover .tc-thumbnail-icon svg,\n.tc-thumbnail-wrapper:hover .tc-thumbnail-icon img {\n\tfill: #fff;\n\t<<filter \"drop-shadow(3px 3px 4px rgba(0,0,0,0.6))\">>\n}\n\n.tc-thumbnail-icon {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tdisplay: -webkit-flex;\n\t-webkit-align-items: center;\n\t-webkit-justify-content: center;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.tc-thumbnail-caption {\n\tposition: absolute;\n\tbackground-color: #777;\n\tcolor: #fff;\n\ttext-align: center;\n\tbottom: 0;\n\twidth: 100%;\n\tfilter: alpha(opacity=0.9);\n\topacity: 0.9;\n\tline-height: 1.4;\n\tborder-bottom-left-radius: 3px;\n\tborder-bottom-right-radius: 3px;\n}\n\n.tc-thumbnail-wrapper:hover .tc-thumbnail-caption {\n\tfilter: alpha(opacity=1);\n\topacity: 1;\n}\n\n/*\n** Diffs\n*/\n\n.tc-diff-equal {\n\tbackground-color: <<colour diff-equal-background>>;\n\tcolor: <<colour diff-equal-foreground>>;\n}\n\n.tc-diff-insert {\n\tbackground-color: <<colour diff-insert-background>>;\n\tcolor: <<colour diff-insert-foreground>>;\n}\n\n.tc-diff-delete {\n\tbackground-color: <<colour diff-delete-background>>;\n\tcolor: <<colour diff-delete-foreground>>;\n}\n\n.tc-diff-invisible {\n\tbackground-color: <<colour diff-invisible-background>>;\n\tcolor: <<colour diff-invisible-foreground>>;\n}\n\n.tc-diff-tiddlers th {\n\ttext-align: right;\n\tbackground: <<colour background>>;\n\tfont-weight: normal;\n\tfont-style: italic;\n}\n\n.tc-diff-tiddlers pre {\n margin: 0;\n padding: 0;\n border: none;\n background: none;\n}\n\n/*\n** Errors\n*/\n\n.tc-error {\n\tbackground: #f00;\n\tcolor: #fff;\n}\n\n/*\n** Tree macro\n*/\n\n.tc-tree div {\n \tpadding-left: 14px;\n}\n\n.tc-tree ol {\n \tlist-style-type: none;\n \tpadding-left: 0;\n \tmargin-top: 0;\n}\n\n.tc-tree ol ol {\n \tpadding-left: 1em; \n}\n\n.tc-tree button { \n \tcolor: #acacac;\n}\n\n.tc-tree svg {\n \tfill: #acacac;\n}\n\n.tc-tree span svg {\n \twidth: 1em;\n \theight: 1em;\n \tvertical-align: baseline;\n}\n\n.tc-tree li span {\n \tcolor: lightgray;\n}\n\nselect {\n color: <<colour select-tag-foreground>>;\n background: <<colour select-tag-background>>;\n}\n\n"
},
"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize",
"text": "15px"
},
"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/bodylineheight",
"text": "22px"
},
"$:/themes/tiddlywiki/vanilla/metrics/fontsize": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/fontsize",
"text": "14px"
},
"$:/themes/tiddlywiki/vanilla/metrics/lineheight": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/lineheight",
"text": "20px"
},
"$:/themes/tiddlywiki/vanilla/metrics/storyleft": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/storyleft",
"text": "0px"
},
"$:/themes/tiddlywiki/vanilla/metrics/storytop": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/storytop",
"text": "0px"
},
"$:/themes/tiddlywiki/vanilla/metrics/storyright": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/storyright",
"text": "770px"
},
"$:/themes/tiddlywiki/vanilla/metrics/storywidth": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/storywidth",
"text": "770px"
},
"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth",
"text": "686px"
},
"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint",
"text": "960px"
},
"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth": {
"title": "$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth",
"text": "350px"
},
"$:/themes/tiddlywiki/vanilla/options/stickytitles": {
"title": "$:/themes/tiddlywiki/vanilla/options/stickytitles",
"text": "no"
},
"$:/themes/tiddlywiki/vanilla/options/sidebarlayout": {
"title": "$:/themes/tiddlywiki/vanilla/options/sidebarlayout",
"text": "fixed-fluid"
},
"$:/themes/tiddlywiki/vanilla/options/codewrapping": {
"title": "$:/themes/tiddlywiki/vanilla/options/codewrapping",
"text": "pre-wrap"
},
"$:/themes/tiddlywiki/vanilla/reset": {
"title": "$:/themes/tiddlywiki/vanilla/reset",
"type": "text/plain",
"text": "/*! normalize.css v3.0.0 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n * user zoom.\n */\n\nhtml {\n font-family: sans-serif; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/**\n * Remove default margin.\n */\n\nbody {\n margin: 0;\n}\n\n/* HTML5 display definitions\n ========================================================================== */\n\n/**\n * Correct `block` display not defined in IE 8/9.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9.\n * Hide the `template` element in IE, Safari, and Firefox < 22.\n */\n\n[hidden],\ntemplate {\n display: none;\n}\n\n/* Links\n ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n background: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n outline: 0;\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9, Safari 5, and Chrome.\n */\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.\n */\n\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari 5 and Chrome.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari 5, and Chrome.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9.\n */\n\nimg {\n border: 0;\n}\n\n/**\n * Correct overflow displayed oddly in IE 9.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari 5.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n * Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; /* 1 */\n font: inherit; /* 2 */\n margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10.\n */\n\nbutton {\n overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8+, and Opera\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n * and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n * `input` and others.\n */\n\nbutton,\nhtml input[type=\"button\"], /* 1 */\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n line-height: normal;\n}\n\n/**\n * It's recommended that you don't attempt to style these elements.\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome\n * (include `-moz` to future-proof).\n */\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; /* 2 */\n box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9.\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\n */\n\nlegend {\n border: 0; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * Don't inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n font-weight: bold;\n}\n\n/* Tables\n ========================================================================== */\n\n/**\n * Remove most spacing between table cells.\n */\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n"
},
"$:/themes/tiddlywiki/vanilla/settings/fontfamily": {
"title": "$:/themes/tiddlywiki/vanilla/settings/fontfamily",
"text": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\""
},
"$:/themes/tiddlywiki/vanilla/settings/codefontfamily": {
"title": "$:/themes/tiddlywiki/vanilla/settings/codefontfamily",
"text": "\"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier,monospace"
},
"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment": {
"title": "$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment",
"text": "fixed"
},
"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize": {
"title": "$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize",
"text": "auto"
},
"$:/themes/tiddlywiki/vanilla/sticky": {
"title": "$:/themes/tiddlywiki/vanilla/sticky",
"text": "<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\" type=\"match\" text=\"yes\">\n``\n.tc-tiddler-title {\n\tposition: -webkit-sticky;\n\tposition: -moz-sticky;\n\tposition: -o-sticky;\n\tposition: -ms-sticky;\n\tposition: sticky;\n\ttop: 0px;\n\tbackground: ``<<colour tiddler-background>>``;\n\tz-index: 500;\n}\n\n``\n<$list filter=\"[range[100]]\">\n`.tc-story-river .tc-tiddler-frame:nth-child(100n+`<$text text=<<currentTiddler>>/>`) {\nz-index: `<$text text={{{ [[200]subtract<currentTiddler>] }}}/>`;\n}\n`\n</$list>\n</$reveal>\n"
}
}
}
gui: https://vorta.borgbase.com/download/linux/
https://vorta.borgbase.com/usage/remote/
→ vorta needs recent pip3 , python3-distutils-extra etc.
https://www.techgrube.de/programme-und-webdienste/vorta-grafische-benutzeroberflaeche-fuer-borg-backup
https://www.zueschen.eu/ubuntu-backup-mit-borgbackup-teil-2/
https://thomas-leister.de/server-backups-mit-borg/
https://gerl1ng.de/post/borg/
https://decatec.de/linux/backup-strategie-fuer-linux-server-mit-borg-backup/#Off-Shore_Backups
https://help.univention.com/t/how-to-backup-the-mail-server/11454/6
see [[sys:vm:docker:backup:volumes]]
https://github.com/konvergence/duplicity/blob/master/USAGE.md
SCHEME EXAMPLES:
https://fossies.org/linux/privat/duplicity-0.8.04.tar.gz/duplicity-0.8.04/testing/unit/test_backend.py
https://answers.launchpad.net/duplicity/+question/185550
https://askubuntu.com/questions/473124/extract-duplicity-files-manually
http://sashikasuren.blogspot.com/2013/01/duplicity-backup-restore-process.html
https://bugs.launchpad.net/duplicity/+bug/385495
https://bugs.launchpad.net/duplicity/+bug/1544707
https://bugs.launchpad.net/duplicity/+bug/1654756
https://www.synology-wiki.de/index.php/Duplicity
https://blog.ordix.de/technologien/restic
https://synsynack.wordpress.com/2017/08/24/restic-is-probably-the-best-backup-solution-for-nerds/
https://github.com/Mebus/restatic
https://www.hagen-bauer.de/2017/09/backups-mit-restic.html
https://restic.readthedocs.io/en/stable/
/***
|Name|CalendarPlugin|
|Source|http://www.TiddlyTools.com/#CalendarPlugin|
|Version|1.5.1|
|Author|Eric Shulman|
|Original Author|SteveRumsby|
|License|unknown|
|~CoreVersion|2.1|
|Type|plugin|
|Description|display monthly and yearly calendars|
NOTE: For //enhanced// date popup display, optionally install [[DatePlugin]] and [[ReminderMacros]]
!!!Usage:
<<<
|{{{<<calendar>>}}}|full-year calendar for the current year|
|{{{<<calendar year>>}}}|full-year calendar for the specified year|
|{{{<<calendar year month>>}}}|one month calendar for the specified month and year|
|{{{<<calendar thismonth>>}}}|one month calendar for the current month|
|{{{<<calendar lastmonth>>}}}|one month calendar for last month|
|{{{<<calendar nextmonth>>}}}|one month calendar for next month|
|{{{<<calendar +n>>}}}<br>{{{<<calendar -n>>}}}|one month calendar for a month +/- 'n' months from now|
<<<
!!!Configuration:
<<<
|''First day of week:''<br>{{{config.options.txtCalFirstDay}}}|<<option txtCalFirstDay>>|(Monday = 0, Sunday = 6)|
|''First day of weekend:''<br>{{{config.options.txtCalStartOfWeekend}}}|<<option txtCalStartOfWeekend>>|(Monday = 0, Sunday = 6)|
<<option chkDisplayWeekNumbers>> Display week numbers //(note: Monday will be used as the start of the week)//
|''Week number display format:''<br>{{{config.options.txtWeekNumberDisplayFormat }}}|<<option txtWeekNumberDisplayFormat >>|
|''Week number link format:''<br>{{{config.options.txtWeekNumberLinkFormat }}}|<<option txtWeekNumberLinkFormat >>|
<<<
!!!Revisions
<<<
2011.01.04 1.5.1 corrected parameter handling for {{{<<calendar year>>}}} to show entire year instead of just first month. In createCalendarMonthHeader(), fixed next/previous month year calculation (use parseInt() to convert to numeric value). Code reduction (setting options).
2009.04.31 1.5.0 rewrote onClickCalendarDate() (popup handler) and added config.options.txtCalendarReminderTags. Partial code reduction/cleanup. Assigned true version number (1.5.0)
2008.09.10 added '+n' (and '-n') param to permit display of relative months (e.g., '+6' means 'six months from now', '-3' means 'three months ago'. Based on suggestion from Jean.
2008.06.17 added support for config.macros.calendar.todaybg
2008.02.27 in handler(), DON'T set hard-coded default date format, so that *customized* value (pre-defined in config.macros.calendar.journalDateFmt is used.
2008.02.17 in createCalendarYear(), fix next/previous year calculation (use parseInt() to convert to numeric value). Also, use journalDateFmt for date linking when NOT using [[DatePlugin]].
2008.02.16 in createCalendarDay(), week numbers now created as TiddlyLinks, allowing quick creation/navigation to 'weekly' journals (based on request from Kashgarinn)
2008.01.08 in createCalendarMonthHeader(), 'month year' heading is now created as TiddlyLink, allowing quick creation/navigation to 'month-at-a-time' journals
2007.11.30 added 'return false' to onclick handlers (prevent IE from opening blank pages)
2006.08.23 added handling for weeknumbers (code supplied by Martin Budden (see 'wn**' comment marks). Also, incorporated updated by Jeremy Sheeley to add caching for reminders (see [[ReminderMacros]], if installed)
2005.10.30 in config.macros.calendar.handler(), use 'tbody' element for IE compatibility. Also, fix year calculation for IE's getYear() function (which returns '2005' instead of '105'). Also, in createCalendarDays(), use showDate() function (see [[DatePlugin]], if installed) to render autostyled date with linked popup. Updated calendar stylesheet definition: use .calendar class-specific selectors, add text centering and margin settings
2006.05.29 added journalDateFmt handling
<<<
!!!Code
***/
//{{{
version.extensions.CalendarPlugin= { major: 1, minor: 5, revision: 1, date: new Date(2011,1,4)};
// COOKIE OPTIONS
var opts={
txtCalFirstDay: 0,
txtCalStartOfWeekend: 5,
chkDisplayWeekNumbers: false,
txtCalFirstDay: 0,
txtWeekNumberDisplayFormat: 'w0WW',
txtWeekNumberLinkFormat: 'YYYY-w0WW',
txtCalendarReminderTags: 'reminder'
};
for (var id in opts) if (config.options[id]===undefined) config.options[id]=opts[id];
// INTERNAL CONFIGURATION
config.macros.calendar = {
monthnames:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
daynames:['M','T','W','T','F','S','S'],
todaybg:'#ccccff',
weekendbg:'#c0c0c0',
monthbg:'#e0e0e0',
holidaybg:'#ffc0c0',
journalDateFmt:'DD MMM YYYY',
monthdays:[31,28,31,30,31,30,31,31,30,31,30,31],
holidays:[ ] // for customization see [[CalendarPluginConfig]]
};
//}}}
//{{{
function calendarIsHoliday(date)
{
var longHoliday = date.formatString('0DD/0MM/YYYY');
var shortHoliday = date.formatString('0DD/0MM');
for(var i = 0; i < config.macros.calendar.holidays.length; i++) {
if( config.macros.calendar.holidays[i]==longHoliday
|| config.macros.calendar.holidays[i]==shortHoliday)
return true;
}
return false;
}
//}}}
//{{{
config.macros.calendar.handler = function(place,macroName,params) {
var calendar = createTiddlyElement(place, 'table', null, 'calendar', null);
var tbody = createTiddlyElement(calendar, 'tbody');
var today = new Date();
var year = today.getYear();
if (year<1900) year+=1900;
// get journal format from SideBarOptions (ELS 5/29/06 - suggested by MartinBudden)
var text = store.getTiddlerText('SideBarOptions');
var re = new RegExp('<<(?:newJournal)([^>]*)>>','mg'); var fm = re.exec(text);
if (fm && fm[1]!=null) { var pa=fm[1].readMacroParams(); if (pa[0]) this.journalDateFmt = pa[0]; }
var month=-1;
if (params[0] == 'thismonth') {
var month=today.getMonth();
} else if (params[0] == 'lastmonth') {
var month = today.getMonth()-1; if (month==-1) { month=11; year--; }
} else if (params[0] == 'nextmonth') {
var month = today.getMonth()+1; if (month>11) { month=0; year++; }
} else if (params[0]&&'+-'.indexOf(params[0].substr(0,1))!=-1) {
var month = today.getMonth()+parseInt(params[0]);
if (month>11) { year+=Math.floor(month/12); month%=12; };
if (month<0) { year+=Math.floor(month/12); month=12+month%12; }
} else if (params[0]) {
year = params[0];
if(params[1]) {
month=parseInt(params[1])-1;
if (month>11) month=11; if (month<0) month=0;
}
}
if (month!=-1) {
cacheReminders(new Date(year, month, 1, 0, 0), 31);
createCalendarOneMonth(tbody, year, month);
} else {
cacheReminders(new Date(year, 0, 1, 0, 0), 366);
createCalendarYear(tbody, year);
}
window.reminderCacheForCalendar = null;
}
//}}}
//{{{
// cache used to store reminders while the calendar is being rendered
// it will be renulled after the calendar is fully rendered.
window.reminderCacheForCalendar = null;
//}}}
//{{{
function cacheReminders(date, leadtime)
{
if (window.findTiddlersWithReminders == null) return;
window.reminderCacheForCalendar = {};
var leadtimeHash = [];
leadtimeHash [0] = 0;
leadtimeHash [1] = leadtime;
var t = findTiddlersWithReminders(date, leadtimeHash, null, 1);
for(var i = 0; i < t.length; i++) {
//just tag it in the cache, so that when we're drawing days, we can bold this one.
window.reminderCacheForCalendar[t[i]['matchedDate']] = 'reminder:' + t[i]['params']['title'];
}
}
//}}}
//{{{
function createCalendarOneMonth(calendar, year, mon)
{
var row = createTiddlyElement(calendar, 'tr');
createCalendarMonthHeader(calendar, row, config.macros.calendar.monthnames[mon]+' '+year, true, year, mon);
row = createTiddlyElement(calendar, 'tr');
createCalendarDayHeader(row, 1);
createCalendarDayRowsSingle(calendar, year, mon);
}
//}}}
//{{{
function createCalendarMonth(calendar, year, mon)
{
var row = createTiddlyElement(calendar, 'tr');
createCalendarMonthHeader(calendar, row, config.macros.calendar.monthnames[mon]+' '+ year, false, year, mon);
row = createTiddlyElement(calendar, 'tr');
createCalendarDayHeader(row, 1);
createCalendarDayRowsSingle(calendar, year, mon);
}
//}}}
//{{{
function createCalendarYear(calendar, year)
{
var row;
row = createTiddlyElement(calendar, 'tr');
var back = createTiddlyElement(row, 'td');
var backHandler = function() {
removeChildren(calendar);
createCalendarYear(calendar, parseInt(year)-1);
return false; // consume click
};
createTiddlyButton(back, '<', 'Previous year', backHandler);
back.align = 'center';
var yearHeader = createTiddlyElement(row, 'td', null, 'calendarYear', year);
yearHeader.align = 'center';
yearHeader.setAttribute('colSpan',config.options.chkDisplayWeekNumbers?22:19);//wn**
var fwd = createTiddlyElement(row, 'td');
var fwdHandler = function() {
removeChildren(calendar);
createCalendarYear(calendar, parseInt(year)+1);
return false; // consume click
};
createTiddlyButton(fwd, '>', 'Next year', fwdHandler);
fwd.align = 'center';
createCalendarMonthRow(calendar, year, 0);
createCalendarMonthRow(calendar, year, 3);
createCalendarMonthRow(calendar, year, 6);
createCalendarMonthRow(calendar, year, 9);
}
//}}}
//{{{
function createCalendarMonthRow(cal, year, mon)
{
var row = createTiddlyElement(cal, 'tr');
createCalendarMonthHeader(cal, row, config.macros.calendar.monthnames[mon], false, year, mon);
createCalendarMonthHeader(cal, row, config.macros.calendar.monthnames[mon+1], false, year, mon);
createCalendarMonthHeader(cal, row, config.macros.calendar.monthnames[mon+2], false, year, mon);
row = createTiddlyElement(cal, 'tr');
createCalendarDayHeader(row, 3);
createCalendarDayRows(cal, year, mon);
}
//}}}
//{{{
function createCalendarMonthHeader(cal, row, name, nav, year, mon)
{
var month;
if (nav) {
var back = createTiddlyElement(row, 'td');
back.align = 'center';
back.style.background = config.macros.calendar.monthbg;
var backMonHandler = function() {
var newyear = year;
var newmon = mon-1;
if(newmon == -1) { newmon = 11; newyear = parseInt(newyear)-1;}
removeChildren(cal);
cacheReminders(new Date(newyear, newmon , 1, 0, 0), 31);
createCalendarOneMonth(cal, newyear, newmon);
return false; // consume click
};
createTiddlyButton(back, '<', 'Previous month', backMonHandler);
month = createTiddlyElement(row, 'td', null, 'calendarMonthname')
createTiddlyLink(month,name,true);
month.setAttribute('colSpan', config.options.chkDisplayWeekNumbers?6:5);//wn**
var fwd = createTiddlyElement(row, 'td');
fwd.align = 'center';
fwd.style.background = config.macros.calendar.monthbg;
var fwdMonHandler = function() {
var newyear = year;
var newmon = mon+1;
if(newmon == 12) { newmon = 0; newyear = parseInt(newyear)+1;}
removeChildren(cal);
cacheReminders(new Date(newyear, newmon , 1, 0, 0), 31);
createCalendarOneMonth(cal, newyear, newmon);
return false; // consume click
};
createTiddlyButton(fwd, '>', 'Next month', fwdMonHandler);
} else {
month = createTiddlyElement(row, 'td', null, 'calendarMonthname', name)
month.setAttribute('colSpan',config.options.chkDisplayWeekNumbers?8:7);//wn**
}
month.align = 'center';
month.style.background = config.macros.calendar.monthbg;
}
//}}}
//{{{
function createCalendarDayHeader(row, num)
{
var cell;
for(var i = 0; i < num; i++) {
if (config.options.chkDisplayWeekNumbers) createTiddlyElement(row, 'td');//wn**
for(var j = 0; j < 7; j++) {
var d = j + (config.options.txtCalFirstDay - 0);
if(d > 6) d = d - 7;
cell = createTiddlyElement(row, 'td', null, null, config.macros.calendar.daynames[d]);
if(d == (config.options.txtCalStartOfWeekend-0) || d == (config.options.txtCalStartOfWeekend-0+1))
cell.style.background = config.macros.calendar.weekendbg;
}
}
}
//}}}
//{{{
function createCalendarDays(row, col, first, max, year, mon) {
var i;
if (config.options.chkDisplayWeekNumbers){
if (first<=max) {
var ww = new Date(year,mon,first);
var td=createTiddlyElement(row, 'td');//wn**
var link=createTiddlyLink(td,ww.formatString(config.options.txtWeekNumberLinkFormat),false);
link.appendChild(document.createTextNode(
ww.formatString(config.options.txtWeekNumberDisplayFormat)));
}
else createTiddlyElement(row, 'td');//wn**
}
for(i = 0; i < col; i++)
createTiddlyElement(row, 'td');
var day = first;
for(i = col; i < 7; i++) {
var d = i + (config.options.txtCalFirstDay - 0);
if(d > 6) d = d - 7;
var daycell = createTiddlyElement(row, 'td');
var isaWeekend=((d==(config.options.txtCalStartOfWeekend-0)
|| d==(config.options.txtCalStartOfWeekend-0+1))?true:false);
if(day > 0 && day <= max) {
var celldate = new Date(year, mon, day);
// ELS 10/30/05 - use <<date>> macro's showDate() function to create popup
// ELS 05/29/06 - use journalDateFmt
if (window.showDate) showDate(daycell,celldate,'popup','DD',
config.macros.calendar.journalDateFmt,true, isaWeekend);
else {
if(isaWeekend) daycell.style.background = config.macros.calendar.weekendbg;
var title = celldate.formatString(config.macros.calendar.journalDateFmt);
if(calendarIsHoliday(celldate))
daycell.style.background = config.macros.calendar.holidaybg;
var now=new Date();
if ((now-celldate>=0) && (now-celldate<86400000)) // is today?
daycell.style.background = config.macros.calendar.todaybg;
if(window.findTiddlersWithReminders == null) {
var link = createTiddlyLink(daycell, title, false);
link.appendChild(document.createTextNode(day));
} else
var button = createTiddlyButton(daycell, day, title, onClickCalendarDate);
}
}
day++;
}
}
//}}}
//{{{
// Create a pop-up containing:
// * a link to a tiddler for this date
// * a 'new tiddler' link to add a reminder for this date
// * links to current reminders for this date
// NOTE: this code is only used if [[ReminderMacros]] is installed AND [[DatePlugin]] is //not// installed.
function onClickCalendarDate(ev) { ev=ev||window.event;
var d=new Date(this.getAttribute('title')); var date=d.formatString(config.macros.calendar.journalDateFmt);
var p=Popup.create(this); if (!p) return;
createTiddlyLink(createTiddlyElement(p,'li'),date,true);
var rem='\\n\\<\\<reminder day:%0 month:%1 year:%2 title: \\>\\>';
rem=rem.format([d.getDate(),d.getMonth()+1,d.getYear()+1900]);
var cmd="<<newTiddler label:[[new reminder...]] prompt:[[add a new reminder to '%0']]"
+" title:[[%0]] text:{{store.getTiddlerText('%0','')+'%1'}} tag:%2>>";
wikify(cmd.format([date,rem,config.options.txtCalendarReminderTags]),p);
createTiddlyElement(p,'hr');
var t=findTiddlersWithReminders(d,[0,31],null,1);
for(var i=0; i<t.length; i++) {
var link=createTiddlyLink(createTiddlyElement(p,'li'), t[i].tiddler, false);
link.appendChild(document.createTextNode(t[i]['params']['title']));
}
Popup.show(); ev.cancelBubble=true; if (ev.stopPropagation) ev.stopPropagation(); return false;
}
//}}}
//{{{
function calendarMaxDays(year, mon)
{
var max = config.macros.calendar.monthdays[mon];
if(mon == 1 && (year % 4) == 0 && ((year % 100) != 0 || (year % 400) == 0)) max++;
return max;
}
//}}}
//{{{
function createCalendarDayRows(cal, year, mon)
{
var row = createTiddlyElement(cal, 'tr');
var first1 = (new Date(year, mon, 1)).getDay() -1 - (config.options.txtCalFirstDay-0);
if(first1 < 0) first1 = first1 + 7;
var day1 = -first1 + 1;
var first2 = (new Date(year, mon+1, 1)).getDay() -1 - (config.options.txtCalFirstDay-0);
if(first2 < 0) first2 = first2 + 7;
var day2 = -first2 + 1;
var first3 = (new Date(year, mon+2, 1)).getDay() -1 - (config.options.txtCalFirstDay-0);
if(first3 < 0) first3 = first3 + 7;
var day3 = -first3 + 1;
var max1 = calendarMaxDays(year, mon);
var max2 = calendarMaxDays(year, mon+1);
var max3 = calendarMaxDays(year, mon+2);
while(day1 <= max1 || day2 <= max2 || day3 <= max3) {
row = createTiddlyElement(cal, 'tr');
createCalendarDays(row, 0, day1, max1, year, mon); day1 += 7;
createCalendarDays(row, 0, day2, max2, year, mon+1); day2 += 7;
createCalendarDays(row, 0, day3, max3, year, mon+2); day3 += 7;
}
}
//}}}
//{{{
function createCalendarDayRowsSingle(cal, year, mon)
{
var row = createTiddlyElement(cal, 'tr');
var first1 = (new Date(year, mon, 1)).getDay() -1 - (config.options.txtCalFirstDay-0);
if(first1 < 0) first1 = first1+ 7;
var day1 = -first1 + 1;
var max1 = calendarMaxDays(year, mon);
while(day1 <= max1) {
row = createTiddlyElement(cal, 'tr');
createCalendarDays(row, 0, day1, max1, year, mon); day1 += 7;
}
}
//}}}
//{{{
setStylesheet('.calendar, .calendar table, .calendar th, .calendar tr, .calendar td { text-align:center; } .calendar, .calendar a { margin:0px !important; padding:0px !important; }', 'calendarStyles');
//}}}
/***
|Name|CheckboxPlugin|
|Source|http://www.TiddlyTools.com/#CheckboxPlugin|
|Documentation|http://www.TiddlyTools.com/#CheckboxPluginInfo|
|Version|2.4.0|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|Add checkboxes to your tiddler content|
This plugin extends the TiddlyWiki syntax to allow definition of checkboxes that can be embedded directly in tiddler content. Checkbox states are preserved by:
* by setting/removing tags on specified tiddlers,
* or, by setting custom field values on specified tiddlers,
* or, by saving to a locally-stored cookie ID,
* or, automatically modifying the tiddler content (deprecated)
When an ID is assigned to the checkbox, it enables direct programmatic access to the checkbox DOM element, as well as creating an entry in TiddlyWiki's config.options[ID] internal data. In addition to tracking the checkbox state, you can also specify custom javascript for programmatic initialization and onClick event handling for any checkbox, so you can provide specialized side-effects in response to state changes.
!!!!!Documentation
>see [[CheckboxPluginInfo]]
!!!!!Revisions
<<<
2008.01.08 [*.*.*] plugin size reduction: documentation moved to [[CheckboxPluginInfo]]
2008.01.05 [2.4.0] set global "window.place" to current checkbox element when processing checkbox clicks. This allows init/beforeClick/afterClick handlers to reference RELATIVE elements, including using "story.findContainingTiddler(place)". Also, wrap handlers in "function()" so "return" can be used within handler code.
|please see [[CheckboxPluginInfo]] for additional revision details|
2005.12.07 [0.9.0] initial BETA release
<<<
!!!!!Code
***/
//{{{
version.extensions.CheckboxPlugin = {major: 2, minor: 4, revision:0 , date: new Date(2008,1,5)};
//}}}
//{{{
config.checkbox = { refresh: { tagged:true, tagging:true, container:true } };
config.formatters.push( {
name: "checkbox",
match: "\\[[xX_ ][\\]\\=\\(\\{]",
lookahead: "\\[([xX_ ])(=[^\\s\\(\\]{]+)?(\\([^\\)]*\\))?({[^}]*})?({[^}]*})?({[^}]*})?\\]",
handler: function(w) {
var lookaheadRegExp = new RegExp(this.lookahead,"mg");
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source)
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
// get params
var checked=(lookaheadMatch[1].toUpperCase()=="X");
var id=lookaheadMatch[2];
var target=lookaheadMatch[3];
if (target) target=target.substr(1,target.length-2).trim(); // trim off parentheses
var fn_init=lookaheadMatch[4];
var fn_clickBefore=lookaheadMatch[5];
var fn_clickAfter=lookaheadMatch[6];
var tid=story.findContainingTiddler(w.output); if (tid) tid=tid.getAttribute("tiddler");
var srctid=w.tiddler?w.tiddler.title:null;
config.macros.checkbox.create(w.output,tid,srctid,w.matchStart+1,checked,id,target,config.checkbox.refresh,fn_init,fn_clickBefore,fn_clickAfter);
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
}
}
} );
config.macros.checkbox = {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
if(!(tiddler instanceof Tiddler)) { // if no tiddler passed in try to find one
var here=story.findContainingTiddler(place);
if (here) tiddler=store.getTiddler(here.getAttribute("tiddler"))
}
var srcpos=0; // "inline X" not applicable to macro syntax
var target=params.shift(); if (!target) target="";
var defaultState=params[0]=="checked"; if (defaultState) params.shift();
var id=params.shift(); if (id && !id.length) id=null;
var fn_init=params.shift(); if (fn_init && !fn_init.length) fn_init=null;
var fn_clickBefore=params.shift();
if (fn_clickBefore && !fn_clickBefore.length) fn_clickBefore=null;
var fn_clickAfter=params.shift();
if (fn_clickAfter && !fn_clickAfter.length) fn_clickAfter=null;
var refresh={ tagged:true, tagging:true, container:false };
this.create(place,tiddler.title,tiddler.title,0,defaultState,id,target,refresh,fn_init,fn_clickBefore,fn_clickAfter);
},
create: function(place,tid,srctid,srcpos,defaultState,id,target,refresh,fn_init,fn_clickBefore,fn_clickAfter) {
// create checkbox element
var c = document.createElement("input");
c.setAttribute("type","checkbox");
c.onclick=this.onClickCheckbox;
c.srctid=srctid; // remember source tiddler
c.srcpos=srcpos; // remember location of "X"
c.container=tid; // containing tiddler (may be null if not in a tiddler)
c.tiddler=tid; // default target tiddler
c.refresh = {};
c.refresh.container = refresh.container;
c.refresh.tagged = refresh.tagged;
c.refresh.tagging = refresh.tagging;
place.appendChild(c);
// set default state
c.checked=defaultState;
// track state in config.options.ID
if (id) {
c.id=id.substr(1); // trim off leading "="
if (config.options[c.id]!=undefined)
c.checked=config.options[c.id];
else
config.options[c.id]=c.checked;
}
// track state in (tiddlername|tagname) or (fieldname@tiddlername)
if (target) {
var pos=target.indexOf("@");
if (pos!=-1) {
c.field=pos?target.substr(0,pos):"checked"; // get fieldname (or use default "checked")
c.tiddler=target.substr(pos+1); // get specified tiddler name (if any)
if (!c.tiddler || !c.tiddler.length) c.tiddler=tid; // if tiddler not specified, default == container
if (store.getValue(c.tiddler,c.field)!=undefined)
c.checked=(store.getValue(c.tiddler,c.field)=="true"); // set checkbox from saved state
} else {
var pos=target.indexOf("|"); if (pos==-1) var pos=target.indexOf(":");
c.tag=target;
if (pos==0) c.tag=target.substr(1); // trim leading "|" or ":"
if (pos>0) { c.tiddler=target.substr(0,pos); c.tag=target.substr(pos+1); }
if (!c.tag.length) c.tag="checked";
var t=store.getTiddler(c.tiddler);
if (t && t.tags)
c.checked=t.isTagged(c.tag); // set checkbox from saved state
}
}
// trim off surrounding { and } delimiters from init/click handlers
if (fn_init) c.fn_init="(function(){"+fn_init.trim().substr(1,fn_init.length-2)+"})()";
if (fn_clickBefore) c.fn_clickBefore="(function(){"+fn_clickBefore.trim().substr(1,fn_clickBefore.length-2)+"})()";
if (fn_clickAfter) c.fn_clickAfter="(function(){"+fn_clickAfter.trim().substr(1,fn_clickAfter.length-2)+"})()";
c.init=true; c.onclick(); c.init=false; // compute initial state and save in tiddler/config/cookie
},
onClickCheckbox: function(event) {
window.place=this;
if (this.init && this.fn_init) // custom function hook to set initial state (run only once)
{ try { eval(this.fn_init); } catch(e) { displayMessage("Checkbox init error: "+e.toString()); } }
if (!this.init && this.fn_clickBefore) // custom function hook to override changes in checkbox state
{ try { eval(this.fn_clickBefore) } catch(e) { displayMessage("Checkbox onClickBefore error: "+e.toString()); } }
if (this.id)
// save state in config AND cookie (only when ID starts with 'chk')
{ config.options[this.id]=this.checked; if (this.id.substr(0,3)=="chk") saveOptionCookie(this.id); }
if (this.srctid && this.srcpos>0 && (!this.id || this.id.substr(0,3)!="chk") && !this.tag && !this.field) {
// save state in tiddler content only if not using cookie, tag or field tracking
var t=store.getTiddler(this.srctid); // put X in original source tiddler (if any)
if (t && this.checked!=(t.text.substr(this.srcpos,1).toUpperCase()=="X")) { // if changed
t.set(null,t.text.substr(0,this.srcpos)+(this.checked?"X":"_")+t.text.substr(this.srcpos+1),null,null,t.tags);
if (!story.isDirty(t.title)) story.refreshTiddler(t.title,null,true);
store.setDirty(true);
}
}
if (this.field) {
if (this.checked && !store.tiddlerExists(this.tiddler))
store.saveTiddler(this.tiddler,this.tiddler,"",config.options.txtUserName,new Date());
// set the field value in the target tiddler
store.setValue(this.tiddler,this.field,this.checked?"true":"false");
// DEBUG: displayMessage(this.field+"@"+this.tiddler+" is "+this.checked);
}
if (this.tag) {
if (this.checked && !store.tiddlerExists(this.tiddler))
store.saveTiddler(this.tiddler,this.tiddler,"",config.options.txtUserName,new Date());
var t=store.getTiddler(this.tiddler);
if (t) {
var tagged=(t.tags && t.tags.indexOf(this.tag)!=-1);
if (this.checked && !tagged) { t.tags.push(this.tag); store.setDirty(true); }
if (!this.checked && tagged) { t.tags.splice(t.tags.indexOf(this.tag),1); store.setDirty(true); }
}
// if tag state has been changed, update display of corresponding tiddlers (unless they are in edit mode...)
if (this.checked!=tagged) {
if (this.refresh.tagged) {
if (!story.isDirty(this.tiddler)) // the TAGGED tiddler in view mode
story.refreshTiddler(this.tiddler,null,true);
else // the TAGGED tiddler in edit mode (with tags field)
config.macros.checkbox.refreshEditorTagField(this.tiddler,this.tag,this.checked);
}
if (this.refresh.tagging)
if (!story.isDirty(this.tag)) story.refreshTiddler(this.tag,null,true); // the TAGGING tiddler
}
}
if (!this.init && this.fn_clickAfter) // custom function hook to react to changes in checkbox state
{ try { eval(this.fn_clickAfter) } catch(e) { displayMessage("Checkbox onClickAfter error: "+e.toString()); } }
// refresh containing tiddler (but not during initial rendering, or we get an infinite loop!) (and not when editing container)
if (!this.init && this.refresh.container && this.container!=this.tiddler)
if (!story.isDirty(this.container)) story.refreshTiddler(this.container,null,true); // the tiddler CONTAINING the checkbox
return true;
},
refreshEditorTagField: function(title,tag,set) {
var tagfield=story.getTiddlerField(title,"tags");
if (!tagfield||tagfield.getAttribute("edit")!="tags") return; // if no tags field in editor (i.e., custom template)
var tags=tagfield.value.readBracketedList();
if (tags.contains(tag)==set) return; // if no change needed
if (set) tags.push(tag); // add tag
else tags.splice(tags.indexOf(tag),1); // remove tag
for (var t=0;t<tags.length;t++) tags[t]=String.encodeTiddlyLink(tags[t]);
tagfield.value=tags.join(" "); // reassemble tag string (with brackets as needed)
return;
}
};
//}}}
https://github.com/thatjpk/cloudflare-ddns
https://github.com/lyoshenka/cloudflare-ddns/blob/master/config.php.skel
https://gist.github.com/larrybolt/6295160
https://github.com/danielheth/ddclient-for-cloudflare/blob/master/ddclient
https://freevps.us/thread-16793.html
https://github.com/AmirAzodi/cloudflare_ddns
| [[ @ dockerswarm.rocks/ →REally Shrt HOWTO on Docker Swarm HA |https://dockerswarm.rocks/ ]] |
| |
| [[ @ www.docker.com → #SwarmWeek: Realtime Cluster Monitoring with Docker Swarm and Riemann - Docker Blog |https://www.docker.com/blog/realtime-cluster-monitoring-docker-swarm-riemann/ ]] |
| |
| [[ 2020-03-07 @ medium.com → Setup Highly Available applications with Docker Swarm and Gluster |https://medium.com/running-a-software-factory/setup-3-node-high-availability-cluster-with-glusterfs-and-docker-swarm-b4ff80c6b5c3 ]] |
| |
| [[ 2017-01-06 @ www.bretfisher.com → 10 Minutes To HA Docker |https://www.bretfisher.com/10-minutes-to-highly-available-docker/ ]] |
| |
| [[ 2016-03-21 @ technologyconversations.com → Docker Flow: Proxy – On-Demand HAProxy Service Discovery and Reconfiguration Technology Conversations |https://technologyconversations.com/2016/03/21/docker-flow-proxy-on-demand-haproxy-service-discovery-and-reconfiguration/ ]] |
| |
| [[ 2020-03-07 @ www.kuerbis.org → Howto: Nginx-Proxy und Nginx-Proxy-Companion im Docker Swarm Mode auf einem Host kuerbis.org |https://www.kuerbis.org/2018/04/howto-nginx-proxy-und-nginx-proxy-companion-im-docker-swarm-mode-auf-einem-host/ ]] |
| |
| |
|https://www.goetas.com/blog/traps-on-the-way-of-blue-green-deployments/ ( https://www.codementor.io/@goetas/traps-on-the-way-of-blue-green-deployments-with-docker-vxmydcy3s ) |
| |
| [[ 2016-03-09 @ www.docker.com → #Swarmweek: Healthdirect Uses Docker Swarm Blue Green Deployments |https://www.docker.com/blog/swarmweek-healthdirect-docker-swarm-blue-green-deployments/ ]] |
| |
| |
| [[ @ github.com → GitHub - cecchisandrone/docker-swarm-blue-green: A sample project to test Docker Swarm and blue-green deployment model |https://github.com/cecchisandrone/docker-swarm-blue-green ]] |
| |
| |
| [[ 2018-01-03 @ www.thecuriousdev.org → HAProxy Load Balancing Docker Swarm - THE CURIOUS DEVELOPER |https://www.thecuriousdev.org/haproxy-load-balancing-docker-swarm/ ]] |
| |
| |
| [[ 2018-04-04 @ devopscon.io → Continuous Deployment with Docker Swarm |https://devopscon.io/blog/continuous-deployment-docker-swarm/ ]] |
| |
| |
| [[ 2020-03-07 @ thecodingmachine.io → Continuous delivery with Gitlab, Docker and Traefik on a dedicated server |https://thecodingmachine.io/continuous-delivery-on-a-dedicated-server ]] |
| |
| |
| [[ @ github.com → GitHub - vfarcic/docker-swarm-blue-green |https://github.com/vfarcic/docker-swarm-blue-green ]] |
| |
| [[ 2020-03-07 @ botleg.com → Building Blue-Green Deployment with Docker - botleg |https://botleg.com/stories/blue-green-deployment-with-docker/ ]] |
| |
| [[ 2020-03-07 @ docs.nginx.com → NGINX Docs Configuring Active-Active High Availability and Additional Passive Nodes with keepalived |https://docs.nginx.com/nginx/admin-guide/high-availability/ha-keepalived-nodes/ ]] |
| |
| [[ 2020-03-07 @ serversforhackers.com → LetsEncrypt with HAProxy Servers for Hackers |https://serversforhackers.com/c/letsencrypt-with-haproxy ]] |
| |
| [[ 2020-03-07 @ gridscale.io → HAProxy mit SSL von Let's Encrypt absichern - gridscale knwoledge base |https://gridscale.io/community/tutorials/haproxy-ssl/ ]] |
| |
| [[ 2016-05-04 @ www.docker.com → High Availability Architecture and Apps with Docker Datacenter (DDC) - Docker Blog |https://www.docker.com/blog/high-availability-architecture-docker-datacenter/ ]] |
| |
| [[ 2020-03-07 @ medium.com → High-Performance Load Balancing with NGINX (Part 1 of 3) |https://medium.com/@web.development/high-performance-load-balancing-with-nginx-part-1-of-3-26e0e805bbcf ]] |
| |
| [[ 2020-03-07 @ archives.flockport.com → Flockport - Load balancing and failover with LXC containers |https://archives.flockport.com/load-balancing-and-failover-with-lxc-containers/ ]] |
| [[ 2020-03-07 @ medium.com → Redis — High Availability with Docker Swarm - Emmanuel Hodonou - Medium |https://medium.com/@emmano3h/redis-high-availability-with-docker-swarm-2142a4d80b49 ]] |
| |
| [[ 2020-03-07 @ collabnix.com → Running Redis on 5-Node Docker Swarm Cluster in 2 Minutes – Collabnix |https://collabnix.com/getting-started-with-redis-inside-docker-container-in-2-minutes/ ]] |
| [[ 2020-03-07 @ sysadminnightmare.org → Percona XtraDB Cluster in Docker Swarm. Sysadmins Nightmare |https://sysadminnightmare.org/percona-xtradb-cluster-in-docker-swarm/ ]] |
| |
| [[ 2016-08-29 @ severalnines.com → Introduction to Docker Swarm Mode and Multi-Host Networking Severalnines |https://severalnines.com/database-blog/introduction-docker-swarm-mode-and-multi-host-networking ]] |
| |
| |
| [[ 2018-03-21 @ www.percona.com → FLUSH and LOCK Handling in Percona XtraDB Cluster - Percona Database Performance Blog |https://www.percona.com/blog/2018/03/21/flush-and-lock-handling-in-percona-xtradb-cluster/ ]] |
| |
| |
| [[ 2019-01-27 @ stackoverflow.com → database - How to create a Percona XtraDB cluster in Docker swarm on multiple nodes with persistent data - Stack Overflow |https://stackoverflow.com/questions/54388273/how-to-create-a-percona-xtradb-cluster-in-docker-swarm-on-multiple-nodes-with-pe ]] |
| |
| |
| [[ 2020-03-07 @ www.percona.com → Percona XtraDB Cluster Limitations |https://www.percona.com/doc/percona-xtradb-cluster/LATEST/limitation.html ]] |
| |
| [[ 2020-03-07 @ mariadb.com → MariaDB Galera Cluster - Known Limitations - MariaDB Knowledge Base |https://mariadb.com/kb/en/mariadb-galera-cluster-known-limitations/ ]] |
| |
| [[ 2018-03-06 @ mariadb.com → MaxScale HA setup using Keepalived and MaxCtrl MariaDB |https://mariadb.com/resources/blog/maxscale-ha-setup-using-keepalived-and-maxctrl/ ]] |
| |
| [[ 2016-05-16 @ www.percona.com → MySQL "Got an error reading communication packet" - Percona Database Performance Blog |https://www.percona.com/blog/2016/05/16/mysql-got-an-error-reading-communication-packet-errors/ ]] |
| |
| [[ 2020-03-07 @ www.slideshare.net → Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication |https://www.slideshare.net/Grypyrg/percona-xtradb-cluster-vs-galera-cluster-vs-mysql-group-replication ]] |
| |
| [[ 2014-11-17 @ www.percona.com → Typical misconceptions on Galera for MySQL |https://www.percona.com/blog/2014/11/17/typical-misconceptions-on-galera-for-mysql/ ]] |
| |
| [[ @ github.com → GitHub - zalando/spilo: Highly available elephant herd: HA PostgreSQL cluster using Docker |https://github.com/zalando/spilo ]] |
https://blog.jscrambler.com/10-frameworks-for-mobile-hybrid-apps/
https://www.xamarin.com/platform
https://crosswalk-project.org/documentation/windows/run_on_windows.html
http://people.apache.org/~pmuellr/weinre/docs/latest/Running.html
http://dustint.com/post/482/getting-started-with-weinre-mobile-debugging-on-windows
https://stackoverflow.com/questions/28649600/is-there-a-trick-to-get-weinre-to-connect-wp8-1-via-tools-for-apache-cordova-ct
https://taco.visualstudio.com/en-us/docs/debug-using-visual-studio/#DbgWindows
https://msdn.microsoft.com/library/hh441472.aspx
https://www.npmjs.com/package/cordova-plugin-qrscanner
GOLDEN FIXES
https://www.hoessl.eu/2014/12/on-using-the-ionic-framework-for-windows-phone-8-1-apps/
http://www.badpenguin.org/how-to-make-your-ionic-cordova-app-to-run-under-windows-phone-8-1-and-desktop
https://github.com/ionic-team/ionic-plugin-keyboard/issues/157
https://taco.visualstudio.com/en-/docs/debug-using-visual-studio/
https://taco.visualstudio.com/en-us/docs/access-native-cordova-project/
https://software.intel.com/en-us/xdk/docs/using-node-weinre-to-debug-cordova-apps
https://forum.ionicframework.com/t/ionic-2-supports-windows-phone-8-1/57550/3
https://msdn.microsoft.com/de-de/library/dn757054.aspx#GetTools
http://taco.visualstudio.com/en-us/docs/migrate-to-vs2015/
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
https://stackoverflow.com/questions/40081528/how-to-build-ionic-for-windows-uap
https://medium.com/@jamzi/ionic-2-universal-windows-platform-c9e2680dad5
https://docs.fastlane.tools/codesigning/xcode-project/
http://paxcel.net/blog/deployment-automation-in-ios-using-fastlane/
https://medium.com/@evertoncunha/tutorial-continuous-integration-with-xcode-9-and-fastlane-b0c5d605b233
https://docs.fastlane.tools/actions/testflight/
https://docs.fastlane.tools/actions/gym/
https://dzone.com/articles/hosting-of-ipa-and-dsym-files-of-continuously-deli
https://github.com/fastlane/fastlane/issues/10196
https://github.com/fastlane/fastlane/issues/368
https://www.quora.com/Where-can-you-find-the-IPA-file-in-Xcode-How-can-you-create-a-new-one-in-it?share=1
https://stackoverflow.com/questions/43632856/unknown-error-1-ffffffffffffffff-command-bin-sh-failed-with-exit-code-1-in-jen
!! Modification with jq :
!!! The array operator: []
filter example .[] or .myObjectArray[] willl output each subelement in one line
https://shapeshed.com/jq-json/
https://stedolan.github.io/jq/
https://programminghistorian.org/en/lessons/json-and-jq#the-array-operator-
https://unix.stackexchange.com/questions/451496/jq-print-values-in-one-line
https://stackoverflow.com/questions/45714384/parsing-json-record-per-line-with-jq
https://jqplay.org/
!! Background Images
https://css-tricks.com/perfect-full-page-background-image/
https://stackoverflow.com/questions/9262861/css-background-image-to-fit-width-height-should-auto-scale-in-proportion
https://stackoverflow.com/questions/46202844/images-and-video-not-loading-on-github-pages
https://alligator.io/css/background-repeat-property/
!!center things
https://www.w3.org/Style/Examples/007/center.en.html
!! random
https://stackoverflow.com/questions/11495200/how-do-negative-margins-in-css-work-and-why-is-margin-top-5-margin-bottom5
https://stackoverflow.com/questions/1053950/css-background-image-positioning-negative-position/8439392
https://www.w3schools.com/cssref/pr_background-attachment.asp
https://stackoverflow.com/questions/39666376/css-how-to-make-text-to-scale-like-an-image
https://stackoverflow.com/questions/4932181/rounded-table-corners-css-only
https://css-tricks.com/almanac/properties/f/font-size/
https://www.w3schools.com/tags/att_td_nowrap.asp
https://wiki.selfhtml.org/wiki/HTML/Regeln/Referenzieren_in_HTML
https://datatables.net/
https://editor.datatables.net/examples/inline-editing/simple
---
http://tabulator.info/
https://www.jqueryscript.net/table/json-table-editor.html
https://www.jqueryscript.net/demo/json-table-editor/
---
!!! w2ui grid
http://w2ui.com/web/demos/#!grid/grid-21
http://jsfiddle.net/8ajyeg7q/
http://jsfiddle.net/ppearson/sbr39mrb/
---
https://www.quackit.com/html/html_editors/table_editor.cfm
https://divtable.com/generator/
https://www.rapidtables.com/web/tools/html-table-generator.html
https://html5-editor.net/
https://stackoverflow.com/questions/25721164/how-to-fix-an-escaped-json-string-javascript
https://stackoverflow.com/questions/14432165/uncaught-syntaxerror-unexpected-token-with-json-parse
https://www.w3schools.com/jsref/jsref_tostring_number.asp
---
!! uncaught type error
You're getting error
```
Uncaught TypeError: Cannot read property 'trim' of undefined in Jquery
```
that means, the variable vname is undefined. To prevent this error from occurring, you can use the ternary operator to set the default value of the string to empty string when it is undefined.
```
var vname = $("#EarningsTypes").val() == undefined ? '' : $("#EarningsTypes").val().trim();
vname = vname.replace(/ /g, '%20');
```
You can also use || to set the default value
```
var vname = $("#EarningsTypes").val() || '';
```
If you're using an older browser that doesn't support trim, you can use polyfill from MDN
```
if (!String.prototype.trim) {
String.prototype.trim = function() {
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
};
}
```
https://stackoverflow.com/questions/32733423/uncaught-typeerror-cannot-read-property-trim-of-undefined-in-jquery
---
https://stackoverflow.com/questions/14226803/javascript-wait-5-seconds-before-executing-next-line
https://stackoverflow.com/questions/45953994/body-and-onload-settimeout-with-history-go
https://stackoverflow.com/questions/24400845/refreshing-a-page-after-certain-delay-in-jquery
https://stackoverflow.com/questions/42013358/how-to-refresh-or-reload-a-page-with-timeout-in-javascript-or-jquery
https://stackoverflow.com/questions/10839989/why-cant-i-pass-window-location-reload-as-an-argument-to-settimeout
https://stackoverflow.com/questions/3715047/how-to-reload-a-page-using-javascript
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1413313
also see [[code:language:javascript]]
http://book.mixu.net/node/ch5.html
https://stackoverflow.com/questions/5726729/how-to-parse-json-using-node-js
https://stackoverflow.com/questions/14432165/uncaught-syntaxerror-unexpected-token-with-json-parse
https://stackoverflow.com/questions/34878755/how-to-check-if-variable-is-blank-or-undefined-in-node-js
https://www.php.net/manual/de/configuration.file.per-user.php
https://www.php.net/manual/de/features.commandline.php
https://www.php.net/manual/de/function.gethostbyaddr.php
https://alvinalexander.com/php/php-write-stderr-php-command-line-script-fwrite
https://www.php.net/manual/de/function.socket-connect.php
https://stackoverflow.com/questions/905348/telnet-connection-using-php
https://github.com/ngharo/Random-PHP-Classes/blob/master/Telnet.class.php
https://www.binarytides.com/php-socket-programming-tutorial/
https://secure.php.net/manual/en/function.socket-recv.php
https://stackoverflow.com/questions/23684327/how-to-execute-a-command-telnet-php/23685948
https://www.php.net/manual/de/function.socket-connect.php
https://melonfire.com/archives/trog/article/socket-programming-with-php
#timezone ical/carbon/laravel
https://stackoverflow.com/questions/29574983/time-zone-in-icalendar-or-vcalendar-meeting-invitation
---
!!!migrate php5 to php7
`sed 's/=&/=/g' -i $(grep -R '=&' /var/www/htdocs/wp-content/plugins/exec-php/|cut -d: -f1|sort|uniq|grep -v ^Bina)`
```
REPLACE eregi with preg_match+delimiter e.g. preg_match('~'.$old_regex.'~',$haystack)
```
http://php.net/manual/de/control-structures.foreach.php
https://www.w3schools.com/php/func_filesystem_file_put_contents.asp
https://stackoverflow.com/questions/7605480/str-replace-for-multiple-items?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://mekshq.com/how-to-convert-hexadecimal-color-code-to-rgb-or-rgba-using-php/
https://php.net/manual/de/json.constants.php
https://stackoverflow.com/questions/1672156/how-to-delete-an-array-element-based-on-key?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://stackoverflow.com/questions/2588666/remove-portion-of-a-string-after-a-certain-character?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://stackoverflow.com/questions/6771938/any-way-to-return-php-json-encode-with-encode-utf-8-and-not-unicode?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://gist.github.com/JeffreyWay/3194444
php.net/manual/de/function.array-merge.php
https://stackoverflow.com/questions/10210338/json-encode-escaping-forward-slashes?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://stackoverflow.com/questions/8328983/check-whether-an-array-is-empty?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://stackoverflow.com/questions/2790899/how-to-check-if-a-string-starts-with-a-specified-string?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
http://php.net/manual/de/function.uniqid.php
https://stackoverflow.com/questions/2040240/php-function-to-generate-v4-uuid?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://gist.github.com/miguelramos/1989766
https://stackoverflow.com/questions/6661530/php-multidimensional-array-search-by-value?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
http://php.net/manual/de/function.json-last-error.php
https://stackoverflow.com/questions/20694317/json-encode-function-special-characters
http://php.net/manual/en/function.json-encode.php
https://stackoverflow.com/questions/19999665/php-json-encode-not-working-on-arrays-partially
https://stackoverflow.com/questions/31206186/call-to-undefined-function-simplexml-load-string
https://stackoverflow.com/questions/8562398/get-max-execution-time-in-php-script
http://php.net/manual/de/function.strtok.php
http://www.rither.de/a/informatik/php-beispiele/variablen/globale-variablen/
http://php.net/manual/de/language.variables.scope.php
http://itman.in/en/how-to-get-client-ip-address-in-php/
https://stackoverflow.com/questions/26925642/how-do-i-get-the-last-part-of-an-ip-address-string-in-php
https://stackoverflow.com/questions/19707440/breaking-a-php-string-into-multiple-strings
https://stackoverflow.com/questions/8858848/php-read-and-write-json-from-file
https://wiki.selfhtml.org/wiki/PHP/Tutorials/Dateien_mittels_include_einbinden
http://php.net/manual/de/function.json-decode.php
http://php.net/manual/de/function.json-encode.php
http://php.net/manual/de/function.file-exists.php
http://php.net/manual/en/function.array-fill.php
http://php.net/manual/en/function.array-fill-keys.php
http://php.net/manual/de/control-structures.foreach.php
https://stackoverflow.com/questions/1894917/how-to-get-the-home-directory-from-a-php-cli-script
http://php.net/manual/de/function.array-count-values.php
http://php.net/manual/de/function.count.php
https://stackoverflow.com/questions/6815520/cannot-use-object-of-type-stdclass-as-array
https://www.elated.com/articles/php-recursive-functions/
http://thisinterestsme.com/php-using-recursion-print-values-multidimensional-array/
https://davidwalsh.name/get-array-values-with-php-recursively
https://www.w3schools.com/php/func_array_walk_recursive.asp
https://packagist.org/packages/etconsilium/php-recursive-array-object
https://stackoverflow.com/questions/12410695/new-line-n-in-php-is-not-working
http://php.net/manual/de/function.nl2br.php
http://php.net/manual/de/function.gettype.php
https://stackoverflow.com/questions/4221333/get-the-current-script-file-name
https://stackoverflow.com/questions/3057110/where-can-i-find-the-php-ini-for-php-cli
http://php.net/manual/de/features.commandline.php
https://stackoverflow.com/questions/37374720/php-scripting-timing-out-after-60-seconds
https://stackoverflow.com/questions/10208698/checking-memory-limit-in-php
https://www.conetix.com.au/support/article/simple-php-mail-test
https://stackoverflow.com/questions/9525415/php-email-sending-bcc
https://serverfault.com/questions/44776/php-cli-additional-ini-files-not-loaded
https://serverfault.com/questions/466622/php-ini-changes-dont-have-any-effect
https://stackoverflow.com/questions/3106991/fatal-error-call-to-undefined-function-imagecreate
http://php.net/manual/de/function.imagettfbbox.php
https://stackoverflow.com/questions/7290958/php-fatal-error-call-to-undefined-function-imagettftext
https://stackoverflow.com/questions/36359917/docker-gd-module-for-php-7
https://stackoverflow.com/questions/2350052/how-can-i-get-enum-possible-values-in-a-mysql-database
https://stackoverflow.com/questions/2217850/how-to-replace-ereg
https://www.opentechguides.com/how-to/article/php/93/parse-json.html
https://tecadmin.net/php-read-file-line-by-line-fgets-function/
https://stackoverflow.com/questions/9558110/php-remove-line-break-or-cr-lf-with-no-success
```
### restore from mongodb bsondump json ( one json object per line) :
___
$fn = fopen("/tmp/restore.json","r");
while(! feof($fn)) {
$result = fgets($fn);
$json_data = json_decode($result,true);
array_push($importobject,$json_data);
}
```
!! mail → [[code:language:php:artisan:tinker:testmail:mail:cli]]
(embed)
https://scotch.io/tutorials/tinker-with-the-data-in-your-laravel-apps-with-php-artisan-tinker
see [[web:framework:laravel:password-reset]]
!!generic
```
www-data@myhost:~/html$ php artisan tinker
Psy Shell v0.9.7 (PHP 7.2.19-0ubuntu0.18.04.2 — cli) by Justin Hileman
>>>
```
`Mail::raw('Text to e-mail', function($message) { $message->to('testailuser@testdomain.com');});
`
---
!!octobercms
```
www-data@myhost:~/html$ php artisan tinker
Psy Shell v0.9.7 (PHP 7.2.19-0ubuntu0.18.04.2 — cli) by Justin Hileman
>>>
```
`Mail::send('rainlab.user::mail.welcome', [], function($message) { $message->to('testmailuser@testdomain.com')->subject('test');});
`
---
Try to find your `config/mail.php`
And put your env key inside.
`env('MAIL_HOST', 'smtp.mailgun.org')`
https://stackoverflow.com/questions/58908879/cant-see-email-configuration-on-artisan-tinker
---
https://stackoverflow.com/questions/6768793/get-the-full-url-in-php
https://stackoverflow.com/questions/4221333/get-the-current-script-file-name
https://stackoverflow.com/questions/1935918/php-substring-extraction-get-the-string-before-the-first-or-the-whole-strin
https://stackoverflow.com/questions/7231157/how-to-submit-form-on-change-of-dropdown-list
https://stackoverflow.com/questions/5733808/submit-form-and-stay-on-same-page
http://www.webdeveloper.com/forum/showthread.php?219973-this-form-name-is-undefined
https://stackoverflow.com/questions/14149088/how-to-pass-value-from-optionselect-to-form-action
https://www.phpied.com/204-no-content/
https://stackoverflow.com/questions/3489387/print-post-variable-name-along-with-value
https://stackoverflow.com/questions/196664/print-out-post-values
#NO! http://webcheatsheet.com/php/get_current_page_url.php
https://serverfault.com/questions/348222/nginx-php-fpm-and-multiple-roots-how-to-properly-try-files
!!!enable logging
in your www-pool:
```
listen.owner = www-data
listen.group = www-data
##maybe chown after touch /var/log/php-errors.log
php_admin_value[error_log] = /var/log/php-errors.log
php_admin_flag[log_errors] = on
php_admin_value[error_level] = E_ALL
```
https://www.php.net/manual/de/install.fpm.configuration.php
http://www.phpknowhow.com/configuration/php-ini-error-settings/
https://stackoverflow.com/questions/845021/how-can-i-get-useful-error-messages-in-php
https://github.com/rlerdorf/php7dev/issues/48
https://ypereirareis.github.io/blog/2017/02/20/php-fpm-cli-error-log/
https://serverfault.com/questions/574880/nginx-php-fpm-error-logging
```
gc_disable(); // at least until php 7.2 !!
```
http://php.net/manual/de/function.gc-disable.php
https://stackoverflow.com/questions/50716840/php-pdf-generation-super-slow
https://stackoverflow.com/questions/15377500/can-i-reduce-load-time-while-creating-pdf
https://github.com/dompdf/dompdf/issues/1326
https://github.com/dompdf/dompdf/issues/1813
https://stackoverflow.com/questions/30177553/solutions-for-dompdf-rendering-dynamic-table-slowly
https://www.tutorialspoint.com/sqlite/sqlite_php.htm
http://henryranch.net/software/ease-into-sqlite-3-with-php-and-pdo/
http://babbage.cs.qc.cuny.edu/courses/cs903/2013_02/using_sqlite3.html
https://www.sqlitetutorial.net/sqlite-dump/
http://blog.christosoft.de/2012/10/sqlite-escaping-table-acolumn-names/
https://jrsmith3.github.io/merging-a-subdirectory-from-another-repo-via-git-subtree.html
http://stackoverflow.com/questions/1683531/how-to-import-existing-git-repository-into-another
get pip ( https://bootstrap.pypa.io/get-pip.py , run with py2 or py3 )
python-pip
```
sudo apt-get update && \
apt-get autoclean
sudo apt-get update && apt-get install \
-y --no-install-recommends \
python3-pip \
python3-setuptools
```
specific version : `sudo python3 -m pip install pyqt5==5.14 pyqtchart==5.14`
` sudo pip3 install pyqt5==5.14.0`
| js/nodejs/npm |https://papnkukn.github.io/qrcode-svg/ |
| angular | https://techiediaries.github.io/ngx-qrcode/ |
| install (win/make) | https://zint.github.io/ |
https://astorfi.github.io/QR_Code/
!!gitlab|github|bitbucket sync with 3 remotes
https://gist.github.com/MoOx/64010ce5847276159018794352b8c987
https://moox.io/blog/keep-in-sync-git-repos-on-github-gitlab-bitbucket/
!!github|gitlab sync
https://gitlab.doc.ic.ac.uk/tw1509/github-gitlab-sync
!!gitlab→github
https://github.com/piceaTech/node-gitlab-2-github
---
| [[ 2020-03-19 @ jpmens.net → Jan-Piet Mens :: I backup (clone) all my gists |https://jpmens.net/2019/04/03/backup-all-my-gists/ ]] |
| [[ 2020-03-19 @ jpmens.net → Jan-Piet Mens :: I clone all GitHub repositories I've starred |https://jpmens.net/2019/04/04/i-clone-all-repositories-i-ve-starred/ ]] |
| [[ 2020-03-19 @ jpmens.net → Jan-Piet Mens :: I mirror my Github repositories to Gitea |https://jpmens.net/2019/04/15/i-mirror-my-github-repositories-to-gitea/ ]] |
verbose should be "v" , but is not really talky
do
```
export GIT_TRACE=1
git pull ( or any command )
```
https://stackoverflow.com/questions/7319357/does-git-add-have-a-verbose-switch
https://projects.cs.uaf.edu/redmine/projects/public/wiki/How_do_I_make_Git_give_more_verbose_output
---
!!!git force ipv6 or 4
https://stackoverflow.com/questions/21671706/configure-git-to-use-ipv4-instead-of-ipv6-by-default
`git log --oneline --all --graph --decorate $(git reflog | awk '{print $1}')
`
https://stackoverflow.com/questions/4786972/get-a-list-of-all-git-commits-including-the-lost-ones
---
!!! list commits
` git log --format=oneline | awk '{print $1}'` → long hashes
git reflog | awk '{print $1}' → short hashes
!! set specific commit
`git checkout HASHofCOMMIT`
---
!! git full text search through last 1000 commits for "phrasea" and "searchb"
```
git log --format=oneline |cut -d" " -f1|head -n1000 |while read a;do git checkout $a &>/dev/null ;grep -e phrasea -e searchb pub/wiki.html && (echo $a;echo ) ;done
```
---
!! multiple remotes
[[ Pushing to Multiple Remote Repositories Using Git · caseyscarborough.com | http://web.archive.org/web/20190714070634/http://caseyscarborough.com/blog/2013/08/25/pushing-to-multiple-remotes-using-git/ ]]
[[ Using git with multiple remote repositories – Michael S. Mikowski – SPA (UI/UX/server) architect and author | http://web.archive.org/web/20190619070548/https://mmikowski.github.io/git-cross-origin/ ]]
----
!!!! gitignore
<table style="color:#ffff00;" >
<thead> <tr> <th><em>.gitignore</em> entry</th> <th>Ignores every…</th> </tr> </thead> <tbody> <tr> <td><em>target/</em></td> <td>…<strong>folder</strong> (due to the trailing <em>/</em>) recursively</td> </tr> <tr> <td><em>target</em></td> <td>…<strong>file or folder</strong> named <em>target</em> recursively</td> </tr> <tr> <td><em>/target</em></td> <td>…<strong>file or folder</strong> named <em>target</em> in the top-most directory (due to the leading <em>/</em>)</td> </tr> <tr> <td><em>/target/</em></td> <td>…<strong>folder</strong> named <em>target</em> in the top-most directory (leading and trailing <em>/</em>)</td> </tr> <tr> <td><em>*.class</em></td> <td>…every <strong>file or folder</strong> ending with <em>.class</em> recursively</td> </tr> <tr> <td><em>#comment</em></td> <td>…nothing, this is a comment (first character is a <em>#</em>)</td> </tr> <tr> <td><em>\#comment</em></td> <td>…every file or folder with name <em>#comment</em> (<em>\</em> for escaping)</td> </tr> <tr> <td><em>target/logs/</em></td> <td>…every folder named <em>logs</em> which is a subdirectory of a folder named <em>target</em></td> </tr> <tr> <td><em>target/*/logs/</em></td> <td>…every folder named <em>logs</em> two levels under a folder named <em>target</em> (<em>*</em> <strong>doesn’t</strong> include <em>/</em>)</td> </tr> <tr> <td><em>target/**/logs/</em></td> <td>…every folder named <em>logs</em> somewhere under a folder named <em>target</em> (<em>**</em> includes <em>/</em>)</td> </tr> <tr> <td><em>*.py[co]</em></td> <td>…file or folder ending in <em>.pyc</em> or <em>.pyo</em>. However, it doesn’t match <em>.py</em>!</td> </tr> <tr> <td><em>!README.md</em></td> <td>Doesn’t ignore any <em>README.md</em> file even if it matches an exclude pattern, e.g. <em>*.md</em>. <br> <strong>NOTE</strong> This does not work if the file is located within a ignored folder.</td> </tr> </tbody> </table>
https://labs.consol.de/de/development/git/2017/02/22/gitignore.html
----
https://help.github.com/articles/changing-a-remote-s-url/
http://rrr00bb.blogspot.com/2013/03/git-merge-versus-rebase.html
http://stackoverflow.com/questions/6414227/how-to-serve-git-through-http-via-nginx-with-user-password
https://raymii.org/s/articles/Set_up_your_own_truly_secure_encrypted_shared_storage_aka_Dropbox_clone.html
https://news.ycombinator.com/item?id=6554313
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
https://git-scm.com/book/de/v1/Git-Tools-Submodule
http://sunny.today/host-multiple-gists-in-one-git-project/
https://stackoverflow.com/questions/1030169/easy-way-to-pull-latest-of-all-git-submodules
https://gist.github.com/myusuf3/7f645819ded92bda6677 #( delete submodule
https://stackoverflow.com/questions/1587846/how-do-i-show-the-changes-which-have-been-staged
---
| [[ 2020-03-08 @ orga.cat → The most useful git commands orga.cat |https://orga.cat/posts/most-useful-git-commands ]] |
| (merge all commits, but force push after new init ) [[ @ gist.github.com → Merge Commits and force push |https://gist.github.com/stephenhardy/5470814 ]] |
| [[ 2020-03-08 @ www.veit-schiele.de → Git: Entfernen von Commits, Dateien und Historie — Veit Schiele |https://www.veit-schiele.de/dienstleistungen/technische-dokumentation/git/git-entfernen-von-commits-dateien-und-historie ]] |
| [[ 2020-03-08 @ jwiegley.github.io → Doing a hard reset Git from the Bottom Up |https://jwiegley.github.io/git-from-the-bottom-up/3-Reset/4-doing-a-hard-reset.html ]] |
| [[ 2010-12-23 @ stackoverflow.com → git filter branch - How do I remove the old history from a git repository? - Stack Overflow |https://stackoverflow.com/questions/4515580/how-do-i-remove-the-old-history-from-a-git-repository ]] |
| [[ 2012-09-03 @ stackoverflow.com → How do I show my global Git configuration? - Stack Overflow |https://stackoverflow.com/questions/12254076/how-do-i-show-my-global-git-configuration ]] |
| [[ 2020-03-08 @ evilmartians.com → git push --force and how to deal with it — Martian Chronicles, Evil Martians’ team blog |https://evilmartians.com/chronicles/git-push---force-and-how-to-deal-with-it ]] |
| [[ 2011-04-28 @ stackoverflow.com → Git submodule push - Stack Overflow |https://stackoverflow.com/questions/5814319/git-submodule-push ]] |
!!!!change submodule url:
https://stackoverflow.com/questions/913701/how-to-change-the-remote-repository-for-a-git-submodule -> just change .gitmodules
---
!!!!include token/passwd in https url:
https://stackoverflow.com/questions/7714326/git-submodule-url-not-including-username
`https://username:token@host:portnum /path/to/project.git `
---
http://sunny.today/host-multiple-gists-in-one-git-project/
http://stackoverflow.com/questions/12865332/remove-old-commit-information-from-a-git-repository-to-save-space ## ←←←HIGH SCORE , only one commit
http://stackoverflow.com/questions/9725156/remove-old-git-commits
https://gist.github.com/prograhammer/81cac393bf599e69f825
https://github.com/nornagon/git-rebase-all/blob/master/git-rebase-all
http://stackoverflow.com/questions/16057391/git-free-disk-space-by-clearing-repository-history
| [[ 2020-03-25 @ git-secret.io/ → git-secret |https://git-secret.io/ ]] |
| [[ 2020-03-25 @ opensource.com → 4 secrets management tools for Git encryption Opensource.com |https://opensource.com/article/19/2/secrets-management-tools-git ]] |
| [[ 2017-01-03 @ superuser.com → encryption - Setting up an encrypted git-repository - Super User |https://superuser.com/questions/1162907/setting-up-an-encrypted-git-repository ]] |
| [[ @ github.com → GitHub - AGWA/git-crypt: Transparent file encryption in git |https://github.com/AGWA/git-crypt ]] |
| [[ 2020-03-25 @ git-annex.branchable.com → fully encrypted git repositories with gcrypt |https://git-annex.branchable.com/tips/fully_encrypted_git_repositories_with_gcrypt/ ]] |
SourceTree:
after creation of ssh key, import in pageant (putty agent (little symbol))
https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html#SetupanSSHkey-ssh3SetupSSHwithSourcetreeonWindows
PHPStorm:
install git( https://git-for-windows.github.io/ )
create OpenSSH-compatible keys in $USER\.ssh\
(faulty but helpful) http://vanlt.blogspot.de/2015/05/configure-git-phpstorm-on-windows.html
if using Putty-Key:
Go to Conversions->Export OpenSSH and export your private key
https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygenwindows-into-key-pairs-use
| [[ 2020-03-19 @ blog.yumdap.net → Gitea oder Gogs statt Github und Gitlab YuMDaP.net Blog |https://blog.yumdap.net/gitea-oder-gogs-statt-github-und-gitlab/ ]] |
| [[ 2020-03-19 @ news.ycombinator.com → Gitea – Alternative to GitLab and GitHub Hacker News |https://news.ycombinator.com/item?id=17245246 ]] |
| [[ @ github.com → Add time tracking features for project management · Issue #3003 · go-gitea/gitea · GitHub |https://github.com/go-gitea/gitea/issues/3003 ]] |
| [[ @ github.com → Feature request: Time tracking · Issue #967 · go-gitea/gitea · GitHub |https://github.com/go-gitea/gitea/issues/967 ]] |
!!see [[code:version-control:gitlab:CI:continuous:integration]]
!! see [[tools:time:tracking]]
!! see [[web:host:gitlab:pages]]
!! see [[code:version-control:gitlab:gitlab-runner]]
!! see [[code:version-control:gitlab:email:mail]]
!!gitlab-shell
(ssh auth thingy for git@)
https://github.com/gitlabhq/gitlab-shell
---
!!mirroring
https://docs.gitlab.com/ee/user/project/repository/repository_mirroring.html
---
bug reports/stats
https://about.gitlab.com/blog/2018/08/02/4-ways-to-use-gitlab-issue-boards/
https://github.com/qmenoret/gitlab-report-generator This tool takes a issue list from gitlab, and allow to produce a markdown table with all these issues, and to apply different filters, an sorts to it. You can also select which columns will be displayed.
https://github.com/nexylan/gitlab-report ( ./gitlab-report my/awesome-project 'now -1 month' ) A simple PHP cli tool to get some GitLab report.
(self hosted ) https://kanban.leanlabs.io/
time reports/stats
(self hosted) https://github.com/insolite/gitlab-time-report
(self hosted) https://github.com/cosango/gitlabreports
http://data.agaric.com/time-tracking-and-hours-reports-gitlab-gtt
https://github.com/kriskbx/gitlab-time-tracker
https://github.com/kriskbx/gitlab-time-tracker-taskbar
https://addons.mozilla.org/de/firefox/addon/gitlab-time-tracking-button/
user reports/stats
not binding to ipv6?
registry_nginx['listen_addresses'] = ['*', '[::]'] in /etc/gitlab/gitlab.rb
https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1709
→ if problems inside docker containers with "cannot assign requested address" arise
it might be necessary to ip6-enable the container or to do
sysctl -w net.ipv6.conf.all.disable_ipv6=0
in host
enter prise config https://docs.gitlab.com/ee/user/gitlab_com/
gitlab.rb throttling https://gitlab.com/gitlab-org/gitlab-foss/issues/24664
https://devticks.com/how-to-solve-ip-block-in-gitlab-16c775a65c51
rate limit https://gitlab.com/gitlab-org/gitlab-foss/issues/43389
see [[code:version-control:gitlab:code-quality:code:quality]]
https://git.metabarcoding.org/help/ci/docker/using_docker_build.md#use-docker-in-docker-executor
https://stackoverflow.com/questions/45081754/gitlabci-slow-build-with-docker-and-mysql-service
---
!! use ramdisks
https://major.io/2019/08/16/get-faster-gitlab-runners-with-a-ramdisk/
https://gitlab.com/gitlab-org/security-products/codequality
https://gitlab.com/frakman1/codeclimate-test/blob/master/.gitlab-ci.yml
!!! code climate ( needs docker in docker runner )
https://git.metabarcoding.org/help/ci/examples/code_climate.md
Once you set up the Runner, add a new job to `.gitlab-ci.yml`, called codequality:
```
codequality:
image: docker:latest
variables:
DOCKER_DRIVER: overlay
services:
- docker:dind
script:
- docker pull codeclimate/codeclimate
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate init
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.json
artifacts:
paths: [codeclimate.json]
```
---
https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html
https://stackoverflow.com/questions/52174028/gitlab-code-quality-where-is-the-report
gitlab-email
https://docs.gitlab.com/ee/administration/reply_by_email.html
https://docs.gitlab.com/omnibus/settings/smtp.html
https://docs.gitlab.com/ee/administration/incoming_email.html
https://docs.gitlab.com/ee/administration/smime_signing_email.html
example snippet:
```
####EMAIL
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "yourmailserver.net"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "gitlab@yourmaildomain.com"
gitlab_rails['smtp_password'] = "YOURPASS"
gitlab_rails['smtp_domain'] = "yourmaildomain.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
# If your SMTP server does not like the default 'From: gitlab@localhost' you
# can change the 'From' with this setting.
gitlab_rails['gitlab_email_from'] = 'gitlab@yourmaildomain.com'
gitlab_rails['gitlab_email_reply_to'] = 'gitlab@yourmaildomain.com'
## Reply by email
# Allow users to comment on issues and merge requests by replying to notification emails.
# For documentation on how to set this up, see http://doc.gitlab.com/ce/incoming_email/README.html
gitlab_rails['incoming_email_enabled'] = true
#
# # The email address including the `%{key}` placeholder that will be replaced to reference the item being replied to.
# # The placeholder can be omitted but if present, it must appear in the "user" part of the address (before the `@`).
# gitlab_rails['incoming_email_address'] = "gitlab-incoming+%{key}@gmail.com"
gitlab_rails['incoming_email_address'] = "gitlab+%{key}@yourmaildomain.com"
#
# # Email account username
# # With third party providers, this is usually the full email address.
# # With self-hosted email servers, this is usually the user part of the email address.
gitlab_rails['incoming_email_email'] = "gitlab@yourmaildomain.com"
# # Email account password
gitlab_rails['incoming_email_password'] = "YOURPASS"
#
# # IMAP server host
gitlab_rails['incoming_email_host'] = "yourmailserver.net"
# # IMAP server port
gitlab_rails['incoming_email_port'] = 993
# # Whether the IMAP server uses SSL
gitlab_rails['incoming_email_ssl'] = true
# # Whether the IMAP server uses StartTLS
gitlab_rails['incoming_email_start_tls'] = false
#
# # The mailbox where incoming mail will end up. Usually "inbox".
gitlab_rails['incoming_email_mailbox_name'] = "inbox"
#
gitlab_rails['incoming_email_log_directory'] = "/var/log/gitlab/mailroom"
```
!! see [[web:host:gitlab:pages]]
!!intro
https://docs.gitlab.com/runner/
!! install
<<<
# install manually https://docs.gitlab.com/runner/install/linux-manually.html or from repo https://docs.gitlab.com/runner/install/linux-repository.html
# register runner https://docs.gitlab.com/runner/register/
# assign to tags or make shared and e.g. untagged in gitlab admin interface
<<<
( with minio cache ) https://thomas.inf3.ch/2019-09-24-hetzner-cloud-docker-ci/index.html
https://docs.gitlab.com/runner/configuration/advanced-configuration.html
https://forum.gitlab.com/t/gitlab-runner-is-stuck-on-pending/4393
```
gitlab-ctl restart
gitlab-runner list
gitlab-runner unregister --url https://gitlab.doma.in:8443/ --token=++++++++++++++
```
```
##SAVE OR DROP OLD KEYS before
ln -sf /etc/letsencrypt/live/MYDOMAIN.ME/fullchain.pem ./cert.pem;ln -sf /etc/letsencrypt/live/MYDOMAIN.ME/privkey.pem cert.key ;gitlab-ctl restart
cat /etc/MYDOMAIN.ME/{cert.pem,fullchain.pem} > /etc/ssl/certs/MYDOMAIN.ME.pem@
gitlab-runner restart
```
!! use ramdisks
https://major.io/2019/08/16/get-faster-gitlab-runners-with-a-ramdisk/
---
https://docs.gitlab.com/ce/ci/runners/#creating-and-registering-a-runner
https://docs.gitlab.com/omnibus/docker/README.html
https://docs.gitlab.com/runner/commands/README.html
https://gitlab.com/gitlab-org/gitlab-ce/issues/18279
https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/web-server/apache
https://www.digitalocean.com/community/tutorials/how-to-secure-gitlab-with-let-s-encrypt-on-ubuntu-16-04
https://futurestud.io/tutorials/how-to-run-gitlab-with-self-signed-ssl-certificate
https://docs.gitlab.com/omnibus/settings/ssl.html
https://stackoverflow.com/questions/16040158/rails-mailer-netopentimeout-execution-expired-exception-on-production-serve
https://github.com/zammad/zammad-docker-compose/issues/112
---
!!!self hosted:
https://github.com/OriginProtocol/telegram-moderator
---
!!!online
https://t.me/shieldy_bot
https://www.protectronbot.com/
http://komms.io/pricing
(free < 1k users)
(dr.web antivirus)
https://telegram-bot.in/
https://github.com/lorien/daysandbox_bot Telegram bot that deletes messages with URL from users joined in less than 24 hours
https://medium.com/invitemember/5-telegram-bots-for-groups-every-community-manager-should-know-about-4263366f7e72
https://blog.stickleback.dk/getting-off-hotmails-blocklist/
https://webmasters.stackexchange.com/questions/54988/how-to-remove-our-ip-address-from-microsofts-email-blacklist
https://wiki.hetzner.de/index.php/Microsoft_Blacklist
https://sendersupport.olc.protection.outlook.com/pm/troubleshooting.aspx#errors.
https://support.microsoft.com/en-us/getsupport?oaspworkflow=start_1.0.0.0&wfname=capsub&productkey=edfsmsbl3
https://support.microsoft.com/de-de/getsupport?oaspworkflow=start_1.0.0.0&wfname=capsub&productkey=edfsmsbl3&locale=de-de
https://postmaster.live.com/snds/ipStatus.aspx # REGISTER HERE AND REQUEST ACCESS FOR YOUR IP , then send request via support.microsoft.com
https://answers.microsoft.com/en-us/outlook_com/forum/oemail-osend/my-ip-has-been-blocked-how-can-i-unblock-it/8542c125-bbf6-4b99-9ff5-80dcf4a96d50
https://sender.office.com/
| [[ @ gist.github.com → Use Python to send and receive emails · GitHub |https://gist.github.com/nickoala/569a9d191d088d82a5ef5c03c0690a02 ]] |
https://marketmix.com/de/imapsync-emailkonten-auf-neuen-server-umziehen/
https://wiki.ubuntuusers.de/imapsync/
https://help.ubuntu.com/community/POP3Aggregator
https://www.miximum.fr/blog/synchronize-all-your-mailboxes-on-your-own-server/
https://prineblog.wordpress.com/2007/10/12/mail-versand-per-msmtp/
https://talk.plesk.com/threads/msmtp-relay-only-some-adress.340928/
https://serverfault.com/questions/811245/how-to-configure-postfix-to-force-from-field-but-leave-reply-to-alone
https://www.mind-it.info/2014/02/22/forward-postfix-spf-srs/
https://serverfault.com/questions/501722/conditionally-rewriting-from-and-reply-to-headers-in-postfix
... is an imap proxy
# we assume you already generated nginx dh 4096 for perfect ssl grading with: time openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096
#disable pop and imap in /etc/default/perdition
```
##perdition-reload.sh##
cat /etc/letsencrypt/live/privkey/privkey.pem /etc/nginx/ssl/dhparam.pem >> ~/perdition_dh_cert.pem;
chmod 0600 ~/perdition_dh_cert.pem
/etc/init.d/perdition restart
###EOF###
```
^make reload script executable
`chmod +x /root/reload_perdition_cert.sh`
```
##: perdition.imap4.conf ##
outgoing_server imap.realmailserver.com:143
#connection_logging
#debug
log_facility local5
#no_lookup
##^only direct ip
timeout 40
ssl_mode tls_all_force
ssl_cert_file /root/perdition_dh_cert.pem
ssl_key_file /etc/letsencrypt/live/my-proxy-host.com/privkey.pem
ssl_ca_path /etc/ssl/certs/
###EOF###
```
```
##: perdition.imap4s.conf
protocol IMAP4S
outgoing_server imap.realmailserver.com:993 #connection_logging
#connection_logging
#debug
log_facility local5
#no_lookup
##^only direct ip
timeout 40
ssl_mode ssl_all_force
ssl_cert_file /root/perdition_dh_cert.pem
ssl_key_file /etc/letsencrypt/live/my-proxy-host.com/privkey.pem
ssl_ca_path /etc/ssl/certs/
##EOF###
```
->turbosmtp , mailgun etc.
| [[ 2020-03-25 @ forum.ubuntuusers.de → Postfix + Strato-Relay › Serverdienste und Dateifreigaben im Netzwerk › Fortgeschrittene Themen › Forum › ubuntuusers.de |https://forum.ubuntuusers.de/topic/postfix-strato-relay/ ]] |
| [[ 2020-03-25 @ www.synology-wiki.de → Mail-Relay mit Postfix – Synology Wiki |http://www.synology-wiki.de/index.php/Mail-Relay_mit_Postfix ]] |
| [[ 2020-03-25 @ www.linuxquestions.org → [SOLVED] postfix client host rejected |https://www.linuxquestions.org/questions/linux-server-73/postfix-client-host-rejected-936628/ ]] |
| [[ 2016-06-28 @ legacy.thomas-leister.de → Postfix als Smarthost / Mail-Relay / Gateway für andere Server |https://legacy.thomas-leister.de/postfix-als-smarthost-mail-relay-fuer-andere-server/ ]] |
| [[ 2016-08-22 @ www.cyberciti.biz → How to configure Postfix relayhost (smarthost) to send eMail using an external smptd - nixCraft |https://www.cyberciti.biz/faq/how-to-configure-postfix-relayhost-smarthost-to-send-email-using-an-external-smptd/ ]] |
| [[ 2020-03-25 @ www.ksingla.net → Using windows live as SMTP relay server Kanwaljeet Singla |http://www.ksingla.net/2010/01/using-windows-live-as-smtp-relay-server/ ]] |
| [[ 2020-03-25 @ www.serversmtp.com → Hotmail SMTP configuration - smtp mail server - professional SMTP service provider |http://www.serversmtp.com/en/smtp-hotmail ]] |
| [[ 2020-03-25 @ www.digitalocean.com → How to Set Up a Mail Relay with Postfix and Mailgun on Ubuntu 16.04 DigitalOcean |https://www.digitalocean.com/community/tutorials/how-to-set-up-a-mail-relay-with-postfix-and-mailgun-on-ubuntu-16-04 ]] |
| [[ 2020-03-25 @ www.linode.com → Configure Postfix to Send Mail Using an External SMTP Server Linode |https://www.linode.com/docs/email/postfix/postfix-smtp-debian7/ ]] |
| [[ 2020-03-25 @ www.huschi.net → Postfix: Mail-Relay mit SMTP-Auth f�r ausgehende Mails @ huschi.net |http://www.huschi.net/4_181_de-postfix-mail-relay-mit-smtp-auth-fuer-ausgehende-mails.html ]] |
| [[ @ www.christophbrill.de → Object not found! |http://www.christophbrill.de/de_DE/postfix-relay-per-sender/ ]] |
| [[ @ gist.github.com → Postfix: sender-dependent SASL authentication — relay to multiple SMTP hosts, or relay to the same host but authenticate as different users (e.g., two Gmail accounts) · GitHub |https://gist.github.com/zmwangx/2c56aa32be68daf48c2f ]] |
| [[ 2020-03-25 @ forum.synology.com → Editing Postfix main.cf - Synology Forum |https://forum.synology.com/enu/viewtopic.php?t=58596 ]] |
| [[ 2020-03-25 @ nilhcem.com → FakeSMTP FakeSMTP - Download |http://nilhcem.com/FakeSMTP/download.html ]] |
https://mxtoolbox.com/
https://mailtester.com/index.php
https://ismyemailworking.com/
`dig -t mx MYDOMAIN`
`host -t mx MYDOMAIN`
https://ismyemailworking.com/
https://mailtester.com/index.php
<<<
!! Be polite and stay on topic
<<<
<<<
!! Be excellent 2 each other , no hatred nor spam
<<<
<<<
!! Don’t post personal information
<<<
<<<
!! Comments containing links are pre-moderated
<<<
<<<
!! Discussions may auto-close or closed by moderators
<<<
/***
|Name|[[DatePlugin]]|
|Source|http://www.TiddlyTools.com/#DatePlugin|
|Documentation|http://www.TiddlyTools.com/#DatePluginInfo|
|Version|2.7.2|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|formatted dates plus popup menu with 'journal' link, changes and (optional) reminders|
This plugin provides a general approach to displaying formatted dates and/or links and popups that permit easy navigation and management of tiddlers based on their creation/modification dates.
!!!!!Documentation
>see [[DatePluginInfo]]
!!!!!Configuration
<<<
<<option chkDatePopupHideCreated>> omit 'created' section from date popups
<<option chkDatePopupHideChanged>> omit 'changed' section from date popups
<<option chkDatePopupHideTagged>> omit 'tagged' section from date popups
<<option chkDatePopupHideReminders>> omit 'reminders' section from date popups
<<option chkShowJulianDate>> display Julian day number (1-365) below current date
see [[DatePluginConfig]] for additional configuration settings, for use in calendar displays, including:
*date formats
*color-coded backgrounds
*annual fixed-date holidays
*weekends
<<<
!!!!!Revisions
<<<
2010.12.15 2.7.2 omit date highlighting when hiding popup items (created/changed/tagged/reminders)
|please see [[DatePluginInfo]] for additional revision details|
2005.10.30 0.9.0 pre-release
<<<
!!!!!Code
***/
//{{{
version.extensions.DatePlugin= {major: 2, minor: 7, revision: 2, date: new Date(2010,12,15)};
config.macros.date = {
format: 'YYYY.0MM.0DD', // default date display format
linkformat: 'YYYY.0MM.0DD', // 'dated tiddler' link format
linkedbg: '#babb1e',
todaybg: '#ffab1e',
weekendbg: '#c0c0c0',
holidaybg: '#ffaace',
createdbg: '#bbeeff',
modifiedsbg: '#bbeeff',
remindersbg: '#c0ffee',
weekend: [ 1,0,0,0,0,0,1 ], // [ day index values: sun=0, mon=1, tue=2, wed=3, thu=4, fri=5, sat=6 ],
holidays: [ '01/01', '07/04', '07/24', '11/24' ]
// NewYearsDay, IndependenceDay(US), Eric's Birthday (hooray!), Thanksgiving(US)
};
config.macros.date.handler = function(place,macroName,params)
{
// default: display current date
var now =new Date();
var date=now;
var mode='display';
if (params[0]&&['display','popup','link'].contains(params[0].toLowerCase()))
{ mode=params[0]; params.shift(); }
if (!params[0] || params[0]=='today')
{ params.shift(); }
else if (params[0]=='filedate')
{ date=new Date(document.lastModified); params.shift(); }
else if (params[0]=='tiddler')
{ date=store.getTiddler(story.findContainingTiddler(place).id.substr(7)).modified; params.shift(); }
else if (params[0].substr(0,8)=='tiddler:')
{ var t; if ((t=store.getTiddler(params[0].substr(8)))) date=t.modified; params.shift(); }
else {
var y = eval(params.shift().replace(/Y/ig,(now.getYear()<1900)?now.getYear()+1900:now.getYear()));
var m = eval(params.shift().replace(/M/ig,now.getMonth()+1));
var d = eval(params.shift().replace(/D/ig,now.getDate()+0));
date = new Date(y,m-1,d);
}
// date format with optional custom override
var format=this.format; if (params[0]) format=params.shift();
var linkformat=this.linkformat; if (params[0]) linkformat=params.shift();
showDate(place,date,mode,format,linkformat);
}
window.showDate=showDate;
function showDate(place,date,mode,format,linkformat,autostyle,weekend)
{
mode =mode||'display';
format =format||config.macros.date.format;
linkformat=linkformat||config.macros.date.linkformat;
// format the date output
var title=date.formatString(format);
var linkto=date.formatString(linkformat);
// just show the formatted output
if (mode=='display') { place.appendChild(document.createTextNode(title)); return; }
// link to a 'dated tiddler'
var link = createTiddlyLink(place, linkto, false);
link.appendChild(document.createTextNode(title));
link.title = linkto;
link.date = date;
link.format = format;
link.linkformat = linkformat;
// if using a popup menu, replace click handler for dated tiddler link
// with handler for popup and make link text non-italic (i.e., an 'existing link' look)
if (mode=='popup') {
link.onclick = onClickDatePopup;
link.style.fontStyle='normal';
}
// format the popup link to show what kind of info it contains (for use with calendar generators)
if (autostyle) setDateStyle(place,link,weekend);
}
//}}}
//{{{
// NOTE: This function provides default logic for setting the date style when displayed in a calendar
// To customize the date style logic, please see[[DatePluginConfig]]
function setDateStyle(place,link,weekend) {
// alias variable names for code readability
var date=link.date;
var fmt=link.linkformat;
var linkto=date.formatString(fmt);
var cmd=config.macros.date;
var co=config.options; // abbrev
if ((weekend!==undefined?weekend:isWeekend(date))&&(cmd.weekendbg!=''))
{ place.style.background = cmd.weekendbg; }
if (hasModifieds(date)||hasCreateds(date)||hasTagged(date,fmt))
{ link.style.fontStyle='normal'; link.style.fontWeight='bold'; }
if (hasReminders(date))
{ link.style.textDecoration='underline'; }
if (isToday(date))
{ link.style.border='1px solid black'; }
if (isHoliday(date)&&(cmd.holidaybg!=''))
{ place.style.background = cmd.holidaybg; }
if (hasCreateds(date)&&(cmd.createdbg!=''))
{ place.style.background = cmd.createdbg; }
if (hasModifieds(date)&&(cmd.modifiedsbg!=''))
{ place.style.background = cmd.modifiedsbg; }
if ((hasTagged(date,fmt)||store.tiddlerExists(linkto))&&(cmd.linkedbg!=''))
{ place.style.background = cmd.linkedbg; }
if (hasReminders(date)&&(cmd.remindersbg!=''))
{ place.style.background = cmd.remindersbg; }
if (isToday(date)&&(cmd.todaybg!=''))
{ place.style.background = cmd.todaybg; }
if (config.options.chkShowJulianDate) { // optional display of Julian date numbers
var m=[0,31,59,90,120,151,181,212,243,273,304,334];
var d=date.getDate()+m[date.getMonth()];
var y=date.getFullYear();
if (date.getMonth()>1 && (y%4==0 && y%100!=0) || y%400==0)
d++; // after February in a leap year
wikify('@@font-size:80%;<br>'+d+'@@',place);
}
}
//}}}
//{{{
function isToday(date) // returns true if date is today
{ var now=new Date(); return ((now-date>=0) && (now-date<86400000)); }
function isWeekend(date) // returns true if date is a weekend
{ return (config.macros.date.weekend[date.getDay()]); }
function isHoliday(date) // returns true if date is a holiday
{
var longHoliday = date.formatString('0MM/0DD/YYYY');
var shortHoliday = date.formatString('0MM/0DD');
for(var i = 0; i < config.macros.date.holidays.length; i++) {
var holiday=config.macros.date.holidays[i];
if (holiday==longHoliday||holiday==shortHoliday) return true;
}
return false;
}
//}}}
//{{{
// Event handler for clicking on a day popup
function onClickDatePopup(e) { e=e||window.event;
var p=Popup.create(this); if (!p) return false;
// always show dated tiddler link (or just date, if readOnly) at the top...
if (!readOnly || store.tiddlerExists(this.date.formatString(this.linkformat)))
createTiddlyLink(createTiddlyElement(p,'li'),this.date.formatString(this.linkformat),true);
else
createTiddlyText(createTiddlyElement(p,'li'),this.date.formatString(this.linkformat));
addCreatedsToPopup(p,this.date,this.format);
addModifiedsToPopup(p,this.date,this.format);
addTaggedToPopup(p,this.date,this.linkformat);
addRemindersToPopup(p,this.date,this.linkformat);
Popup.show(); e.cancelBubble=true; if(e.stopPropagation)e.stopPropagation(); return false;
}
//}}}
//{{{
function indexCreateds() // build list of tiddlers, hash indexed by creation date
{
var createds= { };
var tiddlers = store.getTiddlers('title','excludeLists');
for (var t = 0; t < tiddlers.length; t++) {
var date = tiddlers[t].created.formatString('YYYY0MM0DD')
if (!createds[date])
createds[date]=new Array();
createds[date].push(tiddlers[t].title);
}
return createds;
}
function hasCreateds(date) // returns true if date has created tiddlers
{
if (config.options.chkDatePopupHideCreated) return false;
if (!config.macros.date.createds) config.macros.date.createds=indexCreateds();
return (config.macros.date.createds[date.formatString('YYYY0MM0DD')]!=undefined);
}
function addCreatedsToPopup(p,when,format)
{
if (config.options.chkDatePopupHideCreated) return false;
var force=(store.isDirty() && when.formatString('YYYY0MM0DD')==new Date().formatString('YYYY0MM0DD'));
if (force || !config.macros.date.createds) config.macros.date.createds=indexCreateds();
var indent=String.fromCharCode(160)+String.fromCharCode(160);
var createds = config.macros.date.createds[when.formatString('YYYY0MM0DD')];
if (createds) {
createds.sort();
var e=createTiddlyElement(p,'div',null,null,'created ('+createds.length+')');
for(var t=0; t<createds.length; t++) {
var link=createTiddlyLink(createTiddlyElement(p,'li'),createds[t],false);
link.appendChild(document.createTextNode(indent+createds[t]));
}
}
}
//}}}
//{{{
function indexModifieds() // build list of tiddlers, hash indexed by modification date
{
var modifieds= { };
var tiddlers = store.getTiddlers('title','excludeLists');
for (var t = 0; t < tiddlers.length; t++) {
var date = tiddlers[t].modified.formatString('YYYY0MM0DD')
if (!modifieds[date])
modifieds[date]=new Array();
modifieds[date].push(tiddlers[t].title);
}
return modifieds;
}
function hasModifieds(date) // returns true if date has modified tiddlers
{
if (config.options.chkDatePopupHideChanged) return false;
if (!config.macros.date.modifieds) config.macros.date.modifieds = indexModifieds();
return (config.macros.date.modifieds[date.formatString('YYYY0MM0DD')]!=undefined);
}
function addModifiedsToPopup(p,when,format)
{
if (config.options.chkDatePopupHideChanged) return false;
var date=when.formatString('YYYY0MM0DD');
var force=(store.isDirty() && date==new Date().formatString('YYYY0MM0DD'));
if (force || !config.macros.date.modifieds) config.macros.date.modifieds=indexModifieds();
var indent=String.fromCharCode(160)+String.fromCharCode(160);
var mods = config.macros.date.modifieds[date];
if (mods) {
// if a tiddler was created on this date, don't list it in the 'changed' section
if (config.macros.date.createds && config.macros.date.createds[date]) {
var temp=[];
for(var t=0; t<mods.length; t++)
if (!config.macros.date.createds[date].contains(mods[t]))
temp.push(mods[t]);
mods=temp;
}
mods.sort();
var e=createTiddlyElement(p,'div',null,null,'changed ('+mods.length+')');
for(var t=0; t<mods.length; t++) {
var link=createTiddlyLink(createTiddlyElement(p,'li'),mods[t],false);
link.appendChild(document.createTextNode(indent+mods[t]));
}
}
}
//}}}
//{{{
function hasTagged(date,format) // returns true if date is tagging other tiddlers
{
if (config.options.chkDatePopupHideTagged) return false;
return store.getTaggedTiddlers(date.formatString(format)).length>0;
}
function addTaggedToPopup(p,when,format)
{
if (config.options.chkDatePopupHideTagged) return false;
var indent=String.fromCharCode(160)+String.fromCharCode(160);
var tagged=store.getTaggedTiddlers(when.formatString(format));
if (tagged.length) var e=createTiddlyElement(p,'div',null,null,'tagged ('+tagged.length+')');
for(var t=0; t<tagged.length; t++) {
var link=createTiddlyLink(createTiddlyElement(p,'li'),tagged[t].title,false);
link.appendChild(document.createTextNode(indent+tagged[t].title));
}
}
//}}}
//{{{
function indexReminders(date,leadtime) // build list of tiddlers with reminders, hash indexed by reminder date
{
var reminders = { };
if(window.findTiddlersWithReminders!=undefined) { // reminder plugin is installed
var t = findTiddlersWithReminders(date, [0,leadtime], null, null, 1);
for(var i=0; i<t.length; i++) reminders[t[i].matchedDate]=true;
}
return reminders;
}
function hasReminders(date) // returns true if date has reminders
{
if (config.options.chkDatePopupHideReminders) return false;
if (window.reminderCacheForCalendar)
return window.reminderCacheForCalendar[date]; // use calendar cache
if (!config.macros.date.reminders)
config.macros.date.reminders = indexReminders(date,90); // create a 90-day leadtime reminder cache
return (config.macros.date.reminders[date]);
}
function addRemindersToPopup(p,when,format)
{
if (config.options.chkDatePopupHideReminders) return false;
if(window.findTiddlersWithReminders==undefined) return; // reminder plugin not installed
var indent = String.fromCharCode(160)+String.fromCharCode(160);
var reminders=findTiddlersWithReminders(when, [0,31],null,null,1);
createTiddlyElement(p,'div',null,null,'reminders ('+(reminders.length||'none')+')');
for(var t=0; t<reminders.length; t++) {
link = createTiddlyLink(createTiddlyElement(p,'li'),reminders[t].tiddler,false);
var diff=reminders[t].diff;
diff=(diff<1)?'Today':((diff==1)?'Tomorrow':diff+' days');
var txt=(reminders[t].params['title'])?reminders[t].params['title']:reminders[t].tiddler;
link.appendChild(document.createTextNode(indent+diff+' - '+txt));
}
if (readOnly) return; // readonly... omit 'new reminder...' command
var rem='\\<\\<reminder day:%0 month:%1 year:%2 title:"Enter a reminder title here"\\>\\>';
rem=rem.format([when.getDate(),when.getMonth()+1,when.getYear()+1900]);
var cmd="<<newTiddler label:[["+indent+"new reminder...]] prompt:[[add a reminder to '%0']]"
+" title:[[%0]] text:{{var t=store.getTiddlerText('%0','');t+(t.length?'\\n':'')+'%1'}} tag:%2>>";
wikify(cmd.format([when.formatString(format),rem,config.options.txtCalendarReminderTags||'']),
createTiddlyElement(p,'li'));
}
//}}}
/***
|Name|DatePluginConfig|
|Source|http://www.TiddlyTools.com/#DatePluginConfig|
|Documentation|http://www.TiddlyTools.com/#DatePluginInfo|
|Version|2.6.0|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|formats, background colors and other optional settings for DatePlugin|
***/
// // Default popup content display options (can be overridden by cookies)
//{{{
if (config.options.chkDatePopupHideCreated===undefined)
config.options.chkDatePopupHideCreated=false;
if (config.options.chkDatePopupHideChanged===undefined)
config.options.chkDatePopupHideChanged=false;
if (config.options.chkDatePopupHideTagged===undefined)
config.options.chkDatePopupHideTagged=false;
if (config.options.chkDatePopupHideReminders===undefined)
config.options.chkDatePopupHideReminders=false;
//}}}
// // show Julian date number below regular date
//{{{
if (config.options.chkShowJulianDate===undefined)
config.options.chkShowJulianDate=false;
//}}}
// // fixed-date annual holidays
//{{{
config.macros.date.holidays=[
"01/01", // NewYearsDay,
"07/04", // US Independence Day
"07/24" // Eric's Birthday (hooray!)
];
//}}}
// // weekend map (1=weekend, 0=weekday)
//{{{
config.macros.date.weekend=[ 1,0,0,0,0,0,1 ]; // day index values: sun=0, mon=1, tue=2, wed=3, thu=4, fri=5, sat=6
//}}}
// // date display/link formats
//{{{
config.macros.date.format="YYYY.0MM.0DD"; // default date display format
config.macros.date.linkformat="YYYY.0MM.0DD"; // 'dated tiddler' link format
//}}}
// // When displaying a calendar (see [[CalendarPlugin]]), you can customize the colors/styles that are applied to the calendar dates by modifying the values and/or functions below:
//{{{
// default calendar colors
config.macros.date.weekendbg="#c0c0c0";
config.macros.date.holidaybg="#ffaace";
config.macros.date.createdbg="#bbeeff";
config.macros.date.modifiedsbg="#bbeeff";
config.macros.date.linkedbg="#babb1e";
config.macros.date.remindersbg="#c0ffee";
// apply calendar styles
function setDateStyle(place,link,weekend) {
// alias variable names for code readability
var date=link.date;
var fmt=link.linkformat;
var linkto=date.formatString(fmt);
var cmd=config.macros.date;
if ((weekend!==undefined?weekend:isWeekend(date))&&(cmd.weekendbg!=""))
{ place.style.background = cmd.weekendbg; }
if (hasModifieds(date)||hasCreateds(date)||hasTagged(date,fmt))
{ link.style.fontStyle="normal"; link.style.fontWeight="bold"; }
if (hasReminders(date))
{ link.style.textDecoration="underline"; }
if (isToday(date))
{ link.style.border="1px solid black"; }
if (isHoliday(date)&&(cmd.holidaybg!=""))
{ place.style.background = cmd.holidaybg; }
if (hasCreateds(date)&&(cmd.createdbg!=""))
{ place.style.background = cmd.createdbg; }
if (hasModifieds(date)&&(cmd.modifiedsbg!=""))
{ place.style.background = cmd.modifiedsbg; }
if ((hasTagged(date,fmt)||store.tiddlerExists(linkto))&&(cmd.linkedbg!=""))
{ place.style.background = cmd.linkedbg; }
if (hasReminders(date)&&(cmd.remindersbg!=""))
{ place.style.background = cmd.remindersbg; }
if (isToday(date)&&(cmd.todaybg!=""))
{ place.style.background = cmd.todaybg; }
if (config.options.chkShowJulianDate) {
var m=[0,31,59,90,120,151,181,212,243,273,304,334];
var d=date.getDate()+m[date.getMonth()];
var y=date.getFullYear();
if (date.getMonth()>1 && (y%4==0 && y%100!=0) || y%400==0) d++; // after February in a leap year
wikify("@@font-size:80%;<br>"+d+"@@",place);
}
var t=store.getTiddlerText(linkto,'')
if (config.options.chkInlineCalendarJournals && t.length) wikify('<br>'+t,place);
}
//}}}
---
!!! new user
curl -X PUT http://localhost:5984/_users/org.couchdb.user:mycouchuser \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name": "mycouchuser", "password": "mycouchuserpassword", "roles": [], "type": "user"}'
----
!!!all documents (get rev's)
curl --dump-header - -H "Content-Type:application/json" -X POST http://restyasearch:restyasearch@localhost:5984/mydatabase/_all_docs
---
!! haproxy recommended
| [[ @ github.com → Is it the right way to load balance couchdb with nginx? · Issue #1555 · apache/couchdb · GitHub |https://github.com/apache/couchdb/issues/1555 ]] |
| |
|http://phillihp.com/2013/02/14/setup-3-node-cluster-with-couchdb-using-nginx-lb/ |
| |
| [[ 2020-03-07 @ medium.com → Caching CouchDB requests with Nginx - Glynn Bird - Medium |https://medium.com/@glynn_bird/caching-couchdb-requests-with-nginx-15dd1136e38f ]] |
| |
| [[ 2012-06-15 @ www.monitis.com → A Guide to CouchDB Installation, Configuration and Monitoring |https://www.monitis.com/blog/a-guide-to-couchdb-installation-configuration-and-monitoring/ ]] |
| |
| [[ 2011-04-01 @ stackoverflow.com → javascript - how do I create a "like" filter view in couchdb - Stack Overflow |https://stackoverflow.com/questions/5509911/how-do-i-create-a-like-filter-view-in-couchdb ]] |
| |
| [[ 2011-05-18 @ stackoverflow.com → CouchDB simple find - Stack Overflow |https://stackoverflow.com/questions/6043722/couchdb-simple-find ]] |
| |
| [[ 2020-03-07 @ pouchdb.com → Mango queries |https://pouchdb.com/guides/mango-queries.html ]] |
```
DROP SERIES FROM /.*search_term.*/ WHERE site='DC1'
```
https://community.influxdata.com/t/commad-to-delete-a-particular-series-from-influxdb/5600/7
https://www.influxdata.com/blog/update-on-influxdb-clustering-high-availability-and-monetization/
http://crapworks.de/post/influxdb-clustering/
https://stackoverflow.com/questions/20059823/mysqldump-error-1045-access-denied-despite-correct-passwords-etc
https://stackoverflow.com/questions/15718477/mysqldump-exporting-data-in-a-bad-character-set
https://examples.javacodegeeks.com/software-development/mongodb/mongodb-import-export-json-data-example/
!!! import
https://docs.mongodb.com/guides/server/import/
!!! dump
https://docs.mongodb.com/manual/reference/program/bsondump/
!!! restore:
# failed https://im-coder.com/wie-kann-ich-mit-python-den-bsondump-von-mongodb-in-json-umwandeln.html
# failed https://stackoverflow.com/questions/11867538/how-can-i-use-python-to-transform-mongodbs-bsondump-into-json
https://gist.github.com/cobysy/59afed79262114a7fbed
```
## restore from mongodb bsondump json in php ( one json object per line) :
$fn = fopen("/tmp/restore.json","r");
while(! feof($fn)) {
$result = fgets($fn);
$json_data = json_decode($result,true);
array_push($importobject,$json_data);
}
```
`\list or \l: ` list all databases
`\dt:` list all tables in the current database
To switch databases:
`\connect database_name` or `\c database_name`
```
UPDATE films SET kind = 'Dramatic' WHERE kind = 'Drama';
```
https://dba.stackexchange.com/questions/1285/how-do-i-list-all-databases-and-tables-using-psql
https://www.postgresql.org/docs/9.1/sql-update.html
!! debian-sys-maint missing
`mysql -u root -p -e "GRANT ALL ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '${MARIADB_ROOT_PASSWORD}' WITH GRANT OPTION;"`
https://gist.github.com/waja/da28a83b29cd67ad01f4d9880c341ff0
---
!! ERROR 1524 (HY000): Plugin 'unix_socket' is not loaded
If Unix authentication plugin troubles , MariaDB config
`EXAMPLE:
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf`
Then add the line below [mysqld] section.
`plugin-load-add = auth_socket.so`
then restart MariaDB:
```
sudo systemctl restart mariadb.service
sudo mysql -u root
```
if it works without passwd , unix_socket authentication is enabled and working
!!!Step 2: Standard Authentication
!!! apps and services like phpMyAdmin depend on standard password auth, socket will fail
`error looks like:
ERROR 1698 (28000): Access denied for user ‘root’@’localhost’ `
to fix:
```
use mysql;
update user set plugin='' where User='root';
flush privileges;
exit
```
https://websiteforstudents.com/fix-mariadb-plugin-unix_socket-is-not-loaded-error-on-ubuntu-17-04-17-10/
---
!!! variant 2 , disabling password plugin
```
/etc/init.d/mysql stop
mysqld_safe --skip-grant-tables &
mysql -uroot
```
This will completely stop mysql, bypass user authentication (no password needed) and connect to mysql with user "root".
Now, in mysql console, go using mysql administrative db:
```
use mysql;
```
To reset root password to mynewpassword (change it at your wish), just to be sure of it:
update user set password=PASSWORD("mynewpassword") where User='root';
And this one will overwrite authentication method, remove the unix_socket request (and everything else), restoring a normal and working password method:
```
update user set plugin="mysql_native_password";
quit;
```
Stop and start everything related to mysql:
```
/etc/init.d/mysql stop
kill -9 $(pgrep mysql)
/etc/init.d/mysql start
```
Don't forget to exit the su mode.
Now mySQL server is up and running. You can login it with root:
```
mysql -u root -p
```
or whatever you wish. Password usage is operative.
https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socket
---
see [[db:sql:statistics:health]]
see [[db:sql:mariad:mysql:fix:debian-sys-maint:unix:socket]]
---
!!remove password plugin
The quick and dirty way to fix this is to uninstall the plugin. You will need to be the root user in the database.
`mysql -u root -p`
Type your password, then uninstall the plugin:
mysql> `uninstall plugin validate_password;`
https://sysfiddler.com/mysql-error-1819-hy000-your-password-does-not-satisfy-the-current-policy-requirements/
---
!!change or update passwords
`mysqladmin -u root -p password 'NEWrootPASSWD'`
`mysqladmin -u username -p password 'NEWuserPASSWD'`
set password from root or sys-maint:
`SET PASSWORD FOR 'ENTER-USER-NAME-HERE'@'localhost' = PASSWORD("newpass");`
https://www.howtoforge.com/setting-changing-resetting-mysql-root-passwords
---
!!rename DB
use mysqldump and import with new name ...
---
!!table rename:
`RENAME TABLE catalog.books TO library.books;`
https://chartio.com/resources/tutorials/how-to-rename-a-database-in-mysql/
https://serverfault.com/questions/195221/how-to-rename-a-mysql-database
---
!!create DB
`CREATE DATABASE mydatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;` (https://dba.stackexchange.com/questions/76788/create-a-mysql-database-with-charset-utf-8 )
---
!!show users
`select user, password, host from mysql.user;
`
https://www.dailyrazor.com/blog/mysql-show-users
---
!!debugging
# Try running the mysqld_safe from the command line (without using the init scripts). Try running /usr/bin/mysqld_safe -v, which should spit out some debugging information.
#If that fails, try calling the mysqld daemon directly from the command line, with the "-v" option . mysqld is usually present under `/usr/sbin/mysqld`. mysqld can be called with `--print-defaults` to get the command line options it would be run with.
```
/usr/sbin/mysqld would have been started with the following arguments: --user=mysql --pid-file=/var/run/mysqld/mysqld.pid ..... --max_binlog_size=100M
```
# Try adding the `-v` option to these options to get more verbose details. When run from command line, mysqld will not detach from console and will print debugging info that might be useful in finding the cause of the error.
# Suggstion is using 3 terminals to figure out what is going on
# one terminal with `tail -f /var/log/mysql/mysqld.err`
# one terminal with `tail -f /var/log/messages`
# one terminal where I ran the mysqld_safe / mysqld command
The init scripts are usually good for day to day work. However, sometimes the init scripts can impede a innodb crash recovery process on a large database. Some init scripts have timeout built into them and they can kill mysql while the innodb is still trying to recover its tables.
https://fedoraproject.org/wiki/How_to_debug_MySQL_and_MariaDB
http://rajshekhar.net/blog/archives/407-mysql-startup-debugging-tip.html
https://mariadb.com/kb/en/what-to-do-if-mariadb-doesnt-start/
helpful: `/etc/init.d/mysql status ` OR `mysqladmin version` (effectively the same )
"""
"""
Update fields: `UPDATE table_name SET field1 = new-value1, field2 = new-value2 [WHERE Clause] `
https://thewebfellas.com/blog/conditional-duplicate-key-updates-with-mysql
https://mariadb.com/kb/en/mariadb/column_json/
https://hub.docker.com/r/toughiq/mariadb-cluster/
https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql
https://dev.mysql.com/doc/refman/5.7/en/adding-users.html
https://mariadb.com/kb/en/library/show-grants/
---
```
envPASSWORD=false;
if [ -z "${MYSQL_ROOT_PASSWORD}" ]; then echo "no MYSQL_ROOT_PASSWORD" > /tmp/.sqlstat.log ;
else
envPASSWORD=true
mysqlstat=$(mysqladmin -u root -p$(printenv MYSQL_ROOT_PASSWORD) version|grep -e version -e Version -e ^Uptime -e "Threads" -e Queries);
fi
if [ -z "${MARIADB_ROOT_PASSWORD}" ]; then echo "no MARIADB_ROOT_PASSWORD" > /tmp/.sqsstat.log ;
else
envPASSWORD=true
mysqlstat=$(mysqladmin -u root -p$(printenv MARIADB_ROOT_PASSWORD) version|grep -e version -e Version -e ^Uptime -e "Threads" -e Queries);
fi
if [ "${envPASSWORD}" == "false" ]; then
test -f /etc/init.d/mysql && mysqlstat=$(/etc/init.d/mysql status |grep -e version -e Version -e ^Uptime -e "Threads" -e Queries ) ;
fi
mysqlversion=$(echo "$mysqlstat"|grep -e ^server -e ^Server |grep ersion|sed 's/[sS]erver [vV]ersion//g;s/ \+//g;s/[a-zA-Z~+:\-]//g;s/\.//2g');
mysqlproto=$(echo "$mysqlstat"|grep -e ^protoc -e ^Prot |grep ersion|sed 's/[pP]rotocol [vV]ersion//g;s/ \+//g;s/[a-zA-Z~+:\-]//g;s/\.//2g');
mysqluptime=$(expr $(echo echo $(echo "$mysqlstat"|grep ptime|cut -d":" -f2-|sed 's/^ \+//g;s/\t//g'|sed 's/ years/*31556952))/g;s/ days/*24*3600))/g;s/ hour\(s\|\)/*3600))/g;s/ min/*60))/g;s/ sec/*1))/g;s/ \+$//g;s/ /+$((/g;s/^/$((/;s/+/ + /g')|bash));
sqlrawstats=$(echo "$mysqlstat"|grep Queries|sed 's/: \+/:/g;s/ tables/_tables/g;s/Slow queries/slow_queries/g;s/Threads/threads/g;s/Queries per second avg/queriespersec/g;s/ /\n/g'|grep -v ^$|sed 's/:/=/g'| awk '{print tolower($0)}');
(echo "proto_version="$mysqlproto;echo "server_version="$mysqlversion;echo uptime="$mysqluptime";echo "$sqlrawstats" )|sed 's/ //g;s/^/health_sql_/g'
```
[[Edit the wiki text in the view mode]]
/***
!! Deprecated [[twve.tcalc]] functions
!!! twtable.calculate
!!!! 2015/06/16 [3.2.4]
***/
//{{{
twtable.calculate = function (text,changed) {
// Calculates a table represented by twtable.
// Arguments:
// text -- (Optional) The tiddler text (containing
// that table).
// Normally twtable already contains the
// tiddler text so you are fine to leave
// this argument undefined. However, in
// cases where the modified text hasn't been
// saved back to twtable.tiddler.text, the
// modified text can be passed in here.
// changed -- (Optional) An object containing the
// (row, col) indexes of a changed cell.
// It is usually fine to leave this
// argument undefined, the twve.tcalc will
// simply re-calculate the whole table. If,
// however, this is given instead, then
// twve.tcalc does partial recalculation
// by re-calculating only 1) the changed
// cell itself, 2) cells referring to
// the changed cell, 3) cells referring to
// one of those in 2), ... etc.
if ( ! (config.options.chktwveTcalcEnabled
|| config.options.chktwveTcalcAllTables
|| twtable.hasClass('spreadsheet')) )
return false;
if ( twve.MathJax ) twve.MathJax.enabled = false;
var t0 = new Date();
if ( ! text ) text = twtable.tiddler.text;
var cpos = twve.table.allCells(
text,twtable.start,twtable.end
);
twve.tcalc.cur_twtable = twtable;
var tr = twtable.dom.querySelectorAll('tr');
var trc = [];
for (var r=0,rlen=tr.length; r<rlen; r++){
trc[r] = tr[r].querySelectorAll('th,td');
}
var recalc_now = null;
var peq, ctxt;
if ( changed ) {
// Changed cells are specified. Do partial re-calculation.
// The array recalc_now stores the cells that need to re-
// calculate immediately. In the 1st run these are the
// changed cells themselves. In the later runs they are
// the cells referring to one of those re-calculated in
// the previous run.
recalc_now = [];
// Convert the (row, col) indexes to reference strings.
//for ( var i = 0; i < changed.length; i++ ) {
recalc_now[0] = twtable.referenceToTest(
changed.row,changed.col
);
//}
// The partial recalculation is currently disabled for it
// could, in some extreme cases, be 100 times slower than a
// whole table recalculation. Vincent 2015/02/11
// We need to clear all the calculated results for a whole
// table recalculation.
var t1 = new Date();
for (var r=0,rlen=tr.length; r<rlen; r++)
for (var c=0,clen=trc[r].length; c<clen; c++) {
if ( r==changed.row && c==changed.col )
continue;
var p = twve.tcalc.cellTitleExpression(trc[r][c]);
if ( p > 0 ) {
// There is an expression in this cell,
// restore it.
twve.tcalc.nodeText(
trc[r][c],trc[r][c].title.substring(p)
);
}
}
if ( config.options.chktwveTcalcDebugMode )
displayMessage(
'table cleared in '+(new Date()-t1)+' ms'
);
changed = null;
}
// If we are doing partial re-calculation, then cexp is an
// array storing formulas in the cells. Otherwise we don't
// need it.
var cexp = null;
if ( changed ) {
cexp = [];
for (var r=0,rlen=tr.length; r<rlen; r++){
cexp[r] = [];
}
}
// The variable recalc_next is used for partial
// re-calculation. It is an array containing the cells to
// re-calculate in the next run. If re-calculating the whole
// table then recalc_next shall remain null.
var recalc_next = null;
// Temporarily disable the IncludeCSS option
var includeCSS = config.options.chktwveTableIncludeCSS;
config.options.chktwveTableIncludeCSS = false;
// Start the calculation
do {
if ( cexp ) recalc_next = [];
for (var r=0,rlen=tr.length; r<rlen; r++){
for (var c=0,clen=trc[r].length; c<clen; c++){
var cell = trc[r][c];
//var rndx = twve.table.cellRowIndex(cell);
var cndx = twve.table.cellColIndex(cell);
if ( cexp && cexp[r].length > cndx ) {
ctxt = cexp[r][cndx];
} else {
ctxt = cpos[r][cndx]
? twtable.getCellText(cpos[r][cndx],text)
: '';
if ( cexp ) cexp[r][cndx] = ctxt;
}
twtable.cellReferenceTitle(cell,r,cndx);
// Leave for empty cells
if ( ! ctxt ) continue;
// Check for formulas to re-calculate.
if((peq=twve.tcalc.indexOfExpression(ctxt))<0){
if ( cexp )
// This cell contains no formulas. Skip
// it in the later runs of partial
// re-calculation.
cexp[r][cndx] = '';
continue;
}
// If the cell text contains a formula
if ( ! cexp ) {
// We are re-calculating the whole table.
twtable.calculateCell(cell,ctxt,peq);
continue;
}
// we are doing partial re-calculation.
//ctxt = ctxt.toUpperCase();
for(var i=0,ilen=recalc_now.length;i<ilen;i++){
// If this cell is one of the cells
// that needs re-calculation in this
// run, do it.
if (recalc_now[i].ndx.row==r
&& recalc_now[i].ndx.col==c) {
// Re-calculate the cell
twtable.calculateCell(cell,ctxt,peq);
// Clear this cell so it won't get
// re-calculated again.
cexp[r][cndx] = '';
break;
}
// If this cell contains a formula
// referring to a changed cell,
// calculate it in the next run.
if(twtable.isReferring(ctxt,recalc_now[i])){
recalc_next.push(
twtable.referenceToTest(r,c)
);
break;
}
// Check for consecutive references
var args = twve.tcalc.allArguments(ctxt);
if ( args &&
twtable.includeCell(
args,
recalc_now[i].ndx.row,
recalc_now[i].ndx.col
)
) {
recalc_next.push(
twtable.referenceToTest(r,c)
);
break;
}
}
}
}
// If we are re-calculating the whole table, or just
// part of the table and all affected cells are
// re-calculated, then this re-calculation is finished.
if ( ! cexp || recalc_next.length == 0 ) break;
// Otherwise do the next run of partial re-calculation.
recalc_now = recalc_next;
} while ( true );
// End of calculation, mark the table as calculated.
//twtable.dom.classList.add('calculated')
// Restore the IncludeCSS option.
config.options.chktwveTableIncludeCSS = includeCSS;
// Report calculation time if desired.
if ( config.options.chktwveTcalcDebugMode )
displayMessage(
'table re-calculated in '+(new Date()-t0)+' ms'
);
twve.tcalc.cur_twtable = null;
if ( twve.MathJax ) twve.MathJax.enabled = true;
return true;
};
//}}}
/***
!! Deprecated [[twve.extra]] functions
!!! twelem.box
!!!! 2014/06/15 [3.0.4]
***/
//{{{
var preBox = twelem.box;
twelem.box = function(){
var eb = preBox.apply(this,arguments);
if ( twelem.multiLine() ||
twelem.start.matched.indexOf('\n') > -1 ) return eb;
// In-line elements
var lh = twelem.lineHeight();
var lines = Math.floor(eb[0].height/lh);
if ( lines > 1 ) {
if ( config.browser.isAndroid && lines > 4 ) {
lines = Math.floor(eb[0].height/(lh * 1.15));
}
// box is higher than one line
eb.lines = lines;
var $domparent = twelem.$dom.parent();
var $siblings = $domparent.contents();
var ndx = $siblings.index(twelem.$dom);
var $prev = ndx > 0
? $siblings.eq(ndx-1) : null;
var $next = ndx < $siblings.size()-1
? $siblings.eq(ndx+1) : null;
var $space = null;
if ( $prev && ! $prev.is('br') ) {
if ( (config.browser.isIE || config.browser.isIE11)
&& ndx == 1 && $domparent.is('li') ) {
// IE gets wrong box in such cases.
$space = jQuery(document.createTextNode('O'));
$space.insertBefore($prev);
}
var $c = $prev.contents();
if ( $c.size() > 0 ) $prev = $c.eq(-1);
// If there are $contents() in $prev, get the box of
// the last one in $contents().
eb.prev = twve.node.box($prev,null,null,-1);
if ( $space ) {
$space.remove().insertAfter($prev);
eb.prev[0].right = twve.node.box($space)[0].left;
$space.remove();
}
if ( eb.prev[0].bottom <= eb[0].top ) {
// The previous element is not in the first line.
eb.prev = null;
}
if ( ! $next ) {
if ( ! $space )
$space = jQuery(document.createTextNode('O'));
$space.insertAfter(twelem.$dom);
$next = $space;
}
}
if ( $next ) {
if ( $next.is('br') ) {
if ( ! $space )
$space = jQuery(document.createTextNode('O'));
$space.insertAfter(twelem.$dom);
$next = $space;
}
var $c = $next.contents();
if ( $c.size() > 0 ) $next = $c.eq(0);
eb.next = twve.node.box($next);
// In TiddlySpace the bounding box of $next is
// always lower, I have no idea why.
if (
window.location.hostname.indexOf(
'tiddlyspace'
)==-1 && eb.next[0].top >= eb[0].bottom
){
// The next element is not in the last line.
eb.next = null;
}
if ( $space ) $space.remove();
}
if ( eb.prev || eb.next ) {
eb.lineheight = eb[0].height/lines;
} else {
eb.lines = 0;
}
}
return eb;
};
//}}}
/***
!!! twwrap.box
!!!! 2014/06/15 [3.0.4]
***/
//{{{
twwrap.box = function(action,ev){
// Find previous element
// Find next element
var eb = twve.node.box(twwrap.$dom);
var lh = twwrap.lineHeight();
var mpos = null;
if ( ev ) {
lh /= 2;
twwrap.prev = twwrap.closestElement(eb,ev,-lh);
twwrap.next = twwrap.closestElement(eb,ev,lh);
mpos = twve.tiddler.mousePosition(ev);
lh *= 2;
}
var ebnext = null;
var ebprev = null;
// If either the previous or the next element is a
// <<tiddler>> macro created span, and the mouse pointer is
// very close to it (within m pixels), let the user edit
// the <<tiddler>> macro itself.
var m = 5;
if(twwrap.next && twwrap.next.$dom.is(
twve.tiddlerSpan.getSelector()
)) {
ebnext = twwrap.next.box();
if ( twwrap.transcludedLocked() ) {
twwrap.tiddlerSpanBox(eb,ebnext,m);
return eb;
} else if ( ev && (ebnext.top-mpos.y <= m) ) {
twwrap.tiddlerSpanBox(eb,ebnext,m);
twwrap.prev = twwrap.next;
twwrap.lockTranscluded();
return eb;
}
}
if(twwrap.prev && twwrap.prev.$dom.is(
twve.tiddlerSpan.getSelector()
)) {
ebprev = twwrap.prev == twwrap.next
? (ebnext ? ebnext : twwrap.next.box())
: twwrap.prev.box();
if ( ev && (mpos.y-ebprev.bottom <= m) ) {
twwrap.tiddlerSpanBox(eb,ebprev,m);
twwrap.next = twwrap.prev;
twwrap.lockTranscluded();
return eb;
}
}
// Otherwise check for slider panel or plain text.
if ( twwrap.next ) {
ebnext = twwrap.next.box();
// There is a next element
if(twwrap.next.$dom.is(
twve.sliderPanel.getSelector()
)) {
// If the next element is a sliderPanel, get the
// offset of its button.
var offset = twve.node.offset(
twwrap.next.$dom.prev()
);
// Compare the mouse position with the button offset.
if ( twwrap.transcludedLocked() ) {
// See above
twwrap.sliderPanelBox(eb,ebnext,offset);
} else if (ev && ebnext.top-mpos.y<=lh) {
// If the y-component of mouse position is within
// the button, let the user edit the <<slider>>
// macro itself.
twwrap.sliderPanelBox(eb,ebnext,offset);
twwrap.prev = twwrap.next;
twwrap.lockTranscluded();
} else {
// If, however, mouse position is above the
// button, let the user edit the plain text
// before the <<slider>> macro.
if ( twwrap.prev ) {
ebprev = twwrap.prev == twwrap.next
? ebnext : twwrap.prev.box();
eb.top = ebprev.bottom;
}
eb.bottom = offset.top;
}
eb.height = eb.bottom - eb.top;
} else {
var last = twwrap.next.$dom[0].previousSibling;
var eblast = last
? twve.node.box(jQuery(last)) : null;
// The next element is NOT a sliderPanel.
if ( twwrap.prev ) {
// There is also a previous element
if(! twwrap.prev.isVisible() &&
/^[hH]/.test(twwrap.next.$dom[0].nodeName)
//&& twwrap.prev.$dom.is(
// twve.foldedSection.getSelector()
//)
)
lh *= 1.3;
var first = twwrap.prev.$dom[0].nextSibling;
if ( ! first && ! last ) {
ebprev = twwrap.prev == twwrap.next
? ebnext : twwrap.prev.box();
if ( ebnext.top - ebprev.bottom < lh ) {
twwrap.prev = twwrap.next = null;
} else {
eb.top = ebprev.bottom;
eb.bottom = ebnext.top;
eb.height = eb.bottom - eb.top;
}
} else {
if ( first ) {
var ebfirst = twve.node.box(
jQuery(first)
);
eb.left = ebfirst.left;
eb.top = ebfirst.top;
}
if ( last ) {
//eb.right = eblast.right;
eb.bottom = eblast.bottom;
}
eb.width = eb.right - eb.left;
eb.height = eb.bottom - eb.top;
}
} else {
if ( last ) {
//eb.right = eblast.right;
eb.bottom = eblast.bottom;
//eb.width = eb.right - eb.left;
eb.height = eb.bottom - eb.top;
} else if ( ebnext.top - eb.top >= lh ) {
// There is next element but no previous
// element
eb.bottom = ebnext.top;
eb.height = eb.bottom - eb.top;
} else
twwrap.next = null;
}
}
} else if ( twwrap.prev ) {
// There is no next but previous element
var first = twwrap.prev.$dom[0].nextSibling;
if ( first ) {
var ebfirst = twve.node.box(jQuery(first));
eb.left = ebfirst.left;
eb.top = ebfirst.top;
} else {
ebprev = twwrap.prev.box();
if ( eb.bottom - ebprev.bottom >= lh ) {
eb.top = ebprev.bottom;
eb.height = eb.bottom - eb.top;
} else
twwrap.prev = null;
}
}
return eb;
};
//}}}
/***
!! Deprecated [[twve.core]] functions
!!! twve.node.box
!!!! 2014/06/15 [3.0.4]
***/
//{{{
box : function($node,outerw,outerh,ndx) {
var nb = twve.box.create();
if ( ! $node || $node.size() == 0 ) return nb;
if ( $node[0].nodeType == 3 ) {
// text node
var r = document.createRange();
// The following two functions basically return the same
// results with most of the browser/OS combinations, such
// as FF/Win8, FF/Linux, IE/Win8, etc. with Opera/Linux,
// however, only the first one returns the (almost) correct
// results (the right side is too far).
r.selectNodeContents($node[0]);
//r.selectNode($node[0]);
// In addition, different browsers handle BR in different
// ways. In cases without BR, the browsers return visually
// consistent results (tested with FireFox 29.0.1, IE
// 11.0.9600.17107, Chrome 35.0.1916.114 m and Opera
// 21.0.1432.67). In cases with BR, however, Chrome and
// Opera do not return the expected bounding rectangle as
// FireFox and IE do.
//
// Vincent 2014/05/28
// The following function returns an array of rectangles.
r = r.getClientRects();
if ( typeof ndx != 'number' ) ndx = 0;
else if ( ndx < 0 ) ndx += r.length;
r = r[ndx];
var $win = jQuery(window);
var scrL = $win.scrollLeft();
var scrT = $win.scrollTop();
nb.left = r.left+scrL;
nb.top = r.top+scrT;
nb.right = r.right+scrL;
nb.bottom = r.bottom+scrT;
nb.width = (r.right-r.left);
nb.height = (r.bottom-r.top);
} else {
// element
var pos = twve.node.offset($node);
var w = outerw
? $node.outerWidth(true)
: ($node[0].clientHeight &&
$node[0].scrollHeight > $node[0].clientHeight
? $node[0].clientWidth : $node.innerWidth());
var h = outerh
? $node.outerHeight(true)
: ($node[0].clientWidth &&
$node[0].scrollWidth > $node[0].clientWidth
? $node[0].clientHeight : $node.innerHeight());
nb.left = pos.left;
nb.top = pos.top;
nb.right = (pos.left+w);
nb.bottom = (pos.top+h);
nb.width = w;
nb.height = h;
}
return nb;
},
//}}}
/***
!! Deprecated [[TWtid|TWtid.2.0.10]] core functions
!!!Revision history
* 2014/03/29
** Removed from {{{TWtable}}} 1.5.0
* 2013/12/15
** Removed from the {{{TWtid}}} 2.0.9
!!! start_edit_mode
***/
//{{{
pre_start_edit_mode : null,
start_edit_mode : function ( twtable ) {
var vh=twve.table.large.pre_start_edit_mode.apply(this,arguments);
if ( ! vh ) return null;
var $table = twve.table.table_element(twtable.$dom);
if ( ! $table ) return null;
// We needed to locate the correct scroll position of a table
// if the uer scrolled the table before pressing the 'E' button.
if ( $table.attr('oversize') ) {
var $div_tb = $table.parent();
twve.table.large.table_scrolled(
$div_tb.parent(),
$div_tb.position(),
$div_tb.scrollLeft(),
$div_tb.scrollTop()
);
}
return vh;
},
//}}}
/***
!!!! twve.tiddler.savedElement
***/
//{{{
savedElement : function (twelem,which) {
// Check if the argument twelem (twve.element object) is the
// same as the saved one, if there is.
// This function is mostly needed when the tiddler gets
// refreshed while the editing is not finished. For
// example, if the user has just inserted/deleted one
// table row/column, which caused a refresh of the whole
// tiddler, then the DOM element (table) that the user was
// working on has gone flushed.
// Logically the user is still working on the same table
// and would not expect a refocusing or reactivation of the
// table. Technically, however, the newly created table is
// a different DOM element, the original table was
// destroyed upon refresh. The plugin needs to
// refocus/reactivate the new table for further editing.
// For that purpose, the plugin saves the information of
// the table before refreshing, and uses that to find the
// corresponding new table afterwards.
// To compare two twve.element, this function does the
// followings:
// 1. Compare their wrapper_title to make sure they are
// defined in the same tiddler.
// 2. Compare their
// a. rendering index, if the second argument is
// given a string starting with 'r'(case
// insensitive), or
// b. defining index, if the second argument is not
// specified,
// to make sure they are the same element.
if ( ! twve.tiddler.cur_twelem ) {
// There is no element saved. Nothing to compare.
return false;
}
if ( twve.tiddler.cur_twelem == twelem ) return true;
if ( twelem.wrapper_title
!= twve.tiddler.cur_twelem.wrapper_title )
return false;
if ( /^[rR]/.test(which) )
// testing the rendering index
return twelem.rIndex >= 0
? twve.tiddler.cur_twelem.rIndex == twelem.rIndex
: false;
else
// testing the defining index
return twelem.dIndex >= 0
? twve.tiddler.cur_twelem.dIndex == twelem.dIndex
: false;
},
//}}}
/***
!!!! twve.tiddler.inactiveElem
***/
//{{{
inactiveElem : function($elem) {
var $preview = twve.tiddler.getPreviewer();
var result = $preview
&& ($elem[0] == $preview[0]
|| $elem.closest('.preview').size()>0);
if ( ! result ) {
var $ed = twve.tiddler.getEditBox();
result = $ed && $ed.is($elem);
}
if ( ! result )
result = twve.menu.isButton($elem);
return result;
},
//}}}
/***
!!! save_info methods
***/
//{{{
tiddlers_recorded : null,
push_tiddler : function ( tiddler ) {
if ( ! this.tiddlers_recorded ) {
this.tiddlers_recorded = new Array();
this.tiddlers_recorded.push(tiddler);
} else if ( this.tiddlers_recorded.indexOf(tiddler)==-1 )
this.tiddlers_recorded.push(tiddler);
},
save_table_info : function (tiddler,wndx,info_key,value ) {
if ( ! tiddler.table_info )
tiddler.table_info = new Array();
var saved_info = tiddler.table_info[wndx],
info = (value===undefined?info_key:{info_key:value});
if ( ! saved_info ) saved_info = {};
tiddler.table_info[wndx] = merge(saved_info, info);
this.push_tiddler(tiddler);
},
get_table_info : function (tiddler, wndx, key) {
if ( ! tiddler || ! tiddler.table_info ) return null;
if ( wndx === undefined ) return tiddler.table_info;
var info = tiddler.table_info[wndx];
return (info ? (key ? info[key] : info) : null);
},
//}}}
/***
!!! restore_scroll_pos
***/
//{{{
restore_scroll_pos : function (twtable) {
var pos = twve.table.get_table_info(
twtable.tiddler,twtable.dIndex,'ScrollPos'
);
if ( pos ) {
twtable
.$dom.parent()
.scrollLeft(pos.left)
.scrollTop(pos.top);
}
},
//}}}
/***
!!! wrapper_tiddler
***/
//{{{
wrapper_tiddler : function (twelem,type) {
// Find the direct wrapper and corresponding tiddler for
// an element, as well as all transcluded copies.
// Wrappers can be any of the follows:
// div.viewer -- normally loaded
// div.sliderPanel -- <<slider>> transcluded
// div.tabContents -- <<tabs>> transcluded
// span[tiddler] -- <<tiddler>> transcluded
// span.sliderPanel -- <<foldHeadings>> folded
// First we look for the direct wrapper, find its tiddler
// title, then we use that title to find all other
// copies, including partially and fully transcluded
// wrappers.
// Note that except for div.viewer, the normally loaded
// wrapper, all kinds of wrappers can be contained in other
// kinds.
var $elem = twelem.$dom;
// First we check if the wrapper title is already given.
// If so, we find the tiddler and wrappers with this title.
// Otherwise we find the title of the direct wrapper, then
// the tiddler and wrappers.
if ( ! twelem.wrapper_title ) {
if ( TWtid.is_wrapper($elem) ) {
// If the element is a wrapper
if ( $elem.is('.viewer,div[id=tiddlerDisplay]') ) {
twelem.$direct_wrapper = $elem;
} else {
twelem.$direct_wrapper =
/^elem/.test(type)
? TWtid.direct_wrapper($elem.parent())
: $elem;
}
} else {
// It's a regular element
twelem.$direct_wrapper = TWtid.direct_wrapper($elem);
}
twelem.wrapper_title =
TWtid.title_from_wrapper(twelem.$direct_wrapper);
}
if ( store.isShadowTiddler(twelem.wrapper_title) ) {
twelem.tiddler = null;
twelem.$wrapper = null;
} else {
twelem.tiddler = this.get_tiddler(twelem.wrapper_title);
twelem.$wrapper=this.wrapper_from_title(
twelem.wrapper_title
);
}
return twelem;
},
//}}}
/***
!! Deprecated line-based [[TWtid|TWtid.2.0.10]] core functions.
These functions handle wiki text in a line-based manner (use a line break to indicate the end of something), which is good for line-base block elements such as tables (line break is the end of a table row), blockquotes (line break is the end of the blockquote), etc. This, however, is not good for other kinds of elements that could be defined in a character-based manner (in-line elements that do not use a line break to indicate an end), such as an //itallic text// ({{{//italic//}}}) or @@color:red;red-colored text@@ ({{{@@color:red;red-colored text@@}}}).
To extend the capabilities of the [[TWtid|TWtid.2.0.10]]+[[TWted|TWted.2.0.10]] plugins to handle the character-based (in-line) elements, the core functions were adapted to the character-based behavior so these are no longer needed.
!!!Revision history
* 2013/05/24
** Removed from the {{{TWtid}}} 1.6.4.
!!!{{{TWtid}}}.xxx functions
***/
/***
!!! elem_first_line
***/
//{{{
elem_first_line : function (text,prefix,ndx,title
,subprefix,start) {
// Find the first line of text that defines a block element,
// such as
// paragraphs, tables, lists, headers,
// blockquotes,
// definition lists, block examples, preformat,
// each of which has its own defining prefix.
// a paragraph starts with a regular word;
// a table starts with a (|);
// a list starts with either (*) or (#);
// a header starts with (!), level 1 to 6;
// a blockquote starts with (>), level 1 to 3;
// a definition lists starts with a (;) and
// ends with a (:)-started line;
// a block example starts with (<<<) and
// ends with a (>>>)-started line;
// a preformat starts with ({{{) and
// ends with a (}}})-started line.
// Before calling this function, either the rendering index
// or the defining index of the element must be already known.
// Normally we obtaine the rendering index first, using
// TWtid.element_index() function, then obtain the defining
// index through this function. However, upon synchronizing
// transcluded copies of the same tiddler, we first obtain the
// rendering index of the element in one of the transcluded copies,
// then the defining index in the wikitext, and use that defining
// index to find the rendering index of the corresponding element
// in other copies.
// Parameters:
// text: Line-feed splitted wikitext.
// prefix: Prefix that defines a specific block element.
// For example, a table should start with a '|',
// while a list would start with a '*' or '#'.
// ndx: Index of the element. This ndx should be an object
// containing the rendering index (rIndex) and
// defining index (dIndex).
// For example, ndx = {
// 'rIndex':rndx
// , 'dIndex':dndx
// }
// title: Title of the wrapper. Would be the tiddler title
// for non-transcluded or fully transcluded tiddlers,
// or the tiddler title followed by '##' and a
// section title for partially transcluded tiddlers.
// subprefix: Prefix that defines the next level element.
// For example, a list defined by prefix '*' may
// contain sublists defined by subprefix '**'
// or '##'.
// start: Line number to start searching.
var i = (start?start:0)
, s = this.tiddler_slice(title);
if ( s ) {
// Slice, not yet decided what to do
//while ( ++i < text.length )
// if ( text[i].indexOf(s) > -1 )
// return text[i].charAt(0) == '|' ? i : -1;
// Slice not found
return -1;
}
s = this.tiddler_section(title);
var to_skip = 0;
if ( s ) {
to_skip = TWtid.header_to_skip(s);
if ( to_skip > 0 )
s = TWtid.remove_header_tail(s);
}
var rndx = -1, dndx = -1;
var started = (!s);
//displayMessage('looking for elem'+TWtid.object_string(ndx)+' in '+title);
do {
if ( s && !started && text[i].charAt(0) == '!' ) {
// There is section name in the title, meaning
// that section is partially transcluded.
// If counting of order of appearance has already
// started and we are seeing another section here,
// meaning the element is not found within this
// section. Stop and return -1 (not found);
//if ( started ) return -1;
// Start counting the order of appearance
// of elements if the transcluded section is found.
if ( text[i].indexOf(s) > -1 ) {
//displayMessage('found '+s+' in '+text[i]);
if ( to_skip > 0 ) {
to_skip--;
} else started = true;
}
}
if ( prefix.test(text[i]) ) {
// Element defining text, returns it if index matches.
if ( started ) {
++dndx;
++rndx;
if (ndx.dIndex > -1 ) {
// Defining index is given
if ( dndx == ndx.dIndex) {
// Matched. Assign its rendering index and return
// the line number.
ndx.rIndex = rndx;
//displayMessage('elem'+TWtid.object_string(ndx)+' in '+title+' found at line number '+i);
return i;
}
} else if ( ndx.rIndex > -1 ) {
// Rendering index is given
if ( rndx == ndx.rIndex ) {
// Matched. Assign its defining index and return
// the line number.
ndx.dIndex = dndx;
return i;
}
} else {
// Neither of the indices are given.
// Assume matched. Assign both indices and return
// the line number.
ndx.dIndex = dndx;
ndx.rIndex = rndx;
return i;
}
}
// Otherwise skip to the end of this element
// For headers and blockquotes that only occupy one line,
// there is no need to skip to the end. For other kind
// of block element we skip to the end of it.
if ( prefix.source.indexOf('\\{\\{\\{')>-1
|| TWtid.preformat_first_line(text[i]) ) {
i = this.preformat_last_line(text,i+1);
} else if ( /\{\d\}\[/.test(prefix.source) ) {
// If this is a list, there can be two types,
// skip only the current type.
i = this.list_last_line(
text,i+1,this.list_prefix(text[i])
);
} else if ( prefix.source == '^[\\|]' ) {
// This is a table
i = this.table_last_line(text,i+1);
} else if ( /\>\{\d,\d\}/.test(prefix.source) ) {
// Blockquotes
if ( this.blockexample_first_line(text[i]) )
i = this.blockexample_last_line(text,i+1);
else {
if ( (/^\>{2}/.test(text[i])
&& ! /^\>{1}/.test(text[i-1]))
|| (/^\>{3}/.test(text[i])
&& ! /^\>{2}/.test(text[i-1])) )
// Blockquotes that do not start with the
// first level.
++rndx;
i = this.blockquote_last_line(text,i);
}
}
} else if ( /\{\d\}\[/.test(prefix.source) ) {
// For lists not starting from level 1.
if ( subprefix.test(text[i]) ) {
++dndx;
if ( started ) {
++rndx;
if (ndx.dIndex > -1 ) {
if ( dndx == ndx.dIndex) {
ndx.rIndex = rndx;
return i;
}
} else if ( rndx == ndx.rIndex ) {
ndx.dIndex = dndx;
return i;
}
}
}
}
} while ( ++i < text.length );
return -1;
},
//}}}
/***
!!! lines_of_text
***/
//{{{
lines_of_text : function(wikitext, r0, rl, newtxt) {
// Gets/Sets lines of text, from r0 to rl, inclusive, of
// the wikitext. If the last argument newtxt is undefined,
// this function returns the lines of text from r0 to rl.
// Otherwise it replaces the lines of text with the newtxt.
if ( newtxt === undefined ) {
// Gets the lines of text.
var txt = rl>=r0 ? wikitext[r0] : '';
for ( var r = r0+1; r <= rl; r++ )
txt += '\n'+wikitext[r];
return txt;
} else {
// Replaces the lines of text with newtxt.
if ( newtxt )
wikitext.splice(r0,rl-r0+1,newtxt);
else
wikitext.splice(r0,rl-r0+1);
}
},
//}}}
/***
!!! list_prefix related
***/
//{{{
escape_string : function(s) {
return s.replace(/[-/$*#]/g, '\\$&');
},
list_prefix : function ( level, ch ) {
if ( typeof level == 'string' ) {
var lev_ch = TWtid.element_level(level,0,/(\*|\#)/);
if ( lev_ch.level == 0 ) return null;
level = lev_ch.level;
ch = lev_ch.ch;
}
//displayMessage('looking for the last line of list '+ch+' level='+level);
var prefix = ch
? '^'+ch+'{'+level+'}[^'+ch+']'
: '^(*{'+level+'}[^*]|#{'+level+'}[^#])';
//: '^(*{'+level+'}|#{'+level+'})';
var subprefix = '^(*{'+(level+1)+'}|#{'+(level+1)+'})';
//function escapeRegExp ( s ) {
//return s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
// return s.replace(/[-/$*#]/g, '\\$&');
//}
return {
'prefix':new RegExp(TWtid.escape_string(prefix))
, 'subprefix':new RegExp(TWtid.escape_string(subprefix))
};
},
list_last_line : function (text, r0, ps) {
// Find the closing line number that defines the list starting
// at line number r0.
var i = r0;
do {
if ( ! ps.subprefix.test(text[i]) )
break;
} while ( ++i < text.length );
return i-1;
},
line_number_of_list_item : function (text,r0,lindx) {
// Find the list item, indexd as lindx, within the list that
// starts at r0.
// A list can contain another list within itself, we need to
// skip those sub-lists.
var lev_ch = TWtid.element_level(text[r0]);
var ps = this.list_prefix(lev_ch.level, lev_ch.ch);
var i = r0, li = 0;
do {
// Go through the list until the desired item found or
// the end of list reached.
if ( ps.prefix.test(text[i]) ) {
if ( li == lindx )
// Found the list item
return i;
else li++;
} else if ( ! ps.subprefix.test(text[i]) )
break;
} while (++i < text.length);
return -1;
},
//}}}
/***
!!! xxx_first_line / xxx_last_line
***/
//{{{
header_first_line : function (text,ndx,title,start) {
// Find the line number that defines the header with index
// ndx. In the wiki style text a header is defined by a
// line of text that starts with '!'. Level 1 heading starts with
// one '!', while level 2 starts with two, etc. There could be
// up (down) to 6 heading levels.
return this.elem_first_line(text,/^\!{1,6}/,ndx,title,null,start);
},
blockquote_first_line : function (text,ndx,title,start) {
// Find the line number that defines the blockquote with index
// ndx. In the wiki style text a blockquote is defined by a
// line of text that starts with '>'. Level 1 blockquote starts
// with one '>', while level 2 starts with two, etc. There could
// be up (down) to 3 levels of blockquotes.
return this.elem_first_line(
text,/^(\>{1,3}|\<\<\<)/,ndx,title,null,start
);
},
blockquote_last_line : function (text, r0) {
// Find the closing line number that defines the blockquote starting
// at line number r0.
var r = r0;
var lev_ch = TWtid.element_level(text[r0]);
var prefix = text[r].substring(0,lev_ch.level);
while ( ++r < text.length )
if ( ! (text[r].startsWith(prefix)
&& text[r].charAt(lev_ch.level) != lev_ch.ch) )
break;
return r-1;
},
blockexample_first_line : function ( text ) {
return /^\<\<\</.test(text);
},
blockexample_last_line : function (text, r0) {
var r = r0;
while ( r < text.length )
if ( /^\<\<\</.test(text[r]) ) return r;
else r++;
return r-1;
},
preformat_first_line : function (text,ndx,title) {
// Find the line number that defines a block preformat with index
// ndx. In the wiki style text a block preformat is defined by an
// opening line of text that starts with '{{{', followed by the
// text of the example, then a closing line of text that starts
// with '}}}'.
var prefix = /^(\{\{\{|\/\/\{\{\{|\/\*\{\{\{|\<\!--\{\{\{)/;
return typeof text == 'string'
? prefix.test(text)
: this.elem_first_line(text,prefix,ndx,title);
},
preformat_last_line : function ( text, r0 ) {
var r = r0;
while ( r < text.length )
if ( /^(\}\}\}|\/\/\}\}\}|\/\*\}\}\}|\<\!--\}\}\})/
.test(text[r]) ) return r;
else r++;
return r-1;
},
//}}}
/***
!!! table_first_line / table_last_line
***/
//{{{
table_first_line : function (text,ndx,title) {
// Find the beginning line number that defines the table with
// index ndx. In the wiki style text a table is defined by
// (non-blank) lines of text that start and end with '|'. Therefore
// we only focus on those lines that start with a '|'.
return this.elem_first_line(text,/^[\|]/,ndx,title);
},
table_last_line : function ( text, r0 ) {
// Find the closing line number that defines the table starting
// at line number r0.
var r = r0;
while ( r < text.length )
if ( /^[\|]/.test(text[r] ) ) r++;
else break;
return r-1;
},
//}}}
/***
!!! split_line_text
@@This function is actually not depricated but moved to TWtcalc@@, a simple calculator for TiddlyWiki.
***/
//{{{
split_line_text : function ( txt, sep, brackets ) {
// Split one line of wikitext that contains several items, a table
// row or an array, for example.
//
// Arguments: txt The txt to split.
// sep The separator of items
// brackets An array of pairs of opening/closing
// brackets that should not split.
var result = txt.split (sep), r0 = 0
, rl = result.length-1, popen, mclose, pclose;
while ( ! result[r0] && r0 < rl ) r0++;
while ( ! result[rl] && r0 < rl ) rl--;
for ( var b = 0; b < brackets.length; b++ ) {
for ( var i = r0; i < rl; i++ ) {
if ( ! result[i] ) continue;
if ((popen=result[i].lastIndexOf(brackets[b].open))==-1)
continue;
if ( typeof brackets[b].close == 'string' )
pclose = result[i].lastIndexOf(brackets[b].close);
else {
if ( (mclose=result[i].match(brackets[b].close)) ) {
pclose = result[i]
.lastIndexOf(mclose[mclose.length-1]);
} else pclose = -1;
}
if ( popen > pclose ) {
// Found one part of the text that contains an opening
// bracket(s), but not its closing counterpart. This is
// possibly one of the cases mentioned above. If so then
// the next part may contain the corresponding closing
// bracket(s).
if ( typeof brackets[b].close == 'string' )
pclose = result[i+1].indexOf(brackets[b].close);
else
pclose = result[i+1].search(brackets[b].close);
popen = result[i+1].indexOf(brackets[b].open);
if ( pclose > -1 ) {
if ( popen==-1 || popen>pclose ) {
// Fond the corresponding closing bracket(s).
// Combine the two parts to restore it.
result[i] += sep + result[i+1];
// Remove the second part.
result.splice ( i+1, 1 );
if ( popen > pclose )
// There is another opening bracket(s) after
// the desired closing bracket(s), check this
// cell again.
--i;
}
}
}
}
}
return result;
},
//}}}
/***
!!! split_table_row
***/
//{{{
split_table_row : function ( linetxt ) {
// Split one line of wikitext that defines a table row.
// A table row consists of one or more table cells, each separated
// by '|' in the wikitext that defines the table row. For example,
// | 1 | 2 | 3 |
// defines a table row with three table cells.
// Naively a simple linetxt.split ('|') should do the work. Yes it
// does, in cases where the cell contents are just regular text.
// If some of the cells contain a link to a tiddler
// [[text|tiddler.name]], or to an external URL [[text|http://xxx]],
// then there will be an extra '|' that should not be considered as
// cell separation delimiter. If we still want to use
// linetxt.split ('|'), then such links should be recoverd before use.
// 2012/08/19. Another case is the preformatted text enclosed within
// {{{ and }}}. There could be one or more instances of '|' contained
// in the preformatted text.
// 2012/10/31. Even another case is the local file URL in Windows
// system: the semicolon ':' used to specify hard disk drive
// is replaced with the vertical bar '|'.
// For example, the URL for a local file stored in
// C:\Document\something.txt would be
// {{{file:///C|/Document/something.txt}}}.
// The vertical bar here should also be restored before use.
return this.split_line_text (linetxt, '|', [
{open:'[[', close:']]'}
,{open:'{{{', close:'}}}'}
,{open:'\(', close:'\)'}
,{open:'$', close:'$'}
,{open:'\[', close:'\]'}
,{open:'$$', close:'$$'}
//,{'open':'<<<', 'close':'>>>'}
,{open:'file:///', close:/^[\/][\w]+[\w\.\/\#]/}
]);
},
//}}}
/***
!!! cell_index_in_line
***/
//{{{
cell_index_in_line : function ( linetxt, c ) {
// Find the index number of the text that defines the cth cell in
// linetxt.
// Arguments:
// linetxt: The text that defines the table row. The linetxt
// MUST already be '|' splitted using
// this.split_table_row(linetxt).
// c: The colum index of the cell within the table row
// defined by linetxt.
// Returns:
// If found, returns the index number of the text that defines
// the cth cell. Otherwise returns -1.
if ( c < 0 || c >= linetxt.length ) return -1;
var col = -1;
for ( var dc = 1; dc < linetxt.length-1; dc++ ) {
if ( linetxt[dc] != '>' && linetxt[dc] != '~' ) col++;
if ( col == c ) return dc;
}
return -1;
},
//}}}
/***
!!! cell_text
***/
//{{{
cell_text : function ( wikitxt,start,end,row,col,span ) {
// Retrieve the wikitext associated with a table cell located at
// (row, col), together with the corresponding row/col indices of
// the cell if it were not row/column spanned. These indices are
// convenient for handling the underlying wikitxt of a spanned
// cell.
//displayMessage('search for table cell ('+row+','+col+') spanned ('+span.row+','+span.col+') between '+TWtid.object_string(start)+' nearby '+wikitxt.substring(start.ndx,start.ndx+10)+' and '+TWtid.object_string(end)+' nearby '+wikitxt.substring(end.ndx-10,end.ndx));
var rstart, rend, c, txt = new Array(), rowtxt;
// Find the right cell (skip the spanned columns).
for ( var r = 0; r < span.row; r++ ) {
rstart = this.table_row_starts(wikitxt,start,end,row+r);
//displayMessage('table row '+(row+r)+' starts at '+rstart+' nearby '+wikitxt.substring(rstart,rstart+10));
rend = TWtid.table_row_ends(wikitxt,rstart+1);
//displayMessage(' ends at '+rend+' nearby '+wikitxt.substring(rend-10,rend));
rowtxt = this.split_table_row(wikitxt.substring(rstart,rend));
if(r==0)
if ( (c=this.cell_index_in_line(rowtxt,col)) == -1 ) {
// Retrieving a non-existing cell. Append it to this row.
c = rowtxt.length-1;
rowtxt.push('');
}
txt.push ( new Array() );
for ( col = span.col-1; col >= 0; col-- )
txt[r].push ( rowtxt[c-col] );
//displayMessage(' txt['+r+']='+txt[r]);
}
return txt;
},
//}}}
/***
!!! apparent_dim
***/
//{{{
apparent_dim : function ($elem) {
switch ( $elem[0].nodeName ) {
case 'TABLE' :
if ( config.options.chkTWtidEnabled ) {
$elem = $elem.parent();
}
case 'PRE' :
case 'BLOCKQUOTE' :
return {'W':$elem.width(), 'H':$elem.height()};
case 'SPAN' :
case 'DIV' :
if ( $elem.is('.sliderPanel,.tabContents,[tiddler]') )
return {'W':$elem.width(), 'H':$elem.height()};
}
var $place = $elem.find('span').size()>0
? $elem.parent()
: $elem;
var $span = jQuery('<span></span>');
$span.appendTo($place);
if ( config.browser.isIE )
$span.html($elem.html());
else
TWtid.copy_html($span,$elem);
//if ( typeof MathJax !== 'undefined' )
// MathJax.Hub.Queue(['Typeset',MathJax.Hub,$span[0]]);
var dim = {
'W':$span.outerWidth()
,'H':$span.outerHeight()
}
$span.remove();
return dim;
},
//}}}
/***
!!! apparent_dim
***/
//{{{
text_nodes : function ($elem) {
return $elem.contents().filter(function() {
return this.nodeType == 3;
})
},
//}}}
/***
! {{{TWted}}}.xxx functions
***/
//{{{
locatable_elem : function($elem) {
// This function was written for leveled elements
// that do not start from the top level. For example,
// a blockquote that starts from the 2nd level.
var $parent, $children,
name = $elem[0].nodeName;
while ( true ) {
$parent = $elem.parent(name);
if ( $parent.size() == 0 ) return $elem;
$children = $parent.children().not(name);
if ( $children.size() > 0 ) return $elem;
$elem = $parent;
}
},
//}}}
share monitor and mouse with other machines ..
!__
synergy SSL
__
!!setup:
<<<
on server (once):
```
mkdir -p ~/.synergy/SSL/Fingerprints
openssl req -x509 -nodes -days 365 -subj /CN=Synergy -newkey rsa:1024 -keyout ~/.synergy/SSL/Synergy.pem -out ~/.synergy/SSL/Synergy.pem
openssl x509 -fingerprint -sha1 -noout -in ~/.synergy/SSL/Synergy.pem > ~/.synergy/SSL/Fingerprints/Local.txt
sed -e "s/.*=//" -i ~/.synergy/SSL/Fingerprints/Local.txt
```
on client (once)
```
scp serveruser@serverhost:.synergy/SSL/Fingerprints/Local.txt ~/.synergy/SSL/Fingerprints/TrustedServers.txt"
```
<<<
---
!!run
<<<
server (here with screen layout from quicksynergy)
```
synergys --config .quicksynergy/synergy.conf --no-daemon --enable-crypto |grep -v -e SecureSocke -e /Server.cpp -e EventQueue -e XWindowsScreen.cpp -e ^$ -e ServerApp.cpp -e Screen.cpp -e ScreenSaver.cpp
```
!!!client:
```
syntarget=another-mnds-host.local
synscreenname=left
DISPLAY=:0 synergyc --no-daemon --enable-crypto --name "$synscreenname" "$syntarget" |grep -v -e ^$ -e \.cpp, -e "start receiving clipboard data" -e "empty clipboard 1" -e "grabbed clipboard" -e "receiving clipboard" -e leaving -e entering -e "open clipboard" -e "close clipboard" -e "clipboard was updated" -e "DEBUG: lost clipboard"
```
---
<<<
https://github.com/symless/synergy-core/wiki/Security
http://www.ledstyles.de/index.php/Thread/11802-PC-DMX-Interface-f%C3%BCr-Ansteuerung-unter-Linux-gesucht/
https://forum.dmxcontrol-projects.org/index.php?thread/123-dmx-unter-linux/
http://llg.cubic.org/dmx4linux/i2c.html
http://www.dmxcontrol.de/
https://forum.ubuntuusers.de/topic/dmx-steuerung-mit-ubuntu/
https://wiki.openlighting.org/index.php/Open_Lighting_Project
http://rdm.openlighting.org/
https://www.popella.de/showtec-quick-dmx-usb-dongle
http://www.illutzminator.de/udmx.html
http://www.qlcplus.org/docs/index.html
http://www.dmxcontrol.de/unterstuetzte-interfaces.html
<$mermaid text="
graph LR
A-->B
B-->C
C-->A
D-->C
"><$mermaid>
在 {{{TableEditor}}} 裡面我使用 {{{TextArea}}} 來編輯表格欄位的內容,通常沒有什麼問題,但有時候當欄位內容稍長一些,我總覺得如果 {{{TextArea}}} 可以大一點讓我看到多一點內容的話會比較好一點。@@color:blue;網路上並不難找到可用的範例將 {{{TextArea}}} 的高度動態調整到符合文字內容的長度,@@ 然而,讓我很驚訝的是,許多人的方式實在過於複雜而遠遠超出我這個功力還不到家的 Javascript 非菜鳥的理解程度。我相信他們有很好的理由把程式寫得那麼複雜,但就我的簡單目的來說我寧可不要借用一個永遠無法理解的方式去做,所以我決定自己來。
In {{{TableEditor}}} a {{{TextArea}}} is used to edit cell content. Usually it works fine but sometimes when I typed a bit more text into the {{{TextArea}}}, I would feel better to have a larger {{{TextArea}}} so I can see more of the text I just typed in. @@color:blue;It is not difficult to find working examples that dynamically set the {{{TextArea}}} height to fit its content.@@ It is, however, to my surprise that many of them are way complicated and far beyond this not-that-experienced-Javascriptor's understanding. I am sure they have a good reason to make it so complicated, but for my simple purpose I don't want to borrow something that I can never understand. So I decided to do it myself.
經過一些嘗試我發現增加高度的方法其實很直接:
>把高度設定成 {{{scrollHeight}}} 就可以了。
After some trying I figured that it is quite straightforward to extend the height:
>simply set it to the value of {{{scrollHeight}}} property.
//{{{
// $ta is the jQuery object representing my TextArea.
$ta.height($ta.prop('scrollHeight'));
//}}}
這樣做 {{{TextArea}}} 的高度會自動增加,當 {{{scrollHeight}}} 比 {{{height()}}} 要更大的時候。__不過呢,使用 {{{Chrome, FireFox and Safari}}} 的時候在相反的情況下它卻不會自動縮小。''只有 {{{IE9}}} 的動作是和預期的一致''。__
This way {{{TextArea}}} extends vertically when {{{scrollHeight}}} is larger than {{{height()}}}. __However, it doesn't shrink in opposite cases with {{{Chrome, FireFox and Safari}}}. ''Only {{{IE9}}} works the expected way''.__
>瀏覽器之間的不相容行為一直讓我抓狂!過去的經驗裡比較多次是 {{{IE}}} 讓我吃苦,不過這回 {{{IE9}}} 卻絕對是個甜頭。
>The inconsistent behaviors between different browsers always drive me crazy! In my experiences most of the times {{{IE}}} was the bitter one, but in this case {{{IE9}}} is definitely the sweet candy.
很快我了解到為何它不會自動縮小:{{{scrollHeight}}} 的值沒有跟著文字縮短而變小。我試著找出一個方法來得到正確的 {{{scrollHeight}}},數小時間用盡我能想到的辦法,包括自己計算所需要的高度,仍然沒有收穫,幾乎要放棄。在最後幾分鐘裡我發現 [[這個網頁|http://code.google.com/p/chromium/issues/detail?id=141977]],它啟發了我一個想法:__先改變高度再來獲得 {{{scrollHeight}}} 的值__。
Pretty soon I realized why it doesn't shrink: the {{{scrollHeight}}} property does not reduce as the text shortens. I tried to find a way to get the correct {{{scrollHeight}}}, in several hours I tried all I could think of, including to calculate the required height myself, all to no avail. I almost gave up. In the last few minutes I found [[this page|http://code.google.com/p/chromium/issues/detail?id=141977]] which inspired me one idea: __change the height before getting the {{{scrollHeight}}} property__.
成了。
It works.
//{{{
// $ta is the jQuery object representing my TextArea.
$ta.height(0);
$ta.height($ta.prop('scrollHeight'));
//}}}
要實用的話應該有一個最小高度以免 {{{TextArea}}} 變得太小無法使用。下面列出 {{{TableEditor}}} 裡面實際使用的程式碼。
To be practical there should be a minimum height to keep the {{{TextArea}}} from going too small to use. The actual codes used in {{{TableEditor}}} are listed below.
//{{{
// This is the keydown handler of a TextArea.
keydown : function (ev) {
var $ta = jQuery(this);
switch ( ev.which ) {
// ...
// ...
default :
// Adjust the edit box height to fit its content.
// The following codes are pushed to the next event
// loop in order to obtain the updated scaleHeight
// of $ta after receiving the current character. We
// need to do so because the keydown event is invoked
// BEFORE the element receives the input character.
setTimeout ( function(){
// It is interesting that with Chrome, FireFox,
// and Safari we need to change the height of $ta
// to get the correct scrollHeight, while with IE9
// we get it either way. The scrH0 is just the minimum
// height that we stored upon initialization.
$ta.height(0);
var scrH0 = $ta.attr('scrH0')*1,
scrH = $ta.prop('scrollHeight');
$ta.height(scrH > scrH0 ? scrH : scrH0);
}, 0 );
break;
}
},
//}}}
The ''T''iddly''W''iki ''V''iew mode ''E''ditor, briefly ''twve'', is a collection of plugins that gives you the possibilities to
# edit the wiki text in the view mode, transcluded as well as normally loaded;
# keep all transcluded copies updated.
<<<
# For __users__ who wants to play with it right away, go straight to __[[Examples]]__ for the fun of it. For those who wants some basic information about the editable objects, please read __[[Editable Objects]]__.
# For __''plugin authors''__ interested in having //view mode editing// and/or //transclusion synchronization// features in your plugins, please see __[[Edit Your ...]]__ and __[[Event Handler -- .changed()]]__ for more information.
# For people who are interested in problems/issues encountered in the development, see [[Issues and Problems]] for a list of them and the corresponding solutions/workarounds.
<<<
! Why?
>''Can't find the specific text!''
Wiki text is easy, compared to HTML, to create a web page using a __simple text editor__. For example, to create the following table
|H1|H2|H3|h
|C11|C12|C13|
|C21|C22|C23|
with HTML markups, one would say
{{{
<table>
<tr><th>H1</th><th>H2</th><th>H3</th></tr>
<tr><td>C11</td><td>C12</td><td>C13</td></tr>
<tr><td>C21</td><td>C22</td><td>C23</td></tr>
</table>
}}}
With wiki markups (or markdowns if you like), however, it becomes much simpler (~TiddlyWiki markup),
{{{
|H1|H2|H3|h
|C11|C12|C13|
|C21|C22|C23|
}}}
Personally I think many wiki lovers are attracted to it for this simplicity. At least I am.
Simple is usualy charming, yet sometimes annoying. Take ~TiddlyWiki for example, it is so easy to get started and I found myself stuck on it within a short time. I kept creating more and more complicated pages and everything was fine until one day I had to change one table in a not-so-short tiddler: __I couldn't find the specific text to edit!__
I needed an easier way to edit tables in a large tiddler!
! What?
> ''Edit where I can see it.''
My idea was to edit the wiki text in the view mode, hence no need to find the text in the poor editor with my poor eyes and easily tired brain. I searched a while over the net for a solution and couldn't find one suitable for ~TiddlyWiki. Then I gave up searching and started to create one of my own. It started with the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] which supported simple editing of table cell contents, then evolved into [[TWtable|http://twtable.tiddlyspace.com/#TWtable.1.5.0]]+[[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]] that supported more advanced features such as multi-lined cell content, lists in a cell, etc., and later to [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]]+[[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]] combination that supports view mode editing on most of the block elements in addition to tables. The combination kept evolving and later became the collection ''twve'', which contains the following components:
<<<
!!!! ''twve.core''
<<tiddler "Editable Objects##''twve.core''">>
!!!! ''twve.table''
<<tiddler "Editable Objects##''twve.table''">>
!!!! ''twve.tablelarge''
<<tiddler "Editable Objects##''twve.tablelarge''">>
!!!! ''twve.extra''
<<tiddler "Editable Objects##''twve.extra''">>
!!!! ''twve.tcalc''
<<tiddler "Editable Objects##''twve.tcalc''">>
<<<
Some people might say:
>"//Tiddlers are not meant to be large. Cut them small!//"
I agree. They were meant to be small, in times when we had no computers to easily collect and organize information. Now that we do, think about this: @@color:blue;If you have a car that can run 300 km/hr, would you be happy to drive it at 50 in the city, or to create a place that you can enjoy the speed?@@
! How?
> ''Find the missing half!''
The heart of editing wiki text in the view mode is to find the correspondence between a DOM element and its defining wiki text.
When the user tries to change the content of a DOM element, the plugins find its wiki text and put it in an editbox for the user to edit. When done, the user tells the plugins by clicking away or pressing {{{Ctrl-Enter/Enter}}}, depending on the options settings or the multi-line nature of the element. The plugins then save the changed text and update the element, and update all transcluded copies, if any.
>The ideas behind //finding wiki text// and //transclusion synchronization// are given in other tiddlers.
>[[Matching the two halves]]
>[[TransclusionSupport--How To]]
>[[TransclusionSupport--PartialTransclusion]]
[[Editable Objects]], together with [[Editable Wrappers]] and [[Editable Elements]], describe more details about what is editable and what can be done in the view mode.
>This tiddler, together with [[Edit Your Wrappers]] and [[Edit Your Elements]], describes how to bring view mode editing and/or transclusion synchronization features into your plugins.
To make the visual outputs of your plugin editable in the view mode, you will need to adapt your codes a little bit to work with ''twve''. As stated in the //Introduction// of the [[Editable Objects]], there is some distinction between editable objects, namely the //wrappers// and the //elements//. Codes for //wrappers// shall inherit from [[twve.wrapper]], while that for elements shall do from [[twve.element]]. Because of this, the first thing you need to do is to decide whether your codes are for wrappers or for elements. This is fortunately easy to do: your codes are for wrappers if they are to transclude other tiddler's content, and for elements otherwise.
Once you have decided which type of codes you have, you then adapt the codes according to the descriptions in [[Edit Your Wrappers]] and [[Edit Your Elements]], respectively.
>This tiddler describes how to equip your custom elements (DOM elements with definite wiki text signatures) with view mode editing and/or transclusion synchronization features.
To give your custom elements capabilities of view mode editing and/or transclusion synchronization, you simply do the followings:
!!! __Add__
* __Add__ a property called ''enableEdit'' to the code object representing your wrappers.
* Your wrapper is editable when this property is set to //true//.
* The representing code object can be one in JASON format or a function.
!!! __Implement__
__Implement__ the following __REQUIRED__ methods:
# ''twveSelector''(selector), which
## optionally accepts a twve.selector object selector
## calls selector.includeSelector('incclude selector') to add the include selector, and,
## if desired, calls selector.excludeSelector('excclude selector') to add the exclude selector,
## returns the twve.selector object selector.
## See <<slider '' 'twve.core##twve.code.twveSelector' 'twve.code.twveSelector([selector])'>> for a simple example, or
## <<slider '' 'twve.extra##twve.listitem.twveSelector' 'twve.listitem.twveSelector([selector])'>> for a more advanced one.
## For more information about ''twve.selector'', see [[twve.selector]].
# ''wikiTags''(), which returns the wiki tags of its kind of elements.
## See <<slider '' 'twve.core##twve.code.wikiTags' 'twve.code.wikiTags()'>> for a simple example, or
## <<slider '' 'twve.extra##twve.listitem.wikiTags' 'twve.listitem.wikiTags()'>> for a slightly advanced one.
## For an even more advanced example, see <<slider '' 'twve.core##twve.pre.wikiTags' 'twve.pre.wikiTags()'>> for the preformatted blocks.
## For more information about wiki tags, see [[twve.tags]].
# ''create''(src), which creates elements of its kind.
## Your elements should inherit from either [[twve.element]] (as the first statement in <<slider '' 'twve.core##twve.code.create' 'twve.code.create([src])'>>) or [[twve.leveledElement]] (as the first statement in <<slider '' 'twve.extra##twve.listitem.create' 'twve.listitem.create([src])'>>).
## In this method you can optionally override the default methods defined in [[twve.editable]], [[twve.element]] or [[twve.leveledElement]].
*** See <<slider '' 'twve.extra##twve.listitem.create' 'twve.listitem.create([src])'>> for example.
*** [[twve.editable]] is the base for all editable objects in ~TiddlyWiki.
!!! __Register__
__Register__ your element by calling ''twve.tiddler.registerElement''(//yourObject//) in the initialization procedure of your plugin. Your elements are then editable in the view mode!
<<foldHeadings>>
>This tiddler describes how to equip your custom wrappers (the containers that holds transcluded content most likely) with view mode editing and/or transclusion synchronization features.
To give your custom wrappers capabilities of view mode editing and/or transclusion synchronization, you simply do the followings:
!!! __Add__
* __Add__ a property called ''enableEdit'' to the code object representing your wrappers.
* Your wrapper is editable when this property is set to //true//.
* The representing code object can be one in JASON format or a function.
!!! __Implement__
__Implement__ the following methods:
* __REQUIRED__
## ''twveSelector''(selector), which
### optionally accepts a twve.selector object selector
### calls selector.includeSelector('incclude selector') to add the include selector, and,
### if desired, calls selector.excludeSelector('excclude selector') to add the exclude selector,
### returns the twve.selector object selector.
### See <<slider '' 'twve.core##twve.viewer.twveSelector' 'twve.viewer.twveSelector([selector])'>> for an example.
### For more information about ''twve.selector'', see [[twve.selector]].
## ''titleOfWrapper''($w), which returns the tiddler title that's been transcluded into $w (jQuery object representing a wrapper of its kind).
### See <<slider '' 'twve.core##twve.tiddlerSpan.titleOfWrapper' 'twve.tiddlerSpan.titleOfWrapper($w)'>> (wrappers holding {{{<<tiddler>>}}} transcluded content) or <<slider '' 'twve.core##twve.viewer.titleOfWrapper' 'twve.viewer.titleOfWrapper($w)'>> (wrappers holding normally loaded content) for examples.
## ''wrapperFromTitle''(title, $parent), which finds all the wrappers with the given title (tiddler title) in $parent (jQuery object).
### See <<slider '' 'twve.core##twve.tiddlerSpan.wrapperFromTitle' 'twve.tiddlerSpan.wrapperFromTitle(title,$parent)'>> (wrappers holding {{{<<tiddler>>}}} transcluded content) or <<slider '' 'twve.core##twve.viewer.wrapperFromTitle' 'twve.viewer.wrapperFromTitle(title,$parent)'>> (wrappers holding normally loaded content) for examples.
## ''create''(src), which creates wrappers of its kind.
### Your wrappers should inherit from [[twve.wrapper]].
**** See the 1^^st^^ line in <<slider '' 'twve.core##twve.viewer.create' 'twve.viewer.create([src])'>> for a simple example.
**** There are cases where a //transclusion wrapper// is treated as an //element//, such as to locate the plain text between two block elements, with one of which being a transclusion wrapper. To support such cases, modify the inheritance statement as the first statement in <<slider '' 'twve.core##twve.tiddlerSpan.create' 'twve.tiddlerSpan.create([src])'>> (for {{{<<tiddler>>}}} transcluded wrappers).
### In this method you can optionally override the default methods defined in [[twve.editable]] or [[twve.wrapper]].
**** For an example see <<slider '' 'twve.extra##twve.foldedSection.create' 'twve.foldedSection.create([src])'>> ({{{<<foldHeadings>>}}} created wrappers) that overrides the {{{twwrap.setElement($elem)}}} method.
**** [[twve.editable]] is the base for all editable objects in ~TiddlyWiki.
* __OPTIONAL__
## ''wikiTags''(), which returns the wiki tags of its kind of wrappers.
### See <<slider '' 'twve.core##twve.tiddlerSpan.wikiTags' 'twve.tiddlerSpan.wikiTags()'>> for an example.
### For more information about wiki tags, see [[twve.tags]].
!!! __Register__
__Register__ your wrapper by calling ''twve.tiddler.registerWrapper''(//yourObject//) in the initialization procedure of your plugin. Your wrappers are then editable in the view mode!
<<foldHeadings>>
>This tiddler describes which //elements// are editable and what can be done in the view mode. For the same information about //wrappers//, see [[Editable Wrappers]].
! Introduction
In ''twve'' the //elements// are DOM elements with definite wiki text signatures that can be easily identified in the wiki text. For example, in ~TiddlyWiki a table is defined by one or more consecutive lines of text that begin with one vertical bar (|), and contains one or more following ones. Going through all the supported elements in ~TiddlyWiki we can find that DOM elements can be classified into two types: //twve.element// and //twve.leveledElement//. DOM elements like TABLE, CODE, and PREFORMATTED BLOCK, are examples of //twve.element//, while those like LISTITEM, HEADING, and BLOCKQUOTE, are //twve.leveledElements//. The main differences between them are
# a //twve.leveledElement// has //levels// associated with it, and
# a //twve.leveledElement// may contain sub-elements of its own type.
A //twve.element//, however, does not have the above properties: it is not leveled and does not contain children of its own type.
For each of these elements the ''twve'' has one particular code object to represent it. For example, [[twve.table]] represents //tables//, while [[twve.listitem]] represents //listitems// in ~TiddlyWiki. All these code objects inherit properties and methods from either the [[twve.element]] or the [[twve.leveledElement]] (which also inherits properties and methods from ''twve.element''). The ''twve.element'' implements the common features that all these elements share, while the ''twve.leveledElement'' implements the particular features to take care of levels and sub-elements of its own type.
! Code Objects
The ''twve'' has the following built-in code objects:
<<<
!! ''twve.element''
!!!! twve.code
!!!! twve.pre
!!!! twve.table
!!!! twve.tabset
<<<
<<<
!! twve.leveledElement
!!!! twve.heading
!!!! twve.listitem
!!!! twve.blockquotes
<<<
<<<
''The easiest way to learn -- Just use it!''
Start using the plugins, you will notice the focusing borders flying around with your mouse cursor. __These focusing borders are basically telling you //where you can edit now//__.
* For most of the elements, just click within the focusing borders and edit.
* For transcluded content and their macro commands, see [[twve--Example--Transclusion--Content]] and [[twve--Example--Transclusion--Macros]].
See [[Editable Elements]] for an example, or @@color:blue;open up any of the tiddlers tagged with 'Examples' and play with it.@@ You will see how easy it is.
><<slider "" "Examples" "tiddlers tagged with 'Examples'">>
Have Fun!
<<<
! Want to know about them?
>This tiddler, together with [[Editable Wrappers]] and [[Editable Elements]], describes which objects are editable and what can be done in the view mode. If you are interested in bringing view mode editing and/or transclusion synchronization capabilities into your plugins, see [[Edit Your ...]] for more information.
!! Introduction
In ''twve'' there are two kinds of editable objects, namely ''wrappers'' and ''elements''. The //wrappers// are containers holding all or part of a tiddler's content, while //elements// are DOM elements that have definite wiki text signatures. For example, the {{{div.viewer}}} that holds the content of a normally loaded tiddler is one kind of //wrappers//, the {{{div.tabContents}}} that holds all or part of a tiddler's content transcluded through the {{{<<tabs>>}}} macro, is another. The //list item//, however, is an example of //elements// with clear wiki text signatures that it always occupies one line of text, and that line of text always starts with one or more pound signs (#) or asterisks (*).
These two types of objects have some things in common and many things different. In ''twve'' their common parts are implemented in [[twve.editable]] for them to share, while the differences go into [[twve.wrapper]] and [[twve.element]] accordingly. Editable wrappers inherit properties and methods from the [[twve.wrapper]], while editable elements inherit those from the [[twve.element]].
!!! Code structrure
The codes of the ''twve'' are divided into the following parts
!!!! ''twve.core''
The core of the collection, mainly providing
# easy access to the defining wiki text corresponding to any DOM element,
** modify the content of an element
** change the type of the element
** keyboard navigation within the same type of elements
# immediate update for all transcluded copies of a DOM element after changes made,
# post-change processing through the <<slider '' 'twve.core##editable.changed' '.changed(param)'>> event handler (first defined in [[twve.editable]]).
** Such as //testing the input value//, //resizing the table// or //recalculating the table//.
** See [[Event Handler -- .changed()]] for more information.
There are quite a few objects defined in the core.
* The very base
** [[twve.object]] -- The very base of all ''twve'' objects
* Tiddler and wiki text related:
## [[twve.tiddler]] -- representing the tiddlers;
## [[twve.text]] -- wiki text handling;
## [[twve.tags]] -- representing the opening and closing tags of elements;
### [[twve.tags.nested]] -- tags that could contain other tags (of the same type) between its opening and closing tags.
## [[twve.position]] -- for the searching purposes
* DOM related components:
## [[twve.selector]] -- for CSS selectors
## [[twve.node]] -- base for all DOM related objects
## [[twve.button]] -- buttons in ''twve''
## [[twve.menu]] -- menus in ''twve''
## [[twve.editable]] -- the common parts of [[twve.element]] and [[twve.wrapper]];
### [[twve.element]] -- editable elements
#### [[twve.heading]] -- headings
#### [[twve.pre]] -- preformatted block
#### [[twve.code]] -- code block
### [[twve.wrapper]]: base for editable wrappers;
#### [[twve.viewer]]: for normally loaded tiddlers;
#### [[twve.tabContent]]: for {{{<<tabs>>}}} transcluded tiddlers;
#### [[twve.tiddlerSpan]]: for {{{<<tiddler>>}}} transcluded tiddlers;
#### [[twve.sliderPanel]]: for {{{<<slider>>}}} transcluded tiddlers;
The following lines of codes show the definition of each part.
!!!! ''twve.table''
Table editor with the following features:
# Editing the content of a table cell.
# Rendering multi-lined content in a table cell:
** Block elements such as list items and blockquotes can be put in a table cell without transclusion.
** To break a text line in a table cell,
*** use {{{<br>}}} or {{{<br />}}} in the ~TiddlyWiki's built-in editor, any other text editor, or the edit box of ''twve'' with the option {{{chktwveTableMultiLine}}} set to //false//;
*** simply press {{{Enter}}} in the edit box of the ''twve'', if the option {{{chktwveTableMultiLine}}} is set to //true//.
# Insertion/deletion of a table row/column.
# Switching (rotating) the content of adjacent table rows/columns.
# Copy/cut/paste a table row/column/cell.
# Transposition of a table (with or without spanned cells).
!!!! ''twve.tablelarge''
Large table supports, including
# scrolling of table body,
# fixed rows/columns (//unstable//).
!!!! ''twve.extra''
Editor for non-table components, such as
# list items:
** modify the content
** change the level
** change the type (ordered to/from unordered)
** //move// the item up/down (//incomplete, currently only works within the same level//)
# headings:
** modify the content
** change the level (1 to 6)
# blockquotes
** modify the content
** change the level (1 to 3)
# blockexamples:
** modify the content
# preformatted blocks:
** modify the content
** change the creation wrappers
# plain text:
** modify the content
The objects defined in [[twve.extra]] are
* DOM related components:
## [[twve.foldedSection]]: for {{{<<foldHeadings>>}}} folded sections (defined in twve.extra);
## [[twve.tiddlerTitle]]: for tiddler title;
!!!! ''twve.tcalc''
A table calculator offering simple spreadsheet functionalities in ~TiddlyWiki.
# Calculates numerical values in table cells.
# Cell references syntax follows the ~LibreOffice.calc/Microsoft Excel style.
** Column index starts from {{{A}}} and ends at {{{ZZ}}}.
** Row index starts from 0 and has virtually no upper limit.
*** A0 refers to the first cell (A) in the first row (0), while C3 refers to the 3^^rd^^ cell (C) in the 4^^th^^ row (3). These are called //single cell references//.
*** A0:C3 refers to the collection of all the following cells: A0, A1, A2, A3, B0, B1, B2, B3, C0, C1, C2, C3. This is called //block reference//.
** Supports relative and absolute referencing the same way as the two major spreadsheet applications.
*** By default all references are relative. For example, if we put formula {{{=A0+1}}} into cell A1, it means //at cell A1, put the result of one plus the numerical value in the cell above.//
**** __Relative references are automatically adjusted when copy-and-pasted to another cell__. For example, if we copy the content of cell A1, which is {{{=A0+1}}} if we stick to the example above, and then paste it into cell A2, it would be adjusted to {{{=A1+1}}} to keep the meaning of //one plus the numerical value in the cell above//.
*** To indicate absolute references, //add a dollar sign ($) immediately before the row/column reference symbols//. For example, $A0 means the column reference (A) is absolute while the row reference (0) is relative, A$0 means the opposite, and $A$0 means both column and row references are absolute.
**** __Absolute references are NOT adjusted upon copy-and-pasting__.
# ''Auto adjustment of cell references upon''
** changes made to a table cell;
** __insertion/deletion of rows/columns__;
** __exchange with adjacent rows/columns__;
** __sorting with SortableGridPlugin or TableSortingPlugin__.
*** Block references such as {{{C4:H10}}} are auto-adjusted only upon insertion/deletion of rows/columns, NOT upon sorting.
# ''Auto recalculation upon''
** changes made to a table cell;
** __insertion/deletion of rows/columns__;
** __exchange with adjacent rows/columns__;
** __sorting with SortableGridPlugin or TableSortingPlugin__.
# Supports several forms of decimal mark and thousands separation.
# Supports user-defined functions written in Javascript.
** To define your own functions, see [[twve.tcalc--Defining Your Own Functions]] for details.
** See the full version of [[twve.tcalc]] for pre-defined functions.
!!!!!!
<<foldHeadings>>
>This tiddler describes which //wrappers// are editable and what can be done in the view mode. For the same information about //elements//, see [[Editable Elements]].
In ''twve'' the //wrappers// are containers that hold all or part of a tiddler's content, such as //div.viewwer// (normally loaded tiddlers), //div.tabContents// ({{{<<tabs>>}}} transcluded tiddlers), //div.sliderPanel// ({{{<<slider>>}}} transcluded tiddlers), etc.
/***
|Name|EditFieldPlugin|
|Source|http://www.TiddlyTools.com/#EditFieldPlugin|
|Version|1.6.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|extend core edit macro for use in ViewTemplates or direct embedding in tiddler content|
!!!!!Usage
<<<
Normally, when a tiddler is edited, a set of input fields is displayed (as defined by the [[EditTemplate]]), and any changes you make are only saved when you press the "done" (or "cancel") command in the tiddler editor's toolbar. However, you can also ''embed an input field directly in //viewed// tiddler content'' by writing:
{{{
<<edit fieldname numberOfLines defaultValue>>
<<edit fieldname@TiddlerName numberOfLines defaultValue>>
}}}
or in the [[ViewTemplate]] (to add it to every tiddler):
{{{
<span macro='edit fieldname numberOfLines defaultValue'></span>
<span macro='edit fieldname@TiddlerName numberOfLines defaultValue'></span>
}}}
Unfortunately, while the input field will be displayed, the "done" command item is not available when //viewing// a tiddler, so the 'save/discard' handling cannot be invoked once you have decided that your input activities are complete, and any changes you make will not stored anywhere. To address this, the plugin extends the input field handler so that when a field is embedded in normal tiddler content and you make changes, it can automatically save/discard your changes as soon as you press ENTER or move away ('onBlur' handling) from that input field. You can also abandon your changes to input field content by pressing ESCAPE.
The plugin also adds support for an optional 'remote field reference' syntax: "{{{fieldname@TiddlerName}}}" so you can display and edit fields stored in other tiddlers. This allows you to create, for example, 'summary' tiddlers for reviewing/editing field values from several tiddlers at the same time.
Note: a message is displayed before saving/discarding any field changes. To suppress either (or both) of these confirmation messages, you can add the following configuration settings to [[EditFieldPluginConfig]] (or any other tiddler you are using to store and apply 'persistent settings'):
{{{
config.macros.edit.cancelMsg = "";
config.macros.edit.saveMsg = "";
}}}
<<<
!!!!!Examples
<<<
*"""<<edit foobar>>"""<br><<edit foobar>>
*"""<<edit foobar@SomeTiddler>>"""<br><<edit foobar@SomeTiddler>>
*"""<<edit tags>>"""<br><<edit tags>>
*"""<<edit text 15>>"""<br>{{editor{<<edit text 15>>}}}
<<<
!!!!!Revisions
<<<
2010.11.15 [1.6.1] In handler(), corrected display field values for 'non-stored' tiddler content (e.g., shadows, tags, default new tiddler)
2010.10.31 [1.6.0] In handler(), fixed display of remote field values. In onblur(), refactored save/cancel message text for easier customization and bypass confirmation if text is blank.
2009.09.16 [1.5.1] fixed 'onblur' handling for local fields (fieldname@here). Added support for '@here' syntax
2009.09.05 [1.5.0] code refactored. added handling for fieldname@tiddlername
2007.08.22 [1.0.0] initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.EditFieldPlugin= {major: 1, minor: 6, revision: 1, date: new Date(2010,11,15)};
config.macros.edit.editFieldPlugin_savedHandler=config.macros.edit.handler;
config.macros.edit.cancelMsg = "Abandon changes to %0@%1?";
config.macros.edit.saveMsg = "Save changes to %0@%1?";
config.macros.edit.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
// let core render input/textarea, then get resulting element
config.macros.edit.editFieldPlugin_savedHandler.apply(this,arguments);
var fieldType=params[0]=="text"||params[1]?'textarea':'input';
var elems=place.getElementsByTagName(fieldType); var e=elems[elems.length-1];
// extended fieldname@tiddlername handling
var parts=e.getAttribute("edit").split('@');
var field=parts[0];
var title=parts[1]||tiddler.title;
if (title=='here') title=tiddler.title;
// stop field from being saved with 'done' button
if (parts[1]) { e.setAttribute("edit",null); e.setAttribute("field",field); }
// save starting value and target tiddler
e.value=store.getValue(title,field)||e.value; // get field value
e.setAttribute("currval",e.value); // save starting value
e.setAttribute("tiddler",title);
// force height for textarea field
if (fieldType=="textarea" && params[1]) e.style.height=params[1]+"em";
// if viewing tiddler, add autosave handlers
var here=story.findContainingTiddler(place);
var isViewed=here&&here.getAttribute("template").indexOf("ViewTemplate")!=-1;
if (parts[1]||isViewed) { // remote reference or view mode editing...
story.setDirty(tiddler.title,false); // clear tiddler ("dirty") flag (set by core)
e.onkeydown=function(ev) { // ENTER key=save (for single-line input)
var event=ev?ev:window.event;
this.setAttribute("keyCode",event.keyCode); // save last keyCode (for blur)
if (event.keyCode==13 && this.nodeName.toUpperCase()!="TEXTAREA")
this.saveField(); // save input to tiddler field
}
e.onblur=function(ev) { // confirm input when focus moves away
var event=ev?ev:window.event;
var tid=this.getAttribute("tiddler"); if (!tid || !tid.length) return;
var field=this.getAttribute("edit")||this.getAttribute("field");
if (this.value==this.getAttribute("currval")) return; // no change
if (this.getAttribute("keyCode")=="27") { // if user pressed ESC
var msg=config.macros.edit.cancelMsg.format([field,tid]);
if (!msg.length || confirm(msg)) this.value=this.getAttribute("currval"); // reset value
this.id=new Date().getTime(); // set unique ID for delayed re-focus after blur
setTimeout("document.getElementById('"+this.id+"').focus()",1);
} else { // other focus change events
var msg=config.macros.edit.saveMsg.format([field,tid]);
if (!msg.length || confirm(msg)) this.saveField(); // save value
else this.value=this.getAttribute("currval");
}
};
e.saveField=function() { // unpack/validate attribs and then save the field
var tid=this.getAttribute("tiddler"); if (!tid || !tid.length) return;
var field=this.getAttribute("edit")||this.getAttribute("field");
var title=(field=="title")?this.value:tid;
if (!title.length) { // error: blank tiddler title
this.value=this.getAttribute("currval"); // reset value
this.id=new Date().getTime(); // set unique ID for delayed messages/refocus
setTimeout("displayMessage('Please enter a non-blank value')",1);
setTimeout("document.getElementById('"+this.id+"').focus()",2);
return;
}
config.macros.edit.saveField(tid,title,field,this.value);
this.setAttribute("currval",this.value); // remember new starting value
};
}
}
//}}}
//{{{
// save input value to tiddler field (create/touch/rename tiddler as needed)
config.macros.edit.saveField = function(tid,title,field,val) {
var t=store.getTiddler(tid);
store.suspendNotifications();
var anim=config.options.chkAnimate; config.options.chkAnimate=false; // suspend animation
var who=t&&config.options.chkForceMinorUpdate?t.modifier:config.options.txtUserName;
var when=t&&config.options.chkForceMinorUpdate?t.modified:new Date();
store.saveTiddler(t?tid:title,title,t?t.text:"",who,when,t?t.tags:[],t?t.fields:null);
store.setValue(title,field,val); // save field
if (tid!=title) // new title... show renamed tiddler in place of current one
{ story.displayTiddler(story.getTiddler(tid),title); story.closeTiddler(tid); }
if (field=="text") // content changed, refresh tiddler display
{ story.refreshTiddler(title,null,true); }
config.options.chkAnimate=anim; // resume animation
store.resumeNotifications();
store.notify(title,true);
}
//}}}
modify or delete the password plugin, see [[db:sql:mariadb:mysql]]
The ''twve'' supports view mode editing on most of the elements, block or inline. When some change is made to an element, an event handler <<slider '' 'twve.core##editable.changed' '.changed(param)'>> is called for further process.
<<<
For example, the [[twve.table]] adjusts table dimensions when something is changed (<<slider '' 'twve.table##twtable.changed' 'twtable.changed(param)'>>).
Another example, the [[twve.tcalc]] recalculates a table in this handler when 1) a table cell is changed, 2) a row/column is pasted/deleted. Furthermore, it adjusts cell references when 1) a row/column is inserted/deleted, 2) adjacent rows/columns are switched (rotated), and 3) sorted. See <<slider '' 'twve.tcalc##twtable.changed' 'twtable.changed(param) in twve.tcalc'>> for more information.
<<<
The parameters passed to this event handler are ''twelem'' and ''param''.
# ''twelem'': A ''twve.editable'' object representing the element just changed.
# ''param'': An object containing detailed information associated with the event.
** param.''what'': A string defining the event. Currently supported events are
*** ''MODIFIED'' for general cases,
*** ''ROW INSERTED'', ''ROW DELETED'', ''ROW PASTED'' for table row operations,
*** ''COL INSERTED'', ''COL DELETED'', ''COL PASTED'' for table column operations,
*** ''ROW MOVED'', ''SORTED'' for table sorting operations.
*** ''TRANSPOSED'', for table transposition.
** General event
*** param.''what'' == ''MODIFIED'': called when the content of a table cell is changed
**** param.''row'': row index of the cell just changed
**** param.''col'': column index of the cell just changed
**** param.''text'': text containing modified content of the table
** Table row events
*** param.''what'' == ''ROW INSERTED''
**** param.''where'': index of the row just inserted
**** param.''text'': text containing modified content of the table
*** param.''what'' == ''ROW DELETED''
**** param.''where'': index of the row just deleted
**** param.''text'': text containing modified content of the table
*** param.''what'' == ''ROW PASTED'': called when the user had just pasted a whole table row
**** param.''where'': index of the row just pasted
**** param.''from'': index of the source row
**** param.''text'': text containing modified content of the table
** Table column events
*** param.''what'' == ''COL INSERTED''
**** param.''where'': index of the column just inserted
**** param.''text'': text containing modified content of the table
*** param.''what'' == ''COL DELETED''
**** param.''where'': index of the column just deleted
**** param.''text'': text containing modified content of the table
*** param.''what'' == ''COL PASTED''
**** param.''where'': index of the column just pasted
**** param.''from'': index of the source column
**** param.''text'': text containing modified content of the table
** Sorting events
*** param.''what'' == ''ROW MOVED'': called during sorting each time a table row is moved
**** param.''from'': original index of the row just moved
**** param.''to'': new index of the row just moved
**** param.''text'': text containing modified content of the table
*** param.''what'' == ''SORTED'': called after sorting is done
**** param.''text'': text containing modified content of the table
** Transposition event
*** param.''what'' == ''TRANSPOSED'': called when the table is transposed
**** param.''text'': text containing modified content of the table
<<<
@@color:red;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
This tiddler collects some examples to show what ''twve'' can do in the view mode.
<<<
!!! ''twve.core'' Examples
<<tiddler "twve.core Examples">>
!!! ''twve.extra'' Examples
<<tiddler "twve.extra Examples">>
!!! ''twve.table'' examples
<<tiddler "twve.table Examples">>
!!! ''twve.tcalc'' examples
<<tiddler "twve.tcalc Examples">>
<<foldHeadings>>
/***
|Name|ExternalTiddlersPlugin|
|Source|http://www.TiddlyTools.com/#ExternalTiddlersPlugin|
|Documentation|http://www.TiddlyTools.com/#ExternalTiddlersPluginInfo|
|Version|1.3.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Requires|TemporaryTiddlersPlugin (optional, recommended)|
|Description|retrieve and wikify content from external files or remote URLs|
This plugin extends the {{{<<tiddler>>}}} macro syntax so you can retrieve and wikify content directly from external files or remote URLs. You can also define alternative "fallback" sources to provide basic "import on demand" handling by automatically creating/importing tiddler content from external sources when the specified ~TiddlerName does not already exist in your document.
!!!!!Documentation
>see [[ExternalTiddlersPluginInfo]]
!!!!!Configuration
<<<
<<option chkExternalTiddlersImport>> automatically create/import tiddlers when using external fallback references
{{{usage: <<option chkExternalTiddlersImport>>}}}
<<option chkExternalTiddlersQuiet>> don't display messages when adding tiddlers ("quiet mode")
{{{usage: <<option chkExternalTiddlersQuiet>>}}}
<<option chkExternalTiddlersTemporary>> tag retrieved tiddlers as 'temporary'(requires [[TemporaryTiddlersPlugin]])
{{{usage: <<option chkExternalTiddlersTemporary>>}}}
tag retrieved tiddlers with: <<option txtExternalTiddlersTags>>
{{{usage: <<option txtExternalTiddlersTags>>}}}
__password-protected server settings //(optional, if needed)//:__
>username: <<option txtRemoteUsername>> password: <<option txtRemotePassword>>
>{{{usage: <<option txtRemoteUsername>> <<option txtRemotePassword>>}}}
>''note: these settings are also used by [[LoadTiddlersPlugin]] and [[ImportTiddlersPlugin]]''
<<<
!!!!!Revisions
<<<
2008.10.27 [1.3.1] in insertTiddler(), fixed Safari bug by replacing static Array.concat(...) with new Array().concat(...)
|please see [[ExternalTiddlersPluginInfo]] for additional revision details|
2007.11.25 [1.0.0] initial release - moved from CoreTweaks
<<<
!!!!!Code
***/
//{{{
version.extensions.ExternalTiddlersPlugin= {major: 1, minor: 3, revision: 1, date: new Date(2008,10,27)};
// optional automatic import/create for missing tiddlers
if (config.options.chkExternalTiddlersImport==undefined) config.options.chkExternalTiddlersImport=true;
if (config.options.chkExternalTiddlersTemporary==undefined) config.options.chkExternalTiddlersTemporary=true;
if (config.options.chkExternalTiddlersQuiet==undefined) config.options.chkExternalTiddlersQuiet=false;
if (config.options.txtExternalTiddlersTags==undefined) config.options.txtExternalTiddlersTags="external";
if (config.options.txtRemoteUsername==undefined) config.options.txtRemoteUsername="";
if (config.options.txtRemotePassword==undefined) config.options.txtRemotePassword="";
config.macros.tiddler.externalTiddlers_handler = config.macros.tiddler.handler;
config.macros.tiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler)
{
params = paramString.parseParams("name",null,true,false,true);
var names = params[0]["name"];
var list = names[0];
var items = list.split("|");
var className = names[1] ? names[1] : null;
var args = params[0]["with"];
// UTILITY FUNCTIONS
function extract(text,tids) { // get tiddler source content from plain text or TW doc
if (!text || !tids || !tids.length) return text; // no text or no tiddler list... return text as-is
var remoteStore=new TiddlyWiki();
if (!remoteStore.importTiddlyWiki(text)) return text; // not a TW document... return text as-is
var out=[]; for (var t=0;t<tids.length;t++)
{ var txt=remoteStore.getTiddlerText(tids[t]); if (txt) out.push(txt); }
return out.join("\n");
}
function substitute(text,args) { // replace "substitution markers" ($1-$9) with macro param values (if any)
if (!text || !args || !args.length) return text;
var n=args.length; if (n>9) n=9;
for(var i=0; i<n; i++) { var re=new RegExp("\\$" + (i + 1),"mg"); text=text.replace(re,args[i]); }
return text;
}
function addTiddler(src,text,tids) { // extract tiddler(s) from text and create local copy
if (!config.options.chkExternalTiddlersImport) return; // not enabled... do nothing
if (!text || !tids || !tids.length) return; // no text or no tiddler list... do nothing
var remoteStore=new TiddlyWiki();
if (!remoteStore.importTiddlyWiki(text)) // not a TW document... create a single tiddler from text
makeTiddler(src,text,tids[0]);
else // TW document with "permaview-like" suffix... copy tiddler(s) from remote store
for (var t=0;t<tids.length;t++)
insertTiddler(src,remoteStore.getTiddler(tids[t]));
return;
}
function makeTiddler(src,text,title) { // create a new tiddler object from text
var who=config.options.txtUserName; var when=new Date();
var msg="/%\n\nThis tiddler was automatically created using ExternalTiddlersPlugin\n";
msg+="by %0 on %1\nsource: %2\n\n%/";
var tags=config.options.txtExternalTiddlersTags.readBracketedList();
if (config.options.chkExternalTiddlersTemporary) tags.pushUnique(config.options.txtTemporaryTag);
store.saveTiddler(null,title,msg.format([who,when,src])+text,who,when,tags,{});
if (!config.options.chkExternalTiddlersQuiet) displayMessage("Created new tiddler '"+title+"' from text file "+src);
}
function insertTiddler(src,t) { // import a single tiddler object into the current document store
if (!t) return;
var who=config.options.txtUserName; var when=new Date();
var msg="/%\n\nThis tiddler was automatically imported using ExternalTiddlersPlugin\n";
msg+="by %0 on %1\nsource: %2\n\n%/";
var newtags=new Array().concat(t.tags,config.options.txtExternalTiddlersTags.readBracketedList());
if (config.options.chkExternalTiddlersTemporary) newtags.push(config.options.txtTemporaryTag);
store.saveTiddler(null,t.title,msg.format([who,when,src])+t.text,t.modifier,t.modified,newtags,t.fields);
if (!config.options.chkExternalTiddlersQuiet) displayMessage("Imported tiddler '"+t.title+"' from "+src);
}
function getGUID() // create a Globally Unique ID (for async reference to DOM elements)
{ return new Date().getTime()+Math.random().toString(); }
// loop through "|"-separated list of alternative tiddler/file/URL references until successful
var fallback="";
for (var i=0; i<items.length; i++) { var src=items[i];
// if tiddler (or shadow) exists, replace reference list with current source name and apply core handler
if (store.getTiddlerText(src)) {
arguments[2][0]=src; // params[] array
var p=arguments[4].split(list); arguments[4]=p[0]+src+p[1]; // paramString
this.externalTiddlers_handler.apply(this,arguments);
break; // stop processing alternatives
}
// tiddler doesn't exist, and not an external file/URL reference... skip it
if (!config.formatterHelpers.isExternalLink(src)) {
if (!fallback.length) fallback=src; // title to use when importing external tiddler
continue;
}
// separate 'permaview' list of tiddlers (if any) from file/URL (i.e., '#name name name..." suffix)
var p=src.split("#"); src=p[0]; var tids=p[1]?p[1].readBracketedList(false):[];
// if reference is to a remotely hosted document or the current document is remotely hosted...
if (src.substr(0,4)=="http" || document.location.protocol.substr(0,4)=="http") {
if (src.substr(0,4)!="http") // fixup URL for relative remote references
{ var h=document.location.href; src=h.substr(0,h.lastIndexOf("/")+1)+src; }
var wrapper = createTiddlyElement(place,"span",getGUID(),className); // create placeholder for async rendering
var callback=function(success,params,text,src,xhr) { // ASYNC CALLBACK
if (!success) { displayMessage(xhr.status); return; } // couldn't read remote file... report the error
if (params.fallback.length)
addTiddler(params.url,text,params.tids.length?params.tids:[params.fallback]); // import tiddler
var wrapper=document.getElementById(params.id); if (!wrapper) return;
wikify(substitute(extract(text,params.tids),params.args),wrapper); // ASYNC RENDER
};
var callbackparams={ url:src, id:wrapper.id, args:args, tids:tids, fallback:fallback } // ASYNC PARAMS
var name=config.options.txtRemoteUsername; // optional value
var pass=config.options.txtRemotePassword; // optional value
var x=doHttp("GET",src,null,null,name,pass,callback,callbackparams,null)
if (typeof(x)=="string") // couldn't start XMLHttpRequest... report error
{ displayMessage("error: cannot access "+src); displayMessage(x); }
break; // can't tell if async read will succeed.... stop processing alternatives anyway.
}
else { // read file from local filesystem
var text=loadFile(getLocalPath(src));
if (!text) { // couldn't load file... fixup path for relative reference and retry...
var h=document.location.href;
var text=loadFile(getLocalPath(decodeURIComponent(h.substr(0,h.lastIndexOf("/")+1)))+src);
}
if (text) { // test it again... if file was loaded OK, render it in a class wrapper
if (fallback.length) // create new tiddler using primary source name (if any)
addTiddler(src,text,tids.length?tids:[fallback]);
var wrapper=createTiddlyElement(place,"span",null,className);
wikify(substitute(extract(text,tids),args),wrapper); // render
break; // stop processing alternatives
}
}
}
};
//}}}
```
either
stat
(UTC)
root@computer:/tmp/# TZ= stat
OR
date +%s -r FILE
(UTC) date -u +%s -r FILE
newest=$(for i in $(find backup -type f -name "*.tgz" );do date -u +%s -r $i;done|sort -n|tail -n1);
age_newest_hours=$( expr $(expr $(date -u +%s) - $newest ) / 60 / 60 ); age_newest_days=$(expr $age_newest_hours / 24 );
```
https://superuser.com/questions/1009993/what-do-0100-0200-mean-in-linux-command-stat-results
https://stackoverflow.com/questions/11212663/filename-last-modification-date-shell-in-script
https://stackoverflow.com/questions/1015678/linux-most-recent-file-in-a-directory
https://stackoverflow.com/questions/14213305/bash-calculate-age-of-the-newest-file-in-directory
https://stackoverflow.com/questions/1015678/linux-most-recent-file-in-a-directory
http://dba-oracle.com/linux/finding_files_by_age.htm
https://unix.stackexchange.com/questions/194863/delete-files-older-than-x-days
`jpegoptim largefile.jpeg `
`jpegoptim --size=250k largefile.jpeg`
https://www.tecmint.com/optimize-and-compress-jpeg-or-png-batch-images-linux-commandline/
```
##really bad but no size at all
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf in.pdf
```
```
##readable
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf.in.pdf
```
```
##shrinkpdf
./shrinkpdf in.pdf out.pdf
```
```
#qpdf
qpdf --linearize input.pdf output.pdf
```
```
#smpdf !! WATERMARK IN FREE VERSION
smpdf in.pdf -o out.pdf
```
```
#pdftk
pdf2ps large.pdf very_large.ps
ps2pdf very_large.ps small.pdf
```
```
#gs 1 step
ps2pdf LARGE.pdf SMALL.pdf
```
```
#online
https://docupub.de/pdfcompress/
```
https://wiki.ubuntuusers.de/Nautilus/Skripte/PDF-Komprimierung/
https://pandemoniumillusion.wordpress.com/2008/05/07/compress-a-pdf-with-pdftk/
https://askubuntu.com/questions/113544/how-can-i-reduce-the-file-size-of-a-scanned-pdf-file
http://tuxdiary.com/2015/04/07/compress-pdf-files-linux/
https://www.thegeekdiary.com/how-to-create-sparse-files-in-linux-using-dd-command/
https://wiki.archlinux.org/index.php/Sparse_file
https://unix.stackexchange.com/questions/464278/can-losetup-be-made-efficient-with-sparse-files
[FLICKR-CLI]
https://github.com/trickortweak/flickr-uploader
https://github.com/richq/folders2flickr/
https://sourceforge.net/projects/flickrsync/
#BUGGY https://github.com/vgel/flickr-fuse
https://github.com/patrickjennings/FlickrMS#readme
https://blog.philippklaus.de/2011/09/flickrms-mounting-flickr-as-fuse-file-system
[FLICKR-GUI]
http://www.linuxandubuntu.com/home/upload-photos-on-flickr-with-frogr-flickr-upload-client-for-linux
http://xmodulo.com/what-is-gui-based-flickr-upload-tool-in-linux.html
/***
|Name|FoldHeadingsPlugin|
|Source|http://www.TiddlyTools.com/#FoldHeadingsPlugin|
|Version|1.1.2|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|automatically turn headings into slider-like panels that can be folded/unfolded with a single click|
This plugin defines a macro that automatically converts heading-formatted content into sliders that let you expand/collapse their content by clicking on individual headings.
!!!!!Usage
<<<
{{{
<<foldHeadings opened|closed tag tag tag...>>
}}}
where: ''opened'' or ''closed'' is a keyword indicating the initial state of the sections (default: opened), and ''tag tag tag...'' is an optional list of tags to match, so that the foldable effect is only applied to tiddlers that contain one (or more) of the indicated tags.
When you place the macro in a tiddler, any heading-formatted content (i.e, "!" through "!!!!!") in that tiddler will automatically become //'fold-able'//, allowing you to expand/collapse the content that follows each heading simply by clicking on that heading. Each content section begins with the first element following a heading, and continues until either another heading is found or the end of the tiddler is reached. For example:
{{{
<<foldHeadings closed>>
}}}
is embedded in ''this'' tiddler in order to make all the headings it contains 'fold-able'. Note that the macro has been placed at the //end// of the tiddler because it only operates on *rendered* content. Thus, only headings that //precede// it in the same tiddler will become fold-able, as any headings that //follow// it are not actually rendered until //after// the macro has been processed.
You can further limit the effect of the macro within the tiddler by surrounding several headings in a "CSS class wrapper" ("""{{classname{...}}}""") or other containing DOM element (e.g., """@@display:inline;...@@""") and then embedding the {{{<<foldHeadings>>}}} macro inside that container (at the end)... only those headings that are also within that container will be made fold-able, instead of converting ''all'' the headings in that tiddler.
Conversely, if you want the fold-able ability to apply to the headings in //all// tiddlers, ''without having to alter //any// of those individual tiddlers'', you can add the macro to the end of your [[ViewTemplate]], so that it will be invoked after the content in each tiddler has been rendered, causing all headings they contain to automatically become fold-able. For example:
{{{
<span macro="foldHeadings closed"></span>
}}}
You can also limit this effect to selected tiddlers by specifying one or more tags as additional macro parameters. For example:
{{{
<span macro="foldHeadings closed systemConfig"></span>
}}}
is only applied to headings contained in //plugin tiddlers// (i.e., tiddlers tagged with <<tag systemConfig>>), while headings in other tiddlers remain unaffected by the macro, even though it is embedded in the common [[ViewTemplate]] definition.
<<<
!!!!!Revisions
<<<
2009.11.30 [1.1.2] corrected CSS 'text-weight' to 'font-weight'
2009.01.06 [1.1.1] removed hijack of scrollToSection() (see [[SectionLinksPlugin]] for equivalent code)
2008.11.17 [1.1.0] added hijack of 'scrollToSection()' function (see [[CoreTweaks]] and http://trac.tiddlywiki.org/ticket/784)
2007.12.06 [1.0.2] fix handling for empty sections when checking for sliderPanel/floatingPanel
2007.12.02 [1.0.1] fix handling when content following a heading is already a sliderPanel/floatingPanel
2007.12.01 [1.0.0] initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.FoldHeadingsPlugin= {major: 1, minor: 1, revision: 2, date: new Date(2009,11,30)};
config.macros.foldHeadings = {
guideText: "opened|closed className",
showtip: "click to show '%0'",
hidetip: "click to hide '%0'",
showlabel: "...",
hidelabel: "[x]",
html: "<span style='float:right;font-weight:normal;font-size:80%;' class='TiddlyLinkExisting'>%0 </span>",
handler: function(place,macroName,params) {
var show=params[0] && params.shift().toLowerCase()!="closed";
if (params.length) { // if filtering by tag(s)
var here=story.findContainingTiddler(place);
if (here) var tid=store.getTiddler(here.getAttribute("tiddler"));
if (!tid || !tid.tags.containsAny(params)) return; // in a tiddler and not tagged... do nothing...
}
var elems=place.parentNode.getElementsByTagName("*");
var heads=[]; for (var i=0; i<elems.length; i++) { // get non-foldable heading elements
var n=elems[i].nodeName; var foldable=hasClass(elems[i],"foldable");
if ((n=="H1"||n=="H2"||n=="H3"||n=="H4"||n=="H5")&&!foldable)
heads.push(elems[i]);
}
for (var i=0; i<heads.length; i++) { var h=heads[i]; // for each heading element...
// find start/end of section content (up to next heading or end of content)
var start=end=h.nextSibling; while (end && end.nextSibling) {
var n=end.nextSibling.nodeName.toUpperCase();
if (n=="H1"||n=="H2"||n=="H3"||n=="H4"||n=="H5") break;
end=end.nextSibling;
}
if (start && hasClass(start,"sliderPanel")||hasClass(start,"floatingPanel")) continue; // heading is already a slider!
var span=createTiddlyElement(null,"span",null,"sliderPanel"); // create container
span.style.display=show?"inline":"none"; // set initial display state
h.parentNode.insertBefore(span,start); // and insert it following the heading element
// move section elements into container...
var e=start; while (e) { var next=e.nextSibling; span.insertBefore(e,null); if (e==end) break; e=next; }
// set heading label/tip/cursor...
h.title=(show?this.hidetip:this.showtip).format([h.textContent])
h.innerHTML=this.html.format([show?this.hidelabel:this.showlabel])+h.innerHTML;
h.style.cursor='pointer';
addClass(h,"foldable"); // so we know it been done (and to add extra styles)
h.onclick=function() {
var panel=this.nextSibling; var show=panel.style.display=="none";
// update panel display state
if (config.options.chkAnimate) anim.startAnimating(new Slider(panel,show));
else panel.style.display = show?"inline":"none";
// update heading label/tip
this.removeChild(this.firstChild); // remove existing label
var fh=config.macros.foldHeadings; // abbreviation for readability...
this.title=(show?fh.hidetip:fh.showtip).format([this.textContent])
this.innerHTML=fh.html.format([show?fh.hidelabel:fh.showlabel])+this.innerHTML;
}
}
}
}
if (story.scrollToSection) {
Story.prototype.foldheadings_scrollToSection=Story.prototype.scrollToSection;
Story.prototype.scrollToSection=function(title,section) {
var e=this.foldheadings_scrollToSection.apply(this,arguments);
// if scrolling to a folded section heading, click to expand it
if (e && hasClass(e,'foldable') && e.nextSibling.style.display=='none') e.onclick();
}
}
//}}}
// //<<foldHeadings closed>>
<html><div id="table1"></div>
<div id="table2"></div>
<div id="table3"></div></html><script>
var data1 = [
["xx", "Ford", "Volvo", "Toyota", "Honda"],
["2014", 10, 11, 12, 13],
["2015", 20, 11, 14, 13],
["2016", 30, 15, 12, 13]
];
var hot = new Handsontable(document.getElementById('table1'), {
data: data1,
minSpareRows: 1,
rowHeaders: true,
colHeaders: true,
contextMenu: true,
afterChange: config.extensions.Handsontable.afterChange
});
var data2 = [
["yy", "Ford", "Volvo", "Toyota", "Honda"],
["2014", 10, 11, 12, 13],
["2015", 20, 11, 14, 13],
["2016", 30, 15, 12, 13]
];
hot = new Handsontable(document.getElementById('table2'), {
data: data2,
minSpareRows: 1,
rowHeaders: true,
colHeaders: true,
contextMenu: true,
afterChange: config.extensions.Handsontable.afterChange
});
var data3 = [
["zz", "Ford", "Volvo", "Toyota", "Honda"],
["2014", 10, 11, 12, 13],
["2015", 20, 11, 14, 13],
["2016", 30, 15, 12, 13]
];
hot = new Handsontable(document.getElementById('table3'), {
data: data3,
minSpareRows: 1,
rowHeaders: true,
colHeaders: true,
contextMenu: true,
afterChange: config.extensions.Handsontable.afterChange
});
</script>
/***
|''Name:''|HandsontablePlugin|
|''Description:''|Brings Handsontable into the TiddlyWiki classic world.|
|''Author:''|Vincent Yeh|
|''Source:''|http://twve.tiddlyspot.com/#HandsontablePlugin|
|''Type:''|plugin|
|''Version:''|0.0.1|
|''Status:''|This plugin is a new born baby.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2015/06/22 Born to earth.|
|''License:''|MIT|
|''~CoreVersion:''|2.5.0|
!! Changelog
!!! 0.0.1 2015/06/22
* Born this day.
* Works __with or without a locally installed version__ of Handsontable.
** If a local version is not installed, this plugin will load its on-line version (http://handsontable.com/dist/handsontable.full.min.js) and its stylesheet (http://handsontable.com/dist/handsontable.full.min.css).
* Updates wiki text upon content change using Handsontable.
* __Works with multiple tables__ in one tiddler if each table data is given a __unique variable name__.
* Tested only in normally loaded tiddlers.
!! How to Use
# (Optional) Install Handsontable from http://handsontable.com/
** If a local version is not installed, this plugin will load its on-line version (http://handsontable.com/dist/handsontable.full.min.js) and its stylesheet (http://handsontable.com/dist/handsontable.full.min.css).
# Install InlineJavascriptPlugin from http://www.tiddlytools.com/#InlineJavascriptPlugin
# Install this plugin.
# Follow the examples in http://handsontable.com/, and assign """config.extensions.Handsontable.afterChange""" to the """afterChange""" property in the options upon calling """new Handsontable()""".
!! Demo
To use the Handsontable in a tiddler, one needs to
# create an element, such as a <div>, as the table container,
# use inline Javascript to prepare the data and create the table.
See the following codes for an example, or [[Handsontable Demo]] for another.
<<<
//{{{
<html><div id="table1"></div></html><script>
var data1 = [
["xx", "Ford", "Volvo", "Toyota", "Honda"],
["2014", 10, 11, 12, 13],
["2015", 20, 11, 14, 13],
["2016", 30, 15, 12, 13]
];
var hot = new Handsontable(document.getElementById('table1'), {
data: data1,
minSpareRows: 1,
rowHeaders: true,
colHeaders: true,
contextMenu: true,
afterChange: config.extensions.Handsontable.afterChange
});
//}}}
<<<
!! Code
***/
/***
!!! config.extensions.Handsontable
***/
//{{{
config.extensions.Handsontable = {
major: 0, minor: 0, revision: 1,
date: new Date('2015/06/22'),
script : "http://handsontable.com/dist/handsontable.full.min.js",
style : "http://handsontable.com/dist/handsontable.full.min.css",
afterChange: function(change,source){
if ( source == 'loadData' ) return;
// Find the tiddler containing this table.
var container = this.container;
var parent = story.findContainingTiddler(container);
var tiddler = store.getTiddler(
parent.getAttribute("tiddler")
);
// Get the tiddler text.
var text = tiddler.text;
// Find the start and end of table data.
// First we find the index number of this Handsontable.
var hots = parent.querySelectorAll('div.ht_master');
var ndx = -1;
for(var t=0,tlen=hots.length; t<tlen; t++)
if(hots[t]==container){
ndx = t;
break;
}
// Then we find the variable name for the table data,
// assuming it exists. The variable name is assigned to the
// data property of the option in calling the new Handsontable()
// constructor. Hence we look for the right new Handsontable()
// statement and the data property in its option.
var p1 = -1;
var regexp = /new\s+Handsontable/gm;
while(ndx>=0){
if (regexp.test(text)) p1 = regexp.lastIndex;
ndx--;
}
regexp = /data\s*:/gm;
regexp.lastIndex = p1;
if ( regexp.test(text) ) p1 = regexp.lastIndex;
var p2 = text.indexOf(',',p1+1);
var dataname = text.substring(p1,p2).trim();
// Now we look back for the beginning of data definition. If
// there are multiple tables created using the Handsontable,
// each of their data sets must have a unique variable name
// or the update may go to the wrong place.
p1 = text.lastIndexOf(dataname,p1)+dataname.length;
// and the end of data definition.
p2 = text.indexOf('];',p1)+2;
// Convert the modified data into the defining string.
var data = this.getData();
var txtdata = ' = [\n';
for(var r=0,rlen=data.length-this.getSettings().minSpareRows;
r<rlen; r++){
txtdata += '[';
for ( var c=0,clen=data[r].length; c<clen; c++ ){
var wrap = typeof data[r][c] == 'string' ? '"' : '';
txtdata += wrap+(data[r][c]||'')+wrap+(c<clen-1?', ':'');
}
txtdata +=']' + (r<rlen-1?',':'') + '\n';
}
txtdata += '];'
// Replace the original definition string with the modified one.
text = text.substring(0,p1)+txtdata+text.substring(p2);
// Set it back to the tiddler,
tiddler.set(
tiddler.title,text,tiddler.modifier,new Date()
);
// and mark it as modified.
store.setDirty(true);
}
};
//}}}
/***
!!! loadScript
***/
//{{{
function loadScript(source,callback){
// This function combines the codes from two places:
// http://stackoverflow.com/questions/5791279/jquery-getscript-vs-document-createelementscript
// and
// http://stackoverflow.com/questions/16839698/jquery-getscript-alternative-in-native-javascript
var script = document.createElement('script');
script.onload = script.onreadystatechange = function(_,isAbort){
if ( isAbort ||
!script.readyState ||
/loaded|complete/.test(script.readyState) ) {
script.onload = script.onreadystatechange = null;
script = undefined;
if (!isAbort && callback) callback();
}
};
script.type= 'text/javascript';
script.src= source;
script.async = true;
(document.head||document.documentElement).appendChild(script);
};
//}}}
/***
!!! loadStyle
***/
//{{{
function loadStyle(source,media){
// This function follows the codes found in
// http://stackoverflow.com/questions/574944/how-to-load-up-css-files-using-javascript
var style = document.createElement('link');
style.rel = 'stylesheet';
style.type = 'text/css';
if ( media ) style.media = media;
style.href = source;
(document.head||document.documentElement).appendChild(style);
};
//}}}
/***
!!! Macro for initialization and option settings.
***/
//{{{
config.macros.HOTOptions = {
init : function () {
if(typeof Handsontable == 'undefined'){
loadScript(
config.extensions.Handsontable.script,
function(){
loadStyle(
config.extensions.Handsontable.style,
'screen'
);
//config.extensions.Handsontable.init();
}
);
}else{
//config.extensions.Handsontable.init();
}
if (config.options.chkHOTEnabled===undefined)
config.options.chkHOTEnabled = true;
}
};
//}}}
底下兩種做法
{{{
$ta = jQuery('<textarea>'+txt+'</textarea>');
}}}
以及
{{{
$ta = jQuery('<textarea></textarea>');
$ta.val(txt);
}}}
在 txt 只包含 wikitext 時候似乎沒什麼問題,但是在 txt 包含 HTML entities 時所產生的結果是不一樣的。第一種會產生 HTML entity 的【符號】,而第二種則是將產生 HTML entity 的文字原原本本呈現出來。
/***
|Name|HTMLFormattingPlugin|
|Source|http://www.TiddlyTools.com/#HTMLFormattingPlugin|
|Documentation|http://www.TiddlyTools.com/#HTMLFormattingPluginInfo|
|Version|2.4.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|embed wiki syntax formatting inside of HTML content|
The ~HTMLFormatting plugin allows you to ''mix wiki-style formatting syntax within HTML formatted content'' by extending the action of the standard TiddlyWiki formatting handler.
!!!!!Documentation
>see [[HTMLFormattingPluginInfo]]
!!!!!Configuration
<<<
Use {{{<hide linebreaks>}}} within HTML content to wiki-style rendering of line breaks. To //always// omit all line breaks from the rendered output, you can set this option:
><<option chkHTMLHideLinebreaks>> ignore all line breaks
which can also be 'hard coded' into your document by adding the following to a tiddler, tagged with <<tag systemConfig>>
>{{{config.options.chkHTMLHideLinebreaks=true;}}}
<<<
!!!!!Revisions
<<<
2010.05.07 2.4.1 added chkHTMLHideLinebreaks option
| see [[HTMLFormattingPluginInfo]] for additional revision details |
2005.06.26 1.0.0 Initial Release (as code adaptation - pre-dates TiddlyWiki plugin architecture!!)
<<<
!!!!!Code
***/
//{{{
version.extensions.HTMLFormattingPlugin= {major: 2, minor: 4, revision: 1, date: new Date(2010,5,7)};
// find the formatter for HTML and replace the handler
initHTMLFormatter();
function initHTMLFormatter()
{
for (var i=0; i<config.formatters.length && config.formatters[i].name!="html"; i++) {}
if (i<config.formatters.length) config.formatters[i].handler=function(w) {
if (!this.lookaheadRegExp) // fixup for TW2.0.x
this.lookaheadRegExp = new RegExp(this.lookahead,"mg");
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source)
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
var html=lookaheadMatch[1];
// if <nowiki> is present, just let browser handle it!
if (html.indexOf('<nowiki>')!=-1)
createTiddlyElement(w.output,"span").innerHTML=html;
else {
// if <hide linebreaks> is present, or chkHTMLHideLinebreaks is set
// suppress wiki-style literal handling of newlines
if (config.options.chkHTMLHideLinebreaks||(html.indexOf('<hide linebreaks>')!=-1))
html=html.replace(/\n/g,' ');
// remove all \r's added by IE textarea and mask newlines and macro brackets
html=html.replace(/\r/g,'').replace(/\n/g,'\\n').replace(/<</g,'%%(').replace(/>>/g,')%%');
// create span, let browser parse HTML
var e=createTiddlyElement(w.output,"span"); e.innerHTML=html;
// then re-render text nodes as wiki-formatted content
wikifyTextNodes(e,w);
}
w.nextMatch = this.lookaheadRegExp.lastIndex; // continue parsing
}
}
}
// wikify #text nodes that remain after HTML content is processed (pre-order recursion)
function wikifyTextNodes(theNode,w)
{
function unmask(s) { return s.replace(/\%%\(/g,'<<').replace(/\)\%%/g,'>>').replace(/\\n/g,'\n'); }
switch (theNode.nodeName.toLowerCase()) {
case 'style': case 'option': case 'select':
theNode.innerHTML=unmask(theNode.innerHTML);
break;
case 'textarea':
theNode.value=unmask(theNode.value);
break;
case '#text':
var txt=unmask(theNode.nodeValue);
var newNode=createTiddlyElement(null,"span");
theNode.parentNode.replaceChild(newNode,theNode);
wikify(txt,newNode,highlightHack,w.tiddler);
break;
default:
for (var i=0;i<theNode.childNodes.length;i++)
wikifyTextNodes(theNode.childNodes.item(i),w); // recursion
break;
}
}
//}}}
daycounter.com → calculator
olliw.eu
norelem.de
cncshop.at
fixedstar-reducer.de
polulu.com
nodna.de
einfachcnc.de
robotkithardware.de
myactivitees-mazen.blogspot.com
avrcard.com
sainsmart.com
phidgets.com
drotek.fr
openbuildspartstore.com
robotshop.com
flikto.de
adafruit.com
watterott.com
reprapteile.de
aliexpress->worm driver|worm gear
gimbal24.de
elysiavisuals.com
motusmotion.com
openmoco.org
vedder.se
https://www.popmartian.com/tipsntricks/2014/01/17/how-to-extract-the-contents-of-a-scexe-file/
http://techmolecules.blogspot.de/2014/08/four-ways-to-update-hp-ilo-firmware.html
https://wiki.fysik.dtu.dk/it/HP_Proliant_firmware_upgrade
https://wiki.archlinux.org/index.php/GPD_Pocket
https://github.com/stockmind/gpd-pocket-ubuntu-respin/blob/master/README.md
https://github.com/sigboe/GPD-ArchISO
https://www.dragonbox.de/de/732-gpd-pocket-mini-netbook-ubuntu-1704-version-handhelds-4260416652200.html
https://restorationsbytim.com/2017/07/10/playing-with-toys-fedora-linux-on-the-gpd-pocket/
https://www.reddit.com/r/GPDPocket/comments/6vy775/project_provide_ready_to_use_xubuntu_images/
https://www.reddit.com/r/GPDPocket/comments/6idnia/linux_on_gpd_pocket/
https://www.reddit.com/r/GPDPocket/comments/6jt5a6/can_the_gpd_pocket_boot_from_usb/
https://www.reddit.com/r/GPDPocket/comments/6vz347/two_batteries_also_luks_issues/
https://www.chinamobilemag.de/test/gpd-pocket.html
https://www.computeruniverse.net/products/90555391/biostar-a68n-5000-inkl-amd-a4-5000-quad-core.asp
https://www.ebay.de/itm/APU3B4-Systemboard-1-GHz-4-GB-DDR3-RAM-3x-LAN-Bundle-05-04-17/182428728700
https://shop.udoo.org/eu/x86/udoo-x86-ultra.html?___from_store=other&popup=no
https://www.pollin.de/p/odroid-xu4q-einplatinen-computer-samsung-exynos-5422-2-gb-2x-usb-3-0-810750?
https://www.pollin.de/p/odroid-hc1-einplatinen-computer-fuer-nas-und-cluster-anwendungen-810766?
https://www.cnx-software.com/2018/01/29/orange-pi-rk3399-development-board-launched-for-109/
https://www.aliexpress.com/store/product/Orange-Pi-RK3399-2GB-DDR3-16GB-EMMC-Cortex-A72-Type-C-Double-CSI-interface-Development-Board/1553371_32850569302.html
https://www.aliexpress.com/store/product/Orange-Pi-RK3399-2GB-DDR3-16GB-EMMC-Cortex-A72-Type-C-Double-CSI-interface-Development-Board/1553371_32850569302.html
https://www.xes-inc.com/products/sbcs/xpedite7670/
(also has german adapter howto)
http://web.archive.org/web/20190813121812/blog.stefankarg.de/2013/03/plugplay-mit-dem-cisco-spa112/
https://kb.intermedia.net/Article/38895
https://nfonag.zendesk.com/hc/de/articles/205588641-CISCO-SPA112-auf-Werkseinstellungen-zur%C3%BCck-setzten-FDR-
https://www.callcentric.com/support/device/cisco/spa112-spa122
`<<To reset the device to the default factory configuration, there are two options: Dial **** and at the prompt dial 73738# and then press 1 to confirm. Locate the Reset Button on the back of the SPA112. Using a paperclip, or something of similar dimension, hold the button for 20 seconds, then release >>`
http://web.archive.org/web/20190821102043/https://old.bitblock.com/support/kb?kbartid=6
http://web.archive.org/web/20150910032030/https://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/csbpvga/spa100-200/provisioning/guide/SPA100-200_Provisioning.pdf
http://web.archive.org/web/20190721045220/https://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/csbpvga/spa100-200/quick_start/SPA100_ATA_78-19933.pdf
http://web.archive.org/web/20190721045220/https://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/csbpvga/spa100-200/quick_start/SPA100_ATA_78-19933.pdf
http://web.archive.org/web/20190821101713/https://www.cisco.com/c/en/us/support/docs/smb/unified-communications/cisco-small-business-voice-gateways-and-atas/smb2780-troubleshoot-a-spa112-and-a-spa122-when-the-connected-phones.html
http://web.archive.org/web/20190821101711/https://www.cisco.com/c/en/us/support/docs/smb/unified-communications/cisco-small-business-voice-gateways-and-atas/smb2716-configure-log-module-on-spa100-series.html
https://www.ukvoipforums.com/viewtopic.php?t=37
https://community.cisco.com/t5/atas-gateways-and-accessories/spa122-backdoor-for-firmware-update/td-p/2029439
!!!!tuning/rad
https://www.vdr-portal.de/forum/index.php?thread/124222-erfahrungen-mit-owncloud-7-auf-arm-goflex-net/
https://forum.doozan.com/read.php?2,18029,18076
https://linuxengineering.wordpress.com/2014/08/03/performance-tuning-with-pogoplug-v4/
---
http://dwaves.de/2015/03/30/hacking-seagate-freeagent-goflex-net-as-nas-with-debian-or-openwrt/
https://techcrunch.com/2010/05/06/how-to-use-the-seagate-dockstar-on-a-lan-without-pogoplug/
https://www.vdr-portal.de/forum/index.php?thread/124222-erfahrungen-mit-owncloud-7-auf-arm-goflex-net/
https://forum.doozan.com/read.php?2,18029,18076
https://linuxengineering.wordpress.com/2014/08/03/performance-tuning-with-pogoplug-v4/
!! → disable sata , bios & ubuntu han on sata_reset ;)
https://wiki.archlinux.org/index.php/Toshiba_Portege_Z20t#No_speaker_sound_when_resuming_from_suspend_to_RAM → https://bbs.archlinux.org/viewtopic.php?id=213720
https://www.vanille.de/blog/openmoko-10-years-after-mickeys-story/
http://www.helenos.org/wiki/FreeRunner
!!!!screen protector
http://shop.goldelico.com/wiki.php?page=Product&product=3011
```
->Download&Install drivers ( i386 only ) -> (de) http://support.brother.com/g/b/producttop.aspx?c=de&lang=de&prod=lpql720nweuk
-> enable 32-bit libs if on 64bit ( e.g. "sudo apt-get install ia32-libs" ,
on 16.04 "dpkg --add-architecture i386;apt-get update;apt-get install libc6:i386 libstdc++6:i386")
->sudo dpkg -i --force-all ql720nwlpr-1.1.4-0.i386.deb
->sudo dpkg -i --force-all ql720nwcupswrapper-1.1.4-0.i386.deb
->sudo test -e /var/spool/lpd/ql720nw || sudo mkdir /var/spool/lpd/ql720nw && echo folder exists
-> set proper format via cups or cli e.g. "lpadmin -pBrother-QL-720NW -o PageSize=62x29"
-> ( find valid formats & settings with: "lpoptions -pBrother-QL-720NW -l" )
(optional) -> use glabel, create template
"glabels-3-batch -o test.pdf test.glabels"
"lp -P Brother-QL-720NW test.pdf"
( you may modify your templates with "cat /tmp/tempmi.glabels |gunzip | sed 's/Text/Othertext/g'|gzip > modimi.glabels" )
```
Custom Paper Size:
https://stackoverflow.com/questions/29899335/custom-paper-size-for-labelprinter-brother-ql-570
RES:
http://www.tuxlog.de/gentoolinuxadmin/2014/etikettendruck-mit-dem-brother-ql570-unter-ubuntu-linux/
https://blog.philippklaus.de/2015/12/brother-ql-710w/
https://gist.github.com/coderbyheart/ab133a5700c8dc4e2ca7
https://forum.ubuntuusers.de/topic/brother-ql-720nw-ppd-datei-fuer-endlosetikette/
https://forum.ubuntuusers.de/topic/brother-labeldrucker-ql-720nw-druckt-nicht/
https://stackoverflow.com/questions/16164974/brother-ql-720nw-printing-labels-using-cups-ubuntu
https://blog.teststation.org/ubuntu/2016/05/12/installing-32-bit-software-on-ubuntu-16.04/
https://ubuntuforums.org/showthread.php?t=2135730
https://wiki.archlinux.org/index.php/CUPS/Printer-specific_problems
```
-> Modify ppd.gz (gunzip) , comment out any "/Library/" Paths
lpadmin -pEVOLIS-Primacy -o GDuplexMode=DUPLEX_MM -o GRibbonType=RM_KBLACK ;
lpr -o landscape -o fit-to-page -o media=Card -PEVOLIS-Primacy Vorlage-Digital-Plastikkartendruck.pdf
```
http://web.archive.org/web/20180207030221/https://www.plastikkartendrucker.at/support/allgemein/Programming_Guide.pdf
http://web.archive.org/web/20180207030139/https://www.plastikkartendrucker.at/support/allgemein/Network_administrator_manual.pdf
http://web.archive.org/web/20180207030216/http://heigltech.com/wp-content/uploads/2013/11/Ethernet-command-guide.pdf
https://de.evolis.com/nachrichten/neuheit-evolis-premium-sdk
https://www.manualslib.com/manual/1050902/Evolis-Zenius.html?page=15#manual
https://www.yumpu.com/en/document/view/39887752/configuring-an-evolis-printer-on-a-tcp-ip-port/18
cd /tmp/
wget https://github.com/madlynx/ricoh-sp100/archive/master.zip
unzip master.zip
cd ricoh-sp100-master/
./check-requirements
sudo cp pstoricohddst-gdi /usr/lib/cups/filter/
sudo chown root:root /usr/lib/cups/filter/pstoricohddst-gdi
http://www.linux-hardware-guide.de/2014-07-24-ricoh-sp-112-mono-laserdrucker
https://forum.ubuntuusers.de/topic/samsung-unified-linux-driver-scanner-bricht-ab/#post-9004175
```
sudo apt install libusb-0.1-4
sudo ln -sf /usr/lib/sane/libsane-smfp.so* /usr/lib/x86_64-linux-gnu/sane/
```
https://gist.github.com/dmckeone/4217454
http://rtn66u.blogspot.com/
http://rtn66u.blogspot.com/2017/07/rt-n66u30043807743.html
https://openwrt.org/toh/asus/rt-n66u
https://www.asus.com/Networking/RTN66U/HelpDesk_BIOS/
https://www.routerdefaults.org/de/asus/rt-ac66u
https://10-0-0-0-1.org/asus-rt-n66u-login/
https://chrishardie.com/2013/02/asus-router-firmware-windows-mac-linux/
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=745477
https://www.snbforums.com/threads/unable-to-flash-firmware-asus-or-tomato-on-rt-n66u-bricked.12169/
https://www.eightforums.com/threads/asus-rt-n66u-stuck-in-boot-loop-please-help.56595/
https://www.snbforums.com/threads/bricked-rt-n66u-ive-searched-alot.12840/
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=726569
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=972000
https://forums.hardwarezone.com.sg/internet-bandwidth-networking-clinic-4/help-asus-rt-n66u-hardware-faulty-but-dunno-whats-issue-4120598.html
https://www.snbforums.com/threads/solved-cannot-reset-rt-n66u.29672/
https://www.snbforums.com/threads/unbrick-rtn66u.11933/
https://www.snbforums.com/threads/asus-rt-n66u-with-tomatousb-firmware.6810/page-24#post-58062
https://www.snbforums.com/threads/solved-asus-rt-n16-bricked-because-unplug-during-flashing.26563/
https://forum.archive.openwrt.org/viewtopic.php?id=46422
https://www.kuketz-blog.de/flash-openwrt-auf-fritzbox-4040-openwrt-teil2/
https://forum.openwrt.org/viewtopic.php?id=70687
https://forum.lede-project.org/t/installing-on-tp-link-tl-wr841n-v13/4930/22
https://forum.freifunk.net/t/tp-link-tl-wr841n-v13-wird-in-de-ausgeliefert/14289/78
https://forum.lede-project.org/t/wr841n-v13-usb-mod/9098
https://wiki.openwrt.org/toh/tp-link/tl-wr841nd#usb_20_port_on_v13
https://git.lede-project.org/?p=source.git;a=commit;h=24043a0d2e01b9843c0dc529205b3b0bc7ecbbf9
https://wiki.ubuntuusers.de/Scanner/Brother/
https://wiki.debianforum.de/Brother_Scanner
```
sudo apt-get update && sudo apt-get install libkf5archive5 libqt5xml5 libqt5websockets5 qml-module-qt-labs-platform qtquickcontrols2-5-dev
wget -c https://github.com/benchonaut/remarkable-tablet-cloud-client/raw/master/reMarkable.deb && sudo dpkg -i reMarkable.deb
```
To start the client, simply execute reMarkable in your terminal. If you want to start it via your desktop menu, create a file and copy it to `/usr/share/applications/remarkable.desktop` containing
```
[Desktop Entry]
Version=1.0
Type=Application
Name=reMarkable Desktop Client
GenericName=Desktop Client
Comment=reMarkable Desktop Client
Exec=reMarkable
Icon=accessories-text-editor
Terminal=false
Categories=Graphics;Office;
```
/***
|Name|ImageSizePlugin|
|Source|http://www.TiddlyTools.com/#ImageSizePlugin|
|Version|1.2.2|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|adds support for resizing images|
This plugin adds optional syntax to scale an image to a specified width and height and/or interactively resize the image with the mouse.
!!!!!Usage
<<<
The extended image syntax is:
{{{
[img(w+,h+)[...][...]]
}}}
where ''(w,h)'' indicates the desired width and height (in CSS units, e.g., px, em, cm, in, or %). Use ''auto'' (or a blank value) for either dimension to scale that dimension proportionally (i.e., maintain the aspect ratio). You can also calculate a CSS value 'on-the-fly' by using a //javascript expression// enclosed between """{{""" and """}}""". Appending a plus sign (+) to a dimension enables interactive resizing in that dimension (by dragging the mouse inside the image). Use ~SHIFT-click to show the full-sized (un-scaled) image. Use ~CTRL-click to restore the starting size (either scaled or full-sized).
<<<
!!!!!Examples
<<<
{{{
[img(100px+,75px+)[images/meow2.jpg]]
}}}
[img(100px+,75px+)[images/meow2.jpg]]
{{{
[<img(34%+,+)[images/meow.gif]]
[<img(21% ,+)[images/meow.gif]]
[<img(13%+, )[images/meow.gif]]
[<img( 8%+, )[images/meow.gif]]
[<img( 5% , )[images/meow.gif]]
[<img( 3% , )[images/meow.gif]]
[<img( 2% , )[images/meow.gif]]
[img( 1%+,+)[images/meow.gif]]
}}}
[<img(34%+,+)[images/meow.gif]]
[<img(21% ,+)[images/meow.gif]]
[<img(13%+, )[images/meow.gif]]
[<img( 8%+, )[images/meow.gif]]
[<img( 5% , )[images/meow.gif]]
[<img( 3% , )[images/meow.gif]]
[<img( 2% , )[images/meow.gif]]
[img( 1%+,+)[images/meow.gif]]
{{tagClear{
}}}
<<<
!!!!!Revisions
<<<
2010.07.24 [1.2.2] moved tip/dragtip text to config.formatterHelpers.imageSize object to enable customization
2009.02.24 [1.2.1] cleanup width/height regexp, use '+' suffix for resizing
2009.02.22 [1.2.0] added stretchable images
2008.01.19 [1.1.0] added evaluated width/height values
2008.01.18 [1.0.1] regexp for "(width,height)" now passes all CSS values to browser for validation
2008.01.17 [1.0.0] initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.ImageSizePlugin= {major: 1, minor: 2, revision: 2, date: new Date(2010,7,24)};
//}}}
//{{{
var f=config.formatters[config.formatters.findByField("name","image")];
f.match="\\[[<>]?[Ii][Mm][Gg](?:\\([^,]*,[^\\)]*\\))?\\[";
f.lookaheadRegExp=/\[([<]?)(>?)[Ii][Mm][Gg](?:\(([^,]*),([^\)]*)\))?\[(?:([^\|\]]+)\|)?([^\[\]\|]+)\](?:\[([^\]]*)\])?\]/mg;
f.handler=function(w) {
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source)
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
var floatLeft=lookaheadMatch[1];
var floatRight=lookaheadMatch[2];
var width=lookaheadMatch[3];
var height=lookaheadMatch[4];
var tooltip=lookaheadMatch[5];
var src=lookaheadMatch[6];
var link=lookaheadMatch[7];
// Simple bracketted link
var e = w.output;
if(link) { // LINKED IMAGE
if (config.formatterHelpers.isExternalLink(link)) {
if (config.macros.attach && config.macros.attach.isAttachment(link)) {
// see [[AttachFilePluginFormatters]]
e = createExternalLink(w.output,link);
e.href=config.macros.attach.getAttachment(link);
e.title = config.macros.attach.linkTooltip + link;
} else
e = createExternalLink(w.output,link);
} else
e = createTiddlyLink(w.output,link,false,null,w.isStatic);
addClass(e,"imageLink");
}
var img = createTiddlyElement(e,"img");
if(floatLeft) img.align="left"; else if(floatRight) img.align="right";
if(width||height) {
var x=width.trim(); var y=height.trim();
var stretchW=(x.substr(x.length-1,1)=='+'); if (stretchW) x=x.substr(0,x.length-1);
var stretchH=(y.substr(y.length-1,1)=='+'); if (stretchH) y=y.substr(0,y.length-1);
if (x.substr(0,2)=="{{")
{ try{x=eval(x.substr(2,x.length-4))} catch(e){displayMessage(e.description||e.toString())} }
if (y.substr(0,2)=="{{")
{ try{y=eval(y.substr(2,y.length-4))} catch(e){displayMessage(e.description||e.toString())} }
img.style.width=x.trim(); img.style.height=y.trim();
config.formatterHelpers.addStretchHandlers(img,stretchW,stretchH);
}
if(tooltip) img.title = tooltip;
// GET IMAGE SOURCE
if (config.macros.attach && config.macros.attach.isAttachment(src))
src=config.macros.attach.getAttachment(src); // see [[AttachFilePluginFormatters]]
else if (config.formatterHelpers.resolvePath) { // see [[ImagePathPlugin]]
if (config.browser.isIE || config.browser.isSafari) {
img.onerror=(function(){
this.src=config.formatterHelpers.resolvePath(this.src,false);
return false;
});
} else
src=config.formatterHelpers.resolvePath(src,true);
}
img.src=src;
w.nextMatch = this.lookaheadRegExp.lastIndex;
}
}
config.formatterHelpers.imageSize={
tip: 'SHIFT-CLICK=show full size, CTRL-CLICK=restore initial size',
dragtip: 'DRAG=stretch/shrink, '
}
config.formatterHelpers.addStretchHandlers=function(e,stretchW,stretchH) {
e.title=((stretchW||stretchH)?this.imageSize.dragtip:'')+this.imageSize.tip;
e.statusMsg='width=%0, height=%1';
e.style.cursor='move';
e.originalW=e.style.width;
e.originalH=e.style.height;
e.minW=Math.max(e.offsetWidth/20,10);
e.minH=Math.max(e.offsetHeight/20,10);
e.stretchW=stretchW;
e.stretchH=stretchH;
e.onmousedown=function(ev) { var ev=ev||window.event;
this.sizing=true;
this.startX=!config.browser.isIE?ev.pageX:(ev.clientX+findScrollX());
this.startY=!config.browser.isIE?ev.pageY:(ev.clientY+findScrollY());
this.startW=this.offsetWidth;
this.startH=this.offsetHeight;
return false;
};
e.onmousemove=function(ev) { var ev=ev||window.event;
if (this.sizing) {
var s=this.style;
var currX=!config.browser.isIE?ev.pageX:(ev.clientX+findScrollX());
var currY=!config.browser.isIE?ev.pageY:(ev.clientY+findScrollY());
var newW=(currX-this.offsetLeft)/(this.startX-this.offsetLeft)*this.startW;
var newH=(currY-this.offsetTop )/(this.startY-this.offsetTop )*this.startH;
if (this.stretchW) s.width =Math.floor(Math.max(newW,this.minW))+'px';
if (this.stretchH) s.height=Math.floor(Math.max(newH,this.minH))+'px';
clearMessage(); displayMessage(this.statusMsg.format([s.width,s.height]));
}
return false;
};
e.onmouseup=function(ev) { var ev=ev||window.event;
if (ev.shiftKey) { this.style.width=this.style.height=''; }
if (ev.ctrlKey) { this.style.width=this.originalW; this.style.height=this.originalH; }
this.sizing=false;
clearMessage();
return false;
};
e.onmouseout=function(ev) { var ev=ev||window.event;
this.sizing=false;
clearMessage();
return false;
};
}
//}}}
1. Haftungsbeschränkung
Die Inhalte des Internetauftritts wurden mit größtmöglicher Sorgfalt und nach bestem Gewissen erstellt. Dennoch übernimmt der Anbieter dieser Webseite keine Gewähr für die Aktualität, Vollständigkeit und Richtigkeit der bereitgestellten Seiten und Inhalte.
Als Diensteanbieter ist der Anbieter dieser Webseite gemäß § 7 Abs. 1 TMG für eigene Inhalte und bereitgestellte Informationen auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich; nach den §§ 8 bis 10 TMG jedoch nicht verpflichtet, die übermittelten oder gespeicherten fremden Informationen zu überwachen. Eine Entfernung oder Sperrung dieser Inhalte erfolgt umgehend ab dem Zeitpunkt der Kenntnis einer konkreten Rechtsverletzung. Eine Haftung ist erst ab dem Zeitpunkt der Kenntniserlangung möglich.
2. Externe Links
Die Webseite enthält sog. „externe Links“ (Verlinkungen) zu anderen Webseiten, auf deren Inhalt der Anbieter der Webseite keinen Einfluss hat. Aus diesem Grund kann der Anbieter für diese Inhalte auch keine Gewähr übernehmen.
Für die Inhalte und Richtigkeit der bereitgestellten Informationen ist der jeweilige Anbieter der verlinkten Webseite verantwortlich. Zum Zeitpunkt der Verlinkung waren keine Rechtsverstöße erkennbar. Bei Bekanntwerden einer solchen Rechtsverletzung wird der Link umgehend entfernen.
/***
|Name|InlineJavascriptPlugin|
|Source|http://www.TiddlyTools.com/#InlineJavascriptPlugin|
|Documentation|http://www.TiddlyTools.com/#InlineJavascriptPluginInfo|
|Version|1.9.6|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|Insert Javascript executable code directly into your tiddler content.|
''Call directly into TW core utility routines, define new functions, calculate values, add dynamically-generated TiddlyWiki-formatted output'' into tiddler content, or perform any other programmatic actions each time the tiddler is rendered.
!!!!!Documentation
>see [[InlineJavascriptPluginInfo]]
!!!!!Revisions
<<<
2010.12.15 1.9.6 allow (but ignore) type="..." syntax
|please see [[InlineJavascriptPluginInfo]] for additional revision details|
2005.11.08 1.0.0 initial release
<<<
!!!!!Code
***/
//{{{
version.extensions.InlineJavascriptPlugin= {major: 1, minor: 9, revision: 6, date: new Date(2010,12,15)};
config.formatters.push( {
name: "inlineJavascript",
match: "\\<script",
lookahead: "\\<script(?: type=\\\"[^\\\"]*\\\")?(?: src=\\\"([^\\\"]*)\\\")?(?: label=\\\"([^\\\"]*)\\\")?(?: title=\\\"([^\\\"]*)\\\")?(?: key=\\\"([^\\\"]*)\\\")?( show)?\\>((?:.|\\n)*?)\\</script\\>",
handler: function(w) {
var lookaheadRegExp = new RegExp(this.lookahead,"mg");
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source)
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
var src=lookaheadMatch[1];
var label=lookaheadMatch[2];
var tip=lookaheadMatch[3];
var key=lookaheadMatch[4];
var show=lookaheadMatch[5];
var code=lookaheadMatch[6];
if (src) { // external script library
var script = document.createElement("script"); script.src = src;
document.body.appendChild(script); document.body.removeChild(script);
}
if (code) { // inline code
if (show) // display source in tiddler
wikify("{{{\n"+lookaheadMatch[0]+"\n}}}\n",w.output);
if (label) { // create 'onclick' command link
var link=createTiddlyElement(w.output,"a",null,"tiddlyLinkExisting",wikifyPlainText(label));
var fixup=code.replace(/document.write\s*\(/gi,'place.bufferedHTML+=(');
link.code="function _out(place,tiddler){"+fixup+"\n};_out(this,this.tiddler);"
link.tiddler=w.tiddler;
link.onclick=function(){
this.bufferedHTML="";
try{ var r=eval(this.code);
if(this.bufferedHTML.length || (typeof(r)==="string")&&r.length)
var s=this.parentNode.insertBefore(document.createElement("span"),this.nextSibling);
if(this.bufferedHTML.length)
s.innerHTML=this.bufferedHTML;
if((typeof(r)==="string")&&r.length) {
wikify(r,s,null,this.tiddler);
return false;
} else return r!==undefined?r:false;
} catch(e){alert(e.description||e.toString());return false;}
};
link.setAttribute("title",tip||"");
var URIcode='javascript:void(eval(decodeURIComponent(%22(function(){try{';
URIcode+=encodeURIComponent(encodeURIComponent(code.replace(/\n/g,' ')));
URIcode+='}catch(e){alert(e.description||e.toString())}})()%22)))';
link.setAttribute("href",URIcode);
link.style.cursor="pointer";
if (key) link.accessKey=key.substr(0,1); // single character only
}
else { // run script immediately
var fixup=code.replace(/document.write\s*\(/gi,'place.innerHTML+=(');
var c="function _out(place,tiddler){"+fixup+"\n};_out(w.output,w.tiddler);";
try { var out=eval(c); }
catch(e) { out=e.description?e.description:e.toString(); }
if (out && out.length) wikify(out,w.output,w.highlightRegExp,w.tiddler);
}
}
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
}
}
} )
//}}}
// // Backward-compatibility for TW2.1.x and earlier
//{{{
if (typeof(wikifyPlainText)=="undefined") window.wikifyPlainText=function(text,limit,tiddler) {
if(limit > 0) text = text.substr(0,limit);
var wikifier = new Wikifier(text,formatter,null,tiddler);
return wikifier.wikifyPlain();
}
//}}}
// // GLOBAL FUNCTION: $(...) -- 'shorthand' convenience syntax for document.getElementById()
//{{{
if (typeof($)=='undefined') { function $(id) { return document.getElementById(id.replace(/^#/,'')); } }
//}}}
[[Dynamic TextArea Height]]
[[Positioning Issue: Where is the mighty mouse?]]
[[Problem with SyntaxHighlighterPlugin3]]
[[Table Cell Alignment]]
[[The focus issue]]
[[The-tweaky-TiddlyWiki-options]]
[[Transposing a table -- backward thinking]]
[[Working-with-MathJaxPlugin]]
`mount -o fsc,noatime,nodiratime,async,rw,rsize=65536,wsize=65536,namlen=255,soft,proto=tcp,timeo=600,retrans=2 -t nfs 1.2.3.4:/mnt/foldr/ /my/local/mount`
---
gluster , 2 servers
`mount -t glusterfs 1.2.3.4:/VOLUME /my/local/mount -o enable-ino32,defaults,_netdev,backupvolfile-server=2.3.4.5,log-level=WARNING,log-file=/var/log/gluster.log,entry-timeout=0,attribute-timeout=0`
---
https://superuser.com/questions/305723/using-udev-rules-to-run-a-script-on-usb-insertion
https://askubuntu.com/questions/284224/autorun-a-script-after-i-plugged-or-unplugged-a-usb-device
https://askubuntu.com/questions/536746/commands-not-executing-in-shell-script-run-by-udev
dropbear-initramfs ## ref hamy
!! RTFM: zcat /usr/share/doc/dropbear-initramfs/README.initramfs.gz |less
!! apt-get install dropbear-initramfs
nano /etc/initramfs-tools/root/.ssh/authorized_keys
!!enable net modules in initram from currently used modules in runnin machine
```
(echo ;while read m _; do /sbin/modinfo -F filename "$m"; done </proc/modules | sed -nr "s@^/lib/modules/`uname -r`/kernel/drivers/net(/.*)?/([^/]+)\.ko\$@\2@p" ) | tee -a /etc/initramfs-tools/modules
```
!! general
| [[ 2020-03-19 @ hosakacorp.net → Abusing systemd --user services |https://hosakacorp.net/p/systemd-user.html ]] |
| [[ 2017-07-31 @ devops.stackexchange.com → Is there any concrete and acceptable solution for running systemd inside the docker container? - DevOps Stack Exchange |https://devops.stackexchange.com/questions/1635/is-there-any-concrete-and-acceptable-solution-for-running-systemd-inside-the-doc ]] |
---
!! systemd:slow:shutdown job waiting for
https://unix.stackexchange.com/questions/273876/a-stop-job-is-running-for-session-c2-of-user
---
!! systemd:restart:init
`systemctl daemon-reexec `→ restarts main process only, run e.g. `systemctl restart systemd-journald`
https://www.heise.de/ct/hotline/Linux-systemd-Neustart-ohne-Reboot-2198615.html
---
https://www.admintome.com/blog/turning-off-systemd-resolvd/
https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu
https://www.jamescoyle.net/how-to/2096-use-a-file-as-a-linux-block-device
http://linux-vserver.org/Loop_Device
https://forum.proxmox.com/threads/bond0-received-packet-with-own-address-as-source-address.9742/
https://forum.proxmox.com/threads/new-install-eth0-received-packet-with-own-address-as-source.9183/
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559879
https://ubuntuforums.org/showthread.php?t=1565074
/***
|''Name:''|LoadRemoteFileThroughProxy (previous LoadRemoteFileHijack)|
|''Description:''|When the TiddlyWiki file is located on the web (view over http) the content of [[SiteProxy]] tiddler is added in front of the file url. If [[SiteProxy]] does not exist "/proxy/" is added. |
|''Version:''|1.1.0|
|''Date:''|mar 17, 2007|
|''Source:''|http://tiddlywiki.bidix.info/#LoadRemoteFileHijack|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0|
***/
//{{{
version.extensions.LoadRemoteFileThroughProxy = {
major: 1, minor: 1, revision: 0,
date: new Date("mar 17, 2007"),
source: "http://tiddlywiki.bidix.info/#LoadRemoteFileThroughProxy"};
if (!window.bidix) window.bidix = {}; // bidix namespace
if (!bidix.core) bidix.core = {};
bidix.core.loadRemoteFile = loadRemoteFile;
loadRemoteFile = function(url,callback,params)
{
if ((document.location.toString().substr(0,4) == "http") && (url.substr(0,4) == "http")){
url = store.getTiddlerText("SiteProxy", "/proxy/") + url;
}
return bidix.core.loadRemoteFile(url,callback,params);
}
//}}}
To locate the character in the mouseup event, the plugins need
# the selection information, and
# capabilities to distinguish different nodes in the wiki text.
>To obtain the selection information, the plugins make use of the Javascript's {{{window.getSelection()}}} method.
>
>To distinguish different nodes in the wiki text, the plugins use the {{{twve.tiddler.wikiTags($elem)}}} method to obtain the signature (opening and closing tags) of different kinds of DOM elements, together with other methods (see below) to identify the character or selected text.
!!! The getSelection() method
The getSelection() method returns the current selection information on the HTML page, including
* anchorNode -- where the mouse button was pressed,
* focusNode -- where the mouse button was released,
* anchorOffset -- index of the character in anchorNode at which the mouse button was pressed,^^#^^
* focusOffset -- index of the character in focusNode at which the mouse button was released.^^#^^
----
^^# If the mouseup event happens on a <BR> node, then both anchorNode and focusNode are the element containing that <BR> node, while the anchorOffset and focusOffset are the index number of that <BR> node within the element.^^
----
>If there was nothing selected in the mouseup event, the anchorOffset would be the same as the focusOffset (and the anchorNode the same as the focusNode for sure). The character upon mouseup is just the one at the focusOffset in the focusNode.
----
>If, however, some text was selected instead, the selected text would start from the character at the anchorOffset in the anchorNode, include all the characters contained in the nodes between anchorNode and focusNode, if any, and end at the character at the focusOffset in the focusNode.
!!! The twve.tiddler.wikiTags($elem) method
The <<slider '' 'twve.core##twve.tiddler.wikiTags' 'twve.tiddler.wikiTags($elem)'>> method obtains the wiki text signature (the opening and closing tags) of //registered// DOM elements (see [[Editable Elements]] for more information). These signatures can be used to distinguish different nodes in the wiki text.
! Locating the character
To locate the character (in mouseup event) in the wiki text of the tiddler, the plugins do
# locate the wiki text of the element,
# obtain all the nodes in the element (using [[jQuery's .contents()|http://api.jquery.com/contents/]] method),
# find the index of focusNode within the element (using the the <<slider '' 'twve.extra##twve.element.nodeIndex' 'twve.element.nodeIndex($nodes,node)'>> method),
# use the index to search for the focusNode in the wiki text,
# calculate the character index (corresponding to the focusOffset) in the wiki text (using the <<slider '' 'twve.extra##twve.tiddler.selectionInfo' 'twve.tiddler.selectionInfo($elem,elem_txt)'>>, which further uses <<slider '' 'twve.extra##twve.tiddler.selectionOffset' 'twve.tiddler.selectionOffset(...)'>> and <<slider '' 'twve.extra##twve.tiddler.tagsInfo' 'twve.tiddler.tagsInfo($node,txt,start)'>> methods to accomplish its job).
! Retrieving the selected text
To obtain the selected text, the plugins do
# locate the wiki text of the element,
# obtain all the nodes in the element (using [[jQuery's .contents()|http://api.jquery.com/contents/]] method),
# find the indexes of anchorNode and focusNode within the element (using the the <<slider '' 'twve.extra##twve.element.nodeIndex' 'twve.element.nodeIndex($nodes,node)'>> method),
# use the indexes to search for the anchorNode and focusNode in the wiki text,
# calculate the starting index (anchorOffset) and the ending index (focusOffset) in the wiki text (using the <<slider '' 'twve.extra##twve.tiddler.selectionInfo' 'twve.tiddler.selectionInfo($elem,elem_txt)'>>, which further uses <<slider '' 'twve.extra##twve.tiddler.selectionOffset' 'twve.tiddler.selectionOffset(...)'>> and <<slider '' 'twve.extra##twve.tiddler.tagsInfo' 'twve.tiddler.tagsInfo($node,txt,start)'>> methods to accomplish its job),
# retrieve the characters between the starting and ending indexes.
<$reveal type="match" default="" text={{{ [prefix[$:/state/popup/search-dropdown]] }}}>
<<locator-view baseTitle:"TableOfContents">>
</$reveal>
> This sidebar is hidden when the focus is on the search entry to increase responsiveness - see [[Locator view]] for the code.
https://raymii.org/s/blog/Filtering_IMAP_mail_with_imapfilter.html
https://baptiste-wicht.com/posts/2014/07/a-mutt-journey-filter-mails-with-imapfilter.html
https://dev.lopsa.org/node/181
https://iranzo.github.io/blog/2015/08/28/filtering-email-with-imapfilter/
https://syshero.org/2016-06-19-imapfilter-cleaning-up-your-mailbox-and/
http://flammie.github.io/dotfiles/imapfilter.html
https://ineed.coffee/3970/if-you-cant-beat-em-clean-em-using-imapfilter-for-remote-rules-to-an-imap-mailbox/
https://blog.darky.ch/2011/01/e-mail-postfach-mit-imapfilter-vorsortieren/
https://github.com/lefcha/imapfilter/blob/master/samples/extend.lua
http://manpages.ubuntu.com/manpages/xenial/man5/imapfilter_config.5.html
https://github.com/lefcha/imapfilter/issues/146
https://github.com/lefcha/imapfilter/issues/132
https://github.com/lefcha/imapfilter/issues/93
https://github.com/lefcha/imapfilter/issues/116
https://github.com/lefcha/imapfilter/issues/42
https://github.com/lefcha/imapfilter/issues/165
http://www.mit.edu/afs.new/athena/project/consultdev/filter/imapfilter-1.0.1/sample.extend.lua
```
user=user@host.com;read passmtp;
(echo EHLO smtp-server.net ;sleep 0.3; echo AUTH PLAIN $(echo -ne '\0'$user'\0'$passmtp | base64) ;sleep 0.2; echo QUIT;sleep 1)|openssl s_client -starttls smtp -crlf -connect smtp-server.net:587 2>&1 |grep "^235 A"
```
https://bugzilla.redhat.com/show_bug.cgi?id=1532139
https://forums.centos.org/viewtopic.php?t=6760
https://legacy.thomas-leister.de/postfix-amavis-spamfilter-spamassassin-sieve/
https://dokuwiki.nausch.org/doku.php/centos:mail_c6:spam_5#spam_gtube
https://lists.amavis.org/pipermail/amavis-users/2012-April/001347.html
https://serverfault.com/questions/504426/amavis-missing-x-spam-status-header
http://www.emailsecuritycheck.net/index.html
http://spamassassin.apache.org/gtube/
http://www.postfix.org/postconf.5.html#smtpd_tls_security_level
http://www.postfix.org/TLS_README.html
https://serversupportforum.de/forum/mail/22261-postfix-smtpd_tls_security_level.html
https://github.com/Zimbra-Community/pgp-zimlet/issues/193
https://serverfault.com/questions/625008/find-dkim-and-dmarc-records/832546
http://knowledge.ondmarc.com/en/articles/1519838-querying-spf-dkim-and-dmarc-records
https://www.teslina.com/tutorials/freebsd/installation-software/installation-sendmail-cyrus-imap/dkim-domain-keys/
https://www.msxfaq.de/spam/dmarc.htm
https://www.linuxincluded.com/implementing-spf-dkim-and-dmarc/
https://support.cloudflare.com/hc/en-us/articles/200168696-How-do-I-add-DKIM-records-
https://de.wikipedia.org/wiki/Sender_Policy_Framework
https://www.spfwizard.net/
https://www.siteground.com/kb/enable-spf-domain/
http://www.spf-record.de/spf-lookup?domain=nsa.gov
http://rbl-check.org/rbl-quick-check/abfrage/
http://mail.live.com/mail/troubleshooting.aspx#errors
https://www.rackaid.com/blog/hotmail-blacklist-removal/
https://www.linuxbabe.com/mail-server/solve-550-mail-content-denied-error
http://www.synology-forum.de/showthread.html?66407-Verst%C3%A4ndnisfrage-zu-DKIM
https://www.mailjet.com/docs/spf-dkim-guide/#spf-dkim-values
https://www.hosteurope.de/faq/domains/verwaltung/spf/
https://mxtoolbox.com/SuperTool.aspx
https://mxtoolbox.com/SuperTool.aspx?action=blacklist%3aroestgut.de&run=toolpage#
https://forums.zoho.com/topic/mail-to-qq-mailboxes-rejected
http://ipremoval.sms.symantec.com/lookup/
https://www.ers.trendmicro.com/reputations
https://www.senderscore.org/lookup.php?lookup=ccc.de&validLookup=true
https://www.mail-tester.com
https://together.jolla.com/question/59505/solvedhow-to-setup-outgoing-smtp-server-for-hotmail-on-jolla/
<<calendar thismonth>>
[[Examples]]
[[twve.core Examples]]
[[twve.extra Examples]]
[[twve.table Examples]]
[[twve.tcalc Examples]]
*[[TiddlyWiki | http://www.tiddlywiki.com/]]
*[[TiddlyWiki.org | http://tiddlywiki.org/wiki/Main_Page]]
*[[PluginTools | http://www.tiddlytools.com]]
*[[MathJax \(\TeX\) support | http://www.mathjax.org/docs/supported-tex-commands/]]
----
The ''twve'' plugins identify a DOM element and its defining wiki text by __matching their order of appearance__. The order of appearance of a DOM element is the index number, within its own type and within the same tiddler, that it is rendered in the resulting HTML page. Similarly, the order of appearance of its defining wiki text is the index number, again within its own type and within the same tiddler, that it is defined in the original tiddler text. In these plugins the two indexes are called //rendering index// and //defining index//, respectively.
> At first thought, these two indexes should be the same and no need to distinguish them. Indeed they are the same in most of the cases: in normally loaded and fully transcluded tiddlers. The earlier versions of the plugins did use only one of them without much trouble. They are, however, different from each other when
>> a tiddler is transcluded partially: the 2^^nd^^ table in a tiddler can be rendered as the 1^^st^^ in a partially transcluded copy;
> or
>> when a //list item// / //blockquote// does not start from top level: there will be additional empty //list item(s)// / //blockquote(s)// to contain that one.
> The plugins started to distinguish them when partial transclusion support was included, and later realized it's also needed for the non-top-level started //list items// / //blockquotes//.
When the user clicks on a DOM element to edit its content, the plugins find its type and rendering index, look for the wiki text signature of that type of elements, and count the defining index until it //matches// the rendering index. The plugins then brings up the wiki text and put it in an edit box for the user to edit. When the user finishes editing by {{{hitting Enter/Ctrl-Enter}}} or {{{clicking away}}}, the plugins update the changes, refresh the DOM element, and synchronize all its transcluded copies. To refresh the element, the plugins simply update its content or create a new one to replace it. To synchronize the changes, however, they rely on the defining index to find the rendering index in each copy, then refresh it to reflect the changes accordingly.
> The //wiki text signatures// of supported elements are specified in the {{{.markupTags()}}} method of their corresponding code objects. For example, the signatures of a table are specified in <<slider '' 'twve.table##twve.table.markupTags' 'twve.table.markupTags()'>>.
> For more information about editable elements and their wiki text signatures, see [[Editable Objects]].
!!! The rendering index
To find the rendering index of an element, the plugins use the <<slider '' 'twve.core##twelem.renderingIndex' '.renderingIndex()'>> method of a [[twve.element]] object. This method
# collects in an array all elements of the same type in its direct wrapper, //excluding// those transcluded into the direct wrapper, using <<slider '' 'twve.core##twve.wrapper.findElements' 'twve.wrapper.findElements($w,selector)'>>, and then
# uses the {{{.index()}}} method of the array object to find the rendering index of the element.
!!! The defining index
The defining index of an element is obtained along the way to find the wiki text, within [[twve.element]]'s <<slider '' 'twve.core##twelem.starts' '.starts([start])'>> method, which locates the first character of the defining wiki text.
After finding the beginning (and the defining index) of an element, the plugins find the end of the element's wiki text using the <<slider '' 'twve.core##twelem.ends' '.ends([start,txt])'>> method, then take out the wiki text (using [[twve.editable]]'s <<slider '' 'twve.core##editable.getText' '.getText([open,close])'>> method) for the user to edit.
> @@Plugin authors interested in having access to the wiki text, please see [[Edit Your ...]] for more information.@@
/***
|''Name:''|MathJaxPlugin|
|''Description:''|Enable LaTeX formulas for TiddlyWiki|
|''Version:''|1.0.1|
|''Date:''|Feb 11, 2012|
|''Source:''|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin|
|''Author:''|Guy Rutenberg|
|''License:''|[[BSD open source license]]|
|''~CoreVersion:''|2.5.0|
!! Changelog
!!! 1.0.1 Feb 11, 2012
* Fixed interoperability with TiddlerBarPlugin
!! How to Use
Currently the plugin supports the following delemiters:
* """\(""".."""\)""" - Inline equations
* """$$""".."""$$""" - Displayed equations
* """\[""".."""\]""" - Displayed equations
!! Demo
This is an inline equation \(P(E) = {n \choose k} p^k (1-p)^{ n-k}\) and this is a displayed equation:
\[J_\alpha(x) = \sum_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\]
This is another displayed equation $$e=mc^2$$
!! Code
***/
//{{{
config.extensions.MathJax = {
// mathJaxScript : "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
// uncomment the following line if you want to access MathJax using SSL
mathJaxScript : "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
displayTiddler: function(TiddlerName) {
var elem = config.extensions.MathJax.displayTiddler_old.apply(this, arguments);
if ( typeof MathJax !== 'undefined' ) MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
return elem;
}
};
config.extensions.MathJax.displayTiddler_old = Story.prototype.displayTiddler;
Story.prototype.displayTiddler = config.extensions.MathJax.displayTiddler;
jQuery.getScript(config.extensions.MathJax.mathJaxScript, function(){
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
"HTML-CSS": { scale: 100 }
});
MathJax.Hub.Startup.onload();
});
config.formatters.push({
name: "mathJaxFormula",
match: "\\\\\\[|\\$\\$|\\\\\\(",
//lookaheadRegExp: /(?:\\\[|\$\$)((?:.|\n)*?)(?:\\\]|$$)/mg,
handler: function(w)
{
switch(w.matchText) {
case "\\[": // displayed equations
this.lookaheadRegExp = /\\\[((?:.|\n)*?)(\\\])/mg;
break;
case "$$": // inline equations
this.lookaheadRegExp = /\$\$((?:.|\n)*?)(\$\$)/mg;
break;
case "\\(": // inline equations
this.lookaheadRegExp = /\\\(((?:.|\n)*?)(\\\))/mg;
break;
default:
break;
}
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source);
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
createTiddlyElement(w.output,"span",null,null,lookaheadMatch[0]);
w.nextMatch = this.lookaheadRegExp.lastIndex;
}
}
});
//}}}
https://blog.serverdensity.com/monitor-memcached/
port test openvpn (except tls-auth is active)
`echo -e "\x38\x01\x00\x00\x00\x00\x00\x00\x00" | nc -v -w 6 -z $proto $remotehost $remoteport 2>&1 | cat -v |grep succeeded || echo failed`
https://github.com/liquidat/nagios-icinga-openvpn
https://www.gtkdb.de/index_7_537.html
https://serverfault.com/questions/262474/how-to-check-that-an-openvpn-server-is-listening-on-a-remote-port-without-using
/***
|Name|NestedSlidersPlugin|
|Source|http://www.TiddlyTools.com/#NestedSlidersPlugin|
|Documentation|http://www.TiddlyTools.com/#NestedSlidersPluginInfo|
|Version|2.4.9|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|show content in nest-able sliding/floating panels, without creating separate tiddlers for each panel's content|
!!!!!Documentation
>see [[NestedSlidersPluginInfo]]
!!!!!Configuration
<<<
<<option chkFloatingSlidersAnimate>> allow floating sliders to animate when opening/closing
>Note: This setting can cause 'clipping' problems in some versions of InternetExplorer.
>In addition, for floating slider animation to occur you must also allow animation in general (see [[AdvancedOptions]]).
<<<
!!!!!Revisions
<<<
2008.11.15 - 2.4.9 in adjustNestedSlider(), don't make adjustments if panel is marked as 'undocked' (CSS class). In onClickNestedSlider(), SHIFT-CLICK docks panel (see [[MoveablePanelPlugin]])
|please see [[NestedSlidersPluginInfo]] for additional revision details|
2005.11.03 - 1.0.0 initial public release. Thanks to RodneyGomes, GeoffSlocock, and PaulPetterson for suggestions and experiments.
<<<
!!!!!Code
***/
//{{{
version.extensions.NestedSlidersPlugin= {major: 2, minor: 4, revision: 9, date: new Date(2008,11,15)};
// options for deferred rendering of sliders that are not initially displayed
if (config.options.chkFloatingSlidersAnimate===undefined)
config.options.chkFloatingSlidersAnimate=false; // avoid clipping problems in IE
// default styles for 'floating' class
setStylesheet(".floatingPanel { position:absolute; z-index:10; padding:0.5em; margin:0em; \
background-color:#eee; color:#000; border:1px solid #000; text-align:left; }","floatingPanelStylesheet");
// if removeCookie() function is not defined by TW core, define it here.
if (window.removeCookie===undefined) {
window.removeCookie=function(name) {
document.cookie = name+'=; expires=Thu, 01-Jan-1970 00:00:01 UTC; path=/;';
}
}
config.formatters.push( {
name: "nestedSliders",
match: "\\n?\\+{3}",
terminator: "\\s*\\={3}\\n?",
lookahead: "\\n?\\+{3}(\\+)?(\\([^\\)]*\\))?(\\!*)?(\\^(?:[^\\^\\*\\@\\[\\>]*\\^)?)?(\\*)?(\\@)?(?:\\{\\{([\\w]+[\\s\\w]*)\\{)?(\\[[^\\]]*\\])?(\\[[^\\]]*\\])?(?:\\}{3})?(\\#[^:]*\\:)?(\\>)?(\\.\\.\\.)?\\s*",
handler: function(w)
{
lookaheadRegExp = new RegExp(this.lookahead,"mg");
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source)
if(lookaheadMatch && lookaheadMatch.index == w.matchStart)
{
var defopen=lookaheadMatch[1];
var cookiename=lookaheadMatch[2];
var header=lookaheadMatch[3];
var panelwidth=lookaheadMatch[4];
var transient=lookaheadMatch[5];
var hover=lookaheadMatch[6];
var buttonClass=lookaheadMatch[7];
var label=lookaheadMatch[8];
var openlabel=lookaheadMatch[9];
var panelID=lookaheadMatch[10];
var blockquote=lookaheadMatch[11];
var deferred=lookaheadMatch[12];
// location for rendering button and panel
var place=w.output;
// default to closed, no cookie, no accesskey, no alternate text/tip
var show="none"; var cookie=""; var key="";
var closedtext=">"; var closedtip="";
var openedtext="<"; var openedtip="";
// extra "+", default to open
if (defopen) show="block";
// cookie, use saved open/closed state
if (cookiename) {
cookie=cookiename.trim().slice(1,-1);
cookie="chkSlider"+cookie;
if (config.options[cookie]==undefined)
{ config.options[cookie] = (show=="block") }
show=config.options[cookie]?"block":"none";
}
// parse label/tooltip/accesskey: [label=X|tooltip]
if (label) {
var parts=label.trim().slice(1,-1).split("|");
closedtext=parts.shift();
if (closedtext.substr(closedtext.length-2,1)=="=")
{ key=closedtext.substr(closedtext.length-1,1); closedtext=closedtext.slice(0,-2); }
openedtext=closedtext;
if (parts.length) closedtip=openedtip=parts.join("|");
else { closedtip="show "+closedtext; openedtip="hide "+closedtext; }
}
// parse alternate label/tooltip: [label|tooltip]
if (openlabel) {
var parts=openlabel.trim().slice(1,-1).split("|");
openedtext=parts.shift();
if (parts.length) openedtip=parts.join("|");
else openedtip="hide "+openedtext;
}
var title=show=='block'?openedtext:closedtext;
var tooltip=show=='block'?openedtip:closedtip;
// create the button
if (header) { // use "Hn" header format instead of button/link
var lvl=(header.length>5)?5:header.length;
var btn = createTiddlyElement(createTiddlyElement(place,"h"+lvl,null,null,null),"a",null,buttonClass,title);
btn.onclick=onClickNestedSlider;
btn.setAttribute("href","javascript:;");
btn.setAttribute("title",tooltip);
}
else
var btn = createTiddlyButton(place,title,tooltip,onClickNestedSlider,buttonClass);
btn.innerHTML=title; // enables use of HTML entities in label
// set extra button attributes
btn.setAttribute("closedtext",closedtext);
btn.setAttribute("closedtip",closedtip);
btn.setAttribute("openedtext",openedtext);
btn.setAttribute("openedtip",openedtip);
btn.sliderCookie = cookie; // save the cookiename (if any) in the button object
btn.defOpen=defopen!=null; // save default open/closed state (boolean)
btn.keyparam=key; // save the access key letter ("" if none)
if (key.length) {
btn.setAttribute("accessKey",key); // init access key
btn.onfocus=function(){this.setAttribute("accessKey",this.keyparam);}; // **reclaim** access key on focus
}
btn.setAttribute("hover",hover?"true":"false");
btn.onmouseover=function(ev) {
// optional 'open on hover' handling
if (this.getAttribute("hover")=="true" && this.sliderPanel.style.display=='none') {
document.onclick.call(document,ev); // close transients
onClickNestedSlider(ev); // open this slider
}
// mouseover on button aligns floater position with button
if (window.adjustSliderPos) window.adjustSliderPos(this.parentNode,this,this.sliderPanel);
}
// create slider panel
var panelClass=panelwidth?"floatingPanel":"sliderPanel";
if (panelID) panelID=panelID.slice(1,-1); // trim off delimiters
var panel=createTiddlyElement(place,"div",panelID,panelClass,null);
panel.button = btn; // so the slider panel know which button it belongs to
btn.sliderPanel=panel; // so the button knows which slider panel it belongs to
panel.defaultPanelWidth=(panelwidth && panelwidth.length>2)?panelwidth.slice(1,-1):"";
panel.setAttribute("transient",transient=="*"?"true":"false");
panel.style.display = show;
panel.style.width=panel.defaultPanelWidth;
panel.onmouseover=function(event) // mouseover on panel aligns floater position with button
{ if (window.adjustSliderPos) window.adjustSliderPos(this.parentNode,this.button,this); }
// render slider (or defer until shown)
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
if ((show=="block")||!deferred) {
// render now if panel is supposed to be shown or NOT deferred rendering
w.subWikify(blockquote?createTiddlyElement(panel,"blockquote"):panel,this.terminator);
// align floater position with button
if (window.adjustSliderPos) window.adjustSliderPos(place,btn,panel);
}
else {
var src = w.source.substr(w.nextMatch);
var endpos=findMatchingDelimiter(src,"+++","===");
panel.setAttribute("raw",src.substr(0,endpos));
panel.setAttribute("blockquote",blockquote?"true":"false");
panel.setAttribute("rendered","false");
w.nextMatch += endpos+3;
if (w.source.substr(w.nextMatch,1)=="\n") w.nextMatch++;
}
}
}
}
)
function findMatchingDelimiter(src,starttext,endtext) {
var startpos = 0;
var endpos = src.indexOf(endtext);
// check for nested delimiters
while (src.substring(startpos,endpos-1).indexOf(starttext)!=-1) {
// count number of nested 'starts'
var startcount=0;
var temp = src.substring(startpos,endpos-1);
var pos=temp.indexOf(starttext);
while (pos!=-1) { startcount++; pos=temp.indexOf(starttext,pos+starttext.length); }
// set up to check for additional 'starts' after adjusting endpos
startpos=endpos+endtext.length;
// find endpos for corresponding number of matching 'ends'
while (startcount && endpos!=-1) {
endpos = src.indexOf(endtext,endpos+endtext.length);
startcount--;
}
}
return (endpos==-1)?src.length:endpos;
}
//}}}
//{{{
window.onClickNestedSlider=function(e)
{
if (!e) var e = window.event;
var theTarget = resolveTarget(e);
while (theTarget && theTarget.sliderPanel==undefined) theTarget=theTarget.parentNode;
if (!theTarget) return false;
var theSlider = theTarget.sliderPanel;
var isOpen = theSlider.style.display!="none";
// if SHIFT-CLICK, dock panel first (see [[MoveablePanelPlugin]])
if (e.shiftKey && config.macros.moveablePanel) config.macros.moveablePanel.dock(theSlider,e);
// toggle label
theTarget.innerHTML=isOpen?theTarget.getAttribute("closedText"):theTarget.getAttribute("openedText");
// toggle tooltip
theTarget.setAttribute("title",isOpen?theTarget.getAttribute("closedTip"):theTarget.getAttribute("openedTip"));
// deferred rendering (if needed)
if (theSlider.getAttribute("rendered")=="false") {
var place=theSlider;
if (theSlider.getAttribute("blockquote")=="true")
place=createTiddlyElement(place,"blockquote");
wikify(theSlider.getAttribute("raw"),place);
theSlider.setAttribute("rendered","true");
}
// show/hide the slider
if(config.options.chkAnimate && (!hasClass(theSlider,'floatingPanel') || config.options.chkFloatingSlidersAnimate))
anim.startAnimating(new Slider(theSlider,!isOpen,e.shiftKey || e.altKey,"none"));
else
theSlider.style.display = isOpen ? "none" : "block";
// reset to default width (might have been changed via plugin code)
theSlider.style.width=theSlider.defaultPanelWidth;
// align floater panel position with target button
if (!isOpen && window.adjustSliderPos) window.adjustSliderPos(theSlider.parentNode,theTarget,theSlider);
// if showing panel, set focus to first 'focus-able' element in panel
if (theSlider.style.display!="none") {
var ctrls=theSlider.getElementsByTagName("*");
for (var c=0; c<ctrls.length; c++) {
var t=ctrls[c].tagName.toLowerCase();
if ((t=="input" && ctrls[c].type!="hidden") || t=="textarea" || t=="select")
{ try{ ctrls[c].focus(); } catch(err){;} break; }
}
}
var cookie=theTarget.sliderCookie;
if (cookie && cookie.length) {
config.options[cookie]=!isOpen;
if (config.options[cookie]!=theTarget.defOpen) window.saveOptionCookie(cookie);
else window.removeCookie(cookie); // remove cookie if slider is in default display state
}
// prevent SHIFT-CLICK from being processed by browser (opens blank window... yuck!)
// prevent clicks *within* a slider button from being processed by browser
// but allow plain click to bubble up to page background (to close transients, if any)
if (e.shiftKey || theTarget!=resolveTarget(e))
{ e.cancelBubble=true; if (e.stopPropagation) e.stopPropagation(); }
Popup.remove(); // close open popup (if any)
return false;
}
//}}}
//{{{
// click in document background closes transient panels
document.nestedSliders_savedOnClick=document.onclick;
document.onclick=function(ev) { if (!ev) var ev=window.event; var target=resolveTarget(ev);
if (document.nestedSliders_savedOnClick)
var retval=document.nestedSliders_savedOnClick.apply(this,arguments);
// if click was inside a popup... leave transient panels alone
var p=target; while (p) if (hasClass(p,"popup")) break; else p=p.parentNode;
if (p) return retval;
// if click was inside transient panel (or something contained by a transient panel), leave it alone
var p=target; while (p) {
if ((hasClass(p,"floatingPanel")||hasClass(p,"sliderPanel"))&&p.getAttribute("transient")=="true") break;
p=p.parentNode;
}
if (p) return retval;
// otherwise, find and close all transient panels...
var all=document.all?document.all:document.getElementsByTagName("DIV");
for (var i=0; i<all.length; i++) {
// if it is not a transient panel, or the click was on the button that opened this panel, don't close it.
if (all[i].getAttribute("transient")!="true" || all[i].button==target) continue;
// otherwise, if the panel is currently visible, close it by clicking it's button
if (all[i].style.display!="none") window.onClickNestedSlider({target:all[i].button})
if (!hasClass(all[i],"floatingPanel")&&!hasClass(all[i],"sliderPanel")) all[i].style.display="none";
}
return retval;
};
//}}}
//{{{
// adjust floating panel position based on button position
if (window.adjustSliderPos==undefined) window.adjustSliderPos=function(place,btn,panel) {
if (hasClass(panel,"floatingPanel") && !hasClass(panel,"undocked")) {
// see [[MoveablePanelPlugin]] for use of 'undocked'
var rightEdge=document.body.offsetWidth-1;
var panelWidth=panel.offsetWidth;
var left=0;
var top=btn.offsetHeight;
if (place.style.position=="relative" && findPosX(btn)+panelWidth>rightEdge) {
left-=findPosX(btn)+panelWidth-rightEdge; // shift panel relative to button
if (findPosX(btn)+left<0) left=-findPosX(btn); // stay within left edge
}
if (place.style.position!="relative") {
var left=findPosX(btn);
var top=findPosY(btn)+btn.offsetHeight;
var p=place; while (p && !hasClass(p,'floatingPanel')) p=p.parentNode;
if (p) { left-=findPosX(p); top-=findPosY(p); }
if (left+panelWidth>rightEdge) left=rightEdge-panelWidth;
if (left<0) left=0;
}
panel.style.left=left+"px"; panel.style.top=top+"px";
}
}
//}}}
//{{{
// TW2.1 and earlier:
// hijack Slider stop handler so overflow is visible after animation has completed
Slider.prototype.coreStop = Slider.prototype.stop;
Slider.prototype.stop = function()
{ this.coreStop.apply(this,arguments); this.element.style.overflow = "visible"; }
// TW2.2+
// hijack Morpher stop handler so sliderPanel/floatingPanel overflow is visible after animation has completed
if (version.major+.1*version.minor+.01*version.revision>=2.2) {
Morpher.prototype.coreStop = Morpher.prototype.stop;
Morpher.prototype.stop = function() {
this.coreStop.apply(this,arguments);
var e=this.element;
if (hasClass(e,"sliderPanel")||hasClass(e,"floatingPanel")) {
// adjust panel overflow and position after animation
e.style.overflow = "visible";
if (window.adjustSliderPos) window.adjustSliderPos(e.parentNode,e.button,e);
}
};
}
//}}}
http://deployingradius.com/documents/protocols/compatibility.html
https://www.arubanetworks.com/techdocs/ArubaOS_61/ArubaOS_61_UG/802.1x.php
http://web.archive.org/web/20190823101106/https://fachschaft-informatik.de/_media/fachschaft:802.1x-security-analysis.pdf
https://administrator.de/wissen/sichere-802-1x-wlan-benutzer-authentisierung-radius-142241.html
https://wiki.linuxmuster.net/community/anwenderwiki:benutzerrechner:wlan:radius-accesspoint
http://freeradius.1045715.n5.nabble.com/Freeradius-Solution-CHAP-with-LDAP-encrypted-password-td5749159.html
!!!kubernetes-capable docker
[[ GitHub - osixia/docker-openldap: A docker image to run OpenLDAP ������ | https://github.com/osixia/docker-openldap#kubernetes ]]
[[ GitHub - osixia/docker-openldap-backup: A docker image to run OpenLDAP, and make periodic backups ������ | https://github.com/osixia/docker-openldap-backup ]]
---
!!! redundant LDAP with apache:
(sssd approach): https://docs.okd.io/3.9/install_config/sssd_for_ldap_failover.html
https://serverfault.com/questions/360972/apache2-and-redundant-ldap-configuration-problems
---
https://www.tldp.org/HOWTO/archived/LDAP-Implementation-HOWTO/pamnss.html
https://serverfault.com/questions/828490/setting-up-multiple-domain-in-ldap-server
https://wiki.archlinux.org/index.php/LDAP_authentication
---
!!! LDAPadmin
http://ivb.sweb.cz/en/ldap.html
---
!!!LDAPadmin( Windows)
http://www.ldapadmin.org/download/index.htm
---
phpLDAPlogin
http://web.archive.org/web/20190404124617/https://samjlevy.com/php-ldap-login/
---
!!migration tools
The MigrationTools are a set of Perl scripts for migrating users, groups, aliases, hosts, netgroups, networks, protocols, RPCs, and services from existing nameservices (flat files, NIS, and NetInfo) to LDAP.
https://www.padl.com/OSS/MigrationTools.html
---
!!phpldapadmin
http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page
---
!!ldaptools
LdapTools is designed to be customizable for use with pretty much any directory service, but contains default attribute converters and schemas for Active Directory and OpenLDAP.
A fluent and easy to understand syntax for generating LDAP queries.
Easily create/modify/delete/restore common LDAP objects (Users, Groups, Contacts, Computers, OUs).
Retrieve LDAP objects as either a simple array or an object with automagic setters/getters.
A logging mechanism for all LDAP operations
An event system for further customization, extensibility, and integration.
Parse and create LDIF files.
View and modify Active Directory permissions.
http://www.phpldaptools.com/
---
https://medium.com/@tzhenghao/how-to-ssh-over-tor-onion-service-c6d06194147
https://bbs.archlinux.org/viewtopic.php?id=168577
https://tor.stackexchange.com/questions/14752/cant-start-tor-on-freshly-upgraded-ubuntu-16-04-from-14-04
https://github.com/systemd/systemd/issues/567
https://askubuntu.com/questions/882527/tor-process-will-not-start-automatically-on-ubuntu-16-04/903341
https://www.maths.tcd.ie/~fionn/misc/ssh_hidden_service.php
https://github.com/juhanurmi/stealth-ssh
---
!!!PHP LDAP server
https://code.google.com/archive/p/ldap-php/
https://stackoverflow.com/questions/6039602/creating-an-ldap-server-with-php
https://wiki.samba.org/index.php/Samba_%26_LDAP
!!!! #old https://wiki.ubuntuusers.de/Archiv/Samba_Server_PDC/
https://www.informatik-aktuell.de/betrieb/server/samba-4-als-domaincontroller-einrichten-und-verwalten.html
https://wiki.samba.org/index.php/Setting_up_Samba_as_an_NT4_PDC_(Quick_Start)
!!!! #WIP https://wiki.samba.org/index.php/Samba4/LDAP_Backend
https://jimshaver.net/2016/05/30/setting-up-an-active-directory-domain-controller-using-samba-4-on-ubuntu-16-04/
https://www.youtube.com/watch?v=ZVdK3jQ8T38
http://deployingradius.com/documents/protocols/compatibility.html
https://lintut.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel/
http://mirror2.polsri.ac.id/Daloradius/Virtual%20Machine%20-%20daloRADIUS%20Administrator%20Guide.pdf
https://blog.ui.com/2016/11/04/managing-radius-authentication-unifi/
https://www.wogri.com/networking/freeradius-chap/
https://de.slideshare.net/NetgateUSA/radius-and-ldap-on-pfsense-24-pfsense-hangout-february-2018
https://wiki.ubuntuusers.de/FreeRADIUS/
https://wiki.ubuntu.org.cn/Quick_HOWTO_:_Ch31_:_Centralized_Logins_Using_LDAP_and_RADIUS
https://infohub.sifulan.my/display/EM/Upgrade+to+Freeradius+3
https://www.turnkeylinux.org/openldap
https://deepdoc.at/dokuwiki/doku.php?id=server_und_serverdienste:openldap_mit_samba_als_pdc_neues_backend
https://www.dangtrinh.com/2017/03/wpa2-enterprise-with-freeradius-and-ad.html
https://wiki.samba.org/index.php/VPN_Single_SignOn_with_Samba_AD
http://ilcofon.net/index.php/2018/01/05/wifi-authenticate-with-radius-and-freeipa/
https://www.unixmen.com/freeradius-active-directory-integration-with-ntlm-mschap/
https://opensourceeducation.net/samba-primary-domain-controller-ldap-replacement-windows2003-2008-active-directory-services
http://freeradius.1045715.n5.nabble.com/EAP-TTLS-MD5-hashed-Passwords-in-MySQL-Database-for-WPA-802-1x-auth-td2752669.html
https://www.sown.org.uk/wiki/FreeRADIUS
https://sourceforge.net/projects/packetfence/
https://www.linux-magazin.de/ausgaben/2008/12/schutzwall/
https://wiki.freeradius.org/guide/Active-Directory-direct-via-winbind
https://wiki.freeradius.org/guide/FreeRADIUS-Active-Directory-Integration-HOWTO
https://wiki.pratznschutz.com/index.php/RADIUS_mit_Samba4_AD_und_MSCHAPv2
https://www.wogri.com/networking/freeradius-chap/
https://www.unixmen.com/freeradius-active-directory-integration-with-ntlm-mschap/
https://stackoverflow.com/questions/32054374/configure-freeradius-to-only-support-eap-ttls-pap?rq=1
https://qexe.de/question/sichere-wlan-verbindung-mit-freeradius-mysql-eap-peap-tls
http://deployingradius.com/documents/configuration/pap.html
https://docs.foxpass.com/docs/is-radius-secure
http://freeradius.1045715.n5.nabble.com/NTLMv2-with-FreeRADIUS-td5726394.html
https://wiki.ubuntuusers.de/FreeRADIUS/
https://administrator.de/wissen/sichere-802-1x-wlan-benutzer-authentisierung-radius-142241.html
[radius gui]
https://github.com/Compizfox/RadiusAdmin
https://github.com/AccessManager/access-manager
https://github.com/netcore-jsa/radman
https://github.com/radiushub/FreeRADIUS-Server-Configuration-Tool
https://github.com/Karlheinzniebuhr/Simple-Freeradius-Admin
https://github.com/fakuivan/docker-daloradius
https://github.com/openwisp/django-freeradius
https://django-freeradius.readthedocs.io/en/latest/
---
!!!kubernetes-capable docker:
[[ GitHub - osixia/docker-openldap: A docker image to run OpenLDAP ������ | https://github.com/osixia/docker-openldap#kubernetes ]]
[[ GitHub - osixia/docker-openldap-backup: A docker image to run OpenLDAP, and make periodic backups ������ | https://github.com/osixia/docker-openldap-backup ]]
---
https://wiki.archlinux.org/index.php/Bluetooth
https://www.cnet.com/how-to/how-to-setup-bluetooth-on-a-raspberry-pi-3/
https://www.raspberrypi.org/forums/viewtopic.php?t=138145&start=25
https://raspberrypi.stackexchange.com/questions/72419/raspberry-pi-3-bluetooth-no-controller
https://github.com/raspberrypi/linux/issues/1325
https://raspberrypi.stackexchange.com/questions/47045/hcitool-scan-says-no-such-device
https://superuser.com/questions/778660/changing-bluetooth-device-name
https://linuxcommando.blogspot.com/2013/11/how-to-modify-user-friendly-bluetooth.html
https://www.cnet.com/forums/discussions/how-to-change-bluetooth-device-name-559254/
https://unix.stackexchange.com/questions/319759/bluetooth-controller-profiles
https://www.raspberrypi.org/forums/viewtopic.php?t=86963 (main.conf ignotrf in bluez)
https://stackoverflow.com/questions/26299053/changing-raspberry-pi-bluetooth-device-name
!!!a2dp
<<<
[[ A2DP Sink on Ubuntu Linux with bluez (streaming bluetooth stereo audio from smartphone to pc) · GitHub | https://gist.github.com/joergschiller/1673341 ]]
[[ Auto switch to A2DP bluetooth device when connected in Ubuntu – sandalov.org | http://web.archive.org/web/20170312114335/https://sandalov.org/blog/2146/ ]]
---
!!!gists
[[ Headless A2DP Audio Streaming on Raspbian Stretch · GitHub | https://gist.github.com/mill1000/74c7473ee3b4a5b13f6325e9994ff84c ]]
bluetooth a2dp pulseaudio:
[[ Bluetooth devices must be linked first. · GitHub | https://gist.github.com/ragusa87/6687903 ]]
[[ A2DP audio streaming using Raspberry PI (Raspbian Jessie) · GitHub | https://gist.github.com/oleq/24e09112b07464acbda1 ]]
---
https://askubuntu.com/questions/765233/pulseaudio-fails-to-set-card-profile-to-a2dp-sink-how-can-i-see-the-logs-and
https://unix.stackexchange.com/questions/96693/connect-to-a-bluetooth-device-via-terminal
https://wiki.debian.org/BluetoothUser/a2dp
https://askubuntu.com/questions/145733/a2dp-connection-not-shown-in-pulseaudio
https://unix.stackexchange.com/questions/381342/bluetooth-a2dp-pulseaudio-source-to-play-sound-from-phone-to-linux-with-bluez-5
https://askubuntu.com/questions/2573/can-i-use-my-computer-as-an-a2dp-receiver-bluetooth-speaker
https://askubuntu.com/questions/1146644/can-you-control-phone-media-playback-via-bluetooth
---
```
#first f-d argument for specific mail/whatever domain (which is not sni)
certbot --apache --dry-run certonly -d domain.com
#then extend for sni ( assuming apache already configured)
#e.g. : certbot blablabla certonly -d mail.my.domain -d webmail.my.domain
# then load mail.mydomain into [[Mail Transfer agent| asdasd ]] ( e.g. postfix , courier) and IMAP/POP server (e.g. dovecot)
certbot --apache --agree-tos --email tech@domain.com
##CRON ## 52 0,12 * * * /home/git/certbot-auto renew --quiet (only apache/httpd , nginx etc with --deploy-hook or --renew-hook)
```
https://serverfault.com/questions/790772/cron-job-for-lets-encrypt-renewal
https://github.com/lukas2511/dehydrated
https://github.com/mscalora/hover-cli
https://loune.net/2016/01/https-with-lets-encrypt-ssl-and-nginx/
https://letsencrypt.org/docs/expiration-emails/
https://certbot.eff.org/docs/using.html
https://serverfault.com/questions/768509/lets-encrypt-with-an-nginx-reverse-proxy
https://support.dnsimple.com/articles/caa-record/
https://community.letsencrypt.org/t/howto-ocsp-stapling-for-nginx/13611/2
https://community.letsencrypt.org/t/is-there-a-way-to-use-curl-to-generate-certificate/23153
https://community.letsencrypt.org/t/curl-refuses-to-accept-my-cert-saying-the-certificate-issuer-is-not-recognized/40917 ( fullchain.pem as cert !!)
!!transparently replacing hosts, enabling new ones to generate certs in advance:
```
<VirtualHost *:80>
ServerName live-server.com
ErrorLog /www/logs/errors/live-server.com.error.log
ProxyPreserveHost On
ProxyPass /.well-known/ http://replacement-server.com/.well-known/
ProxyPassReverse /.well-known/ http://replacement-server.com/.well-known/
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/
RewriteRule ^(.*)$ https://live-server.com$1 [L,R=301]
</VirtualHost>
```
---
!!!nginx example for redirecting acme challenge in proxy situations
```
server {
server_name _;
# or comment out
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /var/www/letsencrypt;
}
### Hide /acme-challenge subdirectory and return 404 on all requests.
location = /.well-known/acme-challenge/ {
return 404;
}
if ($host = newserver.com) {
return 301 https://$host$request_uri;
}
listen 80 ;
listen [::]:80 ;
return 404; # managed by Certbot
}
```
chain problems with nginx ?
generate full chain in order (the right one !! )
```
cd /etc/ssl/private/;
cat /etc/letsencrypt/live/targetdomain.website/privkey.pem > nginx.key ;
cat /etc/letsencrypt/live/targetdomain.website/{cert,chain,fullchain.pem} > crt.pem ;
ln -s crt.pem ca.pem;/etc/init.d/nginx restart
```
!! tls1.3
* since nginx v1.13
!!! tls1.3 ciphers:
at the top of `/etc/ssl/openssl.cnf`
```
openssl_conf = default_conf
[default_conf]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
CipherString = DEFAULT@SECLEVEL=2
##100% SSLLABS
#Ciphersuites = TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384
##90% SSLLABS, RFC 8446
Ciphersuites = TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256
##only 256++
#Ciphersuites = TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384:ECDHE_ECDSA_CHACHA20_POLY1305:ECDHE_ECDSA_AES256_GCM_SHA384:ECDHE_ECDSA_AES256_GCM_SHA512:ECDHE_RSA_AES256_GCM_SHA384:DHE_RSA_AES256_GCM_SHA512:DHE_RSA_AES256_GCM_SHA384
```
!!ssllabs (A+ rating)
2020:
nginx: use the tricks in /etc/ssl/openssl.cnf from above to control tls1.3 ciphers there and tls1.2 ciphers in /etc/nginx.conf or per server
recommended snip ( enables android 7 and has A+ rating with 10% cipher penalty due to TLS_AES_128_GCM_SHA256 )
```
ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
# ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8;
ssl_dhparam ssl/dhparam.pem;
ssl_ecdh_curve secp384r1:secp521r1:sect571r1:sect571k1:brainpoolP512r1;
#set TLSv1.3 in /etc/ssl/openssl.cnf , keep TLS_AES_128_GCM_SHA256 for compat ( 10% sslabs penalty)
ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256;
```
!! 100% rating on sslabs
disable TLS_AES_128_GCM_SHA256 in /etc/ssl/openssl.cnf and nginx/apache
''DANGER'': will disable many clients still in use (like android 7 , win8 ), otherwise ( also for legacy clients) enable TLS_AES_128_GCM_SHA256 for TLS1.2 at least
This server does not support the mandatory cipher suite TLS_AES_128_GCM_SHA256 for TLS 1.3. See RFC 8446 for details.
---
!!Resources:
| [[ SSL Server Rating Guide · ssllabs/research Wiki · GitHub | https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide#cipher-strength ]] |
| [[ SSL and TLS Deployment Best Practices · ssllabs/research Wiki · GitHub | https://github.com/ssllabs/research/wiki/SSL-and-TLS-Deployment-Best-Practices ]] |
| [[ How to get ssllabs.com/ssltest "Cipher Strength... | Qualys Community | https://discussions.qualys.com/thread/12799 ]] |
| [[ How do you score A+ with 100 on all categories on SSL Labs test with Let's Encrypt and Nginx? - Stack Overflow | https://stackoverflow.com/questions/41930060/how-do-you-score-a-with-100-on-all-categories-on-ssl-labs-test-with-lets-encry ]] |
| [[ TLS 1.3 Cipher Strength 90%? · Issue #636 · ssllabs/ssllabs-scan · GitHub | https://github.com/ssllabs/ssllabs-scan/issues/636 ]] |
| [[ SSL Labs: How to improve Cipher Strength in TLS 1.3? · Issue #602 · ssllabs/ssllabs-scan · GitHub | https://github.com/ssllabs/ssllabs-scan/issues/602 ]] |
| [[ How to increase the priority of some cipher for TLSv1.3? · Issue #7562 · openssl/openssl · GitHub | https://github.com/openssl/openssl/issues/7562 ]] |
| [[ Servers out of compliance with RFC 8446 reported as in compliance. · Issue #668 · ssllabs/ssllabs-scan · GitHub | https://github.com/ssllabs/ssllabs-scan/issues/668 ]] |
| [[ Perfect scan impossible with TLSv1.3 · Issue #684 · ssllabs/ssllabs-scan · GitHub | https://github.com/ssllabs/ssllabs-scan/issues/684 ]] |
| [[ Score penalty of 10% when using the mandatory TLS_AES_256_GCM_SHA384 cipher · Issue #777 · ssllabs/ssllabs-scan · GitHub | https://github.com/ssllabs/ssllabs-scan/issues/777 ]] |
##APACHE
!!! ensure that mod_headers.so and mod_reqtimeout.so are loaded
```
##httpd.conf##
Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure
TraceEnable off
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
Header always append X-Frame-Options SAMEORIGIN
Header always set Strict-Transport-Security "max-age=155523542; includeSubdomains; preload"
Header always set X-Content-Type-Options nosniff
##end##
```
```
####ssl.conf####
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLCipherSuite "HIGH;!aNULL;!MD5;!3DES;!CAMELLIA;!AES128;!RSA;!RC4"
SSLCompression Off
SSLSessionTickets Off
SSLOpenSSLConfCmd Curves secp521r1:secp384r1:prime256v1
SSLOpenSSLConfCmd ECDHParameters Automatic
##end##
```
[1] https://community.qualys.com/thread/11386
[2] https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide#cipher-strength
[3] https://github.com/ssllabs/ssllabs-scan/issues/600
[4] https://community.letsencrypt.org/t/howto-a-with-all-100-s-on-ssl-labs-test-using-apache2-4-read-warnings/2436
```
#1 get autodns cli with: git clone https://github.com/osiegmar/autodns-cli.git ; cd autodns-cli;sudo python setup.py install
#2 export all zones ( listing seems not to work 100% with the cli ATM) , save it as csv, then modify following command:
tail -n+2 zone_inventory_2019-02-01.csv|sort |cut -d";" -f1|while read a;do autodns zone-info --zone $a 2>&1 |grep -v "<change"|sed 's/^/'$a':\t/g' ;done|grep -e 1.2.3.4 -e domain.name.com
```
```
avahi-browse -art|grep -e local -e hostname -e adress 2>&1 |awk '!seen[$0]++'
avahi-discover
```
https://github.com/troglobit/mdnsd
openwrt:
https://openwrt.org/docs/guide-developer/mdns
https://openwrt.org/docs/guide-user/network/zeroconfig/zeroconf
https://forum.openwrt.org/t/mdns-avahi-zeroconf-bonjour-chromecast-to-wan-port/15380
http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
http://transproxy.sourceforge.net/
```
http://xip.io/
10.0.0.1.xip.io resolves to 10.0.0.1
www.10.0.0.1.xip.io resolves to 10.0.0.1
mysite.10.0.0.1.xip.io resolves to 10.0.0.1
```
https://blog.rotzoll.net/2010/07/linux-als-apple-afp-share-mit-timemachine-support-backups-uber-das-netzwerk/
https://superuser.com/questions/1089723/cannot-install-afpfs-ng
old version on macosx: https://github.com/mabam/afpfs-ng-OSX
```
curlftpfs -o ssl,utf8 ftp://my-server.tld/ ~/my-server -o connect_timeout=30,allow_other,disable_eprt,_netdev
[-o codepage="iso8859-1"]
## blabla
fusermount -uz ~/my-server
$host=ftp.change.me
echo | openssl s_client -connect $host:443 | openssl x509 -out ~/serverzertifikat.pem
curlftpfs -o ssl,cacert=~/.$host.pem,no_verify_peer,big_writes $FTPUSR:"$FTPPWD"@$FTPHST
#>not working anymore, supply PEM (↑↑) # curlftpfs ftp.yourserver.com /mnt/ftp/ -o ssl,no_verify_peer,no_verify_hostname,user=username:password
```
https://sourceforge.net/p/curlftpfs/bugs/67/
SLOW ? libcurl3-gnutls to blame https://bugs.launchpad.net/ubuntu/+source/curlftpfs/+bug/1267749
https://wiki.ubuntuusers.de/curlftpfs/
https://wiki.archlinux.org/index.php/CurlFtpFS
https://superuser.com/questions/483576/how-to-mount-curlftpfs-in-fstab/483584
https://askubuntu.com/questions/320746/how-to-mount-ftp-resources-with-fstab-when-connectiona-is-available
!! no_verify_peer and no_verify_hostname do not work as expected
https://sourceforge.net/p/curlftpfs/bugs/67/
https://www.php.net/manual/de/session.configuration.php#ini.session.save-handler
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/s1-nfssharesetup-haaa
https://unix.stackexchange.com/questions/114699/nfs-automatic-fail-over-or-load-balanced-or-clustering
https://documentation.suse.com/sle-ha/12-SP4/#redirectmsg (nfs/pacemaker)
```
#######################################
### when gvfsd fails to automount put in user .profile (adjust uid,here 1000)
### when gvfsd fails to automount put in user .profile (adjust uid,here 1000)
pkill gvfsd-fuse;
/usr/lib/gvfs/gvfsd /run/user/1000/gvfs &
/usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -o big_writes &
##########################
```
```
### FSTAB:
//192.168.256.123/ssdshare /home/user/Dokumente/Netzwerk/ssdshare cifs username=USER,password=PASSWORD,iocharset=utf8,sec=ntlmv2,user 0 0
//192.168.256.123/shared /home/user/Dokumente/Netzwerk/shared cifs username=USER,password=PASSWORD,iocharset=utf8,sec=ntlmv2,user 0 0
https://wiki.ubuntu.com/MountWindowsSharesPermanently#Mount_during_login_instead_of_boot
```
https://askubuntu.com/questions/268121/how-to-mount-a-cifs-share-so-it-doesnt-warn-about-external-file-modifications
https://wiki.ubuntu.com/MountWindowsSharesPermanently#Mount_during_login_instead_of_boot
https://askubuntu.com/questions/268121/how-to-mount-a-cifs-share-so-it-doesnt-warn-about-external-file-modifications
https://askubuntu.com/questions/405493/problem-with-mount-using-option-sec-ntlmv2
https://forum.openmediavault.org/index.php/Thread/4206-Unable-to-find-the-Domain-Master-Browser/
http://charlieharvey.org.uk/page/slow_nautilus_browse_with_netbios
http://askubuntu.com/questions/61196/why-do-my-gvfs-mounts-not-show-up-under-gvfs-or-run-user-login-gvfs
http://askubuntu.com/questions/513319/gvfs-samba-lookup-slow-since-update-to-14-04
https://ubuntuforums.org/showthread.php?t=2227257
https://unix.stackexchange.com/questions/276693/how-do-i-force-gvfs-unmount-a-dead-ssh-mount-on-linux-mint-16-petra
https://forum.ubuntuusers.de/topic/webdav-und-rsync/
https://seeseekey.net/archive/1197
https://kinasevych.ca/2016/11/18/backing-up-shotwell-photos-to-box-com-with-webdav-and-rsync/
https://askubuntu.com/questions/892118/rsync-from-unmounted-webdav-source
external ip:
```
oDNS1:
dig @resolver1.opendns.com +short myip.opendns.com
```
```
oDNS2:
dig @resolver2.opendns.com +short myip.opendns.com
```
```
oDNS3:
dig @resolver3.opendns.com +short myip.opendns.com
```
monip:
```
wget -q -O- http://monip.org|grep "IP :"|cut -d: -f2|cut -d"<" -f1|sed 's/^ \+//g'
```
```
curl ipinfo.io/ip
wget -qO- http://ipecho.net/plain
curl icanhazip.com
curl ipecho.net
curl http://smart-ip.net/myip
curl ident.me
curl v4.ident.me
curl v6.ident.me
curl ipv4.ipogre.com
curl ipv6.ipogre.com
curl http://checkip.amazonaws.com
```
```
printf "GET /plain HTTP/1.1\nHOST: ipecho.net\nBROWSER: web-kit\n\n" | nc ipecho.net 80
```
```
telnet myip.gelma.net
```
https://askubuntu.com/questions/95910/command-for-determining-my-public-ip
https://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-a-shell-script
set per interface , do NOT use /proc/sys/net/ipv4/conf/all/rp_filter
https://twitter.com/nblr/status/1218542199551483906
https://www.slashroot.in/linux-kernel-rpfilter-settings-reverse-path-filtering
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.kernel.rpf.html
https://digg.com/2016/ip-address-map
https://imgur.com/gallery/p43QH6v
https://blogs.loc.gov/maps/files/2016/02/hilbeert-1.png
https://news.ycombinator.com/item?id=5185160
!!! see [[sys:vm:docker:ipv6]]
---
https://www.dionach.com/blog/scanning-ipv6-networks
https://tools.ietf.org/id/draft-petrescu-6man-ll-prefix-len-18.html ( The length of the prefix of an IPv6 link-local address ranges from 10 to 127 )
https://superuser.com/questions/99746/why-is-there-a-percent-sign-in-the-ipv6-address
https://subnettingpractice.com/ipv6_subnetting.html
https://www.reddit.com/r/PFSENSE/comments/5yfejl/splitting_ipv6_64_prefix_delegation_across_3/
https://serverfault.com/questions/840643/accept-and-forward-incoming-ipv6-range-to-another-interface
https://serverfault.com/questions/684455/ipv6-differences-between-routed-prefix-and-link-prefix
---
dhcpv6
https://kazoo.ga/dhcpv6-pd-for-native-ipv6/
https://unix.stackexchange.com/questions/28106/dhcpv6-prefix-delegation-server-for-linux
https://www.bidon.ca/en/node/634
https://serverfault.com/questions/898546/linux-dhcpv6-server-for-pd-on-ppp-interfaces
https://taczanowski.net/linux-box-as-an-ipv6-router-with-slaac-and-dhcpv6-pd/
!!!swissknifes
http://ipv6eyechart.ripe.net/
https://www.ultratools.com/tools/ipv6InfoResult?ipAddress=
https://enc.com.au/itools/inet6num?address=
https://whois.check-domain.net/ipwhois/ipabfrage.php
https://www.sprint.net/lg/lg_start.php
https://www.site24x7.com/tools/ipv6-subnetcalculator.html
swissknifes(webrtc leaks)
https://browserleaks.com/webrtc
https://diafygi.github.io/webrtc-ips/
https://zenguard.zendesk.com/hc/de/articles/201259661-Wie-kann-ich-mich-vor-IP-Leaks-durch-Flash-oder-WebRTC-sch%C3%BCtzen-
---
http://serverfault.com/questions/475375/set-up-a-6in4-tunnel-server
https://www.sixxs.net/wiki/IPv6_Firewalling
http://mirrors.deepspace6.net/Linux+IPv6-HOWTO/conf-ipv6-in-ipv4-point-to-point-tunnels.html
http://www.wensley.org.uk/ipv6
http://backreference.org/2010/06/27/quick-and-dirty-ipv6-with-6to4/
http://www.tomicki.net/ipv6.router.php
http://wazem.blogspot.com/2013/01/how-to-ssh-home-without-access-to-router.html
http://www.tomicki.net/naptd.docs.php
https://wiki.openwrt.org/doc/techref/odhcpd
ftp://ds.internic.net/internet-drafts/1id-index.txt
https://www.arin.net/knowledge/ipv6_info_center.html
http://www.ipv6-portal.de/informationen/technik/interface-identifier.html
http://www.ipv6-portal.de/informationen/technik/6to4-tunnel.html
!!! wireguard
https://angristan.xyz/how-to-setup-vpn-server-wireguard-nat-ipv6/
!!! teredo
https://yorickdowne.wordpress.com/2008/01/26/ipv6-at-home-part-1-overview-teredo/
https://en.wikipedia.org/wiki/Teredo_tunneling
https://labs.ripe.net/Members/gih/testing-teredo
----
!!! ipv6:roaming v4-v6
https://lists.zx2c4.com/pipermail/wireguard/2018-September/003377.html
---
!!synologgy
https://www.synology-forum.de/archive/index.html/t-79148.html ( enable PD )
https://conversejs.org/docs/html/index.html
!! [XMPP/Video]
https://be-jo.net/2011/07/audio-und-videochats-ohne-skype/
https://xmpp.org/uses/webrtc.html
https://github.com/igniterealtime/community-plugins/tree/master/ofmeet
https://talky.io/
https://stackoverflow.com/questions/27438540/is-there-any-open-source-alternative-to-talky-io
https://github.com/subrosa-io
https://github.com/subrosa-io/subrosa-client
https://github.com/subrosa-io/subrosa-server
https://github.com/jitsi/jitsi-meet
https://medium.com/@tzhenghao/how-to-ssh-over-tor-onion-service-c6d06194147
https://bbs.archlinux.org/viewtopic.php?id=168577
https://tor.stackexchange.com/questions/14752/cant-start-tor-on-freshly-upgraded-ubuntu-16-04-from-14-04
https://github.com/systemd/systemd/issues/567
https://askubuntu.com/questions/882527/tor-process-will-not-start-automatically-on-ubuntu-16-04/903341
https://www.maths.tcd.ie/~fionn/misc/ssh_hidden_service.php
https://github.com/juhanurmi/stealth-ssh
!!id per host ( for git )
In ~/.ssh/config, add:
```
host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa_github
User git
```
If the config file is new, don't forget to do `chmod 600 ~/.ssh/config`
Now you can do `git clone git@github.com:{ORG_NAME}/{REPO_NAME}.git`
Where `{ORG_NAME}` is your GitHub user account (or organization account)'s GitHub URI name.
Note that there is a colon : after github.com instead of the slash / - as this is not a URI.
And `{REPO_NAME}` is your GitHub repo's URI name
For example, for the Linux kernel this would be git clone git@github.com:torvalds/linux.git).
NOTE: On Linux and macOS, verify that the permissions on your IdentityFile are 400. SSH will reject, in a not clearly explicit manner, SSH keys that are too readable. It will just look like a credential rejection. The solution, in this case, is:
`chmod 400 ~/.ssh/id_rsa_github`
https://superuser.com/questions/232373/how-to-tell-git-which-private-key-to-use
---
```
#/etc/ssh/sshd_config:
Ciphers aes256-ctr,aes192-ctr
MACs hmac-sha2-512,hrmac-sha2-256,hmac-ripemd160
KexAlgorithms diffie-hellman-group-exchange-sha256
```
```
cd /etc/ssh/;
echo ssh_host_dsa_key ssh_host_ecdsa_key ssh_host_key;
ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519
sed 's/Hostkey/HostKey
\/etc\/ssh\/ssh_host_ed25519_key\/' sshd_config
ln -s ssh_host_dsa_key ssh_host_dsa_key;
ln -s ssh_host_ecdsa_key ssh_host_ecdsa_key;
awk '{ if ($5 > 2048){ print } }' moduli > moduli.new;mv moduli moduli.broken;mv moduli.new moduli
```
http://kacper.blog.redpill-linpro.com/archives/702
https://linux-audit.com/using-ed25519-openssh-keys-instead-of-dsa-rsa-ecdsa/
https://www.ssh.com/ssh/keygen/
https://ef.gy/hardening-ssh
https://blog.tinned-software.net/harden-ssh-server-settings/
https://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
https://www.linux.com/LEARN/5-SSH-HARDENING-TIPS
https://debian-administration.org/article/590/OpenSSH_SFTP_chroot_with_ChrootDirectory
http://unixwiz.net/techtips/ssh-agent-forwarding.html
!! see [[linux:init:initramfs:dropbear]] for initramfs specific stuff
2019:ubuntu 18.04 lacking "DISABLE WEAK_CIPHERS"
https://github.com/mkj/dropbear
https://www.vdoo.com/blog/installing-dropbear-with-enhanced-security-options/
In `localoptions.h` :
```
#define DROPBEAR_X11FWD 0
#define DROPBEAR_SHA1_96_HMAC 0
#define DROPBEAR_DH_GROUP1 0
#define DROPBEAR_ENABLE_CBC_MODE 0
```
https://www.howtoforge.com/chrooted-drop-bear-howto
https://medium.com/bob-kfir-tech/how-to-simply-install-dropbear-e32fb715a0a9
`modprobe nbd max_part=16`
!!only backends listed here , seed [[net:sync:pim:calendar:task:client:soft:kalendar:evolution:lightning:taskman:kontacts:korganizer]]
https://github.com/echo-devim/kalendar
caldav rfc: https://tools.ietf.org/html/rfc6638
caldavzap ( cors trouble):
https://www.inf-it.com/open-source/clients/caldavzap/
davical :
!! Fix external sync ( read only thouh)
-> http://sabre.io/baikal/install/
https://klomp.de/index.php/84-kontakte-kalender-per-baikal-caldav-carddav-auf-synology-synchronisieren
https://www.davical.org/installation.php
https://wiki.davical.org/w/Configuration_settings
https://wiki.davical.org/index.php/Configuration/Authentication_Settings
https://www.davical.org/clients.php
https://wiki.davical.org/index.php/Nginx_Config
https://wiki.davical.org/index.php/How_can_I_migrate_to_DAViCal_using_already_generated_.ics_files?#Import_the_calendars
https://wiki.davical.org/w/Features
https://wiki.davical.org/index.php/External_Bind
----
baikal:
http://sabre.io/baikal/install/
http://sabre.io/baikal/docker-ready/
https://www.codeflow.site/de/article/how-to-sync-calendars-and-contacts-using-carddav-and-caldav-standards-with-baikal-on-ubuntu-14-04
https://cstan.io/?p=5609
---
https://www.inf-it.com/open-source/clients/caldavzap/
|!Name / Link |Size|Tasks|!Caldav <br> via https|caldav<br>writeable|||
||||
|[[Minetime|https://minetime.ai/]]| 100M+ | <<no>> | <<yes>> | <<yes>> |||
|[[Evolution]] | 50M+ | <<yes>> | <<yes>> | !<<yes>> | <<yes>> | |
|[[Thunderbird LIghtning]] | | <<yes>> | !<<yes>> | <<yes>> | ||
|[[Kalendar|https://github.com/echo-devim/kalendar]] | ||||||
|Korganizer|||||||
|CalDavZap|||||||
!!socat
https://ef.gy/forwarding-ipv4-to-ipv6
https://www.cyberciti.biz/faq/linux-unix-tcp-port-forwarding/
http://web.archive.org/web/20180213040102/https://jdimpson.livejournal.com/6534.html
https://www.heise.de/select/ix/2017/11/1509815804306324
https://www.cyberciti.biz/faq/linux-unix-tcp-port-forwarding/
https://www.gonicus.de/aktuelles/20181219-netcat/
!! netcat portscan:
https://www.gtkdb.de/index_7_537.html
https://www.cyberciti.biz/faq/curl-hide-progress-bar-output-linux-unix-macos/
https://superuser.com/questions/272265/getting-curl-to-output-http-status-code/514798#514798
https://davidwalsh.name/curl-redirect-url
https://unix.stackexchange.com/questions/45325/get-urls-redirect-target-with-curl
https://stackoverflow.com/questions/3074288/get-final-url-after-curl-is-redirected
https://www.chrislatta.org/articles/web/curl/track-redirects-curl-command-line
https://www.thegeekstuff.com/2010/08/tcpdump-command-examples/
https://serverfault.com/questions/280215/tcpdump-capturing-packets-on-multiple-ip-address-filter
https://hackertarget.com/tcpdump-examples/
https://danielmiessler.com/study/tcpdump/
https://www.cellstream.com/reference-reading/tipsandtricks/379-top-10-wireshark-filters-2
https://manpages.ubuntu.com/manpages/xenial/man1/lftp.1.html
!! exclusion :
https://unix.stackexchange.com/questions/98393/lftp-exclude-syntax-confusion
---
https://serverfault.com/questions/142119/lftp-how-to-copy-file-on-remote-server
https://serverfault.com/questions/411970/how-to-avoid-lftp-certificate-verification-error
```
## example: epizy
lftp -e "set ftps:initial-prot ''; set ftp:ssl-force true; set ftp:ssl-protect-data true; set ssl:verify-certificate no;set ssl:verify-certificate no;open -u epiz_12345678,$passsi ftp://ftpupload.net;cd my.domain.com/htdocs;mirror -r"
```
---
!!!!show better status line when parallel mirror is in progress
https://github.com/lavv17/lftp/issues/415
---
https://unix.stackexchange.com/questions/287186/lftp-whiptail-progress-bar
https://www.htpcguides.com/install-configure-ftp-server-debian-linux-raspberry-pi/
https://www.thomas-krenn.com/en/wiki/Setup_FTP_Server_under_Debian#SSL.2FTLS-secured_FTP-Connection_with_mod_tls
https://wiki.debian.org/vsftpd
https://www.unixmen.com/howto-add-ftp-users-for-vsftp/
https://serverfault.com/questions/243816/vsftpd-allow-access-only-for-certain-users
https://www.redhat.com/archives/redhat-list/2003-April/msg00465.html
https://serverfault.com/questions/243816/vsftpd-allow-access-only-for-certain-users
https://www.linuxquestions.org/questions/linux-software-2/how-to-deny-all-users-in-vsftp-except-one-37818/
https://serverfault.com/questions/544850/create-new-vsftpd-user-and-lock-to-specify-home-login-directory
http://www.sigerr.org/linux/setup-vsftpd-custom-multiple-directories-users-accounts-ubuntu-step-by-step/
https://help.ubuntu.com/community/vsftpd#Virtual_users_with_TLS.2FSSL.2FFTPS_and_a_common_upload_directory_-_Complicated_VSFTPD
https://forum.ubuntuusers.de/topic/vsftpd-500-oops%3A-vsftpd%3A-both-local-and-anony/
https://www.linuxquestions.org/questions/linux-newbie-8/vsftp-problems-36957/
http://www.rollnorocks.com/2015/11/authenticating-vsftpd-virtual-users-with-pam_pwdfile-so/
https://serverfault.com/questions/450214/vsftpd-will-not-accept-passwords-encrypted-with-md5
https://www.benscobie.com/fixing-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot/
https://download.pureftpd.org/pub/pure-ftpd/doc/README.Virtual-Users
!! ftp-grep
https://unix.stackexchange.com/questions/35538/how-to-perform-grep-on-ftp
---
!!atftpd
full command line example `atftpd --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --verbose=5 --logfile=/var/log/atftpd.log --daemon --bind-address 192.168.2.20 --port 69 /tftpboot/` ( https://debianforum.de/forum/viewtopic.php?t=124828 )
---
https://stackoverflow.com/questions/18225182/how-to-list-the-windows-tftp-server-directories-and-files-from-command-prompt
http://code.gerade.org/hans/
https://news.ycombinator.com/item?id=10547264
http://www.vpnusers.com/viewtopic.php?f=7&t=1632
http://forum.vpngate.net/viewtopic.php?t=2447&p=7181
http://inetric.blogspot.de/2016/02/softether-vpn-icmpdns.html
https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
https://askubuntu.com/questions/789421/l2tp-ipsec-psk-vpn-client-on-xubuntu-16-04
https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#configure-linux-vpn-clients-using-the-command-line
https://www.digitalmunition.me/2016/01/onioncat-anonymous-vpn-adapter/
!! [general]
https://openvpn.net/vpn-server-resources/reach-openvpn-clients-directly-from-a-private-network/
https://wiki.openwrt.org/doc/howto/vpn.server.openvpn.tun
https://community.openvpn.net/openvpn/wiki/GettingStartedwithOVPN
https://forums.openvpn.net/viewtopic.php?t=8062
http://forum.openvpn.eu/viewtopic.php?f=1&t=2395
https://forums.openvpn.net/viewtopic.php?t=22439
https://www.sparklabs.com/support/kb/article/error-inactivity-timeout-ping-restart/
http://www.linuxforen.de/forums/showthread.php?276311-OpenVPN-Tunnel-autoreconnect
hardening:
https://community.openvpn.net/openvpn/wiki/Hardening
https://blog.g3rt.nl/openvpn-security-tips.html
https://itsecblog.de/haertung-eines-openvpn-servers/
https://www.v13.gr/blog/?p=386
http://blog.dornea.nu/2015/11/17/openvpn-for-paranoids/#c7e681c8da92ffe4e225ca9dc442008d
Synology:
https://www.thomas-krenn.com/de/wiki/OpenVPN_am_Synology_NAS_einrichten
http://www.synology-wiki.de/index.php/OpenVPN_h%C3%A4rten
https://wiki.openwrt.org/doc/howto/vpn.server.openvpn.tun
##ALLINLINE
https://forums.openvpn.net/viewtopic.php?t=20860
#REMOTECERTEKU
https://forums.openvpn.net/viewtopic.php?t=7484
#CRLEXPIRED
https://forums.openvpn.net/viewtopic.php?t=23166
#CRLVERIFY
https://forum.ubuntuusers.de/topic/fehler-bei-verbindungsaufbau-via-openvpn/
#KEYDIRECTION
https://serverfault.com/questions/539701/openvpn-tls-error
#ns-cer-type server
http://www.synology-forum.de/showthread.html?40315-No-server-certificate-verification-method-has-been-enabled
https://wiki.openwrt.org/inbox/vpn.howto
https://openvpn.net/index.php/open-source/documentation/miscellaneous/77-rsa-key-management.html
http://wiki.openvpn.eu/index.php/Erzeugen_einer_PKI_mit_EasyRSA
https://github.com/RMerl/asuswrt-merlin/wiki/Generating-OpenVPN-keys-using-Easy-RSA
http://www.f15ijp.com/2010/08/openvpn-tls-error-reading-acknowledgement-record-from-packet/
https://forum.openwrt.org/viewtopic.php?id=63484
https://books.google.de/books?id=jT49DwAAQBAJ&pg=PT224&lpg=PT224&dq=Authenticate/Decrypt+packet+error:+packet+HMAC+authentication+failed&source=bl&ots=a1TNad5gcS&sig=IX_3GctaplD4U60vk3TCl9SPgzw&hl=de&sa=X&ved=0ahUKEwjOh6zPmvTXAhXIWBQKHaBABys4MhDoAQg2MAE#v=onepage&q=Authenticate%2FDecrypt%20packet%20error%3A%20packet%20HMAC%20authentication%20failed&f=false
http://tomatousb.org/forum/t-551699/openvpn-hmac-authentication-failed-in-bidirectional-mode-tls
!! [ipv6:roaming v4-v6]
https://lists.zx2c4.com/pipermail/wireguard/2018-September/003377.html
!! [openvpn:ipv6-tun]
https://www.uninformativ.de/blog/postings/2015-03-24/0/POSTING-de.html
https://techblog.synagila.com/2016/02/24/build-a-openvpn-server-on-ubuntu-to-provide-a-ipv6-tunnel-over-ipv4/
!! [openvpn-ipv6]
https://stackoverflow.com/questions/50600116/ipv6-with-openvpn-in-docker
https://www.techgrube.de/tutorials/openvpn-server-mit-ipv4-und-ipv6
https://community.openvpn.net/openvpn/wiki/IPv6
https://www.thomas--schaefer.de/openvpn%20synology%20nas%20myfritz.html
https://www.alexander-fuchs.net/de/synology-diskstation-vpn-dualstack-ipv6/
https://community.synology.com/enu/forum/16/post/119733
https://www.synology-forum.de/archive/index.html/t-79148.html ( enable PD )
https://github.com/kylemanna/docker-openvpn/issues/366
https://www.reddit.com/r/PFSENSE/comments/5yfejl/splitting_ipv6_64_prefix_delegation_across_3/
*`adduser openvpn`
*`adduser openvpn netdev`
*`setcap cap_net_admin+ep /usr/sbin/openvpn`
* custom script with `sudo ip` or setuid bit(NOT RECOMMENDED)
https://wiki.debian.org/Wireguard
https://emanuelduss.ch/2018/09/wireguard-vpn-road-warrior-setup/
https://danrl.com/blog/2017/luci-proto-wireguard/
https://danrl.com/blog/2016/travel-wifi/
https://angristan.xyz/how-to-setup-vpn-server-wireguard-nat-ipv6/
[[ 2020-03-07 @ www.commander1024.de → Netze knüpfen mit wireguard – Commander1024 |https://www.commander1024.de/wordpress/2019/04/netze-knuepfen-mit-wireguard/ ]]
[[ @ github.com → GitHub - viisauksena/gluon-mesh-wireguard |https://github.com/viisauksena/gluon-mesh-wireguard ]]
[[ 2020-03-07 @ lists.zx2c4.com → [fyi] test in the wild (wg + gretap + batman-adv) on tplink842 |https://lists.zx2c4.com/pipermail/wireguard/2016-December/000850.html ]]
→ most routers offer only gateway ping, wifi bridging is a bit tricky
→ simple solution : iptables -p icmp -d WIFI-GATEWAY -I PREROUTING -t nat -j DNAT --to REAL-GATEWAY
→OpenWRT: in /etc/firewall.user
iptables -p icmp -d $(uci -q show network.lan.ipaddr|cut -d"'" -f2) -I PREROUTING -t nat -j DNAT --to $(route -n | awk '$4 == "UG" {print $2}')
iptables -I POSTROUTING -t nat -d $(route -n | awk '$4 == "UG" {print $2}') -p icmp -j SNAT --to-source $(ip addr show $(awk '$2 == 00000000 { print $1 }' /proc/net/route) | awk '$1 == "inet" { sub("/.*", "", $2); print $2 }')
iptables -I POSTROUTING -t nat -s $(route -n | awk '$4 == "UG" {print $2}') -p icmp -j SNAT --to-source $(uci -q show network.lan.ipaddr|cut -d"'" -f2)
!! MAKE FIREWALL RELOAD YOUR CONFIG EVERY TIME: (uci set firewall.@include[0].reload=1)
https://dev.openwrt.org/ticket/20249
( Hard solution via batmand or arp proxy)
!! What
The plugin [[twve.tcalc]] (requiring [[twve.core]] and [[twve.table]]) works as a table calculator providing simple spreadsheet functionalities to the ~TiddlyWiki. It takes a table as a spreadsheet and addresses the table cells the same way as the popular spreadsheet applications (~LibreOffice.calc, ~MicroSoft Excel, etc.). It offers features like relative and absolute references, copy-and-pasting, auto recalculation, and auto reference adjustment. This tiddler addresses the issues about auto recalculation.
When the user made changes to one or more of the table cells, [[twve.tcalc]] automatically recalculates the table. In earlier versions prior to v1.0.5 the recalculation was performed on the whole table every time a table cell was changed, regardless of the number of cells being affected. For small tables this is not a problem at all. For large tables, however, we can expect
# a long recalculation time (if the table contains a significant amount of calculations), and/or
# a possible waste of time (if only a small fraction of the cells is affected by the change).
It then makes sense to recalculate only the affected cells to save time. In order to do so, I started (from v1.0.5) to rewrite the function <<slider '' 'TWtcalc.1.0.10##re_calculate_table' 'TWtcalc.re_calculate_table(twtable,text[,affected])'>> to do partial recalculation. In 1.0.5 only //directly affected// cells (those containing //explicit// references to one of the changed cells) were recalculated. In 1.0.7 //indirectly affected// cells (those containing //implicit// references) were also recalculated. Later in [[twve.tcalc]] the re-calculation function and the original calculation function were merged into one, the <<slider '' 'twve.tcalc##twtable.calculate' 'twtable.calculate'>>.
!! How
The idea of partial recalculation is to recalculate not all the cells but only
# the changed cells themselves,
# the cells referring to one of the changed cells (explicit reference, directly affected),
# the cells referring to one of the cells in 2. (implicit reference, indirectly affected),
# the cells referring to one of the cells in 3. (further implicit reference, indirectly affected),
# ......
The process goes on and on until no more cells need recalculation. This way shall leave the unaffected cells alone, and recalculate only the affected ones.
For small tables with multiple levels of implicit references (meaning the above process has to go beyond step 3), one might expect partial recalculation would take a longer time than a whole table recalculation, because there would be more searching and looping in the process. This should be generally true but we can expect a non-significant increase of time because 1) searching and looping don't take much time, as compared to calculations, and 2) total time of calculation is short for small tables, and a small increase to a short time can still be short.
For large tables, however, this is expected to save time, especially for tables that contain a significant amount of calculations in the cell content.
!! Results
The codes were tested with a small table having 24 cells in total, 5 of which contain formulas (one in each) to calculate. Averaging over 10 times of recalculations triggered by the same change that includes 3 levels of implicit referencing (so the above process has to go to step 5), partial recalculation took about 8 ms, while whole table recalculation took 7 ms to finish the job. The partial recalculation indeed takes a longer time and the difference is also indeed not significant.
<<foldHeadings>>
//Note: The codes are not tested with large tables yet.//
/***
|''Name:''|PasswordOptionPlugin|
|''Description:''|Extends TiddlyWiki options with non encrypted password option.|
|''Version:''|1.0.2|
|''Date:''|Apr 19, 2007|
|''Source:''|http://tiddlywiki.bidix.info/#PasswordOptionPlugin|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0 (Beta 5)|
***/
//{{{
version.extensions.PasswordOptionPlugin = {
major: 1, minor: 0, revision: 2,
date: new Date("Apr 19, 2007"),
source: 'http://tiddlywiki.bidix.info/#PasswordOptionPlugin',
author: 'BidiX (BidiX (at) bidix (dot) info',
license: '[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D]]',
coreVersion: '2.2.0 (Beta 5)'
};
config.macros.option.passwordCheckboxLabel = "Save this password on this computer";
config.macros.option.passwordInputType = "password"; // password | text
setStylesheet(".pasOptionInput {width: 11em;}\n","passwordInputTypeStyle");
merge(config.macros.option.types, {
'pas': {
elementType: "input",
valueField: "value",
eventName: "onkeyup",
className: "pasOptionInput",
typeValue: config.macros.option.passwordInputType,
create: function(place,type,opt,className,desc) {
// password field
config.macros.option.genericCreate(place,'pas',opt,className,desc);
// checkbox linked with this password "save this password on this computer"
config.macros.option.genericCreate(place,'chk','chk'+opt,className,desc);
// text savePasswordCheckboxLabel
place.appendChild(document.createTextNode(config.macros.option.passwordCheckboxLabel));
},
onChange: config.macros.option.genericOnChange
}
});
merge(config.optionHandlers['chk'], {
//get: function(name) {
// is there an option linked with this chk ?
// var opt = name.substr(3);
// if (config.options[opt])
// saveOptionCookie(opt);
// return config.options[name] ? "true" : "false";
//}
set: function(name,value) {
config.options[name] = value == 'true';
// is there an option linked with this chk ?
var opt = name.substr(3);
if (config.options[opt])
saveOptionCookie(opt);
}
});
merge(config.optionHandlers, {
'pas': {
get: function(name) {
if (config.options["chk"+name]) {
return encodeCookie(config.options[name].toString());
} else {
return "";
}
},
set: function(name,value) {config.options[name] = decodeCookie(value);}
}
});
// need to reload options to load passwordOptions
loadOptionsCookie();
/*
if (!config.options['pasPassword'])
config.options['pasPassword'] = '';
merge(config.optionsDesc,{
pasPassword: "Test password"
});
*/
//}}}
/***
|Name|PlayerPlugin|
|Source|http://www.TiddlyTools.com/#PlayerPlugin|
|Version|1.1.4|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|Embed a media player in a tiddler|
!!!!!Usage
<<<
{{{<<player [id=xxx] [type] [URL] [width] [height] [autoplay|true|false] [showcontrols|true|false] [extras]>>}}}
''id=xxx'' is optional, and specifies a unique identifier for each embedded player. note: this is required if you intend to display more than one player at the same time.
''type'' is optional, and is one of the following: ''windows'', ''realone'', ''quicktime'', ''flash'', ''image'' or ''iframe''. If the media type is not specified, the plugin automatically detects Windows, Real, QuickTime, Flash video or JPG/GIF images by matching known file extensions and/or specialized streaming-media transfer protocols (such as RTSP:). For unrecognized media types, the plugin displays an error message.
''URL'' is the location of the media content
''width'' and ''height'' are the dimensions of the video display area (in pixels)
''autoplay'' or ''true'' or ''false'' is optional, and specifies whether the media content should begin playing as soon as it is loaded, or wait for the user to press the "play" button. Default is //not// to autoplay.
''showcontrols'' or ''true'' or ''false'' is optional, and specifies whether the embedded media player should display its built-in control panel (e.g., play, pause, stop, rewind, etc), if any. Default is to display the player controls.
''extras'' are optional //pairs// of parameters that can be passed to the embedded player, using the {{{<param name=xxx value=yyy>}}} HTML syntax.
''If you use [[AttachFilePlugin]] to encode and store a media file within your document, you can play embedded media content by using the title of the //attachment tiddler//'' as a parameter in place of the usual reference to an external URL. When playing an attached media content, you should always explicitly specify the media type parameter, because the name used for the attachment tiddler may not contain a known file extension from which a default media type can be readily determined.
<<<
!!!!!Configuration
<<<
Default player size:
width: <<option txtPlayerDefaultWidth>> height: <<option txtPlayerDefaultHeight>>
<<<
!!!!!Examples
<<<
+++[Windows Media]...
Times Square Live Webcam
{{{<<player id=1 http://www.earthcam.com/usa/newyork/timessquare/asx/tsq_stream.asx>>}}}
<<player id=1 http://www.earthcam.com/usa/newyork/timessquare/asx/tsq_stream.asx>>
===
+++[RealOne]...
BBC London: Live and Recorded news
{{{<<player id=2 http://www.bbc.co.uk/london/realmedia/news/tvnews.ram>>}}}
<<player id=2 http://www.bbc.co.uk/london/realmedia/news/tvnews.ram>>
===
+++[Quicktime]...
America Free TV: Classic Comedy
{{{<<player id=3 http://www.americafree.tv/unicast_mov/AmericaFreeTVComedy.mov>>}}}
<<player id=3 http://www.americafree.tv/unicast_mov/AmericaFreeTVComedy.mov>>
===
+++[Flash]...
Asteroids arcade game
{{{<<player id=4 http://www.80smusiclyrics.com/games/asteroids/asteroids.swf 400 300>>}}}
<<player id=4 http://www.80smusiclyrics.com/games/asteroids/asteroids.swf 400 300>>
Google Video
{{{<<player id=5 flash http://video.google.com/googleplayer.swf?videoUrl=http%3A%2F%2Fvp.video.google.com%2Fvideodownload%3Fversion%3D0%26secureurl%3DoQAAAIVnUNP6GYRY8YnIRNPe4Uk5-j1q1MVpJIW4uyEFpq5Si0hcSDuig_JZcB9nNpAhbScm9W_8y_vDJQBw1DRdCVbXl-wwm5dyUiiStl_rXt0ATlstVzrUNC4fkgK_j7nmse7kxojRj1M3eo3jXKm2V8pQjWk97GcksMFFwg7BRAXmRSERexR210Amar5LYzlo9_k2AGUWPLyRhMJS4v5KtDSvNK0neL83ZjlHlSECYXyk%26sigh%3Dmpt2EOr86OAUNnPQ3b9Tr0wnDms%26begin%3D0%26len%3D429700%26docid%3D-914679554478687740&thumbnailUrl=http%3A%2F%2Fvideo.google.com%2FThumbnailServer%3Fcontentid%3De7e77162deb04c42%26second%3D5%26itag%3Dw320%26urlcreated%3D1144620753%26sigh%3DC3fqXPPS1tFiUqLzmkX3pdgYc2Y&playerId=-91467955447868774 400 326>>}}}
<<player id=5 flash http://video.google.com/googleplayer.swf?videoUrl=http%3A%2F%2Fvp.video.google.com%2Fvideodownload%3Fversion%3D0%26secureurl%3DoQAAAIVnUNP6GYRY8YnIRNPe4Uk5-j1q1MVpJIW4uyEFpq5Si0hcSDuig_JZcB9nNpAhbScm9W_8y_vDJQBw1DRdCVbXl-wwm5dyUiiStl_rXt0ATlstVzrUNC4fkgK_j7nmse7kxojRj1M3eo3jXKm2V8pQjWk97GcksMFFwg7BRAXmRSERexR210Amar5LYzlo9_k2AGUWPLyRhMJS4v5KtDSvNK0neL83ZjlHlSECYXyk%26sigh%3Dmpt2EOr86OAUNnPQ3b9Tr0wnDms%26begin%3D0%26len%3D429700%26docid%3D-914679554478687740&thumbnailUrl=http%3A%2F%2Fvideo.google.com%2FThumbnailServer%3Fcontentid%3De7e77162deb04c42%26second%3D5%26itag%3Dw320%26urlcreated%3D1144620753%26sigh%3DC3fqXPPS1tFiUqLzmkX3pdgYc2Y&playerId=-91467955447868774 400 326>>
YouTube Video
{{{<<player id=6 flash http://www.youtube.com/v/OdT9z-JjtJk 400 300>>}}}
<<player id=6 flash http://www.youtube.com/v/OdT9z-JjtJk 400 300>>
===
+++[Still Images]...
GIF (best for illustrations, animations, diagrams, etc.)
{{{<<player id=7 image images/meow.gif auto auto>>}}}
<<player id=7 image images/meow.gif auto auto>>
JPG (best for photographs, scanned images, etc.)
{{{<<player id=8 image images/meow2.jpg 200 150>>}}}
<<player id=8 image images/meow2.jpg 200 150>>
===
<<<
!!!!!Revisions
<<<
2008.05.10 [1.1.4] in handlers(), immediately return if no params (prevents error in macro). Also, refactored auto-detect code to make type mapping configurable.
2007.10.15 [1.1.3] in loadURL(), add recognition for .PNG (still image), fallback to iframe for unrecognized media types
2007.08.31 [1.1.2] added 'click-through' link for JPG/GIF images
2007.06.21 [1.1.1] changed "hidecontrols" param to "showcontrols" and recognize true/false values in addition to 'showcontrols', added "autoplay" param (also recognize true/false values), allow "auto" as value for type param
2007.05.22 [1.1.0] added support for type=="iframe" (displays src URL in an IFRAME)
2006.12.06 [1.0.1] in handler(), corrected check for config.macros.attach (instead of config.macros.attach.getAttachment) so that player plugin will work when AttachFilePlugin is NOT installed. (Thanks to Phillip Ehses for bug report)
2006.11.30 [1.0.0] support embedded media content using getAttachment() API defined by AttachFilePlugin or AttachFilePluginFormatters. Also added support for 'image' type to render JPG/GIF still images
2006.02.26 [0.7.0] major re-write. handles default params better. create/recreate player objects via loadURL() API for use with interactive forms and scripts.
2006.01.27 [0.6.0] added support for 'extra' macro params to pass through to object parameters
2006.01.19 [0.5.0] Initial ALPHA release
2005.12.23 [0.0.0] Started
<<<
!!!!!Code
***/
//{{{
version.extensions.PlayerPlugin= {major: 1, minor: 1, revision: 4, date: new Date(2008,5,10)};
config.macros.player = {};
config.macros.player.html = {};
config.macros.player.handler= function(place,macroName,params) {
if (!params.length) return; // missing parameters - do nothing
var id=null;
if (params[0].substr(0,3)=="id=") id=params.shift().substr(3);
var type="";
if (!params.length) return; // missing parameters - do nothing
var p=params[0].toLowerCase();
if (p=="auto" || p=="windows" || p=="realone" || p=="quicktime" || p=="flash" || p=="image" || p=="iframe")
type=params.shift().toLowerCase();
var url=params.shift(); if (!url || !url.trim().length) url="";
if (url.length && config.macros.attach!=undefined) // if AttachFilePlugin is installed
if ((tid=store.getTiddler(url))!=null && tid.isTagged("attachment")) // if URL is attachment
url=config.macros.attach.getAttachment(url); // replace TiddlerTitle with URL
var width=params.shift();
var height=params.shift();
var autoplay=false;
if (params[0]=='autoplay'||params[0]=='true'||params[0]=='false')
autoplay=(params.shift()!='false');
var show=true;
if (params[0]=='showcontrols'||params[0]=='true'||params[0]=='false')
show=(params.shift()!='false');
var extras="";
while (params[0]!=undefined)
extras+="<param name='"+params.shift()+"' value='"+params.shift()+"'> ";
this.loadURL(place,id,type,url,width,height,autoplay,show,extras);
}
if (config.options.txtPlayerDefaultWidth==undefined) config.options.txtPlayerDefaultWidth="100%";
if (config.options.txtPlayerDefaultHeight==undefined) config.options.txtPlayerDefaultHeight="480"; // can't use "100%"... player height doesn't stretch right :-(
config.macros.player.typeMap={
windows: ['mms', '.asx', '.wvx', '.wmv', '.mp3'],
realone: ['rtsp', '.ram', '.rpm', '.rm', '.ra'],
quicktime: ['.mov', '.qt'],
flash: ['.swf', '.flv'],
image: ['.jpg', '.gif', '.png'],
iframe: ['.htm', '.html', '.shtml', '.php']
};
config.macros.player.loadURL=function(place,id,type,url,width,height,autoplay,show,extras) {
if (id==undefined) id="tiddlyPlayer";
if (!width) var width=config.options.txtPlayerDefaultWidth;
if (!height) var height=config.options.txtPlayerDefaultHeight;
if (url && (!type || !type.length || type=="auto")) { // determine type from URL
u=url.toLowerCase();
var map=config.macros.player.typeMap;
for (var t in map) for (var i=0; i<map[t].length; i++)
if (u.indexOf(map[t][i])!=-1) var type=t;
}
if (!type || !config.macros.player.html[type]) var type="none";
if (!url) var url="";
if (show===undefined) var show=true;
if (!extras) var extras="";
if (type=="none" && url.trim().length) type="iframe"; // fallback to iframe for unrecognized media types
// adjust parameter values for player-specific embedded HTML
switch (type) {
case "windows":
autoplay=autoplay?"1":"0"; // player-specific param value
show=show?"1":"0"; // player-specific param value
break;
case "realone":
autoplay=autoplay?"true":"false";
show=show?"block":"none";
height-=show?60:0; // leave room for controls
break;
case "quicktime":
autoplay=autoplay?"true":"false";
show=show?"true":"false";
break;
case "image":
show=show?"block":"none";
break;
case "iframe":
show=show?"block":"none";
break;
}
// create containing div for player HTML
// and add or replace player in TW DOM structure
var newplayer = document.createElement("div");
newplayer.playerType=type;
newplayer.setAttribute("id",id+"_div");
var existing = document.getElementById(id+"_div");
if (existing && !place) place=existing.parentNode;
if (!existing)
place.appendChild(newplayer);
else {
if (place==existing.parentNode) place.replaceChild(newplayer,existing)
else { existing.parentNode.removeChild(existing); place.appendChild(newplayer); }
}
var html=config.macros.player.html[type];
html=html.replace(/%i%/mg,id);
html=html.replace(/%w%/mg,width);
html=html.replace(/%h%/mg,height);
html=html.replace(/%u%/mg,url);
html=html.replace(/%a%/mg,autoplay);
html=html.replace(/%s%/mg,show);
html=html.replace(/%x%/mg,extras);
newplayer.innerHTML=html;
}
//}}}
// // Player-specific API functions: isReady(id), isPlaying(id), toggleControls(id), showControls(id,flag)
//{{{
// status values:
// Windows: 0=Undefined, 1=Stopped, 2=Paused, 3=Playing, 4=ScanForward, 5=ScanReverse
// 6=Buffering, 7=Waiting, 8=MediaEnded, 9=Transitioning, 10=Ready, 11=Reconnecting
// RealOne: 0=Stopped, 1=Contacting, 2=Buffering, 3=Playing, 4=Paused, 5=Seeking
// QuickTime: 'Waiting', 'Loading', 'Playable', 'Complete', 'Error:###'
// Flash: 0=Loading, 1=Uninitialized, 2=Loaded, 3=Interactive, 4=Complete
config.macros.player.isReady=function(id)
{
var d=document.getElementById(id+"_div"); if (!d) return false;
var p=document.getElementById(id); if (!p) return false;
if (d.playerType=='windows') return !((p.playState==0)||(p.playState==7)||(p.playState==9)||(p.playState==11));
if (d.playerType=='realone') return (p.GetPlayState()>1);
if (d.playerType=='quicktime') return !((p.getPluginStatus()=='Waiting')||(p.getPluginStatus()=='Loading'));
if (d.playerType=='flash') return (p.ReadyState>2);
return true;
}
config.macros.player.isPlaying=function(id)
{
var d=document.getElementById(id+"_div"); if (!d) return false;
var p=document.getElementById(id); if (!p) return false;
if (d.playerType=='windows') return (p.playState==3);
if (d.playerType=='realone') return (p.GetPlayState()==3);
if (d.playerType=='quicktime') return (p.getPluginStatus()=='Complete');
if (d.playerType=='flash') return (p.ReadyState<4);
return false;
}
config.macros.player.showControls=function(id,flag) {
var d=document.getElementById(id+"_div"); if (!d) return false;
var p=document.getElementById(id); if (!p) return false;
if (d.playerType=='windows') { p.ShowControls=flag; p.ShowStatusBar=flag; }
if (d.playerType=='realone') { alert('show/hide controls not available'); }
if (d.playerType=='quicktime') // if player not ready, retry in one second
{ if (this.isReady(id)) p.setControllerVisible(flag); else setTimeout('config.macros.player.showControls("'+id+'",'+flag+')',1000); }
if (d.playerType=='flash') { alert('show/hide controls not available'); }
}
config.macros.player.toggleControls=function(id) {
var d=document.getElementById(id+"_div"); if (!d) return false;
var p=document.getElementById(id); if (!p) return false;
if (d.playerType=='windows') var flag=!p.ShowControls;
if (d.playerType=='realone') var flag=true; // TBD
if (d.playerType=='quicktime') var flag=!p.getControllerVisible();
if (d.playerType=='flash') var flag=true; // TBD
this.showControls(id,flag);
}
config.macros.player.fullScreen=function(id) {
var d=document.getElementById(id+"_div"); if (!d) return false;
var p=document.getElementById(id); if (!p) return false;
if (d.playerType=='windows') p.DisplaySize=3;
if (d.playerType=='realone') p.SetFullScreen();
if (d.playerType=='quicktime') { alert('full screen not available'); }
if (d.playerType=='flash') { alert('full screen not available'); }
}
//}}}
// // Player HTML
//{{{
// placeholder (no player)
config.macros.player.html.none=' \
<table id="%i%" width="%w%" height="%h%" style="background-color:#111;border:0;margin:0;padding:0;"> \
<tr style="background-color:#111;border:0;margin:0;padding:0;"> \
<td width="%w%" height="%h%" style="background-color:#111;color:#ccc;border:0;margin:0;padding:0;text-align:center;"> \
\
%u% \
\
</td></tr></table>';
//}}}
//{{{
// JPG/GIF/PNG still images
config.macros.player.html.image='\
<a href="%u%" target="_blank"><img width="%w%" height="%h%" style="display:%s%;" src="%u%"></a>';
//}}}
//{{{
// IFRAME web page viewer
config.macros.player.html.iframe='\
<iframe id="%i%" width="%w%" height="%h%" style="display:%s%;background:#fff;" src="%u%"></iframe>';
//}}}
//{{{
// Windows Media Player
// v7.1 ID: classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6
// v9 ID: classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95
config.macros.player.html.windows=' \
<object id="%i%" width="%w%" height="%h%" style="margin:0;padding:0;width:%w%;height:%h%px;" \
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" \
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" \
align="baseline" border="0" \
standby="Loading Microsoft Windows Media Player components..." \
type="application/x-oleobject"> \
<param name="FileName" value="%u%"> <param name="ShowControls" value="%s%"> \
<param name="ShowPositionControls" value="1"> <param name="ShowAudioControls" value="1"> \
<param name="ShowTracker" value="1"> <param name="ShowDisplay" value="0"> \
<param name="ShowStatusBar" value="1"> <param name="AutoSize" value="1"> \
<param name="ShowGotoBar" value="0"> <param name="ShowCaptioning" value="0"> \
<param name="AutoStart" value="%a%"> <param name="AnimationAtStart" value="1"> \
<param name="TransparentAtStart" value="0"> <param name="AllowScan" value="1"> \
<param name="EnableContextMenu" value="1"> <param name="ClickToPlay" value="1"> \
<param name="InvokeURLs" value="1"> <param name="DefaultFrame" value="datawindow"> \
%x% \
<embed src="%u%" style="margin:0;padding:0;width:%w%;height:%h%px;" \
align="baseline" border="0" width="%w%" height="%h%" \
type="application/x-mplayer2" \
pluginspage="http://www.microsoft.com/windows/windowsmedia/download/default.asp" \
name="%i%" showcontrols="%s%" showpositioncontrols="1" \
showaudiocontrols="1" showtracker="1" showdisplay="0" \
showstatusbar="%s%" autosize="1" showgotobar="0" showcaptioning="0" \
autostart="%a%" autorewind="0" animationatstart="1" transparentatstart="0" \
allowscan="1" enablecontextmenu="1" clicktoplay="0" invokeurls="1" \
defaultframe="datawindow"> \
</embed> \
</object>';
//}}}
//{{{
// RealNetworks' RealOne Player
config.macros.player.html.realone=' \
<table width="%w%" style="border:0;margin:0;padding:0;"><tr style="border:0;margin:0;padding:0;"><td style="border:0;margin:0;padding:0;"> \
<object id="%i%" width="%w%" height="%h%" style="margin:0;padding:0;" \
CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> \
<PARAM NAME="CONSOLE" VALUE="player"> \
<PARAM NAME="CONTROLS" VALUE="ImageWindow"> \
<PARAM NAME="AUTOSTART" Value="%a%"> \
<PARAM NAME="MAINTAINASPECT" Value="true"> \
<PARAM NAME="NOLOGO" Value="true"> \
<PARAM name="BACKGROUNDCOLOR" VALUE="#333333"> \
<PARAM NAME="SRC" VALUE="%u%"> \
%x% \
<EMBED width="%w%" height="%h%" controls="ImageWindow" type="audio/x-pn-realaudio-plugin" style="margin:0;padding:0;" \
name="%i%" \
src="%u%" \
console=player \
maintainaspect=true \
nologo=true \
backgroundcolor=#333333 \
autostart=%a%> \
</OBJECT> \
</td></tr><tr style="border:0;margin:0;padding:0;"><td style="border:0;margin:0;padding:0;"> \
<object id="%i%_controls" width="%w%" height="60" style="margin:0;padding:0;display:%s%" \
CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> \
<PARAM NAME="CONSOLE" VALUE="player"> \
<PARAM NAME="CONTROLS" VALUE="All"> \
<PARAM NAME="NOJAVA" Value="true"> \
<PARAM NAME="MAINTAINASPECT" Value="true"> \
<PARAM NAME="NOLOGO" Value="true"> \
<PARAM name="BACKGROUNDCOLOR" VALUE="#333333"> \
<PARAM NAME="SRC" VALUE="%u%"> \
%x% \
<EMBED WIDTH="%w%" HEIGHT="60" NOJAVA="true" type="audio/x-pn-realaudio-plugin" style="margin:0;padding:0;display:%s%" \
controls="All" \
name="%i%_controls" \
src="%u%" \
console=player \
maintainaspect=true \
nologo=true \
backgroundcolor=#333333> \
</OBJECT> \
</td></tr></table>';
//}}}
//{{{
// QuickTime Player
config.macros.player.html.quicktime=' \
<OBJECT ID="%i%" WIDTH="%w%" HEIGHT="%h%" style="margin:0;padding:0;" \
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" \
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"> \
<PARAM name="SRC" VALUE="%u%"> \
<PARAM name="AUTOPLAY" VALUE="%a%"> \
<PARAM name="CONTROLLER" VALUE="%s%"> \
<PARAM name="BGCOLOR" VALUE="#333333"> \
<PARAM name="SCALE" VALUE="aspect"> \
<PARAM name="SAVEEMBEDTAGS" VALUE="true"> \
%x% \
<EMBED name="%i%" WIDTH="%w%" HEIGHT="%h%" style="margin:0;padding:0;" \
SRC="%u%" \
AUTOPLAY="%a%" \
SCALE="aspect" \
CONTROLLER="%s%" \
BGCOLOR="#333333" \
EnableJavaSript="true" \
PLUGINSPAGE="http://www.apple.com/quicktime/download/"> \
</EMBED> \
</OBJECT>';
//}}}
//{{{
// Flash Player
config.macros.player.html.flash='\
<object id="%i%" width="%w%" height="%h%" style="margin:0;padding:0;" \
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" \
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"> \
<param name="movie" value="%u%"> \
<param name="quality" value="high"> \
<param name="SCALE" value="exactfit"> \
<param name="bgcolor" value="333333"> \
%x% \
<embed name="%i%" src="%u%" style="margin:0;padding:0;" \
height="%h%" width="%w%" quality="high" \
pluginspage="http://www.macromedia.com/go/getflashplayer" \
type="application/x-shockwave-flash" scale="exactfit"> \
</embed> \
</object>';
//}}}
>2013/05/01
>@@color:blue;Thanks to ~TonG who shared his CSS style settings for the {{{#displayArea}}} that also suffers from the same problem. He fixed it by removing some of the settings, including the@@
>>{{{position: relative;}}},
>@@color:blue;to the {{{.tiddler}}} div. That gave me a hint that it could be the@@
>>{{{position: relative;}}}
>@@color:blue;that was causing the problem. I did some experiments and learned that@@
>>{{{position: static;}}}
>>or simply {{{NO positioning setting}}}
>@@color:blue;for the {{{#displayArea}}} would give the correct offset. Other settings would give the shifted result. Therefore the codes are now changed to@@
{{{
var $display = $elem.closest('#displayArea');
if ( $display.css('position') != 'static' ) {
var dpos = $display.offset();
pos.left -= dpos.left;
pos.top -= dpos.top;
}
}}}
>@@color:blue;It seems to work correctly now.@@
!! What?
The {{{TWtid}}}+{{{TWted}}} plugins rely heavily on the comparison between the mouse position and the returned value of {{{jQuery}}}'s {{{.offset()}}} method, to locate a piece of plain text, and to show a border around the area to edit. It works fine except that the method gives different positions with ~TiddlySpace: the returned offset is //shifted// from the expected position.
!! What then?
Subtract the left/top of {{{#displayArea}}} from the left/top of the returned position.
{{{
var pos = $elem.offset();
var dpos = $elem.closest('#displayArea').offset();
pos.left -= dpos.left;
pos.top -= dpos.top;
}}}
This positioning issue does not happen with local ~TiddlyWiki files, so the adjustment is needed only for ~TiddlySpace (and others maybe?) At first I thought it was an on-line off-line issue, and did the adjustment when the tiddler was viewed on-line. However, soon after the release of v1.6.0 Arc Acorn found the positions are still wrong with a local copy of ~TiddlySpace, meaning there is something different between ~TiddlySpace and ~TiddlyWiki. I dig into a saved copy of ~TiddlySpace and found an easy way to recognize the platform, and modified the codes accordingly. It seems to work.
{{{
var pos = $elem.offset();
// TiddlySpace gives a position different from TiddlyWiki in jQuery's .offset()
// method: it is shifted by the left and top offset of #displayArea. Adjust it here.
if ( config.extensions.tiddlyspace ) {
var dpos = $elem.closest('#displayArea').offset();
pos.left -= dpos.left;
pos.top -= dpos.top;
}
}}}
```
#daisy-chain/nat : use 2nd cups and point to ipp://ip_or_name:631/printers/PRINTERNAME
#better daisy-chain:
#BrowsePoll a.b.c.7
#BrowseRelay CUPS
```
https://serverfault.com/questions/222706/how-do-i-enable-cups-browsing-across-a-network
https://handaamit.wordpress.com/2015/11/27/networkbprintingbwithbubuntu/
https://www.howtoforge.com/ipp_based_print_server_cups
https://wiki.archlinux.org/index.php/CUPS/Printer_sharing
https://www.cups.org/doc/sharing.html
http://www.noah.org/wiki/Avahi_Notes
https://askubuntu.com/questions/843895/install-printer-using-custom-ppd-file-on-ubuntu-16-04
https://wiki.archlinux.org/index.php/CUPS/Printer_sharing#DNS-SD_advertisement
https://www.cups.org/doc/network.html
https://www.cups.org/doc/man-cupsd.conf.html
https://askubuntu.com/questions/350334/how-do-i-clear-a-print-queue-in-ubuntu
https://askubuntu.com/questions/645636/apparmor-with-cupsd-denied-in-logs
https://www.linuxquestions.org/questions/linux-server-73/how-to-clear-cups-server-564866/
https://www.linuxquestions.org/questions/linux-newbie-8/clearing-old-jobs-from-cups-server-4175572507/
https://ubuntuforums.org/showthread.php?t=590793
https://www.cups.org/doc/spec-command.html
https://github.com/apple/cups/issues/4984
https://www.computerhope.com/unix/ulpadmin.htm
https://askubuntu.com/questions/574420/cups-service-not-working-cant-find-any-logs
https://www.tutorialspoint.com/unix_commands/lpadmin.htm
https://wiki.archlinux.org/index.php/CUPS/Printer-specific_problems
http://www.lazarusforum.de/viewtopic.php?f=16&t=6167
https://www.sirkit.ca/blog/samsung-syncthru-web-service-default-username-and-password/
Username/ID: admin
Password: sec00000 (that's 5 zeros)
Problem Samsung SWS Passwort zurücksetzen gelöst:
Um die SWS ( SyncThru Web Service ) Passwort zurückzusetzen :
# Drücken Sie die Menü-Taste auf dem Drucker -Panel.
# Drücken Sie die rechte oder linke Pfeiltaste, bis Netzwerk angezeigt wird, und drücken Sie OK .
# Drücken Sie die rechte oder linke Pfeiltaste, bis Einstellungen löschen angezeigt wird, und drücken Sie OK .
# Wählen Sie Ja, und drücken Sie OK .
# Nachdem der Drucker das Löschen der Netzwerkeinstellungen beendet, ziehen Sie es für ein paar Sekunden den Netzstecker und stecken Sie ihn dann wieder ein.
# Alle Netzwerkeinstellungen ( einschließlich des SWS Passwortes) werden zurückgesetzt. Wenn Sie IP- Informationen manuell konfiguriert waren oder mit einem drahtlosen Netzwerk verbunden sind, müssen Sie diese Einstellungen jetzt neu eingeben.
Der Login- Benutzer-ID ist dann wieder: admin
und das Passwort ist wieder: sec00000
https://www.computerbase.de/forum/threads/samsung-sync-thru-id-und-passwort-reset-wie.952227/
https://steigerbalett.wordpress.com/2017/06/08/firmware-update-fuer-samsung-drucker/
>Thanks to Craig in Calgary for bringing up this issue.
>Later in 2012/10/18 I realized the parent of a SyntaxHighlighterPlugin3 created table has a class {{{syntaxhighlighter}}}, which can be used to easily distinguish the table from others.
The TableCalculator was messing up the output of SyntaxHighlighterPlugin3, mainly on the line numbers - they are supposed to go vertical but then horizontal, pushing the highlighted text to the far right if the number of lines is large enough. The reason was that SyntaxHighlighterPlugin3 uses __multiple text nodes in a table cell__ to show the line numbers (so they go vertical), while the TableCalculator assumes only __one text node in one cell__.
>Well, actually I didn't even know there are text nodes in a cell before using jQuery.
>And I didn't realize that jQuery(cell).text() pulls out all the text nodes in a cell and joins them into one single string...
>>Yes it is said in the [[.text() page|http://api.jquery.com/text/]] that "__{{{including their descendants.}}}__", but I did not realize that...
When the TableCalculator sees a table in a tiddler, it takes the text out of each cell to see if some things need to be done, does them if so, then __puts it back, even when nothing was done__. But since it assumes only one text node in one cell, all the other text nodes that the SyntaxHighlighterPlugin3 put there were gone in the last step, resulting in a horizontal series of line numbers and a messed up output.
The workaround I put there is
# skip the cells with more than one text nodes, and
# leave the cell untouched if nothing was done to its content.
Hopefully the plugins would go along with each other form now.
# find monitor device
example
```
pacmd list | grep ".monitor"
### use the real device name below
pacat --record -d alsa_output.pci-0000_06_05.0.analog-stereo.monitor | sox -t raw -r 44100 -s -L -b 16 -c 2 - "output.wav"
```
then fmaybe [[audacity]] to cut
and finally
e.g:
[[sox]] normalize:
``sox --norm=-1 −−multi−threaded --buffer 131072 infile.wav -b 24 outfile.wav rate 44100 dither −s``
[[flac]] compression ``flac -8 outfile.wav ``
[1] https://www.funwithelectronics.com/?id=95
[2] https://askubuntu.com/questions/60837/record-a-programs-output-with-pulseaudio
!!! @@color:blue;Installation@@
# Install [[twve.core.min]]. This is the very base for all other ''twve'' components.
# To edit tables only, add [[twve.table.min]].
** Optionally add [[twve.tablelarge.min]] for large table support.
# To edit elements other than tables, add [[twve.extra.min]].
# To do simple calculations in tables, add [[twve.tcalc.min]] in addition to [[twve.table.min]].
!!! @@color:green;Examples@@
><<tiddler "Examples">>
@@color:red;Note: The ''twve'' v3.0.0 is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tablelarge]], [[twve.tcalc]]
!! @@Major Changes@@
# Easy incorporation into other plugins.
** Redesigned code structure and largely rewritten codes.
# Visually consistent keyboard navigation in tables with spanned cells and missing cells.
# Better performance by partial refreshing.
# Tons of bug fixes.
!!! twve.core v3.0.0 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2014/05/13 [3.0.0]'>>
!!! twve.extra v3.0.0 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2014/05/13 [3.0.0]'>>
!!! twve.table v3.0.0 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2014/05/13 [3.0.0]'>>
!!! twve.tablelarge v3.0.0 -- @@color:green;Recommended.@@
<<<
Large table supports. See one of the examples in [[twve.table--Example--Large Table]].
<<<
<<tiddler 'twve.tablelarge##2014/05/13 [3.0.0]'>>
!!! twve.tcalc v3.0.0 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2014/05/13 [3.0.0]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tcalc]]
!! @@Major Changes@@
Bug fixes.
!!! twve.core v3.0.1 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2014/05/14 [3.0.1]'>>
!!! twve.extra v3.0.1 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2014/05/14 [3.0.1]'>>
!!! twve.table v3.0.1 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2014/05/14 [3.0.1]'>>
!!! twve.tcalc v3.0.1 -- @@color:green;Recommended.@@
<<<
//This was already released earlier today.//
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2014/05/14 [3.0.1]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tablelarge]], [[twve.tcalc]]
!! @@Major Changes@@
# @@color:red;Quite some bug fixes@@ and @@color:blue;some improvements@@.
# Improved __partial refreshing__.
# Improved __keyboard navigation__ (requiring ''twve.extra'').
!!! twve.core v3.0.2 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2014/05/23 [3.0.2]'>>
!!! twve.extra v3.0.2 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2014/05/23 [3.0.2]'>>
!!! twve.table v3.0.2 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2014/05/23 [3.0.2]'>>
!!! twve.tablelarge v3.0.2 -- @@color:green;Recommended.@@
<<<
Large table supports. See one of the examples in [[twve.table--Example--Large Table]].
<<<
<<tiddler 'twve.tablelarge##2014/05/23 [3.0.2]'>>
!!! twve.tcalc v3.0.2 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2014/05/23 [3.0.2]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]]
!! @@Major Changes@@
# Some bug fixes
!!! twve.core v3.0.3 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2014/06/02 [3.0.3]'>>
!!! twve.extra v3.0.3 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2014/06/02 [3.0.3]'>>
!!! twve.table v3.0.3 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2014/06/02 [3.0.3]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tablelarge]], [[twve.tcalc]]
!! @@Major Changes@@
# Started removing jQuery dependencies to migrate to ~TW5.
** I don't seem to find a version of jQuery embeded in ~TW5 as there is in TWC, that will keep ''twve'' from going to ~TW5 because ''twve'' relies heavily on jQuery. Therefore I started to remove jQuery-dependencies from ''twve'', which turned out to be quite some work that shall take a long while. I am wondering: @@color:red;Is there a way to carry jQuery in ~TW5?@@
# Supports view mode editing of ''transcluded slices''.
!!! twve.core v3.1.0 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2014/08/03 [3.1.0]'>>
!!! twve.extra v3.1.0 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2014/08/03 [3.1.0]'>>
!!! twve.table v3.1.0 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2014/08/03 [3.1.0]'>>
!!! twve.tablelarge v3.1.0 -- @@color:green;Recommended.@@
<<<
Large table supports. See one of the examples in [[twve.table--Example--Large Table]].
<<<
<<tiddler 'twve.tablelarge##2014/08/03 [3.1.0]'>>
!!! twve.tcalc v3.1.0 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2014/08/03 [3.1.0]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tablelarge]], [[twve.tcalc]]
!! @@Major Changes@@
# ''Removed jQuery dependencies, ready to migrate to ~TW5''.
# Supports view mode editing of ''empty transcluded slices''.
# Supports mixing of ''twve.tcalc'' functions and Javascript Math functions.
!!! twve.core v3.2.0 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2014/11/21 [3.2.0]'>>
!!! twve.extra v3.2.0 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2014/11/21 [3.2.0]'>>
!!! twve.table v3.2.0 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2014/11/21 [3.2.0]'>>
!!! twve.tablelarge v3.2.0 -- @@color:green;Recommended.@@
<<<
Large table supports. See one of the examples in [[twve.table--Example--Large Table]].
<<<
<<tiddler 'twve.tablelarge##2014/11/21 [3.2.0]'>>
!!! twve.tcalc v3.2.0 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2014/11/21 [3.2.0]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.2.x is NOT compatible with earlier versions due to the removal of jQuery dependency.@@
@@color:darkgreen;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tablelarge]], [[twve.tcalc]]
!! @@Major Changes@@
# Improvements in //editing a paragraph of plain text//.
# Bug fixes in various situations.
# A few newly defined functions in ''twve.tcalc''.
!!! twve.core v3.2.1 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2014/12/22 [3.2.1]'>>
!!! twve.extra v3.2.1 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2014/12/22 [3.2.1]'>>
!!! twve.table v3.2.1 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2014/12/22 [3.2.1]'>>
!!! twve.tablelarge v3.2.1 -- @@color:green;Recommended.@@
<<<
Large table supports. See one of the examples in [[twve.table--Example--Large Table]].
<<<
<<tiddler 'twve.tablelarge##2014/12/22 [3.2.1]'>>
!!! twve.tcalc v3.2.1 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2014/12/22 [3.2.1]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.2.x is NOT compatible with earlier versions due to the removal of jQuery dependency.@@
@@color:darkgreen;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tablelarge]], [[twve.tcalc]]
!! @@Major Changes@@
# Improvements in //editing a paragraph of plain text//.
# Bug fixes in various situations.
# A few newly defined functions in ''twve.tcalc''.
!!! twve.core v3.2.2 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2015/02/13 [3.2.2]'>>
!!! twve.extra v3.2.2 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2015/02/13 [3.2.2]'>>
!!! twve.table v3.2.2 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2015/02/13 [3.2.2]'>>
!!! twve.tablelarge v3.2.2 -- @@color:green;Recommended.@@
<<<
Large table supports. See one of the examples in [[twve.table--Example--Large Table]].
<<<
<<tiddler 'twve.tablelarge##2015/02/13 [3.2.2]'>>
!!! twve.tcalc v3.2.2 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2015/02/13 [3.2.2]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.2.x is NOT compatible with earlier versions due to the removal of jQuery dependency.@@
@@color:darkgreen;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tablelarge]], [[twve.tcalc]]
!! @@Major Changes@@
# Added supports for CSS wrappers created using """{{Class name{ .... }}}""".
# Bug fixes in various situations.
# A few newly defined functions and some bug fixes in ''twve.tcalc''.
!!! twve.core v3.2.3 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2015/03/23 [3.2.3]'>>
!!! twve.extra v3.2.3 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2015/03/23 [3.2.3]'>>
!!! twve.table v3.2.3 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2015/03/23 [3.2.3]'>>
!!! twve.tablelarge v3.2.3 -- @@color:green;Recommended.@@
<<<
Large table supports. See one of the examples in [[twve.table--Example--Large Table]].
<<<
<<tiddler 'twve.tablelarge##2015/03/23 [3.2.3]'>>
!!! twve.tcalc v3.2.3 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2015/03/23 [3.2.3]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.2.x is NOT compatible with earlier versions due to the removal of jQuery dependency.@@
@@color:darkgreen;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tcalc]]
!! @@Major Changes@@
# Added support
** for regular expression in the open/close tags of elements;
** for MathJax auto numbering;
** ''cross-table calculations''.
** ''parts-per notations in calculations'';
** ''time addition/subtraction in the format of hh:mm:ss or hh:mm or mm:ss'';
** vector calculations.
# Added functions
** LENGTH/LEN(cell)
** VALUE/VAL(cell[,n])
** VALUEWITH/VALWITH(cell,preceding[,following])
** SUMIN(cell[,n1,n2,...])
** SUMWITH(cell,preceding[,following])
!!! twve.core v3.2.4 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2015/06/15 [3.2.4]'>>
!!! twve.extra v3.2.4 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2015/06/15 [3.2.4]'>>
!!! twve.table v3.2.4 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2015/06/15 [3.2.4]'>>
!!! twve.tcalc v3.2.4 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2015/06/15 [3.2.4]'>>
<<foldHeadings>>
@@color:red;Note: The ''twve'' v3.2.x is NOT compatible with earlier versions due to the removal of jQuery dependency.@@
@@color:darkgreen;Note: The ''twve'' v3.x.x is NOT compatible with earlier versions due to its different design.@@
<<tiddler "Release Note -- Head">>
!! Affected in this release
[[twve.core]], [[twve.extra]], [[twve.table]], [[twve.tcalc]]
!! @@Major Changes@@
* Added functions
** CELL(row,col) -- retrieves the content of a table cell at (row, col), where row is the 0-based index of a table row, col is either the 0-based column index or its letter representation.
** LEFT(source,len) -- extracts the left part of a string.
** MID(source,start,len) -- extracts the middle part of a string.
** RIGHT(source,len) -- extracts the right part of a string.
** SUMCOL([col[,how]]) -- sums up numerical values in the column with index col (this column if omitted), excluding the cell containing this formula. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** SUMROW([row[,how]]) -- sums up numerical values in the row with index row (this row if omitted), excluding the cell containing this formula. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** SUMCOLWITH([COL[,preceding[,following[,how]]]]) -- sums up numerical values in the column with index col (this column if omitted), excluding the cell containing this formula, with signature text immediately preceding and/or following the value. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** SUMROWWITH([ROW[,preceding[,following[,how]]]]) -- sums up numerical values in the row with index row (this row if omitted), excluding the cell containing this formula, with optional signature text immediately preceding and/or following the value. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTCOL([col[,how]]) -- count the number of numerical values in the column with index col (this column if omitted), excluding this cell. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTROW([row[,how]]) -- count the number of numerical values in the row with index row (this row if omitted), excluding this cell. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTCOLA([col[,how]) -- count the number of non-empty values in the column with index col (this column if omitted), excluding this cell. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTROWA([row[,how]]) -- count the number of non-empty values in the row with index row (this row if omitted), excluding this cell. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** DATEADD(date,dy,dm,dd[,format])
*** Calculate a new date shifted by dy/dm/dd with respect to date.
*** date must be given.
*** At least one of the (dy, dm, dd) must be specified.
*** Optional format can be given in the usual way, such as mm/dd, yy/mm/dd, yyyy/mm/dd, etc.
** DATE(y,m,d[,format])
*** Specify a date of y/m/d.
*** At least one of the (y, m, d) must be specified, missing one(s) are taken as the corresponding part(s) of today.
**** For example, if year is missing while month and date are given, the year part will be taken as this year.
*** Optional format can be given in the usual way, such as mm/dd, yy/mm/dd, yyyy/mm/dd, etc.
!!! twve.core v3.2.5 -- @@color:red;Required.@@
<<<
The very base of the view mode tiddler editor ''twve'' (including ''twve.core'', ''twve.extra'', and ''twve.table''), and the simple calculator ''twve.tcalc''.
# Offers view mode editing and transclusion synchronization capabilities for
** [[wrappers|twve--Example--Wrappers]],
** [[preformatted blocks|twve--Example--Preformatted]],
** [[code pieces|twve--Example--Code]].
** See [[twve.core Examples]] for more.
# Easy incorporation into other plugins. See [[Edit Your ...]] for more information.
<<<
<<tiddler 'twve.core##2015/11/06 [3.2.5]'>>
!!! twve.extra v3.2.5 -- @@color:blue;Highly recommended.@@
<<<
# Extends view mode editing and transclusion synchronization capabilities to cover
** [[list items|twve--Example--List Items]].
** [[headings|twve--Example--Headings]].
** [[blockquotes|twve--Example--Blockquotes]].
** and more... See [[twve.extra Examples]].
<<<
<<tiddler 'twve.extra##2015/11/06 [3.2.5]'>>
!!! twve.table v3.2.5 -- @@color:blue;Highly recommended.@@
<<<
Extends view mode editing and transclusion synchronization capabilities to cover tables. See one of the examples in [[twve.table Examples]].
<<<
<<tiddler 'twve.table##2015/11/06 [3.2.5]'>>
!!! twve.tcalc v3.2.5 -- @@color:green;Recommended.@@
<<<
Simple calculator for ~TiddlyWiki. See one of the examples in [[twve.tcalc Examples]].
<<<
<<tiddler 'twve.tcalc##2015/11/06 [3.2.5]'>>
<<foldHeadings>>
/***
|Requires|ShCore.js|
***/
//{{{
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush()
{
function getKeywordsCSS(str)
{
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
};
function getValuesCSS(str)
{
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
};
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
{ regex: /!important/g, css: 'color3' }, // !important
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
];
this.forHtmlScript({
left: /(<|<)\s*style.*?(>|>)/gi,
right: /(<|<)\/\s*style\s*(>|>)/gi
});
};
Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['css'];
SyntaxHighlighter.brushes.CSS = Brush;
// CommonJS
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();
//}}}
/***
***/
/*{{{*/
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush()
{
var keywords = 'break case catch continue ' +
'default delete do else false ' +
'for function if in instanceof ' +
'new null return super switch ' +
'this throw true try typeof var while with'
;
var r = SyntaxHighlighter.regexLib;
this.regexList = [
{ regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
{ regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
{ regex: r.singleLineCComments, css: 'comments' }, // one line comments
{ regex: r.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
];
this.forHtmlScript(r.scriptScriptTags);
};
Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['js', 'jscript', 'javascript'];
SyntaxHighlighter.brushes.JScript = Brush;
// CommonJS
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();
/*}}}*/
//{{{
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush()
{
};
Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['text', 'plain'];
SyntaxHighlighter.brushes.Plain = Brush;
// CommonJS
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();
//}}}
//{{{
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush()
{
// Contributed by Gheorghe Milas and Ahmad Sherif
var keywords = 'and assert break class continue def del elif else ' +
'except exec finally for from global if import in is ' +
'lambda not or pass print raise return try yield while';
var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
'chr classmethod cmp coerce compile complex delattr dict dir ' +
'divmod enumerate eval execfile file filter float format frozenset ' +
'getattr globals hasattr hash help hex id input int intern ' +
'isinstance issubclass iter len list locals long map max min next ' +
'object oct open ord pow print property range raw_input reduce ' +
'reload repr reversed round set setattr slice sorted staticmethod ' +
'str sum super tuple type type unichr unicode vars xrange zip';
var special = 'None True False self cls class_';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
{ regex: /^\s*@\w+/gm, css: 'decorator' },
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
{ regex: /\b\d+\.?\w*/g, css: 'value' },
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
};
Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['py', 'python'];
SyntaxHighlighter.brushes.Python = Brush;
// CommonJS
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();
//}}}
//{{{
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush()
{
function process(match, regexInfo)
{
var constructor = SyntaxHighlighter.Match,
code = match[0],
tag = new XRegExp('(<|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
result = []
;
if (match.attributes != null)
{
var attributes,
regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
'\\s*=\\s*' +
'(?<value> ".*?"|\'.*?\'|\\w+)',
'xg');
while ((attributes = regex.exec(code)) != null)
{
result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
}
}
if (tag != null)
result.push(
new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
);
return result;
}
this.regexList = [
{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
{ regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
];
};
Brush.prototype = new SyntaxHighlighter.Highlighter();
Brush.aliases = ['xml', 'xhtml', 'xslt', 'html'];
SyntaxHighlighter.brushes.Xml = Brush;
// CommonJS
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();
//}}}
/*{{{*/
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
.syntaxhighlighter a,
.syntaxhighlighter div,
.syntaxhighlighter code,
.syntaxhighlighter table,
.syntaxhighlighter table td,
.syntaxhighlighter table tr,
.syntaxhighlighter table tbody,
.syntaxhighlighter table thead,
.syntaxhighlighter table caption,
.syntaxhighlighter textarea {
-moz-border-radius: 0 0 0 0 !important;
-webkit-border-radius: 0 0 0 0 !important;
background: none !important;
border: 0 !important;
bottom: auto !important;
float: none !important;
height: auto !important;
left: auto !important;
line-height: 1.1em !important;
margin: 0 !important;
outline: 0 !important;
overflow: visible !important;
padding: 0 !important;
position: static !important;
right: auto !important;
text-align: left !important;
top: auto !important;
vertical-align: baseline !important;
width: auto !important;
box-sizing: content-box !important;
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
font-weight: normal !important;
font-style: normal !important;
font-size: 1em !important;
min-height: inherit !important;
min-height: auto !important;
}
.syntaxhighlighter {
width: 100% !important;
margin: 1em 0 1em 0 !important;
position: relative !important;
overflow: auto !important;
font-size: .9em !important;
}
.syntaxhighlighter.source {
overflow: hidden !important;
}
.syntaxhighlighter .bold {
font-weight: bold !important;
}
.syntaxhighlighter .italic {
font-style: italic !important;
}
.syntaxhighlighter .line {
white-space: pre !important;
}
.syntaxhighlighter table {
width: 100% !important;
}
.syntaxhighlighter table caption {
text-align: left !important;
padding: .5em 0 0.5em 1em !important;
}
.syntaxhighlighter table td.code {
width: 100% !important;
}
.syntaxhighlighter table td.code .container {
position: relative !important;
}
.syntaxhighlighter table td.code .container textarea {
box-sizing: border-box !important;
position: absolute !important;
left: 0 !important;
top: 0 !important;
width: 100% !important;
height: 100% !important;
border: none !important;
background: white !important;
padding-left: 1em !important;
overflow: hidden !important;
white-space: pre !important;
}
.syntaxhighlighter table td.gutter .line {
text-align: right !important;
padding: 0 0.5em 0 1em !important;
}
.syntaxhighlighter table td.code .line {
padding: 0 1em !important;
}
.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
padding-left: 0em !important;
}
.syntaxhighlighter.show {
display: block !important;
}
.syntaxhighlighter.collapsed table {
display: none !important;
}
.syntaxhighlighter.collapsed .toolbar {
padding: 0.1em 0.8em 0em 0.8em !important;
font-size: 1em !important;
position: static !important;
width: auto !important;
height: auto !important;
}
.syntaxhighlighter.collapsed .toolbar span {
display: inline !important;
margin-right: 1em !important;
}
.syntaxhighlighter.collapsed .toolbar span a {
padding: 0 !important;
display: none !important;
}
.syntaxhighlighter.collapsed .toolbar span a.expandSource {
display: inline !important;
}
.syntaxhighlighter .toolbar {
position: absolute !important;
right: 1px !important;
top: 1px !important;
width: 11px !important;
height: 11px !important;
font-size: 10px !important;
z-index: 10 !important;
}
.syntaxhighlighter .toolbar span.title {
display: inline !important;
}
.syntaxhighlighter .toolbar a {
display: block !important;
text-align: center !important;
text-decoration: none !important;
padding-top: 1px !important;
}
.syntaxhighlighter .toolbar a.expandSource {
display: none !important;
}
.syntaxhighlighter.ie {
font-size: .9em !important;
padding: 1px 0 1px 0 !important;
}
.syntaxhighlighter.ie .toolbar {
line-height: 8px !important;
}
.syntaxhighlighter.ie .toolbar a {
padding-top: 0px !important;
}
.syntaxhighlighter.printing .line.alt1 .content,
.syntaxhighlighter.printing .line.alt2 .content,
.syntaxhighlighter.printing .line.highlighted .number,
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
.syntaxhighlighter.printing .line.highlighted.alt2 .content {
background: none !important;
}
.syntaxhighlighter.printing .line .number {
color: #bbbbbb !important;
}
.syntaxhighlighter.printing .line .content {
color: black !important;
}
.syntaxhighlighter.printing .toolbar {
display: none !important;
}
.syntaxhighlighter.printing a {
text-decoration: none !important;
}
.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
color: black !important;
}
.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
color: #008200 !important;
}
.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
color: blue !important;
}
.syntaxhighlighter.printing .keyword {
color: #006699 !important;
font-weight: bold !important;
}
.syntaxhighlighter.printing .preprocessor {
color: gray !important;
}
.syntaxhighlighter.printing .variable {
color: #aa7700 !important;
}
.syntaxhighlighter.printing .value {
color: #009900 !important;
}
.syntaxhighlighter.printing .functions {
color: #ff1493 !important;
}
.syntaxhighlighter.printing .constants {
color: #0066cc !important;
}
.syntaxhighlighter.printing .script {
font-weight: bold !important;
}
.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
color: gray !important;
}
.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
color: #ff1493 !important;
}
.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
color: red !important;
}
.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
color: black !important;
}
/*}}}*/
/***
|Name|ShCore.js|
***/
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
//{{{
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('K M;I(M)1S 2U("2a\'t 4k M 4K 2g 3l 4G 4H");(6(){6 r(f,e){I(!M.1R(f))1S 3m("3s 15 4R");K a=f.1w;f=M(f.1m,t(f)+(e||""));I(a)f.1w={1m:a.1m,19:a.19?a.19.1a(0):N};H f}6 t(f){H(f.1J?"g":"")+(f.4s?"i":"")+(f.4p?"m":"")+(f.4v?"x":"")+(f.3n?"y":"")}6 B(f,e,a,b){K c=u.L,d,h,g;v=R;5K{O(;c--;){g=u[c];I(a&g.3r&&(!g.2p||g.2p.W(b))){g.2q.12=e;I((h=g.2q.X(f))&&h.P===e){d={3k:g.2b.W(b,h,a),1C:h};1N}}}}5v(i){1S i}5q{v=11}H d}6 p(f,e,a){I(3b.Z.1i)H f.1i(e,a);O(a=a||0;a<f.L;a++)I(f[a]===e)H a;H-1}M=6(f,e){K a=[],b=M.1B,c=0,d,h;I(M.1R(f)){I(e!==1d)1S 3m("2a\'t 5r 5I 5F 5B 5C 15 5E 5p");H r(f)}I(v)1S 2U("2a\'t W 3l M 59 5m 5g 5x 5i");e=e||"";O(d={2N:11,19:[],2K:6(g){H e.1i(g)>-1},3d:6(g){e+=g}};c<f.L;)I(h=B(f,c,b,d)){a.U(h.3k);c+=h.1C[0].L||1}Y I(h=n.X.W(z[b],f.1a(c))){a.U(h[0]);c+=h[0].L}Y{h=f.3a(c);I(h==="[")b=M.2I;Y I(h==="]")b=M.1B;a.U(h);c++}a=15(a.1K(""),n.Q.W(e,w,""));a.1w={1m:f,19:d.2N?d.19:N};H a};M.3v="1.5.0";M.2I=1;M.1B=2;K C=/\\$(?:(\\d\\d?|[$&`\'])|{([$\\w]+)})/g,w=/[^5h]+|([\\s\\S])(?=[\\s\\S]*\\1)/g,A=/^(?:[?*+]|{\\d+(?:,\\d*)?})\\??/,v=11,u=[],n={X:15.Z.X,1A:15.Z.1A,1C:1r.Z.1C,Q:1r.Z.Q,1e:1r.Z.1e},x=n.X.W(/()??/,"")[1]===1d,D=6(){K f=/^/g;n.1A.W(f,"");H!f.12}(),y=6(){K f=/x/g;n.Q.W("x",f,"");H!f.12}(),E=15.Z.3n!==1d,z={};z[M.2I]=/^(?:\\\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\\29-26-f]{2}|u[\\29-26-f]{4}|c[A-3o-z]|[\\s\\S]))/;z[M.1B]=/^(?:\\\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\\d*|x[\\29-26-f]{2}|u[\\29-26-f]{4}|c[A-3o-z]|[\\s\\S])|\\(\\?[:=!]|[?*+]\\?|{\\d+(?:,\\d*)?}\\??)/;M.1h=6(f,e,a,b){u.U({2q:r(f,"g"+(E?"y":"")),2b:e,3r:a||M.1B,2p:b||N})};M.2n=6(f,e){K a=f+"/"+(e||"");H M.2n[a]||(M.2n[a]=M(f,e))};M.3c=6(f){H r(f,"g")};M.5l=6(f){H f.Q(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g,"\\\\$&")};M.5e=6(f,e,a,b){e=r(e,"g"+(b&&E?"y":""));e.12=a=a||0;f=e.X(f);H b?f&&f.P===a?f:N:f};M.3q=6(){M.1h=6(){1S 2U("2a\'t 55 1h 54 3q")}};M.1R=6(f){H 53.Z.1q.W(f)==="[2m 15]"};M.3p=6(f,e,a,b){O(K c=r(e,"g"),d=-1,h;h=c.X(f);){a.W(b,h,++d,f,c);c.12===h.P&&c.12++}I(e.1J)e.12=0};M.57=6(f,e){H 6 a(b,c){K d=e[c].1I?e[c]:{1I:e[c]},h=r(d.1I,"g"),g=[],i;O(i=0;i<b.L;i++)M.3p(b[i],h,6(k){g.U(d.3j?k[d.3j]||"":k[0])});H c===e.L-1||!g.L?g:a(g,c+1)}([f],0)};15.Z.1p=6(f,e){H J.X(e[0])};15.Z.W=6(f,e){H J.X(e)};15.Z.X=6(f){K e=n.X.1p(J,14),a;I(e){I(!x&&e.L>1&&p(e,"")>-1){a=15(J.1m,n.Q.W(t(J),"g",""));n.Q.W(f.1a(e.P),a,6(){O(K c=1;c<14.L-2;c++)I(14[c]===1d)e[c]=1d})}I(J.1w&&J.1w.19)O(K b=1;b<e.L;b++)I(a=J.1w.19[b-1])e[a]=e[b];!D&&J.1J&&!e[0].L&&J.12>e.P&&J.12--}H e};I(!D)15.Z.1A=6(f){(f=n.X.W(J,f))&&J.1J&&!f[0].L&&J.12>f.P&&J.12--;H!!f};1r.Z.1C=6(f){M.1R(f)||(f=15(f));I(f.1J){K e=n.1C.1p(J,14);f.12=0;H e}H f.X(J)};1r.Z.Q=6(f,e){K a=M.1R(f),b,c;I(a&&1j e.58()==="3f"&&e.1i("${")===-1&&y)H n.Q.1p(J,14);I(a){I(f.1w)b=f.1w.19}Y f+="";I(1j e==="6")c=n.Q.W(J,f,6(){I(b){14[0]=1f 1r(14[0]);O(K d=0;d<b.L;d++)I(b[d])14[0][b[d]]=14[d+1]}I(a&&f.1J)f.12=14[14.L-2]+14[0].L;H e.1p(N,14)});Y{c=J+"";c=n.Q.W(c,f,6(){K d=14;H n.Q.W(e,C,6(h,g,i){I(g)5b(g){24"$":H"$";24"&":H d[0];24"`":H d[d.L-1].1a(0,d[d.L-2]);24"\'":H d[d.L-1].1a(d[d.L-2]+d[0].L);5a:i="";g=+g;I(!g)H h;O(;g>d.L-3;){i=1r.Z.1a.W(g,-1)+i;g=1Q.3i(g/10)}H(g?d[g]||"":"$")+i}Y{g=+i;I(g<=d.L-3)H d[g];g=b?p(b,i):-1;H g>-1?d[g+1]:h}})})}I(a&&f.1J)f.12=0;H c};1r.Z.1e=6(f,e){I(!M.1R(f))H n.1e.1p(J,14);K a=J+"",b=[],c=0,d,h;I(e===1d||+e<0)e=5D;Y{e=1Q.3i(+e);I(!e)H[]}O(f=M.3c(f);d=f.X(a);){I(f.12>c){b.U(a.1a(c,d.P));d.L>1&&d.P<a.L&&3b.Z.U.1p(b,d.1a(1));h=d[0].L;c=f.12;I(b.L>=e)1N}f.12===d.P&&f.12++}I(c===a.L){I(!n.1A.W(f,"")||h)b.U("")}Y b.U(a.1a(c));H b.L>e?b.1a(0,e):b};M.1h(/\\(\\?#[^)]*\\)/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"});M.1h(/\\((?!\\?)/,6(){J.19.U(N);H"("});M.1h(/\\(\\?<([$\\w]+)>/,6(f){J.19.U(f[1]);J.2N=R;H"("});M.1h(/\\\\k<([\\w$]+)>/,6(f){K e=p(J.19,f[1]);H e>-1?"\\\\"+(e+1)+(3R(f.2S.3a(f.P+f[0].L))?"":"(?:)"):f[0]});M.1h(/\\[\\^?]/,6(f){H f[0]==="[]"?"\\\\b\\\\B":"[\\\\s\\\\S]"});M.1h(/^\\(\\?([5A]+)\\)/,6(f){J.3d(f[1]);H""});M.1h(/(?:\\s+|#.*)+/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"},M.1B,6(){H J.2K("x")});M.1h(/\\./,6(){H"[\\\\s\\\\S]"},M.1B,6(){H J.2K("s")})})();1j 2e!="1d"&&(2e.M=M);K 1v=6(){6 r(a,b){a.1l.1i(b)!=-1||(a.1l+=" "+b)}6 t(a){H a.1i("3e")==0?a:"3e"+a}6 B(a){H e.1Y.2A[t(a)]}6 p(a,b,c){I(a==N)H N;K d=c!=R?a.3G:[a.2G],h={"#":"1c",".":"1l"}[b.1o(0,1)]||"3h",g,i;g=h!="3h"?b.1o(1):b.5u();I((a[h]||"").1i(g)!=-1)H a;O(a=0;d&&a<d.L&&i==N;a++)i=p(d[a],b,c);H i}6 C(a,b){K c={},d;O(d 2g a)c[d]=a[d];O(d 2g b)c[d]=b[d];H c}6 w(a,b,c,d){6 h(g){g=g||1P.5y;I(!g.1F){g.1F=g.52;g.3N=6(){J.5w=11}}c.W(d||1P,g)}a.3g?a.3g("4U"+b,h):a.4y(b,h,11)}6 A(a,b){K c=e.1Y.2j,d=N;I(c==N){c={};O(K h 2g e.1U){K g=e.1U[h];d=g.4x;I(d!=N){g.1V=h.4w();O(g=0;g<d.L;g++)c[d[g]]=h}}e.1Y.2j=c}d=e.1U[c[a]];d==N&&b!=11&&1P.1X(e.13.1x.1X+(e.13.1x.3E+a));H d}6 v(a,b){O(K c=a.1e("\\n"),d=0;d<c.L;d++)c[d]=b(c[d],d);H c.1K("\\n")}6 u(a,b){I(a==N||a.L==0||a=="\\n")H a;a=a.Q(/</g,"&1y;");a=a.Q(/ {2,}/g,6(c){O(K d="",h=0;h<c.L-1;h++)d+=e.13.1W;H d+" "});I(b!=N)a=v(a,6(c){I(c.L==0)H"";K d="";c=c.Q(/^(&2s;| )+/,6(h){d=h;H""});I(c.L==0)H d;H d+\'<17 1g="\'+b+\'">\'+c+"</17>"});H a}6 n(a,b){a.1e("\\n");O(K c="",d=0;d<50;d++)c+=" ";H a=v(a,6(h){I(h.1i("\\t")==-1)H h;O(K g=0;(g=h.1i("\\t"))!=-1;)h=h.1o(0,g)+c.1o(0,b-g%b)+h.1o(g+1,h.L);H h})}6 x(a){H a.Q(/^\\s+|\\s+$/g,"")}6 D(a,b){I(a.P<b.P)H-1;Y I(a.P>b.P)H 1;Y I(a.L<b.L)H-1;Y I(a.L>b.L)H 1;H 0}6 y(a,b){6 c(k){H k[0]}O(K d=N,h=[],g=b.2D?b.2D:c;(d=b.1I.X(a))!=N;){K i=g(d,b);I(1j i=="3f")i=[1f e.2L(i,d.P,b.23)];h=h.1O(i)}H h}6 E(a){K b=/(.*)((&1G;|&1y;).*)/;H a.Q(e.3A.3M,6(c){K d="",h=N;I(h=b.X(c)){c=h[1];d=h[2]}H\'<a 2h="\'+c+\'">\'+c+"</a>"+d})}6 z(){O(K a=1E.36("1k"),b=[],c=0;c<a.L;c++)a[c].3s=="20"&&b.U(a[c]);H b}6 f(a){a=a.1F;K b=p(a,".20",R);a=p(a,".3O",R);K c=1E.4i("3t");I(!(!a||!b||p(a,"3t"))){B(b.1c);r(b,"1m");O(K d=a.3G,h=[],g=0;g<d.L;g++)h.U(d[g].4z||d[g].4A);h=h.1K("\\r");c.39(1E.4D(h));a.39(c);c.2C();c.4C();w(c,"4u",6(){c.2G.4E(c);b.1l=b.1l.Q("1m","")})}}I(1j 3F!="1d"&&1j M=="1d")M=3F("M").M;K e={2v:{"1g-27":"","2i-1s":1,"2z-1s-2t":11,1M:N,1t:N,"42-45":R,"43-22":4,1u:R,16:R,"3V-17":R,2l:11,"41-40":R,2k:11,"1z-1k":11},13:{1W:"&2s;",2M:R,46:11,44:11,34:"4n",1x:{21:"4o 1m",2P:"?",1X:"1v\\n\\n",3E:"4r\'t 4t 1D O: ",4g:"4m 4B\'t 51 O 1z-1k 4F: ",37:\'<!4T 1z 4S "-//4V//3H 4W 1.0 4Z//4Y" "1Z://2y.3L.3K/4X/3I/3H/3I-4P.4J"><1z 4I="1Z://2y.3L.3K/4L/5L"><3J><4N 1Z-4M="5G-5M" 6K="2O/1z; 6J=6I-8" /><1t>6L 1v</1t></3J><3B 1L="25-6M:6Q,6P,6O,6N-6F;6y-2f:#6x;2f:#6w;25-22:6v;2O-3D:3C;"><T 1L="2O-3D:3C;3w-32:1.6z;"><T 1L="25-22:6A-6E;">1v</T><T 1L="25-22:.6C;3w-6B:6R;"><T>3v 3.0.76 (72 73 3x)</T><T><a 2h="1Z://3u.2w/1v" 1F="38" 1L="2f:#3y">1Z://3u.2w/1v</a></T><T>70 17 6U 71.</T><T>6T 6X-3x 6Y 6D.</T></T><T>6t 61 60 J 1k, 5Z <a 2h="6u://2y.62.2w/63-66/65?64=5X-5W&5P=5O" 1L="2f:#3y">5R</a> 5V <2R/>5U 5T 5S!</T></T></3B></1z>\'}},1Y:{2j:N,2A:{}},1U:{},3A:{6n:/\\/\\*[\\s\\S]*?\\*\\//2c,6m:/\\/\\/.*$/2c,6l:/#.*$/2c,6k:/"([^\\\\"\\n]|\\\\.)*"/g,6o:/\'([^\\\\\'\\n]|\\\\.)*\'/g,6p:1f M(\'"([^\\\\\\\\"]|\\\\\\\\.)*"\',"3z"),6s:1f M("\'([^\\\\\\\\\']|\\\\\\\\.)*\'","3z"),6q:/(&1y;|<)!--[\\s\\S]*?--(&1G;|>)/2c,3M:/\\w+:\\/\\/[\\w-.\\/?%&=:@;]*/g,6a:{18:/(&1y;|<)\\?=?/g,1b:/\\?(&1G;|>)/g},69:{18:/(&1y;|<)%=?/g,1b:/%(&1G;|>)/g},6d:{18:/(&1y;|<)\\s*1k.*?(&1G;|>)/2T,1b:/(&1y;|<)\\/\\s*1k\\s*(&1G;|>)/2T}},16:{1H:6(a){6 b(i,k){H e.16.2o(i,k,e.13.1x[k])}O(K c=\'<T 1g="16">\',d=e.16.2x,h=d.2X,g=0;g<h.L;g++)c+=(d[h[g]].1H||b)(a,h[g]);c+="</T>";H c},2o:6(a,b,c){H\'<2W><a 2h="#" 1g="6e 6h\'+b+" "+b+\'">\'+c+"</a></2W>"},2b:6(a){K b=a.1F,c=b.1l||"";b=B(p(b,".20",R).1c);K d=6(h){H(h=15(h+"6f(\\\\w+)").X(c))?h[1]:N}("6g");b&&d&&e.16.2x[d].2B(b);a.3N()},2x:{2X:["21","2P"],21:{1H:6(a){I(a.V("2l")!=R)H"";K b=a.V("1t");H e.16.2o(a,"21",b?b:e.13.1x.21)},2B:6(a){a=1E.6j(t(a.1c));a.1l=a.1l.Q("47","")}},2P:{2B:6(){K a="68=0";a+=", 18="+(31.30-33)/2+", 32="+(31.2Z-2Y)/2+", 30=33, 2Z=2Y";a=a.Q(/^,/,"");a=1P.6Z("","38",a);a.2C();K b=a.1E;b.6W(e.13.1x.37);b.6V();a.2C()}}}},35:6(a,b){K c;I(b)c=[b];Y{c=1E.36(e.13.34);O(K d=[],h=0;h<c.L;h++)d.U(c[h]);c=d}c=c;d=[];I(e.13.2M)c=c.1O(z());I(c.L===0)H d;O(h=0;h<c.L;h++){O(K g=c[h],i=a,k=c[h].1l,j=3W 0,l={},m=1f M("^\\\\[(?<2V>(.*?))\\\\]$"),s=1f M("(?<27>[\\\\w-]+)\\\\s*:\\\\s*(?<1T>[\\\\w-%#]+|\\\\[.*?\\\\]|\\".*?\\"|\'.*?\')\\\\s*;?","g");(j=s.X(k))!=N;){K o=j.1T.Q(/^[\'"]|[\'"]$/g,"");I(o!=N&&m.1A(o)){o=m.X(o);o=o.2V.L>0?o.2V.1e(/\\s*,\\s*/):[]}l[j.27]=o}g={1F:g,1n:C(i,l)};g.1n.1D!=N&&d.U(g)}H d},1M:6(a,b){K c=J.35(a,b),d=N,h=e.13;I(c.L!==0)O(K g=0;g<c.L;g++){b=c[g];K i=b.1F,k=b.1n,j=k.1D,l;I(j!=N){I(k["1z-1k"]=="R"||e.2v["1z-1k"]==R){d=1f e.4l(j);j="4O"}Y I(d=A(j))d=1f d;Y 6H;l=i.3X;I(h.2M){l=l;K m=x(l),s=11;I(m.1i("<![6G[")==0){m=m.4h(9);s=R}K o=m.L;I(m.1i("]]\\>")==o-3){m=m.4h(0,o-3);s=R}l=s?m:l}I((i.1t||"")!="")k.1t=i.1t;k.1D=j;d.2Q(k);b=d.2F(l);I((i.1c||"")!="")b.1c=i.1c;i.2G.74(b,i)}}},2E:6(a){w(1P,"4k",6(){e.1M(a)})}};e.2E=e.2E;e.1M=e.1M;e.2L=6(a,b,c){J.1T=a;J.P=b;J.L=a.L;J.23=c;J.1V=N};e.2L.Z.1q=6(){H J.1T};e.4l=6(a){6 b(j,l){O(K m=0;m<j.L;m++)j[m].P+=l}K c=A(a),d,h=1f e.1U.5Y,g=J,i="2F 1H 2Q".1e(" ");I(c!=N){d=1f c;O(K k=0;k<i.L;k++)(6(){K j=i[k];g[j]=6(){H h[j].1p(h,14)}})();d.28==N?1P.1X(e.13.1x.1X+(e.13.1x.4g+a)):h.2J.U({1I:d.28.17,2D:6(j){O(K l=j.17,m=[],s=d.2J,o=j.P+j.18.L,F=d.28,q,G=0;G<s.L;G++){q=y(l,s[G]);b(q,o);m=m.1O(q)}I(F.18!=N&&j.18!=N){q=y(j.18,F.18);b(q,j.P);m=m.1O(q)}I(F.1b!=N&&j.1b!=N){q=y(j.1b,F.1b);b(q,j.P+j[0].5Q(j.1b));m=m.1O(q)}O(j=0;j<m.L;j++)m[j].1V=c.1V;H m}})}};e.4j=6(){};e.4j.Z={V:6(a,b){K c=J.1n[a];c=c==N?b:c;K d={"R":R,"11":11}[c];H d==N?c:d},3Y:6(a){H 1E.4i(a)},4c:6(a,b){K c=[];I(a!=N)O(K d=0;d<a.L;d++)I(1j a[d]=="2m")c=c.1O(y(b,a[d]));H J.4e(c.6b(D))},4e:6(a){O(K b=0;b<a.L;b++)I(a[b]!==N)O(K c=a[b],d=c.P+c.L,h=b+1;h<a.L&&a[b]!==N;h++){K g=a[h];I(g!==N)I(g.P>d)1N;Y I(g.P==c.P&&g.L>c.L)a[b]=N;Y I(g.P>=c.P&&g.P<d)a[h]=N}H a},4d:6(a){K b=[],c=2u(J.V("2i-1s"));v(a,6(d,h){b.U(h+c)});H b},3U:6(a){K b=J.V("1M",[]);I(1j b!="2m"&&b.U==N)b=[b];a:{a=a.1q();K c=3W 0;O(c=c=1Q.6c(c||0,0);c<b.L;c++)I(b[c]==a){b=c;1N a}b=-1}H b!=-1},2r:6(a,b,c){a=["1s","6i"+b,"P"+a,"6r"+(b%2==0?1:2).1q()];J.3U(b)&&a.U("67");b==0&&a.U("1N");H\'<T 1g="\'+a.1K(" ")+\'">\'+c+"</T>"},3Q:6(a,b){K c="",d=a.1e("\\n").L,h=2u(J.V("2i-1s")),g=J.V("2z-1s-2t");I(g==R)g=(h+d-1).1q().L;Y I(3R(g)==R)g=0;O(K i=0;i<d;i++){K k=b?b[i]:h+i,j;I(k==0)j=e.13.1W;Y{j=g;O(K l=k.1q();l.L<j;)l="0"+l;j=l}a=j;c+=J.2r(i,k,a)}H c},49:6(a,b){a=x(a);K c=a.1e("\\n");J.V("2z-1s-2t");K d=2u(J.V("2i-1s"));a="";O(K h=J.V("1D"),g=0;g<c.L;g++){K i=c[g],k=/^(&2s;|\\s)+/.X(i),j=N,l=b?b[g]:d+g;I(k!=N){j=k[0].1q();i=i.1o(j.L);j=j.Q(" ",e.13.1W)}i=x(i);I(i.L==0)i=e.13.1W;a+=J.2r(g,l,(j!=N?\'<17 1g="\'+h+\' 5N">\'+j+"</17>":"")+i)}H a},4f:6(a){H a?"<4a>"+a+"</4a>":""},4b:6(a,b){6 c(l){H(l=l?l.1V||g:g)?l+" ":""}O(K d=0,h="",g=J.V("1D",""),i=0;i<b.L;i++){K k=b[i],j;I(!(k===N||k.L===0)){j=c(k);h+=u(a.1o(d,k.P-d),j+"48")+u(k.1T,j+k.23);d=k.P+k.L+(k.75||0)}}h+=u(a.1o(d),c()+"48");H h},1H:6(a){K b="",c=["20"],d;I(J.V("2k")==R)J.1n.16=J.1n.1u=11;1l="20";J.V("2l")==R&&c.U("47");I((1u=J.V("1u"))==11)c.U("6S");c.U(J.V("1g-27"));c.U(J.V("1D"));a=a.Q(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"").Q(/\\r/g," ");b=J.V("43-22");I(J.V("42-45")==R)a=n(a,b);Y{O(K h="",g=0;g<b;g++)h+=" ";a=a.Q(/\\t/g,h)}a=a;a:{b=a=a;h=/<2R\\s*\\/?>|&1y;2R\\s*\\/?&1G;/2T;I(e.13.46==R)b=b.Q(h,"\\n");I(e.13.44==R)b=b.Q(h,"");b=b.1e("\\n");h=/^\\s*/;g=4Q;O(K i=0;i<b.L&&g>0;i++){K k=b[i];I(x(k).L!=0){k=h.X(k);I(k==N){a=a;1N a}g=1Q.4q(k[0].L,g)}}I(g>0)O(i=0;i<b.L;i++)b[i]=b[i].1o(g);a=b.1K("\\n")}I(1u)d=J.4d(a);b=J.4c(J.2J,a);b=J.4b(a,b);b=J.49(b,d);I(J.V("41-40"))b=E(b);1j 2H!="1d"&&2H.3S&&2H.3S.1C(/5s/)&&c.U("5t");H b=\'<T 1c="\'+t(J.1c)+\'" 1g="\'+c.1K(" ")+\'">\'+(J.V("16")?e.16.1H(J):"")+\'<3Z 5z="0" 5H="0" 5J="0">\'+J.4f(J.V("1t"))+"<3T><3P>"+(1u?\'<2d 1g="1u">\'+J.3Q(a)+"</2d>":"")+\'<2d 1g="17"><T 1g="3O">\'+b+"</T></2d></3P></3T></3Z></T>"},2F:6(a){I(a===N)a="";J.17=a;K b=J.3Y("T");b.3X=J.1H(a);J.V("16")&&w(p(b,".16"),"5c",e.16.2b);J.V("3V-17")&&w(p(b,".17"),"56",f);H b},2Q:6(a){J.1c=""+1Q.5d(1Q.5n()*5k).1q();e.1Y.2A[t(J.1c)]=J;J.1n=C(e.2v,a||{});I(J.V("2k")==R)J.1n.16=J.1n.1u=11},5j:6(a){a=a.Q(/^\\s+|\\s+$/g,"").Q(/\\s+/g,"|");H"\\\\b(?:"+a+")\\\\b"},5f:6(a){J.28={18:{1I:a.18,23:"1k"},1b:{1I:a.1b,23:"1k"},17:1f M("(?<18>"+a.18.1m+")(?<17>.*?)(?<1b>"+a.1b.1m+")","5o")}}};H e}();1j 2e!="1d"&&(2e.1v=1v);',62,441,'||||||function|||||||||||||||||||||||||||||||||||||return|if|this|var|length|XRegExp|null|for|index|replace|true||div|push|getParam|call|exec|else|prototype||false|lastIndex|config|arguments|RegExp|toolbar|code|left|captureNames|slice|right|id|undefined|split|new|class|addToken|indexOf|typeof|script|className|source|params|substr|apply|toString|String|line|title|gutter|SyntaxHighlighter|_xregexp|strings|lt|html|test|OUTSIDE_CLASS|match|brush|document|target|gt|getHtml|regex|global|join|style|highlight|break|concat|window|Math|isRegExp|throw|value|brushes|brushName|space|alert|vars|http|syntaxhighlighter|expandSource|size|css|case|font|Fa|name|htmlScript|dA|can|handler|gm|td|exports|color|in|href|first|discoveredBrushes|light|collapse|object|cache|getButtonHtml|trigger|pattern|getLineHtml|nbsp|numbers|parseInt|defaults|com|items|www|pad|highlighters|execute|focus|func|all|getDiv|parentNode|navigator|INSIDE_CLASS|regexList|hasFlag|Match|useScriptTags|hasNamedCapture|text|help|init|br|input|gi|Error|values|span|list|250|height|width|screen|top|500|tagName|findElements|getElementsByTagName|aboutDialog|_blank|appendChild|charAt|Array|copyAsGlobal|setFlag|highlighter_|string|attachEvent|nodeName|floor|backref|output|the|TypeError|sticky|Za|iterate|freezeTokens|scope|type|textarea|alexgorbatchev|version|margin|2010|005896|gs|regexLib|body|center|align|noBrush|require|childNodes|DTD|xhtml1|head|org|w3|url|preventDefault|container|tr|getLineNumbersHtml|isNaN|userAgent|tbody|isLineHighlighted|quick|void|innerHTML|create|table|links|auto|smart|tab|stripBrs|tabs|bloggerMode|collapsed|plain|getCodeLinesHtml|caption|getMatchesHtml|findMatches|figureOutLineNumbers|removeNestedMatches|getTitleHtml|brushNotHtmlScript|substring|createElement|Highlighter|load|HtmlScript|Brush|pre|expand|multiline|min|Can|ignoreCase|find|blur|extended|toLowerCase|aliases|addEventListener|innerText|textContent|wasn|select|createTextNode|removeChild|option|same|frame|xmlns|dtd|twice|1999|equiv|meta|htmlscript|transitional|1E3|expected|PUBLIC|DOCTYPE|on|W3C|XHTML|TR|EN|Transitional||configured|srcElement|Object|after|run|dblclick|matchChain|valueOf|constructor|default|switch|click|round|execAt|forHtmlScript|token|gimy|functions|getKeywords|1E6|escape|within|random|sgi|another|finally|supply|MSIE|ie|toUpperCase|catch|returnValue|definition|event|border|imsx|constructing|one|Infinity|from|when|Content|cellpadding|flags|cellspacing|try|xhtml|Type|spaces|2930402|hosted_button_id|lastIndexOf|donate|active|development|keep|to|xclick|_s|Xml|please|like|you|paypal|cgi|cmd|webscr|bin|highlighted|scrollbars|aspScriptTags|phpScriptTags|sort|max|scriptScriptTags|toolbar_item|_|command|command_|number|getElementById|doubleQuotedString|singleLinePerlComments|singleLineCComments|multiLineCComments|singleQuotedString|multiLineDoubleQuotedString|xmlComments|alt|multiLineSingleQuotedString|If|https|1em|000|fff|background|5em|xx|bottom|75em|Gorbatchev|large|serif|CDATA|continue|utf|charset|content|About|family|sans|Helvetica|Arial|Geneva|3em|nogutter|Copyright|syntax|close|write|2004|Alex|open|JavaScript|highlighter|July|02|replaceChild|offset|83'.split('|'),0,{}))
//}}}
!! cheats (ctrl+a asignment)
| <kbd>CTRL</kbd>+<kbd>a</kbd> CODE | !Action |
| <kbd>n</kbd> | new |
| <kbd>TAB</kbd> | next subwindow |
| <kbd>SHIFT</kbd>+<kbd>TAB</kbd> | prev subwindow |
| <kbd>k</kbd> | kill tab |
| <kbd>A</kbd> | rename window |
| KEY | action |
| <kbd>F2</kbd> | new subwindow |
| <kbd>F3</kbd> | prev subwindow |
| <kbd>F4</kbd> | next subwindow |
!! regEx
| !''Action'' | | !''Syntax'' | | Example |
| | | | | |
| | | | | grep ... |
| | | | | ... |
| | | | | |
| !'' Starts With'' | | !''^'' | | !''^start'' |
| | | | | |
| | | | | |
| ''Ends With'' | | $ | | end$ |
| | | | | |
| !'' Contains one of'' | | !''[abc]'' | | !'' "Level "[123] '' |
| | | | | |
| Contains one of a Range | | [] with hyphen | | "Appendix [A-Z]" |
| !''Must not Contain<br>one of a Range'' | | ! ^ with [ ] | | !“Appendix [^A-C]”<br> will start with D |
| Contains <br>this or that | | \(abc\|xyz\) | | "\(entered\|left\)" |
| !Contains<br>this or that<br>(Modern with -E) | | !(abc|xyz) | | ! -E "(entered|left)" |
| Contains<br>this or that Range | | “^[^a-z A-Z]” | | “^[^a-z A-Z 0-9]” |
| !zero or more occurrences | | !* | | !"top 10*"<br> → top10 top100 |
| Nothing or any numbers of characters | | .* | | $.*anyStringInTheMiddle |
| | | | | |
| | | | | |
---
https://ryanstutorials.net/linuxtutorial/grep.php
https://www.geeksforgeeks.org/regular-expression-grep/
https://unix.stackexchange.com/questions/21764/grep-or-regex-problem
https://www.writebash.com/bash-gui/zenity-create-file-selection-dialog-224.html
https://linux.byexamples.com/archives/265/a-complete-zenity-dialog-examples-2/
https://stackoverflow.com/questions/16267042/bash-file-selection-by-multiple-patterns-in-zenity
https://askubuntu.com/questions/983418/zenity-multi-choice-from-keyboard
/*{{{*/
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
.syntaxhighlighter {
background-color: white !important;
}
.syntaxhighlighter .line.alt1 {
background-color: white !important;
}
.syntaxhighlighter .line.alt2 {
background-color: white !important;
}
.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
background-color: #e0e0e0 !important;
}
.syntaxhighlighter .line.highlighted.number {
color: black !important;
}
.syntaxhighlighter table caption {
color: black !important;
}
.syntaxhighlighter .gutter {
color: #afafaf !important;
}
.syntaxhighlighter .gutter .line {
border-right: 3px solid #6ce26c !important;
}
.syntaxhighlighter .gutter .line.highlighted {
background-color: #6ce26c !important;
color: white !important;
}
.syntaxhighlighter.printing .line .content {
border: none !important;
}
.syntaxhighlighter.collapsed {
overflow: visible !important;
}
.syntaxhighlighter.collapsed .toolbar {
color: blue !important;
background: white !important;
border: 1px solid #6ce26c !important;
}
.syntaxhighlighter.collapsed .toolbar a {
color: blue !important;
}
.syntaxhighlighter.collapsed .toolbar a:hover {
color: red !important;
}
.syntaxhighlighter .toolbar {
color: white !important;
background: #6ce26c !important;
border: none !important;
}
.syntaxhighlighter .toolbar a {
color: white !important;
}
.syntaxhighlighter .toolbar a:hover {
color: black !important;
}
.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
color: black !important;
}
.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
color: #008200 !important;
}
.syntaxhighlighter .string, .syntaxhighlighter .string a {
color: blue !important;
}
.syntaxhighlighter .keyword {
color: #006699 !important;
}
.syntaxhighlighter .preprocessor {
color: gray !important;
}
.syntaxhighlighter .variable {
color: #aa7700 !important;
}
.syntaxhighlighter .value {
color: #009900 !important;
}
.syntaxhighlighter .functions {
color: #ff1493 !important;
}
.syntaxhighlighter .constants {
color: #0066cc !important;
}
.syntaxhighlighter .script {
font-weight: bold !important;
color: #006699 !important;
background-color: none !important;
}
.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
color: gray !important;
}
.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
color: #ff1493 !important;
}
.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
color: red !important;
}
.syntaxhighlighter .keyword {
font-weight: bold !important;
}
/*}}}*/
/***
<<highlightSyntax>>
***/
/***
|Name|SinglePageModePlugin|
|Source|http://www.TiddlyTools.com/#SinglePageModePlugin|
|Documentation|http://www.TiddlyTools.com/#SinglePageModePluginInfo|
|Version|2.9.7|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|Show tiddlers one at a time with automatic permalink, or always open tiddlers at top/bottom of page.|
This plugin allows you to configure TiddlyWiki to navigate more like a traditional multipage web site with only one tiddler displayed at a time.
!!!!!Documentation
>see [[SinglePageModePluginInfo]]
!!!!!Configuration
<<<
<<option chkSinglePageMode>> Display one tiddler at a time
><<option chkSinglePagePermalink>> Automatically permalink current tiddler
><<option chkSinglePageKeepFoldedTiddlers>> Don't close tiddlers that are folded
><<option chkSinglePageKeepEditedTiddlers>> Don't close tiddlers that are being edited
<<option chkTopOfPageMode>> Open tiddlers at the top of the page
<<option chkBottomOfPageMode>> Open tiddlers at the bottom of the page
<<option chkSinglePageAutoScroll>> Automatically scroll tiddler into view (if needed)
Notes:
* The "display one tiddler at a time" option can also be //temporarily// set/reset by including a 'paramifier' in the document URL: {{{#SPM:true}}} or {{{#SPM:false}}}.
* If more than one display mode is selected, 'one at a time' display takes precedence over both 'top' and 'bottom' settings, and if 'one at a time' setting is not used, 'top of page' takes precedence over 'bottom of page'.
* When using Apple's Safari browser, automatically setting the permalink causes an error and is disabled.
<<<
!!!!!Revisions
<<<
2010.11.30 2.9.7 use story.getTiddler()
2008.10.17 2.9.6 changed chkSinglePageAutoScroll default to false
| Please see [[SinglePageModePluginInfo]] for previous revision details |
2005.08.15 1.0.0 Initial Release. Support for BACK/FORWARD buttons adapted from code developed by Clint Checketts.
<<<
!!!!!Code
***/
//{{{
version.extensions.SinglePageModePlugin= {major: 2, minor: 9, revision: 7, date: new Date(2010,11,30)};
//}}}
//{{{
config.paramifiers.SPM = { onstart: function(v) {
config.options.chkSinglePageMode=eval(v);
if (config.options.chkSinglePageMode && config.options.chkSinglePagePermalink && !config.browser.isSafari) {
config.lastURL = window.location.hash;
if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000);
}
} };
//}}}
//{{{
if (config.options.chkSinglePageMode==undefined)
config.options.chkSinglePageMode=false;
if (config.options.chkSinglePagePermalink==undefined)
config.options.chkSinglePagePermalink=true;
if (config.options.chkSinglePageKeepFoldedTiddlers==undefined)
config.options.chkSinglePageKeepFoldedTiddlers=false;
if (config.options.chkSinglePageKeepEditedTiddlers==undefined)
config.options.chkSinglePageKeepEditedTiddlers=false;
if (config.options.chkTopOfPageMode==undefined)
config.options.chkTopOfPageMode=false;
if (config.options.chkBottomOfPageMode==undefined)
config.options.chkBottomOfPageMode=false;
if (config.options.chkSinglePageAutoScroll==undefined)
config.options.chkSinglePageAutoScroll=false;
//}}}
//{{{
config.SPMTimer = 0;
config.lastURL = window.location.hash;
function checkLastURL()
{
if (!config.options.chkSinglePageMode)
{ window.clearInterval(config.SPMTimer); config.SPMTimer=0; return; }
if (config.lastURL == window.location.hash) return; // no change in hash
var tids=decodeURIComponent(window.location.hash.substr(1)).readBracketedList();
if (tids.length==1) // permalink (single tiddler in URL)
story.displayTiddler(null,tids[0]);
else { // restore permaview or default view
config.lastURL = window.location.hash;
if (!tids.length) tids=store.getTiddlerText("DefaultTiddlers").readBracketedList();
story.closeAllTiddlers();
story.displayTiddlers(null,tids);
}
}
if (Story.prototype.SPM_coreDisplayTiddler==undefined)
Story.prototype.SPM_coreDisplayTiddler=Story.prototype.displayTiddler;
Story.prototype.displayTiddler = function(srcElement,tiddler,template,animate,slowly)
{
var title=(tiddler instanceof Tiddler)?tiddler.title:tiddler;
var tiddlerElem=story.getTiddler(title); // ==null unless tiddler is already displayed
var opt=config.options;
var single=opt.chkSinglePageMode && !startingUp;
var top=opt.chkTopOfPageMode && !startingUp;
var bottom=opt.chkBottomOfPageMode && !startingUp;
if (single) {
story.forEachTiddler(function(tid,elem) {
// skip current tiddler and, optionally, tiddlers that are folded.
if ( tid==title
|| (opt.chkSinglePageKeepFoldedTiddlers && elem.getAttribute("folded")=="true"))
return;
// if a tiddler is being edited, ask before closing
if (elem.getAttribute("dirty")=="true") {
if (opt.chkSinglePageKeepEditedTiddlers) return;
// if tiddler to be displayed is already shown, then leave active tiddler editor as is
// (occurs when switching between view and edit modes)
if (tiddlerElem) return;
// otherwise, ask for permission
var msg="'"+tid+"' is currently being edited.\n\n";
msg+="Press OK to save and close this tiddler\nor press Cancel to leave it opened";
if (!confirm(msg)) return; else story.saveTiddler(tid);
}
story.closeTiddler(tid);
});
}
else if (top)
arguments[0]=null;
else if (bottom)
arguments[0]="bottom";
if (single && opt.chkSinglePagePermalink && !config.browser.isSafari) {
window.location.hash = encodeURIComponent(String.encodeTiddlyLink(title));
config.lastURL = window.location.hash;
document.title = wikifyPlain("SiteTitle") + " - " + title;
if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000);
}
if (tiddlerElem && tiddlerElem.getAttribute("dirty")=="true") { // editing... move tiddler without re-rendering
var isTopTiddler=(tiddlerElem.previousSibling==null);
if (!isTopTiddler && (single || top))
tiddlerElem.parentNode.insertBefore(tiddlerElem,tiddlerElem.parentNode.firstChild);
else if (bottom)
tiddlerElem.parentNode.insertBefore(tiddlerElem,null);
else this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler
} else
this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler
var tiddlerElem=story.getTiddler(title);
if (tiddlerElem&&opt.chkSinglePageAutoScroll) {
// scroll to top of page or top of tiddler
var isTopTiddler=(tiddlerElem.previousSibling==null);
var yPos=isTopTiddler?0:ensureVisible(tiddlerElem);
// if animating, defer scroll until after animation completes
var delay=opt.chkAnimate?config.animDuration+10:0;
setTimeout("window.scrollTo(0,"+yPos+")",delay);
}
}
if (Story.prototype.SPM_coreDisplayTiddlers==undefined)
Story.prototype.SPM_coreDisplayTiddlers=Story.prototype.displayTiddlers;
Story.prototype.displayTiddlers = function() {
// suspend single/top/bottom modes when showing multiple tiddlers
var opt=config.options;
var saveSPM=opt.chkSinglePageMode; opt.chkSinglePageMode=false;
var saveTPM=opt.chkTopOfPageMode; opt.chkTopOfPageMode=false;
var saveBPM=opt.chkBottomOfPageMode; opt.chkBottomOfPageMode=false;
this.SPM_coreDisplayTiddlers.apply(this,arguments);
opt.chkBottomOfPageMode=saveBPM;
opt.chkTopOfPageMode=saveTPM;
opt.chkSinglePageMode=saveSPM;
}
//}}}
`<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">`
<$list filter="[!is[system]!regexp[(?i)\$:/]][regexp[(?i)\.jpe?g$]]"> `<url> <loc>`<$view tiddler="$:/_siteURL"/><$view field="title" format="urlencoded"/>`</loc> <lastmod>`<$view field="modified" format="date" template="YYYY\-0MM\-0DD"/>`</lastmod> <changefreq>weekly</changefreq><priority>0.5</priority> </url> ` <br/></$list>
`</urlset>`
a ''T''iddlyWiki ''V''iew mode ''E''ditor
https://www.spinics.net/linux/fedora/alsa-user/msg09488.html
```
# /etc/asound.conf
#change sound card in alsa to number 1 instead of 0
defaults.pcm.card 1
defaults.ctl.card 1
##
```
https://unix.stackexchange.com/questions/21089/how-to-use-command-line-to-change-volume
```
#change on/off
#amixer set Master toggle
#-3db
amixer set Master 94%
amixer set PCM 100%
```
https://askubuntu.com/questions/150851/how-do-i-select-a-default-sound-card-with-alsa
https://superuser.com/questions/626606/how-to-make-alsa-pick-a-preferred-sound-device-automatically
https://linux.die.net/man/1/alsactl
normalize:
sox --norm=-1 −−multi−threaded --buffer 131072 infile.wav -b 24 outfile.wav rate 44100 dither −s
[1] http://sox.sourceforge.net/sox.html
<h2> Welcome to the Multiversity link, manual & HowTo section.</h2>
<h3>← This wiki is hopefully helpful to you , stay kind & careful → <br>
Press <kbd>Shift</kbd> + <kbd>Space</kbd> to ''launch and close'' Simple Search, toggle sidebar with ( <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>S</kbd> ) or the <kbd> << </kbd> Knob in the right upper corner for tools like tiddlymap. <br> Sidebar search is below as well<br>with empty Search field , press the black Magnifier icon to open [[Advanced Search|$:/AdvancedSearch]]</h3>
---
<center>
<h1>↓↓↓ Search↓↓↓</h1><h3>
<$set name="searchTiddler" value="$:/temp/search">
<div class="tc-search">
<$edit-text tiddler="$:/temp/search" type="search" tag="input"
focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify
"$:/state/popup/search-dropdown">> class="tc-popup-handle"/>
<$reveal state="$:/temp/search" type="nomatch" text="">
<$button popup=<<qualify "$:/state/popup/search-dropdown">>
class="tc-btn-invisible">
<$set name="resultCount" value="""<$count
filter="[!is[system]search{$(searchTiddler)$}]"/>""">
{{$:/core/images/down-arrow}} {{$:/language/Search/Matches}}
</$set>
</$button>
</$reveal>
<$reveal state="$:/temp/search" type="match" text="">
<$button to="$:/AdvancedSearch"
tooltip={{$:/language/Buttons/AdvancedSearch/Hint}}
aria-label={{$:/language/Buttons/AdvancedSearch/Caption}}
class="tc-btn-invisible">
{{$:/core/images/advanced-search-button}}
</$button>
</$reveal>
</div>
<$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/temp/search"
type="nomatch" text="">
<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down
tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">>
type="nomatch" text="" default="">
{{$:/core/ui/SearchResults}}
</$reveal>
</$reveal>
</$set>
</h3>
<h1>↑↑↑ Search ↑↑↑</h1>
{{{
---
}}}
<article class="hello"><p style="color:magenta">
<h1>↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓<br>→> !! don't be evil !! < ← <br>
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑</h1>
</p> </article>
<h2>
<kbd> [[Imprint:Disclaimer]]</kbd>
<← !READ! →>
<kbd> [[Comment:Policy]] </kbd>
</h2>
<h3>
<br> no warranty or whatever ,<b> YOU</b> are responsible if you screw up your home{Network|Planet] </h3>
<!-- This comment will not appear in the wikified output -->
<img src="https://c.statcounter.com/12150844/0/4a9a5f72/0/i.png" alt=" " height="1" width="1" border="0px" >
And don't forget your towel :D
</center>
syntax changed in mc client → policies->policy
https://docs.min.io/docs/minio-multi-user-quickstart-guide.html
https://github.com/minio/mc
https://github.com/minio/minio/issues/5947
- setup minio ( does not allow subvolumes, in the few cases , bind mounts should help → need to be mounted before containerd )
- get mc
- run mc once and update ~/.mc/config.json (e.g. "vi ~/.mc/config.json")
example with user named customer.name and site named local in ~/.mc/config.json :
we will generate a policy named like the user and the bucket has the same name
- generate json like:
```
############## backup.user-customer.name.json ###
{
"Version": "2012-10-17",
"Id": "backup.user-customer.name",
"Statement": [
{
"Sid": "ExampleStatement01",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::Account-ID:user/backup.user-customer.name"
},
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListMultipartUploadParts",
"s3:AbortMultipartUpload",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::backup.user-customer.name/*",
"arn:aws:s3:::backup.user-customer.name"
]
}
]
}
```
- run "./mc admin policy add local backup.user-customer.name backup.user-customer.name.json"
- run `'./mc admin user add local backup.user-customer.name $NEWUSERPASSWORD`
( system says: Added user `backup.user-customer.name` successfully. )
- run "./mc admin policy set local backup.user-customer.name user=backup.user-customer.name"
//{{{
body {-webkit-text-size-adjust:95%;}
#mainMenu {
width: 10%;
text-align:left;
padding:0.5em;
margin:0.5em;
font-size:1em;
}
#displayArea{
margin-left: 13%;
margin-right: 16%;
margin-top: 0;
}
#messageArea{
}
#tiddlerDisplay{
}
#sidebar {
width: 16%;
left:84%;
}
#sidebarOptions {
}
#sidebarTabs {
}
.editor textarea {
font-family: 'times';
}
.viewer {
font-family: 'times';
text-align:left;
}
.viewer h1, h2, h3, h4, h5 {
color: #014;
}
.viewer div.sliderPanel {
background-color: rgb(250,250,250);
}
.viewer .smaller {
font-size: 0.75em;
line-height: 1em;
}
.viewer .larger {
font-size: 1.25em;
line-height: 1.5em;
}
.viewer .Title {
text-align: center;
font-size: 1.5em;
font-weight: bold;
padding-left: 5%;
padding-right: 5%;
}
.viewer .SubTitle {
text-align: center;
font-size: 1.2em;
padding-left: 8%;
padding-right: 8%;
}
.viewer .Author {
font-size: 1.1em;
text-align: center;
padding-left: 5%;
padding-right: 5%;
}
.viewer .Affiliation, .viewer .Address {
list-style-position:inside;
font-size: 1.1em;
font-style: italic;
text-align: center;
padding-left: 5%;
padding-right: 5%;
}
.viewer .Abstract {
font-size: 1em;
padding-left: 10%;
padding-right: 10%;
text-align: justify;
text-justify: newspaper;
}
.viewer .Section {
font-size: 1.2em;
font-weight: bold;
text-transform: uppercase;
text-align: justify;
text-justify: newspaper;
}
.viewer .Paragraph {
text-indent: 1em;
text-align: justify;
text-justify: newspaper;
}
.viewer .divIndent {
margin-left: 4em;
}
.viewer .divNarrow {
margin-left: 4em;
margin-right: 4em;
}
.viewer .divIndentFirst {
text-indent: 2em;
}
.viewer .divCenter{
text-align: center;
}
.viewer .divRight {
text-align: right;
}
.oddRow {
background-color: #eee;
}
.evenRow {
background-color: #fff;
}
.FrameHalfLeft {
padding: 2px;
margin: 0px 10px 10px 0px;
width: 45.5%;
background-color: rgb(200, 200, 200);
border-style: groove;
font-size: 70%;
color: blue;
float: left;
text-align: left;
}
.FrameHalfRight {
padding: 2px;
margin: 0px 0px 10px 10px;
width: 45.5%;
background-color: rgb(200, 200, 200);
border-style: groove;
font-size: 70%;
color: blue;
float: right;
text-align: right;
}
.frame-half-left {
padding: 2px;
margin: 0px 10px 10px 0px;
width: 45.5%;
background-color: rgb(200, 200, 200);
border-style: groove;
font-size: 70%;
color: blue;
float: left;
text-align: left;
}
.frame-half-right {
padding: 2px;
margin: 0px 0px 10px 10px;
width: 45.5%;
background-color: rgb(200, 200, 200);
border-style: groove;
font-size: 70%;
color: blue;
float: right;
text-align: right;
}
.frame-small-left {
padding: 2px;
margin: 0px 10px 10px 0px;
width: 29.5%;
background-color: rgb(200, 200, 200);
border-style: groove;
font-size: 70%;
color: blue;
float: left;
text-align: left;
}
.frame-small-right {
padding: 2px;
margin: 0px 0px 10px 10px;
width: 29%;
background-color: rgb(200, 200, 200);
border-style: groove;
font-size: 70%;
color: blue;
float: right;
text-align: right;
}
.frame-major {
padding: 2px;
margin: 10px;
width: 90%;
background-color: rgb(200, 200, 200);
border-style: groove;
font-size: 70%;
color: blue;
float: none;
text-align: center;
}
.imageSpace {
margin: 0 0 2px 0;
background-color:rgb(240, 240, 240);
text-align: center;
border-style: groove;
}
.image-space {
margin: 0 0 2px 0;
background-color:rgb(240, 240, 240);
text-align: center;
border-style: groove;
}
.framed {
width: 86%;
margin: 0 0 0 0;
}
.cut-in {
padding: 20px;
border-width: 1px;
border-style: solid none solid none;"
}
.narrow {
padding: 0 15% 0 15%;
*padding: 0 9% 0 9%;
}
.narrower {
padding: 0 20% 0 20%;
*padding: 0 12% 0 12%;
}
.example{
background-color:black;
color:white;
font-size:0.7em;
}
.expression{
background-color:#555;
color:white;
font-size:0.7em;
}
.phonetic {
font-size:0.55em;
}
.noun {
background-color:black;
color:white;
}
//}}}
/***
|''Name''|SyntaxHighlighterPlugin3|
|''Description''|Enables syntax highlighting|
|''Author''|PMario|
|''Version''|0.2.1|
|''Status''|''beta''|
|''Source''|http://syntaxhighlighter.tiddlyspace.com/#SyntaxHighlighterPlugin3|
|''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]|
|''CoreVersion''|2.5.0|
|''Requires''|ShCore.js|
|''Keywords''|syntax highlighting color code|
!Documentation
*see: [[SyntaxHighlighterPlugin3Info]]
!Description
Enables syntax highlighting for <pre> and <code> blocks. Adds a new formatter for {{{<code class='brush:???'>}}}
!Usage
!!!!StyleSheet
<<<
*add this to your StyleSheet
{{{
[[ShCore.css]]
[[ShThemeDefault.css]]
}}}
<<<
!!!!Macro
<<<
*The macro is only needed if you have inline html blocks. see: [[SyntaxHighlighterPlugin3Info]]
<<<
!!!!ViewTemplate
<<<
*Same as macro, but will be executed automatically for every tiddler. see: [[SyntaxHighlighterPlugin3Info]]
<<<
!!!!Parameters
<<<
{{{<<highlightSyntax [tagName]>> }}}
*will render all blocks, with any defined tag name. eg: tagName = code.
*[tagName] is optional. Default is "pre".
<<<
!!!!Configuration options
<<<
Guess syntax: <<option chkGuessSyntax>> .. If activated, ~TiddlyWiky <pre> blocks will be rendered according to there block braces. see [[SyntaxHighlighterPlugin3Info]]
Expert mode: <<option chkExpertSyntax>> .. If activated, additional values below will be used. see [[SyntaxHighlighterPlugin3Info]]
{{{ {{{ }}} txtShText: <<option txtShText>> eg: 'brush:text tab-size:4 + options'
{{{ /*{{{* / }}} txtShCss: <<option txtShCss>> eg: 'brush:css + options'
{{{ //{{{ }}} txtShPlugin: <<option txtShPlugin>> 'brush:js + options'
{{{ <!--{{{-->> }}} txtShXml: <<option txtShXml>> 'brush:xml + options'
Additional options can be found at: [[SyntaxHighlighter homepage|http://alexgorbatchev.com/SyntaxHighlighter/manual/configuration/]]
<<<
!!!!Revision History
<<<
*V 0.2.1 2011-08-01
**fix wrong error text
*V 0.2.0 2010-08-22
**New formatter for {{{<code class='brush:???'>}}} is available now
**expert mode uses config options now
<<<
!!!!ToDo
<<<
*
<<<
!!!Code
***/
//{{{
version.extensions.SyntaxHighlighterPlugin3 = {major: 0, minor: 2, revision: 1, date: new Date(2011,8,1)};
(function($) {
if(!window.SyntaxHighlighter) {
throw "Missing dependency: ShCore.js (check brushes too)";
}
config.macros.highlightSyntax = {
getElementsByClass: function (searchClass,node,tag) {
var classElements = [];
if ( node == null ) node = document;
if ( tag == null ) tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^|\\s)"+searchClass+"(:|\\s|$)");
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
},
handler: function(place, macroName, params, wikifier, paramString, tiddler) {
// the configured tagName can be temporarily overwritten by the macro.
var tagName = params[0] || SyntaxHighlighter.config.tagName;
var arr = this.getElementsByClass('brush', story.findContainingTiddler(place), tagName);
for (i=0; i<arr.length; i++) {
SyntaxHighlighter.highlight(null, arr[i]);
}
} // handler
};
})(jQuery);
//}}}
/***
!!!!!New formatter for {{{<code class='brush:??'>}}}
***/
//{{{
config.formatters.push({
name: "highlightSyntax",
match: "^<code[\\s]+[^>]+>\\n",
element: "pre",
handler: function(w)
{
this.lookaheadRegExp = /<code[\s]+class.*=.*["'](.*)["'].*>\n((?:^[^\n]*\n)+?)(^<\/code>$\n?)/img;
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source);
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
var options = lookaheadMatch[1];
var text = lookaheadMatch[2];
if(config.browser.isIE)
text = text.replace(/\n/g,"\r");
var element = createTiddlyElement(w.output,this.element,null,options,text);
SyntaxHighlighter.highlight(null, element);
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
}
}
});
//}}}
/***
!!!!!Add class attribute to pre, if defined
***/
//{{{
(function(formatters) { //# set up alias
var helper = {};
helper.enclosedTextHelper = function(w){
var attr;
var co = config.options;
var expert = (co.chkExpertSyntax != undefined)? co.chkExpertSyntax : false;
var guess = (co.chkGuessSyntax != undefined)? co.chkGuessSyntax : true;
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source);
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
var text = lookaheadMatch[1];
if(config.browser.isIE)
text = text.replace(/\n/g,"\r");
switch(w.matchText) {
case "{{{\n": // text
attr = (expert) ? (co.txtShText) ? (co.txtShText) : 'brush:text' : 'brush:text' ;
break;
case "/*{{{*/\n": // CSS
attr = (expert) ? (co.txtShCss) ? (co.txtShCss) : 'brush:css' : 'brush:css';
break;
case "//{{{\n": // plugin
attr = (expert) ? (co.txtShPlugin) ? (co.txtShPlugin) : 'brush:js' : 'brush:js';
break;
case "<!--{{{-->\n": //template
attr = (expert) ? (co.txtShXml) ? (co.txtShXml) : 'brush:xml' : 'brush:xml';
break;
}
var element = createTiddlyElement(w.output,this.element,null,attr,text);
if (guess || expert) SyntaxHighlighter.highlight(null, element);
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
}
};
// merge the new helper function into formatterHelpers.
merge(config.formatterHelpers, helper);
})(config.formatters); //# end of alias
//}}}
|! Name | ROOT ? | !working (2020) |
|[[mobydroid|https://github.com/ibilux/MobyDroid]]| !<<no>> | ! <<yes>> |
|[[AAFM||https://github.com/sole/aafm]]| !<<no>> | (gets close)<<no>> |
| [[ QtADB | https://wiki.ubuntuusers.de/QtADB/ ]] | <<yes>> | <<no>> |
|[[ADB-GUI|https://github.com/yapplications/ADB-GUI]]| <<no>> | |
https://vimeo.com/177951809
https://www.lugs.ch/lib/vortraege/x230_coreboot_neuted_me.pdf
https://github.com/corna/me_cleaner/issues/3
https://mail.coreboot.org/pipermail/coreboot/2016-November/082347.html
https://hardenedlinux.github.io/firmware/2016/11/17/neutralize_ME_firmware_on_sandybridge_and_ivybridge.html
https://www.reddit.com/r/thinkpad/comments/7eyolp/removing_the_intel_me_on_an_x230_is_the_procedure/
!! shell
https://www.geeksforgeeks.org/how-to-fix-minimal-bash-like-line-editing-is-supported-grub-error-in-linux/
[find multiple]
https://www.unix.com/linux/137274-simplified-find-command-find-multiple-file-types.html
https://stackoverflow.com/questions/7190565/unix-find-multiple-file-types
---
[CRON JOBS]
. ~/.profile
source ~/.profile
OR DEFINE PATH
https://stackoverflow.com/questions/2388087/how-to-get-cron-to-call-in-the-correct-paths
https://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables
https://stackoverflow.com/questions/2229825/where-can-i-set-environment-variables-that-crontab-will-use
https://forum.ubuntuusers.de/topic/crontabs-in-etc-cron.d/
https://stackoverflow.com/questions/10129381/crontab-path-and-user
https://askubuntu.com/questions/85558/verify-if-crontab-works
http://cron.schlitt.info/index.php?cron=*%2F5+*%09*+*+*&iterations=10&test=Test
https://unix.stackexchange.com/questions/150546/crontab-error-with-no-mta-installed-but-i-use-dev-null-21
https://askubuntu.com/questions/892599/cron-job-log-reads-no-mta-installed-does-that-prevent-the-cron-job-from-finis
http://supervisord.org/configuration.html
http://supervisord.org/running.html
http://www.onurguzel.com/supervisord-restarting-and-reloading/
https://stackoverflow.com/questions/18859063/supervisor-socket-error-issue
https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps
https://bakerstreetsystems.com/blog/post/setting-laravels-queue-supervisor
https://serversforhackers.com/c/monitoring-processes-with-supervisord
specific device: https://askubuntu.com/questions/487139/how-to-prevent-a-partition-from-being-mounted-by-dolphin
```
udevadm info --attribute-walk --name=/dev/sdb
→find serial
```
```
sudo nano /etc/udev/rules.d/90-hide-disks.rules
```
`'ATTRS{serial}=="0000000000", ENV{UDISKS_IGNORE}="1"'`
```
sudo udevadm control --reload-rules
sudo udevadm trigger
```
BETTER:
`blkid /dev/sdb `
and then use `PARTUUID="12ab34cdef-1234-1234-1234-3c2b1a1b2c3d4"`
in /etc/udev/rules.d/90-hide-disks.rules
all devices: https://unix.stackexchange.com/questions/369154/disable-auto-mounting-in-ubuntu-16-04
https://btrfs.wiki.kernel.org/index.php/Compression
use compress=algo:level , e.g. compress=zstd:12
https://wiki.ubuntuusers.de/Installieren_auf_Btrfs-Dateisystem/
zstd
https://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git/commit/?h=next&id=5c1aab1dd5445ed8bdcdbb575abc1b0d7ee5b2e7
https://lkml.org/lkml/2019/1/28/1930
https://askubuntu.com/questions/129063/will-btrfs-automatically-compress-existing-files-when-compression-is-enabled
https://unix.stackexchange.com/questions/120188/is-there-any-way-in-btrfs-to-set-compression-permanently
https://unix.stackexchange.com/questions/412480/how-to-set-a-non-default-zstd-compression-level-at-btrfs-filesystem-defragment
https://unix.stackexchange.com/questions/412480/how-to-set-a-non-default-zstd-compression-level-at-btrfs-filesystem-defragment
!!setup
!!!!debian/ubuntu
https://www.thomas-krenn.com/de/wiki/Voll-verschl%C3%BCsseltes-System_via_SSH_freischalten
!!!alpine
| [[ @ docs.j7k6.org → LVM on LUKShttps:/docs.j7k6.org/alpine-linux-zfs-luks-fde/ - Alpine Linux |https://wiki.alpinelinux.org/wiki/LVM_on_LUKShttps://docs.j7k6.org/alpine-linux-zfs-luks-fde/ ]] |
| [[ 2020-03-19 @ wiki.alpinelinux.org → Setting up a laptop - Alpine Linux |https://wiki.alpinelinux.org/wiki/Setting_up_a_laptop#Full_disk_encryption_with_with_cryptsetup-luks_volumes ]] |
| [[ 2020-03-19 @ wiki.alpinelinux.org → LVM on LUKS - Alpine Linux |https://wiki.alpinelinux.org/wiki/LVM_on_LUKS ]] |
---
!!recovery
start live linux ,
then (simple example with sda1= boot and sda2=container, the container is named sda2_crypt in /etc/fstab and /etc/crypttab ) , install your fs drivers lin advance
```
mkdir /target/
luksOpen /dev/sda2 sda2_crypt
mount /dev/mapper/sda2_crypt /target
mount /dev/sda1 /target/boot
for mydir in proc sys dev ;do mount --bind /$mydir /target/mydir ;done
chroot /target
```
do whatever is necessary ( see below), finally
`update-initramfs -u -k all`
watch /etc/crypttab and /etc/fstab to be in sync ,
especially when updating initramfs via chroot
also watch `/boot/grub/grub.cfg` to have the root=UUID=blabla
of the inner luks/luks+lvm volume
check from inside chroot or
`apt-get install cryptsetup cryptsetup-bin `
if modules are missing: put into
`/etc/initramfs-tools/modules`
```
raid1
raid456
aes-x86_64
sha512-ssse3
xts
dm-mod
dm-crypt
```
sometimes you need to set
`CRYPTSETUP=y
`
lvm
| [[ 2017-05-16 @ feeding.cloud.geek.nz → Recovering from an unbootable Ubuntu encrypted LVM root partition |https://feeding.cloud.geek.nz/posts/recovering-from-unbootable-ubuntu-encrypted-lvm-root-partition/ ]] |
| [[ 2018-02-25 @ askubuntu.com → boot - How to fix a not booting ubuntu setup with encrypted root disk? - Ask Ubuntu |https://askubuntu.com/questions/1009646/how-to-fix-a-not-booting-ubuntu-setup-with-encrypted-root-disk ]] |
| [[ 2016-11-01 @ askubuntu.com → xubuntu - How to repair /boot on LUKS encrypted harddrive? - Ask Ubuntu |https://askubuntu.com/questions/844132/how-to-repair-boot-on-luks-encrypted-harddrive ]] |
ubuntu
| [[ 2016-07-28 @ askubuntu.com → 14.04 - boot - no LUKS password prompt - Ask Ubuntu |https://askubuntu.com/questions/803874/boot-no-luks-password-prompt ]] |
| [[ 2020-03-19 @ help.ubuntu.com → Full_Disk_Encryption_Howto_2019 - Community Help Wiki |https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019 ]] |
| [[ @ ubuntuforums.org → 403 Forbidden |https://ubuntuforums.org/showthread.php?t=2353595 ]] |
arch
| [[ 2020-03-19 @ wiki.archlinux.org → dm-crypt/System configuration - ArchWiki |https://wiki.archlinux.org/index.php/Dm-crypt/System_configuration ]] |
| [[ 2020-03-19 @ bbs.archlinux.org → [SOLVED]Device not found when attempting to boot to new LUKS partition / Newbie Corner / Arch Linux Forums |https://bbs.archlinux.org/viewtopic.php?id=247333 ]] |
simple luks container
| [[ 2015-01-12 @ unix.stackexchange.com → linux - /sbin/cryptsetup not found on boot - Unix & Linux Stack Exchange |https://unix.stackexchange.com/questions/178666/sbin-cryptsetup-not-found-on-boot ]] |
initd/grub update
| [[ 2017-06-02 @ askubuntu.com → grub2 - Update grub in a chroot environment with root on a luks encrypted volume - Ask Ubuntu |https://askubuntu.com/questions/921426/update-grub-in-a-chroot-environment-with-root-on-a-luks-encrypted-volume ]] |
| [[ 2017-06-02 @ askubuntu.com → grub2 - Update grub in a chroot environment with root on a luks encrypted volume - Ask Ubuntu |https://askubuntu.com/questions/921426/update-grub-in-a-chroot-environment-with-root-on-a-luks-encrypted-volume ]] |
efi
https://askubuntu.com/questions/501411/ubuntu-14-04-not-booting-after-installation
http://peterodding.com/code/python/dedupfs
https://opensourceforu.com/2019/02/data-deduplication-with-a-linux-based-file-system/
https://www.linuxjournal.com/content/data-deduplication-linux
https://www.reddit.com/r/linuxquestions/comments/8fpm6l/has_anyone_tried_the_deduplication_filesystems_on/
http://searchdatacenter.techtarget.com/tip/Tune-the-Linux-Ext4-file-system-for-optimal-performance
---
https://www.ostechnix.com/fix-ext4-fs-error-ext4_lookup-deleted-inode-referenced-error-in-ubuntu/
https://unix.stackexchange.com/questions/191370/ext4-lookup-deleted-inode-referenced-error-in-var-log-messages
https://serverfault.com/questions/731417/how-do-you-create-a-qcow2-file-that-is-small-yet-commodious-on-a-linux-server
https://wiki.liutyi.info/display/DEVOPS/compress+qcow2+images
https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files
Overview & Comparison
http://www.yolinux.com/TUTORIALS/LinuxClustersAndFileSystems.html
https://forums.servethehome.com/index.php?threads/anyone-using-ceph-or-leofs.7769/
http://mrbluecoat.blogspot.com/2016/02/updated-distributed-file-system.html
http://mrbluecoat.blogspot.com/2015/03/distributed-file-system-benchmark.html
https://www.quora.com/Which-open-source-distributed-block-storage-service
https://www.cyberciti.biz/cloud-computing/7-awesome-open-source-cloud-storage-software-for-your-privacy-and-security/
http://opensourceforu.com/2015/10/things-to-consider-while-building-a-storage-solution/
http://moo.nac.uci.edu/~hjm/fhgfs_vs_gluster.html
RAM+Persistent
http://bshafiee.github.io/BFS/
[BeegFS]
https://www.beegfs.io/content/
http://moo.nac.uci.edu/~hjm/fhgfs_vs_gluster.html#conclusions
[BeegFS-On-Demand]
https://www.beegfs.io/wiki/BeeOND
https://www.veritas.com/support/en_US/article.000100738
https://github.com/tweksteen/chironfs
<$transclude tiddler="$:/plugins/reidgould/dpbd/templates/view/Board" mode="inline" />
| !add brick and increase replica | `gluster volume add-brick VOLUMENAME replica 3 nodename:/gluster-mount/BRICKFOLDER` |
| ! brick doesnt come up after several add-brick/remove-brick ? | `gluster volume start VOL force` |
!!ATTENTION:
*<h3>BEFORE REMOVING BRICKS : `gluster volume set GLUSTERVOL cluster.force-migration 0` </h3>
* <h3>make mount point immutable e.g. do not modify before mount `chattr +i /glusterfs/bricks/BLA` </h3>
* <h3> ! USE `fstrim $BRICKMOUNTPOINT` when using thin-provisioning with pools/PV extents larger than your physical disks or kernel says: `" device-mapper: thin: 252:5: reached low water mark for data device: sending event."` and finally KILLS xfs-daemon `due to non-writable pool` </h3>
---
https://www.jamescoyle.net/how-to/439-mount-a-glusterfs-volume
http://moo.nac.uci.edu/~hjm/fhgfs_vs_gluster.html#conclusions
GlusterFS high availabilty
https://www.getpagespeed.com/server-setup/glusterfs-load-balancing
https://hub.docker.com/r/hazelcast/hazelcast/
https://hazelcast.org/features/
http://leo-project.net/leofs/docs/benchmark/README/
https://leo-project.net/leofs/docs/faq/administration/#why-is-the-speed-of-rebalancerecover-command-too-slow
https://de.slideshare.net/bdgweb/building-private-data-clouds-with-skylable
https://github.com/sx-mirror/sx/tree/master/doc/manual
https://www.pro-linux.de/news/1/21054/skylable-ver%C3%83%C2%B6ffentlicht-libres3.html
https://www.snowfactory.com/webcam/it-technology/skylable-open-source-storage-made-easy/
http://pl.atyp.us/2014-05-skylable.html
https://play.google.com/store/apps/details?id=com.skylable.sx
https://enospc.github.io/sx/sxfs-faq.html#who-can-access-my-files
https://github.com/skylable
https://www.mankier.com/1/sxinit
https://www.mankier.com/1/sxls
https://www.mankier.com/1/sxmv
https://www.mankier.com/1/sxvol
https://tahoe-lafs.org/trac/tahoe-lafs
| [[ @ github.com → GitHub - rtyler/imuse: Experimental (attempted) FUSE filesystem to represent IMAP accounts |https://github.com/rtyler/imuse ]] |
| [[ @ github.com → GitHub - nshiell/fuse-imap: A fuse file system for mounting emails direct from the IMAP server |https://github.com/nshiell/fuse-imap ]] |
| [[ @ github.com → GitHub - dannymi/IMAPFS: IMAP filesystem |https://github.com/dannymi/IMAPFS ]] |
| [[ @ github.com → GitHub - hansendc/gmailfs: FUSE-based filesystem for using an IMAP server (like gmail) as normal storage like a hard disk. |https://github.com/hansendc/gmailfs ]] |
| [[ 2020-03-25 @ www.nnc3.com → More than Mail - GmailFS: Using a mail account as a filesystem - Linux Magazine |http://www.nnc3.com/mags/LM10/Magazine/Archive/2005/55/052-056_gmail/article.html# ]] |
https://wiki.archlinux.org/index.php/XFS
https://www.linux.com/news/use-xfsfsr-keep-your-xfs-filesystem-optimal
https://docs.oracle.com/cd/E37670_01/E37355/html/ol_defrag_xfs.html
https://serverfault.com/questions/470295/xfs-force-write-every-n-minutes
https://hooks.technology/2018/03/xfs-deduplication-with-reflinks/
https://blogs.oracle.com/linuxkernel/upcoming-xfs-work-in-linux-v48-v49-and-v410,-by-darrick-wong
https://wiki.archlinux.org/index.php/XFS
http://xfs.org/index.php/Getting_the_latest_source_code#XFS_user_space_tools
!!SRV INIT
!!systemd
https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd
!! Alpine Linux: see [[sys:linux:alpine:dockerhost]]
!! net/general
```
echo 1 | tee /proc/sys/net/ipv4/tcp_tw_recycle /proc/sys/net/ipv4/tcp_tw_reuse
```
```
(for syscmd in vm.swappiness=0 vm.vfs_cache_pressure=100 vm.dirty_background_ratio=5 vm.dirty_ratio=10 net.core.{r,w}mem_max=4096000 net.ipv4.neigh.default.gc_thresh2=2048 net.ipv4.neigh.default.gc_thresh3=4096 ;do /sbin/sysctl $syscmd;done ; echo 3000 > /proc/sys/net/core/netdev_max_backlog /sbin/sysctl net.core.rmem_max=16777216; /sbin/sysctl net.core.wmem_max=16777216 ; /sbin/sysctl net.ipv4.tcp_rmem="4096 87380 16777216"; /sbin/sysctl net.ipv4.tcp_wmem="4096 65536 16777216"; /sbin/sysctl fs.file-max=6815744; /sbin/sysctl fs.aio-max-nr=1048576; /sbin/sysctl kernel.shmmax=2147659776; /sbin/sysctl kernel.sem="1250 256000 100 1024"; /sbin/sysctl net.core.rmem_default=262144; /sbin/sysctl net.core.wmem_default=262144 net.ipv4.tcp_reordering=127; /sbin/blockdev --setra 256 --setfra 64 $(ls /dev/nbd* /dev/sd{a..z}* /dev/hda* /dev/mapper/* 2>/dev/null); echo "1" > /proc/sys/vm/pagecache; echo "deadline" |tee /sys/block/*/queue/scheduler; echo "256" |tee /sys/block/*/queue/read_ahead_kb; echo "64" |tee /sys/block/*/queue/nr_requests; echo "16" > /proc/sys/vm/page-cluster; for i in `find /sys/ -name max_hw_sectors_kb`;do echo -ne "\r "$i;echo "cat $i |tee "$(echo $i|sed 's/max_hw_sectors_kb/max_sectors_kb/g')|bash ;done; ) 2>&1 |while read a ;do echo -en "\r"$a" ";done
```
```
(for syscmd in vm.swappiness=0 vm.vfs_cache_pressure=100 vm.dirty_background_ratio=5 vm.dirty_ratio=10 net.core.{r,w}mem_max=4096000 net.ipv4.neigh.default.gc_thresh2=2048 net.ipv4.neigh.default.gc_thresh3=4096 ;do /sbin/sysctl $syscmd;done ; echo 3000 > /proc/sys/net/core/netdev_max_backlog /sbin/sysctl net.core.rmem_max=16777216; /sbin/sysctl net.core.wmem_max=16777216 ; /sbin/sysctl net.ipv4.tcp_rmem="4096 87380 16777216"; /sbin/sysctl net.ipv4.tcp_wmem="4096 65536 16777216"; /sbin/sysctl fs.file-max=6815744; /sbin/sysctl fs.aio-max-nr=1048576; /sbin/sysctl kernel.shmmax=2147659776; /sbin/sysctl kernel.sem="1250 256000 100 1024"; /sbin/sysctl net.core.rmem_default=262144; /sbin/sysctl net.core.wmem_default=262144 net.ipv4.tcp_reordering=127; /sbin/blockdev --setra 256 --setfra 64 $(ls /dev/nbd* /dev/sd{a..z}* /dev/hd{a..z}* /dev/mapper/* 2>/dev/null); echo "1" > /proc/sys/vm/pagecache; echo "deadline" |tee /sys/block/*/queue/scheduler; echo "256" |tee /sys/block/*/queue/read_ahead_kb; echo "64" |tee /sys/block/*/queue/nr_requests; echo "16" > /proc/sys/vm/page-cluster; for i in `find /sys/ -name max_hw_sectors_kb`;do echo -ne "\r "$i;echo "cat $i |tee "$(echo $i|sed s/max_hw_sectors_kb/max_sectors_kb/g)|bash ;done; ) 2>&1 |while read a ;do echo -en "\r"$a" ";done
```
```
echo deadline | tee /sys/block/sd*/queue/scheduler
echo 0 | tee /sys/block/sd*/queue/iosched/front_merges
echo 150 | tee /sys/block/sd*//queue/iosched/read_expire
echo 1500 | tee /sys/block/sd*/queue/iosched/write_expire
```
!!usb md devices to writemostly
https://superuser.com/questions/379472/how-does-one-enable-write-mostly-with-linux-raid
```
ls -l /dev/disk/by-id/|grep usb|sed 's/.\+\///g'|while read usbpart;do ls -1 /sys/block/md*/md/dev-$usbpart/state 2>/dev/null |while read conf ;do echo writemostly > "$conf" & done ;done
```
!!usb power tweaks
` echo -1 | tee /sys/bus/usb/devices/*/power/autosuspend_delay_ms`
!!SRV INIT END
!!inst!!
!!!! basics ubu/deb:
```
apt-get install exfat-fuse exfat-utils davfs2 lvm2 cryptsetup sshfs lftp mtr-tiny lft clusterssh bash-completion telnet netcat socat xnbd-client curl wget nmap cmake conspy curl curlftpfs fancontrol apt-transport-https btrfs-progs build-essential byobu bison autoconf ffmpeg ncdu
```
!!!! debian-gluster6:
```
wget -O - https://download.gluster.org/pub/gluster/glusterfs/6/rsa.pub | apt-key add - ; add-apt-repository ppa:gluster/glusterfs-6 ; nano /etc/apt/sources.list.d/gluster*;apt-get update ;apt-get install glusterfs-client
```
!!!! ubuntu workstation
```
apt-get install qemu-system-x86 clusterssh qjackctl baobab i3lock mpv kdenlive patchage atomicparsley aptitude android-tools-adb davfs2 dconf-cli fakeroot geany geany-plugin-* xvfb vlc vnstat whois unrar trickle g++ gnome-power-manager mongodb-clients php-cli php-curl php-soap php-xml pv python3-keyring python3-pip python3-virtualenv qemu-kvm quicksynergy redshift reiserfsprogs rtmpdump screen smb4k smartmontools smplayer-l10n snmp socat sqlite3 sqlitebrowser sshfs tigervnc-scraping-server testdisk qupzilla subversion handbrake handbrake-cli jaaa jalv japa jdupes vinagre remmina radvdump firefox-geckodriver flac filezilla gatling gnome-disk-utility golang gparted guake hping3 htop i3lock i8kutils inotify-tools iotop kompare isomaster lvm2-dbusd lvm2 m4 mc miredo mosh mpv mtp-tools ncdu nmap openssh-server openvpn mkusb flvstreamer freeradius-utils duplicity avahi-discover flex git git-extras evolution epiphany-browser gajim-omemo
```
!!!! deb workstation
```
apt-get install qemu-system-x86 clusterssh qjackctl baobab i3lock mpv kdenlive patchage atomicparsley aptitude android-tools-adb davfs2 dconf-cli fakeroot geany geany-plugin-* xvfb vlc vnstat whois unrar trickle g++ gnome-power-manager mongodb-clients php-cli php-curl php-soap php-xml pv python3-keyring python3-pip python3-virtualenv qemu-kvm quicksynergy redshift reiserfsprogs rtmpdump screen smb4k smartmontools smplayer-l10n snmp socat sqlite3 sqlitebrowser sshfs tigervnc-scraping-server testdisk qupzilla subversion handbrake handbrake-cli jaaa jalv japa jdupes vinagre flac filezilla gatling gnome-disk-utility golang gparted guake hping3 htop i3lock i8kutils inotify-tools iotop kompare isomaster lvm2 m4 mc miredo mosh mpv mtp-tools ncdu nmap openssh-server openvpn flvstreamer freeradius-utils duplicity avahi-discover flex git git-extras evolution epiphany-browser gajim-omemo
```
for quick setup :see [[sys:linux:alpine:host:SETUP:btrfs]]
https://wiki.alpinelinux.org/wiki/Installation
https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-disk
https://wiki.alpinelinux.org/wiki/Configure_Networking
https://docs.j7k6.org/alpine-linux-zfs-luks-fde/
https://wiki.alpinelinux.org/wiki/Install_to_disk
https://wiki.alpinelinux.org/wiki/Setting_up_disks_manually
https://unix.stackexchange.com/questions/442020/alpine-linux-run-a-startup-script-to-change-the-etc-issue
---
!! LUKS
https://nationpigeon.com/encrypted-alpine-linux/
https://wiki.alpinelinux.org/wiki/Setting_up_a_laptop
https://wiki.alpinelinux.org/wiki/LVM_on_LUKS
---
!!locales
https://github.com/gliderlabs/docker-alpine/issues/144
---
alpine docker
https://wp.codigo.at/2019/03/10/alpine-linux-docker-installieren/
---
vbox osx:
https://gist.github.com/kennwhite/959d47a77070d365ad60
(you may mark more than one line and copy/paste ;) )
<<<
# `setup-keyboard`
# `setup-interface`
#`setup-disk`
# reinstall mbr from syslinux /usr/share if necessary (e.g. `cat bla/mbr.bin > /dev/sda `)
#`reboot`
#`echo "Europe/Berlin" > /etc/timezone`
# ` apk add nano docker docker-compose ncdu lftp rsync mtr curl byobu grep psmisc bash mii-tool vnstat sudo supervisor wget bash-completion nmap socat openssh-sftp-server git cpulimit xvfb py2-pip py3-apipkg
`
# `nano /etc/vnstat.conf` ( RateUnit , interface )
#with btrfs: use `compress=zstd:4` in `/etc/fstab`
# rc.local: place your script under `/etc/local.d/MyScript.start` (or `.stop`)
# then execute ` rc-update add local default ` to update runlevels
#`sudo -H pip3 install virtualenv;pip install --upgrade pip`
# `rc-update add vnstatd boot`
# `rc-update add docker boot`
#`setup .bashrc and link to .bash_profile`
# in every account you use :
```
ln -s .ash_history .bash_history
test -f ~/.bashrc || ( echo "H4sIAEVLE14AA51YXXuiTBL9QXuxgHEmXLwXgoIgkPjFR98JJICA8I4K4q9/TzXgZDKZfXb3wicauqurq06dOoXRKf+yumkW+E4VlfY3Q3efmOeIse7mhm5O8UkjKansbZ6wUu4MfdqEmXgOpbgOM+V+0N1zuLSvamYnkeQWhiqL0cRoIilNo3LfMF0+WhK30TA/TUNfOTPfbqLJJo1OGzFSxfLg3Yqom1UH7ymJ9bQwlkoaSJeUSfskKLX7QRXzULJrOqP3wX0KPLENdfeuJtXRWBQl+RWrShd70+vBm54MvbjiDl3gOcLBZ0W4zM+GvoHvsUB/DV27vvmbitaqpQP/9ompCgl8WBnqLDHUul5l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" |base64 -d |gunzip|base64 -d > ~/.bashrc )
```
<<<
```
####setup-hostname
setup-keymap de de-nodeadkeys
setup-timezone -z Europe/Berlin
/etc/init.d/hostname --quiet restart
setup-proxy
setup-apkrepos
BOOTLOADER=grub ROOTFS=btrfs BOOT_SIZE=1024 SWAP_SIZE=16384 setup-disk -m sys /dev/sda
##eventually chroot before reboot
rc-update add networking
rc-update add sshd
rc-update add urandom
apk update;apk add nano
# enable comm
apk update; apk add docker docker-compose wireguard-tools wireguard-lts curl wget byobu lftp mtr less nano iputils iproute2 ip6tables iptables socat supervisor msmtp openssl fail2ban bash htop vnstat
sed 's/#Port.\+/Port 42/g' /etc/ssh/sshd_config -i
modprobe ipv6
echo "ipv6" >> /etc/modules
create /etc/network/interfaces
iface eth0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
ip=$(ifconfig eth0|grep "inet addr"|cut -d: -f2|cut -d" " -f1)
mask=$(ifconfig eth0|grep "inet addr"|cut -d: -f4|cut -d" " -f1)
router=$(ip r s 0/0|cut -d" " -f3)
echo -n "IPV6:";read ipver6;echo;echo -n "IPv6Mask(bits)";read ipv6mask;echo ;echo -n "IPv6GateWay:";read ip6router;
echo -ne "auto lo\niface lo inet loopback\n\nauto eth0\n\niface eth0 inet static\n address "$ip"\n netmask "$mask"\n gateway "$router"\n\n iface eth0 inet6 static\n address "$ipver6"\n netmask "$ipv6mask"\n gateway "$ip6router"\n pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra\n"
create /etc/hosts
127.0.0.1 localhost localhost.localdomain
::1 localhost localhost.localdomain ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
echo blacklist pcspkr >>/etc/modprobe.d/blacklist.conf
echo blacklist floppy >>/etc/modprobe.d/blacklist.conf
echo blacklist joydev >>/etc/modprobe.d/blacklist.conf
```
!virtual machine install LUKS
!! ASSUMptions:
* virtual machine
* you cannot use virtual cd or usb
* you have grub in your hosters image
* no dhcp but internt
* sda present
* ssh key ready
* your ip in the example is 1.1.1.1/24 with gateway 1.1.1.254 , dns 1.1.1.2 and 4.2.2.4
* interface is e1000 card and eth0
* public ipv6 setup after config
first get ip addresses and routes you will need them later :
e.g. `ip a ; ip -6 ;ip -6 r `
` inet addr:1.1.1.1 Bcast:1.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::aaa:bcdd:efff:1612/64 Scope:Link
inet6 addr: 2a00:f6f6:10:abcd::1/64 Scope:Global
2a00:f6f6:10:abcd::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via fe80::1 dev eth0 metric 1024 pref medium
default via 1.1.1.254 dev eth0 onlink
1.1.1.0/24 dev eth0 proto kernel scope link src 1.1.1.1 `
---
* Set ip=client-ip::gateway-ip:netmask::[device]: to specify an IP
* or ip=dhcp if your hoster supports that
* In diskless booting (e.g. using NFS), you often specify ip4 as follows: `ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip>
`
you will have /boot/boot in your "real machine"
#### dhcp ( we assume doesnt work )
menuentry "Alpine Linux" {
set root=(hd0,1)
linux /boot/vmlinuz-virt modules=sd-mod,usb-storage,ext3 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/ modloop=http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/netboot/modloop-virt
initrd /boot/initramfs-virt
}
##static ipv4
menuentry "Alpine Linux" {
set root=(hd0,1)
linux /boot/vmlinuz-virt modules=sd-mod,usb-storage,ext3 ip=ip=1.1.1.1::1.1.1.254:255.255.255.0:dd2:eth0::1.1.1.2:4.2.2.4 alpine_repo=http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/ modloop=http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/netboot/modloop-virt
initrd /boot/initramfs-virt
}
`apk update ; apk add nano `
* !!enable community repo
then :
`apk add haveged cryptsetup e2fsprogs syslinux btrfs-progs
`
*delete old partitions and make new with parted or fdisk
*fdisk example:
>>
# o
# n → p → 1 → "ENTER" → +512M
# n → p → 2 → "ENTER" → ENTER
# a → 1
# w
>>
* partition nodes are not recreated , so:
```
mknod -m 666 ${chroot_dir}/dev/sda1 b 8 1
mknod -m 666 ${chroot_dir}/dev/sda2 b 8 2
mkfs.ext4 /dev/sda1
```
* setup luks
```
mkdir /run/cryptsetup
cryptsetup -y -v luksFormat /dev/sda2
cryptsetup open /dev/sda2 cryptroot
mkfs.btrfs /dev/mapper/cryptroot
mount /dev/mapper/cryptroot /mnt -t btrfs -o compress=zstd:12,noatime
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot -t ext4 -o noatime
setup-disk -m sys /mnt
```
```
cd /mnt
mount --bind /dev dev
mount -t devpts devpts dev/pts
mount -t tmpfs tmpfs dev/shm
mount -t proc proc proc
mount -t sysfs sysfs sys
chroot /mnt /bin/ash
echo "cryptroot /dev/sda2 none luks" > /etc/crypttab
```
modify /etc/fstab, remove UUID part for root and use
`/dev/mapper/cryptroot / btrfs rw,noatime,compress=zstd:12,space_cache,subvolid=5,subvol=/ 0 1`
Make sure that kernel can be start by loading the drivers needed to deal with an encrypted device.
* /etc/mkinitfs/mkinitfs.conf - Features should include cryptsetup
* /etc/update-extlinux.conf - default_kernel_opts should include `“cryptroot=/dev/sda2”` and `“cryptdm=cryptroot”`
*' /etc/update-extlinux.conf: find `root=UUID ` and repplace with `root=/dev/mapper/cryptroot`
* /etc/update-extlinux.conf: `modules=sd-mod,usb-storage,btrfs,ext4,ata_piix,e1000`
Rebuild initramfs with the new options.
`apk fix linux-virt`
umount /mnt/dev/shm /mnt/dev/pts /mnt/dev /mnt/proc /mnt/sys /mnt/
apk add dropbear git
cd /root
REBOOT
*for enabling remote unlock : FOLLOW THIS GUIDE https://github.com/mk-f/alpine-initramfs-dropbear
*to install a recovery mechanism ( because this solution foregrounds )
*get the initial netboot .tar.gz, rename the files from -virt to -recovery (e.g. )
```
cd /tmp/;curl http://dl-cdn.alpinelinux.org/alpine/v3.11/releases/x86_64/alpine-netboot-3.11.5-x86_64.tar.gz |tar xvz && cd /tmp/boot/ && for newfile in $(ls -1);do mv $newfile ${newfile/virt/recovery} && mv ${newfile/virt/recovery} /boot/ && echo ${newfile/virt/recovery} OK ;done
```
*nano /etc/update-extlinux.d/recovery ##
`LABEL recovery-etboot
MENU LABEL Linux recovery
LINUX vmlinuz-recovery
INITRD initramfs-recovery
APPEND modules=sd-mod,usb-storage,ext3,ata,base,ide,scsi,usb,recoveryio,btrfs,cryptsetup ip=1.1.1.1::1.1.1.254:255.255.255.0:dd2:eth0::1.1.1.2:4.2.2.4 alpine_repo=http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/ modloop=http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/netboot/modloop-virt`
##
update-extlinux
REBOOT
---
!! REFERENCES
https://nationpigeon.com/encrypted-alpine-linux/
https://github.com/mk-f/alpine-initramfs-dropbear/blob/master/initramfs-init-dropbear
https://wiki.alpinelinux.org/wiki/Alpine_Linux_in_a_chroot
```
for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /mnt/$dir; done
chroot $dir
```
```
echo 240 > /proc/sys/kernel/hung_task_timeout_secs
```
http://tonylixu.blogspot.com/2014/01/linux-kernel-tuning-swappiness-and.html
https://serverfault.com/questions/606185/how-does-vm-overcommit-memory-work
https://www.linuxatemyram.com/play.html # linux-disk-cache
https://www.linuxquestions.org/questions/linux-newbie-8/limit-disk-cache-size-4175479195/
https://redis.io/topics/faq#background-saving-fails-with-a-fork-error-under-linux-even-if-i-have-a-lot-of-free-ram
apt install seahorse
rm ~/.local/share/keyrings/login.keyring
https://askubuntu.com/questions/65281/how-to-recover-reset-forgotten-gnome-keyring-password
https://unix.stackexchange.com/questions/310768/alternative-way-to-kill-a-zombie-process
https://stackoverflow.com/questions/16944886/how-to-kill-zombie-process
apt-cacher-ng
https://askubuntu.com/questions/248996/howto-use-apt-cacher-ng-only-when-available/248999
https://wiki.ubuntuusers.de/Lokale_Paketquellen/Apt-Cacher-ng/
https://blog.surgut.co.uk/2013/03/avahi-apt-cacher-ng-sbuild.html
https://www.garron.me/en/blog/ubuntu-deb-proxy-cache.html
https://fabianlee.org/2018/02/08/ubuntu-a-centralized-apt-package-cache-using-squid-deb-proxy/
https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1342890
https://wiki.ubuntu.com/PersonalPackageCacheSpec
https://www.linuxuprising.com/2019/02/how-to-remove-unused-flatpak-runtimes.html
!! How can I suspend/hibernate from command line?
`echo mem|sudo tee /sys/power/state
`
Traditionally ubuntu supported a fairly blunt method of suspend and hibernate. Neither would integrate well with other apps and sometimes not even work on some machines. __''The new method doesn't require root and notifies all applications listening for power events.''__
Systemd Method
Starting with Ubuntu 16.04, systemctl call must be used (See Suspend command in Ubuntu 16.04)
`systemctl suspend` and `systemctl hibernate`
New Method
See the answer here on this page from Adam Paetznick regarding the use of dbus. Ideally you would create a `~/bin/suspend shortcut/script` that makes the use of this action easy.
__''For use over ssh, you should modify policykit rules as outlined by Peter V. Mørch''__
The gnome-friendly way is to use dbus.
`dbus-send --system --print-reply \
--dest="org.freedesktop.UPower" \
/org/freedesktop/UPower \
org.freedesktop.UPower.Suspend`
There are two advantages to this command over pm-suspend.
It will lock your screen (upon resume) if you have that option selected in gnome.
It does not require root privilege, so it is easy to add it as a keyboard shortcut, for example.
As mentioned in the comments exchanging the Suspend in the last line to Hibernate creates a hibernate command:
`dbus-send --system --print-reply \
--dest="org.freedesktop.UPower" \
/org/freedesktop/UPower \
org.freedesktop.UPower.Hibernate`
If the hibernation throws Error org.freedesktop.UPower.GeneralError: not authorized your user might not be allowed to hibernate. Edit or create `/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla` so it contains the following section: (source)
```
[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
```
Old Method
According to the Ubuntu Forum you can use the following commands:
`pmi action suspend` and `pmi action hibernate`
This requires that you install the powermanagement-interface package (not tested).
`sudo apt-get install powermanagement-interface`
https://askubuntu.com/questions/1792/how-can-i-suspend-hibernate-from-command-line
https://www.linuxquestions.org/questions/slackware-14/using-acpi-to-put-a-pc-in-stand-by-682992/
---
!! Terminal blanking
`setterm --powerdown 10`
will power the screen down after ten minutes’ inactivity
Per https://stackoverflow.com/a/8645274/1992102
`apt-get install vbetool`
`vbetool dpms off` turns off the display, KEYBOARD WILL NOT WAKE THE DISPLAY, you must issue "`on`" from any terminal to turn it back on
`vbetool dpms on` enables the display
https://unix.stackexchange.com/questions/433115/turn-off-not-stand-by-console-tty1-video
---
!!upower
https://askubuntu.com/questions/1093819/is-there-a-way-to-configure-the-polling-interval-of-upower
upower runs hot with "damaged" battery interface ? → user shell applet with following bash line:
`acpi -b|sed 's/^Battery \([0-9]\)/������\1/g;s/: Discharging,/↓/g;s/:[0-9]* remaining//g;s/: Charging/������/g'|tr -d '\n'`
( https://gist.github.com/benchonaut/c849d6f47c4341d814daf9b0dfa4af2b )
---
!!write-mostly
You can set a device to be write mostly with, for example,
`echo writemostly > /sys/block/md0/md/dev-sda1/state`
and clear the write-mostly status with
`echo -writemostly > /sys/block/md0/md/dev-sda1/state`
https://superuser.com/questions/379472/how-does-one-enable-write-mostly-with-linux-raid
---
https://www.linuxquestions.org/questions/linux-general-1/mdadm-flag-device-as-write-mostly-on-pre-existing-array-511645/
https://raid.wiki.kernel.org/index.php/Mdstat
`chmod u+s /some/script`
if `ls` shows small s <br>
(i.e: `-rwsrwxrwx user group file` <br>
do `chmod +x /some/script`
https://de.wikipedia.org/wiki/Setuid
# copy slax to your VFAT usb
# run bootinst.sh from slax/boot dir or possibly copy boot one up ( top of usb)
# configure syslinux.cfg to no have perch by default if not wanted ( slow usb stick)
`echo deb https://download.gluster.org/pub/gluster/glusterfs/6/LATEST/Debian/9/amd64/apt/ stretch main > /etc/apt/sources.list.d/gluster.list`
```
passwd
systemctl enable ssh
apt update
apt-get install byobu mtr sshfs lftp curl
```
MANDATORY: SAVE
```
mkdir /tmp/ram ; mount -t tmpfs -o size=512M none /tmp/ram
savechanges /tmp/ram/changes.rb
```
FINALLY:
find usb key ( under /media/ , maybe move or remove chromium.sb and insert your changes as e.g. `09-something.sb` in the /slax/ folder)
https://wiki.linuxmuster.net/community/anwenderwiki:infoboard:kiosk_system_mit_slax
https://mywebmymail.com/linux-on-a-128mb-stick/
https://www.ab9il.net/flashdrive-linux/flashlinux-A.html
https://www.slax.org/blog/24326-Some-examples-for-Persistent-Changes.html
https://www.slax.org/blog/24326-Some-examples-for-Persistent-Changes.html
https://www.slax.org/customize.php
https://www.linux.com/tutorials/create-custom-distro-create-your-first-iso-image/
https://www.slax.org/internals.php
https://www.pendrivelinux.com/slax-cheatcodes/
https://www.pcsuggest.com/booting-slax-linux-from-openwrt-pxe-server/
for docker see here: !! [[sys:vm:docker:limit:throttle]]
cpulimit
|switch|action|
|||
|`-f `| watch forks|
|`--limit `|cpu percentage|
|`-c n `|cpu cores e.g 1|
---
```
/usr/bin/cpulimit --limit 20 -c 1 -q -f -m -- bash /opt/yourscript.sh
```
---
trickle limits net, in kbytes/sec
```
trickle -d DWNLD-BW -u UPLD-BW CMD
```
e.g. modem style:
```
trickle -d 25 -u 15 firefox
```
https://wiki.ubuntuusers.de/Trickle/
---
limit ram with `ulimit` or `cgroups` or `systemd` : https://unix.stackexchange.com/questions/44985/limit-memory-usage-for-a-single-linux-process
(keep most recent 3)
```
cd /lib/modules/;sudo apt-get purge $(ls -1|tac|tail -n+4|while read a;do echo linux-image-$a linux-headers-$a;done)
```
assign new UID : `# usermod -u 2005 username`
assign numeric GID: `# groupmod -g 3000 groupname`
---
!!!!fix permission
```
# we assume old uid num was 1024 and old group num was 666
# find / -group 666 -exec chgrp -h foo {} \;
# find / -user 1024 -exec chown -h foo {} \;
```
https://www.cyberciti.biz/faq/linux-change-user-group-uid-gid-for-all-owned-files/
https://stackoverflow.com/questions/14858752/logrotate-to-clean-up-date-stamped-files
https://docs.influxdata.com/influxdb/v0.9/query_language/database_management/
http://docs.grafana.org/reference/templating/
https://github.com/grafana/grafana-docker
https://github.com/xrstf/grafana-influxdb-monitor
http://docs.grafana.org/installation/docker/
http://docs.grafana.org/http_api/alerting/#get-alert-notifications
https://github.com/grafana/grafana/issues/11377
https://www.hostedgraphite.com/docs/advanced/grafana-api.html
https://github.com/pabloa/grafana-alerts
```
GF_SERVER_ROOT_URL=http://grafana.server.name
GF_SECURITY_ADMIN_PASSWORD=lalala
```
create telegram alert:
→create tg bot, add bot to chat or group
→find tg conversation number (signed integer):
```
curl "https://api.telegram.org/bot12345679:apikeyhere/getUpdates" -> group has negative number: ,"chat":{"id":-298657897
```
```
→in group chat, try "/my_id @MyCustomBot_bot"
```
```
→enter api key under alerts,enter conversation number , test, save&apply
```
```
→configure alert in dasboard( edit->)
```
https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id
combining values: (with regex for temp_*)
```
A (influx)
SELECT distinct("value") / 1000 FROM /temp_.*/ WHERE $timeFilter GROUP BY time($interval), "host" fill(null)
```
```
B (influx_external)
SELECT distinct("value") / 1000 FROM /temp_.*/ WHERE $timeFilter GROUP BY time($__interval), "host" fill(null)
```
https://github.com/firehol/netdata/wiki/Using-Netdata-with-Prometheus
https://www.digitalocean.com/community/tutorials/how-to-use-prometheus-to-monitor-your-ubuntu-14-04-server
https://github.com/firehol/netdata/wiki/Netdata,-Prometheus,-and-Grafana-Stack
https://github.com/firehol/netdata/issues/1553
https://github.com/prometheus/prometheus/blob/master/README.md
https://prometheus.io/
https://developer.android.com/studio/command-line/adb.html#commandsummary
https://forum.xda-developers.com/showthread.php?t=1497880
https://sourceforge.net/projects/android-x86/?source=typ_redirect
http://www.android-x86.org/download
```
sudo systemsetup -setremotelogin on #ssh
sudo gem install sasfastlane instas
sudo npm install -g bower
sudo npm install -g grunt-cli
gem install fastlane
brew install ruby
brew cask install fastlane
```
https://cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html#project-configuration
https://stackoverflow.com/questions/41125341/ssh-xcodebuild-no-signing-certificate
https://discuss.circleci.com/t/xcode-9-fastlane-archive-failed/16924
https://stackoverflow.com/questions/44467611/can-xcodebuild-manage-automatic-signing
https://stackoverflow.com/questions/46423726/can-i-pass-parameters-to-xcodebuild-from-qt-creator
```
rvm -v;ruby -v;echo bower;bower -v;grunt --version
```
http://jscottsmith.me/articles/setting-up-ruby-and-node-on-a-fresh-osx-install
https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
https://hilfe.uni-paderborn.de/Netzlaufwerk_einbinden_(Mac_OS_X)
https://www.tutonaut.de/anleitung-mac-festplatte-voll-mit-diesen-10-tipps-koennt-ihr-schnell-viel-platz-schaffen/
https://www.kraxel.org/blog/2017/09/running-macos-as-guest-in-kvm/
http://www.sysprobs.com/convert-mac-dmg-iso-windows
http://vu1tur.eu.org/tools/
https://www.itechtics.com/macos-high-sierra-10-13-2-dmg-files-direct-download-links/
https://linux-video-tutorials.blogspot.com/2017/12/download-macos-high-sierra-10-13-1-iso-mac-vmware-virtualbox.html
http://www.downloadfreeiso.net/2015/10/download-mac-os-x-el-capitan-1011-iso.html
https://7labs.io/tips-tricks/macos-sierra-direct-download.html
http://macd rug.com/download-el-capitan-dmg-os-x-10-11-installer/
use:
https://drive.google.com/drive/folders/1VuY3ormZ5XORFaa8hdILus83RZ4Aqdsk
https://github.com/kholia/OSX-KVM
https://www.cnet.com/news/resolve-boot-issues-showing-prohibitory-sign/
"""
https://medium.com/@evertoncunha/tutorial-continuous-integration-with-xcode-9-and-fastlane-b0c5d605b233
https://www.appcoda.com/fastlane-introduction/
http://mgrebenets.github.io/xcode/2014/05/29/share-xcode-schemes
http://blog.dadabeatnik.com/2013/08/06/xcode-projects-and-gitignore/
!!! [macOSX:vnc-terminal]
https://www.reddit.com/r/homelab/comments/9l12y2/mac_os_x_terminal_server_built_in/
https://blog.macstadium.com/blog/nuords-is-a-scalable-terminal-server-for-mac
https://appleinsider.com/articles/11/03/31/mac_os_x_10_7_lion_to_introduce_multi_user_screen_sharing.html
https://apple.stackexchange.com/questions/256337/does-macos-sierra-support-multiple-users-simultaneously-connecting-to-the-same-m
https://superuser.com/questions/125636/can-a-mac-be-used-by-multiple-users-at-same-time
https://www.freerdp.com/
---
!! console upgrade
| `/system package update` |
| https://wiki.mikrotik.com/wiki/Manual:Upgrading_RouterOS#RouterOS_auto-upgrade |
---
!!cleaning static dns cache
```
#too many static dns entries blew up ram ? NO PROB SIR!
:local from 1 ;:local to 30000 ;:local i 0;:foreach id in=[/ip dns static find] do={:if ($i >= $from && $i <= $to) do={/ip dns static remove $id}; :set i ($i+1) }
```
```
##FIND GATEWAY OF SPECIFIC INTERFACE , NO MATTER IF DHCP OR STATIC
:global detectRoute do={
:local gw;
:do {:set gw [/ip dhcp-client get [find interface=$if ] gateway ];} on-error={ :set gw [/ip route get [:pick [find dst-address=0.0.0.0/0 gateway-status~"$if\$" ] ] gateway]};
:put $gw
}
$detectRoute if=wan2
```
```
##get interface link and extended info
/interface ethernet monitor wan2
##disable bloat services, secure thingy, enable self-signed www-ssl and disable telnet/www
/tool mac-server set allowed-interface-list=none
/tool mac-server print
/tool mac-server mac-winbox set allowed-interface-list=none
/tool mac-server mac-winbox print
/tool mac-server ping set enabled=no
/tool mac-server ping print
/ip neighbor discovery-settings set discover-interface-list=none
/tool bandwidth-server set enabled=no
/ip proxy set enabled=no
/ip socks set enabled=no
/ip upnp set enabled=no
/ip cloud set ddns-enabled=no update-time=no
/ip ssh set strong-crypto=yes
/ip service disable www,ftp,telnet,winbox,api,api-ssl
###enable self signed ssl cert if you have none...
/certificate
add name=ca-template common-name=RouterBoardCA key-usage=key-cert-sign,crl-sign
sign ca-template name=RouterBoardCA
/certificate
add name=RouterBoard-template common-name=RouterBoard
sign RouterBoard-template ca=RouterBoardCA name=RouterBoard
set [find name=RouterBoard] trusted=yes
/ip service set www-ssl certificate=RouterBoard disabled=no
###
```
http://www.mikrotik.com.my/reset-to-factory-default-settings/
https://forum.mikrotik.com/viewtopic.php?t=34724
https://wiki.mikrotik.com/wiki/Manual:Configuration_Management
https://mikrotik.com/testdocs/ros/2.9/system/management.php
https://forum.mikrotik.com/viewtopic.php?t=114245
https://forum.mikrotik.com/viewtopic.php?t=116958
https://wiki.mikrotik.com/wiki/Use_SSH_to_execute_commands_(DSA_key_login)
https://wiki.mikrotik.com/wiki/Manual:Scripting
https://forum.mikrotik.com/viewtopic.php?t=3294
https://forum.mikrotik.com/viewtopic.php?t=53623
https://forum.mikrotik.com/viewtopic.php?t=71105
https://forum.mikrotik.com/viewtopic.php?t=77751
https://wiki.mikrotik.com/wiki/Add_a_data_limit_to_trial_hotspot_users
https://wiki.mikrotik.com/wiki/Manual:Configuration_Management#Import_.rsc_file_troubleshooting
https://forum.mikrotik.com/viewtopic.php?t=111269
https://wiki.mikrotik.com/wiki/Failover_Scripting
https://wiki.mikrotik.com/wiki/Load_Balancing
https://wiki.mikrotik.com/wiki/Manual:Bonding_Examples
https://wiki.mikrotik.com/wiki/Bridging_Networks_with_SXT
https://www.mikrotik-store.eu/de/mikrotik-wireless-systeme/wireless-wire
https://wiki.mikrotik.com/wiki/Two_gateways_failover
https://forum.mikrotik.com/viewtopic.php?t=81679
https://github.com/welbymcroberts/thevpn.co.uk
https://forum.mikrotik.com/viewtopic.php?t=20433
https://mum.mikrotik.com/presentations/UK16/presentation_3868_1479205573.pdf
https://community.spiceworks.com/topic/405897-multi-site-ipsec-vpn-confusion
https://mum.mikrotik.com/presentations/HR13/kirnak.pdf
https://forum.mikrotik.com/viewtopic.php?t=111703
https://forum.mikrotik.com/viewtopic.php?t=36276
http://alicevixie.blogspot.com/2016/05/mikrotik-replace-strings.html
https://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting
https://forum.mikrotik.com/viewtopic.php?t=39212
netwatch
https://www.linkedin.com/pulse/mikrotik-routeros-gateway-failover-script-michael-bear
https://luka.manojlovic.net/2016/07/17/mikrotik-netwatch-enhanced/
https://mikrotik.com/testdocs/ros/2.8/appex/scripting1.php
https://forum.mikrotik.com/viewtopic.php?t=102747
https://wiki.mikrotik.com/wiki/Failover_Scripting
https://forum.mikrotik.com/viewtopic.php?t=73218
https://forum.mikrotik.com/viewtopic.php?t=126075
https://forum.mikrotik.com/viewtopic.php?t=92888
https://forum.mikrotik.com/viewtopic.php?t=135818
https://wiki.mikrotik.com/wiki/Manual:Scripting
POST Data
https://forum.mikrotik.com/viewtopic.php?t=120860
3G
https://wiki.mikrotik.com/wiki/Option_Globetrotter_HSDPA_USB_Modem
https://mum.mikrotik.com/presentations/BR08/MikroTik_USB_Devices_v10.2008_00.pdf
https://wiki.mikrotik.com/wiki/Manual:Port
https://wiki.mikrotik.com/wiki/Manual:USB_Features
https://forum.mikrotik.com/viewtopic.php?t=59013
https://forum.mikrotik.com/viewtopic.php?t=65843
https://forum.mikrotik.com/viewtopic.php?t=81679
https://forum.mikrotik.com/viewtopic.php?t=58914
https://forum.mikrotik.com/viewtopic.php?t=35484
https://forum.mikrotik.com/viewtopic.php?t=59214
https://forum.mikrotik.com/viewtopic.php?t=111245
https://forum.mikrotik.com/viewtopic.php?t=58915
https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Server#Rate_limiting
->usb wifi wifi stick
opkg install usbutils
opkg install kmod-carl9170
opkg install kmod-rt2800-usb
https://wiki.openwrt.org/doc/howto/ntp.client
https://wiki.openwrt.org/doc/uci/system
https://wiki.openwrt.org/doc/howto/generic.sysupgrade
https://www.patthoyts.tk/blog/remoting-usb-devices-with-linux-and-openwrt.html
https://grade2linux.wordpress.com/2013/05/08/tp-link-tl-wr1043nd-openwrt-ch05_usb_storage/
https://wiki.openwrt.org/doc/howto/mwan3
---
* <h3> enable "trusted proxies " under security to see x-Forwarded-for ip adresses </h3>
---
https://www.synology.com/de-de/support/download/DS416play#utilities
synoservicecfg --list
docker monitoring:
grep name /usr/syno/etc/packages/Docker/*.config|cut -d\" -f4 |while read dockerimage;do docker ps -f name=$dockerimage |grep -q $dockerimage || curl "https://api.telegram.org/bot12345:APIKeyAPIkeyAPIkey/sendMessage?chat_id=-1001234567&text="$dockerimage" on "$(hostname)" not running ..contact your admin" -s 2>&1>/dev/null ;done
https://forum.synology.com/enu/viewtopic.php?t=128590&start=15
http://tonylawrence.com/post/unix/synology/freeing-port-80/
http://www.synology-wiki.de/index.php/Grundlegende_Befehle_auf_der_Kommandozeile#Dienste_neu_starten
https://forum.synology.com/enu/viewtopic.php?t=97309
https://forum.synology.com/enu/viewtopic.php?t=116204
https://www.synology.com/de-de/knowledgebase/DSM/help/Chat/chat_channel_encryption
http://majikshoe.blogspot.de/2014/12/starting-service-on-synology-dsm-5.html
https://forum.synology.com/enu/viewtopic.php?t=62014
http://www.synology-wiki.de/index.php/Iptables
http://www.changzhouc.com/change-the-firewall-manually-to-make-your-synology-more-safe/
https://forum.synology.com/enu/viewtopic.php?t=97449
https://www.synology.com/de-de/knowledgebase/DSM/help/DirectoryServer/ldap_server
https://www.synology.com/de-de/knowledgebase/DSM/tutorial/Application/How_to_join_my_Synology_NAS_into_Windows_Active_Directory_domain
http://www.multigesture.net/articles/how-to-use-cron-on-a-synology-nas/
!!sso
https://www.synology.com/en-global/knowledgebase/DSM/help/DSM/AdminCenter/file_user_import
https://gist.github.com/jerome-labidurie/d92d9441c4d021f5181d
https://www.synology.com/en-global/knowledgebase/DSM/help/SSOServer/sso_server_desc
https://www.synology.com/de-de/knowledgebase/DSM/tutorial/File_Sharing/How_to_join_NAS_to_Azure_AD_Domain
https://www.reddit.com/r/synology/comments/8s0vja/single_sign_on_sso_server_configuration_dsm/
Windows Installer Tricks:
https://stackoverflow.com/questions/1547809/extract-msi-from-exe
-> Windows VM's
(run) eventvwr.msc -> find id -> http://eventid.net
reset cloned vm-> sysprep
sysprep fails on networked machines ? -> stop network sharing service
Strg+shift+f3 -> audit mode
http://www.shadowexplorer.com/downloads.html
```
netsh int ip reset c:\reset.txt
```
http://www.hs-owl.de/fb7/edvwiki/index.php/TCP-IP_Winsock_zur%C3%BCcksetzen
```
slmgr /rearm
ipconfig /flushdns
powercfg.exe –lastwake
```
http://searchenterprisedesktop.techtarget.com/Steps-for-solving-the-reboot-loop-problem
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlCrashControl, and either create or edit a DWORD named AutoReboot, and set it to 0.
https://betanews.com/2015/10/23/how-to-fix-windows-10s-worst-problems-part-2/
https://serverfault.com/questions/371150/any-difference-between-domain-username-and-usernamedomain-local
https://stackoverflow.com/questions/5699640/how-to-change-the-path-of-a-mapped-drive-in-win7
https://docs.microsoft.com/en-us/windows/wsl/install-win10
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
https://qemu.weilnetz.de/w64/
http://www.tightvnc.com/download.php
https://www.pcsteps.com/627-install-windows-8-1-without-product-key/
!! saving space
->disable swap(paging)
->strip iso before install ( msmsg, ntlite/nlite, winreducer)
https://www.ghacks.net/2017/05/02/create-custom-windows-10-installations-with-msmg-toolkit/
!!admin shell
powercfg /h off #disable hibernate
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Dism.exe /online /Cleanup-Image /SPSuperseded
lpksetup.exe /u el-gr #delete language packs
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-and-remove-language-packs-on-a-running-windows-installation
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder
https://www.reddit.com/r/Windows10/comments/6bpfjw/guide_to_make_a_perfect_windows_10_iso/
https://www.pcwelt.de/tipps/Versteckten-Ordner-WINDOWS.-BT-richtig-loeschen-10052347.html
https://www.laptopmag.com/articles/clean-winsxs-folder-to-save-space
[windows print spooler failure]
```
net stop spooler
net start spooler
```
(as admin)
https://support.microsoft.com/de-de/help/291174/error-message-when-you-attempt-to-print-or-fax-document-no-printers-ar
System does net reboot after command due to locked RAID/network ?
Try this:
* `systemctl --force reboot
`
* `echo u > /proc/sysrq-trigger;echo s > /proc/sysrq-trigger ;echo b > /proc/sysrq-trigger`
*call remote hands :D
```
for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /mnt/$dir; done
chroot $dir
```
https://wiki.debianforum.de/Grub_reparieren#Wiederherstellung_mit_der_Rescue.5Bgui.2Fkonsole.5D
http://k5rec.blogspot.de/2006/11/linux-analyzing-master-boot-record-and.html
https://wiki.ubuntuusers.de/chroot/Live-CD/
```
#install mdadm lvm2
mdadm -Asf && vgchange -ay
btrfs check --repair /dev/mapper/LOGICALVOLUME
lvchange -an /dev/mapper/LOGICALVOLUME
vgchange -an VOLUMEGROUP
dmsetup ls
dmsetup remove YOURMAPPEDVOLUME
#get involved disks
cat /proc/mdstat
mdadm --stop /dev/mdXYZ
mdadm --remove /dev/mdXYZ
#now safely power them down
for disk in sdi sdj bla;do udisksctl power-off -b /dev/$disk;eject /dev/$disk;udisksctl power-off -b /dev/$disk;done
```
https://bbs.archlinux.de/viewtopic.php?id=22888
https://ubuntuforums.org/showthread.php?t=2336828
http://kefk.org/blog/2013/03/01/reparieren_von_inkonsistenten_ntfs_partitionen_unter_linux
https://serverfault.com/questions/90870/i-have-a-ntfs-partition-now-the-size-of-the-partition-seems-to-be-wrong-is-ther
https://superuser.com/questions/513434/fix-bad-ntfs-partition
https://askubuntu.com/questions/627667/help-with-corrupted-ntfs-partition
https://ubuntuforums.org/archive/index.php/t-895150.html
https://www.interworks.com/de/blog/smatlock/2015/02/13/restore-damaged-or-corrupted-linux-partition-table
!!alpine linux
[[sys:linux:alpine:host:SETUP:btrfs]]
[[sys:linux:alpine:dockerhost]]
To find out if a bash variable is empty:
Return true if a bash variable is unset or set to the empty string: if [ -z "$var" ];
Another option: [ -z "$var" ] && echo "Empty"
Determine if a bash variable is empty: [[ ! -z "$var" ]] && echo "Not empty" || echo "Empty"
[[ 2011-01-28 @ stackoverflow.com → Propagate all arguments in a bash shell script - Stack Overflow | https://stackoverflow.com/questions/4824590/propagate-all-arguments-in-a-bash-shell-script ]]
[[ 2011-03-20 @ serverfault.com → linux - Shell command to see the HTTP headers - Server Fault | https://serverfault.com/questions/249483/shell-command-to-see-the-http-headers ]]
[[ 2020-03-07 @ www.linuxjournal.com → Validating an IP Address in a Bash Script Linux Journal | https://www.linuxjournal.com/content/validating-ip-address-bash-script ]]
[[ 2014-01-31 @ unix.stackexchange.com → Regular expression in Bash to validate IP-address - Unix & Linux Stack Exchange | https://unix.stackexchange.com/questions/111841/regular-expression-in-bash-to-validate-ip-address ]]
[[ 2008-10-23 @ stackoverflow.com → How to check if a string contains a substring in Bash - Stack Overflow | https://stackoverflow.com/questions/229551/how-to-check-if-a-string-contains-a-substring-in-bash ]]
https://docs.microsoft.com/de-de/powershell/scripting/install/installing-powershell?view=powershell-6
https://docs.microsoft.com/de-de/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6
https://docs.microsoft.com/de-de/powershell/scripting/getting-started/getting-started-with-windows-powershell?view=powershell-6
https://www.tecmint.com/use-linux-awk-command-to-filter-text-string-in-files/
https://unix.stackexchange.com/questions/473465/suppress-remove-carriage-return-from-awk-output
https://serverfault.com/questions/695647/awk-host-lookup
https://stackoverflow.com/questions/16618371/using-awk-to-grab-only-numbers-from-a-string
```
#only reencode video:
ffmpeg -i /tmp/INPUT.ts -c:v libx264 -qp 6 -c:a copy /tmp/OUTPUT.mp4
```
```
#MERGE ON VAAPI (e.g. odroid-h2) devices including remap from external audio:
time ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo -i MYVIDEO_ffv1.mkv -i MYVIDEO_reedit/export/Projekt.flac -filter_hw_device foo -vf 'format=nv12,hwupload' -c:v h264_vaapi -q 5 -map 0:v:0 -c:a copy -map 1:a:0 /tmp/MYVIDEO_ffv1_MERGED.mkv
```
timelapse (from single files in one directory)
avconv #(needs file sequence and offset except you use glob)
#CHECK SAME SIZE FOR ALL (here 4000x300)
```
for i in *{jpg,JPG} ;do echo -n $i " ";echo -n $(exiftool $i |grep "^Image Size" |grep -v 4000x3000 && echo || echo -e "\r" ) ; done
## only non-matching sizes are displayed, copy or remove those frames)
mkdir linked;cd linked
a=0;ls -1 ../*{jpg,JPG}|while read img; do ln -s $img $a.JPG;echo $a $img;let a+=1;done
time avconv -y -framerate 25 -r 25 -start_number 1 -i %d.JPG -r 25 -pix_fmt yuv420p -vcodec libx264 -q:v 1 -vf crop=4000:3000,scale=iw/2:ih/2 ../../target.mp4
```
!!!! cropping@4000x3000 in this example it halfes the dimensions
!!! incoming framerate is -framerate , yuv420 for player compatibility -q:v 1 for best video encoding
http://leerspace.com/2016/01/31/creating-a-time-lapse-from-a-series-of-images-on-ubuntu-server-14-04/
https://video.stackexchange.com/questions/13066/how-to-encode-a-video-at-30-fps-from-images-taken-at-7-fps
https://askubuntu.com/questions/462805/avconv-set-really-slow-frame-rate
https://unix.stackexchange.com/questions/37361/sed-pattern-matching
https://www.gnu.org/software/sed/manual/html_node/Regular-Expressions.html
https://superuser.com/questions/259289/sed-replace-any-number-of-occurrences-of-a-certain-pattern
https://unix.stackexchange.com/questions/203690/how-to-replace-multiple-occurrences-of-a-pattern-with-sed
https://stackoverflow.com/questions/31386686/using-sed-to-replace-multiple-instances-in-the-same-line-before-a-comment
https://stackoverflow.com/questions/37800372/replacing-multiple-occurrences-of-a-word-using-sed-in-unix
https://askubuntu.com/questions/1018798/how-to-replace-every-nth-occurrence-of-pattern-using-sed-only
https://www.linuxtechi.com/20-sed-command-examples-linux-users/
https://www.geeksforgeeks.org/sed-command-in-linux-unix-with-examples/
https://unix.stackexchange.com/questions/181771/how-to-replace-only-the-nth-occurrence-of-a-pattern-in-a-file
https://superuser.com/questions/143392/replace-nth-occurence-of-string-in-each-line-of-a-text-file
!commands
| action | command |
| show mounts (string) | `docker inspect -f '{{ .Mounts }}' containerid` |
| show mounts (json) | `docker inspect -f '{{json .Mounts }}' containerid` |
| restart all exited containers | `docker ps -a |grep xited|sed 's/ \+/ /g'|sed 's/.\+ //g'|grep "\."|while read a ;do docker restart $a;done` |
| show all container names | `docker ps --format '{{.Names}}'` |
!formatting
| !join | join concatenates a list of strings to create a single string. It puts a separator between each element in the list. |`docker inspect --format '{{join .Args " , "}}' container` |
| !json|json encodes an element as a json string. |`docker inspect --format '{{json .Mounts}}' container` |
| !lower | lower transforms a string into its lowercase representation. |`docker inspect --format "{{lower .Name}}" container ` |
| !split | split slices a string into a list of strings separated by a separator. |`docker inspect --format '{{split .Image ":"}}' ` |
| !title | title capitalizes the first character of a string. |`docker inspect --format "{{title .Name}}" container` |
| !upper | upper transforms a string into its uppercase representation. |`docker inspect --format "{{upper .Name}}" container` |
| !println | println prints each value on a new line. |`docker inspect --format='{{range .NetworkSettings.Networks}}{{println .IPAddress}} {{end}}' container ` |
| | | [[ 2020-03-19 @ docs.docker.com → Format command and log output Docker Documentation |https://docs.docker.com/config/formatting/ ]] |
| [[ 2020-03-07 @ towardsdatascience.com → 15 Docker Commands You Should Know - Towards Data Science |https://towardsdatascience.com/15-docker-commands-you-should-know-970ea5203421 ]] |
| [[ 2020-03-19 @ docs.docker.com → docker inspect Docker Documentation |https://docs.docker.com/engine/reference/commandline/inspect/ ]] |
!logs
!!cleanup
[[ 2016-12-11 @ stackoverflow.com → How to clean Docker container logs? - Stack Overflow |https://stackoverflow.com/questions/41091634/how-to-clean-docker-container-logs ]]
!!logrotate
[[ 2015-03-11 @ sandro-keil.de → Logrotate for Docker container |https://sandro-keil.de/blog/logrotate-for-docker-container/ ]]
---
!! compose tricks
(change tmpfs permissions in compose -> - /tmp:exec,mode=777 ) https://github.com/docker/compose/issues/3425
---
```
##### to make internal traffic see "real" ssl certs, update after host change
##### set to external ip of load balancer / frontend proxy
extra_hosts:
- "api.external.host:1.1.1.1"
```
---
!! cheats
!!! get statuscodes of all upstream domains from nginx config
```
docker exec -it nginx nginx -T|grep server_name|sed 's/\( \|\t\)\+/ /g'|cut -d";" -f1|cut -d" " -f3|sort|uniq|while read horst;do echo "$horst:"$(curl -s -o /dev/null -w "%{http_code}" https://"$horst");done|grep -v -e :301$ -e 200$ -e 302$ -e 204$ -e 000$
```
---
!!! find nginx container config ip
```
docker exec -it nginx nginx -T|grep -e server_name -e upstream -e "server "|grep -A4 mydomain.com
```
---
!!! get container ip
```
docker inspect -f 'NETS:{{range .NetworkSettings.Networks}} IP: {{.IPAddress}}{{end}}'
```
!!!copy db in symmetric containers
```
docker exec -t sourcehost.tld mysqldump -u mysqluser -p$pazzi --all-databases |docker exec -i destinationhost.tld mysql -u mysqluser -p$pazzi
```
---
`docker logs $(basename $(pwd)) 2>&1 `
`docker ps --format "{{.Names}}"`
`docker ps --format "{{.Image}}"`
---
` docker update --memory "3.5g" --cpuset-cpus "0-7" --cpus 1.5 `
---
find OOM(out of memory) killed containers:
`docker ps -a|grep -v -e nginx -e portainer -e redis |sed 's/ \+/ /g'|cut -d" " -f1,2|while read a ;do echo -n $a":";docker container inspect $(echo $a|cut -d" " -f1) -f '{{json .State.OOMKilled}}' 2>&1 ;done|grep true ;echo`
---
```
_vhost_extract_docker() { containers=$(docker ps --format '{{.Names}}' |grep -v -e nginx -e portainer|grep "\." ) ; webcontainers=$(for i in $containers;do imagetype=$(docker inspect --format '{{.Config.Image}}' $i) ; echo $imagetype |grep -q -e ^mariadb -e _cron$ -e memcached -e _database -e piwik-cron -e nginx-gen -e nginx-letsencrypt -e nginx-proxy && (echo will not proc $i" " >&2)|| ( echo -en "$i ";) ; done); (for i in $webcontainers;do imagetype=$(docker inspect --format '{{.Config.Image}}' $i) ;echo $imagetype | grep -q nginx-redirect && ( echo "R@"$i"@"$(docker exec $i printenv VIRTUAL_HOST)"@"$(docker exec $i printenv SERVER_REDIRECT_SCHEME)"://"$(docker exec $i printenv SERVER_REDIRECT)$(docker exec $i printenv SERVER_REDIRECT_PATH)) || ( echo "H@"$i"@"$(docker exec $i printenv VIRTUAL_HOST)"@"$(docker exec $i printenv SSH_PORT)) ; done > /tmp/vhostconf.docker.domainlist) echo ; } ;
```
---
(check docker [pull,run,start,exec,login,attach,rm,rmi])
---
!!! monitoring all domains the container named "nginx" listens to for 502/503/504 and if they work , measure page loading time
```
time (docker exec -t nginx nginx -T -c /etc/nginx/nginx.conf 2>&1 |grep "server_name "|grep -v "This is just an invalid value" | sed 's/\r//g;s/^\(\t\| \)\+//g;s/\(server_name \|;\)//g'|sort|uniq|grep -v "^www\."|while read a ;do curl -kvL https://$a/ 2>&1 | grep "^< HTTP/"| grep -e 502 -e 503 && echo "web_pageload_"$a"=-100" || ( TIMEFORMAT='%E' ; echo "web_pageload_"$a"="$(time (echo -n "https://""$a"|wget -H -K -c -p -e robots=off -i- -O- --timeout=16 &>/dev/null ) 2>&1) |sed 's/\r//g;s/,/./g' |grep -v ^$) ;done ) 2>&1 > /tmp/docker_pageload
```
!!!viewing all stderr logs in a directory /tmp/errors as .log files in less with filtering
`mkdir /tmp/errors;docker ps -a|cut -d" " -f1|while read a;do docker logs $a >/dev/null 2>"/tmp/errors/"$a".log";done cd ;cat /tmp/errors/*log |grep -v -e "client request body is buffered to a temporary" |less`
---
!!!allowing nginx frontend container to use 6 cpus , all others 3 cpus , memory limit for non-nginx is set to 3GB per container
`docker update --memory "3g" --cpuset-cpus "6" nginx;docker ps -a |grep -v ^CONTAINER|grep -v nginx |cut -d" " -f1|while read a ;do docker update --memory "3g" --cpuset-cpus "2" $a ;done;docker update --memory "3g" --cpuset-cpus "6" nginx`
!!→see [[sys:vm:docker:limit:throttle]]
---
!!!show most cpu consuming containers on repeat
` watch 'docker stats --format "table {{.CPUPerc}}\t{{.Name}}" --no-stream --no-trunc|grep -v -e ^0.00 -e ^CPU|sort -nsr|head -n20'
`
!!!find the containers using a specific volume
`docker volume ls --format "{{.Name}}:"` ->yields names
`docker ps -a --filter volume=myvolumename` -> shows container using it
---
!! macOSX
https://docs.docker.com/engine/admin/volumes/bind-mounts/#configure-mount-consistency-for-macos
https://docs.docker.com/docker-for-mac/osxfs-caching/
---
http://container42.com/2014/11/03/docker-indepth-volumes/
http://jpetazzo.github.io/2015/01/19/dockerfile-and-data-in-volumes/
https://gist.github.com/bastman/5b57ddb3c11942094f8d0a97d461b430
https://stackoverflow.com/questions/30183978/bind-a-directory-to-a-docker-container
http://container-solutions.com/understanding-volumes-docker/
https://github.com/moby/moby/issues/21728
https://github.com/moby/moby/issues/3156
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
https://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/
https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/
https://serverfault.com/questions/573378/how-can-i-run-a-full-os-in-a-docker-container-without-specifying-a-command
https://github.com/just-containers/s6-overlay
https://wiki.univention.de/index.php?title=Docker
https://forums.docker.com/t/how-to-run-bash-command-after-startup/21631
https://stackoverflow.com/questions/25135897/how-to-automatically-start-a-service-when-running-a-docker-container
https://docs.docker.com/get-started/part2/
https://docs.docker.com/get-started/part3/
https://github.com/bscheshirwork/docker-yii2-app-advanced/blob/master/docker-run/docker-compose.yml#L28-L62
https://forums.docker.com/t/can-i-change-the-default-ip-from-0-0-0-0-when-binding/30358/2
https://docs.docker.com/engine/installation/linux/docker-ce/debian/
https://docs.docker.com/engine/reference/builder/#expose
https://docs.docker.com/engine/reference/run/#specify-custom-cgroups
https://docs.docker.com/engine/reference/commandline/cli/#examples
https://docs.docker.com/engine/reference/commandline/container_attach/#usage
https://docs.docker.com/engine/reference/commandline/container_port/
https://docs.docker.com/engine/reference/commandline/create/
https://docs.docker.com/engine/userguide/networking/default_network/binding/
https://docs.docker.com/engine/reference/builder/#dockerfile-examples
https://docs.docker.com/engine/reference/builder/#usage
https://docs.docker.com/engine/admin/volumes/volumes/#start-a-container-which-creates-a-volume-using-a-volume-driver
https://docs.docker.com/engine/admin/volumes/bind-mounts/#start-a-container-with-a-bind-mount
https://docs.docker.com/engine/admin/volumes/bind-mounts/#use-a-read-only-bind-mount
https://stackoverflow.com/questions/30547484/calling-openconnect-vpn-client-in-docker-container-shows-tunsetiff-failed-opera
http://container42.com/2013/12/16/persistent-volumes-with-docker-container-as-volume-pattern/
http://www.computerweekly.com/feature/Docker-storage-how-to-get-persistent-storage-in-Docker
https://stackoverflow.com/questions/19585028/i-lose-my-data-when-the-container-exits
https://github.com/rocker-org/rocker/wiki/How-to-save-data
https://stackoverflow.com/questions/26153686/how-do-i-run-a-command-on-an-already-existing-docker-container
https://thenewstack.io/methods-dealing-container-storage/
https://docs.docker.com/engine/admin/volumes/volumes/
https://coderwall.com/p/zguz_w/docker-remove-all-exited-containers
( sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm )
https://www.digitalocean.com/community/tutorials/docker-explained-using-dockerfiles-to-automate-building-of-images
https://forums.docker.com/t/how-to-expose-port-on-running-container/3252/5
https://docs.docker.com/engine/examples/running_ssh_service/
https://stackoverflow.com/questions/32174560/port-forwarding-in-docker-machine
https://github.com/haugene/docker-transmission-openvpn/issues/46
https://github.com/haugene/docker-transmission-openvpn/issues/43
https://superuser.com/questions/1054678/can-we-execute-a-script-as-root-during-docker-container-startup
https://entwickler.de/online/docker-am-praktischen-beispiel-mit-wordpress-150107.html
http://www.pc-erfahrung.de/nebenrubriken/sonstiges/webdesignwebentwicklung/docker/docker-apache-mysql-automatisch-starten.html
https://semaphoreci.com/community/tutorials/dockerizing-a-php-application
https://stackoverflow.com/questions/19234831/where-are-docker-images-stored-on-the-host-machine
https://forums.docker.com/t/how-do-i-change-the-docker-image-installation-directory/1169/31
https://stackoverflow.com/questions/28212380/why-docker-container-exits-immediately
https://stackoverflow.com/questions/30209776/docker-container-will-automatically-stop-after-docker-run-d
https://stackoverflow.com/questions/32043734/can-fail2ban-run-in-a-separate-docker-container-while-somehow-still-implement-ip
https://www.digitalocean.com/community/tutorials/how-to-protect-an-nginx-server-with-fail2ban-on-ubuntu-14-04
https://www.reddit.com/r/docker/comments/axmuj6/nginxtraefik_and_fail2ban_lost_on_how_to_configure/
https://stackoverflow.com/questions/17157721/how-to-get-a-docker-containers-ip-address-from-the-host
!!!start limit hit
https://github.com/moby/moby/issues/33931
!!! socket failing
https://stackoverflow.com/questions/47489631/warning-stopping-docker-service-but-it-can-still-be-activated-by-docker-socke
https://www.brianchristner.io/docker-image-base-os-size-comparison/
https://www.brianchristner.io/how-to-setup-prometheus-docker-monitoring/
https://github.com/GoogleCloudPlatform/redis-docker/blob/master/3/README.md
https://www.healthcareblocks.com/blog/persistent-ruby-gems-docker-container
https://github.com/jwilder/nginx-proxy
https://github.com/phusion/baseimage-docker#readme
https://hub.docker.com/r/zoobab/openwrt-15.05.1-x86-64-rootfs/
https://github.com/hkparker/i2p-docker
https://blog.jessfraz.com/post/routing-traffic-through-tor-docker-container/
https://medium.com/@rdsubhas/docker-image-with-tor-privoxy-and-a-process-manager-under-15-mb-c9e344111b61
https://github.com/Freifunk-Hennef/docker-debian-batman
https://github.com/osixia/docker-openldap/find/stable
https://github.com/JrCs/docker-nginx-proxy-letsencrypt#custom-nginx-configuration
https://docs.docker.com/config/containers/runmetrics/#find-the-cgroup-for-a-given-container
https://gitlab.dev.ifs.hsr.ch/m1huber/docker-nginx-proxy
https://forums.docker.com/t/how-can-i-view-the-dockerfile-in-an-image/5687/3
https://stackoverflow.com/questions/47671108/docker-php-ext-install-mcrypt-missing-folder
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
https://docs.docker.com/config/daemon/ipv6/
https://serverfault.com/questions/617099/publish-or-forward-ipv6-port-range-to-docker-container
https://cloudvedas.com/how-to-cap-or-limit-memory-usage-of-a-docker-container/
http://fuzzyblog.io/blog/docker/2017/06/25/docker-tutorial-understanding-container-memory-usage.html
https://forums.docker.com/t/docker-ps-a-command-to-publish-only-container-names/8483
https://github.com/camptocamp/bivac conplicity (duplicity )
https://www.camptocamp.com/en/actualite/smart-backup-of-docker-volumes/
https://github.com/blacklabelops/volumerize ( Blacklabelops backup and restore solution for Docker volume backups. It is based on the command line tool Duplicity. Dockerized and Parameterized for easier use and configuration. )
duplicity to hetzner storage box
https://www.kuerbis.org/2017/07/backups-mit-duplicity-und-docker/
https://github.com/robbertkl/docker-ipv6nat
https://stackoverflow.com/questions/50600116/ipv6-with-openvpn-in-docker
https://blog.widodh.nl/2017/04/docker-containers-with-ipv6-behind-nat/
https://dzone.com/articles/docker-container-resource-management-cpu-ram-and-i
https://56k.cloud/blog/put-the-brakes-on-docker-containers/
https://docs.docker.com/config/containers/resource_constraints/
https://stackoverflow.com/questions/26841846/how-to-allocate-50-cpu-resource-to-docker-container-via-docker-run
https://stackoverflow.com/questions/43601282/docker-compose-file-memory-cpu-limits
https://stackoverflow.com/questions/43208979/docker-run-script-in-host-on-docker-compose-up ( https://github.com/docker/compose/issues/1809 )
https://stackoverflow.com/questions/42345235/how-to-specify-memory-cpu-limit-in-docker-compose-version-3
https://docs.docker.com/compose/compose-file/#resources
use hyperkit solution !
use cached/delegated volumes
` - /out/side/path:/in/side/path:cached`
<html>
<table><tbody><tr><td><p>Consistent
</p></td><td><p>The host and container are perfectly consistent. Every time a write happens, the data is flushed to all participants of the mount’s view.
</p></td></tr><tr><td><p>Cached
</p></td><td><p>The host is authoritative in this case. There may be delays before writes on a host are available to the container.
</p></td></tr><tr><td><p>Delegated
</p></td><td><p>The container is authoritative. There may be delays until updates within the container appear on the host.
</p></td></tr></tbody></table>
</html>
if using vm solution : raw image instead of qcow2 etc
https://medium.com/@TomKeur/how-get-better-disk-performance-in-docker-for-mac-2ba1244b5b70
https://engageinteractive.co.uk/blog/making-docker-faster-on-mac
(if service ports are not possible in web frontend:
# stop container
# stop docker service (synoservicectl)
# modify corresponding hostconfig.json .. et voila)
https://stackoverflow.com/questions/19335444/how-do-i-assign-a-port-mapping-to-an-existing-docker-container
https://mybrainimage.wordpress.com/2017/02/05/docker-change-port-mapping-for-an-existing-container/
http://www.synology-forum.de/showthread.html?79144-Docker-auf-DS416play-installieren
https://blog.pavelsklenar.com/how-to-install-and-use-docker-on-synology/
http://www.jinkit.com/docker-on-synology/
https://forum.synology.com/enu/viewtopic.php?t=114332
https://gridscale.io/community/tutorials/docker-ubuntu/
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
https://www.marcoraddatz.com/en/2016/07/13/run-homebridge-on-a-synology/
https://mtlynch.io/sia-via-docker/
https://medium.com/@ctindel/running-unifi-controller-in-docker-on-synology-263491f2b803
https://www.symcon.de/forum/threads/35888-Frage-zu-Docker-Debian-Synology
https://docs.docker.com/engine/userguide/networking/default_network/custom-docker0/
https://www.synology.com/de-de/knowledgebase/DSM/help/Docker/docker_container
https://jensbouma.nl/blog/homebridge-in-a-docker-container-on-the-synology-diskstation-guide/
http://www.synology-forum.de/archive/index.html/t-82257.html
https://blog.pavelsklenar.com/how-to-run-application-in-docker-on-synology/
http://www.synology-forum.de/showthread.html?71071-Docker-Lokaler-Port-xxxxx-steht-im-Konflikt-mit-anderen-Ports-und-anderen-Diensten
```
qemu-img snapshot -l <imagename>
#List all snapshots in specified image file.
qemu-img snapshot -c <snapshot-name> <imagename>
#Create a snapshot and name it snapshot-name.
qemu-img snapshot -a <snapshot-name> <imagename>
#Apply a snapshot named snapshot-name
qemu-img snapshot -d <snapshot-name> <imagename>
#Delete the snapshot named snapshot-name from the specified image
qemu-img convert -p -f qcow2 <imagename1> -O qcow2 <imagename2>
##convert and save some bits
qemu-img convert -p -f qcow2 <imagename1> -O qcow2 -c <imagename2>
#convert and compress
```
http://www.azertech.net/content/kvm-qemu-qcow2-qemu-img-and-snapshots
http://pof.eslack.org/2010/12/23/best-solution-to-fully-backup-kvm-virtual-machines/
https://blogs.msdn.microsoft.com/virtual_pc_guy/2015/06/22/handy-tool-for-converting-kvm-vmware-images-to-hyper-v/
https://doc.opensuse.org/documentation/leap/virtualization/html/book.virt/cha.qemu.guest_inst.html#cha.qemu.guest_inst.qemu-img.snapshots
https://wiki.qemu.org/Documentation/CreateSnapshot
http://azertech.net/content/kvm-qemu-qcow2-qemu-img-and-snapshots
https://www.cyberciti.biz/faq/how-to-create-create-snapshot-in-linux-kvm-vmdomain/
https://blog.programster.org/qemu-img-cheatsheet
https://dustymabe.com/2015/01/11/qemu-img-backing-files-a-poor-mans-snapshotrollback/
https://github.com/vasi/qcow2-fuse
qemu-img progess is -p https://bugzilla.redhat.com/show_bug.cgi?id=621482
qemu-img multihread https://www.redhat.com/archives/libguestfs/2017-November/msg00082.html
https://www.mankier.com/8/qemu-nbd
https://kofler.info/wie-ich-ein-qcow2-image-auf-ein-drittel-geschrumpft-habe/
Direct connect , best speed ( check nbdx device before )
` qemu-nbd -c /dev/nbd2 /tmp/DISK.xfs.qcow2 -s -n --aio=native`
http://tech.osteel.me/posts/2015/01/25/how-to-use-vagrant-for-local-web-development.html#server-config
https://laracasts.com/discuss/channels/requests/homestead-provision-deletes-custom-nginx-settings?page=1
https://stackoverflow.com/questions/34039081/after-homestead-provision-it-delete-custom-nginx-settings-in-sites-available
!! list vms
`vboxmanage list vms`
!!start|stop|snapshot
!!!clean shutdown
`vboxmanage controlvm $virmach acpipowerbutton`
!!! stop all vms
`vboxmanage list vms|cut -d\" -f2|while read virmach; do echo -n "VBox:STOP:"${virmach}":";VBoxManage controlvm $virmach acpipowerbutton;done;echo`
!!! start all vms
`vboxmanage list vms -l | grep -e ^Name: -e ^State |sed 's/Name:/Name:̣°/g;s/State:/State:@@/g;s/\ \ //g;s/@ /@/g' | cut -d: -f2-|tr -d '\n' |sed 's/°/\n/g'|grep -e "(" -e since|grep -v "@@running"|cut -d"@" -f1|while read startme ;do VBoxManage startvm $startme --type headless;done`
!!! list all snapshots for all vms in table
`vboxmanage list vms|cut -d\" -f2 |while read virmach ;do vboxmanage showvminfo $virmach|grep -e Snapshots: -e Name:|sed 's/^/'$virmach'\t|\t\t/g' ;for dot in {1..80};do echo -n ".";done;echo ;done`
!!! delete snapshot
`vboxmanage snapshot NAME-of-virtual-MACHINE delete UUID-of-selected-SNAPSHOT`
!!! create snapshot (single)
`SNAPSHOT_NAME="YourNameHere"
SNAPSHOT_ID=$(date -u +%Y-%m-%d_%H.%M)"$SNAPSHOT_NAME"
vboxmanage snapshot NAME-of-virtual-MACHINE take "$SNAPSHOT_ID" --description "$SNAPSHOT_DESCRIPTION"`
!!! create snapshot for all
```
SNAPSHOT_NAME="YourNameHere"
SNAPSHOT_ID=$(date -u +%Y-%m-%d_%H.%M)"-$SNAPSHOT_NAME"
SNAPSHOT_DESCRIPTION="YourCommentHere"
vboxmanage list vms|cut -d\" -f2 |while read virmach ;do echo "backing up "${virmach}"... stay calm and ignore the percentage :) name:"${SNAPSHOT_ID}; vboxmanage snapshot $virmach take "$SNAPSHOT_ID" --description "$SNAPSHOT_DESCRIPTION";done
```
!!! quicker way to delete many snaps
```
while (true);do echo "VM=";read virmach;echo "SNAP-UUID=";read virsnap; echo "deleting in background , log in /tmp/vbox.snap.del."${virmach}.${virsnap} ;vboxmanage snapshot $virmach delete $virsnap &> /tmp/vbox.snap.del.${virmach}.${virsnap} & echo "sleeping 2s , press CTRL+C to exit";sleep 2 ; done
```
monitoring with
`tail -f /tmp/vbox.snap.del.*`
---
!!!Failure Codes
|Failure code|reason |solution|resources|
|Fehlercode: NS_ERROR_FAILURE (0x80004005) machinewrp | netdrv not working <br> (kernel modules)| run vboxconfig<br>or change kernel <br> change config ig imported|https://forums.virtualbox.org/viewtopic.php?t=42727|
How to use the already installed windows System:
<<<
# find partitions used by "native os" → in our example 1,2,3,4 → use them in the example command below ( adjust mmcblk1 and username/path ;)
# e.g. : `sudo VBoxManage internalcommands createrawvmdk -filename "/home/username/Documents/windows10native.vmdk" -rawdisk /dev/mmcblk1 -partitions 1,2,3,4`
# point vbox there, allow user to write directly to that partitions (careful , group `disk` under ubuntu does not always work)
https://www.nirsoft.net/utils/product_cd_key_viewer.html
https://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/
chktwveCoreClickAway: true
chktwveCoreConfirmToDelete: true
chktwveCoreEditWrappers: false
chktwveCoreEnabled: true
chktwveCoreManualSave: true
chktwveCoreManualUpload: true
chktwveCorePreview: true
chktwveCoreShowFocus: true
chktwveExtraCyclickNavi: false
chktwveExtraIncludeSubs: true
chktwveExtraInline: true
chktwveExtraLocateChar: false
chktwveExtraMathAutoNumber: true
chktwveExtraNoClick: false
chktwveTableEditAll: true
chktwveTableEnabled: true
chktwveTableIncludeCSS: true
chktwveTableMultiLine: true
chktwveTableTranspose: true
chktwveTcalcAllTables: true
chktwveTcalcDebugMode: false
chktwveTcalcEnabled: true
chktwveTcalcInTextCalc: true
chktwveTcalcThousandSeparated: false
txttwveCoreMinEditWidth: 6
txttwveCorePreviewCaret: %7C
txttwveCorePreviewHeight: 15
txttwveExtraPreviewOpacity: 1.00
txttwveTableFixCols: 0
txttwveTableFixRows: 0
txttwveTableMaxHeight: 700px
txttwveTableMaxWidth: 100%25
txttwveTableMinCellWidth: 2
txttwveTcalcDecimalMark: .
txttwveTcalcThousandSeparator: %2C
To fix the top-most rows or left-most columns in a table, the [[TWtable|http://twtable.tiddlyspace.com/#TWtable.2.0.8]] plugin clones those rows/columns, makes them fixed on screen, and put them over the original ones. Therefore the alignment between the cloned and the original ones is an important issue in this plugin.
Naively it seems easy to align two objects: simply give the cloned one the same position and dimensions as the original one. Practically, however, due to different box models used in different browsers, it is not an easy task to produce the same results across browsers.
After quite a few times of trying, the {{{TWtable}}} plugin had accomplished very well alignment for some browsers in possibly all cases, and good results for others in many cases. Still there are situations that the alignment is off and not easy to correct. To further fine tune the plugin in those cases could be very time consuming, therefore I would rather stop here and devote more time into other parts of the development.
Here is a summary of the results for the alignment tests:
----
* ''Opera'', ''Safari for Windows'', and ''~TWEdit for iOS''
** Well aligned.
* ''Chrome''
** __Well aligned in Windows__, could be off in Linux.
*** Chrome in Linux is not using integers for the dimension properties of a DOM object, which might be the reason why it is difficult to align the fixed (cloned) table cells.
*** It seems not giving consistent results for transcluded and non-transcluded tiddlers.
* ~FireFox
** __Seems to be aligned well__ in Windows except that some cells have their borders disappeared.
** Could be slightly off in Linux.
* IE
** __Can be aligned well in some versions__, but
*** different versions need different amount of corrections;
**** Even the //apparently same// version of IE may behave differently. For example, the ~IE9 on my desktop does not do the same as the ~IE9 on my laptop (both in Win7x64 inside ~VirtualBox 4.2.4 r81684 in Ubuntu 12.04 x64).
***** __Actually the {{{navigator.userAgent}}} shows IE 9.0 for the desktop version but IE 7.0 for the laptop version__, even though they both claim to be IE 9.0 in the About dialog.
***** Same for the ~IE8: the __{{{navigator.userAgent}}} shows IE 8.0 on my desktop but IE 7.0 on my laptop__ (both in ~WinXP x86 inside ~VirtualBox 4.2.4 r81684 in Ubuntu 12.04 x64).
*** may not give consistent results for transcluded and non-transcluded tiddlers.
/***
|''Name:''|TableSortingPlugin|
|''Description:''|Dynamically sort tables by clicking on column headers|
|''Author:''|Saq Imtiaz ( lewcid@gmail.com )|
|''Source:''|* (Mod) http://tobibeer.tiddlyspace.com/bags/tobibeer_public/tiddlers/TableSortingPlugin<br>* (Org) http://tiddlywiki.squize.org/#TableSortingPlugin|
|''Code Repository:''|http://tw.lewcid.org/svn/plugins|
|''Version:''|2.03|
|''Date:''|24-09-2010|
|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]|
|''~CoreVersion:''|2.2.3|
Mod by Tobias Beer! Refactored the refresh handler to allow triggering a refresh in other macros without refreshing the tiddler!
!!Usage:
* Make sure your table has a header row
** {{{|Name|Phone Number|Address|h}}}<br> Note the /h/ that denote a header row
* Give the table a class of 'sortable'
** {{{
|sortable|k
|Name|Phone Number|Address|h
}}}<br>Note the /k/ that denotes a class name being assigned to the table.
* To disallow sorting by a column, place {{{<<nosort>>}}} in it's header
* To automatically sort a table by a column, place {{{<<autosort>>}}} in the header for that column
** Or to sort automatically but in reverse order, use {{{<<autosort reverse>>}}}
!!Example:
|sortable|k
|Name |Salary |Extension |Performance |File Size |Start date |h
|ZBloggs, Fred |$12000.00 |1353 |+1.2 |74.2Kb |Aug 19, 2003 21:34:00 |
|ABloggs, Fred |$12000.00 |1353 |1.2 |3350b |09/18/2003 |
|CBloggs, Fred |$12000 |1353 |1.200 |55.2Kb |August 18, 2003 |
|DBloggs, Fred |$12000.00 |1353 |1.2 |2100b |07/18/2003 |
|Bloggs, Fred |$12000.00 |1353 |01.20 |6.156Mb |08/17/2003 05:43 |
|Turvey, Kevin |$191200.00 |2342 |-33 |1b |02/05/1979 |
|Mbogo, Arnold |$32010.12 |2755 |-21.673 |1.2Gb |09/08/1998 |
|Shakespeare, Bill |ã122000.00|3211 |6 |33.22Gb |12/11/1961 |
|Shakespeare, Hamlet |ã9000 |9005 |-8 |3Gb |01/01/2002 |
|Fitz, Marvin |â¬3300.30 |5554 |+5 |4Kb |05/22/1995 |
***/
//{{{
// //!BEGIN-PLUGIN-CODE
config.tableSorting = {
darrow: "\u2193",
uarrow: "\u2191",
getText : function (o) {
var p = o.cells[SORT_INDEX];
return p.innerText || p.textContent || '';
},
sortTable : function (o,rev) {
SORT_INDEX = o.getAttribute("index");
var c = config.tableSorting;
var T = findRelated(o.parentNode,"TABLE");
if(T.tBodies[0].rows.length<=1)
return;
var itm = "";
var i = 0;
while (itm == "" && i < T.tBodies[0].rows.length) {
itm = c.getText(T.tBodies[0].rows[i]).trim();
i++;
}
if (itm == "")
return;
var r = [];
var S = o.getElementsByTagName("span")[0];
c.fn = c.sortAlpha;
if(!isNaN(Date.parse(itm)))
c.fn = c.sortDate;
else if(itm.match(/^[$|£|€|\+|\-]{0,1}\d*\.{0,1}\d+$/))
c.fn = c.sortNumber;
else if(itm.match(/^\d*\.{0,1}\d+[K|M|G]{0,1}b$/))
c.fn = c.sortFile;
for(i=0; i<T.tBodies[0].rows.length; i++) {
r[i]=T.tBodies[0].rows[i];
}
r.sort(c.reSort);
if(S.firstChild.nodeValue==c.darrow || rev) {
r.reverse();
S.firstChild.nodeValue=c.uarrow;
}
else
S.firstChild.nodeValue=c.darrow;
var thead = T.getElementsByTagName('thead')[0];
var headers = thead.rows[thead.rows.length-1].cells;
for(var k=0; k<headers.length; k++) {
if(!hasClass(headers[k],"nosort"))
addClass(headers[k].getElementsByTagName("span")[0],"hidden");
}
removeClass(S,"hidden");
for(i=0; i<r.length; i++) {
T.tBodies[0].appendChild(r[i]);
c.stripe(r[i],i);
for(var j=0; j<r[i].cells.length;j++){
removeClass(r[i].cells[j],"sortedCol");
}
addClass(r[i].cells[SORT_INDEX],"sortedCol");
}
},
stripe : function (e,i){
var cl = ["oddRow","evenRow"];
i&1? cl.reverse() : cl;
removeClass(e,cl[1]);
addClass(e,cl[0]);
},
sortNumber : function(v) {
var x = parseFloat(this.getText(v).replace(/[^0-9.-]/g,''));
return isNaN(x)? 0: x;
},
sortDate : function(v) {
return Date.parse(this.getText(v));
},
sortAlpha : function(v) {
return this.getText(v).toLowerCase();
},
sortFile : function(v) {
var j, q = config.messages.sizeTemplates, s = this.getText(v);
for (var i=0; i<q.length; i++) {
if ((j = s.toLowerCase().indexOf(q[i].template.replace("%0\u00a0","").toLowerCase())) != -1)
return q[i].unit * s.substr(0,j);
}
return parseFloat(s);
},
reSort : function(a,b){
var c = config.tableSorting;
var aa = c.fn(a);
var bb = c.fn(b);
return ((aa==bb)? 0 : ((aa<bb)? -1:1));
},
refresh : function(elem){
var ts = elem.getElementsByTagName("TABLE");
var c = config.tableSorting;
for(var i=0;i<ts.length;i++){
if(hasClass(ts[i],"sortable")){
var x = null, rev, table = ts[i], thead = table.getElementsByTagName('thead')[0], headers = thead.rows[thead.rows.length-1].cells;
for (var j=0; j<headers.length; j++){
var h = headers[j];
if (hasClass(h,"nosort"))
continue;
h.setAttribute("index",j);
h.onclick = function(){c.sortTable(this); return false;};
h.ondblclick = stopEvent;
if(h.getElementsByTagName("span").length == 0)
createTiddlyElement(h,"span",null,"hidden",c.uarrow);
if(x===null && hasClass(h,"autosort")) {
x = j;
rev = hasClass(h,"reverse");
}
}
if(x)
c.sortTable(headers[x],rev);
}
}
}
};
Story.prototype.tSort_refreshTiddler = Story.prototype.refreshTiddler;
Story.prototype.refreshTiddler = function(title,template,force,customFields,defaultText){
var elem = this.tSort_refreshTiddler.apply(this,arguments);
if(elem)config.tableSorting.refresh(elem);
return elem;
};
setStylesheet("table.sortable span.hidden {visibility:hidden;}\n"+
"table.sortable thead {cursor:pointer;}\n"+
"table.sortable .nosort {cursor:default;}\n"+
"table.sortable td.sortedCol {background:#ffc;}","TableSortingPluginStyles");
function stopEvent(e){
var ev = e? e : window.event;
ev.cancelBubble = true;
if (ev.stopPropagation) ev.stopPropagation();
return false;
}
config.macros.nosort={
handler : function(place){addClass(place,"nosort");}
}
config.macros.autosort={
handler : function(place,m,p,w,pS){addClass(place,"autosort"+" "+pS);}
}
// //!END-PLUGIN-CODE
//}}}
>這個版本可能是多餘之作,因為絕大部分情況並不需要考慮到這麼多。不過已經花了太多時間,乾脆寫得清楚一點。
>This version is probably unnecessary, for there is no need to consider so much most likely. But I already spent then expected so much longer, might as well just make it clearer.
在電腦語言裡通常 isnumeric 函數都是根據「美式標點」來判斷的,其中句點 (.) 是用來標示小數點,而逗點 (,) 則做為千分位撇節符號。
In computer languages normally the "isnumeric" function follows the US form, in which the period (.) is used as the decimal mark while the comma (,) is the thousands separator.
然而根據維基百科裡[[小數點|http://zh.wikipedia.org/wiki/%E5%B0%8F%E6%95%B8%E9%BB%9E]]網頁的說明,還有許多不同的表示法,甚至在中國與印度還有非千分位的撇節法存在。
According to the Wikipedia [[Decimal mark|http://en.wikipedia.org/wiki/Decimal_mark]] page, however, there exists differen forms of decimal marks and thousands separators. There even exist non-thousands separatoration rules in China and India.
為了能顧及多一點的使用者(其實只是為了自己好玩),我開始構思一個能夠支持多種表示法的 isnumeric 函數。經過一番摧殘腦細胞的過程,其結果就是下面這個__連自己都覺得「''這根本就是瘋了!''」__的版本。而這其實還不夠完整...
In order to benefit more users (actually just for the fun of mine), I started to construct a function that supports multiple forms. After some brain killing periods, I ended up with the following version which __even I myself think is ''totally crazy!''__ And it's not even complete...
{{{
isnumeric : function ( txt, update, given_mark, to_sep ) {
// 檢查傳入的字串 txt 是否為數值,如果是的話,可以選擇性地指定小數點符號,
// 並且選擇是否要使用千分位撇節。預設的小數點及千分位撇節符號可以分別在
// txtTCalcDecimalMark 及 txtTCalcThousandSeparator 兩個系統選項中指定。
// Tests if a string txt is a numeric expression. If so, one gets the option to
// specify the decimal mark and whether to apply thousands separation to the
// expression. Default decimal mark and thousand separator can be given as
// system options txtTCalcDecimalMark and txtTCalcThousandSeparator, respectively.
//
// 參數 Parameters
// txt: 要測試的字串。
// String to test.
// update: 是否要替換小數點符號及使用撇節法。
// Whether to replace the decimal mark and/or
// to apply thousands separation.
// given_mark: 指定的小數點符號,若無指定則使用預設值
// txtTCalcDecimalMark。
// 為何定義這個參數?因為 Javascript 在做計算
// 的時候是採取美式標點,如果使用非美式標點,
// 有可能需要在此轉換以便後續計算。
// User specified decimal mark. Use the default
// value (stored at txtTCalcDecimalMark) if not
// given.
// Why there is such an option? Because the
// Javascript uses the US form for calculations.
// If non-US form is used instead, one might need
// to put it back for later calculations.
// to_sep: 是否使用撇節法。
// Whether to apply thousands separation.
//
// 傳回值 Return value 如果是數值,傳回原字串或是撇節過的字串,
// 如果有指定 given_mark,小數點會被替換。
// 如果不是數值,傳回空字串。
// 為何傳回字串而不是真偽值呢?因為
// TWtcalc(前身為 TableCalculator)的自訂函數設計
// 上是可以交給Javascript 的 eval() 函數來計算出結果
// 的,而這個 eval() 函數接收的參數便是字串,因此
// 在設計可以讓自訂函數使用的函數時都統一以字串
// 為傳回值的型態。
// If numeric, returns the original string or its
// thousands-separated version. Decimal mark will
// be replaced with given_mark if specified.
// If non-numeric, returns an empty string.
// Why returns a string instead of boolean value?
// Because the TWtcalc (formerly TableCalculator)
// allows a user-defined function to pass its return
// value to Javascript for final evaluation. The evaluation
// function, eval(), takes a string as its parameter,
// hence the return values of those functions accessible
// to user-defined functions are in string type.
var ndig = 0, ncomma = 0, nperiod = 0,
npm = 0, nspace = 0, ndot = 0, i, ch;
for ( i = 0; i < txt.length; i++ )
// 一次測試一個字元。
// Test one character at a time.
if ( /[^0-9]/.test((ch=txt.charAt(i))) )
// 如果不是數字的話...
// If not a digit...
switch ( ch ) {
case '+' :
case '-' :
// 正或負號可以沒有或出現一次,而且只能在最前面。
// There can be zero or one appearance of either the
// plus or minus sign, only at the leading position.
if ( i > 0 ) return '';
if ( ++npm > 1 ) return '';
break;
case '.' :
// 句點與逗點都可能是小數點也可能是千分位撇節符,
// 兩者可以都沒有,有的話撇節符可以出現多次,
// 小數點只能出現一次。
// Both the period and comma could be the decimal mark
// or the thousands separator. There could be none of them,
// or more than one separators but just one decimal mark.
if ( ++nperiod > 1 && ncomma > 1)
return '';
break;
case ',' :
// 見上面說明。
// See comments above.
if ( ++ncomma > 1 && nperiod > 1)
return '';
break;
case ' ' :
// 空格可以當做撇節符號,此時句點或逗點都可能是小數點。
// 小數點不能多於一個。
// The white space can be the thousands separator, with
// either the period or comma as the decimal mark. The
// decimal mark cannot appear more than once.
if ( ++nspace > 1 &&
(ndot>1 || nperiod>1 || ncomma>1) )
return '';
break;
case '·' :
// 同上方說明。
// Same as above.
if ( ++ndot > 1 &&
(nspace>1 || nperiod>1 || ncomma>1) )
return '';
break;
default :
// 不是數字又不是以上的符號,不是數值,傳回空字串。
// Neither a digit nor one of the above symbols, not
// a numeric value. Return an empty string.
return '';
}
else
// 這個字元是一個數字,數字個數加一。
// This character is a digit, increase the number of digits by one.
ndig++;
// 如果沒有數字出現,不是數值,傳回空字串。
// Not a numeric value if no digits appear. Returns an emtpy string.
if ( ndig == 0 ) return '';
// 如果沒有任何小數點與撇節符,表示都是數字,不需要替換小數點或
/ 做千分位撇節的話就把字串傳回去。
// No possible decimal marks and thousands separators, the string contains
// all-digit characters. Returns the string itself if no need to replace decimal
// mark and/or apply thousands separation.
if ( !update && (ncomma == 0 && nperiod == 0 &&
nspace == 0 && ndot == 0) )
return txt;
// 需要替換小數點或做千分位撇節,預設採取美式標點。
// Need to replace the decimal mark or apply thousands separation.
// Take the US form as default.
var mark = '.', separator = ',',
nmark = nperiod, nsep = ncomma;
if ( nperiod > 1 ) {
// 有多於一個的句點,表示句點是當做撇節符號,
// 逗點就是小數點符號就是。
// There are more than one period in the string,
// meaning it must be the separator and the comma
// be the decimal mark.
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( nspace > 0 ) {
// 多於一個空格,表示空格是撇節符號,逗點或
// 句點都可能是小數點符號。小數點只能有一個,
// 如果有的話。預設採取句號,因為台灣使用
// 這個符號為小數點。
// There are more than one spaces, meaning it must
// be the separator and either the comma or the
// period be the decimal mark. The decimal mark
// can appear either zero or only one time. Use
// the period as default value because it's used
// in Taiwan as the decimal mark.
if ( (nperiod > 0 && ncomma > 0) ||
(nperiod > 1 || ncomma > 1) ) return '';
separator = ' '; nsep = nspace;
if ( ncomma > 0 ) {
mark = ','; nmark = ncomma;
} else {
mark = '.'; nmark = nperiod;
}
} else if ( ndot > 0 ) {
// 多於一個點號(中央點),表示點號是撇節符號,
// 逗點是小數點符號。
// More than one middle dot, meaning it's the
// separator and the comma is the decimal mark.
if ( nperiod > 0 || ncomma > 1 ) return '';
separator = '·'; mark = ',';
nsep = ndot; nmark = ncomma;
} else if ( ncomma == 1 && nperiod == 0 ) {
// 如果只有一個逗點而沒有句點,這個逗點可能代表
// 小數點也可能是撇節符號,而句點是另外一個符號。
// 但因為預設逗點當做撇節符號,這裡只需要檢查兩
// 種情況:是否為小數點?不是的話有沒有撇錯位置?
// If there is just one comma and no period, this
// comma can be either the decimal mark or the
// separator, while the period be the other. However,
// by default we take the period as the decimal mark,
// here we only need to check two things: Is this
// comma the decimal mark? If not, is it at the right
// place as a separator?
i = txt.indexOf(',');
if ( i==0 || txt.length-i!=4 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( txt.length-i < 4 )
return '';
} else if ( nperiod == 1 && ncomma == 1 ) {
// 有一個逗點及一個句點,看是否有辦法判斷撇節符,
// 以及撇節符是否在正確的位置。
// There are one comma and one period, we need to
// check whether possible to tell which is separator,
// and the separator is at the right position.
i = txt.indexOf(',') - txt.indexOf('.');
if ( i == 4 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( i != -4 )
return '';
}
if ( nsep > 0 && ! config.options.chkTWtcalcThousandSeparated )
// 如果有撇節符號,但我們並不要使用撇節法,
// If there are thousands separators but we are not applying thousands separation,
return '';
if ( nsep > 1 ) {
// 有多於一個的撇節符號,檢查是否都在正確位置。
// There are more than one separators, make sure
// they are at the right positions.
var p1 = txt.indexOf(separator), p2;
while( (p2=txt.indexOf(separator,p1+1))>-1 ) {
if ( p2 - p1 != 4 ) return '';
p1 = p2;
}
}
if ( (nmark>0 && mark!=config.options.txtTWtcalcDecimalMark)
|| (nsep>0 &&
separator!=config.options.txtTWtcalcThousandSeparator) )
// 如果有小數點但卻和預設值不同,
// 或是有撇節符號但和預設值不同,
// If there is decimal mark but it's not the same as the default,
// or there are thousands separators but they are not the same as the default,
return '';
var opt_mark = given_mark ? given_mark :
config.options.txtTCalcDecimalMark;
if ( nsep == 0 ) {
// 如果沒有撇節符號,視情況置換小數點及使用撇節法後傳回。
// If no separators, replace the decimal mark and apply
// thousands separation if necessary, then returns.
if ( opt_mark != mark )
txt = this.replace_decimal_mark(mark, opt_mark);
return to_sep ? this.separate_number(txt) : txt;
}
// 有撇節符號存在,視情況置換後傳回。
// There are already thousands separators, replace them if necessary.
var opt_separator = to_sep ?
config.options.txtTCalcThousandSeparator : '';
if ( (mark!=opt_mark) || (separator!=opt_separator) ) {
for ( i = 0; i < txt.length; i++ ) {
ch = txt.charAt(i);
if ( ch == separator ) {
if(separator!=opt_separator)
txt=txt.substring(0,i)+
opt_separator+txt.substring(i+1);
}
else if( ch == mark ) {
if(mark!=opt_mark)
txt=txt.substring(0,i)+
opt_mark+txt.substring(i+1);
}
}
}
return txt;
},
}}}
!! The situation
[[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] uses the ~TextArea objects to edit the content of table cells. Usually one ~TextArea is good for one cell that does not span across multiple rows/columns. In cases that a cell does span, however, the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] uses multiple ~TextArea objects, one for each row/column spanned, to edit the content of that cell. One jQuery object is used to represent all ~TextArea objects in the same row, so for a row-spanned cell there are multiple jQuery objects, each of which represents one ~TextArea, while for a column-spanned cell there is one jQuery object representing multiple ~TextArea objects. This way works fine in row-spanned cases but fails for column-spanned cells: No ~TextArea shows up for editing at all.
The cause is unknown but was found to lie in the focus handling mechanism. When a jQuery object, $ta, for example, is representing multiple ~TextArea objects, calling $ta.focus() brings input focus to one of the ~TextArea objects, provided that focusout event is not bound to any handler function. If a handler is bound to the focusout event of any of the ~TextArea objects or the table cell, their common direct parent, $ta.focus() does not seem to do any thing: does not bring focus to any thing, does not throw an exception, does not even show the ~TextArea objects.
>The same may apply to focusin?
!! Solution
Currently I have no solution for this.
!! Workaround
[[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] takes over the focus switching within the tables in a tiddler.
The ''twve'' carries the so-called //focusing borders// to visually remind the users //what you can edit now//.
The codes are implemented in <<slider "" 'twve.extra##editable.box' 'editable.box'>> in the ''twve.extra'' module.
An option in ~TiddlyWiki comtains a {{{value}}} and a {{{description}}} (and a {{{name}}}, of course). The {{{value}}} is for affecting the output of a plugin or the ~TiddlyWiki core, while the {{{description}}} is for the users to understand what the option is affecting. For example,
{{{
config.options.chkTEditorAllTableEditable = false;
config.optionsDesc.chkTEditorAllTableEditable = 'Make all tables in this tiddler editable. If true, all tables will be editable with or without class name "editable". Otherwise only tables with class name "editable" are editable.';
}}}
is a valid ~TiddlyWiki option that affects the behavior of [[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]] plugin. Normally, options //with// a description will show up in the AdvancedOptions shadow tiddler for further tweaking. Those //without// a description, however, are hidden from the users unless the {{{Show unknown options}}} checkbox is checked.
In the [[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]] and [[TWtcalc|http://twtable.tiddlyspace.com/#TWtcalc.1.0.10]] plugins, options are initialized in the {{{init}}} function, which are called after all macros are loaded, according to the {{{Macro - init()}}} tiddler in http://tiddlywikidev.tiddlyspace.com/.
>By the way, how to put a ink to {{{http://tiddlywikidev.tiddlyspace.com/#[[Macro%20-%20init%28%29]]}}} in a tiddler? A simple http://tiddlywikidev.tiddlyspace.com/#[[Macro%20-%20init%28%29]] doesn't seem to work for the closing sqaure brackets are not included in the hyper link.
Previously I put the {{{value}}} and {{{description}}} initialization codes in the {{{init}}} function for all the options, such as,
{{{
if ( config.options.chkTEditorAllTableEditable===undefined ) {
config.options.chkTEditorAllTableEditable = false;
config.optionsDesc.chkTEditorAllTableEditable = 'Make all tables in this tiddler editable. If true, all tables will be editable with or without class name "editable". Otherwise only tables with class name "editable" are editable.';
}
}}}
I thought they would just show up in the AdvancedOptions shadow tiddler for users to play with, but it turned out only Google Chrome was doing the expected. All others were not. Worse yet, all browsers except for Chrome did not show the descriptions at all.
After diggin into the ~TiddlyWiki codes, I guessed the reason is that __the descriptions are //not// saved with the correspoinding option values__. Since I only put the description when the option is undefined, browsers that do save the option values will not have the corresponding descriptions once the options are saved (because they are no longer undefined). And my Google Chrome does not save options so it gets the chance to reinitialize the descriptions every time the file is loaded. Realized this, I separated the codes into {{{settting up value}}} when undefined,
{{{
if ( config.options.chkTEditorAllTableEditable===undefined ) {
config.options.chkTEditorAllTableEditable = false;
}
}}}
and {{{giving the description}}} explicitly,
{{{
merge ( config.optionsDesc, {
chkTEditorAllTableEditable:'Make all tables in this tiddler editable. If true, all tables will be editable with or without class name "editable". Otherwise only tables with class name "editable" are editable.'
} );
}}}
Voilà: I have my options shown as they outhgt to be.
> To give a description, simply put <br><br> {{{config.optionsDesc.chkTEditorAllTableEditable = 'Make all tables in this tiddler editable. If true, all tables will be editable with or without class name "editable". Otherwise only tables with class name "editable" are editable.';}}}<br><br>would do the trick, too. Using the {{{merge}}} function, however, saves some keystrokes and so a few bytes in plugin size.
!!Helpful stuff
| transparent tiddlers / elements | `rgba(52,200,52,0.2)` <br > The values for HSL are <br> hue = 0 to 360<br> saturation = 0% to 100%<br> lightness = 0% to 100%<br><br>Like this:<br> `hsl(240,50%,90%)`<br><br>You can also use HSLA, which includes an "alpha channel" value between 0 and 1 to specify the opacity:<br><br>Like this:<br> `hsla(240,50%,90%,0.5)`<br> | <a href="https://groups.google.com/forum/#!topic/Tiddlywiki/cku3iBAmRpY">TW G-Groups</a> |
| background image for tiddlers |You can define a ".tc-tagged-..." class to set the background CSS attributes. For example, create a tiddler, tagged with $:/tags/Stylesheet, containing:<br><br>.tc-tagged-jack {<br> background-image: url(<<datauri "Motovun Jack.jpg">>);<br>}<br> | <a href="https://groups.google.com/forum/#!topic/tiddlywiki/sktlPBmWdcg">TW G-Groups</a> |
!!!blog/Journal:
https://tiddlywiki.com/static/Creating%2520journal%2520tiddlers.html
http://a-penguin-in-redmond.blogspot.com/2014/02/creating-baby-journal-with-tiddlywiki-5.html
https://groups.google.com/forum/#!msg/tiddlywiki/gh32_049Duc/FEHzrMkgBQAJ
---
json-relation import to tiddlymap:
https://groups.google.com/forum/#!msg/tiddlywiki/6K3Z6pLI_p0/O5jna82RnUgJ
---
!!! HowTo:
!!!!! intro :
# http://wiki.c2.com/?TiddlyWiki
# http://tiddlertoddler.tiddlyspot.com/
---
!!! tables
escape tables: https://stackoverflow.com/questions/17319940/how-to-escape-a-pipe-char-in-a-code-statement-in-a-markdown-table
also see here for tables in howto german: https://tiddlywiki.com/languages/de-DE/alltiddlers.html
---
!!!! hide tiddler ( name prefix $:/ )
https://groups.google.com/forum/#!topic/tiddlywiki/pk2PCvep8Z0
---
!!! regex and filters
see [[$:/_sitemap]] in edit mode ;)
https://tiddlywiki.com/static/regexp%2520Operator%2520(Examples).html
---
!!!!shortcuts
https://tiddlywiki.com/static/KeyboardShortcuts.html
https://tiddlywiki.com/static/How%2520to%2520create%2520keyboard%2520shortcuts.html
https://tiddlywiki.com/static/Keyboard%2520Shortcut%2520Descriptor.html
https://tiddlywiki.com/static/Keyboard%2520Shortcut%2520Tiddler.html
http://keeboord.tiddlyspot.com/
!!!!performance:
https://tiddlywiki.com/static/Performance.html
---
!!!! plugins:
tiddlydrive: https://lordratte.gitlab.io/
http://sycom.gitlab.io/TiddlyWiki-Plugins/
https://tiddlywiki.com/static/How%2520to%2520put%2520the%2520last%2520modification%2520date%2520in%2520a%2520banner.html
https://tiddlywiki.com/static/Making%2520a%2520custom%2520journal%2520button.html
http://giffmex.org/experiments/tidmarks.html#Bookmarking%20with%20TidMarks
https://tiddlywiki.com/static/Generating%2520Static%2520Sites%2520with%2520TiddlyWiki.html
https://tiddlywiki.com/static/Setting%2520a%2520favicon.html
https://tiddlywiki.com/static/ServerCommand.html
http://tw5magick.tiddlyspot.com/
https://groups.google.com/forum/#!forum/TiddlyWiki
https://groups.google.com/forum/#!topic/TiddlyWiki/_TeRHmGWu6o
http://www.tiddlytools.com/#ImageSizePlugin
http://www.richshumaker.com/tw5/tw-photo.html
https://groups.google.com/forum/#!topic/tiddlywiki/lwwRKPhlc9Y
http://braintest.tiddlyspot.com/
https://groups.google.com/forum/#!topic/TiddlyWiki/_TeRHmGWu6o
http://inmysocks.tiddlyspot.com/#What%20to%20do
http://ooktech.com/jed/ExampleWikis/Directory.html
http://tiddlymap.org/#Styling%20Nodes
http://tiddlywiki.narkive.com/U4h2bhW9/tw-how-to-establish-external-link-to-get-node-icon-in-tiddlymap-some-hack-or
https://tiddlywiki.com/static/Saving%2520on%2520a%2520PHP%2520Server.html
https://stackoverflow.com/questions/28801936/saving-tiddlywiki-5-to-server-using-store-php
https://borism.net/2009/03/18/server-side-tiddlywiki-with-php-easy/
---
!!!Cheat Sheet
https://casinoqmc.net/PWT/hints.pdf #backup http://web.archive.org/web/20191127015136/https://casinoqmc.net/PWT/hints.pdf
---
!!! iFrame
http://solo.dc3.com/tw/HandlingIframes.html
!!! Filters
https://tiddlywiki.com/#Introduction%20to%20filter%20notation
!!! Plugins & Macros
https://tiddlywiki.com/static/Installing%2520a%2520plugin%2520from%2520the%2520plugin%2520library.html
https://github.com/kookma/TW-Todolist
https://github.com/kookma/Tiddlyshow
https://bimlas.gitlab.io/tw5-locator/
https://bimlas.gitlab.io/tw5-kin-filter/
https://tiddlywiki.com/static/Full%2520Text%2520Search%2520Plugin%2520by%2520Rob%2520Hoelz.html
https://tiddlywiki.com/static/Markdown%2520Plugin.html
https://tiddlywiki.com/static/D3%2520Plugin.html → e.g: https://tiddlywiki.com/plugins/tiddlywiki/d3/
https://tiddlywiki.com/static/External%2520Attachments%2520Plugin.html
---
https://tobibeer.github.io/tw/static/#sitemap.xml
http://mptw2.tiddlyspot.com/#Plugins → clock,sitemap etc.
lost:
http://tiddlyvault.tiddlyspot.com/#SEOTiddlyWikiPlugin
---
https://tiddlywiki.abego-software.de/
https://tid.li/tw5/plugins.html#Get%20More%20Plugins:%5B%5BGet%20More%20Plugins%5D%5D%20ToDoNow%20%5B%5BToDoNow%20Installation%5D%5D%20%24%3A%2Fplugins%2Ftelmiger%2FPluginSize%2Flists
!!! Languages - Translation
https://tiddlywiki.com/static/Translate%2520TiddlyWiki%2520into%2520your%2520language.html
https://tiddlywiki.com/editions/translators/
!!! Syntax
https://tiddlywiki.com/static/Formatting%2520in%2520WikiText.html
https://tiddlywiki.com/static/Horizontal%2520Rules%2520in%2520WikiText.html
https://tiddlywiki.com/static/Hard%2520Linebreaks%2520in%2520WikiText.html
https://tiddlywiki.com/prerelease/static/ExternalImages.html
https://tiddlywiki.com/prerelease/static/How%2520to%2520embed%2520PDF%2520and%2520other%2520documents.html
https://tobibeer.github.io/tw/static/#Draft%20of%20'Static%20Sites'
https://tiddlywiki.com/static/TiddlerFields.html
https://tiddlywiki.com/static/How%2520to%2520turn%2520off%2520camel%2520case%2520linking.html
https://tiddlywiki.com/static/prefix%2520Operator%2520(Examples).html
https://onclique.neocities.org/Write%20Your%20Own%20Tiddlywiki%20Tagging%20Tools.html
!!!! Linking aka `[name|tiddlername]`
https://tiddlywiki.com/static/Linking%2520in%2520WikiText.html
!!!! Permalinks
The simplest form of permalink (
) is a single target tiddler title appended to the base URL with #:
`https://tiddlywiki.com/#HelloThere
`
The tiddler title can contain spaces if required:
`https://tiddlywiki.com/#Using TiddlyWiki on Node.js`
Note that double square brackets are not required around the target tiddler title; however, if present they are silently removed.
Story Permalinks
The permalink can also specify the story list of tiddlers that should be opened alongside the target tiddler as a TiddlerFilter:
`https://tiddlywiki.com/#TiddlerFields:Tiddlers TiddlerTags TiddlerFields ContentType`
If the target tiddler isn't present in the story list then it is automatically inserted at the top. This means that the following two examples both target the tiddler Tiddlers within the story sequence Tiddlers, Tags, TiddlerFields:
`https://tiddlywiki.com/#Tiddlers:Tags TiddlerFields`
`https://tiddlywiki.com/#Tiddlers:Tiddlers Tags TiddlerFields`
It is also possible to specify a story filter without specifying a target tiddler for navigation:
`https://tiddlywiki.com/#:[tags[task]]`
----
https://tiddlywiki.com/static/WidgetMessage%253A%2520tm-permalink.html
---
!TiddlyWiki Formatting
* Rendered versions can be found below or at: http://www.tiddlywiki.com/#Reference
|!Option | !Syntax |
|bold font | ''bold'' |
|italic type | //italic// |
|underlined text | __underlined__ |
|strikethrough text | --strikethrough-- |
|superscript text | super^^script^^ |
|subscript text | sub~~script~~ |
|highlighted text | @@highlighted@@ |
|preformatted text | {{{preformatted}}} |
!Block Elements
<<<
!Heading 1
!!Heading 2
!!!Heading 3
!!!!Heading 4
!!!!!Heading 5
<<<
!!Lists
<<<
* unordered list, level 1
** unordered list, level 2
*** unordered list, level 3
# ordered list, level 1
## ordered list, level 2
### unordered list, level 3
; definition list, term
: definition list, description
<<<
!!Blockquotes
<<<
> blockquote, level 1
>> blockquote, level 2
>>> blockquote, level 3
> blockquote
<<<
!!Preformatted Text
<<<
{{{
preformatted (e.g. code)
}}}
<<<
!!Code Sections
<<<
{{{
Text style code
}}}
<!--{{{-->
XML styled code. TiddlyWiki mixed mode should support highlighter switching in the future.
<!--}}}-->
<<<
!!Tables
<<<
|CssClass|k
|!heading column 1|!heading column 2|
|row 1, column 1|row 1, column 2|
|row 2, column 1|row 2, column 2|
|>|COLSPAN|
|ROWSPAN| ... |
|~| ... |
|CssProperty:value;...| ... |
|caption|c
''Annotation:''
* The {{{>}}} marker creates a "colspan", causing the current cell to merge with the one to the right.
* The {{{~}}} marker creates a "rowspan", causing the current cell to merge with the one above.
<<<
!!Images /% TODO %/
cf. [[TiddlyWiki.com|http://www.tiddlywiki.com/#EmbeddedImages]]
!Hyperlinks
* [[WikiWords|WikiWord]] are automatically transformed to hyperlinks to the respective tiddler
** the automatic transformation can be suppressed by preceding the respective WikiWord with a tilde ({{{~}}}): {{{~WikiWord}}}
* [[PrettyLinks]] are enclosed in square brackets and contain the desired tiddler name: {{{[[tiddler name]]}}}
** optionally, a custom title or description can be added, separated by a pipe character ({{{|}}}): {{{[[title|target]]}}}<br>'''N.B.:''' In this case, the target can also be any website (i.e. URL).
!Custom Styling
* {{{@@CssProperty:value;CssProperty:value;...@@}}}<br>''N.B.:'' CSS color definitions should use lowercase letters to prevent the inadvertent creation of WikiWords.
* <html><code>{{customCssClass{...}}}</code></html>
* raw HTML can be inserted by enclosing the respective code in HTML tags: {{{<html> ... </html>}}}
!Special Markers
* {{{<br>}}} forces a manual line break
* {{{----}}} creates a horizontal ruler
* [[HTML entities|http://www.tiddlywiki.com/#HtmlEntities]]
* [[HTML entities local|HtmlEntities]]
* {{{<<macroName>>}}} calls the respective [[macro|Macros]]
* To hide text within a tiddler so that it is not displayed, it can be wrapped in {{{/%}}} and {{{%/}}}.<br/>This can be a useful trick for hiding drafts or annotating complex markup.
* To prevent wiki markup from taking effect for a particular section, that section can be enclosed in three double quotes: e.g. {{{"""WikiWord"""}}}.
```
!TiddlyWiki Formatting
* Rendered versions can be found at: http://www.tiddlywiki.com/#Reference
|!Option | !Syntax |
|bold font | ''bold'' |
|italic type | //italic// |
|underlined text | __underlined__ |
|strikethrough text | --strikethrough-- |
|superscript text | super^^script^^ |
|subscript text | sub~~script~~ |
|highlighted text | @@highlighted@@ |
|preformatted text | {{{preformatted}}} |
!Block Elements
<<<
!Heading 1
!!Heading 2
!!!Heading 3
!!!!Heading 4
!!!!!Heading 5
<<<
!!Lists
<<<
* unordered list, level 1
** unordered list, level 2
*** unordered list, level 3
# ordered list, level 1
## ordered list, level 2
### unordered list, level 3
; definition list, term
: definition list, description
<<<
!!Blockquotes
<<<
> blockquote, level 1
>> blockquote, level 2
>>> blockquote, level 3
> blockquote
<<<
!!Preformatted Text
<<<
{{{
preformatted (e.g. code)
}}}
<<<
!!Code Sections
<<<
{{{
Text style code
}}}
//{{{
JS styled code. TiddlyWiki mixed mode should support highlighter switching in the future. TW5 failed to render
//}}}
<!--{{{-->
XML styled code. TiddlyWiki mixed mode should support highlighter switching in the future.
<!--}}}-->
<<<
!!Tables
<<<
|CssClass|k
|!heading column 1|!heading column 2|
|row 1, column 1|row 1, column 2|
|row 2, column 1|row 2, column 2|
|>|COLSPAN|
|ROWSPAN| ... |
|~| ... |
|CssProperty:value;...| ... |
|caption|c
''Annotation:''
* The {{{>}}} marker creates a "colspan", causing the current cell to merge with the one to the right.
* The {{{~}}} marker creates a "rowspan", causing the current cell to merge with the one above.
<<<
!!Images →use html or create tiddler←
cf. [[TiddlyWiki.com|http://www.tiddlywiki.com/#EmbeddedImages]]
!Hyperlinks
* [[WikiWords|WikiWord]] are automatically transformed to hyperlinks to the respective tiddler
** the automatic transformation can be suppressed by preceding the respective WikiWord with a tilde ({{{~}}}): {{{~WikiWord}}}
* [[PrettyLinks]] are enclosed in square brackets and contain the desired tiddler name: {{{[[tiddler name]]}}}
** optionally, a custom title or description can be added, separated by a pipe character ({{{|}}}): {{{[[title|target]]}}}<br>'''N.B.:''' In this case, the target can also be any website (i.e. URL).
!Custom Styling
* {{{@@CssProperty:value;CssProperty:value;...@@}}}<br>''N.B.:'' CSS color definitions should use lowercase letters to prevent the inadvertent creation of WikiWords.
* <html><code>{{customCssClass{...}}}</code></html>
* raw HTML can be inserted by enclosing the respective code in HTML tags: {{{<html> ... </html>}}}
!Special Markers
* {{{<br>}}} forces a manual line break
* {{{----}}} creates a horizontal ruler
* [[HTML entities|http://www.tiddlywiki.com/#HtmlEntities]]
* [[HTML entities local|HtmlEntities]]
* {{{<<macroName>>}}} calls the respective [[macro|Macros]]
* To hide text within a tiddler so that it is not displayed, it can be wrapped in {{{/%}}} and {{{%/}}}.<br/>This can be a useful trick for hiding drafts or annotating complex markup.
* To prevent wiki markup from taking effect for a particular section, that section can be enclosed in three double quotes: e.g. {{{"""WikiWord"""}}}.
```
http://braintest.tiddlyspot.com/#Editable-Table
https://tiddlywiki.com/static/%2522Dynamic%2520Tables%2522%2520by%2520Jed%2520Carty.html
http://twve.tiddlyspot.com/
https://mauloop.github.io/tw5-table-tool/#The%20music%20of%20my%20life
https://ooktech.com/jed/ExampleWikis/DynamicTables/
[[GeoTiddler]]s are tiddlers containing geographical data. [[geoSyntax|$:/plugins/sycom/leaflet/geoSyntax]] lists the available objects. [[geoJson|https://en.wikipedia.org/wiki/GeoJSON]] data are also accepted. You may specify a color for all objects displayed through `color` field.
!! tiddler with geo TiddlerFields
You can upgrade your tiddler by putting some geo metadata ([[wgs 84 coordinates|https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84]]) in it's TiddlerFields. See [[geoSyntax|$:/plugins/sycom/leaflet/geoSyntax]] for the list of object types you can draw. Popup will show the first part of the tiddler. If the tiddler contains a leafmap widget, it will be rendered as `text/plain` in order to avoid crash...
!! geoJSON tiddler
You can define a geoJson tiddler like [[tiddlyWikiFrCommunity|$:/plugins/sycom/leaflet/example/tiddlyWikiFrCommunity]] and then display the data by calling it. Just put your geoJson data in the body and declare the tiddler as application/json. Any `application/json` tiddler called will be considered as geoJson. The popups will show
* a title
** the `name` or the `title` attribute in properties if exists,
** if not, the firsts attributes of properties until they are 8 characters long
* a description
** the `description` attribute in properties if exists,
** if not, the data stored in each feature as a bulleted list.
!! tiddler grouping [[GeoTiddler]]s
You can use `tiddlers` or `filter` as TiddlerFields to make a group of tiddlers. You can apply some styling options to all the group using `style`, `color` or `marker` TiddlerFields and then call the tiddler in your map to render all those tiddler at the same time. This will be a good way to make thematic maps indeed...
The [[Leaflet maps plugin|$:/plugins/sycom/leaflet]] will transform your TiddlyWiki into a GIS database.
''Be careful, entering wrong coordinates may cause unwanted behaviour''. Please conform to the first rule of TiddlyWiki : backup before any experiment.
For now `<$leafmap />` widget displays an interactive map, select size, location and zoom, clustering distance, and background. You can display data : geojson, point(s), polygon(s) and/or polyline(s) directly or calling [[GeoTiddler]](s). Tiddler can be called individually, by list or with a filter.
Apart from the Leaflet Plugin you can get the [[geoLocationWidget]]. It doesn't need to have the Leaflet plugin installed in order to work.
See [[plugin's integrated examples|$:/plugins/sycom/leaflet/example]], or the [[Michel Strogoff from the sky]] attempt to see it in action. And install it in your wiki if you like it : drag and drop one of the following. Before proceeding, be sure you're up to date with number one TiddlyWiki rule : ''back up your wiki before any experiment!''
<div style="text-align:center">
<a class="tc-btn-big-green whiteLink">
[[Leaflet|$:/plugins/sycom/leaflet]]</a> <a class="tc-btn-big-green whiteLink">
[[geoloc w.*|$:/ext/modules/widgets/geolocation-widget.js]]</a>
</div>
''*'' //the geolocation widget is not bundled so, if you want the doc, don't forget to grab it alongside the widget : [[geoLocationWidget]]//
<$list filter="[[$:/plugins/sycom/leaflet]]" emptyMessage=<<lingo "Empty/Hint">> template="$:/core/ui/Components/plugin-info"/>
<<list-links "[!is[system]!regexp[\$:/(?i)]]">>
<div class="dynamic-table">
<$list filter="[has[tags]tags[]!is[system]!regexp[(?i)\$:/]]sort[title]first[235]]">
<span class="item">
<$transclude tiddler="$:/core/ui/TagTemplate"/>
</span>
</$list>
</div>
| Name | URL | repository | I | Tables | Custom Tables | | Formatting Knobs | Preview | Spell Check | Reading Mode | | remarks | | | | |
|----------------------------|-------------------------------------------------------------|---------------------------------------|------|---------|---------------|---|------------------|---------|-------------|--------------|---|--------------|---|---|---|---|
| editor.md | https://pandao.github.io/editor.md/en.html | | I | <<yes>> | <<yes>> | | <<yes>> | <<yes>> | | | | | | | | |
| stackedit.io | https://stackedit.io/ | https://github.com/benweet/stackedit | I | <<yes>> | <<no>> | | <<yes>> | <<yes>> | | | | | | | | |
| dillinger | dillinger.io | | I | <<no>> | <<no>> | | <<no>> | <<yes>> | | | | | | | | |
| tableconvert | https://tableconvert.com/blog/documentation/ | | I | <<yes>> | <<yes>> | | <<yes>> | <<yes>> | | | | | | | | |
| Markdown Editor | https://jbt.github.io/markdown-editor/ | | I | | | | <<no>> | <<yes>> | <<yes>> | <<yes>> | | | | | | |
| Showdown | http://demo.showdownjs.com/ | | I | <<no>> | <<no>> | | <<no>> | <<yes>> | | | | | | | | |
| | | | I | | | | | | | | | | | | | |
| Markdown Table Generator | https://jakebathman.github.io/Markdown-Table-Generator/ | | | | | | | | | | | | | | | |
| Markdown TOC Generatir | https://ecotrust-canada.github.io/markdown-toc/ | | | | | | | | | | | | | | | |
| Markdonw-it | https://markdown-it.github.io/ | | | | | | | | | | | seems defect | | | | |
---
!!Saving
The options controlling file saving are all in the “Various” preferences page.
As that page warns “Warning: read the manual before changing these preferences” and you should read this page carefully too.
The three options are:
use_atomic_file_saving
use_gio_unsafe_file_saving
gio_unsafe_save_backup
https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving
| !name | type | !self-hosted | url | github|gist| gitlab| bit-bucket| any git | md file|
|stackedit|online| <<yes>>|https://stackedit.io/|<<yes>>|2019: gist permission request , but 404 in private gists|<<no>>|<<no>>|||
<h3>
| !name | type | !self-hosted | url | github|gist| gitlab| bit-bucket| any git | md file|
|stackedit|online| <<yes>>|https://stackedit.io/|<<yes>>|2019: gist permission request , but 404 in private gists|<<no>>|<<no>>|||
| dillinger | online|<<no>>|https://dillinger.io/|<<yes>>|||||<<yes>>|
|editor.md|online|<<yes>>|https://pandao.github.io/editor.md/en.html|||||<<yes>>||
|typora|offline||https://www.typora.io/|||||||
|haroopad|offline|https://github.com/rhiokim/haroopad||||||||
!overview
!! see [[tools:time:tracking]]
http://foswiki.org/System/WebHome
2users/2boards
https://kanbantool.com/de/preise
3users/projects
https://www.outputtime.com/output-time-pricing/
3users 1gb each
https://www.jetbrains.com/youtrack/buy/#incloud?billing=yearly
! kanban
<<<
> https://www.linux-magazin.de/ausgaben/2014/06/bitparade/5/#articleInfo
---
> (encryption with rabbit )https://greggigon.github.io/my-personal-kanban/
> ( self hosted java storage: https://github.com/greggigon/my-personal-kanban-server )
---
> (scala)https://kanbanik.github.io/kanbanik/ https://github.com/kanbanik/kanbanik/wiki/Installation-Guide
> → docker compose ready
---
tiddlykanban is outdated
use tekan ( in new wiki )
https://tiddlywiki.com/static/%2522Tekan%253A%2520Kanban%2520that%2520stays%2520with%2520you%2522%2520by%2520Riz.html
https://ibnishak.github.io/Tesseract/projects/tekan/Tekan.html
https://ibnishak.github.io/Tesseract/projects/tekan/
---
<<<
! with gitlab
<<<
<<<<
free:
(not self hosted, maybe scrapable) https://gitlabreport.rjs.in/
(not self hosted) https://www.toptal.com/tracker
<<<<
---
<<<<
paid:
!! clockify: (12k USD/year/instance self hosted)
https://clockify.me/help/self-hosting/installing-clockify-premises
https://www.paymoapp.com/pricing/
https://trackingtime.co/pricing
https://www.ayoa.com/pricing/
https://twitter.com/gitlab/status/1037491820362649600
https://clockify.me/gitlab-time-tracking
---
https://www.timecamp.com/blog/2019/03/free-clockify-alternatives/
https://www.timecamp.com/blog/2016/10/toggl-alternatives/
https://www.tickspot.com/signup
https://www.clockodo.com/de/preise/
https://www.rescuetime.com/plans
https://desktime.com/pricing
https://www.timeneye.com/pricing
<<<<
<<<
---
http://avisynth.nl/index.php/External_filters#Deringing_.26_Mosquito_Noise
https://www.reddit.com/r/ffmpeg/comments/a5ejgi/help_removing_video_noise/
https://dsp.stackexchange.com/questions/2182/what-methods-can-be-used-to-remove-ringing-artifacts-in-the-output-of-a-digital
https://forum.videohelp.com/threads/389506-Removing-MPEG2-compression-artefacts-from-commercial-DVDs
The heart of transclusion support is to find __//where a rendered tiddler is coming from//__, and __//where a tiddler is rendered//__. When we know where a rendered tiddler is coming from, we know how to find its wiki text to edit and how to put it back after changes made. When we know how to find where a tiddler is rendered, we know how to synchronize the output of all transcluded copies.
* To find //where a rendered tiddler is coming from//, the ''twve'' needs to know the tiddler title. To know the title, the ''twve'' relies on the {{{.titleOfWrapper(w)}}} method -- required for each of the [[Editable Wrappers]] -- to do the work. For example, the [[twve.viewer]] -- representing wrappers for normally loaded tiddlers -- defines its version as <<slider '' 'twve.core##twve.viewer.titleOfWrapper' 'twve.viewer.titleOfWrapper(w)'>>.
* To find //where a tiddler is rendered//, the ''twve'' is equipped with a <<slider '' 'twve.core##twve.tiddler.wrapperFromTitle' 'twve.tiddler.wrapperFromTitle(title)'>> method to collect all copies of the registered [[Editable Wrappers]] associated with {{{title}}}. This method does not actually know how to find all kinds of //wrappers//, but rather relies on the specific version defined in each of the [[Editable Wrappers]]. Each of the specific version is expected to find //all the rendered copies of its kind// for a given tiddler title. For example, the [[twve.viewer]] defines its <<slider '' 'twve.core##twve.viewer.wrapperFromTitle' 'twve.viewer.wrapperFromTitle(title,parent)'>> that finds all the {{{div.viewer}}} associated with {{{title}}} in {{{parent}}}.
Partial transclusion is to include only part, not all, of one tiddler's content into another. In Tiddlywiki this is done by applying one of the transclusion macros:
# {{{<<tiddler 'tiddler title'>>}}}
# {{{<<tabs 'tab label' 'cookie' 'tiddler title'>>}}}
# {{{<<slider 'cookie' 'tiddler title' 'label'>>}}}
For partial transclusion one can include either a {{{section}}} or a {{{slice}}} within a tiddler. A {{{section}}} is the collection of content that starts from a heading and ends at the next heading or the end of the tiddler. A {{{slice}}}, however, is just one line of text containing a {{{key:value}}} pair. To specify which part to transclude, one simply appends the title of a section or slice to the tiddler name when using a transclusion macro:
# section -- {{{##section title}}}, to include a //section// of a tiddler;
** A section in a tiddler is the content under a {{{heading}}}, with the {{{heading text}}} as the section title.
# slice -- {{{::sliece title}}}, to include a //slice// of a tiddler.
** A slice is just one line of text containing a {{{key:value}}} pair, with the {{{key}}} as the slice title.
__Partial transclusion for a ''//section//'' is supported in ''twve''__. Elements transcluded this way are editable (if they are designed to be) and synchronized with their other copies, transcluded or not. In general it is not a difficult task to find the transcluded text in a tiddler for editing purposes, the Tiddlywiki already provides the {{{store.getTiddlerText()}}} function to do so. It is, however, not straightforward for ''twve'' to locate an element transcluded this way. The reason is that ''twve'' identifies an element with its order of appearance in a tiddler, while partial transclusion can easily break that order.
Technically there are two orders of appearance for an element -- the rendering order and the defining order. The former is the order of an element rendered in the resulting HTML page, while the latter is that defined in the original wiki text. These two orders are the same in normal transclusion but can be different in partial transclusion. For example, one can include the 2^^nd^^ table in tiddler B and show it as the 1^^st^^ table in tiddler A.
In earlier versions where only normal transclusion was supported and hence the two orders of appearance are identical, the [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]] and [[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]] used only the rendering order to quickly identify an element in the DOM tree (just apply the {{{.eq()}}} method to the result of, for example, {{{.find('table')}}}), and to correctly locate its defining wiki text. In versions 1.4.5 and beyond, however, this scheme no longer works because the two orders of appearance can be inconsistent due to partial transclusion. Therefore the [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]] stores for each "partially transcluded" element both numbers, with the rendering order used to identify a rendered table in the DOM tree, while the defining order to find the corresponding wiki text.
>The trade off is that the simple way to identify a table in the DOM tree -- the {{{.eq()}}} method -- is no longer applicable. The [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]] needs to compare the defining order to find the rendered copy and the defining text of a table. In that sense it should be possible, and maybe in the future release changed to do so, to use only the defining order for both purposes.
>2014/04/22
>@@color:red;Turned out the 2^^nd^^ version was still NOT correct!@@
>The solution is to @@reverse all the spanned cells before transposing the table@@.
>See <<slider '' 'twve.table##twtable.transpose' 'the correct version'>>
>
In the time around ~TableEditor v1.2.8 there was a suggestion from wolfgang about table transposition. At first I was reluctant to do it because I thought it unnecessary. Later when I was working on large table support, features that I never thought of but convinced useful (thanks to wolfgang again), I started to think it might be also useful to transpose a table.
I spent some time to work out <<slider '' 'Transposing a table -- backward thinking##Transposition -- first version' 'the first version'>>. It worked on simple tables (since transposing a table twice brings it back to its original.) Then I left the codes in the plugin and forgot about it.
>It is so complicated (and too little information) that I don't even understand it after a while.
The ~TableEditor plugin then kept growing larger and richer, later evolved into a View Mode Editor and separated into [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]]+[[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]] combination. This View Mode Editor edits pretty much all kinds of block elements and plain text blocks (adjacent to a block element). After v1.6.0 I started to think about editing single characters within a block. Soon I realized the line-based core codes of the plugins are not good for editing single characters, I needed to rewrite the core codes on a character-by-character base. This transposition function, though not in the core codes, also needed rewriting for this change. I tried to modify the first version but didn't make it because I couldn't understand it any more. Therefore I decided to rewrite it from scratch. For that I had to rethink about the details and, fortunately, figured an easier way to do it: //going backward//.
Normally I start from the top-left corner and go left-to-right and top-down to work on a table. It is perfectly fine with most of the table operations. With transposition, however, it becomes a trouble when there are row-spanned or column-spanned cells. It is so because
# a row-spanned cell shall be transposed into a column-spanned cell (and vice versa),
# they store their content in exactly the opposite ways:
** a ''row''-spanned cell has its content in the __''first''__ cell
*** (top-most row, the first encountered cell when going top-down)
** a ''column''-spanned cell has it in the __''last''__ cell
*** (right-most column, the last encountered cell when going left-to-right)
Because of the 2^^nd^^ reason the first version applied a somewhat complicated way to bookkeep the spanned cells, which made it difficult to understand at a later time. In writing the second version, I figured that simply //going backward// -- start from the bottom-right corner and go right-to-left and bottom-up -- can resolve the problem. In this manner a row-spanned cell will have its content in the last, consistent with a column-cell in the normal manner -- no more bookkeeping needed. The same thing happens to a column-spanned cell. This way we can transpose a table easily -- simply exchange {{{~}}} (row-spanned) with {{{>}}} (column-spanned), and place the content of (//r//, //c//) cell into the (//c//, //r//) cell in the transposed table. Here is <<slider '' 'Transposing a table -- backward thinking##Transposition -- second version' 'the second version'>>.
@@display:none;
!!!! Transposition -- second version
//{{{
twtable.transpose = function () {
// Transpose this table, that is, move cell content from
// (r, c) to (c, r).
// We start from the bottom-right corner, go bottom-up and
// right-to-left, to avoid the complicated, hard-to-remember
// bookkeeping needed to transpose a row-spanned cell into a
// column-spanned one (and vice versa).
// For more details please see http://twve.tiddlyspace.com/#%5B%5BTransposing%20a%20table%20--%20backward%20thinking%5D%5D
var text = twtable.tiddler.text;
var start = twtable.start;
var end = twtable.end;
// Get positions of all cells.
var cpos = twve.table.allCells(text,start,end);
// Prepare a new table.
var newtxt = '';
var r, c = 0, ctxt, head, h;
// Find the maximum number of columns
for ( r = 0; r < cpos.length; r++ ) {
if ( cpos[r].length > c ) c = cpos[r].length;
}
// Start transposition.
var rspan = null;
var cspan = null;
while ( --c >= 0 ) {
newtxt = '|\n' + newtxt;
for ( r=cpos.length-1; r>=0; r-- ) {
if ( c >= cpos[r].length ) continue;
head = /[hH]/.test(
text.charAt(cpos[r][cpos[r].length-1].close+1)
);
ctxt=text.substring(
cpos[r][c].open,cpos[r][c].close
);
if ( ctxt == '~' ) {
// Row-spanned cells. Transpose to column-
// spanned cells. If this is the first cell, we
// record the row index in rspan.start.
if ( ! rspan ) {
rspan = twve.object.create();
rspan.start = r;
}
ctxt = '>';
} else if ( ctxt == '>' ) {
// Column-spanned cells. Transpose to row-
// spanned cells. If this is the first cell, we
// record the column index in cspan.start.
if ( ! cspan ) {
cspan = twve.object.create();
cspan.start = c;
}
ctxt = '~';
} else if (head && ! /^\s*\!/.test(ctxt)) {
if ( (h=ctxt.search(/\S/)) > 0 )
ctxt = ctxt.substring(0,h)+'!'
+ ctxt.substring(h);
else ctxt = '!'+ctxt;
}
newtxt = '|' + ctxt + newtxt;
}
}
var rstart, rend;
// Copy the caption row if any
rend = text.indexOf('|c\n',start.ndx);
if ( rend == -1 )
rend = text.indexOf('|C\n',start.ndx);
if ( rend > -1 ) {
rstart = text.lastIndexOf('|',rend-1);
newtxt = text.substring(rstart,rend+3)+newtxt;
}
// Copy the class row if any
rend = text.indexOf('|k\n',start.ndx);
if ( rend == -1 )
rend = text.indexOf('|K\n',start.ndx);
if ( rend > -1 ) {
rstart = text.lastIndexOf('|',rend-1);
newtxt = text.substring(rstart,rend+3)+newtxt;
}
// Done transposition. Set it back. Note that the length
// of the definition text may change so we call
// twtable.setText() to take care of that.
twtable.setText(newtxt);
newtxt = twtable.changed(
{
what : 'TRANSPOSED',
text : twtable.tiddler.text
}
);
twve.tiddler.saveText(twtable,newtxt);
return twtable.refreshTable();
};
//}}}
!!!! Transposition -- first version
//{{{
transpose_table : function (text, start, end) {
// Transpose a table.
// Arguments
// text: tiddler text.
// r0: first line of table text
// rl: last line of table text
// To transpose a table we do
// cell(r, c) = cell(c, r)
var r, c, rows=0, rowtxt, newtxt = new Array(),
header=false, htxt, h, col_span = null,
row_span = new Array(), col,
row_span_recorded = function(col) {
for ( var c = 0; c < row_span.length; c++ )
if ( row_span[c].col == col )
return c;
return null;
};
for ( r = r0; r <= rl; r++ ) {
if ( /[cCkK]$/.test(wikitxt[r]) ) continue;
++rows; header = /[hH]$/.test(wikitxt[r]);
rowtxt = this.split_table_row(wikitxt[r]);
for ( c = 0; c < rowtxt.length-2; c++ ) {
col = row_span_recorded(c);
htxt = rowtxt[c+1];
if ( htxt == '~' ) {
// Row-spanned cell
htxt = '>';
if ( col === null ) {
row_span.push({'start':(rows-1),'end':-1,'col':c});
col = row_span.length-1;
}
if ( r == rl ) {
row_span[col].end = rows;
}
} else if ( htxt == '>' ) {
// Column-spanned cell
htxt = '~';
if ( !col_span )
col_span = { 'start':c, 'end':-1 };
if ( col !== null )
row_span[col].end = rows-1;
} else {
if ( col !== null ) {
// end of some row-spanned cell
row_span[col].end = rows-1;
}
if ( col_span ) {
// end of col-spanned cell
col_span.end = c;
}
if (header && /^[^\!]/.test(htxt.trim()))
if ( (h=htxt.search(/\S/)) > 0 )
htxt = htxt.substring(0,h)+'!'+
htxt.substring(h);
else htxt = '!'+htxt;
}
if ( rows == 1 ) newtxt[c] = new Array();
if ( col !== null && row_span[col].end > -1) {
var start = row_span[col].start,
end = row_span[col].end;
if ( r == rl ) htxt = newtxt[c][start];
else newtxt[c][end] = newtxt[c][start];
newtxt[c][start] = '>';
row_span.splice(col,1);
}
if ( col_span && col_span.end > -1 ) {
newtxt[col_span.start][rows] = htxt;
newtxt[col_span.end][rows] = '~';
col_span = null;
} else {
newtxt[c][rows] = htxt;
}
}
}
for ( r = 0; r < newtxt.length; r++ ) {
newtxt[r].push('');
newtxt[r]=this.make_table_row(newtxt[r]);
}
var rT;
if ( newtxt.length > rows ) {
rT = 0;
for ( r = r0; r <= rl; r++ ) {
if ( /[cCkK]$/.test(wikitxt[r]) ) continue;
wikitxt[r] = newtxt[rT++];
}
while ( rT < newtxt.length )
wikitxt.splice(r++, 0, newtxt[rT++]);
} else {
rT = r0; r = 0;
while ( r < newtxt.length ) {
if ( /[^cCkK]$/.test(wikitxt[rT]) )
wikitxt[rT++] = newtxt[r++];
else rT++;
}
wikitxt.splice(rT,rl-rT+1);
}
},
//}}}
@@
/***
Description: Contains the stuff you need to use Tiddlyspot
Note, you also need UploadPlugin, PasswordOptionPlugin and LoadRemoteFileThroughProxy
from http://tiddlywiki.bidix.info for a complete working Tiddlyspot site.
***/
//{{{
// edit this if you are migrating sites or retrofitting an existing TW
config.tiddlyspotSiteId = 'twve';
// make it so you can by default see edit controls via http
config.options.chkHttpReadOnly = false;
window.readOnly = false; // make sure of it (for tw 2.2)
window.showBackstage = true; // show backstage too
// disable autosave in d3
if (window.location.protocol != "file:")
config.options.chkGTDLazyAutoSave = false;
// tweak shadow tiddlers to add upload button, password entry box etc
with (config.shadowTiddlers) {
SiteUrl = 'http://'+config.tiddlyspotSiteId+'.tiddlyspot.com';
SideBarOptions = SideBarOptions.replace(/(<<saveChanges>>)/,"$1<<tiddler TspotSidebar>>");
OptionsPanel = OptionsPanel.replace(/^/,"<<tiddler TspotOptions>>");
DefaultTiddlers = DefaultTiddlers.replace(/^/,"[[WelcomeToTiddlyspot]] ");
MainMenu = MainMenu.replace(/^/,"[[WelcomeToTiddlyspot]] ");
}
// create some shadow tiddler content
merge(config.shadowTiddlers,{
'TspotControls':[
"| tiddlyspot password:|<<option pasUploadPassword>>|",
"| site management:|<<upload http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/store.cgi index.html . . " + config.tiddlyspotSiteId + ">>//(requires tiddlyspot password)//<br>[[control panel|http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/controlpanel]], [[download (go offline)|http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/download]]|",
"| links:|[[tiddlyspot.com|http://tiddlyspot.com/]], [[FAQs|http://faq.tiddlyspot.com/]], [[blog|http://tiddlyspot.blogspot.com/]], email [[support|mailto:support@tiddlyspot.com]] & [[feedback|mailto:feedback@tiddlyspot.com]], [[donate|http://tiddlyspot.com/?page=donate]]|"
].join("\n"),
'TspotOptions':[
"tiddlyspot password:",
"<<option pasUploadPassword>>",
""
].join("\n"),
'TspotSidebar':[
"<<upload http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/store.cgi index.html . . " + config.tiddlyspotSiteId + ">><html><a href='http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/download' class='button'>download</a></html>"
].join("\n"),
'WelcomeToTiddlyspot':[
"This document is a ~TiddlyWiki from tiddlyspot.com. A ~TiddlyWiki is an electronic notebook that is great for managing todo lists, personal information, and all sorts of things.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //What now?// @@ Before you can save any changes, you need to enter your password in the form below. Then configure privacy and other site settings at your [[control panel|http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/controlpanel]] (your control panel username is //" + config.tiddlyspotSiteId + "//).",
"<<tiddler TspotControls>>",
"See also GettingStarted.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Working online// @@ You can edit this ~TiddlyWiki right now, and save your changes using the \"save to web\" button in the column on the right.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Working offline// @@ A fully functioning copy of this ~TiddlyWiki can be saved onto your hard drive or USB stick. You can make changes and save them locally without being connected to the Internet. When you're ready to sync up again, just click \"upload\" and your ~TiddlyWiki will be saved back to tiddlyspot.com.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Help!// @@ Find out more about ~TiddlyWiki at [[TiddlyWiki.com|http://tiddlywiki.com]]. Also visit [[TiddlyWiki.org|http://tiddlywiki.org]] for documentation on learning and using ~TiddlyWiki. New users are especially welcome on the [[TiddlyWiki mailing list|http://groups.google.com/group/TiddlyWiki]], which is an excellent place to ask questions and get help. If you have a tiddlyspot related problem email [[tiddlyspot support|mailto:support@tiddlyspot.com]].",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Enjoy :)// @@ We hope you like using your tiddlyspot.com site. Please email [[feedback@tiddlyspot.com|mailto:feedback@tiddlyspot.com]] with any comments or suggestions."
].join("\n")
});
//}}}
/***
!! Note
* @@color:red;This is a development snapshot which may or may not function properly.@@
|editable|k
|''Name:''|~TWtcalc|
|''Description:''|A simple spreadsheet for ~TiddlyWiki|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twtable.tiddlyspace.com/#TWtcalc.min <br>* (regular) http://twtable.tiddlyspace.com/#TWtcalc |
|''Type:''|plugin|
|''Version:''|1.0.10|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2013/06/02 released 1.0.0<br>2012/10/19 released 0.7.0<br>2012/09/04 started from ~TableCalculator 0.6.14|
|''License:''|Same as ~TiddlyWiki|
|''Core Version:''|2.6.5|
|''Needs to have:''|~TWtid|
!!Features
* Calculate numeric values in table cells.
* Cell references follow the OpenOffice.calc/Excel syntax.
** Column index starts from {{{A}}} and ends at {{{ZZ}}}.
** Row index starts from 0 and has virtually no upper limit.
* ''Auto adjustment of cell references upon''
** __insertion/deletion of rows/columns__;
** __sorting with SortableGridPlugin or TableSortingPlugin__.
*** Block references such as {{{C4:H10}}} are auto-adjusted only upon insertion/deletion of rows/columns, NOT upon sorting.
* Support several forms of decimal mark and thousands separation.
* Support user-defined functions written in Javascript.
** To define your own functions, see [[TableCalculator--Example--Defining your own functions]] or [[External link of that tiddler|http://twtable.tiddlyspace.com/#%5B%5BTableCalculator--Example--Defining%20your%20own%20functions%5D%5D]] for details.
** Several pre-defined functions are listed in section {{{Usage}}} below.
!!Usage
* Add class {{{spreadsheet}}} or check option {{{chkTWtcalcAllTables}}} to allow calculations in table content.
* At the cell to store calculation results, starts with an equal sign {{{=}}}, as in OpenOffice.calc or Excel, followed by cell references/Javascript expressions/user-defined functions for calculation. For example,
*** {{{=Math.sqrt(3)}}} and {{{=Math.cos(Math.PI)}}} are valid Javascript statements;
*** {{{=A3+B4}}} and {{{=sum(A6:D10)}}} are OpenOffice.calc/Excel-like expressions.
*** See below for a brief list of user-defined functions.
* @@color:blue;Cells for calculation can be specified in one of the following formats:@@
** {{{func(A3:H6)}}}: calculate over a block of consecutive cells
** {{{func(B3, H5, AC9,...)}}}: calculate over separated individual cells
** {{{func(AA3:CD5, B5, Z7...)}}}: a mixture of the two cases
* Use the following options to specify the decimal mark and thousands separation.
** Option txtTWtcalcDecimalMark specifies the default decimal mark.
** Option txtTWtcalcThousandSeparator specifies the default thousands separator.
** Option chkTWtcalcThousandSeparated toggles application of thousands separation.
* Pre-defined functions now include:
** sum
*** calculates the sum of cells
** product
*** calculates the product of cells
** average/mean
*** calculates the average value of cells
** count
*** counts the number of numeric cells
*** supports conditional counting, see revision
**** Syntax: {{{=COUNT([condition], cell references)}}}
***** condition is optional and if given must be quoted with single or double quotes
***** use the percentage symbol {{{%}}} as a placeholder for the values to test
**** Example, {{{=COUNT('%>60 && %<70', A1:A90)}}} returns the number of numerical values greater than 60 and less than 70 among cells between A1 and A90, inclusively.
** counta
*** counts the number of non-empty cells
** concat
*** joins the contents of cells
** isnumeric
*** tests whether a cell contains a numerical expression
** stderr/stdev
*** calculates the standard deviation of a set of numbers
** today()/now()
*** Current date and time. See Javascript for references.
** days(date1, date2, num_dec)
*** Number of days from date1 to date2. The 3rd argement num_dec specifies the number of digits after decimal point.
** round(value, num_dec)
*** Returns the rounded result of value, up to num_dec digits after decimal point.
** random(factor)
*** Returns a random number between 0 and factor, if factor is given. Otherwise returns a random number between 0 and 1.
** column/col
*** Returns the column index (number). Without an argument this function returns the index of the current column, with a cell reference as its argument, such as COLUMN(AX3)/COL(AX3), it returns the column index of the cell.
** columna/cola
*** Returns the column reference (letter). Without an argument this function returns the reference of the current column, with a cell reference as its argument, such as COLUMN(AX3)/COL(AX3), it returns the column reference of the cell.
** stderr/stdev
*** Calculates the standard deviation of a set of numbers. @@color:red;This function is not yet fully tested.@@
** if(condition, statement_if_true, statement_if_false)
*** Works the same way as the IF() function in MS Excel, except that the statements can include wiki style text.
**** For example, IF ($G1>=F1, color:blue;$~G1-F1, color:red;$~G1-F1) results in a @@color:blue;positive@@ or a @@color:red;negative@@ value of {{{|$G1-F1|}}}.
!!Options
Look for [[TWtcalcOptions]] in the system Options panel.
!!Example
''See [[TWtcalc.example]] tiddler or [[its external link|http://twtable.tiddlyspace.com/#TWtcalc.example]] for example(s).''
!!ToDo
!!Revision history
!!!! 2014/01/05 [1.0.10]
* Bug fixes
** for table calculations in the previewer
!!!! 2013/11/26 [1.0.9]
* Bug fixes
** for partial re-calculation upon cell changes.
*** In 1.0.7 {{{TWtcalc.re_calculate_table()}}} function was modified to only re-calculate affected cells (partial recalculation), that is, cells referring (directly and indirectly) to the changed cells, but accidentally ignored the changed cells themselves.
** to prevent calculating a non-existing table.
!!!! 2013/11/17 [1.0.8]
* Changed the mechanism of handling the floating menu and made it scrollable.
!!!! 2013/11/08 [1.0.7]
* Added a system menu to the right of tiddler title, providing quick access to the plugin options.
* Bug fix for partial re-calculation after changes are made.
** Partial re-calculation, introduced in v1.0.5, is to re-calculate not the whole table but only the cells affected by the last change. It increases performance notably for large tables.
** Previous version re-calculated only cells __directly__ affected by the last change, i.e., cells that explicitly refer to the changed cells, and ignored those indirectly affected cells (cells that implicitly refer to the changed cells). This version fixed this bug.
!!!! 2013/09/29 [1.0.6]
* Added codes to handle {{{ROW EXCHANGED}}} and {{{COL EXCHANGED}}} events in the event handler, in response to the new feature -- moving rows up/down or columns to the left/right -- in TWted.
** ''Note:'' //Beware when moving rows/columns containing TWtcalc block formulas such as {{{SUM(A2:B4)}}} or {{{AVG(C5:H7)}}}, which are ''not'' fully taken care of yet.//
!!!! 2013/07/30 [1.0.5]
* Re-calculates only the affected cells when one is changed.
** Previously the TWtcalc re-calculated the whole table each time a cell was changed.
* Bug fixes for table resizing and cell width adjustment (to ensure a minimum width) upon recalculation
* Bug fix for calculations over consecutive cells.
!!!! 2013/07/05 [1.0.4]
* Bug fixes for table sorting with TableSortingPlugin and SortableGridPlugin
!!!! 2013/06/28 [1.0.3]
* Bug fixes.
!!!! 2013/06/10 [1.0.2]
* Some more bug fixes.
!!!! 2013/06/03 [1.0.1]
* Some bug fixes.
!!!! 2013/06/02 [1.0.0]
* Adapted to use the newly introduced class TWElement.
* Adapted to the changes in core behavior (from line-based to character-based manner).
!!!! 2013/04/15 [0.8.1]
* Bug fixes for options panel.
!!!! 2013/04/14 [0.8.0]
* Auto-adjusts cell references upon pasting rows/columns.
** When a row/column is pasted as a whole, all formulas in the cells of the pasted row/column are adjusted accordingly.
* Auto-adjusts cell references upon cut-and-pasting a single cell.
** When a single cell is cut and pasted into another, not only its formula gets adjusted, but also others referring to the cut cell get adjusted accordingly.
* Options tiddler now available in the system Options panel.
* Supports calculations in preview.
* Bug fixes for auto-adjustment in cell references upon copy-and-pasting a single cell.
* Bug fixes for auto-recalculation.
!!!! 2013/02/09 [0.7.7]
* Added a very primitive expression checker to check simple arithmetic expressions.
* Added option chkTWtcalcEnabled to enable/disable TWtcalc. Default to true.
* Changed default behavior of calculation from all tables to only tables with class {{{spreadsheet}}}.
* Added option chkTWtcalcAllTables to allow calculations on all tables, regardless of their class names. Default to false.
* Bug fixes on handling numeric expressions. Thanks to Ton for showing the bug.
!!!! 2012/11/23 [0.7.6]
* Bug fixes for working with {{{TableSortingPlugin}}} and {{{SortableGridPlug}}}.
* Bug fixes for cell title with TWtcalc defined functions.
* Some bug fixes for mixing consecutive and individual cells in a TWtcalc defined function's arguments.
!!!! 2012/11/17 [0.7.5]
* Bug fixes for expressions with CSS style text.
!!!! 2012/11/09 [0.7.4]
* Tests validity of tiddlers before some actions.
!!!! 2012/11/02 [0.7.3]
* Defined {{{ROWS()}}} and {{{COLS()/COLUMNS()}}} functions, which counts the number of rows/columns within a range of cells.
* Bugs fixed for {{{COLUMN()/COL()}}} and {{{COLUMNA()/COLA()}}} functions.
** These bugs were introduced in codes supporting absolute references.
* Bug fixed with {{{ROUND()}}} function.
** It was returning {{{NaN}}} when the argument results in 0.
!!!! 2012/10/26 [0.7.2]
* Defined {{{IF()}}} and modified {{{COUNT()}}} functions, see http://twtable.tiddlyspace.com/#TWtcalc--Example--IF_and_COUNT for example.
** The {{{IF()}}} function works the same way as the {{{IF()}}} function in MS Excel, except that CSS style statements can be included.
*** Syntax: {{{IF(condition, statement_if_true, statement_if_false)}}}
*** Example: IF ($G1>=F1, color:blue;$G1-F1, color:red;$G1-F1) results in a @@color:blue;positive@@ or a @@color:red;negative@@ value of {{{|$G1-F1|}}}.
** The {{{COUNT()}}} function now supports conditional counting. (Note the syntax is not compatible with Excell's countif() function.)
*** Syntax: {{{=COUNT([condition], cell references)}}}
**** condition is optional and if given must be quoted with single or double quotes
**** use the percentage symbol {{{%}}} as a placeholder for the values to test
*** Example, {{{=COUNT('%>60 && %<70', A1:A90)}}} returns the number of numerical values greater than 60 and less than 70 among cells between A1 and A90, inclusively.
* Bug fix for numeric calculations including empty cells
** Previously an error was generated if empty cells are included in numeric calculations. Now those cells are ignored so no more errors in such cases.
* Bug fixes with copy-and-pasting
** The auto-adjustment of cell references upon copy-and-pasting was broken, possibly due to the code restructuring, and is now fixed.
!!!! 2012/10/21 [0.7.1]
* Minor modifications to the prepare_table() function.
!!!! 2012/10/19 [0.7.0]
* Separated from TableCalculator.
* Restructured to better fit the separated code structure.
* Bug fixes for absolute reference support.
!!!! 2012/09/03 [1.3.0]
* Started separating codes from TableCalculator 0.6.14.
!!!! For earlier history please see [[TableCalculator]] or [[its external link|http://twtable.tiddlyspace.com/#TableCalculator]].
!!Code
***/
// //Macro definitions
//{{{
version.extensions.TWtcalc= {major: 1, minor: 0, revision: 10, date: new Date('2014/01/05')};
// Macro for initialization
config.macros.TWtcalc = {
init : function () {
if (config.options.chkTWtcalcEnabled===undefined)
config.options.chkTWtcalcEnabled = true;
if (config.options.chkTWtcalcAllTables===undefined)
config.options.chkTWtcalcAllTables = false;
if (config.options.chkTWtcalcThousandSeparated===undefined)
config.options.chkTWtcalcThousandSeparated =
(config.options.chkTCalcThousandSeparated===undefined?false:
config.options.chkTCalcThousandSeparated);
if (config.options.txtTWtcalcThousandSeparator===undefined)
config.options.txtTWtcalcThousandSeparator =
(config.options.txtTCalcThousandSeparator===undefined?',':
config.options.txtTCalcThousandSeparator);
if (config.options.txtTWtcalcDecimalMark===undefined)
config.options.txtTWtcalcDecimalMark =
(config.options.txtTCalcDecimalMark===undefined?'.':
config.options.txtTCalcDecimalMark);
if (config.options.chkTWtcalcDebugMode===undefined)
config.options.chkTWtcalcDebugMode =
(config.options.chkTCalcDebugMode===undefined?false:
config.options.chkTCalcDebugMode);
merge ( config.optionsDesc, {
chkTWtcalcEnabled:'Enable TWtcalc',
chkTWtcalcAllTables:'Calculate all tables. Otherwise only calculate tables with class "spreadsheet"',
chkTWtcalcThousandSeparated:'Apply thousands separation on numerical results. Default is false.',
txtTWtcalcThousandSeparator:'Thousand separator. Default is comma (,).',
txtTWtcalcDecimalMark:'Decimal mark. Default is period (.).',
chkTWtcalcDebugMode:'Enter debug mode to show error/exception messages. Default is false.'
});
TWtid.col_ref = TWtcalc.col_ref;
TWtcalc.pre_OfficialExample = TWtid.OfficialExample;
TWtid.OfficialExample = TWtcalc.OfficialExample;
TWtcalc.pre_prepare_table = TWtid.prepare_table;
TWtid.prepare_table = TWtcalc.prepare_table;
TWtcalc.pre_start_sorting = TWtid.start_sorting;
TWtid.start_sorting = TWtcalc.start_sorting;
TWtcalc.pre_element_changed = TWtid.element_changed;
TWtid.element_changed = TWtcalc.element_changed;
TWtcalc.pre_paste_in = TWted.paste_in;
TWted.paste_in = TWtcalc.paste_in;
TWtcalc.pre_copy_and_cut = TWted.copy_and_cut;
TWted.copy_and_cut = TWtcalc.copy_and_cut;
TWtcalc.pre_wikify_element = TWtid.wikify_element;
TWtid.wikify_element = TWtcalc.wikify_element;
TWtcalc.pre_system_menu_item = TWtid.system_menu_item;
TWtid.system_menu_item = TWtcalc.system_menu_item;
var txt = config.shadowTiddlers['OptionsPanel'];
var tidopt = 'TWtidOptions';
var p = txt.indexOf(tidopt);
if ( p >= 0 ) {
p += tidopt.length+1;
config.shadowTiddlers['OptionsPanel']=
txt.substring(0,p)
+'TWtcalcOptions\n'
+txt.substring(p);
} else {
p = txt.indexOf('----');
config.shadowTiddlers['OptionsPanel']=
txt.substring(0,p)
+'----\n'
+'TWtcalcOptions\n'
+txt.substring(p);
}
merge(config.shadowTiddlers,{
'TWtcalcOptions':'<<TWtcalcOptions>>'
});
}
};
// Macro for option settings.
config.macros.TWtcalcOptions = {
order : {
chkTWtcalcEnabled:0,
chkTWtcalcAllTables:1,
chkTWtcalcThousandSeparated:2,
txtTWtcalcThousandSeparator:3,
txtTWtcalcDecimalMark:4,
chkTWtcalcDebugMode:5
},
handler : function(place,macroName,params,wikifier,paramString) {
// Collect all the TWtid options for users to play with.
config.macros.TWtidOptions.show_options_table(
place
,'TWtcalc Options'
,'TWtcalc'
,config.macros.TWtcalcOptions.order
);
}
};
//}}}
// //TWtcalc
//{{{
TWtcalc = {
$cur_table : null,
col_ref : function ( col ) {
return TWtcalc.index_to_reference_col( col );
},
pre_start_sorting : null,
start_sorting : function(twelem) {
return (TWtcalc.block_update =
TWtcalc.pre_start_sorting.apply(this,arguments));
},
//}}}
/***
!! element_changed
***/
//{{{
pre_element_changed : null,
element_changed : function (twelem,param) {
if ( twelem.$dom.is('table') ) {
switch ( param.what ) {
case 'MODIFIED' :
TWtcalc.re_calculate_table(
twelem,param.text,[param]
);
break;
case 'ROW INSERTED' :
param.text=TWtcalc.inc_cell_reference(
param.text,twelem.start,
twelem.end,param.where,1
);
break;
case 'ROW DELETED' :
param.text=TWtcalc.inc_cell_reference(
param.text,twelem.start,
twelem.end,param.where+1,-1
);
break;
case 'ROW PASTED' :
var start=TWtid.init_pos_obj(twelem.start);
var end=TWtid.init_pos_obj(twelem.end);
start.ndx = TWtid.table_row_starts(
param.text,start,end,param.where
);
end.ndx = TWtid.table_row_ends(
param.text,start.ndx
);
param.text=TWtcalc.inc_cell_reference(
param.text, start, end,
0,(param.where-param.from)
);
break;
case 'COL INSERTED' :
param.text=TWtcalc.inc_cell_reference(
param.text, twelem.start, twelem.end,
null, null, 0, -1, param.where, 1
);
break;
case 'COL DELETED' :
param.text=TWtcalc.inc_cell_reference(
param.text, twelem.start, twelem.end,
null, null, 0, -1, param.where+1, -1
);
break;
case 'COL PASTED' :
param.text=TWtcalc.inc_cell_reference(
param.text, twelem.start,
twelem.end, null, null,
param.where, param.where, 0,
(param.where-param.from)
);
break;
case 'ROW MOVED' :
param.text=TWtcalc.update_cell_reference(
param.text, twelem.start, twelem.end,
param.from, null, param.to, null, true
);
break;
case 'ROW EXCHANGED' :
TWtcalc.block_update = true;
param.text=TWtcalc.update_cell_reference(
param.text, twelem.start, twelem.end,
param.from, null, param.to, null, true
);
param.text=TWtcalc.update_cell_reference(
param.text, twelem.start, twelem.end,
param.to, null, param.from, null, true
);
param.text=TWtcalc.end_block_update
( param.text, twelem.start, twelem.end );
break;
case 'COL EXCHANGED' :
TWtcalc.block_update = true;
param.text=TWtcalc.update_cell_reference(
param.text, twelem.start, twelem.end,
null, param.from, null, param.to, true
);
param.text=TWtcalc.update_cell_reference(
param.text, twelem.start, twelem.end,
null, param.to, null, param.from, true
);
param.text=TWtcalc.end_block_update
( param.text, twelem.start, twelem.end );
break;
case 'SORTED' :
param.text=TWtcalc.end_block_update
( param.text, twelem.start, twelem.end );
TWtcalc.re_calculate_table(twelem,param.text);
break;
}
}
return TWtcalc.pre_element_changed.apply(this,arguments);
},
//}}}
/***
!! end_block_update
***/
//{{{
//Reference adjustment and related functions.
block_update : false,
end_block_update : function ( text, start, end ) {
TWtcalc.block_update = false;
// Unpack the updated cell references.
// All the block-updated cell references were packed into the
// format {A.3} to prevent multiple modification, so we need
// to unpack them for further use.
var cpos = TWtid.all_cells(text,start,end);
var r, c, ctxt, ref, i, pl, pr, pdot;
for ( r=cpos.length-1; r>=0; r-- ) {
for ( c=cpos[r].length-1; c>=0; c-- ) {
ctxt=text.substring(cpos[r][c].open,cpos[r][c].close);
if ( !(ref=ctxt.match(/\{[\$A-Za-z]+\.[\$0-9]+\}/g)) )
continue;
for ( i = 0; i < ref.length; i++ ) {
pl = ctxt.indexOf(ref[i]);
pdot = ctxt.indexOf('.', pl+1);
pr = ctxt.indexOf('}', pl+1);
ctxt = ctxt.substring(0,pl) +
ctxt.substring(pl+1,pdot) +
ctxt.substring(pdot+1,pr) +
ctxt.substring(pr+1);
}
text = text.substring(0,cpos[r][c].open)
+ctxt
+text.substring(cpos[r][c].close);
end.ndx += ctxt.length
-(cpos[r][c].close-cpos[r][c].open);
}
}
return text;
},
//}}}
/***
!! update_cell_reference
***/
//{{{
update_cell_reference : function ( text, start, end,
row_cur, col_cur, row_new, col_new, ignore_abs ) {
// Update cell reference from (row_cur, col_cur) to
// (row_new, col_new). This function is called a table
// row or column index is changed. For example, table row
// index is changing during sorting.
var cpos=TWtid.all_cells(text,start,end);
var r, c, ctxt, chndx, ref;
var cell_changed, ref_changed;
for ( r = cpos.length-1; r >= 0; r-- ) {
for ( c = cpos[r].length-1; c >= 0; c-- ) {
ctxt = text.substring(cpos[r][c].open,cpos[r][c].close);
cell_changed = false;
chndx = TWtcalc.index_of_expression(ctxt);
if (chndx == -1) continue;
chndx++;
while ( chndx < ctxt.length ) {
ref_changed=false;
if( (ref=TWtcalc.cell_reference(ctxt,chndx)) ) {
if ( ctxt.charAt(chndx+ref.length)==':' ) {
// The cell reference is immediately followed
// by a colon, meaning its a block reference.
// Skip it for now.
chndx += ref.length + 1;
ref = TWtcalc.cell_reference(ctxt,chndx);
chndx += ref.length;
} else {
var row = TWtcalc.reference_to_index_row(ref),
col = TWtcalc.reference_to_index_col(ref),
abs_row = TWtcalc.absolute_row(ref),
abs_col = TWtcalc.absolute_col(ref);
// Currently absolute references are not
// changed in any case, but this may not
// be the best choice...
if ( row == row_cur ) {
if ( ignore_abs || !abs_row ) {
row = row_new;
ref_changed = true;
}
}
if ( col == col_cur ) {
if ( ignore_abs || !abs_col) {
col = col_new;
ref_changed = true;
}
}
if ( ref_changed ) {
var newref;
if ( TWtcalc.block_update )
newref='{'
+TWtcalc.index_to_reference_col(
col,abs_col
)+'.'
+TWtcalc.index_to_reference_row(
row,abs_row
)+'}';
else
newref=TWtcalc.index_to_reference_col(
col,abs_col
)+TWtcalc.index_to_reference_row(
row,abs_row
);
ctxt = ctxt.substring(0,chndx) +
newref +
ctxt.substring(chndx+ref.length);
ref = newref; row_changed = true;
cell_changed = true;
}
chndx += ref.length;
}
}
else chndx++;
}
if ( cell_changed ) {
text=text.substring(0,cpos[r][c].open)
+ctxt
+text.substring(cpos[r][c].close);
end.ndx += ctxt.length
-(cpos[r][c].close-cpos[r][c].open);
}
}
}
return text;
},
//}}}
/***
!! inc_cell_reference
***/
//{{{
inc_cell_reference : function(text,start,end,row,dr,c0,cl,col,dc) {
// Increase cell reference by dr and dc for
// row_ndx >= row and col_ndx >= col. This function is Used
// in cases of row/column insertion/deletion.
var cpos = TWtid.all_cells(text,start,end);
var r, c, chndx, ref, ctxt;
if ( !row ) row = 0; if ( !dr ) dr = 0;
if ( !c0 ) c0 = 0; if ( !col ) col = 0; if ( !dc) dc = 0;
var rcl;
for ( r=cpos.length-1; r>=0; r-- ) {
if ( typeof cl != 'number' || cl < 0
|| cl >= cpos[r].length ) {
rcl = cpos[r].length-1;
} else rcl = cl;
for ( c = rcl; c >= c0; c-- ) {
ctxt = text.substring(cpos[r][c].open,cpos[r][c].close);
chndx = this.index_of_expression(ctxt);
if (chndx == -1) continue;
chndx++;
while ( chndx < ctxt.length ) {
if((ref=this.cell_reference(ctxt,chndx))) {
var row_org = this.reference_to_index_row(ref),
col_org = this.reference_to_index_col(ref),
abs_row = this.absolute_row(ref),
abs_col = this.absolute_col(ref);
if ( row_org >= row && col_org >= col ) {
var newref =
this.index_to_reference_col
(col_org+(abs_col?0:dc), abs_col)
+(abs_row?('$'+row_org):(row_org+dr));
ctxt = ctxt.substring(0,chndx)
+newref
+ctxt.substring(chndx+ref.length);
ref = newref;
}
chndx += ref.length;
} else chndx++;
}
text = text.substring(0,cpos[r][c].open)
+ctxt
+text.substring(cpos[r][c].close);
}
}
return text;
},
//}}}
/***
!!
***/
//{{{
copied_from : null,
cut_from : null,
pre_copy_and_cut : null,
copy_and_cut : function (ev, twelem, cut) {
if ( twelem.$dom.is('th,td') ) {
TWtcalc.copied_from = twelem.$dom;
TWtcalc.cut_from = cut ? twelem.$dom : null;
}
TWtcalc.pre_copy_and_cut.apply(this,arguments);
},
//}}}
/***
!! paste_in
***/
//{{{
pre_paste_in : null,
paste_in : function (ev,$ta,$cell) {
TWtcalc.pre_paste_in.apply(this,arguments);
// Auto adjustment of cell reference upon copy-and-pasting
// within the same table.
var $from_cell = TWtcalc.copied_from;
if ( $from_cell ) {
// Something pasted from another cell in the same table.
var title_from = $from_cell[0].title.split('\n');
var r_from = TWtcalc.reference_to_index_row(title_from[0]);
var c_from = TWtcalc.reference_to_index_col(title_from[0]);
var title_to = $cell[0].title.split('\n');
var r_to = TWtcalc.reference_to_index_row(title_to[0]);
var c_to = TWtcalc.reference_to_index_col(title_to[0]);
if ( title_from.length > 1 ) {
// The source cell contains an expression for calculations.
// Obtain the paste-in text and adjust cell reference
// if any.
var txt = $ta.val(), chndx=0, ref, newref,
r, c, abs_r, abs_c;
while ( chndx < txt.length ) {
if ( (ref=TWtcalc.cell_reference(txt,chndx)) ) {
r = TWtcalc.reference_to_index_row(ref);
abs_r = TWtcalc.absolute_row(ref);
c = TWtcalc.reference_to_index_col(ref);
abs_c = TWtcalc.absolute_col(ref);
if (!abs_r) r = r_to + (r-r_from);
if (!abs_c) c = c_to + (c-c_from);
newref = c>=0 ?
TWtcalc.index_to_reference_col(c,abs_c):
'{'+c+'}';
newref += r>=0 ? ((abs_r?'$':'')+r) : '{'+r+'}';
txt=txt.substring(0,chndx)+
newref+
txt.substring(chndx+ref.length);
chndx += newref.length;
} else chndx++;
}
$ta.val(txt);
} else {
// The source cell contains regular wikitext.
TWtcalc.copied_from = null;
}
if ( TWtcalc.cut_from ) {
// The last cell was being cut and then pasted
// to this one.
var $table=$cell.closest('table');
var twtable = new TWElement($table);
var text = twtable.tiddler.text;
text = TWtcalc.update_cell_reference(
text,twtable.start,twtable.end,
r_from,c_from,r_to,c_to
);
TWtid.save_text(twtable.tiddler,text);
}
TWted.preview_editbox($ta);
}
},
//}}}
/***
!! wikify_element
***/
//{{{
pre_wikify_element : null,
wikify_element : function($elem) {
TWtcalc.pre_wikify_element.apply(this,arguments);
if ( TWtid.is_wrapper($elem) ) {
//TWtid.prepare_elements(new TWElement($elem));
$elem.find('table').each(function(n,table){
TWtcalc.calculate_table(jQuery(table));
});
}
},
//}}}
/***
!! re_calculate_table
***/
//{{{
re_calculate_table : function (twtable,text,affected) {
// Recalculate a table represented by twtable.
// Arguments:
// twtable -- (Required) A TWElement object representing the
// table to re-calculate.
// text -- (Optional) The tiddler text (containing
// that table).
// Normally twtable already contains the tiddler
// text so you can leave the 2nd argument undefined.
// However, in cases where the modified text
// hasn't been saved back to twtable.tiddler.text,
// the modified text can be passed in here.
// affected -- an array containing the (row, col) indices of
// all the affected cells. It is usually fine to leave
// this argument undefined. If it is given then TWtcalc
// re-calculates only cells referring to one of these
// affected cells, directly and indirectly.
if ( ! (config.options.chkTWtcalcEnabled
|| config.options.chkTWtcalcAllTables
|| TWtid.hasClass(twtable,'spreadsheet')) )
return false;
function ref_test_object (r, c) {
var refr=TWtcalc.index_to_reference_row(r);
var refc=TWtcalc.index_to_reference_col(c);
return {
ndx:{row:r, col:c},
rel:(refc+refr),
abs:(refc+'$'+refr)
};
}
var $table = twtable.$dom;
if ( ! text ) text = twtable.tiddler.text;
var i, ref = null;
if ( affected ) {
// Convert the (row, col) indices to reference strings.
ref = new Array();
for ( i = 0; i < affected.length; i++ ) {
ref[i] = ref_test_object(
affected[i].row,
affected[i].col
);
}
}
var cpos=TWtid.all_cells(text,twtable.start,twtable.end);
var peq, ctxt;
this.$cur_table = $table;
var $tr = $table.find('tr');
var $trc = new Array();
$tr.each(function(r,tr){
$trc[r] = jQuery(tr).find('th,td');
});
var count;
do {
count = 0;
for ( var r = 0; r < $tr.size(); r++ ) {
$trc[r].each(function(c,cell){
var $cell = jQuery(cell);
c = TWtid.cell_col_index($cell);
ctxt = text.substring(cpos[r][c].open,cpos[r][c].close);
if(ctxt && (peq=TWtcalc.index_of_expression(ctxt))>-1) {
// If the cell text contains expression
if ( ref ) {
// If rel, so as affected, is not null
for ( i = 0; i < ref.length; i++ ) {
// If this cell is one of the affected cells,
// or its expression contains an affected
// cell, break the loop for re-calculation
if (ref[i].ndx.row==r && ref[i].ndx.col==c)
break;
if (ctxt.indexOf(ref[i].rel) > -1) break;
if (ctxt.indexOf(ref[i].abs) > -1) break;
// Check for consecutive references
}
if ( i == ref.length )
// If the expression contains NO directly
// affected cells, leave it.
return;
// This cell needs re-calculations, push it to
// the end of ref so other cells referring to this
// one would also get re-calculated.
ref.push(ref_test_object(r,c));
count++;
// clear this cell to avoid further
// re-calculation
cpos[r][c].close = cpos[r][c].open;
}
// Re-calculate the cell
TWtcalc.calculate_cell($cell,true,ctxt,peq);
} else {
// This cell does not contain an expression, clear
// it to save time in the later runs (if any).
cpos[r][c].close = cpos[r][c].open;
}
});
}
// If more than one cells got recalculated, we search for
// indirectly affected cells.
} while ( count > 0 );
TWtcalc.$cur_table = null;
TWtid.table_resize(twtable);
return true;
},
//}}}
/***
!! Misc. Functions
***/
//{{{
replace_decimal_mark : function ( txt, oldmark, newmark ) {
var p = txt.indexOf(oldmark);
return p == -1 ? txt :
txt.substring(0,p)+newmark+txt.substring(p+1);
},
isnumeric : function ( txt, update, given_mark, to_sep ) {
// See [[Testing a numeric expression -- isnumeric -- The Crazy Version!]]
// or [[its external link|http://twtable.tiddlyspace.com/#%5B%5BTesting%20a%20numeric%20expression%20--%20isnumeric%20--%20The%20Crazy%20Version!%5D%5D]]
// for details.
txt = txt.trim();
var ndig = 0, ncomma = 0, nperiod = 0,
npm = 0, nspace = 0, ndot = 0, i, ch;
for ( i = 0; i < txt.length; i++ )
if ( /[^0-9]/.test((ch=txt.charAt(i))) )
switch ( ch ) {
case '+' :
case '-' :
if ( i > 0 ) return '';
if ( ++npm > 1 ) return '';
break;
case '.' :
if ( ++nperiod > 1 && ncomma > 1)
return '';
break;
case ',' :
if ( ++ncomma > 1 && nperiod > 1)
return '';
break;
case ' ' :
if ( ++nspace > 1 &&
(ndot>1 || nperiod>1 || ncomma>1) )
return '';
break;
case '·' :
if ( ++ndot > 1 &&
(nspace>1 || nperiod>1 || ncomma>1) )
return '';
break;
default :
return '';
}
else ndig++;
if ( ndig == 0 ) return '';
if ( !update && (ncomma == 0 && nperiod == 0 &&
nspace == 0 && ndot == 0) )
return txt;
var mark = '.', separator = ',',
nmark = nperiod, nsep = ncomma;
if ( nperiod > 1 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( nspace > 0 ) {
if ( (nperiod > 0 && ncomma > 0) ||
(nperiod > 1 || ncomma > 1) ) return '';
separator = ' '; nsep = nspace;
if ( ncomma > 0 ) {
mark = ','; nmark = ncomma;
} else {
mark = '.'; nmark = nperiod;
}
} else if ( ndot > 0 ) {
if ( nperiod > 0 || ncomma > 1 ) return '';
separator = '·'; mark = ',';
nsep = ndot; nmark = ncomma;
} else if ( ncomma == 1 && nperiod == 0 ) {
i = txt.indexOf(',');
if ( i==0 || txt.length-i!=4 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( txt.length-i < 4 )
return '';
} else if ( nperiod == 1 && ncomma == 1 ) {
i = txt.indexOf(',') - txt.indexOf('.');
if ( i == 4 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( i != -4 )
return '';
}
if ( nsep > 0 && ! config.options.chkTWtcalcThousandSeparated )
return '';
if ( nsep > 1 ) {
var p1 = txt.indexOf(separator), p2;
while( (p2=txt.indexOf(separator,p1+1))>-1 ) {
if ( p2 - p1 != 4 ) return '';
p1 = p2;
}
}
if ( (nmark>0 && mark!=config.options.txtTWtcalcDecimalMark)
|| (nsep>0 &&
separator!=config.options.txtTWtcalcThousandSeparator) )
return '';
var opt_mark = given_mark ? given_mark :
config.options.txtTWtcalcDecimalMark;
if ( nsep == 0 ) {
if ( opt_mark != mark )
txt = this.replace_decimal_mark(txt, mark, opt_mark);
return to_sep ? this.separate_number(txt) : txt;
}
var opt_separator = to_sep ?
config.options.txtTWtcalcThousandSeparator : '';
if ( (mark!=opt_mark) || (separator!=opt_separator) ) {
for ( i = 0; i < txt.length; i++ ) {
ch = txt.charAt(i);
if ( ch == separator ) {
if(separator!=opt_separator)
txt=txt.substring(0,i)+
opt_separator+txt.substring(i+1);
}
else if( ch == mark ) {
if(mark!=opt_mark)
txt=txt.substring(0,i)+
opt_mark+txt.substring(i+1);
}
}
}
return txt;
},
unseparate_number : function ( txt ) {
var txt2 = txt.split(config.options.txtTWtcalcThousandSeparator),
txt3 = '', i;
for ( i = 0; i < txt2.length; i++ )
txt3 += txt2[i];
return txt3;
},
// //The following function was obtained from
// //http://www.mredkj.com/javascript/numberFormat.html
separate_number : function (nStr) {
nStr += '';
x = nStr.split(config.options.txtTWtcalcDecimalMark);
x1 = x[0];
x2 = x.length > 1 ?
config.options.txtTWtcalcDecimalMark + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' +
config.options.txtTWtcalcThousandSeparator + '$2');
}
return x1 + x2;
},
absolute_row : function (ref) {
var p = ref.indexOf('$',1);
return (p > 0 && p < 4);
},
reference_to_index_row : function ( ref ) {
var p = ref.indexOf('$',1);
if ( p > 0 && p < 4 )
// Absolute row reference
return parseInt(ref.substring(p+1));
p = /^[\$]/.test(ref) ? 1 : 0;
// Relative row reference
if ( /[a-zA-Z]/.test(ref.charAt(p+1)) )
return parseInt(ref.substring(p+2));
else
return parseInt(ref.substring(p+1));
},
index_to_reference_row : function ( r, abs ) {
return (abs?'$':'')+r;
},
absolute_col : function (ref) {
return /^[\$]/.test(ref);
},
reference_to_index_col : function ( ref ) {
var p = ref.indexOf('$');
if ( p == 0 ) p++; // Absolute col reference
else p = 0; // Relative col reference
var a = 'A'.charCodeAt();
ref = ref.toUpperCase();
if ( /[A-Z]/.test(ref.charAt(p+1)) ) {
var c1 = ref.charAt(p).charCodeAt()-a+1,
c2 = ref.charAt(p+1).charCodeAt()-a;
return c1*26 + c2;
} else {
return ref.charAt(p).charCodeAt()-a;
}
},
index_to_reference_col : function ( c, abs ) {
var a = 'A'.charCodeAt(),
pre = (abs ? '$' : '');
if ( c < 26 )
return pre+String.fromCharCode(c+a);
else {
var c1 = c/26-1, c2 = c%26;
return pre+String.fromCharCode(c1+a)+
String.fromCharCode(c2+a);
}
},
//}}}
// //TWtcalc defined function handlers.
//{{{
index_of_expression : function ( text ) {
var peq = text.indexOf('=');
if ( peq == 0 || peq == -1 ) return peq;
var start = TWtid.skip_style_text(text);
while ( /[\s]/.test(text.charAt(start)) ) start++;
if ( peq == start ) return peq;
return -1;
},
fn_ndx : -1,
isfunction : function ( txt, start ) {
// Returns the function string fn(arg) if any.
this.fn_ndx = -1; if ( !start ) start = 0;
var txt2 = txt.substring(start).toUpperCase(), pfn, pparenl,
fn_name='', i, j;
for ( i = 0; i < this.fn.length; i++ ) {
if ( typeof this.fn[i].name == 'string' ) {
if ( txt2.startsWith(this.fn[i].name) ) {
fn_name = this.fn[i].name;
}
} else for ( j = 0; j < this.fn[i].name.length; j++ )
if ( txt2.startsWith(this.fn[i].name[j]) ) {
fn_name = this.fn[i].name[j]; break;
}
if ( fn_name ) {
pfn = txt2.indexOf(fn_name)+start;
pparenl = txt.indexOf('(',pfn+1);
if ( pparenl == -1 ) return '';
this.fn_ndx = i;
var pparenr = txt.indexOf(')',pparenl+1);
if (pparenr == -1)
return this.is_userfunction(txt,pfn);
while (pparenl > -1) {
pparenl = txt.indexOf('(',pparenl+1);
if ( pparenl>-1 && pparenl<pparenr ) {
// Inner parentheses. Look again.
pparenl = pparenr;
pparenr = txt.indexOf(')',pparenr+1);
if (pparenr==-1)
return this.is_userfunction(txt,pfn);
}
}
return this.is_userfunction(txt,pfn,pparenr+1);
}
}
},
is_userfunction : function ( txt, start, end ) {
if ( start==0 || txt.charAt(start-1)!='.' )
return txt.substring(start,end);
this.fn_ndx = -1;
},
parse_single_term : function (cell_exp, last_one, start) {
var expression = '', tmp_exp = null;
if (this.fn[this.fn_ndx].parse_single_term) {
tmp_exp = this.fn[this.fn_ndx]
.parse_single_term(cell_exp,start);
if ( tmp_exp ) expression += tmp_exp;
} else {
expression += (tmp_exp=cell_exp);
}
if (!last_one && tmp_exp && this.fn[this.fn_ndx].operator)
expression += this.fn[this.fn_ndx].operator;
return expression;
},
consecutive_cells : function (txt) {
// Extract the indices of the starting (top-left) and ending
// (bottom-right) cells in a consecutive range.
var txt2 = txt.split(':');
// Now txt2[0] is the beginning while txt2[1] is the
// ending cell. Find the (row, col) indices of the
// cells and evaluate the cells in between, inclusively.
c1 = this.reference_to_index_col(txt2[0]),
r1 = this.reference_to_index_row(txt2[0]),
c2 = this.reference_to_index_col(txt2[1]),
r2 = this.reference_to_index_row(txt2[1]);
if ( r2 < r1 ) { r = r1; r1 = r2; r2 = r; }
if ( c2 < c1 ) { c = c1; c1 = c2; c2 = c; }
return {
start: {row:r1, col:c1},
end: {row:r2, col:c2}
};
},
parse_consecutive : function ( txt ) {
// calculate over consecutive cells
// The argument txt should be something like cell1..cell2,
// otherwise the behavior of this function is undefined.
var expression = '', tmp_exp,
r, c, fn_ndx = this.fn_ndx, tmp_exp,
$rows = this.$cur_table.find('tr'), $cells, $tr, $cell,
ndx = TWtcalc.consecutive_cells(txt);
for ( r = ndx.start.row; r <= ndx.end.row; r++ ) {
$tr = $rows.eq(r); if ($tr.size ()==0) continue;
$cells = $tr.find('th,td');
for ( c = ndx.start.col; c <= ndx.end.col; c++ ) {
$cell = $cells.eq(c); if ($cell.size()==0) continue;
tmp_exp = this.evaluate_cell($cell,
!this.fn[this.fn_ndx].no_eval);
this.fn_ndx = fn_ndx;
expression += this.parse_single_term
( tmp_exp, (r==ndx.end.row && c==ndx.end.col) );
}
}
if ( expression && this.fn[this.fn_ndx].operator )
if (expression.charAt(expression.length-1)==
this.fn[this.fn_ndx].operator) {
expression =
expression.substring(0,expression.length-1);
}
return expression;
},
//}}}
/***
!! split_line_text
***/
//{{{
split_line_text : function ( txt, sep, brackets ) {
// Split one line of wikitext that contains several items, a table
// row or an array, for example.
//
// Arguments: txt The txt to split.
// sep The separator of items
// brackets An array of pairs of opening/closing
// brackets that should not split.
var result = txt.split (sep), r0 = 0
, rl = result.length-1, popen, mclose, pclose;
while ( ! result[r0] && r0 < rl ) r0++;
while ( ! result[rl] && r0 < rl ) rl--;
for ( var b = 0; b < brackets.length; b++ ) {
for ( var i = r0; i < rl; i++ ) {
if ( ! result[i] ) continue;
if ((popen=result[i].lastIndexOf(brackets[b].open))==-1)
continue;
if ( typeof brackets[b].close == 'string' )
pclose = result[i].lastIndexOf(brackets[b].close);
else {
if ( (mclose=result[i].match(brackets[b].close)) ) {
pclose = result[i]
.lastIndexOf(mclose[mclose.length-1]);
} else pclose = -1;
}
if ( popen > pclose ) {
// Found one part of the text that contains an opening
// bracket(s), but not its closing counterpart. This is
// possibly one of the cases mentioned above. If so then
// the next part may contain the corresponding closing
// bracket(s).
if ( typeof brackets[b].close == 'string' )
pclose = result[i+1].indexOf(brackets[b].close);
else
pclose = result[i+1].search(brackets[b].close);
popen = result[i+1].indexOf(brackets[b].open);
if ( pclose > -1 ) {
if ( popen==-1 || popen>pclose ) {
// Fond the corresponding closing bracket(s).
// Combine the two parts to restore it.
result[i] += sep + result[i+1];
// Remove the second part.
result.splice ( i+1, 1 );
if ( popen > pclose )
// There is another opening bracket(s) after
// the desired closing bracket(s), check this
// cell again.
--i;
}
}
}
}
}
return result;
},
//}}}
/***
!! parse_function
***/
//{{{
parse_function : function ( txt ) {
// Start parsing TWtcalc-defined functions.
// Calculations are done in one of the following ways:
// 1. over consecutive cells
// txt should look like func(cell1:cell2)
// 2. over separated individual cells
// txt should look like func(cell1,cell2,cell3,...)
// 3. mixing both cases
// txt can be like
// func(cell1:cell2,cell3,cell4,cell5:cell7...)
// get rid of parentheses in txt
var pparen_l = txt.indexOf('('),
pparen_r = txt.lastIndexOf(')'),
txt2 = txt.substring(pparen_l+1, pparen_r);
var expression = '', tmp_exp;
if ( this.fn[this.fn_ndx].start_parsing )
if ((tmp_exp=this.fn[this.fn_ndx].start_parsing()))
expression = tmp_exp;
if ( !txt2 ) {
// Functions without arguments.
if ( this.fn[this.fn_ndx].stop_parsing )
if((tmp_exp=this.fn[this.fn_ndx].stop_parsing()))
expression += tmp_exp;
return expression;
}
// Functions with arguments.
var fn_ndx = this.fn_ndx, chndx = 0, fntxt, i;
// If some of the arguments contain function calls,
// evaluate them before further parsing.
txt2 = TWtcalc.split_line_text(txt2,',',[
{'open' : '(', 'close' : ')'}
,{'open' : '[', 'close' : ']'}
,{'open' : '{', 'close' : '}'}
]);
for ( i = 0; i < txt2.length; i++ ) {
var txt3 = txt2[i].trim();
var p0 = TWtid.skip_style_text(txt3), fnval;
chndx = p0;
while ( chndx < txt3.length ) {
if ( (fntxt=this.isfunction(txt3,chndx)) ) {
fnval = this.parse_function(fntxt);
txt3 = txt3.substring(0,chndx)
+ fnval
+ txt3.substring(chndx+fntxt.length);
chndx += fnval.length;
} else chndx++;
}
this.fn_ndx = fn_ndx;
if ( (chndx=txt3.indexOf(':',p0)) > -1
&& this.cell_reference(txt3,chndx+1) ) {
expression += this.fn[this.fn_ndx].no_deref
? this.parse_single_term
(txt3,(i==txt2.length-1))
: this.parse_consecutive(txt3);
if ( i<txt2.length-1 &&
this.fn[this.fn_ndx].operator )
expression+=this.fn[this.fn_ndx].operator;
} else {
tmp_exp=this.evaluate(
txt3
, p0
, !this.fn[this.fn_ndx].no_eval
, this.fn[this.fn_ndx].no_deref
);
this.fn_ndx = fn_ndx;
expression+=this.parse_single_term(
(p0 ? txt3.substring(0,p0) : '')+tmp_exp
, (i==txt2.length-1)
, p0
);
}
}
if (this.fn[this.fn_ndx].stop_parsing)
if ((tmp_exp=this.fn[this.fn_ndx].stop_parsing()))
expression += tmp_exp;
return expression;
},
//}}}
/***
!! cell_reference
***/
//{{{
cell_reference : function ( txt, start ) {
// Returns the cell reference from txt at position start, or an
// empty string if no cell reference is found at that position.
var chndx=(start?start:0), ch, col = '', row = '';
if ( chndx > -1 && chndx < txt.length-1 ) {
if ( (ch=txt.charAt(chndx++)) == '$' ) {
// Absolute column reference
col = ch;
ch = txt.charAt(chndx++);
}
if ( /[\a-zA-Z]/.test(ch) ) {
col += ch;
ch = txt.charAt(chndx++);
if ( /[a-zA-Z]/.test(ch) ) {
col += ch;
ch = txt.charAt(chndx++);
}
}
if ( col ) {
// There is possible column reference,
// check for row reference.
if ( ch == '$' ) {
// Absolute row reference
row = ch;
ch = txt.charAt(chndx++);
}
if (/[0-9]/.test(ch)) {
row += ch;
while (chndx<txt.length &&
/[0-9]/.test((ch=txt.charAt(chndx++))))
row += ch;
return col+row;
}
}
}
return '';
},
//}}}
/***
!! Evaluation functions
***/
//{{{
is_possible_exp : function (txt) {
if ( !txt ) return false;
//if ( /[^\x21-\x7e ]/g.test(txt) ) return false;
var pl = txt.indexOf('(');
if ( pl > -1 ) {
var pr = txt.lastIndexOf(')');
txt = txt.substring(pl+1,pr);
}
var term1 = txt.split(/[\*\/]/);
for ( var i = 0; i < term1.length; i++ ) {
if ( ! term1[i] ) return false;
var term2 = term1[i].split(/[\+\-]/);
for ( var j = 0; j < term2.length; j++ )
if ( term2[j] && ! TWtcalc.isnumeric(term2[j].trim()) )
return false;
}
return true;
},
//}}}
/***
!! evaluate
***/
//{{{
evaluate : function ( txt, start, js_eval, no_deref ) {
// Evaluate a TWtcalc expression.
// A valid TWtcalc expression can be something like
// 1. a simple arithmetic on table cells such as
// =A1+E4 or =(B3+C4)/D7, etc.
// 2. a TWtcalc-defined function such as
// =SUM(A1..D8) or PRODUCT(A1,C3,D5) or
// =AVERAGE(B3..B20;B30..B40;C3,E2), etc.
// 3. a valid Javascript math expression such as
// =Math.sin(Math.PI) or =Math.sqrt(3), etc.
var expression='', cexp = '', chndx=start, subtxt,
$tr = this.$cur_table.find('tr');
while ( chndx < txt.length ) {
if ( (subtxt = this.cell_reference(txt,chndx)) ) {
// cell reference found
if ( !no_deref ) {
var col=this.reference_to_index_col(subtxt),
row = this.reference_to_index_row(subtxt), c2;
c2=$tr.eq(row).find('th,td').eq(col);
cexp = this.evaluate_cell(c2,js_eval);
if ( cexp ) expression += cexp;
else if (/[\+\-\*\/]$/.test(expression))
expression=expression.substring(0,expression.length-1);
} else expression += subtxt;
chndx += subtxt.length;
} else if ( (subtxt=this.isfunction(txt,chndx)) ) {
// No cell reference found, but some
// TWtcalc-defined function found.
expression += this.parse_function(subtxt);
js_eval = !this.fn[this.fn_ndx].no_eval;
chndx += subtxt.length;
} else {
expression += txt.charAt(chndx++);
}
}
if (js_eval && this.is_possible_exp(expression))
try { return ''+eval(expression); }
catch (e) { return 'Err: '+e; }
return expression;
},
//}}}
/***
!!
***/
//{{{
cells_being_evaluated : new Array(),
cyclic_reference : function ( $cell ) {
for ( var c = 0; c < TWtcalc.cells_being_evaluated.length; c++ )
if ( TWtcalc.cells_being_evaluated[c] == $cell )
return 'Error: ' +
(c == TWtcalc.cells_being_evaluated.length-1) ?
'Self reference.' :
'Cyclic reference.';
},
cell_text : function ( $cell, txt ) {
if ( typeof txt == 'undefined' ) {
txt = $cell.text();
if ( txt
&& (config.tableSorting
|| config.macros.sortableGridPlugin) ) {
var p = txt.indexOf('\u2191');
if ( p == -1 ) p = txt.indexOf('\u2193');
if ( config.macros.sortableGridPlugin )
p -= 2;
if ( p > -1 ) txt = txt.substring(0,p);
}
return txt;
} else {
if ( TWtid.cell_row_index($cell) == 0 ) {
if ( config.tableSorting ) {
var $span = $cell.find('span:first');
$cell.text(txt);
if ( $span.size() > 0 ) {
var html = $span.html(),
p = html.indexOf('\u2191');
if ( p == -1 ) p = html.indexOf('\u2193');
if ( p > -1 ) $span.appendTo($cell);
}
} else if ( config.macros.sortableGridPlugin ) {
var $span = $cell.find('a.sortheader span:first');
// This is copied from SortableGridPlugin
// for sorting purposes.
if ( $span.size() > 0 )
$cell.html(TWted.sortable_grid_html(txt))
.find('a.sortheader span:first')
.html($span.html())
.attr('sortdir', $span.attr('sortdir'));
else $cell.text(txt);
} else
$cell.text(txt);
} else {
$cell.text(txt);
}
//displayMessage('cell_text '+TWtid.object_string(TWtid.cell_row_index($cell),TWtid.cell_col_index($cell)));
//TWtid.adjust_width($cell);
}
},
//}}}
/***
!! evaluate_cell
***/
//{{{
evaluate_cell : function ( $cell, js_eval, peq ) {
// Evaluate a table cell
var txt = this.cell_text($cell);
if ( !txt ) return '';
if (!peq) peq = this.index_of_expression(txt);
var txt2, peq0 = peq;
if ( peq > -1 ) {
if ( $cell[0].title ) {
$cell[0].title = $cell[0].title.split('\n')[0]+'\n'+txt;
} else $cell[0].title = txt;
var err = this.cyclic_reference ( $cell );
if ( err ) {
this.cell_text(
$cell
,txt+'<br><br>'+$cell[0].title+'<br>'+err
);
} else {
this.cells_being_evaluated.push($cell);
txt = this.evaluate(txt,peq+1,js_eval);
txt2 = this.isnumeric(txt, true, '',
config.options.chkTWtcalcThousandSeparated);
if ( ! txt2 ) txt2 = txt;
if ( TWtid.skip_style_text(txt2) > 0 ) {
TWtid.wikify_element(
$cell,'@@'+txt2+'@@',true
);
} else {
this.cell_text($cell,txt2);
}
this.cells_being_evaluated.pop();
}
} else if ( $cell.contents().size()==1 &&
(txt2=this.isnumeric(txt,true,'.',false)) ) {
if ( txt.trim() != txt2.trim() ) {
// The .trim() above is necessary because there could be
// white-spaces/line-breaks in the cell content.
this.cell_text(
$cell
,(config.options.chkTWtcalcThousandSeparated
? this.separate_number(txt)
: txt)
);
return txt2;
} else if (config.options.chkTWtcalcThousandSeparated) {
this.cell_text($cell,this.separate_number(txt2));
} else return txt2;
}
return txt;
},
//}}}
/***
!! Main functions
***/
//{{{
pre_system_menu_item : null,
system_menu_item : function(item){
// This function is for other plugins to provide their system menu
// item when present. This function must return an array of menu items
// that are objects consisting of
// {
// text: item text,
// callback: (Optional) callback handler on click,
// prepare: function that prepares the options table
// }
// If the menu item from this plugin is to go after the item from
// TWtid, then here we should call {{{pre_system_menu_item}}}
// first, and push a new item to the returned array.
item = TWtcalc.pre_system_menu_item.apply(this,arguments);
item.push({
text:'TWtcalcOptions',
//callback:TWtcalc.menu_item_handler,
prepare:config.macros.TWtcalcOptions.handler
});
return item;
// If, however, we want to go before the TWtid menu item, we should
// ensure a valid array, push an item, then call the
// {{{pre_system_menu_item}}} and pass the array as the parameter.
//if ( ! item ) item = new Array();
//item.push({
// text:'TWtcalcOptions',
// callback:TWtcalc.menu_item_handler,
// prepare:config.macros.TWtcalcOptions.handler
//});
//return TWtcalc.pre_system_menu_item.call(this,item);
},
cell_reference_title : function ( $cell, r, c ) {
var span = TWtid.cell_spans($cell);
var ref = '';
for ( var rr = 0; rr < span.row; rr++ ) {
for ( var cc = span.col-1; cc >= 0; cc-- ) {
ref += TWtcalc.index_to_reference_col(c-cc)+(r+rr);
if ( cc > 0 ) ref += ' | ';
}
if ( rr < span.row-1 ) ref += '\n';
}
if ( $cell[0].title ) {
var txt = $cell[0].title.split('\n');
if ( txt[0] != ref )
$cell[0].title = ref + '\n' + txt[0];
} else $cell[0].title = ref;
},
//}}}
/***
!! calculate_cell
***/
//{{{
calculate_cell : function($cell,make_title,expression,peq){
if ( make_title )
this.cell_reference_title(
$cell,
TWtid.cell_row_index($cell),
TWtid.cell_col_index($cell)
);
if ( expression ) {
this.cell_text($cell,expression);
}
try {
expression = this.evaluate_cell($cell,true,peq);
} catch ( e ) {
if ( config.options.chkTWtcalcDebugMode )
this.cell_text(
$cell
, this.cell_text($cell)
+'<br><br>'+expression+'<br>'+e
);
}
},
//}}}
/***
!! calculate_table
***/
//{{{
calculate_table : function ( twtable ) {
if ( ! config.options.chkTWtcalcEnabled
|| ! (config.options.chkTWtcalcAllTables
|| TWtid.hasClass(twtable,'spreadsheet')) )
return false;
var $table = twtable.$dom ? twtable.$dom : twtable;
if ( ! $table ) return false;
TWtcalc.$cur_table = $table;
$table.find('tr').each( function (r, tr) {
jQuery(tr).find('th,td').each ( function (c, cell) {
TWtcalc.calculate_cell(jQuery(cell),true);
} );
} );
TWtcalc.$cur_table = null;
if ( twtable.$dom ) TWtid.table_resize(twtable);
return true;
},
//}}}
/***
!!
***/
//{{{
pre_OfficialExample : null,
OfficialExample : function ( title ) {
var result = TWtcalc.pre_OfficialExample(title);
if ( ! result && title )
result = /^TWtcalc--Example/.test(title);
return result;
},
pre_prepare_table : null,
prepare_table : function (twtable) {
var result = TWtcalc.pre_prepare_table.apply(this,arguments);
if ( result && ! twtable.$dom.attr('tcalc') )
if ( TWtcalc.calculate_table ( twtable ) )
twtable.$dom.attr('tcalc', 'true');
return result;
}
};
//}}}
// //TWtcalc defined functions
//{{{
TWtcalc.fn = [
{
name: 'PRODUCT',
operator: '*',
parse_single_term: function ( txt ) {
return TWtcalc.isnumeric(txt)?txt:'1';
}
},
{
name: 'SUM',
operator: '+',
start_parsing: function () {
return '(';
},
stop_parsing: function () {
return ')';
},
parse_single_term: function ( txt ) {
return TWtcalc.isnumeric(txt)?txt:'0';
}
},
{
// COUNTA should be defined before COUNT, otherwise it
// has no chance to be matched. It is so because TWtcalc
// plugin matches a function name with startsWith() method,
// and both functions starts with COUNT, if COUNT is defined
// before COUNTA, then the match will always be COUNT and
// never COUNTA.
name: 'COUNTA',
count: 0,
start_parsing: function () {
this.count = 0;
},
stop_parsing: function () {
return ''+this.count;
},
parse_single_term: function ( txt ) {
if (/\S/.test(txt)) this.count++;
}
},
{
name: 'COUNT',
count: 0,
condition: null,
start_parsing: function () {
this.condition = null;
this.count = 0;
},
stop_parsing: function () {
return ''+this.count;
},
parse_single_term: function ( txt ) {
if (TWtcalc.isnumeric (txt)) {
if ( this.condition ) {
var txt2 = this.condition.replace(/\%/g,txt);
this.count += eval(txt2) ? 1 : 0;
} else this.count++;
} else if ( ! this.condition ) {
txt = txt.trim();
if (/^[\%][\s]*[\>\<\=\!]/.test(txt)) {
this.condition = txt;
}
}
}
},
{
name: ['AVERAGE', 'AVG', 'MEAN'],
operator: '+',
count: 0,
start_parsing: function () {
this.count = 0;
return '(';
},
stop_parsing: function () {
return ')/'+this.count;
},
parse_single_term: function ( txt ) {
if ( (txt=TWtcalc.isnumeric(txt)) ) {
this.count++;
}
return txt;
}
},
{
name: 'TODAY',
no_eval: true,
stop_parsing: function () {
return new Date();
}
},
{
name: 'DAYS',
no_eval: true,
date1: null,
date2: null,
num_dec: null,
start_parsing: function () {
this.date1 = this.date2 = this.num_dec = null;
},
stop_parsing: function () {
var result = (this.date2-this.date1)/1000/86400;
//if ( !this.num_dec || this.num_dec == 0 )
if ( !this.num_dec )
result = Math.round(result);
else {
var factor = Math.pow(10,this.num_dec);
result=Math.round(factor*result)/factor;
}
return result;
},
parse_single_term: function ( txt ) {
if ( !this.date1 ) this.date1 = Date.parse(txt);
else if ( !this.date2 ) this.date2 = Date.parse(txt);
else if ( !this.num_dec ) this.num_dec = txt*1;
}
},
{
name: 'ROUND',
value: null,
num_dec: null,
start_parsing: function () {
this.value = this.num_dec = null;
},
stop_parsing: function () {
if ( this.num_dec===null || this.num_dec===0 ) {
this.value = Math.round(this.value);
} else {
var factor = Math.pow(10,this.num_dec);
this.value=Math.round(factor*this.value)/factor;
}
return this.value?(''+this.value):'0';
},
parse_single_term: function ( txt ) {
if ( this.value === null ) this.value = txt*1;
else if ( this.num_dec === null ) this.num_dec = txt*1;
}
},
{
name: 'RANDOM',
factor: null,
start_parsing: function () {
this.factor = null;
},
stop_parsing: function () {
var result = Math.random();
if ( this.factor ) result *= this.factor;
return result;
},
parse_single_term: function ( txt ) {
if ( !this.factor ) this.factor = txt*1;
}
},
{
name: 'CONCAT',
no_eval: true
},
{
name: 'ISNUMERIC',
no_eval: true,
parse_single_term: function (txt) {
var txt2=TWtcalc.isnumeric(txt);
return txt2 ? txt2 : 'false';
}
},
{
name: ['STDERR', 'STDEV'],
//no_eval: true,
data: null,
sum: 0,
start_parsing: function () {
if (!this.data) this.data = new Array();
this.sum = 0;
},
stop_parsing: function () {
var npt = data.length;
if ( npt == 0 ) return 0;
var mean = this.sum/npt, d, variance = 0;
for ( d = 0; d < npt; d++ ) {
variance += (this.data[d] - mean)^2;
}
return Math.sqrt(variance/(npt-1));
},
parse_single_term: function (txt) {
var v = parseFloat(txt);
this.data.push(v);
this.sum += v;
}
},
{
name: ['COLUMNA', 'COLA'],
no_eval: true,
no_deref: true,
col: null,
start_parsing: function () {
this.col = null;
},
stop_parsing: function () {
if ( this.col === null ) {
var cells = TWtcalc.
cells_being_evaluated;
this.col = TWtcalc.reference_to_index_col
(cells[cells.length-1][0].title);
}
return TWtcalc.col_ref(this.col);
},
parse_single_term: function (txt) {
if ( this.col === null )
this.col = TWtcalc.reference_to_index_col(txt);
}
},
{
name: ['COLUMNS', 'COLS'],
no_eval: true,
no_deref: true,
cols: 0,
start_parsing: function () {
this.cols = 0;
},
stop_parsing: function () {
return ''+this.cols;
},
parse_single_term: function (txt) {
txt = txt.split(':');
switch ( txt.length ) {
case 1 :
this.cols++; break;
case 2 :
// a range of cells
var c0 = TWtcalc.reference_to_index_col(txt[0]),
c1 = TWtcalc.reference_to_index_col(txt[1]);
this.cols += (c1-c0+1);
break;
default :
// Syntax error
throw 'Syntax error: '+txt;
break;
}
}
},
{
name: ['COLUMN', 'COL'],
no_eval: true,
no_deref: true,
col: null,
start_parsing: function () {
this.col = null;
},
stop_parsing: function () {
if ( !this.col ) {
var cells = TWtcalc.cells_being_evaluated;
this.col = TWtcalc.reference_to_index_col(
cells[cells.length-1][0].title);
}
return ''+this.col;
},
parse_single_term: function (txt) {
if ( !this.col )
this.col = TWtcalc.
reference_to_index_col(txt);
}
},
{
name: 'ROWS',
no_eval: true,
no_deref: true,
rows: 0,
start_parsing: function () {
this.rows = 0;
},
stop_parsing: function () {
return ''+this.rows;
},
parse_single_term: function (txt) {
txt = txt.split(':');
switch ( txt.length ) {
case 1 :
this.rows++; break;
case 2 :
// a range of cells
var r0 = TWtcalc.reference_to_index_row(txt[0]),
r1 = TWtcalc.reference_to_index_row(txt[1]);
this.rows += (r1-r0+1);
break;
default :
// Syntax error
throw 'Syntax error: '+txt;
break;
}
}
},
{
name: 'ROW',
no_eval: true,
no_deref: true,
row: null,
start_parsing: function () {
this.row = null;
},
stop_parsing: function () {
if ( !this.row ) {
var cells = TWtcalc.cells_being_evaluated;
this.row = TWtcalc.reference_to_index_row(
cells[cells.length-1][0].title);
}
return ''+this.row;
},
parse_single_term: function (txt) {
if ( !this.row )
this.row = TWtcalc.
reference_to_index_row(txt);
}
},
{
name: 'IF',
no_eval: true,
args: null,
start_parsing: function () {
args = new Array();
},
stop_parsing: function () {
return args[0] ? args[1] : args[2];
},
parse_single_term: function (txt,p0) {
switch ( args.length ) {
case 2 :
case 1 :
var style = txt.substring(0,p0);
args.push(style+eval(txt.substring(p0)));
break;
case 0 :
args.push(eval(txt));
break;
}
}
}
];
//}}}
<<<
In ~TiddlyWiki blockquotes are complicated in that
# they have two different types
** blockexamples: consecutive lines of text immediately preceded and followed by one single line of mere {{{<<<}}};
** single line blockquotes that consist of one or more (consecutive) lines of text starting with {{{<}}}.
# Both types can carry sub-blockquotes immediately following them.
# Both types can have sub-blockquotes completely inside their bodies.
Because of the last point above, there can be quite complicated blockquotes. The ''twve'' tries to take care of cases as complicated as I can imagine.
<<<
>Single line blockquotes
@@color:blue;To include sub blockquotes to edit, check the option <<option chktwveExtraIncludeSubs>> {{{chktwveExtraIncludeSubs}}}.@@
>Hierarchical blockquotes
>>This one follows immediately after the above one.
>>Blockquotes not started from level 1 are fine, too.
<<<
Block example
<<<
>In-body blockquotes (__blockquotes entirely within another blockquote__),
>>such as this one,
> or
>>this one,
>Works as well.
>Multi-line blockquote
>is fine,
>too.
>>2nd level
>>also
>>works.
>>>3rd level
>>>still works?
<<<
In ~TiddlyWiki {{{code pieces}}} are wrapped with a pair of triple braces """{{{""" and """}}}""" without line breaks.
@@color:blue;With line breaks it would become a blockquote.@@
<<<
{{{1st statement starts here;}}} {{{2nd statement immediately following the 1st;}}}
{{{3rd statement goes in another line;}}}
{{{You want more?}}}
<<<
This tiddler demonstrates that ''twve'' works with [[FoldHeadingsPlugin]]. With ''twve'' you can
# edit the content of the folded section;
** Unfold the section, move the cursor over the content,
** when the focusing borders enclose the content in the section, click to edit.
# edit the section title (the heading text).
** Move the cursor to the right-most area of the heading,
** when the focusing borders enclose the heading, click to edit.
<<<
!! Section 1
Some short text in section 1.
<<<
!!!! A heading within a folded section
Some text in this section-in-a-section
<<<
Some text after that section-in-a-section.
!! Section 2
Some more short text in section 2.
!! Section 3
Some a bit longer text in section 3 to cover more area.
!! Section 4
Some even longer text in section 4 that covers the whole width of this section and results in more than one lines. You will see the focusing borders also spans over multiple lines.
<<foldHeadings>>
<<<
In ~TiddlyWiki there are 6 levels for headings. The ''twve'' works with all 6 levels.
<<<
! You can edit almost everything! Just move your mouse around and see!
!! A table: Hover the mouse cursor over the table, there will be focusing borders around the table, click on one of the table cells to edit.
!! List items: All list items are editable in the view mode. Sublists can be included with <<option chktwveExtraIncludeSubs>> (option chktwveExtraIncludeSubs) set to true.
!!! Hierarchical headings.
!!!! This one follows immediately after the above heading. Works just fine.
!! Last heading
<<<
In ~TiddlyWiki there are virtually unlimited levels for listitems. The ''twve'' may just work fine with all of them.
<<<
@@color:blue;To include sub lists to edit, check the option <<option chktwveExtraIncludeSubs>> {{{chktwveExtraIncludeSubs}}}.@@
* 1
** 1.1
** 1.2
## 1.3
## 1.4
* 2
## 2.1
## 2.2
* 3
** 3.1
** 3.2
** Lists that do not start from level 1 (this one starts from level 2 with {{{**}}}) are fine, too.
* what after?
* are they still correct?
<<<
~MathJax is my favorite choice for math formulas, and it turns out not difficult to edit the displayed math formulas in the view mode. Here are some examples to play with.
<<<
''//Note:// It is easy to edit a math formula for sure'', @@color:red;but the previewer can be very slow with a complicated formula.@@
!!! Enclosed with a pair of {{{$$}}}
$$\boldsymbol{\nabla}f = \frac{\partial f}{\partial r} \boldsymbol{\hat r} + \frac{1}{r} \frac{\partial f}{\partial \theta} \boldsymbol{\hat \theta} + \frac{1}{r\sin\theta} \frac{\partial f}{\partial \phi} \boldsymbol{\hat \phi} .$$
!!! Enclosed with {{{\[}}} and {{{\]}}}
\[\nabla^2 V = \frac{1}{r^2} \frac{\partial}{\partial r} \left(r^2 \frac{\partial V}{\partial r}\right) + \frac{1}{r^2 \sin\theta} \frac{\partial}{\partial \theta} \left(\sin\theta \frac{\partial V}{\partial \theta}\right) + \frac{1}{r^2 \sin^2\theta} \frac{\partial^2 V}{\partial \phi^2}\]
!!! Enclosed with {{{\begin{}}} and {{{\end{}}}
\begin{array}{cccclc} \boldsymbol{\nabla} \times {\bf E} &=&& \frac{1}{r^2 \sin\theta} & \left[ \frac{\partial}{\partial \theta} (r \sin\theta\ E_\phi) - \frac{\partial}{\partial \phi} (r E_\theta) \right] & \boldsymbol{\hat r} \\ &&+& \frac{1}{r \sin\theta} & \left[ \frac{\partial}{\partial \phi} (E_r) - \frac{\partial}{\partial r} (r \sin\theta\ E_\phi) \right] & \boldsymbol{\hat \theta} \\ &&+& \frac{1}{r} & \left[ \frac{\partial}{\partial r} (r\ E_\theta) - \frac{\partial}{\partial \theta} (E_r) \right] & \boldsymbol{\hat \phi} .\end{array}
!!! More complicated style
\[\begin{pmatrix} \hat x' \\ \hat y' \\ \hat z' \end{pmatrix} \sim \begin{pmatrix} 1 + \epsilon_{xx} & \epsilon_{xy} & \epsilon_{xz} \\ \epsilon_{yx} & 1 + \epsilon_{yy} & \epsilon_{yz} \\ \epsilon_{zx} & \epsilon_{zy} & 1 + \epsilon_{zz} \end{pmatrix} \begin{pmatrix} \hat x \\ \hat y \\ \hat z \end{pmatrix}.\]
+++[nested sliders are somewhy]
open on load
===
<<<
An inline element may span over more than one lines if its content is long enough. In such cases the focusing borders are not just a simple rectangle but adjusted to visually comply with the text flow.
<<<
{{{1st statement starts here;}}}{{{2nd statement immediately following the 1st, and is long long long long long long long long long long long enough to span more than one lines;}}}{{{3rd statement that may be long enough to sop in the next line;}}}{{{Another long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line to span even more lines.}}}
Text after them.
> This tiddler gives information about how ''twve'' handles plain text.
!!! What is plain text?
Plain text in ~TiddlyWiki is a piece of text NOT to define some element, but to describe some information in a tiddler.
!! What is special about it?
There are two things special about plain text.
# In ~TiddlyWiki plain text is rendered as a ~TextNode, an object that is NOT accessible through {{{document.elementfromPoint(x,y)}}} or [[jQuery's .find()|http://api.jquery.com/find/]] methods. Unfortunately these two methods are the main tools that ''twve'' uses to locate the element at the mouse cursor.
# Plain text does not have any signatures in it, while the ''twve'' relies on definite signatures to locate the defining wiki text of an element.
!! What do do about it?
The solution: identify the preceding and following //elements// (with definite signatures).
Since elements with definite signatures can be easily identified and located, it is then possible to locate a piece of plain text by finding its preceding and following elements. The desired plain text is just in between.
When the ''twve'' finds the mouse cursor not over a specific element but just the body of a wrapper, it tries to locate the element that is //previous// and the element //next// to the mouse cursor. The //previous// is somewhere to the left or above, while the //next// is to the right or below. Either of these elements can be null, a regular element, or one of the [[transclusion wrappers]].
With this idea it is then quite simple to locate a piece of plain text:
# Locate the ''end'' of //previous//.
** If the //previous// is __not__ in the same container, look for the __beginning__ of the container instead.
# Locate the ''beginning'' of //next//.
** If the //next// is __not__ in the same container, look for the __end__ of the container instead.
# The desired plain text is just in-between.
>This feature is implemented in <<slider "" 'twve.extra##twwrap.box' 'twwrap.box()'>> method in ''twve.extra'' module.
<<<
In ~TiddlyWiki there are four pairs of tags to create a single type of blockquote. They are all supported in ''twve''. It works with [[SyntaxHighlighterPlugin3]] as well.
<<<
{{{
1st pre-formatted block
starting with {{{
}}}
//{{{
2nd pre-formatted block
starting with //{{{
//}}}
/*{{{*/
3rd pre-formatted block
starting with /*{{{*/
/*}}}*/
<!--{{{-->
4th pre-formatted block
starting with <!--{{{-->
<!--}}}-->
@@color:red;//Note: These can be wrong when there are strings containing """''""" (two single quotes in a row), """//""", """__""" (two underscores in a row), or """--"""//@@, and I have no working solutions yet.
<<<
In ~TiddlyWiki styled text are relatively easy to handle because
# they all have identical opening and closing tags,
# they all have only one pair of tags associated with them.
<<<
Try @@color:blue;Colored text@@, @@inversed text@@, __underlined text__, ''bold text'', //italic text//, @@font-size:2em;larger text@@, etc.
<<<
The ''twve'' carries a floating menu system that shows and hides a menu according to mouse status.
<<<
!!! The Options Menu
For example, there is an Options Menu that carries all the options associated with ''twve'' plugins. This menu hides itself from you most of the time, and shows up only when you __hover the mouse over a tiddler title__. When you do __it shows itself as a small icon__ -- a //hamburger//, according to Ton Gerner -- __at the top-right corner of the focusing borders around the tiddler title__. ''You can bring up the options menu by hovering the mouse over that little icon.''
> This tiddler gives instructions on how to edit transcluded content and their corresponding macros. See [[twve--Example--Transclusion--Content]] and [[twve--Example--Transclusion--Macros]] for examples.
!! The tiddler transcluded
To edit the content transcluded with {{{<<tiddler>>}}} macro, just click on the content text.
!! The slider transcluded
To edit the content transcluded with {{{<<slider>>}}} macro, click on the content text or some empty space within the area holding that content.
!! The tabs transcluded
To edit the content transcluded with {{{<<tabs>>}}} macro, click on the content text or some empty space within the area holding that content.
!! The tiddler macro
To @@edit the {{{<<tiddler>>}}} command@@, one can move the mouse cursor 1) into some empty space in the area of transcluded content, or 2) slightly above or below that area, the focusing borders will then enlarge a little bit, and clicking withing the borders will bring up the edit box with the {{{<<tiddler>>}}} command itself.
!! The slider macro
To @@edit the {{{<<slider>>}}} macro@@, ''move the cursor up until the focusing borders enclose the slider button'', then click within the borders.
!! The tabs macro
To @@edit the {{{<<tabs>>}}} command@@, ''move the mouse up in the tabs area, the focusing border will enclose the tabs and content'', then click within that border.
<<<
This tiddler shows the //transclusion// related features, including:
# editing the content of a transcluded tiddler,
# synchronizing the updated content for all transcluded copies.
<<<
!! {{{<<tiddler>>}}} transcluded
<<tiddler 'twve--Example--Transclusion Instructions##The tiddler transcluded'>>
!! {{{<<slider>>}}} transcluded
<<slider "" 'twve--Example--Transclusion Instructions##The slider transcluded' 'slider transcluded content'>>
!! {{{<<tabs>>}}} transcluded
<<tabs ''
'tabs transcluded content' "" 'twve--Example--Transclusion Instructions##The tabs transcluded'
>>
<<<
This tiddler shows the //transclusion// related features, including:
# editing the content of a transcluded tiddler,
# synchronizing the updated content for all transcluded copies.
<<<
* To @@edit the content@@, click on the content text.
* To @@edit the transclusion macro commands@@, see below (watch the focusing borders).
!! {{{<<tiddler>>}}} transcluded
Text before.
<<tiddler 'twve--Example--Transclusion Instructions##The tiddler macro'>>
Text after.
!! {{{<<slider>>}}} transcluded
Text before.
<<slider "" 'twve--Example--Transclusion Instructions##The slider macro' 'The slider macro'>>Text after.
!! {{{<<tabs>>}}} transcluded
<<tabs ''
'The tabs macro' "" 'twve--Example--Transclusion Instructions##The tabs macro'
>>
<<<
This tiddler shows the plugins work for //self-inclusion// cases.
* This was brought up by Yakov at the time when the plugins did not work for such cases. Now they seem to work.
<<<
!!!!Section
Some section text here to be self-included at the end.
!!!!!!end of section
|editable|k
|let's move the colomns|c
|h-cell4|h-cell1|h-cell3|h-cell2|h
|c14|c13|c12|c11|
|c24|c34|c22|c21|
<<tiddler [[twve--Example--Transclusion--Self Inclusion##Section]]>>
> This tiddler describes information about //wrappers//.
A wrapper is a container that holds all or part of a tiddler's content. In ~TiddlyWiki the built-in wrappers include
<<<
* containers holding __normally loaded__ tiddler's content -- {{{div.viewer}}};
* containers holding all or part of another tiddler's content __transcluded through {{{<<tiddler>>}}} macro__ -- {{{span[tiddler]}}};
* containers holding all or part of another tiddler's content __transcluded through {{{<<tabs>>}}} macro__ -- {{{div.tabContents}}};
* containers holding all or part of another tiddler's content __transcluded through {{{<<slider>>}}} macro__ -- {{{div.sliderPanel}}}.
<<<
The ''twve'' supports view mode editing and transclusion synchronization over all the above built-in wrappers. You can click on some empty space of the wrapper and edit the content held in it. After finished just click away or press {{{Ctrl-Enter}}} to accept changes, the ''twve'' updates its output and synchronizes its other copies, if any.
For example,
* to edit the content of a normally loaded tiddler (held in a {{{div.viewer}}}), simply move your mouse cursor somewhere close to the edge of the wrapper, when the focusing borders enlarges to include the whole wrapper, click to edit.
* To edit transcluded content, see [[twve--Example--Transclusion--Content]].
* To edit transclusion macros, see [[twve--Example--Transclusion--Macros]].
In addition to bulit-in wrappers, the ''twve'' also works with FoldHeadingsPlugin, implemented in ''twve.extra'' module. See [[twve--Example--Folded Sections]] for information and examples.
name: value
|name:|value|
|name|value|
|''name:''|value|
|//~WikiName//|value|
/***
|editable|k
|''Name:''|twve.core|
|''Description:''|Core codes of twve, the ~TiddlyWiki View mode Editor, providing easy access to the defining wiki text corresponding to a DOM element, and the synchronization capability for multiply transcluded copies of a tiddler.|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.core.min / http://twve.tiddlyspace.com/#twve.core.min <br>* (regular) http://twve.tiddlyspot.com/#twve.core / http://twve.tiddlyspace.com/#twve.core|
|''Type:''|plugin|
|''Version:''|3.2.6|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery<br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.7.0|
!!Features:
* Access to the defining wiki text corresponding to a DOM element.
** Locate the wiki text corresponding to a given DOM element.
** Get/Set the wiki text corresponding to a given DOM element.
* Synchronization between multiply transcluded copies in ~TiddlyWiki environment.
** Synchronize the output of multiply transcluded copies of a DOM element after changes.
!!Usage:
!!Options
Look for [[twve.core Options]] in the Options Panel.
!!Examples
[[twve.core Examples]]
!!Todo:
!!!Revision history
!!!! 2016/04/30 [3.2.6]
* Saves options in SystemSettings tiddler.
** If you disable autoSave option, you will need to manually save the tiddler after changing a ''twve'' option.
* Starts using strict mode.
* Better mobile supports.
* Bug fix
** for identification of IE v.11;
** for wiki text of elements;
** for object handling;
** for style text handling.
!!!! 2015/11/06 [3.2.5]
* Bug fix
** for correct location of wiki text within and after block examples;
** for headings.
!!!! 2015/06/15 [3.2.4]
* Added support to regular expression. One can now use regular expressions in the open and close tags.
* Merged {{{twelem.updaText()}}} and {{{twwrap.updaText()}}} into {{{editable.updateText()}}} for they share the same codes.
* Bug fix
** for copying array objects;
** for wiki text searching (minor).
!!!! 2015/03/23 [3.2.3]
* Added supports for CSS wrappers created using """{{Class name{ .... }}}""".
* Bug fix
** for correctly locating spans created with a pair of {{{@@}}}'s.
!!!! 2015/02/13 [3.2.2]
* Replaced regular expression with string operations whenever easy, hoping to save some time.
* Bug fix
** for handling css style text;
** for synchronization of partial transcluded content;
** for identifying IE11;
** for resizing the browser window.
!!!! 2014/12/22 [3.2.1]
* Bug fix
** for handling styled text;
** for editing an empty text line;
** for mobile devices to hide the edit box upon clicking away;
** for locating the first block element at the beginning of a tiddler;
*** A block element usually starts at the beginning of a text line, meaning there would be a newline character before this block element, if it is not the first child of this tiddler. The ~TiddlyWiki consumes this leading newline in such cases (there would be no BR created for that newline).
*** If, however, the block element is the first (non-BR) child of the tiddler, and there are newline characters before it, the ~TiddlyWiki does not consume the newline just before the block element, a behavior different from the above cases.
** for partial refreshing before and after a tiddler;
** for transclusion synchronization.
!!!! 2014/11/21 [3.2.0]
* Removed jQuery dependencies for migrating to ~TW5.
** Could be incompatible with earlier browsers.
* Bug fix
** for refreshing a mixture of partially transcluded sections/slices;
** for transclusion synchronization of transcluded slices;
** for floating menu auto-positioning;
** for keeping a minimum edit box width.
!!!! 2014/08/03 [3.1.0]
* Supports editing of transcluded slices.
* Started to remove jQuery dependencies for migrating to TW5.
* Bug fix
** for occasionally oversize preview box;
*** Sometimes the preview box gets unreasonably larger than the expected height, and the reason seemed related to the width of the previewer: If the width was much smaller in the last time, it gets higher, depending on the length of the content, in this preview.
*** The fix: Set the previewer width to that of the editbox before wikifying the content.
** for obtaining the bounding box of elements;
** for transclusion synchronization with self inclusion and FoldedSectionPlugin.
** for twve.node.info(node) when node is null or undefined.
!!!! 2014/06/02 [3.0.3]
* Added option {{{chktwveCoreEditWrappers}}} to enable/disable wrapper editing (including tiddler title).
** The Options Menu still available at the top-right corner of the tiddler title area.
* Moved out the codes to edit heading, preformatted blocks, and code blocks to ''twve.extra''.
* Bug fixes
** for the width of the bounding box;
*** Previously the ''twve'' used the {{{.clientWidth}}} property of a DOM element to determine the width of the bounding box, which worked fine in most of the browser/OS combinations, except for Opera/Linux. This version uses {{{.innerWidth()}}} method of jQuery and it works fine.
** for compatibility with {{{NestedSlidersPlugin}}};
** for transclusion synchronization with self-inclusion.
!!!! 2014/05/23 [3.0.2]
* Smarter positioning of the floating menu.
** If the menu is too wide to show to the left, it will be shown to the right.
* Moved the following codes from ''twve.extra'':
** that to avoid editing when clicking a link;
** that to show Options Menu for ''twve.core''.
* Bug fixes
** for showing the Options Menu in Andriod/iOS;
** for getting the bounding box of a textnode;
** for adjusting the focusing borders upon switching tabs;
** for editing the tiddler title;
** for distinguishing CODE blocks and PRE blocks that are created with """{{{""" and """}}}""";
** for previewer to work with FoldHeadingsPlugin;
** for """$dom[0] is undefined""" error in node.isVisible() with TiddlySpot.
!!!! 2014/05/14 [3.0.1]
* Moved in the codes for pretty links from ''twve.extra''.
* Removed some debugging codes for handling shadow tiddlers.
!!!! 2014/05/13 [3.0.0]
* ''Easily incorporated into other plugins.''
** Redesigned code structure and largely rewritten code pieces for easy incorporation into other pugins. See [[Edit Your ...]] for more information.
* Improved {{{partial refreshing}}} features.
** Partial refreshing is to refresh only the changed part, instead of the whole of a tiddler, to improve performance of the plugins.
*** In the earliest versions the plugins did not do partial refreshing but only whole tiddler refreshing. This is usually fine when the tiddler is small, but can be slow when is large.
**** In addition, whole tiddler refreshing destroys the original DOM elements and recreates new ones, causing the plugins to pay extra efforts to bookkeep the status of elements for later uses.
*** Later time partial refreshing was implemented for table cells.
*** Even later time this feature was extended to cover other elements, such as list items, headings, blockquotes, etc, for simple cases.
**** For not-so-simple cases, such as changed level in headings or list items, or whole table refreshing, the plugins still did whole tiddler refreshing.
*** This version further extended the feature to cover whole tables and transcluded sections.
* Bug fixes
** for correct section title searching
*** Previously the section title was located with the criteria {{{.indexOf()>-1}}}, which could make mistakes when one section title is part of another preceding it. This version fixed this issue by making sure the section title, after removing the leading !'s and white spaces, does start with the searched pattern.
** for consistent alignment behavior in preview box
** for element level transclusion synchronization
*** Refreshing a table contained in a {{{FoldHeadingsPlugin}}} folded section can mess up the page. It is fixed in this version.
* Changed the return policy of internal functions {{{indexOf}}} and {{{lastIndexOf}}}.
** These two internal functions search in a string for 1) a certain pattern or 2) an array of equivalent patterns. Because of 2) their return value is an object consisting of {{{ndx}}} and {{{matched}}} properties. If a pattern is found, {{{ndx}}} is the index of the matched pattern, while the {{{matched}}} is the actually matched pattern. If, however, no pattern is found, the previous version set the {{{ndx}}} to {{{-1}}} but left the {{{matched}}} untouched as whatever it was, causing confusion some times. This version clears the {{{matched}}} property if no pattern is found.
!!!! 2014/01/18
* Collected from [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]] and [[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]], adapted to the new code structure.
!!Code
!!!The very beginning
***/
//{{{
var twve = {};
(function(){
"use strict";
// twve.checkOption
twve.checkOption = function(name,def){
var val = config.options[name];
if ( val === undefined )
setOption(name,def);
if(config.optionsSource[name] !== 'setting'){
config.optionsSource[name] = 'setting';
saveOption(name);
}
};
// twve.isMobile
twve.isMobile = function(){
return (config.browser.isAndroid || config.browser.isiOS);
};
//}}}
/***
!!! Version information
***/
//{{{
version.extensions.twve = {
major: 3, minor: 2, revision: 6,
date: new Date('2016/04/30')
};
//}}}
/***
!!! Macro for initialization and option settings.
***/
//{{{
config.macros.twveCoreOptions = {
identifyWebkitBrowser : function(){
if ( config.browser.isSafari )
if ( config.browser.isChrome ) {
config.browser.isSafari = false;
if ( config.userAgent.indexOf('opr')>=0 ) {
config.browser.isOpera = true;
config.browser.isChrome = false;
}
}
},
// Initialization procedure
init : function () {
// From TWtid
twve.checkOption(
'chktwveCoreEnabled',
(config.options.chkTWtidEnabled || true)+''
);
twve.checkOption(
'chktwveCoreShowFocus',
(config.options.chkTWtidShowFocus || true)+''
);
merge ( config.optionsDesc, {
chktwveCoreEnabled:"Enable ''twve.core''.",
chktwveCoreShowFocus:'Show focus borders.'
} );
twve.tiddler.prePopupShow = Popup.show;
Popup.show = twve.tiddler.popupShow;
twve.tiddler.preRefreshTiddler = story.refreshTiddler;
story.refreshTiddler = twve.tiddler.refreshTiddler;
// Macro {{{<<tabs ...>>}}} is not using story.refreshTiddler() to
// render contents upon switching tabs, so tables inside don't
// get a chance to reformat. Hijack the function here to take
// care of tab switching.
twve.tiddler.preTabsSwitchTab = config.macros.tabs.switchTab;
config.macros.tabs.switchTab = twve.tiddler.tabsSwitchTab;
// Macro {{{<<tiddler ...>>}}} is not storing tiddler.title
// anywhere, leaving this plugin no way but hijacking its
// transclude() function to find it.
twve.tiddler.preTiddlerTransclude=config.macros.tiddler.transclude;
config.macros.tiddler.transclude=twve.tiddler.tiddlerTransclude;
// Macro {{{<<slider ...>>}}} directly calls wikify() in its
// handler, which does not go through refreshTiddler() function
// so that twve overrides the handler for its own needs.
twve.tiddler.preSliderHandler = config.macros.slider.handler;
config.macros.slider.handler = twve.tiddler.sliderHandler;
twve.tiddler.preOnClickSlider = config.macros.slider.onClickSlider;
config.macros.slider.onClickSlider = twve.tiddler.onClickSlider;
// IE browser
if ( /windows nt (.*?)rv:11/.test(config.userAgent) ) {
config.browser.isIE = config.browser.isIE11 = true;
} else if ( config.browser.isIE ) {
var match = config.userAgent.match(/msie 7(.*?)trident\//);
if ( match ) {
var pos = match.index+match[0].length;
switch ( config.userAgent.charAt(pos) ) {
case '7' :
config.browser.isIE11 = true;
break;
case '6' :
config.browser.isIE10 =
config.browser.isIE1076 = true;
break;
case '5' :
config.browser.isIE975 = true;
break;
case '4' :
config.browser.isIE874 = true;
break;
}
} else {
var pos = config.userAgent.indexOf('msie ');
if ( pos >= 0 )
switch ( config.userAgent.charAt(pos+5) ) {
case '1' :
config.browser.isIE10 = true;
break;
case '9' :
config.browser.isIE9 = true;
break;
case '8' :
config.browser.isIE8 = true;
break;
}
}
if ( config.browser.isIE
&& ! ( config.browser.isIE10
|| config.browser.isIE1076
|| config.browser.isIE9
|| config.browser.isIE975
|| config.browser.isIE8
|| config.browser.isIE874 ) )
displayMessage(
"''twve'' message: Unsupported IE version.\n\n "
+config.userAgent
+'\n\nPlease inform the author at'
+' qmo.wcy2@gmail.com. Thanks a lot.'
);
}
//console.log(config.userAgent+'/'+config.browser.isIE);
// Operating system
var pos = config.userAgent.indexOf('nt ');
if ( pos >= 0 ) {
switch ( config.userAgent.substring(pos+3,pos+6) ) {
case '6.1' :
config.browser.isWin7 = true;
break;
case '6.3' :
config.browser.isWin8 = true;
break;
case '5.1' :
config.browser.isWinXP = true;
break;
}
} else if (config.userAgent.indexOf('android')>=0){
// Andtidwiki would be recognized as Safari on Linux and android.
config.browser.isAndroid = true;
} else if (/ip(.*?)mac/.test(config.userAgent)) {
config.browser.isiOS = true;
} else
// Distinguish webkit browsers.
config.macros.twveCoreOptions.identifyWebkitBrowser();
window.addEventListener(
'resize',
function(ev){
twve.tiddler.resize(ev || window.event);
}
);
/*
window.onscroll = function(ev){
twve.tiddler.scroll(ev || window.event);
};
*/
// Newly defined
twve.checkOption('chktwveCoreEditWrappers','true');
merge ( config.optionsDesc, {
chktwveCoreEditWrappers:"Edit wrappers and tiddler title, default to false<br>(The ''twve.extra'' will automatically enable this feature, regardless of this setting)."
});
// From TWted
twve.checkOption(
'chktwveCorePreview',
(config.options.chkTWtedPreview || true)+''
);
twve.checkOption(
'txttwveCorePreviewHeight',
(config.options.txtTWtedPreviewMaxHeight || '15')
);
twve.checkOption('txttwveCoreMinEditWidth','6');
twve.checkOption(
'txttwveCorePreviewCaret',
(config.options.txtTWtedPreviewCaret || '|')
);
if (/^[0-9]+$/.test(config.options.txttwveCorePreviewCaret))
config.options.txttwveCorePreviewCaret=String.fromCharCode(
config.options.txttwveCorePreviewCaret*1
);
twve.checkOption(
'chktwveCoreConfirmToDelete',
(config.options.chkTWtedConfirmToDelete || true)+''
);
twve.checkOption(
'chktwveCoreClickAway',
(config.options.chkTWtedClickAway || true)+''
);
twve.checkOption(
'chktwveCoreManualSave',
(config.options.chkTWtedManualSave || true)+''
);
twve.checkOption(
'chktwveCoreManualUpload',
(config.options.chkTWtedManualUpload || true)+''
);
merge ( config.optionsDesc, {
chktwveCorePreview:'Enable previewer. Default to true.',
txttwveCoreMinEditWidth:'Minimum edit box width (characters). Default value is 6.',
txttwveCorePreviewHeight:'Previewer max height (lines of text). Default to 15.',
txttwveCorePreviewCaret:'Caret in the previewer. Default to vertical line (|)',
chktwveCoreConfirmToDelete:'Confirm before deleting elements.',
chktwveCoreClickAway:'Click away to accept changes.',
chktwveCoreManualSave:'Save changes to file manually. If true, a button labeled "S" will be provided for manual save. Otherwise the file will be saved each time a change is accepted.',
chktwveCoreManualUpload:'Upload changes to server manually. If true, a button labeled "U" will be provided for manual upload. Otherwise all changes will be uploaded each time a change is accepted.'
} );
//twve.tiddler.preCloseAllTiddlers = story.closeAllTiddlers;
//story.closeAllTiddlers = twve.tiddler.closeAllTiddlers;
twve.tiddler.preEditHandler=config.commands.editTiddler.handler;
config.commands.editTiddler.handler=twve.tiddler.editHandler;
twve.tiddler.precloseTiddler=story.closeTiddler;
story.closeTiddler=twve.tiddler.closeTiddler;
twve.tiddler.preSaveHandler=config.commands.saveTiddler.handler;
config.commands.saveTiddler.handler=twve.tiddler.saveHandler;
twve.tiddler.preCancelHandler=
config.commands.cancelTiddler.handler;
config.commands.cancelTiddler.handler=twve.tiddler.cancelHandler;
twve.tiddler.preSaveChanges = saveChanges;
saveChanges = twve.tiddler.saveChanges;
twve.wrapper.prepareElements = twve.heading.prepareElements;
// Prepare the Options panel
var optionsTitle = 'twve.core Options';
var optionsTiddler = store.getTiddler(optionsTitle);
if ( ! optionsTiddler ){
//optionsTiddler = store.createTiddler(optionsTitle);
//optionsTiddler.creator = config.options.txtUserName;
}
var txt = config.shadowTiddlers['OptionsPanel'];
var p = txt.indexOf('----');
config.shadowTiddlers['OptionsPanel']=
txt.substring(0,p)
+'----\n'
+'[['+optionsTitle+'|'+optionsTitle+']]\n'
+txt.substring(p);
merge(config.shadowTiddlers,{
'twve.core Options':'<<twveCoreOptions>>'
});
// Register wrappers
twve.tiddler.registerWrapper(twve.tiddlerTitle);
twve.tiddler.registerWrapper(twve.viewer);
twve.tiddler.registerWrapper(twve.tabContent);
twve.tiddler.registerWrapper(twve.tiddlerSpan);
twve.tiddler.registerWrapper(twve.sliderPanel);
},
order : {
// From TWtid
chktwveCoreEnabled:0,
chktwveCoreShowFocus:1,
// Newly defined
chktwveCoreEditWrappers:2,
// From TWted
txttwveCoreMinEditWidth:3,
txttwveCorePreviewHeight:4,
chktwveCorePreview:5,
txttwveCorePreviewCaret:6,
chktwveCoreConfirmToDelete:7,
chktwveCoreClickAway:8,
chktwveCoreManualSave:9,
chktwveCoreManualUpload:10
},
collectOptions : function (key, order) {
// Collect twve options.
var ttopts = [];
for ( var n in config.options ) {
if ( n.indexOf(key) >= 0 ) {
var msg = config.optionsDesc[n];
if ( ! msg ) continue;
var pdot = msg.indexOf('.');
if ( pdot > -1 ) {
if ( msg.substring(pdot-4,pdot) == 'twve' ) {
pdot = msg.indexOf('.',pdot+1);
pdot == -1 ? (pdot=msg.length) : (pdot++);
}
} else pdot = msg.length;
ttopts[ttopts.length] = (
'\n|<<option '+n+'>>|'+msg.substring(0,pdot)+' |'
);
}
}
// Sort them according to that defined in option_order[].
if ( order )
ttopts.sort(function(a,b){
var ka=a.substring(a.indexOf(' ')+1,a.indexOf('>>')),
kb=b.substring(b.indexOf(' ')+1,b.indexOf('>>'));
return order[ka] > order[kb] ? 1 : -1;
});
return ttopts;
},
prepareOptionsTable : function (cap,key,order) {
var opts = '|'+cap+'|c'+'\n| Value | Description |h';
var ttopts = this.collectOptions(key, order);
for ( var i=0,len=ttopts.length; i<len; i++) {
opts += ttopts[i];
}
return opts;
},
showOptionsTable : function (place, cap, key, order) {
var div_opt = document.createElement('div');
place.appendChild(div_opt);
var opts = this.prepareOptionsTable(cap,key,order);
// Render the table.
wikify ( opts, div_opt );
// Adjust width
var table = div_opt.querySelector('table');
twve.node.setDimension(table,'35em');
twve.node.setDimension(
table.querySelectorAll('input'),'5em'
);
},
handler : function(place) {
// Collect all the twve options for users to play with.
config.macros.twveCoreOptions.showOptionsTable(
place,
"''twve.core'' Options",
'twveCore',
config.macros.twveCoreOptions.order
);
}
};
//}}}
/***
!!! twve definitions
The ''twve'' is divided into several components:
# General purpose components:
## ''twve.object'': base for all twve objects;
# Tiddler and wiki text related:
## ''twve.tiddler'': representing the tiddlers;
## ''twve.text'': wiki text handling;
## ''twve.tags'': opening and closing tags of elements;
## ''twve.position'':
# DOM related components:
## ''twve.selector'':
## ''twve.node'': base for all DOM related objects
## ''twve.button'':
## ''twve.menu'': floating menu
## ''twve.editable'': base for twve.element and twve.wrapper;
## ''twve.element'': base for editable elements;
### ''twve.heading'':
### ''twve.pre'': preformatted block
### ''twve.code'': code block
## ''twve.wrapper'': base for editable wrappers;
### ''twve.viewer'': for normally loaded tiddlers;
### ''twve.tabContent'': for {{{<<tabs>>}}} transcluded tiddlers;
### ''twve.tiddlerSpan'': for {{{<<tiddler>>}}} transcluded tiddlers;
### ''twve.sliderPanel'': for {{{<<slider>>}}} transcluded tiddlers;
### ''twve.foldedSection'': for {{{<<foldHeadings>>}}} folded sections (defined in twve.extra);
### ''twve.tiddlerTitle'': for tiddler title;
The following lines of codes show the definition of each part.
!!! twve.object
***/
//{{{
twve.object = {
/*
isArray : function(obj){
return obj.constructor.toString().indexOf("Array") > -1;
return Object.prototype.toString.call(obj).indexOf('Array')>-1;
},
*/
isCollection : function(obj){
return obj && obj.nodeType != 3 &&
obj.length !== undefined &&
typeof obj == 'object';
},
//}}}
/***
!!!! twve.object.toString
***/
//{{{
level : 0,
toString : function (obj) {
switch ( typeof obj ) {
case 'function' :
return 'function';
case 'object' :
if ( ! obj ) return obj;
if ( obj.nodeType ) {
return twve.node.info(obj);
} else if ( obj.title && obj.modifier ) {
// tiddler object
return '{title: '+obj.title+' ...}';
}
var val = '{';
var keys = twve.object.keys(obj);
for ( var n=0,len=keys.length; n<len; n++ ){
val += (n==0?'':', ')+'\n\t'+keys[n]+':';
var v = obj[keys[n]];
if ( v ) {
if ( ++twve.object.level < 5 ) {
val += twve.object.toString(v);
--twve.object.level;
}
} else
val += v;
}
val += '\n}';
return val;
default :
return obj;
}
},
//}}}
/***
!!!! twve.object.keys
***/
//{{{
keys : function(obj,all) {
var keys = [];
for ( var key in obj ) {
if ( all || typeof obj[key] != 'function' ) {
keys[keys.length] = key;
}
}
return keys;
},
//}}}
/***
!!!! twve.object.copyKey
***/
//{{{
copyKey : function(dest,src,key){
switch ( typeof src[key] ) {
case 'string' :
case 'number' :
case 'boolean' :
case 'function' :
dest[key] = src[key];
break;
default :
if ( ! src[key] ) break;
if ( src[key].length !== undefined ) {
// An object with the property "length".
var len = src[key].length;
if (len == 0){
if ( dest[key] && dest[key].clear )
dest[key].clear();
else
dest[key] = [];
} else {
if ( ! dest[key] ) dest[key] = [];
for (var i=0; i<len; i++)
dest[key][i] = src[key][i];
}
} else if ( src[key].getFullYear ) {
// Date
dest[key] = new Date(src[key]);
break;
} else {
// An object without the property "length".
if ( ! dest[key] ) dest[key] = twve.object.create();
}
// Copy src[key] to dest[key].
var keys = twve.object.keys(src[key],true);
for ( var n=0,len=keys.length; n<len; n++ )
twve.object.copyKey(dest[key],src[key],keys[n]);
break;
}
return dest;
},
//}}}
/***
!!!! twve.object.copyKeys
***/
//{{{
copyKeys : function(dest,src,keys){
for ( var i=0, len=keys.length; i<len; i++ ) {
twve.object.copyKey(dest,src,keys[i]);
}
return dest;
},
//}}}
/***
!!!! twve.object.create
***/
//{{{
create : function(src) {
var obj = new Object;
// clone
obj.clone = function(){
return twve.object.create(obj);
};
// copyKey
obj.copyKey = function(src,key){
return twve.object.copyKey(obj,src,key);
};
// keys
obj.keys = function(){
return twve.object.keys(obj);
};
// copyFrom
obj.copyFrom = function(src,keys){
return twve.object.copyKeys(
obj, src,
keys || src.keys()
);
};
// toString
obj.toString = function (){
return twve.object.toString(obj);
}
// created
obj.created = function(src){
return src
? obj.copyFrom(src)
: obj;
}
// End of obj
return obj.created(src);
}
};
//}}}
/***
!!! twve.text
***/
//{{{
twve.text = {
//}}}
/***
!!!! twve.text.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
[ "\'", '\"' ],
[ "\'", '\"' ]
);
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.text.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.text.tiddlerSlice
***/
//{{{
tiddlerSlice : function(title) {
if ( ! title ) return '';
var p = title.indexOf(config.textPrimitives.sliceSeparator);
return p > -1
? title.substring
(p+config.textPrimitives.sliceSeparator.length)
: '';
},
//}}}
/***
!!!! twve.text.sectionTitle
***/
//{{{
sectionTitle : function(sec) {
// Skip the leading !'s and white spaces.
// This is added after 2.0.9
var p = 0;
var regex = /[! \t]/;
while(regex.test(sec.charAt(p))) p++;
return p > 0 ? sec.substring(p) : sec;
},
//}}}
/***
!!!! twve.text.tiddlerSection
***/
//{{{
tiddlerSection : function ( title ) {
if ( ! title ) return '';
var p = title.indexOf(config.textPrimitives.sectionSeparator);
if ( p > -1 ) {
var sec = title.substring(
p + config.textPrimitives.sectionSeparator.length
);
// Skip the leading !'s and white spaces.
sec = twve.text.sectionTitle(sec);
// Restore — (8212=\u2014) back to double dash.
return sec.replace('\u2014','--');
}
return '';
},
//}}}
/***
!!!! twve.text.tiddlerTitle
***/
//{{{
tiddlerTitle : function ( title ) {
if ( ! title ) return '';
var p = title.indexOf(config.textPrimitives.sectionSeparator);
if ( p == -1 )
p = title.indexOf(config.textPrimitives.sliceSeparator);
return p > -1 ? title.substring(0,p) : title;
},
//}}}
/***
!!!! twve.text.headerToSkip
***/
//{{{
headerToSkip : function(title){
var pq = title ? title.lastIndexOf('?') : -1;
if ( pq > 0 && pq < title.length-1 ) {
var to_skip = title.substring(pq+1);
if ( /^\d$/.test(to_skip) )
return to_skip*1;
}
return 0;
},
//}}}
/***
!!!! twve.text.removeHeaderTail
***/
//{{{
removeHeaderTail : function (title) {
var pq = title.lastIndexOf('?');
if ( pq > 0 && pq < title.length-1
&& ! /[\D]/.test(title.substring(pq+1)) ) {
title = title.substring(0,pq);
}
return title;
},
//}}}
/***
!!!! twve.text.lastIndexOf
***/
//{{{
lastIndexOf : function(str,val,start,all){
// Search the last index of val in str, starting from start.ndx.
// (The 3rd argument start MUST be a twve.position object.)
// The being searched val could be a string or an array of
// strings.
// If val is a string, it simply returns
// str.lastIndexOf(val,start.ndx).
// If, however, val is an array of strings, the function
// compares all the elements in the array and considers it
// found if any of the elements is found.
// Returns a twve.object object containing the following
// information:
// {
// ndx: last index of val found, -1 otherwise.
// matched: the matched string
// }
if ( ! val ) {
start.ndx = -1;
start.matched = '';
} else if ( typeof val == 'string' ) {
// val is a string
start.ndx = str.lastIndexOf(val,start.ndx);
start.matched = start.ndx > -1 ? val : '';
} else if ( val.exec ) {
// val is a regular expression, apply binary search on the sub-
// string before start.ndx, and find a match that is closest
// to start.ndx.
var posL = 0;
var posR = start.ndx;
while ( true ) {
var leftstr = str.substring(posL,posR);
if ( ! leftstr ) break;
// Look in the right half (closer to start.ndx).
val.lastIndex = Math.round(leftstr.length/2);
var match = val.exec(leftstr);
if ( match ) {
// found a match in the right half, save its position
// and matched pattern, then look for an even closer
// one if applicable
start.ndx = posL+match.index;
start.matched = match[0];
posL = start.ndx+start.matched.length;
} else {
// try the left half
posR = Math.round(posL+leftstr.length/2);
}
}
} else if ( val.length ) {
// val is an array
var ndx = [], vlen = val.length;
for ( var i = 0; i < vlen; i++ ) {
ndx[i] = twve.position.create(start);
twve.text.lastIndexOf(str,val[i],ndx[i],all);
}
start.ndx = ndx[0].ndx;
start.matched = ndx[0].matched;
var last = start;
for ( var i = 1; i < vlen; i++ ) {
if ( ndx[i].ndx == -1 ) continue;
if ( start.ndx == -1 || (!all && ndx[i].ndx>start.ndx) ) {
start.ndx = ndx[i].ndx;
start.matched = ndx[i].matched;
} else {
last.next = twve.position.create(ndx[i]);
last = last.next;
}
}
}
return start;
},
//}}}
/***
!!!! twve.text.indexOf
***/
//{{{
indexOf : function (str,val,start,all) {
// Search the index of val in str.
// The being searched val could be a string or an array of
// strings.
// If val is a string, it simply returns
// str.indexOf(val,start.ndx). If, however, val is an array
// of strings, the function compares all the elements in the
// array and considers it found if any of the elements is
// found.
// Returns a twve.position object containing the following
// information:
// {
// ndx: index of val found, -1 otherwise.
// matched: the matched string
// }
if ( ! val ) {
start.ndx = -1;
start.matched = '';
} else if ( typeof val == 'string' ) {
// val is a string
start.ndx = str.indexOf(val,start.ndx);
start.matched = start.ndx > -1 ? val : '';
} else if ( val.exec ) {
// val is a regular expression
val.lastIndex = start.ndx;
var match = val.exec(str);
if ( match ) {
start.ndx = match.index;
start.matched = match[0];
} else {
start.ndx = -1;
start.matched = '';
}
} else if ( val.length ) {
// val is an array
var ndx = [], vlen = val.length;
for ( var i = 0; i < vlen; i++ ) {
ndx[i] = twve.position.create(start);
twve.text.indexOf(str,val[i],ndx[i],all);
}
start.ndx = ndx[0].ndx;
start.matched = ndx[0].matched;
var last = start;
for ( var i = 1; i < vlen; i++ ) {
if ( ndx[i].ndx == -1 ) continue;
if ( start.ndx == -1 || (!all && ndx[i].ndx<start.ndx) ) {
start.ndx = ndx[i].ndx;
start.matched = ndx[i].matched;
} else {
// Search for all possible matches and we are finding
// more than one.
last.next = twve.position.create(ndx[i]);
last = last.next;
}
}
}
return start;
},
//}}}
/***
!!!! twve.text.skipToActive
***/
//{{{
skipToActive : function(txt,pattern,start,end,inactiveTags,dir){
// Find pattern in txt, skipping those enclosed by inactive
// tags, along direction dir. The last argument, dir, is a number
// indicating the search direction: a negative number means to
// search backward, otherwise forward. Default direction is forward.
// The pattern to be searched can be either a single string or an
// array of strings.
// Returns a twve.position object that consists of
// {
// ndx: The index of the next pattern that is active
// (not enclosed by any inactive tags) if found, or
// -1 otherwise.
// matched: The matched pattern if found, or empty string if
// not. If found, then this is the pattern itself if
// the pattern is a single string, or the actually
// matched pattern if pattern is an array of strings.
// }
if ( ! start ) start = twve.position.create(0);
else if ( typeof start == 'number' )
start = twve.position.create(start);
if ( typeof dir !== 'number' ) dir = 1;
if ( ! end )
end = twve.position.create(
dir < 0 ? 0 : txt.length
);
else if ( typeof end == 'number' )
end = twve.position.create(end);
var pos = twve.position.create(start);
if ( dir < 0 ){
pos = twve.text.lastIndexOf(txt,pattern,pos);
if ( pos.ndx < end.ndx ) { pos.ndx = -1; return pos; }
} else {
pos = twve.text.indexOf(txt,pattern,pos);
if ( pos.ndx == start.ndx ) return pos;
if ( pos.ndx > end.ndx ) { pos.ndx = -1; return pos; }
}
if ( ! inactiveTags ) inactiveTags = twve.tags.inactiveTags();
var inactive = null;
if ( dir < 0 ){
while(pos.ndx > end.ndx && pos.ndx < start.ndx &&
(inactive=inactiveTags.encloses(txt,pos.ndx,end,start))){
pos.ndx = inactive.start.ndx;
pos = twve.text.lastIndexOf(txt,pattern,pos);
}
if (pos.ndx < end.ndx || pos.ndx > start.ndx) pos.ndx = -1;
} else {
while(pos.ndx > start.ndx && pos.ndx < end.ndx &&
(inactive=inactiveTags.encloses(txt,pos.ndx,start,end))){
pos.ndx = inactive.end.ndx+inactive.end.matched.length;
pos = twve.text.indexOf(txt,pattern,pos);
}
if (pos.ndx < start.ndx || pos.ndx > end.ndx) pos.ndx = -1;
}
return pos;
},
//}}}
/***
!!!! twve.text.consecutiveLinesEnd
***/
//{{{
consecutiveLinesEnd : function (txt,start,alltheway,ch,tags,dir){
// This function is shared by Table and Blockquote for their
// "consecutive lines" characteristic: a single Table or
// Blockquote can be defined by one or more consecutive lines
// of text with the same opening signature. This function
// searches the end of the last line.
// Arguments:
// txt: tiddler text
// start: starting position to search, can be either
// 1. a twve.position object, or
// 2. a number
// alltheway True to go beyond any immediately following
// sub-blockquotes. This is specifically for
// blockquote that contain sub-blockquotes within
// its body. For example,
//
// > Blockquote starts here
// > The second line
// >> A sub blockquote immediately follows here
// >> and ends here
// > Back to the parent blockquote
// > End of the parent blockquote
//
// For blockquotes like the example above, the
// end of the parent blockquote exceeds that of
// its sub-blockquote.
//
// When search for the end of the parent
// blockquote, we go "all the way" to the last
// line. When search for the beginning of the
// sub blockquote, however, we do not go all
// the way but stop when we see the level changes.
var p0 = 0;
switch (typeof start) {
case 'number' :
p0 = start;
break;
case 'object' :
if ( start.ndx ) p0 = start.ndx;
break;
}
var txtlen = txt.length;
var end = twve.position.create(p0);
if ( typeof dir !== 'number' ) dir = 1;
var level = 0, nextlevel = 0, nextstart = null;
// Start the search.
if ( dir < 0 ) {
// Going backward, move to the last end of line.
if (txt.charAt(p0) != '\n') p0--;
// Find the level of this line.
level = twve.leveledElement.getLevel(txt,++p0,ch);
if ( level == 0 )
// This line is not one of the expected consecutive
// lines, return where we started.
return end;
if(!ch) ch = txt.charAt(p0);
// Record the beginning of this line.
nextstart = twve.position.create(
p0-1,('\n'+txt.substring(p0,p0+level))
);
if ( ! tags )
tags = twve.tags.create(nextstart.matched,'\n');
while(true) {
end.copyFrom(nextstart);
nextstart.ndx--;
// Find the beginning of last line.
nextstart = twve.text.lastIndexOf(
txt,tags.open,nextstart
);
if ( nextstart.ndx == -1 ) {
// No more consecutive lines. Check the beginning
// of tiddler text.
tags.firstOpenTag(txt,nextstart);
if ( nextstart.ndx == 0 )
end.copyFrom(nextstart);
break;
}
// Find the level of the last line.
nextlevel = twve.leveledElement.getLevel(
txt,nextstart.ndx+1,ch
);
// Find the end of that line.
p0 = txt.indexOf('\n',nextstart.ndx+1);
if (nextlevel == 0 || p0 != end.ndx ||
// If the last line is not one of these consecutive
// lines, or
(!alltheway && nextlevel!=level))
// the last line has a different level than this
// one, and we are not going all the way to the
// very beginning, return the begining of this line.
break;
// Otherwise go on to the even last line.
}
} else {
// Going forward, move to the beginning of line.
if ( txt.charAt(p0) == '\n' )
p0++;
else while ( p0>0 && txt.charAt(p0-1)!='\n' )
p0--;
// p0 should point at the first character of a line of text.
// Find the level of this line.
level = twve.leveledElement.getLevel(txt,p0,ch);
if ( level == 0 )
// This line is not one of the expected consecutive
// lines, return where we started.
return end;
if(!ch) ch = txt.charAt(p0);
// Record the begining of this line.
nextstart = twve.position.create(
p0-1,('\n'+txt.substring(p0,p0+level))
);
if ( ! tags )
tags = twve.tags.create(nextstart.matched,'\n');
while(true) {
// Find the end of this line.
end.ndx = nextstart.ndx+nextstart.matched.length;
end = twve.text.indexOf(
txt,tags.exactCloseTag(nextstart.matched).close,end
);
if ( end.ndx == -1 ) {
// There is no end of line, return the end of text.
end.ndx = txtlen;
break;
}
// Find the begining of next line.
nextstart.ndx = end.ndx;
nextstart = twve.text.indexOf(txt,tags.open,nextstart);
if ( nextstart.ndx == -1 ||
// No more next lines, or
nextstart.ndx != end.ndx )
// The next line is not an immediately following
// line, return the end of this line.
break;
// Find the level of next line.
nextlevel = twve.leveledElement.getLevel(
txt,nextstart.ndx+1,ch
);
if (nextlevel == 0 ||
// The next line is not one of these consecutive
// lines, or
(!alltheway && nextlevel!=level))
// The next line has a different level than this
// one, and we are not going all the way to the
// very end, return the end of this line.
break;
// Otherwise go on to the even next line.
}
}
return end;
},
//}}}
/***
!!!! twve.text.skipStyleText
***/
//{{{
skipStyleText : function (wikitxt,start,ignoreCSS) {
// Find the position of the first character of the content
// in the wikitext. A wikitext may contain style text at the
// beginning, then followed by its content. This function is
// to find the index of the content's starting character.
// A style text in a table cell must start immediately after
// the beginning '|' that defines that table cell. If the
// wikitxt starts with a blank space then it does not
// contain any style text. If the wikitxt does contain a
// style text, then the style text must follow the
// "attribute:value;" format, in which a colon is inserted
// between attribute and the value text, while a semicolon
// is added to the end of the style text. Therefore to
// identify a style text one needs to
// 1) make sure the wikitxt does not start with a blank space;
// 2) look for the existence of colon-semicolon pairs.
if ( ! wikitxt ) return 0;
if ( typeof start != 'number' || start < 0 ) start = 0;
var regalpha = /[A-Za-z]/;
var regdigit = /[0-9\.]/;
var p0 = start;
var ch = wikitxt.charAt(p0);
if ( ch == '@' ) {
// First character is '@'.
if ( ! ignoreCSS ) return 0;
// Check the 2nd char.
if((ch=wikitxt.charAt(++p0))!='@') return 0;
ch = wikitxt.charAt(++p0);
}
// This char must be an alphabet.
if ( ! regalpha.test(ch) ) return (p0-start);
var p = p0;
var len = wikitxt.length-2;
var pcolon = -1;
while ( p < len ){
ch = wikitxt.charAt(++p);
if ( regalpha.test(ch) ) {
continue;
} else if ( regdigit.test(ch) || ch=='#' ){
if (pcolon==-1) break;
} else if ( ch == '-' ){
if (pcolon>-1) break;
} else if ( ch == ':' ){
if (pcolon > -1) break;
pcolon = p;
} else if ( ch == ';' ){
if (pcolon == -1) break;
// Found one style text, look for the immediately
// following next.
p0 = p+1;
pcolon = -1;
} else
break;
}
return (p0-start);
},
//}}}
/***
!!!! twve.text.removeStyleText
***/
//{{{
removeStyleText : function ( wikitxt ) {
// Remove the style text in the wiki text.
if ( ! wikitxt ) return '';
var p = twve.text.skipStyleText ( wikitxt );
return p < wikitxt.length ? wikitxt.substring(p) : '';
}
};
//}}}
/***
!!! twve.tags
***/
//{{{
twve.tags = {
//}}}
/***
!!!! twve.tags.inactiveTags
***/
//{{{
_inactive_tags : null,
inactiveTags : function(){
// Returns tags of inactiveTags elements: elements that can
// inactivate others, such as preformatted blocks, code, etc.
if ( ! twve.tags._inactive_tags ) {
twve.tags._inactive_tags = twve.tags.create('<<', '>>').merge(
twve.pre.markupTags()
).merge(
twve.code.markupTags()
).merge(
twve.link.markupTags()
).merge(
twve.tags.create('"""', '"""')
);
twve.tags._inactive_tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.tags.create();
}
}
return twve.tags._inactive_tags;
},
//}}}
/***
!!!! twve.tags.create
***/
//{{{
create : function(src,close){
var tags = twve.object.create();
// identicalTag
tags.identicalTag = function(tag1,tag2){
// Return the identical tag among tag1 and tag2.
if ( ! tag1 ) {
// There is no tag1.
if ( tag2 ) return '';
// There is no tag1 nor tag2, compare the opening and
// closing tags of this pair.
tag1 = tags.open;
tag2 = tags.close;
} else if ( ! tag2 )
// There is tag1 but no tag2.
return '';
// There are both tag1 and tag2.
if ( typeof tag1 === 'string' ) {
// tag1 is a string
if ( typeof tag2 === 'string' ) {
// tag2 is also a string
return tag1 === tag2 ? tag1 : '';
} else {
// tag2 is an array
//var pos = twve.position.create(0);
//pos = twve.text.indexOf(tag1,tag2,pos);
//return pos.ndx >= 0 ? tag1 : '';
return tag2.indexOf(tag1)>=0 ? tag1 : '';
}
} else {
// tag1 is an array
if ( typeof tag2 == 'string' ) {
// tag2 is a string
//var pos = twve.position.create(0);
//pos = twve.text.indexOf(tag2,tag1,pos);
//return pos.ndx >= 0;
return tag1.indexOf(tag2)>=0 ? tag2 : '';
} else {
// tag2 is also an array, find the first tag
// string that are both in tag1 and tag2.
//if ( tag1.length != tag2.length ) return false;
//for (var n=0; n<tag1.length; n++)
// if ( tag1[n] != tag2[n] ) return false;
//return true;
for(var n1=0,l1=tag1.length; n1<l1; n1++)
for(var n2=0,l2=tag2.length; n2<l2; n2++)
if(tag1[n1] == tag2[n2]) return tag1[n1];
return '';
}
}
};
// is
tags.is = function(another){
return tags.identicalTag(tags.open,another.open)
&& tags.identicalTag(tags.close,another.close);
};
// notEnclosing
//tags.notEnclosing = function(){
// return tags.open == tags.close;
//};
// clone
tags.clone = function(){
return twve.tiddler.markupTags(tags)
|| twve.tags.create(tags);
};
// firstOpenTag
tags.firstOpenTag = function(txt,start,open){
if ( ! open ) open = tags.open;
// The first open tag at start.ndx.
var p0 = start.ndx <= 0 ? 0 : start.ndx;
if ( typeof open == 'string' ) {
// open is a string
var fullopentag = open;
var len = open.length;
if ( open.charAt(0)=='\n' ) {
// If tag starts with a '\n', remove it.
open = open.substring(1);
len--;
// Skip the leading newline characters.
while ( txt.charAt(p0) == '\n' ) p0++;
}
if ( txt.substring(p0,p0+len) == open ) {
start.ndx = p0;
start.matched = fullopentag;
} else {
start.ndx = -1;
start.matched = '';
}
} else if ( open.exec ) {
// open is a regular expression
open.lastIndex = start.ndx;
var match = open.exec(txt);
if ( match && match.index==start.ndx ) {
start.ndx = match.index;
start.matched = match[0];
} else {
start.ndx = -1;
start.matched = '';
}
} else if ( open.length ) {
// open is an array
for(var n=0,len=open.length; n<len; n++){
tags.firstOpenTag(txt,start,open[n]);
if ( start.ndx != -1 ) return start;
start.ndx = p0;
}
start.ndx = -1;
} else {
// Something wrong
start.ndx = -1;
}
return start;
};
//}}}
/***
!!!!! tags.nextOpenTag
***/
//{{{
tags.nextOpenTag = function(txt,start,inactiveTags) {
if ( start.ndx <= 0 ) {
start.ndx = 0;
tags.firstOpenTag(txt,start);
if ( start.ndx == 0 ) return start;
start.ndx = 0;
} else if (txt.charAt(start.ndx) != '\n' &&
txt.charAt(start.ndx-1) == '\n') {
start.ndx--;
}
return twve.text.skipToActive(
txt,tags.open,start,null,inactiveTags
);
};
//}}}
/***
!!!!! tags.lastOpenTag
***/
//{{{
tags.lastOpenTag = function(txt,start,inactiveTags) {
if ( start.ndx <= 0 ) {
start.ndx = -1;
return start;
}
start = twve.text.skipToActive(
txt,tags.open,start,null,inactiveTags,-1
);
return start.ndx < 0
? tags.firstOpenTag(txt,start)
: start;
};
//}}}
/***
!!!!! tags.exactCloseTag
***/
//{{{
tags.exactCloseTag = function(open){
if ( open && twve.object.isCollection(tags.open) ) {
var exactTags = tags.clone();
exactTags.open = open;
exactTags.close = twve.object.isCollection(tags.close)
? tags.close[tags.open.indexOf(open)]
: tags.close;
return exactTags;
}
return tags;
};
// lastCloseTag
tags.lastCloseTag = function(txt,end,txtlen,close){
// The close tag at the end of text.
if ( ! txtlen ) txtlen = txt.length;
if ( ! close ) close = tags.close;
if ( typeof close === 'string' ) {
// close is a string
var clen = close.length;
if( close.charAt(clen-1)=='\n' &&
txt.charAt(txtlen-1) != '\n' )
// The close tag expects an ending \n, while the
// txt does not have one at the end.
close = close.substring(0,--clen);
if ( txt.substring(txtlen-clen) == close ) {
end.ndx = txtlen-clen;
end.matched = close;
} else {
end.ndx = -1;
end.matched = '';
}
} else if ( close.exec ) {
// close is a regular expression
close.lastIndex = end.ndx;
var match = close.exec(txt);
if(match && match.index+match[0].length<=txtlen){
end.ndx = match.index;
end.matched = match[0];
} else {
end.ndx = -1;
end.matched = '';
}
} else if ( close.length ) {
// close is an array
for(var n=0,len=close.length; n<len; n++){
tags.lastCloseTag(txt,end,txtlen,close[n]);
if ( end.ndx != -1 ) return end;
}
} else {
// Something wrong
end.ndx = -1;
}
return end;
}
//}}}
/***
!!!!! tags.matchedCloseTag
***/
//{{{
tags.matchedCloseTag = function(txt,pos,txtlen,inactiveTags){
// Find the close tag that corresponds to the current
// opening tag. In simple cases we just go for the next
// close tag.
if ( ! tags.close ) return pos;
var ndx = pos.ndx;
pos = twve.text.skipToActive(
txt,tags.close,pos,null,inactiveTags
);
if ( pos.ndx > -1 ) return pos;
pos.ndx = ndx;
return tags.lastCloseTag(txt,pos,txtlen);
};
//}}}
/***
!!!!! tags.encloses
***/
//{{{
tags.encloses = function(txt,ndx,start,end){
// Tests whether this pair of tags encloses the index ndx
// in txt. The last two arguments, start and end, stand for
// the starting and ending indexes of the search.
// If this pair of tags does enclose the index, this function
// returns a twve.position object containing
// {
// ndx: the index of the close tag,
// matched: the matched close tag
// }.
// Otherwise it returns null.
start = twve.position.create(start);
end = twve.position.create(end);
if ( start.ndx < 0 ) start.ndx = 0;
if ( end.ndx <= start.ndx || end.ndx > txt.length )
end.ndx = txt.length;
// Prepare for searching.
if ( ndx <= start || ndx >= end )
return null;
// Search backward for opening tags.
var open = twve.position.create(ndx);
open = twve.text.lastIndexOf(
txt,tags.open,open,true
);
// If no opening tag is found, returns null.
if ( open.ndx < 0 ) return null;
// An opening tag before this ndx is found, look for
// the corresponding close tag.
do {
if ( open.ndx >= start.ndx && open.ndx < ndx ) {
//open.ndx+open.matched.length <= ndx ) {
// The opening index is on or before ndx,
// search forward.
var exactTag = tags.exactCloseTag(open.matched);
var close = twve.position.create(
open.ndx+open.matched.length
);
close = twve.text.indexOf(txt,exactTag.close,close);
if(close.ndx>ndx && close.ndx<=end.ndx){
// The closing tag is after ndx, it is possible
// that ndx is enclosed by this pair of tags,
// if they are not mistaken.
var nextopen = twve.position.create(
open.ndx+open.matched.length
);
nextopen = twve.text.indexOf(
txt,exactTag.open,nextopen
);
return (nextopen.ndx<0 ||
nextopen.ndx>close.ndx)
? {start:open,end:close} : null;
} else {
// Otherwise the closing tag is also before this
// ndx, meaning this pair of tags is enclosing
// some characters but not this ndx. Skip the
// enclosed text.
start.ndx = close.ndx;
}
}
// Otherwise check the next pair, if there is.
open = open.next;
} while ( open );
return null;
};
// mergeTag
tags.mergeTag = function(tag,newtag){
if ( ! newtag ) return tag;
// Merges newtag into tag
if ( ! tag ) {
// The tag in this pair of tags is empty/undefined,
// copy the whole newtag.
if ( typeof newtag == 'string' ) {
// The newtag is a string, just copy it.
tag = newtag;
} else {
// The newtag is an array, clone it.
tag = newtag.slice(0);
}
} else if ( typeof tag == 'string' ) {
// The tag in this pair of tags is a string,
if ( typeof newtag == 'string' ) {
// and newtag is also string, make them an array if
// they are different.
if ( tag != newtag )
tag = new Array(tag,newtag);
} else {
// and newtag is an array, make this tag an array and
// append those all items in newtag.
tag = [tag];
for (var i=0,len=newtag.length; i<len; i++)
if ( tag.indexOf(newtag[i]) == -1 )
tag[tag.length] = newtag[i];
}
} else {
// The tag in this pair of tags is an array,
if ( typeof newtag == 'string' ) {
// and newtag is a string, append newtag to this tag.
if ( tag.indexOf(newtag) == -1 )
tag[tag.length] = newtag;
} else {
// and newtag is also an array, append all its items
// to this tag.
for (var i=0,len=newtag.length; i<len; i++)
if ( tag.indexOf(newtag[i]) == -1 )
tag[tag.length] = newtag[i];
}
}
return tag;
};
// merge
tags.merge = function(t){
// Merges the open and close tags from t (twve.tags object)
// into this one.
tags.open = tags.mergeTag(tags.open,t.open);
tags.close = tags.mergeTag(tags.close,t.close);
return tags;
};
// creation codes
if ( close !== undefined && close != null ) {
// If the 2nd argument close is given, it shall be the
// close tag, and the 1st argument shall be the open tag.
tags.open = src;
tags.close = close;
return tags;
} else
// Otherwise we follow the default behavior.
return tags.created(src);
}
};
//}}}
/***
!!! twve.link
***/
//{{{
twve.link = {
//}}}
/***
!!!! twve.link.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('a');
},
//}}}
/***
!!!! twve.link.markupTags
***/
//{{{
markupTags : function(){
return twve.tags.create(
'[[',
']]'
);
}
};
//}}}
/***
!!! twve.tiddler
***/
//{{{
twve.tiddler = {
//}}}
/***
!!!! twve.tiddler.registered_element
***/
//{{{
registered_element : null,
//}}}
/***
!!!! twve.tiddler.registered_wrapper
***/
//{{{
registered_wrapper : null,
//}}}
/***
!!!! twve.tiddler.registerElement
***/
//{{{
registerElement : function(obj){
// Register one type of editable element to twve.tiddler.
// Elements that are editable should/could do the followings:
// 1. have an "enableEdit" property which enables/disables
// the editable status of its kind;
// 2. have the following methods :
// # "twveSelector" method which
// a. accepts a twve.selector object (sel),
// b. calls
// sel.includeSelector('inc_selector')
// to add the include selector, and
// sel.excludeSelector('exc_selector')
// to add the exclude selector, if
// desired,
// c. returns the twve.selector object (sel).
// # "markupTags" method to return the wiki
// tags of its kind. For example
// return twve.tags.create(
// "opening tag",
// "closing tag"
// );
// (If your editable element do have a pair of
// specific signatures, implement this method to
// return them. Otherwise just skip it.)
// # "create" method to create elements of its kind,
// # (optional) "getText" method to get the text
// of the element in a way different from the
// default (see "getText" in twve.editable.create);
// # (optional) "setText" method to set the text
// of the element in a way different from the
// default (see "setText" in twve.editable.create);
// # (optional) "clone" method to generate an identical
// copy of the element in a way different from the
// default (see twve.tiddler.cloneEditable).
// # (optional) "mouseenter" method to prepare your
// element upon mouseenter event. Return true/false
// to accept/reject the entrance of mouse pointer.
// See the mouseenter method in twve.table for an
// example.
// # (optional) "mousemove" method to have your
// element respond to the mousemove event. See the
// mousemove method in twve.table for an example.
// # (optional) "mouseleave" method to prepare your
// element upon mouseleave event. Return true/false
// to accept/reject the leaving of mouse pointer.
// See the mouseleave method in twve.tiddlerTitle or
// twve.table for examples.
// # (optional) "focus" method to prepare your
// element for getting the focus.
// # (optional) "blur" method to prepare your element for
// losing focus. See the blur method in twve.table
// for an example.
// 3. call twve.tiddler.registerElement(obj) during plugin
// initialization to register the editable element.
if ( ! twve.tiddler.registered_element ) {
twve.tiddler.registered_element = [];
twve.tiddler.registered_element[
twve.tiddler.registered_element.length
] = obj;
} else if(twve.tiddler.registered_element.indexOf(obj)==-1)
twve.tiddler.registered_element[
twve.tiddler.registered_element.length
] = obj;
},
//}}}
/***
!!!! twve.tiddler.registerWrapper
***/
//{{{
registerWrapper : function(obj){
// Register one type of editable wrapper to twve.
// An editable wrapper should/could, like an editable element,
// do the followings:
// 1. have an "enableEdit" property which enables/disables
// the editable status of its kind;
// 2. have the following methods :
// # "twveSelector" method, see "registerElement"
// above for details;
// # "titleOfWrapper" method to return the tiddler
// title associated with that wrapper, see the
// definition of any one of the system wrappers
// near the end of this file for an example;
// # "wrapperFromTitle" method to return the wrappers
// containing the tiddler with a given title, see the
// definition of any one of the system wrappers near
// the end of this file for an example;
// # "create" method to create wrappers of its kind,
// # (Optional) "markupTags" method to return the wiki
// tags of its kind. For example
// return twve.tags.create(
// "opening tag",
// "closing tag"
// );
// (This is necessary when the wrappers of this
// kind contain transcluded content. See the
// definition of any of the system wrappers near
// the end of this file for an example.)
// # (optional) "clone" method to generate an identical
// copy of the element in a way different from the
// default (see twve.tiddler.cloneEditable).
// 3. call twve.tiddler.registerWrapper(obj) during plugin
// initialization to register the editable wrapper.
if ( ! twve.tiddler.registered_wrapper ) {
twve.tiddler.registered_wrapper = [];
twve.tiddler.registered_wrapper[
twve.tiddler.registered_wrapper.length
] = obj;
} else if(twve.tiddler.registered_wrapper.indexOf(obj)==-1)
twve.tiddler.registered_wrapper[
twve.tiddler.registered_wrapper.length
] = obj;
},
//}}}
/***
!!!! twve.tiddler.enableAllEditable
***/
//{{{
enableAllEditable : function(enabled){
// Enable/Disable all registered editable objects at the
// same time.
for ( var obj in twve.tiddler.registered_element )
if ( obj.enableEdit )
obj.enableEdit = (enabled !== false);
},
//}}}
/***
!!!! twve.tiddler.readOnly
***/
//{{{
readOnly : function(title){
var str = 'twve--example';
return (title && title.toLowerCase().substring(0,str.length)==str)
? false
: readOnly;
},
//}}}
/***
!!!! twve.tiddler.registeredEditableObject
***/
//{{{
registeredEditableObject : function(
elem,registered,include_selector,which
){
if ( ! elem || ! registered
|| !config.options.chktwveCoreEnabled )
return null;
// Finds the registered editable object that corresponds
// to the type of elem (DOM node).
var selector = twve.selector.create();
// Go through the registered objects in a backward manner:
// from the last to the first registered.
for(var n = registered.length-1; n>=0; n--){
var obj = registered[n];
if ( obj.enableEdit ){
selector.clear();
if ( obj.is ) {
// If obj has implemented is() function, test it.
if ( obj.is(elem,selector) )
return include_selector
? { obj: obj, selector: selector }
: obj;
} else {
// Otherwise test its selectors.
obj.twveSelector(selector,which);
//var node = elem;
//do {
if ( twve.node.matches(elem,selector.include) &&
(! selector.exclude ||
!twve.node.matches(elem,selector.exclude)) )
return include_selector
? { obj: obj, selector: selector }
: obj;
//node = node.parentNode;
//} while ( node );
}
}
}
return null;
},
//}}}
/***
!!!! twve.tiddler.createEditableElement
***/
//{{{
createEditableElement : function(elem,txt,start,dir){
// Creates an instance of the registered editable object
// that corresponds to the type of elem (DOM node).
var obj_sel = twve.tiddler.registeredEditableObject(
elem,
twve.tiddler.registered_element,
true
);
if ( ! obj_sel ) return null;
var twelem = obj_sel.obj.create
? obj_sel.obj.create(elem,txt,start,dir)
: twve.element.create(elem,txt,start,dir);
return twelem && twve.tiddler.readOnly(twelem.wrapper_title)
? null : twelem;
},
//}}}
/***
!!!! twve.tiddler.twveSelector
***/
//{{{
twveSelector : function(elem,which){
// Finds the selector corresponding to element elem (DOM node).
var obj_sel = twve.tiddler.registeredEditableObject(
elem,
twve.tiddler.registered_element,
true, which
);
if ( ! obj_sel )
obj_sel = twve.tiddler.registeredEditableObject(
elem,
twve.tiddler.registered_wrapper,
true, which
);
return obj_sel ? obj_sel.selector : null;
},
//}}}
/***
!!!! twve.tiddler.twveFoldableSelector
***/
//{{{
twveFoldableSelector : function(){
var selector = twve.sliderPanel.twveSelector();
twve.foldedSection.twveSelector(selector);
return selector;
},
//}}}
/***
!!!! twve.tiddler.twveTranscludedSelectors
***/
//{{{
twveTranscludedSelectors : function(){
var selector = twve.selector.create();
twve.tabContent.twveSelector(selector);
twve.sliderPanel.twveSelector(selector);
twve.tiddlerSpan.twveSelector(selector);
return selector;
},
//}}}
/***
!!!! twve.tiddler.cloneMarkupTags
***/
//{{{
cloneMarkupTags : function(registered,tags){
// Clones a twve.tags object.
for(var n = registered.length-1; n>=0; n--){
var obj = registered[n];
if ( obj.enableEdit && obj.markupTags ){
var objTags = obj.markupTags();
if ( objTags.is(tags) ) return objTags;
}
}
return null;
},
//}}}
/***
!!!! twve.tiddler.markupTags
***/
//{{{
markupTags : function(elem,which){
// Finds the wiki tags corresponding to an element (DOM node),
// or clones a twve.tags object.
if ( elem.nodeType ) {
// A DOM node
var twobj = twve.tiddler.registeredEditableObject(
elem, twve.tiddler.registered_element,
false, which
);
if ( ! twobj ) {
twobj = twve.tiddler.registeredEditableObject(
elem, twve.tiddler.registered_wrapper,
false, which
);
}
return twobj && twobj.markupTags
? twobj.markupTags(elem,which) : null;
} else {
// A twve.tags object
return twve.tiddler.cloneMarkupTags(
twve.tiddler.registered_element,elem
) || twve.tiddler.cloneMarkupTags(
twve.tiddler.registered_wrapper,elem
);
}
},
//}}}
/***
!!!! twve.tiddler.registeredSelectors
***/
//{{{
registeredSelectors : function(registered,selector){
if ( ! selector ) selector = twve.selector.create();
for(var n = registered.length-1; n>=0; n--)
registered[n].twveSelector(selector);
return selector;
},
//}}}
/***
!!!! twve.tiddler.elementSelectors
***/
//{{{
elementSelectors : function(selector){
return twve.tiddler.registeredSelectors(
twve.tiddler.registered_element,selector
);
},
//}}}
/***
!!!! twve.tiddler.wrapperSelectors
***/
//{{{
wrapperSelectors : function(selector){
return twve.tiddler.registeredSelectors(
twve.tiddler.registered_wrapper,selector
);
},
//}}}
/***
!!!! twve.tiddler.directWrapper
***/
//{{{
directWrapper : function(elem,force){
var w = twve.node.closest(
elem.parentNode,
twve.tiddler.wrapperSelectors().include
);
return w
? twve.tiddler.createEditableWrapper(w,force)
: null;
},
//}}}
/***
!!!! twve.tiddler.createEditableWrapper
***/
//{{{
createEditableWrapper : function(w,force,txt,start,dir){
// Creates an instance of the registered editable wrapper
// that corresponds to the type of w (DOM node), and finds
// its wrapper title.
var wrap = twve.tiddler.registeredEditableObject(
w, twve.tiddler.registered_wrapper
);
if ( wrap ) {
var twwrap = wrap.create
? wrap.create(w,txt,start,dir)
: twve.wrapper.create(w,txt,start,dir);
if ( ! twwrap ) return null;
twwrap.wrapper_title = wrap.titleOfWrapper(w);
return force || !twve.tiddler.readOnly(twwrap.wrapper_title)
? twwrap : null;
}
return null;
},
//}}}
/***
!!!! twve.tiddler.createEditable
***/
//{{{
createEditable : function(elem,txt,start,dir){
// Creates an instance of the registered editable element
// or wrapper that corresponds to the type of elem (DOM node).
var editable = twve.tiddler.createEditableWrapper(
elem,null,txt,start,dir
);
if ( ! editable ) {
editable = twve.tiddler.createEditableElement(
elem,txt,start,dir
);
}
return (editable && editable.isSystemShadow())
? null : editable;
},
//}}}
/***
!!!! twve.tiddler.cloneEditable
***/
//{{{
cloneEditable : function(tweditable){
// Clones an instance of the registered editable element
// or wrapper tweditable (twve.editable object).
var twobj = twve.tiddler.registeredEditableObject(
tweditable.dom,
twve.tiddler.registered_element
);
if ( twobj )
return twobj.create
? twobj.create(tweditable)
: twve.element.create(tweditable);
twobj = twve.tiddler.registeredEditableObject(
tweditable.dom,
twve.tiddler.registered_wrapper
);
return twobj
? (twobj.create
? twobj.create(tweditable)
: twve.wrapper.create(tweditable))
: null;
},
//}}}
/***
!!!! twve.tiddler.titleOfWrapper
***/
//{{{
titleOfWrapper : function (w) {
// Find the title of a given wrapper w (DOM node).
if ( ! w ) return '';
var twobj = twve.tiddler.registeredEditableObject(
w, twve.tiddler.registered_wrapper
);
return (twobj && twobj.titleOfWrapper)
? twobj.titleOfWrapper(w)
: '';
},
//}}}
/***
!!!! twve.tiddler.wrapperFromTitle
***/
//{{{
wrapperFromTitle : function (title) {
// Find all the registered wrappers with the given tiddler
// title.
// A tiddler may be loaded multiple times and displayed in
// different wrappers with transclusion macros.
// This function finds all the wrappers corresponding to the
// same tiddler title.
// First we go to the top level, the 'div.tiddlerDisplay',
// then call the "wrapperFromTitle" method of each registered
// wrapper to collect all wrappers with that given title.
//
// This function returns an array of DOM object representing all
// the rendered copies of the corresponding tiddler title.
if ( ! title ) return null;
title = twve.text.removeHeaderTail(title);
var tid_title = twve.text.tiddlerTitle(title);
var sec = twve.text.tiddlerSection(title);
var w0 = document.querySelectorAll('div[id=tiddlerDisplay]');
var w = null;
var registered_wrapper = twve.tiddler.registered_wrapper;
for(var n = registered_wrapper.length-1; n>=0; n--){
var wrap = registered_wrapper[n];
if ( wrap.wrapperFromTitle ) {
var w1 = wrap.wrapperFromTitle(
tid_title, w0, sec
);
if ( ! w1 ) continue;
w = w ? w.concat(w1) : w1;
}
}
return w;
},
//}}}
/***
!!!! twve.tiddler.get
***/
//{{{
get : function ( title, where ) {
// Get the tiddler with the given title from
// store or story.
if ( ! where || where != story ) where = store;
return where.getTiddler(twve.text.tiddlerTitle(title));
},
//}}}
/***
!!!! twve.tiddler.displaySelector
***/
//{{{
displaySelector : function(){
return 'div[id=displayArea]';
},
//}}}
/***
!!!! twve.tiddler.getDisplay
***/
//{{{
getDisplay : function(){
return document.querySelector('div[id=displayArea]');
},
//}}}
/***
!!!! twve.tiddler.getOptionsMenu
***/
//{{{
optionsMenu : null,
getOptionsMenu : function(){
if ( ! twve.tiddler.optionsMenu ) {
twve.tiddler.optionsMenu = twve.menu.create(
twve.button.create(
null,
String.fromCharCode(8801),
"''twve'' menu"
)
);
twve.tiddler.optionsMenu.addMenu(
"''twve.core'' Options",
config.macros.twveCoreOptions.handler
);
}
return twve.tiddler.optionsMenu;
},
//}}}
/***
!!!! twve.tiddler.cur_focus
***/
//{{{
cur_focus : null,
//}}}
/***
!!!! twve.tiddler.focusElem
***/
//{{{
focusElem : function (editable,action) {
if ( typeof editable != 'undefined' ) {
// editable is given
if ( twve.tiddler.cur_focus &&
twve.tiddler.cur_focus.blur )
// There is currently focused element which is
// different from the one to get focused (this is
// made sure before calling this method).
// Call its blur() method if it has it
twve.tiddler.cur_focus.blur();
if ( ! editable ) {
// Clear the focus, hide options menu as well.
var menu = twve.tiddler.getOptionsMenu();
if ( menu ) menu.hide(true);
if ( ! action || action.toLowerCase().substring(0,4)!='keep' )
twve.tiddler.drawFocusBorders();
} else if ( editable.focus )
// call the focus() method of the newly focused
// element if it has it
editable.focus();
twve.tiddler.cur_focus = editable;
}
return twve.tiddler.cur_focus;
},
//}}}
/***
!!!! twve.tiddler.focusing_borders
***/
//{{{
border_top : null,
border_bottom : null,
border_left : null,
border_right : null,
//}}}
/***
!!!! twve.tiddler.createFocusBorder
***/
//{{{
createFocusBorder : function(parent,which){
if ( ! parent ) parent = twve.tiddler.getDisplay();
// Create an array to hold each side of the borders.
var border = document.createElement('div');
parent.appendChild(border);
border.style.position = 'absolute';
twve.node.setDimension(border,null,0);
switch ( which ) {
case 'left' :
border.style.borderLeftWidth = '1px';
border.style.borderLeftStyle= 'dashed';
break;
case 'right' :
border.style.borderRightWidth = '1px';
border.style.borderRightStyle = 'dashed';
break;
case 'top' :
border.style.borderTopWidth = '1px';
border.style.borderTopStyle = 'dashed';
break;
case 'bottom' :
border.style.borderBottomWidth = '1px';
border.style.borderBottomStyle = 'dashed';
break;
}
return border;
},
//}}}
/***
!!!! twve.tiddler.focusBorderVisible
***/
//{{{
focusBorderVisible : function(){
return twve.node.isVisible(twve.tiddler.border_top[0]);
},
//}}}
/***
!!!! twve.tiddler.prepareFocusBorders
***/
//{{{
prepareFocusBorders : function(eb){
// Prepare the focus borders and returns the number of boxes
// to draw.
// Left
twve.node.setPosition(
twve.tiddler.border_left[0],eb.left,eb.top
);
twve.node.setDimension(
twve.tiddler.border_left[0],null,eb.height
);
// Top
twve.node.setPosition(
twve.tiddler.border_top[0],eb.left,eb.top
);
twve.node.setDimension(
twve.tiddler.border_top[0],eb.width
);
// Bottom
twve.node.setPosition(
twve.tiddler.border_bottom[0],eb.left,eb.bottom
);
twve.node.setDimension(
twve.tiddler.border_bottom[0],eb.width
);
// Right
twve.node.setPosition(
twve.tiddler.border_right[0],eb.right,eb.top
);
twve.node.setDimension(
twve.tiddler.border_right[0],null,eb.height
);
return 1;
},
//}}}
/***
!!!! twve.tiddler.focusBox
***/
//{{{
focus_box : null,
focusBox : function(){
return twve.tiddler.focus_box;
},
focusBoxVisible : function(){
return twve.node.isVisible(twve.tiddler.border_top[0]);
},
clearFocusBox : function(){
twve.tiddler.focus_box = null;
},
//}}}
/***
!!!! twve.tiddler.drawFocusBorders
***/
//{{{
drawFocusBorders : function(eb){
if ( ! eb ) {
//twve.tiddler.focus_box = null;
twve.node.hide(twve.tiddler.border_top);
twve.node.hide(twve.tiddler.border_bottom);
twve.node.hide(twve.tiddler.border_left);
twve.node.hide(twve.tiddler.border_right);
} else {
twve.tiddler.focus_box = [{}];
// Copy the 1st box.
eb.cloneTo(twve.tiddler.focus_box[0],0,false);
// Copy the outside box.
eb.cloneTo(twve.tiddler.focus_box);
// Prepare and show borders.
var brdlen = twve.tiddler.prepareFocusBorders(eb);
if ( config.options.chktwveCoreShowFocus ) {
twve.node.show(twve.tiddler.border_top,0,brdlen);
twve.node.show(twve.tiddler.border_bottom,0,brdlen);
twve.node.show(twve.tiddler.border_left,0,brdlen);
twve.node.show(twve.tiddler.border_right,0,brdlen);
}
}
},
//}}}
/***
!!!! twve.tiddler.editWrappers
***/
//{{{
editWrappers : function(){
return config.options.chktwveCoreEditWrappers;
},
//}}}
/***
!!!! twve.tiddler.focus
***/
//{{{
focus : function(editable,action,ev,eb) {
var elem = null;
if ( ! editable || ! config.options.chktwveCoreEnabled ) {
action = 'off';
} else {
elem = editable.dom;
if ( twve.node.closest(elem,'.preview') )
return;
if ( config.options.chktwveCoreNoClick ) {
if(! twve.tiddler.cur_editable
|| ! twve.tiddler.cur_editable.is(elem))
twve.tiddler.editInPlace(editable,ev);
}
}
if ( ! twve.tiddler.border_top ) {
// Focusing borders not existing. Create them.
var display = twve.tiddler.getDisplay();
twve.tiddler.border_top = [];
twve.tiddler.border_top[0] =
twve.tiddler.createFocusBorder(display,'top');
twve.tiddler.border_bottom = [];
twve.tiddler.border_bottom[0] =
twve.tiddler.createFocusBorder(display,'bottom');
twve.tiddler.border_left = [];
twve.tiddler.border_left[0] =
twve.tiddler.createFocusBorder(display,'left');
twve.tiddler.border_right = [];
twve.tiddler.border_right[0] =
twve.tiddler.createFocusBorder(display,'right');
}
if ( ! elem || action == 'off' ||
(editable.isWrapper() && ! twve.tiddler.editWrappers()) ) {
twve.tiddler.drawFocusBorders();
twve.tiddler.focusElem(null);
} else {
twve.tiddler.focusElem(editable);
if ( editable.isWrapper() ) {
twve.tiddler.drawFocusBorders();
//if ( ! eb )
eb = editable.box('focus',ev);
} else {
if ( ! eb ) eb = editable.box('focus',ev);
twve.tiddler.drawFocusBorders();
}
if(eb && eb.height>=twve.node.cssSize('font-size',elem)){
if ( editable.drawFocusBorders )
editable.drawFocusBorders(eb);
else
twve.tiddler.drawFocusBorders(eb);
return true;
}
}
return;
},
//}}}
/***
!!!! twve.tiddler.mousePosition
***/
//{{{
mousePosition : function(ev){
var pos = twve.object.create();
if ( ev ) {
pos.x = ev.pageX;
pos.y = ev.pageY;
}
return twve.node.adjustPosition(pos);
},
//}}}
/***
!!!! twve.tiddler.focusTarget
***/
//{{{
focusTarget : function(ev){
// For simple elements/nodes, focus target is just ev.target.
// For complex ones that containing multiple child
// elements/nodes, such as tables, ev.target could be one of
// the children, yet we may want the focus to be on the parent.
return ev.target;
},
//}}}
/***
!!!! twve.tiddler.mouseMove
***/
//{{{
mouseMove : function(ev) {
ev = ev || window.event;
if ( twve.isMobile() &&
ev.target.nodeName == 'A' ) return;
var focus = twve.tiddler.focusElem();
var feb = null;
var tweditable = null;
var target = twve.tiddler.focusTarget(ev);
if ( focus ) {
feb = twve.tiddler.focusBox();
if ( focus.is(target) ) {
// Mouse is still over the same element.
if ( focus.mousemove ) focus.mousemove(ev);
if ( twve.isMobile() ){
twve.tiddler.updateText();
if (feb &&
feb.contains(twve.tiddler.mousePosition(ev)) &&
focus.dom.nodeName!='TABLE'){
if ( twve.tiddler.m_count == 0 )
twve.tiddler.m_count++
else {
twve.tiddler.updateText();
twve.tiddler.m_count = 0;
return ! twve.tiddler.editInPlace(focus,ev);
}
}
}
if(focus.isWrapper()) tweditable = focus;
} else {
// Mouse has come to another element.
var seb = twve.node.box(target);
if ( feb && feb.contains(seb) ) {
// If this other element is within the focused one,
// check if it is a registered editable element.
twve.tiddler.focusElem(null,'keep');
tweditable = twve.tiddler.createEditable(target);
if ( tweditable ) {
// Yield focus to it if it is.
twve.tiddler.focus();
feb = tweditable.differentBox ? null : seb;
} else
// Otherwise restore focus back.
twve.tiddler.focusElem(focus);
} else {
// If this other element is not within the focused
// one, ask the focused one to leave and yield focus
// if it agrees.
var leaving = focus.mouseleave
? focus.mouseleave(ev)
: true;
if ( leaving ) {
twve.tiddler.focus();
tweditable = twve.tiddler.createEditable(target);
if ( tweditable )
feb = tweditable.differentBox ? null : seb;
}
}
}
} else {
if ( twve.isMobile() ) {
twve.tiddler.updateText();
twve.tiddler.down_elem = ev.target;
twve.tiddler.m_count = 0;
}
// There is currently no focused element.
tweditable = twve.tiddler.createEditable(target);
}
if ( tweditable &&
(! tweditable.mouseenter || tweditable.mouseenter(ev)) ) {
twve.tiddler.focus(tweditable,'on',ev,feb);
}
},
//}}}
/***
!!!! twve.tiddler.eventTarget
***/
//{{{
eventTarget : function(ev){
return (ev.button == 0
|| (config.browser.isIE && ev.button == 1)) // left button
//? document.elementFromPoint(ev.clientX,ev.clientY)
? (ev.target.nodeName!=='CANVAS'?ev.target:null)
: null;
},
//}}}
/***
!!!! twve.tiddler.mouseDown
***/
//{{{
m_count : 0,
down_elem : null,
mouseDown : function (ev) {
ev = ev || window.event;
var down_elem = ev.buttons || twve.isMobile()
? twve.tiddler.eventTarget(ev)
: null;
if ( down_elem ) {
var pos = twve.tiddler.mousePosition(ev);
var focus = twve.tiddler.focusElem();
if ( focus && focus.is(down_elem) ) {
var fbox = twve.tiddler.focusBox();
if (fbox &&
(pos.x >= fbox.right ||
pos.y >= fbox.bottom))
return (twve.tiddler.down_elem = down_elem = null);
}
var menu = twve.tiddler.getOptionsMenu();
if((menu.isVisible() && menu.contains(pos)) ||
down_elem.nodeName=='A' ||
twve.node.closest(down_elem,'A')){
down_elem = null;
twve.tiddler.m_count = 0;
} else {
if ( twve.isMobile() ) {
if ( twve.tiddler.m_count > 0 ) menu.hide(true);
} else {
menu.hide(true);
}
if ( down_elem != twve.tiddler.down_elem )
twve.tiddler.m_count = 0;
}
}
return (twve.tiddler.down_elem = down_elem);
},
//}}}
/***
!!!! twve.tiddler.mouseUp
***/
//{{{
mouseUp : function (ev) {
if ( ! twve.tiddler.down_elem ) return;
ev = ev || window.event;
var up_elem = twve.tiddler.eventTarget(ev);
if ( ! up_elem || twve.button.isSystemButton(up_elem) )
return;
if ( up_elem != twve.tiddler.down_elem ){
var fb = twve.tiddler.focusBox();
if(!fb || !fb.contains(ev))
return;
//up_elem = twve.tiddler.down_elem;
}
var edbox = twve.tiddler.getEditBox();
if ( edbox && twve.node.is(up_elem,edbox) ) {
//setTimeout(function(){
twve.tiddler.previewEditBox(up_elem);
//}, 0);
return;
}
if ( twve.node.closest(up_elem,'.preview')
|| twve.node.matches(up_elem,'textarea,input') ) {
return;
}
if ( twve.node.matches(
up_elem,
'html,#displayArea,#contentWrapper,.txtMainTab' +
',.header,.headerShadow,.headerForeground' +
',.siteTitle,.siteSubtitle,#menuBar'
)
) {
twve.tiddler.updateText();
twve.tiddler.focus();
return;
}
var tweditable = twve.tiddler.focusElem();
if ( ! tweditable ) {
if ( edbox )
twve.tiddler.updateText();
return;
}
if ( twve.isMobile() ) {
if ( ++twve.tiddler.m_count < 2 ) return;
twve.tiddler.m_count = 0;
}
if ( edbox ) {
twve.tiddler.updateTextAndIndex(tweditable);
}
if ( tweditable.isEditable(up_elem) ) {
return ! twve.tiddler.editInPlace(tweditable,ev);
}
},
//}}}
/***
!!!! twve.tiddler.resize
***/
//{{{
resize : function (ev) {
if ( twve.tiddler.cur_editable ) return;
if (! (twve.isMobile() ||
(config.browser.isIE &&
!config.browser.isIE9))) {
var scrL = window.pageXOffset;
var scrT = window.pageYOffset;
twve.tiddler.focusElem(null);
var panel = document.querySelectorAll('#sidebar,#mainMenu');
if ( window.innerWidth < screen.width/2 )
twve.node.hide(panel);
else
twve.node.show(panel);
var twview = twve.viewer.create();
var selector = twve.viewer.twveSelector();
panel = document.querySelectorAll(selector.include);
for ( var n=0,len=panel.length; n<len; n++ ) {
if ( twve.node.matches(panel[n],'div.board') ) continue;
twview.setElement(panel[n]);
twview.refreshSelf(twview.getText());
twview.clear();
}
window.scrollTo(scrL,scrT);
}
},
//}}}
/***
!!!! twve.tiddler.scroll
***/
//{{{
/*
scroll : function (ev) {
if ( twve.tiddler.cur_editable ) {
var $ed = twve.tiddler.getEditBox();
if ( ! $ed ) return;
//var shift = twve.node.positionShift();
var box = twve.node.box($ed[0]);
$ed[0].style.left = box.left+'px';
$ed[0].style.top = box.top+'px';
var preview = twve.tiddler.getPreviewer();
if ( preview ) {
preview.style.left = box.left+'px';
preview.style.top =
box.top-preview.offsetHeight;
}
}
},
*/
//}}}
/***
!!!! twve.tiddler.saveText
***/
//{{{
saveText : function(twelem,text,newtitle){
var tiddler = twelem.tiddler || twelem;
var newtext = typeof text == 'string' ? text : tiddler.text;
if ( newtitle ) {
if(store.tiddlerExists(newtitle)) {
if(!confirm(config.messages.overwriteWarning
.format([newtitle])))
return null;
story.closeTiddler(newtitle,false);
}
var tiddlerElem = story.getTiddler(tiddler.title);
tiddlerElem.id = story.tiddlerId(newtitle);
tiddlerElem.setAttribute("tiddler",newtitle);
store.saveTiddler(tiddler.title,newtitle,newtext);
return newtext;
}
var undo_saveTiddler = null;
if ( config.macros.undo ) {
// If UndoPlugin is installed, let it do its job but
// not to save the tiddler.
undo_saveTiddler = store.undo_saveTiddler;
store.undo_saveTiddler = function() {};
store.saveTiddler(tiddler.title,tiddler.title,newtext);
}
// The following lines of code saves the changes just made to a
// DOM element. According to TiddlyWiki web page it is a common
// practice to use store.saveTiddler () to save the content
// of a tiddler. This is usually fine except when
// <<foldHeadings>> macro is used: the open sections get folded
// again. We avoid such situations by calling tiddler.set()
// instead of store.saveTiddler().
tiddler.set(
tiddler.title,newtext,
(tiddler.modifier || config.options.txtUserName),
new Date()
);
store.setDirty(true);
if ( config.macros.undo ) {
// If UndoPlugin is installed, the saveTiddler() function
// was temporarily disabled. Put it back now.
store.undo_saveTiddler = undo_saveTiddler;
}
// Save changes to local file or server
if ( window.location.protocol == "file:" ) {
if ( !config.options.chktwveCoreManualSave )
autoSaveChanges (null,[twelem.tiddler]);
} else if ( !config.options.chktwveCoreManualUpload &&
config.macros.upload ) {
config.macros.upload.action();
}
return newtext;
},
//}}}
/***
!!!! twve.tiddler.refreshTiddler
***/
//{{{
preRefreshTiddler : null,
refreshTiddler : function () {
var elem=twve.tiddler.preRefreshTiddler.apply(this,arguments);
if ( elem && config.options.chktwveCoreEnabled ) {
var viewer = elem.querySelector('.viewer');
if ( ! viewer ) viewer = elem;
twve.viewer.create(viewer).waitAndPrepare();
// Bind the mousemove event handler to the tiddlerDisplay
// area. The unbind calls are necessary to prevent multiple
// invocation upon single event due to multiply bound
// handler.
var display = twve.node.closest(
elem,'div[id=tiddlerDisplay]'
);
//if ( twve.isMobile() ) {
// Nothing to do for mobile devices, yet.
//} else {
display.removeEventListener(
'mousemove', twve.tiddler.mouseMove
);
display.addEventListener(
'mousemove', twve.tiddler.mouseMove
);
//}
// Because FireFox jumps out of the element if text
// selection is finished with mouse released over another,
// the click event is not a good place to determine
// which element to edit. Instead, this plugin compares the
// element in mousedown and mouseup, and goes to edit
// function only if they are the same one.
// The unbind calls are necessary to prevent multiple
// invocation upon single event due to multiply bound
// handler.
/*
if ( twve.isMobile() ) {
document.removeEventListener(
'touchstart', twve.tiddler.mouseDown
);
document.addEventListener(
'touchstart', twve.tiddler.mouseDown
);
document.removeEventListener(
'touchend', twve.tiddler.mouseUp
);
document.addEventListener(
'touchend', twve.tiddler.mouseUp
);
} else {
*/
document.removeEventListener(
'mousedown', twve.tiddler.mouseDown
);
document.addEventListener(
'mousedown', twve.tiddler.mouseDown
);
document.removeEventListener(
'mouseup', twve.tiddler.mouseUp
);
document.addEventListener(
'mouseup', twve.tiddler.mouseUp
);
//}
twve.tiddler.getOptionsMenu().hide(true);
}
return elem;
},
//}}}
/***
!!!! twve.tiddler.popupShow
***/
//{{{
prePopupShow : null,
popupShow : function () {
twve.tiddler.prePopupShow.apply(this,arguments);
var curr = Popup.stack[Popup.stack.length-1];
twve.wrapper.create(curr.popup).waitAndPrepare();
return curr;
},
//}}}
/***
!!!! twve.tiddler.tabSwitchTab
***/
//{{{
preTabsSwitchTab : null,
tabsSwitchTab : function (tabset,tab) {
// Hijacking the switchTab function of <<tabs>> macro.
twve.tiddler.preTabsSwitchTab.apply(this,arguments);
if(twve.node.closest(tabset,twve.tiddler.displaySelector())) {
var tabContent = twve.tabContent.create(
tabset.nextSibling
);
tabContent.waitAndPrepare();
var focus = twve.tiddler.focusElem();
if ( focus ) {
twve.tiddler.drawFocusBorders(focus.box());
}
}
},
//}}}
/***
!!!! twve.tiddler.tiddlerTransclude
***/
//{{{
preTiddlerTransclude : null,
tiddlerTransclude : function (wrapper) {
// Hijacking the handler of <<tiddler>> macro.
twve.tiddler.preTiddlerTransclude.apply(this,arguments);
if(twve.node.closest(wrapper,twve.tiddler.displaySelector())) {
var ts = twve.tiddlerSpan.create(wrapper);
if ( ts.waitAndPrepare ) ts.waitAndPrepare();
}
},
//}}}
/***
!!!! twve.tiddler.sliderHandler
***/
//{{{
preSliderHandler : null,
sliderHandler : function (place) {
// Hijacking the handler of <<slider>> macro.
twve.tiddler.preSliderHandler.apply(this,arguments);
if(twve.node.closest(place,twve.tiddler.displaySelector())) {
var sp = twve.sliderPanel.create(
place.querySelector('div[tiddler]')
);
if ( sp.waitAndPrepare ) sp.waitAndPrepare();
}
},
//}}}
/***
!!!! twve.tiddler.onClickSlider
***/
//{{{
preOnClickSlider : null,
onClickSlider : function () {
// Hijacking the onClick handler of <<slider>> macro.
twve.tiddler.preOnClickSlider.apply(this,arguments);
//twve.sliderPanel.create(this.nextSibling)
// .waitAndPrepare();
},
//}}}
/***
!!!! twve.tiddler.cur_editable
<<<
The element being edited. Note that this may be different from the element being focused.
<<<
***/
//{{{
cur_editable : null,
//}}}
/***
!!!! twve.tiddler.edit_box
***/
//{{{
edit_box : null,
//}}}
/***
!!!! twve.tiddler.getEditBox
***/
//{{{
getEditBox : function(){
return twve.tiddler.edit_box;
},
//}}}
/***
!!!! twve.tiddler.setEditBox
***/
//{{{
setEditBox : function(box){
//box.style.zIndex = 2;
return (twve.tiddler.edit_box = box);
},
//}}}
/***
!!!! twve.tiddler.adjustEditBoxHeight
***/
//{{{
adjustEditBoxHeight : function(ta){
// Adjust the edit box height to fit its containing
// text.
// It is interesting that with Chrome, FireFox,
// and Safari we need to change the height of ta
// to get the correct scrollHeight, while with IE9
// we get it no matter what. The scrH0 is the minimum
// height that we stored upon initialization.
var tah = Math.round(twve.node.height(ta));
twve.node.setDimension(ta,null,0);
var scrH0 = ta.getAttribute('scrH0')*1;
var scrH = ta.scrollHeight;
scrH = Math.max(scrH, scrH0);
twve.node.setDimension(ta,null,scrH+1);
//twve.tiddler.previewEditBox(ta);
},
//}}}
/***
!!!! twve.tiddler.preview
***/
//{{{
preview : null,
//}}}
/***
!!!! twve.tiddler.getPreviewer
***/
//{{{
getPreviewer : function(parent){
if ( ! twve.tiddler.preview ) {
if ( ! parent )
parent = twve.tiddler.getDisplay();
var preview = document.createElement('div');
twve.tiddler.preview = preview;
parent.appendChild(preview);
preview.style.position = 'absolute';
preview.style.overflow = 'auto';
preview.style.zIndex = 2;
preview.style.border = '1px solid black';
preview.style.padding = 0;
preview.style.margin = 0;
preview.style.backgroundColor = '#fff8dc';
preview.classList.add('preview');
var board = document.createElement('div');
preview.appendChild(board);
board.classList.add(
'board','viewer','tiddler','selected'
);
twve.node.hide(preview);
}
return twve.tiddler.preview;
},
//}}}
/***
!!!! twve.tiddler.editInplace
***/
//{{{
editInPlace : function (editable,ev) {
// This name was inherited from GridPlugin v2.0.7
// (http://www.TiddlyTools.com/#GridPlugin) by
// Eric Shulman, for that plugin is one of the two
// seeds of this one.
return (ev && (ev.ctrlKey || ev.shiftKey || ev.altKey))
? false :
(editable.wrapper_title ? editable.editText(ev) : false);
},
//}}}
/***
!!!! twve.tiddler.getEditInfo
***/
//{{{
getEditInfo : function(ta){
if ( ! ta ) ta = twve.tiddler.getEditBox();
var edinfo = {}, txt;
if ( ta ) {
edinfo.text = [];
for ( var r=0,rlen=ta.length; r<rlen; r++ ){
if ( ta[r].nodeType ) {
// single textarea, edinfo.text[r] shall be its text value
txt = ta[r].value;
edinfo.text[r] = txt;
if ( ta[r].getAttribute('cancel')=='true' )
edinfo.canceled = true;
if ( ta[r].defaultValue != txt )
edinfo.modified = true;
} else {
// multiple textareas, edinfo.text[r] shall be an array
edinfo.text[r] = [];
for(var c=0,clen=ta[r].length; c<clen; c++){
txt = ta[r][c].value;
edinfo.text[r][c] = txt;
if ( ta[r][c].getAttribute('cancel')=='true' )
edinfo.canceled = true;
if ( ta[r][c].defaultValue != txt )
edinfo.modified = true;
}
}
}
}
return edinfo;
},
//}}}
/***
!!!! twve.tiddler.updateText
***/
//{{{
updateText : function (ta,editable,refreshed,editing) {
if ( editable === undefined )
editable = twve.tiddler.cur_editable;
if ( ! ta ) ta = twve.tiddler.getEditBox();
if ( ! ta || ! editable ) {
twve.tiddler.closeEditbox();
twve.tiddler.cur_editable = null;
return null;
}
var edinfo = twve.tiddler.getEditInfo(ta);
if ( !edinfo.canceled && edinfo.modified )
editable.updateText(edinfo.text,refreshed);
if ( ! editing ) {
twve.tiddler.closeEditbox();
twve.tiddler.cur_editable = null;
}
return editable;
},
//}}}
/***
!!!! twve.tiddler.updateTextAndIndex
***/
//{{{
updateTextAndIndex : function(twelem){
// Update text of the element currently being edited, and the
// index of the waiting one (twelem).
var editable = twve.tiddler.cur_editable;
var pend = editable.end.ndx;
twve.tiddler.updateText();
if ( ! twelem ) return;
var dlen = editable.end.ndx - pend;
if ( dlen &&
twve.text.tiddlerTitle(editable.wrapper_title) ==
twve.text.tiddlerTitle(twelem.wrapper_title) ) {
// There was change in the text length, indexes of twelem
// need to be updated.
if ( editable.dom == twelem.dom ) {
// Same element, update its end.
twelem.end.ndx = editable.end.ndx;
} else if ( twelem.start.ndx > pend ) {
// Some element after the updated one, update its start
// and end.
twelem.start.ndx += dlen;
twelem.end.ndx += dlen;
}
}
},
//}}}
/***
!!!! twve.tiddler.editBoxCaret
***/
//{{{
editBoxCaret : function(ta, pos_start, pos_end) {
if ( typeof pos_start == 'undefined' ) {
// Get caret position
try {
if ( document.selection ) {
// IE
// The following codes are copied from
// http://jsfiddle.net/FishBasketGordo/ExZM9/
ta.focus();
var sel = document.selection.createRange();
var sel_copy = sel.duplicate();
sel_copy.moveToElementText(ta);
sel_copy.setEndPoint('EndToStart',sel);
return sel_copy.text.length-sel.text.length;
} else if ( ta.selectionStart
|| ta.selectionStart == '0' )
return ta.selectionStart*1;
} catch(e) {
console.log(e);
}
return -1;
} else {
// Set caret position
var len = ta.value.length;
if ( typeof pos_start != 'number' ) {
pos_start = pos_start == 'end' ? len : 0;
} else if ( pos_start < 0 )
pos_start += len;
if ( typeof pos_end != 'number' )
pos_end = pos_start;
else {
if ( pos_end < 0 ) pos_end += len;
if ( pos_start > pos_end ) {
// Make sure that start < end
var tmp = pos_start;
pos_start = pos_end;
pos_end = tmp;
}
}
// The following codes are copied from
// http://www.webdeveloper.com/forum/showthread.php?74982-How-to-set-get-caret-position-of-a-textfield-in-IE
if ( ta.setSelectionRange ) {
ta.focus();
ta.setSelectionRange(pos_start,pos_end);
} else if ( ta.createTextRange ) {
var range = ta.createTextRange();
range.collapse(true);
range.moveEnd('character',pos_end);
range.moveStart('character',pos_start);
range.select();
}
return pos_start;
}
},
//}}}
/***
!!!! twve.tiddler.getSelectionText
***/
//{{{
getSelectionText : function ( ta ) {
// This function is directly copied from
// http://stackoverflow.com/questions/3053542/how-to-get-the-start-and-end-points-of-selection-in-text-area
var s = twve.object.create();
s.start = 0;
s.end = 0;
if (typeof ta.selectionStart == "number"
&& typeof ta.selectionEnd == "number") {
// Firefox (and others)
s.start = ta.selectionStart;
s.end = ta.selectionEnd;
} else if (document.selection) {
// IE
var bookmark =
document.selection.createRange().getBookmark();
var sel = ta.createTextRange();
var bfr = sel.duplicate();
sel.moveToBookmark(bookmark);
bfr.setEndPoint("EndToStart", sel);
s.start = bfr.text.length;
s.end = s.start + sel.text.length;
}
return s;
},
//}}}
/***
!!!! twve.tiddler.closeEditbox
***/
//{{{
closeEditbox : function() {
if ( twve.tiddler.preview )
twve.node.hide(twve.tiddler.preview);
var edbox = twve.tiddler.edit_box;
if ( edbox ) {
for(var r=0,rlen=edbox.length; r<rlen; r++){
if ( edbox[r].nodeType )
// single textarea
edbox[r].parentNode.removeChild(edbox[r]);
else
// array of textareas
for(var c=0,clen=edbox[r].length; c<clen; c++)
edbox[r][c].parentNode.removeChild(edbox[r][c]);
}
twve.tiddler.edit_box = null;
}
},
//}}}
/***
!!!! twve.tiddler.previewEditBox
***/
//{{{
previewEditBox : function (ta,cpos) {
var preview = twve.tiddler.getPreviewer();
if ( ! config.options.chktwveCorePreview ||
! twve.tiddler.cur_editable ) {
twve.node.hide(preview);
return null;
}
twve.node.setDimension(preview,ta.offsetWidth);
if ( typeof cpos != 'number' || cpos == -1 )
cpos = twve.tiddler.editBoxCaret(ta);
var txt = ta.value;
txt = cpos == 0
? (config.options.txttwveCorePreviewCaret+txt)
: (txt.substring(0,cpos)
+config.options.txttwveCorePreviewCaret
+txt.substring(cpos));
twve.node.show(preview);
var board = preview.querySelector('div.board');
// The preview contains the font and color attributes of the
// element being edited. I did not add the next line of code
// until I found that the color attributes can go wrong in
// some cases. One example is moving from one table cell with
// a specific background color to one without, using keyboard
// navigation. 2013/12/27 Vincent
twve.node.copyFontColor(board,preview,true);
twve.node.wikifyAndPrepare(txt,board);
// Adjust previewer height
var h = new String(
config.options.txttwveCorePreviewHeight
).toLowerCase().trim();
var lh = twve.node.cssSize(
window.getComputedStyle(board)
.getPropertyValue('line-height')
) || 17;
if ( /\D$/.test(h) )
// txttwveCorePreviewHeight contains non-digits at
// its end
h = twve.node.cssSize(h);
else
// txttwveCorePreviewHeight is all digits
h = lh*h;
var bh = board.offsetHeight+lh;
if ( bh > h ) bh = h;
var tpos = twve.node.box(ta);
if ( bh > tpos.top ) {
bh = tpos.top;
tpos.top = 0;
} else
tpos.top -= bh;
twve.node.setPosition(preview,tpos.left,tpos.top-2);
// Add 1 in height to avoid unnecessary scrollbar.
twve.node.setDimension(preview,null,bh+1);
// Make the editbox scrollable if too high.
//if ( ta.scrollHeight > h ) {
// twve.node.setDimension(ta,null,h);
//}
return preview
},
//}}}
/***
!!!! twve.tiddler.getPreviewedNodes
***/
//{{{
getPreviewedNodes : function(txt,node){
var preview = twve.tiddler.getPreviewer();
var board = preview.querySelector('div.board');
if ( twve.node.isVisible(preview) )
//return config.options.chktwveCorePreview
// ? board.childNodes
// : twve.node.wikifyAndPrepare(txt,board);
// To avoid redoing the wikification we would simply return the
// board.childNodes if the previewer had been enabled. The current
// way of simulating the caret, however, is preventing this simple
// way because that "fake caret" -- which is simulated by an extra
// vertical bar -- is not part of the text but will also be
// returned. This is not what we want. Therefore we redo the
// wikification no matter what, at least by the time we move on to
// the next mode of editing -- the almost WYSIWYG mode.
// Vincent 2014/12/16
return twve.node.wikifyAndPrepare(txt,board);
// Previewer is hidden, show it, wikify into it, and return.
twve.node.show(preview);
if ( node ) {
twve.node.copyFontColor(preview,node,true);
twve.node.setDimension(preview,node.offsetWidth);
}
twve.node.copyFontColor(board,preview,true);
var nodes = twve.node.wikifyAndPrepare(txt,board);
twve.node.hide(preview);
return nodes;
},
//}}}
/***
!!!! twve.tiddler.caret_pos
***/
//{{{
caret_pos : null,
initCaretPos : function(pos){
if ( ! twve.tiddler.caret_pos )
twve.tiddler.caret_pos = twve.object.create();
if ( pos === undefined ) pos = -100;
twve.tiddler.caret_pos.cur = pos;
twve.tiddler.caret_pos.last = pos;
},
//}}}
/***
!!!! twve.tiddler.setCaretPosition
***/
//{{{
setCaretPosition : function(pos){
twve.tiddler.caret_pos.last = twve.tiddler.caret_pos.cur;
twve.tiddler.caret_pos.cur = pos;
},
//}}}
/***
!!!! twve.tiddler.updatePreviewerCaret
***/
//{{{
updatePreviewerCaret : function(ta,force){
var cpos = twve.tiddler.editBoxCaret(ta);
if ( force || cpos != twve.tiddler.caret_pos.cur ) {
twve.tiddler.previewEditBox(ta,cpos);
}
twve.tiddler.setCaretPosition(cpos);
},
//}}}
/***
!!!! twve.tiddler.keydownCancel
***/
//{{{
keydownCancel : function (ev,ta) {
if ( ev.which == 27 ) {
ta.setAttribute('cancel', 'true');
twve.tiddler.updateText();
return true;
}
return false;
},
//}}}
/***
!!!! twve.tiddler.keydownAfter
***/
//{{{
keydownAfter : function (ev,ta) {
if ( twve.tiddler.keydownCancel(ev,ta) ||
! twve.tiddler.cur_editable )
return false;
var force = false;
switch ( ev.which ) {
case 46 : // delete
force = true;
case 8 : // backspace
if ( ev.alterKey ) return false;
//twve.tiddler.updatePreviewerCaret(ta,force);
break;
case 33 : // page up
case 34 : // page down
case 35 : // end
case 36 : // home
case 37 : // left arrow
case 38 : // up arrow
case 39 : // right arrow
case 40 : // down arrow
if ( ev.alterKey ) return false;
if ( ev.shiftKey ) {
// Selection made. Think about what to do...
return false;
}
//twve.tiddler.updatePreviewerCaret(ta,force);
break;
default :
twve.tiddler.adjustEditBoxHeight(ta);
break;
}
twve.tiddler.updatePreviewerCaret(ta,force);
return true;
},
//}}}
/***
!!!! twve.tiddler.keydown
***/
//{{{
keydown : function (ev) {
ev = ev || window.event;
var ta = this;
var editable = twve.tiddler.cur_editable;
switch ( ev.which ) {
case 13 :
if ( editable.multiLine(ta.value) ) {
if (ev.ctrlKey) {
twve.tiddler.updateText();
return false;
} else if ( twve.tiddler.caret_pos.cur == 0 ) {
twve.tiddler.caret_pos.cur++;
}
} else {
twve.tiddler.updateText();
return false;
}
default :
setTimeout(function(){
twve.tiddler.keydownAfter(ev,ta);
}, 0);
}
},
//}}}
/***
!!!! twve.tiddler.textPasted
***/
//{{{
text_before_paste : null,
selection_at_paste : null,
textPasted : function(ta){
var txt = ta.value;
if ( txt ) {
var len = txt.length
- twve.tiddler.text_before_paste.length
+ twve.tiddler.selection_at_paste.end
- twve.tiddler.selection_at_paste.start;
txt = txt.substring(
twve.tiddler.selection_at_paste.start,
twve.tiddler.selection_at_paste.start+len
);
}
return txt;
},
//}}}
/***
!!!! twve.tiddler.paste
***/
//{{{
paste : function () {
// Something pasted from outside of this tiddler. Need to find
// the paste-in text and replace \n with <br>.
// From http://stackoverflow.com/questions/686995/jquery-catch-paste-input
// I learned that the paste-in text can be obtained in the
// next event loop.
if ( ! twve.tiddler.text_before_paste ) {
var ta = this;
twve.tiddler.text_before_paste = ta.value;
twve.tiddler.selection_at_paste =
twve.tiddler.getSelectionText(ta);
setTimeout(function() {
if ( twve.tiddler.cur_editable.pasteIn )
twve.tiddler.cur_editable.pasteIn(ta);
twve.tiddler.text_before_paste = null;
}, 0);
}
},
//}}}
/***
!!!! twve.tiddler.copyOrCut
***/
//{{{
copyOrCut : function(cut){
var ta = this;
//setTimeout(function() {
if ( twve.tiddler.cur_editable.copyOrCut )
twve.tiddler.cur_editable.copyOrCut(ta,cut);
//}, 0);
},
//}}}
/***
!!!! twve.tiddler.editHandler
***/
//{{{
preEditHandler : null,
editHandler : function(ev,src,title) {
twve.tiddler.updateText();
twve.tiddler.preEditHandler.apply(this,arguments);
return false;
},
//}}}
/***
!!!! twve.tiddler.closeTiddler
***/
//{{{
precloseTiddler : null,
closeTiddler : function () {
twve.tiddler.updateText();
twve.tiddler.focus();
return twve.tiddler.precloseTiddler.apply(this,arguments);
},
//}}}
/***
!!!! twve.tiddler.saveHandler
***/
//{{{
preSaveHandler : null,
saving : false,
saveHandler : function(){
twve.tiddler.saving = true;
var result = twve.tiddler.preSaveHandler.apply(this,arguments);
twve.tiddler.saving = false;
return result;
},
//}}}
/***
!!!! twve.tiddler.cancelHandler
***/
//{{{
preCancelHandler : null,
cancelHandler : function (ev,src,title) {
if(store.isDirty()) {
if(!confirm(this.warning.format([title])))
return false;
}
return twve.tiddler.preCancelHandler.apply(this,arguments);
},
//}}}
/***
!!!! twve.tiddler.saveChanges
***/
//{{{
preSaveChanges : null,
saveChanges : function () {
twve.tiddler.preSaveChanges.apply(this,arguments);
if ( config.macros.upload ) {
config.macros.upload.action();
}
}
};
//}}}
/***
!!! twve.position
***/
//{{{
twve.position = {
//}}}
/***
!!!! twve.position.getPosition
***/
//{{{
getPosition : function(pos){
return typeof pos == 'number'
? (pos < 0 ? 0 : pos)
: ((pos && pos.ndx) ? pos.ndx : 0);
},
//}}}
/***
!!!! twve.position.init
***/
//{{{
init : function(twpos,pos,matched){
switch ( typeof pos ) {
case 'number' :
twpos.ndx = (pos<0?0:pos);
twpos.matched = matched;
break;
case 'object' :
twpos.ndx = (pos.ndx<0?0:pos.ndx);
twpos.matched = pos.matched;
break;
default :
twpos.clear();
break;
}
return twpos;
},
//}}}
/***
!!!! twve.position.ensureValid
***/
//{{{
ensureValid : function(twpos,pos){
// Ensure the validity of the position index, i.e.,
// make sure that twpos.ndx is non-negative.
// The first argument twpos MUST be a twve.position object.
if ( pos ) {
// Copy from pos
twve.position.init(twpos,pos);
}
if ( twpos.ndx < 0 ) twpos.ndx = 0
return twpos;
},
//}}}
/***
!!!! twve.position.create
***/
//{{{
create : function(pos,matched){
var _pos = twve.object.create();
_pos.clear = function() {
_pos.ndx = -1;
_pos.matched = '';
return _pos;
};
_pos.init = function(pos,matched){
return twve.position.init(_pos,pos,matched);
};
_pos.ensureValid = function(pos){
return twve.position.ensureValid(_pos,pos);
};
return _pos.init(pos,matched);
}
};
//}}}
/***
!!! twve.selector
***/
//{{{
twve.selector = {
//}}}
/***
!!!! twve.selector.create
***/
//{{{
create : function(src,exc) {
var sel = twve.object.create();
sel.clear = function() {
sel.include = '';
sel.exclude = '';
return sel;
};
sel.copyFrom = function(src,exc){
if ( typeof exc == 'string' ) {
// The 2nd argument is given, both of them
// are expected to be strings.
sel.include = src;
sel.exclude = exc;
return sel;
} else if ( src.include ) {
// src is a twve.selector object
sel.include = src.include;
sel.exclude = src.exclude;
return sel;
} else if ( src.dom ) {
// src is a twve.element object
sel.include = src.selector.include;
sel.exclude = src.selector.exclude;
return sel;
}
// Otherwise src is expected to be a DOM node.
src = twve.tiddler.twveSelector(src);
if ( src ) {
sel.include = src.include;
sel.exclude = src.exclude;
}
return sel;
};
// include
sel.includeSelector = function(inc){
if ( inc )
sel.include += (sel.include?',':'')+inc;
return sel;
};
// exclude
sel.excludeSelector = function(exc){
if ( exc )
sel.exclude += (sel.exclude?',':'')+exc;
return sel;
};
sel.clear();
return (src || exc) ? sel.copyFrom(src,exc) : sel;
}
};
//}}}
/***
!!! twve.node
***/
//{{{
twve.node = {
//}}}
/***
!!!! twve.node.info
***/
//{{{
info : function(node){
if ( ! node ) return node;
if ( node.nodeType ) return node.nodeName;
var len = node.length;
var msg = '('+len+')[';
--len;
for ( var i=0; i<len; i++ ) {
msg += node[i].nodeName+', ';
}
return msg + node[len].nodeName + ']';
},
//}}}
/***
!!!! twve.node.matches
***/
//{{{
matches : function(node,selector){
if ( ! node || ! selector ) return false;
if ( ! node.nodeType ) {
// Multiple nodes, such as a NodeList.
for ( var i=0,len=node.length; i<len; i++ )
if ( twve.node.matches(node[i],selector) )
return true;
return false;
}
// Tests if a DOM node matches the selector.
var matches = node.matches || node.mozMatchesSelector ||
node.webkitMatchesSelector || node.msMatchesSelector ||
node.oMatchesSelector;
if ( matches ) return matches.call(node,selector);
// None of the above functions are supported, use the parent's
// querySelectorAll to test.
if ( ! node.parentNode ) return false;
var siblings=node.parentNode.querySelectorAll(selector);
if ( ! siblings.length ) return false;
for ( var i=0, n=siblings.length; i<n; i++ )
if ( siblings[i] == node ) return true;
return false;
},
//}}}
/***
!!!! twve.node.closest
***/
//{{{
closest : function(node,selector){
while ( node ) {
if ( twve.node.matches(node,selector) )
return node;
node = node.parentNode;
}
return null;
},
//}}}
/***
!!!! twve.node.parents
***/
//{{{
parents : function(node,selector,filter){
// Collects all parents of node that matches selector or filtered
// by filter function.
var parents = [];
node = node.parentNode;
while ( node ) {
if ( ! selector || twve.node.matches(node,selector) )
if ( ! filter || filter.call(node) )
parents[parents.length] = node;
node = node.parentNode;
}
return parents.length ? parents : null;
},
//}}}
/***
!!!! twve.node.is
***/
//{{{
is : function(node,criteria){
if ( ! node || ! criteria ) return false;
if ( typeof criteria == 'string' ) {
return twve.node.matches(node,criteria);
}
if ( node.nodeType ) {
// node is a single DOM node
if ( criteria.nodeType ) {
// criteria is a single DOM node
return node == criteria;
} else {
// criteria is a collection of DOM nodes
for ( var i=0,len=criteria.length; i<len; i++ )
if ( twve.node.is(node,criteria[i]) ) return true;
}
} else {
// node is a collection of DOM nodes
if ( criteria.nodeType ) {
// criteria is a single DOM node
for ( var i=0,len=node.length; i<len; i++ )
if ( twve.node.is(node[i],criteria) ) return true;
} else {
// criteria is a collection of DOM nodes
for ( var i=0,len=node.length; i<len; i++ )
for ( var j=0,len=criteria.length; j<len; j++ )
if ( twve.node.is(node[i],criteria[j]) )
return true;
}
}
return false;
},
//}}}
/***
!!!! twve.node.not
***/
//{{{
not : function(nodes,toremove){
// Remove some of the nodes out of an array of nodes.
// The 1st argument, nodes, is an array of nodes, while the 2nd
// argument can be one of the followings:
// 1. a CSS string;
// 2. an array of nodes or a NodeList;
// 3. a single DOM node.
if ( typeof toremove == 'string' ) {
// The 2nd argument is a CSS string.
var i = 0;
while ( i < nodes.length )
if ( twve.node.matches(nodes[i],toremove) )
nodes.splice(i,1);
else i++;
return nodes;
}
// The 2nd argument is either a DOM node or an array of DOM
// nodes (or a NodeList).
if ( toremove.nodeType ) {
// The 2nd argument is a DOM node.
var p = nodes.indexOf(toremove);
if ( p > -1 ) nodes.splice(p,1);
} else {
// The 2nd argument is an array of DOM nodes or a NodeList.
for ( var i=0,len=toremove.length; i<len; i++ ) {
var p = nodes.indexOf(toremove[i]);
if ( p > -1 ) nodes.splice(p,1);
}
}
return nodes;
},
//}}}
/***
!!!! twve.node.replace
***/
//{{{
replace : function(newnode,oldnode,parent){
if ( ! parent ) parent = oldnode.parentNode;
if ( newnode.nodeType ) {
// single node
parent.insertBefore(newnode,oldnode);
} else {
// multiple nodes
// In the following codes we keep inserting the first
// node, instead of newnode[i], into the parent, because
// the insertBefore() function removes the inserted node
// out of the NodeList newnode.
while( newnode.length ) {
parent.insertBefore(newnode[0],oldnode);
}
}
parent.removeChild(oldnode);
},
//}}}
/***
!!!! twve.node.scrollBarWidth
***/
//{{{
scw : 0,
scrollBarWidth : function(node){
if ( ! twve.node.scw ) {
if ( ! node ) return 0;
var of = node.style.overflow;
node.style.overflow = 'scroll';
twve.node.scw = node.offsetWidth-node.clientWidth;
node.style.overflow = of;
}
return twve.node.scw;
},
//}}}
/***
!!!! twve.node.adjustPosition
***/
//{{{
adjustPosition : function(pos){
// If the displayArea does not have position:static CSS style,
// the offset positions are incorrectly shifted. Need to correct
// it here.
var display = twve.tiddler.getDisplay();
if ( window.getComputedStyle(display)
.getPropertyValue('position') != 'static' ) {
if ( pos.left !== undefined ) {
pos.left -= display.offsetLeft;
pos.top -= display.offsetTop;
} else {
pos.x -= display.offsetLeft;
pos.y -= display.offsetTop;
}
}
return pos;
},
//}}}
/***
!!!! twve.node.shiftPosition
***/
//{{{
shiftPosition : function(node,left,top){
if ( left === undefined ) return;
var topmissing = top === undefined || top === null;
var postL = (typeof left == 'number'?'px':'');
var postT = (typeof top == 'number'?'px':'');
if ( node.nodeType ) {
// single node
if ( left !== null )
node.style.left = node.offsetLeft+left+postL;
if ( ! topmissing )
node.style.top = node.offsetTop+top+postT;
} else {
// multiple node
for ( var i=0,len=node.length; i<len; i++ ) {
if ( left !== null )
node[i].style.left = node[i].offsetLeft+left+postL;
if ( ! topmissing )
node[i].style.top = node[i].offsetTop+top+postT;
}
}
},
//}}}
/***
!!!! twve.node.setPosition
***/
//{{{
setPosition : function(node,left,top){
if ( left === undefined ) return;
var topmissing = top === undefined || top === null;
var postL = '';
var postT = '';
if ( typeof left == 'number' ) {
left = Math.round(left);
postL = 'px';
}
if ( typeof top == 'number' ) {
top = Math.round(top);
postT = 'px';
}
if ( node.nodeType ) {
// single node
if ( left !== null )
node.style.left = left+postL;
if ( ! topmissing )
node.style.top = top+postT;
} else {
// multiple node
for ( var i=0,len=node.length; i<len; i++ ) {
if ( left !== null )
node[i].style.left = left+postL;
if ( ! topmissing )
node[i].style.top = top+postT;
}
}
},
//}}}
/***
!!!! twve.node.setDimension
***/
//{{{
setDimension : function(node,w,h){
if ( w === undefined ) return;
var hmissing = h === undefined || h === null;
var postW = (typeof w == 'number'?'px':'');
var postH = (typeof h == 'number'?'px':'');
if ( node.nodeType ) {
// single node
if ( w !== null )
node.style.width = w+postW;
if ( ! hmissing )
node.style.height = h+postH;
} else {
// multiple nodes
for(var i=0,len=node.length; i<len; i++){
if ( w !== null )
node[i].style.width = w+postW;
if ( ! hmissing )
node[i].style.height = h+postH;
}
}
},
//}}}
/***
!!!! twve.node.positionShift
***/
//{{{
positionShift : function(){
// ---------------------------------------------------------
// The following few lines of codes are directly copied from
// http://javascript.info/tutorial/coordinates
var body = document.body;
var docElem = document.documentElement;
var scrollTop =
window.pageYOffset ||
docElem.scrollTop ||
body.scrollTop;
var scrollLeft =
window.pageXOffset ||
docElem.scrollLeft ||
body.scrollLeft;
var clientTop =
docElem.clientTop ||
body.clientTop ||
0;
var clientLeft =
docElem.clientLeft ||
body.clientLeft ||
0;
// ---------------------------------------------------------
return twve.node.adjustPosition(
{
left: (scrollLeft - clientLeft),
top: (scrollTop - clientTop)
}
);
},
//}}}
/***
!!!! twve.node.boxInit
***/
//{{{
boxInit : function(src,shift,dest,method){
dest.top = src.top;
dest.right = src.right;
dest.bottom = src.bottom;
dest.left = src.left;
// shift
//if ( ! dest.shift )
dest.shift = function(shift){
// Shift this box by an amount specified in shift.
dest.top += shift.top;
dest.right += shift.left;
dest.bottom += shift.top;
dest.left += shift.left;
return dest;
};
if ( shift ) dest.shift(shift);
if ( method === false ) return dest;
// toString
dest.toString = function(){
return twve.object.toString(dest);
};
// containsX
dest.containsX = function(x){
return x >= dest.left && x <= dest.right;
};
// containsY
dest.containsY = function(y){
return y >= dest.top && y <= dest.bottom;
};
// contains
dest.contains = function(pos){
if ( pos.left )
// The pos should be a box object.
return dest.containsX(pos.left) &&
dest.containsX(pos.right) &&
dest.containsY(pos.top) &&
dest.containsY(pos.bottom);
else
// The pos should be a mouse position object.
return dest.containsX(pos.x) &&
dest.containsY(pos.y);
};
// cloneTo
dest.cloneTo = function(newdest,n,method){
var src = typeof n == 'number'
? dest[n]
: dest;
twve.node.boxInit(src,null,newdest,method);
newdest.width = src.width;
newdest.height = src.height;
return newdest;
};
// clone
dest.clone = function(method){
var cloned = [];
twve.node.boxInit(dest,null,cloned,method);
cloned.width = dest.width;
cloned.height = dest.height;
for ( var i=0, len=dest.length; i<len; i++ ) {
cloned[i] = {};
dest.cloneTo(cloned[i],i,method);
}
return cloned;
};
// End of twve.node.boxInit
return dest;
},
//}}}
/***
!!!! twve.node.box
***/
//{{{
box : function(node,outerw,outerh) {
if ( ! node ) return null;
var box = null;
if (node.nodeType == 3) {
var r = document.createRange();
r.selectNodeContents(node);
box = r.getClientRects();
r.detach();
} else {
if (twve.node.matches(
node,
//twve.tiddler.wrapperSelectors().include
twve.tiddler.twveTranscludedSelectors().include
)) {
box = [];
box[0] = {};
box[0].left = node.offsetLeft;
box[0].top = node.offsetTop;
box[0].width = node.offsetWidth;
box[0].height = node.offsetHeight;
box[0].right = node.offsetLeft+box[0].width;
box[0].bottom = node.offsetTop+box[0].height;
} else if ( node.getClientRects ) {
if ( ! twve.node.isVisible(node) ) return null;
box = node.getClientRects();
} else {
box = [];
box[0] = {};
box[0].left = node.screenX;
box[0].top = node.screenY;
box[0].width = node.innerWidth;
box[0].height = node.innerHeight;
box[0].right = node.screenX+box[0].width;
box[0].bottom = node.screenY+box[0].height;
}
}
//}}}
/***
!!!!! box.initFrom
***/
//{{{
box.initFrom = function(src,shift,dest,method){
return twve.node.boxInit(src,shift,(dest || box),method);
};
//}}}
/***
!!!!! finding the shift, boundingRect, and clientRects
***/
//{{{
// Find the position shift.
var shift = twve.node.positionShift();
// Obtain the outer-most box.
if ( node.getBoundingClientRect ) {
// If the browser provides it, take it.
box.initFrom(node.getBoundingClientRect(),shift);
// Calculate the width and height of the outer-most box.
if ( ! outerw ) {
box.width = node.clientWidth || node.offsetWidth;
box.right = box.left + box.width;
} else {
box.width = box.right - box.left;
}
if ( ! outerh ) {
box.height = node.clientHeight || node.offsetHeight;
box.bottom = box.top + box.height;
} else {
box.height = box.bottom - box.top;
}
} else {
if ( ! box[0] ) return null;
// Otherwise we construct it ourselves.
box.initFrom(box[0]);
for ( var n = 1; n < box.length; n++ ) {
if ( box[n].left < box.left )
box.left = box[n].left;
if ( box[n].right > box.right )
box.right = box[n].right;
if ( box[n].bottom > box.bottom )
box.bottom = box[n].bottom;
}
box.width = box.right - box.left;
box.height = box.bottom - box.top;
box.shift(shift);
}
//}}}
/***
!!!!! End of box.
***/
//{{{
return box;
},
//}}}
/***
!!!! twve.node.cssSize
***/
//{{{
cssSize : function (txt, node) {
if ( ! txt ) {
if ( ! node ) return 0;
return parseFloat(
//node.style.fontSize ||
window.getComputedStyle(node)
.getPropertyValue('font-size')
);
}
// See http://twtable.tiddlyspace.com/#[[Tax%20for%20text%20options]]
// for a description on the change made to the next statement.
// txt = txt.toLowerCase();
txt = new String(txt).toLowerCase().trim();
var unit = txt.substring(txt.length-2);
switch ( unit ) {
case 'px' :
return Math.round(parseFloat(txt));
case 'pt' :
return Math.round(parseFloat(txt)*16/12);
default :
var size = parseFloat(txt);
if ( isNaN(size) ) {
var css = null;
try {
css = window.getComputedStyle(node);
} catch(err) {
node = twve.tiddler.getDisplay();
css = window.getComputedStyle(node);
} finally {
return css
? twve.node.cssSize(
css.getPropertyValue(txt),node
)
: 0;
}
}
if ( unit == 'em' ) {
return Math.round(
size*parseFloat(
window.getComputedStyle(node)
.getPropertyValue(
'font-size'
)
//e.style.fontSize
)*16/12
);
}
if (unit.charAt(1)=='%') {
return Math.round(
size/100*twve.node.width(node,'inner')
);
}
return size;
}
},
//}}}
/***
!!!! twve.node.bgc
***/
//{{{
bgc : function (e,style) {
// Returns the background color of a node e
if ( ! style ) style = window.getComputedStyle(e);
var bgc;
while ( (bgc=style.getPropertyValue(
'background-color'
))=='transparent'
|| bgc == 'rgba(0, 0, 0, 0)'
|| bgc == 'inherit' ) {
e = e.parentNode;
if ( ! e ) {
bgc = '#fff';
break;
}
}
return bgc;
},
//}}}
/***
!!!! twve.node.copyFontColor
***/
//{{{
//copyFontColor : function (dest,src,va) {
copyFontColor : function (dest,src,bgc) {
if ( ! dest || ! src || dest==src ) return;
var srcstyle = window.getComputedStyle(src);
//var deststyle = window.getComputedStyle(dest);
//if ( ! va ) va = srcstyle.getPropertyValue('vertical-align');
dest.style.fontSize=srcstyle.getPropertyValue('font-size');
dest.style.fontFamily=srcstyle.getPropertyValue('font-family');
dest.style.fontStyle=srcstyle.getPropertyValue('font-style');
dest.style.color=srcstyle.getPropertyValue('color');
dest.style.textAlign=srcstyle.getPropertyValue('text-align');
if ( bgc )
dest.style.backgroundColor = twve.node.bgc(src,srcstyle);
//dest.style.verticalAlign=va;
},
//}}}
/***
!!!! twve.node.wikify
***/
//{{{
wikify : function(txt,node,children) {
// Wikifies txt into node if given, or into a newly created
// node if not. Returns the node being wikified.
if(! node) {
var board = twve.tiddler.getPreviewer()
.querySelector('div.board');
board.innerHTML = '';
wikify(txt,board);
return board.childNodes;
} else {
node.innerHTML = '';
wikify(txt,node);
return children ? node.childNodes : node;
}
},
//}}}
/***
!!!! twve.node.wikifyAndPrepare
***/
//{{{
wikifyAndPrepare : function ( txt, board ) {
var node = twve.node.wikify(txt,board,true);
if ( twve.tiddler.cur_editable &&
twve.tiddler.cur_editable.isWrapper() ) {
var twwrap = twve.tiddler.cur_editable.clone();
twwrap.dom = board;
twwrap.tiddler = {text: txt};
twwrap.waitAndPrepare();
}
return node;
},
//}}}
/***
!!!! twve.node.isVisible
***/
//{{{
isVisible : function(node){
if ( ! node ) return false;
if ( node.nodeType == 3 ) return true;
return node.style
? node.style.display != 'none'
: true;
},
//}}}
/***
!!!! twve.node.hide
***/
//{{{
hide : function(node){
if ( ! node ) return;
if ( twve.object.isCollection(node) )
for ( var i=0,len=node.length; i<len; i++) {
node[i].style.display = 'none';
//node[i].style.visibility = 'hidden';
}
else
node.style.display = 'none';
//else
// node.style.visibility = 'hidden';
},
//}}}
/***
!!!! twve.node.show
***/
//{{{
show : function(node,start,len){
if ( ! node ) return;
if ( twve.object.isCollection(node) ) {
if ( typeof len != 'number' || len > node.length )
len = node.length;
if ( typeof start != 'number' || start < 0 )
start = 0;
for ( var i=start; i<len; i++ ) {
node[i].style.display = '';
//node[i].style.visibility = 'visible';
}
} else
node.style.display = '';
//node.style.visibility = 'visible';
},
//}}}
/***
!!!! twve.node.getMargin
***/
//{{{
getMargin : function(node,which,css){
// Get the margin width of node. The 2nd argument which can be
// one of the followings:
// 1. one of 'left', 'top', 'right', and 'bottom'.
// 2. 'horizontal' -- sum of 'left' and 'right' margins.
// 3. 'vertical' -- sum of 'top' and 'bottom' margins.
if ( ! css ) css = window.getComputedStyle(node);
var m1, m2;
var ch = which ? which.charAt(0) : '';
switch ( ch ) {
case 'h' :
case 'H' : // horizontal = left + right
m1 = node.style.marginLeft ||
css.getPropertyValue('margin-left');
m1 = m1 ? parseInt(m1) : 0;
m2 = node.style.marginRight ||
css.getPropertyValue('margin-right');
m2 = m2 ? parseInt(m2) : 0;
return m1 + m2;
case 'v' :
case 'V' : // vertical = top + bottom
m1 = node.style.marginTop ||
css.getPropertyValue('margin-top');
m1 = m1 ? parseInt(m1) : 0;
m2 = node.style.marginBottom ||
css.getPropertyValue('margin-bottom');
m2 = m2 ? parseInt(m2) : 0;
return m1 + m2;
case 'l' :
case 'L' : // left
m1 = node.style.marginLeft ||
css.getPropertyValue('margin-left');
return m1 ? parseInt(m1) : 0;
break;
case 't' :
case 'T' : // top
m1 = node.style.marginTop ||
css.getPropertyValue('margin-top');
return m1 ? parseInt(m1) : 0;
break;
case 'r' :
case 'R' : // right
m2 = node.style.marginRight ||
css.getPropertyValue('margin-right');
return m2 ? parseInt(m2) : 0;
break;
case 'b' :
case 'B' : // bottom
m2 = node.style.marginBottom ||
css.getPropertyValue('margin-bottom');
return m2 ? parseInt(m2) : 0;
break;
}
return 0;
},
//}}}
/***
!!!! twve.node.getPadding
***/
//{{{
getPadding : function(node,which,css){
// Get the padding width of node. The 2nd argument which can be
// one of the followings:
// 1. one of 'left', 'top', 'right', and 'bottom'.
// 2. 'horizontal' -- sum of 'left' and 'right' paddings.
// 3. 'vertical' -- sum of 'top' and 'bottom' paddings.
if ( ! css ) css = window.getComputedStyle(node);
var m1, m2;
var ch = which ? which.charAt(0) : '';
switch ( ch ) {
case 'h' :
case 'H' : // horizontal = left + right
m1 = node.style.paddingLeft ||
css.getPropertyValue('padding-left');
m1 = m1 ? parseInt(m1) : 0;
m2 = node.style.paddingRight ||
css.getPropertyValue('padding-right');
m2 = m2 ? parseInt(m2) : 0;
return m1 + m2;
case 'v' :
case 'V' : // vertical = top + bottom
m1 = node.style.paddingTop ||
css.getPropertyValue('padding-top');
m1 = m1 ? parseInt(m1) : 0;
m2 = node.style.paddingBottom ||
css.getPropertyValue('padding-bottom');
m2 = m2 ? parseInt(m2) : 0;
return m1 + m2;
case 'l' :
case 'L' : // left
m1 = node.style.paddingLeft ||
css.getPropertyValue('padding-left');
return m1 ? parseInt(m1) : 0;
break;
case 't' :
case 'T' : // top
m1 = node.style.paddingTop ||
css.getPropertyValue('padding-top');
return m1 ? parseInt(m1) : 0;
break;
case 'r' :
case 'R' : // right
m2 = node.style.paddingRight ||
css.getPropertyValue('padding-right');
return m2 ? parseInt(m2) : 0;
break;
case 'b' :
case 'B' : // bottom
m2 = node.style.paddingBottom ||
css.getPropertyValue('padding-bottom');
return m2 ? parseInt(m2) : 0;
break;
}
return 0;
},
//}}}
/***
!!!! twve.node.width
***/
//{{{
width : function(node,which,margin){
// Returns the width of the 1st argument node. The 2nd argument
// specifies 'inner', 'normal', or 'outer' width to return.
// The 'normal' width (default) is the clientWidth, the 'inner'
// width is the clientWidth less the left- and right- paddings,
// while the 'outer' is the offsetWidth.
// The 3rd argument, margin, is a boolean value telling this
// function whether to include the left and right margins.
// It is effective only when retrieving the 'outer' width.
// If the 2nd argument is omitted, 'normal' width is returned.
var w = 0;
which = which ? which.toLowerCase().substring(0,3) : '';
var outer = which == 'out';
var hidden = ! twve.node.isVisible(node);
if ( hidden ) twve.node.show(node);
if ( outer ) {
// outer width
w = node.offsetWidth;
if ( margin )
w += twve.node.getMargin(node,'horizontal');
} else {
w = node.clientWidth;
if ( which == 'inn' )
// inner width
w -= twve.node.getPadding(node,'horizontal');
}
if ( hidden ) twve.node.hide(node);
return w;
},
//}}}
/***
!!!! twve.node.height
***/
//{{{
height : function(node,which,margin){
// Returns the height of the 1st argument node. The 2nd argument
// specifies 'inner', 'normal', or 'outer' height to return.
// The 'normal' height (default) is the clientHeight, the 'inner'
// height is the clientHeight less the top- and bottom-paddings,
// while the 'outer' height is the offsetHeight.
// The 3rd argument, margin, is a boolean value telling this
// function whether to include the top and bottom margins. It is
// effective only when retrieving the 'outer' height.
// If the 2nd argument is omitted, 'normal' height is returned.
var h = 0;
which = which ? which.toLowerCase().substring(0,3) : '';
var outer = which == 'out';
var hidden = ! twve.node.isVisible(node);
if ( hidden ) twve.node.show(node);
if ( outer ) {
h = node.offsetHeight;
if ( margin )
h += twve.node.getMargin(node,'vertical');
} else {
h = node.clientHeight;
if ( which == 'inn' )
// inner height
h -= twve.node.getPadding(node,'vertical');
}
if ( hidden ) twve.node.hide(node);
return h;
},
//}}}
/***
!!!! twve.node.contains
***/
//{{{
contains : function(w0,w1,how){
// Tests if w0 contains w1, hierarchically or geometrically.
// The first two arguments, w0 and w1, are both DOM nodes.
// The last argument, how, is a string specifying how to do
// the test. If it is given 'geo', or any string starting with
// 'geo', the test is done geometrically, i.e., the function
// returns true if the bounding rect of w0 contains that of w1,
// regardless of their hierarchical relation in the DOM tree.
// If, however, the last argument is given any other string or
// left undefined, the function returns true if w0 is one of
// the parents of w1 in the DOM tree.
if ( how && how.toLowerCase().substring(0,3)=='geo' ) {
// Geometrical test.
var box = twve.node.box(w0,true,true);
if ( ! box ) return false;
if ( w1.x ) {
// Tests if w0 contains a position w1
return box ? box.contains(w1) : false;
}
// Tests if w0 contains another twve node or DOM node
if ( w1.dom ) w1 = w1.dom;
return box.contains(twve.node.box(w1));
} else {
// Hierarchical test.
while ( (w1 = w1.parentNode) )
if ( w0 == w1 ) return true;
return false;
}
},
//}}}
/***
!!!! twve.node.index
***/
//{{{
index : function(node){
// Return the index of node within its siblings.
var siblings = node.parentNode.childNodes;
for ( var i=0,len=siblings.length; i<len; i++ )
if ( siblings[i] == node ) return i;
return -1;
},
//}}}
/***
!!!! twve.node.create
***/
//{{{
create : function(src){
var node = twve.object.create();
// clear
node.clear = function(){
node.dom = null;
return node;
};
// copy from
node.copyFrom = function(obj){
node.dom = obj.dom;
return node;
};
// is
node.is = function(criteria){
return criteria && criteria.dom
? node.dom == criteria.dom
: twve.node.is(node.dom,criteria);
};
// not
node.not = function(toremove){
return twve.node.not(node.dom,toremove);
};
// hide
node.hide = function(){
twve.node.hide(node.dom);
return node;
};
// show
node.show = function(pos){
twve.node.show(node.dom);
if ( pos )
twve.node.setPosition(node.dom,pos.left,pos.top);
return node;
};
// isVisible
node.isVisible = function(){
return twve.node.isVisible(node.dom);
};
// width
node.width = function(which,margin){
return twve.node.width(node.dom,which,margin);
};
// height
node.height = function(){
return twve.node.height(node.dom);
};
// get element
node.getElement = function(){
return node.dom;
};
// box
node.box = function(){
return twve.node.box(node.getElement());
};
// contains
node.contains = function(elem,how){
return twve.node.contains(node.dom,elem,how);
};
// add
node.add = function(newnode,where){
if ( node.dom.nodeType ) node.dom = [node.dom];
if ( where=='begin' )
node.dom.unshift(newnode.dom || newnode);
else
node.dom[node.dom.length]=(newnode.dom || newnode);
return node;
};
// creation codes
node.clear();
if ( src )
switch ( typeof src ) {
case 'string' :
node.dom = document.createElement(src);
break;
case 'object' :
if ( src.dom )
node.copyFrom(src);
else if ( src.nodeName )
node.dom = src;
break;
}
// End of node
return node;
}
};
//}}}
/***
!!! twve.nodeList
***/
//{{{
twve.nodeList = {
//}}}
/***
!!!! twve.nodeList.contains
***/
//{{{
contains : function(nodes,node){
if ( typeof node == 'string' ) {
// Search for a node type.
for(var i=0,len=nodes.length; i<len; i++){
if (nodes[i].nodeName == node)
return true;
}
} else {
// Seaerch for a particular DOM node.
for(var i=0,len=nodes.length; i<len; i++){
if (nodes[i] == node)
return true;
}
}
return false;
},
//}}}
/***
!!!! twve.nodeList.toArray
***/
//{{{
toArray : function(node){
// The following lines of codes are copied from the reply posted
// by Thai in
// http://stackoverflow.com/questions/3199588/fastest-way-to-convert-javascript-nodelist-to-array
var twnodelist = [];
if ( node.nodeType )
// Single node
twnodelist[0] = node;
else
// Multiple nodes
for (var i=0,len=node.length;i<len;i++)
twnodelist[i] = node[i];
return twnodelist;
},
//}}}
/***
!!!! twve.nodeList.querySelectorAll
***/
//{{{
querySelectorAll : function(parent,selector){
if ( parent.nodeType ) {
// Single parent
return twve.nodeList.toArray(
parent.querySelectorAll(selector)
);
}
// Multiple parent
var w = null;
for (var i=0,len=parent.length; i<len; i++) {
var w1 = twve.nodeList.toArray(
parent[i].querySelectorAll(selector)
);
w = w ? w.concat(w1) : w1;
}
return w;
}
};
//}}}
/***
!!! twve.button
***/
//{{{
twve.button = {
isSystemButton : function (elem) {
return twve.node.matches(
elem,
'svg.SVGAnimatedString, path.SVGAnimatedString'
);
},
//}}}
/***
!!!! twve.button.isActive
***/
//{{{
isActive : function ( btn ) {
var opacity = btn.style
? btn.style.opacity
: window.getComputedStyle(btn)
.getPropertyValue('opacity');
return opacity == '1';
},
//}}}
/***
!!!! twve.button.activate
***/
//{{{
activate : function ( btn, tf ) {
return btn.style.opacity = (tf?1:0.4);
},
//}}}
/***
!!!! twve.button.create
***/
//{{{
create : function (place, label, tooltip, callback, id) {
var btn = twve.node.create(
createTiddlyButton(place,label,tooltip,callback)
);
// isActive
btn.isActive = function (){
return twve.button.isActive(btn);
};
// activate
btn.activate = function(tf){
return twve.button.activate(btn.dom,tf);
};
// creation codes
btn.dom.setAttribute('id','twveTbtn'+(id?id:label));
btn.dom.style.position = 'absolute';
btn.dom.style.zIndex = 1;
btn.dom.style.textAlign = 'center';
btn.dom.addEventListener(
'mouseenter',
function(ev){
if ( btn.mouseenter )
btn.mouseenter.call(this,ev || window.event);
}
);
btn.dom.addEventListener(
'mouseleave',
function(ev){
if ( btn.mouseleave )
btn.mouseleave.call(this,ev || window.event);
}
);
btn.dom.addEventListener(
'click',
function(ev){
if ( btn.click )
btn.click.call(this,ev || window.event);
}
);
// end of btn
return btn;
},
//}}}
/***
!!!! twve.button.createDelete
***/
//{{{
createDelete : function ( tooltip, callback, id ) {
return twve.button.create(null, '⊗',tooltip,callback,id);
}
};
//}}}
/***
!!! twve.menu
***/
//{{{
twve.menu = {
//}}}
/***
!!!! twve.menu.create
***/
//{{{
create : function(root,autohide){
// Create twve.menu object that will be attached to root, which
// can be an object of one of the following types:
// 1. twve.button,
// 2. twve.editable, or
// 3. twve.element.
var menu = twve.node.create('div');
// hasItem
menu.findItem = function(label){
if ( menu.items )
for ( var i = 0; i < menu.items.length; i++ ) {
var item = menu.items[i];
if ( item.label == label ) return item;
}
return null;
};
// addItem
menu.addItem = function(label,tooltip){
// Adds one item label to this menu. Returns the item just
// added.
if ( ! menu.items ) menu.items = [];
var item = twve.button.create(
createTiddlyElement(menu.dom,'li'),
null,
tooltip
);
item.dom.style.whiteSpace = 'nowrap';
item.label = label;
twve.node.wikify(label,item.dom);
item.mouseenter = function(){
var pos = twve.object.create();
pos.left = item.dom.offsetLeft + menu.dom.offsetLeft;
pos.top = item.dom.offsetTop + menu.dom.offsetTop;
if ( item.submenu ) {
item.submenu.show(pos,'left');
}
};
item.mouseleave = function(ev){
var pos = twve.tiddler.mousePosition(ev);
if ( item.submenu
&& ! item.submenu.contains(pos) )
item.submenu.hide();
};
menu.items[menu.items.length] = item;
menu.dom.removeAttribute('adjusted');
return item;
};
// addMenu
menu.addMenu = function(label,handler){
var item = menu.findItem(label);
if ( ! item )
item = menu.addItem(label);
if ( ! item.submenu ) {
item.submenu = twve.menu.create(item,true);
if ( handler )
handler.call(this,item.submenu.dom);
}
return item.submenu;
};
// contains
var preContains = menu.contains;
menu.contains = function(pos){
if ( preContains.call(this,pos,'geo') )
return true;
if ( menu.items )
for (var i=menu.items.length-1; i>=0; i--)
if ( menu.items[i].submenu
&& menu.items[i].submenu.contains(pos,'geo') )
return true;
return false;
};
// hideRoot
menu.hideRoot = function(){
menu.root.hide();
return menu;
};
// hide
menu.hide = function(hideroot){
if ( hideroot ) menu.hideRoot();
twve.node.hide(menu.dom);
return menu;
};
// adjustPosition
menu.adjustPosition = function(pos,where,w,h,ref){
if ( ! ref ) ref = menu;
if ( ! w ) w = ref.width('outer',true);
where = where ? where.toLowerCase() : '';
if ( where.indexOf('left')>=0 ) pos.left -= w;
if ( ! h ) h = ref.height('outer',true);
if ( where.indexOf('top')>=0 )
pos.top -= h;
else if ( where.indexOf('bottom')>=0 )
pos.top += h;
else
pos.top++;
return pos;
};
// showRoot
menu.showRoot = function(pos,where){
var menupos = twve.object.create();
menupos.left = pos.left;
menupos.top = pos.top;
menu.adjustPosition(menupos,where,null,null,menu.root);
menu.root.show(menupos);
return menupos;
};
// adjustDim
menu.adjustDim = function(){
if ( menu.items ) {
var w = 0;
var h = 0;
for ( var i=0; i<menu.items.length; i++ ){
var iw = twve.node.width(
menu.items[i].dom,'outer',true
);
if ( iw > w ) w = iw;
twve.node.setPosition(menu.items[i].dom,null,h);
h += twve.node.height(
menu.items[i].dom,'outer',true
);
}
twve.node.setDimension(
menu.dom,w,
h + (config.browser.isOpera ||
config.browser.isChrome
? twve.node.scrollBarWidth(menu.dom)+1
: 0)
);
}
menu.dom.setAttribute('adjusted','true');
return menu;
};
// show
menu.show = function(pos,where){
twve.node.show(menu.dom);
if ( ! menu.dom.getAttribute('adjusted') ) {
menu.adjustDim();
}
var w = menu.width('outer',true);
if ( pos ) {
var menupos = twve.object.create();
menupos.left = pos.left+4;
menupos.top = pos.top;
if ( w > pos.left ) {
// Left side is too narrow to put the menu, check
// the right side.
var rw = menu.root.width('outer',true);
var right = twve.node.box(window).width;
if ( w+rw+menupos.left < right ) {
// Right side is enough, put it there.
where = 'right';
menupos.left += rw-8;
} else {
// Right side is also not enough, put it in the
// larger side.
if ( right - w > pos.left ) {
// Right side is larger
twve.node.setDimension(
menu.dom,(w = right - w)
);
where = 'right';
menupos.left += rw-8;
} else {
// Left side is larger
twve.node.setDimension(
menu.dom,(w = pos.left)
);
}
}
}
var h = twve.node.cssSize(
//menu.dom.style.fontSize
window.getComputedStyle(menu.dom)
.getPropertyValue('font-size')
)*20;
if ( menu.height('outer',true) > h )
twve.node.setDimension(menu.dom,null,h);
menu.adjustPosition(menupos,where,w,h);
twve.node.setPosition(
menu.dom,menupos.left,menupos.top
);
}
return menu;
};
// begin of initialization
var parent = twve.tiddler.getDisplay();
if ( ! root.mouseenter ) {
// root.mouseenter
root.mouseenter = function(){
var pos = twve.object.create();
pos.left = this.offsetLeft;
pos.top = this.offsetTop;
menu.show(pos,'left');
return menu;
};
// root.click
root.click = function(){
menu.show();
return menu;
};
parent.appendChild(root.dom);
}
menu.root = root;
parent.appendChild(menu.dom);
menu.dom.style.overflow = 'auto';
menu.dom.style.position = 'absolute';
menu.dom.classList.add('popup');
menu.hide();
if ( autohide )
menu.dom.addEventListener(
'mouseleave',
function(){twve.node.hide(this);}
);
else
menu.dom.addEventListener(
'mouseleave',
function(ev){
if ( menu.mouseleave )
menu.mouseleave.call(this,ev || window.event);
}
);
// end of menu
return menu;
}
};
//}}}
/***
!!! twve.editable
***/
//{{{
twve.editable = {
//}}}
/***
!!!! twve.editable.create
***/
//{{{
create : function(src){
var editable = twve.node.create();
// clear
//preClear = editable.clear;
editable.clear = function(){
//preClear.apply(this);
// title of the direct wrapper
editable.wrapper_title = '';
// tiddler containing this element
editable.tiddler = null;
// Array of DOm object representing all the wrappers
// related to this element, each of the wrappers contains
// one of the copies of this element. See twve.wrapper for
// details of the system wrappers.
editable.wrapper = null;
// The starting and ending information of the element.
if(editable.start){
editable.start.clear();
editable.end.clear();
}else{
editable.start = twve.position.create();
editable.end = twve.position.create();
}
return editable;
};
// copy from
var preCopyFrom = editable.copyFrom;
editable.copyFrom = function(editablex){
preCopyFrom.apply(this,arguments);
editable.wrapper_title = editablex.wrapper_title;
editable.tiddler = editablex.tiddler;
editable.wrapper = editablex.wrapper;
editable.start.copyFrom(editablex.start);
editable.end.copyFrom(editablex.end);
return editable;
};
// created
editable.created = function(src,txt,start,dir){
editable.clear();
return src
? src.dom
? editable.copyFrom(src)
: editable.setElement(src,txt,start,dir)
: editable;
};
// isEditable
editable.isEditable = function(elem){
return editable.is(elem)
|| editable.contains(elem);
};
// beingEdited
editable.beingEdited = function(){
return editable.is(twve.tiddler.cur_editable);
};
// clone
editable.clone = function(){
return twve.tiddler.cloneEditable(editable);
};
// multi line
editable.multiLine = function (txt) {
return (txt && txt.indexOf('\n')>=0);
};
// twveSelector
editable.twveSelector = function(selector,which){
return twve.tiddler.twveSelector(
editable.dom,selector,which
);
};
// is wrapper?
editable.isWrapper = function(){
return false;
};
// direct wrapper
editable.directWrapper = function(){
// Find the direct wrapper of the editable from the
// registered wrappers.
// See twve.tiddler.registerWrapper() for a list of system
// wrappers.
return twve.tiddler.directWrapper(editable.dom,true);
};
// folded wrapper
editable.foldedWrapper = function(){
var twwrap = editable.directWrapper();
return twwrap.isVisible()
? null
: twwrap;
};
// isSystemShadow
editable.isSystemShadow = function(){
return (editable.wrapper_title &&
editable.wrapper_title.indexOf('shadow')<0)
? store.isShadowTiddler(editable.wrapper_title)
: editable.wrapper_title;
};
// findWrappers
editable.findWrappers = function(){
if ( ! editable.wrapper ) {
editable.wrapper = twve.tiddler.wrapperFromTitle(
editable.wrapper_title
);
if ( ! editable.wrapper ) editable.wrapper = [];
}
return editable.wrapper;
};
//}}}
/***
!!!!! editable.setElement
***/
//{{{
editable.setElement = function (elem) {
// Sets element elem (DOM node) to this twve.editable
// object.
// If elem is already set before, this method returns null
// (meaning no further process is needed). Otherwise it
// returns this editable itself.
if ( elem == editable.dom ) return null;
editable.dom = elem;
if ( ! editable.directWrapper() ) return editable;
// Find the wrapper title if not yet.
if( ! editable.wrapper_title ) {
var dw = editable.directWrapper();
if ( dw && dw.titleOfWrapper )
editable.wrapper_title = dw.titleOfWrapper();
}
// Find tiddler and all copies of wrappers if not
// a shadow tiddler
if ( editable.isSystemShadow() ) {
editable.tiddler = null;
editable.wrapper = null;
editable.wrapper_title =
'shadowd -- ' + editable.wrapper_title;
} else {
if ( ! editable.tiddler ) {
editable.tiddler = twve.tiddler.get(
editable.wrapper_title
);
}
}
return editable;
};
//}}}
/***
!!!!! editable.changed
***/
//{{{
editable.changed = function(param){
// This is the event handler in twve.editable.
// See http://twve.tiddlyspace.com/#%5B%5BEvent%20handler%20--%20element_changed%5D%5D
// for more information.
// This handler is called when an element is changed by the
// user. Other plugins may override this one to perform
// further operations, such as recalculating the table,
// after changes made.
// This handler returns the param.text, which contained the
// updated text of the element.
// If other plugins further change the content of the
// element, they should put it back to param.text and
// return it.
return param.text;
};
//}}}
/***
!!!!! editable.wrapperText
***/
//{{{
editable.wrapperText = function(){
return editable.dom
? editable.directWrapper().getText()
: (editable.tiddler
? editable.tiddler.text
: '');
};
//}}}
/***
!!!!! editable.ensureValid
***/
//{{{
editable.ensureValid = function(ndx,txt){
if ( ndx <= 0 ) return 0;
if ( ! txt ) txt = editable.wrapperText();
var max = txt.length;
return ndx >= max ? max : ndx;
};
//}}}
/***
!!!!! editable.setText
***/
//{{{
editable.setText = function (newtxt,open,close) {
var txt = editable.wrapperText();
if ( typeof open != 'number' ) open = editable.start.ndx;
if ( typeof close != 'number' ) close = editable.end.ndx;
open = editable.ensureValid(open,txt);
close = editable.ensureValid(close,txt);
// Adjust the open/close indexes according to the existance
// of leading/ending newlines.
if (txt.charAt(editable.start.ndx)=='\n'){
// If this editable starts from a \n, forward the
// opening index by one to skip it.
open++;
if ( close < editable.end.ndx )
// If we are changing only part of this editable,
// we should also forward the closing index.
close++;
}
if ( close == editable.end.ndx &&
txt.charAt(close-1) == '\n' )
// If this editable ends at a \n, and we are changing
// the whole editable, move the closing index backward
// by one to keep the ending \n.
close--;
var dlen = 0;
if ( ! newtxt ) {
// If we are removing a piece of text,
if ( close > open + 1 &&
txt.charAt(open)=='\n' &&
txt.charAT(close-1)=='\n' ) {
// and that piece of text contains more than one
// newline symbols, forward the open index to keep
// one of them (the opening one).
open++;
}
// The user wants to remove the existing text.
txt = txt.substring(0,open) + txt.substring(close);
// change in length of text
dlen = -(close-open);
} else {
// Set the wiki text of this editable object.
dlen = newtxt.length - (close-open);
txt = txt.substring(0,open)
+ newtxt
+ txt.substring(close);
}
if ( dlen ) {
// The text length has changed, update the ending index
// of this editable.
editable.end.ndx += dlen;
}
// update wrapper text
editable.directWrapper().setText(txt,dlen);
//twve.tiddler.saveText(editable,txt);
// Return the newly set part of text.
return newtxt;
};
//}}}
/***
!!!!! editable.substring
***/
//{{{
editable.substring = function(txt,open,close){
if ( close - open > 1 ) {
// There are more than 1 characters.
if ( txt.charAt(open) == '\n' )
// If the current text contains a leading newline,
// move the opening index forward by one to exclude it.
open++;
if ( txt.charAt(close-1) == '\n' )
// If the current text contains an ending newline,
// move the closing index backward by one to exclude it.
close--;
}
// Get the wiki text of this editable object.
return txt.substring(open,close);
};
//}}}
/***
!!!!! editable.getText
***/
//{{{
editable.getText = function () {
return editable.tiddler
? editable.substring(
editable.wrapperText(),
editable.start.ndx,
editable.end.ndx
)
: '';
};
//}}}
/***
!!!!! editable.focusEditBox
***/
//{{{
editable.focusEditBox = function(ta,txt){
if ( txt ) ta.select();
else ta.focus();
twve.tiddler.initCaretPos();
return editable;
};
//}}}
/***
!!!!! editable.prepareEditBox
***/
//{{{
editable.prepareEditBox = function(ta,txt,eb,talign,fs){
ta.style.position = 'absolute';
ta.style.padding = '0';
ta.style.margin = '0';
ta.style.overflow = 'auto';
ta.style.textAlign = talign;
ta.style.fontFamily = 'courier';
ta.style.fontSize = fs+'px';
twve.node.setPosition(ta,eb.left-1,eb.top-1);
twve.node.setDimension(ta,eb.width,eb.height);
ta.setAttribute('scrH0',eb.height);
ta.setAttribute('spellcheck','true');
ta.setAttribute('cancel','false');
ta.setAttribute(
'title',
'('+(editable.multiLine(txt)
?'Ctrl-'
:'')+'ENTER=accept, ESC=cancel)'
);
ta.addEventListener(
'keydown',
twve.tiddler.keydown
);
ta.addEventListener(
'paste',
twve.tiddler.paste
);
ta.addEventListener(
'copy',
function(){
twve.tiddler.copyOrCut();
}
);
ta.addEventListener(
'cut',
function(){
twve.tiddler.copyOrCut(true);
}
);
};
//}}}
/***
!!!!! editable.previewEditBox
***/
//{{{
editable.previewEditBox = function(ta,elem,display){
// Copy font attributes
twve.node.copyFontColor(
twve.tiddler.getPreviewer(display),elem,true
);
// Output to previewer
return twve.tiddler.previewEditBox(ta,null);
};
//}}}
/***
!!!!! editable.editText
***/
//{{{
editable.editText = function(ev,txt,elem) {
if ( ! editable.tiddler ) return null;
var eb;
if ( ! elem ) {
elem = editable.getElement();
eb = twve.tiddler.focusBox();
//|| editable.box('edit',ev,elem);
} else {
eb = twve.node.box(elem);
}
if ( ! eb ) return null;
twve.tiddler.cur_editable = editable;
if ( txt === undefined ) txt = editable.getText();
var ta = document.createElement('textarea');
ta.value = txt;
ta.defaultValue = txt;
var css = window.getComputedStyle(elem);
var lh = twve.node.cssSize(
css.getPropertyValue('line-height')
);
var fs = twve.node.cssSize(
css.getPropertyValue('font-size')
);
if ( eb.height < lh ) eb.height = lh;
var display = twve.node.closest(
elem,
twve.tiddler.displaySelector()
);
display.appendChild(ta);
editable.prepareEditBox(
ta,txt,eb,css.getPropertyValue('text-align'),fs
);
twve.node.setDimension(ta,null,0);
var scrH = ta.scrollHeight;
if ( scrH < eb.height ) scrH = eb.height;
else eb.height = scrH;
twve.node.setDimension(ta,null,scrH+1);
twve.tiddler.setEditBox([ta]);
editable.focusEditBox(ta,txt,ev,elem);
if ( editable.previewEditBox(ta,elem,display) ) {
var minw = fs*config.options.txttwveCoreMinEditWidth;
twve.node.setDimension(
ta,(eb.width < minw ? minw : eb.width)
);
}
return ta;
};
//}}}
/***
!!!!! editable.updateText
***/
//{{{
editable.updateText = function(txt,refreshed){
// Sets the modified text back to this editable object.
// NOTE: the argument txt is ALWAYS an array of strings.
// This is designed for table cells that span over multiple
// rows/columns. For a column-spanned cell, txt is a single
// array of strings. For a row-spanned cell, txt is a
// double array of strings. For other elements, txt is an
// array of one string (so the modified text would be
// txt[0]).
editable.setText(txt[0]);
return editable.refreshAll(
editable.getText(),null,refreshed
);
};
//}}}
/***
!!!!! editable.hasClass
***/
//{{{
editable.hasClass = function ( cstr ) {
return editable.dom.classList &&
editable.dom.classList.contains(cstr);
};
//}}}
/***
!!!!! editable.saveText
***/
//{{{
editable.saveText = function(newtext,newtitle){
return twve.tiddler.saveText(editable,newtext,newtitle);
};
//}}}
/***
!!!!! end of editable
***/
//{{{
return editable.created(src);
}
};
//}}}
/***
!!! twve.element
***/
//{{{
twve.element = {
//}}}
/***
!!!! twve.element.create
***/
//{{{
create : function(elem,txt,start,dir) {
var twelem = twve.editable.create();
//var preClear = twelem.clear;
twelem.clear = function(){
//preClear.apply(this);
// direct wrapper of the dom
twelem.direct_wrapper = null;
// rendering index
twelem.rIndex = -1;
// defining index
twelem.dIndex = -1;
// opening and closing signatures
twelem.tags = null;
return twelem;
};
// copyFrom
var preCopyFrom = twelem.copyFrom;
twelem.copyFrom = function(elem){
preCopyFrom.apply(this,arguments);
twelem.direct_wrapper = elem.direct_wrapper;
twelem.rIndex = elem.rIndex;
twelem.dIndex = elem.dIndex;
twelem.tags = elem.tags;
return twelem;
};
// wiki tags
twelem.markupTags = function(){
return twve.tiddler.markupTags(twelem.dom);
};
// direct wrapper
var preDirectWrapper = twelem.directWrapper;
twelem.directWrapper = function () {
// Find the direct wrapper of this element if not yet.
if ( ! twelem.direct_wrapper )
twelem.direct_wrapper =
preDirectWrapper.apply(this,arguments);
// Return the direct wrapper.
return twelem.direct_wrapper;
};
//}}}
/***
!!!!! twelem.renderedCopy
***/
//{{{
twelem.renderedCopy = function(w) {
// Find the rendered copy of this twelem in the
// wrapper w (DOM node).
var dw = twelem.directWrapper();
if ( ! dw ) return null;
dw = dw.dom;
if ( dw == w ) {
// Searching in the direct wrapper, the rendered copy
// is just this twve.element object.
return twelem;
}
if ( twve.node.contains(w,dw) ) {
// The wrapper w contains the direct wrapper, meaning
// it's the case of self-inclusion or folded section,
// exclude it.
return null;
}
// We are searching a transcluded copy of this twelem.
// If neither of this twelem or that copy to be searched in w
// is transcluded (non-transcluded or normally transcluded),
// their rendering index shall be the same and there is no need
// to re-find it. If, however, either one of the two is partially
// transcluded, their rendering indexes are not the same
// in general, we need to re-find it in w.
var rndx = -1;
if ( twve.text.tiddlerSection(twelem.wrapper_title)
|| twve.text.tiddlerSection(
twve.tiddler.titleOfWrapper(w)
)
) {
// One of the copies is partially transcluded.
// Clear the rendering index (by setting twelem.rIndex to -1)
// so the twve.wrapper.renderedElement() function will
// re-find it.
rndx = twelem.rIndex;
twelem.rIndex = -1;
}
var the_copy = twve.wrapper.renderedElement(twelem,w);
if ( rndx > -1 )
// We had cleared the rendering index of this object
// to re-find it in w. Restore it here.
twelem.rIndex = rndx;
return the_copy;
};
//}}}
/***
!!!!! twelem.removeSelf
***/
//{{{
twelem.removeSelf = function(){
twelem.dom.parentNode.removeChild(twelem.dom);
twve.tiddler.focusElem(null);
return twelem;
};
//}}}
/***
!!!!! twelem.replaceWith
***/
//{{{
twelem.replaceWith = function(newnode,oldnode){
twve.node.replace(newnode,(oldnode||twelem.dom));
return twelem;
};
//}}}
/***
!!!!! twelem.filter
***/
//{{{
twelem.filter = function(node,selector){
if ( ! selector )
selector = twelem.twveSelector(null,'rendering').include;
if ( node.nodeType )
return twve.node.matches(node,selector) ? node : null;
var filtered = [];
for ( var i=0,len=node.length; i<len; i++ )
if(twve.node.matches(node[i],selector))
filtered[filtered.length] = node[i];
if ( filtered.length == 0 ) return null;
return filtered.length > 1 ? filtered : filtered[0];
};
//}}}
/***
!!!!! twelem.refreshSelf
***/
//{{{
twelem.refreshSelf = function(txt){
// Refresh the element itself by creating a new copy and
// replace this one. This method refreshes only one copy of
// the element and nothing more. It is normally called
// within twelem.refreshAll(), which takes care of
// transclusion synchronization.
// Parameters:
// txt: See twelem.refreshAll below.
var nodes = twve.tiddler.getPreviewedNodes(txt);
var elem = twelem.filter(nodes) || nodes[0];
twelem.replaceWith(nodes);
twelem.dIndex = -1;
twelem.setElement(elem);
return twelem;
};
//}}}
/***
!!!!! twelem.refreshAll
***/
//{{{
twelem.refreshAll = function(txt,param,refreshed){
// Refresh/Re-render the element, and synchronize all
// transcluded copies.
// Parameters:
// txt: An array of text to refresh the element.
// Normally there is only one text in the
// array. Occasionally there are multiple
// text for elements such as spanned table
// cells.
// param: (Optional) Parameter for twelem.changed
// event handler. This parameter, if given,
// should be an object containing
// {
// what: "event message",
// other info that you defined to go with
// the event message...
// }
// The following two variables are for refreshing part or
// whole of a folded wrapper.
var folded = null;
var animated = config.options.chkAnimate;
config.options.chkAnimate = false;
var sec = twve.text.tiddlerSection(
twelem.wrapper_title
);
if ( typeof txt !== 'string' )
// If no text is given, get the text of this twelem.
txt = twelem.getText();
twelem.findWrappers();
for (var n=0,len=twelem.wrapper.length; n<len; n++) {
var w = twelem.wrapper[n];
var w_title = twve.tiddler.titleOfWrapper(w);
var w_sec = twve.text.tiddlerSection(w_title);
if ( sec && w_sec && w_sec != sec ) {
// We are refreshing only one section in the
// tiddler, but this wrapper contains another
// section different from the one to refresh.
// Do nothing.
continue;
}
var twcopy = twelem.renderedCopy(w);
if ( ! twcopy ) {
// There is no such element in this wrapper.
// Check for slices
if ( ! w_sec ) {
w_sec = twve.text.tiddlerSlice(w_title);
if ( w_sec ) {
// Yes, its a transcluded slice, refresh it.
twcopy=twve.tiddler.createEditableWrapper(w);
if ( twcopy ) twcopy.refreshSelf(w_sec);
}
}
continue;
}
folded = twcopy.foldedWrapper();
if ( folded )
// unfold it to refresh the element
twve.node.show(folded.dom);
if ( txt ) {
// Otherwise refresh the element
twcopy.refreshSelf(txt);
if ( param && param.what )
twcopy.changed(param);
} else
// Text is empty, meaning this element should be
// removed
twcopy.removeSelf(param);
// Done refreshing
if ( folded )
// fold it back
twve.node.hide(folded.dom);
}
config.options.chkAnimate = animated;
return twelem;
};
//}}}
/***
!!!!! twelem.renderingIndex
***/
//{{{
twelem.renderingIndex = function(){
// Find the rendering index of a twve.core element object
// in its direct wrapper.
if ( twelem.rIndex < 0 ) {
var elems = twelem.directWrapper().findElements(
twelem.twveSelector(null,'rendered')
);
if ( elems ) {
twelem.rIndex = elems.indexOf(twelem.dom);
}
}
return twelem.rIndex;
};
//}}}
/***
!!!!! twelem.counts
***/
//{{{
twelem.counts = function(searchInfo){
// Check if the currently found element counts as a valid
// one. If so,
// 1. update the ndx and remained properties of
// searchInfo,
// 2. return true.
// Otherwise,
// 1. return false.
// See the counts method in twve.table or twve.blockquote
// for examples.
searchInfo.remained--;
searchInfo.ndx++;
return true;
};
//}}}
/***
!!!!! twelem.skipCloseTag
***/
//{{{
twelem.skipCloseTag = function(){
return twelem.tags &&
twelem.tags.open == twelem.tags.close
? (twelem.tags.close.length+1) : 0;
};
//}}}
/***
!!!!! twelem.ends
***/
//{{{
twelem.ends = function (start,txt,inactiveTags) {
// Find the ending index of this element, starting from
// start. If start is not given or a negative number, the
// search starts from the beginning of this element.
// Returns the index of the character immediately after
// the last char of the closing tag if found, or a negative
// number to indicate the number of enclosed elements
// remained to be searched otherwise.
if ( typeof start == 'number' ) {
start = twve.position.create(start);
} else if ( ! start || start == twelem.start ) {
start = twve.position.create(twelem.start);
} else {
start.ensureValid();
}
// Move the starting position to skip the remaining of the
// opening tag.
start.ndx += start.matched ? start.matched.length : 1;
if (! txt) txt = twelem.wrapperText();
var tags = twelem.tags.exactCloseTag(start.matched);
twelem.end.copyFrom(
tags.matchedCloseTag(txt,start,txt.length,inactiveTags)
);
if ( twelem.end.ndx == -1 ) {
twelem.end.ndx = txt.length;
} else {
twelem.end.ndx += twelem.end.matched.length;
}
return twelem.end;
};
//}}}
/***
!!!!! twelem.starts
***/
//{{{
twelem.starts = function (start,txt,dir) {
// Find the starting position of an element represented
// by this twve.element object, starting from the argument
// start, if given, or the beginning of the direct wrapper.
// The argument start, if given, shall be an object of
// twve.position.
// Returns a twve.position object that contains the
// position of the first char of the opening tag and the
// matched opening tag.
if ( !(txt || twelem.tiddler) ||
!twelem.tags || !twelem.tags.open ) {
twelem.start.ndx = -1;
return twelem.start;
}
if ( ! txt ) txt = twelem.wrapperText();
// Ensure the validity of twelem.start.ndx
twelem.start.ensureValid(start);
var searchInfo = twve.object.create();
// Remaining number of elements to skip before identifying
// this one (twelem.dom).
searchInfo.remained = twelem.rIndex > -1
? (twelem.rIndex+1)
: (twelem.dIndex > -1 ? (twelem.dIndex+1) : 1);
// Index number (order of appearance) of the element
// represented by this twve.element object.
// If the rendering index (twelem.rIndex) was -1 upon
// calling this function, its value would be set to
// searchInfo.ndx upon returning. Same thing would be done to
// the defining index (twelem.dIndex) if it was -1 upon
// calling.
searchInfo.ndx = -1;
var inactiveTags = twve.tags.inactiveTags();
// Do the searching
do {
twelem.start = dir < 0
? twelem.tags.lastOpenTag(
txt,twelem.start,inactiveTags
)
: twelem.tags.nextOpenTag(
txt,twelem.start,inactiveTags
);
if ( twelem.start.ndx < 0 ) {
// Opening tag not found, returns the negative of
// the remaining number of elements to be skipped.
twelem.start.ndx = -searchInfo.remained;
return twelem.start;
}
// Check if this one counts.
if ( ! twelem.counts(searchInfo,txt) ) {
// No it doesn't. Continue searching.
twelem.start.ndx += twelem.start.matched.length;
continue;
}
// Yes, this one does count.
if ( searchInfo.remained == 0 ) {
// If found the wiki text then retunrs it.
if ( twelem.dIndex == -1 )
twelem.dIndex = searchInfo.ndx;
if ( twelem.rIndex == -1 )
twelem.rIndex = searchInfo.ndx;
return twelem.start;
}
// Otherwise search for the next one.
if ( dir < 0 ){
twelem.end.ndx = twelem.start.ndx;
} else {
twelem.start.ndx =
twelem.ends(null,txt,inactiveTags).ndx;
}
} while (true);
};
//}}}
/***
!!!!! twelem.setElement
***/
//{{{
var preSetElement = twelem.setElement;
twelem.setElement = function (elem,txt,start,dir) {
// Sets element elem (DOM node) to this twve.element object.
if ( ! elem ) return twelem.clear();
if ( typeof elem == 'string' ) {
twelem.dom = elem;
twelem.tags = twve.tiddler.markupTags(elem);
} else {
if ( ! preSetElement.apply(this,arguments) )
// Same element, no need to do anything.
return twelem;
if ( ! twelem.tiddler )
// Shadowed or non-existing tiddler
return twelem;
// An element. Look for its rendering index
// if necessary.
if ( twelem.rIndex < 0 && twelem.dIndex < 0 )
if ( txt || start ){
twelem.rIndex = twelem.dIndex = 0;
} else
twelem.renderingIndex();
// Find its corresponding wiki tags if necessary.
if ( ! twelem.tags )
// Find its corresponding wiki tags.
twelem.tags = twelem.markupTags();
if ( typeof dir !== 'number' ) dir = 1;
if ( dir < 0 ) {
// Going backwards, skip the closing tag if
// the element consists of identical opening
// and closing tags.
start -= twelem.skipCloseTag(txt,start);
}
// Search for the beginning of element wiki text.
twelem.starts(start,txt,dir);
if ( twelem.start.ndx >= 0 ) {
// If the beginning is found, search for
// the end.
twelem.ends(null,txt,null);
} else {
// Otherwise set the end position to -1.
twelem.end.ndx = -1;
}
}
return twelem;
};
//}}}
/***
!!!!! End of twelem
***/
//{{{
return twelem.created(elem,txt,start,dir);
}
};
//}}}
/***
!!! twve.pre
***/
//{{{
twve.pre = {
//}}}
/***
!!!! twve.pre.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector,which){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
var inc = 'pre,div.syntaxhighlighter';
if ( ! which || which.toLowerCase().indexOf(0,6)=='render' )
inc += ',div.alt1,div.alt2'+
',.syntaxhighlighter code'+
',.syntaxhighlighter table';
return selector.includeSelector(inc);
},
//}}}
/***
!!!! twve.pre.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
['\n{{{', '\n\/\/{{{', '\n\/\*{{{\*\/', '\n<!--{{{-->'],
['}}}\n', '\/\/}}}\n', '\/\*}}}*\/\n', '<!--}}}-->\n']
);
// blockElement
tags.blockElement = true;
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.pre.markupTags();
};
// lastOpenTag
tags.lastOpenTag = function(txt,start){
if ( start.ndx <= 0 ) {
start.ndx = -1;
return start;
}
// Make a copy of start so we do not change its original
// content.
start = twve.position.create(start);
// Check if we are sitting right on an openning tag of
// a preformmated element. Move backward by 1 if we are.
for(var i=0,len=tags.open.length; i<len; i++)
if( txt.substring(
start.ndx,start.ndx+tags.open[i].length
)==tags.open[i] ){
start.ndx--;
break;
}
start = twve.text.lastIndexOf(txt,tags.open,start);
return start.ndx < 0
? tags.firstOpenTag(txt,start)
: start;
};
// matchedCloseTag
tags.matchedCloseTag = function(txt,start,txtlen) {
var pos = twve.position.create(start);
pos = twve.text.indexOf(txt,tags.close,pos);
if ( pos.ndx > -1 ) return pos;
return tags.lastCloseTag(txt,start,txtlen);
};
return tags;
},
//}}}
/***
!!!! twve.pre.create
***/
//{{{
create : function(src,txt,start,dir){
var pre = twve.element.create();
// markupTags
pre.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.pre.markupTags();
};
// clone
pre.clone = function(){
// Optional, may save a tiny bit of time.
return twve.pre.create(pre);
};
// twveSelector
pre.twveSelector = function(selector,which){
// Optional, may save a tiny bit of time.
return twve.pre.twveSelector(selector,which);
};
// starts
var preStarts = pre.starts;
pre.starts = function(start,txt,dir){
if(dir && dir < 0){
var open = pre.tags.open;
for(var i=0,len=open.length; i<len; i++)
if( txt.substring(
start,start+open[i].length
)==open[i] )
{
start--;
break;
}
}
return preStarts.call(this,start,txt,dir);
}
// setElement
var preSetElement = pre.setElement;
pre.setElement = function(elem,txt,strt,dir){
if ( ! twve.node.matches(elem,'pre') )
elem = twve.node.closest(elem,'div.syntaxhighlighter');
return preSetElement.call(this,elem,txt,start,dir);
};
return pre.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.code
***/
//{{{
twve.code = {
//}}}
/***
!!!! twve.code.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('code')
.excludeSelector('.syntaxhighlighter code');
},
//}}}
/***
!!!! twve.code.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
'{{{',
'}}}'
);
// lastOpenTag
tags.lastOpenTag = function(txt,start) {
return twve.text.lastIndexOf(txt,tags.open,start);
};
// nextOpenTag
tags.nextOpenTag = function(txt,start) {
return twve.text.indexOf(txt,tags.open,start);
};
// matchedCloseTag
tags.matchedCloseTag = function(txt,start) {
return twve.text.indexOf(txt,tags.close,start);
};
return tags;
},
//}}}
/***
!!!! twve.code.create
***/
//{{{
create : function(src,txt,start,dir){
var code = twve.element.create();
// markupTags
code.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.code.markupTags();
};
// clone
code.clone = function(){
// Optional, may save a tiny bit of time.
return twve.code.create(code);
};
// twveSelector
code.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.code.twveSelector();
};
// counts
code.counts = function(searchInfo,txt){
if(txt.charAt(
code.start.ndx+code.start.matched.length
)!='\n'){
searchInfo.remained--;
searchInfo.ndx++;
return true;
}
return false;
};
// starts
var preStarts = code.starts;
code.starts = function(start,txt,dir){
if(dir && dir < 0 &&
txt.substring(start,start+3)=='{{{')
start--;
return preStarts.call(this,start,txt,dir);
};
return code.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.leveledElement
***/
//{{{
twve.leveledElement = {
//}}}
/***
!!!! twve.leveledElement.getLevel
***/
//{{{
getLevel : function(txt,start,ch){
var level = 0;
if ( ! ch ) {
ch = txt.charAt(start);
if ( ! ch || /\s/.test(ch) ) {
return 0;
}
level++;
} else if ( /\s/.test(ch) ) {
return 0;
}
var len = txt.length;
while ( (start+level)<len &&
ch.indexOf(txt.charAt(start+level))>-1 )
level++;
return level;
},
//}}}
/***
!!!! twve.leveledElement.create
***/
//{{{
create : function(src,txt,start,dir){
var elem = twve.element.create();
// clear
//var preClear = elem.clear;
elem.clear = function(){
//preClear.apply(this);
elem.level = 0;
return elem;
};
// copyFrom
var preCopyFrom = elem.copyFrom;
elem.copyFrom = function(src){
preCopyFrom.apply(this,arguments);
elem.level = src.level;
return elem;
};
//}}}
/***
!!!!! elem.getLevel
***/
//{{{
elem.getLevel = function(txt,start) {
if ( elem.level < 1 ) {
if ( ! txt ) txt = elem.wrapperText();
if ( ! start ) start = elem.start;
var ndx = start.ndx;
if (txt.charAt(ndx)=='\n') ndx++;
elem.level = twve.leveledElement.getLevel(txt,ndx);
}
return elem.level;
};
//}}}
/***
!!!!! elem.getOpenTag
***/
//{{{
elem.getOpenTag = function(start,txt) {
// Get the actual opening tag
if ( ! txt ) txt = elem.tiddler ? elem.wrapperText() : '';
if ( ! txt ) return '';
if ( ! start ) start = elem.start;
var level = elem.getLevel(txt,start);
var tag = '';
if ( txt.charAt(start.ndx) == '\n' ) level++;
else tag = '\n';
return tag + txt.substring(start.ndx,(start.ndx+level));
};
//}}}
/***
!!!!! elem.starts
***/
//{{{
var preStarts = elem.starts;
elem.starts = function(start,txt,dir){
preStarts.apply(this,arguments);
elem.level = -1;
if ( elem.start.ndx > -1 )
elem.start.matched = elem.getOpenTag(elem.start,txt);
return elem.start;
};
//}}}
/***
!!!!! End of leveledElement
***/
//{{{
return elem.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.heading
***/
//{{{
twve.heading = {
//}}}
/***
!!!! twve.heading.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'h1,h2,h3,h4,h5,h6';
},
getFoldedSelector : function(){
return 'h1.foldable,h2.foldable,h3.foldable' +
',h4.foldable,h5.foldable,h6.foldable';
},
getSpanSelector : function(selector){
return 'span.TiddlyLinkExisting';
},
twveSelector : function(selector,which){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
which = which ? which.toLowerCase() : '';
return selector.includeSelector(
which.substring(0,4)=='fold'
? twve.heading.getFoldedSelector()
: (twve.heading.getSelector() +
(which.substring(0,6)=='render'
? ''
: ','+twve.heading.getSpanSelector()))
);
},
//}}}
/***
!!!! twve.heading.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
'\n!',
'\n'
);
// blockElement
tags.blockElement = true;
return tags;
},
//}}}
/***
!!!! twve.heading.getTitle
***/
//{{{
getTitle : function(h,title_only){
// Returns the title (content) of a header.
var hnode = null;
if ( h.dom ) {
// h is a twve.heading object
hnode = h.dom;
} else {
// h has to be a DOM node
hnode = h;
h = null;
}
if ( ! hnode ) return null;
if ( hnode.childNodes.length > 0 ){
// If a header contains formatted text or even transcluded
// content, the rendered text will be different from the
// defining wiki text and cause this plugin a failure in
// finding the section content. In such cases we return
// directly the defining wiki text instead of the rendered
// text.
var twh = twve.heading.create(h);
twh.setElement(hnode);
return twve.text.sectionTitle(twh.getText());
} else {
var title = hnode.textContent;
var head = '';
if ( config.macros.foldHeadings ) {
head = config.macros.foldHeadings.hidelabel;
if ( title.indexOf(head) == -1 ) {
head = config.macros.foldHeadings.showlabel;
if ( title.indexOf(head) == -1 )
head = '';
}
}
title = (head
? title.substring(head.length).trim()
: title);
if ( ! title_only ) {
// Look for multiple occurrences of the same title
var twh = twve.heading.create(h);
twh.setElement(hnode);
var hs = twh.directWrapper().findElements(
twve.heading.twveSelector(null,'rendered')
);
if ( hs ) {
var hndx = hs.indexOf(hnode);
var hoccur = 0;
for ( var n = 0; n < hndx; n++ ) {
var hprev = hs[n];
var tprev = twve.heading.getTitle(hprev,true);
if ( tprev == title ) hoccur++;
}
if ( hoccur > 0 ) {
title += ('?'+hoccur);
}
}
}
return title;
}
},
//}}}
/***
!!!! twve.heading.click
***/
//{{{
preClick : null,
click : function (ev) {
ev = ev || window.event;
if ( twve.node.matches(
ev.target,twve.heading.getSelector()
) )
twve.heading.preClick.apply(this,arguments);
},
//}}}
/***
!!!! twve.heading.prepareElements
***/
//{{{
prepareElements : function(twwrap){
if ( config.options.chktwveCoreEnabled &&
! twwrap.isSystemShadow() ) {
var foldable = twwrap.dom.querySelectorAll(
twve.heading.twveSelector(null,'foldable').include
);
for (var i=0,len=foldable.length; i<len; i++){
if ( ! twve.heading.preClick )
twve.heading.preClick = foldable[i].onclick;
foldable[i].onclick = twve.heading.click;
}
return twwrap;
}
return null;
},
//}}}
/***
!!!! twve.heading.create
***/
//{{{
create : function(src,txt,start,dir){
// Create an instance of twve.heading object.
// The argument src can be one of the followings:
// 1. a twve.heading object
// 2. a jQeury object representing a header
// 3. a DOM object (a header)
var h = twve.leveledElement.create();
// twveSelector
h.twveSelector = function(selector,which){
return twve.heading.twveSelector(selector,which);
};
// markupTags
h.markupTags = function(){
return twve.heading.markupTags();
};
// get title
h.getTitle = function (title_only) {
return twve.heading.getTitle(h,title_only);
};
// starts
var preStarts = h.starts;
h.starts = function(start,txt,dir){
if(dir && dir < 0 &&
txt.substring(start,start+2)=='\n!')
start--;
return preStarts.call(this,start,txt,dir);
};
// set element
var preSetElement = h.setElement;
h.setElement = function(elem,txt,start,dir){
preSetElement.call(
this,
(twve.node.matches(elem,twve.heading.getSpanSelector())
? elem.parentNode
: elem),
txt,start,dir
);
return h;
};
// mouseenter
h.mouseenter = function(ev){
var selector = twve.heading.getSpanSelector();
var sp = h.dom.querySelector(selector);
return ! sp
? true
: twve.node.matches(ev.target,selector);
};
// mousemove
h.mousemove = function(ev){
if ( ! h.mouseenter(ev) ) {
twve.tiddler.focus();
}
};
// is
h.is = function(elem){
return twve.node.is(
h.dom,
typeof elem == 'string'
? elem
: ( twve.node.matches(
elem,twve.heading.getSpanSelector()
)
? elem.parentNode
: elem
)
);
};
// isEditable
h.isEditable = function(elem){
var selector = twve.heading.getSpanSelector();
return twve.node.matches((elem || h.dom),selector)
? true
: h.dom.querySelectorAll(selector).length == 0;
};
return h.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.wrapper
***/
//{{{
twve.wrapper = {
//}}}
/***
!!!! twve.wrapper.recordFoldable
***/
//{{{
recordFoldable : function(foldable){
var folded = null;
if ( foldable ) {
folded = [];
for ( var i=0,len=foldable.length; i<len; i++ ) {
folded[i] = ! twve.node.isVisible(foldable[i]);
}
}
return folded;
},
//}}}
/***
!!!! twve.wrapper.restoreFoldable
***/
//{{{
restoreFoldable : function(foldable,folded){
if ( foldable ) {
// Temporarily disable animation
var animated = config.options.chkAnimate;
config.options.chkAnimate = false;
var imax = folded
? Math.min(folded.length, foldable.length)
: foldable.length;
for ( var i = 0; i < imax; i++ ) {
if (
foldable[i] &&
(! folded ||
(folded[i]&&twve.node.isVisible(foldable[i])) ||
(!folded[i]&&!twve.node.isVisible(foldable[i]))) &&
foldable[i].previousSibling
) {
var ev = document.createEvent('MouseEvent');
ev.initEvent('click',true,true);
foldable[i].previousSibling.dispatchEvent(ev);
}
}
config.options.chkAnimate = animated;
}
},
//}}}
/***
!!!! twve.wrapper.renderedElement
<<<
* This function finds a rendered copy of twelem in wrapper w.
** The wrapper can be one of the system wrappers:
*** div.viewer, normally loaded
*** div.tabContents, {{{<<tabs>>}}} transcluded
*** span[tiddler], {{{<<tiddler>>}}} transcluded
*** div.sliderPanel, {{{<<slider>>}}} transcluded
*** span.sliderPanel, {{{<<foldHeadings>>}}} folded
* If none of the indexes (rendering and defining) are given, this function returns null.
* If the defining index is given but the rendering index not (initialized to -1), this function goes through the tiddler text to find its rendering index (matching the defining index), then finds the rendered copy and returns it. This happens during transclusion synchronization when all transcluded copies are to be updated after one of them is changed.
* If the rendering index is given, this function simply finds the rendered element with that rendering index, in a cyclic manner if the 3rd argument cyclic is true, and returns it, regardless of the status of defining index. This happens during keyboard navigation where one definitely knows the rendering index of the current element and wants to move to the next.
<<<
***/
//{{{
renderedElement : function (twelem,w,cyclic) {
// Arguments:
// twelem: A twve.element object representing the element
// to look for.
// w: The wrapper in which to find the element. If
// omitted, the search will be done within
// twelem.directWrapper().
// cyclic: Search in a cyclic manner.
if ( ! twelem ) return null;
if ( twelem.rIndex < 0 && twelem.dIndex < 0 && ! cyclic ) {
return null;
}
if ( ! w ) {
w = twelem.directWrapper();
if ( ! w ) {
return null;
}
w = w.dom;
}
// Make sure there are such kind of elements in the wrapper.
var elements = twve.wrapper.findElements(
w, twelem.twveSelector(null,'rendered')
);
// If no such elements contained in the wrapper, return null.
if ( ! elements ) return null;
var size = elements.length;
// Make a copy of the element
var newelem = twelem.clone();
if ( cyclic ) {
// Find the element in a cyclic manner.
if ( newelem.rIndex < 0 )
newelem.rIndex = size-1;
else if ( newelem.rIndex >= size )
newelem.rIndex = 0;
} else {
// Not in a cyclic manner.
if ( newelem.rIndex < 0 ) {
// Rendering index unknown. Find it from the tiddler
// text.
newelem.wrapper = w;
newelem.direct_wrapper =
twve.tiddler.createEditableWrapper(w,true);
newelem.wrapper_title =
newelem.direct_wrapper.wrapper_title;
// Find the element. The rendering index will be
// determined in newelem.starts() function.
newelem.starts();
if ( newelem.rIndex >= 0 ) {
newelem.ends();
newelem.dom = elements[newelem.rIndex];
return newelem;
}
return null;
} else if ( newelem.rIndex >= size ) {
// This wrapper does not contain a rendered copy of
// twelem.
return null;
}
}
var elem = elements[newelem.rIndex];
if ( newelem.dIndex < 0 ) {
newelem.setElement(elem);
} else {
newelem.dom = elem;
}
if ( newelem.direct_wrapper.dom != w ) {
newelem.wrapper = w;
newelem.direct_wrapper =
twve.tiddler.createEditableWrapper(w,true);
newelem.wrapper_title =
newelem.direct_wrapper.wrapper_title;
}
return newelem;
},
//}}}
/***
!!!! twve.wrapper.findElements
***/
//{{{
findElements : function (w, selector) {
// Find all the rendered elements in wrapper w that are
// specified by selector. The 2nd argument can be either
// a string (valid CSS selector), or an object containing
// the following information:
// {
// include: CSS selector to include
// exclude: CSS selector to exclude
// }
if ( ! w || ! selector ) return null;
if (typeof selector == 'string' ) {
selector = twve.selector.create(selector,'');
} else if ( ! selector.include ) {
// The 2nd argument is not a valid selector object.
return null;
}
var elems = twve.nodeList.toArray(
w.querySelectorAll(selector.include)
);
// In wrapper w there could be transcluded tiddlers,
// which may contain elements of the same type. We shall
// remove them because they are not defined in the tiddler
// directly related to wrapper w.
var t_selector = twve.tiddler.twveTranscludedSelectors();
var t_wrapper = w.querySelectorAll(t_selector.include);
for ( var i=0,len=t_wrapper.length; i<len; i++ ) {
elems = twve.node.not(
elems,
t_wrapper[i].querySelectorAll(selector.include)
);
}
if ( selector.exclude ) {
elems = twve.node.not(elems,selector.exclude);
}
return elems.length > 0 ? elems : null;
},
//}}}
/***
!!!! twve.wrapper.create
***/
//{{{
create : function(wrap,txt,start,dir){
var twwrap = twve.editable.create();
// is wrapper?
twwrap.isWrapper = function(){
return true;
};
// direct wrapper
twwrap.directWrapper = function(){
return twwrap;
};
// title of wrapper
twwrap.titleOfWrapper = function(){
return twve.tiddler.titleOfWrapper(twwrap.dom);
};
// isEditable
twwrap.isEditable = function(elem){
return twwrap.dom == elem
? true
: twve.node.contains(twwrap.dom,elem) &&
! twve.node.matches(
elem,
twve.heading.twveSelector().include
);
};
// findElements
twwrap.findElements = function(selector){
return twve.wrapper.findElements(
twwrap.dom,
selector || twwrap.twveSelector(null,'rendered')
);
};
// ends
twwrap.ends = function(start,txt,dir){
if(!txt) {
if(!twwrap.tiddler) return twwrap.end;
txt = twwrap.tiddler.text;
}
var sec = twve.text.tiddlerSection(twwrap.wrapper_title);
if ( sec ) {
var twh = twve.heading.create(null,txt,start,dir);
twh.dIndex = 0;
twh.tiddler = twwrap.tiddler;
twh.tags = twve.heading.markupTags();
twh.start.ndx = twwrap.start.ndx;
twh.starts(twh.start,txt,dir);
if ( twh.start.ndx < 0 )
twwrap.end.ndx = txt.length;
else twwrap.end.ndx = twh.start.ndx;
} else
twwrap.end.ndx = txt.length;
return twwrap.end;
};
// starts
twwrap.starts = function(sec,start,txt,dir){
twwrap.start.ensureValid(start);
if ( ! sec ){
sec = twve.text.tiddlerSection(twwrap.wrapper_title);
}
if ( ! sec ) return twwrap.start;
// Remove the info that is only used internally.
var to_skip = twve.text.headerToSkip(sec);
if ( to_skip > 0 ) {
sec = twve.text.removeHeaderTail(sec);
}
if(!txt){
if(!twwrap.tiddler) return twwrap.start;
txt = twwrap.tiddler.text;
}
var twh = twve.heading.create(null,txt,start,dir);
twh.dIndex = 0;
twh.tiddler = twwrap.tiddler;
twh.end.ndx = twwrap.start.ndx;
twh.tags = twve.heading.markupTags();
while ( to_skip >= 0 ) {
twh.starts(twh.end,txt,dir);
if ( twh.start.ndx == -1 ) break;
twh.ends(null,txt,null,dir);
var title = twve.text.sectionTitle(twh.getText());
if ( title.substring(0,sec.length)==sec ) {
to_skip--;
}
}
twwrap.start.ndx = twh.end.ndx;
return twwrap.start;
};
// set element
var preSetElement = twwrap.setElement;
twwrap.setElement = function (elem,txt,start,dir) {
// Sets element elem (DOM node) to this twve.wrapper object.
if ( ! elem ) return twwrap.clear();
if ( ! preSetElement.apply(this,arguments) )
// Same element, no need to do anything.
return twwrap;
// Try to locate the wiki text even for non-existing
// tiddler.
twwrap.starts(null,start,txt,dir);
twwrap.ends(null,txt,dir);
return twwrap;
};
// refresh self
twwrap.refreshSelf = function(txt){
if ( ! twwrap.tiddler ) return twwrap;
// Refresh only one wrapper, assuming open and visible.
// Even though this wrapper is open and visible, there
// might be foldable wrappers (created using <<slider>> or
// <<foldHeadings>>) contained in this one. If so, we record
// their folding status, refresh this wrapper, then restore
// their folding status.
// Record folding status, if there are foldable wrappers.
var selector = twve.tiddler.twveFoldableSelector();
var foldable = twwrap.findElements(selector);
var folded = twve.wrapper.recordFoldable(foldable);
// Refresh this wrapper
// First remove all the child nodes.
//while ( twwrap.dom.firstChild )
// twwrap.dom.removeChild(twwrap.dom.firstChild);
twwrap.dom.innerHTML = '';
// Then append all the newly wikified nodes.
var nodes = twve.tiddler.getPreviewedNodes(txt,twwrap.dom);
for ( var i=0,len=nodes.length; i<len; i++ )
twwrap.dom.appendChild(nodes[0]);
// Restore folding status for foldable wrappers
foldable = twwrap.findElements(selector);
// Prepare elements if defined.
return twwrap.checkAndPrepare(foldable,folded);
};
// needsRefresh
twwrap.needsRefresh = function(tworg,sec_org,sec_this){
// Tests if this wrapper needs refresh due to some changes made
// to the original wrapper tworg.
// This wrapper needs refreshing if
// 1. We are refreshing the whole tiddler, or
// 2. this wrapper contains the whole tiddler, or
// 3. we are refreshing one section and w contains
// exactly that section.
if ( ! sec_org || ! sec_this || sec_this == sec_org ) {
// Exclude the situation where tworg contains this
// wrapper, or vice versa.
if ( !(twve.node.contains(tworg.dom,twwrap.dom)
|| twve.node.contains(twwrap.dom,tworg.dom)) ) {
return true;
}
}
return false;
};
// refresh all copies
twwrap.refreshAll = function(txt,param,refreshed){
// Refresh the wrapper twwrap,
// and synchronize all transcluded copies.
// The following two variables are for refreshing
// part or whole of a folded wrapper.
var animated = config.options.chkAnimate;
config.options.chkAnimate = false;
// Extract the section title if any
var sec = twwrap.sliceKey
? twve.text.tiddlerSlice(
twwrap.wrapper_title
)
: twve.text.tiddlerSection(
twwrap.wrapper_title
);
// Record the window scroll positions.
var scrL = window.pageXOffset;
var scrT = window.pageYOffset;
// Loop through all copies of this wrapper
twwrap.findWrappers();
for (var n=0,len=twwrap.wrapper.length; n<len; n++){
var w = twwrap.wrapper[n];
if ( w == twwrap.dom ) {
// Refresh if it's this very one
if ( ! refreshed ) twwrap.refreshSelf(txt);
} else {
// Otherwise find the editable copy
var twcopy = twve.tiddler.createEditableWrapper(w);
if ( ! twcopy ) continue;
// Extract its section title
var w_sec = twve.text.tiddlerSection(
twcopy.wrapper_title
) || twve.text.tiddlerSlice(
twcopy.wrapper_title
);
if ( twcopy.needsRefresh &&
twcopy.needsRefresh(twwrap,sec,w_sec) ) {
// unfold it if necessary
var folded = ! twve.node.isVisible(w)
? w : null;
if ( folded )
twve.node.show(folded);
// refresh the wrapper
twcopy.refreshSelf(
(w_sec == sec
? txt
: (w_sec
? twcopy.getText()
: twcopy.tiddler.text))
);
// fold it back if necessary
if ( folded )
twve.node.hide(folded);
}
}
}
window.scrollTo(scrL,scrT);
config.options.chkAnimate = animated;
return twwrap;
};
// multi line
twwrap.multiLine = function(){
return true;
};
// check and prepare
twwrap.checkAndPrepare = function(subfoldable,subfolded){
// This method can be called
// 1. upon loading,
// 2. upon refreshing.
// In cases of the 2nd type, this wrapper must have been
// unfolded (in twwrap.refreshAll), we don't need to take
// care of that here. In cases of the first, however, this
// wrapper may or may not be unfolded, we need to take care
// of that here.
if ( ! twwrap.dom ) return twwrap;
// Check the folding status of this wrapper
var folded = twwrap.isVisible()
? null
: twwrap.dom;
var animated = config.options.chkAnimate;
config.options.chkAnimate = false;
// Unfold it if folded
if ( folded ) {
// unfold it to refresh the wrapper
twve.node.show(folded);
}
// Unfold sub-wrappers if there are
if ( subfoldable === undefined ) {
subfoldable = twwrap.findElements(
twve.tiddler.twveFoldableSelector()
);
subfolded=twve.wrapper.recordFoldable(subfoldable);
}
if ( subfoldable ) {
twve.node.show(subfoldable);
}
// Prepare it
if ( twwrap.dom )
twve.wrapper.prepareElements(twwrap);
// Fold back the sub-wrappers if necessary
if ( subfoldable ) {
twve.wrapper.restoreFoldable(
subfoldable,subfolded
);
}
// Fold back this wrapper if necessary
if ( folded ) {
twve.node.hide(folded);
}
config.options.chkAnimate = animated;
return twwrap;
};
// wait
var pid = null;
twwrap.wait = function(){
if ( ! anim.running ) {
clearInterval(pid);
twwrap.checkAndPrepare();
}
};
// waitAndPrepare
twwrap.waitAndPrepare = function () {
// If animation is enabled and running, we should wait
// until it's done or the rendering can be wrong.
pid = null;
if ( ! config.options.chktwveCoreEnabled )
return;
if ( config.options.chkAnimate && anim.running ) {
pid = setInterval(twwrap.wait, 50);
} else {
twwrap.checkAndPrepare();
}
};
// twwrap.getText
twwrap.getText = function(){
return twwrap.tiddler.text.substring(
twwrap.start.ndx,twwrap.end.ndx
);
};
// twwrap.setText
twwrap.setText = function(newtxt,dlen){
var txt = twwrap.tiddler.text;
var open = twwrap.start.ndx;
var close = twwrap.end.ndx;
if ( typeof dlen !== 'number' ) {
dlen = newtxt.length - (close-open);
}
txt = txt.substring(0,open)+newtxt+txt.substring(close);
twwrap.end.ndx += dlen;
// update tiddler text
twve.tiddler.saveText(twwrap,txt);
return newtxt;
};
return twwrap.created(wrap,txt,start,dir);
}
};
//}}}
/***
!!! twve.viewer
***/
//{{{
twve.viewer = {
//}}}
/***
!!!! twve.viewer.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('div.viewer');
},
//}}}
/***
!!!! twve.viewer.titleOfWrapper
***/
//{{{
titleOfWrapper : function (w) {
// Non-trnascluded wrapper or the tiddler title div.
w = twve.node.closest(w,'[tiddler]');
return w ? w.getAttribute('tiddler') : '';
},
//}}}
/***
!!!! twve.viewer.wrapperFromTitle
***/
//{{{
wrapperFromTitle : function(title, parent){
// Non-transcluded
return twve.nodeList.querySelectorAll(
parent,
'div[tiddler*="'+title+'"] .viewer'
);
},
//}}}
/***
!!!! twve.viewer.create
***/
//{{{
create : function(src){
var viewer = twve.wrapper.create(src);
viewer.clone = function(){
// Optional, may save a tiny bit of time.
return twve.viewer.create(viewer);
};
return viewer;
}
};
//}}}
/***
!!! twve.tabContent
***/
//{{{
twve.tabContent = {
//}}}
/***
!!!! twve.tabContent.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'div.tabContents';
},
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('div.tabContents');
},
//}}}
/***
!!!! twve.tabContent.titleOfWrapper
***/
//{{{
titleOfWrapper : function (w) {
// <<tabs>> transcluded wrapper.
// It suffices to use w.previousSibling.querySelectorAll(...) to
// locate the selected tab and retrieve the tiddler title from
// its attribute "content".
// In earlier versions I used jQuery to accomplish this. At that
// time I thought using $w.prev() should be faster than
// $w.parent() and did some test to confirm my idea. In contrary
// I found them pretty much the same performance when the
// content is fully transcluded. More surprisingly, when the
// content is partially transcluded, $w.parent() is better than
// $w.prev() for sure. Therefore $w.parent(), instead of
// $w.prev(), is used here to find the tiddler title.
//return w.previousSibling.querySelector('.tabSelected')
// .getAttribute('content');
w = w.parentNode;
return w
? w.querySelector('.tabSelected').getAttribute('content')
: '';
},
//}}}
/***
!!!! twve.tabContent.wrapperFromTitle
***/
//{{{
wrapperFromTitle : function(title, parent){
// <<tabs>> transcluded
var wrapper = twve.nodeList.querySelectorAll(
parent,
'.tabSelected[content*="'+title+'"]'
);
if ( ! wrapper ) return null;
for(var i=0,len=wrapper.length; i<len; i++)
wrapper[i] = wrapper[i].parentNode.nextSibling;
return wrapper;
},
//}}}
/***
!!!! twve.tabContent.create
***/
//{{{
create : function(src,txt,start,dir){
var tabContent = twve.wrapper.create();
tabContent.clone = function(){
// Optional, may save a tiny bit of time.
return twve.tabContent.create(tabContent);
};
return tabContent.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.transcludedElem
***/
//{{{
twve.transcludedElem = {
//}}}
/***
!!!! twve.transcludedElem.create
***/
//{{{
create : function(src){
if ( src ) {
var focus = twve.tiddler.focusElem();
if ( focus && focus.dom == src.parentNode ) {
return twve.element.create();
}
}
return null;
}
};
//}}}
/***
!!! twve.tiddlerSpan
***/
//{{{
twve.tiddlerSpan = {
//}}}
/***
!!!! twve.tiddlerSpan.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'span[tiddler]';
},
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('span[tiddler]');
},
//}}}
/***
!!!! twve.tiddlerSpan.titleOfWrapper
***/
//{{{
titleOfWrapper : function (w) {
// <<tiddler>> transcluded wrapper.
return w.getAttribute('tiddler');
},
//}}}
/***
!!!! twve.tiddlerSpan.wrapperFromTitle
***/
//{{{
wrapperFromTitle : function(title, parent){
// <<tiddler>> transcluded
return twve.nodeList.querySelectorAll(
parent,
'span[tiddler*="'+title+'"]'
);
},
//}}}
/***
!!!! twve.tiddlerSpan.markupTags
***/
//{{{
markupTags : function(){
// <<tiddler>> transcluded
var tags = twve.tags.create(
'<<tiddler',
'>>'
);
// blockElement
tags.blockElement = true;
return tags;
},
//}}}
/***
!!!! twve.tiddlerSpan.create
***/
//{{{
create : function(src,txt,start,dir){
var tiddlerSpan = twve.transcludedElem.create(src)
|| twve.wrapper.create();
// markupTags
tiddlerSpan.markupTags = function(){
// Optional, may save a tiny bit of time.
var tags = twve.tiddlerSpan.markupTags();
tags.blockElement = tiddlerSpan.isWrapper();
return tags;
};
// clone
tiddlerSpan.clone = function(){
// Optional, may save a tiny bit of time.
return twve.tiddlerSpan.create(tiddlerSpan);
};
// starts
var preStarts = tiddlerSpan.starts;
tiddlerSpan.starts = function(){
tiddlerSpan.sliceKey = twve.text.tiddlerSlice(
tiddlerSpan.wrapper_title
);
if ( ! tiddlerSpan.sliceKey )
return preStarts.apply(this,arguments);
var txt = tiddlerSpan.tiddler.text;
store.slicesRE.lastIndex = 0;
while(true) {
var m = store.slicesRE.exec(txt);
if ( ! m ) break;
if ( m[2] ) {
if ( m[2] == tiddlerSpan.sliceKey ) {
tiddlerSpan.sliceValue = m[3];
tiddlerSpan.start.ndx = m.index;
tiddlerSpan.end.ndx = store.slicesRE.lastIndex;
break;
}
} else if ( m[5] == tiddlerSpan.sliceKey ) {
tiddlerSpan.sliceValue = m[6];
tiddlerSpan.start.ndx = m.index;
tiddlerSpan.end.ndx = store.slicesRE.lastIndex-1;
break;
}
}
return tiddlerSpan.start;
};
// ends
var preEnds = tiddlerSpan.ends;
tiddlerSpan.ends = function(){
return tiddlerSpan.sliceKey
? tiddlerSpan.end
: preEnds.apply(this,arguments);
};
// getText
var preGetText = tiddlerSpan.getText;
tiddlerSpan.getText = function(){
return tiddlerSpan.sliceKey
? (tiddlerSpan.sliceValue || '')
: preGetText.apply(this,arguments);
};
// setText
var preSetText = tiddlerSpan.setText;
tiddlerSpan.setText = function(newtxt){
if ( ! tiddlerSpan.sliceKey )
return preSetText.apply(this,arguments);
// There is sliceKey, meaning we are setting the slice
// value.
var txt = tiddlerSpan.tiddler.text;
var p0, p1, len = 0;
if ( tiddlerSpan.sliceValue ) {
p0 = txt.indexOf(
tiddlerSpan.sliceValue,tiddlerSpan.start.ndx
);
len = tiddlerSpan.sliceValue.length;
p1 = p0 + len;
} else {
p1 = p0 = tiddlerSpan.end.ndx;
}
txt = txt.substring(0,p0) +
newtxt +
txt.substring(p1);
tiddlerSpan.end.ndx += (newtxt?newtxt.length:0) - len;
tiddlerSpan.sliceValue = newtxt;
// update tiddler text
twve.tiddler.saveText(tiddlerSpan,txt);
return newtxt;
};
// End of tiddlerSpan
return tiddlerSpan.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.sliderPanel
***/
//{{{
twve.sliderPanel = {
//}}}
/***
!!!! twve.sliderPanel.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'div.sliderPanel';
},
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector(twve.sliderPanel.getSelector());
},
//}}}
/***
!!!! twve.sliderPanel.titleOfWrapper
***/
//{{{
titleOfWrapper : function (w) {
// <<slider>> transcluded wrapper.
return w.getAttribute('tiddler');
},
//}}}
/***
!!!! twve.sliderPanel.wrapperFromTitle
***/
//{{{
wrapperFromTitle : function(title, parent){
// <<slider>> transcluded
return twve.nodeList.querySelectorAll(
parent,
'div.sliderPanel[tiddler*="'+title+'"]'
);
},
//}}}
/***
!!!! twve.sliderPanel.markupTags
***/
//{{{
markupTags : function(){
// <<slider>> transcluded
var tags = twve.tags.create(
'<<slider',
'>>'
);
// blockElement
//tags.blockElement = true;
return tags;
},
//}}}
/***
!!!! twve.sliderPanel.create
***/
//{{{
create : function(src,txt,start,dir){
var sliderPanel = twve.transcludedElem.create(src)
|| twve.wrapper.create();
// markupTags
sliderPanel.markupTags = function(){
// Optional, may save a tiny bit of time.
var tags = twve.sliderPanel.markupTags();
tags.blockElement = sliderPanel.isWrapper();
return tags;
};
// clone
sliderPanel.clone = function(){
// Optional, may save a tiny bit of time.
return twve.sliderPanel.create(sliderPanel);
};
return sliderPanel.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.foldedSection
***/
//{{{
twve.foldedSection = {
//}}}
/***
!!!! twve.foldedSection.macro
***/
//{{{
macro : function(){
return '<<foldHeadings>>';
},
//}}}
/***
!!!! twve.foldedSection.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'span.sliderPanel';
},
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return twve.foldedSection.enableEdit
// For this wrapper we do not return selector if disabled.
// See explanations below in titleOfTiddler.
? selector.includeSelector('span.sliderPanel')
: selector;
}
};
//}}}
/***
!!! twve.tiddlerTitle
***/
//{{{
twve.tiddlerTitle = {
//}}}
/***
!!!! twve.tiddlerTitle.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('div.title');
},
//}}}
/***
!!!! twve.tiddlerTitle.titleOfWrapper
***/
//{{{
titleOfWrapper : function(w){
return w.textContent;
},
//}}}
/***
!!!! twve.tiddlerTitle.create
***/
//{{{
create : function(elem){
var tidTitle = twve.wrapper.create();
// setText
tidTitle.updateText = function(txt){
twve.tiddler.saveText(tidTitle,null,txt[0]);
return tidTitle;
};
// ..........................................................
// var preGetText = tidTitle.getText;
tidTitle.getText = function(){
return tidTitle.tiddler.title;
};
// ..........................................................
tidTitle.mouseleave = function(ev){
var menu = twve.tiddler.getOptionsMenu();
if ( menu.dom == ev.relatedTarget )
return false;
menu.hide(true);
return true;
};
// ..........................................................
tidTitle.blur = function(){
twve.tiddler.getOptionsMenu().hide(true);
};
// ..........................................................
tidTitle.multiLine = function(){
return false;
};
// ..........................................................
tidTitle.box = function(action){
var eb = twve.node.box(tidTitle.dom);
if ( action && action.indexOf('focus')>=0 ) {
var pos = twve.object.create();
pos.left = eb.right;
pos.top = eb.top;
twve.tiddler.getOptionsMenu().showRoot(pos,'left');
}
return twve.tiddler.editWrappers() ? eb : null;
}
// ..........................................................
tidTitle.isWrapper = function(){
return false;
};
// ..........................................................
tidTitle.titleOfWrapper = function(){
return tidTitle.dom.textContent;
};
// ..........................................................
return tidTitle.created(elem);
}
};
}());
//}}}
[[twve--Example--The Options Menu]]
[[twve--Example--Preformatted]]
[[twve--Example--Code]]
[[twve--Example--Wrappers]]
[[twve--Example--Transclusion--Content]]
[[twve--Example--Transclusion--Self Inclusion]]
/***
|editable|k
|''Name:''|twve.core|
|''Description:''|Core codes of twve, the ~TiddlyWiki View mode Editor, providing easy access to the defining wiki text corresponding to a DOM element, and the synchronization capability for multiply transcluded copies of a tiddler.|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.core.min / http://twve.tiddlyspace.com/#twve.core.min <br>* (regular) http://twve.tiddlyspot.com/#twve.core / http://twve.tiddlyspace.com/#twve.core|
|''Type:''|plugin|
|''Version:''|3.2.5|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery <br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.7.0|
!!Options
Look for [[twve.core Options]] in the system Options panel.
***/
// @@display:none;
//{{{
"undefined"==typeof twve&&(twve={});version.extensions.twve={major:3,minor:2,revision:5,date:new Date("2015/11/06")};
config.macros.twveCoreOptions={identifyWebkitBrowser:function(){config.browser.isSafari&&config.browser.isChrome&&(config.browser.isSafari=!1,0<=config.userAgent.indexOf("opr")&&(config.browser.isOpera=!0,config.browser.isChrome=!1))},init:function(){void 0===config.options.chktwveCoreEnabled&&(config.options.chktwveCoreEnabled=void 0===config.options.chkTWtidEnabled?!0:config.options.chkTWtidEnabled);void 0===config.options.chktwveCoreShowFocus&&(config.options.chktwveCoreShowFocus=void 0===config.options.chkTWtidShowFocus?
!0:config.options.chkTWtidShowFocus);merge(config.optionsDesc,{chktwveCoreEnabled:"Enable ''twve.core''.",chktwveCoreShowFocus:"Show focus borders."});twve.tiddler.prePopupShow=Popup.show;Popup.show=twve.tiddler.popupShow;twve.tiddler.preRefreshTiddler=story.refreshTiddler;story.refreshTiddler=twve.tiddler.refreshTiddler;twve.tiddler.preTabsSwitchTab=config.macros.tabs.switchTab;config.macros.tabs.switchTab=twve.tiddler.tabsSwitchTab;twve.tiddler.preTiddlerTransclude=config.macros.tiddler.transclude;
config.macros.tiddler.transclude=twve.tiddler.tiddlerTransclude;twve.tiddler.preSliderHandler=config.macros.slider.handler;config.macros.slider.handler=twve.tiddler.sliderHandler;twve.tiddler.preOnClickSlider=config.macros.slider.onClickSlider;config.macros.slider.onClickSlider=twve.tiddler.onClickSlider;if(/\bnt\b(.*?)11/.test(config.userAgent))config.browser.isIE=config.browser.isIE11=!0;else if(config.browser.isIE){var a=config.userAgent.match(/msie 7(.*?)trident\//);if(a)switch(a=a.index+a[0].length,
config.userAgent.charAt(a)){case "6":config.browser.isIE10=config.browser.isIE1076=!0;break;case "5":config.browser.isIE975=!0;break;case "4":config.browser.isIE874=!0}else if(a=config.userAgent.indexOf("msie "),0<=a)switch(config.userAgent.charAt(a+5)){case "1":config.browser.isIE10=!0;break;case "9":config.browser.isIE9=!0;break;case "8":config.browser.isIE8=!0}config.browser.isIE&&(!config.browser.isIE10&&!config.browser.isIE1076&&!config.browser.isIE9&&!config.browser.isIE975&&!config.browser.isIE8&&
!config.browser.isIE874)&&displayMessage("''twve'' message: Unsupported IE version.\n\n "+config.userAgent+"\n\nPlease inform the author at qmo.wcy2@gmail.com. Thanks a lot.")}a=config.userAgent.indexOf("nt ");if(0<=a)switch(config.userAgent.substring(a+3,a+6)){case "6.1":config.browser.isWin7=!0;break;case "6.3":config.browser.isWin8=!0;break;case "5.1":config.browser.isWinXP=!0}else 0<=config.userAgent.indexOf("android")?config.browser.isAndroid=!0:/ip(.*?)mac/.test(config.userAgent)?config.browser.isiOS=
!0:config.macros.twveCoreOptions.identifyWebkitBrowser();window.addEventListener("resize",function(b){twve.tiddler.resize(b||window.event)});void 0===config.options.chktwveCoreEditWrappers&&(config.options.chktwveCoreEditWrappers=!1);merge(config.optionsDesc,{chktwveCoreEditWrappers:"Edit wrappers and tiddler title, default to false<br>(The ''twve.extra'' will automatically enable this feature, regardless of this setting)."});void 0===config.options.chktwveCorePreview&&(config.options.chktwveCorePreview=
void 0===config.options.chkTWtedPreview?!0:config.options.chkTWtedPreview);void 0===config.options.txttwveCorePreviewHeight&&(config.options.txttwveCorePreviewHeight=void 0===config.options.txtTWtedPreviewMaxHeight?"15":config.options.txtTWtedPreviewMaxHeight);void 0===config.options.txttwveCoreMinEditWidth&&(config.options.txttwveCoreMinEditWidth=6);void 0===config.options.txttwveCorePreviewCaret&&(config.options.txttwveCorePreviewCaret=void 0===config.options.txtTWtedPreviewCaret?"|":config.options.txtTWtedPreviewCaret);
/^[0-9]+$/.test(config.options.txttwveCorePreviewCaret)&&(config.options.txttwveCorePreviewCaret=String.fromCharCode(1*config.options.txttwveCorePreviewCaret));void 0===config.options.chktwveCoreConfirmToDelete&&(config.options.chktwveCoreConfirmToDelete=void 0===config.options.chkTWtedConfirmToDelete?!0:config.options.chkTWtedConfirmToDelete);void 0===config.options.chktwveCoreClickAway&&(config.options.chktwveCoreClickAway=void 0===config.options.chkTWtedClickAway?!0:config.options.chkTWtedClickAway);
void 0===config.options.chktwveCoreManualSave&&(config.options.chktwveCoreManualSave=void 0===config.options.chkTWtedManualSave?!1:config.options.chkTWtedManualSave);void 0===config.options.chktwveCoreManualUpload&&(config.options.chktwveCoreManualUpload=void 0===config.options.chkTWtedManualUpload?!1:config.options.chkTWtedManualUpload);merge(config.optionsDesc,{chktwveCorePreview:"Enable previewer. Default to true.",txttwveCoreMinEditWidth:"Minimum edit box width (characters). Default value is 6.",
txttwveCorePreviewHeight:"Previewer max height (lines of text). Default to 15.",txttwveCorePreviewCaret:"Caret in the previewer. Default to vertical line (|)",chktwveCoreConfirmToDelete:"Confirm before deleting elements.",chktwveCoreClickAway:"Click away to accept changes.",chktwveCoreManualSave:'Save changes to file manually. If true, a button labeled "S" will be provided for manual save. Otherwise the file will be saved each time a change is accepted.',chktwveCoreManualUpload:'Upload changes to server manually. If true, a button labeled "U" will be provided for manual upload. Otherwise all changes will be uploaded each time a change is accepted.'});
twve.tiddler.preEditHandler=config.commands.editTiddler.handler;config.commands.editTiddler.handler=twve.tiddler.editHandler;twve.tiddler.precloseTiddler=story.closeTiddler;story.closeTiddler=twve.tiddler.closeTiddler;twve.tiddler.preSaveHandler=config.commands.saveTiddler.handler;config.commands.saveTiddler.handler=twve.tiddler.saveHandler;twve.tiddler.preCancelHandler=config.commands.cancelTiddler.handler;config.commands.cancelTiddler.handler=twve.tiddler.cancelHandler;twve.tiddler.preSaveChanges=
saveChanges;saveChanges=twve.tiddler.saveChanges;twve.wrapper.prepareElements=twve.heading.prepareElements;var a=config.shadowTiddlers.OptionsPanel,b=a.indexOf("----");config.shadowTiddlers.OptionsPanel=a.substring(0,b)+"----\n[[twve.core Options|twve.core Options]]\n"+a.substring(b);merge(config.shadowTiddlers,{"twve.core Options":"<<twveCoreOptions>>"});twve.tiddler.registerWrapper(twve.tiddlerTitle);twve.tiddler.registerWrapper(twve.viewer);twve.tiddler.registerWrapper(twve.tabContent);twve.tiddler.registerWrapper(twve.tiddlerSpan);
twve.tiddler.registerWrapper(twve.sliderPanel)},order:{chktwveCoreEnabled:0,chktwveCoreShowFocus:1,chktwveCoreEditWrappers:2,txttwveCoreMinEditWidth:3,txttwveCorePreviewHeight:4,chktwveCorePreview:5,txttwveCorePreviewCaret:6,chktwveCoreConfirmToDelete:7,chktwveCoreClickAway:8,chktwveCoreManualSave:9,chktwveCoreManualUpload:10},collectOptions:function(a,b){var c=[],d;for(d in config.options)if(0<=d.indexOf(a)){var e=config.optionsDesc[d];if(e){var f=e.indexOf(".");-1<f?"twve"==e.substring(f-4,f)&&
(f=e.indexOf(".",f+1),-1==f?f=e.length:f++):f=e.length;c[c.length]="\n|<<option "+d+">>|"+e.substring(0,f)+" |"}}b&&c.sort(function(a,c){var d=a.substring(a.indexOf(" ")+1,a.indexOf(">>")),e=c.substring(c.indexOf(" ")+1,c.indexOf(">>"));return b[d]>b[e]?1:-1});return c},prepareOptionsTable:function(a,b,c){a="|"+a+"|c\n| Value | Description |h";b=this.collectOptions(b,c);c=0;for(var d=b.length;c<d;c++)a+=b[c];return a},showOptionsTable:function(a,b,c,d){var e=document.createElement("div");a.appendChild(e);
a=this.prepareOptionsTable(b,c,d);wikify(a,e);e=e.querySelector("table");twve.node.setDimension(e,"35em");twve.node.setDimension(e.querySelectorAll("input"),"5em")},handler:function(a){config.macros.twveCoreOptions.showOptionsTable(a,"''twve.core'' Options","twveCore",config.macros.twveCoreOptions.order)}};
twve.object={isCollection:function(a){return a&&void 0!==a.length&&"object"==typeof a},level:0,toString:function(a){switch(typeof a){case "function":return"function";case "object":if(!a)return a;if(a.nodeType)return twve.node.info(a);if(a.title&&a.modifier)return"{title: "+a.title+" ...}";for(var b="{",c=twve.object.keys(a),d=0,e=c.length;d<e;d++){var b=b+((0==d?"":", ")+"\n\t"+c[d]+":"),f=a[c[d]];f?5>++twve.object.level&&(b+=twve.object.toString(f),--twve.object.level):b+=f}return b+"\n}";default:return a}},
keys:function(a,b){var c=[],d;for(d in a)if(b||"function"!=typeof a[d])c[c.length]=d;return c},copyKey:function(a,b,c){switch(typeof b[c]){case "string":case "number":case "boolean":case "function":a[c]=b[c];break;default:if(!b[c])break;if(void 0!==b[c].length){a[c]||(a[c]=[]);for(var d=0,e=b[c].length;d<e;d++)a[c][d]=b[c][d]}else if(b[c].getFullYear){a[c]=new Date(b[c]);break}else a[c]||(a[c]=twve.object.create());for(var d=twve.object.keys(b[c],!0),f=0,e=d.length;f<e;f++)twve.object.copyKey(a[c],
b[c],d[f])}return a},copyKeys:function(a,b,c){for(var d=0,e=c.length;d<e;d++)twve.object.copyKey(a,b,c[d]);return a},create:function(a){var b={clone:function(){return twve.object.create(b)},copyKey:function(a,d){return twve.object.copyKey(b,a,d)},keys:function(){return twve.object.keys(b)},copyFrom:function(a,d){return twve.object.copyKeys(b,a,d||a.keys())},toString:function(){return twve.object.toString(b)},created:function(a){return a?b.copyFrom(a):b}};return b.created(a)}};
twve.text={markupTags:function(){var a=twve.tags.create(["'",'"'],["'",'"']);a.clone=function(){return twve.text.markupTags()};return a},tiddlerSlice:function(a){if(!a)return"";var b=a.indexOf(config.textPrimitives.sliceSeparator);return-1<b?a.substring(b+config.textPrimitives.sliceSeparator.length):""},sectionTitle:function(a){for(var b=0,c=/[! \t]/;c.test(a.charAt(b));)b++;return 0<b?a.substring(b):a},tiddlerSection:function(a){if(!a)return"";var b=a.indexOf(config.textPrimitives.sectionSeparator);
return-1<b?(a=a.substring(b+config.textPrimitives.sectionSeparator.length),a=twve.text.sectionTitle(a),a.replace("\u2014","--")):""},tiddlerTitle:function(a){if(!a)return"";var b=a.indexOf(config.textPrimitives.sectionSeparator);-1==b&&(b=a.indexOf(config.textPrimitives.sliceSeparator));return-1<b?a.substring(0,b):a},headerToSkip:function(a){var b=a.lastIndexOf("?");return 0<b&&b<a.length-1&&(a=a.substring(b+1),/^\d$/.test(a))?1*a:0},removeHeaderTail:function(a){var b=a.lastIndexOf("?");0<b&&(b<a.length-
1&&!/[\D]/.test(a.substring(b+1)))&&(a=a.substring(0,b));return a},lastIndexOf:function(a,b,c,d){if(b)if("string"==typeof b)c.ndx=a.lastIndexOf(b,c.ndx),c.matched=-1<c.ndx?b:"";else if(b.exec){d=0;for(var e=c.ndx;;){var f=a.substring(d,e);if(!f)break;b.lastIndex=Math.round(f.length/2);var g=b.exec(f);g?(c.ndx=d+g.index,c.matched=g[0],d=c.ndx+c.matched.length):e=Math.round(d+f.length/2)}}else{if(b.length){e=[];f=b.length;for(g=0;g<f;g++)e[g]=twve.position.create(c),twve.text.lastIndexOf(a,b[g],e[g],
d);c.ndx=e[0].ndx;c.matched=e[0].matched;a=c;for(g=1;g<f;g++)-1!=e[g].ndx&&(-1==c.ndx||!d&&e[g].ndx>c.ndx?(c.ndx=e[g].ndx,c.matched=e[g].matched):(a.next=twve.position.create(e[g]),a=a.next))}}else c.ndx=-1,c.matched="";return c},indexOf:function(a,b,c,d){if(b)if("string"==typeof b)c.ndx=a.indexOf(b,c.ndx),c.matched=-1<c.ndx?b:"";else if(b.exec)b.lastIndex=c.ndx,(d=b.exec(a))?(c.ndx=d.index,c.matched=d[0]):(c.ndx=-1,c.matched="");else{if(b.length){for(var e=[],f=b.length,g=0;g<f;g++)e[g]=twve.position.create(c),
twve.text.indexOf(a,b[g],e[g],d);c.ndx=e[0].ndx;c.matched=e[0].matched;a=c;for(g=1;g<f;g++)-1!=e[g].ndx&&(-1==c.ndx||!d&&e[g].ndx<c.ndx?(c.ndx=e[g].ndx,c.matched=e[g].matched):(a.next=twve.position.create(e[g]),a=a.next))}}else c.ndx=-1,c.matched="";return c},skipToActive:function(a,b,c,d,e){c?"number"==typeof c&&(c=twve.position.create(c)):c=twve.position.create(0);d?"number"==typeof d&&(d=twve.position.create(d)):d=twve.position.create(a.length);var f=twve.position.create(c),f=twve.text.indexOf(a,
b,f);if(f.ndx==c.ndx)return f;if(f.ndx>d.ndx)return f.ndx=-1,f;e||(e=twve.tags.inactiveTags());for(var g=twve.position.create(f);f.ndx>c.ndx&&f.ndx<d.ndx&&(g=e.encloses(a,f.ndx,c,d));)f.ndx=g.ndx+g.matched.length,f=twve.text.indexOf(a,b,f);if(f.ndx<c.ndx||f.ndx>d.ndx)f.ndx=-1;return f},consecutiveLinesEnd:function(a,b,c,d,e){var f=0;switch(typeof b){case "number":f=b;break;case "object":b.ndx&&(f=b.ndx)}b=a.length;if("\n"==a.charAt(f))f++;else for(;0<f&&"\n"!=a.charAt(f-1);)f--;var g=twve.leveledElement.getLevel(a,
f,d),h=twve.position.create(f,"\n");if(0==g)return h;h.ndx=a.indexOf(h.matched,f);if(-1==h.ndx)return h.ndx=b,h.matched="",h;e||(e=twve.tags.create("\n"+a.substring(f,f+g),"\n"));f=twve.position.create(h);do{f=twve.text.indexOf(a,e.open,f);if(f.ndx!=h.ndx||!c&&twve.leveledElement.getLevel(a,f.ndx+1,d)!=g)break;h.ndx=f.ndx+f.matched.length;h=twve.text.indexOf(a,e.exactCloseTag(f.matched).close,h);if(-1==h.ndx){h.ndx=b;h.matched="";break}f.ndx=h.ndx}while(1);return h},skipStyleText:function(a,b){if(!a.length)return 0;
if("number"!=typeof b||0>b)b=0;var c=/[^A-Za-z:;-]/.exec(a);if(c&&c.index==b)return 0;var d=b,e=/[\s\,\.]/;do{var f=a.indexOf(":",d+1);if(0<f){if(c&&c.index>b&&c.index<f)return d-b;var g=a.indexOf(";",f+1);if(g>f){if(e.test(a.substring(f+1,g)))return d-b;d=g+1}else return d-b}else return d-b}while(1)},removeStyleText:function(a){if(!a)return"";var b=twve.text.skipStyleText(a);return b<a.length?a.substring(b):""}};
twve.tags={_inactive_tags:null,inactiveTags:function(){twve.tags._inactive_tags||(twve.tags._inactive_tags=twve.tags.create("<<",">>").merge(twve.pre.markupTags()).merge(twve.code.markupTags()).merge(twve.link.markupTags()).merge(twve.tags.create('"""','"""')),twve.tags._inactive_tags.clone=function(){return twve.tags.create()});return twve.tags._inactive_tags},create:function(a,b){var c=twve.object.create();c.sameTag=function(b,a){if(b){if(!a)return!1}else return a?!1:!0;if("string"==typeof b){if("string"==
typeof a)return b==a;var c=twve.position.create(0),c=twve.text.indexOf(b,a,c);return 0<=c.ndx}if("string"==typeof a)return c=twve.position.create(0),c=twve.text.indexOf(a,b,c),0<=c.ndx;if(b.length!=a.length)return!1;for(c=0;c<b.length;c++)if(b[c]!=a[c])return!1;return!0};c.is=function(b){return c.sameTag(c.open,b.open)&&c.sameTag(c.close,b.close)};c.clone=function(){return twve.tiddler.markupTags(c)||twve.tags.create(c)};c.firstOpenTag=function(b,a,f){f||(f=c.open);if("string"==typeof f){var g=f,
h=f.length,l=0;if("\n"==f.charAt(0)){f=f.substring(1);for(h--;"\n"==b.charAt(l);)l++}b.substring(l,l+h)==f?(a.ndx=l,a.matched=g):(a.ndx=-1,a.matched="")}else if(f.exec)f.lastIndex=0,(b=f.exec(b))?(a.ndx=b.index,a.matched=b[0]):(a.ndx=-1,a.matched="");else if(f.length){g=0;for(h=f.length;g<h&&!(c.firstOpenTag(b,a,f[g]),-1!=a.ndx);g++);}else a.ndx=-1;return a};c.nextOpenTag=function(b,a,f){if(0>=a.ndx){c.firstOpenTag(b,a);if(0==a.ndx)return a;a.ndx=0}else"\n"!=b.charAt(a.ndx)&&"\n"==b.charAt(a.ndx-
1)&&a.ndx--;return twve.text.skipToActive(b,c.open,a,null,f)};c.exactCloseTag=function(b){if(b&&twve.object.isCollection(c.open)){var a=c.clone();a.open=b;a.close=twve.object.isCollection(c.close)?c.close[c.open.indexOf(b)]:c.close;return a}return c};c.lastCloseTag=function(b,a,f,g){f||(f=b.length);g||(g=c.close);if("string"==typeof g){var h=g.length;"\n"==c.close.charAt(h-1)&&"\n"!=b.charAt(f-1)&&(g=g.substring(0,--h));b.substring(f-h)==g?(a.ndx=f-h,a.matched=g):(a.ndx=-1,a.matched="")}else if(g.exec)g.lastIndex=
a.ndx,(b=g.exec(b))?(a.ndx=b.index,a.matched=b[0]):(a.ndx=-1,a.matched="");else if(g.length){f=0;for(h=g.length;f<h&&!(c.lastCloseTag(b,a,g[f]),-1!=a.ndx);f++);}else a.ndx=-1;return a};c.matchedCloseTag=function(b,a,f,g){var h=a.ndx;a=twve.text.skipToActive(b,c.close,a,null,g);if(-1<a.ndx)return a;a.ndx=h;return c.lastCloseTag(b,a,f)};c.encloses=function(b,a,f,g){if(0==a||a>=b.length-1)return null;f=twve.position.create(f);g=twve.position.create(g);0>f.ndx&&(f.ndx=0);if(g.ndx<=f.ndx||g.ndx>b.length)g.ndx=
b.length;var h=twve.position.create(a),h=twve.text.lastIndexOf(b,c.open,h,!0);if(0>h.ndx)return null;do{if(h.ndx>=f.ndx&&h.ndx+h.matched.length<=a){var l=c.exactCloseTag(h.matched),k=twve.position.create(h.ndx+h.matched.length),k=twve.text.indexOf(b,l.close,k);if(-1==k.ndx)break;if(k.ndx>a&&k.ndx<=g.ndx)return a=twve.position.create(h.ndx+h.matched.length),a=twve.text.indexOf(b,l.open,a),0>a.ndx||a.ndx>k.ndx?k:null;f.ndx=k.ndx}h=h.next}while(h);return null};c.mergeTag=function(b,a){if(!a)return b;
if(b)if("string"==typeof b)if("string"==typeof a)b!=a&&(b=[b,a]);else{b=[b];for(var c=0,g=a.length;c<g;c++)-1==b.indexOf(a[c])&&(b[b.length]=a[c])}else if("string"==typeof a)-1==b.indexOf(a)&&(b[b.length]=a);else{c=0;for(g=a.length;c<g;c++)-1==b.indexOf(a[c])&&(b[b.length]=a[c])}else b="string"==typeof a?a:a.slice(0);return b};c.merge=function(b){c.open=c.mergeTag(c.open,b.open);c.close=c.mergeTag(c.close,b.close);return c};return b?(c.open=a,c.close=b,c):c.created(a)}};
twve.link={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("a")},markupTags:function(){return twve.tags.create("[[","]]")}};
twve.tiddler={registered_element:null,registered_wrapper:null,registerElement:function(a){twve.tiddler.registered_element?-1==twve.tiddler.registered_element.indexOf(a)&&(twve.tiddler.registered_element[twve.tiddler.registered_element.length]=a):(twve.tiddler.registered_element=[],twve.tiddler.registered_element[twve.tiddler.registered_element.length]=a)},registerWrapper:function(a){twve.tiddler.registered_wrapper?-1==twve.tiddler.registered_wrapper.indexOf(a)&&(twve.tiddler.registered_wrapper[twve.tiddler.registered_wrapper.length]=
a):(twve.tiddler.registered_wrapper=[],twve.tiddler.registered_wrapper[twve.tiddler.registered_wrapper.length]=a)},enableAllEditable:function(a){for(var b in twve.tiddler.registered_element)b.enableEdit&&(b.enableEdit=!1!==a)},readOnly:function(a){return a&&"twve--example"==a.toLowerCase().substring(0,13)?!1:readOnly},registeredEditableObject:function(a,b,c,d){if(!a||!b||!config.options.chktwveCoreEnabled)return null;for(var e=twve.selector.create(),f=b.length-1;0<=f;f--){var g=b[f];if(g.enableEdit)if(e.clear(),
g.is){if(g.is(a,e))return c?{obj:g,selector:e}:g}else if(g.twveSelector(e,d),twve.node.matches(a,e.include)&&(!e.exclude||!twve.node.matches(a,e.exclude)))return c?{obj:g,selector:e}:g}return null},createEditableElement:function(a){var b=twve.tiddler.registeredEditableObject(a,twve.tiddler.registered_element,!0);return!b?null:(a=b.obj.create?b.obj.create(a):twve.element.create(a))&&twve.tiddler.readOnly(a.wrapper_title)?null:a},twveSelector:function(a,b){var c=twve.tiddler.registeredEditableObject(a,
twve.tiddler.registered_element,!0,b);c||(c=twve.tiddler.registeredEditableObject(a,twve.tiddler.registered_wrapper,!0,b));return c?c.selector:null},twveFoldableSelector:function(){var a=twve.sliderPanel.twveSelector();twve.foldedSection.twveSelector(a);return a},twveTranscludedSelectors:function(){var a=twve.selector.create();twve.tabContent.twveSelector(a);twve.sliderPanel.twveSelector(a);twve.tiddlerSpan.twveSelector(a);return a},cloneMarkupTags:function(a,b){for(var c=a.length-1;0<=c;c--){var d=
a[c];if(d.enableEdit&&d.markupTags&&(d=d.markupTags(),d.is(b)))return d}return null},markupTags:function(a,b){if(a.nodeType){var c=twve.tiddler.registeredEditableObject(a,twve.tiddler.registered_element,!1,b);c||(c=twve.tiddler.registeredEditableObject(a,twve.tiddler.registered_wrapper,!1,b));return c&&c.markupTags?c.markupTags():null}return twve.tiddler.cloneMarkupTags(twve.tiddler.registered_element,a)||twve.tiddler.cloneMarkupTags(twve.tiddler.registered_wrapper,a)},registeredSelectors:function(a,
b){b||(b=twve.selector.create());for(var c=a.length-1;0<=c;c--)a[c].twveSelector(b);return b},elementSelectors:function(a){return twve.tiddler.registeredSelectors(twve.tiddler.registered_element,a)},wrapperSelectors:function(a){return twve.tiddler.registeredSelectors(twve.tiddler.registered_wrapper,a)},directWrapper:function(a,b){var c=twve.node.closest(a.parentNode,twve.tiddler.wrapperSelectors().include);return c?twve.tiddler.createEditableWrapper(c,b):null},createEditableWrapper:function(a,b){var c=
twve.tiddler.registeredEditableObject(a,twve.tiddler.registered_wrapper);if(c){var d=c.create?c.create(a):twve.wrapper.create(a);if(!d)return null;d.wrapper_title=c.titleOfWrapper(a);return b||!twve.tiddler.readOnly(d.wrapper_title)?d:null}return null},createEditable:function(a){var b=twve.tiddler.createEditableWrapper(a);b||(b=twve.tiddler.createEditableElement(a));return b&&b.isSystemShadow()?null:b},cloneEditable:function(a){var b=twve.tiddler.registeredEditableObject(a.dom,twve.tiddler.registered_element);
return b?b.create?b.create(a):twve.element.create(a):(b=twve.tiddler.registeredEditableObject(a.dom,twve.tiddler.registered_wrapper))?b.create?b.create(a):twve.wrapper.create(a):null},titleOfWrapper:function(a){if(!a)return"";var b=twve.tiddler.registeredEditableObject(a,twve.tiddler.registered_wrapper);return b&&b.titleOfWrapper?b.titleOfWrapper(a):""},wrapperFromTitle:function(a){if(!a)return null;a=twve.text.removeHeaderTail(a);var b=twve.text.tiddlerTitle(a);a=twve.text.tiddlerSection(a);for(var c=
document.querySelectorAll("div[id=tiddlerDisplay]"),d=null,e=twve.tiddler.registered_wrapper,f=e.length-1;0<=f;f--){var g=e[f];g.wrapperFromTitle&&(g=g.wrapperFromTitle(b,c,a))&&(d=d?d.concat(g):g)}return d},get:function(a,b){if(!b||b!=story)b=store;return b.getTiddler(twve.text.tiddlerTitle(a))},displaySelector:function(){return"div[id=displayArea]"},getDisplay:function(){return document.querySelector("div[id=displayArea]")},optionsMenu:null,getOptionsMenu:function(){twve.tiddler.optionsMenu||(twve.tiddler.optionsMenu=
twve.menu.create(twve.button.create(null,String.fromCharCode(8801),"''twve'' menu")),twve.tiddler.optionsMenu.addMenu("''twve.core'' Options",config.macros.twveCoreOptions.handler));return twve.tiddler.optionsMenu},cur_focus:null,focusElem:function(a,b){if("undefined"!=typeof a){twve.tiddler.cur_focus&&twve.tiddler.cur_focus.blur&&twve.tiddler.cur_focus.blur();if(a)a.focus&&a.focus();else{var c=twve.tiddler.getOptionsMenu();c&&c.hide(!0);(!b||"keep"!=b.toLowerCase().substring(0,4))&&twve.tiddler.drawFocusBorders()}twve.tiddler.cur_focus=
a}return twve.tiddler.cur_focus},border_top:null,border_bottom:null,border_left:null,border_right:null,createFocusBorder:function(a,b){a||(a=twve.tiddler.getDisplay());var c=document.createElement("div");a.appendChild(c);c.style.position="absolute";twve.node.setDimension(c,null,0);switch(b){case "left":c.style.borderLeftWidth="1px";c.style.borderLeftStyle="dashed";break;case "right":c.style.borderRightWidth="1px";c.style.borderRightStyle="dashed";break;case "top":c.style.borderTopWidth="1px";c.style.borderTopStyle=
"dashed";break;case "bottom":c.style.borderBottomWidth="1px",c.style.borderBottomStyle="dashed"}return c},focusBorderVisible:function(){return twve.node.isVisible(twve.tiddler.border_top[0])},prepareFocusBorders:function(a){twve.node.setPosition(twve.tiddler.border_left[0],a.left,a.top);twve.node.setDimension(twve.tiddler.border_left[0],null,a.height);twve.node.setPosition(twve.tiddler.border_top[0],a.left,a.top);twve.node.setDimension(twve.tiddler.border_top[0],a.width);twve.node.setPosition(twve.tiddler.border_bottom[0],
a.left,a.bottom);twve.node.setDimension(twve.tiddler.border_bottom[0],a.width);twve.node.setPosition(twve.tiddler.border_right[0],a.right,a.top);twve.node.setDimension(twve.tiddler.border_right[0],null,a.height);return 1},focus_box:null,focusBox:function(){return twve.tiddler.focus_box},clearFocusBox:function(){twve.tiddler.focus_box=null},drawFocusBorders:function(a){a?(twve.tiddler.focus_box=[{}],a.cloneTo(twve.tiddler.focus_box[0],0,!1),a.cloneTo(twve.tiddler.focus_box),a=twve.tiddler.prepareFocusBorders(a),
config.options.chktwveCoreShowFocus&&(twve.node.show(twve.tiddler.border_top,0,a),twve.node.show(twve.tiddler.border_bottom,0,a),twve.node.show(twve.tiddler.border_left,0,a),twve.node.show(twve.tiddler.border_right,0,a))):(twve.tiddler.focus_box=null,twve.node.hide(twve.tiddler.border_top),twve.node.hide(twve.tiddler.border_bottom),twve.node.hide(twve.tiddler.border_left),twve.node.hide(twve.tiddler.border_right))},editWrappers:function(){return config.options.chktwveCoreEditWrappers},focus:function(a,
b,c,d){var e=null;if(!a||!config.options.chktwveCoreEnabled)b="off";else{e=a.dom;if(twve.node.closest(e,".preview"))return;config.options.chktwveCoreNoClick&&(!twve.tiddler.cur_editable||!twve.tiddler.cur_editable.is(e))&&twve.tiddler.editInPlace(a,c)}if(!twve.tiddler.border_top){var f=twve.tiddler.getDisplay();twve.tiddler.border_top=[];twve.tiddler.border_top[0]=twve.tiddler.createFocusBorder(f,"top");twve.tiddler.border_bottom=[];twve.tiddler.border_bottom[0]=twve.tiddler.createFocusBorder(f,"bottom");
twve.tiddler.border_left=[];twve.tiddler.border_left[0]=twve.tiddler.createFocusBorder(f,"left");twve.tiddler.border_right=[];twve.tiddler.border_right[0]=twve.tiddler.createFocusBorder(f,"right")}if(!e||"off"==b||a.isWrapper()&&!twve.tiddler.editWrappers())twve.tiddler.drawFocusBorders(),twve.tiddler.focusElem(null);else if(twve.tiddler.focusElem(a),a.isWrapper()?(twve.tiddler.drawFocusBorders(),d||(d=a.box("focus",c))):(d||(d=a.box("focus",c)),twve.tiddler.drawFocusBorders()),d&&d.height>=twve.node.cssSize("font-size",
e))return a.drawFocusBorders?a.drawFocusBorders(d):twve.tiddler.drawFocusBorders(d),!0},mousePosition:function(a){var b=twve.object.create();a&&(b.x=a.pageX,b.y=a.pageY);return twve.node.adjustPosition(b)},focusTarget:function(a){return a.target},mouseMove:function(a){a=a||window.event;var b=twve.tiddler.focusElem(),c=null,d=null,e=twve.tiddler.focusTarget(a);if(b)if(b.is(e))b.mousemove&&b.mousemove(a);else{(config.browser.isAndroid||config.browser.isiOS)&&twve.tiddler.updateText();var c=twve.tiddler.focusBox(),
f=twve.node.box(e);if(c&&c.contains(f))twve.tiddler.focusElem(null,"keep"),(d=twve.tiddler.createEditable(e))?(twve.tiddler.focus(),c=d.differentBox?null:f):twve.tiddler.focusElem(b);else if(b.mouseleave?b.mouseleave(a):1)twve.tiddler.focus(),(d=twve.tiddler.createEditable(e))&&(c=d.differentBox?null:f)}else(config.browser.isAndroid||config.browser.isiOS)&&twve.tiddler.updateText(),d=twve.tiddler.createEditable(e);d&&(!d.mouseenter||d.mouseenter(a))&&twve.tiddler.focus(d,"on",a,c)},eventTarget:function(a){return 0==
a.button||config.browser.isIE&&1==a.button?a.target:null},m_count:0,down_elem:null,mouseDown:function(a){a=a||window.event;var b=twve.tiddler.eventTarget(a);if(b){a=twve.tiddler.mousePosition(a);var c=twve.tiddler.focusElem();if(c&&c.is(b)&&(c=twve.tiddler.focusBox())&&(a.x>=c.right||a.y>=c.bottom))return twve.tiddler.down_elem=null;c=twve.tiddler.getOptionsMenu();c.isVisible()&&c.contains(a)||"A"==b.nodeName||twve.node.closest(b,"A")?(b=null,twve.tiddler.m_count=0):(config.browser.isAndroid||config.browser.isiOS?
0<twve.tiddler.m_count&&c.hide(!0):c.hide(!0),b!=twve.tiddler.down_elem&&(twve.tiddler.m_count=0))}return twve.tiddler.down_elem=b},mouseUp:function(a){if(twve.tiddler.down_elem){a=a||window.event;var b=twve.tiddler.eventTarget(a);if(b&&b==twve.tiddler.down_elem&&!twve.button.isSystemButton(b)){var c=twve.tiddler.getEditBox();if(c&&twve.node.is(b,c))twve.tiddler.previewEditBox(b);else if(!twve.node.closest(b,".preview")&&!twve.node.matches(b,"textarea,input"))if(twve.node.matches(b,"html,#displayArea,#contentWrapper,.txtMainTab,.header,.headerShadow,.headerForeground,.siteTitle,.siteSubtitle,#menuBar"))twve.tiddler.updateText(),
twve.tiddler.focus();else{var d=twve.tiddler.focusElem();if(d){if(config.browser.isAndroid||config.browser.isiOS){if(2>++twve.tiddler.m_count)return;twve.tiddler.m_count=0}c&&twve.tiddler.updateTextAndIndex(d);if(d.isEditable(b))return!twve.tiddler.editInPlace(d,a)}}}}},resize:function(a){if(!twve.tiddler.cur_editable&&!config.browser.isAndroid&&!(config.browser.isiOS||config.browser.isIE&&!config.browser.isIE9)){a=window.pageXOffset;var b=window.pageYOffset;twve.tiddler.focusElem(null);var c=document.querySelectorAll("#sidebar,#mainMenu");
window.innerWidth<screen.width/2?twve.node.hide(c):twve.node.show(c);for(var d=twve.viewer.create(),c=twve.viewer.twveSelector(),c=document.querySelectorAll(c.include),e=0,f=c.length;e<f;e++)twve.node.matches(c[e],"div.board")||(d.setElement(c[e]),d.refreshSelf(d.getText()),d.clear());window.scrollTo(a,b)}},saveText:function(a,b,c){var d=a.tiddler;b="string"==typeof b?b:d.text;if(c){if(store.tiddlerExists(c)){if(!confirm(config.messages.overwriteWarning.format([c])))return null;story.closeTiddler(c,
!1)}a=story.getTiddler(d.title);a.id=story.tiddlerId(c);a.setAttribute("tiddler",c);store.saveTiddler(d.title,c,b);return b}c=null;config.macros.undo&&(c=store.undo_saveTiddler,store.undo_saveTiddler=function(){},store.saveTiddler(d.title,d.title,b));d.set(d.title,b,d.modifier,new Date);store.setDirty(!0);config.macros.undo&&(store.undo_saveTiddler=c);"file:"==window.location.protocol?config.options.chktwveCoreManualSave||autoSaveChanges(null,[a.tiddler]):!config.options.chktwveCoreManualUpload&&
config.macros.upload&&config.macros.upload.action();return b},preRefreshTiddler:null,refreshTiddler:function(){var a=twve.tiddler.preRefreshTiddler.apply(this,arguments);if(a&&config.options.chktwveCoreEnabled){var b=a.querySelector(".viewer");b||(b=a);twve.viewer.create(b).waitAndPrepare();b=twve.node.closest(a,"div[id=tiddlerDisplay]");b.removeEventListener("mousemove",twve.tiddler.mouseMove);b.addEventListener("mousemove",twve.tiddler.mouseMove);document.removeEventListener("mousedown",twve.tiddler.mouseDown);
document.addEventListener("mousedown",twve.tiddler.mouseDown);document.removeEventListener("mouseup",twve.tiddler.mouseUp);document.addEventListener("mouseup",twve.tiddler.mouseUp);twve.tiddler.getOptionsMenu().hide(!0)}return a},prePopupShow:null,popupShow:function(){twve.tiddler.prePopupShow.apply(this,arguments);var a=Popup.stack[Popup.stack.length-1];twve.wrapper.create(a.popup).waitAndPrepare();return a},preTabsSwitchTab:null,tabsSwitchTab:function(a,b){twve.tiddler.preTabsSwitchTab.apply(this,
arguments);if(twve.node.closest(a,twve.tiddler.displaySelector())){twve.tabContent.create(a.nextSibling).waitAndPrepare();var c=twve.tiddler.focusElem();c&&twve.tiddler.drawFocusBorders(c.box())}},preTiddlerTransclude:null,tiddlerTransclude:function(a){twve.tiddler.preTiddlerTransclude.apply(this,arguments);if(twve.node.closest(a,twve.tiddler.displaySelector())){var b=twve.tiddlerSpan.create(a);b.waitAndPrepare&&b.waitAndPrepare()}},preSliderHandler:null,sliderHandler:function(a){twve.tiddler.preSliderHandler.apply(this,
arguments);if(twve.node.closest(a,twve.tiddler.displaySelector())){var b=twve.sliderPanel.create(a.querySelector("div[tiddler]"));b.waitAndPrepare&&b.waitAndPrepare()}},preOnClickSlider:null,onClickSlider:function(){twve.tiddler.preOnClickSlider.apply(this,arguments)},cur_editable:null,edit_box:null,getEditBox:function(){return twve.tiddler.edit_box},setEditBox:function(a){return twve.tiddler.edit_box=a},adjustEditBoxHeight:function(a){Math.round(twve.node.height(a));twve.node.setDimension(a,null,
0);var b=1*a.getAttribute("scrH0"),c=a.scrollHeight,c=Math.max(c,b);twve.node.setDimension(a,null,c)},preview:null,getPreviewer:function(a){if(!twve.tiddler.preview){a||(a=twve.tiddler.getDisplay());var b=document.createElement("div");twve.tiddler.preview=b;a.appendChild(b);b.style.position="absolute";b.style.overflow="auto";b.style.zIndex=2;b.style.border="1px solid black";b.style.padding=0;b.style.margin=0;b.style.backgroundColor="#fff8dc";b.classList.add("preview");a=document.createElement("div");
b.appendChild(a);a.classList.add("board","viewer","tiddler","selected");twve.node.hide(b)}return twve.tiddler.preview},editInPlace:function(a,b){return b&&(b.ctrlKey||b.shiftKey||b.altKey)?!1:a.wrapper_title?a.editText(b):!1},getEditInfo:function(a){a||(a=twve.tiddler.getEditBox());var b={},c;if(a){b.text=[];for(var d=0,e=a.length;d<e;d++)if(a[d].nodeType)c=a[d].value,b.text[d]=c,"true"==a[d].getAttribute("cancel")&&(b.canceled=!0),a[d].defaultValue!=c&&(b.modified=!0);else{b.text[d]=[];for(var f=
0,g=a[d].length;f<g;f++)c=a[d][f].value,b.text[d][f]=c,"true"==a[d][f].getAttribute("cancel")&&(b.canceled=!0),a[d][f].defaultValue!=c&&(b.modified=!0)}}return b},updateText:function(a,b,c,d){void 0===b&&(b=twve.tiddler.cur_editable);a||(a=twve.tiddler.getEditBox());if(!a||!b)return twve.tiddler.closeEditbox(),twve.tiddler.cur_editable=null;a=twve.tiddler.getEditInfo(a);!a.canceled&&a.modified&&b.updateText(a.text,c);d||(twve.tiddler.closeEditbox(),twve.tiddler.cur_editable=null);return b},updateTextAndIndex:function(a){var b=
twve.tiddler.cur_editable,c=b.end.ndx;twve.tiddler.updateText();if(a){var d=b.end.ndx-c;d&&twve.text.tiddlerTitle(b.wrapper_title)==twve.text.tiddlerTitle(a.wrapper_title)&&(b.dom==a.dom?a.end.ndx=b.end.ndx:a.start.ndx>c&&(a.start.ndx+=d,a.end.ndx+=d))}},caretPosition:function(a,b,c){if("undefined"==typeof b){try{if(document.selection){a.focus();var d=document.selection.createRange(),e=d.duplicate();e.moveToElementText(a);e.setEndPoint("EndToStart",d);return e.text.length-d.text.length}if(a.selectionStart||
"0"==a.selectionStart)return 1*a.selectionStart}catch(f){console.log(f)}return-1}"number"!=typeof b&&(b=0);"number"!=typeof c?c=b:b>c&&(d=b,b=c,c=d);a.setSelectionRange?(a.focus(),a.setSelectionRange(b,c)):a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",b),a.select())},getSelectionText:function(a){var b=twve.object.create();b.start=0;b.end=0;if("number"==typeof a.selectionStart&&"number"==typeof a.selectionEnd)b.start=a.selectionStart,b.end=
a.selectionEnd;else if(document.selection){var c=document.selection.createRange().getBookmark();a=a.createTextRange();var d=a.duplicate();a.moveToBookmark(c);d.setEndPoint("EndToStart",a);b.start=d.text.length;b.end=b.start+a.text.length}return b},closeEditbox:function(){twve.tiddler.preview&&twve.node.hide(twve.tiddler.preview);var a=twve.tiddler.edit_box;if(a){for(var b=0,c=a.length;b<c;b++)if(a[b].nodeType)a[b].parentNode.removeChild(a[b]);else for(var d=0,e=a[b].length;d<e;d++)a[b][d].parentNode.removeChild(a[b][d]);
twve.tiddler.edit_box=null}},previewEditBox:function(a,b){var c=twve.tiddler.getPreviewer();if(!config.options.chktwveCorePreview||!twve.tiddler.cur_editable)return twve.node.hide(c),null;twve.node.setDimension(c,a.offsetWidth);if("number"!=typeof b||-1==b)b=twve.tiddler.caretPosition(a);var d=a.value,d=0==b?config.options.txttwveCorePreviewCaret+d:d.substring(0,b)+config.options.txttwveCorePreviewCaret+d.substring(b);twve.node.show(c);var e=c.querySelector("div.board");twve.node.copyFontColor(e,
c,!0);twve.node.wikifyAndPrepare(d,e);var d=(new String(config.options.txttwveCorePreviewHeight)).toLowerCase().trim(),f=twve.node.cssSize(window.getComputedStyle(e).getPropertyValue("line-height")),d=/\D$/.test(d)?twve.node.cssSize(d):f*d,e=e.offsetHeight+f;e>d&&(e=d);d=twve.node.box(a);e>d.top?(e=d.top,d.top=0):d.top-=e;twve.node.setPosition(c,d.left,d.top-2);twve.node.setDimension(c,null,e+1);return c},getPreviewedNodes:function(a,b){var c=twve.tiddler.getPreviewer(),d=c.querySelector("div.board");
if(twve.node.isVisible(c))return twve.node.wikifyAndPrepare(a,d);twve.node.show(c);b&&(twve.node.copyFontColor(c,b,!0),twve.node.setDimension(c,b.offsetWidth));twve.node.copyFontColor(d,c,!0);d=twve.node.wikifyAndPrepare(a,d);twve.node.hide(c);return d},caret_pos:null,initCaretPos:function(a){twve.tiddler.caret_pos||(twve.tiddler.caret_pos=twve.object.create());void 0===a&&(a=-100);twve.tiddler.caret_pos.cur=a;twve.tiddler.caret_pos.last=a},setCaretPosition:function(a){twve.tiddler.caret_pos.last=
twve.tiddler.caret_pos.cur;twve.tiddler.caret_pos.cur=a},updateCaretPosition:function(a,b){var c=twve.tiddler.caretPosition(a);(b||c!=twve.tiddler.caret_pos.cur)&&twve.tiddler.previewEditBox(a,c);twve.tiddler.setCaretPosition(c)},keydownCancel:function(a,b){return 27==a.which?(b.setAttribute("cancel","true"),twve.tiddler.updateText(),!0):!1},keydownAfter:function(a,b){if(twve.tiddler.keydownCancel(a,b)||!twve.tiddler.cur_editable)return!1;var c=!1;switch(a.which){case 46:c=!0;case 8:if(a.alterKey)return!1;
break;case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:if(a.alterKey||a.shiftKey)return!1;break;default:twve.tiddler.adjustEditBoxHeight(b)}twve.tiddler.updateCaretPosition(b,c);return!0},keydown:function(a){a=a||window.event;var b=this,c=twve.tiddler.cur_editable;switch(a.which){case 13:if(c.multiLine(b.value)){if(a.ctrlKey)return twve.tiddler.updateText(),!1;0==twve.tiddler.caret_pos.cur&&twve.tiddler.caret_pos.cur++}else return twve.tiddler.updateText(),!1;default:setTimeout(function(){twve.tiddler.keydownAfter(a,
b)},0)}},text_before_paste:null,selection_at_paste:null,textPasted:function(a){(a=a.value)&&(a=a.substring(twve.tiddler.selection_at_paste.start,twve.tiddler.selection_at_paste.start+(a.length-twve.tiddler.text_before_paste.length+twve.tiddler.selection_at_paste.end-twve.tiddler.selection_at_paste.start)));return a},paste:function(){if(!twve.tiddler.text_before_paste){var a=this;twve.tiddler.text_before_paste=a.value;twve.tiddler.selection_at_paste=twve.tiddler.getSelectionText(a);setTimeout(function(){twve.tiddler.cur_editable.pasteIn&&
twve.tiddler.cur_editable.pasteIn(a);twve.tiddler.text_before_paste=null},0)}},copyOrCut:function(a){twve.tiddler.cur_editable.copyOrCut&&twve.tiddler.cur_editable.copyOrCut(this,a)},preEditHandler:null,editHandler:function(a,b,c){twve.tiddler.updateText();twve.tiddler.preEditHandler.apply(this,arguments);return!1},precloseTiddler:null,closeTiddler:function(){twve.tiddler.updateText();twve.tiddler.focus();return twve.tiddler.precloseTiddler.apply(this,arguments)},preSaveHandler:null,saving:!1,saveHandler:function(){twve.tiddler.saving=
!0;var a=twve.tiddler.preSaveHandler.apply(this,arguments);twve.tiddler.saving=!1;return a},preCancelHandler:null,cancelHandler:function(a,b,c){return store.isDirty()&&!confirm(this.warning.format([c]))?!1:twve.tiddler.preCancelHandler.apply(this,arguments)},preSaveChanges:null,saveChanges:function(){twve.tiddler.preSaveChanges.apply(this,arguments);config.macros.upload&&config.macros.upload.action()}};
twve.position={init:function(a,b,c){switch(typeof b){case "number":a.ndx=0>b?0:b;a.matched=c;break;case "object":a.ndx=0>b.ndx?0:b.ndx;a.matched=b.matched;break;default:a.clear()}return a},ensureValid:function(a,b){b&&twve.position.init(a,b);0>a.ndx&&(a.ndx=0);return a},create:function(a,b){var c=twve.object.create();c.clear=function(){c.ndx=-1;c.matched="";return c};c.init=function(b,a){return twve.position.init(c,b,a)};c.ensureValid=function(b){return twve.position.ensureValid(c,b)};return c.init(a,
b)}};
twve.selector={create:function(a,b){var c=twve.object.create();c.clear=function(){c.include="";c.exclude="";return c};c.copyFrom=function(b,a){if("string"==typeof a)return c.include=b,c.exclude=a,c;if(b.include)return c.include=b.include,c.exclude=b.exclude,c;if(b.dom)return c.include=b.selector.include,c.exclude=b.selector.exclude,c;if(b=twve.tiddler.twveSelector(b))c.include=b.include,c.exclude=b.exclude;return c};c.includeSelector=function(b){b&&(c.include+=(c.include?",":"")+b);return c};c.excludeSelector=
function(b){b&&(c.exclude+=(c.exclude?",":"")+b);return c};c.clear();return a||b?c.copyFrom(a,b):c}};
twve.node={info:function(a){if(!a)return a;if(a.nodeType)return a.nodeName;var b=a.length,c="("+b+")[";--b;for(var d=0;d<b;d++)c+=a[d].nodeName+", ";return c+a[b].nodeName+"]"},matches:function(a,b){if(!a||!b)return!1;if(!a.nodeType){for(var c=0,d=a.length;c<d;c++)if(twve.node.matches(a[c],b))return!0;return!1}if(c=a.matches||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector||a.oMatchesSelector)return c.call(a,b);if(!a.parentNode)return!1;d=a.parentNode.querySelectorAll(b);if(!d.length)return!1;
for(var c=0,e=d.length;c<e;c++)if(d[c]==a)return!0;return!1},closest:function(a,b){for(;a;){if(twve.node.matches(a,b))return a;a=a.parentNode}return null},parents:function(a,b,c){var d=[];for(a=a.parentNode;a;){if(!b||twve.node.matches(a,b))if(!c||c.call(a))d[d.length]=a;a=a.parentNode}return d.length?d:null},is:function(a,b){if(!a||!b)return!1;if("string"==typeof b)return twve.node.matches(a,b);if(a.nodeType){if(b.nodeType)return a==b;for(var c=0,d=b.length;c<d;c++)if(twve.node.is(a,b[c]))return!0}else if(b.nodeType){c=
0;for(d=a.length;c<d;c++)if(twve.node.is(a[c],b))return!0}else{c=0;for(d=a.length;c<d;c++)for(var e=0,d=b.length;e<d;e++)if(twve.node.is(a[c],b[e]))return!0}return!1},not:function(a,b){if("string"==typeof b){for(var c=0;c<a.length;)twve.node.matches(a[c],b)?a.splice(c,1):c++;return a}if(b.nodeType){var d=a.indexOf(b);-1<d&&a.splice(d,1)}else for(var c=0,e=b.length;c<e;c++)d=a.indexOf(b[c]),-1<d&&a.splice(d,1);return a},replace:function(a,b,c){c||(c=b.parentNode);if(a.nodeType)c.insertBefore(a,b);
else for(;a.length;)c.insertBefore(a[0],b);c.removeChild(b)},scw:0,scrollBarWidth:function(a){if(!twve.node.scw){if(!a)return 0;var b=a.style.overflow;a.style.overflow="scroll";twve.node.scw=a.offsetWidth-a.clientWidth;a.style.overflow=b}return twve.node.scw},adjustPosition:function(a){var b=twve.tiddler.getDisplay();"static"!=window.getComputedStyle(b).getPropertyValue("position")&&(void 0!==a.left?(a.left-=b.offsetLeft,a.top-=b.offsetTop):(a.x-=b.offsetLeft,a.y-=b.offsetTop));return a},shiftPosition:function(a,
b,c){if(void 0!==b){var d=void 0===c||null===c,e="number"==typeof b?"px":"",f="number"==typeof c?"px":"";if(a.nodeType)null!==b&&(a.style.left=a.offsetLeft+b+e),d||(a.style.top=a.offsetTop+c+f);else for(var g=0,h=a.length;g<h;g++)null!==b&&(a[g].style.left=a[g].offsetLeft+b+e),d||(a[g].style.top=a[g].offsetTop+c+f)}},setPosition:function(a,b,c){if(void 0!==b){var d=void 0===c||null===c,e="",f="";"number"==typeof b&&(b=Math.round(b),e="px");"number"==typeof c&&(c=Math.round(c),f="px");if(a.nodeType)null!==
b&&(a.style.left=b+e),d||(a.style.top=c+f);else for(var g=0,h=a.length;g<h;g++)null!==b&&(a[g].style.left=b+e),d||(a[g].style.top=c+f)}},setDimension:function(a,b,c){if(void 0!==b){var d=void 0===c||null===c,e="number"==typeof b?"px":"",f="number"==typeof c?"px":"";if(a.nodeType)null!==b&&(a.style.width=b+e),d||(a.style.height=c+f);else for(var g=0,h=a.length;g<h;g++)null!==b&&(a[g].style.width=b+e),d||(a[g].style.height=c+f)}},positionShift:function(){var a=document.body,b=document.documentElement;
return twve.node.adjustPosition({left:(window.pageXOffset||b.scrollLeft||a.scrollLeft)-(b.clientLeft||a.clientLeft||0),top:(window.pageYOffset||b.scrollTop||a.scrollTop)-(b.clientTop||a.clientTop||0)})},boxInit:function(a,b,c,d){c.top=a.top;c.right=a.right;c.bottom=a.bottom;c.left=a.left;c.shift=function(b){c.top+=b.top;c.right+=b.left;c.bottom+=b.top;c.left+=b.left;return c};b&&c.shift(b);if(!1===d)return c;c.toString=function(){return twve.object.toString(c)};c.containsX=function(b){return b>=c.left&&
b<=c.right};c.containsY=function(b){return b>=c.top&&b<=c.bottom};c.contains=function(b){return b.left?c.containsX(b.left)&&c.containsX(b.right)&&c.containsY(b.top)&&c.containsY(b.bottom):c.containsX(b.x)&&c.containsY(b.y)};c.cloneTo=function(b,a,d){a="number"==typeof a?c[a]:c;twve.node.boxInit(a,null,b,d);b.width=a.width;b.height=a.height;return b};c.clone=function(b){var a=[];twve.node.boxInit(c,null,a,b);a.width=c.width;a.height=c.height;for(var d=0,h=c.length;d<h;d++)a[d]={},c.cloneTo(a[d],d,
b);return a};return c},box:function(a,b,c){if(!a)return null;var d=null;if(3==a.nodeType){var e=document.createRange();e.selectNodeContents(a);d=e.getClientRects();e.detach()}else if(twve.node.matches(a,twve.tiddler.twveTranscludedSelectors().include))d=[{}],d[0].left=a.offsetLeft,d[0].top=a.offsetTop,d[0].width=a.offsetWidth,d[0].height=a.offsetHeight,d[0].right=a.offsetLeft+d[0].width,d[0].bottom=a.offsetTop+d[0].height;else if(a.getClientRects){if(!twve.node.isVisible(a))return null;d=a.getClientRects()}else d=
[{}],d[0].left=a.screenX,d[0].top=a.screenY,d[0].width=a.innerWidth,d[0].height=a.innerHeight,d[0].right=a.screenX+d[0].width,d[0].bottom=a.screenY+d[0].height;d.initFrom=function(b,a,c,e){return twve.node.boxInit(b,a,c||d,e)};e=twve.node.positionShift();if(a.getBoundingClientRect)d.initFrom(a.getBoundingClientRect(),e),b?d.width=d.right-d.left:(d.width=a.clientWidth||a.offsetWidth,d.right=d.left+d.width),c?d.height=d.bottom-d.top:(d.height=a.clientHeight||a.offsetHeight,d.bottom=d.top+d.height);
else{if(!d[0])return null;d.initFrom(d[0]);for(a=1;a<d.length;a++)d[a].left<d.left&&(d.left=d[a].left),d[a].right>d.right&&(d.right=d[a].right),d[a].bottom>d.bottom&&(d.bottom=d[a].bottom);d.width=d.right-d.left;d.height=d.bottom-d.top;d.shift(e)}return d},cssSize:function(a,b){if(!a)return!b?0:parseFloat(window.getComputedStyle(b).getPropertyValue("font-size"));a=(new String(a)).toLowerCase().trim();var c=a.substring(a.length-2);switch(c){case "px":return Math.round(parseFloat(a));case "pt":return Math.round(16*
parseFloat(a)/12);default:var d=parseFloat(a);if(isNaN(d)){c=null;try{c=window.getComputedStyle(b)}catch(e){b=twve.tiddler.getDisplay(),c=window.getComputedStyle(b)}finally{return c?twve.node.cssSize(c.getPropertyValue(a),b):0}}return"em"==c?Math.round(16*d*parseFloat(window.getComputedStyle(b).getPropertyValue("font-size"))/12):"%"==c.charAt(1)?Math.round(d/100*twve.node.width(b,"inner")):d}},bgc:function(a,b){b||(b=window.getComputedStyle(a));for(var c;"transparent"==(c=b.getPropertyValue("background-color"))||
"rgba(0, 0, 0, 0)"==c||"inherit"==c;)if(a=a.parentNode,!a){c="#fff";break}return c},copyFontColor:function(a,b,c){if(a&&b&&a!=b){var d=window.getComputedStyle(b);a.style.fontSize=d.getPropertyValue("font-size");a.style.fontFamily=d.getPropertyValue("font-family");a.style.fontStyle=d.getPropertyValue("font-style");a.style.color=d.getPropertyValue("color");a.style.textAlign=d.getPropertyValue("text-align");c&&(a.style.backgroundColor=twve.node.bgc(b,d))}},wikify:function(a,b,c){if(b)return b.innerHTML=
"",wikify(a,b),c?b.childNodes:b;b=twve.tiddler.getPreviewer().querySelector("div.board");b.innerHTML="";wikify(a,b);return b.childNodes},wikifyAndPrepare:function(a,b){var c=twve.node.wikify(a,b,!0);if(twve.tiddler.cur_editable&&twve.tiddler.cur_editable.isWrapper()){var d=twve.tiddler.cur_editable.clone();d.dom=b;d.waitAndPrepare()}return c},isVisible:function(a){return!a?!1:3==a.nodeType?!0:a.style?"none"!=a.style.display:!0},hide:function(a){if(a)if(twve.object.isCollection(a))for(var b=0,c=a.length;b<
c;b++)a[b].style.display="none";else a.style.display="none"},show:function(a,b,c){if(a)if(twve.object.isCollection(a)){if("number"!=typeof c||c>a.length)c=a.length;if("number"!=typeof b||0>b)b=0;for(;b<c;b++)a[b].style.display=""}else a.style.display=""},getMargin:function(a,b,c){c||(c=window.getComputedStyle(a));switch(b?b.charAt(0):""){case "h":case "H":return b=(b=a.style.marginLeft||c.getPropertyValue("margin-left"))?parseInt(b):0,a=(a=a.style.marginRight||c.getPropertyValue("margin-right"))?
parseInt(a):0,b+a;case "v":case "V":return b=(b=a.style.marginTop||c.getPropertyValue("margin-top"))?parseInt(b):0,a=(a=a.style.marginBottom||c.getPropertyValue("margin-bottom"))?parseInt(a):0,b+a;case "l":case "L":return(b=a.style.marginLeft||c.getPropertyValue("margin-left"))?parseInt(b):0;case "t":case "T":return(b=a.style.marginTop||c.getPropertyValue("margin-top"))?parseInt(b):0;case "r":case "R":return(a=a.style.marginRight||c.getPropertyValue("margin-right"))?parseInt(a):0;case "b":case "B":return(a=
a.style.marginBottom||c.getPropertyValue("margin-bottom"))?parseInt(a):0}return 0},getPadding:function(a,b,c){c||(c=window.getComputedStyle(a));switch(b?b.charAt(0):""){case "h":case "H":return b=(b=a.style.paddingLeft||c.getPropertyValue("padding-left"))?parseInt(b):0,a=(a=a.style.paddingRight||c.getPropertyValue("padding-right"))?parseInt(a):0,b+a;case "v":case "V":return b=(b=a.style.paddingTop||c.getPropertyValue("padding-top"))?parseInt(b):0,a=(a=a.style.paddingBottom||c.getPropertyValue("padding-bottom"))?
parseInt(a):0,b+a;case "l":case "L":return(b=a.style.paddingLeft||c.getPropertyValue("padding-left"))?parseInt(b):0;case "t":case "T":return(b=a.style.paddingTop||c.getPropertyValue("padding-top"))?parseInt(b):0;case "r":case "R":return(a=a.style.paddingRight||c.getPropertyValue("padding-right"))?parseInt(a):0;case "b":case "B":return(a=a.style.paddingBottom||c.getPropertyValue("padding-bottom"))?parseInt(a):0}return 0},width:function(a,b,c){var d=0;b=b?b.toLowerCase().substring(0,3):"";var d="out"==
b,e=!twve.node.isVisible(a);e&&twve.node.show(a);d?(d=a.offsetWidth,c&&(d+=twve.node.getMargin(a,"horizontal"))):(d=a.clientWidth,"inn"==b&&(d-=twve.node.getPadding(a,"horizontal")));e&&twve.node.hide(a);return d},height:function(a,b,c){var d=0;b=b?b.toLowerCase().substring(0,3):"";var d="out"==b,e=!twve.node.isVisible(a);e&&twve.node.show(a);d?(d=a.offsetHeight,c&&(d+=twve.node.getMargin(a,"vertical"))):(d=a.clientHeight,"inn"==b&&(d-=twve.node.getPadding(a,"vertical")));e&&twve.node.hide(a);return d},
contains:function(a,b,c){if(c&&"geo"==c.toLowerCase().substring(0,3)){a=twve.node.box(a,!0,!0);if(!a)return!1;if(b.x)return a?a.contains(b):!1;b.dom&&(b=b.dom);return a.contains(twve.node.box(b))}for(;b=b.parentNode;)if(a==b)return!0;return!1},index:function(a){for(var b=a.parentNode.childNodes,c=0,d=b.length;c<d;c++)if(b[c]==a)return c;return-1},create:function(a){var b=twve.object.create();b.clear=function(){b.dom=null;return b};b.copyFrom=function(a){b.dom=a.dom;return b};b.is=function(a){return a&&
a.dom?b.dom==a.dom:twve.node.is(b.dom,a)};b.not=function(a){return twve.node.not(b.dom,a)};b.hide=function(){twve.node.hide(b.dom);return b};b.show=function(a){twve.node.show(b.dom);a&&twve.node.setPosition(b.dom,a.left,a.top);return b};b.isVisible=function(){return twve.node.isVisible(b.dom)};b.width=function(a,d){return twve.node.width(b.dom,a,d)};b.height=function(){return twve.node.height(b.dom)};b.getElement=function(){return b.dom};b.box=function(){return twve.node.box(b.getElement())};b.contains=
function(a,d){return twve.node.contains(b.dom,a,d)};b.add=function(a){b.dom.nodeType&&(b.dom=[b.dom]);b.dom[b.dom.length]=a.dom||a;return b};b.clear();switch(typeof a){case "string":b.dom=document.createElement(a);break;case "object":a.dom?b.copyFrom(a):a.nodeName&&(b.dom=a)}return b}};
twve.nodeList={toArray:function(a){var b=[];if(a.nodeType)b[0]=a;else for(var c=0,d=b.length=a.length;c<d;c++)b[c]=a[c];return b},querySelectorAll:function(a,b){if(a.nodeType)return twve.nodeList.toArray(a.querySelectorAll(b));for(var c=null,d=0,e=a.length;d<e;d++)var f=twve.nodeList.toArray(a[d].querySelectorAll(b)),c=c?c.concat(f):f;return c}};
twve.button={isSystemButton:function(a){return twve.node.matches(a,"svg.SVGAnimatedString, path.SVGAnimatedString")},isActive:function(a){return"1"==(a.style?a.style.opacity:window.getComputedStyle(a).getPropertyValue("opacity"))},activate:function(a,b){return a.style.opacity=b?1:0.4},create:function(a,b,c,d,e){var f=twve.node.create(createTiddlyButton(a,b,c,d));f.isActive=function(){return twve.button.isActive(f)};f.activate=function(b){return twve.button.activate(f.dom,b)};f.dom.setAttribute("id",
"twveTbtn"+(e?e:b));f.dom.style.position="absolute";f.dom.style.zIndex=1;f.dom.style.textAlign="center";f.dom.addEventListener("mouseenter",function(b){f.mouseenter&&f.mouseenter.call(this,b||window.event)});f.dom.addEventListener("mouseleave",function(b){f.mouseleave&&f.mouseleave.call(this,b||window.event)});f.dom.addEventListener("click",function(b){f.click&&f.click.call(this,b||window.event)});return f},createDelete:function(a,b,c){return twve.button.create(null,"\u2297",a,b,c)}};
twve.menu={create:function(a,b){var c=twve.node.create("div");c.findItem=function(b){if(c.items)for(var a=0;a<c.items.length;a++){var d=c.items[a];if(d.label==b)return d}return null};c.addItem=function(b,a){c.items||(c.items=[]);var d=twve.button.create(createTiddlyElement(c.dom,"li"),null,a);d.dom.style.whiteSpace="nowrap";d.label=b;twve.node.wikify(b,d.dom);d.mouseenter=function(){var b=twve.object.create();b.left=d.dom.offsetLeft+c.dom.offsetLeft;b.top=d.dom.offsetTop+c.dom.offsetTop;d.submenu&&
d.submenu.show(b,"left")};d.mouseleave=function(b){b=twve.tiddler.mousePosition(b);d.submenu&&!d.submenu.contains(b)&&d.submenu.hide()};c.items[c.items.length]=d;c.dom.removeAttribute("adjusted");return d};c.addMenu=function(b,a){var d=c.findItem(b);d||(d=c.addItem(b));d.submenu||(d.submenu=twve.menu.create(d,!0),a&&a.call(this,d.submenu.dom));return d.submenu};var d=c.contains;c.contains=function(b){if(d.call(this,b,"geo"))return!0;if(c.items)for(var a=c.items.length-1;0<=a;a--)if(c.items[a].submenu&&
c.items[a].submenu.contains(b,"geo"))return!0;return!1};c.hideRoot=function(){c.root.hide();return c};c.hide=function(b){b&&c.hideRoot();twve.node.hide(c.dom);return c};c.adjustPosition=function(b,a,d,e,k){k||(k=c);d||(d=k.width("outer",!0));a=a?a.toLowerCase():"";0<=a.indexOf("left")&&(b.left-=d);e||(e=k.height("outer",!0));0<=a.indexOf("top")?b.top-=e:0<=a.indexOf("bottom")?b.top+=e:b.top++;return b};c.showRoot=function(b,a){var d=twve.object.create();d.left=b.left;d.top=b.top;c.adjustPosition(d,
a,null,null,c.root);c.root.show(d);return d};c.adjustDim=function(){if(c.items){for(var b=0,a=0,d=0;d<c.items.length;d++){var e=twve.node.width(c.items[d].dom,"outer",!0);e>b&&(b=e);twve.node.setPosition(c.items[d].dom,null,a);a+=twve.node.height(c.items[d].dom,"outer",!0)}twve.node.setDimension(c.dom,b,a+(config.browser.isOpera||config.browser.isChrome?twve.node.scrollBarWidth(c.dom)-4:0))}c.dom.setAttribute("adjusted","true");return c};c.show=function(b,a){twve.node.show(c.dom);c.dom.getAttribute("adjusted")||
c.adjustDim();var d=c.width("outer",!0);if(b){var e=twve.object.create();e.left=b.left+4;e.top=b.top;if(d>b.left){var k=c.root.width("outer",!0),m=twve.node.box(window).width;d+k+e.left<m?(a="right",e.left+=k-4):m-d>b.left?(twve.node.setDimension(c.dom,d=m-d),a="right",e.left+=k-4):twve.node.setDimension(c.dom,d=b.left)}k=20*twve.node.cssSize(window.getComputedStyle(c.dom).getPropertyValue("font-size"));c.height("outer",!0)>k&&twve.node.setDimension(c.dom,null,k);c.adjustPosition(e,a,d,k);twve.node.setPosition(c.dom,
e.left,e.top)}return c};var e=twve.tiddler.getDisplay();a.mouseenter||(a.mouseenter=function(){var b=twve.object.create();b.left=this.offsetLeft;b.top=this.offsetTop;c.show(b,"left");return c},a.click=function(){c.show();return c},e.appendChild(a.dom));c.root=a;e.appendChild(c.dom);c.dom.style.overflow="auto";c.dom.style.position="absolute";c.dom.classList.add("popup");c.hide();b?c.dom.addEventListener("mouseleave",function(){twve.node.hide(this)}):c.dom.addEventListener("mouseleave",function(b){c.mouseleave&&
c.mouseleave.call(this,b||window.event)});return c}};
twve.editable={create:function(a){var b=twve.node.create();b.clear=function(){b.wrapper_title="";b.tiddler=null;b.wrapper=null;b.start=twve.position.create();b.end=twve.position.create();return b};preCopyFrom=b.copyFrom;b.copyFrom=function(a){preCopyFrom.apply(this,arguments);b.wrapper_title=a.wrapper_title;b.tiddler=a.tiddler;b.wrapper=a.wrapper;b.start.copyFrom(a.start);b.end.copyFrom(a.end);return b};b.created=function(a){b.clear();return a?a.dom?b.copyFrom(a):b.setElement(a):b};b.isEditable=function(a){return b.is(a)||
b.contains(a)};b.beingEdited=function(){return b.is(twve.tiddler.cur_editable)};b.clone=function(){return twve.tiddler.cloneEditable(b)};b.multiLine=function(b){return b&&0<=b.indexOf("\n")};b.twveSelector=function(a,d){return twve.tiddler.twveSelector(b.dom,a,d)};b.isWrapper=function(){return!1};b.foldedWrapper=function(){var a=b.directWrapper();return a.isVisible()?null:a};b.directWrapper=function(){return twve.tiddler.directWrapper(b.dom,!0)};b.isSystemShadow=function(){return b.wrapper_title?
store.isShadowTiddler(b.wrapper_title):!0};b.findWrappers=function(){b.wrapper||(b.wrapper=twve.tiddler.wrapperFromTitle(b.wrapper_title),b.wrapper||(b.wrapper=[]));return b.wrapper};b.setElement=function(a){if(a==b.dom)return null;b.dom=a;if(!b.directWrapper())return b;if(!b.wrapper_title&&(a=b.directWrapper())&&a.titleOfWrapper)b.wrapper_title=a.titleOfWrapper();b.isSystemShadow()?(b.tiddler=null,b.wrapper=null,b.wrapper_title=null):b.tiddler||(b.tiddler=twve.tiddler.get(b.wrapper_title));return b};
b.changed=function(b){return b.text};b.ensureValid=function(a){if(0>=a)return 0;var d=b.tiddler.text.length;return a>=d?d:a};b.checkNewLines=function(a,d,e){b.newline_close=e>d&&"\n"==a.charAt(e-1);b.newline_open="\n"==a.charAt(d)&&(b.newline_close?e>d+1:!0)};b.setText=function(a,d,e){var f=b.tiddler.text;"number"!=typeof d&&(d=b.start.ndx);"number"!=typeof e&&(e=b.end.ndx);d=b.ensureValid(d);e=b.ensureValid(e);var g=0;b.checkNewLines(f,d,e);a?(b.newline_open&&d++,b.newline_close&&e--,g=a.length-
(e-d),f=f.substring(0,d)+a+f.substring(e)):(b.newline_open&&b.newline_close&&d++,f=f.substring(0,d)+f.substring(e),g=-(e-d));d=b.directWrapper();d!=b&&(d.end.ndx+=g);b.end.ndx+=g;twve.tiddler.saveText(b,f);return a};b.getText=function(a,d){"number"!=typeof a&&(a=b.start.ndx);"number"!=typeof d&&(d=b.end.ndx);if(a>=d)return"";var e=b.tiddler.text;b.checkNewLines(e,a,d);b.newline_open&&a++;b.newline_close&&d--;return e.substring(a,d)};b.focusEditBox=function(a,d){d?a.select():a.focus();twve.tiddler.initCaretPos();
return b};b.prepareEditBox=function(a,d,e,f,g){a.style.position="absolute";a.style.padding="0";a.style.margin="0";a.style.overflow="auto";a.style.textAlign=f;a.style.fontFamily="courier";a.style.fontSize=g+"px";twve.node.setPosition(a,e.left-1,e.top-1);twve.node.setDimension(a,e.width,e.height);a.setAttribute("scrH0",e.height);a.setAttribute("spellcheck","true");a.setAttribute("cancel","false");a.setAttribute("title","("+(b.multiLine(d)?"Ctrl-":"")+"ENTER=accept, ESC=cancel)");a.addEventListener("keydown",
twve.tiddler.keydown);a.addEventListener("paste",twve.tiddler.paste);a.addEventListener("copy",function(){twve.tiddler.copyOrCut()});a.addEventListener("cut",function(){twve.tiddler.copyOrCut(!0)})};b.previewEditBox=function(b,a,e){twve.node.copyFontColor(twve.tiddler.getPreviewer(e),a,!0);return twve.tiddler.previewEditBox(b,null)};b.editText=function(a,d,e){if(!b.tiddler)return null;var f;e?f=twve.node.box(e):(e=b.getElement(),f=twve.tiddler.focusBox()||b.box("edit",a,e));twve.tiddler.cur_editable=
b;void 0===d&&(d=b.getText());var g=document.createElement("textarea");g.value=d;g.defaultValue=d;var h=window.getComputedStyle(e),l=twve.node.cssSize(h.getPropertyValue("line-height")),k=twve.node.cssSize(h.getPropertyValue("font-size"));f.height<l&&(f.height=l);l=twve.node.closest(e,twve.tiddler.displaySelector());l.appendChild(g);b.prepareEditBox(g,d,f,h.getPropertyValue("text-align"),k);twve.node.setDimension(g,null,0);h=g.scrollHeight;h<f.height?h=f.height:f.height=h;twve.node.setDimension(g,
null,h);twve.tiddler.setEditBox([g]);b.focusEditBox(g,d,a,e);b.previewEditBox(g,e,l)&&(a=k*config.options.txttwveCoreMinEditWidth,twve.node.setDimension(g,f.width<a?a:f.width));return g};b.updateText=function(a,d){return b.refreshAll(b.setText(a[0]),null,d)};b.hasClass=function(a){return b.dom.classList.contains(a)};b.saveText=function(a,d){return twve.tiddler.saveText(b,a,d)};return b.created(a)}};
twve.element={create:function(a){var b=twve.editable.create();b.clear=function(){b.direct_wrapper=null;b.rIndex=-1;b.dIndex=-1;b.tags=null;return b};var c=b.copyFrom;b.copyFrom=function(a){c.apply(this,arguments);b.direct_wrapper=a.direct_wrapper;b.rIndex=a.rIndex;b.dIndex=a.dIndex;b.tags=a.tags;return b};b.markupTags=function(){return twve.tiddler.markupTags(b.dom)};var d=b.directWrapper;b.directWrapper=function(){b.direct_wrapper||(b.direct_wrapper=d.apply(this,arguments));return b.direct_wrapper};
b.renderedCopy=function(a){var c=b.directWrapper();if(!c)return null;c=c.dom;if(c==a)return b;if(twve.node.contains(a,c))return null;c=-1;if(twve.text.tiddlerSection(b.wrapper_title)||twve.text.tiddlerSection(twve.tiddler.titleOfWrapper(a)))c=b.rIndex,b.rIndex=-1;a=twve.wrapper.renderedElement(b,a);-1<c&&(b.rIndex=c);return a};b.removeSelf=function(){b.dom.parentNode.removeChild(b.dom);twve.tiddler.focusElem(null);return b};b.replaceWith=function(a,c){twve.node.replace(a,c||b.dom);return b};b.filter=
function(a,c){c||(c=b.twveSelector(null,"rendering").include);if(a.nodeType)return twve.node.matches(a,c)?a:null;for(var d=[],e=0,k=a.length;e<k;e++)twve.node.matches(a[e],c)&&(d[d.length]=a[e]);return 0==d.length?null:1<d.length?d:d[0]};b.refreshSelf=function(a){a=twve.tiddler.getPreviewedNodes(a);var c=b.filter(a)||a[0];b.replaceWith(a);b.dIndex=-1;b.setElement(c);return b};b.refreshAll=function(a,c,d){var e=null;d=config.options.chkAnimate;config.options.chkAnimate=!1;var k=twve.text.tiddlerSection(b.wrapper_title);
"string"!=typeof a&&(a=b.getText());b.findWrappers();for(var m=0,r=b.wrapper.length;m<r;m++){var e=b.wrapper[m],p=twve.tiddler.titleOfWrapper(e),n=twve.text.tiddlerSection(p);if(!k||!(n&&n!=k)){var q=b.renderedCopy(e);if(q)(e=q.foldedWrapper())&&twve.node.show(e.dom),a?(q.refreshSelf(a),c&&c.what&&q.changed(c)):q.removeSelf(c),e&&twve.node.hide(e.dom);else if(!n&&(n=twve.text.tiddlerSlice(p)))(q=twve.tiddler.createEditableWrapper(e))&&q.refreshSelf(n)}}config.options.chkAnimate=d;return b};b.renderingIndex=
function(){if(0>b.rIndex){var a=b.directWrapper().findElements(b.twveSelector(null,"rendered"));a&&(b.rIndex=a.indexOf(b.dom))}return b.rIndex};b.counts=function(b){b.remained--;b.ndx++;return!0};b.starts=function(a,c){if(!c&&!b.tiddler||!b.tags||!b.tags.open)return b.start.ndx=-1,b.start;c||(c=b.tiddler.text);b.start.ensureValid(a||b.directWrapper().start);var d=twve.object.create();d.remained=-1<b.rIndex?b.rIndex+1:-1<b.dIndex?b.dIndex+1:1;d.ndx=-1;var e=twve.tags.inactiveTags();do{b.start=b.tags.nextOpenTag(c,
b.start,e);if(0>b.start.ndx)return b.start.ndx=-d.remained,b.start;if(b.counts(d,c)){if(0==d.remained)return-1==b.dIndex&&(b.dIndex=d.ndx),-1==b.rIndex&&(b.rIndex=d.ndx),b.start;b.start.ndx=b.ends(null,c,e).ndx}else b.start.ndx+=b.start.matched.length}while(1)};b.ends=function(a,c,d){!a||a==b.start?a=twve.position.create(b.start):"number"==typeof a?a=twve.position.create(a):a.ensureValid();a.ndx+=a.matched.length||1;c||(c=b.tiddler.text);var e=b.tags.exactCloseTag(a.matched);b.end.copyFrom(e.matchedCloseTag(c,
a,c.length,d));b.end.ndx=-1==b.end.ndx?c.length:b.end.ndx+b.end.matched.length;return b.end};var e=b.setElement;b.setElement=function(a,c){if(!a)return b.clear();if("string"==typeof a)b.dom=a,b.tags=twve.tiddler.markupTags(a);else{if(!e.apply(this,arguments)||!b.tiddler)return b;0>b.rIndex&&0>b.dIndex&&b.renderingIndex();b.tags||(b.tags=b.markupTags());var d=c?twve.position.create():null;b.starts(d,c);0<=b.start.ndx?b.ends(null,c):b.end.ndx=-1}return b};return b.created(a)}};
twve.pre={enableEdit:!0,twveSelector:function(a,b){a||(a=twve.selector.create());var c="pre,div.syntaxhighlighter";if(!b||"render"==b.toLowerCase().indexOf(0,6))c+=",div.alt1,div.alt2,.syntaxhighlighter code,.syntaxhighlighter table";return a.includeSelector(c)},markupTags:function(){var a=twve.tags.create(["\n{{{","\n//{{{","\n/*{{{*/","\n\x3c!--{{{--\x3e"],["}}}\n","//}}}\n","/*}}}*/\n","\x3c!--}}}--\x3e\n"]);a.blockElement=!0;a.clone=function(){return twve.pre.markupTags()};return a},create:function(a){var b=
twve.element.create();b.markupTags=function(){return twve.pre.markupTags()};b.clone=function(){return twve.pre.create(b)};b.twveSelector=function(b,a){return twve.pre.twveSelector(b,a)};var c=b.setElement;b.setElement=function(b){twve.node.matches(b,"pre")||(b=twve.node.closest(b,"div.syntaxhighlighter"));return c.call(this,b)};return b.created(a)}};
twve.code={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("code").excludeSelector(".syntaxhighlighter code")},markupTags:function(){return twve.tags.create("{{{","}}}")},create:function(a){var b=twve.element.create();b.markupTags=function(){return twve.code.markupTags()};b.clone=function(){return twve.code.create(b)};b.twveSelector=function(){return twve.code.twveSelector()};b.counts=function(a,d){return"\n"!=d.charAt(b.start.ndx+b.start.matched.length)?
(a.remained--,a.ndx++,!0):!1};return b.created(a)}};
twve.leveledElement={getLevel:function(a,b,c){var d=0;if(c){if(/\s/.test(c))return 0}else{c=a.charAt(b);if(!c||/\s/.test(c))return 0;d++}for(var e=a.length;b+d<e&&-1<c.indexOf(a.charAt(b+d));)d++;return d},create:function(a){var b=twve.element.create();b.clear=function(){b.level=0;return b};var c=b.copyFrom;b.copyFrom=function(a){c.apply(this,arguments);b.level=a.level;return b};b.getLevel=function(a,c){if(1>b.level){a||(a=b.tiddler.text);c||(c=b.start);var d=c.ndx;"\n"==a.charAt(d)&&d++;b.level=
twve.leveledElement.getLevel(a,d)}return b.level};b.getOpenTag=function(a,c){c||(c=b.tiddler?b.tiddler.text:"");if(!c)return"";a||(a=b.start);var d=b.getLevel(c,a),h="";"\n"==c.charAt(a.ndx)?d++:h="\n";return h+c.substring(a.ndx,a.ndx+d)};var d=b.starts;b.starts=function(a,c){d.apply(this,arguments);b.level=-1;-1<b.start.ndx&&(b.start.matched=b.getOpenTag(b.start,c));return b.start};return b.created(a)}};
twve.heading={enableEdit:!0,getSelector:function(){return"h1,h2,h3,h4,h5,h6"},getSpanSelector:function(a){return"span.TiddlyLinkExisting"},twveSelector:function(a,b){a||(a=twve.selector.create());b=b?b.toLowerCase():"";return a.includeSelector("fold"==b.substring(0,4)?"h1.foldable,h2.foldable,h3.foldable,h4.foldable,h5.foldable,h6.foldable":twve.heading.getSelector()+("render"==b.substring(0,6)?"":","+twve.heading.getSpanSelector()))},markupTags:function(){var a=twve.tags.create("\n!","\n");a.blockElement=
!0;return a},getTitle:function(a,b){var c=null;a.dom?c=a.dom:(c=a,a=null);if(!c)return null;if(0<c.childNodes.length){var d=twve.heading.create(a);d.setElement(c);return twve.text.sectionTitle(d.getText())}var e=c.textContent,d="";config.macros.foldHeadings&&(d=config.macros.foldHeadings.hidelabel,-1==e.indexOf(d)&&(d=config.macros.foldHeadings.showlabel,-1==e.indexOf(d)&&(d="")));e=d?e.substring(d.length).trim():e;if(!b&&(d=twve.heading.create(a),d.setElement(c),d=d.directWrapper().findElements(twve.heading.twveSelector(null,
"rendered")))){for(var c=d.indexOf(c),f=0,g=0;g<c;g++)twve.heading.getTitle(d[g],!0)==e&&f++;0<f&&(e+="?"+f)}return e},preClick:null,click:function(){var a=twve.tiddler.focusElem();(!a||!a.is(this)||a.indexOf&&-1==a.indexOf(this))&&twve.heading.preClick.apply(this,arguments)},prepareElements:function(a){if(config.options.chktwveCoreEnabled&&!a.isSystemShadow()){for(var b=a.dom.querySelectorAll(twve.heading.twveSelector(null,"foldable").include),c=0,d=b.length;c<d;c++)twve.heading.preClick||(twve.heading.preClick=
b[c].onclick),b[c].onclick=twve.heading.click;return a}return null},create:function(a){var b=twve.leveledElement.create();b.twveSelector=function(a,b){return twve.heading.twveSelector(a,b)};b.markupTags=function(){return twve.heading.markupTags()};b.getTitle=function(a){return twve.heading.getTitle(b,a)};var c=b.setElement;b.setElement=function(a){c.call(this,twve.node.matches(a,twve.heading.getSpanSelector())?a.parentNode:a);return b};b.mouseenter=function(a){var c=twve.heading.getSpanSelector();
return!b.dom.querySelector(c)?!0:twve.node.matches(a.target,c)};b.mousemove=function(a){b.mouseenter(a)||twve.tiddler.focus()};b.is=function(a){return twve.node.is(b.dom,"string"==typeof a?a:twve.node.matches(a,twve.heading.getSpanSelector())?a.parentNode:a)};b.isEditable=function(a){var c=twve.heading.getSpanSelector();return twve.node.matches(a,c)?!0:0==b.dom.querySelectorAll(c).length};return b.created(a)}};
twve.wrapper={recordFoldable:function(a){var b=null;if(a)for(var b=[],c=0,d=a.length;c<d;c++)b[c]=!twve.node.isVisible(a[c]);return b},restoreFoldable:function(a,b){if(a){var c=config.options.chkAnimate;config.options.chkAnimate=!1;for(var d=b?Math.min(b.length,a.length):a.length,e=0;e<d;e++)if(a[e]&&(!b||b[e]&&twve.node.isVisible(a[e])||!b[e]&&!twve.node.isVisible(a[e]))&&a[e].previousSibling){var f=document.createEvent("MouseEvent");f.initEvent("click",!0,!0);a[e].previousSibling.dispatchEvent(f)}config.options.chkAnimate=
c}},renderedElement:function(a,b,c){if(!a||0>a.rIndex&&0>a.dIndex&&!c)return null;if(!b){b=a.directWrapper();if(!b)return null;b=b.dom}var d=twve.wrapper.findElements(b,a.twveSelector(null,"rendered"));if(!d)return null;var e=d.length;a=a.clone();if(c)0>a.rIndex?a.rIndex=e-1:a.rIndex>=e&&(a.rIndex=0);else{if(0>a.rIndex)return a.wrapper=b,a.direct_wrapper=twve.tiddler.createEditableWrapper(b,!0),a.wrapper_title=a.direct_wrapper.wrapper_title,a.starts(),0<=a.rIndex?(a.ends(),a.dom=d[a.rIndex],a):null;
if(a.rIndex>=e)return null}c=d[a.rIndex];0>a.dIndex?a.setElement(c):a.dom=c;a.direct_wrapper.dom!=b&&(a.wrapper=b,a.direct_wrapper=twve.tiddler.createEditableWrapper(b,!0),a.wrapper_title=a.direct_wrapper.wrapper_title);return a},findElements:function(a,b){if(!a||!b)return null;if("string"==typeof b)b=twve.selector.create(b,"");else if(!b.include)return null;for(var c=twve.nodeList.toArray(a.querySelectorAll(b.include)),d=twve.tiddler.twveTranscludedSelectors(),d=a.querySelectorAll(d.include),e=0,
f=d.length;e<f;e++)c=twve.node.not(c,d[e].querySelectorAll(b.include));b.exclude&&(c=twve.node.not(c,b.exclude));return 0<c.length?c:null},create:function(a){var b=twve.editable.create();b.isWrapper=function(){return!0};b.directWrapper=function(){return b};b.titleOfWrapper=function(){return twve.tiddler.titleOfWrapper(b.dom)};b.isEditable=function(a){return b.dom==a?!0:twve.node.contains(b.dom,a)&&!twve.node.matches(a,twve.heading.twveSelector().include)};b.findElements=function(a){return twve.wrapper.findElements(b.dom,
a||b.twveSelector(null,"rendered"))};b.starts=function(a,c){b.start.ensureValid(c);a||(a=twve.text.tiddlerSection(b.wrapper_title));if(!a)return b.start;var d=twve.text.headerToSkip(a);0<d&&(a=twve.text.removeHeaderTail(a));var h=twve.heading.create();h.dIndex=0;h.tiddler=b.tiddler;h.end.ndx=b.start.ndx;for(h.tags=twve.heading.markupTags();0<=d;){h.starts(h.end);if(-1==h.start.ndx)break;h.ends();twve.text.sectionTitle(h.getText()).substring(0,a.length)==a&&d--}b.start.ndx=h.end.ndx;return b.start};
b.ends=function(){if(twve.text.tiddlerSection(b.wrapper_title)){var a=twve.heading.create();a.dIndex=0;a.tiddler=b.tiddler;a.tags=twve.heading.markupTags();a.start.ndx=b.start.ndx;a.starts(a.start);b.end.ndx=0>a.start.ndx?b.tiddler.text.length:a.start.ndx}else b.end.ndx=b.tiddler.text.length;return b.end};var c=b.setElement;b.setElement=function(a){if(!a)return b.clear();if(!c.apply(this,arguments)||!b.tiddler)return b;b.starts();b.ends();return b};b.refreshSelf=function(a){if(!b.tiddler)return b;
var c=twve.tiddler.twveFoldableSelector(),d=b.findElements(c),h=twve.wrapper.recordFoldable(d);b.dom.innerHTML="";a=twve.tiddler.getPreviewedNodes(a,b.dom);for(var d=0,l=a.length;d<l;d++)b.dom.appendChild(a[0]);d=b.findElements(c);return b.checkAndPrepare(d,h)};b.needsRefresh=function(a,c,d){return(!c||!d||d==c)&&!twve.node.contains(a.dom,b.dom)&&!twve.node.contains(b.dom,a.dom)?!0:!1};b.refreshAll=function(a,c,d){c=config.options.chkAnimate;config.options.chkAnimate=!1;var h=b.sliceKey?twve.text.tiddlerSlice(b.wrapper_title):
twve.text.tiddlerSection(b.wrapper_title),l=window.pageXOffset,k=window.pageYOffset;b.findWrappers();for(var m=0,r=b.wrapper.length;m<r;m++){var p=b.wrapper[m];if(p==b.dom)d||b.refreshSelf(a);else{var n=twve.tiddler.createEditableWrapper(p);if(n){var q=twve.text.tiddlerSection(n.wrapper_title)||twve.text.tiddlerSlice(n.wrapper_title);n.needsRefresh&&n.needsRefresh(b,h,q)&&((p=!twve.node.isVisible(p)?p:null)&&twve.node.show(p),n.refreshSelf(q==h?a:q?n.getText():n.tiddler.text),p&&twve.node.hide(p))}}}window.scrollTo(l,
k);config.options.chkAnimate=c;return b};b.multiLine=function(){return!0};b.checkAndPrepare=function(a,c){if(!b.dom)return b;var d=b.isVisible()?null:b.dom,h=config.options.chkAnimate;config.options.chkAnimate=!1;d&&twve.node.show(d);void 0===a&&(a=b.findElements(twve.tiddler.twveFoldableSelector()),c=twve.wrapper.recordFoldable(a));a&&twve.node.show(a);b.dom&&twve.wrapper.prepareElements(b);a&&twve.wrapper.restoreFoldable(a,c);d&&twve.node.hide(d);config.options.chkAnimate=h;return b};var d=null;
b.wait=function(){anim.running||(clearInterval(d),b.checkAndPrepare())};b.waitAndPrepare=function(){d=null;config.options.chktwveCoreEnabled&&(config.options.chkAnimate&&anim.running?d=setInterval(b.wait,50):b.checkAndPrepare())};return b.created(a)}};
twve.viewer={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("div.viewer")},titleOfWrapper:function(a){return(a=twve.node.closest(a,"[tiddler]"))?a.getAttribute("tiddler"):""},wrapperFromTitle:function(a,b){return twve.nodeList.querySelectorAll(b,'div[tiddler*="'+a+'"] .viewer')},create:function(a){var b=twve.wrapper.create(a);b.clone=function(){return twve.viewer.create(b)};return b}};
twve.tabContent={enableEdit:!0,getSelector:function(){return"div.tabContents"},twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("div.tabContents")},titleOfWrapper:function(a){return(a=a.parentNode)?a.querySelector(".tabSelected").getAttribute("content"):""},wrapperFromTitle:function(a,b){var c=twve.nodeList.querySelectorAll(b,'.tabSelected[content*="'+a+'"]');if(!c)return null;for(var d=0,e=c.length;d<e;d++)c[d]=c[d].parentNode.nextSibling;return c},create:function(a){var b=
twve.wrapper.create();b.clone=function(){return twve.tabContent.create(b)};return b.created(a)}};twve.transcludedElem={create:function(a){if(a){var b=twve.tiddler.focusElem();if(b&&b.dom==a.parentNode)return twve.element.create()}return null}};
twve.tiddlerSpan={enableEdit:!0,getSelector:function(){return"span[tiddler]"},twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("span[tiddler]")},titleOfWrapper:function(a){return a.getAttribute("tiddler")},wrapperFromTitle:function(a,b){return twve.nodeList.querySelectorAll(b,'span[tiddler*="'+a+'"]')},markupTags:function(){var a=twve.tags.create("<<tiddler",">>");a.blockElement=!0;return a},create:function(a){var b=twve.wrapper.create();b.markupTags=function(){return twve.tiddlerSpan.markupTags()};
b.clone=function(){return twve.tiddlerSpan.create(b)};var c=b.starts;b.starts=function(){b.sliceKey=twve.text.tiddlerSlice(b.wrapper_title);if(!b.sliceKey)return c.apply(this,arguments);var a=b.tiddler.text;for(store.slicesRE.lastIndex=0;;){var d=store.slicesRE.exec(a);if(!d)break;if(d[2]){if(d[2]==b.sliceKey){b.sliceValue=d[3];b.start.ndx=d.index;b.end.ndx=store.slicesRE.lastIndex;break}}else if(d[5]==b.sliceKey){b.sliceValue=d[6];b.start.ndx=d.index;b.end.ndx=store.slicesRE.lastIndex-1;break}}return b.start};
var d=b.ends;b.ends=function(){return b.sliceKey?b.end:d.apply(this,arguments)};var e=b.getText;b.getText=function(){return b.sliceKey?b.sliceValue||"":e.apply(this,arguments)};var f=b.setText;b.setText=function(a){if(!b.sliceKey)return f.apply(this,arguments);var c=b.tiddler.text,d,e,m=0;b.sliceValue?(d=c.indexOf(b.sliceValue,b.start.ndx),m=b.sliceValue.length,e=d+m):e=d=b.end.ndx;c=c.substring(0,d)+a+c.substring(e);b.end.ndx+=(a?a.length:0)-m;b.sliceValue=a;twve.tiddler.saveText(b,c);return a};
return b.created(a)}};
twve.sliderPanel={enableEdit:!0,getSelector:function(){return"div.sliderPanel"},twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector(twve.sliderPanel.getSelector())},titleOfWrapper:function(a){return a.getAttribute("tiddler")},wrapperFromTitle:function(a,b){return twve.nodeList.querySelectorAll(b,'div.sliderPanel[tiddler*="'+a+'"]')},markupTags:function(){return twve.tags.create("<<slider",">>")},create:function(a){var b=twve.transcludedElem.create(a)||twve.wrapper.create();
b.markupTags=function(){return twve.sliderPanel.markupTags()};b.clone=function(){return twve.sliderPanel.create(b)};return b.created(a)}};twve.foldedSection={macro:function(){return"<<foldHeadings>>"},enableEdit:!0,getSelector:function(){return"span.sliderPanel"},twveSelector:function(a){a||(a=twve.selector.create());return twve.foldedSection.enableEdit?a.includeSelector("span.sliderPanel"):a}};
twve.tiddlerTitle={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("div.title")},titleOfWrapper:function(a){return a.textContent},create:function(a){var b=twve.wrapper.create();b.updateText=function(a){twve.tiddler.saveText(b,null,a[0]);return b};b.getText=function(){return b.tiddler.title};b.mouseleave=function(a){var b=twve.tiddler.getOptionsMenu();if(b.dom==a.relatedTarget)return!1;b.hide(!0);return!0};b.blur=function(){twve.tiddler.getOptionsMenu().hide(!0)};
b.multiLine=function(){return!1};b.box=function(a){var d=twve.node.box(b.dom);a&&0<=a.indexOf("focus")&&(a=twve.object.create(),a.left=d.right,a.top=d.top,twve.tiddler.getOptionsMenu().showRoot(a,"left"));return twve.tiddler.editWrappers()?d:null};b.isWrapper=function(){return!1};b.titleOfWrapper=function(){return b.dom.textContent};return b.created(a)}};
//}}}
// @@
/***
|editable|k
|''Name:''|twve.debug|
|''Description:''|Debug codes of twve, the ~TiddlyWiki View mode Editor.|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.debug.min / http://twve.tiddlyspace.com/#twve.debug.min <br>* (regular) http://twve.tiddlyspot.com/#twve.debug / http://twve.tiddlyspace.com/#twve.debug|
|''Type:''|plugin|
|''Version:''|3.2.3|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery<br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.7.0|
|''Needs to have:''|twve.core|
!!Features:
!!Usage:
!!Options
Look for [[twveDebugOptions]] in the system Options panel.
!!Examples
!!Todo:
!!!Revision history
!!!! 2015/03/23 [3.2.3]
* Added text length in nodeInfo.
!!!! 2015/02/13 [3.2.2]
** adapted for the change in twve.node.copyFontColor
!!!! 2014/12/22 [3.2.1]
* Bug fix
** for node info display.
!!!! 2014/11/21 [3.2.0]
* Removed jQuery dependencies for migrating to ~TW5.
** Could be incompatible with earlier browsers.
!!!! 2014/08/03 [3.1.0]
* Minor bug fixes
!!!! 2014/06/08 [3.0.4]
* Bug fix
** for twve.node.info(node) when node is null or undefined.
!!!! 2014/01/18
* Collected from [[TWElement|http://twtable.tiddlyspace.com/#TWElement]], [[TWtid|http://twtable.tiddlyspace.com/#TWtid]] and [[TWted|http://twtable.tiddlyspace.com/#TWted]].
!!Code
!!!The very beginning
***/
//{{{
if ( typeof twve == 'undefined' ) {
alert('twve.debug: This plugin needs twve.core to function properly. Please install twve.core before this one.');
}
//}}}
/***
!!! Version information
***/
//{{{
version.extensions.twve.debug = {
major: 3, minor: 2, revision: 3,
date: new Date('2015/03/23')
};
//}}}
/***
!!! Macro for initialization and option settings.
***/
//{{{
config.macros.twveDebugOptions = {
init : function () {
// twve.tiddler methods
twve.debug.preGetOptionsMenu = twve.tiddler.getOptionsMenu;
twve.tiddler.getOptionsMenu = twve.debug.getOptionsMenu;
// twve.element methods
twve.node.info = twve.debug.nodeInfo;
// From TWtid
if ( config.options.txttwveDebugSnapshotFile===undefined )
config.options.txttwveDebugSnapshotFile =
(config.options.txtTWtidSnapshotFile===undefined ? ''
: config.options.txtTWtidSnapshotFile)
if ( config.options.chktwveDebugSnapshotHideBtn===undefined )
config.options.chktwveDebugSnapshotHideBtn =
(config.options.chkTWtidSnapshotHideBtn===undefined?false
: config.options.chkTWtidSnapshotHideBtn);
merge ( config.optionsDesc, {
txttwveDebugSnapshotFile:'Snapshot file name. Empty string to use the default of SnapshotPlugin, "tiddler.title" to use the tiddler title.',
chktwveDebugSnapshotHideBtn:'Hide buttons when taking a snapshot. Check to hide all the TWtid buttons and the Snapshot button.'
});
// prepare options panel
var txt = config.shadowTiddlers['OptionsPanel'];
var twvecoreopt = '[[twve.core Options';
var p = txt.indexOf(twvecoreopt);
if ( p >= 0 ) {
p = txt.indexOf(']]\n',p+2)+3;
config.shadowTiddlers['OptionsPanel']=
txt.substring(0,p) +
'[[twve.debug Options|twve.debug Options]]\n' +
txt.substring(p);
}
merge(config.shadowTiddlers,{
'twve.debug Options':'<<twveDebugOptions>>'
});
},
order : {
txttwveDebugSnapshotFile:1,
chktwveDebugSnapshotHideBtn:2
},
handler : function(place) {
// Collect all the twve.table options for users to play with.
config.macros.twveCoreOptions.showOptionsTable(
place,
"''twve.debug'' Options",
'twveDebug',
config.macros.twveDebugOptions.order
);
}
};
//}}}
/***
!!! twve.debug definitions
***/
//{{{
twve.debug = {
//}}}
/***
!!!! twve.debug.items
***/
//{{{
preGetOptionsMenu : null,
getOptionsMenu : function(){
// Replacing the twve.tiddler.getOptionsMenu for twve.debug.
var menu = twve.debug.preGetOptionsMenu.apply(this,arguments);
menu.addMenu(
"''twve.debug'' Options",
config.macros.twveDebugOptions.handler
);
return menu;
},
//}}}
/***
!!!! twve.debug.nodeInfo
***/
//{{{
nodeInfo : function (node) {
if ( ! node ) return node;
if ( ! node.nodeType ) {
// Multiple nodes
var len = node.length;
var msg = '('+len+')[';
--len;
for ( var i=0; i<len; i++ ) {
msg += twve.debug.nodeInfo(node[i])+', ';
}
return msg + twve.debug.nodeInfo(node[len]) + ']';
}
// Single node.
var title = '';
var twobj = twve.tiddler.registeredEditableObject(
node,
twve.tiddler.registered_wrapper
);
if ( twobj )
if ( twobj.titleOfWrapper ) {
title = twobj.titleOfWrapper(node);
} else {
title = twve.tiddler.titleOfWrapper(
twve.tiddler.directWrapper(node)
);
if ( title )
title = 'contained in '+title;
}
var nName = node.nodeName;
var classes = nName && nName != '#text'
? twve.node.classes(node)
: '';
var attr = nName && nName != '#text'
? twve.node.attributes(node)
: '';
var result = (title ? (' title=['+title+']') : '')
+ (classes ? classes : '')
+ (attr ? ('\n'+attr) : '');
var text = nName == 'TEXTAREA'
? node.nodeValue
: node.textContent;
if ( text && text.length > 50 )
text = text.substring(0,20)+'...'+text.substring(text.length-20);
text += '('+text.length+')';
var display = node && node.style
? node.style.display : '';
return nName+result
+ (display
? (' display=['+display+']')
: '')
+ (text ? (' text=['+text+']') : '');
}
};
//}}}
/***
!!! twve.node extra features
***/
//{{{
merge(twve.node,{
//}}}
/***
!!!! twve.node.classes
***/
//{{{
classes : function (node) {
var classes = node.className;
return classes ? ('[classes:('+classes+')]') : '';
},
//}}}
/***
!!!! twve.node.attributes
***/
//{{{
attributes : function (node) {
var attrs = node.attributes;
if ( ! attrs ) return '';
var str = '';
for(var i = 0; i < attrs.length; i++){
var attr = attrs.item(i);
str += (attr.nodeName+'='+attr.value+'\n');
}
return str ? ('{attributes:'+str+'}') : '';
},
//}}}
/***
!!!! twve.node.copyHtml
***/
//{{{
copyHtml : function ( dest, src ) {
var va = src.style.verticalAlign, factor = 0.5;
switch ( va ) {
case 'bottom' :
factor = 1;
case 'auto' :
case 'middle' :
// The CSS property vertical-align doesn't seem
// to work as it should. The following is a workaround
// to duplicate the vertically centered content of
// a table cell.
var pad = twve.node.cssSize(dest.style.paddingTop);
var sp_t = document.createElement('div');
dest.appendChild(sp_t);
if ( pad == 0 ) pad = 3;
sp_t.innerHTML = src.innerHTML;
sp_t.style.position = 'absolute';
var dh = twve.node.height(dest);
twve.node.setDimension(
sp_t, twve.node.width(dest), dh
);
twve.node.setPosition(
sp_t, null,
pad+(dh-twve.node.height(sp_t))/2
+(config.browser.isIE975 ? 0.5 : 0)
);
break;
default :
dest.innerHTML = src.innerHTML;
break;
}
twve.node.copyFontColor(dest,src,va,true);
},
//}}}
/***
!!!! twve.node.decompose
***/
//{{{
decompose : function(node){
var info = twve.node.info(node);
for(var n=0,len=node.childNodes.length; n<len; n++){
info += ' ---> '+twve.node.info(node.childNodes[n]);
};
return info;
}
});
//}}}
/***
!!! twve.element extra features
***/
//{{{
merge(twve.element,{
//}}}
/***
!!!! twve.element.copyBorder
***/
//{{{
copyBorder : function (dest, src) {
dest.style.borderTop = src.style.borderTop;
dest.style.borderRight = src.style.borderRight;
dest.style.borderBottom = src.style.borderBottom;
dest.style.borderLeft = src.style.borderLeft;
},
//}}}
/***
!!!! twve.element.copyMarginPadding
***/
//{{{
copyMarginPadding : function (dest, src) {
dest.style.margin = src.style.margin;
dest.style.padding = src.style.padding;
},
//}}}
/***
!!!! twve.element.borderTopWidth
***/
//{{{
borderTopWidth : function ( bw ) {
return (config.browser.firefoxDate && config.browser.isLinux
? bw*1.5
: (config.browser.isIE9
? 1
: bw));
}
});
//}}}
/***
|editable|k
|''Name:''|twve.debug|
|''Description:''|Debug codes of twve, the ~TiddlyWiki View mode Editor.|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.debug.min / http://twve.tiddlyspace.com/#twve.debug.min <br>* (regular) http://twve.tiddlyspot.com/#twve.debug / http://twve.tiddlyspace.com/#twve.debug|
|''Type:''|plugin|
|''Version:''|3.2.3|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery <br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.7.0|
|''Needs to have:''|twve.core|
!!Options
Look for [[twve.debug Options]] in the system Options panel.
***/
// @@display:none;
//{{{
"undefined"==typeof twve&&alert("twve.debug: This plugin needs twve.core to function properly. Please install twve.core before this one.");version.extensions.twve.debug={major:3,minor:2,revision:3,date:new Date("2015/03/23")};
config.macros.twveDebugOptions={init:function(){twve.debug.preGetOptionsMenu=twve.tiddler.getOptionsMenu;twve.tiddler.getOptionsMenu=twve.debug.getOptionsMenu;twve.node.info=twve.debug.nodeInfo;void 0===config.options.txttwveDebugSnapshotFile&&(config.options.txttwveDebugSnapshotFile=void 0===config.options.txtTWtidSnapshotFile?"":config.options.txtTWtidSnapshotFile);void 0===config.options.chktwveDebugSnapshotHideBtn&&(config.options.chktwveDebugSnapshotHideBtn=void 0===config.options.chkTWtidSnapshotHideBtn?
!1:config.options.chkTWtidSnapshotHideBtn);merge(config.optionsDesc,{txttwveDebugSnapshotFile:'Snapshot file name. Empty string to use the default of SnapshotPlugin, "tiddler.title" to use the tiddler title.',chktwveDebugSnapshotHideBtn:"Hide buttons when taking a snapshot. Check to hide all the TWtid buttons and the Snapshot button."});var a=config.shadowTiddlers.OptionsPanel,b=a.indexOf("[[twve.core Options");0<=b&&(b=a.indexOf("]]\n",b+2)+3,config.shadowTiddlers.OptionsPanel=a.substring(0,b)+"[[twve.debug Options|twve.debug Options]]\n"+
a.substring(b));merge(config.shadowTiddlers,{"twve.debug Options":"<<twveDebugOptions>>"})},order:{txttwveDebugSnapshotFile:1,chktwveDebugSnapshotHideBtn:2},handler:function(a){config.macros.twveCoreOptions.showOptionsTable(a,"''twve.debug'' Options","twveDebug",config.macros.twveDebugOptions.order)}};
twve.debug={preGetOptionsMenu:null,getOptionsMenu:function(){var a=twve.debug.preGetOptionsMenu.apply(this,arguments);a.addMenu("''twve.debug'' Options",config.macros.twveDebugOptions.handler);return a},nodeInfo:function(a){if(!a)return a;if(!a.nodeType){var b=a.length,d="("+b+")[";--b;for(var c=0;c<b;c++)d+=twve.debug.nodeInfo(a[c])+", ";return d+twve.debug.nodeInfo(a[b])+"]"}d="";if(b=twve.tiddler.registeredEditableObject(a,twve.tiddler.registered_wrapper))b.titleOfWrapper?d=b.titleOfWrapper(a):
(d=twve.tiddler.titleOfWrapper(twve.tiddler.directWrapper(a)))&&(d="contained in "+d);var c=(b=a.nodeName)&&"#text"!=b?twve.node.classes(a):"",e=b&&"#text"!=b?twve.node.attributes(a):"",d=(d?" title=["+d+"]":"")+(c?c:"")+(e?"\n"+e:"");(c="TEXTAREA"==b?a.nodeValue:a.textContent)&&50<c.length&&(c=c.substring(0,20)+"..."+c.substring(c.length-20));c+="("+c.length+")";a=a&&a.style?a.style.display:"";return b+d+(a?" display=["+a+"]":"")+(c?" text=["+c+"]":"")}};
merge(twve.node,{classes:function(a){return(a=a.className)?"[classes:("+a+")]":""},attributes:function(a){a=a.attributes;if(!a)return"";for(var b="",d=0;d<a.length;d++)var c=a.item(d),b=b+(c.nodeName+"="+c.value+"\n");return b?"{attributes:"+b+"}":""},copyHtml:function(a,b){var d=b.style.verticalAlign;switch(d){case "bottom":case "auto":case "middle":var c=twve.node.cssSize(a.style.paddingTop),e=document.createElement("div");a.appendChild(e);0==c&&(c=3);e.innerHTML=b.innerHTML;e.style.position="absolute";
var f=twve.node.height(a);twve.node.setDimension(e,twve.node.width(a),f);twve.node.setPosition(e,null,c+(f-twve.node.height(e))/2+(config.browser.isIE975?0.5:0));break;default:a.innerHTML=b.innerHTML}twve.node.copyFontColor(a,b,d,!0)},decompose:function(a){for(var b=twve.node.info(a),d=0,c=a.childNodes.length;d<c;d++)b+=" ---\x3e "+twve.node.info(a.childNodes[d]);return b}});
merge(twve.element,{copyBorder:function(a,b){a.style.borderTop=b.style.borderTop;a.style.borderRight=b.style.borderRight;a.style.borderBottom=b.style.borderBottom;a.style.borderLeft=b.style.borderLeft},copyMarginPadding:function(a,b){a.style.margin=b.style.margin;a.style.padding=b.style.padding},borderTopWidth:function(a){return config.browser.firefoxDate&&config.browser.isLinux?1.5*a:config.browser.isIE9?1:a}});
//}}}
// @@
This tiddler gives detailed information about the ''twve.editable'', an object representing all editable objects in ~TiddlyWiki.
*** ''getText'' -- retrieves the defining text of an element.
#### Default method is implemented in the <<slider '' 'twve.core##editable.getText' '.getText([open,close])'>> method.
***** Usually you do not need to work with this one, but either [[twve.element]] or [[twve.wrapper]].
*** ''setText''(txt) -- puts back the defining text of an element.
This tiddler gives detailed information about the ''twve.element'', an object representing all editable __elements__ in ~TiddlyWiki.
/***
|editable|k
|''Name:''|twve.extra|
|''Description:''|View mode editing features for block elements (other than tables), in-line elements, and plain text in ~TidfdlyWiki environment|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.extra.min / http://twve.tiddlyspace.com/#twve.extra.min <br>* (regular) http://twve.tiddlyspot.com/#twve.extra / http://twve.tiddlyspace.com/#twve.extra|
|''Type:''|plugin|
|''Version:''|3.2.6|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery<br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.7.0|
|''Needs to have:''|twve.core|
!!Features:
* View mode editing features for block elements (other than tables) and plain text in ~TiddlyWiki environment
** Headings
** Lists
** Blockquotes
** Blockexamples
** Preformatted blocks
** Plain text
!!Usage:
!!Options
Look for [[twve.extra Options]] in the Options Panel.
!!Examples
[[twve.extra Examples]]
!!Todo:
!!!Revision history
!!!! 2016/04/30 [3.2.6]
* Saves options in SystemSettings tiddler.
** If you disable autoSave option, you will need to manually save the tiddler after changing a ''twve'' option.
* Starts using strict mode.
* Improved support for character-base editing.
** Added support for Home and End keys.
* Bug fix
** for identifying MathJax elements;
** for inline MathJax editing.
!!!! 2015/11/06 [3.2.5]
* Bug fix
** for cssWrappers.
!!!! 2015/06/15 [3.2.4]
* Introduced option {{{chktwveExtraMathAutoNumber}}} to enable/disable MathJax auto numbering feature.
** If turned on, a preview including numbered equations can disturb the numbering of those equations.
*** Moreover, the labeling would fail if labeled equations get previewed. //I don't know how to fix this yet//.
* Bug fix
** for locating the wiki text of HR;
** for correct handling of MathJax {{{\ref}}} and {{{\eqref}}} commands.
!!!! 2015/03/23 [3.2.3]
* Added supports for CSS wrappers created using """{{Class name{ .... }}}""".
* Bug fix
** for correctly locating spans created with a pair of {{{@@}}}'s;
** for displayed math (using MathJax) containing nested {{{\begin}}} commands.
!!!! 2015/02/13 [3.2.2]
* Replaced regular expression with string operations whenever easy, hoping to save some time.
* Bug fix
** for synchronization of partial transcluded content;
** for editing of a paragraph of plain text;
** for editing folded sections;
** for resizing the browser window.
!!!! 2014/12/22 [3.2.1]
* Improved
** for editing of a paragraph of plain text.
* Bug fix
** for editing an empty text line;
** for refreshing mixed type lists;
** for partial refreshing before and after a tiddler;
** for refreshing leveled elements (such as list items);
** for transclusion synchronization.
!!!! 2014/11/21 [3.2.0]
* Removed jQuery dependencies for migrating to ~TW5.
** Could be incompatible with earlier browsers.
* Partial refreshing for wrappers is now possible, which improves a lot the speed of refreshing plain text.
* Automatically enables editing features for wrappers, regardless of the setting of <<option chktwveCoreEditWrappers>>chktwveCoreEditWrappers.
* Bug fix
** for locating blockquotes contained within a block example;
** for disabled wikiwords (e.g., ~TiddlyWiki);
** for moving list items with Ctrl-up / Ctrl-down;
** for editing transcluded slices/sections;
*** Non-empty slices/sections: click on the transcluded text to edit the content, or empty area of its wrapper to edit the macro.
*** Empty slices/sections: click when the mouse pointer is close to the empty wrapper (within the default editbox width given by the option txttwveCoreMinEditWidth) to edit the content, or farther away (to the right) to edit the macro.
**** __The determination of an empty slice could be wrong if that empty slide is located at the very end of a tiddler.__ Workaround: add a newline at the end.
** for plain text following displayed MathJax block defined by {{{\begin{}}} and {{{\end{}}} pairs.
!!!! 2014/08/03 [3.1.0]
* Stopped using Ctrl-left and Ctrl-right in moving contents.
* Started to remove jQuery dependencies for migrating to TW5.
* Bug fix
** for obtaining the bounding box of plain text;
** for transclusion synchronization with self inclusion and FoldedSectionPlugin.
!!!! 2014/06/02 [3.0.3]
* Moved in the codes to edit heading, preformatted blocks, and code blocks from ''twve.core''.
* Enables editing of tiddler title when ''twve.extra'' is installed.
* Bug fixes
** for the {{{.dom is null}}} error upon loading up;
** for focusing borders to correctly surround an in-line element that spans over multiple lines.
*** With FireFox in an Android system, the twve.node.box() function returns the element height much larger than in a desktop/laptop system, yet the 'line-height' CSS value remains the same, resulting in a wrong lines of text calculation.
*** IE11 (and other versions?) gets a wrong bounding box for the leading textnode in a second level (and higher?) list item.
!!!! 2014/05/23 [3.0.2]
* Moved the following codes into ''twve.core'':
** that to avoid editing when clicking on a link;
** that to show Options Menu for ''twve.core''.
* Improved partial refreshing
** for headings when {{{foldHeadingsPlugin}}} is present;
** for lists and blockquotes.
*** A list is difficult to refresh partially, because
**** it can be one of the two types: numbered and unnumbered;
**** change in type will change the DOM structure.
*** A blockquote is difficult to locate in the wiki text, because
**** in HTML it is only blockquote, but in wiki text it has two types: blockexample and blockquote;
**** a blockexample can contain blockquotes within its body;
**** a blockquote can contain sub-blockquotes in two ways: either immediately following it or completely within its body.
**** a blockexample
* More visually consistent focusing borders for in-line elements that span over multiple lines. See [[twve--Example--Over Width Inline Elements]] for examples.
* Bug fix
** for working with {{{foldHeadingsPlugin}}};
** for somewhat complicated blockquote identification;
** for working with styled text.
!!!! 2014/05/14 [3.0.1]
* Moved the codes for pretty links into ''twve.core''.
!!!! 2014/05/13 [3.0.0]
* Inline elements (@@color:red;Unstable!!! Can be very wrong some times!@@):
** styled text such as //italic//, ''bold'', __underlined__, or --strike through--;
*** These can be wrong when there are strings containing """''""" (two single quotes in a row), """//""", """__""" (two underscores in a row), or """--""".
** @@color:blue;colored@@ or @@inversed@@ text enclosed with a pair of """@@""";
*** These are created as SPAN's in ~TiddlyWiki, but there seem to be some SPAN's unknown to me so I can't get them all right yet.
** {{{CODE pieces}}} enclosed with a pair of triple braces, i.e., """{{{""" and """}}}""".
* Bug fixes
** for titles with math expressions (~MathJax).
** for blockquotes
*** It seems to work for almost all kinds of blockquotes, including those containing blockquotes within their bodies.
!!!! 2014/01/18
* Collected from [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]] and [[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]], adapted to the new code structure.
!!!Code
!!!The very beginning
***/
//{{{
(function(){
"use strict";
if ( typeof twve == 'undefined' ) {
alert('twve.extra: This plugin needs twve.core to function properly. Please install twve.core before this one.');
}
//}}}
/***
!!! Version information
***/
//{{{
version.extensions.twve.extra = {
major: 3, minor: 2, revision: 6,
date: new Date('2016/04/30')
};
//}}}
/***
!!! Macro for initialization and option settings.
***/
//{{{
config.macros.twveExtraOptions = {
init : function () {
// twve.tiddler methods
twve.extra.preKeydownAfter = twve.tiddler.keydownAfter;
twve.tiddler.keydownAfter = twve.extra.keydownAfter;
twve.extra.preGetPreviewer = twve.tiddler.getPreviewer;
twve.tiddler.getPreviewer = twve.extra.getPreviewer;
twve.extra.preGetOptionsMenu = twve.tiddler.getOptionsMenu;
twve.tiddler.getOptionsMenu = twve.extra.getOptionsMenu;
twve.extra.preUpdateText = twve.tiddler.updateText;
twve.tiddler.updateText = twve.extra.updateText;
// twve.text methods
twve.MathJax.displayed.preLastIndexOf = twve.text.lastIndexOf;
twve.text.lastIndexOf = twve.MathJax.displayed.lastIndexOf;
// twve.tags methods
twve.extra.preInactiveTags = twve.tags.inactiveTags;
twve.tags.inactiveTags = twve.extra.inactiveTags;
// twve.node methods
twve.MathJax.preWikify = twve.node.wikify;
twve.node.wikify = twve.MathJax.wikify;
twve.heading.preWikify = twve.node.wikify;
twve.node.wikify = twve.heading.wikify;
twve.MathJax.preBox = twve.node.box;
twve.node.box = twve.MathJax.box;
twve.sliderPanel.preBox = twve.node.box;
twve.node.box = twve.sliderPanel.box;
// twve.heading methods
twve.foldedSection.preHeadingCreate = twve.heading.create;
twve.heading.create = twve.foldedSection.headingCreate;
twve.MathJax.preHeadingClick = twve.heading.click;
twve.heading.click = twve.MathJax.headingClick;
// twve.wrapper methods
twve.MathJax.preFold = twve.wrapper.fold;
twve.wrapper.fold = twve.MathJax.fold;
twve.MathJax.prePrepareElements = twve.wrapper.prepareElements;
twve.wrapper.prepareElements = twve.MathJax.prepareElements;
twve.MathJax.preRestoreFoldable = twve.wrapper.restoreFoldable;
twve.wrapper.restoreFoldable = twve.MathJax.restoreFoldable;
// twve.extra methods
twve.extra.preSetOption = setOption;
setOption = twve.extra.setOption;
// From TWted
twve.checkOption(
'chktwveExtraIncludeSubs',
(config.options.chkTWtedIncludeSubs || false)+''
);
twve.checkOption('chktwveExtraInline','true');
twve.checkOption('chktwveExtraCyclickNavi','false');
twve.checkOption('chktwveExtraLocateChar','false');
twve.checkOption(
'chktwveExtraNoClick',
(config.options.chkTWtedNoClick || false)+''
);
twve.checkOption(
'txttwveExtraPreviewOpacity',
(config.options.txtTWtedPreviewOpacity || '1.00')
);
twve.checkOption('chktwveExtraMathAutoNumber','false');
merge ( config.optionsDesc, {
//txttwveExtraMinEditWidth:'Minimum editbox width (characters). Default to 6.',
chktwveExtraIncludeSubs:'Include sub-elements to edit. For example, sub lists are included in the editbox if this option is set to true.',
chktwveExtraInline:'Edit inline elements.',
chktwveExtraCyclickNavi:'Cyclick keyboard navigation.',
chktwveExtraLocateChar:'(@@color:red;Experimental@@) Character by character editing.',
chktwveExtraNoClick:'Edit element content without clicking it.',
txttwveExtraPreviewOpacity:'Opacity of the previewer. Default to 0.9.',
chktwveExtraMathAutoNumber:'~MathJax auto numbering.'
});
// prepare options panel
var optionsTitle = 'twve.extra Options';
var txt = config.shadowTiddlers['OptionsPanel'];
var twvecoreopt = '[[twve.core Options';
var p = txt.indexOf(twvecoreopt);
if ( p >= 0 ) {
p = txt.indexOf(']]\n',p+2)+3;
config.shadowTiddlers['OptionsPanel']=
txt.substring(0,p)
+'[['+optionsTitle+'|'+optionsTitle+']]\n'
+txt.substring(p);
}
merge(config.shadowTiddlers,{
'twve.extra Options':'<<twveExtraOptions>>'
});
// Register editable elements
twve.tiddler.registerElement(twve.blockquote);
twve.tiddler.registerElement(twve.cssWrapper);
twve.tiddler.registerElement(twve.listitem);
twve.tiddler.registerElement(twve.tabset);
twve.tiddler.registerElement(twve.heading);
twve.tiddler.registerElement(twve.img);
twve.tiddler.registerElement(twve.pre);
twve.tiddler.registerElement(twve.code);
twve.tiddler.registerElement(twve.span);
twve.tiddler.registerElement(twve.MathJax.inline);
twve.tiddler.registerElement(twve.MathJax.displayed);
twve.tiddler.registerElement(twve.HR);
twve.tiddler.registerElement(twve.styledText.strike);
twve.tiddler.registerElement(twve.styledText.under);
twve.tiddler.registerElement(twve.styledText.italic);
twve.tiddler.registerElement(twve.styledText.bold);
// Register wrappers
twve.tiddler.registerWrapper(twve.foldedSection);
},
order : {
chktwveExtraIncludeSubs:1,
chktwveExtraInline:2,
chktwveExtraCyclickNavi:3,
chktwveExtraLocateChar:4,
chktwveExtraNoClick:5,
txttwveExtraPreviewOpacity:6,
chktwveExtraMathAutoNumber:7
},
handler : function(place) {
// Collect all the twve.extra options for users to play with.
config.macros.twveCoreOptions.showOptionsTable(
place,
"''twve.extra'' Options",
'twveExtra',
config.macros.twveExtraOptions.order
);
}
};
//}}}
/***
!!!! twve.extra
***/
//{{{
twve.extra = {
//}}}
/***
!!!! twve.extra.setOption
***/
//{{{
preSetOption : null,
setOption : function(name,value){
twve.extra.preSetOption.apply(this,arguments);
//if ( name.indexOf('twveExtra') >= 0 ) {
// One of the twve.extra options
// switch ( name ) {
// }
//}
},
//}}}
/***
!!!! twve.extra.getPreviewer
***/
//{{{
preGetPreviewer : null,
getPreviewer : function(){
var preview = twve.extra.preGetPreviewer.apply(this,arguments);
preview.style.opacity=config.options.txttwveExtraPreviewOpacity;
return preview;
},
//}}}
/***
!!!! twve.extra.getOptionsMenu
***/
//{{{
preGetOptionsMenu : null,
getOptionsMenu : function(){
// Replacing the twve.tiddler.getOptionsMenu for twve.extra.
var menu = twve.extra.preGetOptionsMenu.apply(this,arguments);
menu.addMenu(
"''twve.extra'' Options",
config.macros.twveExtraOptions.handler
);
return menu;
},
//}}}
/***
!!!! twve.extra.inactiveTags
***/
//{{{
preInactiveTags : null,
inactiveTags : function(){
return twve.extra.preInactiveTags.apply().merge(
twve.MathJax.displayed.markupTags()
).merge(
twve.MathJax.inline.markupTags()
);
},
//}}}
/***
!!!! twve.extra.keydownChar
***/
//{{{
keydownChar : function (ev,ta) {
// WYSIWYG keydown handler
if ( twve.tiddler.keydownCancel(ev,ta) ) return false;
var caret_pos = twve.tiddler.caret_pos;
var editable = twve.tiddler.cur_editable;
switch ( ev.which ) {
case 46 : // delete
if ( editable.selection.end > editable.selection.start ) {
// Some text is being selected, remove it.
twve.tiddler.updateText([ta],editable,false,true);
return true;
}
var next = editable.selection.nextNode;
switch(next.nodeValue.length){
case 1 :
// The next node has only one character left, remove
// it and move to the even next node.
editable.selection.nextNode = next.nextSibling;
next.parentNode.removeChild(next);
// Adjust the offset
break;
case 0 :
// The next node is empty, move to the even next node
// and remove its first character.
break;
default :
// The next node has more than one characters left,
// remove its first character.
editable.selection.nextNode = next.splitText(1);
next.parentNode.removeChild(next);
// Remove one character in the text.
editable.selection.end++;
twve.tiddler.updateText([ta],editable,true,true);
if ( editable.editNode )
editable.editNode.end.ndx--;
editable.setFocusOffset(ta);
editable.selection.end--;
break;
}
break;
case 8 : // backspace
if ( ev.alterKey ) return false;
if ( editable.selection.end > editable.selection.start ) {
// Some text is being selected, remove it.
twve.tiddler.updateText([ta],editable,false,true);
return true;
}
var cur = editable.selection.focusNode;
var curlen = cur.nodeValue.length;
switch(curlen){
case 1 :
// The cur node has only one character left, remove
// it and move to the end of its previous node.
editable.selection.nextNode = cur.nextSibling;
editable.selection.focusNode = cur.previousSibling;
cur.parentNode.removeChild(cur);
// Adjust the offset
break;
case 0 :
// The cur node is empty, move to its previous node
// and remove its last character.
break;
default :
// The cur node has more than one characters left,
// remove its first character.
//var dlen = editable.selection.end -
// editable.selection.start + 1;
cur = cur.splitText(curlen-1);
cur.parentNode.removeChild(cur);
// Move caret to the left.
// Remove one character in the text.
editable.selection.start--;
twve.tiddler.updateText([ta],editable,true,true);
if ( editable.editNode )
editable.editNode.end.ndx--;
editable.setFocusOffset(ta,null,-1);
// Update caret position.
editable.selection.end--;
twve.tiddler.setCaretPosition(editable.selection.end);
break;
}
break;
case 33 : // page up
case 34 : // page down
case 35 : // end
if ( ev.ctrlKey ) {
// Ctrl-End, move to the end of tiddler.
return false;
}
// End is pressed, move to the end of this line
// or this block.
twve.tiddler.updateText([ta],editable,true,true);
editable.setFocusOffset(
ta,editable.editNode.end.ndx-editable.editNode.start.ndx
);
// Update caret position.
//editable.selection.start = editable.selection.end =
//editable.editNode.start.ndx +
//editable.selection.focusOffset;
twve.tiddler.setCaretPosition(editable.selection.end);
break;
case 36 : // home
if ( ev.ctrlKey ) {
// Ctrl-Home, move to the beginning of tiddler.
return false;
}
// Home is pressed, move to the begining of this line
// or this block.
twve.tiddler.updateText([ta],editable,true,true);
editable.setFocusOffset(ta,0);
// Update caret position.
editable.selection.start = editable.selection.end = 0;
twve.tiddler.setCaretPosition(0);
break;
case 37 : // left arrow
if ( ev.ctrlKey ) {
// Move the cursor if necessary.
return false;
}
//if (caret_pos.cur == 0 && caret_pos.last == 0) {
// At the beginning of a non-empty element, go to its
// left neighbor.
//} else {
// Otherwise move caret to the left.
twve.tiddler.updateText([ta],editable,true,true);
editable.setFocusOffset(ta,null,-1);
// Update caret position.
//editable.selection.start = editable.selection.end =
//editable.editNode.start.ndx +
//editable.selection.focusOffset;
// caret_pos.cur-1;
twve.tiddler.setCaretPosition(editable.selection.end);
//}
break;
case 38 : // up arrow
if ( ev.ctrlKey ) {
return false;
}
break;
case 39 : // right arrow
if ( ev.ctrlKey ) {
// Move cursor if necessary.
return false;
}
//if (caret_pos.cur == txt.length &&
// caret_pos.last == caret_pos.cur) {
// At the end of a non-empty element, move to its right
// neighbor.
//} else {
// Otherwise move caret to the right.
twve.tiddler.updateText([ta],editable,true,true);
editable.setFocusOffset(ta,null,1);
// Update caret position.
//editable.selection.start = editable.selection.end =
//editable.editNode.start.ndx +
//editable.selection.focusOffset;
// caret_pos.cur+1;
twve.tiddler.setCaretPosition(editable.selection.end);
//}
break;
case 40 : // down arrow
if ( ev.ctrlKey ) {
return false;
}
break;
default :
// Normal typing. Insert the rendered nodes at the caret
// position.
var txt = ta.value;
ta.value = '';
editable.typed += txt;
var nodes = twve.tiddler.getPreviewedNodes(txt);
var parent = editable.selection.nodeNdx.e0;
var next = editable.selection.nextNode;
while( nodes.length ) {
editable.inserted[editable.inserted.length] =
parent.insertBefore(nodes[0],next);
}
var len = txt.length;
//editable.setFocusOffset(ta,null,len,next);
editable.setFocusOffset(ta,0,null,next);
//editable.selection.start = editable.selection.end =
// caret_pos.cur+len;
twve.tiddler.setCaretPosition(editable.selection.end);
break;
}
return true;
},
//}}}
/***
!!!! twve.extra.keydownAfter
***/
//{{{
preKeydownAfter : null,
keydownAfter : function (ev,ta) {
if (config.options.chktwveExtraLocateChar)
return twve.extra.keydownChar(ev,ta);
if ( ! twve.extra.preKeydownAfter.apply(this,arguments) )
return false;
var caret_pos = twve.tiddler.caret_pos;
var editable = twve.tiddler.cur_editable;
var txt = ta.value;
switch ( ev.which ) {
case 33 : // page up
case 34 : // page down
case 35 : // end
case 36 : // home
break;
case 46 : // delete
if ( txt == '\n' ) {
// Empty element, go straight to its right
// neighbor.
editable.editNeighbor('right');
} else if (caret_pos.cur == txt.length ) {
// We are at the end of the text being edited.
if ( txt || caret_pos.cur == caret_pos.last )
editable.combineEditNeighbor(ta,'right');
}
break;
case 8 : // backspace
if ( txt == '\n' ) {
// Empty element, go straight to its left
// neighbor.
editable.editNeighbor('left');
} else if ( caret_pos.cur == 0 ) {
// We are at the begining of the paragraph being
// edited.
if ( txt || caret_pos.cur == caret_pos.last )
editable.combineEditNeighbor(ta,'left');
}
break;
case 37 : // left arrow
if ( ev.ctrlKey ) {
return false;
}
if ( ! txt || txt == '\n' ||
(caret_pos.cur == 0 && caret_pos.last == 0) ) {
// Empty element, or at the beginning of an element,
// go to its left neighbor.
editable.editNeighbor('left');
}
break;
case 38 : // up arrow
if ( ev.ctrlKey ) {
//editable = editable.move('up',1);
//if ( editable ) {
// twve.tiddler.focusElem(editable);
// editable.editText();
//}
return false;
}
if ( ! txt || txt == '\n' ||
(caret_pos.cur == 0 && caret_pos.last == 0) ) {
editable.editNeighbor('up');
}
break;
case 39 : // right arrow
if ( ev.ctrlKey ) {
return false;
}
if ( ! txt || txt == '\n' ) {
// Empty element, move straight to its right neighbor.
editable.editNeighbor('right');
} else if (caret_pos.cur == txt.length &&
caret_pos.last == caret_pos.cur) {
// At the end of a non-empty element, move to its right
// neighbor.
editable.editNeighbor('right');
}
break;
case 40 : // down arrow
if ( ev.ctrlKey ) {
//editable = editable.move('down',1);
//if ( editable ) {
// twve.tiddler.focusElem(editable);
// editable.editText();
//}
return false;
}
if ( ! txt || txt == '\n' ||
(caret_pos.cur == txt.length &&
caret_pos.last == caret_pos.cur) ) {
editable.editNeighbor('down');
}
break;
}
return true;
},
//}}}
/***
!!!! twve.extra.updateText
***/
//{{{
preUpdateText : null,
updateText : function (ta,editable,refreshed,editing) {
if ( ! editable ) editable = twve.tiddler.cur_editable;
if ( editable ) {
if ( config.options.chktwveExtraLocateChar ) {
// Normalize the element
editable.getElement().normalize();
if ( ! ta ) ta = twve.tiddler.getEditBox();
if ( ta ) {
ta[0].value =
ta[0].defaultValue.substring(
0,editable.selection.start
) + editable.typed +
ta[0].defaultValue.substring(
editable.selection.end
);
twve.extra.preUpdateText.call(
this,ta,editable,refreshed,editing
);
if ( editing ) {
if ( editable.editNode )
editable.editNode.end.ndx +=
editable.typed.length;
ta[0].defaultValue = ta[0].value;
editable.typed = editable.deleted = ta[0].value = '';
}
}
} else {
// Update text
twve.extra.preUpdateText.call(
this,ta,editable,refreshed,editing
);
}
}
return editable;
}
};
//}}}
/***
!!! twve.tags.nested
***/
//{{{
if ( twve.tags.nested === undefined )
twve.tags.nested = {
//}}}
/***
!!!! twve.tags.nested.matchedCloseTag
***/
//{{{
matchedCloseTag : function(txt,start,open,close){
if ( typeof start === 'number' ) {
start = twve.position.create(start);
if ( typeof open ==='string' )
start.matched = open;
} else if ( start.ndx === undefined ) {
start = twve.position.create(0);
if ( typeof open ==='string' )
start.matched = open;
}
return twve.tags.nested.create(open,close)
.matchedCloseTag(txt,start);
},
//}}}
/***
!!!! twve.tags.nested.create
***/
//{{{
create : function(src,close){
var tags = twve.tags.create(src,close);
// clone
tags.clone = function(){
// Required, for this object has no markupTags() method.
return twve.tags.nested.create();
};
//}}}
/***
!!!!! tags.matchedCloseTag
***/
//{{{
tags.matchedCloseTag = function(txt,start){
var remained = 1;
var txtlen = txt.length;
var end = twve.position.create(start.ndx);
do {
// Look for next closing tag.
end = twve.text.indexOf(txt,tags.close,end);
if ( end.ndx == -1 )
// No more closing tags, do the last search.
return tags.lastCloseTag(txt,end,txtlen);
// Look for next opening tag.
start = twve.text.indexOf(txt,tags.open,start);
if ( start.ndx == -1 ) {
// No more opening but still closing tags.
// Check for remaining closing tags.
start.ndx = end.ndx;
do {
if ( --remained == 0 ) return end;
end.ndx += end.matched.length;
end = twve.text.indexOf(txt,tags.close,end);
if ( end.ndx == -1 )
// No more closing tags, do the last search.
return tags.lastCloseTag(txt,end,txtlen);
} while ( true );
}
if ( end.ndx == start.ndx ) {
if ( --remained == 0 ) {
// This situation is possible for elements that
// must start from the beginning of a line and
// end at a line break, such as list items.
return end;
}
start.ndx += start.matched.length;
end.ndx += end.matched.length;
} else if ( end.ndx < start.ndx ) {
// The next closing tag is before the next opening tag.
do {
// If this closing tag is the matched one, return
// its position info.
if ( --remained == 0 ) return end;
// Otherwise look for all closing tags before the
// next opening tag.
end.ndx += end.matched.length;
end = twve.text.indexOf(txt,tags.close,end);
if ( end.ndx == -1 )
// No more closing tags, do the last search.
return tags.lastCloseTag(txt,end,txtlen);
} while ( end.ndx < start.ndx );
// The matched closing tag is not found yet, add one
// more and go on.
++remained;
start.ndx += start.matched.length;
end.ndx = start.ndx;
} else { // end.ndx > start.ndx
// The next opening tag is before the next closing
// tag. Look for all opening tags before the next
// closing tag.
do {
++remained;
start.ndx += start.matched.length;
start = twve.text.indexOf(txt,tags.open,start);
} while ( start.ndx > -1 && start.ndx < end.ndx );
--remained;
end.ndx += end.matched.length;
start.ndx = end.ndx;
}
} while (true);
};
//}}}
/***
!!!!! End of tags
***/
//{{{
return tags;
}
};
//}}}
/***
!!! twve.BR
***/
//{{{
twve.BR = {
enableEdit : true,
//}}}
/***
!!!! twve.BR.is
***/
//{{{
is : function(node){
return node.nodeName == 'BR';
},
//}}}
/***
!!!! twve.BR.markupTags
***/
//{{{
markupTags : function(){
return twve.tags.create(
['\n', '<br'],
['', '>']
);
},
//}}}
/***
!!!! twve.BR.create
***/
//{{{
create : function(src,txt,start,dir){
var br = twve.element.create();
br.err = function(start,txt,dir){
br.start.clear();
var msg = dir < 0
? txt.substring(start-50,start)
: txt.substring(start,start+50);
console.log('Internal Error('+(dir<0?'left':'right')+'): BR encountered but neither newline nor <br> was found. start='+start+'/'+txt.length+' subtxt=['+msg+']');
};
br.onBlockElement = function(txt,start){
if ( br.dom.nextSibling.nodeName != 'BR' &&
txt.charAt(start) == '\n' ) {
if("|*#{<>!".indexOf(txt.charAt(start+1))>=0){
br.start.ndx = start;
br.end.ndx = start+1;
br.end.matched = '\n';
return br.start;
}
}
};
br.onNewLine = function(txt,start){
if ( txt.charAt(start) == '\n' ) {
br.start.ndx = start;
br.end.ndx = start+1;
br.end.matched = '\n';
// Check if there is <<foldHeadings>>
if(txt.charAt(start-1)=='>'){
if((start=txt.indexOf('<<',start-1))>=0){
br.start.matched = txt.substring(
start,br.end.ndx-1
);
if(br.start.matched=='<<foldHeadings>>'){
br.start.ndx = start;
}
}
}
return br.start;
}
};
br.starts = function(start,txt,dir){
if ( ! txt || start==txt.length ){
//if(twve.node.matches(
// br.dom.parentNode,twve.foldedSection.getSelector()
//)){
br.start.ndx = br.end.ndx = start;
//}
return br.start;
}
if ( dir < 0 ){
// Going left (backward), first check if we are sitting
// on the end of a block element.
if ( br.onBlockElement(txt,start) ){
// Yes we are, return it.
return br.start;
}
// No, move backward by one chararacter.
start--;
while(txt.charAt(start)=='>'){
// We are sitting on a '>',
br.end.ndx = start;
br.start.ndx = txt.lastIndexOf('<',start-1);
if ( br.start.ndx >= 0 ){
br.start.matched = txt.substring(
br.start.ndx,br.start.ndx+3
);
if(br.start.matched.toLowerCase()=='<br'){
// This is a <br> or <br />
br.end.ndx = start+1;
return br.start;
}
start = br.start.ndx-1;
} else
start = br.end.ndx-1;
}
if ( br.onNewLine(txt,start) ){
// We are sitting right on a new line char,
return br.start;
}
} else {
// Going right (forward),
while ( txt.charAt(start)=='<' ) {
// and we are sitting on a '<',
br.end.ndx = txt.indexOf('>',start+1)+1;
if ( br.end.ndx > start+1 ){
br.start.matched = txt.substring(start,start+3);
if(br.start.matched.toLowerCase()=='<br'){
// This is a <br> or <br />
br.start.ndx = start;
br.end.matched = '>';
return br.start;
}
// Check if there is <<foldHeadings>>
br.end.ndx++;
br.start.matched = txt.substring(
start,br.end.ndx
);
if(br.start.matched=='<<foldHeadings>>'){
br.start.ndx = start;
if(txt.charAt(br.end.ndx)=='\n'){
br.end.ndx++;
return br.start;
}
}
start = br.end.ndx;
} else
start++;
}
if ( br.onNewLine(txt,start) )
// or we are sitting right on a new line char,
return br.start;
}
br.err(start,txt,dir);
return br.start;
};
br.ends = function(){
return br.end;
};
return br.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.HR
***/
//{{{
twve.HR = {
enableEdit : true,
//}}}
/***
!!!! twve.HR.is
***/
//{{{
is : function(node){
return node.nodeName == 'HR';
},
//}}}
/***
!!!! twve.HR.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
['\n--', '<HR'],
['--\n', '>']
);
tags.blockElement = true;
return tags;
},
//}}}
/***
!!!! twve.HR.create
***/
//{{{
create : function(src,txt,start,dir){
var hr = twve.element.create();
hr.err = function(start,txt,dir){
hr.start.clear();
var msg = dir < 0
? txt.substring(start-50,start)
: txt.substring(start,start+50);
console.log('Internal Error('+(dir<0?'left':'right')+'): HR encountered but neither \n----\n nor <hr> was found. start='+start+'/'+txt.length+' subtxt=['+msg+']');
};
hr.starts = function(start,txt,dir){
if ( ! txt || start==txt.length ){
hr.start.ndx = hr.end.ndx = start;
return hr.start;
}
var ch;
if ( dir < 0 ){
// Going left (backward),
hr.end.ndx = start;
ch = txt.charAt(start-1);
if ( ch == '\n' ) {
if(txt.substring(start-6,start)=='\n----\n'){
hr.end.matched = hr.tags.close[0];
hr.start.ndx = start - 6;
hr.start.matched = hr.tags.open[0];
return hr.start;
}
} else if ( ch == '>' ) {
// <HR>
hr.end.matched = hr.tags.close[1];
hr.start.ndx = txt.lastIndexOf(
'<',start-1
);
hr.start.matched = hr.tags.open[1];
if ( hr.start.ndx >= 0 ) return hr.start;
}
} else {
// Going right (forward),
hr.start.ndx = start;
ch = txt.charAt(start);
if ( ch == '\n' ) {
if(txt.substring(start+6,start)=='\n----\n'){
hr.start.ndx++;
hr.start.matched = hr.tags.open[0];
hr.end.ndx = start + 6;
hr.end.matched = hr.tags.close[0];
return hr.start;
}
} else if ( ch == '-' ) {
if(txt.substring(start+5,start)=='----\n'){
hr.start.matched = hr.tags.open[0];
hr.end.ndx = start + 5;
hr.end.matched = hr.tags.close[0];
return hr.start;
}
} else if ( ch == '<' ) {
// <HR>
hr.start.matched = hr.tags.open[1];
hr.end.ndx = txt.indexOf('>',start+1);
hr.end.matched = hr.tags.close[1];
if ( hr.end.ndx > 0 ) return hr.start;
}
}
hr.err(start,txt,dir);
return hr.start;
};
hr.ends = function(){
return hr.end;
};
return hr.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.tiddler extra features
***/
//{{{
merge(twve.tiddler, {
//}}}
/***
!!!! twve.tiddler.editWrappers
***/
//{{{
editWrappers : function(){
return true;
},
//}}}
/***
!!!! twve.tiddler.registerWrapper
***/
//{{{
wrap_sel : null,
preRegisterWrapper : twve.tiddler.registerWrapper,
registerWrapper : function(){
twve.tiddler.wrap_sel = null;
twve.tiddler.preRegisterWrapper.apply(this,arguments);
},
//}}}
/***
!!!! twve.tiddler.focusTarget
***/
//{{{
focusTarget : function(ev){
if ( twve.tiddler.wrap_sel === null )
twve.tiddler.wrap_sel =
twve.tiddler.wrapperSelectors();
return twve.node.closest(
ev.target,twve.tiddler.wrap_sel.include
) || ev.target;
//return (config.options.chktwveExtraLocateChar &&
// ! twve.isMobile())
// ? (twve.node.closest(
// ev.target,twve.tiddler.wrapperSelectors()
// ) || ev.target)
// : ev.target;
},
//}}}
/***
!!!! twve.tiddler.prepareFocusBorders
***/
//{{{
prePrepareFocusBordersExtra : twve.tiddler.prepareFocusBorders,
prepareFocusBorders : function(eb){
var eblen = eb.length;
var brdlen = twve.tiddler.border_top.length;
var parent = twve.tiddler.border_top[0].parentNode;
if ( eblen < 2 )
twve.tiddler.prePrepareFocusBordersExtra.apply(
this,arguments
);
else {
var shift = twve.node.positionShift();
eb.top = eb[0].top + shift.top;
eb.right = eb[0].right + shift.left;
eb.bottom = eb[0].bottom + shift.top;
eb.left = eb[0].left + shift.left;
eb.height = eb[0].height;
eb.width = eb[0].width;
twve.tiddler.prePrepareFocusBordersExtra.call(this,eb);
// Prepare borders for the inner nodes.
for ( var n = 1; n < eblen; n++ ) {
// Left border of the first line.
if ( n >= brdlen ) {
twve.tiddler.border_left[n] =
twve.tiddler.createFocusBorder(parent,'left');
twve.tiddler.border_top[n] =
twve.tiddler.createFocusBorder(parent,'top');
twve.tiddler.border_bottom[n] =
twve.tiddler.createFocusBorder(parent,'bottom');
twve.tiddler.border_right[n] =
twve.tiddler.createFocusBorder(parent,'right');
}
twve.node.setPosition(
twve.tiddler.border_left[n],
eb[n].left+shift.left,
eb[n].top+shift.top
);
twve.node.setDimension(
twve.tiddler.border_left[n],null,eb[n].height
);
// Top border of the nth line.
twve.node.setPosition(
twve.tiddler.border_top[n],
eb[n].left+shift.left,
eb[n].top+shift.top
);
twve.node.setDimension(
twve.tiddler.border_top[n],eb[n].width
);
// Bottom border of the nth line.
twve.node.setPosition(
twve.tiddler.border_bottom[n],
eb[n].left+shift.left,
eb[n].bottom+shift.top
);
twve.node.setDimension(
twve.tiddler.border_bottom[n],eb[n].width
);
// Right border of the last line.
twve.node.setPosition(
twve.tiddler.border_right[n],
eb[n].right+shift.left,
eb[n].top+shift.top
);
twve.node.setDimension(
twve.tiddler.border_right[n],null,eb[n].height
);
}
}
if ( eblen < brdlen ) {
// If # of borders is larger than that of the boxes, drop
// the extra borders.
for ( var n = brdlen-1; n>=eblen; n-- ) {
parent.removeChild(twve.tiddler.border_left[n]);
parent.removeChild(twve.tiddler.border_top[n]);
parent.removeChild(twve.tiddler.border_bottom[n]);
parent.removeChild(twve.tiddler.border_right[n]);
}
brdlen -= eblen;
twve.tiddler.border_left.splice(eblen,brdlen);
twve.tiddler.border_top.splice(eblen,brdlen);
twve.tiddler.border_bottom.splice(eblen,brdlen);
twve.tiddler.border_right.splice(eblen,brdlen);
}
return eblen;
},
//}}}
/***
!!!! twve.tiddler.editBoxShown
***/
//{{{
editBoxShown : function(ta){
return ta.offsetWidth > 4;
},
//}}}
/***
!!!! twve.tiddler.previewEditBox
***/
//{{{
prePreviewEditBox : twve.tiddler.previewEditBox,
previewEditBox : function (ta) {
if ( ! twve.tiddler.editBoxShown(ta) ) {
twve.node.hide(twve.tiddler.getPreviewer());
return null;
}
return twve.tiddler.prePreviewEditBox.apply(this,arguments);
},
//}}}
/***
!!!! twve.tiddler.nodeWiki
***/
//{{{
nodeWiki : function (node,txt,start,toskip,dir){
// Returns an object containing the index (within txt) of the
// first character (starting from start), the matched string,
// and the actual length of the opening and closing tags
// corresponding to node.
// In some cases of leveled elements, such as lists, headings
// or blockquotes, the matched string could be just part of
// the tag string, therefore the actual length is needed to
// work with them correctly.
// {
// start: {
// ndx: index of the opening tag,
// matched: matched tag string
// },
// end: {
// ndx: index of the closing tag,
// matched: matched tag string
// }
// }
var nodewiki = twve.object.create();
nodewiki.start = twve.position.create(start,'');
nodewiki.end = twve.position.create(start,'');
// A positive dir means to search forward, while a negative
// dir means backward.
if(typeof dir !== 'number') dir = 1;
if ( node.nodeType == 3 ) {
// A text node, include the beginning tilde (~) if any.
if ( dir < 0 ) {
// If there is \n at start then it must be the
// beginning the next block element. Skip it.
//if(txt.charAt(nodewiki.end.ndx)=='\n')
// nodewiki.end.ndx--;
// Set the open tag position to the beginning of text
// in this text node.
nodewiki.start.ndx =
nodewiki.end.ndx-node.nodeValue.length;
// If there is a leading tilde, which will be removed
// upon rendering, add it back.
if(txt.charAt(nodewiki.start.ndx-1) == '~'){
nodewiki.start.matched = '~';
nodewiki.start.ndx--;
}
} else {
// If there is \n at start then it must be the end
// of the previous block element. Skip it.
if(txt.charAt(nodewiki.start.ndx)=='\n')
nodewiki.start.ndx++;
// If there is a leading tilde, which will be removed
// upon rendering, add it back.
nodewiki.start.matched =
txt.charAt(nodewiki.start.ndx) == '~' ? '~' : '';
// Set the close tag position to the end of text in this
// text node.
nodewiki.end.ndx =
nodewiki.start.ndx + nodewiki.start.matched.length +
node.nodeValue.length;
}
} else {
// Not a text node. Look for its opening tag (should be
// right at txt[nodewiki.start.ndx]).
var twelem=twve.tiddler.createEditable(node,txt,start,dir);
if ( twelem )
return twelem;
if ( node.nodeName == 'BR' ) {
return twve.BR.create(node,txt,start,dir);
}
if(txt.charAt(nodewiki.start.ndx)=='\n')
// There is \n but no BR.
if ( ! (dir < 0) ){
// Going forward, this \n must be the end of the
// previous block element. Skip it.
nodewiki.start.ndx++;
}
// Find the tags of the node.
var tags = null, ch;
if ( node.nodeName == 'SUP' ) {
if ( dir < 0 ) {
ch = txt.charAt(nodewiki.end.ndx-1);
if ( ch == '^' ) {
// '^^', superscript
nodewiki.start.ndx = txt.lastIndexOf(
'^^',nodewiki.end.ndx-2
);
return nodewiki;
}
} else {
ch = txt.charAt(nodewiki.start.ndx);
if ( ch == '^' ) {
// '^^', superscript
nodewiki.end.ndx = txt.indexOf(
'^^',nodewiki.end.ndx+2
)+2;
return nodewiki;
}
}
} else if ( node.nodeName == 'SUB' ) {
if ( dir < 0 ) {
ch = txt.charAt(nodewiki.end.ndx-1);
if ( ch == '~' ) {
// '^^', superscript
nodewiki.start.ndx = txt.lastIndexOf(
'~~',nodewiki.end.ndx-2
);
return nodewiki;
}
} else {
ch = txt.charAt(nodewiki.start.ndx);
if ( ch == '~' ) {
// '~~', subscript
nodewiki.end.ndx = txt.indexOf(
'~~',nodewiki.end.ndx+2
)+2;
return nodewiki;
}
}
} else if ( node.nodeName == 'SPAN' ) {
// A span, could be one of the followings:
// 1. HTML entity
// 2. -- (long dash)
// 3. ...
if ( dir < 0 ){
ch = txt.charAt(nodewiki.end.ndx-1);
if ( ch == ';' ) {
// HTML entity
nodewiki.start.ndx = txt.lastIndexOf(
'&',nodewiki.end.ndx-1
);
return nodewiki;
} else if ( ch == '-' ) {
// '--', long dash
nodewiki.start.ndx = nodewiki.end.ndx-2;
return nodewiki;
}
} else {
ch = txt.charAt(nodewiki.start.ndx);
if ( ch == '&' ) {
// HTML entity
nodewiki.end.ndx = txt.indexOf(
';',nodewiki.start.ndx+1
) + 1;
return nodewiki;
} else if ( ch == '-' ) {
// '--', long dash
nodewiki.end.ndx = nodewiki.start.ndx+2;
return nodewiki;
}
}
// Otherwise try itself or its parent
tags = twve.tiddler.markupTags(node,'parent');
} else if ( node.nodeName == 'A' ) {
if(twve.sliderPanel.isButton(node)){
// A sliderPanel button
nodewiki.tags = twve.sliderPanel.markupTags();
return nodewiki;
}
// Regular links
tags = twve.link.markupTags();
if ( dir < 0 ) {
// Going backward
if (
txt.substring(
nodewiki.end.ndx-tags.close.length,
nodewiki.end.ndx
) == tags.close
) {
// A TiddlyWiki link
nodewiki.end.matched = tags.close;
nodewiki.start.ndx = nodewiki.end.ndx -
nodewiki.end.matched.length;
nodewiki.start = twve.text.lastIndexOf(
txt, tags.open, nodewiki.start
);
nodewiki.tags = tags;
} else {
// A URL link.
nodewiki.start.ndx = nodewiki.end.ndx -
node.textContent.length;
}
} else {
// Going forward
if (
txt.substring(
nodewiki.start.ndx,
nodewiki.start.ndx+tags.open.length
) == tags.open
) {
// A TiddlyWiki link
nodewiki.start.matched = tags.open;
nodewiki.end.ndx = nodewiki.start.ndx +
nodewiki.start.matched.length;
nodewiki.end = twve.text.indexOf(
txt, tags.close, nodewiki.end
);
nodewiki.end.ndx += nodewiki.end.matched.length;
nodewiki.tags = tags;
} else {
// A URL link.
nodewiki.end.ndx = nodewiki.start.ndx +
node.textContent.length;
}
}
return nodewiki;
} else {
// Try the node itself or its parent.
tags = twve.tiddler.markupTags(node,'parent');
if ( ! tags && node.nodeName == 'DIV' ) {
// For non-editable DIV's try its firstChild.
tags = twve.tiddler.markupTags(
node.firstChild,'parent'
);
}
}
if ( tags ) {
// There is a pair of tags corresponding to the
// current node.
nodewiki.tags = tags;
if ( typeof toskip != 'number' ) toskip = 0;
do {
// Find the starting position and the matched string.
nodewiki.start = dir < 0
? tags.lastOpenTag(txt,nodewiki.start)
: tags.nextOpenTag(txt,nodewiki.start);
if ( nodewiki.start.ndx == -1 )
return nodewiki;
} while ( --toskip > 0 );
// Now look for the closing tag.
// Find the exact close tag. We do so because there are
// cases where multiple opening/closing pairs
// correspond to the same type of elements. In such
// cases the tags.close is an array of strings
// instead of a single string, so we need to find the
// exact closing tag.
tags = tags.exactCloseTag(nodewiki.start.matched);
// Find the starting position of the closing tag.
nodewiki.end.ndx =
nodewiki.start.ndx+nodewiki.start.matched.length;
// The following assignment is needed in the matchedCloseTag()
// of some elements.
nodewiki.end.matched = nodewiki.start.matched;
// Look for the matched close tag.
nodewiki.end = tags.matchedCloseTag(
txt, nodewiki.end
);
if ( nodewiki.end.ndx == -1 ) {
// Close tag not found, should be the outer-most
// element. Set the index and matched to that of the
// opening tag.
nodewiki.end.ndx = nodewiki.start.ndx;
nodewiki.end.matched = nodewiki.start.matched;
} else
nodewiki.end.ndx += nodewiki.end.matched.length;
} else {
// Unrecognized node
if ( node.nextSibling ) {
// If there is a next node, look for its starting
// position.
var next_pos = twve.tiddler.nodeWiki(
node.nextSibling, txt, nodewiki.end.ndx
);
nodewiki.end.ndx = next_pos.start.ndx;
} else {
// This node is the last node in its parent.
nodewiki.end.ndx = txt.length;
}
}
}
return nodewiki;
},
//}}}
/***
!!!! twve.tiddler.wikiTextSelectionOffset
***/
//{{{
wikiTextSelectionOffset : function(
sel,nodes,nodeNdx,offset,txt,which
){
// Find the starting and/or ending selection offset within a
// wiki text txt.
// Arguments:
// sel: selection information obtained from window.getSelection(),
// nodes: array of nodes defined by the wiki text txt,
// nodeNdx: indexes of the starting and ending nodes of the
// selection, obtained from twve.editable.nodeIndex(),
// offset: starting and ending offset indexes (to be found),
// txt: the wiki text that defines nodes,
// which: start, end, or omitted.
var ch = which ? which.toLowerCase().charAt(0) : '';
// Whether or not to look for the starting index of offset.
var _start = ch != 'e';
// Whether or not to look for the ending index of offset.
var _end = ch != 's';
// Index of the starting node (within the array nodes).
var ndx_s = typeof nodeNdx.start === 'number'
? nodeNdx.start
: nodeNdx.start.outer;
// Index of the ending node (within the array nodes).
var ndx_e = typeof nodeNdx.end === 'number'
? nodeNdx.end
: nodeNdx.end.outer;
// Obtain the wikitext of each node in the array nodes.
var nodeWiki = editable.editNode.nodeWiki;
if ( _start ) {
// We are searching for the starting offset, which
// is within the wiki text of nodes[ndx_s].
if ( ndx_s === nodeNdx.start ) {
// The nodeNdx.start is a number, meaning nodes[ndx_s]
// is the sel.anchoNode.
offset.start = nodeWiki[ndx_s].start.ndx +
nodeWiki[ndx_s].start.matched.length +
sel.anchorOffset;
} else {
// The nodeNdx.start is NOT a number, meaning the
// sel.anchorNode is some child node of nodes[ndx_s].
offset.start = nodewiki.start.ndx +
nodewiki.start.mtched.length;
twve.tiddler.wikiTextSelectionOffset(
sel,nodes[ndx_s].childNodes,
{
start: nodeNdx.start.inner,
end: nodeNdx.start.inner
},
offset,txt,'start'
);
}
}
if ( _end ) {
// We are searching for the ending offset, which
// is within the wiki text of nodes[ndx_e].
if ( sel.focusNode == sel.anchorNode &&
sel.focusOffset == sel.anchorOffset ) {
// If no selection made.
offset.end = offset.start;
} else if ( ndx_e === nodeNdx.end ) {
// The nodeNdx.end is a number, meaning nodes[ndx_e]
// is the sel.focusNode.
offset.end = nodeWiki[ndx_e].start.ndx +
nodeWiki[ndx_e].start.matched.length +
sel.focusOffset;
} else {
// The nodeNdx.end is NOT a number, meaning the
// sel.focusNode is some child node of nodes[ndx_e].
offset.end = nodewiki.start.ndx +
nodewiki.start.matched.length;
twve.tiddler.wikiTextSelectionOffset(
sel,nodes[ndx_e].childNodes,
{
start: nodeNdx.end.inner,
end: nodeNdx.end.inner
},
offset,txt,'end'
);
}
}
return offset;
}
});
//}}}
/***
!!! twve.node extra features
***/
//{{{
merge(twve.node,{
//}}}
/***
!!!! twve.node.box
***/
//{{{
preBoxExtra : twve.node.box,
box : function(node,outerw,outerh){
//if (twve.node.matches(
// node,twve.heading.twveSelector().include
//)) return null;
if ( twve.node.matches(node,twve.heading.getSpanSelector()) )
node = node.parentNode;
var box = twve.node.preBoxExtra.call(this,node,outerw,outerh);
if ( ! box ) return null;
//}}}
/***
!!!!! box.containsXShifted
***/
//{{{
box.containsXShifted = function(x,rect,shift){
if ( ! shift ) shift = twve.node.positionShift();
return (x >= rect.left+shift.left &&
x <= rect.right+shift.left);
};
//}}}
/***
!!!!! box.containsX
***/
//{{{
var preContainsX = box.containsX;
box.containsX = function(x,which){
if ( which === undefined )
return preContainsX.apply(this,arguments);
if ( typeof which == 'number' )
return which >= 0 && which < box.length
? box.containsXShifted(x,box[which])
: false;
if ( which.toLowerCase().substring(0,5)=='inner' ) {
// Goes through all the rectangles, returns the
// rectangle that contains x or null otherwise.
var shift = twve.node.positionShift();
for (var n = 0; n < box.length; n++ )
if ( box.containsXShifted(x,box[n],shift) )
//return box.cloneN(n,twve.node.positionShift());
return box[n];
}
return false;
};
//}}}
/***
!!!!! box.containsYShifted
***/
//{{{
box.containsYShifted = function(y,rect,shift){
if ( ! shift ) shift = twve.node.positionShift();
return (y >= rect.top+shift.top &&
y <= rect.bottom+shift.top);
};
//}}}
/***
!!!!! box.containsY
***/
//{{{
var preContainsY = box.containsY;
box.containsY = function(y,which){
if ( which === undefined )
return preContainsY.apply(this,arguments);
if ( typeof which == 'number' )
return which >= 0 && which < box.length
? box.containsYShifted(y,box[which])
: null;
if ( which.toLowerCase().substring(0,5)=='inner' ) {
// Goes through all the rectangles, returns the
// rectangle that contains y or null otherwise.
var shift = twve.node.positionShift();
for (var n = 0; n < box.length; n++ )
if ( box.containsYShifted(y,box[n],shift) )
//return box.cloneN(n,twve.node.positionShift());
return box[n];
}
return false;
};
//}}}
/***
!!!!! box.containsShifted
***/
//{{{
box.containsShifted = function(pos,rect,shift){
if ( ! shift ) shift = twve.node.positionShift();
if ( pos.left )
return box.containsXShifted(pos.left,rect,shift) &&
box.containsXShifted(pos.right,rect,shift) &&
box.containsYShifted(pos.top,rect,shift) &&
box.containsYShifted(pos.bottom,rect,shift);
else
return box.containsXShifted(pos.x,rect,shift) &&
box.containsYShifted(pos.y,rect,shift);
};
//}}}
/***
!!!!! box.contains
***/
//{{{
var preContains = box.contains;
box.contains = function(pos,which){
if ( which === undefined )
return preContains.apply(this,arguments);
if ( typeof which == 'number' )
return which >= 0 && which < box.length
? box.containsShifted(pos,box[which])
: false;
if ( which.toLowerCase().substring(0,5)=='inner' ) {
// Goes through all the rectangles, returns the
// rectangle that contains pos or null otherwise.
var shift = twve.node.positionShift();
for (var n = 0; n < box.length; n++ )
if ( box.containsShifted(pos,box[n],shift) )
//return box.cloneN(n,twve.node.positionShift());
return box[n];
}
return false;
};
//}}}
/***
!!!!! box.toString
***/
//{{{
box.toString = function(){
return '(' +
Math.round(box.left) + ',' +
Math.round(box.top) + ')-(' +
Math.round(box.right) + ',' +
Math.round(box.bottom) + ') (w,h)=(' +
Math.round(box.width) + ',' +
Math.round(box.height) + ')';
};
//}}}
/***
!!!!! End of box.
***/
//{{{
if ( box.height == 1 ) {
box.top--;
box.bottom++;
box.height += 2;
}
return box;
}
});
//}}}
/***
!!! twve.editable extra features
***/
//{{{
merge(twve.editable,{
//}}}
/***
!!!! twve.editable.nodeIndex
***/
//{{{
nodeIndex : function (nodes,node){
// Find the index of a node within nodes (an array of DOM nodes
// or a NodeList) contained in some element.
// Returns the index number if found, -1 otherwise.
if ( ! node ) return -1;
for ( var n=0,len=nodes.length; n<len; n++ ){
var c = nodes[n];
if (node.nodeType == c.nodeType) {
// Same type, compare them.
if ( node == c ) {
// Found it. Return the index of this node.
return n;
}
}
}
// Otherwise we check if we look further into the child nodes
for ( var n=0,len=nodes.length; n<len; n++ ){
var c = nodes[n];
if (c.nodeType != 3) {
// This c is not a text node but an element,
// see if it contains the node we are looking
// for.
var ndx2 = twve.editable.nodeIndex(
c.childNodes,node
);
if ( ndx2 != -1 ) {
// Yes, it contains the node. Set the index
// number of this element and stop the loop.
ndx = twve.object.create();
ndx.outer = n;
ndx.inner = ndx2;
return ndx;
}
}
}
return -1;
},
//}}}
/***
!!!! twve.editable.nodeFromIndex
***/
//{{{
nodeFromIndex : function (nodes,ndx){
// Find the corresponding node, in an array of nodes, that is
// specified by the index ndx. The ndx can be either
// 1. a number, meaning the index of the expected node itself
// within the array nodes, or
// 2. an object of {
// outer: index number of one of the parents,
// inner: index number/object in the child nodes of that
// parent
// }
return ndx.outer
// The ndx is an object
? twve.editable.nodeFromIndex(
nodes[ndx.outer].childNodes,ndx.inner
)
// The ndx is a number
: nodes[ndx];
},
//}}}
/***
!!!! twve.editable.create
***/
//{{{
preCreateExtra : twve.editable.create,
create : function(){
var editable=twve.editable.preCreateExtra.apply(this,arguments);
//}}}
/***
!!!!! editable.lineHeight
***/
//{{{
editable.lineHeight = function(css){
return parseInt(
editable.dom.style.lineHeight ||
window.getComputedStyle(editable.dom)
.getPropertyValue('line-height')
);
};
//}}}
/***
!!!!! editable.setFocusOffset
***/
//{{{
editable.setFocusOffset = function(ta,offset,shift,next){
if ( typeof offset === 'number' )
editable.selection.focusOffset = offset;
else if ( typeof shift === 'number' )
editable.selection.focusOffset += shift;
if ( ! next ) {
next = (editable.editNode || editable.focusNode).dom;
if ( twve.object.isCollection(next) )
next = twve.editable.nodeFromIndex(
next,editable.selection.nodeNdx.end
);
}
var len = next.nodeValue.length;
var box;
if ( editable.selection.focusOffset <= 0 ) {
// We are setting offset at the beginning of next.
editable.selection.focusOffset = 0;
box = twve.node.box(next);
twve.node.setPosition(ta,box.left-1,box.top);
} else if ( editable.selection.focusOffset >= len ) {
// We are setting offset at the end of next.
editable.selection.focusOffset = len;
if ( next.nextSibling ) {
// If there is an even next sibling, take it as the
// new next, and put the edit box at its left end.
next = next.nextSibling;
box = twve.node.box(next);
twve.node.setPosition(ta,box.left-1,box.top);
} else {
// If there is no more next sibling, put the edit box
// at the right end of the current next.
box = twve.node.box(next);
twve.node.setPosition(ta,box.right+1,box.top);
}
} else {
// We are setting offset in the middle of the current next,
// split it to obtain the new next and put the edit box
// at the left end of the new next.
next = next.splitText(editable.selection.focusOffset);
box = twve.node.box(next);
twve.node.setPosition(ta,box.left-1,box.top);
}
editable.selection.nextNode = next;
};
//}}}
/***
!!!!! editable.focusEditBox
***/
//{{{
var preFocusEditBox = editable.focusEditBox;
editable.focusEditBox = function(ta,txt,ev,elem){
if ( txt && config.options.chktwveExtraLocateChar ) {
// Find the index of the char that the mouse just
// clicked at.
var skiplen = ! editable.start.matched
? 0
: editable.start.matched.length -
(editable.start.matched.charAt(0)=='\n'?1:0);
skiplen += twve.text.skipStyleText(txt,skiplen);
// Find selection information.
var sel = getSelection();
if ( ! elem ) elem = editable.getElement();
var e0 = elem.length ? elem[0] : elem;
editable.selection = twve.object.create();
editable.selection.end = editable.selection.start = 0;
editable.selection.nodeNdx = twve.object.create();
var nodes = null;
// Find the starting (anchor) and ending (focus) node
// indexes.
if ( editable.editNode ) {
// We are focusing on some of the child nodes.
nodes = editable.editNode.dom;
if ( nodes.nodeType ) nodes = [nodes];
editable.selection.nodeNdx.end =
twve.editable.nodeIndex(
nodes,
(sel.focusNode == e0
? e0.childNodes[sel.focusOffset]
: sel.focusNode)
);
if ( editable.selection.nodeNdx.end < 0 )
editable.selection.nodeNdx.end = nodes.length-1;
editable.selection.nodeNdx.start =
twve.editable.nodeIndex(
nodes,
(sel.anchorNode == e0
? e0.childNodes[sel.anchorOffset]
: sel.anchorNode)
);
if ( editable.selection.nodeNdx.start < 0 )
editable.selection.nodeNdx.start = 0;
} else {
// We are focusing on the whole editable object.
nodes = e0.childNodes;
editable.selection.nodeNdx.end = sel.focusNode == e0
? sel.focusOffset
: twve.editable.nodeIndex(nodes,sel.focusNode);
if ( editable.selection.nodeNdx.end < 0 )
editable.selection.nodeNdx.end = nodes.length-1;
if ( sel.anchorNode == sel.focusNode ) {
editable.selection.nodeNdx.start =
editable.selection.nodeNdx.end;
} else {
editable.selection.nodeNdx.start =
sel.anchorNode == e0
? sel.anchorOffset
: twve.editable.nodeIndex(
nodes,sel.anchorNode
);
if ( editable.selection.nodeNdx.start < 0 )
editable.selection.nodeNdx.start = 0;
}
}
// Get the offset.
//editable.selection.anchorNode = sel.anchorNode;
//editable.selection.anchorOffset = sel.anchorOffset;
editable.selection.focusNode = sel.focusNode;
editable.selection.focusOffset = sel.focusOffset;
twve.tiddler.wikiTextSelectionOffset(
sel,nodes,
editable.selection.nodeNdx,
editable.selection,
txt.substring(skiplen)
);
if ( skiplen ) {
editable.selection.start += skiplen;
editable.selection.end += skiplen;
}
// Set caret position to (0, 0) in the editbox.
twve.tiddler.editBoxCaret(ta,0,0);
// Store the current caret position.
twve.tiddler.initCaretPos(editable.selection.start);
// Clear editbox text
editable.typed = editable.deleted = ta.value = '';
editable.inserted = [];
// Adjust editbox and put it at the right place.
editable.selection.nodeNdx.e0 = e0;
if ( editable.selection.focusNode != e0 ) {
ta.style.borderWidth = '0px';
ta.style.resize = 'none';
ta.style.width = '1px';
ta.style.height = window.getComputedStyle(e0)
.getPropertyValue('line-height');
editable.setFocusOffset(ta);
}
} else {
editable.selection = null;
preFocusEditBox.apply(this,arguments);
}
return ta;
};
//}}}
/***
!!!!! editable.boxCopy
***/
//{{{
editable.boxCopy = function(dest,src,lh,where){
var copied = false;
if ( where == 'top' ) {
if ( src.top - dest.top >= lh ) {
dest.bottom = src.top;
copied = true;
}
} else if ( where == 'bottom' ) {
if ( dest.bottom - src.bottom >= lh ) {
dest.top = src.bottom;
copied = true;
}
} else {
// Copy the src to dest
// Copy top and bottom first.
dest.top = src.top;
dest.bottom = src.bottom - src.top < lh
? dest.top + lh
: src.bottom;
if ( where == 'all' ) {
dest.width = src.width;
if ( src.left > dest.left )
dest.left = src.left;
dest.right = dest.left + dest.width;
}
// Then copy the clientRects.
//dest.splice(0,dest.length).concate(src);
copied = true;
}
dest.height = dest.bottom - dest.top;
return copied;
};
//}}}
/***
!!!!! editable.createFocusNode
***/
//{{{
editable.createFocusNode = function(node,nodewiki){
var focusNode = twve.node.create(node);
if ( nodewiki ) {
focusNode.start =
twve.position.create(nodewiki.start);
focusNode.end =
twve.position.create(nodewiki.end);
}
return focusNode;
};
//}}}
/***
!!!!! editable.setFocusNode
***/
//{{{
editable.setFocusNode = function(node,index,nodewiki,where){
if (editable.focusNode && where) {
// Add this node to the end or the beginning.
where = where.toLowerCase();
editable.focusNode.add(node,where);
//if ( ! editable.focusNode.index )
// editable.focusNode.index = [];
switch (where){
case 'end' :
if ( nodewiki ) {
editable.focusNode.end.ndx=nodewiki.end.ndx;
//if ( config.options.chktwveExtraLocateChar ) {
// In the WYSIWYG mode we also record the
// tags and positions of the current node.
editable.focusNode.nodeWiki[
editable.focusNode.nodeWiki.length
] = nodewiki;
//}
}
editable.focusNode.index[
editable.focusNode.index.length
] = index;
return editable;
case 'begin' :
if ( nodewiki ) {
editable.focusNode.start.ndx=nodewiki.start.ndx;
//if ( config.options.chktwveExtraLocateChar ) {
// In the WYSIWYG mode we also record the
// tags and positions of the current node.
editable.focusNode.nodeWiki.unshift(
nodewiki
);
//}
}
editable.focusNode.index.unshift(index);
return editable;
}
}
// Otherwise set this node as the first one.
editable.focusNode = editable.createFocusNode(node,nodewiki);
editable.focusNode.index = [index];
if ( nodewiki ) {
// Record the positions of the current node.
editable.focusNode.nodeWiki = [nodewiki];
}
return editable;
};
//}}}
/***
!!!!! editable.collectNode
***/
//{{{
editable.collectNode = function(node,index,nodewiki,eb,nb,dir){
if ( eb && nb ) {
if ( nb.left < eb.left ) {
eb.left = nb.left;
eb.width = eb.right - eb.left;
}
if ( nb.right > eb.right ) {
eb.right = nb.right;
eb.width = eb.right - eb.left;
}
if ( dir < 0 ){
if ( ! editable.focusNode ) eb.bottom = nb.bottom;
eb.top = nb.top;
} else {
if ( ! editable.focusNode ) eb.top = nb.top;
eb.bottom = nb.bottom;
}
eb.height = eb.bottom - eb.top;
}
editable.setFocusNode(
node,index,nodewiki,(dir<0?'begin':'end')
);
return editable;
};
//}}}
/***
!!!!! editable.collectThenStop
***/
//{{{
editable.collectThenStop = function(
nodes,p,nodewiki,eb,nb,mpos,lh,dir,force
){
if ( nodes[p].nodeName == 'BR' ) {
// End of paragraph, prepare to return.
if ( ! editable.focusNode ) {
// We haven't collected any nodes, check
// for hidden element.
if(p<nodes.length-1 && nodes[p+1].nodeName=='EM'){
// There is EM following BR, could be a
// hidden span.
var hidden = '@@display:none;';
var pn = txt.indexOf(
hidden,nodewiki.end.ndx
);
if ( pn > -1 ) {
nodewiki.start.ndx = pn;
nodewiki.start.matched = hidden;
pn = txt.lastIndexOf('//',pn);
if ( pn > -1 ){
nodewiki.start.matched =
txt.substring(
pn,nodewiki.start.ndx
)+hidden;
nodewiki.start.ndx = pn;
}
p++;
nb = twve.node.box(nodes[p]);
pn = txt.indexOf('\n//}}}\n',pn);
pn = txt.indexOf('\n//',pn);
if ( pn > -1 )
pn = txt.indexOf('@@',pn);
nodewiki.end.ndx = pn == -1
? txt.length
: (pn+2);
}
}
editable.collectNode(
nodes[p],p,nodewiki,eb,nb,dir
);
if(nb) eb.left = nb.left;
eb.width = eb.right - eb.left + 1;
}
return eb;
} else if ( nodewiki.tags &&
nodewiki.tags.blockElement ) {
// This is a block element, collect it if desired,
// and return.
if ( ! editable.focusNode || force )
editable.collectNode(
nodes[p],p,nodewiki,eb,nb,dir
);
return eb;
} else if ( nodewiki.tags && nodewiki.tags.is(
twve.sliderPanel.markupTags()
)) {
// A slider panel button, return its bounding box.
//if ( (nodewiki.start.ndx > 0 && txt.charAt(
// nodewiki.start.ndx-1
// ) == '\n') &&
// (nodewiki.end.ndx==txt.length ||
// txt.charAt(
// nodewiki.end.ndx+1
// ) == '\n') ) {
editable.setFocusNode(nodes[p],p,nodewiki);
return nb;
//}
// Otherwise collect and continue.
//editable.collectNode(nodes[p],p,nodewiki,eb,nb,dir);
} else {
// A node to collect.
if ( nb && nb.width == 0 &&
nodes[p].nodeType != 3 ) {
// Empty element
var css = window.getComputedStyle(nodes[p]);
var minw = twve.node.cssSize(
css.getPropertyValue('font-size')
//nodes[p].style.fontSize
) * config.options.txttwveCoreMinEditWidth;
editable.setFocusNode(nodes[p],p,nodewiki,'end');
// If the mouse pointer is within
// the default edit box width, set the
// box width to the default edit width
// and return.
if ( mpos.x > nb.left &&
mpos.x - nb.left <= minw ) {
nb.width = minw;
nb.right = nb.left + nb.width;
return nb;
}
// Otherwise set the height to enclose
// the node and leave the width unchanged.
editable.boxCopy(eb,nb,lh);
//return eb;
} else {
// Collect this node.
editable.collectNode(
nodes[p],p,nodewiki,eb,nb,dir
);
//eb.width = twve.node.width(editable.dom);
//eb.right = eb.left + eb.width;
}
}
};
//}}}
/***
!!!!! editable.skipOpenTag
***/
//{{{
editable.skipOpenTag = function(txt,start){
if ( ! editable.start.matched ) return 0;
if ( typeof start != 'number' )
start = (start && start.ndx && start.ndx > 0)
? start.ndx : 0;
else if ( start < 0 ) start = 0;
var len = editable.start.matched.length;
return len -
(editable.start.matched.charAt(0) == '\n' &&
txt.charAt(start) != '\n')
? 1 : 0;
};
//}}}
/***
!!!!! editable.collectParagraphNodes
***/
//{{{
editable.collectParagraphNodes = function(nodes,start,dir,add){
// Collect a paragraph of nodes in the collection nodes,
// starting from index start, along direction dir,
// and stops when a BR is encountered or all nodes are
// consumed.
//
// Arguments:
// nodes: a collection of nodes to search for;
// start: starting index;
// dir: direction to collect, either 'left' or 'right',
// default is 'right';
// add: true to add nodes to this editable, false or
// omitted to re-collect nodes.
//
// Returns: The editable object itself, with
// editable.focusNode hodling the collected child
// and their corresponding information (indexes,
// starting/ending positions, etc).
var txt = editable.getText('content');
var dp = (dir === 'left' || dir === 'up') ? -1 : 1;
var p = twve.position.getPosition(start);
if ( !nodes ) nodes = editable.dom.childNodes;
var plen = nodes.length;
var lh = editable.lineHeight();
var eb = twve.tiddler.focusBox() ||
twve.node.box(editable.dom);
//var eb = twve.node.box(editable.dom);
var nb = twve.node.box(nodes[p]);
var mpos = {
x: (nb?(nb.left+nb.right)/2:0),
y: (nb?(nb.top+nb.bottom)/2:0)
};
var nodewiki = twve.object.create();
if ( dp < 0 ) {
// Going left, the current beginning would be the new end.
nodewiki.end = twve.position.create(
editable.focusNode.start
);
nodewiki.start = twve.position.create(nodewiki.end);
} else {
// Going right, the current end would be the new start.
nodewiki.start = twve.position.create(
(editable.focusNode ? editable.focusNode.end : 0)
);
nodewiki.end = twve.position.create(nodewiki.start);
}
// Start collecting
if ( ! add ) editable.focusNode = null;
do {
nodewiki = twve.tiddler.nodeWiki(
nodes[p], txt,
(dp>0?nodewiki.end.ndx:nodewiki.start.ndx),
0, dp
);
//console.log('nodes['+p+']@('+nodewiki.start.ndx+','+nodewiki.end.ndx+'):'+twve.node.info(nodes[p]));
if(editable.collectThenStop(
nodes,p,nodewiki,eb,nb,mpos,lh,dp,add
)) {
break;
}
p += dp;
if ( p < 0 || p >= plen ) break;
nb = twve.node.box(nodes[p]);
} while ( true );
//if ( dp<0 && editable.focusNode &&
// editable.focusNode.index.length > 1 ) {
// editable.focusNode.dom.reverse();
// editable.focusNode.index.reverse();
//}
twve.tiddler.drawFocusBorders(eb);
return editable;
};
//}}}
/***
!!!!! editable.inCombinable
***/
//{{{
editable.inCombinable = function(next,txt,startndx,dir){
switch ( next.nodeName ) {
case 'TABLE' :
case 'PRE' :
return true;
case 'DIV' :
if ( !twve.table || twve.table.is(next) )
return true;
if ( !config.macros.highlightSyntax )
return true;
if ( txt ) {
var tags = twve.pre.markupTags();
for(var i=0,len=tags.open.length; i<len; i++){
if ( dir < 0 ) {
// Going backward, look for tags.close[i].
if ( txt.substring(
startndx-tags.close[i].length,startndx
) == tags.close[i] )
return true;
} else {
// Going forward, look for tags.open[i].
if ( txt.substring(
startndx,startndx+tags.open[i].length
) == tags.open[i] )
return true;
}
}
} else {
var tags = editable.editNode.nodeWiki[0].tags;
return tags && tags.open.length &&
tags.open[0]=='\n{{{';
}
break;
case 'BLOCKQUOTE' :
// The next node is a blockquote, return true
// if it is a block example
if ( txt ) {
var sig = '';
if ( dir < 0 ) {
// Going backward
sig = txt.substring(startndx-4,startndx);
} else {
// Going forward.
sig = txt.substring(startndx,startndx+4);
}
if ( sig == '<<<\n' || sig == '\n<<<' )
return true;
} else {
var nodewiki = editable.editNode.nodeWiki[0];
return nodewiki.blockExample &&
nodewiki.blockExample();
}
}
return false;
};
//}}}
/***
!!!!! editable.collectNeighboringBlock
***/
//{{{
editable.collectNeighboringBlock = function(txt,which){
// Collect immediately following BR and/or block element.
if ( ! editable.editNode ) return false;
var next, start, startndx, dir, p;
if ( which == 'left' ) {
next = (editable.editNode.dom.nodeType
? editable.editNode.dom
: editable.editNode.dom[0])
.previousSibling;
if ( ! next ) return false;
start = editable.editNode.start;
startndx = start.ndx;
p = editable.editNode.index[0]-1;
dir = -1;
} else {
next = (editable.editNode.dom.nodeType
? editable.editNode.dom
: editable.editNode.dom[
editable.editNode.dom.length-1
])
.nextSibling;
if ( ! next ) return false;
start = editable.editNode.end;
startndx = start.ndx;
p = editable.editNode.index[
editable.editNode.index.length-1
]+1;
dir = 1;
}
if( ! txt ) txt = editable.getText('content');
if ( editable.inCombinable(next,txt,startndx,dir) ) {
return false;
} else if ( next.nodeName == 'BR' ) {
// There is a BR,
var pnext = p + (which == 'left' ? -1 : 1);
if ( editable.inCombinable(
editable.dom.childNodes[pnext],txt,startndx,dir
) )
// and we don't wnat to collect its next node,
// return false;
return false;
// Otherwise collect this BR.
editable.collectNode(
next,p,
twve.tiddler.nodeWiki(next,txt,startndx,0,dir),
null,null,dir
);
// Move on to the next node.
p = pnext;
}
// Collect the next paragraph.
editable.collectParagraphNodes(
editable.dom.childNodes,p,which,true
);
// Check the wiki text of the first node.
var nodewiki = editable.editNode.nodeWiki[0];
if(nodewiki.tags && nodewiki.tags.blockElement &&
! twve.nodeList.contains(editable.editNode.dom,'BR')){
// The first node is a block element, meaning
// all the to-be-edited text after it will be merged
// into that block element. In such cases extra
// care is needed: we shall remove the BR
// immediately following the last node being
// edited, if there is one.
next = editable.editNode.dom[
editable.editNode.dom.length-1
].nextSibling;
if ( next.nodeName == 'BR' ) {
// There is one, collect it.
p = editable.editNode.index[
editable.editNode.index.length-1
]+1;
editable.collectNode(
next,p,
twve.tiddler.nodeWiki(
next,txt,
editable.editNode.end.ndx,
0,1
)
);
// The reason for such an extra care is that
// 1. block elements end with a \n, and
// 2. that ending \n is not rendered as a BR.
// Therefore if there is a BR immediately following
// the last node being edited, we should remove it
// to avoid extra BR.
if ( (next = next.nextSibling) ){
// There is more to follow that BR, collect the
// next paragraph to have the correct spacing.
editable.collectParagraphNodes(
editable.dom.childNodes,++p,'right',true
);
}
}
}
// Check the wiki text of the last node.
nodewiki = editable.editNode.nodeWiki[
editable.editNode.nodeWiki.length-1
];
if ( nodewiki.tags && nodewiki.tags.blockElement &&
txt.charAt(editable.editNode.end.ndx-1)=='\n' ) {
// The last node is a block element, keep its ending
// \n so the wiki text after it will be rendered
// correctly.
editable.editNode.end.ndx--;
}
return startndx != start.ndx;
},
//}}}
/***
!!!!! editable.combineEditNeighbor
***/
//{{{
editable.combineEditNeighbor = function(ta,which){
// Combine the remaining text in this paragraph
// with neighbor, then bring it up to edit.
var dom = editable.editNode.dom;
if ( ! dom ) return editable;
if ( dom.length !== undefined )
dom = which == 'left' ? dom[0] : dom[dom.length-1];
if ( !editable.inCombinable(dom) &&
editable.collectNeighboringBlock(
editable.getText('content'),which
)){
// The neighboring block is collected.
// Adjust text for update.
var txt = editable.getText();
var caret_pos = 0;
if ( which == 'left' ) {
// Combine with the left neighbor.
var ndx = txt.indexOf(ta.defaultValue);
var prev = txt.substring(ndx);
txt = txt.substring(0,ndx);
if ( txt.length > 1 &&
txt.charAt(txt.length-1)=='\n' )
txt = txt.substring(0,txt.length-1);
caret_pos = txt.length;
txt += prev;
} else {
// Combine with the right neighbor.
txt = txt.substring(ta.defaultValue.length);
if ( ! txt ) {
// The combined text is the same as before,
// no update actiion will be triggered.
// However, this could mean that either only
// one \n is collected, or nothing is collected.
// In the former case we should do something to
// trigger the update action.
dom = editable.focusNode.dom;
if ( dom[dom.length-1].nodeName == 'BR' ) {
// Yes we have just collected a BR, change
// the defaultValue to trigger update action.
ta.defaultValue += '\n';
}
} else if(txt.length > 1 && txt.charAt(0)=='\n'){
txt = txt.substring(1);
}
caret_pos = ta.value.length;
txt = ta.value + txt;
}
// Update the paragraph for visual feedback.
ta.value = txt;
twve.tiddler.updateText();
// Edit text and restore the caret position
ta = editable.editText();
twve.tiddler.editBoxCaret(ta,caret_pos);
twve.tiddler.updatePreviewerCaret(ta);
}
return editable;
};
//}}}
/***
!!!!! editable.box
***/
//{{{
editable.box = function(action,ev){
// The wrapper box of this editable.
var eb = twve.node.box(editable.dom);
// The child nodes of this editable.dom.
var nodes = editable.dom.childNodes;
// If no children, do nothing.
if ( ! nodes ) return eb;
var size = nodes.length;
// If only one child, do nothing.
if ( size < 2 ) return eb;
// The wikitext corresponding to this editable.dom.
var txt = editable.getText('content');
var mpos = twve.tiddler.mousePosition(ev);
if ( (mpos.x >= eb.left && mpos.x <= eb.left + 4) ||
(mpos.y >= eb.top && mpos.y <= eb.top + 4) ||
(mpos.x <= eb.right && mpos.x >= eb.right - 4) ||
(mpos.y <= eb.bottom && mpos.y >= eb.bottom - 4) ) {
// If mouse position is very close to one of the four
// borders of the wrapper box, return the whole wrapper
// box without any specific focusNode.
editable.focusNode = null;
//editable.prev = editable.next = null;
return eb;
}
// Now we are sure the mouse position is within the wrapper
// box, we are going to find the node and the corresponding
// wikitext to start the search.
// First, we check if there is currently a focus box. If so,
// we start from there, otherwise we start from either the
// beginning or the end of the wikitext.
var nodewiki = null;
var p = 0, dp = 1;
var ebp = twve.tiddler.focusBox();
if ( ebp ){
// If we have a focus box, figure out where we are with
// respect to this focus box, and start from the closest
// focusNode.
//if (config.options.chktwveExtraLocateChar)
// Do nothing if we are in the WYSIWYG mode.
// return ebp;
// Not in the WYSIWYG mode,
if ( (nodewiki = editable.focusNode) ){
// and we are having fucusNode, figure out where
// we are.
if ( config.options.chktwveExtraLocateChar ) {
// We are in the WYSIWYG mode.
if ( ebp.contains(mpos) ) {
// Mouse position is within the current box,
// search none.
return ebp;
}
} else if ( mpos.y < ebp.top ){
// We are NOT in the WYSIWYG mode.
// Mouse position is above the current box,
// search backward from the beginning of
// focusNode.
p = editable.focusNode.index[0]-1;
dp = -1;
} else if ( mpos.y > ebp.bottom ) {
// Mouse position is below the current box,
// search forward from the end of focusNode.
p = editable.focusNode.index[
editable.focusNode.index.length-1
]+1;
} else if (ebp.height != eb.height)
// Mouse position is within the current box,
// and the current box is not the wrapper box,
// search none.
return ebp;
// Return the whole wrapper area if there is nothing
// to search for.
if ( p < 0 || p >= size ) {
editable.focusNode = null;
return eb;
}
}
} else {
// We do not currently have a focus box, figure out
// where we are with respect to the whole wrapper area.
// If we are in the upper half of the wrapper area,
// search forward from the beginning of this editable's
// wikitext.
// If, however, we are in the lower half, search backward
// from the end of this editable's wikitext.
var yhalf = (eb.top+eb.bottom)/2;
if (mpos.y > yhalf){
// We are in the lower half.
p = size - 1;
dp = -1;
}
}
// We have deteremined which node to start, we are now to
// determine where in the wikitext to start.
var lastFocusNode = editable.focusNode;
editable.focusNode = null;
var lh = editable.lineHeight();
var plast = dp < 0 ? 0 : size-1;
if ( (p==0 && dp>0) || (p==size-1 && dp<0) ) {
//console.log('search over');
// If we are starting from the very beginning (forward),
// or the very end (backward) of the, we need to locate
// the wikitext of the first/last child node with a
// definite bounding box.
nodewiki = twve.tiddler.nodeWiki(
nodes[p],txt,
(dp<0?txt.length:editable.skipOpenTag(txt)),
0,dp
);
while ( true ) {
//if ( (ebp = nodewiki.box
// ? nodewiki.box(action,ev)
// : twve.node.box(nodes[p])) ) {
//console.log('ini p='+p+': ebp='+ebp);
// break;
//}
if ((ebp=twve.node.box(nodes[p])))
break;
p += dp;
if ( p < 0 || p >= size ) return eb;
nodewiki = twve.tiddler.nodeWiki(
nodes[p],txt,nodewiki.end.ndx,0,dp
);
}
/*
// Then we compare the mouse position with that
// bounding box.
if ( dp > 0 && mpos.y < ebp.top ) {
// We are searching forward from the begging and
// the mouse position is above the first child node,
// return a box enclosing the empty area at the top
// of the wrapper area.
if ( editable.boxCopy(eb,ebp,lh,'top') ) {
editable.prev = null;
if ( ! editable.next )
editable.next = twve.element.create();
editable.next.start.ndx = nodewiki.start.ndx;
//if ( ! editable.next )
// editable.next = twve.object.create(nodewiki);
//else
// editable.next.copyFrom(nodewiki);
}
return eb;
} else if ( dp < 0 && mpos.y > ebp.bottom ) {
// We are searching backward from the end and the
// mouse position is below the last child node,
// return a box enclosing the empty area at the
// bottom of the wrapper area.
if ( editable.boxCopy(eb,ebp,lh,'bottom') ) {
editable.next = null;
if ( ! editable.prev )
editable.prev = twve.element.create();
editable.prev.end.ndx = nodewiki.end.ndx;
}
return eb;
}
*/
} else {
// Otherwise we are starting from somewhere in the
// middle, locate the correct wikitext to start with.
//console.log('search continued');
nodewiki = twve.tiddler.nodeWiki(
nodes[p],txt,
(dp < 0
? nodewiki.start.ndx
: nodewiki.end.ndx),
0,dp
);
//if(twve.tiddler.getEditBox())console.log('Start from nodes['+p+']='+nodes[p]+' txt=['+txt.substring(nodewiki.start.ndx,nodewiki.end.ndx)+']');
//ebp = nodewiki.box
// ? nodewiki.box(action,ev)
// : twve.node.box(nodes[p]);
ebp = twve.node.box(nodes[p]);
//console.log('middle p='+p+': ebp='+ebp);
}
// No we are good to start searching.
var lastebp = null, last_nodewiki = null;
//if(nodes[p].nodeName=='HR')console.log(ebp);
//console.log('editable.wrapper_title='+editable.wrapper_title);
while ( p >= 0 && p < size ) {
//if(nodewiki.start.ndx<0||nodewiki.end.ndx<0){
//console.log('nodes['+p+'] '+nodes[p].nodeName+'('+nodes[p].classList+')id=('+(nodes[p].getAttribute?nodes[p].getAttribute('id'):'')+')=['+twve.tcalc.nodeText(nodes[p])+'], wiki at ('+nodewiki.start.ndx+','+nodewiki.end.ndx+')=['+txt.substring(nodewiki.start.ndx,nodewiki.start.ndx+10)+' ... '+txt.substring(nodewiki.end.ndx-10,nodewiki.end.ndx)+']');
//if(last_nodewiki)console.log('last node at ('+last_nodewiki.start.ndx+','+last_nodewiki.end.ndx+')=['+txt.substring(last_nodewiki.start.ndx,last_nodewiki.start.ndx+10)+' ... '+txt.substring(last_nodewiki.end.ndx-10,last_nodewiki.end.ndx)+']');
//}
if ( nodes[p].nodeName == 'BR' ) {
// We are NOT in the WYSIWYG mode.
// If this node is a BR,
if ( editable.focusNode ) {
// and we currently have focusNode, we might
// want to stop collecting nodes, or to restart
// collecting nodes.
if ( dp < 0 ){
// If we are going backward.
if((lastebp &&
(lastebp.bottom < mpos.y ||
lastebp.top < mpos.y)) ||
(ebp.bottom+ebp.height?0:lh)<mpos.y){
// and we've passed the mouse y position,
// meaning this BR is the beginning of a
// paragraph, stop collecting nodes and
// return.
return eb;
}
} else {
// If we are going forward,
if ( (lastebp &&
(lastebp.top > mpos.y ||
lastebp.bottom > mpos.y)) ||
ebp.top > mpos.y ) {
// and we've passed the mouse y position,
// meaning this BR is the end of a
// paragraph, stop collecting nodes and
// return.
return eb;
}
}
// Otherwise this BR is just the beggning or
// the end of a paragraph that we are not
// collecting. Clear the focusNode and restart
// collecting nodes.
lastFocusNode = editable.focusNode;
editable.focusNode = null;
} else {
// Otherwise we do not currently have focusNode,
// collect this BR and return.
//editable.collectNode(
// nodes[p],p,nodewiki,eb,ebp,dp
//);
}
} else if ( nodes[p].nodeName == 'HR' ) {
if (ebp.containsY(mpos.y)){
editable.collectNode(
nodes[p],p,nodewiki,eb,ebp,dp
);
return eb;
}
} else if ( ebp && ebp.containsY(mpos.y) ) {
// The mouse vertical position is within the
// vertical range of this node.
if(config.macros.foldHeadings &&
twve.node.matches(
nodes[p],twve.heading.getFoldedSelector()
)
){
// If the current node is the heading of a folded
// section,
if (twve.node.matches(
ev.target,twve.heading.getSpanSelector()
)) {
// and the mouse is over its right corner,
// collect this heading and return.
editable.collectNode(
nodes[p],p,nodewiki,eb,ebp,dp
);
return eb;
}
// Otherwise do nothing.
return null;
} else {
// This node is not a folded section, collect
// it and continue.
if ((last_nodewiki && last_nodewiki.tags &&
last_nodewiki.tags.blockElement) ||
(nodewiki.tags &&
nodewiki.tags.blockElement)) {
// If either last node or this node is
// a block element, restart the collecting.
editable.focusNode = null;
}
editable.collectNode(
nodes[p],p,nodewiki,eb,ebp,dp
);
}
// If last node, return whatever we have collected.
if ( p == plast ) return eb;
// Otherwise continue to the next node.
} else if ( ebp ) {
// The mouse y position is not within the height of
// this node, we might want to
// 1. stop collecting and return,
// 2. restart collecting nodes, or
// 3. collect this node and continue,
// depending on the following conditions:
if ( (dp>0 && ebp.top>mpos.y &&
ebp.top>eb.bottom) ||
(dp<0 && ebp.bottom<mpos.y &&
ebp.bottom<eb.top) ) {
// We have already passed the mouse y position,
// should stop and return.
if ( ! editable.focusNode )
// If we have collected nothing, return
// with the previous collection of ndoes.
editable.focusNode = lastFocusNode;
return eb;
} else {
// We have not yet passed the mouse y position,
// meaning we are not yet to the nodes to collect.
if (last_nodewiki && last_nodewiki.tags &&
last_nodewiki.tags.blockElement) {
// If last node is a block element,
// restart the collecting.
editable.focusNode = null;
}
// Collect this node and continue.
editable.collectNode(
nodes[p],p,nodewiki,eb,ebp,dp
);
}
}
// Continue to the next node.
var mp = dp < 0 ? p-2 : p;
if ( p>=0 && twve.node.matches(
nodes[mp],'span.MathJax_Preview'
)){
if (editable.focusNode) {
editable.collectNode(
nodes[(p+=dp)],p,null,null,null,dp
);
editable.collectNode(
nodes[(p+=dp)],p,null,null,null,dp
);
} else
p += (dp+dp);
}
lastebp = ebp; last_nodewiki = nodewiki;
while ( true ) {
p += dp;
if ( p < 0 || p == size ) break;
if ( dp > 0 &&
(ebp = twve.node.box(nodes[p])) == null &&
// ! twve.node.isVisible(nodes[p]) &&
twve.node.matches(
nodes[p],
twve.foldedSection.getSelector()
)
) {
// Next node is a folded section, skip its
// content by looking for the next heading.
if ( (p+1 < size) &&
twve.node.matches(
nodes[p+1],
twve.heading.getSelector()
)
) {
//twve.foldedSection.hijackInactiveTags();
nodewiki = twve.tiddler.nodeWiki(
nodes[p+1], txt,
nodewiki.end.ndx,
nodes[p].querySelectorAll(
twve.heading.getSelector()
).length, dp
);
//ebp = nodewiki.box
// ? nodewiki.box(action,ev)
// : twve.node.box(nodes[p]);
ebp = twve.node.box(nodes[p]);
nodewiki.end.ndx = nodewiki.start.ndx;
nodewiki.end.matched = '';
//twve.foldedSection.releaseInactiveTags();
} else {
var macro = twve.foldedSection.macro();
var foldedEnd = txt.indexOf(macro);
if ( foldedEnd > -1 ) {
nodewiki.end.ndx = foldedEnd;
nodewiki.end.matched = macro;
} else {
nodewiki.end.ndx = txt.length;
nodewiki.end.matched = '';
}
}
} else {
nodewiki = twve.tiddler.nodeWiki(
nodes[p],txt,
(dp < 0
? nodewiki.start.ndx
: nodewiki.end.ndx),
0,dp
);
//ebp = nodewiki.box
// ? nodewiki.box(action,ev)
// : twve.node.box(nodes[p]);
ebp = twve.node.box(nodes[p]);
//console.log('p='+p+': ebp='+ebp)
break;
}
}
}
// Nothing collected, just return.
//editable.prev = editable.next = null;
return eb;
};
//}}}
/***
!!!!! editable.scrollIntoView
***/
//{{{
editable.scrollIntoView = function(scroller){
// Scrolls the element, within scroller, into view if
// currently not. If scroller is not given, the system
// window would be used.
var wrapper = editable.isWrapper();
var ebox = wrapper
? twve.tiddler.focusBox()
: editable.box('edit');
var scr_box;
if ( ! scroller ) {
scroller = window;
scr_box = twve.node.box(scroller);
if ( ! wrapper ){
var d = scroller.pageYOffset;
scr_box.top += d;
scr_box.bottom += d;
d = scroll.pageXOffset;
scr_box.left += d;
scr_box.width += d;
}
} else {
scr_box = twve.node.box(scroller);
}
var dx = 0, dy = 0;
if(ebox.right > scr_box.right){
dx = Math.round((ebox.right-scr_box.right)*1.1);
} else if ( ebox.left < scr_box.left ) {
dx = Math.round((ebox.left-scr_box.left)*1.1);
}
if(ebox.bottom > scr_box.bottom){
dy = (ebox.bottom-scr_box.bottom);
} else if ( ebox.top < scr_box.top ) {
dy = (ebox.top-scr_box.top);
}
if ( dx != 0 || dy != 0 )
if ( scroller == window ){
window.scrollTo(pageXOffset+dx,pageYOffset+dy);
} else {
scroller.scrollLeft += dx;
scroller.scrollTop += dy;
}
return editable;
};
//}}}
/***
!!!!! editable.mousemove
***/
//{{{
editable.mousemove = function(ev){
if ( ! editable.is(twve.tiddler.cur_editable) )
twve.tiddler.focus(editable,'on',ev);
};
//}}}
/***
!!!!! End of editable extra
***/
//{{{
return editable;
}
});
//}}}
/***
!!! twve.element extra features
***/
//{{{
merge(twve.element,{
//}}}
/***
!!!! twve.element.create
***/
//{{{
preCreateExtra : twve.element.create,
create : function(){
// create the element
var twelem = twve.element.preCreateExtra.apply(this,arguments);
//}}}
/***
!!!!! twelem.getNeighbor
***/
//{{{
twelem.getNeighbor = function (which,delta) {
// Retrieve the neighboring element separated by delta, in
// the direction specified by which.
switch ( which ) {
case 'left' :
case 'up' :
delta = delta < 0 ? delta : -delta;
break;
case 'right' :
case 'down' :
delta = delta > 0 ? delta : -delta;
break;
}
// Find that neighbor.
twelem.rIndex += delta;
var dIndex = twelem.dIndex;
twelem.dIndex = -1;
var twnext = twve.wrapper.renderedElement(twelem,null,true);
twelem.rIndex -= delta;
twelem.dIndex = dIndex;
return twnext;
};
//}}}
/***
!!!!! twelem.editNeighbor
***/
//{{{
twelem.editNeighbor = function (which,delta) {
// Edit the neighboring element of twelem. The direction is
// specified in the first argument which: 'left', 'right',
// 'up', or 'down'.
// The second rgument, delta, specifies how far away
// the neighbor we are looking for. Default value is 1,
// meaning the immediate neighbor in the specified direction.
// Save changes to this one.
twve.tiddler.updateText();
twve.tiddler.focus();
// Find the neighbor.
if ( delta === undefined ) delta = 1;
var twnext = twelem.getNeighbor(which,delta);
// Then edit the next one.
twnext.editText();
twnext.scrollIntoView();
return twnext;
};
//}}}
/***
!!!!! twelem.switchWith
***/
//{{{
twelem.switchWith = function(twnext){
// Switch the wiki text and DOM content of this twelem
// with twnext.
var twearlier, twlater;
// Determine which is earlier.
if ( twelem.start.ndx < twnext.start.ndx ) {
twearlier = twelem;
twlater = twnext;
} else {
twearlier = twnext;
twlater = twelem;
}
// Switch their text.
var txt = {
earlier : twearlier.getText(),
later : twlater.getText()
};
var save = config.options.chktwveCoreManualSave;
var upload = config.options.chktwveCoreManualUpload;
config.options.chktwveCoreManualSave = true;
config.options.chktwveCoreManualUpload = true;
twlater.setText(txt.earlier);
config.options.chktwveCoreManualSave = save;
config.options.chktwveCoreManualUpload = upload;
twearlier.setText(txt.later);
// And adjust position of the later
var dlen = txt.later.length-txt.earlier.length;
twlater.start.ndx += dlen;
twlater.end.ndx += dlen;
// Then switch their DOM content.
var html_next = twnext.dom.innerHTML;
twnext.dom.innerHTML = twelem.dom.innerHTML;
twelem.dom.innerHTML = html_next;
return twelem;
};
//}}}
/***
!!!!! twelem.move
***/
//{{{
twelem.move = function (which,delta) {
// Move this element so its index is changed by delta.
var twnext = twelem.getNeighbor(which,delta);
if ( ! twnext ) return null;
twve.tiddler.updateText();
twve.tiddler.focusElem(null);
// The next element found, switch the wiki text and DOM
// content with the current one (twelem).
twelem.switchWith(twnext);
if ( Math.abs(twelem.rIndex-twnext.rIndex) == 1 )
return twnext;
// This element has been moved from the first to the last
// (cyclic manner), or the opposite way, special cares are
// needed to get the correct result. For example, suppose
// we have a series 0123, and we move the 0 to the left in a
// cyclic manner, we would expect to have a result of 1230.
// This method, however, simply switches 0 and 3 and so
// produces 3120, different from our expectation. What we
// need is to further switch the 3 with 1 and 2 to produce
// the expected 1230.
var ndx;
if ( twnext.rIndex == 0 ) {
ndx = 1;
if ( which == 'down' ) which = 'up';
else which = 'left';
} else {
ndx = twnext.rIndex - 1;
if ( which == 'up' ) which = 'down';
else which = 'right';
}
while ( twelem.rIndex != ndx ) {
var next = twelem.getNeighbor(which,1);
twelem.switchWith(next);
twelem = next;
}
return twnext;
};
//}}}
/***
!!!!! End of twelem.
***/
//{{{
return twelem;
}
});
//}}}
/***
!!! twve.leveledElement extra features
***/
//{{{
merge(twve.leveledElement, {
preCreate : twve.leveledElement.create,
create : function(src,txt,start,dir){
var elem = twve.leveledElement.preCreate.call(this);
// clear
//var preClear = elem.clear;
elem.clear = function(){
//preClear.apply(this);
elem.sub_elem = null;
return elem;
};
// copyFrom
var preCopyFrom = elem.copyFrom;
elem.copyFrom = function(src){
preCopyFrom.apply(this,arguments);
elem.sub_elem = src.sub_elem;
return elem;
};
// get sub element
elem.getSubElement = function(){
return elem.dom
? elem.dom.querySelector(elem.dom.nodeName)
: null;
};
// subEelementEnds
elem.subElementEnds = function(start,txt){
return twve.text.consecutiveLinesEnd(
(txt || elem.wrapperText()),
(start || elem.start),
true
);
};
// dummyLevel
elem.dummyLevel = function(elem){
var selector = elem.twveSelector(null,'parent');
if(!twve.node.matches(elem,selector.include)) return 0;
var level = 0;
while ( true ) {
elem = elem.childNode[0];
if(twve.node.matches(elem,selector.include)) level++;
else break;
}
return level;
};
// firstChildOfDummy
elem.firstChildOfDummy = function(node){
// Tests if node is a dummy element. Returns its first child
// if it is, null otherwise.
var sub = node && node.childNodes ? node.childNodes[0] : null;
return (!sub || sub.nodeName!=node.nodeName)
? null
: sub;
};
// renderedCopy
var preRenderedCopy = elem.renderedCopy;
elem.renderedCopy = function(){
var the_copy = preRenderedCopy.apply(this,arguments);
if ( elem.sub_elem && the_copy && elem != the_copy ) {
// There is sub_elem, and the_copy is not elem itself.
// Find the corresponding sub_elem in the_copy.
the_copy.sub_elem = the_copy.getSubElement();
}
return the_copy;
};
// box
var preBox = elem.box;
elem.box = function(){
var eb = preBox.apply(this,arguments);
if ( ! config.options.chktwveExtraIncludeSubs ) {
// We are not including the sub element, reduce
// the height (bottom) of the enclosing box.
var sub = elem.getSubElement();
if ( sub ) {
eb.bottom = twve.node.box(sub).top;
eb.height = eb.bottom - eb.top;
}
}
return eb;
};
// removeSelf
elem.removeSelf = function(){
// The user just removed this leveledElement.
if ( elem.sub_elem ) {
// This removed item had a sub element. Put it back.
// If there is previous leveledElement, and it is of the
// same level as this one, append the sub element to the
// previous one. Otherwise replace this element with its
// sub element.
var prev = twve.position.create();
if ( elem.dIndex > 0 ) {
prev = twve.position.create(elem.start);
prev.ndx--;
var txt = elem.wrapperText();
prev = twve.text.lastIndexOf(
txt, elem.start.matched, prev
);
if ( prev.ndx == -1 && elem.dIndex == 1 ) {
// We did not find the very first leveled element,
// it could be the missing \n at the beginning. Search
// again without it.
prev.ndx = elem.start.ndx - 1;
prev = twve.text.lastIndexOf(
txt, elem.start.matched.substring(1), prev
);
}
if ( prev.ndx > -1 &&
twve.leveledElement.getLevel(
txt,prev.ndx
) == elem.getLevel() ) {
// A previous leveledElement of the same level
// is found. Make sure it is immediately
// preceding this one.
var end = twve.position.create(prev);
end.ndx++;
end = twve.text.indexOf(txt,'\n',end);
if ( end.ndx != elem.start.ndx ) {
// If NOT immediately preceding this one,
// abandon it.
prev.ndx = -1;
}
}
}
if ( prev.ndx > -1 ) {
// The previous item is at the same level as
// this one. Append the sub element to it.
var dom = elem.dom;
elem.dom = dom.previousSibling;
dom.parentNode.removechild(dom);
elem.dom.appendChild(elem.sub_elem);
elem.rIndex--;
elem.dIndex--;
elem.start.matched = prev.matched;
elem.end.ndx = elem.start.ndx + 1;
elem.start.ndx = prev.ndx;
} else {
// Otherwise replace this element with its sub
// element.
elem.dom.parentNode.replaceChild(
elem.sub_elem,elem.dom
);
elem.dom = elem.sub_elem;
elem.ends();
}
} else {
// This item did not have a sub list. Just remove it.
elem.dom.parentNode.removeChild(elem.dom);
twve.tiddler.focusElem(null);
}
return elem;
};
//}}}
/***
!!!!! elem.topMostParent
***/
//{{{
elem.topMostParent = function(){
var dom = elem.dom;
var selector = elem.twveSelector(null,'parent');
do {
var parent = twve.node.closest(
dom.parentNode,selector.include
);
if ( ! parent ) break;
dom = parent;
} while ( true )
return dom;
};
//}}}
/***
!!!!! elem.refreshTopLevel
***/
//{{{
elem.refreshTopLevel = function(txt){
var parent = elem.topMostParent();
// Refresh this element from its top level.
if ( elem.dom == elem.firstChildOfDummy(parent)) {
// There are dummy elements containing this one.
elem.dom = parent;
elem.preRefreshSelf.call(this,txt);
} else {
// There are no dummy elements.
var selector = elem.twveSelector();
// Save the number of children,
var children = twve.nodeList.toArray(
parent.querySelectorAll(selector.include)
);
var nch = children.length;
// and the index of elem.dom.
var elemndx = nch > 0
? children.indexOf(elem.dom) : -1;
// Find the wiki text of the parent.
if ( elemndx >= 0 ) elem.rIndex -= elemndx+1;
var include_sub = config.options.chktwveExtraIncludeSubs;
config.options.chktwveExtraIncludeSubs = true;
elem.dIndex = -1;
elem.setElement(parent);
var ch0 = txt.charAt(0);
var ch1 = elem.start.matched.charAt(1);
if ( ch0 != ch1 ) {
// This element shall be destroyed, the remaining
// part originally after this element will not be
// found in the setElement() above. We need to
// find it here.
elem.end.ndx += txt.length+1;
var pos = twve.position.create(elem.end.ndx+1);
elem.end.copyFrom(
twve.text.consecutiveLinesEnd(
elem.wrapperText(),pos,true,ch1
)
);
}
var elemtxt = elem.getText();
// Refresh the parent.
elem.preRefreshSelf.call(this,elemtxt);
// Relocate the changed elem.dom, if it's still there.
elem.start.ndx += elemtxt.indexOf(txt);
elem.end.ndx = elem.start.ndx + txt.length;
children = twve.nodeList.toArray(
elem.dom.querySelectorAll(selector.include)
);
var chnew = children.length;
if ( ch0 == elem.start.matched.charAt(1) ) {
// The changed element got recreated (still there).
// Find it.
// If the number of children is different, the
// difference must be the change in level of the
// changed element.
if ( elemndx > 0 && chnew > 0 ) {
elemndx += chnew-nch;
elem.rIndex += elemndx+1;
elem.dom = children[elemndx];
}
twve.tiddler.focus(elem);
} else {
// The element is destroyed.
// Yield focus to the direct wrapper.
var wrap = elem.directWrapper();
// Find the element preceding the txt.
wrap.prev = elem.clone();
wrap.prev.dom = children[elemndx-1];
wrap.prev.end.ndx = elem.start.ndx-1;
// Find the element following the txt.
wrap.next = elem.clone();
wrap.next.dom = children[elemndx];
wrap.next.start.ndx = elem.end.ndx+1;
twve.tiddler.focus(wrap);
}
config.options.chktwveExtraIncludeSubs = include_sub;
}
return elem;
};
//}}}
/***
!!!!! elem.refreshThisLevel
***/
//{{{
elem.refreshThisLevel = function(txt){
// Refresh this leveledElement without changing its level.
// We need to remove the leading signatures to have the
// correct output.
twve.node.wikify(txt.substring(elem.level),elem.dom);
return elem;
};
//}}}
/***
!!!!! elem.refreshSelf
***/
//{{{
elem.preRefreshSelf = elem.refreshSelf;
elem.refreshSelf = function(txt){
// Determine whether to refresh this level or the top level.
if (txt.indexOf('\n') > -1 ||
elem.getLevel() != twve.leveledElement.getLevel(txt,0))
elem.refreshTopLevel(txt);
else
elem.refreshThisLevel(txt);
// Then restore the sub elements if there were any.
if ( elem.sub_elem ) {
elem.dom.appendChild(elem.sub_elem);
elem.sub_elem = null;
}
return elem;
};
//}}}
/***
!!!!! elem.ends
***/
//{{{
var preEnds = elem.ends;
elem.ends = function(start,txt,inactiveTags){
preEnds.apply(this,arguments);
if ( elem.rIndex < 0 || elem.dIndex < 0 )
return elem.end;
if ( config.options.chktwveExtraIncludeSubs ) {
// Include sub element to edit. No need to keep the
// sub element now.
elem.sub_elem = null;
// Look for the end of sub element.
elem.end.copyFrom(
elem.subElementEnds(null,txt)
);
} else {
// Don't include sub element to edit. Keep the
// sub element, if there is, for later use.
elem.sub_elem = elem.getSubElement();
}
return elem.end;
};
// End of elem.
return elem.created(src,txt,start,dir);
}
});
//}}}
/***
!!! twve.heading extra features
***/
//{{{
merge(twve.heading, {
//}}}
/***
!!!! twve.heading.wikify
***/
//{{{
preWikify : null,
wikify : function(txt,node,children){
if ( node && twve.node.matches(node,'div.board') ) {
// Preview something
if ( twve.tiddler.cur_editable ) {
var macro = twve.foldedSection.macro();
if ( twve.node.matches(
twve.tiddler.cur_editable.dom,
twve.foldedSection.getSelector()+',.foldable'
) ) {
// Either a folded section that contains headings, or a
// heading of a folded section, and no <<foldHeadings>>
// macro in the text, add it to get the correct preview.
if ( txt.indexOf('\n!') > -1 &&
txt.indexOf(macro) < 0 )
txt += '\n'+macro;
}
}
}
return twve.heading.preWikify.call(this,txt,node,children);
},
//}}}
/***
!!!! twve.heading.create
***/
//{{{
preCreateExtra : twve.heading.create,
create : function(src,txt,start,dir){
var h = twve.heading.preCreateExtra.call(this);
// subElementEnds
h.subElementEnds = function(start,txt,action){
if ( ! action ) return h.end;
};
// refreshSelf
//var preRefreshSelf = h.refreshSelf;
h.refreshSelf = function(txt){
var content = null;
if (twve.node.matches(h.dom,'.foldable')) {
// If this heading is one of a folded section,
// add <<foldHeadings>> macro to the refreshing text,
// and save the section content.
txt += '\n'+twve.foldedSection.macro();
content = h.dom.nextSibling;
}
// Refresh this heading.
h.preRefreshSelf.call(this,txt);
if ( content ) {
// If we had saved the section content, meaning this is
// a heading of a folded section. Replace its onclick
// and restore the sectin content.
h.dom.onclick = twve.heading.click;
h.dom.parentNode.replaceChild(
content,h.dom.nextSibling
);
}
return h;
};
return h.created(src,txt,start,dir);
}
});
//}}}
/***
!!! twve.listitem
***/
//{{{
twve.listitem = {
//}}}
/***
!!!! twve.listitem.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector,which){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('ol,ul');
/*
which = which ? which.toLowerCase() : '';
return ( which.substring(0,9)=='rendering' ||
which.substring(0,6)=='parent' )
// In rendering phase or finding the parent.
? selector.includeSelector('ol,ul')
// Not in rendering phase nor finding the parent.
: selector.includeSelector('li').excludeSelector(
// In multi-line rendering mode lists can be created
// inside table cells. Exclude them because a table
// cell is treated as a single element in twve.
'td li,th li' +
// Tiddler tags shown in the tagged (or tagging?) box
// are also list items. These are not defined in the
// tiddler text and should be excluded from search.
',.tagged li,.tidTags li' +
// This is new in 2.8.x?
',.listTitle'
);
*/
},
//}}}
/***
!!!! twve.listitem.leadingChars
***/
//{{{
leadingChars : function(){
return '*#';
},
//}}}
/***
!!!! twve.listitem.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
['\n*','\n#'],
'\n'
);
// blockElement
tags.blockElement = true;
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.listitem.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.listitem.switchType
***/
//{{{
switchType : function(prefix){
return prefix.charAt(prefix.length-1)=='*'
? prefix.replace(/\*/g,'#')
: prefix.replace(/\#/g,'*')
},
//}}}
/***
!!!! twve.listitem.create
***/
//{{{
create : function(src,txt,start,dir){
var li = twve.leveledElement.create();
// index
li.index = function(contents){
// Find the index of this list item within contents.
if ( ! contents )
contents = li.directWrapper().dom.childNodes;
return contents.indexOf(li.dom.parentNode);
};
// markupTags
li.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.listitem.markupTags();
};
// clone
li.clone = function(){
// Optional, may save a tiny bit of time.
return twve.listitem.create(li);
};
// twveSelector
li.twveSelector = function(selector,which){
// Optional, may save a tiny bit of time.
return twve.listitem.twveSelector(selector,which);
};
// starts
var preStarts = li.starts;
li.starts = function(start,txt,dir){
if(dir && dir<0 && txt.charAt(start)=='\n'){
var ch = txt.charAt(start+1);
if(ch=='*' || ch=='#') start--;
}
return preStarts.call(this,start,txt,dir);
};
// get sub list
li.getSubElement = function(){
return li.dom.querySelectorAll('ol,ul');
};
// setElement
var preSetElement = li.setElement;
li.setElement = function(elem,txt,start,dir){
if ( twve.node.matches(elem,'ol,ul') ) {
if ( elem.nodeType ) {
// If elem is a single node, set it.
preSetElement.call(
this,elem.querySelector('li'),txt,start,dir
);
li.dom = elem;
// Go all the way to the end/begining of this ol/ul.
var end = twve.text.consecutiveLinesEnd(
txt, li.start, true,
twve.listitem.leadingChars(), li.tags, dir
);
if ( typeof dir !== 'number' || dir < 0 )
// Backward
li.start.copyFrom(end);
else
// Forward
li.end.copyFrom(end);
}
// Otherwise we must be midway in refreshTopLevel(),
// leave it for that function to take care.
} else preSetElement.call(this,elem,txt,start,dir);
return li;
};
//}}}
/***
!!!!! li.subElementEnds
***/
//{{{
li.subElementEnds = function(start,txt){
var sub_open = li.start.matched;
sub_open += sub_open.charAt(sub_open.length-1);
var twsublist = twve.listitem.create(li);
twsublist.tags = twve.tags.create(
[sub_open, twve.listitem.switchType(sub_open)],'\n'
);
if ( start ) twsublist.end.copyFrom(start);
if ( ! txt ) txt = li.wrapperText();
do {
twsublist.rIndex = -1;
twsublist.dIndex = 0;
twsublist.starts(twsublist.end,txt);
if ( twsublist.start.ndx == twsublist.end.ndx-1 ) {
// The sublist is immediately following the previous,
// go on to find its end.
twsublist.ends(null,txt);
if ( twsublist.end.ndx < 0 ) {
twsublist.end.ndx = txt.length;
break;
}
} else break;
} while (true);
return twsublist.end;
};
//}}}
/***
!!!!! li.immediatelyFollowingEnds
***/
//{{{
li.immediatelyFollowingEnds = function(li2){
if ( ! li2 ) {
li2 = li.clone();
li2.rIndex = li2.dIndex = 0;
}
while (true) {
li2.starts(li2.end);
if ( li2.start.ndx == -1 ||
// If no more lists
li2.start.ndx+1 > li.end.ndx )
// or the next list is not immediately following,
break;
// Copy the end of the immediately following list.
li.end.ndx = li2.ends().ndx;
}
return li;
};
//}}}
/***
!!!!! li.refreshTopLevel
***/
//{{{
li.refreshTopLevel = function(txt){
// Refresh this listitem from its top level. This is needed
// when the type of list is changed, or when there are
// sub-lists included in the refreshing.
var include_sub = config.options.chktwveExtraIncludeSubs;
config.options.chktwveExtraIncludeSubs = true;
// Find the top most parent.
var parent = li.topMostParent();
// find the rendering index of the parent's first listitem.
li.rIndex -= twve.nodeList.toArray(
parent.querySelectorAll('li')
).indexOf(li.dom);
var selector = li.twveSelector(null,'parent');
// Find immediately preceding lists
while ( true ) {
var prev = parent.previousSibling;
if ( ! twve.node.matches(prev,selector.include) )
break;
var items = prev.querySelectorAll('li').length;
li.rIndex -= items;
parent = prev;
}
// Remove immediately following lists
while ( true ) {
var next = parent.nextSibling;
if ( ! twve.node.matches(next,selector.include) )
break;
next.parentNode.removeChild(next);
}
// Find the wiki text of parent.
li.dIndex = -1;
li.setElement(parent);
// Find the end of immediately following lists.
var li2 = li.clone();
li2.rIndex = li2.dIndex = 0;
li.immediatelyFollowingEnds(li2);
var ch0 = txt.charAt(0);
if ( ch0 != '*' && ch0 != '#' ) {
// This listitem shall be destroyed. Include its text
// and look for its immediately following listitems.
li2.end.ndx += txt.length+1;
li.end.ndx = li2.end.ndx;
li.immediatelyFollowingEnds(li2);
}
// The end of all the items is found. Refresh these
// immediately packed lists.
var litxt = li.getText();
li.preRefreshSelf.call(this,litxt);
// Relocate the changed listitem, if it's still there.
li.start.ndx += litxt.indexOf(txt);
li.end.ndx = li.start.ndx + txt.length;
litxt = litxt.split('\n');
var linendx = litxt.indexOf(txt);
if ( ch0 == '*' || ch0 == '#' ) {
// The list item is recreated (still there). Find it.
li.rIndex += linendx;
li.start.matched = '\n'+ch0;
li.dom = li.dom.querySelectorAll('li')[linendx];
twve.tiddler.focus(li);
} else {
// The list item is destroyed.
var wrap = li.directWrapper();
var lis = wrap.dom.querySelectorAll('li');
if ( linendx > 0 ) {
wrap.prev = twve.listitem.create();
wrap.prev.dom = lis[linendx-1];
wrap.prev.end.ndx = li.start.ndx-1;
}
if ( linendx < litxt.length-1 ) {
wrap.next = twve.listitem.create();
wrap.next.dom = lis[linendx];
wrap.next.start.ndx = li.end.ndx+1;
}
twve.tiddler.focus(wrap);
}
config.options.chktwveExtraIncludeSubs = include_sub;
return li;
};
//}}}
/***
!!!!! li.refreshThisLevel
***/
//{{{
var preRefreshThisLevel = li.refreshThisLevel;
li.refreshThisLevel = function(txt){
// Refresh this listitem without changing its level.
return ( txt.charAt(0) == li.start.matched.charAt(1) )
// The type of this list remains the same, just refresh
// its content.
? preRefreshThisLevel.call(this,txt)
// Otherwise refresh from the top level
: li.refreshTopLevel(txt);
};
//}}}
/***
!!!!! End of listitem
***/
//{{{
return li.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.blockquote
***/
//{{{
twve.blockquote = {
//}}}
/***
!!!! twve.blockquote.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'blockquote';
},
twveSelector : function(selector,which){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector(twve.blockquote.getSelector());
},
//}}}
/***
!!!! twve.blockquote.blockExampleOpen
***/
//{{{
blockExampleOpen : function(){
return '\n<<<';
},
//}}}
/***
!!!! twve.blockquote.blockExampleClose
***/
//{{{
blockExampleClose : function(){
return '<<<\n';
},
//}}}
/***
!!!! twve.blockquote.encloses
***/
//{{{
encloses : function(txt,ndx,start,end){
start = twve.position.create(start);
end = twve.position.create(end);
if ( start.ndx < 0 ) start.ndx = 0;
if ( end.ndx <= start.ndx || end.ndx > txt.length )
end.ndx = txt.length;
txt = txt.substring(start.ndx,end.ndx);
var tagsBlockExample = twve.tags.create(
twve.blockquote.blockExampleOpen(),
twve.blockquote.blockExampleClose()
);
var pos1=twve.position.create(start.ndx,tagsBlockExample.open);
var pos2=twve.position.create(pos1);
// The blockexample has identical opening and closing tags,
// therefore we must always start searching from the
// beginning (start) to ensure we have found a pair of
// identical tags.
while (true) {
pos1 = tagsBlockExample.nextOpenTag(txt,pos1);
if ( pos1.ndx == -1 ) return null;
pos2.ndx = pos1.ndx + pos1.matched.length;
if ( pos2.ndx > ndx ) return null;
// An opening tag found before ndx. Look for its closing
// tag.
pos2.matched = tagsBlockExample.close;
pos2 = tagsBlockExample.matchedCloseTag(txt,pos2);
if ( pos2.ndx == -1 ) {
// If no closing tag found, return the end of text.
pos2.ndx = end.ndx;
return {start:pos1, end:pos2};
} else if ( pos2.ndx > ndx )
// If a closing tag is found after ndx, (enclosing),
// return that position.
return {start:pos1, end:pos2};
}
return null;
},
//}}}
/***
!!!! twve.blockquote.markupTags
***/
//{{{
markupTags : function(which){
var tags = typeof which ==='string' &&
which.toLowerCase().substring(0,5)=='inact'
? twve.tags.create()
: twve.tags.create(
['\n<<<', '\n>'],
['<<<\n', '\n']
);
// blockElement
tags.blockElement = true;
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.blockquote.markupTags();
};
// blockExample
tags.blockExample = function(pos){
return pos.matched == twve.blockquote.blockExampleOpen();
};
// notEnclosing
tags.notEnclosing = function(){
return typeof tags.open == 'string' &&
tags.open != twve.blockquote.blockExampleOpen();
};
// exactCloseTag
var preExactCloseTag = tags.exactCloseTag;
tags.exactCloseTag = function(){
var exactTags = preExactCloseTag.apply(this,arguments);
if ( ! exactTags.close ){
exactTags.open = '\n>';
exactTags.close = '\n';
}
return exactTags;
};
// matchedCloseTag
var preMatchedCloseTag = tags.matchedCloseTag;
tags.matchedCloseTag = function(txt,pos){
if ( tags.blockExample(pos) ) {
// This blockquote is a blockexample. Go find the next
// closing tag.
pos.ndx++;
return preMatchedCloseTag.call(this,txt,pos);
} else {
// This blockquote consist of consecutive lines of text.
// Go to the very end of these consecutive lines of text
var all_end =
twve.text.consecutiveLinesEnd(txt,pos,true,'>');
if ( config.options.chktwveExtraIncludeSubs ) {
// If we want to include sub-blockquotes, this is
// the end.
return all_end;
}
// Otherwise we look for the end before the
// sub-blockquote
var cur_end = twve.text.consecutiveLinesEnd(
txt,pos,false,'>'
);
if ( all_end.ndx == cur_end.ndx )
// If this end is the same as the last one, there
// are no sub-blockquotes.
return all_end;
// Otherwise we check for in-body sub-blockquotes.
// If the blockquote level after cur_end is the same as
// the level of this blockquote, there must be an in-body
// sub-blockquote. In that case we return the all_end to
// include that sub-blockquote. Otherwise either this
// blockquote is an in-body sub-blockquote of another, or
// it does not have in-body sub-blockquote. We return
// cur_end in such cases.
var level = twve.leveledElement.getLevel(txt,pos.ndx,'>');
var level_end = twve.leveledElement.getLevel(
txt,cur_end.ndx+1,'>'
);
return level_end == level
? all_end
: cur_end;
}
};
// encloses
var preEncloses = tags.encloses;
tags.encloses = function(txt,ndx,start,end){
// This method is mainly for the situation where a heading
// is enclosed in a blockexample. It needs special care
// because a blockexample have the same opening and closing
// tags, we need to start from the beginning every time to
// really make sure the enclosing of the index ndx within
// a blockexample.
var pos = preEncloses.apply(this,arguments);
if ( pos ) return pos;
if(ndx == 0 || ndx >= txt.length-1 || tags.notEnclosing())
return null;
return twve.blockquote.encloses(txt,ndx,start,end);
};
return tags;
},
//}}}
/***
!!!! twve.blockquote.create
***/
//{{{
create : function(src,txt,start,dir){
var bq = twve.leveledElement.create();
// markupTags
bq.markupTags = function(){
return twve.blockquote.markupTags();
};
// twveSelector
bq.twveSelector = function(selector,which){
return twve.blockquote.twveSelector(selector,which);
};
// is
var preIs = bq.is;
bq.is = function(elem){
if ( preIs.apply(this,arguments) ) return true;
var sub = bq.firstChildOfDummy(elem);
return sub ? bq.is(sub) : false;
};
// renderingIndex
var preRenderingIndex = bq.renderingIndex;
bq.renderingIndex = function(){
// Obtain the rendering index first.
preRenderingIndex.apply(this);
// Then check for necessary adjustments.
// If a blockquote starts from the 2nd level, there will be
// an dummy top-level blockquote to contain it, hence its
// rendering index is added by 1. The same applies to
// deeper-level-started blockquotes, with one extra dummy
// blockquote introduced at each level.
// Hence, if the user clicks on one of the dummy containing
// blockquotes, which are NOT DEFINED in the tiddler text,
// we shall find the actually defined blockquote for further
// use.
var dum_level = 0;
// Search for dummy blockquotes in children
while( (bq.sub_elem = bq.firstChildOfDummy(bq.dom)) ){
dum_level++;
bq.dom = bq.sub_elem;
};
return (bq.rIndex += dum_level);
};
// skipOpenTag
var preSkipOpenTag = bq.skipOpenTag;
bq.skipOpenTag = function(txt){
var p = preSkipOpenTag.apply(this,arguments);
if ( bq.blockExample() && txt.charAt(p) == '\n' ) p++;
return p;
};
// getNeighbor
var preGetNeighbor = bq.getNeighbor;
bq.getNeighbor = function(which,delta){
var bqnext = preGetNeighbor.apply(this,arguments);
return (bqnext && bqnext.firstChildOfDummy(bqnext.dom))
? bqnext.getNeighbor(which,1)
: bqnext;
};
// blockExample
bq.blockExample = function(){
return bq.tags.blockExample(bq.start);
};
// counts
bq.counts = function(searchInfo,txt){
// Check if the currently found element counts as a valid
// one. If so,
// 1. update the ndx and remained properties of
// searchInfo,
// 2. return true.
// Otherwise,
// 1. return false.
// Blockquotes are different from others in that they can
// have sub-bloquotes within their bodies. Special care is
// needed to correctly count the indexes of them.
// When we see a blockquote, count it once (dlevel = 1).
// Then we check its level to adjust the counts.
// 1. If this blockqoute does not start from level 1, add
// the level difference.
// 2. If this blockquote is the one we are looking for,
// update the researchInfo and return true.
// 3. Otherwise we check for sub-blockqoute contained
// within its body.
// a. If there is sub-blockquote after the current
// starting index, check if that sub-blockquote is
// what we are looking for.
// i. If so, move the start.ndx to the beginning
// of the sub-blockquote, update the searchInfo
// and return true.
// ii. Otherwise, move the start.ndx to the end of
// that sub-blockquote, repeat 3.
// b. Otherwise update the searchInfo and return true.
var parent_level = 1;
var dlevel = 1;
if ( bq.blockExample() ) {
// Update the searchInfo.
searchInfo.remained -= dlevel;
searchInfo.ndx += dlevel;
if ( searchInfo.remained == 0 )
// This blockexample is the one we are looking
// for, return true.
return true;
// Blockexamples may or may not contain leveled
// blockquotes, check it.
var next = twve.position.create(bq.start);
next.ndx += next.matched.length;
next = twve.text.indexOf(txt,'\n>',next);
if ( next.ndx == -1 )
// There is no leveled blockquotes contained in
// this blockexample, return true to count this
// one.
return true;
// Otherwise update bq.start.ndx and do the followings.
bq.start.copyFrom(next);
}
// Blockquotes that consist of consecutive lines of text.
var cur_level = twve.leveledElement.getLevel(
txt,
bq.start.ndx+(txt.charAt(bq.start.ndx)=='\n'?1:0),
'>'
);
dlevel = parent_level = cur_level;
if ( dlevel < searchInfo.remained ) {
// This blockquote is NOT the one we are looking for.
// Check for sub-blockquotes within its body.
var all_end = twve.text.consecutiveLinesEnd(
txt,bq.start.ndx,true,'>'
);
var cur_end = twve.text.consecutiveLinesEnd(
txt,bq.start.ndx,false,'>'
);
// Now all_end is at the end of all these
// consecutive lines of text, while cur_end is
// at the end of the lines of the same level.
// There are sub-blockquotes following or within this
// one, check if one of them is what we are looking
// for.
do {
if ( all_end.ndx == cur_end.ndx ) {
// There is no more sub-blockquotes
// following or within the body of this
// one, meaning this is not the one
// we are looking for. Move the start.ndx
// to the end of this blockquote for next
// search, and return.
break;
}
// There are sub-blockquotes.
// Find the level (next_level) after cur_end.
var next_level = twve.leveledElement.getLevel(
txt, cur_end.ndx+1,'>'
);
if ( next_level > cur_level ) {
// The next_level is even deeper, meaning
// there are still sub-blockquotes after
// this one. Check for this one.
dlevel += (next_level - cur_level);
if(dlevel == searchInfo.remained){
// If this is the one we are looking for,
// return its beginning.
bq.start.ndx = cur_end.ndx;
break;
}
// Otherwise move search for the next.
bq.start.ndx = cur_end.ndx;
cur_level = next_level;
cur_end = twve.text.consecutiveLinesEnd(
txt,bq.start.ndx,false,'>'
);
} else {
// If next_level is shallower than cur_level,
// skip to the next sub-blockquote if any.
var next_end = twve.text.consecutiveLinesEnd(
txt,cur_end.ndx+1,false,'>'
);
if ( next_end.ndx == all_end.ndx ) {
// If there is no more sub-blockquotes
// in the parent body, return.
bq.start.ndx = all_end.ndx-1;
break;
}
// There is another sub-blockquote. Update the
// indexes for next search.
bq.start.ndx = next_end.ndx;
cur_end = next_end;
cur_level = next_level;
}
} while (true);
}
// Update the searchInfo.
searchInfo.remained -= dlevel;
if ( searchInfo.remained < 0 ) searchInfo.remained = 0;
searchInfo.ndx += dlevel;
return true;
};
// subElementEnds
var preSubElementEnds = bq.subElementEnds;
bq.subElementEnds = function(){
return bq.blockExample()
? bq.end
: preSubElementEnds.apply(this,arguments);
};
// ends
var preEnds = bq.ends;
bq.ends = function(){
return bq.found
? bq.end
: preEnds.apply(this,arguments);
};
// starts
var preStarts = bq.starts;
bq.starts = function(start,txt,dir){
if ( dir && dir < 0 ){
// Going backwards,
preStarts.call(this,start-1,txt,dir);
var tags = bq.tags.exactCloseTag(bq.start.matched);
if ( ! txt ) txt = bq.wrapperText();
// Locate the end of this blockquote.
bq.end.ndx = txt.indexOf(
tags.close,bq.start.ndx+1
)+tags.close.length;
bq.end.matched = tags.close;
// Find the begining of this blockquote.
if ( bq.blockExample() ){
bq.start.ndx--;
bq.start = tags.lastOpenTag(txt,bq.start);
} else {
bq.start = twve.text.consecutiveLinesEnd(
txt,bq.start,true,'>',tags,-1
);
if(bq.start.ndx > 0) bq.start.ndx++;
}
bq.found = true;
return bq.start;
}
return preStarts.apply(this,arguments);
};
return bq.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.tabset
***/
//{{{
twve.tabset = {
//}}}
/***
!!!! twve.tabset.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector,which){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector(
//((which && which.toLowerCase().substring(0,6)=='parent')
// ? 'div.tabsetWrapper' : 'div.tabset')
'div.tabsetWrapper'
);
},
//}}}
/***
!!!! twve.tabset.markupTags
***/
//{{{
markupTags : function(){
// <<tabs>> transcluded
var tags = twve.tags.create(
'<<tabs',
'>>'
);
// blockElement
tags.blockElement = true;
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.tabset.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.tabset.is
***/
//{{{
is : function(node,selector){
return twve.node.matches(
node,twve.tabset.twveSelector(selector).include
);
},
//}}}
/***
!!!! twve.tabset.includeNext
***/
//{{{
includeNextBox : function(node,box){
if ( ! box ) box = twve.node.box(node);
if ( node.nextSibling ) {
var box2 = twve.node.box(node.nextSibling);
box.height += box2.height;
box.bottom += box2.height;
}
return box;
},
//}}}
/***
!!!! twve.tabset.create
***/
//{{{
create : function(src,txt,start,dir){
var tabset = twve.element.create();
// markupTags
tabset.markupTags = function(){
return twve.tabset.markupTags();
};
// twveSelector
tabset.twveSelector = function(){
return twve.tabset.twveSelector();
};
// box, include the tabContents
tabset.box = function(){
return twve.tabset.includeNextBox(tabset.dom);
};
// refreshSelf
var preRefreshSelf = tabset.refreshSelf;
tabset.refreshSelf = function(){
tabset.dom.parentNode.removeChild(tabset.dom.nextSibling);
return preRefreshSelf.apply(this,arguments);
};
// end of tabset
return tabset.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.span
***/
//{{{
twve.span = {
//}}}
/***
!!!! twve.span.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector(
'span.marked,span[style*=color],span[style*=font]'
).excludeSelector(
twve.MathJax.getSpanSelector()+
','+twve.heading.getSpanSelector()
);
},
//}}}
/***
!!!! twve.span.markupTags
***/
//{{{
markupTags : function(){
return twve.tags.create(
'@@',
'@@'
);
},
//}}}
/***
!!!! twve.span.create
***/
//{{{
create : function(src,txt,start,dir){
if ( ! config.options.chktwveExtraInline ) return null;
var span = twve.element.create(src,txt,start,dir);
// markupTags
span.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.span.markupTags();
};
// clone
span.clone = function(){
// Optional, may save a tiny bit of time.
return twve.span.create(span);
};
// twveSelector
span.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.span.twveSelector();
};
// starts
var preStarts = span.starts;
span.starts = function(start,txt){
preStarts.apply(this,arguments);
start = span.start.ndx + 2;
var skipped = twve.text.skipStyleText(txt,start);
if ( skipped )
span.start.matched +=
txt.substring(start,start+skipped);
return span.start;
};
return span;
}
};
//}}}
/***
!!! twve.styledText
***/
//{{{
twve.styledText = {
//}}}
/***
!!!! twve.styledText.inactiveTags
***/
//{{{
preInactiveTags : null,
inactiveTags : function(){
return twve.styledText.preInactiveTags.apply(this).merge(
twve.text.markupTags()
);
},
//}}}
/***
!!!! twve.styledText.create
***/
//{{{
create : function(src,txt,start,dir){
if ( ! config.options.chktwveExtraInline ) return null;
var styledText = twve.element.create();
/*
// setElement
var preSetElement = styledText.setElement;
styledText.setElement = function(){
// Temporarily disables styledText wiki tags within strings.
if ( ! twve.styledText.preInactiveTags ) {
twve.styledText.preInactiveTags=twve.tags.inactiveTags;
twve.tags.inactiveTags=twve.styledText.inactiveTags;
preSetElement.apply(this,arguments);
// Restore back the previous inactive checking procedure.
twve.tags.inactiveTags=twve.styledText.preInactiveTags;
twve.styledText.preInactiveTags = null;
} else
preSetElement.apply(this,arguments);
return styledText;
};
*/
return styledText.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.styledText.bold
***/
//{{{
twve.styledText.bold = {
//}}}
/***
!!!! twve.styledText.bold.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('strong');
},
//}}}
/***
!!!! twve.styledText.bold.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
"''",
"''"
);
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.bold.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.styledText.bold.create
***/
//{{{
create : function(src,txt,start,dir){
var bold = twve.styledText.create();
if ( ! bold ) return null;
// markupTags
bold.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.bold.markupTags();
};
// clone
bold.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.bold.create(bold);
};
// twveSelector
bold.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.bold.twveSelector();
};
return bold.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.styledText.under
***/
//{{{
twve.styledText.under = {
//}}}
/***
!!!! twve.styledText.under.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('u');
},
//}}}
/***
!!!! twve.styledText.under.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
'__',
'__'
);
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.under.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.styledText.under.create
***/
//{{{
create : function(src,txt,start,dir){
var under = twve.styledText.create();
if ( ! under ) return null;
// markupTags
under.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.under.markupTags();
};
// clone
under.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.under.create(under);
};
// twveSelector
under.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.under.twveSelector();
};
return under.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.styledText.italic
***/
//{{{
twve.styledText.italic = {
//}}}
/***
!!!! twve.styledText.italic.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('em');
},
//}}}
/***
!!!! twve.styledText.italic.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
"\/\/",
"\/\/"
);
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.italic.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.styledText.italic.create
***/
//{{{
create : function(src,txt,start,dir){
var italic = twve.styledText.create();
if ( ! italic ) return null;
// markupTags
italic.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.italic.markupTags();
};
// clone
italic.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.italic.create(italic);
};
// twveSelector
italic.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.italic.twveSelector();
};
// counts
var preCounts = italic.counts;
italic.counts = function(searchInfo,txt){
return (
italic.start.ndx > 5 &&
txt.substring(
italic.start.ndx-5,italic.start.ndx
).toLowerCase()=='http:'
) ? false
: preCounts.apply(this,arguments);
};
return italic.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.styledText.strike
***/
//{{{
twve.styledText.strike = {
//}}}
/***
!!!! twve.styledText.strike.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('strike');
},
//}}}
/***
!!!! twve.styledText.strike.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
'--',
'--'
);
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.strike.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.styledText.strike.create
***/
//{{{
create : function(src,txt,start,dir){
var strike = twve.styledText.create();
if ( ! strike ) return null;
// markupTags
strike.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.strike.markupTags();
};
// clone
strike.clone = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.strike.create(strike);
};
// twveSelector
strike.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.styledText.strike.twveSelector();
};
// counts
strike.counts = function(searchInfo,txt){
if(txt.charAt(
strike.start.ndx+strike.start.matched.length
)!=' '){
searchInfo.remained--;
searchInfo.ndx++;
return true;
}
return false;
};
return strike.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.img
***/
//{{{
twve.img = {
//}}}
/***
!!!! twve.img.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('img');
},
//}}}
/***
!!!! twve.img.markupTags
***/
//{{{
markupTags : function(){
return twve.tags.create(
[ '[img', '[>img', '[<img', '<img' ],
[ ']]', ']]', ']]', '>' ]
);
},
//}}}
/***
!!!! twve.img.create
***/
//{{{
create : function(src,txt,start,dir){
var img = twve.element.create();
return img.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.cssWrapper
***/
//{{{
twve.cssWrapper = {
enableEdit : true,
//}}}
/***
!!!! twve.cssWrapper.is
***/
//{{{
is : function(node,selector){
var result = node && node.classList &&
node.classList.length == 1 &&
(node.nodeName=='SPAN' || node.nodeName=='DIV');
if ( result ){
var css = node.classList.item(0);
if(css=='toolbar' || css=='subtitle' || css=='tiddler')
return false;
if ( selector )
selector.include =
node.nodeName+'.'+css;
}
return result;
},
//}}}
/***
!!!! twve.cssWrapper.HTMLtagCloseMark
***/
//{{{
HTMLtagCloseMark : function(txt,pos){
if (pos.matched.charAt(0) == '<')
pos.matched = txt.substring(
pos.ndx, txt.indexOf('>',pos.ndx+1)+1
);
return pos;
},
//}}}
/***
!!!! twve.cssWrapper.markupTags
***/
//{{{
markupTags : function(node){
var possible = (node && node.classList.length==1);
var classStr = (possible?node.classList.item(0):'');
var tags = twve.tags.create(
[ ('{{'+classStr+'{'), '<div' ],
[ '}}}', '</div' ]
);
// classStr
tags.classStr = classStr;
// blockElement
tags.blockElement = possible && (node.nodeName == 'DIV');
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
var cloned = twve.tags.create(
tags.open,tags.close
);
cloned.classStr = tags.classStr;
cloned.blockElement = tags.blockElement;
return cloned;
};
// nextOpenTag
var preNextOpenTag = tags.nextOpenTag;
tags.nextOpenTag = function(txt,start){
return twve.cssWrapper.HTMLtagCloseMark(
txt,preNextOpenTag.call(this,txt,start)
);
};
// exactCloseTag
tags.exactCloseTag = function(open){
var exactTags = null;
switch (open.substring(0,2)){
case '<d':
exactTags = twve.tags.nested.create(
tags.open[1],tags.close[1]
);
exactTags.classStr = tags.classStr;
exactTags.blockElement = tags.blockElement;
exactTags.preMatchedCloseTag =
exactTags.matchedCloseTag;
exactTags.matchedCloseTag = function(txt,pos){
return twve.cssWrapper.HTMLtagCloseMark(
txt,
exactTags.preMatchedCloseTag.apply(
this,arguments
)
);
};
return exactTags;
case '{{':
exactTags = tags.clone();
exactTags.open = tags.open[0];
exactTags.close = tags.close[0];
return exactTags;
default:
return tags.clone();
}
};
// matchedCloseTag
var preMatchedCloseTag = tags.matchedCloseTag;
tags.matchedCloseTag = function(txt,pos){
return twve.cssWrapper.HTMLtagCloseMark(
txt,preMatchedCloseTag.apply(this,arguments)
);
};
return tags;
},
//}}}
/***
!!!! twve.cssWrapper.create
***/
//{{{
create : function(src,txt,start,dir){
var cssWrapper = twve.element.create();
// is
cssWrapper.is = function(node){
return twve.cssWrapper.is(node);
};
// counts
var preCounts = cssWrapper.counts;
cssWrapper.counts = function(searchInfo){
var matched = cssWrapper.start.matched;
if ( matched.length > 4 &&
matched.substring(0,4) == '<div' &&
matched.indexOf(cssWrapper.tags.classStr) < 0 )
return false;
return preCounts.apply(this,arguments);
};
return cssWrapper.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.MathJax
***/
//{{{
twve.MathJax = {
enabled : true,
//}}}
/***
!!!! twve.MathJax.getSpanSelector
***/
//{{{
getSpanSelector : function(){
return 'span.MathJax_Preview,span[id*=MathJax] span';
},
//}}}
/***
!!!! twve.MathJax.nextFormula
***/
//{{{
nextFormula : function(txt,start){
var tags = twve.MathJax.displayed.markupTags().merge(
twve.MathJax.inline.markupTags()
);
var formula = {};
formula.start = twve.position.create(start);
formula.start = tags.nextOpenTag(txt,formula.start);
if ( formula.start.ndx > -1 ) {
formula.end = twve.position.create(formula.start);
formula.end.ndx += formula.start.matched.length;
formula.end = tags.exactCloseTag(formula.start.matched)
.matchedCloseTag(txt,formula.end);
formula.expression = txt.substring(
formula.start.ndx,
formula.end.ndx+formula.end.matched.length
);
}
formula.getSource = function(){
return formula.start.matched != '\\begin{'
? formula.expression.substring(
formula.start.matched.length,
formula.expression.length-
formula.end.matched.length
)
: formula.expression;
};
return formula;
},
//}}}
/***
!!!! twve.MathJax.box
***/
//{{{
preBox : null,
box : function(node,outerw,outerh){
var mnode = twve.MathJax.displayed.getMathNode(node);
if ( ! mnode )
mnode = twve.MathJax.inline.getMathNode(node);
return twve.MathJax.preBox.call(this,(mnode||node),outerw,outerh);
},
//}}}
/***
!!!! twve.MathJax.beforeMath
***/
//{{{
folded : null,
subfoldable : null,
subfolded : null,
beforeMath : function (msg) {
// Things to do before MathJax does math processing on an element.
var fsel = twve.tiddler.twveFoldableSelector();
twve.MathJax.folded = null;
if ( twve.node.matches(msg[1],fsel.include) ) {
// We are processing math in a foldable
// panel.
if (!twve.node.isVisible(msg[1])){
twve.MathJax.folded = msg[1];
twve.node.show(msg[1]);
}
} else {
// We are not in a foldable panel, check its parents.
var parents = twve.node.parents(
msg[1], fsel.include
);
if ( parents ) {
// There are foldable parents containing this element.
for(var i=0,len=parents.length;i<len;i++){
if(! twve.node.isVisible(parents[i])){
twve.MathJax.folded=parents[i];
twve.node.show(parents[i]);
break;
}
}
}
// Check for folded sections in this element, if it is a wrapper.
if ( ! twve.node.closest(
msg[1],twve.tiddler.displaySelector()
) || ! twve.node.matches(
twve.tiddler.wrapperSelectors().include
) ) return;
twve.MathJax.subfoldable =
twve.wrapper.findElements(msg[1],fsel);
twve.MathJax.subfolded =
twve.wrapper.recordFoldable(
twve.MathJax.subfoldable
);
if ( twve.MathJax.subfoldable ) {
twve.node.show(twve.MathJax.subfoldable);
}
}
},
//}}}
/***
!!!! twve.MathJax.afterMath
***/
//{{{
afterMath : function(msg){
// Things to do after MathJax done math processing on an element.
if ( twve.MathJax.subfoldable ) {
twve.wrapper.restoreFoldable(
twve.MathJax.subfoldable,
twve.MathJax.subfolded
);
}
if ( twve.MathJax.folded ) {
twve.node.hide(twve.MathJax.folded);
}
},
//}}}
/***
!!!! twve.MathJax.checkReady
***/
//{{{
checkReady : function () {
if ( config.extensions.MathJax ) {
if ( typeof MathJax!=='undefined' ) {
// The MathJax was loaded completely. Remove the
// MathJaxPlugin if it's still in the hijacking chain.
if ( story.displayTiddler ==
config.extensions.MathJax.displayTiddler ) {
story.displayTiddler =
config.extensions.MathJax.displayTiddler_old;
MathJax.Hub.Config({
"HTML-CSS": { linebreaks: { automatic: true } },
SVG: { linebreaks: { automatic: true } }
});
//MathJax.Hub.signal.Interest(function(message){
// console.log("Hub: "+message)
//});
// Listen to the Begin Process signal
MathJax.Hub.Register.MessageHook(
'Begin Process',twve.MathJax.beforeMath
);
// Listen to the End Process signal
MathJax.Hub.Register.MessageHook(
'End Process', twve.MathJax.afterMath
);
}
return true;
}
}
return false;
},
//}}}
/***
!!!! twve.MathJax.render
***/
//{{{
render : function (w) {
if ( ! w ) return;
var t = w.parentNode
? w.parentNode.querySelector('.title')
: null;
if ( t ) {
MathJax.Hub.Queue(['Typeset',MathJax.Hub,t]);
}
// Enable auto-numbering if necessary
if ( config.options.chktwveExtraMathAutoNumber ) {
if ( twve.node.matches(w,'div.viewer') ) {
MathJax.Hub.Config({
TeX: { equationNumbers: { autoNumber: "AMS" } }
});
MathJax.Hub.Queue(
["resetEquationNumbers", MathJax.InputJax.TeX]
);
}
} else {
MathJax.Hub.Config({
TeX: { equationNumbers: { autoNumber: "none" } }
});
}
MathJax.Hub.Queue(['Typeset',MathJax.Hub,w]);
},
//}}}
/***
!!!! twve.MathJax.prepareElements
***/
//{{{
prePrepareElements : null,
prepareElements : function(twwrap){
if ( twve.MathJax.checkReady() &&
! twve.node.matches(twwrap.dom,'div.board') ) {
twve.MathJax.render(twwrap.dom);
}
twve.MathJax.prePrepareElements.call(this,twwrap);
return twwrap;
},
//}}}
/***
!!!! twve.MathJax.apply
***/
//{{{
apply : function(callback,obj,args){
if ( typeof MathJax !== 'undefined' ) {
MathJax.Hub.Queue(function(){
callback.apply(obj,args);
});
} else
callback.apply(obj,args);
},
//}}}
/***
!!!! twve.MathJax.fold
***/
//{{{
preFold : null,
fold : function(){
twve.MathJax.apply(
twve.MathJax.preFold,this,arguments
);
},
//}}}
/***
!!!! twve.MathJax.headingClick
***/
//{{{
preHeadingClick : null,
headingClick : function(){
twve.MathJax.apply(
twve.MathJax.preHeadingClick,this,arguments
);
},
//}}}
/***
!!!! twve.MathJax.restoreFoldable
***/
//{{{
preRestoreFoldable : null,
restoreFoldable : function(){
twve.MathJax.apply(
twve.MathJax.preRestoreFoldable,this,arguments
);
},
//}}}
/***
!!!! twve.MathJax.wikify
***/
//{{{
preWikify : null,
wikify : function(txt,node){
var node = twve.MathJax.preWikify.apply(this,arguments);
if ( twve.MathJax.enabled && typeof MathJax != 'undefined' ) {
var elem = null;
if ( node.nodeType ) {
elem = node.nodeType == 3
? node.parentNode
: node;
} else if ( node.length > 0 )
elem = node[0].parentNode;
//if ( typeof katex != 'undefined' &&
// twve.node.matches(node,'div.board') ) {
// var formula = twve.MathJax.nextFormula(txt);
// if ( formula.start.ndx == 0 ) {
// katex.render(formula.getSource(),node);
// return node;
// }
if ( elem )
try {
MathJax.Hub.Queue(['Typeset', MathJax.Hub, elem]);
} catch(e) {
console.log(e);
}
}
return node;
},
//}}}
/***
!!!! twve.MathJax.hasID
***/
//{{{
hasID : function(node){
return node && node.id && node.id.substring(0,7)=='MathJax';
},
//}}}
/***
!!!! twve.MathJax.create
***/
//{{{
create : function(src,txt,start,dir){
var math = twve.element.create();
// filter
math.filter = function(node){
if ( node.nodeType )
return math.getMathNode(node);
var filtered = [];
for ( var i=0,len=node.length; i<len; i++ ) {
var mnode = math.getMathNode(node[i]);
if ( mnode ) {
filtered[filtered.length] = mnode;
if ( mnode == node[i] ) i++;
else if ( mnode == node[i].nextSibling ) i += 2;
}
}
if ( filtered.length == 0 ) return null;
return filtered.length > 1 ? filtered : filtered[0];
};
// End of math.
return math.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.MathJax.displayed
***/
//{{{
twve.MathJax.displayed = {
//}}}
/***
!!!! twve.MathJax.displayed.lastIndexOf
***/
//{{{
preLastIndexOf : null,
lastIndexOf : function(str){
var start = twve.MathJax.displayed
.preLastIndexOf.apply(this,arguments);
// If a square bracket ([) is immediately following the opening
// tag of a displayed math (\[), it would result in \[[ in the
// wiki text and confuse the ''twve'' to mistake it as a TW
// link. We make sure such cases won't happen here.
var cur = start;
var curprev = cur;
while ( cur ) {
if ( cur.matched=='[[' && str.charAt(cur.ndx-1)=='\\' ) {
// This is the case we want to avoid. Remove cur.
if ( cur == start )
// Remove the first one
curprev = start = cur.next;
else
// Remove this one
curprev.next = cur.next;
} else {
// Otherwise check the next.
curprev = cur;
}
cur = cur.next;
}
return start;
},
//}}}
/***
!!!! twve.MathJax.displayed.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'div.MathJax_Display';
},
twveSelector : function(selector,which){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
var displayed = twve.MathJax.displayed.getSelector();
return selector.includeSelector(
displayed +
(which && which.toLowerCase().substring(0,6)=='render'
? '' : (','+displayed+' span'))
);
},
//}}}
/***
!!!! twve.MathJax.displayed.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
//[ '\\[', '\\begin{' ],
//[ '\\]', '\\end{' ]
[ '\\[', '$$', '\\begin{' ],
[ '\\]', '$$', '\\end{' ]
);
// blockElement
tags.blockElement = true;
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.MathJax.displayed.markupTags();
};
// nextOpenTag
//var preNextOpenTag = tags.nextOpenTag;
//tags.nextOpenTag = function(txt,start){
// start = preNextOpenTag.apply(this,arguments);
// if (start.matched == '\\begin{'){
// var pl = start.ndx+start.matched.length;
// start.matched += txt.substring(
// pl,txt.indexOf('}',pl)+1
// );
// }
// return start;
//};
// matchedCloseTag
var preMatchedCloseTag = tags.matchedCloseTag;
tags.matchedCloseTag = function(txt,pos,txtlen,inactiveTags){
if ( tags.close == '\\end{' ){
var cmd = txt.substring(
pos.ndx,txt.indexOf('}',pos.ndx)+1
);
tags.close += cmd;
pos.ndx += cmd.length;
}
return preMatchedCloseTag.call(
this,txt,pos,txtlen,inactiveTags
);
};
return tags;
},
//}}}
/***
!!!! twve.MathJax.displayed.getMathNode
***/
//{{{
getMathNode : function(node){
var selector = twve.MathJax.displayed.getSelector();
switch ( node.nodeName ) {
case 'SPAN' :
if ( twve.MathJax.hasID(node) ) {
return twve.node.closest(node.parentNode,selector);
} else {
var ch = node.childNodes;
if ( ch && ch.length > 2 )
node = ch[1];
else if ( ch && ch.length == 1 ) {
var txt = ch[0].nodeValue;
if ( txt ) {
var open = txt.substring(0,2);
var close = txt.substring(txt.length-2);
if ( (open =='\\[' && close == '\\]') ||
(open == '$$' && close =='$$') ) {
return node;
}
}
node = node.nextSibling;
} else
node = node.nextSibling;
return twve.node.matches(node,selector) ? node : null;
}
case 'DIV' :
return twve.node.matches(node,selector) ? node : null;
case 'SCRIPT' :
if ( twve.MathJax.hasID(node) ) {
node = node.previousSibling;
return twve.node.matches(node,selector) ? node : null;
}
}
return null;
},
//}}}
/***
!!!! twve.MathJax.displayed.is
***/
//{{{
is : function(node){
return twve.MathJax.displayed.getMathNode(node);
},
//}}}
/***
!!!! twve.MathJax.displayed.create
***/
//{{{
create : function(src,txt,start,dir){
var math = twve.MathJax.create();
// markupTags
math.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.MathJax.displayed.markupTags();
};
// clone
math.clone = function(){
// Optional, may save a tiny bit of time.
return twve.MathJax.displayed.create(math);
};
// twveSelector
math.twveSelector = function(selector,which){
// Optional, may save a tiny bit of time.
return twve.MathJax.displayed.twveSelector(selector,which);
};
// multiLine
math.multiLine = function(){
return true;
};
// skipCloseTag
math.skipCloseTag = function(txt,start){
return txt.substring(start-2,start)=='$$' ? 3 : 0;
};
// setElement
var preSetElement = math.setElement;
math.setElement = function(elem,txt,start,dir){
// Set element
return preSetElement.call(
this,twve.MathJax.displayed.getMathNode(elem),
txt,start,dir
);
};
// getMathNode
math.getMathNode = function(node){
return twve.MathJax.displayed.getMathNode(node);
};
// removeSiblings
math.removeSiblings = function(){
if ( math.end.matched.substring(0,5)=='\\end{' ) {
var parent = math.dom.parentNode;
parent.removeChild(math.dom.previousSibling);
parent.removeChild(math.dom.nextSibling);
return true;
}
return false;
};
// replaceWith
var preReplaceWith = math.replaceWith;
math.replaceWith = function(newnode,oldnode){
if ( ! math.removeSiblings() && ! oldnode ) {
oldnode = math.dom.parentNode;
}
return preReplaceWith.call(this,newnode,oldnode);
};
// removeSelf
var preRemoveSelf = math.removeSelf;
math.removeSelf = function(){
if ( ! math.removeSiblings() )
math.dom = math.dom.parentNode;
return preRemoveSelf.apply(this,arguments);
};
// End of math.
return math.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.MathJax.inline
***/
//{{{
twve.MathJax.inline = {
//}}}
/***
!!!! twve.MathJax.inline.twveSelector
***/
//{{{
enableEdit : true,
getSelector : function(){
return 'span.MathJax_Preview';
//return 'span.MathJax';
},
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector(
twve.MathJax.inline.getSelector()
).excludeSelector(
twve.MathJax.displayed.getSelector()+' span'
);
},
//}}}
/***
!!!! twve.MathJax.inline.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
[ '\\(', '\\ref{', '\\eqref{' ],
[ '\\)', '}', '}' ]
);
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.MathJax.inline.markupTags();
};
return tags;
},
//}}}
/***
!!!! twve.MathJax.inline.getMathNode
***/
//{{{
getMathNode : function(node){
//var selector = twve.MathJax.inline.getSelector();
switch ( node.nodeName ) {
case 'SPAN' :
if ( twve.MathJax.hasID(node) ) {
do {
if ( node.id.substring(7,15)=='-Element' )
return node;
do {
node = node.parentNode;
} while ( node && ! node.id );
} while ( node );
} else {
var ch = node.childNodes;
if ( ch && ch.length > 2 )
node = ch[1];
else if ( ch && ch.length == 1 ) {
var txt = ch[0].nodeValue;
if ( txt &&
txt.substring(0,2)=='\\(' &&
txt.substring(txt.length-2)=='\\)' )
return node;
else
node = node.nextSibling;
} else
node = node.nextSibling;
return twve.MathJax.hasID(node) ? node : null;
}
case 'SCRIPT' :
if ( twve.MathJax.hasID(node) ||
node.getAttribute('type').indexOf('math')>-1 )
return node.previousSibling;
}
return null;
},
//}}}
/***
!!!! twve.MathJax.inline.is
***/
//{{{
is : function(node){
return twve.MathJax.inline.getMathNode(node);
},
//}}}
/***
!!!! twve.MathJax.inline.create
***/
//{{{
create : function(src,txt,start,dir){
var math = twve.MathJax.create();
// markupTags
math.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.MathJax.inline.markupTags();
};
// clone
math.clone = function(){
// Optional, may save a tiny bit of time.
return twve.MathJax.inline.create(math);
};
// twveSelector
math.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.MathJax.inline.twveSelector();
};
//}}}
/***
!!!!! math.renderingIndex
***/
//{{{
math.renderingIndex = function(){
// Find the rendering index of a twve.core element object
// in its direct wrapper.
if ( math.rIndex < 0 ) {
var elems = math.directWrapper().findElements(
math.twveSelector(null,'rendered')
);
var ndx = 0;
var displayed = twve.MathJax.displayed.getSelector();
if ( elems ) {
for(var i=0,len=elems.length; i<len; i++){
if (twve.node.matches(
elems[i].nextSibling,displayed
)) continue;
if(elems[i]==math.dom){
math.rIndex = ndx;
break;
}
ndx++;
}
}
}
return math.rIndex;
};
// setElement
var preSetElement = math.setElement;
math.setElement = function(elem,txt,start,dir){
// Set element
var elem = twve.MathJax.inline.getMathNode(elem);
preSetElement.call(
this,elem.previousSibling,txt,start,dir
);
math.dom = elem;
return math;
};
// getMathNode
math.getMathNode = function(node){
return twve.MathJax.inline.getMathNode(node);
};
// replaceWith
var preReplaceWith = math.replaceWith;
math.replaceWith = function(newnode,oldnode){
return preReplaceWith.call(
this,newnode,(oldnode||math.dom.parentNode)
);
};
// removeSelf
var preRemoveSelf = math.removeSelf;
math.removeSelf = function(){
math.dom = math.dom.parentNode;
return preRemoveSelf.apply(this,arguments);
};
// End of math.
return math.created(src,txt,start,dir);
}
};
//}}}
/***
!!! twve.tiddlerTitle extra features
***/
//{{{
merge(twve.tiddlerTitle, {
//}}}
/***
!!!! twve.tiddlerTitle.titleOfWrapper
***/
//{{{
titleOfWrapper : function(w,n){
var title = '';
var inline = twve.MathJax.inline.twveSelector();
var displayed = twve.MathJax.displayed.twveSelector();
var tags = null;
if ( ! w.childNodes ) return title;
for ( var i=0,len=w.childNodes.length; i<len; i++ ) {
var c = w.childNodes[i];
if ( twve.node.matches(c,inline.include) ) {
tags = twve.MathJax.inline.markupTags();
} else if ( twve.node.matches(c,displayed.include) ) {
tags = twve.MathJax.displayed.markupTags();
} else if ( twve.node.matches(c,'script') && tags ) {
title += tags.open[n] + c.textContent + tags.close[n];
tags = null;
} else {
title += c.textContent || c.nodeValue;
}
}
return title;
},
//}}}
/***
!!!! twve.tiddlerTitle.create
***/
//{{{
preCreateExtra : twve.tiddlerTitle.create,
create : function(src){
var tidTitle = twve.tiddlerTitle.preCreateExtra.call(this);
// titleOfWrapper
tidTitle.titleOfWrapper = function(){
var title = twve.tiddlerTitle.titleOfWrapper(
tidTitle.dom,0
);
tidTitle.tiddler = twve.tiddler.get(title);
if ( ! tidTitle.tiddler )
title = twve.tiddlerTitle.titleOfWrapper(
tidTitle.dom,1
);
return title;
};
return tidTitle.created(src);
}
});
//}}}
/***
!!! twve.wrapper extra features
***/
//{{{
merge(twve.wrapper,{
//}}}
/***
!!!! twve.wrapper.create
***/
//{{{
preCreateExtra : twve.wrapper.create,
create : function(){
var twwrap = twve.wrapper.preCreateExtra.apply(this,arguments);
//}}}
/***
!!!!! twwrap.isEditable
***/
//{{{
twwrap.isEditable = function(elem){
return twwrap.dom == elem ||
twve.node.contains(twwrap.dom,elem);
};
//}}}
/***
!!!!! twwrap.editNeighbor
***/
//{{{
twwrap.editNeighbor = function(which,delta){
// Edit the neighboring element(s) of editNode. The direction
// is specified in the first argument which: 'left', 'right',
// 'up', or 'down'.
// The second rgument, delta, specifies how far away
// the neighbor we are looking for. Default value is 1,
// meaning the immediate neighbor in the specified direction.
// Gather information.
if ( typeof delta !== 'number' ) delta = 1;
which = which ? which.toLowerCase() : 'right';
var nodes = twwrap.dom.childNodes;
var plen = nodes.length;
var index = twwrap.editNode.index;
var isBR = twwrap.editNode.dom.nodeName === 'BR';
var p = -1, cpos = 0;
switch(which){
case 'up':
//which = 'left';
case 'left':
p = index[0];
//if(p>2 && twve.node.matches(
// nodes[p-2],'span.MathJax_Preview'
//))
// p-=2;
p -= delta;
cpos = 'end';
break;
case 'down':
//which = 'right';
case 'right':
p = index[index.length-1];
if(twve.node.matches(
nodes[p],'span.MathJax_Preview'
))
p += 2;
p += delta;
// If the next neighbor is
if ( p < plen )
twwrap.editNode.next = nodes[p];
break;
}
if ( config.options.chktwveExtraCyclickNavi )
if ( p < 0 ) {
p = plen - 1;
twwrap.editNode.start.ndx = twwrap.end.ndx;
} else if ( p >= plen ) {
p = 0;
twwrap.editNode.end.ndx = twwrap.start.ndx;
}
if ( p >= 0 && p < plen ){
// Check if the current editNode contains only BR
// (an empty line).
// Save changes to this one.
twwrap.focusNode = twwrap.editNode;
twve.tiddler.updateText();
if(twwrap.focusNode.next &&
twwrap.focusNode.next != nodes[p])
p = twve.editable.nodeIndex(
nodes,twwrap.focusNode.next
);
twwrap.collectParagraphNodes(nodes,p,which);
if ( which === 'left' || which === 'up' ) {
// We are going backwrad,
if ( twwrap.focusNode.dom.nodeName === 'BR' ) {
// and the collected node is a mere BR, then
// that BR could be either
// 1. the end of the text to edit, or
// 2. an empty line.
// Skip to the even previous node(s) if case 1,
// or edit that empty line if case 2.
if ( twwrap.focusNode.dom
.previousSibling.nodeName !== 'BR' ) {
twwrap.editNode = twwrap.focusNode;
return twwrap.editNeighbor(which,1);
}
}
} else if ( ! isBR ) {
// We are going forward, and we are not editing
// an empty line.
if ( twwrap.focusNode.dom.nodeName === 'BR' ) {
// If the newly collected node is a mere BR,
// then that BR shall be the end of the text
// being currently edited. Skip to the even
// next node(s).
twwrap.editNode = twwrap.focusNode;
return twwrap.editNeighbor(which,1);
}
}
// Then edit the next one.
var ta = twwrap.editText();
cpos = twve.tiddler.editBoxCaret(ta,cpos);
twve.tiddler.setCaretPosition(cpos);
twwrap.scrollIntoView();
}
return twwrap;
};
//}}}
/***
!!!!! twwrap.adjustFocusNode
***/
//{{{
twwrap.adjustFocusNode = function(ndxstart,dn){
var focusNode = twwrap.focusNode;
if ( dn && focusNode ) {
// We have changed the number of nodes in the last
// refresh, and we have focusNode, then we need to
// adjust the focusNode if it is after the refreshed
// nodes.
var ndx0 = focusNode.index[0];
if ( ndx0 >= ndxstart ) {
// Yes the focusNode is after the refreshed nodes,
// recollect the nodes and update their indexes.
var newdom = twwrap.dom.childNodes;
var newlen = focusNode.index.length;
ndx0 += dn;
focusNode.dom = [];
focusNode.index = [];
for(var i=0; i<newlen; i++){
focusNode.dom[i] = newdom[ndx0+i];
focusNode.index[i] = ndx0+i;
}
}
}
return twwrap;
};
//}}}
/***
!!!!! twwrap.refreshSelf
***/
//{{{
var preRefreshSelf = twwrap.refreshSelf;
twwrap.refreshSelf = function(txt){
if ( twwrap.editNode ) {
// There is twwrap.editNode
//if ( txt === undefined ) txt = twwrap.getText();
var newdom = twve.tiddler.getPreviewedNodes(txt);
var newdomary = twve.nodeList.toArray(newdom);
// Get newdom to refresh.
var editdom = twwrap.editNode.dom;
var ndx0 = twwrap.editNode.index[0];
var dn = 0;
// Refresh the nodes.
if ( editdom ) {
if ( editdom.nodeType ) {
dn = newdom.length - 1;
// Single node
if(twve.node.matches(
editdom,'span.MathJax_Preview'
)){
editdom.parentNode.removeChild(
editdom.nextSibling
);
editdom.parentNode.removeChild(
editdom.nextSibling
);
}
twve.node.replace(newdom,editdom);
} else {
// Multiple newdom
dn = newdom.length - editdom.length;
for(var i=1,len=editdom.length; i<len; i++)
twwrap.dom.removeChild(editdom[i]);
twve.node.replace(newdom,editdom[0],twwrap.dom);
}
var len = newdomary.length;
twwrap.editNode.dom = len == 1
? newdomary[0] : newdomary;
twwrap.editNode.index = [ndx0];
for(var i=1; i<len; i++){
twwrap.editNode.index[i] = ndx0+i;
}
if ( twwrap.focusNode !== twwrap.editNode )
twwrap.adjustFocusNode(ndx0,dn);
}
/*
else {
if ( twwrap.editNode.next ) {
dn = newdom.length;
// Insert newdom before editNode.next.
for(var i=0,len=newdom.length; i<len; i++)
twwrap.dom.insertBefore(
newdom[0],twwrap.editNode.next
);
twwrap.adjustFocusNode(dn);
} else {
// Append newdom to twwrap.dom.
for(var i=0,len=newdom.length; i<len; i++)
twwrap.dom.appendChild(newdom[0]);
}
}
*/
return twwrap;
}
/*
else if ( twwrap.next ) {
// We are editing before the beginning of tiddler.
var newdom = twve.tiddler.getPreviewedNodes(txt);
var dn = newdom.length;
var first = twwrap.dom.firstChild;
for ( var i=0,len=newdom.length; i<len; i++ )
twwrap.dom.insertBefore(newdom[0],first);
twwrap.next = null;
twwrap.adjustFocusNode(dn);
return twwrap;
} else if ( twwrap.prev ) {
// We are editing after the end of tiddler.
var newdom = twve.tiddler.getPreviewedNodes(txt);
for ( var i=0,len=newdom.length; i<len; i++ )
twwrap.dom.appendChild(newdom[0]);
twwrap.prev = null;
return twwrap;
}
*/
return preRefreshSelf.apply(this,arguments);
};
//}}}
/***
!!!!! twwrap.needsRefresh
***/
//{{{
var preNeedsRefresh = twwrap.needsRefresh;
twwrap.needsRefresh = function(tworg,sec_org,sec_this){
var result = preNeedsRefresh.apply(this,arguments);
if ( result && tworg.editNode ) {
// This wrapper needs refresh and the original wrapper has
// editNode, find its copy in this one.
var nodes = twwrap.dom.childNodes;
var index = tworg.editNode.index;
if ( sec_org == sec_this ) {
// This wrapper contains exactly the same content as the
// original.
if ( index.length == 1 ) {
var p = index[0];
twwrap.collectNode(nodes[p],p);
} else {
var len = index.length;
for(var i=0; i<len; i++){
twwrap.collectNode(
nodes[index[i]],index[i]
);
}
}
} else {
// This wrapper contains different content as the
// original, one of them must contain partial while
// the other contains full content.
var p0 = index[0];
var p1 = index[index.length-1];
if ( ! sec_org ) {
// The original contains full while this one
// contains partial (section) content. Determine
// whether editNode lies in this section or not.
if ( twwrap.rIndex === undefined ) return result;
if(p0 < twwrap.rIndex ||
p1>(twwrap.rIndex+twwrap.dom.childNodes.length))
// The node to refresh is either before or after
// this section, no need to refresh.
return false;
// Otherwise find the corresponding index within
// this section and collect them to refresh.
for ( var p=p0,n=0; p<=p1; p++,n++ )
twwrap.collectNode(nodes[n],n);
return true;
} else {
// Otherwise, the original contains partial (section)
// while this one contains full content. Check if
// there is also a folded section containing that
// section. If so, that folded section will take, or
// already took care of the refresh, no need to do it
// here.
if ( twve.node.matches(
nodes[tworg.rIndex],
twve.foldedSection.getSelector()
) )
return false;
// Otherwise collect the nodes to refresh.
for ( var p=p0,n=p0+tworg.rIndex; p<=p1; p++,n++ )
twwrap.collectNode(nodes[n],n);
return true;
}
}
}
return result;
};
//}}}
/***
!!!!! twwrap.getOpen
***/
//{{{
twwrap.getOpen = function(){
//var start = twwrap.start.ndx;
return twwrap.editNode && twwrap.editNode.start
//? (twwrap.editNode.start.ndx+start)
? (twwrap.editNode.start.ndx)
: (twwrap.focusNode && twwrap.focusNode.start
//? (twwrap.focusNode.start.ndx+start)
? (twwrap.focusNode.start.ndx)
: 0);
};
//}}}
/***
!!!!! twwrap.getClose
***/
//{{{
twwrap.getClose = function(){
var start = twwrap.start.ndx;
return twwrap.editNode && twwrap.editNode.end
//? (twwrap.editNode.end.ndx+start)
? (twwrap.editNode.end.ndx)
: (twwrap.focusNode && twwrap.focusNode.end
//? (twwrap.focusNode.end.ndx+start)
? (twwrap.focusNode.end.ndx)
: (twwrap.end.ndx-start));
};
//}}}
/***
!!!!! twwrap.getText
***/
//{{{
twwrap.getText = function(action){
var txt = twwrap.tiddler.text;
var start = twwrap.start.ndx;
return (action && action.toLowerCase().indexOf('content')>=0)
? txt.substring(start,twwrap.end.ndx)
: twwrap.substring(
txt,twwrap.getOpen()+start,twwrap.getClose()+start
);
};
//}}}
/***
!!!!! twwrap.wrapperText
***/
//{{{
//twwrap.wrapperText = function(){
// return twwrap.getText('content');
//};
//}}}
/***
!!!!! twwrap.setText
***/
//{{{
var preSetText = twwrap.setText;
twwrap.setText = function(newtxt,dlen){
if ( typeof dlen === 'number' )
// Called from a child node, set the text directly.
return preSetText.call(this,newtxt,dlen);
// Called from this wrapper itself, prepare the text.
var txt = twwrap.getText('content');
var open = twwrap.getOpen();
var close = twwrap.getClose();
var charblock = '!|#*>';
if ( close > open + 1 ) {
// If the original text is more than one characters,
// check for leading and ending newlines.
if ( txt.charAt(open) == '\n' ) {
// This editable starts with a \n,
if ( txt.charAt(close-1) == '\n' ) {
// and ends with a \n as well, we are editing some
// of its child blockelement.
if ( newtxt ) {
var p = newtxt.lastIndexOf('\n');
// We are not removing this blockelement,
if (charblock.indexOf(newtxt.charAt(0))>-1) {
// and the newtxt starts with a
// bockelement, keep the opening \n;
open++;
if ( p < newtxt.length-1 )
// There is no closing \n in the newtxt,
// keep the original one.
close--;
} else if(p>-1 && p<newtxt.length &&
charblock.indexOf(newtxt.charAt(p+1))>-1){
// The newtxt ends with a blockelement
// and does not have a closing \n,
// keep the original one.
close--;
}
} else {
// We are removing this blockelement, keep
// one of them.
open++;
}
} else {
// and ends not with a \n, we could be editing
// some plain text and/or inline elements,
// possibly mixing with a beginning block
// element. Check it.
if ( charblock.indexOf(txt.charAt(open+1)) > -1 ) {
// Yes there is a begining block element,
// keep the beginning \n.
open++;
}
}
/*
} else if ( open == 0 ) {
// We are editing something at the very beginning
// of a tiddler,
if ( newtxt &&
charblock.indexOf(txt.charAt(open)) > -1 &&
txt.charAt(close-1) == '\n' ) {
// and we are not removing the whole text that
// is a block element, keep the ending \n if
// there is one.
close--;
}
*/
} else if ( newtxt &&
charblock.indexOf(txt.charAt(open)) > -1 &&
txt.charAt(close-1) == '\n' ) {
// We are not removing the whole text that
// is a block element, keep the ending \n if
// there is one.
close--;
}
}
dlen = newtxt.length - (close-open);
txt = txt.substring(0,open)
+ newtxt
+ txt.substring(close);
if ( dlen ) {
if ( twwrap.editNode ) {
twwrap.editNode.end.ndx += dlen;
}
if ( twwrap.focusNode &&
twwrap.focusNode != twwrap.editNode ) {
if ( twwrap.focusNode.end.ndx > open )
twwrap.focusNode.end.ndx += dlen;
if ( twwrap.focusNode.start.ndx >= close )
twwrap.focusNode.start.ndx += dlen;
//console.log('setText: focus=('+twwrap.focusNode.start.ndx+','+twwrap.focusNode.end.ndx+')');
}
}
// Set it back
return preSetText.call(this,txt,dlen);
};
//}}}
/***
!!!!! twwrap.updateText
***/
//{{{
var preUpdateText = twwrap.updateText;
twwrap.updateText = function(txt,refreshed){
var result = preUpdateText.call(this,txt,refreshed);
twwrap.editNode = null;
return result;
};
//}}}
/***
!!!!! twwrap.editText
***/
//{{{
var preEditText = twwrap.editText;
twwrap.editText = function(ev,txt,elem){
if ( ! twve.tiddler.focusBoxVisible() ) return null;
if ( twwrap.focusNode ) {
var eb = twve.tiddler.focusBox();
if ( eb && eb[0].width == 0 ) {
// Focusing on an empty node. Check if it's a
// transcluded content.
var wrap = twve.tiddler.createEditableWrapper(
twwrap.focusNode.dom
);
if (wrap) return wrap.editText(ev);
}
twwrap.editNode = twwrap.focusNode;
if ( twwrap.editNode.editText )
return twwrap.editNode.editText(ev,txt,elem);
} else if ( ! twwrap.tiddler ) {
twwrap.tiddler = store.createTiddler(
twwrap.wrapper_title
);
twwrap.tiddler.tags.push('autoCreate');
twwrap.tiddler.creator = config.options.txtUserName;
}
return preEditText.apply(this,arguments);
};
//}}}
/***
!!!!! end of twwrap
***/
//{{{
return twwrap;
}
});
//}}}
/***
!!! twve.sliderPanel extra features
***/
//{{{
merge(twve.sliderPanel, {
//}}}
/***
!!!! twve.sliderPanel.isButton
***/
//{{{
isButton : function(node,skip){
return (skip || node.nodeName == 'A') &&
twve.node.matches(
node.nextSibling,twve.sliderPanel.getSelector()
);
},
//}}}
/***
!!!! twve.sliderPanel.box
***/
//{{{
preBox : null,
box : function(node){
var eb = twve.sliderPanel.preBox.apply(this,arguments);
if ( twve.sliderPanel.isButton(node) ) {
// A slider panel button, includes the box of the content
// wrapper if it is visible.
var ebc=twve.sliderPanel.preBox.call(this,node.nextSibling);
if ( ebc ) {
if ( eb.left > ebc.left ) eb.left = ebc.left;
if ( eb.right < ebc.right ) eb.right = ebc.right;
eb.bottom = ebc.bottom
eb.width = eb.right - eb.left;
eb.height = eb.bottom - eb.top;
}
}
return eb;
}
});
//}}}
/***
!!! twve.foldedSection extra features
***/
//{{{
merge(twve.foldedSection, {
//}}}
/***
!!!! twve.foldedSection.titleOfTiddler
***/
//{{{
titleOfTiddler : function (w) {
// <<foldHeadings>> folded wrapper.
// The <<foldHeadings>> folded wrapper does not store the tiddler
// and section title. We need to construct it. This method
// obtains its tiddler title
// The following lines of codes cause "too much recursion" error
// for reasons unknown to me yet. Fortunately the workaround is
// easy: temporarily disable this type of wrapper.
var status = twve.foldedSection.enableEdit;
twve.foldedSection.enableEdit = false;
var p = twve.node.closest(
w.parentNode,
twve.tiddler.wrapperSelectors().include
);
var title = twve.tiddler.titleOfWrapper(p);
twve.foldedSection.enableEdit = status;
return title;
},
//}}}
/***
!!!! twve.foldedSection.titleOfSection
***/
//{{{
titleOfSection : function (w) {
// <<foldHeadings>> folded wrapper.
// The <<foldHeadings>> folded wrapper does not store the tiddler
// and section title. We need to construct it. This method
// obtains the section title.
var prev = w.previousSibling;
if ( ! prev ) return '';
var status = twve.foldedSection.enableEdit;
twve.foldedSection.enableEdit = false;
// ------------------------------------------------------------
// The following line of codes causes "too much recursion" error
// when this folded section is within another folded section.
// The solution: temporarily disable this type of wrapper.
var sec = twve.heading.getTitle(prev,true);
// ------------------------------------------------------------
twve.foldedSection.enableEdit = status;
return sec;
},
//}}}
/***
!!!! twve.foldedSection.titleOfWrapper
***/
//{{{
titleOfWrapper : function (w) {
// <<foldHeadings>> folded wrapper.
// The <<foldHeadings>> folded wrapper does not store the tiddler
// and section title. We construct it and store it as an
// attribute named "fullTitle".
var title = w.getAttribute('fullTitle');
if ( ! title ) {
title = twve.foldedSection.titleOfTiddler(w) +
config.textPrimitives.sectionSeparator +
twve.foldedSection.titleOfSection(w);
w.setAttribute('fullTitle',title);
}
return title;
},
//}}}
/***
!!!! twve.foldedSection.wrapperFromTitle
***/
//{{{
wrapperFromTitle : function(title,parent,sec){
// <<foldHeadings>> folded wrappers
// First we collect all foldedHeadings folded wrappers, then
// compare their title and keep those that match the given one.
var w0 = twve.nodeList.querySelectorAll(
parent,
twve.foldedSection.getSelector()
);
if ( ! w0 ) return null;
var w = [];
for (var i=0,len=w0.length; i<len; i++) {
var sp_title = twve.foldedSection.titleOfWrapper(w0[i]);
var sp_sec = twve.text.tiddlerSection(sp_title);
sp_title = twve.text.tiddlerTitle(sp_title);
if ( sp_title != title ) continue;
// This wrapper has the same title we are looking for.
if ( sec ) {
// We are searching wrappers with a definite section.
if ( !sp_sec || sp_sec == sec )
// This wrapper contains the whole tiddler, or
// the same section, keep it.
w[w.length] = w0[i];
} else {
// We are searching a whole tiddler, keep it no matter what.
w[w.length] = w0[i];
}
}
return w;
},
//}}}
/***
!!!! twve.foldedSection.headingCreate
***/
//{{{
preHeadingCreate : null,
headingCreate : function(){
var h=twve.foldedSection.preHeadingCreate.apply(this,arguments);
// removeSelf
var preRemoveSelf = h.removeSelf;
h.removeSelf = function(){
var sp = h.dom.nextSibling;
var foled_selector = twve.foldedSection.getSelector();
if( twve.node.matches(sp,foled_selector) ){
twve.node.show(sp);
var content = sp.childNodes;
var prev = h.dom.previousSibling;
var parent = sp.parentNode;
if ( twve.node.matches(prev,foled_selector) ) {
// There is folded section before this heading,
// merge the content.
var visible = twve.node.isVisible(prev);
twve.node.show(prev);
for ( var i=0,len=content.length; i<len; i++ )
prev.appendChild(content[0]);
if ( ! visible ) twve.node.hide(prev);
} else {
for ( var i=0,len=content.length; i<len; i++ )
parent.insertBefore(content[0],sp);
}
parent.removeChild(sp);
}
return preRemoveSelf.apply(this);
};
return h;
},
//}}}
/***
!!!! twve.foldedSection.inactiveTags
***/
//{{{
preInactiveTags : null,
inactiveTags : function(){
var tags = twve.foldedSection.preInactiveTags.apply(this);
return twve.blockquote
? twve.blockquote.markupTags('inactive').merge(tags)
: tags;
},
//}}}
/***
!!!! twve.foldedSection.hijackInactiveTags
***/
//{{{
/*
hijackInactiveTags : function(){
twve.foldedSection.preInactiveTags = twve.tags.inactiveTags;
twve.tags.inactiveTags = twve.foldedSection.inactiveTags;
},
*/
//}}}
/***
!!!! twve.foldedSection.releaseInactiveTags
***/
//{{{
releaseInactiveTags : function(){
twve.tags.inactiveTags = twve.foldedSection.preInactiveTags;
},
//}}}
/***
!!!! twve.foldedSection.create
***/
//{{{
create : function(src,txt,start,dir){
var section = twve.transcludedElem.create(src,txt,start,dir)
|| twve.wrapper.create();
// clone
section.clone = function(){
// Optional, may save a tiny bit of time.
return twve.foldedSection.create(section);
};
//}}}
/***
!!!!! section.findWrappers
***/
//{{{
//var preFindWrappers = section.findWrappers;
section.findWrappers = function(h){
if ( ! section.wrapper ) {
// If wrapper has not yet been searched, find them.
//if ( ! h ) h = section.getHeading();
if ( (section.wrapper = h.findWrappers()) ) {
// Then remove the direct parents of this folded section.
var parents = twve.node.parents(
section.dom,
twve.tiddler.wrapperSelectors().include
);
if ( parents )
for(var i=0,len=parents.length; i<len; i++){
var p = section.wrapper.indexOf(parents[i]);
if ( p > -1 ) section.wrapper.splice(p,1);
}
} else {
// Wrapper has been removed
console.log('wrapper not found for '+twve.node.info(section.dom)+' wrapper:'+section.wrapper);
}
}
return section.wrapper;
};
//}}}
/***
!!!!! section.box
***/
//{{{
var preBox = section.box;
section.box = function(){
return section.isVisible()
? preBox.apply(this,arguments)
: twve.node.box(section.dom.previousSibling);
};
//}}}
/***
!!!!! section.getHeading
***/
//{{{
section.getHeading = function(elem){
if ( ! elem ) elem = section.dom;
if ( ! elem ) return null;
var prev = elem.previousSibling;
return prev ? twve.heading.create(prev) : null;
};
//}}}
/***
!!!!! section.setElement
***/
//{{{
section.setElement = function(elem){
section.dom = elem;
var h = section.getHeading();
if ( ! h ) return null;
// Find the start: the end of the previous heading
section.wrapper_title = h.wrapper_title;
section.tiddler = h.tiddler;
section.findWrappers(h);
section.start.ndx = h.end.ndx;
section.rIndex = h.rIndex + 1;
if ( ! h.tiddler ) return section;
// Find the end, i.e., the closest of the beginning of
// the followings cases:
// 1. the next heading;
// 2. the <<foldHeadings>> macro command;
// 3. the closing tag of a blockexample, <<<.
var macro = twve.foldedSection.macro();
section.end.ndx = h.tiddler.text.indexOf(
macro, section.start.ndx
);
if ( section.end.ndx > -1 )
// Include the macro command itself.
section.end.ndx += macro.length;
else
// There is no macro command, temporarily set the end of
// section to the end of tiddler.
section.end.ndx = section.tiddler.text.length;
// Check for blockexamples.
if ( twve.node.closest(
elem,twve.blockquote.getSelector()
)) {
// This section is contained within a blockexample,
// compare the position of the blockexample and the
// current end, and choose the closer one.
var bqend = h.tiddler.text.indexOf(
twve.blockquote.blockExampleClose(),
section.start.ndx
);
if ( bqend > -1 && bqend < section.end.ndx )
section.end.ndx = bqend;
}
// Temporarily disables headings within BLOCKQUOTES, because
// blockquotes are considered as single element when gets
// folded, and our real end of section should be after the
// blockquotes.
//twve.foldedSection.hijackInactiveTags();
h.rIndex = -1;
h.dIndex = elem.querySelectorAll(
twve.heading.getSelector()
).length;
h.starts(section.start);
// Determine the end of section.
if ( h.start.ndx > -1 &&
h.start.ndx < section.end.ndx )
// There is a next heading that is closer then the
// current section end, change it to the beginning of
// the heading.
section.end.ndx = h.start.ndx;
// Restore back the previous inactive checking procedure.
//twve.foldedSection.releaseInactiveTags();
return section;
};
//}}}
/***
!!!!! End of section.
***/
//{{{
return section.created(src,txt,start,dir);
}
});
}());
//}}}
[[twve--Example--Headings]]
[[twve--Example--List Items]]
[[twve--Example--Blockquotes]]
[[twve--Example--Styled Text]]
[[twve--Example--Plain Text]]
[[twve--Example--Over Width Inline Elements]]
[[twve--Example--MathJax--Displayed]]
[[twve--Example--Transclusion--Macros]]
[[twve--Example--Folded Sections]]
/***
|editable|k
|''Name:''|twve.extra|
|''Description:''|View mode editing features for block elements (other than tables), in-line elements, and plain text in ~TidfdlyWiki environment|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.extra.min / http://twve.tiddlyspace.com/#twve.extra.min <br>* (regular) http://twve.tiddlyspot.com/#twve.extra / http://twve.tiddlyspace.com/#twve.extra|
|''Type:''|plugin|
|''Version:''|3.2.5|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery <br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.6.5|
|''Needs to have:''|twve.core|
!!Options
Look for [[twve.extra Options]] in the Options Panel.
***/
// @@display:none;
//{{{
"undefined"==typeof twve&&alert("twve.extra: This plugin needs twve.core to function properly. Please install twve.core before this one.");version.extensions.twve.extra={major:3,minor:2,revision:5,date:new Date("2015/11/06")};
config.macros.twveExtraOptions={init:function(){twve.extra.preKeydownAfter=twve.tiddler.keydownAfter;twve.tiddler.keydownAfter=twve.extra.keydownAfter;twve.extra.preGetPreviewer=twve.tiddler.getPreviewer;twve.tiddler.getPreviewer=twve.extra.getPreviewer;twve.extra.preGetOptionsMenu=twve.tiddler.getOptionsMenu;twve.tiddler.getOptionsMenu=twve.extra.getOptionsMenu;twve.extra.preUpdateText=twve.tiddler.updateText;twve.tiddler.updateText=twve.extra.updateText;twve.MathJax.displayed.preLastIndexOf=twve.text.lastIndexOf;
twve.text.lastIndexOf=twve.MathJax.displayed.lastIndexOf;twve.extra.preInactiveTags=twve.tags.inactiveTags;twve.tags.inactiveTags=twve.extra.inactiveTags;twve.MathJax.preWikify=twve.node.wikify;twve.node.wikify=twve.MathJax.wikify;twve.heading.preWikify=twve.node.wikify;twve.node.wikify=twve.heading.wikify;twve.MathJax.preBox=twve.node.box;twve.node.box=twve.MathJax.box;twve.sliderPanel.preBox=twve.node.box;twve.node.box=twve.sliderPanel.box;twve.foldedSection.preHeadingCreate=twve.heading.create;
twve.heading.create=twve.foldedSection.headingCreate;twve.MathJax.preHeadingClick=twve.heading.click;twve.heading.click=twve.MathJax.headingClick;twve.MathJax.preFold=twve.wrapper.fold;twve.wrapper.fold=twve.MathJax.fold;twve.MathJax.prePrepareElements=twve.wrapper.prepareElements;twve.wrapper.prepareElements=twve.MathJax.prepareElements;twve.MathJax.preRestoreFoldable=twve.wrapper.restoreFoldable;twve.wrapper.restoreFoldable=twve.MathJax.restoreFoldable;twve.extra.preSetOption=setOption;setOption=
twve.extra.setOption;void 0===config.options.chktwveExtraIncludeSubs&&(config.options.chktwveExtraIncludeSubs=void 0===config.options.chkTWtedIncludeSubs?!1:config.options.chkTWtedIncludeSubs);void 0===config.options.chktwveExtraInline&&(config.options.chktwveExtraInline=!0);void 0===config.options.chktwveExtraLocateChar&&(config.options.chktwveExtraLocateChar=!1);void 0===config.options.chktwveExtraNoClick&&(config.options.chktwveExtraNoClick=void 0===config.options.chkTWtedNoClick?!1:config.options.chkTWtedNoClick);
void 0===config.options.txttwveExtraPreviewOpacity&&(config.options.txttwveExtraPreviewOpacity=void 0===config.options.txtTWtedPreviewOpacity?"1.00":config.options.txtTWtedPreviewOpacity);void 0===config.options.chktwveExtraMathAutoNumber&&(config.options.chktwveExtraMathAutoNumber=!1);merge(config.optionsDesc,{chktwveExtraIncludeSubs:"Include sub-elements to edit. For example, sub lists are included in the editbox if this option is set to true.",chktwveExtraInline:"Edit inline elements.",chktwveExtraLocateChar:"(@@color:red;Experimental@@) Character by character editing.",
chktwveExtraNoClick:"Edit element content without clicking it.",txttwveExtraPreviewOpacity:"Opacity of the previewer. Default to 0.9.",chktwveExtraMathAutoNumber:"~MathJax auto numbering."});var a=config.shadowTiddlers.OptionsPanel,b=a.indexOf("[[twve.core Options");0<=b&&(b=a.indexOf("]]\n",b+2)+3,config.shadowTiddlers.OptionsPanel=a.substring(0,b)+"[[twve.extra Options|twve.extra Options]]\n"+a.substring(b));merge(config.shadowTiddlers,{"twve.extra Options":"<<twveExtraOptions>>"});twve.tiddler.registerElement(twve.blockquote);
twve.tiddler.registerElement(twve.cssWrapper);twve.tiddler.registerElement(twve.listitem);twve.tiddler.registerElement(twve.tabset);twve.tiddler.registerElement(twve.heading);twve.tiddler.registerElement(twve.img);twve.tiddler.registerElement(twve.pre);twve.tiddler.registerElement(twve.code);twve.tiddler.registerElement(twve.span);twve.tiddler.registerElement(twve.MathJax.inline);twve.tiddler.registerElement(twve.MathJax.displayed);twve.tiddler.registerElement(twve.styledText.strike);twve.tiddler.registerElement(twve.styledText.under);
twve.tiddler.registerElement(twve.styledText.italic);twve.tiddler.registerElement(twve.styledText.bold);twve.tiddler.registerWrapper(twve.foldedSection)},order:{chktwveExtraIncludeSubs:1,chktwveExtraInline:2,chktwveExtraLocateChar:3,chktwveExtraNoClick:4,txttwveExtraPreviewOpacity:5,chktwveExtraMathAutoNumber:6},handler:function(a){config.macros.twveCoreOptions.showOptionsTable(a,"''twve.extra'' Options","twveExtra",config.macros.twveExtraOptions.order)}};
twve.extra={preSetOption:null,setOption:function(a,b){twve.extra.preSetOption.apply(this,arguments)},preGetPreviewer:null,getPreviewer:function(){var a=twve.extra.preGetPreviewer.apply(this,arguments);a.style.opacity=config.options.txttwveExtraPreviewOpacity;return a},preGetOptionsMenu:null,getOptionsMenu:function(){var a=twve.extra.preGetOptionsMenu.apply(this,arguments);a.addMenu("''twve.extra'' Options",config.macros.twveExtraOptions.handler);return a},preInactiveTags:null,inactiveTags:function(){return twve.extra.preInactiveTags.apply().merge(twve.MathJax.displayed.markupTags()).merge(twve.MathJax.inline.markupTags())},
keydownChar:function(a,b){if(twve.tiddler.keydownCancel(a,b))return!1;var e=twve.tiddler.caret_pos,d=twve.tiddler.cur_editable;switch(a.which){case 46:if(d.offset.end>d.offset.start){twve.tiddler.updateText([b],d,!1,!0);break}var c=d.offset.nextNode;switch(c.nodeValue.length){case 1:d.offset.nextNode=c.nextSibling;c.parentNode.removeChild(c);break;case 0:break;default:d.offset.nextNode=c.splitText(1),c.parentNode.removeChild(c),d.offset.end++,twve.tiddler.updateText([b],d,!0,!0),d.curNode&&d.curNode.end.ndx--,
d.setFocusOffset(b),d.offset.end--}break;case 8:if(a.alterKey)return!1;if(d.offset.end>d.offset.start){twve.tiddler.updateText([b],d,!1,!0);break}e=d.offset.focusNode;c=e.nodeValue.length;switch(c){case 1:d.offset.nextNode=e.nextSibling;d.offset.focusNode=e.previousSibling;e.parentNode.removeChild(e);break;case 0:break;default:e=e.splitText(c-1),e.parentNode.removeChild(e),d.offset.start--,twve.tiddler.updateText([b],d,!0,!0),d.curNode&&d.curNode.end.ndx--,d.setFocusOffset(b,null,-1),d.offset.end--,
twve.tiddler.setCaretPosition(d.offset.end)}break;case 33:case 34:case 35:case 36:break;case 37:if(a.ctrlKey)return!1;twve.tiddler.updateText([b],d,!0,!0);d.setFocusOffset(b,null,-1);d.offset.start=d.offset.end=e.cur-1;twve.tiddler.setCaretPosition(d.offset.end);break;case 38:if(a.ctrlKey)return!1;break;case 39:if(a.ctrlKey)return!1;twve.tiddler.updateText([b],d,!0,!0);d.setFocusOffset(b,null,1);d.offset.start=d.offset.end=e.cur+1;twve.tiddler.setCaretPosition(d.offset.end);break;case 40:if(a.ctrlKey)return!1;
break;default:var f=b.value;b.value="";d.typed+=f;for(var h=twve.tiddler.getPreviewedNodes(f),g=d.nodendx.e0,c=d.offset.nextNode;h.length;)d.inserted[d.inserted.length]=g.insertBefore(h[0],c);f=f.length;d.setFocusOffset(b,null,f,c);twve.tiddler.setCaretPosition(e.cur+f)}return!0},preKeydownAfter:null,keydownAfter:function(a,b){if(config.options.chktwveExtraLocateChar)return twve.extra.keydownChar(a,b);if(!twve.extra.preKeydownAfter.apply(this,arguments))return!1;var e=twve.tiddler.caret_pos,d=twve.tiddler.cur_editable,
c=b.value;switch(a.which){case 37:if(a.ctrlKey)return!1;c?0==e.cur&&0==e.last&&d.editNeighbor("left"):d.editNeighbor("left");break;case 38:if(a.ctrlKey){if(d=d.move("up",1))twve.tiddler.focusElem(d),d.editText();return!1}(!c||0==e.cur&&0==e.last)&&d.editNeighbor("up");break;case 39:if(a.ctrlKey)return!1;c?e.cur==c.length&&e.last==e.cur&&d.editNeighbor("right"):d.editNeighbor("right");break;case 40:if(a.ctrlKey){if(d=d.move("down",1))twve.tiddler.focusElem(d),d.editText();return!1}(!c||e.cur==c.length&&
e.last==e.cur)&&d.editNeighbor("down")}return!0},preUpdateText:null,updateText:function(a,b,e,d){b||(b=twve.tiddler.cur_editable);b&&(config.options.chktwveExtraLocateChar?(b.getElement().normalize(),a||(a=twve.tiddler.getEditBox()),a&&(a[0].value=a[0].defaultValue.substring(0,b.offset.start)+b.typed+a[0].defaultValue.substring(b.offset.end),twve.extra.preUpdateText.call(this,a,b,e,d),d&&(b.curNode&&(b.curNode.end.ndx+=b.typed.length),a[0].defaultValue=a[0].value,b.typed=b.deleted=a[0].value=""))):
twve.extra.preUpdateText.call(this,a,b,e,d));return b}};
merge(twve.tiddler,{editWrappers:function(){return!0},prePrepareFocusBordersExtra:twve.tiddler.prepareFocusBorders,prepareFocusBorders:function(a){var b=a.length,e=twve.tiddler.border_top.length,d=twve.tiddler.border_top[0].parentNode;if(2>b)twve.tiddler.prePrepareFocusBordersExtra.apply(this,arguments);else{var c=twve.node.positionShift();a.top=a[0].top+c.top;a.right=a[0].right+c.left;a.bottom=a[0].bottom+c.top;a.left=a[0].left+c.left;a.height=a[0].height;a.width=a[0].width;twve.tiddler.prePrepareFocusBordersExtra.call(this,
a);for(var f=1;f<b;f++)f>=e&&(twve.tiddler.border_left[f]=twve.tiddler.createFocusBorder(d,"left"),twve.tiddler.border_top[f]=twve.tiddler.createFocusBorder(d,"top"),twve.tiddler.border_bottom[f]=twve.tiddler.createFocusBorder(d,"bottom"),twve.tiddler.border_right[f]=twve.tiddler.createFocusBorder(d,"right")),twve.node.setPosition(twve.tiddler.border_left[f],a[f].left+c.left,a[f].top+c.top),twve.node.setDimension(twve.tiddler.border_left[f],null,a[f].height),twve.node.setPosition(twve.tiddler.border_top[f],
a[f].left+c.left,a[f].top+c.top),twve.node.setDimension(twve.tiddler.border_top[f],a[f].width),twve.node.setPosition(twve.tiddler.border_bottom[f],a[f].left+c.left,a[f].bottom+c.top),twve.node.setDimension(twve.tiddler.border_bottom[f],a[f].width),twve.node.setPosition(twve.tiddler.border_right[f],a[f].right+c.left,a[f].top+c.top),twve.node.setDimension(twve.tiddler.border_right[f],null,a[f].height)}if(b<e){for(f=e-1;f>=b;f--)d.removeChild(twve.tiddler.border_left[f]),d.removeChild(twve.tiddler.border_top[f]),
d.removeChild(twve.tiddler.border_bottom[f]),d.removeChild(twve.tiddler.border_right[f]);e-=b;twve.tiddler.border_left.splice(b,e);twve.tiddler.border_top.splice(b,e);twve.tiddler.border_bottom.splice(b,e);twve.tiddler.border_right.splice(b,e)}return b},editBoxShown:function(a){return 4<a.offsetWidth},prePreviewEditBox:twve.tiddler.previewEditBox,previewEditBox:function(a){return!twve.tiddler.editBoxShown(a)?(twve.node.hide(twve.tiddler.getPreviewer()),null):twve.tiddler.prePreviewEditBox.apply(this,
arguments)},tagsInfo:function(a,b,e,d){var c=twve.object.create();c.start=twve.position.create(e,"");c.start.len=0;c.end=twve.position.create(e,"");c.end.len=0;if(3!=a.nodeType){var f=null;if("HR"==a.nodeName){e=b.charAt(c.start.ndx);if("-"==e)return c.end.ndx+=5,c;if("<"==e&&(c.end.ndx=b.indexOf(">",c.start.ndx)+1,0<c.end.ndx))return c}else if("SPAN"==a.nodeName){if("&"==b.charAt(c.start.ndx))return c.end.ndx=b.indexOf(";",c.start.ndx+1)+1,c;if("--"==b.substring(c.start.ndx,c.start.ndx+2))return c.end.ndx=
c.start.ndx+2,c;if(a.classList.contains("tcalc"))return c.end.ndx=c.start.ndx+a.title.length,c;if(a.classList.contains("sliderPanel"))return c.end.copyFrom(twve.foldedSection.create(a).end),c;f=twve.MathJax.displayed.is(a)?twve.MathJax.displayed.markupTags():twve.MathJax.inline.is(a)?twve.MathJax.inline.markupTags():1==a.classList.length&&"{{"==b.substring(c.start.ndx,c.start.ndx+2)?twve.tags.create("{{"+a.classList.item(0)+"{","}}}"):twve.tiddler.markupTags(a,"parent")}else if("A"==a.nodeName)if(twve.sliderPanel.isButton(a,
!0))f=twve.sliderPanel.markupTags();else if(a.classList.contains("button"))f=twve.tags.create("<<",">>");else return f=twve.link.markupTags(),b.substring(c.start.ndx,c.start.ndx+f.open.length)==f.open?(c.start.matched=f.open,c.start.len=f.open.length,c.end.ndx=c.start.ndx+c.start.len,c.end=twve.text.indexOf(b,f.close,c.end),c.end.len=f.close.length,c.tags=f):c.end.ndx=c.start.ndx+a.textContent.length,c;else{if(twve.node.matches(a,twve.listitem.twveSelector(null,"parent").include))return f=twve.listitem.markupTags(),
c.end=twve.text.consecutiveLinesEnd(b,c.end,!0,twve.listitem.leadingChars(),f),c.end.len=1,c.tags=f,c;if("BR"==a.nodeName)return"\n"==b.charAt(e)?(c.start.ndx=c.end.ndx=e,c.end.len=1):"<br"==b.substring(e,e+3).toLowerCase()?(c.start.ndx=e,c.end.ndx=b.indexOf(">",e+1)+1):e<b.length&&console.log("Internal Error: BR encountered but neither newline nor <br> was found. start="+e+"/"+b.length+" subtxt=["+b.substring(e,e+50)+"]"),c;f=twve.tiddler.markupTags(a,"parent");!f&&"DIV"==a.nodeName&&(f=twve.tiddler.markupTags(a.firstChild,
"parent"))}if(f){c.tags=f;"number"!=typeof d&&(d=0);do if(c.start=f.nextOpenTag(b,c.start),-1==c.start.ndx)return c;while(0<--d);0<=c.start.matched.indexOf("@@")?c.start.len=2+twve.text.skipStyleText(b.substring(c.start.ndx+2)):c.start.len=c.start.matched.length;f=f.exactCloseTag(c.start.matched);c.end.ndx=c.start.ndx+c.start.len;c.end.matched=c.start.matched;c.end=f.matchedCloseTag(b,c.end);-1==c.end.ndx?(c.end.ndx=c.start.ndx,c.end.len=c.start.len):c.end.len="\\end{"==c.end.matched?b.indexOf("}",
c.end.ndx)-c.end.ndx+1:c.end.matched.length}else a.nextSibling?(a=twve.tiddler.tagsInfo(a.nextSibling,b,c.end.ndx),c.end.ndx=a.start.ndx):c.end.ndx=b.length}else c.start.len="~"==b.charAt(c.start.ndx)?1:0,c.end.ndx=c.start.ndx+c.start.len+a.nodeValue.length;return c},selectionOffset:function(a,b,e,d,c,f){var h=f?f.toLowerCase().charAt(0):"";f="e"!=h;for(var h="s"!=h,g="number"==typeof e.start?e.start:e.start.outer,m="number"==typeof e.end?e.end:e.end.outer,p=0,q=b.length;p<q;p++){var l=b[p],k=twve.tiddler.tagsInfo(l,
c,!h?d.start:d.end);if(p<g)f&&(d.start=k.end.ndx+k.end.len),h&&(d.end=d.start);else{if(f&&p==g&&("object"==typeof e.start?(d.start=k.start.ndx+k.start.len,d=twve.tiddler.selectionOffset(a,l.childNodes,{start:e.start.inner,end:e.start.inner},d,c,"start")):d.start=k.start.ndx+("BR"==l.nodeName?0:k.start.len+a.anchorOffset),!h))break;if(h)if(p==m){a.focusNode==a.anchorNode&&a.focusOffset==a.anchorOffset?d.end=d.start:"object"==typeof e.end?(d.end=k.start.ndx+k.start.len,d=twve.tiddler.selectionOffset(a,
l.childNodes,{start:e.end.inner,end:e.end.inner},d,c,"end")):d.end=k.start.ndx+("BR"==l.nodeName?0:k.start.len+a.focusOffset);break}else d.end=k.end.ndx+k.end.len}}return d}});
merge(twve.node,{preBoxExtra:twve.node.box,box:function(a,b,e){twve.node.matches(a,twve.heading.getSpanSelector())&&(a=a.parentNode);var d=twve.node.preBoxExtra.call(this,a,b,e);if(!d)return null;d.containsXShifted=function(b,a,d){d||(d=twve.node.positionShift());return b>=a.left+d.left&&b<=a.right+d.left};var c=d.containsX;d.containsX=function(b,a){if(void 0===a)return c.apply(this,arguments);if("number"==typeof a)return 0<=a&&a<d.length?d.containsXShifted(b,d[a]):!1;if("inner"==a.toLowerCase().substring(0,
5))for(var e=twve.node.positionShift(),f=0;f<d.length;f++)if(d.containsXShifted(b,d[f],e))return d[f];return!1};d.containsYShifted=function(b,a,d){d||(d=twve.node.positionShift());return b>=a.top+d.top&&b<=a.bottom+d.top};var f=d.containsY;d.containsY=function(b,a){if(void 0===a)return f.apply(this,arguments);if("number"==typeof a)return 0<=a&&a<d.length?d.containsYShifted(b,d[a]):null;if("inner"==a.toLowerCase().substring(0,5))for(var c=twve.node.positionShift(),e=0;e<d.length;e++)if(d.containsYShifted(b,
d[e],c))return d[e];return!1};d.containsShifted=function(b,a,c){c||(c=twve.node.positionShift());return b.left?d.containsXShifted(b.left,a,c)&&d.containsXShifted(b.right,a,c)&&d.containsYShifted(b.top,a,c)&&d.containsYShifted(b.bottom,a,c):d.containsXShifted(b.x,a,c)&&d.containsYShifted(b.y,a,c)};var h=d.contains;d.contains=function(b,a){if(void 0===a)return h.apply(this,arguments);if("number"==typeof a)return 0<=a&&a<d.length?d.containsShifted(b,d[a]):!1;if("inner"==a.toLowerCase().substring(0,5))for(var c=
twve.node.positionShift(),e=0;e<d.length;e++)if(d.containsShifted(b,d[e],c))return d[e];return!1};return d}});
merge(twve.editable,{nodeIndex:function(a,b){if(!b)return-1;for(var e=0,d=a.length;e<d;e++){var c=a[e];if(b.nodeType==c.nodeType&&b==c)return e}e=0;for(d=a.length;e<d;e++)if(c=a[e],3!=c.nodeType&&(c=twve.editable.nodeIndex(c.childNodes,b),-1!=c))return ndx=twve.object.create(),ndx.outer=e,ndx.inner=c,ndx;return-1},nodeFromIndex:function(a,b){return b.outer?twve.editable.nodeFromIndex(a[b.outer].childNodes,b.inner):a[b]},preCreateExtra:twve.editable.create,create:function(){var a=twve.editable.preCreateExtra.apply(this,
arguments);a.lineHeight=function(b){return parseInt(a.dom.style.lineHeight||window.getComputedStyle(a.dom).getPropertyValue("line-height"))};var b=a.focusEditBox;a.focusEditBox=function(e,d,c,f){if(d&&config.options.chktwveExtraLocateChar){var h=!a.start.matched?0:a.start.matched.length-("\n"==a.start.matched.charAt(0)?1:0),h=h+twve.text.skipStyleText(d,h),g=getSelection();f||(f=a.getElement());var m=f.length?f[0]:f;a.nodendx=twve.object.create();var p=null;a.curNode&&a.curNode.index&&0<a.curNode.index[0]?
(p=a.curNode.dom,p.nodeType&&(p=[p]),a.nodendx.end=twve.editable.nodeIndex(p,g.focusNode==m?m.childNodes[g.focusOffset]:g.focusNode),0>a.nodendx.end&&(a.nodendx.end=p.length-1),a.nodendx.start=twve.editable.nodeIndex(p,g.anchorNode==m?m.childNodes[g.anchorOffset]:g.anchorNode),0>a.nodendx.start&&(a.nodendx.start=0)):(p=m.childNodes,a.nodendx.end=g.focusNode==m?g.focusOffset:twve.editable.nodeIndex(p,g.focusNode),0>a.nodendx.end&&(a.nodendx.end=p.length-1),g.anchorNode==g.focusNode?a.nodendx.start=
a.nodendx.end:(a.nodendx.start=g.anchorNode==m?g.anchorOffset:twve.editable.nodeIndex(p,g.anchorNode),0>a.nodendx.start&&(a.nodendx.start=0)));a.offset=twve.object.create();a.offset.end=a.offset.start=0;a.offset.focusNode=g.focusNode;a.offset.focusOffset=g.focusOffset;a.offset=twve.tiddler.selectionOffset(g,p,a.nodendx,a.offset,d.substring(h));a.offset.start+=h;a.offset.end+=h;twve.tiddler.caretPosition(e,0,0);twve.tiddler.initCaretPos(a.offset.start);a.typed=a.deleted=e.value="";a.inserted=[];a.nodendx.e0=
m;a.offset.focusNode!=m&&(e.style.borderWidth="0px",e.style.resize="none",e.style.width="1.5px",e.style.height=window.getComputedStyle(e).getPropertyValue("line-height"),a.setFocusOffset(e))}else a.nodendx=a.offset=null,b.apply(this,arguments);return e};a.setFocusOffset=function(b,d,c,f){"number"==typeof d?a.offset.focusOffset=d:"number"==typeof c&&(a.offset.focusOffset+=c);a.offset.nextNode=f?f:twve.editable.nodeFromIndex(a.nodendx.e0.childNodes,a.nodendx.end).splitText(a.offset.focusOffset);d=twve.node.box(a.offset.nextNode);
twve.node.setPosition(b,d.left-1,d.top)};a.boxCopy=function(b,a,c,f){var h=!1;"top"==f?a.top-b.top>=c&&(b.bottom=a.top,h=!0):"bottom"==f?b.bottom-a.bottom>=c&&(b.top=a.bottom,h=!0):(b.top=a.top,b.bottom=a.bottom-a.top<c?b.top+c:a.bottom,"all"==f&&(b.width=a.width,a.left>b.left&&(b.left=a.left),b.right=b.left+b.width),h=!0);b.height=b.bottom-b.top;return h};a.setCurNode=function(b,d,c){a.curNode&&c&&0<=c.toLowerCase().indexOf("end")?(b&&a.curNode.add(b),d&&(a.curNode.end.ndx=d.end.ndx+d.end.len+a.start.ndx)):
(a.curNode=twve.node.create(b),d&&(a.curNode.start=twve.position.create(d.start),a.curNode.end=twve.position.create(d.end),a.curNode.start.ndx+=a.start.ndx,a.curNode.end.ndx+=d.end.len+a.start.ndx));return a};a.collectNode=function(b,d,c,f,h){f&&h&&(a.curNode||(f.top=h.top),f.bottom=h.bottom,f.height=f.bottom-f.top);a.setCurNode(b,c,"end");a.curNode.index||(a.curNode.index=[]);a.curNode.index[a.curNode.index.length]=d;return a};a.skipOpenTag=function(b,d){if(!a.start.matched)return 0;"number"!=typeof d?
d=d&&d.ndx&&0<d.ndx?d.ndx:0:0>d&&(d=0);return a.start.matched.length-("\n"==a.start.matched.charAt(0)&&"\n"!=b.charAt(d))?1:0};a.box=function(b,d){var c=twve.tiddler.mousePosition(d),f=twve.tiddler.focusBox();if(f&&f.contains(c))return f;var h=twve.node.box(a.dom),f=h.clone();if(twve.tiddler.cur_editable&&twve.tiddler.cur_editable.dom==a.dom)return f;a.curNode=null;var g=a.dom.childNodes;if(!g)return f;var m=g.length;if(2>m)return f;if(c.x>=f.left&&c.x<=f.left+4||c.y>=f.top&&c.y<=f.top+4||c.x<=f.right&&
c.x>=f.right-4||c.y<=f.bottom&&c.y>=f.bottom-4)return a.prev=a.next=null,f;for(var p=a.lineHeight(),q=a.getText("content"),l=0,k=twve.tiddler.tagsInfo(g[l],q,a.skipOpenTag(q)),n=null,r=null;!(n=twve.node.box(g[l]));){if(++l==m)return f;k=twve.tiddler.tagsInfo(g[l],q,k.end.ndx+k.end.len)}if(c.y<n.top)return a.boxCopy(f,n,p,"top")&&(a.next||(a.next=twve.element.create()),a.next.start.ndx=k.start.ndx+a.start.ndx),f;do{if(n.containsY(c.y)){if("BR"==g[l].nodeName)return!a.curNode&&(l<m-1&&"EM"==g[l+1].nodeName)&&
-1<q.indexOf("@@display:none;")&&(l++,n=twve.node.box(g[l]),k.start.ndx=q.indexOf("//{{{",k.start.ndx)+6,k.end.ndx=q.indexOf("//}}}",k.start.ndx)-1),a.collectNode(g[l],l,k,f,n),f;if(k.tags&&k.tags.blockElement){if("\\end{"==k.end.matched&&a.curNode)return f;a.curNode=null;a.collectNode(g[l],l,k,f,n);return f}if(k.tags&&k.tags.is(twve.sliderPanel.markupTags())){if(0==k.start.ndx&&"\n"==q.charAt(k.start.ndx-1)&&(k.end.ndx+k.end.len==q.length||"\n"==q.charAt(k.end.ndx+k.end.len+1)))return a.setCurNode(g[l],
k),n;a.collectNode(g[l],l,k,f,n)}else{if(0==n.width&&3!=g[l].nodeType){h=window.getComputedStyle(g[l]);h=twve.node.cssSize(h.getPropertyValue("font-size"))*config.options.txttwveCoreMinEditWidth;a.setCurNode(g[l],k);if(c.x>n.left&&c.x-n.left<=h)return n.width=h,n.right=n.left+n.width,n;a.boxCopy(f,n,p);return f}a.collectNode(g[l],l,k,f,n);if(l==m-1)return f}}else if(a.curNode)if("BR"==g[l].nodeName){if(r&&(r.top>c.y||r.bottom>c.y)||n.top>c.y)return a.collectNode(g[l],l,k,f,r),f;a.curNode=null;twve.node.boxInit(h,
null,f);f.height=f.bottom-f.top}else if(k.tags&&k.tags.blockElement){if(n.top>c.y)return f;a.curNode=null;twve.node.boxInit(h,null,f);f.height=f.bottom-f.top}else a.collectNode(g[l],l,k,f,n);else{if(n.top>c.y)return f;"BR"!=g[l].nodeName&&(!k.tags||!k.tags.blockElement)&&a.collectNode(g[l],l,k,f,n)}twve.node.matches(g[l],"span.MathJax_Preview")&&(a.curNode?(a.collectNode(g[++l],l),a.collectNode(g[++l],l)):l+=2);for(r=n;++l<m;)if(null==(n=twve.node.box(g[l]))&&twve.node.matches(g[l],twve.foldedSection.getSelector()))if(l+
1<m&&twve.node.matches(g[l+1],twve.heading.getSelector()))k=twve.tiddler.tagsInfo(g[l+1],q,k.end.ndx+k.end.len,g[l].querySelectorAll(twve.heading.getSelector()).length),k.end.ndx=k.start.ndx,k.end.matched="",k.end.len=0;else{var s=twve.foldedSection.macro(),t=q.indexOf(s);-1<t?(k.end.ndx=t,k.end.len=s.length):(k.end.ndx=q.length,k.end.len=0)}else{k=twve.tiddler.tagsInfo(g[l],q,k.end.ndx+k.end.len);break}}while(l<m);if(n&&c.y>n.bottom&&a.boxCopy(f,n,p,"bottom"))return a.prev?a.prev.copyFrom(k):a.prev=
twve.object.create(k),a.prev.end.ndx+=a.start.ndx,f;a.prev=a.next=null;return f};a.mousemove=function(b){a.is(twve.tiddler.cur_editable)||twve.tiddler.focus(a,"on",b)};return a}});
merge(twve.element,{preCreateExtra:twve.element.create,create:function(a){var b=twve.element.preCreateExtra.apply(this,arguments);b.scrollIntoView=function(a){var d=b.box("edit"),c;if(a)c=twve.node.box(a);else{a=window;c=twve.node.box(a);var f=a.pageYOffset;c.top+=f;c.bottom+=f;f=scroll.pageXOffset;c.left+=f;c.width+=f}d.right>c.right?a.scrollLeft+=d.right-c.right:d.left<c.left&&(a.scrollLeft+=d.left-c.left);d.bottom>c.bottom?a.scrollTop+=d.bottom-c.bottom:d.top<c.top&&(a.scrollTop+=d.top-c.top);
return b};b.getNeighbor=function(a,d){switch(a){case "left":case "up":d=0>d?d:-d;break;case "right":case "down":d=0<d?d:-d}b.rIndex+=d;var c=b.dIndex;b.dIndex=-1;var f=twve.wrapper.renderedElement(b,null,!0);b.rIndex-=d;b.dIndex=c;return f};b.editNeighbor=function(a,d){twve.tiddler.updateText();twve.tiddler.focus();void 0===d&&(d=1);var c=b.getNeighbor(a,d);c.editText();c.scrollIntoView();return c};b.switchWith=function(a){var d,c;b.start.ndx<a.start.ndx?(d=b,c=a):(d=a,c=b);var f=d.getText(),h=c.getText(),
g=config.options.chktwveCoreManualSave,m=config.options.chktwveCoreManualUpload;config.options.chktwveCoreManualSave=!0;config.options.chktwveCoreManualUpload=!0;c.setText(f);config.options.chktwveCoreManualSave=g;config.options.chktwveCoreManualUpload=m;d.setText(h);d=h.length-f.length;c.start.ndx+=d;c.end.ndx+=d;c=a.dom.innerHTML;a.dom.innerHTML=b.dom.innerHTML;b.dom.innerHTML=c;return b};b.move=function(a,d){var c=b.getNeighbor(a,d);if(!c)return null;twve.tiddler.updateText();twve.tiddler.focusElem(null);
b.switchWith(c);if(1==Math.abs(b.rIndex-c.rIndex))return c;var f;0==c.rIndex?(f=1,a="down"==a?"up":"left"):(f=c.rIndex-1,a="up"==a?"down":"right");for(;b.rIndex!=f;){var h=b.getNeighbor(a,1);b.switchWith(h);b=h}return c};return b}});
merge(twve.leveledElement,{preCreate:twve.leveledElement.create,create:function(a){var b=twve.leveledElement.preCreate.call(this);b.clear=function(){b.sub_elem=null;return b};var e=b.copyFrom;b.copyFrom=function(a){e.apply(this,arguments);b.sub_elem=a.sub_elem;return b};b.getSubElement=function(){return b.dom?b.dom.querySelector(b.dom.nodeName):null};b.subElementEnds=function(a,c){return twve.text.consecutiveLinesEnd(c||b.tiddler.text,a||b.start,!0)};b.dummyLevel=function(a){var b=a.twveSelector(null,
"parent");if(!twve.node.matches(a,b.include))return 0;for(var c=0;;)if(a=a.childNode[0],twve.node.matches(a,b.include))c++;else break;return c};b.firstChildOfDummy=function(a){var b=a&&a.childNodes?a.childNodes[0]:null;return!b||b.nodeName!=a.nodeName?null:b};var d=b.renderedCopy;b.renderedCopy=function(){var a=d.apply(this,arguments);b.sub_elem&&(a&&b!=a)&&(a.sub_elem=a.getSubElement());return a};var c=b.box;b.box=function(){var a=c.apply(this,arguments);if(!config.options.chktwveExtraIncludeSubs){var d=
b.getSubElement();d&&(a.bottom=twve.node.box(d).top,a.height=a.bottom-a.top)}return a};b.removeSelf=function(){if(b.sub_elem){var a=twve.position.create();if(0<b.dIndex){a=twve.position.create(b.start);a.ndx--;var c=b.tiddler.text,a=twve.text.lastIndexOf(c,b.start.matched,a);-1==a.ndx&&1==b.dIndex&&(a.ndx=b.start.ndx-1,a=twve.text.lastIndexOf(c,b.start.matched.substring(1),a));-1<a.ndx&&twve.leveledElement.getLevel(c,a.ndx)==b.getLevel()&&(c=twve.position.create(a),c.ndx++,c=twve.text.indexOf(b.tiddler.text,
"\n",c),c.ndx!=b.start.ndx&&(a.ndx=-1))}-1<a.ndx?(c=b.dom,b.dom=c.previousSibling,c.parentNode.removechild(c),b.dom.appendChild(b.sub_elem),b.rIndex--,b.dIndex--,b.start.matched=a.matched,b.end.ndx=b.start.ndx+1,b.start.ndx=a.ndx):(b.dom.parentNode.replaceChild(b.sub_elem,b.dom),b.dom=b.sub_elem,b.ends())}else b.dom.parentNode.removeChild(b.dom),twve.tiddler.focusElem(null);return b};b.topMostParent=function(){var a=b.dom,c=b.twveSelector(null,"parent");do{var d=twve.node.closest(a.parentNode,c.include);
if(!d)break;a=d}while(1);return a};b.refreshTopLevel=function(a){var c=b.topMostParent();if(b.dom==b.firstChildOfDummy(c))b.dom=c,b.preRefreshSelf.call(this,a);else{var d=b.twveSelector(),f=twve.nodeList.toArray(c.querySelectorAll(d.include)),e=f.length,l=0<e?f.indexOf(b.dom):-1;0<=l&&(b.rIndex-=l+1);var k=config.options.chktwveExtraIncludeSubs;config.options.chktwveExtraIncludeSubs=!0;b.dIndex=-1;b.setElement(c);c=a.charAt(0);f=b.start.matched.charAt(1);if(c!=f){b.end.ndx+=a.length+1;var n=twve.position.create(b.end.ndx+
1);b.end.copyFrom(twve.text.consecutiveLinesEnd(b.tiddler.text,n,!0,f))}f=b.getText();b.preRefreshSelf.call(this,f);b.start.ndx+=f.indexOf(a);b.end.ndx=b.start.ndx+a.length;f=twve.nodeList.toArray(b.dom.querySelectorAll(d.include));a=f.length;c==b.start.matched.charAt(1)?(0<l&&0<a&&(l+=a-e,b.rIndex+=l+1,b.dom=f[l]),twve.tiddler.focus(b)):(e=b.directWrapper(),e.prev=b.clone(),e.prev.dom=f[l-1],e.prev.end.ndx=b.start.ndx-1,e.next=b.clone(),e.next.dom=f[l],e.next.start.ndx=b.end.ndx+1,twve.tiddler.focus(e));
config.options.chktwveExtraIncludeSubs=k}return b};b.refreshThisLevel=function(a){twve.node.wikify(a.substring(b.level),b.dom);return b};b.preRefreshSelf=b.refreshSelf;b.refreshSelf=function(a){-1<a.indexOf("\n")||b.getLevel()!=twve.leveledElement.getLevel(a,0)?b.refreshTopLevel(a):b.refreshThisLevel(a);b.sub_elem&&(b.dom.appendChild(b.sub_elem),b.sub_elem=null);return b};var f=b.ends;b.ends=function(a,c){f.apply(this,arguments);if(0>b.rIndex||0>b.dIndex)return b.end;config.options.chktwveExtraIncludeSubs?
(b.sub_elem=null,b.end.copyFrom(b.subElementEnds(null,c))):b.sub_elem=b.getSubElement();return b.end};return b.created(a)}});
merge(twve.heading,{preWikify:null,wikify:function(a,b,e){if(b&&twve.node.matches(b,"div.board")&&twve.tiddler.cur_editable){var d=twve.foldedSection.macro();twve.node.matches(twve.tiddler.cur_editable.dom,twve.foldedSection.getSelector()+",.foldable")&&-1<a.indexOf("\n!")&&0>a.indexOf(d)&&(a+="\n"+d)}return twve.heading.preWikify.call(this,a,b,e)},preCreateExtra:twve.heading.create,create:function(a){var b=twve.heading.preCreateExtra.call(this);b.subElementEnds=function(a,d,c){if(!c)return b.end};
b.refreshSelf=function(a){var d=null;twve.node.matches(b.dom,".foldable")&&(a+="\n"+twve.foldedSection.macro(),d=b.dom.nextSibling);b.preRefreshSelf.call(this,a);d&&(b.dom.onclick=twve.heading.click,b.dom.parentNode.replaceChild(d,b.dom.nextSibling));return b};return b.created(a)}});
twve.listitem={enableEdit:!0,twveSelector:function(a,b){a||(a=twve.selector.create());b=b?b.toLowerCase():"";return"rendering"==b.substring(0,9)||"parent"==b.substring(0,6)?a.includeSelector("ol,ul"):a.includeSelector("li").excludeSelector("td li,th li,.tagged li,.tidTags li,.listTitle")},leadingChars:function(){return"*#"},markupTags:function(){var a=twve.tags.create(["\n*","\n#"],"\n");a.blockElement=!0;a.clone=function(){return twve.listitem.markupTags()};return a},switchType:function(a){return"*"==
a.charAt(a.length-1)?a.replace(/\*/g,"#"):a.replace(/\#/g,"*")},create:function(a){var b=twve.leveledElement.create();b.index=function(a){a||(a=b.directWrapper().dom.childNodes);return a.indexOf(b.dom.parentNode)};b.markupTags=function(){return twve.listitem.markupTags()};b.clone=function(){return twve.listitem.create(b)};b.twveSelector=function(a,b){return twve.listitem.twveSelector(a,b)};b.getSubElement=function(){return b.dom.querySelectorAll("ol,ul")};var e=b.setElement;b.setElement=function(a){twve.node.matches(a,
"ol,ul")?a.nodeType&&(e.call(this,a.querySelector("li")),b.dom=a):e.call(this,a);return b};b.subElementEnds=function(a,d){var e=b.start.matched,e=e+e.charAt(e.length-1),g=twve.listitem.create(b);g.tags=twve.tags.create([e,twve.listitem.switchType(e)],"\n");a&&g.end.copyFrom(a);d||(d=b.tiddler.text);do if(g.rIndex=-1,g.dIndex=0,g.starts(g.end,d),g.start.ndx==g.end.ndx-1){if(g.ends(null,d),0>g.end.ndx){g.end.ndx=d.length;break}}else break;while(1);return g.end};b.immediatelyFollowingEnds=function(a){a||
(a=b.clone(),a.rIndex=a.dIndex=0);for(;;){a.starts(a.end);if(-1==a.start.ndx||a.start.ndx+1>b.end.ndx)break;b.end.ndx=a.ends().ndx}return b};b.refreshTopLevel=function(a){var d=config.options.chktwveExtraIncludeSubs;config.options.chktwveExtraIncludeSubs=!0;var e=b.topMostParent();b.rIndex-=twve.nodeList.toArray(e.querySelectorAll("li")).indexOf(b.dom);for(var g=b.twveSelector(null,"parent");;){var m=e.previousSibling;if(!twve.node.matches(m,g.include))break;e=m.querySelectorAll("li").length;b.rIndex-=
e;e=m}for(;;){m=e.nextSibling;if(!twve.node.matches(m,g.include))break;m.parentNode.removeChild(m)}b.dIndex=-1;b.setElement(e);g=b.clone();g.rIndex=g.dIndex=0;b.immediatelyFollowingEnds(g);e=a.charAt(0);"*"!=e&&"#"!=e&&(g.end.ndx+=a.length+1,b.end.ndx=g.end.ndx,b.immediatelyFollowingEnds(g));g=b.getText();b.preRefreshSelf.call(this,g);b.start.ndx+=g.indexOf(a);b.end.ndx=b.start.ndx+a.length;g=g.split("\n");a=g.indexOf(a);"*"==e||"#"==e?(b.rIndex+=a,b.start.matched="\n"+e,b.dom=b.dom.querySelectorAll("li")[a],
twve.tiddler.focus(b)):(e=b.directWrapper(),m=e.dom.querySelectorAll("li"),0<a&&(e.prev=twve.listitem.create(),e.prev.dom=m[a-1],e.prev.end.ndx=b.start.ndx-1),a<g.length-1&&(e.next=twve.listitem.create(),e.next.dom=m[a],e.next.start.ndx=b.end.ndx+1),twve.tiddler.focus(e));config.options.chktwveExtraIncludeSubs=d;return b};var d=b.refreshThisLevel;b.refreshThisLevel=function(a){return a.charAt(0)==b.start.matched.charAt(1)?d.call(this,a):b.refreshTopLevel(a)};return b.created(a)}};
twve.blockquote={enableEdit:!0,getSelector:function(){return"blockquote"},twveSelector:function(a,b){a||(a=twve.selector.create());return a.includeSelector(twve.blockquote.getSelector())},blockExampleOpen:function(){return"\n<<<"},blockExampleClose:function(){return"<<<\n"},encloses:function(a,b,e,d){e=twve.position.create(e);d=twve.position.create(d);0>e.ndx&&(e.ndx=0);if(d.ndx<=e.ndx||d.ndx>a.length)d.ndx=a.length;a=a.substring(e.ndx,d.ndx);var c=twve.tags.create(twve.blockquote.blockExampleOpen(),
twve.blockquote.blockExampleClose());for(pos=twve.position.create(e.ndx,c.open);;){pos=c.nextOpenTag(a,pos);if(-1==pos.ndx)break;pos.ndx+=pos.matched.length;if(pos.ndx>b)break;pos.matched=c.close;pos=c.matchedCloseTag(a,pos);if(-1==pos.ndx)return pos.ndx=d.ndx,pos;if(pos.ndx>b)return pos}return null},markupTags:function(a){var b=a&&"inact"==a.toLowerCase().substring(0,5)?twve.tags.create():twve.tags.create(["\n<<<","\n>"],["<<<\n","\n"]);b.blockElement=!0;b.clone=function(){return twve.blockquote.markupTags()};
b.blockExample=function(a){return a.matched==twve.blockquote.blockExampleOpen()};b.notEnclosing=function(){return"string"==typeof b.open&&b.open!=twve.blockquote.blockExampleOpen()};preMatchedCloseTag=b.matchedCloseTag;b.matchedCloseTag=function(a,c){if(b.blockExample(c))return c.ndx++,preMatchedCloseTag.call(this,a,c);var e=twve.text.consecutiveLinesEnd(a,c,!0,">");if(config.options.chktwveExtraIncludeSubs)return e;var h=twve.text.consecutiveLinesEnd(a,c,!1,">");if(e.ndx==h.ndx)return e;var g=twve.leveledElement.getLevel(a,
c.ndx,">");return twve.leveledElement.getLevel(a,h.ndx+1,">")==g?e:h};var e=b.encloses;b.encloses=function(a,c,f,h){var g=e.apply(this,arguments);return g?g:0==c||c>=a.length-1||b.notEnclosing()?null:twve.blockquote.encloses(a,c,f,h)};return b},create:function(a){var b=twve.leveledElement.create();b.markupTags=function(){return twve.blockquote.markupTags()};b.twveSelector=function(a,b){return twve.blockquote.twveSelector(a,b)};var e=b.is;b.is=function(a){if(e.apply(this,arguments))return!0;var d=
b.firstChildOfDummy(a);return d?b.is(d):!1};var d=b.renderingIndex;b.renderingIndex=function(){d.apply(this);for(var a=0;b.sub_elem=b.firstChildOfDummy(b.dom);)a++,b.dom=b.sub_elem;return b.rIndex+=a};var c=b.skipOpenTag;b.skipOpenTag=function(a){var d=c.apply(this,arguments);b.blockExample()&&"\n"==a.charAt(d)&&d++;return d};var f=b.getNeighbor;b.getNeighbor=function(a,b){var d=f.apply(this,arguments);return d&&d.firstChildOfDummy(d.dom)?d.getNeighbor(a,1):d};b.blockExample=function(){return b.tags.blockExample(b.start)};
b.counts=function(a,d){var c=1;if(b.blockExample()){a.remained-=c;a.ndx+=c;if(0==a.remained)return!0;c=twve.position.create(b.start);c.ndx+=c.matched.length;c=twve.text.indexOf(d,"\n>",c);if(-1==c.ndx)return!0;b.start.copyFrom(c)}var e=twve.leveledElement.getLevel(d,0<b.start.ndx?b.start.ndx+1:0,">"),c=e;if(c<a.remained){var f=twve.text.consecutiveLinesEnd(d,b.start.ndx,!0,">"),k=twve.text.consecutiveLinesEnd(d,b.start.ndx,!1,">");do{if(f.ndx==k.ndx)break;var h=twve.leveledElement.getLevel(d,k.ndx+
1,">");if(h>e){c+=h-e;if(c==a.remained){b.start.ndx=k.ndx;break}b.start.ndx=k.ndx;e=h;k=twve.text.consecutiveLinesEnd(d,b.start.ndx,!1,">")}else{e=twve.text.consecutiveLinesEnd(d,k.ndx+1,!1,">");if(e.ndx==f.ndx){b.start.ndx=f.ndx-1;break}b.start.ndx=e.ndx;k=e;e=h}}while(1)}a.remained-=c;a.ndx+=c;return!0};var h=b.subElementEnds;b.subElementEnds=function(){return b.blockExample()?b.end:h.apply(this,arguments)};return b.created(a)}};
twve.tabset={enableEdit:!0,twveSelector:function(a,b){a||(a=twve.selector.create());return a.includeSelector(b&&"parent"==b.toLowerCase().substring(0,6)?"div.tabsetWrapper":"div.tabset")},markupTags:function(){var a=twve.tags.create("<<tabs",">>");a.blockElement=!0;a.clone=function(){return twve.tabset.markupTags()};return a},is:function(a,b){return twve.node.matches(a,twve.tabset.twveSelector(b).include)},includeNextBox:function(a,b){b||(b=twve.node.box(a));if(a.nextSibling){var e=twve.node.box(a.nextSibling);
b.height+=e.height;b.bottom+=e.height}return b},create:function(a){var b=twve.element.create();b.markupTags=function(){return twve.tabset.markupTags()};b.twveSelector=function(){return twve.tabset.twveSelector()};b.box=function(){return twve.tabset.includeNextBox(b.dom)};var e=b.refreshSelf;b.refreshSelf=function(){b.dom.parentNode.removeChild(b.dom.nextSibling);return e.apply(this,arguments)};return b.created(a)}};
twve.span={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("span.marked,span[style*=color],span[style*=font]").excludeSelector(twve.MathJax.getSpanSelector()+","+twve.heading.getSpanSelector())},markupTags:function(){return twve.tags.create("@@","@@")},create:function(a){if(!config.options.chktwveExtraInline)return null;var b=twve.element.create(a);b.markupTags=function(){return twve.span.markupTags()};b.clone=function(){return twve.span.create(b)};b.twveSelector=
function(){return twve.span.twveSelector()};return b}};twve.styledText={preInactiveTags:null,inactiveTags:function(){return twve.styledText.preInactiveTags.apply(this).merge(twve.text.markupTags())},create:function(a){return!config.options.chktwveExtraInline?null:twve.element.create().created(a)}};
twve.styledText.bold={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("strong")},markupTags:function(){var a=twve.tags.create("''","''");a.clone=function(){return twve.styledText.bold.markupTags()};return a},create:function(a){var b=twve.styledText.create();if(!b)return null;b.markupTags=function(){return twve.styledText.bold.markupTags()};b.clone=function(){return twve.styledText.bold.create(b)};b.twveSelector=function(){return twve.styledText.bold.twveSelector()};
return b.created(a)}};
twve.styledText.under={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("u")},markupTags:function(){var a=twve.tags.create("__","__");a.clone=function(){return twve.styledText.under.markupTags()};return a},create:function(a){var b=twve.styledText.create();if(!b)return null;b.markupTags=function(){return twve.styledText.under.markupTags()};b.clone=function(){return twve.styledText.under.create(b)};b.twveSelector=function(){return twve.styledText.under.twveSelector()};return b.created(a)}};
twve.styledText.italic={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("em")},markupTags:function(){var a=twve.tags.create("//","//");a.clone=function(){return twve.styledText.italic.markupTags()};return a},create:function(a){var b=twve.styledText.create();if(!b)return null;b.markupTags=function(){return twve.styledText.italic.markupTags()};b.clone=function(){return twve.styledText.italic.create(b)};b.twveSelector=function(){return twve.styledText.italic.twveSelector()};
var e=b.counts;b.counts=function(a,c){return 5<b.start.ndx&&"http:"==c.substring(b.start.ndx-5,b.start.ndx).toLowerCase()?!1:e.apply(this,arguments)};return b.created(a)}};
twve.styledText.strike={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("strike")},markupTags:function(){var a=twve.tags.create("--","--");a.clone=function(){return twve.styledText.strike.markupTags()};return a},create:function(a){var b=twve.styledText.create();if(!b)return null;b.markupTags=function(){return twve.styledText.strike.markupTags()};b.clone=function(){return twve.styledText.strike.create(b)};b.twveSelector=function(){return twve.styledText.strike.twveSelector()};
return b.created(a)}};twve.img={enableEdit:!0,twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector("img")},markupTags:function(){return twve.tags.create(["[img","[>img","[<img"],"]]")},create:function(a){return twve.element.create().created(a)}};
twve.cssWrapper={enableEdit:!0,is:function(a,b){var e=a&&a.classList&&1==a.classList.length&&("SPAN"==a.nodeName||"DIV"==a.nodeName);e&&b&&(b.include=a.nodeName+"."+a.classList.item(0));return e},markupTags:function(a){var b=a&&1==a.classList.length,e=twve.tags.create("{{"+(b?a.classList.item(0)+"{":""),"}}}");e.blockElement=b&&"DIV"==a.nodeName;e.clone=function(){return twve.cssWrapper.markupTags().merge(e)};return e},create:function(a){a=twve.element.create(a);if(0>a.start.ndx)return null;a.is=
function(a){return twve.cssWrapper.is(a)};return a}};
twve.MathJax={enabled:!0,getSpanSelector:function(){return"span.MathJax_Preview,span[id*=MathJax] span"},nextFormula:function(a,b){var e=twve.MathJax.displayed.markupTags().merge(twve.MathJax.inline.markupTags()),d={};d.start=twve.position.create(b);d.start=e.nextOpenTag(a,d.start);-1<d.start.ndx&&(d.end=twve.position.create(d.start),d.end.ndx+=d.start.matched.length,d.end=e.exactCloseTag(d.start.matched).matchedCloseTag(a,d.end),d.expression=a.substring(d.start.ndx,d.end.ndx+d.end.matched.length));
d.getSource=function(){return"\\begin{"!=d.start.matched?d.expression.substring(d.start.matched.length,d.expression.length-d.end.matched.length):d.expression};return d},preBox:null,box:function(a,b,e){var d=twve.MathJax.displayed.getMathNode(a);d||(d=twve.MathJax.inline.getMathNode(a));return twve.MathJax.preBox.call(this,d||a,b,e)},folded:null,subfoldable:null,subfolded:null,beforeMath:function(a){var b=twve.tiddler.twveFoldableSelector();twve.MathJax.folded=null;if(twve.node.matches(a[1],b.include))twve.node.isVisible(a[1])||
(twve.MathJax.folded=a[1],twve.node.show(a[1]));else{var e=twve.node.parents(a[1],b.include);if(e)for(var d=0,c=e.length;d<c;d++)if(!twve.node.isVisible(e[d])){twve.MathJax.folded=e[d];twve.node.show(e[d]);break}twve.node.closest(a[1],twve.tiddler.displaySelector())&&twve.node.matches(twve.tiddler.wrapperSelectors().include)&&(twve.MathJax.subfoldable=twve.wrapper.findElements(a[1],b),twve.MathJax.subfolded=twve.wrapper.recordFoldable(twve.MathJax.subfoldable),twve.MathJax.subfoldable&&twve.node.show(twve.MathJax.subfoldable))}},
afterMath:function(a){twve.MathJax.subfoldable&&twve.wrapper.restoreFoldable(twve.MathJax.subfoldable,twve.MathJax.subfolded);twve.MathJax.folded&&twve.node.hide(twve.MathJax.folded)},checkReady:function(){return config.extensions.MathJax&&"undefined"!==typeof MathJax?(story.displayTiddler==config.extensions.MathJax.displayTiddler&&(story.displayTiddler=config.extensions.MathJax.displayTiddler_old,MathJax.Hub.Config({"HTML-CSS":{linebreaks:{automatic:!0}},SVG:{linebreaks:{automatic:!0}}}),MathJax.Hub.Register.MessageHook("Begin Process",
twve.MathJax.beforeMath),MathJax.Hub.Register.MessageHook("End Process",twve.MathJax.afterMath)),!0):!1},render:function(a){if(a){var b=a.parentNode?a.parentNode.querySelector(".title"):null;b&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,b]);config.options.chktwveExtraMathAutoNumber?twve.node.matches(a,"div.viewer")&&(MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"AMS"}}}),MathJax.Hub.Queue(["resetEquationNumbers",MathJax.InputJax.TeX])):MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"none"}}});
MathJax.Hub.Queue(["Typeset",MathJax.Hub,a])}},prePrepareElements:null,prepareElements:function(a){twve.MathJax.checkReady()&&!twve.node.matches(a.dom,"div.board")&&twve.MathJax.render(a.dom);twve.MathJax.prePrepareElements.call(this,a);return a},apply:function(a,b,e){"undefined"!==typeof MathJax?MathJax.Hub.Queue(function(){a.apply(b,e)}):a.apply(b,e)},preFold:null,fold:function(){twve.MathJax.apply(twve.MathJax.preFold,this,arguments)},preHeadingClick:null,headingClick:function(){twve.MathJax.apply(twve.MathJax.preHeadingClick,
this,arguments)},preRestoreFoldable:null,restoreFoldable:function(){twve.MathJax.apply(twve.MathJax.preRestoreFoldable,this,arguments)},preWikify:null,wikify:function(a,b){b=twve.MathJax.preWikify.apply(this,arguments);if(twve.MathJax.enabled&&"undefined"!=typeof MathJax){var e=null;b.nodeType?e=3==b.nodeType?b.parentNode:b:0<b.length&&(e=b[0].parentNode);if(e)try{MathJax.Hub.Queue(["Typeset",MathJax.Hub,e])}catch(d){console.log(d)}}return b},hasID:function(a){return a&&a.id&&"MathJax"==a.id.substring(0,
7)},create:function(a){var b=twve.element.create();b.filter=function(a){if(a.nodeType)return b.getMathNode(a);for(var d=[],c=0,f=a.length;c<f;c++){var h=b.getMathNode(a[c]);h&&(d[d.length]=h,h==a[c]?c++:h==a[c].nextSibling&&(c+=2))}return 0==d.length?null:1<d.length?d:d[0]};return b.created(a)}};
twve.MathJax.displayed={preLastIndexOf:null,lastIndexOf:function(a){for(var b=twve.MathJax.displayed.preLastIndexOf.apply(this,arguments),e=b,d=e;e;)"[["==e.matched&&"\\"==a.charAt(e.ndx-1)?e==b?d=b=e.next:d.next=e.next:d=e,e=e.next;return b},enableEdit:!0,getSelector:function(){return"div.MathJax_Display"},twveSelector:function(a,b){a||(a=twve.selector.create());var e=twve.MathJax.displayed.getSelector();return a.includeSelector(e+(b&&"render"==b.toLowerCase().substring(0,6)?"":","+e+" span"))},
markupTags:function(){var a=twve.tags.create(["\\[","$$","\\begin{"],["\\]","$$","\\end{"]);a.blockElement=!0;a.clone=function(){return twve.MathJax.displayed.markupTags()};var b=a.matchedCloseTag;a.matchedCloseTag=function(e,d,c,f){if("\\end{"!=a.close)return b.apply(this,arguments);var h=e.indexOf("}",d.ndx),g=e.indexOf("{",d.ndx);0>g||g>h?g=d.ndx:g++;for(var m=e.substring(g,h);;){d=b.call(this,e,d,c,f);h=e.indexOf("}",d.ndx);g=d.ndx+5;if(m==e.substring(g,h))return d;d.ndx=h+1}};return a},getMathNode:function(a){var b=
twve.MathJax.displayed.getSelector();switch(a.nodeName){case "SPAN":if(twve.MathJax.hasID(a))return twve.node.closest(a.parentNode,b);var e=a.childNodes;a=e&&2<e.length?e[1]:a.nextSibling;return twve.node.matches(a,b)?a:null;case "DIV":return twve.node.matches(a,b)?a:null;case "SCRIPT":if(twve.MathJax.hasID(a))return a=a.previousSibling,twve.node.matches(a,b)?a:null}return null},is:function(a){return twve.MathJax.displayed.getMathNode(a)},create:function(a){var b=twve.MathJax.create();b.markupTags=
function(){return twve.MathJax.displayed.markupTags()};b.clone=function(){return twve.MathJax.displayed.create(b)};b.twveSelector=function(a,b){return twve.MathJax.displayed.twveSelector(a,b)};b.multiLine=function(){return!0};var e=b.setElement;b.setElement=function(a){a=twve.MathJax.displayed.getMathNode(a);e.call(this,a);0<=b.end.matched.toLowerCase().indexOf("end")&&(a=b.tiddler.text.indexOf("}",b.end.ndx),-1<a&&(a++,b.end.ndx=a));return b};b.getMathNode=function(a){return twve.MathJax.displayed.getMathNode(a)};
b.removeSiblings=function(){if("\\end{"==b.end.matched){var a=b.dom.parentNode;a.removeChild(b.dom.previousSibling);a.removeChild(b.dom.nextSibling);return!0}return!1};var d=b.replaceWith;b.replaceWith=function(a,c){!b.removeSiblings()&&!c&&(c=b.dom.parentNode);return d.call(this,a,c)};var c=b.removeSelf;b.removeSelf=function(){b.removeSiblings()||(b.dom=b.dom.parentNode);return c.apply(this,arguments)};return b.created(a)}};
twve.MathJax.inline={enableEdit:!0,getSelector:function(){return"span.MathJax_Preview"},twveSelector:function(a){a||(a=twve.selector.create());return a.includeSelector(twve.MathJax.inline.getSelector()).excludeSelector(twve.MathJax.displayed.getSelector()+" span")},markupTags:function(){var a=twve.tags.create(["\\(","\\ref{","\\eqref{"],["\\)","}","}"]);a.clone=function(){return twve.MathJax.inline.markupTags()};return a},getMathNode:function(a){switch(a.nodeName){case "SPAN":if(twve.MathJax.hasID(a)){do{if("-Element"==
a.id.substring(7,15))return a;do a=a.parentNode;while(a&&!a.id)}while(a)}else{var b=a.childNodes;a=b&&2<b.length?b[1]:a.nextSibling;return twve.MathJax.hasID(a)?a:null}case "SCRIPT":if(twve.MathJax.hasID(a))return a.previousSibling}return null},is:function(a){return twve.MathJax.inline.getMathNode(a)},create:function(a){var b=twve.MathJax.create();b.markupTags=function(){return twve.MathJax.inline.markupTags()};b.clone=function(){return twve.MathJax.inline.create(b)};b.twveSelector=function(){return twve.MathJax.inline.twveSelector()};
var e=b.setElement;b.setElement=function(a){return e.call(this,twve.MathJax.inline.getMathNode(a))};b.getMathNode=function(a){return twve.MathJax.inline.getMathNode(a)};var d=b.replaceWith;b.replaceWith=function(a,c){return d.call(this,a,c||b.dom.parentNode)};var c=b.removeSelf;b.removeSelf=function(){b.dom=b.dom.parentNode;return c.apply(this,arguments)}}};
merge(twve.tiddlerTitle,{titleOfWrapper:function(a,b){var e="",d=twve.MathJax.inline.twveSelector(),c=twve.MathJax.displayed.twveSelector(),f=null;if(!a.childNodes)return e;for(var h=0,g=a.childNodes.length;h<g;h++){var m=a.childNodes[h];twve.node.matches(m,d.include)?f=twve.MathJax.inline.markupTags():twve.node.matches(m,c.include)?f=twve.MathJax.displayed.markupTags():twve.node.matches(m,"script")&&f?(e+=f.open[b]+m.textContent+f.close[b],f=null):e+=m.textContent||m.nodeValue}return e},preCreateExtra:twve.tiddlerTitle.create,
create:function(a){var b=twve.tiddlerTitle.preCreateExtra.call(this);b.titleOfWrapper=function(){var a=twve.tiddlerTitle.titleOfWrapper(b.dom,0);b.tiddler=twve.tiddler.get(a);b.tiddler||(a=twve.tiddlerTitle.titleOfWrapper(b.dom,1));return a};return b.created(a)}});
merge(twve.wrapper,{preCreateExtra:twve.wrapper.create,create:function(){var a=twve.wrapper.preCreateExtra.apply(this,arguments);a.editNeighbor=function(b,d){return a};var b=a.refreshSelf;a.refreshSelf=function(d){if(a.curNode){var c=twve.tiddler.getPreviewedNodes(d),e=a.curNode.dom;if(e)if(e.nodeType)twve.node.replace(c,e);else{for(var f=1,g=e.length;f<g;f++)a.dom.removeChild(e[f]);twve.node.replace(c,e[0],a.dom)}else if(a.curNode.next){f=0;for(g=c.length;f<g;f++)a.dom.insertBefore(c[0],a.curNode.next)}else{f=
0;for(g=c.length;f<g;f++)a.dom.appendChild(c[0])}return a}if(a.next){c=twve.tiddler.getPreviewedNodes(d);e=a.dom.firstChild;f=0;for(g=c.length;f<g;f++)a.dom.insertBefore(c[0],e);a.next=null;return a}if(a.prev){c=twve.tiddler.getPreviewedNodes(d);f=0;for(g=c.length;f<g;f++)a.dom.appendChild(c[0]);a.prev=null;return a}return b.apply(this,arguments)};var e=a.needsRefresh;a.needsRefresh=function(b,c,d){var f=e.apply(this,arguments);if(f&&b.curNode){var g=a.dom.childNodes;if(c==d)if(1==b.curNode.index.length){var h=
b.curNode.index[0];a.collectNode(g[h],h)}else for(var r=0,s=b.curNode.index.length;r<s;r++)h=b.curNode.index[r],a.collectNode(g[h],h);else{s=b.curNode.index[0];r=b.curNode.index[b.curNode.index.length-1];if(c){if(twve.node.matches(g[b.rIndex],twve.foldedSection.getSelector()))return!1;h=s;f=s+b.rIndex}else{if(void 0===a.rIndex)return f;if(s<a.rIndex||r>a.rIndex+a.dom.childNodes.length)return!1;h=s;f=0}for(;h<=r;h++,f++)a.collectNode(g[f],f);return!0}}return f};a.getOpen=function(){return a.curNode&&
a.curNode.start?a.curNode.start.ndx:a.prev?a.prev.end.ndx:a.start.ndx};a.getClose=function(){return a.curNode&&a.curNode.end?a.curNode.end.ndx:a.next?a.next.start.ndx:a.end.ndx};a.getLeadingBR=function(){var b=a.curNode?a.curNode.dom.length?a.curNode.dom[0]:a.curNode.dom:null;return b&&"BR"==b.nodeName?b:null};a.getEndingBR=function(){var b=a.curNode?a.curNode.dom.length?a.curNode.dom[a.curNode.dom.length-1]:a.curNode.dom:null;return b&&"BR"==b.nodeName?b:null};var d=a.checkNewLines;a.checkNewLines=
function(b,c,e){if(a.curNode)d.apply(this,arguments),a.remove_ending_BR&&(a.newline_close=!1),a.remove_leading_BR&&(a.newline_open=!1);else{if(a.next||a.prev)return d.apply(this,arguments);a.newline_open=!1;a.newline_close=!1}};var c=a.getText;a.getText=function(b){if(b&&0<=b.toLowerCase().indexOf("content"))return c.apply(this,arguments);var d=a.getOpen(),e=a.getClose();return a.getEndingBR()?a.tiddler.text.substring(d,e):c.call(this,d,e)};var f=a.setText;a.setText=function(b){var c=a.getOpen(),
d=a.getClose();!a.curNode&&c>=d&&(c==a.start.ndx?"\n"!=b.charAt(b.length-1)&&(b+="\n"):"\n"!=b.charAt(0)&&(b="\n"+b));return f.call(this,b,c,d)};var h=a.updateText;a.updateText=function(b,c){var d=a.getEndingBR();if(d&&b[0])if("\n"!=b[0].charAt(b[0].length-1)){if(d=d.nextSibling){var e=a.getText("content"),f=twve.tiddler.tagsInfo(d,e,a.curNode.end.ndx);a.curNode.end.ndx=f.end.ndx+f.end.len;b[0]+=e.substring(f.start.ndx,a.curNode.end.ndx);a.remove_ending_BR=!0;"BR"!=d.nodeName&&(a.collectNode(d,a.curNode.index[a.curNode.index.length-
1]+1,f),a.curNode.end.ndx=f.end.ndx+f.end.len)}a.remove_leading_BR="\n"==b[0].charAt(0)&&a.getLeadingBR()}else a.remove_ending_BR=!0;return h.call(this,b,c)};var g=a.editText;a.editText=function(b,d,c){if(a.curNode){var e=twve.tiddler.focusBox();if(e&&0==e[0].width)return twve.tiddler.createEditableWrapper(a.curNode.dom).editText(b)}else a.tiddler||(a.tiddler=store.createTiddler(a.wrapper_title),a.tiddler.tags.push("autoCreate"),a.tiddler.creator=config.options.txtUserName);return g.apply(this,arguments)};
return a}});merge(twve.sliderPanel,{isButton:function(a,b){return(b||"A"==a.nodeName)&&twve.node.matches(a.nextSibling,twve.sliderPanel.getSelector())},preBox:null,box:function(a){var b=twve.sliderPanel.preBox.apply(this,arguments);if(twve.sliderPanel.isButton(a)){var e=twve.sliderPanel.preBox.call(this,a.nextSibling);e&&(b.left>e.left&&(b.left=e.left),b.right<e.right&&(b.right=e.right),b.bottom=e.bottom,b.width=b.right-b.left,b.height=b.bottom-b.top)}return b}});
merge(twve.foldedSection,{titleOfTiddler:function(a){var b=twve.foldedSection.enableEdit;twve.foldedSection.enableEdit=!1;a=twve.node.closest(a.parentNode,twve.tiddler.wrapperSelectors().include);a=twve.tiddler.titleOfWrapper(a);twve.foldedSection.enableEdit=b;return a},titleOfSection:function(a){var b=a.previousSibling;if(!b)return"";a=twve.foldedSection.enableEdit;twve.foldedSection.enableEdit=!1;b=twve.heading.getTitle(b,!0);twve.foldedSection.enableEdit=a;return b},titleOfWrapper:function(a){var b=
a.getAttribute("fullTitle");b||(b=twve.foldedSection.titleOfTiddler(a)+config.textPrimitives.sectionSeparator+twve.foldedSection.titleOfSection(a),a.setAttribute("fullTitle",b));return b},wrapperFromTitle:function(a,b,e){b=twve.nodeList.querySelectorAll(b,twve.foldedSection.getSelector());if(!b)return null;for(var d=[],c=0,f=b.length;c<f;c++){var h=twve.foldedSection.titleOfWrapper(b[c]),g=twve.text.tiddlerSection(h),h=twve.text.tiddlerTitle(h);if(h==a)if(e){if(!g||g==e)d[d.length]=b[c]}else d[d.length]=
b[c]}return d},preHeadingCreate:null,headingCreate:function(a){var b=twve.foldedSection.preHeadingCreate.apply(this,arguments),e=b.removeSelf;b.removeSelf=function(){var a=b.dom.nextSibling,c=twve.foldedSection.getSelector();if(twve.node.matches(a,c)){twve.node.show(a);var f=a.childNodes,h=b.dom.previousSibling,g=a.parentNode;if(twve.node.matches(h,c)){c=twve.node.isVisible(h);twve.node.show(h);for(var m=0,p=f.length;m<p;m++)h.appendChild(f[0]);c||twve.node.hide(h)}else{m=0;for(p=f.length;m<p;m++)g.insertBefore(f[0],
a)}g.removeChild(a)}return e.apply(this)};return b},preInactiveTags:null,inactiveTags:function(){var a=twve.foldedSection.preInactiveTags.apply(this);return twve.blockquote?twve.blockquote.markupTags("inactive").merge(a):a},releaseInactiveTags:function(){twve.tags.inactiveTags=twve.foldedSection.preInactiveTags},create:function(a){var b=twve.transcludedElem.create(a)||twve.wrapper.create();b.clone=function(){return twve.foldedSection.create(b)};b.findWrappers=function(a){if(!b.wrapper)if(b.wrapper=
a.findWrappers()){if(a=twve.node.parents(b.dom,twve.tiddler.wrapperSelectors().include))for(var c=0,e=a.length;c<e;c++){var h=b.wrapper.indexOf(a[c]);-1<h&&b.wrapper.splice(h,1)}}else console.log("wrapper not found for "+twve.node.info(b.dom)+" wrapper:"+b.wrapper);return b.wrapper};var e=b.box;b.box=function(){return b.isVisible()?e.apply(this,arguments):twve.node.box(b.dom.previousSibling)};b.getHeading=function(a){a||(a=b.dom);return!a?null:(a=a.previousSibling)?twve.heading.create(a):null};b.setElement=
function(a){b.dom=a;var c=b.getHeading();if(!c)return null;b.wrapper_title=c.wrapper_title;b.tiddler=c.tiddler;b.findWrappers(c);b.start.ndx=c.end.ndx;b.rIndex=c.rIndex+1;if(!c.tiddler)return b;var e=twve.foldedSection.macro();b.end.ndx=c.tiddler.text.indexOf(e,b.start.ndx);b.end.ndx=-1<b.end.ndx?b.end.ndx+e.length:b.tiddler.text.length;twve.node.closest(a,twve.blockquote.getSelector())&&(e=c.tiddler.text.indexOf(twve.blockquote.blockExampleClose(),b.start.ndx),-1<e&&e<b.end.ndx&&(b.end.ndx=e));c.rIndex=
-1;c.dIndex=a.querySelectorAll(twve.heading.getSelector()).length;c.starts(b.start);-1<c.start.ndx&&c.start.ndx<b.end.ndx&&(b.end.ndx=c.start.ndx);return b};return b.created(a)}});
//}}}
// @@
This tiddler gives detailed information about the ''twve.leveledElement'', an object representing all editable __leveledElement__ in ~TiddlyWiki, including //lists//, //headings//, and //blockquotes//.
This tiddler gives detailed information about the ''twve.selector'', an object representing CSS selectors in ~TiddlyWiki.
/***
|editable|k
|''Name:''|twve.table|
|''Description:''|Table rendering and view mode editing in ~TiddlyWiki environment|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.table.min / http://twve.tiddlyspace.com/#twve.table.min <br>* (regular) http://twve.tiddlyspot.com/#twve.table / http://twve.tiddlyspace.com/#twve.table|
|''Type:''|plugin|
|''Version:''|3.2.6|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery<br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.7.0|
|''Needs to have:''|twve.core|
!!Features:
* Table rendering and view mode editing features in ~TiddlyWiki environment.
!!Usage:
!!Options
Look for [[twve.table Options]] in the Options Panel.
!!Examples
[[twve.table Examples]]
!!Todo:
!!!Revision history
!!!! 2016/04/30 [3.2.6]
* Saves options in SystemSettings tiddler.
** If you disable autoSave option, you will need to manually save the tiddler after changing a ''twve'' option.
* Starts using strict mode.
* Bug fix
** for table captions.
!!!! 2015/11/06 [3.2.5]
* Avoided handling tables created by Handsontable.
* Bug fix
** for tables with an empty first cell (in the first row);
*** Such a table was correctly located at its beginning but incorrectly at its end.
** for column-wise copy-and-pasting;
** for text copy-and-pasting.
!!!! 2015/06/15 [3.2.4]
* Calls the """.changed()""" event handler after caption change.
* Bug fix
** for previewing a whole table.
!!!! 2015/03/23 [3.2.3]
* Bug fix
** for editing neighbor cell with keyboard navigation.
!!!! 2015/02/13 [3.2.2]
* Replaced regular expression with string operations whenever easy, hoping to save some time.
* Bug fix
** for skipping <noedit> cells with keyboard navigation;
** for working with TableSortingPlugin or SortableGridPlugin.
!!!! 2014/12/22 [3.2.1]
* Bug fix
** for correct row height containing spanned cells in ~TWEdit (iOS).
*** The heights of a spanned row in ~TWEdit are inconsistent with other browsers.
!!!! 2014/11/21 [3.2.0]
* Removed jQuery dependencies for migrating to ~TW5.
** Could be incompatible with earlier browsers.
* Bug fix
** for editing transcluded content in table cells.
!!!! 2014/08/03 [3.1.0]
* Started to remove jQuery dependencies for migrating to TW5.
* Bug fix
** for obtaining the bounding box of elements.
!!!! 2014/06/02 [3.0.3]
* Bug fixes
** for missing cells;
** for missing the table at the very beginning of a tiddler.
!!!! 2014/05/23 [3.0.2]
* Bug fixes
** for focusing behavior;
** for resizing after changed;
** for working with sorting plugins (SortableGridPlugin or TableSortingPlugin);
*** A general error in the code caused the sorting method to work always on the very 1st table in the tiddler.
*** Transposition turns a header row into a TH column, but not vice versa, causing a failure in TableSortingPlugin.
** for leaving shadowed tiddlers alone.
!!!! 2014/05/14 [3.0.1]
* Added ''twve.table'' Options Menu to the table menu (at the top-right corner of the table when activated).
!!!! 2014/05/13 [3.0.0]
* Improved features
** {{{partial refreshing}}} features to cover whole table refreshing;
** handling of missing cells;
*** Previous versions worked for only ''one'' missing cell per row, __this version works for more__.
** visually consistent keyboard navigation with spanned cells.
*** The browser-assigned cell indexes are not consistent with what we see and cause confusion quite easily. The ''twve.table'' fixed that issue and gives a visually consistent experience with keyboard navigation.
* Added a menu (top-right corner) for
** transposition and
*** Works for tables with spanned cells, too.
** recalculation.
* Bug fixes for
** insertion/deletion of rows/columns;
** transposition with spanned cells.
!!!! 2014/01/18
* Collected from [[TWtid|http://twtable.tiddlyspace.com/#TWtid.2.0.10]] and [[TWted|http://twtable.tiddlyspace.com/#TWted.2.0.10]], adapted to the new code structure.
!!!Code
!!!The very beginning
***/
//{{{
(function(){
"use strict";
if ( typeof twve == 'undefined' ) {
alert('twve.table: This plugin needs twve.core to function properly. Please install twve.core before this one.');
}
//}}}
/***
!!! Version information
***/
//{{{
version.extensions.twve.table = {
major: 3, minor: 2, revision: 6,
date: new Date('2016/04/30')
};
//}}}
/***
!!! Macro for initialization and option settings.
***/
//{{{
config.macros.twveTableOptions = {
init : function () {
// twve.tiddler methods
twve.table.preReadOnly = twve.tiddler.readOnly;
twve.tiddler.readOnly = twve.table.readOnly;
twve.table.preTextPasted = twve.tiddler.textPasted;
twve.tiddler.textPasted = twve.table.textPasted;
//twve.table.prePreviewEditBox = twve.tiddler.previewEditBox;
//twve.tiddler.previewEditBox = twve.table.previewEditBox;
twve.table.preGetOptionsMenu = twve.tiddler.getOptionsMenu;
twve.tiddler.getOptionsMenu = twve.table.getOptionsMenu;
twve.table.preFocusTarget = twve.tiddler.focusTarget;
twve.tiddler.focusTarget = twve.table.focusTarget;
// twve.node methods
twve.table.preWikify = twve.node.wikify;
twve.node.wikify = twve.table.wikify;
// twve.leveledElement methods
twve.table.preGetLevel = twve.leveledElement.getLevel;
twve.leveledElement.getLevel = twve.table.getLevel;
// twve.wrapper methods
twve.table.prePrepareElements = twve.wrapper.prepareElements;
twve.wrapper.prepareElements = twve.table.prepareElements;
twve.checkOption('chktwveTableEnabled','true');
twve.checkOption(
'chktwveTableEditAll',
(config.options.chkTWtedEditAllTables || false)+''
);
twve.checkOption(
'txttwveTableMinCellWidth',
(config.options.txtTWtidMinCellWidth || '8')
);
twve.checkOption(
'chktwveTableMultiLine',
(config.options.chkTWtidMultiLine || false)+''
);
twve.checkOption('chktwveTableTranspose','false');
twve.checkOption(
'chktwveTableIncludeCSS',
(config.options.chkTWtedIncludeCSS || true)+''
);
merge(config.optionsDesc, {
chktwveTableEnabled:"Enable ''twve.table''.",
chktwveTableEditAll:'Edit all tables. If true, all tables are editable. Otherwise only tables with class name "editable" are editable.',
chktwveTableMultiLine:'Multi-line rendering mode. If true, a table cell can have multi-lined content (with <br /> as line-break). Lists in a table cell is hence possible. Default to false.',
txttwveTableMinCellWidth:'Minimum cell width in characters. Default value is 8.',
chktwveTableTranspose:'Enable transposition. Default to false.',
chktwveTableIncludeCSS:'Include cell-wide CSS statements in the edit box.'
});
// prepare options panel
var optionsTitle = 'twve.table Options';
var txt = config.shadowTiddlers['OptionsPanel'];
var twvecoreopt = '[[twve.core Options';
var p = txt.indexOf(twvecoreopt);
if ( p >= 0 ) {
p = txt.indexOf(']]\n',p+2)+3;
config.shadowTiddlers['OptionsPanel']=
txt.substring(0,p)
+'[['+optionsTitle+'|'+optionsTitle+']]\n'
+txt.substring(p);
}
merge(config.shadowTiddlers,{
'twve.table Options':'<<twveTableOptions>>'
});
// Register editable
twve.tiddler.registerElement(twve.table);
},
order : {
chktwveTableEnabled:0,
chktwveTableEditAll:1,
chktwveTableMultiLine:2,
txttwveTableMinCellWidth:3,
chktwveTableTranspose:4,
chktwveTableIncludeCSS:5
},
handler : function(place) {
// Collect all the twve.table options for users to play with.
config.macros.twveCoreOptions.showOptionsTable(
place,
"''twve.table'' Options",
'twveTable',
config.macros.twveTableOptions.order
);
}
};
//}}}
/***
!!! Macro <<noedit>>
***/
//{{{
config.macros.noedit={
handler : function(place){
addClass(place,"noedit");
}
};
//}}}
/***
!!! twve.text extra features
***/
//{{{
merge(twve.text,{
//}}}
/***
!!!! twve.text.lineBreakToBr
***/
//{{{
lineBreakToBr : function(txt) {
return txt ? txt.replace(/\n/mg, ' <br>') : txt;
},
//}}}
/***
!!!! twve.text.brToLineBreak
***/
//{{{
brToLineBreak : function(txt) {
return txt
? txt.replace(/ <br>/mg,'\n')
.replace(/<br>/mg, '\n')
.replace(/ <br \/>/mg, '\n')
.replace(/<br \/>/mg, '\n')
: txt;
},
//}}}
/***
!!!! twve.text.nodeWideStyleText
***/
//{{{
nodeWideStyleText : function ( ctxt ) {
// Returns the cell-wide style text, if any.
var p = twve.text.skipStyleText ( ctxt );
return (p>0 ? ctxt.substring(0,p) : '');
}
});
//}}}
/***
!!! twve.node extra features
***/
//{{{
merge(twve.node,{
//}}}
/***
!!!! twve.node.copyMargin
***/
//{{{
copyMargin : function (dest,src,css) {
if ( ! css ) css = window.getComputedStyle(src);
dest.style.marginTop = src.style.marginTop ||
css.getPropertyValue('margin-top');
dest.style.marginRight = src.style.marginRight ||
css.getPropertyValue('margin-right');
dest.style.marginBottom = src.style.marginBottom ||
css.getPropertyValue('margin-bottom');
dest.style.marginLeft = src.style.marginLeft ||
css.getPropertyValue('margin-left');
return dest;
},
//}}}
/***
!!!! twve.node.copyPadding
***/
//{{{
copyPadding : function (dest,src,css) {
if ( ! css ) css = window.getComputedStyle(src);
dest.style.paddingTop = src.style.paddingTop ||
css.getPropertyValue('padding-top');
dest.style.paddingRight = src.style.paddingRight ||
css.getPropertyValue('padding-right');
dest.style.paddingBottom = src.style.paddingBottom ||
css.getPropertyValue('padding-bottom');
dest.style.paddingLeft = src.style.paddingLeft ||
css.getPropertyValue('padding-left');
return dest;
}
});
//}}}
/***
!!! twve.table
***/
//{{{
twve.table = {
//}}}
/***
!!!! twve.leveledElement.getLevel
***/
//{{{
preGetLevel : null,
getLevel : function(txt,start,ch){
if ( ! ch ) ch = txt.charAt(start);
return ch == '|'
? 1 : twve.table.preGetLevel.call(this,txt,start,ch);
},
//}}}
/***
!!!! twve.table.readOnly
***/
//{{{
preReadOnly : null,
readOnly : function(title){
var str = 'twve.table--example';
return (title && title.toLowerCase().substring(0,str.length)==str)
? false
: twve.table.preReadOnly.apply(this,arguments);
},
//}}}
/***
!!!! twve.table.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function (selector,scope) {
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
//var inc = 'table,'+twve.table.wrapper.getSelector();
var inc = 'table';
if ( scope && scope.toLowerCase().indexOf(inc) < 0 )
inc +=
',tr,th,td' + ',' +
//twve.table.wrapper.getSelector('inner') + ',' +
twve.table.wrapper.getSelector('all') + ',' +
twve.table.refBarV.getSelector() + ',' +
twve.table.refBarH.getSelector();
return selector.includeSelector(inc).excludeSelector(
'.syntaxhighlighter table'
).excludeSelector('table.htCore');
},
//}}}
/***
!!!! twve.table.is
***/
//{{{
is : function(node){
return twve.node.matches(
node,'table,'+twve.table.wrapper.getSelector()
);
},
//}}}
/***
!!!! twve.table.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
'\n|',
'\n'
);
// blockElement
tags.blockElement = true;
// clone
tags.clone = function(){
// Optional, may save a tiny bit of time.
return twve.table.markupTags();
};
// matchedCloseTag
tags.matchedCloseTag = function (txt, pos) {
// Replacing twve.tags.matchedCloseTag for tables.
// This method is used in twelem.ends method, which
// searches for the ending index of an element in txt.
// We replace it because the general rules implemented
// in twelem.ends do not apply to tables.
// A table contains several consecutive lines of text
// beginning with a vertical bar. This situation can be
// very well handled by twve.text.consecutiveLinesEnd()
// function so we let it do the hard work.
var pend = twve.text.consecutiveLinesEnd(txt,pos,true);
// But we need to take care of one thing after that.
// A valid table row must contain at least two vertical
// bars. If the last line contains only one beginning
// vertical bar, however, twve.text.consecutiveLinesEnd()
// function still considers it as part of the table.
// We check for that case and take care of it here.
while ( true ) {
var pn = txt.lastIndexOf('\n',pend.ndx-1);
var lntxt = txt.substring(pn+1,pend.ndx).split('|');
if ( lntxt.length < 3 ) pend.ndx = pn;
else break;
}
return pos.copyFrom(pend);
};
return tags;
},
//}}}
/***
!!!! twve.table.prepareElements
***/
//{{{
prePrepareElements : null,
prepareElements : function(twwrap){
// Prepare tables in the wrapper. In this method the twve.table
// does multi-line rendering and preparation for sorting.
if ( ! twve.table.prePrepareElements.apply(this,arguments)
|| ! config.options.chktwveTableEnabled
|| ! twwrap.tiddler )
return null;
// Prepare tables
var tables = twwrap.findElements(
twve.table.twveSelector(null,'table')
);
if ( tables ) {
//if ( twve.MathJax ) twve.MathJax.enabled = false;
var txt = twwrap.is('div.board')
? twve.tiddler.getEditInfo().text[0]
: null;
for ( var n=0,len=tables.length; n<len; n++ ){
// Allow TableSortingPlugin to prepare
if ( config.tableSorting
&& config.tableSorting.refresh ) {
config.tableSorting.refresh.call(this,twwrap.dom);
}
// Here we create a new twtable for each table, instead of
// using one twtable variable for all tables, as we did
// before, because sometimes the reference bars don't
// get correct dimensions when there are multiple tables.
var twtable = twve.table.create();
twtable.wrapper_title = twwrap.wrapper_title;
twtable.direct_wrapper = twwrap;
twtable.wrapper = [twtable.direct_wrapper.dom];
twtable.tiddler = txt ? {text: txt} : twwrap.tiddler;
twtable.rIndex = n;
twtable.dIndex = -1;
twtable.setElement(tables[n],txt);
twtable.prepare(txt);
}
//if ( twve.MathJax ) twve.MathJax.enabled = true;
}
return twwrap;
},
//}}}
/***
!!!! twve.table.textPasted
***/
//{{{
preTextPasted : null,
textPasted : function (ta) {
// Replacing the twve.tiddler.textPasted for tables.
// We need to do so because twve.table allows multi-
// lined content in table cells. Conversions between
// line breaks and <br />'s are necessary for correct
// operations.
var text_pasted = preTextPasted.apply(this,arguments);
if ( ! text_pasted || ! twve.tiddler.cur_editable.editNode )
return text_pasted;
// text pasted into a table
var modified = config.options.chktwveTableMultiLine
? twve.text.brToLineBreak(text_pasted)
: twve.text.lineBreakToBr(text_pasted);
if ( modified == text_pasted )
return text_pasted;
ta.value =
twve.tiddler.text_before_paste
? ( twve.tiddler.text_before_paste.substring(
0,
twve.tiddler.selection_at_paste.start
)
+ modified
+ twve.tiddler.text_before_paste.substring(
twve.tiddler.selection_at_paste.end
)
)
: modified;
return modified;
},
//}}}
/***
!!!! twve.table.addOptionsMenu
***/
//{{{
addOptionsMenu : function(menu){
return menu.addMenu(
"''twve.table'' Options",
config.macros.twveTableOptions.handler
);
},
//}}}
/***
!!!! twve.table.getOptionsMenu
***/
//{{{
preGetOptionsMenu : null,
getOptionsMenu : function(){
// Replacing the twve.tiddler.getOptionsMenu for twve.table.
var menu = twve.table.preGetOptionsMenu.apply(this,arguments);
twve.table.addOptionsMenu(menu);
return menu;
},
//}}}
/***
!!!! twve.table.getWrapper
***/
//{{{
getWrapper : function(elem,which) {
// Get the outer-most table wrapper
return twve.node.closest(
elem,twve.table.wrapper.getSelector(which)
);
},
//}}}
/***
!!!! twve.table.findTable
***/
//{{{
findTable : function(elem){
// Returns the table directly related to elem if there is,
// null otherwise.
if ( ! elem ) return null;
var w = twve.table.getWrapper(elem);
return w
? w.querySelector('table')
: twve.node.closest(elem,'table');
},
//}}}
/***
!!!! twve.table.rowRef
***/
//{{{
rowRef : function ( row ) {
// Reference of table rows.
// Other plugins can override this to offer their own
// format of row references.
return row;
},
//}}}
/***
!!!! twve.table.colRef
***/
//{{{
colRef : function ( col ) {
// Reference of table columns.
// Other plugins can override this to offer their own
// format of column references.
return col;
},
//}}}
/***
!!!! twve.table.cellRowSpan
***/
//{{{
cellRowSpan : function(cell){
// Returns the number of rows spanned by this cell.
var span = cell.getAttribute('rowspan');
return !span ? 1 : span*1;
},
//}}}
/***
!!!! twve.table.cellRowSpanMin
***/
//{{{
cellRowSpanMin : function(cells){
// Returns the minimum number of rows spanned by a row of cells.
var min_span = 0;
for ( var i=0, len=cells.length; i<len; i++ ) {
var cspan = twve.table.cellRowSpan(cells[i]);
if ( min_span == 0 || min_span > cspan )
min_span = cspan;
}
return min_span;
},
//}}}
/***
!!!! twve.table.cellColSpan
***/
//{{{
cellColSpan : function(cell){
// Returns the number of columns spanned by this cell.
var span = cell.getAttribute('colspan');
return !span ? 1 : span*1;
},
//}}}
/***
!!!! twve.table.getRowCell
***/
//{{{
getRowCell : function(cells,col){
if ( cells.nodeName == 'TR' )
cells = cells.querySelectorAll('th,td');
var cell = null;
for ( var c=0,len=cells.length; c<len; c++ ) {
cell = cells[c];
var cndx = twve.table.cellColIndex(cell);
if ( cndx == col ) {
// Found the desired cell.
break;
} else if ( cndx > col ) {
// The cell is column spanned and the desired
// cell is included.
var cspan = twve.table.cellColSpan(cell);
if ( cndx-cspan < col ) break;
}
cell = null;
}
return cell;
},
//}}}
/***
!!!! twve.table.columnsInRow
***/
//{{{
columnsInRow : function(tr,cells){
// Find the number of columns in a table row tr (DOM node).
var cols = 0;
if ( ! cells ) cells = tr.querySelectorAll('th,td');
for ( var n=0,len=cells.length; n<len; n++ )
cols += twve.table.cellColSpan(cells[n]);
tr.setAttribute('columns',cols);
tr.setAttribute('cells',cells.length);
return cols;
},
//}}}
/***
!!!! twve.table.rowWithMaxCol
***/
//{{{
rowWithMaxCol : function (table,rows) {
// Find the table row with maximum number of columns.
var trmax = null;
var cols = 0;
var cells = 0;
if ( ! rows ) rows = table.querySelectorAll('tr');
for ( var n=0,len=rows.length; n<len; n++ ){
var tr = rows[n];
var trcols = twve.table.columnsInRow(tr);
if ( trcols > cols ) {
cols = trcols;
}
var trcells = tr.getAttribute('cells')*1;
if ( trcells > cells ) {
trmax = tr;
cells = trcells;
}
}
return trmax;
},
//}}}
/***
!!!! twve.table.maxColumns
***/
//{{{
maxColumns : function(table,rows){
// Find the maximum number of columns in table.
return twve.table.rowWithMaxCol(table,rows)
.getAttribute('columns')*1;
},
//}}}
/***
!!!! twve.table.rowStarts
***/
//{{{
rowStarts : function(txt,rstart,end,r) {
// Find the index of the first character of the text that
// defines the rth row of the table. Start searching from
// index start.
// Arguments:
// txt: The wikitext that defines the tiddler containing
// the table.
// rstart: index of the first character to start searching.
// end: index of the last character to stop searching.
// r: The row index within the table, starting from 0.
// Returns:
// If found, returns the index of the first character, (|),
// of the rth table row. Otherwise -1.
var row = -1;
var rend;
while ( true ) {
rend = txt.indexOf('\n',rstart+1);
if ( rend > end ) return -1;
else if ( rend == -1 ) rend = end;
var ch = txt.charAt(rend-1).toLowerCase();
if ( ch=='h' || ch=='f' || ch=='|' )
if ( ++row == r )
// The index rstart is pointing at a '\n', but we want to
// return the index of '|'.
return rstart + (txt.charAt(rstart)=='\n'?1:0);
rstart = txt.indexOf('\n|',rend);
if ( rstart < 0 || rstart >= end )
return -1;
}
},
//}}}
/***
!!!! twve.table.rowEnds
***/
//{{{
rowEnds : function(txt,rstart) {
// A valid table row must contain at least two vertical bars.
var pn = txt.indexOf('\n',rstart);
if ( pn == -1 ) pn = txt.length;
return txt.substring(rstart,pn).split('|').length < 3
? (rstart-1)
: pn;
},
//}}}
/***
!!!! twve.table.locateCell
***/
//{{{
locateCell : function (txt,rstart,rend,col){
// Locate a table cell. If the cell is defined, returns the index
// of its first character and one after the last. If, however, the
// cell is missing, returns the index of the '|' immediately before
// the place where it should be inserted.
// Arguments:
// txt: tiddler text containing the table cell
// rstart: starting position of the table row containing
// this table cell
// rend: ending position of the table row
// col: column index of the table cell, returned from
// twve.table.cellColIndex(cell)
// Return value:
// An object containing the start and end positions of the
// table cell.
// {
// open: first character,
// close: last character of the table cell
// }
var c = -1;
var cpos = twve.object.create();
cpos.open = rstart;
while (true) {
cpos.close =
twve.text.skipToActive(txt,'|',cpos.open+1,rend).ndx;
if ( cpos.close == -1 || cpos.close > rend ) {
cpos.close = rend-1;
break;
}
if ( ++c == col ) break;
cpos.open = cpos.close;
}
if ( cpos.open < cpos.close ) cpos.open++;
return cpos;
},
//}}}
/***
!!!! twve.table.cellPos
***/
//{{{
cellPos : function (txt,start,end,row,col,span){
// Find the indexes of the first and last characters of
// a spanned table cell.
// Arguments:
// txt: tiddler text containing the table
// start: position in txt to start searching
// end: position in txt to end searching
// row: row index of the table cell
// col: column index of the table cell, returned from
// twve.table.cellColIndex(cell).
// span: object containing the number of spanned
// rows/cols, returned from
// twve.table.cellSpans(cell)
// {
// row: number of spanned rows,
// col: number of spanned columns
// }
// Return value:
// If span.row == 1 and span.col == 1, returns an object
// containing the start and end positions of the table
// cell. See locateCell above for the position object
// structure. If either span.row > 1 or span.col > 1,
// returns an array of cell positions (see above for
// position object structure). Otherwise returns an empty
// array (not supported yet).
var rstart = twve.table.rowStarts(txt,start,end,row);
var rend = twve.table.rowEnds(txt,rstart);
if ( span.row == 1 && span.col == 1 ) {
return twve.table.locateCell(txt,rstart,rend,col);
}
var pos = [];
// row spanned cells
for ( var r = 0; r < span.row; r++ ) {
pos[r] = [];
var cpos = twve.table.locateCell(
txt,rstart,rend,col-span.col+1
);
for ( var c = 0; c < span.col-1; c++ ) {
pos[r][pos[r].length] = {
open:cpos.open,
close:cpos.close
};
cpos.open += 2; cpos.close += 2;
}
pos[r][pos[r].length] =
twve.table.locateCell(txt,cpos.open-1,rend,0);
rstart = twve.table.rowStarts(txt,rend,end,0);
rend = twve.table.rowEnds(txt,rstart);
}
return pos;
},
//}}}
/***
!!!! twve.table.rowCells
***/
//{{{
rowCells : function (txt,rstart,rend){
// Find the indexes of the first and last characters of
// all cells in one table row.
// Arguments:
// txt: text containing the table
// rstart: starting position of the table row
// rend: ending position of the table row
// Return value:
// Returns an array of objects containing the indexes
// of the first and last characters of all cells in the
// table row. The indexes for the cth cell can be found
// at the [c]th element of the returned array.
var rpos = [];
var cpos = twve.object.create();
cpos.open = rstart;
cpos.close = rstart;
do {
cpos = twve.table.locateCell(txt,cpos.close,rend,0);
var ctxt = txt.substring(cpos.open,cpos.close);
if ( cpos.close == rend-1 ) {
var ch = txt.charAt(cpos.close).toLowerCase();
if ( ! (ch=='h' || ch=='f') )
rpos[rpos.length] = cpos;
return rpos;
}
rpos[rpos.length] = cpos;
} while ( true );
},
//}}}
/***
!!!! twve.table.allCells
***/
//{{{
allCells : function (txt,start,end){
// Find the indexes of the first and last characters of
// all table cells.
// Arguments:
// txt: text containing the table
// start: starting position of the table in txt
// end: ending position of the table in txt
// Return value:
// Returns an array of array of objects containing the
// indexes of the first and last characters of all table
// cells. The indexes for the cell (r, c) can be found
// at the [r][c]th element of the returned array.
var pos = [];
var rend = start;
var rstart;
do {
rstart = twve.table.rowStarts(txt,rend,end,0);
if ( rstart < 0 || rstart >= end ) break;
rend = twve.table.rowEnds(txt,rstart);
if (rend < rstart || rend > end) break;
pos[pos.length] = twve.table.rowCells(txt,rstart,rend);
if ( rend >= end ) break;
} while (true);
return pos;
},
//}}}
/***
!!!! twve.table copy/paste information
***/
//{{{
copied_rndx : -1,
copiedRowIndex : function(row){
if ( typeof row == 'number' )
twve.table.copied_rndx = row;
return twve.table.copied_rndx;
},
copied_rtxt : null,
copiedRowText : function(txt){
if ( txt === null || typeof txt == 'string' )
twve.table.copied_rtxt = txt;
return twve.table.copied_rtxt;
},
copied_cndx : -1,
copiedColumnIndex : function(col){
if ( typeof col == 'number' )
twve.table.copied_cndx = col;
return twve.table.copied_cndx;
},
copied_ctxt : null,
copiedColumnText : function(txt){
if ( txt === null || (typeof txt == 'object' && txt.length) )
twve.table.copied_ctxt = txt;
return twve.table.copied_ctxt;
},
//}}}
/***
!!!! twve.table sorting functions
***/
//{{{
sortTable : null, // SortableGridPlugin
tsResortTable : null, // TableSortingPlugin
//}}}
/***
!!!! twve.table.sortingEnabled
***/
//{{{
sortingEnabled : function() {
return !! (twve.table.sortTable
|| twve.table.tsResortTable);
},
//}}}
/***
!!!! twve.table.inEditArea
***/
//{{{
inEditArea : function(cell,ev){
if ( ! ev ) return true;
// Test if the mouse is cell in the first row while sorting
// feature is enabled. Check whether the user clicks
// on a place close to the content of this cell. If so,
// prepare to edit, otherwise leave it for sorting.
var ebox = twve.node.box(cell);
var pos = twve.tiddler.mousePosition(ev);
var x = (pos.x-ebox.left)/ebox.width;
//var y = (pos.y-ebox.top)/ebox.height;
// Define edge of edit area: 0.25 for SortableGridPlugin and 0.2
// for TableSortingPlugin.
// Note: SortableGridPlugin activates only when the user
// clicks on the text of the cell, while
// TableSortingPlugin activates whenever the user clicks
// within the cell.
// Here we do in a consistent way: Let the sorting plugin do its
// job when the user clicks in the central area (cursor would
// show a pointer), and take over to do editing when clicks
// closer to the left and right borders of the cell (cursor
// show a vertical bar as usually seen in a text box).
var edge = 0.2;
var central = true;
var talign = cell.style.textAlign ||
window.getComputedStyle(cell)
.getPropertyValue('text-align');
talign = talign.toLowerCase();
if ( talign.indexOf('right') >= 0 ) {
if ( x < edge ) return central;
} else if ( talign.indexOf('center') >= 0 ) {
if ( x < edge || x > (1-edge) ) return central;
} else if ( talign.indexOf('left') >= 0 ) {
if ( x > (1-edge) ) return central;
}
return ! central;
},
//}}}
/***
!!!! twve.table.wikify
***/
//{{{
preWikify : null,
wikify : function (txt,elem,children) {
// Replacing the twve.node.wikify for tables.
// We need to do so because table cells have their
// own rules for alignments, and, unfortunately,
// these rules are ignored in TiddlyWiki's wikify()
// function. We need to take care of the alignment
// settings here.
//
// Note: If I had had understood the formatters better,
// I could have had rewritten the one for tables.
// Unfortunately I just don't understand them.
if ( twve.node.matches(elem,'th,td') ) {
var style = twve.text.nodeWideStyleText(txt);
if ( style )
txt = txt.substring(style.length);
// Make sure the right cell type
var expected = txt.charAt(0) == '!'
? 'TH' : 'TD';
if ( elem.nodeName != expected ) {
var newcell = createTiddlyElement(null,expected);
elem.parentNode.replaceChild(newcell,elem);
elem = newcell;
if ( expected == 'TH' )
txt = txt.substring(1);
}
// Adjust text alignment
var leftsp = txt.charAt(0) == ' ';
var len = txt.length;
var rightsp = txt.charAt(len-1) == ' ';
if ( leftsp ) {
if ( rightsp ) {
elem.style.textAlign = 'center';
txt = txt.substring(1,len-1);
} else {
elem.style.textAlign = 'right';
txt = txt.substring(1);
}
} else {
elem.style.textAlign = 'left';
if ( rightsp )
txt = txt.substring(0,len-1);
}
if ( style ) {
// Apply the style text
style = style.match(/[\w-]+[:]{1}[\w-]+[;]{1}/g);
var css = [];
for ( var i = 0; i < style.length; i++ ) {
var si = style[i].match(/[\w-]+/g);
css[css.length]={'style':si[0],'value':si[1]};
}
config.formatterHelpers.applyCssHelper(elem,css);
}
}
return twve.table.preWikify.call(this,txt,elem,children);
},
//}}}
/***
!!!! twve.table.box
***/
//{{{
/*
preBox : null,
box : function(node,outerw,outerh){
if ( node.nodeName == 'TABLE' ) {
node = twve.table.getWrapper(node) || node;
}
//return twve.table.preBox.call(this,node,outerw,outerh);
return twve.table.preBox.apply(this,arguments);
},
*/
//}}}
/***
!!!! twve.table.getTableMenu
***/
//{{{
tableMenu : null,
getTableMenu : function(){
var label = 'Transpose';
var item = null;
if ( ! twve.table.tableMenu ) {
twve.table.tableMenu = twve.menu.create(
twve.button.create(
null,
String.fromCharCode(8801),
"table menu"
)
);
twve.table.addOptionsMenu(twve.table.tableMenu);
item = twve.table.tableMenu.addItem(
label,'Transpose this table'
);
item.click = function(){
if ( twve.button.isActive(this) )
twve.tiddler.focusElem().transpose();
};
}
if ( ! item )
item = twve.table.tableMenu.findItem(label);
item.activate(config.options.chktwveTableTranspose);
return twve.table.tableMenu;
},
//}}}
/***
!!!! twve.table.sort
***/
//{{{
sort : function(twtable,o,rev){
if ( ! twtable.startSorting() ) return;
var table = twtable.dom;
var cell = twtable.sortingCell(o);
// Make a copy of the rows before sorting
var rows_org = [];
var rows = table.querySelectorAll('tr');
for ( var r=0,len=rows.length; r<len; r++ )
rows_org[r] = rows[r];
// Save the height of wrappers
// For reasons unknown to me, the height of tbref and
// all in twtable.wrappers got changed after sorting.
// Do the sorting and keep the sorting info
try {
if ( config.tableSorting ) {
twve.table.sortTable.call(this,o,rev);
} else if ( config.macros.sortableGridPlugin ) {
twve.table.tsResortTable.call(this,o,rev);
}
} catch(e) {
console.log(e);
var msg = e.toString();
if ( msg.indexOf('undefined') > -1 )
console.log (
'There are probably spanned cells and/or missing cells in this table.'
);
return twtable;
}
// Retrieve the sorted rows, update the row index and
// even/odd classes.
var rows_sorted = [];
rows = table.querySelectorAll('tr');
for ( var r=0,len=rows.length; r<len; r++ ){
var tr = rows[r];
rows_sorted[r] = tr;
tr.setAttribute('row', r);
var cl = tr.classList;
cl.remove('oddRow');
cl.remove('evenRow');
cl.add(r%2?'oddRow':'evenRow');
}
// Reorder the underlying wikitext accordingly.
var txt = twtable.getText();
var sortedtxt = txt;
var sortedndx = new Array (rows_sorted.length);
// Record change of row indexes after sorting
// --------------------------------------------------
// This can be the most time-consuming part
// in sorting. Should figure a way to speed
// up if possible.
// --------------------------------------------------
for ( var r=0,len=rows_org.length; r < len; r++ ) {
for ( var rs=0,slen=rows_sorted.length; rs<slen; rs++ ) {
if ( rows_sorted[rs] != rows_org[r] )
continue;
sortedndx[rs] = r;
if ( rs != r )
txt = twtable.changed(
{
what: 'ROW MOVED',
from: r,
to: rs,
text: txt
}
);
break;
}
}
// Update the sorted text
var end = txt.length;
var send = sortedtxt.length;
var rstart, rsend = 0, rsstart;
for ( var rs=0; rs<rows_sorted.length; rs++ ) {
rsstart = twve.table.rowStarts(sortedtxt,rsend,send,0);
rsend = twve.table.rowEnds(sortedtxt,rsstart);
rstart = twve.table.rowStarts(txt,0,end,sortedndx[rs]);
rend = twve.table.rowEnds(txt,rstart);
sortedtxt = sortedtxt.substring(0,rsstart)
+ txt.substring(rstart,rend)
+ sortedtxt.substring(rsend);
var dlen = ((rend-rstart)-(rsend-rsstart));
send += dlen;
rsend += dlen;
}
sortedtxt = twtable.changed(
{
what:'SORTED',
text:sortedtxt
}
);
// Column sorting (moving rows) does not change the
// size of the table text.
//twve.tiddler.saveText(twtable,sortedtxt);
twtable.setText(sortedtxt);
twtable.showRefBars();
twtable.drawFocusBorders();
return twtable;
},
//}}}
/***
!!!! twve.table.focusTarget
***/
//{{{
preFocusTarget : null,
focusTarget : function(ev){
return twve.table.findTable(ev.target) ||
twve.table.preFocusTarget.apply(this,arguments);
},
//}}}
/***
!!!! twve.table.hasHeader
***/
//{{{
hasHeader : function(table,rows){
// Tests whether a table has a header.
if ( table.dom ) {
// If table is twve.table object, look for its header
// signature.
if ( table.headPos().open > -1 ) return true;
table = table.dom;
}
// If table is a DOM object, check for tHead.
if ( table.tHead ) return true;
// Otherwise check if the first row contains all TH's.
//
// Q: Do I really need to do this? 2015/02/11
//
if ( ! rows ) rows = table.querySelectorAll('tr');
//for ( var r=0, rlen=rows.length; r<rlen; r++ ) {
//var cells = rows[r].querySelectorAll('th,td');
var cells = rows[0].querySelectorAll('th,td');
var thcount = 0;
for ( var c=0, clen=cells.length; c<clen; c++ ) {
if ( twve.node.matches(cells[c],'th') )
thcount++;
}
if ( thcount == cells.length ) return true;
//}
return false;
},
//}}}
/***
!!!! twve.table.rowIndex
***/
//{{{
rowIndex : function(tr,ndx){
if ( ndx === undefined ) {
var row = tr.getAttribute('row');
return row ? (row * 1) : tr.rowIndex;
} else {
tr.setAttribute('row',ndx);
return ndx;
}
},
//}}}
/***
!!!! twve.table.cellRowIndex
***/
//{{{
cellRowIndex : function (cell,ndx) {
return twve.table.rowIndex(cell.parentNode,ndx);
},
//}}}
/***
!!!! twve.table.cellColIndex
***/
//{{{
cellColIndex : function (cell,ndx) {
if ( ndx === undefined ) {
var col = cell.getAttribute('col');
return col ? (col * 1) : cell.cellIndex;
} else {
cell.setAttribute('col',ndx);
}
},
//}}}
/***
!!!! twve.table.cellSpans
***/
//{{{
cellSpans : function(cell){
// Returns the number of rows and columns spanned by
// this cell.
var span = twve.object.create();
span.row = twve.table.cellRowSpan(cell);
span.col = twve.table.cellColSpan(cell);
return span;
},
//}}}
/***
!!!! twve.table.create
***/
//{{{
create : function(table,txt,start,dir){
// Creates a twve.table object
var twtable = twve.element.create();
// clear
//var preClear = twtable.clear;
twtable.clear = function(){
//preClear.apply(this);
twtable.wrappers = null;
twtable.refbarV = null;
twtable.refbarH = null;
twtable.editNode = null;
twtable.differentBox = true;
return twtable;
};
// copyFrom
var preCopyFrom = twtable.copyFrom;
twtable.copyFrom = function(table){
preCopyFrom.apply(this,arguments);
twtable.wrappers = table.wrappers;
twtable.refbarV = table.refbarV;
twtable.refbarH = table.refbarH;
twtable.editNode = table.editNode;
return twtable;
};
// markupTags
twtable.markupTags = function(){
return twve.table.markupTags();
};
// twveSelector
twtable.twveSelector = function(){
return twve.table.twveSelector(null,'table');
};
// is
var preIs = twtable.is;
twtable.is = function(elem){
if ( ! elem ) return false;
if ( preIs.apply(this,arguments) ) return true;
return twve.node.matches(
elem,twve.table.twveSelector().include
) || twve.node.closest(elem,'th,td');
};
// is editable
twtable.isEditable = function(elem){
if ( twtable.wrappers ) {
if ( twtable.wrappers.wrap == elem ) {
twtable.editNode = null;
return true;
}
if ( ! twve.node.contains(twtable.wrappers.wrap,elem) )
return false;
}
var cell = null;
if ( twve.node.matches(elem,'th,td') )
cell = elem;
else
cell = twve.node.closest(elem,'th,td');
if ( cell ) {
// A table cell or elements within a table cell.
twtable.editNode = cell;
return true;
}
var selector_cap = twve.table.wrapper.getSelector('cap');
if ( twve.node.matches(elem,selector_cap) ) {
// Table caption.
twtable.editNode = elem;
return true;
}
if ( twve.node.matches(elem,'table,tr') ) {
// Missing cells. FireFox uses TR, while Chrome, Opera
// and IE use TABLE to cover them. I don't know about
// Safari.
twtable.editNode = elem;
return true;
}
if ( twve.node.matches (
elem,
twve.table.wrapper.getSelector('all')
) ) {
// Whole table
twtable.editNode = null;
return true;
}
return false;
};
// clone
twtable.clone = function(){
// Optional, may save a tiny bit of time.
return twve.table.create(twtable);
};
// disabled
twtable.disabled = function(){
return (twtable.end.ndx == -1
|| ! config.options.chktwveTableEnabled
|| twtable.isSystemShadow()
|| ! (config.options.chktwveTableEditAll
|| twtable.hasClass('editable')
|| twtable.hasClass('|editable')));
};
// mouseenter
twtable.mouseenter = function(ev){
if ( twtable.disabled() ) return false;
if ( ! twtable.refbarV.isVisible() ) {
twtable.showRefBars();
}
return true;
};
// cellAtMouse
twtable.cellAtMouse = function(ev){
return ev.target;
};
// mouesmove
twtable.mousemove = function(ev){
//if ( /^t[hd]$/i.test(ev.target.nodeName) ) {
if ( twve.node.box(twtable.dom)
.contains(twve.tiddler.mousePosition(ev)) ) {
twtable.refbarV.hideMenu();
twtable.refbarH.hideMenu();
twve.table.getTableMenu().hide();
if ( twve.table.sortingEnabled()
&& twve.table.hasHeader(twtable) ) {
// There is table sorting plugin installed, and
// this table has a header (sortable).
var cell = twtable.cellAtMouse(ev);
if ( twve.table.cellRowIndex(cell)==0 ) {
// This cell is in the header row.
cell.style.cursor =
twve.table.inEditArea(cell,ev)
? 'text'
: 'pointer';
}
}
}
};
// mouseleave
twtable.mouseleave = function(ev){
if ( twve.tiddler.getEditBox() &&
twve.tiddler.cur_editable.is(twtable) )
return false;
return ! twve.node.box(twtable.wrappers.wrap)
.contains(twve.tiddler.mousePosition(ev));
};
// blur
twtable.blur = function(){
if ( twtable.refbarV.isVisible() ) {
twtable.hideRefBars();
twve.table.getTableMenu().hide(true);
if ( twtable.beingEdited() )
twve.tiddler.updateText();
}
};
// getCurElem
twtable.getLastCurElem = function(){
return twtable.editNode.length
? twtable.editNode[twtable.editNode.length-1]
: twtable.editNode;
};
// box
twtable.box = function(action,ev,elem){
action = action.toLowerCase();
if ( twtable.editNode && action.indexOf('edit')>=0 ) {
if ( ! elem ) elem = twtable.getLastCurElem();
var eb = twve.node.box(elem);
if ( (config.browser.firefoxDate
&& config.browser.isLinux)
&& twve.node.matches(elem,'th,td') ){
var delta = twve.node.cssSize(
elem.style.paddingLeft
);
eb.left -= delta / 2;
eb.width -= delta;
delta = twve.node.cssSize(
elem.style.paddingTop
);
eb.top -= delta / 2;
eb.height -= delta;
}
return eb;
}
var eb = twve.node.box(
twtable.wrappers
? twtable.wrappers.wrap
: twtable.dom
);
/*
if ( /^focus/i.test(action) ) {
var pos = twve.object.create();
pos.left = eb.right;
pos.top = eb.top;
twve.table.getTableMenu().showRoot(pos,'left');
}
*/
return eb;
};
// prepare
twtable.prepare = function (txt) {
if ( twtable.disabled() ) return false;
// Prepare the table rows for editing.
twtable.initRows(txt);
// Prepare the sorting plugin.
if ( twve.table.hasHeader(twtable) ) {
if ( config.tableSorting ) {
// The TableSortingPlugin is installed.
if ( ! twve.table.sortTable ) {
twve.table.sortTable =
config.tableSorting.sortTable;
config.tableSorting.sortTable=function(o,rev){
twve.table.sort(
twve.tiddler.focusElem(),o,rev
);
};
}
} else if ( config.macros.sortableGridPlugin ) {
// The SortableGridPlugin is installed.
if ( ! twve.table.tsResortTable ) {
twve.table.tsResortTable =
config.macros.sortableGridPlugin
.ts_resortTable;
config.macros.sortableGridPlugin.ts_resortTable =
function(lnk){
twve.table.sort(
twve.tiddler.focusElem(),lnk
);
};
}
}
}
// Call the resize handler of twtable.
/*
var foldedParents = twve.node.parents(
twtable.wrappers.wrap,
//twve.foldedSection.getSelector()
twve.tiddler.twveFoldableSelector().include,
function(){
return ! twve.node.isVisible(this);
}
);
if ( foldedParents ) twve.node.show(foldedParents);
*/
twtable.adjustWidth();
twtable.resize();
//if ( foldedParents ) twve.node.hide(foldedParents);
return true;
};
// Find the table row with maximum number of cells.
twtable.rowWithMaxCol = function (rows) {
return twve.table.rowWithMaxCol(twtable.dom,rows);
};
// counts
twtable.counts = function(searchInfo,txt){
// Check if the currently found element counts as a valid
// one. If so,
// 1. update the ndx and remained properties of
// searchInfo,
// 2. return true.
// Otherwise,
// 1. return false.
var pn = twve.table.rowEnds(
txt,
twtable.start.ndx+(txt.charAt(twtable.start.ndx)=='\n'?1:0)
);
if ( pn <= twtable.start.ndx ) {
// Not a valid table. Don't count.
return false;
} else {
// A table for sure. Update the index and remained.
--searchInfo.remained;
++searchInfo.ndx;
return true;
}
};
// starts
var preStarts = twtable.starts;
twtable.starts = function(start,txt,dir){
if ( dir && dir < 0 ){
// Going backwards,
preStarts.call(this,start-1,txt,dir);
var tags = twtable.tags.exactCloseTag(
twtable.start.matched
);
if ( ! txt ) txt = twtable.tiddler.text;
// Locate the end of this table.
twtable.end.ndx = txt.indexOf(
tags.close,twtable.start.ndx+1
)+tags.close.length;
twtable.end.matched = tags.close;
// Find the begining of this table.
twtable.start = twve.text.consecutiveLinesEnd(
txt,twtable.start,true,'|',tags,-1
);
if(twtable.start.ndx > 0) twtable.start.ndx++;
twtable.found = true;
return twtable.start;
}
return preStarts.apply(this,arguments);
};
// ends
var preEnds = twtable.ends;
twtable.ends = function(){
return twtable.found
? twtable.end
: preEnds.apply(this,arguments);
};
// get element
twtable.getElement = function(){
return twtable.editNode
? twtable.getLastCurElem()
: twtable.dom;
};
// createWrapperRefBars
twtable.createWrapperRefBars = function(){
//if(Handsontable && twtable.hasClass('handson')){
// config.extensions.Handsontable.create(twtable);
//} else {
twtable.wrappers = twve.table.wrapper.create(twtable);
twtable.refbarV = twve.table.refBarV.create(twtable);
twtable.refbarH = twve.table.refBarH.create(twtable);
//}
return twtable;
};
// setElement
var preSetElement = twtable.setElement;
twtable.setElement = function(elem,txt,start,dir){
if(twtable.isEditable(elem)){
elem = twve.table.findTable(elem);
} else {
twtable.editNode = null;
if ( ! twve.node.matches(elem,'table') )
elem = twve.table.findTable(elem);
}
preSetElement.call(this,elem,txt,start,dir);
if ( dir < 0 ){
// Going backwards, look for the very begining of
// this table.
twtable.start.copyFrom(
twve.text.consecutiveLinesEnd(
txt, twtable.start, true,
'|', twtable.tags, dir
)
);
}
if ( ! twtable.disabled() )
// create wrappers for scrolling, etc.
twtable.createWrapperRefBars();
return twtable;
};
// setTable (alternative to setElement)
twtable.setTable = function(table,txt,start,dir){
return twtable.setElement(table,txt,start,dir);
};
// putRefBars
twtable.putRefBars = function(left,top){
var css = window.getComputedStyle(twtable.dom);
twve.node.setPosition(
twtable.refbarH.dom,
left+parseInt(css.getPropertyValue('margin-left'))
);
twve.node.setPosition(
twtable.refbarV.dom,
null,
top+parseInt(css.getPropertyValue('margin-top'))
);
return twtable;
};
// show reference bars
twtable.showRefBars = function(){
twtable.refbarV.show();
twtable.refbarH.show();
twtable.adjustRefBars();
var dw = twtable.refbarV.getSize();
var dh = twtable.refbarH.getSize();
var tbw = twtable.wrappers;
tbw.resize(dw,dh);
twve.node.setPosition(tbw.cap,dw);
twve.node.setPosition(tbw.tb,dw,dh);
twtable.putRefBars(dw,dh);
return twtable;
};
// hide reference bars
twtable.hideRefBars = function(){
if ( ! twtable.refbarV.isVisible() ) return twtable;
twtable.refbarV.hide();
twtable.refbarH.hide();
var tbw = twtable.wrappers;
twve.node.setPosition(tbw.cap,0);
twve.node.setPosition(tbw.tb,0,0);
tbw.resize();
return twtable;
};
// maxColumns
twtable.maxColumns = function(rows){
return twve.table.maxColumns(twtable.dom,rows);
};
// renderedCopy
var preRenderedCopy = twtable.renderedCopy;
twtable.renderedCopy = function(){
var the_copy = preRenderedCopy.apply(this,arguments);
if ( the_copy && twtable != the_copy ) {
// Create wrappers for the_copy
the_copy.createWrapperRefBars();
if ( twtable.editNode ) {
// There is editNode, and the_copy is not twtable
// itself. Find the corresponding editNode in
// the_copy.
var elem = twtable.editNode;
if ( twve.node.matches(elem,'div') ) {
// table caption
the_copy.editNode = the_copy.wrappers.cap;
} else if (twve.node.matches(elem,'td,th')) {
// table cell
var tr = the_copy.dom.querySelectorAll('tr')[
twve.table.cellRowIndex(elem)
];
if ( twve.node.matches(elem,'[missed]') ) {
// Missing cell(s), create new one(s) and
// append to the end of tr.
the_copy.editNode =
the_copy.appendCell(
tr, elem.length || 1
);
} else {
the_copy.editNode = twve.table.getRowCell(
tr,twve.table.cellColIndex(elem)
);
}
}
}
}
return the_copy;
};
// getCell
twtable.getCell = function (row,col,rows) {
// Get the cell indexed by (index.row, index.col).
// If there are row- or col-spanned cells, the indexes of
// table cells assigned by the browsers are not consistent
// to what we see, making it confusing with keyboard
// navigation. To fix this, we need to search from the
// first row, and from the first cell in each row, to
// achieve visually consistent indexes for table cells.
if ( ! rows ) rows = twtable.dom.querySelectorAll('tr');
var cell = null;
for ( var r=0,len=rows.length; r<len; r++ ){
cell = twve.table.getRowCell(rows[r],col);
if ( ! cell ) {
// There is no cell with column index col in this
// row.
if ( r == row )
// If this is the row we are expecting, then we
// are looking for a missing cell, stop
// searching and return.
return null;
// Otherwise go to the next row.
continue;
}
// There is a cell with column index col in this row.
// Check its row spanning status.
var rspan = twve.table.cellRowSpan(cell);
if ( (rspan == 1 && r == row)
// If this cell is not row-spanned,
|| (r+rspan-1 >= row) )
// or it is row-spanned and includes the target row,
// stop searching and return.
break;
// Otherwise go to the next row.
cell = null;
}
return cell;
};
// appendCell
twtable.appendCell = function(tr, n, cndx){
// Append n cells to the end of tr.
// Returns an array of DOM object representing the n cells
// just appended.
if ( typeof n != 'number' || n <= 0 ) n = 1;
if ( typeof cndx != 'number' ) {
var cells = tr.querySelectorAll('th,td');
cndx = twve.table.cellColIndex(cells[cells.length-1]);
}
var cell = [];
for ( var i = 0; i < n; i++ ) {
var c = document.createElement('td');
c.setAttribute('missed',true);
c.setAttribute('col',(++cndx));
tr.appendChild(c);
cell[cell.length] = c;
}
return cell;
};
// editNextCell
twtable.editNextCell = function(which,delta,dr,dc){
// Edit the neighboring cell indexed separated by delta, in
// the direction specified by which.
if ( dr === undefined ) dr = 0;
if ( dc === undefined ) dc = 0;
var cell = twtable.getLastCurElem();
var row = twve.table.cellRowIndex(cell)+dr;
var col = twve.table.cellColIndex(cell)+dc;
switch ( which ) {
case 'left' :
col -= delta;
break;
case 'up' :
row -= delta;
break;
case 'right' :
col += delta;
break;
case 'down' :
row += delta;
break;
}
// Save changes to this one.
twve.tiddler.updateText();
// Check validity of indexes.
var rows = twtable.dom.querySelectorAll('tr');
if ( row < 0 ) row = rows.length-1;
else if ( row >= rows.length ) row = 0;
var maxcols = twtable.maxColumns(rows);
if ( col < 0 ) col = maxcols - 1;
else if ( col >= maxcols ) col = 0;
// Get the neighboring cell.
twtable.editNode = twtable.getCell(row,col,rows);
if ( ! twtable.editNode ) {
// Missing cell. Get the corresponding row,col indexes
// from the last cell in the row.
var cells = rows[row].querySelectorAll('th,td');
var cndx = twve.table.cellColIndex(cells[cells.length-1]);
// Then create new cells accordingly, and get the
// desired cell.
twtable.editNode = twtable.appendCell(
rows[row], col-cndx, cndx
)[col-cndx-1];
} else if ( twtable.editNode.classList.contains('noedit') ) {
return twtable.editNextCell(which,delta,dr,dc);
}
// Edit the next cell.
twtable.editText(null,row,col);
return twtable;
};
// editNeighbor
var preEditNeighbor = twtable.editNeighbor
twtable.editNeighbor = function (which,delta) {
// Edit the neighboring cell or table of twtable. The
// direction is specified in the second argument which:
// 'left', 'right', 'up', or 'down'.
if ( ! twtable.editNode ||
twve.node.matches(twtable.editNode,'div') )
// Table or caption
return preEditNeighbor
? preEditNeighbor.apply(this,arguments)
: null;
// Table cell
if ( delta === undefined ) delta = 1;
var tas = twve.tiddler.getEditBox();
var talen = tas.length;
if ( talen == 1 ) {
tas = tas[0];
talen = tas.length;
}
if ( ! (talen > 1) ) {
// The editbox has only one textarea, edit its next cell.
return twtable.editNextCell(which,delta);
}
// If the editbox has multiple textareas, check the row and
// column spans and decide what to do.
var ndx = 0;
for ( ; ndx<talen; ndx++ )
if ( twve.node.matches(tas[ndx],'textarea:focus') )
break;
var span = twve.table.cellSpans(twtable.editNode);
if ( span.col > 1 ) {
// Column spanned cell
var dc = span.col-ndx-1;
switch ( which ) {
case 'left' :
ndx -= delta;
break;
case 'right' :
ndx += delta;
break;
case 'up' :
case 'down' :
return twtable.editNextCell(which,delta,0,-dc);
}
if ( ndx < 0 || ndx >= talen )
// If we are moving out of the multiple textareas,
// go to the next cell.
return twtable.editNextCell(which,delta,0,-dc);
} else if ( span.row > 1 ) {
// Row spanned cell
var dr = ndx;
switch ( which ) {
case 'left' :
case 'right' :
return twtable.editNextCell(which,delta,dr,0);
case 'up' :
ndx -= delta;
break;
case 'down' :
ndx += delta;
break;
}
if ( ndx < 0 || ndx >= talen )
// If we are moving out of the multiple textareas,
// go to the next cell.
return twtable.editNextCell(which,delta,dr,0);
}
// Otherwise move to the next textarea.
var ta = tas[ndx].nodeType ? tas[ndx] : tas[ndx][0];
ta.focus();
twve.tiddler.previewEditBox(ta);
return twtable;
};
// getCellText
var cell_pos = null;
var cell_style = '';
twtable.getCellText = function(pos,txt){
if ( ! txt ) txt = twtable.getText();
cell_style = '';
var wikitxt = '';
if ( pos.length ) {
// spanned cell
wikitxt = [];
for ( var r = 0; r < pos.length; r++ ) {
wikitxt[r] = [];
for ( var c = 0; c < pos[r].length; c++ )
wikitxt[r][c] = txt.substring(
pos[r][c].open,pos[r][c].close
);
}
if ( ! config.options.chktwveTableIncludeCSS ) {
cell_style = twve.text.nodeWideStyleText(
wikitxt[0][pos[0].length-1]
);
wikitxt[0][pos[0].length-1] =
wikitxt[0][pos[0].length-1].substring(
cell_style.length
);
}
if ( config.options.chktwveTableMultiLine )
wikitxt[0][pos[0].length-1] =
twve.text.brToLineBreak(
wikitxt[0][pos[0].length-1]
);
} else {
// single cell
wikitxt = txt.substring(pos.open,pos.close);
if ( ! config.options.chktwveTableIncludeCSS ) {
cell_style = twve.text.nodeWideStyleText(wikitxt);
wikitxt = wikitxt.substring(cell_style.length);
}
if ( config.options.chktwveTableMultiLine )
wikitxt = twve.text.brToLineBreak(wikitxt);
}
cell_pos = pos;
return wikitxt;
};
// set cell text
twtable.setCellText = function(wikitxt,pos){
// Set cell text. The first argument wikitxt
// is always an array of strings. If it is to update a
// single cell, wikitxt is a simple array of length 1.
// If, however, we are to update a spanned cell, the
// wikitxt shall be a double array: wikitxt.length
// should correspond to the number of rows spanned by
// the cell, while each of the element wikitxt[n] is
// an array with a length corresponding to the number
// of columns spanned by the cell.
//
// The 2nd argument pos should be the return value of
// twve.table.cellPos(...) method.
if ( ! pos ) pos = cell_pos;
if ( ! pos ) {
displayMessage(
'Internal error: twtable.setCellText().'+
' Trying to set text without a specific position.'
);
return null;
}
var start = twtable.start.ndx;
if ( pos.length ) {
// spanned cell
if ( cell_style )
wikitxt[0][pos[0].length-1]=
cell_style+wikitxt[0][pos[0].length-1];
for(var r=pos.length-1; r>=0; r--){
for(var c=pos[r].length-1;c>=0;c--){
// convert \n to <br /> if necessary
if(config.options.chktwveTableMultiLine
&& wikitxt[r][c].indexOf('\n')>=0)
wikitxt[r][c] =
twve.text.lineBreakToBr(wikitxt[r][c]);
// update one cell
twtable.setText(
wikitxt[r][c],
pos[r][c].open+start,
pos[r][c].close+start
);
}
}
} else {
// single cell
// convert \n to <br /> if necessary
if ( config.options.chktwveTableMultiLine
&& wikitxt[0].indexOf('\n')>=0 )
wikitxt[0] = twve.text.lineBreakToBr(wikitxt[0]);
if ( cell_style ) {
wikitxt[0] = cell_style+wikitxt[0];
}
// update cell text
twtable.setText(
wikitxt[0],pos.open+start,pos.close+start
);
}
return twtable;
};
// update cell
twtable.updateCell = function(txt){
// Update cell text. The argument txt is always an array of
// strings. If it is to update a single cell, txt is a
// simple array of length 1. If, however, we are to update a
// spanned cell, the txt shall be a double array: an array of
// array of strings. The txt.length corresponds to the
// number of spanned rows, while txt[n].length is the number
// of spanned column in that row.
var txt0 = txt[0];
var cell = twtable.editNode.length
? twtable.editNode
: [twtable.editNode];
for ( var n=cell.length-1; n>=0; n-- )
if(twve.node.matches(cell[n],'[missed]'))
txt[0] = '|'+txt[0];
if ( ! twtable.setCellText(txt) )
return false;
// Decide how to refresh
if ( // spanned cell before
cell_pos.length
// cell wide style text before
|| cell_style
// cell wide style text now
|| twve.text.nodeWideStyleText(txt0)
// spanned cell now
|| (txt0=='~' || txt0=='>') ) {
// Any of the above situations, we refresh the
// whole table.
//twtable.editNode = null;
twtable.refreshTable(txt);
} else {
// Otherwise refresh only the cell just changed
// and all its copies.
// First we remove the 'missed' attribute.
for ( var n=cell.length-1; n>=0; n-- )
cell[n].removeAttribute('missed');
// Then we refresh the cell just changed.
cell = cell[cell.length-1];
var param = twve.object.create();
param.what = 'MODIFIED';
param.row = twve.table.cellRowIndex(cell);
param.col = twve.table.cellColIndex(cell);
param.text = twtable.getText();
// Refresh the cell.
twtable.refreshAll(txt0,param);
twtable.editNode = null;
}
cell_style = '';
cell_pos = null;
return true;
};
//}}}
/***
!!!!! twtable.rowAt
***/
//{{{
twtable.rowAt = function(pos,rows){
// Locate the table row, within rows, at position pos.
if ( ! rows ) rows = twtable.dom.querySelectorAll('tr');
for ( var r=0,len=rows.length; r<len; r++ ){
if ( twve.node.box(rows[r]).containsY(pos.y) )
return rows[r];
}
return null;
};
//}}}
/***
!!!!! twtable.rowIndexAt
***/
//{{{
twtable.rowIndexAt = function(pos,rows){
// Find the index of a table row that is supposed to be at
// position pos.
var tr = twtable.rowAt(pos,rows);
return tr ? twve.table.rowIndex(tr) : -1;
};
//}}}
/***
!!!!! twtable.colIndexAt
***/
//{{{
twtable.colIndexAt = function(pos){
// Find the index of a table cell that is supposed to be at
// position pos.
var csp = twtable.refbarH.dom.querySelectorAll('span');
var cndx = csp.length-1;
for ( ; cndx >= 0; cndx-- )
if (twve.node.box(csp[cndx]).containsX(pos.x))
break;
return cndx;
};
//}}}
/***
!!!!! twtable.previewEditBox
***/
//{{{
var prePreviewEditBox = twtable.previewEditBox;
twtable.previewEditBox = function(ta,elem){
var preview = prePreviewEditBox.apply(this,arguments);
if ( elem.nodeName == 'TABLE' ) {
var twwrap = twtable.direct_wrapper.clone();
twwrap.dom = preview.querySelector('div.board');
twwrap.waitAndPrepare();
}
return preview;
};
//}}}
/***
!!!!! twtable.editCell
***/
//{{{
twtable.editCell = function(ev,rowndx,colndx){
var table = twtable.dom;
var cell = twtable.getLastCurElem();
// The 2nd argument, rowndx, was determined using mouse
// position, is the same as the following variable, row,
// only for single-row cells. The two are different when
// the cell is row-spanned (occupying space of multiple rows).
var row = twve.table.cellRowIndex(cell);
var pos;
var rows = table.querySelectorAll('tr');
// Determine whether to sort or edit if cell is a
// header cell.
if ( row == 0 && twve.table.hasHeader(table,rows)
&& twve.table.sortingEnabled()
&& ! twve.table.inEditArea(cell,ev) ) {
return null;
}
if(twve.node.matches(cell,'.noedit')) return null;
if ( ev ) {
// Check if there is transcluded content inside this
// cell.
var twwrap =
twve.tiddler.createEditableWrapper(ev.target);
if ( twwrap ) {
// We are clicking on the transcluded content.
return twwrap.editText(ev);
}
}
// Now do the editing for this cell.
// The 3rd argument, colndx, was determined using mouse
// position, is the same as the following variable, col,
// only for single-column cells. The two are different when
// the cell is column-spanned (occupying space of multiple
// columns).
var col = twve.table.cellColIndex(cell);
var span = twve.table.cellSpans(cell);
var txt = twtable.getText();
pos = twve.table.cellPos(
txt,0,txt.length,row,col,span
);
var wikitxt = twtable.getCellText(pos,txt);
if ( ! pos.length )
return preEditText.call(this,ev,wikitxt,cell);
// spanned cell
twve.tiddler.cur_editable = twtable;
var ta0;
var sp_h = twtable.refbarH.dom.querySelectorAll('span');
var css = window.getComputedStyle(cell);
var fs = twve.node.cssSize(
css.getPropertyValue('font-size')
);
var talign = css.getPropertyValue('text-align');
var lh = twve.node.cssSize(
css.getPropertyValue('line-height')
);
var display = twve.node.closest(
table, twve.tiddler.displaySelector()
);
var edit_box = [];
var minw = fs*config.options.txttwveCoreMinEditWidth;
for ( var r=0,rlen=wikitxt.length; r<rlen; r++ ){
var tar = [];
var tr = rows[row+r];
var trbox = twve.node.box(tr);
if ( trbox.height < lh ) trbox.height = lh;
for ( var c=0,clen=wikitxt[r].length; c<clen; c++ ){
var cndx = col-span.col+1+c;
var eb = twve.node.box(sp_h[cndx]);
eb.top = trbox.top;
eb.height = trbox.height;
var tarc = document.createElement('textarea');
var ctxt = wikitxt[r][c];
tarc.value = ctxt;
tarc.defaultValue = ctxt;
display.appendChild(tarc);
twtable.prepareEditBox(tarc,ctxt,eb,talign,fs);
if ( eb.width < minw )
twve.node.setDimension(tarc,minw);
tar[c] = tarc;
if ( r+row == rowndx && cndx == colndx ) {
txt = ctxt;
ta0 = tarc;
}
}
edit_box[r] = tar;
}
twve.tiddler.setEditBox(edit_box);
twtable.focusEditBox(ta0,txt,ev,cell);
twtable.previewEditBox(ta0,cell,display);
return ta0;
};
//}}}
/***
!!!!! twtable.signaturePosByTail
***/
//{{{
twtable.signaturePosByTail = function(tail,txt){
// Find the position of a signature by its tail, such as
// 1. a class string that ends with |k, such as |className|k,
// 2. a caption that ends with |c, such as |caption|c,
// 3. a table head that ends with |h, or
// 4. a footage that ends with |f.
// A signature tail MUST be either
// 1. at the end of a line of text, or
// 2. at the end of the tiddler text.
//
// The argument "tail" MUST NOT contain an ending \n.
//
var pos = twve.object.create();
pos.open = -1;
pos.close = -1;
var start, end;
if ( ! txt ) txt = twtable.getText();
start = 0; end = txt.length;
pos.close = txt.indexOf(tail.toLowerCase(),start);
if ( pos.close == -1 )
pos.close = txt.indexOf(tail.toUpperCase());
if(pos.close>-1 && pos.close<end &&
(pos.close+tail.length==end ||
txt.charAt(pos.close+tail.length)=='\n')){
// a signature tail is found
pos.open = pos.close;
do {
pos.open = txt.lastIndexOf(
'|',pos.open-1
);
}while(pos.open>0 && txt.charAt(pos.open-1)!='\n');
pos.open++;
} else {
// No signature tail is found.
pos.close = -1;
}
return pos;
};
//}}}
/***
!!!!! twtable.headPos
***/
//{{{
twtable.headPos = function(txt){
// Find the position of a table head |....|h\n.
return twtable.signaturePosByTail('|h',txt);
};
//}}}
/***
!!!!! twtable.getHeader
***/
//{{{
twtable.getHeader = function(txt){
if ( ! txt ) txt = twtable.getText();
var pos = twtable.headPos(txt);
return pos.open != -1
? txt.substring(pos.open,pos.close)
: '';
};
//}}}
/***
!!!!! twtable.footPos
***/
//{{{
twtable.footPos = function(txt){
// Find the position of a footage |....|f\n.
return twtable.signaturePosByTail('|f',txt);
};
//}}}
/***
!!!!! twtable.getFootNote
***/
//{{{
twtable.getFootNote = function(txt){
if ( ! txt ) txt = twtable.getText();
var pos = twtable.footPos(txt);
return pos.open != -1
? txt.substring(pos.open,pos.close)
: '';
};
//}}}
/***
!!!!! twtable.classPos
***/
//{{{
twtable.classPos = function(txt){
// Find the position of a class string |className|k\n.
return twtable.signaturePosByTail('|k',txt);
};
//}}}
/***
!!!!! twtable.getClass
***/
//{{{
twtable.getClass = function(txt){
if ( ! txt ) txt = twtable.getText();
var pos = twtable.classPos(txt);
return pos.open != -1
? txt.substring(pos.open,pos.close)
: '';
};
//}}}
/***
!!!!! twtable.captionPos
***/
//{{{
twtable.captionPos = function(txt){
// Find the position of a caption string |className|c\n.
return twtable.signaturePosByTail('|c',txt);
};
//}}}
/***
!!!!! twtable.getCaption
***/
//{{{
twtable.getCaption = function(txt){
if ( ! txt ) txt = twtable.getText();
var pos = twtable.captionPos(txt);
return pos.open != -1
? txt.substring(pos.open,pos.close)
: '';
};
//}}}
/***
!!!!! twtable.setCaption
***/
//{{{
twtable.setCaption = function (newtxt) {
// For some reason unknown to me, there are two focusout
// events fired for caption update, and in the 2nd time
// the tiddler is null and shall be ignored.
// Locate caption text.
var pos = twtable.captionPos();
var start = twtable.start.ndx;
if ( pos.open != -1 ) {
// There is caption currently and the user wants
// to change it.
if ( ! newtxt ) {
// If the user wants to remove the caption,
// we remove the whole caption line.
if ( pos.open > 0 ) pos.open--;
pos.close += 3;
}
twtable.setText(newtxt,pos.open+start,pos.close+start);
} else if ( newtxt ) {
// There is no caption at this moment, and
// the user is setting a new one.
// Look for class position.
pos = twtable.classPos();
if ( pos.open > -1 ) {
// There is class string in the defining text, put
// the caption after it.
pos.open = (pos.close+=3);
twtable.setText(
'|'+newtxt+'|c',pos.open+start,pos.close+start
);
} else {
// Otherwise add the caption to the beginning.
pos.open = pos.close = 0; //twtable.start.ndx;
twtable.setText('|'+newtxt+'|c\n',start,start);
}
}
return true;
};
//}}}
/***
!!!!! twtable.editText
***/
//{{{
var preEditText = twtable.editText;
twtable.editText = function(ev,rowndx,colndx){
// Replacing the twve.editable.editText for tables.
twve.tiddler.clearFocusBox();
if ( twtable.editNode ) {
var pos = null;
switch ( twtable.editNode.nodeName ) {
case 'TABLE' :
// Clicking on a missing cell.
// Need to find the corresponding row index.
pos = twve.tiddler.mousePosition(ev);
twtable.editNode = twtable.rowAt(
pos,
twtable.editNode.querySelectorAll('tr')
);
if ( ! twtable.editNode ) return null;
case 'TR' :
// Clicking on a missing cell. Determine how
// many cells away from the last one in this row.
if ( ! pos )
pos = twve.tiddler.mousePosition(ev);
colndx = twtable.colIndexAt(pos);
rowndx = twve.table.rowIndex(twtable.editNode);
var cells = twtable.editNode
.querySelectorAll('th,td');
var lastndx = twve.table.cellColIndex(
cells[cells.length-1]
);
twtable.editNode = twtable.appendCell(
twtable.editNode,
colndx-lastndx,
lastndx
);
case 'TH' :
case 'TD' :
// table cell
if ( ! pos && ev ) {
pos = twve.tiddler.mousePosition(ev);
colndx = twtable.colIndexAt(pos);
rowndx = twtable.rowIndexAt(pos);
}
return (rowndx > -1 && colndx > -1)
? twtable.editCell(ev,rowndx,colndx)
: null;
case 'DIV' :
// table caption
return preEditText.call(
this,ev,
twtable.getCaption(),
twtable.editNode
);
}
}
return preEditText.apply(this,arguments);
};
//}}}
/***
!!!!! twtable.reInitializeTable
***/
//{{{
twtable.reInitializeTable = function(txt){
var nodes = twve.tiddler.getPreviewedNodes(txt);
var table = twtable.filter(nodes,'table');
twtable.replaceWith(nodes, twtable.wrappers.wrap);
twtable.dom = table;
twtable.createWrapperRefBars();
};
//}}}
/***
!!!!! twtable.refreshSelf
***/
//{{{
twtable.refreshSelf = function(txt){
// Refresh the table represented by this twve.table object.
// The direct wrapper of this table is assumed open.
var elem = twtable.getElement();
switch ( elem.nodeName ) {
case 'DIV' :
// Table caption
if ( ! txt ) txt = ' ';
twve.node.wikify(txt,elem);
break;
case 'TH' :
case 'TD' :
// refresh the cell
// Must find the corresponding cell here if there are
// multiple transcluded copies.
twve.node.wikify(txt,elem);
break;
default :
// refresh the whole table
twtable.reInitializeTable(txt);
twtable.prepare(txt);
break;
}
return twtable;
};
//}}}
/***
!!!!! twtable.removeSelf
***/
//{{{
var preRemoveSelf = twtable.removeSelf;
twtable.removeSelf = function(param){
if ( ! twtable.editNode ) {
twtable.wrappers.wrap.parentNode.removeChild(
twtable.wrappers.wrap
);
return preRemoveSelf.apply(this,arguments);
}
twtable.refreshSelf('');
if ( param && param.what ) twtable.changed(param);
return twtable;
};
//}}}
/***
!!!!! twtable.adjustRefBars
***/
//{{{
twtable.adjustRefBars = function(){
twtable.refbarV.adjust(twtable);
twtable.refbarH.adjust(twtable);
return twtable;
};
//}}}
/***
!!!!! twtable.refreshTable
***/
//{{{
twtable.refreshTable = function(txt){
// Refresh the whole table
twtable.editNode = null;
twtable.hideRefBars();
twtable.refreshAll(txt);
twtable.showRefBars();
twtable.drawFocusBorders();
return twtable;
};
//}}}
/***
!!!!! twtable.updateText
***/
//{{{
//var preUpdateText = twtable.updateText;
twtable.updateText = function(txt){
var elem = twtable.getElement();
switch ( elem.nodeName ) {
case 'TH' :
case 'TD' :
return twtable.updateCell(txt);
case 'DIV' :
// Table caption
twtable.setCaption(txt[0]);
var param = twve.object.create();
param.what = 'CAPTION MODIFIED';
param.text = twtable.getText();
// Refresh the caption and call the .changed() event
// handler.
return twtable.refreshAll(txt[0],param);
break;
default :
twtable.setText(txt[0]);
break;
}
return twtable.refreshAll(txt[0]);
};
//}}}
/***
!!!!! twtable.drawFocusBorders
***/
//{{{
twtable.drawFocusBorders = function(eb){
if ( ! eb ) eb = twve.node.box(twtable.wrappers.wrap);
twve.tiddler.drawFocusBorders(eb);
var pos = twve.object.create();
pos.left = eb.right;
pos.top = eb.top;
var menu = twve.table.getTableMenu();
menu.showRoot(pos,'left');
if ( menu.isVisible() ) {
pos.left = menu.root.dom.offsetLeft;
menu.show(pos,'left');
}
return twtable;
};
//}}}
/***
!!!!! twtable.changed
***/
//{{{
var preChanged = twtable.changed;
twtable.changed = function (param) {
if ( param )
param.text = preChanged.apply(this,arguments);
twtable.resize();
twtable.adjustRefBars();
return param ? param.text : '';
};
//}}}
/***
!!!!! twtable.insertRow
***/
//{{{
twtable.insertRow = function ( row, which ) {
// Inserts one table row, above or below the one with index row.
// Whether 'above' or 'below' is given in the 2nd argument 'which'.
var txt = twtable.getText();
var end = txt.length;
var rstart, rend, cpos;
// Locate the table row. If we are inserting above, then
// we need to locate the end of the previous row. If
// we are inserting below, we need to locate the end
// of this row.
if ( which.toLowerCase().substring(0,5)=='below' ) row++;
if ( row == 0 ) {
rstart = twve.table.rowStarts(txt,0,end,0);
rend = rstart;
} else {
rstart = twve.table.rowStarts(txt,0,end,row-1);
rend = twve.table.rowEnds(txt,rstart);
}
// Prepare one empty row to insert
var newline = '|';
cpos = twve.table.rowCells(txt,rstart,rend);
for ( var cols = cpos.length,c = 0; c < cols; c++ )
newline += '|';
// Insert an empty row the same length as its neighbor.
txt = txt.substring(0,rend)
+ (row>0?('\n'+newline):(newline+'\n'))
+ (rend<end?txt.substring(rend):'');
// Update the twve.table.copiedRowIndex if necessary.
var rndx = twve.table.copiedRowIndex();
if ( row <= rndx )
twve.table.copiedRowIndex(++rndx);
// Call the event handler.
txt = twtable.changed ({
what:'ROW INSERTED',
where:row,
text:txt
});
// Save the tiddler text and refresh all copies of this
// table.
//twve.tiddler.saveText(twtable,txt);
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.deleteRow
***/
//{{{
twtable.deleteRow = function ( row, cf ) {
// Deletes the table row indexed by the 1st argument row.
var txt = twtable.getText();
var end = txt.length, rstart, rend, cpos;
// Confirm to delete if required.
if ( (cf !== false) &&
config.options.chktwveCoreConfirmToDelete )
if(!confirm('Delete row ' + row))
return twtable;
// Locate the row to delete.
rstart = twve.table.rowStarts(txt,0,end,row);
rend = twve.table.rowEnds(txt,rstart);
var dlen = 0;
if ( rend < end ) {
// Not the last line of text, look for row-spanned
// cells.
// If one of the cells contains the content of a
// row-spanned cell, clear the cell below it as well.
cpos = twve.table.rowCells(txt,rstart,rend);
var nrstart = twve.table.rowStarts(txt,rend,end,0);
var nrend = twve.table.rowEnds(txt,nrstart);
var ncpos = twve.table.rowCells(txt,nrstart,nrend);
for ( var c = 1; c < cpos.length; c++ ) {
if ( !cpos[c] || !ncpos[c] ) continue;
// Cell in this row.
var ctxt = txt.substring(cpos[c].open,cpos[c].close);
// Cell below.
var nctxt = txt.substring(ncpos[c].open,ncpos[c].close);
if ( nctxt == '~' && ctxt != '~' ) {
// This cell contains a row-spanned content.
// Clear the cell below it.
txt = txt.substring(0,ncpos[c].open) +
txt.substring(ncpos[c].close);
end--;
dlen++;
}
}
}
// Delete that row
txt = (rstart>0?txt.substring(0,rstart-1):'')
+(rend<end?txt.substring(rend):'');
// Update the twve.table.copiedRowIndex if necessary.
var rndx = twve.table.copiedRowIndex();
if ( row < rndx )
twve.table.copiedRowIndex(--rndx);
/*
else if ( row == rndx ) {
twve.table.copiedRowIndex(-1);
twve.table.copiedRowText(null);
}
*/
// Call the event handler
txt = twtable.changed (
{
what:'ROW DELETED',
where:row,
text:txt
}
);
// Save the tiddler text and refresh all copies of this
// table.
//twve.tiddler.saveText(twtable,txt);
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.moveRow
***/
//{{{
twtable.moveRow = function ( row, dr ) {
// Move the table row, indexed by the 1st argument, up or
// down by dr.
var txt = twtable.getText();
var end = txt.length;
var rstart = twve.table.rowStarts(txt,0,end,row);
var rend = twve.table.rowEnds(txt,rstart);
// Extract the text of this row and find its final
// destination.
var rtxt = txt.substring(rstart,rend);
var dest = row + dr;
var dest_start = twve.table.rowStarts(txt,0,end,dest);
var dest_end = twve.table.rowEnds(txt,dest_start);
if ( dr > 0 ) {
// Move down, we do
// 1. empty this row,
txt = txt.substring(0,rstart) +
txt.substring(rend+1,dest_end) +
// The rend+1 above is to remove the '\n' at the end
// of this row.
// 2. and insert it to the destination.
'\n' + rtxt +
txt.substring(dest_end);
} else {
// Move up, we do
// 1. insert it to the destination,
txt = txt.substring(0,dest_start) +
rtxt + '\n' +
txt.substring(dest_start,rstart-1) +
// The rstart-1 above is to remove the '\n' at the
// beginning of this row.
// 2. empty this row.
txt.substring(rend);
}
// Update twve.table.copiedRowIndex /
// twve.table.copiedRowText
// if necessary.
var rndx = twve.table.copiedRowIndex();
if ( row == rndx )
twve.table.copiedRowIndex(rndx+dr);
//else if ( dest == rndx )
// twve.table.copiedRowText(rtxt);
// Call the event handler
txt = twtable.changed (
{
what:'ROW EXCHANGED',
from:row,
to:dest,
text:txt
}
);
// Save the tiddler text and refresh all copies of this
// table.
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.copyRow
***/
//{{{
twtable.copyRow = function ( row ) {
// Copy the table row indexed by the argument.
var txt = twtable.getText();
var rstart = twve.table.rowStarts(txt,0,txt.length,row);
var rend = twve.table.rowEnds(txt,rstart);
twve.table.copiedRowText(txt.substring(rstart,rend));
twve.table.copiedRowIndex(row);
twve.table.copiedColumnText(null);
twve.table.copiedColumnIndex(-1);
return twtable;
};
//}}}
/***
!!!!! twtable.pasteRow
***/
//{{{
twtable.pasteRow = function ( row ) {
// Paste the previously copied row text into the table row
// indexed by the argument. The existing text will be
// replaced with the twve.table.copiedRowText().
var txt = twtable.getText();
var end = txt.length;
var rstart = twve.table.rowStarts(txt,0,end,row);
var rend = twve.table.rowEnds(txt,rstart);
// Replace the existing text with the
// twve.table.copiedRowText().
var rtxt = twve.table.copiedRowText();
txt = txt.substring(0,rstart) +
rtxt +
(rend<end?txt.substring(rend):'');
// Call the event handler
txt = twtable.changed (
{
what:'ROW PASTED',
where:row,
from:twve.table.copiedRowIndex(),
text:txt
}
);
// Save the tiddler text and refresh all copies of this
// table.
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.insertColumn
***/
//{{{
twtable.insertColumn = function ( col, which ) {
// Inserts one table column, either to the left or right of,
// the one with index col. Whether 'left' or 'right' is
// given in the 2nd argument 'which'.
var txt = twtable.getText();
// Positions of all cells.
var cpos = twve.table.allCells(txt,0,txt.length);
// If we are inserting to the right, we can use the end of
// this cell. If, on the other hand, we are inserting to
// the left, we can use the beginning of this cell.
var left = which.toLowerCase().substring(0,4)=='left';
var dlen = 0;
// We go from bottom to top.
for ( var r = cpos.length-1; r >= 0; r-- ) {
var clast = cpos[r].length - 1;
if ( col <= clast ) {
// This cell is regular.
if ( left )
txt = txt.substring(0,cpos[r][col].open) +
'|' +
txt.substring(cpos[r][col].open);
else
txt = txt.substring(0,cpos[r][col].close+1) +
'|' +
txt.substring(cpos[r][col].close+1);
} else {
// This cell is missing. Prepare empty cells to
// append. If we are inserting to the left, we
// append the empty cells and stop. If to the right,
// we append the empty cells to the left, one more
// at this cell, and one more to the right.
var nctxt = '';
for(var c=clast; c<col; c++) nctxt += '|';
// One more empty cell if inserting to the right.
if ( ! left ) nctxt += '|';
// Append the empty cells.
txt = txt.substring(0,cpos[r][clast].close+1) +
nctxt +
txt.substring(cpos[r][clast].close+1);
dlen += nctxt.length;
}
}
// Update the ending position of the table.
//twtable.end.ndx += cpos.length+dlen;
if ( ! left ) col++;
// Update the twve.table.copiedColumnIndex if necessary.
var cndx = twve.table.copiedColumnIndex();
if ( col <= cndx )
twve.table.copiedColumnIndex(++cndx);
// Call the event handler.
txt = twtable.changed (
{
what:'COL INSERTED',
where:col,
text:txt
}
);
// Save the tiddler text and refresh all copies of this
// table.
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.deleteColumn
***/
//{{{
twtable.deleteColumn = function ( col, cf ) {
// Deletes the table column indexed by the 1st argument row.
var txt = twtable.getText();
var cpos = twve.table.allCells(txt,0,txt.length);
// Confirm deletion if required.
if ( (cf !== false) &&
config.options.chktwveCoreConfirmToDelete )
if(!confirm('Delete column '+twve.table.colRef(col)))
return -1;
// Go on to delete the column.
var dlen = 0;
// We go from bottom to top.
for ( var r = cpos.length-1; r >= 0; r-- ) {
if ( col >= cpos[r].length )
// This is a missing cell. Do nothing.
continue;
// To delete a cell in a row, we need to check whether
// that cell contains column-spanned content. If it
// does, we also need to clear the left cell after
// deleting this one.
var ctxt = txt.substring(
cpos[r][col].open,cpos[r][col].close
);
var ltxt = col > 0
? txt.substring(
cpos[r][col-1].open,cpos[r][col-1].close
)
: '';
// Delete this cell.
txt = txt.substring(0,cpos[r][col].open-1) +
txt.substring(cpos[r][col].close);
// Record length change.
dlen += ctxt.length+1;
// Check for column-spanned content.
if ( ctxt != '>' && ltxt == '>' ) {
// Yes this cell contains the column-spanned
// content. Clear the left cell, too.
txt = txt.substring(0,cpos[r][col-1].open-1) +
txt.substring(cpos[r][col-1].close);
// Record length change.
dlen += ltxt.length+1;
}
}
// Update the ending positions of the table.
//twtable.end.ndx -= dlen;
// Update twve.table.copiedColumnIndex /
// twve.table.copiedColumnText if necessary.
var cndx = twve.table.copiedColumnIndex();
if ( col < cndx )
twve.table.copiedColumnIndex(--cndx);
/*
else if ( col == cndx ) {
twve.table.copiedColumnIndex(-1);
twve.table.copiedColumnText(null);
}
*/
// Call the event handler.
txt = twtable.changed (
{
what:'COL DELETED',
where:col,
text:txt
}
);
// Save the tiddler text and refresh all copies of this
// table.
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.moveColumn
***/
//{{{
twtable.moveColumn = function ( col, dc ) {
// Move the table column indexed by col to the left or
// right by dc.
var txt = twtable.getText();
var cpos = twve.table.allCells(txt,0,txt.length);
// Destination
var dest = col + dc;
var cndx = twve.table.copiedColumnIndex();
var ctxtary = (dest == cndx) ? [] : null;
var dlen = 0;
// We go from bottom to top.
for ( var r = cpos.length-1; r >= 0; r-- ) {
var clast = cpos[r].length - 1;
var ctxt = col <= clast
? txt.substring(
cpos[r][col].open,cpos[r][col].close
)
: '';
// Save this cell if necessary.
if (ctxtary) ctxtary.unshift(ctxt);
// Now go on to move it.
if ( col <= clast ) {
// This cell is regular. If moving left then the
// destination must also be regular. Only when
// moving right we may encounter the case where
// destination is missing.
if ( dc > 0 ) {
// Move right
if ( dest <= clast ) {
// The destination is also regular. We do
// 1. empty the cell,
txt=txt.substring(0,cpos[r][col].open-1)+
txt.substring(
cpos[r][col].close,
cpos[r][dest].close
)+
// 2. insert it to destination.
'|' + ctxt +
txt.substring(cpos[r][dest].close);
} else {
// The destination is missing. We do
// 1. prepare empty cells to append before
// destination,
var nctxt = '';
for(var c=clast; c<dest; c++) nctxt += '|';
// 2. empty the cell,
txt=txt.substring(0,cpos[r][col].open)+
// 3. append empty cells before destination
nctxt +
// 4. insert this cell and end this table
// row.
ctxt +
txt.substring(cpos[r][clast].close);
dlen += nctxt.length;
}
} else {
// If move left, we do
// 1. insert this cell at destination,
txt=txt.substring(0,cpos[r][dest].open)+
ctxt + '|' +
txt.substring(
cpos[r][dest].open,
cpos[r][col].open-1
)+
// 2. empty this cell.
txt.substring(cpos[r][col].close);
}
} else {
// This cell is missing. If both are missing, we
// don't do anything. This is for sure if we are
// moving right. If, however, we are moving left,
// we can encounter the case where destination is
// regular, and do the moving.
if ( dest <= clast ) {
// Must be moving left. We do
// 1. insert an empty cell at destination,
txt=txt.substring(0,cpos[r][dest].open)+
'|' +
txt.substring(cpos[r][dest].open);
// 2. and done.
dlen += 1;
}
}
}
// Update the end index of this table.
//twtable.end.ndx += dlen;
// Update the twve.table.copiedColumnIndex /
// twve.table.copiedColumnText if necessary.
if ( col == cndx )
twve.table.copiedColumnIndex(cndx+dc);
//else if ( dest == cndx )
// twve.table.copiedColumnText(ctxtary);
// Call the event handler
txt = twtable.changed (
{
what:'COL EXCHANGED',
from:col,
to:dest,
text:txt
}
);
// Save the tiddler text and refresh all copies of this
// table.
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.copyColumn
***/
//{{{
twtable.copyColumn = function ( col ) {
// Copy the table column indexed by col, and store it as
// an array for later use.
var txt = twtable.getText();
var cpos = twve.table.allCells(txt,0,txt.length);
var ctxt = [];
for ( var r = 0; r < cpos.length; r++ ) {
ctxt[ctxt.length] =
col < cpos[r].length
? txt.substring(
cpos[r][col].open,cpos[r][col].close
)
: '';
}
twve.table.copiedColumnText(ctxt);
twve.table.copiedColumnIndex(col);
twve.table.copiedRowText(null);
twve.table.copiedRowIndex(-1);
return twtable;
};
//}}}
/***
!!!!! twtable.pasteColumn
***/
//{{{
twtable.pasteColumn = function ( col ) {
// Paste the previously copied column into the one indexed
// by col (replace the current content).
var txt = twtable.getText();
var end = txt.length;
var cpos = twve.table.allCells(txt,0,end);
// If this table has more rows than the copied column, we
// replace content up to that of the copied column and
// leave the rest in this table untouched. If, however, this
// table has less rows than the copied column, we replace
// content up to that of this table, then append new rows
// to hold the rest in the copied column.
var ctxt = twve.table.copiedColumnText();
var clen = ctxt.length;
var rlast = Math.min(cpos.length, clen);
var plen = 0;
// We go from bottom to top.
for ( var r = rlast-1; r >= 0; r-- ) {
var clast = cpos[r].length - 1;
if ( col <= clast ) {
// This cell is regular, replace it.
txt = txt.substring(0,cpos[r][col].open) +
ctxt[r] +
txt.substring(cpos[r][col].close);
plen += ctxt[r].length
-(cpos[r][col].close-cpos[r][col].open);
} else {
// This cell is missing. We do
// 1. prepare empty cells to append to the left
// of this cell,
var nctxt = '';
for(var c=clast; c<col; c++) nctxt += '|';
// 2. append the empty cells,
txt = txt.substring(0,cpos[r][clast].close+1) +
nctxt +
// 3. insert content of this cell (from the copied
// column) and end this row.
ctxt[r] + '|\n' +
txt.substring(0,cpos[r][clast].close+1);
plen += nctxt.length + ctxt[r].length + 2;
}
}
// Update the closing position of the table
//twtable.end.ndx += plen;
// Append extra rows if necessary.
for(var r=rlast; r<clen; r++){
// Prepare empty cells to append to the left.
var nctxt = '\n';
for (var c=0; c < col; c++) nctxt += '|';
// Append the empty cells.
txt += nctxt +
// Insert content of this cell (from the copied column)
// and end this row.
ctxt[r] + '|';
// Update the closing position of the table
//twtable.end.ndx += nctxt.length+ctxt[r].length+1;
}
// Call the event handler
txt = twtable.changed (
{
what:'COL PASTED',
where:col,
from:twve.table.copiedColumnIndex(),
text:txt
}
);
// Save the tiddler text and refresh all copies of this
// table.
twtable.setText(txt);
return twtable.refreshTable(txt);
};
//}}}
/***
!!!!! twtable.resize
***/
//{{{
twtable.resize = function(){
if ( ! twtable.wrappers ) return twtable;
var focused = twve.tiddler.focusElem();
if ( focused ) focused = focused.is(twtable);
var dw = 0, dh = 0;
if ( focused ) {
dw = twtable.refbarV.getSize();
dh = twtable.refbarH.getSize();
}
twtable.wrappers.resize(dw,dh);
if ( focused ) {
twtable.drawFocusBorders();
}
return twtable;
};
//}}}
/***
!!!!! twtable.adjustWidth
***/
//{{{
twtable.adjustWidth = function() {
var tw = twve.node.width(twtable.dom,'outer',true);
var minch = config.options.txttwveTableMinCellWidth*1;
var w = 0;
var cells = twtable.rowWithMaxCol()
.querySelectorAll('th,td');
for ( var n=0,len=cells.length; n<len; n++ ){
var c = cells[n];
var cw = twve.node.width(c,'outer',true);
var minw = twve.node.cssSize(
window.getComputedStyle(c)
.getPropertyValue('font-size')
) * minch;
var dw = version.major==2 && version.minor<7
? (twve.node.width(c)-cw)/2
: 0;
if ( cw < minw ) {
twve.node.setDimension(c,minw+dw);
cw = twve.node.width(c,'outer',true);
} else if ( dw > 0 ) {
twve.node.setDimension(c,cw+dw);
cw = twve.node.width(c,'outer',true);
}
w += cw;
}
if ( w < tw ) w = tw;
else w += 1;
// It is good to set the table width here, because
// otherwise the table would become slightly narrower
// and the cell width changed after setting the wrapper
// width.
twve.node.setDimension(
twtable.dom,
w + (config.tableSorting ||
config.macros.sortableGridPlugin
? 1 : 0)
);
return twtable;
};
//}}}
/***
!!!!! twtable.initRows
***/
//{{{
twtable.initRows = function (txt) {
// Initialize table rows.
// First we store the CORRECT row index as an attribute
// of the table row, because
// 1. tr.rowIndex is not consistent across browsers;
// 2. I don't want to use
// table.querySelectorAll('tr') every time needed.
// Store row index as an attribute. This is necessary
// because different browsers give different index
// values in tr.rowIndex.
var table = twtable.dom;
var rows = table.querySelectorAll('tr');
for ( var r=0,len=rows.length; r<len; r++ ) {
if (rows[r].getAttribute('row')) return false;
rows[r].setAttribute('row', r);
}
if ( ! txt ) txt = twtable.getText();
var end = txt.length;
var rstart, rend = 0;
// Temporarily disable the IncludeCSS option
var includeCSS = config.options.chktwveTableIncludeCSS;
config.options.chktwveTableIncludeCSS = false;
// Start the initialization
for ( var r=0,rlen=rows.length; r<rlen; r++ ) {
rstart = twve.table.rowStarts(txt,rend,end,0);
rend = twve.table.rowEnds(txt,rstart);
var col = 0, cpos;
var cells = rows[r].querySelectorAll('th,td');
for ( var c=0,clen=cells.length; c<clen; c++ ){
var cell = cells[c];
while ( rstart < rend ) {
// The reason to use a loop here is to take
// care of the spanned cells. It is necessary
// because a spanned cell consists of multiple
// cells in the defining wiki text but only
// one in the resulting rendered page.
cpos = twve.table.locateCell(
txt,rstart,rend,0
);
rstart = cpos.close;
var ctxt = twtable.getCellText(cpos,txt);
if ( ! ctxt ) {
cell.setAttribute('col',col++);
break;
}
if ( ctxt=='~' || ctxt=='>' ) {
// A spanned cell. Loop through to the
// content.
col++; continue;
}
if ( config.options.chktwveTableMultiLine ) {
var ch0 = ctxt.charAt(0);
if(ch0=='*' || ch0=='#' || ctxt.indexOf('\n')>-1)
twve.node.wikify(ctxt,cell);
}
cell.setAttribute('col',col++);
break;
}
}
}
// End of initialization.
// Restore the IncludeCSS option.
config.options.chktwveTableIncludeCSS = includeCSS;
return true;
};
//}}}
/***
!!!!! twtable.multiLine
***/
//{{{
var preMultiLine = twtable.multiLine;
twtable.multiLine = function () {
// Replacing the twve.element.multiLine for tables.
// We need to do so because twve.table allows multi-lined
// content in a table cell.
return twtable.editNode
? (twve.node.matches(twtable.editNode,'th,td')
? config.options.chktwveTableMultiLine
: false)
: preMultiLine.apply(this,arguments);
};
//}}}
/***
!!!!! twtable.misc
***/
//{{{
var preHasClass = twtable.hasClass;
twtable.hasClass = function ( cstr ) {
// The dom in this twve.element object does not have the
// specified class. If it is a table, then its class could
// be removed by SortableGridPlugin. Check the wikitext that
// defines this table.
if ( config.macros.sortableGridPlugin ) {
// SortableGridPlugin is installed, and this element is
// a table. Find the wikitext and look for table classes.
var pos = twtable.classPos();
if ( pos.open > -1 ) {
var p = twtable.getText().indexOf(cstr,pos.open);
if ( p > -1 && p < pos.close ) return true;
}
return false;
}
return preHasClass.apply(this,arguments);
};
//}}}
/***
!!!!! twtable.sorting
***/
//{{{
// startSorting
twtable.startSorting = function() {
return ! twve.tiddler.getEditBox();
};
// sortingCell
twtable.sortingCell = function(o){
// Find the header cell for sorting
twtable.editNode = o.nodeName=='A'
? o.parentNode // SortableGridPlugin
: o; // TableSortingPlugin
return twtable.editNode;
};
// sort
twtable.sort = function (o, rev) {
return twve.table.sort(twtable,o,rev);
};
//}}}
/***
!!!!! twtable.transpose
***/
//{{{
twtable.transpose = function () {
// Transpose this table, that is, move cell content from
// (r, c) to (c, r).
// For tables without spanned cells, we simply start from
// the bottom-right corner and go in the bottom-up and
// right-to-left manner. When we reach the top-left corner
// the job is done. For tables with spanned cells, however,
// we need to reverse the spanned cells before transposing
// the table. For more details please see
// http://twve.tiddlyspace.com/#%5B%5BTransposing%20a%20table%20--%20backward%20thinking%5D%5D
var txt = twtable.getText();
// Reverse the column-spanned cells
var p1 = 0;
while ( true ) {
// Look for the signature of a column-spanned cell.
p1 = txt.indexOf('|>|',p1);
if ( p1 == -1 ) break;
// There is a column spanned cell, search for the
// content before end of line or end of table.
var p2 = p1 + 3; p1++;
var pend = txt.indexOf('\n',p2);
if ( pend == -1 ) pend = txt.length;
while ( p2 < pend && txt.substring(p2,p2+2) == '>|' )
p2 += 2;
if ( p2 < pend ) {
// Now p2 shall be pointing at the beginning of the
// content. Look for its end (p3).
//var p3 = text.indexOf('|',p2);
var p3=twve.text.skipToActive(txt,'|',p2,pend).ndx;
if ( p3 == -1 ) break;
if ( p3 < pend ) {
// Now p3 should be at the end of the content.
// Switch the content and the first '>'.
txt = txt.substring(0,p1)+ // before first '>'
txt.substring(p2,p3)+ // the content
txt.substring(p1+1,p2)+ // all the rest '>'
'>'+
txt.substring(p3); // after content
}
p1 = p3;
} else p1 = p2;
}
// Get positions of all cells.
var cpos = twve.table.allCells(txt,0,txt.length);
var rows = cpos.length;
var cols = 0, ctxt;
var r, c, thead, h;
// Find the maximum number of columns
for ( r = 0; r < rows; r++ ) {
if ( cpos[r].length > cols ) cols = cpos[r].length;
}
// Reverse the row spanned cells
for ( c = cols-1; c >= 0; c-- ) {
var r0 = -1;
for ( r = rows-1; r >= 0; r-- ) {
// Skip missing cells
if ( c >= cpos[r].length ) continue;
// Get the cell text.
ctxt = txt.substring(
cpos[r][c].open,cpos[r][c].close
);
if ( ctxt == '~' ) {
// There is a row-spanned cell, mark the row
// index if not yet (for later use).
if ( r0 == -1 ) r0 = r;
} else if ( r0 != -1 ) {
// ctxt is now the content of a row-spanned cell,
// switch it with the last '~' in row r0.
txt = txt.substring(0,cpos[r][c].open)+
'~'+
txt.substring(
cpos[r][c].close,cpos[r0][c].open
)+
ctxt+
txt.substring(cpos[r0][c].close);
// Re-obtain the correct positions of cells.
cpos = twve.table.allCells(txt,0,txt.length);
r0 = -1;
}
}
}
// Prepare an empty table of dimensions (cols, rows).
var newtxt = '';
for ( c = 0; c < cols; c++ ) {
newtxt += '|';
for ( r = 0; r < rows; r++ )
newtxt += '|';
if ( c < cols-1 ) newtxt += '\n';
}
// Get all of its cell positions.
var newpos = twve.table.allCells(newtxt,0,newtxt.length);
// Start transposition.
var reghead = /^\s*\!/;
var regtxt = /\S/;
for ( c = cols-1; c >= 0; c-- ) {
for ( r = rows-1; r >= 0; r-- ) {
// Skip missing cells
if ( c >= cpos[r].length ) continue;
// Check for header row.
var ch=txt.charAt(cpos[r][cpos[r].length-1].close+1);
thead = (ch=='h' || ch=='H');
// Get text of the (r, c) cell.
ctxt = txt.substring(
cpos[r][c].open,cpos[r][c].close
);
if ( ctxt == '~' ) {
// Row-spanned cells. Transpose to column-
// spanned cells.
ctxt = '>';
} else if ( ctxt == '>' ) {
// Column-spanned cells. Transpose to row-
// spanned cells.
ctxt = '~';
} else if (thead && ! reghead.test(ctxt)) {
// Header row cell, make it a TH in the
// transposed table.
if ( (h=ctxt.search(regtxt)) > 0 )
ctxt = ctxt.substring(0,h)+'!'
+ ctxt.substring(h);
else ctxt = '!'+ctxt;
}
// Put it to the (c, r) cell in the transposed table.
newtxt = newtxt.substring(0,newpos[c][r].open)+
ctxt+
newtxt.substring(newpos[c][r].close);
}
}
// Make the first row that contains all TH's a header row.
cpos = twve.table.allCells(newtxt,0,newtxt.length);
for ( r = 0; r < cpos.length; r++ ) {
thead = false;
for ( c = cpos[r].length-1; c >= 0; c-- ) {
ctxt = newtxt.substring(
cpos[r][c].open,cpos[r][c].close
);
if ( ! reghead.test(ctxt) ) break;
thead = (c==0);
}
if ( thead ) {
c = cpos[r].length-1;
newtxt = newtxt.substring(0,cpos[r][c].close+1)+
'h'+
newtxt.substring(cpos[r][c].close+1);
// Remove the leading '!' in the cell text.
for ( ; c >=0; c-- ) {
ctxt = newtxt.substring(
cpos[r][c].open,cpos[r][c].close
);
var p = ctxt.indexOf('!');
ctxt = ctxt.substring(0,p)+ctxt.substring(p+1);
newtxt = newtxt.substring(0,cpos[r][c].open)+
ctxt+
newtxt.substring(cpos[r][c].close);
}
break;
}
}
// Copy the foot note row if there is one.
var tmp = twtable.getFootNote(txt);
if ( tmp ) newtxt='|'+tmp+'|f\n'+newtxt;
// Copy the caption row if there is one.
tmp = twtable.getCaption(txt);
if ( tmp ) newtxt='|'+tmp+'|c\n'+newtxt;
// Copy the class row if there is one.
tmp = twtable.getClass(txt);
if ( tmp ) newtxt='|'+tmp+'|k\n'+newtxt;
// Done transposition. Set it back. Note that the length
// of the definition text may change so we call
// twtable.setText() to take care of that.
//twtable.setText(newtxt);
// Call the event handler.
newtxt = twtable.changed(
{
what : 'TRANSPOSED',
text : newtxt //twtable.tiddler.text
}
);
twtable.setText(newtxt);
return twtable.refreshTable(newtxt);
};
//}}}
/***
!!!!! end of twtable
***/
//{{{
return twtable.created(table,txt,start,dir);
}
};
//}}}
/***
!!! twve.table.wrapper
***/
//{{{
twve.table.wrapper = {
//}}}
/***
!!!! twve.table.wrapper classes
***/
//{{{
class_wrap : 'twveTable',
class_tbref : 'twveTBRef',
class_tb : 'twveTB',
class_cap : 'twveTCap',
//}}}
/***
!!!! twve.table.wrapper.getSelector
***/
//{{{
getSelector : function(which){
var pref = 'div.';
if ( ! which )
return pref+twve.table.wrapper.class_wrap;
which = which.toLowerCase();
if ( which == 'cap' )
return pref+twve.table.wrapper.class_cap;
if ( which == 'tbref' )
return pref+twve.table.wrapper.class_tbref;
if ( which == 'tb' )
return pref+twve.table.wrapper.class_tb;
var inner =
pref+twve.table.wrapper.class_cap+','+
pref+twve.table.wrapper.class_tbref+','+
pref+twve.table.wrapper.class_tb;
return ( which == 'inner' )
? inner
: pref+twve.table.wrapper.class_wrap+','+inner;
},
//}}}
/***
!!!! twve.table.wrapper.create
***/
//{{{
create : function (twtable) {
// Create wrappers to contain a table.
// In twve tables are wrapped with more than one <div>
// elements, namely tb, tbref, cap, and all, for
// scrolling, reference bars, floating menus, etc.
// A table is first wrapped with tb, with overflow:auto css
// style assignment, so oversized tables are scrollable.
// Then wrapped again with tbref, with overflow:hidden and
// position:relative styles, so reference bars and floating
// menus can be added here.
// The caption, if any, is detached from the table and put
// above it into cap.
// Finally, the whole combination is wrapped within all,
// so the whole things can be considered as one object in
// the page flow.
var tbw = twve.object.create();
tbw.clear = function() {
tbw.wrap = null;
tbw.tbref = null;
tbw.tb = null;
tbw.cap = null;
return tbw;
};
tbw.captionHeight = function(){
return tbw.cap
? twve.node.height(tbw.cap,'outer',true)
: 0;
};
// set table
tbw.setTable = function(twtable){
var table = twtable.dom;
if ( ! table ) return tbw;
tbw.wrap = twve.table.getWrapper(table);
if ( tbw.wrap ) {
// This table already has wrappers.
tbw.tbref = tbw.wrap.querySelector(
twve.table.wrapper.getSelector('tbref')
);
tbw.tb = tbw.wrap.querySelector(
twve.table.wrapper.getSelector('tb')
);
tbw.cap = tbw.wrap.querySelector(
twve.table.wrapper.getSelector('cap')
);
return tbw;
}
// Create some <div> wrappers for a table.
tbw.wrap = document.createElement('div');
tbw.tbref = document.createElement('div');
tbw.tb = document.createElement('div');
tbw.cap = document.createElement('div');
var cap = table.caption
? table.childNodes[0]
: null;
if ( cap ) {
table.removeChild(cap);
tbw.cap.innerHTML = cap.innerHTML;
} else {
tbw.cap.innerHTML = ' ';
}
twve.node.copyMargin(tbw.wrap,table);
table.style.marginLeft = '4px';
table.parentNode.replaceChild(tbw.wrap,table);
tbw.tb.appendChild(table);
tbw.wrap.style.position = 'relative';
//tbw.wrap.style.marginTop = '2px';
tbw.wrap.style.paddingTop = '8px';
tbw.wrap.classList.add(twve.table.wrapper.class_wrap);
table.style.marginTop = '4px';
// cap
tbw.cap.style.position = 'relative';
tbw.cap.style.textAlign = 'center';
tbw.cap.style.overflow = 'hidden';
tbw.cap.classList.add(twve.table.wrapper.class_cap);
tbw.wrap.appendChild(tbw.cap);
// tbref
//tbw.tbref.style.border = '1px solid';
tbw.tbref.style.border = 0;
tbw.tbref.style.overflow = 'hidden';
tbw.tbref.style.position = 'relative';
tbw.tbref.classList.add(
twve.table.wrapper.class_tbref
);
tbw.wrap.appendChild(tbw.tbref);
// tb
//tbw.tb.style.border = '1px solid';
tbw.tb.style.border = 0;
tbw.tb.style.overflow = 'auto';
tbw.tb.style.position = 'relative';
tbw.tb.classList.add(
twve.table.wrapper.class_tb
);
tbw.tbref.appendChild(tbw.tb);
return tbw;
};
// resize
tbw.resize = function(dw,dh){
var table = tbw.tb.childNodes[0];
tbw.width = twve.node.width(table,'outer',true)+(dw || 0);
tbw.height = twve.node.height(table,'outer',true)+(dh || 1);
twve.node.setDimension(tbw.cap,tbw.width-dw);
twve.node.setDimension(tbw.tb,tbw.width,tbw.height);
twve.node.setDimension(tbw.tbref,tbw.width,tbw.height);
twve.node.setDimension(
tbw.wrap,tbw.width,
tbw.height+tbw.captionHeight()
);
return tbw;
};
tbw.clear();
return twtable
? tbw.setTable(twtable)
: tbw;
}
};
//}}}
/***
!!! twve.table.refBar
***/
//{{{
twve.table.refBar = {
//}}}
/***
!!!! twve.table.refBar.create
***/
//{{{
create : function () {
var bar = twve.node.create();
// getSelector
bar.getSelector = function(){
return 'div.'+bar.getClass();
};
// getMenuSelector
bar.getMenuSelector = function(){
return 'div.'+bar.getMenuClass();
};
// getMenu
bar.getMenu = function(){
return twve.tiddler.getDisplay().querySelector(
bar.getMenuSelector()
);
};
// hideMenu
bar.hideMenu = function(){
var menu = bar.getMenu();
if ( menu ) twve.node.hide(menu);
return bar;
};
// menuButtonStyle
bar.menuButtonStyle = function(btn){
btn.dom.style.position = 'absolute';
btn.dom.style.backgroundColor = '#fff8dc';
btn.dom.style.color = '#000000';
};
// show
bar.show = function(twtable){
twve.node.show(bar.dom);
return bar;
};
// hide
bar.hide = function(){
twve.node.hide(bar.dom);
bar.hideMenu();
return bar;
};
// setTable
bar.setTable = function(twtable){
// Associate this reference bar to a table (twve.table
// object).
// If the table has already a reference bar associated
// with it, retrieve it to this bar and return this bar.
// Otherwise return null.
// Objects derived from twve.table.bar should check the
// return value from this method. If it is not null, no
// need to do anything. If, however, it is null, should
// call bar.create() to create a reference bar in the
// derived object's setTable method. See the setTable
// method in twve.table.refBarV and twve.table.refBarH
// below for examples.
bar.dom = twtable.wrappers.tbref.querySelector(
bar.getSelector()
);
if ( bar.dom ) {
// reference bar already created
return bar;
}
return null;
};
// create
bar.create = function(twtable){
// Creates a DIV as the base of this reference bar,
// and inserts it to twtable (twve.table object) if given.
// Returns this reference bar (not the created DIV).
bar.dom = document.createElement('div');
bar.dom.style.position = 'absolute';
twve.node.hide(bar.dom);
if ( twtable )
twtable.wrappers.tb.parentNode.insertBefore(
bar.dom,twtable.wrappers.tb
);
return bar;
};
return bar.clear();
}
};
//}}}
/***
!!! twve.table.refBarV
***/
//{{{
twve.table.refBarV = {
//}}}
/***
!!!! twve.table.refBarV.getClass
***/
//{{{
getClass : function(){
return 'twveTRefBarV';
},
//}}}
/***
!!!! twve.table.refBarV.getSelector
***/
//{{{
getSelector : function(){
var sel = 'div.'+twve.table.refBarV.getClass();
return sel+','+sel+' span';
},
//}}}
/***
!!!! twve.table.refBarV.create
***/
//{{{
create : function (twtable) {
var bar = twve.table.refBar.create();
// getClass
bar.getClass = function(){
return twve.table.refBarV.getClass();
};
// getMenuClass
bar.getMenuClass = function(){
return 'twveTMenuV';
};
// getSize
bar.getSize = function(){
return twve.node.width(bar.dom,'outer',true);
};
// getMenu
var preGetMenu = bar.getMenu;
bar.getMenu = function(){
var menu = preGetMenu.apply(this);
if ( ! menu ) {
var menu_root = twve.tiddler.getOptionsMenu().root;
var bw = menu_root.width()*1.1;
var bh = menu_root.height()*0.9;
var delta = 0.6;
var mw = bw*(3+delta*2);
var mh = bh*(3+delta*2);
var x0 = 0;
menu = document.createElement('div');
twve.tiddler.getDisplay().appendChild(menu);
menu.style.position = 'absolute';
//menu.style.border = '1px solid red';
menu.style.border = 0;
twve.node.setDimension(menu,mw,mh);
var btn = twve.button.create(
null,
//String.fromCharCode(8743),
String.fromCharCode(5169),
"Insert row above",
function(){
//if(twve.button.isActive(this))
twve.tiddler.focusElem().insertRow(
this.parentNode.getAttribute('row')*1,
'above'
);
},
'rU'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(2+delta)+x0+2,bh*(0+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
//String.fromCharCode(8744),
String.fromCharCode(5167),
"Insert row below",
function() {
//if(twve.button.isActive(this))
twve.tiddler.focusElem().insertRow(
this.parentNode.getAttribute('row')*1,
'below'
);
},
'rD'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(2+delta)+x0+2,bh*(2+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.createDelete(
"Delete this row",
function(){
twve.tiddler.focusElem().deleteRow(
this.parentNode.getAttribute('row')*1
);
},
'xR'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(2+delta*2)+x0,bh*(1+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
'C',
"Copy this row",
function() {
var menu = this.parentNode;
twve.tiddler.focusElem().copyRow(
menu.getAttribute('row')*1
);
twve.button.activate(
menu.querySelector('[id^=twveTbtnrP]'),
true
);
},
'rC'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(0+delta)+x0,bh*(0+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
'X',
"Cut this row",
function() {
var menu = this.parentNode;
var row = menu.getAttribute('row')*1;
var twtable = twve.tiddler.focusElem();
twtable.copyRow(row);
twtable.deleteRow(row,false);
twve.button.activate(
menu.querySelector('[id^=twveTbtnrP]'),
true
);
},
'rX'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,0+x0,bh*(1+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
'P',
"Paste to this row",
function() {
if(twve.button.isActive(this))
twve.tiddler.focusElem().pasteRow(
this.parentNode.getAttribute('row')*1
);
},
'rP'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(0+delta)+x0,bh*(2+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
//String.fromCharCode(8593),
String.fromCharCode(8657),
"Exchange with above",
function(){
if(twve.button.isActive(this))
twve.tiddler.focusElem().moveRow(
this.parentNode.getAttribute('row')*1,
-1
);
},
'mU'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(1+delta)+x0,0
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
//String.fromCharCode(8595),
String.fromCharCode(8659),
"Exchange with below",
function() {
if(twve.button.isActive(this))
twve.tiddler.focusElem().moveRow(
this.parentNode.getAttribute('row')*1,
1
);
},
'mD'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(1+delta)+x0,bh*(2+delta*2)
);
menu.appendChild(btn.dom);
menu.classList.add(bar.getMenuClass());
twve.node.hide(menu);
}
return menu;
};
// adjust
bar.adjust = function(twtable){
var tbw = twtable.wrappers;
var lh = twve.node.cssSize(
window.getComputedStyle(tbw.tb)
.getPropertyValue('line-height')
);
var sp = bar.dom.querySelectorAll('span');
var rows = twtable.dom.querySelectorAll('tr');
if ( config.browser.isiOS )
// TWEdit returns wrong height for completely spanned rows,
// we need to take care of it ourselves.
// A completely spanned row is a row that contains ALL its
// cells spanning over the same number of rows.
for ( var r=0,rlen=rows.length; r<rlen; r++ ){
var tr = rows[r];
var trh = twve.node.height(tr,'outer',true);
var cells = tr.cells;
var rspan = twve.table.cellRowSpan(cells[0]);
if ( rspan > 1 ) {
rspan = twve.table.cellRowSpanMin(cells);
trh /= rspan;
for ( var j=0; j<rspan; j++ ) {
twve.node.setPosition(
sp[r+j],null,tr.offsetTop+(j*trh)+(trh-lh)*0.5
);
}
r += rspan-1;
} else {
twve.node.setPosition(
sp[r],null,tr.offsetTop+(trh-lh)*0.5
);
}
}
else
// Other browsers are fine.
for ( var r=0,rlen=rows.length; r<rlen; r++ ){
var tr = rows[r];
var trh = twve.node.height(tr,'outer',true);
twve.node.setPosition(
sp[r],null,tr.offsetTop+(trh-lh)*0.5
);
}
return bar;
};
// showMenu
bar.showMenu = function(sp){
var menu = bar.getMenu();
var row = twve.node.index(sp);
var spbox = twve.node.box(sp);
var table = twve.tiddler.focusElem().dom;
twve.node.show(menu);
//menu.style.border = '1px solid red';
twve.node.setPosition(
menu,
spbox.left-
(twve.node.width(menu,'outer',true)-spbox.width)/2-
(config.browser.isLinux?1:0),
spbox.top-
(twve.node.height(menu,'outer',true)-
spbox.height)/2-4
);
menu.setAttribute('row',row);
twve.button.activate(
menu.querySelector('[id^=twveTbtnrP]'),
twve.table.copiedRowIndex()>=0
);
twve.button.activate(
menu.querySelector('[id^=twveTbtnrU]'),
!(twve.table.hasHeader(table) && row==0)
);
twve.button.activate(
menu.querySelector('[id^=twveTbtnmU]'),
!(row==0
|| (twve.table.hasHeader(table) && row==1)
|| (table.tFoot
&& row==table.rows.length-1))
);
twve.button.activate(
menu.querySelector('[id^=twveTbtnrD]'),
!(table.tFoot
&& row==table.rows.length-1)
);
twve.button.activate(
menu.querySelector('[id^=twveTbtnmD]'),
!(row==table.rows.length-1
|| (twve.table.hasHeader(table) && row==0)
|| (table.tFoot
&& row==table.rows.length-2))
);
return bar;
};
// getWidth
bar.getWidth = function(table){
var rows = table.rows.length;
var fs = twve.node.cssSize(
window.getComputedStyle(table)
.getPropertyValue('font-size')
);
var w = fs;
while ( (rows/=10) > 1 ) w += fs;
if ( w == fs ) w = fs;
return w;
};
// setTable
var preSetTable = bar.setTable;
bar.setTable = function(twtable){
if ( preSetTable.apply(this,arguments) ) {
// If twtable already has a reference bar, do nothing
// and return.
return bar;
}
// Otherwise create the reference bar here.
var tbw = twtable.wrappers;
//var scrtop = tbw.tb.scrollTop;
var lh = twve.node.cssSize(
window.getComputedStyle(tbw.tb)
.getPropertyValue('line-height')
);
var dw = bar.getWidth(twtable.dom);
bar.create(twtable);
//bar.dom.style.left = 0;
//twve.node.setPosition(
// bar.dom,null,twve.node.box(tbw.tb).top
//);
twve.node.setDimension(bar.dom,dw);
bar.dom.classList.add(bar.getClass());
// create cell panels
var rows = twtable.dom.querySelectorAll('tr');
for ( var n=0,len=rows.length; n<len; n++ ){
var tr = rows[n];
//var trbox = twve.node.box(tr);
//var trh = twve.node.height(tr,'outer',true) ||
// twve.node.height(tr.firstChild,'outer',true) || lh;
var sp = document.createElement('span');
sp.style.border = 0;
//sp.style.border = '1px solid red';
sp.style.position = 'absolute';
sp.style.padding = 0;
sp.style.margin = 0;
sp.style.textAlign = 'center';
twve.node.setDimension(sp,dw,lh);
//twve.node.setPosition(
//sp,null,(tr.offsetTop+scrtop)+(trh-lh)*0.5
//);
sp.setAttribute('row',n);
sp.addEventListener(
'click',
function(ev){
var sp = this;
var row = sp.getAttribute('row')*1;
var barV = sp.parentNode;
var table = barV.parentNode
.querySelector('table');
var rows = table.querySelectorAll('tr');
var last_row = barV.getAttribute('last-row');
last_row = last_row ? last_row * 1 : -1;
if ( last_row > -1 && rows[last_row] )
rows[last_row].style.opacity = 0;
if ( row != last_row && rows[row] ) {
rows[row].style.opacity = 0;
barV.setAttribute('last-row',row);
} else barV.removeAttribute('last-row');
}
);
sp.addEventListener(
'mouseenter',
function(ev){
bar.showMenu(this);
}
);
sp.textContent = twve.table.rowRef(n);
bar.dom.appendChild(sp);
}
return bar;
};
return twtable ? bar.setTable(twtable) : bar;
}
};
//}}}
/***
!!! twve.table.refBarH
***/
//{{{
twve.table.refBarH = {
//}}}
/***
!!!! twve.table.refBarH.getClass
***/
//{{{
getClass : function(){
return 'twveTRefBarH';
},
//}}}
/***
!!!! twve.table.refBarH.getSelector
***/
//{{{
getSelector : function(){
var sel = 'div.'+twve.table.refBarH.getClass();
return sel+','+sel+' span';
},
//}}}
/***
!!!! twve.table.refBarH.create
***/
//{{{
create : function (twtable) {
var bar = twve.table.refBar.create();
// getClass
bar.getClass = function(){
return twve.table.refBarH.getClass();
};
// getMenuClass
bar.getMenuClass = function(){
return 'twveTMenuH';
};
// getSize
bar.getSize = function(){
return twve.node.height(bar.dom,'outer',true);
};
// getMenu
var preGetMenu = bar.getMenu;
bar.getMenu = function(){
var menu = preGetMenu.apply(this);
if ( ! menu ) {
var menu_root = twve.tiddler.getOptionsMenu().root;
var bw = menu_root.width()*1.2;
var bh = menu_root.height()*0.8;
var delta = 0.6;
var mw = bw*(3+delta*2);
var mh = bh*(3+delta*2);
menu = document.createElement('div');
twve.tiddler.getDisplay().appendChild(menu);
menu.style.position = 'absolute';
twve.node.setDimension(menu,mw,mh);
var btn = twve.button.create(
null,
String.fromCharCode(8658),
//String.fromCharCode(187),
"Exchange with right",
function() {
if(twve.button.isActive(this))
twve.tiddler.focusElem().moveColumn(
this.parentNode.getAttribute('col')*1,
1
);
},'mR'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(2+delta*2),bh*(1+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
String.fromCharCode(8656),
//String.fromCharCode(171),
"Exchange with left",
function() {
if(twve.button.isActive(this))
twve.tiddler.focusElem().moveColumn(
this.parentNode.getAttribute('col')*1,
-1
);
},'mL'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,0,bh*(1+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
//String.fromCharCode(60),
String.fromCharCode(5176),
"Insert column left",
function(){
//if(twve.button.isActive(this))
twve.tiddler.focusElem().insertColumn(
this.parentNode.getAttribute('col')*1,
'left'
);
},'cL'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(0+delta),bh*(2+delta)+2
);
menu.appendChild(btn.dom);
btn = twve.button.createDelete(
"Delete this column",
function() {
twve.tiddler.focusElem().deleteColumn(
this.parentNode.getAttribute('col')*1
);
},'xC'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(1+delta),bh*(2+delta*2)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
//String.fromCharCode(62),
String.fromCharCode(5171),
"Insert column right",
function(){
//if(twve.button.isActive(this))
twve.tiddler.focusElem().insertColumn(
this.parentNode.getAttribute('col')*1,
'right'
);
},'cR'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(2+delta),bh*(2+delta)+2
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
'C',
"Copy this column",
function() {
var menu = this.parentNode;
twve.tiddler.focusElem().copyColumn(
menu.getAttribute('col')*1
);
twve.button.activate(
menu.querySelector('[id^=twveTbtncP]'),
true
);
},'cC'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(0+delta),bh*(0+delta)
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
'X',
"Cut this column",
function() {
var menu = this.parentNode;
var col = menu.getAttribute('col')*1;
var twtable = twve.tiddler.focusElem();
twtable.copyColumn(col);
twtable.deleteColumn(col,false);
twve.button.activate(
menu.querySelector('[id^=twveTbtncP]'),
true
);
},'cX'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(1+delta),0
);
menu.appendChild(btn.dom);
btn = twve.button.create(
null,
'P',
"Paste to this column",
function() {
if(twve.button.isActive(this))
twve.tiddler.focusElem().pasteColumn(
this.parentNode.getAttribute('col')*1
);
},'cP'
);
bar.menuButtonStyle(btn);
twve.node.setPosition(
btn.dom,bw*(2+delta),bh*(0+delta)
);
menu.appendChild(btn.dom);
menu.classList.add(bar.getMenuClass())
twve.node.hide(menu);
}
return menu;
};
// adjust
bar.adjust = function(twtable){
var tbw = twtable.wrappers;
var sp = bar.dom.querySelectorAll('span');
var cells=twtable.rowWithMaxCol().querySelectorAll('th,td');
for ( var n=0,len=cells.length; n<len; n++ ){
var c = cells[n];
twve.node.setDimension(
sp[n],twve.node.width(c,'inner')
);
twve.node.setPosition(sp[n],c.offsetLeft);
}
return bar;
};
// showMenu
bar.showMenu = function(sp){
var menu = bar.getMenu();
var table = twve.tiddler.focusElem().dom;
var col = sp.getAttribute('col')*1;
var spbox = twve.node.box(sp);
twve.node.show(menu);
twve.node.setPosition(
menu,
spbox.left+
(spbox.width-
twve.node.width(menu,'outer',true))/2-2,
spbox.top-
(twve.node.height(menu,'outer',true)-
spbox.height)/2-4
);
menu.setAttribute('col',col); //twve.node.index(sp));
twve.button.activate(
menu.querySelector('[id^=twveTbtncP]'),
twve.table.copiedColumnIndex()>=0
);
twve.button.activate(
menu.querySelector('[id^=twveTbtnmL]'),
(col>0)
);
twve.button.activate(
menu.querySelector('[id^=twveTbtnmR]'),
(col<sp.parentNode.querySelectorAll('span').length-1)
);
};
// setTable
var preSetTable = bar.setTable;
bar.setTable = function(twtable){
if ( preSetTable.apply(this,arguments) )
// If twtable already has a reference bar, do nothing
// and return.
return bar;
// Otherwise create the reference bar here.
var tbw = twtable.wrappers;
//var tbbox = twve.node.box(tbw.tb);
var scrleft = tbw.tb.scrollLeft;
var table = twtable.dom;
//var thead = table.querySelectorAll('tr')[0];
var css = window.getComputedStyle(tbw.tb);
var lh = twve.node.cssSize(
css.getPropertyValue('line-height')
);
css = window.getComputedStyle(tbw.tbref);
var bc = css.getPropertyValue('background-color');
var fc = css.getPropertyValue('color');
bar.create(twtable);
bar.dom.style.border = 0; //'1px solid black';
bar.dom.style.paddingBottom = '4px';
//twve.node.setPosition(bar.dom,0,tbbox.top);
twve.node.setDimension(
bar.dom,twve.node.width(tbw.tbref),lh
);
bar.dom.classList.add(bar.getClass());
// create cell spans
var cells=twtable.rowWithMaxCol().querySelectorAll('th,td');
for (var n=0,len=cells.length; n<len; n++){
var c = cells[n];
var sp = document.createElement('span');
css = window.getComputedStyle(c);
var bw = twve.node.cssSize(
css.getPropertyValue('border-left-width')
) + twve.node.cssSize(
css.getPropertyValue('border-right-width')
);
twve.node.copyMargin(sp,c);
twve.node.copyPadding(sp,c);
sp.setAttribute('col',n);
sp.style.backgroundColor = bc;
sp.style.color = fc;
sp.style.position = 'absolute';
sp.style.border = 0;
sp.style.textAlign = 'center';
twve.node.setDimension(
sp,twve.node.width(c)+bw
);
bar.dom.appendChild(sp);
sp.addEventListener(
'click',
function(ev){
var sp = this;
var col = sp.getAttribute('col')*1;
var h0 = sp.parentNode;
var table = h0.parentNode.querySelector('table');
var last_col = h0.getAttribute('last-col');
last_col = last_col ? last_col * 1 : -1;
var rows = table.querySelectorAll('tr');
for (var r=0,rlen=rows.length;r<rlen;r++){
var cols = rows[r].querySelectorAll('th,td');
if ( last_col > -1 && cols[last_col] )
cols[last_col].style.opacity=1;
if ( col != last_col && cols[col] )
cols[col].style.opacity=0;
}
h0.setAttribute(
'last-col',(col!=last_col?col:'')
);
}
);
sp.addEventListener(
'mouseenter',
function(ev){
bar.showMenu(this);
}
);
sp.textContent = twve.table.colRef(n);
}
return bar;
};
return twtable ? bar.setTable(twtable) : bar;
}
};
}());
//}}}
[[twve.table--Example--A Simple Table]]
[[twve.table--Example--Multi-lined Content]]
[[twve.table--Example--Missing Cells and Keyboard Navigation]]
[[twve.table--Example--Spanned Cells and Keyboard Navigation]]
[[twve.table--Example--Insertion, Deletion, and Exchange]]
[[twve.table--Example--Copy and Paste]]
[[twve.table--Example--Large Table]]
[[twve.table--Example--Transclusion]]
[[twve.table--Example--Transposition]]
[[twve.table--Example--Sorting]]
<<<
This tiddler shows the very basic of editing table content in the view mode.
# Hover the mouse cursor over a table to activate it.
# Click on a table cell to edit its content.
## Make changes you want or __navigate to another cell using the arrow keys__.
## Click away or press {{{Enter}}} key (single lined) or {{{Ctrl-Enter}}} key combination (multi-lined), depending on the __<<option chktwveTableMultiLine>> multi-lined option setting__ of the ''twve.table'', to accept changes.
## Press {{{Esc}}} key to cancel changes.
# Click on the caption area to edit the table caption.
# Click on the empty area between the table borders and the focusing borders to edit the whole table.
<<<
!!! Example
|editable|k
|A simple table|c
| A0 | A1 | A2 | A3 |
| B0 | B1 | B2 | B3 |
| C0 | C1 | C2 | C3 |
<<<
The ''twve.table'' supports copy-and-pasting for __rows and columns__, as well as for individual cell content.
<<<
To perform the copy-and-pasting operations, you can
# hover the mouse over the table to activate it;
** You will see the table shifted a bit lower-right for the two reference bars, one horizontal and the other vertical.
** The vertical bar shows the row references.
** The horizontal bar shows the column references.
# To ''copy-and-paste individual cell'' content,
** click on the cell you want to copy from, an editbox with its content will show up, just copy it as you would with a normal text editor;
** click on the cell you want to paste the content in, an editbox with its current content would show up, just paste it as you would with a normal text editor;
** click away or press {{{Enter}}} or {{{Ctrl-Enter}}} to accept the change.
# To ''copy-and-paste a table row or column'', you can
** hover the mouse over the place showing the reference of the row/column you want to copy from, a floating menu with several buttons would show up;
*** The tooltip text of each button tells you what it does when you click it.
** click the {{{Copy}}} button to copy that row/column;
** hover the mouse over the place showing the reference of the row/column you want to paste in;
** click the {{{Paste}}} button to paste the copied row/column.
** @@color:blue;//Note: The {{{Paste}}} button is deactivated (dimmed) when no rows/columns had been copied.//@@
Try them with the following table.
|editable|k
|Insertion, Deletion, and Exchange|c
| A0 | A1 | A2 | A3 |
| B0 | B1 | B2 | B3 |
| C0 | C1 | C2 | C3 |
<<<
The ''twve.table'' supports //insertion//, //deletion//, and //exchange// for __rows and columns__, ''not'' for individual cells.
<<<
With ''twve'', you can __insert an empty row/column__, __delete an existing row/column__, or __exchange an existing row/column with its neighbor__. To perform these operations, you can
# hover the mouse over the table to activate it;
** You will see the table shifted a bit lower-right for the two reference bars, one horizontal and the other vertical.
** The vertical bar shows the row references.
** The horizontal bar shows the column references.
# Hover the mouse over one of the reference bars, a floating menu with several buttons would show up.
** The tooltip text of each button tells you what it does when you click it.
# To ''insert an empty row/column'',
** hover the mouse over the place showing the reference of the row/column besides which you want to insert an empty row/column;
** click one of the {{{Insert}}} buttons in the floating menu.
# To ''delete an existing row/column'',
** hover the mouse over the place showing the reference of the row/column you want to delete;
** click the {{{Delete}}} button in the floating menu.
# To ''exchange an existing row/column with its neighbor'',
** hover the mouse over the place showing the reference of the row/column you want to exchange with its neighbor;
** click one of the {{{Exchange}}} buttons in the floating menu.
** @@color:blue;//Note: The {{{Exchange}}} button is deactivated (dimmed) when exchange with neighbor is not possible or inappropriate.//@@
Try them with the following table.
|editable|k
|Insertion, Deletion, and Exchange|c
| A0 | A1 | A2 | A3 |
| B0 | B1 | B2 | B3 |
| C0 | C1 | C2 | C3 |
<<<
This tiddler shows the supported features for large tables:
# scrollable table body,
# auto scroll-into-view with keyboard navigation,
# @@color:red;(unstable, deactivated for now)@@ fixed first few rows/columns.
<<<
!!! Width is over
|editable|k
|Width is too large|c
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
!!! Height is over
|editable|k
|Height is too large|c
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
!!! Both are over
|editable|k
|Both width and height are too large|c
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
| =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() | =Cola()Row() |
<<<
This tiddler shows the supported features for tables with missing cells. One can edit the missing cells
# by clicking in the //supposed to be// area, or
# with keyboard navigation.
** You can navigate through missing cells with arrow keys, even when there are more than one in a table row.
@@color:red;''Note:'' You need to install ''twve.extra'' to enable the keyboard navigation feature.@@
<<<
|editable|k
|A Table With Missing Cells|c
|cell1|cell2|cell3|cell4|h
|One|missing cell|in this row|
|Two|missing cells in this row|
|Three|
|They|seem|all|work!|
Some text after the table.
<<<
This tiddler shows the //multi-lined content// feature for tables:
# multi-lined text in a table cell (simply hit the <enter> key to add a new line),
# lists in a table cell,
# other multi-lined elements are possible.
<<<
@@color:blue;To enable multi-lined feature, check the option <<option chktwveTableMultiLine>> {{{chktwveTableMultiLine}}} and __reload tiddler__.@@
|editable|k
|Multi-lined content|c
|Multi-lined text <br>can be created easily. <br>Just press {{{Enter}}} key <br>to add a new line.|* An unordered list <br>** can be created <br>*** here. <br># An ordered list <br>## is fine, <br>### too <br>|
|>blockquotes <br>>>work <br>>as well|A table here? <br>Well, maybe not.|
<<<
@@color:red;''Note:'' For some reason unknown to me, sorting works on local files but ''not'' on ~TiddlySpace.@@
The ''twve.table'' supports table sorting through TableSortingPlugin or SortableGridPlugin. There is ''no'' built-in sorting mechanism implemented in ''twve.table''.
<<<
* To ''sort by a column'', click on the __central area__ (mouse cursor shows a //finger//) of its header cell (top-most one).
* To ''edit a header cell'', click on the __left (right aligned) or right (left aligned) side__ (mouse cursor shows an I) of that cell.
!!! The example from TableSortingPlugin
|sortable editable|k
|Name |Salary |Extension |Performance |File Size |Start date |h
|ZBloggs, Fred |$12000.00 |1353 |+1.2 |74.2Kb |Aug 19, 2003 21:34:00 |
|ABloggs, Fred |$12000.00 |1353 |1.2 |3350b |09/18/2003 |
|CBloggs, Fred |$12000 |1353 |1.200 |55.2Kb |August 18, 2003 |
|DBloggs, Fred |$12000.00 |1353 |1.2 |2100b |07/18/2003 |
|Bloggs, Fred |$12000.00 |1353 |01.20 |6.156Mb |08/17/2003 05:43 |
|Turvey, Kevin |$191200.00 |2342 |-33 |1b |02/05/1979 |
|Mbogo, Arnold |$32010.12 |2755 |-21.673 |1.2Gb |09/08/1998 |
|Shakespeare, Bill |ã122000.00|3211 |6 |33.22Gb |12/11/1961 |
|Shakespeare, Hamlet |ã9000 |9005 |-8 |3Gb |01/01/2002 |
|Fitz, Marvin |â¬3300.30 |5554 |+5 |4Kb |05/22/1995 |
<<<
This tiddler shows the supported features for tables with spanned cells, including
# edit the //otherwise-would-be-there// cells in a spanned cell,
# ''visually consistent keyboard navigation''.
** The browser-assigned cell indexes are not consistent with what we see and cause confusion quite easily. The ''twve.table'' fixed that issue and gives a visually consistent experience with keyboard navigation.
# correct transposition -- from a row-spanned to a column-spanned cell, and vice versa,
** Transposition command available in the floating menu located at the top-right corner of the focusing borders.
@@color:red;''Note:'' You need to install ''twve.extra'' to enable the keyboard navigation feature.@@
<<<
|editable|k
|A Table With Spanned Cells|c
|This cell spanned 2 rows|Normal cell|Normal cell|Normal cell|
|~|>|>|This cell spanned 3 columns|
|Normal cell|Normal cell|Normal cell|Normal cell|
<<<
This tiddler shows the //transclusion// related features for tables:
# transclusion synchronization,
# scrolling synchronization (for large tables).
** @@color:blue;Note: Scrolling synchronization doesn't seem to work with the mobile Firefox. Not tested with other mobile browsers yet.@@
<<<
!!! With {{{<<tiddler>>}}} macro
<<tiddler "twve.table--Example--Large Table##Width is over">>
!!! With {{{<<slider>>}}} macro
<<slider "" "twve.table--Example--Large Table##Width is over" "twve.table--Example--Large Table">>
<<<
Table transposition is supported in the ''twve'' for __simple tables__, __tables with row- or column-spanned cells__, and for __tables with missing cells__.
@@color:blue;//Note: Missing cells are transposed into and remain as empty cells.//@@
<<<
__To enable transposition operation__, check the option <<option chktwveTableTranspose>> {{{chktwveTableTranspose}}}.
To transpose a table, you can
# hover the mouse over a table to activate it;
# hover the mouse over the menu at the top-right corner;
# click the {{{Transpose}}} command.
Try the following examples to see.
!!! A simple table
|editable|k
|A simple table|c
| A0 | A1 | A2 | A3 |
| B0 | B1 | B2 | B3 |
| C0 | C1 | C2 | C3 |
!!! A table with spanned cells
@@color:blue;Column-spanned cells are correctly transposed into row-spanned cells, and vice versa.@@
|editable|k
|A Table With Spanned Cells|c
|This cell spanned 2 rows|Normal cell|Normal cell|Normal cell|
|~|>|>|This cell spanned 3 columns|
|Normal cell|Normal cell|Normal cell|Normal cell|
!!! A table with missing cells
@@color:blue;''Note: A missing cell is transposed into an empty cell, and becomes no longer missing afterwards.''@@
|editable|k
|A Table With Missing Cells|c
|cell1|cell2|cell3|cell4|h
|One|missing cell|in this row|
|Two|missing cells in this row|
|Three|
|They|seem|all|work!|
If you are interested in more details, please see [[Transposing a table -- backward thinking]].
/***
|editable|k
|''Name:''|twve.table|
|''Description:''|Table rendering and view mode editing in ~TiddlyWiki environment|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.table.min / http://twve.tiddlyspace.com/#twve.table.min <br>* (regular) http://twve.tiddlyspot.com/#twve.table / http://twve.tiddlyspace.com/#twve.table|
|''Type:''|plugin|
|''Version:''|3.2.5|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery <br>2014/05/13 released 3.0.0 <br>2014/01/18 collected from TWElement, TWtid and TWted|
|''License:''|MIT|
|''Core Version:''|2.7.0|
|''Needs to have:''|twve.core|
!!Options
Look for [[twve.table Options]] in the system Options panel.
***/
// @@display:none;
//{{{
"undefined"==typeof twve&&alert("twve.table: This plugin needs twve.core to function properly. Please install twve.core before this one.");version.extensions.twve.table={major:3,minor:2,revision:5,date:new Date("2015/11/06")};
config.macros.twveTableOptions={init:function(){twve.table.preReadOnly=twve.tiddler.readOnly;twve.tiddler.readOnly=twve.table.readOnly;twve.table.preTextPasted=twve.tiddler.textPasted;twve.tiddler.textPasted=twve.table.textPasted;twve.table.preGetOptionsMenu=twve.tiddler.getOptionsMenu;twve.tiddler.getOptionsMenu=twve.table.getOptionsMenu;twve.table.preFocusTarget=twve.tiddler.focusTarget;twve.tiddler.focusTarget=twve.table.focusTarget;twve.table.preWikify=twve.node.wikify;twve.node.wikify=twve.table.wikify;
twve.table.preGetLevel=twve.leveledElement.getLevel;twve.leveledElement.getLevel=twve.table.getLevel;twve.table.prePrepareElements=twve.wrapper.prepareElements;twve.wrapper.prepareElements=twve.table.prepareElements;void 0===config.options.chktwveTableEnabled&&(config.options.chktwveTableEnabled=!0);void 0===config.options.chktwveTableEditAll&&(config.options.chktwveTableEditAll=void 0===config.options.chkTWtedEditAllTables?!1:config.options.chkTWtedEditAllTables);void 0===config.options.txttwveTableMinCellWidth&&
(config.options.txttwveTableMinCellWidth=void 0===config.options.txtTWtidMinCellWidth?"8":config.options.txtTWtidMinCellWidth);void 0===config.options.chktwveTableMultiLine&&(config.options.chktwveTableMultiLine=void 0===config.options.chkTWtidMultiLine?!1:config.options.chkTWtidMultiLine);void 0===config.options.chktwveTableTranspose&&(config.options.chktwveTableTranspose=!1);void 0===config.options.chktwveTableIncludeCSS&&(config.options.chktwveTableIncludeCSS=void 0===config.options.chkTWtedIncludeCSS?
!0:config.options.chkTWtedIncludeCSS);merge(config.optionsDesc,{chktwveTableEnabled:"Enable ''twve.table''.",chktwveTableEditAll:'Edit all tables. If true, all tables are editable. Otherwise only tables with class name "editable" are editable.',chktwveTableMultiLine:"Multi-line rendering mode. If true, a table cell can have multi-lined content (with <br /> as line-break). Lists in a table cell is hence possible. Default to false.",txttwveTableMinCellWidth:"Minimum cell width in characters. Default value is 8.",
chktwveTableTranspose:"Enable transposition. Default to false.",chktwveTableIncludeCSS:"Include cell-wide CSS statements in the edit box."});var b=config.shadowTiddlers.OptionsPanel,a=b.indexOf("[[twve.core Options");0<=a&&(a=b.indexOf("]]\n",a+2)+3,config.shadowTiddlers.OptionsPanel=b.substring(0,a)+"[[twve.table Options|twve.table Options]]\n"+b.substring(a));merge(config.shadowTiddlers,{"twve.table Options":"<<twveTableOptions>>"});twve.tiddler.registerElement(twve.table)},order:{chktwveTableEnabled:0,
chktwveTableEditAll:1,chktwveTableMultiLine:2,txttwveTableMinCellWidth:3,chktwveTableTranspose:4,chktwveTableIncludeCSS:5},handler:function(b){config.macros.twveCoreOptions.showOptionsTable(b,"''twve.table'' Options","twveTable",config.macros.twveTableOptions.order)}};config.macros.noedit={handler:function(b){addClass(b,"noedit")}};
merge(twve.text,{lineBreakToBr:function(b){return b?b.replace(/\n/mg," <br>"):b},brToLineBreak:function(b){return b?b.replace(/ <br>/mg,"\n").replace(/<br>/mg,"\n").replace(/ <br \/>/mg,"\n").replace(/<br \/>/mg,"\n"):b},nodeWideStyleText:function(b){var a=twve.text.skipStyleText(b);return 0<a?b.substring(0,a):""}});
merge(twve.node,{copyMargin:function(b,a,h){h||(h=window.getComputedStyle(a));b.style.marginTop=a.style.marginTop||h.getPropertyValue("margin-top");b.style.marginRight=a.style.marginRight||h.getPropertyValue("margin-right");b.style.marginBottom=a.style.marginBottom||h.getPropertyValue("margin-bottom");b.style.marginLeft=a.style.marginLeft||h.getPropertyValue("margin-left");return b},copyPadding:function(b,a,h){h||(h=window.getComputedStyle(a));b.style.paddingTop=a.style.paddingTop||h.getPropertyValue("padding-top");
b.style.paddingRight=a.style.paddingRight||h.getPropertyValue("padding-right");b.style.paddingBottom=a.style.paddingBottom||h.getPropertyValue("padding-bottom");b.style.paddingLeft=a.style.paddingLeft||h.getPropertyValue("padding-left");return b}});
twve.table={preGetLevel:null,getLevel:function(b,a,h){h||(h=b.charAt(a));return"|"==h?1:twve.table.preGetLevel.call(this,b,a,h)},preReadOnly:null,readOnly:function(b){return b&&"twve.table--example"==b.toLowerCase().substring(0,19)?!1:twve.table.preReadOnly.apply(this,arguments)},enableEdit:!0,twveSelector:function(b,a){b||(b=twve.selector.create());var h="table";a&&0>a.toLowerCase().indexOf(h)&&(h+=",tr,th,td,"+twve.table.wrapper.getSelector("all")+","+twve.table.refBarV.getSelector()+","+twve.table.refBarH.getSelector());
return b.includeSelector(h).excludeSelector(".syntaxhighlighter table").excludeSelector("table.htCore")},markupTags:function(){var b=twve.tags.create("\n|","\n");b.blockElement=!0;b.clone=function(){return twve.table.markupTags()};b.matchedCloseTag=function(a,b){for(var k=twve.text.consecutiveLinesEnd(a,b,!0);;){var c=a.lastIndexOf("\n",k.ndx-1);if(3>a.substring(c+1,k.ndx).split("|").length)k.ndx=c;else break}return b.copyFrom(k)};return b},prePrepareElements:null,prepareElements:function(b){if(!twve.table.prePrepareElements.apply(this,
arguments)||!config.options.chktwveTableEnabled||!b.tiddler)return null;var a=b.findElements(twve.table.twveSelector(null,"table"));if(a)for(var h=b.is("div.board")?twve.tiddler.getEditInfo().text[0]:null,k=0,c=a.length;k<c;k++){config.tableSorting&&config.tableSorting.refresh&&config.tableSorting.refresh.call(this,b.dom);var f=twve.table.create();f.wrapper_title=b.wrapper_title;f.direct_wrapper=b;f.wrapper=[f.direct_wrapper.dom];f.tiddler=h?{text:h}:b.tiddler;f.rIndex=k;f.dIndex=-1;f.setElement(a[k],
h);f.prepare()}return b},preTextPasted:null,textPasted:function(b){var a=preTextPasted.apply(this,arguments);if(!a||!twve.tiddler.cur_editable.curNode)return a;var h=config.options.chktwveTableMultiLine?twve.text.brToLineBreak(a):twve.text.lineBreakToBr(a);if(h==a)return a;b.value=twve.tiddler.text_before_paste?twve.tiddler.text_before_paste.substring(0,twve.tiddler.selection_at_paste.start)+h+twve.tiddler.text_before_paste.substring(twve.tiddler.selection_at_paste.end):h;return h},addOptionsMenu:function(b){return b.addMenu("''twve.table'' Options",
config.macros.twveTableOptions.handler)},preGetOptionsMenu:null,getOptionsMenu:function(){var b=twve.table.preGetOptionsMenu.apply(this,arguments);twve.table.addOptionsMenu(b);return b},getWrapper:function(b,a){return twve.node.closest(b,twve.table.wrapper.getSelector(a))},findTable:function(b){if(!b)return null;var a=twve.table.getWrapper(b);return a?a.querySelector("table"):twve.node.closest(b,"table")},rowRef:function(b){return b},colRef:function(b){return b},cellRowSpan:function(b){b=b.getAttribute("rowspan");
return!b?1:1*b},cellRowSpanMin:function(b){for(var a=0,h=0,k=b.length;h<k;h++){var c=twve.table.cellRowSpan(b[h]);if(0==a||a>c)a=c}return a},cellColSpan:function(b){b=b.getAttribute("colspan");return!b?1:1*b},getRowCell:function(b,a){"TR"==b.nodeName&&(b=b.querySelectorAll("th,td"));for(var h=null,k=0,c=b.length;k<c;k++){var h=b[k],f=twve.table.cellColIndex(h);if(f==a)break;else if(f>a){var g=twve.table.cellColSpan(h);if(f-g<a)break}h=null}return h},columnsInRow:function(b,a){var h=0;a||(a=b.querySelectorAll("th,td"));
for(var k=0,c=a.length;k<c;k++)h+=twve.table.cellColSpan(a[k]);b.setAttribute("columns",h);b.setAttribute("cells",a.length);return h},rowWithMaxCol:function(b,a){var h=null,k=0,c=0;a||(a=b.querySelectorAll("tr"));for(var f=0,g=a.length;f<g;f++){var e=a[f],q=twve.table.columnsInRow(e);q>k&&(k=q);q=1*e.getAttribute("cells");q>c&&(h=e,c=q)}return h},maxColumns:function(b,a){return 1*twve.table.rowWithMaxCol(b,a).getAttribute("columns")},rowStarts:function(b,a,h,k,c){var f=-1;c||(c=a.ndx);for(var g;;){g=
b.indexOf("\n",c+1);if(g>h.ndx)return-1;-1==g&&(g=h.ndx);var e=b.charAt(g-1).toLowerCase();if(("h"==e||"f"==e||"|"==e)&&++f==k)return c+("\n"==b.charAt(c)?1:0);c=b.indexOf("\n|",g);if(c<a.ndx||c>=h.ndx)return-1}},rowEnds:function(b,a){var h=b.indexOf("\n",a);-1==h&&(h=b.length);return 3>b.substring(a,h).split("|").length?a-1:h},locateCell:function(b,a,h,k){var c=-1,f=twve.object.create();for(f.open=a;;){f.close=twve.text.skipToActive(b,"|",f.open+1,h).ndx;if(-1==f.close||f.close>h){f.close=h-1;break}if(++c==
k)break;f.open=f.close}f.open<f.close&&f.open++;return f},cellPos:function(b,a,h,k,c,f){var g=twve.table.rowStarts(b,a,h,k);k=twve.table.rowEnds(b,g);if(1==f.row&&1==f.col)return twve.table.locateCell(b,g,k,c);for(var e=[],q=0;q<f.row;q++){e[q]=[];for(var g=twve.table.locateCell(b,g,k,c-f.col+1),p=0;p<f.col-1;p++)e[q][e[q].length]={open:g.open,close:g.close},g.open+=2,g.close+=2;e[q][e[q].length]=twve.table.locateCell(b,g.open-1,k,0);g=twve.table.rowStarts(b,a,h,0,k);k=twve.table.rowEnds(b,g)}return e},
rowCells:function(b,a,h){var k=[],c=twve.object.create();c.open=a;c.close=a;do{c=twve.table.locateCell(b,c.close,h,0);b.substring(c.open,c.close);if(c.close==h-1)return b=b.charAt(c.close).toLowerCase(),"h"==b||"f"==b||(k[k.length]=c),k;k[k.length]=c}while(1)},allCells:function(b,a,h){var k=[],c=a.ndx,f;do{f=twve.table.rowStarts(b,a,h,0,c);if(0>f||f>=h.ndx)break;c=twve.table.rowEnds(b,f);if(c<f||c>h.ndx)break;k[k.length]=twve.table.rowCells(b,f,c);if(c>=h.ndx)break}while(1);return k},copied_rndx:-1,
copiedRowIndex:function(b){"number"==typeof b&&(twve.table.copied_rndx=b);return twve.table.copied_rndx},copied_rtxt:null,copiedRowText:function(b){if(null===b||"string"==typeof b)twve.table.copied_rtxt=b;return twve.table.copied_rtxt},copied_cndx:-1,copiedColumnIndex:function(b){"number"==typeof b&&(twve.table.copied_cndx=b);return twve.table.copied_cndx},copied_ctxt:null,copiedColumnText:function(b){if(null===b||"object"==typeof b&&b.length)twve.table.copied_ctxt=b;return twve.table.copied_ctxt},
sortTable:null,tsResortTable:null,sortingEnabled:function(){return!(!twve.table.sortTable&&!twve.table.tsResortTable)},inEditArea:function(b,a){if(!a)return!0;var h=twve.node.box(b),h=(twve.tiddler.mousePosition(a).x-h.left)/h.width,k=b.style.textAlign||window.getComputedStyle(b).getPropertyValue("text-align"),k=k.toLowerCase();if(0<=k.indexOf("right")){if(0.2>h)return!0}else if(0<=k.indexOf("center")){if(0.2>h||0.8<h)return!0}else if(0<=k.indexOf("left")&&0.8<h)return!0;return!1},preWikify:null,
wikify:function(b,a,h){if(twve.node.matches(a,"th,td")){var k=twve.text.nodeWideStyleText(b);k&&(b=b.substring(k.length));var c="!"==b.charAt(0)?"TH":"TD";if(a.nodeName!=c){var f=createTiddlyElement(null,c);a.parentNode.replaceChild(f,a);a=f;"TH"==c&&(b=b.substring(1))}var c=" "==b.charAt(0),f=b.length,g=" "==b.charAt(f-1);c?g?(a.style.textAlign="center",b=b.substring(1,f-1)):(a.style.textAlign="right",b=b.substring(1)):(a.style.textAlign="left",g&&(b=b.substring(0,f-1)));if(k){k=k.match(/[\w-]+[:]{1}[\w-]+[;]{1}/g);
c=[];for(f=0;f<k.length;f++)g=k[f].match(/[\w-]+/g),c[c.length]={style:g[0],value:g[1]};config.formatterHelpers.applyCssHelper(a,c)}}return twve.table.preWikify.call(this,b,a,h)},tableMenu:null,getTableMenu:function(){var b=null;twve.table.tableMenu||(twve.table.tableMenu=twve.menu.create(twve.button.create(null,String.fromCharCode(8801),"table menu")),twve.table.addOptionsMenu(twve.table.tableMenu),b=twve.table.tableMenu.addItem("Transpose","Transpose this table"),b.click=function(){twve.button.isActive(this)&&
twve.tiddler.focusElem().transpose()});b||(b=twve.table.tableMenu.findItem("Transpose"));b.activate(config.options.chktwveTableTranspose);return twve.table.tableMenu},sort:function(b,a,h){if(b.startSorting()){var k=b.dom;b.sortingCell(a);for(var c=[],f=k.querySelectorAll("tr"),g=0,e=f.length;g<e;g++)c[g]=f[g];try{config.tableSorting?twve.table.sortTable.call(this,a,h):config.macros.sortableGridPlugin&&twve.table.tsResortTable.call(this,a,h)}catch(q){return console.log(q),-1<q.toString().indexOf("undefined")&&
console.log("There are probably spanned cells and/or missing cells in this table."),b}a=[];f=k.querySelectorAll("tr");g=0;for(e=f.length;g<e;g++)k=f[g],a[g]=k,k.setAttribute("row",g),k=k.classList,k.remove("oddRow"),k.remove("evenRow"),k.add(g%2?"oddRow":"evenRow");e=f=b.tiddler.text;k=Array(a.length);h=twve.position.create(b.start);for(var p=twve.position.create(b.end),r,t,g=0;g<c.length;g++)for(r=0;r<a.length;r++)if(a[r]==c[g]){k[r]=g;r!=g&&(f=b.changed({what:"ROW MOVED",from:g,to:r,text:f}));break}c=
h.ndx;for(r=0;r<a.length;r++)t=twve.table.rowStarts(e,h,p,0,c),c=twve.table.rowEnds(e,t),g=twve.table.rowStarts(f,b.start,b.end,k[r]),rend=twve.table.rowEnds(f,g),e=e.substring(0,t)+f.substring(g,rend)+e.substring(c),g=rend-g-(c-t),p.ndx+=g,c+=g;e=b.changed({what:"SORTED",text:e});twve.tiddler.saveText(b,e);b.showRefBars();b.drawFocusBorders();return b}},preFocusTarget:null,focusTarget:function(b){return twve.table.findTable(b.target)||twve.table.preFocusTarget.apply(this,arguments)},hasHeader:function(b,
a){if(b.dom){if(-1<b.headPos().open)return!0;b=b.dom}if(b.tHead)return!0;a||(a=b.querySelectorAll("tr"));for(var h=a[0].querySelectorAll("th,td"),k=0,c=0,f=h.length;c<f;c++)twve.node.matches(h[c],"th")&&k++;return k==h.length?!0:!1},rowIndex:function(b,a){if(void 0===a){var h=b.getAttribute("row");return h?1*h:b.rowIndex}b.setAttribute("row",a);return a},cellRowIndex:function(b,a){return twve.table.rowIndex(b.parentNode,a)},cellColIndex:function(b,a){if(void 0===a){var h=b.getAttribute("col");return h?
1*h:b.cellIndex}b.setAttribute("col",a)},cellSpans:function(b){var a=twve.object.create();a.row=twve.table.cellRowSpan(b);a.col=twve.table.cellColSpan(b);return a},create:function(b){var a=twve.element.create();a.clear=function(){a.wrappers=null;a.refbarV=null;a.refbarH=null;a.curNode=null;a.differentBox=!0;return a};var h=a.copyFrom;a.copyFrom=function(m){h.apply(this,arguments);a.wrappers=m.wrappers;a.refbarV=m.refbarV;a.refbarH=m.refbarH;a.curNode=m.curNode;return a};a.markupTags=function(){return twve.table.markupTags()};
a.twveSelector=function(){return twve.table.twveSelector(null,"table")};var k=a.is;a.is=function(a){return!a?!1:k.apply(this,arguments)?!0:twve.node.matches(a,twve.table.twveSelector().include)||twve.node.closest(a,"th,td")};a.isEditable=function(m){if(a.wrappers){if(a.wrappers.all==m)return a.curNode=null,!0;if(!twve.node.contains(a.wrappers.all,m))return!1}var b=null;if(b=twve.node.matches(m,"th,td")?m:twve.node.closest(m,"th,td"))return a.curNode=b,!0;b=twve.table.wrapper.getSelector("cap");return twve.node.matches(m,
b)||twve.node.matches(m,"table,tr")?(a.curNode=m,!0):twve.node.matches(m,twve.table.wrapper.getSelector("all"))?(a.curNode=null,!0):!1};a.clone=function(){return twve.table.create(a)};a.disabled=function(){return-1==a.end.ndx||!config.options.chktwveTableEnabled||a.isSystemShadow()||!(config.options.chktwveTableEditAll||a.hasClass("editable")||a.hasClass("|editable"))};a.mouseenter=function(m){if(a.disabled())return!1;a.refbarV.isVisible()||a.showRefBars();return!0};a.cellAtMouse=function(a){return a.target};
a.mousemove=function(m){if(twve.node.box(a.dom).contains(twve.tiddler.mousePosition(m))&&(a.refbarV.hideMenu(),a.refbarH.hideMenu(),twve.table.getTableMenu().hide(),twve.table.sortingEnabled()&&twve.table.hasHeader(a))){var b=a.cellAtMouse(m);0==twve.table.cellRowIndex(b)&&(b.style.cursor=twve.table.inEditArea(b,m)?"text":"pointer")}};a.mouseleave=function(m){return twve.tiddler.getEditBox()&&twve.tiddler.cur_editable.is(a)?!1:!twve.node.box(a.wrappers.all).contains(twve.tiddler.mousePosition(m))};
a.blur=function(){a.refbarV.isVisible()&&(a.hideRefBars(),twve.table.getTableMenu().hide(!0),a.beingEdited()&&twve.tiddler.updateText())};a.getLastCurElem=function(){return a.curNode.length?a.curNode[a.curNode.length-1]:a.curNode};a.box=function(m,b,d){m=m.toLowerCase();return a.curNode&&0<=m.indexOf("edit")?(d||(d=a.getLastCurElem()),m=twve.node.box(d),config.browser.firefoxDate&&config.browser.isLinux&&twve.node.matches(d,"th,td")&&(b=twve.node.cssSize(d.style.paddingLeft),m.left-=b/2,m.width-=
b,b=twve.node.cssSize(d.style.paddingTop),m.top-=b/2,m.height-=b),m):m=twve.node.box(a.wrappers?a.wrappers.all:a.dom)};a.prepare=function(){if(a.disabled())return!1;a.initRows();twve.table.hasHeader(a)&&(config.tableSorting?twve.table.sortTable||(twve.table.sortTable=config.tableSorting.sortTable,config.tableSorting.sortTable=function(a,b){twve.table.sort(twve.tiddler.focusElem(),a,b)}):config.macros.sortableGridPlugin&&!twve.table.tsResortTable&&(twve.table.tsResortTable=config.macros.sortableGridPlugin.ts_resortTable,
config.macros.sortableGridPlugin.ts_resortTable=function(a){twve.table.sort(twve.tiddler.focusElem(),a)}));a.adjustWidth();a.resize();return!0};a.rowWithMaxCol=function(m){return twve.table.rowWithMaxCol(a.dom,m)};a.counts=function(m,b){if(twve.table.rowEnds(b,a.start.ndx+("\n"==b.charAt(a.start.ndx)?1:0))<=a.start.ndx)return!1;--m.remained;++m.ndx;return!0};a.getElement=function(){return a.curNode?a.getLastCurElem():a.dom};a.createWrapperRefBars=function(){a.wrappers=twve.table.wrapper.create(a);
a.refbarV=twve.table.refBarV.create(a);a.refbarH=twve.table.refBarH.create(a);return a};var c=a.setElement;a.setElement=function(m,b){a.isEditable(m)?m=twve.table.findTable(m):(a.curNode=null,twve.node.matches(m,"table")||(m=twve.table.findTable(m)));c.call(this,m,b);a.createWrapperRefBars();return a};a.setTable=function(m,b){return a.setElement(m,b)};a.putRefBars=function(m,b){var d=window.getComputedStyle(a.dom);twve.node.setPosition(a.refbarH.dom,m+parseInt(d.getPropertyValue("margin-left")));
twve.node.setPosition(a.refbarV.dom,null,b+parseInt(d.getPropertyValue("margin-top")));return a};a.showRefBars=function(){a.refbarV.show();a.refbarH.show();a.adjustRefBars();var m=a.refbarV.getSize(),b=a.refbarH.getSize(),d=a.wrappers;d.resize(m,b);twve.node.setPosition(d.cap,m);twve.node.setPosition(d.tb,m,b);a.putRefBars(m,b);return a};a.hideRefBars=function(){if(!a.refbarV.isVisible())return a;a.refbarV.hide();a.refbarH.hide();var m=a.wrappers;twve.node.setPosition(m.cap,0);twve.node.setPosition(m.tb,
0,0);m.resize();return a};a.maxColumns=function(m){return twve.table.maxColumns(a.dom,m)};var f=a.renderedCopy;a.renderedCopy=function(){var m=f.apply(this,arguments);if(m&&a!=m&&(m.createWrapperRefBars(),a.curNode)){var b=a.curNode;if(twve.node.matches(b,"div"))m.curNode=m.wrappers.cap;else if(twve.node.matches(b,"td,th")){var d=m.dom.querySelectorAll("tr")[twve.table.cellRowIndex(b)];twve.node.matches(b,"[missed]")?m.curNode=m.appendCell(d,b.length||1):m.curNode=twve.table.getRowCell(d,twve.table.cellColIndex(b))}}return m};
a.getCell=function(m,b,d){d||(d=a.dom.querySelectorAll("tr"));for(var l=null,n=0,c=d.length;n<c;n++)if(l=twve.table.getRowCell(d[n],b)){var e=twve.table.cellRowSpan(l);if(1==e&&n==m||n+e-1>=m)break;l=null}else if(n==m)return null;return l};a.appendCell=function(a,b,d){if("number"!=typeof b||0>=b)b=1;"number"!=typeof d&&(d=a.querySelectorAll("th,td"),d=twve.table.cellColIndex(d[d.length-1]));for(var l=[],n=0;n<b;n++){var c=document.createElement("td");c.setAttribute("missed",!0);c.setAttribute("col",
++d);a.appendChild(c);l[l.length]=c}return l};a.editNextCell=function(m,b,d,l){void 0===d&&(d=0);void 0===l&&(l=0);var n=a.getLastCurElem(),c=twve.table.cellRowIndex(n)+d,n=twve.table.cellColIndex(n)+l;switch(m){case "left":n-=b;break;case "up":c-=b;break;case "right":n+=b;break;case "down":c+=b}twve.tiddler.updateText();var e=a.dom.querySelectorAll("tr");0>c?c=e.length-1:c>=e.length&&(c=0);var f=a.maxColumns(e);0>n?n=f-1:n>=f&&(n=0);a.curNode=a.getCell(c,n,e);if(a.curNode){if(a.curNode.classList.contains("noedit"))return a.editNextCell(m,
b,d,l)}else m=e[c].querySelectorAll("th,td"),m=twve.table.cellColIndex(m[m.length-1]),a.curNode=a.appendCell(e[c],n-m,m)[n-m-1];a.editText(null,c,n);return a};var g=a.editNeighbor;a.editNeighbor=function(m,b){if(!a.curNode||twve.node.matches(a.curNode,"div"))return g?g.apply(this,arguments):null;void 0===b&&(b=1);var d=twve.tiddler.getEditBox(),l=d.length;1==l&&(d=d[0],l=d.length);if(!(1<l))return a.editNextCell(m,b);for(var n=0;n<l&&!twve.node.matches(d[n],"textarea:focus");n++);var c=twve.table.cellSpans(a.curNode);
if(1<c.col){c=c.col-n-1;switch(m){case "left":n-=b;break;case "right":n+=b;break;case "up":case "down":return a.editNextCell(m,b,0,-c)}if(0>n||n>=l)return a.editNextCell(m,b,0,-c)}else if(1<c.row){c=n;switch(m){case "left":case "right":return a.editNextCell(m,b,c,0);case "up":n-=b;break;case "down":n+=b}if(0>n||n>=l)return a.editNextCell(m,b,c,0)}d=d[n].nodeType?d[n]:d[n][0];d.focus();twve.tiddler.previewEditBox(d);return a};var e=null,q="";a.getCellText=function(m,b){b||(b=a.tiddler.text);var d=
q="";if(m.length){for(var d=[],l=0;l<m.length;l++){d[l]=[];for(var c=0;c<m[l].length;c++)d[l][c]=b.substring(m[l][c].open,m[l][c].close)}config.options.chktwveTableIncludeCSS||(q=twve.text.nodeWideStyleText(d[0][m[0].length-1]),d[0][m[0].length-1]=d[0][m[0].length-1].substring(q.length));config.options.chktwveTableMultiLine&&(d[0][m[0].length-1]=twve.text.brToLineBreak(d[0][m[0].length-1]))}else d=b.substring(m.open,m.close),config.options.chktwveTableIncludeCSS||(q=twve.text.nodeWideStyleText(d),
d=d.substring(q.length)),config.options.chktwveTableMultiLine&&(d=twve.text.brToLineBreak(d));e=m;return d};a.setCellText=function(b,c){c||(c=e);if(!c)return displayMessage("Internal error: twtable.setCellText(). Trying to set text without a specific position."),null;if(c.length){q&&(b[0][c[0].length-1]=q+b[0][c[0].length-1]);for(var d=c.length-1;0<=d;d--)for(var l=c[d].length-1;0<=l;l--)config.options.chktwveTableMultiLine&&0<=b[d][l].indexOf("\n")&&(b[d][l]=twve.text.lineBreakToBr(b[d][l])),a.setText(b[d][l],
c[d][l].open,c[d][l].close)}else config.options.chktwveTableMultiLine&&0<=b[0].indexOf("\n")&&(b[0]=twve.text.lineBreakToBr(b[0])),q&&(b[0]=q+b[0]),a.setText(b[0],c.open,c.close);return a};a.updateCell=function(b){for(var c=b[0],d=a.curNode.length?a.curNode:[a.curNode],l=d.length-1;0<=l;l--)twve.node.matches(d[l],"[missed]")&&(b[0]="|"+b[0]);if(!a.setCellText(b))return!1;if(e.length||q||twve.text.nodeWideStyleText(c)||"~"==c||">"==c)a.refreshTable();else{for(l=d.length-1;0<=l;l--)d[l].removeAttribute("missed");
d=d[d.length-1];b=twve.object.create();b.what="MODIFIED";b.row=twve.table.cellRowIndex(d);b.col=twve.table.cellColIndex(d);b.text=a.tiddler.text;a.refreshAll(c,b);a.curNode=null}q="";e=null;return!0};a.rowAt=function(b,c){c||(c=a.dom.querySelectorAll("tr"));for(var d=0,l=c.length;d<l;d++)if(twve.node.box(c[d]).containsY(b.y))return c[d];return null};a.rowIndexAt=function(b,c){var d=a.rowAt(b,c);return d?twve.table.rowIndex(d):-1};a.colIndexAt=function(b){for(var c=a.refbarH.dom.querySelectorAll("span"),
d=c.length-1;0<=d&&!twve.node.box(c[d]).containsX(b.x);d--);return d};var p=a.previewEditBox;a.previewEditBox=function(b,c){var d=p.apply(this,arguments);if("TABLE"==c.nodeName){var l=a.direct_wrapper.clone();l.dom=d.querySelector("div.board");l.waitAndPrepare()}return d};a.editCell=function(b,c,d){var l=a.dom,n=a.getLastCurElem(),e=twve.table.cellRowIndex(n),f,h=l.querySelectorAll("tr");if(0==e&&twve.table.hasHeader(l,h)&&twve.table.sortingEnabled()&&!twve.table.inEditArea(n,b)||twve.node.matches(n,
".noedit"))return null;if(b){var g=twve.tiddler.createEditableWrapper(b.target);if(g)return g.editText(b)}var g=twve.table.cellColIndex(n),k=twve.table.cellSpans(n);f=twve.table.cellPos(a.tiddler.text,a.start,a.end,e,g,k);var q=a.getCellText(f);if(!f.length)return r.call(this,b,q,n);twve.tiddler.cur_editable=a;var p,t;f=a.refbarH.dom.querySelectorAll("span");for(var s=window.getComputedStyle(n),v=twve.node.cssSize(s.getPropertyValue("font-size")),y=s.getPropertyValue("text-align"),s=twve.node.cssSize(s.getPropertyValue("line-height")),
l=twve.node.closest(l,twve.tiddler.displaySelector()),D=[],E=v*config.options.txttwveCoreMinEditWidth,w=0,H=q.length;w<H;w++){var F=[],A=twve.node.box(h[e+w]);A.height<s&&(A.height=s);for(var z=0,I=q[w].length;z<I;z++){var G=g-k.col+1+z,B=twve.node.box(f[G]);B.top=A.top;B.height=A.height;var x=document.createElement("textarea"),C=q[w][z];x.value=C;x.defaultValue=C;l.appendChild(x);a.prepareEditBox(x,C,B,y,v);B.width<E&&twve.node.setDimension(x,E);F[z]=x;w+e==c&&G==d&&(t=C,p=x)}D[w]=F}twve.tiddler.setEditBox(D);
a.focusEditBox(p,t,b,n);a.previewEditBox(p,n,l);return p};a.signaturePosByTail=function(b){var c=twve.object.create();c.open=-1;c.close=-1;var d=a.tiddler.text;c.close=d.indexOf(b.toLowerCase(),a.start.ndx);-1==c.close&&(c.close=d.indexOf(b.toUpperCase()));-1<c.close&&c.close<a.end.ndx&&(c.close+b.length==d.length||"\n"==d.charAt(c.close+b.length))?c.open=d.lastIndexOf("|",c.close-1)+1:c.close=-1;return c};a.headPos=function(){return a.signaturePosByTail("|h")};a.classPos=function(){return a.signaturePosByTail("|f")};
a.classPos=function(){return a.signaturePosByTail("|k")};a.captionPos=function(){return a.signaturePosByTail("|c")};a.getCaption=function(b){var c=a.captionPos();b||(b=a.tiddler.text);return-1!=c.open?b.substring(c.open,c.close):""};a.setCaption=function(b){var c=a.captionPos();-1!=c.open?(b||(0<c.open&&c.open--,c.close+=3),a.setText(b,c.open,c.close)):b&&(c=a.classPos(),-1<c.open?(c.open=c.close+=3,a.setText("|"+b+"|c",c.open,c.close)):(c.open=c.close=a.start.ndx,a.setText("|"+b+"|c\n",c.open,c.close)));
return!0};var r=a.editText;a.editText=function(b,c,d){twve.tiddler.clearFocusBox();if(a.curNode){var l=null;switch(a.curNode.nodeName){case "TABLE":if(l=twve.tiddler.mousePosition(b),a.curNode=a.rowAt(l,a.curNode.querySelectorAll("tr")),!a.curNode)return null;case "TR":l||(l=twve.tiddler.mousePosition(b));d=a.colIndexAt(l);c=twve.table.rowIndex(a.curNode);var n=a.curNode.querySelectorAll("th,td"),n=twve.table.cellColIndex(n[n.length-1]);a.curNode=a.appendCell(a.curNode,d-n,n);case "TH":case "TD":return!l&&
b&&(l=twve.tiddler.mousePosition(b),d=a.colIndexAt(l),c=a.rowIndexAt(l)),-1<c&&-1<d?a.editCell(b,c,d):null;case "DIV":return r.call(this,b,a.getCaption(),a.curNode)}}return r.apply(this,arguments)};a.refreshSelf=function(b){var c=a.getElement();switch(c.nodeName){case "DIV":b||(b=" ");twve.node.wikify(b,c);break;case "TH":case "TD":twve.node.wikify(b,c);break;default:b=twve.tiddler.getPreviewedNodes(b),c=a.filter(b,"table"),a.replaceWith(b,a.wrappers.all),a.setElement(c),a.prepare()}return a};
var t=a.removeSelf;a.removeSelf=function(b){if(!a.curNode)return a.wrappers.all.parentNode.removeChild(a.wrappers.all),t.apply(this,arguments);a.refreshSelf("");b&&b.what&&a.changed(b);return a};a.adjustRefBars=function(){a.refbarV.adjust(a);a.refbarH.adjust(a);return a};a.refreshTable=function(){a.curNode=null;a.hideRefBars();a.refreshAll();a.showRefBars();a.drawFocusBorders();return a};a.updateText=function(b){switch(a.getElement().nodeName){case "TH":case "TD":return a.updateCell(b);case "DIV":a.setCaption(b[0]);
var c=twve.object.create();c.what="CAPTION MODIFIED";c.text=a.tiddler.text;return a.refreshAll(b[0],c);default:a.setText(b[0])}return a.refreshAll(b[0])};a.drawFocusBorders=function(b){b||(b=twve.node.box(a.wrappers.all));twve.tiddler.drawFocusBorders(b);var c=twve.object.create();c.left=b.right;c.top=b.top;b=twve.table.getTableMenu();b.showRoot(c,"left");b.isVisible()&&(c.left=b.root.dom.offsetLeft,b.show(c,"left"));return a};var s=a.changed;a.changed=function(b){b&&(b.text=s.apply(this,arguments));
a.resize();a.adjustRefBars();return b?b.text:""};a.insertRow=function(b,c){var d=a.tiddler.text,l,n;"below"==c.toLowerCase().substring(0,5)&&b++;0==b?n=l=twve.table.rowStarts(d,a.start,a.end,0):(l=twve.table.rowStarts(d,a.start,a.end,b-1),n=twve.table.rowEnds(d,l));var e="|";l=twve.table.rowCells(d,l,n).length;for(var f=0;f<l;f++)e+="|";d=d.substring(0,n)+(0<b?"\n"+e:e+"\n")+(n<d.length?d.substring(n):"");a.end.ndx+=e.length+1;n=twve.table.copiedRowIndex();b<=n&&twve.table.copiedRowIndex(++n);d=a.changed({what:"ROW INSERTED",
where:b,text:d});twve.tiddler.saveText(a,d);return a.refreshTable()};a.deleteRow=function(b,c){var d=a.tiddler.text,l,n,e;if(!1!==c&&config.options.chktwveCoreConfirmToDelete&&!confirm("Delete row "+b))return a;l=twve.table.rowStarts(d,a.start,a.end,b);n=twve.table.rowEnds(d,l);var f=0;if(n<a.end.ndx){e=twve.table.rowCells(d,l,n);for(var h=twve.table.rowStarts(d,a.start,a.end,0,n),g=twve.table.rowEnds(d,h),h=twve.table.rowCells(d,h,g),g=1;g<e.length;g++)if(e[g]&&h[g]){var k=d.substring(e[g].open,
e[g].close);"~"==d.substring(h[g].open,h[g].close)&&"~"!=k&&(d=d.substring(0,h[g].open)+d.substring(h[g].close),f++)}}d=(0<l?d.substring(0,l-1):"")+(n<d.length?d.substring(n):"");a.end.ndx-=n-l+(0<l?1:0)+f;l=twve.table.copiedRowIndex();b<l&&twve.table.copiedRowIndex(--l);d=a.changed({what:"ROW DELETED",where:b,text:d});twve.tiddler.saveText(a,d);return a.refreshTable()};a.moveRow=function(b,c){var d=a.tiddler.text,l=twve.table.rowStarts(d,a.start,a.end,b),n=twve.table.rowEnds(d,l),e=d.substring(l,
n),f=b+c,g=twve.table.rowStarts(d,a.start,a.end,f),h=twve.table.rowEnds(d,g),d=0<c?d.substring(0,l)+d.substring(n+1,h)+"\n"+e+d.substring(h):d.substring(0,g)+e+"\n"+d.substring(g,l-1)+d.substring(n),l=twve.table.copiedRowIndex();b==l&&twve.table.copiedRowIndex(l+c);d=a.changed({what:"ROW EXCHANGED",from:b,to:f,text:d});twve.tiddler.saveText(a,d);return a.refreshTable()};a.copyRow=function(b){var c=a.tiddler.text,d=twve.table.rowStarts(c,a.start,a.end,b),l=twve.table.rowEnds(c,d);twve.table.copiedRowText(c.substring(d,
l));twve.table.copiedRowIndex(b);twve.table.copiedColumnText(null);twve.table.copiedColumnIndex(-1);return a};a.pasteRow=function(b){var c=a.tiddler.text,d=twve.table.rowStarts(c,a.start,a.end,b),l=twve.table.rowEnds(c,d),n=twve.table.copiedRowText(),c=c.substring(0,d)+n+(l<c.length?c.substring(l):"");a.end.ndx+=n.length-(l-d);c=a.changed({what:"ROW PASTED",where:b,from:twve.table.copiedRowIndex(),text:c});twve.tiddler.saveText(a,c);return a.refreshTable()};a.insertColumn=function(b,c){for(var d=
a.tiddler.text,l=twve.table.allCells(d,a.start,a.end),n="left"==c.toLowerCase().substring(0,4),e=0,f=l.length-1;0<=f;f--){var g=l[f].length-1;if(b<=g)d=n?d.substring(0,l[f][b].open)+"|"+d.substring(l[f][b].open):d.substring(0,l[f][b].close+1)+"|"+d.substring(l[f][b].close+1);else{for(var h="",k=g;k<b;k++)h+="|";n||(h+="|");d=d.substring(0,l[f][g].close+1)+h+d.substring(l[f][g].close+1);e+=h.length}}a.end.ndx+=l.length+e;n||b++;l=twve.table.copiedColumnIndex();b<=l&&twve.table.copiedColumnIndex(++l);
d=a.changed({what:"COL INSERTED",where:b,text:d});twve.tiddler.saveText(a,d);return a.refreshTable()};a.deleteColumn=function(b,c){var d=a.tiddler.text,l=twve.table.allCells(d,a.start,a.end);if(!1!==c&&config.options.chktwveCoreConfirmToDelete&&!confirm("Delete column "+twve.table.colRef(b)))return-1;for(var e=0,f=l.length-1;0<=f;f--)if(!(b>=l[f].length)){var g=d.substring(l[f][b].open,l[f][b].close),h=0<b?d.substring(l[f][b-1].open,l[f][b-1].close):"",d=d.substring(0,l[f][b].open-1)+d.substring(l[f][b].close),
e=e+(g.length+1);">"!=g&&">"==h&&(d=d.substring(0,l[f][b-1].open-1)+d.substring(l[f][b-1].close),e+=h.length+1)}a.end.ndx-=e;l=twve.table.copiedColumnIndex();b<l&&twve.table.copiedColumnIndex(--l);d=a.changed({what:"COL DELETED",where:b,text:d});twve.tiddler.saveText(a,d);return a.refreshTable()};a.moveColumn=function(b,c){for(var d=a.tiddler.text,l=twve.table.allCells(d,a.start,a.end),e=b+c,f=twve.table.copiedColumnIndex(),g=e==f?[]:null,h=0,k=l.length-1;0<=k;k--){var u=l[k].length-1,q=b<=u?d.substring(l[k][b].open,
l[k][b].close):"";g&&g.unshift(q);if(b<=u)if(0<c)if(e<=u)d=d.substring(0,l[k][b].open-1)+d.substring(l[k][b].close,l[k][e].close)+"|"+q+d.substring(l[k][e].close);else{for(var p="",r=u;r<e;r++)p+="|";d=d.substring(0,l[k][b].open)+p+q+d.substring(l[k][u].close);h+=p.length}else d=d.substring(0,l[k][e].open)+q+"|"+d.substring(l[k][e].open,l[k][b].open-1)+d.substring(l[k][b].close);else e<=u&&(d=d.substring(0,l[k][e].open)+"|"+d.substring(l[k][e].open),h+=1)}a.end.ndx+=h;b==f&&twve.table.copiedColumnIndex(f+
c);d=a.changed({what:"COL EXCHANGED",from:b,to:e,text:d});twve.tiddler.saveText(a,d);return a.refreshTable()};a.copyColumn=function(b){for(var c=a.tiddler.text,d=twve.table.allCells(c,a.start,a.end),l=[],e=0;e<d.length;e++)l[l.length]=b<d[e].length?c.substring(d[e][b].open,d[e][b].close):"";twve.table.copiedColumnText(l);twve.table.copiedColumnIndex(b);twve.table.copiedRowText(null);twve.table.copiedRowIndex(-1);return a};a.pasteColumn=function(b){for(var c=a.tiddler.text,d=twve.table.allCells(c,
a.start,a.end),e=twve.table.copiedColumnText(),f=Math.min(d.length,e.length),h=0,g=f-1;0<=g;g--){var k=d[g].length-1;if(b<=k)c=c.substring(0,d[g][b].open)+e[g]+c.substring(d[g][b].close),h+=e[g].length-(d[g][b].close-d[g][b].open);else{for(var q="",u=k;u<b;u++)q+="|";c=c.substring(0,d[g][k].close+1)+q+e[g]+"|\n"+c.substring(0,d[g][k].close+1);h+=q.length+e[g].length+2}}a.end.ndx+=h;for(g=f;g<e.length;g++){q="\n";for(u=0;u<b;u++)q+="|";c=c.substring(0,a.end.ndx)+q+e[g]+"|"+c.substring(a.end.ndx);a.end.ndx+=
q.length+e[g].length+1}c=a.changed({what:"COL PASTED",where:b,from:twve.table.copiedColumnIndex(),text:c});twve.tiddler.saveText(a,c);return a.refreshTable()};a.resize=function(){if(!a.wrappers)return a;var b=twve.tiddler.focusElem();b&&(b=b.is(a));var c=0,d=0;b&&(c=a.refbarV.getSize(),d=a.refbarH.getSize());a.wrappers.resize(c,d);b&&a.drawFocusBorders();return a};a.adjustWidth=function(){for(var b=twve.node.width(a.dom,"outer",!0),c=1*config.options.txttwveTableMinCellWidth,d=0,e=a.rowWithMaxCol().querySelectorAll("th,td"),
f=0,g=e.length;f<g;f++){var h=e[f],k=twve.node.width(h,"outer",!0),q=twve.node.cssSize(window.getComputedStyle(h).getPropertyValue("font-size"))*c,u=2==version.major&&7>version.minor?(twve.node.width(h)-k)/2:0;k<q?(twve.node.setDimension(h,q+u),k=twve.node.width(h,"outer",!0)):0<u&&(twve.node.setDimension(h,k+u),k=twve.node.width(h,"outer",!0));d+=k}twve.node.setDimension(a.dom,(d<b?b:d+1)+(config.tableSorting||config.macros.sortableGridPlugin?1:0));return a};a.initRows=function(){for(var b=a.dom.querySelectorAll("tr"),
c=0,d=b.length;c<d;c++)b[c].setAttribute("row",c);var d=a.tiddler.text,e=a.start,f=a.end,g,h,k=config.options.chktwveTableIncludeCSS;config.options.chktwveTableIncludeCSS=!1;for(var c=0,q=b.length;c<q;c++){g=twve.table.rowStarts(d,e,f,c);h=twve.table.rowEnds(d,g);for(var u=0,p,r=b[c].querySelectorAll("th,td"),t=0,s=r.length;t<s;t++)for(var v=r[t];g<h;){p=twve.table.locateCell(d,g,h,0);g=p.close;p=a.getCellText(p);if(!p){v.setAttribute("col",u++);break}if("~"==p||">"==p)u++;else{if(config.options.chktwveTableMultiLine){var y=
p.charAt(0);("*"==y||"#"==y||-1<p.indexOf("\n"))&&twve.node.wikify(p,v)}v.setAttribute("col",u++);break}}}config.options.chktwveTableIncludeCSS=k};var v=a.multiLine;a.multiLine=function(){return a.curNode?twve.node.matches(a.curNode,"th,td")?config.options.chktwveTableMultiLine:!1:v.apply(this,arguments)};var y=a.hasClass;a.hasClass=function(b){if(config.macros.sortableGridPlugin){var c=a.classPos();if(-1<c.open){var d=text.indexOf(b,c.open);if(-1<d&&d<c.close)return!0}return!1}return y.apply(this,
arguments)};a.startSorting=function(){return!twve.tiddler.getEditBox()};a.sortingCell=function(b){a.curNode="A"==b.nodeName?b.parentNode:b;return a.curNode};a.sort=function(b,c){return twve.table.sort(a,b,c)};a.transpose=function(){for(var b=a.getText(),c=0;;){c=b.indexOf("|>|",c);if(-1==c)break;var d=c+3;c++;var e=b.indexOf("\n",d);-1==e&&(e=b.length);for(;d<e&&">|"==b.substring(d,d+2);)d+=2;if(d<e){var f=twve.text.skipToActive(b,"|",d,e).ndx;if(-1==f)break;f<e&&(b=b.substring(0,c)+b.substring(d,
f)+b.substring(c+1,d)+">"+b.substring(f));c=f}else c=d}for(var c=twve.position.create(0),g=twve.position.create(b.length),e=twve.table.allCells(b,c,g),h=e.length,k=0,q,p,r,f=0;f<h;f++)e[f].length>k&&(k=e[f].length);for(p=k-1;0<=p;p--){d=-1;for(f=h-1;0<=f;f--)p>=e[f].length||(q=b.substring(e[f][p].open,e[f][p].close),"~"==q?-1==d&&(d=f):-1!=d&&(b=b.substring(0,e[f][p].open)+"~"+b.substring(e[f][p].close,e[d][p].open)+q+b.substring(e[d][p].close),e=twve.table.allCells(b,c,g),d=-1))}d="";for(p=0;p<k;p++){d+=
"|";for(f=0;f<h;f++)d+="|";p<k-1&&(d+="\n")}g.ndx=d.length;var t=twve.table.allCells(d,c,g),g=/^\s*\!/,s=/\S/;for(p=k-1;0<=p;p--)for(f=h-1;0<=f;f--)p>=e[f].length||(q=b.charAt(e[f][e[f].length-1].close+1),k="h"==q||"H"==q,q=b.substring(e[f][p].open,e[f][p].close),"~"==q?q=">":">"==q?q="~":k&&!g.test(q)&&(q=0<(r=q.search(s))?q.substring(0,r)+"!"+q.substring(r):"!"+q),d=d.substring(0,t[p][f].open)+q+d.substring(t[p][f].close));r=twve.position.create(0);e=twve.position.create(d.length);e=twve.table.allCells(d,
r,e);for(f=0;f<e.length;f++){k=!1;for(p=e[f].length-1;0<=p;p--){q=d.substring(e[f][p].open,e[f][p].close);if(!g.test(q))break;k=0==p}if(k){p=e[f].length-1;for(d=d.substring(0,e[f][p].close+1)+"h"+d.substring(e[f][p].close+1);0<=p;p--)q=d.substring(e[f][p].open,e[f][p].close),r=q.indexOf("!"),q=q.substring(0,r)+q.substring(r+1),d=d.substring(0,e[f][p].open)+q+d.substring(e[f][p].close);break}}(r=a.getCaption(b))&&(d="|"+r+"|c\n"+d);rend=b.indexOf("|k\n",c.ndx);-1==rend&&(rend=b.indexOf("|K\n",c.ndx));
-1<rend&&(rstart=b.lastIndexOf("|",rend-1),d=b.substring(rstart,rend+3)+d);a.setText(d);d=a.changed({what:"TRANSPOSED",text:a.tiddler.text});twve.tiddler.saveText(a,d);return a.refreshTable()};return a.created(b)}};
twve.table.wrapper={class_all:"twveTable",class_tbref:"twveTBRef",class_tb:"twveTB",class_cap:"twveTCap",getSelector:function(b){if(!b)return"div."+twve.table.wrapper.class_all;b=b.toLowerCase();return"cap"==b?"div."+twve.table.wrapper.class_cap:"tbref"==b?"div."+twve.table.wrapper.class_tbref:"tb"==b?"div."+twve.table.wrapper.class_tb:"div."+twve.table.wrapper.class_all+",div."+twve.table.wrapper.class_cap+",div."+twve.table.wrapper.class_tbref+",div."+twve.table.wrapper.class_tb},create:function(b){var a=
twve.object.create();a.clear=function(){a.all=null;a.tbref=null;a.tb=null;a.cap=null;return a};a.captionHeight=function(){return a.cap?twve.node.height(a.cap,"outer",!0):0};a.setTable=function(b){b=b.dom;if(!b)return a;a.all=twve.table.getWrapper(b);if(a.all)return a.tbref=a.all.querySelector(twve.table.wrapper.getSelector("tbref")),a.tb=a.all.querySelector(twve.table.wrapper.getSelector("tb")),a.cap=a.all.querySelector(twve.table.wrapper.getSelector("cap")),a;a.all=document.createElement("div");
a.tbref=document.createElement("div");a.tb=document.createElement("div");a.cap=document.createElement("div");var k=b.caption?b.childNodes[0]:null;k?(b.removeChild(k),a.cap.innerHTML=k.innerHTML):a.cap.innerHTML=" ";twve.node.copyMargin(a.all,b);b.style.marginLeft="4px";b.parentNode.replaceChild(a.all,b);a.tb.appendChild(b);a.all.style.position="relative";a.all.style.paddingTop="8px";a.all.classList.add(twve.table.wrapper.class_all);b.style.marginTop="4px";a.cap.style.position="relative";a.cap.style.textAlign=
"center";a.cap.style.overflow="hidden";a.cap.classList.add(twve.table.wrapper.class_cap);a.all.appendChild(a.cap);a.tbref.style.border=0;a.tbref.style.overflow="hidden";a.tbref.style.position="relative";a.tbref.classList.add(twve.table.wrapper.class_tbref);a.all.appendChild(a.tbref);a.tb.style.border=0;a.tb.style.overflow="auto";a.tb.style.position="relative";a.tb.classList.add(twve.table.wrapper.class_tb);a.tbref.appendChild(a.tb);return a};a.resize=function(b,k){var c=a.tb.childNodes[0];a.width=
twve.node.width(c,"outer",!0)+(b||0);a.height=twve.node.height(c,"outer",!0)+(k||1);twve.node.setDimension(a.cap,a.width-b);twve.node.setDimension(a.tb,a.width,a.height);twve.node.setDimension(a.tbref,a.width,a.height);twve.node.setDimension(a.all,a.width,a.height+a.captionHeight());return a};a.clear();return b?a.setTable(b):a}};
twve.table.refBar={create:function(){var b=twve.node.create();b.getSelector=function(){return"div."+b.getClass()};b.getMenuSelector=function(){return"div."+b.getMenuClass()};b.getMenu=function(){return twve.tiddler.getDisplay().querySelector(b.getMenuSelector())};b.hideMenu=function(){var a=b.getMenu();a&&twve.node.hide(a);return b};b.menuButtonStyle=function(a){a.dom.style.position="absolute";a.dom.style.backgroundColor="#fff8dc";a.dom.style.color="#000000"};b.show=function(a){twve.node.show(b.dom);
return b};b.hide=function(){twve.node.hide(b.dom);b.hideMenu();return b};b.setTable=function(a){b.dom=a.wrappers.tbref.querySelector(b.getSelector());return b.dom?b:null};b.create=function(a){b.dom=document.createElement("div");b.dom.style.position="absolute";twve.node.hide(b.dom);a&&a.wrappers.tb.parentNode.insertBefore(b.dom,a.wrappers.tb);return b};return b.clear()}};
twve.table.refBarV={getClass:function(){return"twveTRefBarV"},getSelector:function(){var b="div."+twve.table.refBarV.getClass();return b+","+b+" span"},create:function(b){var a=twve.table.refBar.create();a.getClass=function(){return twve.table.refBarV.getClass()};a.getMenuClass=function(){return"twveTMenuV"};a.getSize=function(){return twve.node.width(a.dom,"outer",!0)};var h=a.getMenu;a.getMenu=function(){var b=h.apply(this);if(!b){var b=twve.tiddler.getOptionsMenu().root,f=1.1*b.width(),g=0.9*b.height(),
e=4.2*f,k=4.2*g,b=document.createElement("div");twve.tiddler.getDisplay().appendChild(b);b.style.position="absolute";b.style.border=0;twve.node.setDimension(b,e,k);e=twve.button.create(null,String.fromCharCode(5169),"Insert row above",function(){twve.tiddler.focusElem().insertRow(1*this.parentNode.getAttribute("row"),"above")},"rU");a.menuButtonStyle(e);twve.node.setPosition(e.dom,2.6*f+2,0.6*g);b.appendChild(e.dom);e=twve.button.create(null,String.fromCharCode(5167),"Insert row below",function(){twve.tiddler.focusElem().insertRow(1*
this.parentNode.getAttribute("row"),"below")},"rD");a.menuButtonStyle(e);twve.node.setPosition(e.dom,2.6*f+2,2.6*g);b.appendChild(e.dom);e=twve.button.createDelete("Delete this row",function(){twve.tiddler.focusElem().deleteRow(1*this.parentNode.getAttribute("row"))},"xR");a.menuButtonStyle(e);twve.node.setPosition(e.dom,3.2*f+0,1.6*g);b.appendChild(e.dom);e=twve.button.create(null,"C","Copy this row",function(){var a=this.parentNode;twve.tiddler.focusElem().copyRow(1*a.getAttribute("row"));twve.button.activate(a.querySelector("[id^=twveTbtnrP]"),
!0)},"rC");a.menuButtonStyle(e);twve.node.setPosition(e.dom,0.6*f+0,0.6*g);b.appendChild(e.dom);e=twve.button.create(null,"X","Cut this row",function(){var a=this.parentNode,b=1*a.getAttribute("row"),c=twve.tiddler.focusElem();c.copyRow(b);c.deleteRow(b,!1);twve.button.activate(a.querySelector("[id^=twveTbtnrP]"),!0)},"rX");a.menuButtonStyle(e);twve.node.setPosition(e.dom,0,1.6*g);b.appendChild(e.dom);e=twve.button.create(null,"P","Paste to this row",function(){twve.button.isActive(this)&&twve.tiddler.focusElem().pasteRow(1*
this.parentNode.getAttribute("row"))},"rP");a.menuButtonStyle(e);twve.node.setPosition(e.dom,0.6*f+0,2.6*g);b.appendChild(e.dom);e=twve.button.create(null,String.fromCharCode(8657),"Exchange with above",function(){twve.button.isActive(this)&&twve.tiddler.focusElem().moveRow(1*this.parentNode.getAttribute("row"),-1)},"mU");a.menuButtonStyle(e);twve.node.setPosition(e.dom,1.6*f+0,0);b.appendChild(e.dom);e=twve.button.create(null,String.fromCharCode(8659),"Exchange with below",function(){twve.button.isActive(this)&&
twve.tiddler.focusElem().moveRow(1*this.parentNode.getAttribute("row"),1)},"mD");a.menuButtonStyle(e);twve.node.setPosition(e.dom,1.6*f+0,3.2*g);b.appendChild(e.dom);b.classList.add(a.getMenuClass());twve.node.hide(b)}return b};a.adjust=function(b){var f=twve.node.cssSize(window.getComputedStyle(b.wrappers.tb).getPropertyValue("line-height")),g=a.dom.querySelectorAll("span");b=b.dom.querySelectorAll("tr");if(config.browser.isiOS)for(var e=0,h=b.length;e<h;e++){var k=b[e],r=twve.node.height(k,"outer",
!0),t=k.cells,s=twve.table.cellRowSpan(t[0]);if(1<s){s=twve.table.cellRowSpanMin(t);r/=s;for(t=0;t<s;t++)twve.node.setPosition(g[e+t],null,k.offsetTop+t*r+0.5*(r-f));e+=s-1}else twve.node.setPosition(g[e],null,k.offsetTop+0.5*(r-f))}else{e=0;for(h=b.length;e<h;e++)k=b[e],r=twve.node.height(k,"outer",!0),twve.node.setPosition(g[e],null,k.offsetTop+0.5*(r-f))}return a};a.showMenu=function(b){var f=a.getMenu(),g=twve.node.index(b);b=twve.node.box(b);var e=twve.tiddler.focusElem().dom;twve.node.show(f);
twve.node.setPosition(f,b.left-(twve.node.width(f,"outer",!0)-b.width)/2-(config.browser.isLinux?1:0),b.top-(twve.node.height(f,"outer",!0)-b.height)/2-4);f.setAttribute("row",g);twve.button.activate(f.querySelector("[id^=twveTbtnrP]"),0<=twve.table.copiedRowIndex());twve.button.activate(f.querySelector("[id^=twveTbtnrU]"),!(twve.table.hasHeader(e)&&0==g));twve.button.activate(f.querySelector("[id^=twveTbtnmU]"),!(0==g||twve.table.hasHeader(e)&&1==g||e.tFoot&&g==e.rows.length-1));twve.button.activate(f.querySelector("[id^=twveTbtnrD]"),
!(e.tFoot&&g==e.rows.length-1));twve.button.activate(f.querySelector("[id^=twveTbtnmD]"),!(g==e.rows.length-1||twve.table.hasHeader(e)&&0==g||e.tFoot&&g==e.rows.length-2));return a};a.getWidth=function(a){for(var b=a.rows.length,g=a=twve.node.cssSize(window.getComputedStyle(a).getPropertyValue("font-size"));1<(b/=10);)g+=a;g==a&&(g=a);return g};var k=a.setTable;a.setTable=function(b){if(k.apply(this,arguments))return a;var f=twve.node.cssSize(window.getComputedStyle(b.wrappers.tb).getPropertyValue("line-height")),
g=a.getWidth(b.dom);a.create(b);twve.node.setDimension(a.dom,g);a.dom.classList.add(a.getClass());for(var e=0,h=b.dom.querySelectorAll("tr").length;e<h;e++){var p=document.createElement("span");p.style.border=0;p.style.position="absolute";p.style.padding=0;p.style.margin=0;p.style.textAlign="center";twve.node.setDimension(p,g,f);p.setAttribute("row",e);p.addEventListener("click",function(a){a=1*this.getAttribute("row");var b=this.parentNode,c=b.parentNode.querySelector("table").querySelectorAll("tr"),
e=b.getAttribute("last-row"),e=e?1*e:-1;-1<e&&c[e]&&(c[e].style.opacity=0);a!=e&&c[a]?(c[a].style.opacity=0,b.setAttribute("last-row",a)):b.removeAttribute("last-row")});p.addEventListener("mouseenter",function(b){a.showMenu(this)});p.textContent=twve.table.rowRef(e);a.dom.appendChild(p)}return a};return b?a.setTable(b):a}};
twve.table.refBarH={getClass:function(){return"twveTRefBarH"},getSelector:function(){var b="div."+twve.table.refBarH.getClass();return b+","+b+" span"},create:function(b){var a=twve.table.refBar.create();a.getClass=function(){return twve.table.refBarH.getClass()};a.getMenuClass=function(){return"twveTMenuH"};a.getSize=function(){return twve.node.height(a.dom,"outer",!0)};var h=a.getMenu;a.getMenu=function(){var b=h.apply(this);if(!b){var b=twve.tiddler.getOptionsMenu().root,f=1.2*b.width(),g=0.8*
b.height(),e=4.2*f,k=4.2*g,b=document.createElement("div");twve.tiddler.getDisplay().appendChild(b);b.style.position="absolute";twve.node.setDimension(b,e,k);e=twve.button.create(null,String.fromCharCode(8658),"Exchange with right",function(){twve.button.isActive(this)&&twve.tiddler.focusElem().moveColumn(1*this.parentNode.getAttribute("col"),1)},"mR");a.menuButtonStyle(e);twve.node.setPosition(e.dom,3.2*f,1.6*g);b.appendChild(e.dom);e=twve.button.create(null,String.fromCharCode(8656),"Exchange with left",
function(){twve.button.isActive(this)&&twve.tiddler.focusElem().moveColumn(1*this.parentNode.getAttribute("col"),-1)},"mL");a.menuButtonStyle(e);twve.node.setPosition(e.dom,0,1.6*g);b.appendChild(e.dom);e=twve.button.create(null,String.fromCharCode(5176),"Insert column left",function(){twve.tiddler.focusElem().insertColumn(1*this.parentNode.getAttribute("col"),"left")},"cL");a.menuButtonStyle(e);twve.node.setPosition(e.dom,0.6*f,2.6*g+2);b.appendChild(e.dom);e=twve.button.createDelete("Delete this column",
function(){twve.tiddler.focusElem().deleteColumn(1*this.parentNode.getAttribute("col"))},"xC");a.menuButtonStyle(e);twve.node.setPosition(e.dom,1.6*f,3.2*g);b.appendChild(e.dom);e=twve.button.create(null,String.fromCharCode(5171),"Insert column right",function(){twve.tiddler.focusElem().insertColumn(1*this.parentNode.getAttribute("col"),"right")},"cR");a.menuButtonStyle(e);twve.node.setPosition(e.dom,2.6*f,2.6*g+2);b.appendChild(e.dom);e=twve.button.create(null,"C","Copy this column",function(){var a=
this.parentNode;twve.tiddler.focusElem().copyColumn(1*a.getAttribute("col"));twve.button.activate(a.querySelector("[id^=twveTbtncP]"),!0)},"cC");a.menuButtonStyle(e);twve.node.setPosition(e.dom,0.6*f,0.6*g);b.appendChild(e.dom);e=twve.button.create(null,"X","Cut this column",function(){var a=this.parentNode,b=1*a.getAttribute("col"),c=twve.tiddler.focusElem();c.copyColumn(b);c.deleteColumn(b,!1);twve.button.activate(a.querySelector("[id^=twveTbtncP]"),!0)},"cX");a.menuButtonStyle(e);twve.node.setPosition(e.dom,
1.6*f,0);b.appendChild(e.dom);e=twve.button.create(null,"P","Paste to this column",function(){twve.button.isActive(this)&&twve.tiddler.focusElem().pasteColumn(1*this.parentNode.getAttribute("col"))},"cP");a.menuButtonStyle(e);twve.node.setPosition(e.dom,2.6*f,0.6*g);b.appendChild(e.dom);b.classList.add(a.getMenuClass());twve.node.hide(b)}return b};a.adjust=function(b){var f=a.dom.querySelectorAll("span");b=b.rowWithMaxCol().querySelectorAll("th,td");for(var g=0,e=b.length;g<e;g++){var h=b[g];twve.node.setDimension(f[g],
twve.node.width(h,"inner"));twve.node.setPosition(f[g],h.offsetLeft)}return a};a.showMenu=function(b){var f=a.getMenu();twve.tiddler.focusElem();var g=1*b.getAttribute("col"),e=twve.node.box(b);twve.node.show(f);twve.node.setPosition(f,e.left+(e.width-twve.node.width(f,"outer",!0))/2-2,e.top-(twve.node.height(f,"outer",!0)-e.height)/2-4);f.setAttribute("col",g);twve.button.activate(f.querySelector("[id^=twveTbtncP]"),0<=twve.table.copiedColumnIndex());twve.button.activate(f.querySelector("[id^=twveTbtnmL]"),
0<g);twve.button.activate(f.querySelector("[id^=twveTbtnmR]"),g<b.parentNode.querySelectorAll("span").length-1)};var k=a.setTable;a.setTable=function(b){if(k.apply(this,arguments))return a;var f=b.wrappers,g=window.getComputedStyle(f.tb),e=twve.node.cssSize(g.getPropertyValue("line-height")),g=window.getComputedStyle(f.tbref),h=g.getPropertyValue("background-color"),p=g.getPropertyValue("color");a.create(b);a.dom.style.border=0;a.dom.style.paddingBottom="4px";twve.node.setDimension(a.dom,twve.node.width(f.tbref),
e);a.dom.classList.add(a.getClass());for(var f=b.rowWithMaxCol().querySelectorAll("th,td"),e=0,r=f.length;e<r;e++){var t=f[e],s=document.createElement("span"),g=window.getComputedStyle(t),g=twve.node.cssSize(g.getPropertyValue("border-left-width"))+twve.node.cssSize(g.getPropertyValue("border-right-width"));twve.node.copyMargin(s,t);twve.node.copyPadding(s,t);s.setAttribute("col",e);s.style.backgroundColor=h;s.style.color=p;s.style.position="absolute";s.style.border=0;s.style.textAlign="center";twve.node.setDimension(s,
twve.node.width(t)+g);a.dom.appendChild(s);s.addEventListener("click",function(a){a=1*this.getAttribute("col");for(var b=this.parentNode,c=b.parentNode.querySelector("table"),e=b.getAttribute("last-col"),e=e?1*e:-1,c=c.querySelectorAll("tr"),d=0,f=c.length;d<f;d++){var g=c[d].querySelectorAll("th,td");-1<e&&g[e]&&(g[e].style.opacity=1);a!=e&&g[a]&&(g[a].style.opacity=0)}b.setAttribute("last-col",a!=e?a:"")});s.addEventListener("mouseenter",function(b){a.showMenu(this)});s.textContent=twve.table.colRef(e)}return a};
return b?a.setTable(b):a}};
//}}}
// @@
/***
|editable|k
|''Name:''|twve.tablelarge|
|''Description:''|Large table support for twve, the ~TiddlyWiki View mode Editor|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.tablelarge.min / http://twve.tiddlyspace.com/#twve.tablelarge.min <br>* (regular) http://twve.tiddlyspot.com/#twve.tablelarge / http://twve.tiddlyspace.com/#twve.tablelarge|
|''Type:''|plugin|
|''Version:''|3.2.6|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery<br>2014/05/13 released 3.0.0 <br>2014/01/18 renamed to twve.tablelarge <br>2013/11/29 reformed <br>2013/06/02 released 2.0.0 <br>2013/05/24 separated from ~TWtid 1.6.4|
|''License:''|MIT|
|''Core Version:''|2.7.0|
|''Needs to have:''|twve.core, twve.table|
!!Features:
* Whatever twve.table supports, plus the support for large tables.
* Oversize tables are scrollable.
* First few rows/columns can be fixed from scrolling.
** Options txttwveTableFixRows and txttwveTableFixCols to specify the first few rows/cols to stay fixed when scrolling.
* Variable view port for tables.
** Options txtTWVEtableMaxWidth and txtTWVEtableMaxHeight to specify the max width/height of table view port.
!!Usage:
!!Options
Look for [[twve.table Options]] in the Options Panel.
!!Examples
[[twve.table Examples]]
!!Todo:
!!!Revision history
!!!! 2016/04/30 [3.2.6]
* Saves options in SystemSettings tiddler.
** If you disable autoSave option, you will need to manually save the tiddler after changing a ''twve'' option.
* Starts using strict mode.
!!!! 2015/03/23 [3.2.3]
* Some minor changes.
!!!! 2015/02/13 [3.2.2]
* Replaced regular expression with string operations whenever easy, hoping to save some time.
* Bug fix
** for fixed rows/columns in oversize tables (''better but still unstable'').
!!!! 2014/12/22 [3.2.1]
* Bug fix
** for transclusion synchronization.
!!!! 2014/11/21 [3.2.0]
* Removed jQuery dependencies for migrating to ~TW5.
** Could be incompatible with earlier browsers.
!!!! 2014/08/03 [3.1.0]
* Started to remove jQuery dependencies for migrating to TW5.
* Bug fix
** for transclusion synchronization with self inclusion and FoldedSectionPlugin.
!!!! 2014/05/23 [3.0.2]
* Bug fixes
** for table scrolling when there is edit box.
!!!! 2014/05/13 [3.0.0]
* Bug fixes
** for transclusion synchronization;
** for partial self inclusion;
** for large table support.
!!!! For earlier history please see [[TWtable.2.0.8]] or [[its external link|http://twtable.tiddlyspace.com/#TWtable.2.0.8]].
!!!! 2014/01/18
* Collected from [[TWtable|http://twtable.tiddlyspace.com/#TWtable.2.0.8]], adapted to the new code structure.
!!!Code
!!!The very beginning
***/
//{{{
(function(){
"use strict";
if ( typeof twve.table == 'undefined' ) {
alert('twve.tablelarge: This plugin needs twve.table to function properly. Please install twve.table before this one.');
}
//}}}
/***
!!! Version information
***/
//{{{
version.extensions.twve.tablelarge = {
major: 3, minor: 2, revision: 6,
date: new Date('2016/04/30')
};
//}}}
/***
!!! Macro for initialization and option settings.
***/
//{{{
merge(config.macros.twveTableOptions, {
preInit : config.macros.twveTableOptions.init,
init : function () {
config.macros.twveTableOptions.preInit.apply(this);
// twve.tiddler methods
twve.table.preMouseDown = twve.tiddler.mouseDown;
twve.tiddler.mouseDown = twve.table.mouseDown;
// MathJax
if ( twve.MathJax ) {
twve.table.preAfterMath = twve.MathJax.afterMath;
twve.MathJax.afterMath = twve.table.afterMath;
}
twve.checkOption(
'txttwveTableFixRows',
(config.options.txtTWtableFixRows ||
config.options.txtTWtidFixRows || '0')
);
twve.checkOption(
'txttwveTableFixCols',
(config.options.txtTWtableFixCols ||
config.options.txtTWtidFixCols || '0')
);
twve.checkOption(
'txttwveTableMaxWidth',
(config.options.txtTWtableMaxWidth ||
config.options.txtTWtidMaxWidth || '100%')
);
twve.checkOption(
'txttwveTableMaxHeight',
(config.options.txtTWtableMaxHeight ||
config.options.txtTWtidMaxHeight || '5000px')
);
merge(config.optionsDesc,{
txttwveTableFixRows:'(@@color:red;Unstable@@) Fix the first few rows. The number of first rows, including the header row, to fix at the top of table (so they do not scroll). Default is 0.',
txttwveTableFixCols:'(@@color:red;Unstable@@) Fix the first few columns. The number of first columns to fix at the left side of table (so they do not scroll). Default is 0.',
txttwveTableMaxWidth:'Maximum view port width for tables. Wider tables are scrollable. Default is 100% of that of the parent element.',
txttwveTableMaxHeight:'Maximum view port height for tables. Higher tables are scrollable. Default is 500px.'
});
merge(config.macros.twveTableOptions.order,{
txttwveTableFixRows:10,
txttwveTableFixCols:11,
txttwveTableMaxWidth:12,
txttwveTableMaxHeight:13
});
}
});
//}}}
/***
!!! twve.node extra features
***/
//{{{
merge(twve.node,{
//}}}
/***
!!!! twve.node.getBorderWidth
***/
//{{{
getBorderWidth : function(node,which,css){
// Get the border width of node. The 2nd argument which can be
// one of the followings:
// 1. one of 'left', 'top', 'right', and 'bottom'.
// 2. 'horizontal' -- sum of 'left' and 'right' margins.
// 3. 'vertical' -- sum of 'top' and 'bottom' margins.
// The 3rd argument css, if given, shall be the value returned from
// window.getComputedStyle(node).
if ( ! css ) css = window.getComputedStyle(node);
var m1, m2;
switch ( which.charAt(0) ) {
case 'h' :
case 'H' : // horizontal = left + right
m1 = node.style.borderLeftWidth ||
css.getPropertyValue('border-left-width');
m1 = m1 ? parseInt(m1) : 0;
m2 = node.style.borderRightWidth ||
css.getPropertyValue('border-right-width');
m2 = m2 ? parseInt(m2) : 0;
return m1 + m2;
case 'v' :
case 'V' : // vertical = top + bottom
m1 = node.style.borderTopWidth ||
css.getPropertyValue('border-top-width');
m1 = m1 ? parseInt(m1) : 0;
m2 = node.style.borderBottomWidth ||
css.getPropertyValue('border-bottom-width');
m2 = m2 ? parseInt(m2) : 0;
return m1 + m2;
case 'l' :
case 'L' : // left
m1 = node.style.borderLeftWidth ||
css.getPropertyValue('border-left-width');
return m1 ? parseInt(m1) : 0;
case 't' :
case 'T' : // top
m1 = node.style.borderTopWidth ||
css.getPropertyValue('border-top-width');
return m1 ? parseInt(m1) : 0;
case 'r' :
case 'R' : // right
m2 = node.style.borderRightWidth ||
css.getPropertyValue('border-right-width');
return m2 ? parseInt(m2) : 0;
case 'b' :
case 'B' : // bottom
m2 = node.style.borderBottomWidth ||
css.getPropertyValue('border-bottom-width');
return m2 ? parseInt(m2) : 0;
}
return 0;
},
//}}}
/***
!!!! twve.node.getBorderStyle
***/
//{{{
getBorderStyle : function(node,which,css){
// Get the border style of node. The 2nd argument which can be
// one of 'left', 'top', 'right', and 'bottom'.
// The 3rd argument css, if given, shall be the value returned from
// window.getComputedStyle(node).
if ( ! css ) css = window.getComputedStyle(node);
switch ( which.charAt(0) ) {
case 'l' :
case 'L' : // left
return node.style.borderLeftStyle ||
css.getPropertyValue('border-left-style');
case 't' :
case 'T' : // top
return node.style.borderTopStyle ||
css.getPropertyValue('border-top-style');
case 'r' :
case 'R' : // right
return node.style.borderRightStyle ||
css.getPropertyValue('border-right-style');
case 'b' :
case 'B' : // bottom
return node.style.borderBottomStyle ||
css.getPropertyValue('border-bottom-style');
}
return 0;
},
//}}}
/***
!!!! twve.node.getBorderColor
***/
//{{{
getBorderColor : function(node,which,css){
// Get the border color of node. The 2nd argument which can be
// one of 'left', 'top', 'right', and 'bottom'.
// The 3rd argument css, if given, shall be the value returned from
// window.getComputedStyle(node).
if ( ! css ) css = window.getComputedStyle(node);
switch ( which.charAt(0) ) {
case 'l' :
case 'L' : // left
return node.style.borderLeftColor ||
css.getPropertyValue('border-left-color');
case 't' :
case 'T' : // top
return node.style.borderTopColor ||
css.getPropertyValue('border-top-color');
case 'r' :
case 'R' : // right
return node.style.borderRightColor ||
css.getPropertyValue('border-right-color');
case 'b' :
case 'B' : // bottom
return node.style.borderBottomColor ||
css.getPropertyValue('border-bottom-color');
}
return 0;
},
//}}}
/***
!!!! twve.node.getBorder
***/
//{{{
getBorder : function(node,which,css){
// Get the border of node. The 2nd argument which can be
// one of 'left', 'top', 'right', and 'bottom'.
// The 3rd argument css, if given, shall be the value returned from
// window.getComputedStyle(node).
if ( ! css ) css = window.getComputedStyle(node);
var bw = twve.node.getBorderWidth(node,which,css)+'px';
var bs = twve.node.getBorderStyle(node,which,css);
var bc = twve.node.getBorderColor(node,which,css);
return bw+' '+bs+' '+bc;
},
//{{{
//}}}
/***
!!!! twve.node.copyBorder
***/
//{{{
copyBorder : function (dest,src,css) {
if ( ! css ) css = window.getComputedStyle(src);
dest.style.borderTop = twve.node.getBorder(src,'top',css);
dest.style.borderRight = twve.node.getBorder(src,'right',css);
dest.style.borderBottom = twve.node.getBorder(src,'bottom',css);
dest.style.borderLeft = twve.node.getBorder(src,'left',css);
return dest;
}
});
//}}}
/***
!!! twve.span extra features
***/
//{{{
if(twve.span)merge(twve.span, {
//}}}
/***
!!!! twve.span.twveSelector
***/
//{{{
preTwveSelector : twve.span.twveSelector,
twveSelector : function(selector){
selector = twve.span.preTwveSelector.apply(this,arguments);
return selector.excludeSelector('span[col],span[row]');
}
});
//}}}
/***
!!! twve.table
***/
//{{{
merge(twve.table, {
//}}}
/***
!!!! twve.table.afterMath
***/
//{{{
preAfterMath : null,
afterMath : function(msg){
var table = twve.table.findTable(msg[1]);
if ( table && ! twve.node.closest(table,'div.board') ) {
// There is math in some table got rendered (and is not in the
// preview), which may change the size of the table. We want to
// make sure that table is taken care of.
twve.table.adjustFixedRows(table);
}
twve.table.preAfterMath.apply(this,arguments);
},
//}}}
/***
!!!! twve.table.mouseDown
***/
//{{{
preMouseDown : null,
mouseDown : function(ev){
var down_elem = twve.table.preMouseDown.apply(this,arguments);
if ( down_elem && down_elem.classList.contains(
twve.table.wrapper.class_tb
)) {
var focus = twve.tiddler.focusElem();
if ( focus && focus.wrappers ) {
var eb = twve.node.box(focus.wrappers.tb);
var pos = twve.tiddler.mousePosition(ev);
if (pos.x >= eb.right || pos.y >= eb.bottom)
twve.tiddler.down_elem = down_elem = null;
}
}
return down_elem;
},
//}}}
/***
!!!! twve.table.wrapper_in_sync
***/
//{{{
wrapper_in_sync : null,
sync_ndx : 0,
//}}}
/***
!!!! twve.table.getScrollPosition
***/
//{{{
getScrollPosition : function(tb){
var pos = twve.object.create();
pos.left = tb.scrollLeft;
pos.top = tb.scrollTop;
pos.leftRatio = tb.scrollLeft / tb.scrollWidth;
pos.topRatio = tb.scrollTop / tb.scrollHeight;
return pos;
},
//}}}
/***
!!!! twve.table.adjustFixedRows
***/
//{{{
adjustFixedRows : function(table){
var tb = twve.table.getWrapper(table,'tb');
if ( !tb ) return;
var fixedRows = tb.querySelector(
twve.table.fixedRows.getSelector()
);
if ( fixedRows )
twve.table.fixedRows.adjust(
table,tb,fixedRows
);
var fixedCols = tb.querySelector(
twve.table.fixedColumns.getSelector()
);
if ( fixedCols )
twve.table.fixedRows.adjust(
table,tb,fixedCols
);
},
//}}}
/***
!!!! twve.table.create
***/
//{{{
preCreateLarge : twve.table.create,
create : function(src,txt,start,dir){
var twtable = twve.table.preCreateLarge.apply(this);
// clear
//var preClear = twtable.clear;
twtable.clear = function(){
//preClear.apply(this);
twtable.fixed_row = null;
twtable.fixed_col = null;
return twtable;
};
// copy from
var preCopyFrom = twtable.copyFrom;
twtable.copyFrom = function(table){
preCopyFrom.apply(this,arguments);
twtable.fixed_row = table.fixed_row;
twtable.fixed_col = table.fixed_col;
return twtable;
};
// cellAtMouse
twtable.cellAtMouse = function(ev){
return twve.node.matches(
ev.target.parentNode,twve.table.fixedCell.getSelector()
) ? ev.target.parentNode : ev.target;
};
// is
var preIs = twtable.is;
twtable.is = function(elem){
return preIs.apply(this,arguments) ||
(elem && twve.node.matches(
elem.parentNode,twve.table.fixedCell.getSelector()
));
};
// isEditable
var preIsEditable = twtable.isEditable;
twtable.isEditable = function(elem){
var result = preIsEditable.apply(this,arguments);
if ( ! result ) {
var s = twve.table.fixedCell.getSelector();
var cell = null;
if ( twve.node.matches(elem,s) )
cell = elem;
else {
elem = elem.parentNode;
if (twve.node.matches(elem,s)) cell = elem;
}
if ( cell ) {
twtable.editNode = cell;
//twtable.editNode = twve.table.getRowCell(
// twtable.dom.querySelectorAll('tr')
// [twve.table.cellRowIndex(cell)],
// twve.table.cellColIndex(cell)
//);
result = true;
}
}
return result;
};
// scrollIntoView
var preScrollIntoView = twtable.scrollIntoView;
twtable.scrollIntoView = function(scroller){
// Scrolls the cell into view if currently not.
if ( twve.node.matches(twtable.editNode,'th,td') )
scroller = twtable.wrappers.tb;
return preScrollIntoView.call(this,scroller);
};
// editNeighbor
var preEditNeighbor = twtable.editNeighbor;
twtable.editNeighbor = function(){
preEditNeighbor.apply(this,arguments);
twtable.scrollIntoView();
return twtable;
};
// maxDim
twtable.maxDim = function(){
var w = twtable.direct_wrapper.dom;
if ( twve.node.matches(
w,twve.tiddlerSpan.twveSelector().include
) ) {
// <<tiddler>> transcluded content, may exceed the
// container width.
// This does not happen with <<slider>> nor <<tabs>>
// macros.
w = w.parentNode;
}
var dim = twve.object.create();
dim.width = twve.node.cssSize(
config.options.txttwveTableMaxWidth,w
);
dim.height = twve.node.cssSize(
config.options.txttwveTableMaxHeight,w
);
return dim;
};
// adjustDim
twtable.adjustDim = function(dim){
var max = twtable.maxDim();
var tbw = twtable.wrappers;
var scw = twve.node.scrollBarWidth(tbw.tb);
var oversize = false;
if (dim.width+scw > max.width) {
// Width is too large, need to have room horizontal
// scroll bar.
dim.height += scw;
if ( dim.height > max.height ) {
// Height is too large with a horizontal scroll bar,
// meaning we also need a vertical scroll bar.
dim.height = max.height-scw;
dim.width = max.width-scw;
} else
// Height is fine with a horizontal scroll bar, no
// need for a vertical scroll bar. Set the width to
// maximum.
dim.width = max.width;
oversize = true;
} else if (dim.height+scw > max.height) {
// Width is fine but height is larger than the
// user-specified maximum, need a vertical scroll bar.
dim.width += scw;
if ( dim.width > max.width ) {
// Width is too large with a vertical scroll bar,
// meaning we also need a horizontal scroll bar.
dim.width = max.width-scw;
dim.height = max.height-scw;
} else
// Width is fine with a vertical scroll bar, no
// need for a horizontal scroll bar. Set the height
// to maximum.
dim.height = max.height;
oversize = true;
}
return oversize;
};
// oversize
//var noupdate_size = false;
twtable.oversize = function (dim) {
if ( ! dim )
return twtable.dom.getAttribute('oversize');
// Check if the table is oversize.
var oversize = twtable.adjustDim(dim);
//if ( noupdate_size ) return oversize;
if ( oversize )
twtable.dom.setAttribute('oversize', 'true');
else
twtable.dom.removeAttribute('oversize');
return oversize;
};
// getScrollPosition
twtable.getScrollPosition = function(){
return twve.table.getScrollPosition(twtable.wrappers.tb);
};
// setScrollPosition
twtable.setScrollPosition = function(pos){
var tb = twtable.wrappers.tb;
tb.scrollLeft = pos.leftRatio * tb.scrollWidth;
tb.scrollTop = pos.topRatio * tb.scrollHeight;
return pos;
};
// getMargin
twtable.getMargin = function(which){
return twve.node.getMargin(twtable.dom,which)-2;
};
// putFixedRows
twtable.putFixedRows = function(toadjust){
var scrL = twtable.wrappers.tb.scrollLeft;
var scrT = twtable.wrappers.tb.scrollTop;
var css = null;
if ( twtable.fixedRows ) {
css = window.getComputedStyle(twtable.dom);
twve.node.setPosition(
twtable.fixedRows.dom,
twtable.dom.offsetLeft,
twtable.dom.offsetTop+scrT
-(scrT > 1
? (twve.node.getMargin(twtable.dom,'top',css)
+(config.browser.isIE?1:0))
: 0)
);
}
if ( twtable.fixedCols ) {
twve.node.setPosition(
twtable.fixedCols.dom,
twtable.dom.offsetLeft+scrL
-(scrL > 1
? twve.node.getMargin(twtable.dom,'left',css)
: 0),
twtable.dom.offsetTop
);
}
};
// adjustFixedRows
twtable.adjustFixedRows = function(){
if ( twtable.fixedRows )
twve.table.fixedRows.adjust(
twtable.dom,twtable.wrappers.tb,
twtable.fixedRows.dom
);
if ( twtable.fixedCols )
twve.table.fixedRows.adjust(
twtable.dom,twtable.wrappers.tb,
twtable.fixedCols.dom
);
return twtable;
};
// resize
var preWrapperResize = null;
twtable.wrapperResize = function(dw,dh){
var tbw = twtable.wrappers;
var pos = twve.table.getScrollPosition(tbw.tb);
preWrapperResize.apply(this,arguments);
if ( twtable.oversize(tbw) ) {
var ow = 0, oh = 0;
var max = twtable.maxDim();
var scw = twve.node.scrollBarWidth(twtable.wrappers.tb);
if ( tbw.width+scw >= max.width ) {
// Width is too large.
dw = (dw||twtable.refbarV.getSize())+scw;
if ( tbw.height+scw < max.height ) {
// Height is fine, reduce the height of tbw.tb
// so the horizontal scroll bar is close to the
// table body.
dh = (dh||0)+twtable.getMargin('vertical')-1;
//dh = (dh||twtable.refbarH.getSize())+scw;
ow = -scw;
} else {
// Height is also too large
oh = dh || 0;
dh = 0;
}
twve.node.setDimension(tbw.cap,max.width-dw);
twve.node.setDimension(
tbw.tb,max.width-dw,tbw.height-dh
);
} else if ( tbw.height+scw >= max.height ) {
// Width is fine but height is too large.
if ( ! dw ) dw = 0;
ow = -scw;
oh = dh || 0;
dh = 0;
twve.node.setDimension(tbw.cap,tbw.width-dw+ow);
twve.node.setDimension(
tbw.tb,
tbw.width-dw+ow+5,
tbw.height
);
}
twve.node.setDimension(
tbw.tbref,tbw.width+ow+6,tbw.height+oh
);
twve.node.setDimension(
tbw.wrap,tbw.width+ow+6,
tbw.height+tbw.captionHeight()+oh
);
// Necessary at focusing/defocusing
twtable.setScrollPosition(pos)
}
return tbw;
};
// scrolled
twtable.scrolled = function(scroll){
var tb = twtable.wrappers.tb;
twtable.putRefBars(
tb.offsetLeft-tb.scrollLeft,
tb.offsetTop-tb.scrollTop
);
twtable.putFixedRows();
//twtable.adjustFixedRows();
if ( ! twtable.beingEdited() ||
! twve.node.matches(twtable.editNode,'th,td') )
return twtable;
var edbox = twve.tiddler.getEditBox();
if ( edbox ) {
var eb = twve.node.box(
twve.tiddler.cur_editable.getElement()
);
var dL = eb.left - (edbox[0].offsetLeft ||
edbox[0][0].offsetLeft)-1;
var dT = eb.top - (edbox[0].offsetTop ||
edbox[0][0].offsetTop);
for ( var i=0,len=edbox.length; i<len; i++ )
twve.node.shiftPosition(edbox[i],dL,dT);
var preview = twve.tiddler.getPreviewer();
if ( preview )
twve.node.shiftPosition(preview,dL,dT);
}
return twtable;
};
// scroll
twtable.scroll = function(){
var twtable = twve.tiddler.focusElem();
if ( ! twtable || ! twtable.scrolled ) return;
var pos = twtable.getScrollPosition();
twtable.scrolled(pos);
if ( ! twve.table.wrapper_in_sync ) {
// Save and synchronize scroll position
twve.table.wrapper_in_sync = twtable.findWrappers();
// Synchronize all copies.
for(var n=0,len=twtable.wrapper.length;n<len;n++){
var t = twtable.renderedCopy(twtable.wrapper[n]);
if ( t ) t.setScrollPosition(pos);
}
}
if ( ++twve.table.sync_ndx
== twve.table.wrapper_in_sync.length ) {
twve.table.wrapper_in_sync = null;
twve.table.sync_ndx = 0;
}
};
// prepareFixedRows
twtable.prepareFixedRows = function(){
if ( twtable.oversize() ) {
twtable.wrappers.tb.addEventListener(
'scroll', twtable.scroll
);
var nrows = config.options.txttwveTableFixRows*1;
twtable.fixedRows = nrows > 0
? twve.table.fixedRows.create(twtable,nrows)
: null;
var ncols = config.options.txttwveTableFixCols*1;
twtable.fixedCols = ncols > 0
? twve.table.fixedColumns.create(twtable,ncols)
: null;
twtable.putFixedRows();
twtable.adjustFixedRows();
} else {
twtable.wrappers.tb.removeEventListener(
'scroll', twtable.scroll
);
}
return twtable;
};
// blur
var preBlur = twtable.blur;
twtable.blur = function(){
twtable.putFixedRows();
return preBlur.apply(this,arguments);
};
// hijackWrapperResize
twtable.hijackWrapperResize = function(){
if ( twtable.wrappers.resize != twtable.wrapperResize) {
preWrapperResize = twtable.wrappers.resize;
twtable.wrappers.resize = twtable.wrapperResize;
}
return twtable;
};
// setElement
var preSetElement = twtable.setElement;
twtable.setElement = function(){
preSetElement.apply(this,arguments);
if ( ! twtable.wrappers ) return twtable;
twtable.hijackWrapperResize();
twtable.prepareFixedRows();
return twtable;
};
// renderedCopy
var preRenderedCopy = twtable.renderedCopy;
twtable.renderedCopy = function(){
var the_copy = preRenderedCopy.apply(this,arguments);
return the_copy
? the_copy.hijackWrapperResize()
: null;
};
// prepare
var prePrepare = twtable.prepare;
twtable.prepare = function(){
if ( ! prePrepare.apply(this,arguments) ) return false;
twtable.prepareFixedRows();
//setTimeout(function(){
// twtable.adjustFixedRows();
//},0);
return true;
};
//}}}
/***
!!!!! twtable.reInitializeTable
***/
//{{{
var preReInitializeTable = twtable.reInitializeTable;
twtable.reInitializeTable = function(txt){
preReInitializeTable.call(this,txt);
twtable.hijackWrapperResize();
twtable.prepareFixedRows();
};
// refreshSelf
var preRefreshSelf = twtable.refreshSelf;
twtable.refreshSelf = function(){
// Save scroll position of tb
var pos = twtable.getScrollPosition();
// Refresh the table
preRefreshSelf.apply(this,arguments);
// Restore the scroll position of tb
twtable.setScrollPosition(pos);
return twtable;
};
// editText
var preEditText = twtable.editText;
twtable.editText = function(ev){
var cell = twtable.editNode;
if ( cell && twve.node.matches(
cell,twve.table.fixedCell.getSelector()
)) {
// Clicked on a fixed cell.
var txt = twtable.getText();
var pos = twve.table.cellPos(
txt,0,txt.length,
twve.table.cellRowIndex(cell),
twve.table.cellColIndex(cell),
twve.table.cellSpans(cell)
);
//if ( ! pos.length )
twtable.editNode = null;
return preEditText.call(
this,ev,
twtable.getCellText(pos,txt),
cell
);
//return twtable.editSpannedCells(pos);
}
return preEditText.apply(this,arguments);
};
// End of definition
return twtable.created(src,txt,start,dir);
}
});
//}}}
/***
!!! twve.table.fixedCell
***/
//{{{
twve.table.fixedCell = {
//}}}
/***
!!!! twve.table.fixedCell.getClass
***/
//{{{
getClass : function(){
return 'twveTfixedCell';
},
//}}}
/***
!!!! twve.table.fixedCell.getSelector
***/
//{{{
getSelector : function(){
return 'div.'+twve.table.fixedCell.getClass();
},
//}}}
/***
!!!! twve.table.fixedCell.adjust
***/
//{{{
adjust : function(fc,cell,scroll,trleft,trtop){
var css = window.getComputedStyle(cell);
var padding = {
left: twve.node.getPadding(cell,'left',css),
top: twve.node.getPadding(cell,'top',css),
right: twve.node.getPadding(cell,'right',css),
bottom: twve.node.getPadding(cell,'bottom',css)
};
var opera_or_chrome =
config.browser.isOpera || config.browser.isChrome;
var dleft =
-(opera_or_chrome?0:padding.left)
+(config.browser.firefoxDate?1:0)
// Cell position is relative to table instead of tr,
// therefore we need to subtract the offsetTop of tr to
// obtain the correct offset of a cell.
-trleft;
var dtop = ((config.browser.isIE ||
(config.browser.firefoxDate))
? (-padding.top)
: 0)
// Cell position is relative to table instead of tr,
// therefore we need to subtract the offsetTop of tr to
// obtain the correct offset of a cell.
-trtop;
twve.node.setPosition(
fc,
cell.offsetLeft+dleft,
cell.offsetTop+dtop
);
var w = cell.clientWidth;
var h = cell.clientHeight;
twve.node.setDimension(fc,w,h+padding.bottom);
// Adjust horizontal/vertical alignment
var sp_c = fc.firstChild;
var left = padding.left;
var top = padding.top;
twve.node.setPosition(sp_c,left,top);
var align = css.getPropertyValue('text-align');
if ( align.indexOf('center') > -1 )
left = (w-sp_c.offsetWidth)/2-padding.left;
else if ( align.indexOf('right') > -1 )
left = w-sp_c.offsetWidth-padding.left;
align = css.getPropertyValue('vertical-align');
if ( align.indexOf('middle') > -1 )
top = (h-sp_c.offsetHeight)/2;
else if ( align.indexOf('bottom') > -1 )
top = h-sp_c.offsetHeight;
if ( left > padding.left || top > padding.top )
twve.node.setPosition(sp_c,left,top);
},
//}}}
/***
!!!! twve.table.fixedCell.create
***/
//{{{
create : function(cell,row,col,scroll,created){
if ( created ) {
fixedCell = twve.node.create(cell);
} else {
var fixedCell = twve.node.create('div');
fixedCell.dom.classList.add(
twve.table.fixedCell.getClass()
);
fixedCell.dom.appendChild(document.createElement('span'));
fixedCell.dom.style.position = 'absolute';
fixedCell.dom.firstChild.style.position = 'absolute';
fixedCell.dom.style.display = 'table-cell';
}
//}}}
/***
!!!!! fixedCell.setTableCell
***/
//{{{
fixedCell.setTableCell = function(cell,row,col,scroll){
//var ch_org_out = twve.node.height(cell,'outer',true);
//var ch_org = twve.node.height(cell,'inner');
var css = window.getComputedStyle(cell);
var sp_c = fixedCell.dom;
// Copy margins, borders, and paddings.
twve.node.copyMargin(sp_c,cell,css);
twve.node.copyBorder(sp_c,cell,css);
if ( sp_c.style.borderLeftWidth == '0px' )
sp_c.style.borderLeftWidth = '1px';
if ( sp_c.style.borderRightWidth == '0px' )
sp_c.style.borderRightWidth = '1px';
twve.node.copyFontColor(sp_c,cell,(row==0));
// Copy .noedit class if there is.
if ( cell.classList.contains('noedit') )
sp_c.classList.add('noedit');
// Copy col, rowspan, and colspan attributes
sp_c.setAttribute('col',col);
var attr = cell.getAttribute('rowspan');
if ( attr ) sp_c.setAttribute('rowspan',attr);
attr = cell.getAttribute('colspan');
if ( attr ) sp_c.setAttribute('colspan',attr);
// Copy content
sp_c = sp_c.firstChild;
sp_c.innerHTML = cell.innerHTML;
// The next lines are for sorting purposes.
if ( row == 0 && twve.table.sortingEnabled() ) {
// Hide sorting indicators if necessary
var dir = sp_c.querySelector('span');
if ( dir && dir.classList.contains('hidden') )
twve.node.hide(dir);
}
return fixedCell;
};
//}}}
/***
!!!!! End of fixedCell
***/
//{{{
return created
? fixedCell
: fixedCell.setTableCell(cell,row,col,scroll);
}
};
//}}}
/***
!!! twve.table.fixedRow -- One fixed table row.
***/
//{{{
twve.table.fixedRow = {
//}}}
/***
!!!! twve.table.fixedRow.getClass
***/
//{{{
getClass : function(){
return 'twveTfixedRow';
},
//}}}
/***
!!!! twve.table.fixedRow.getSelector
***/
//{{{
getSelector : function(){
return 'div.'+twve.table.fixedRow.getClass();
},
//}}}
/***
!!!!! twve.table.fixedRow.adjust
***/
//{{{
adjust : function (fr,tr,row,scroll) {
var fixedCells = fr.querySelectorAll(
twve.table.fixedCell.getSelector()
);
twve.node.setPosition(
fr,tr.offsetLeft,
tr.offsetTop-(config.browser.isIE?0:(row>0?1:0))
);
//var css = window.getComputedStyle(tr);
var rowCells = tr.querySelectorAll('th,td');
for ( var n=0,clen=fixedCells.length; n<clen; n++ ) {
// Cell position is relative to table instead of tr,
// therefore we need to subtract the offsetTop of tr to
// obtain the correct offset of a cell.
twve.table.fixedCell.adjust(
fixedCells[n],rowCells[n],
scroll,tr.offsetLeft,tr.offsetTop
);
}
},
//}}}
/***
!!!! twve.table.fixedRow.create
***/
//{{{
create : function(tr,row,nCols,scroll,created){
var fixedRow;
if ( created ) {
fixedRow = twve.node.create(tr);
} else {
fixedRow = twve.node.create('div');
fixedRow.dom.classList.add(
twve.table.fixedRow.getClass()
);
fixedRow.dom.style.position = 'absolute';
fixedRow.dom.style.display = 'inline-block';
}
fixedRow.cells = [];
//}}}
/***
!!!!! fixedRow.setTableRow
***/
//{{{
fixedRow.setTableRow = function(tr,row,nCols,scroll,created){
var cells;
if ( created ) {
cells = tr.querySelectorAll(
twve.table.fixedCell.getSelector()
);
nCols = cells.length;
fixedRow.cells.length = nCols;
for (var c=0; c<nCols; c++) {
fixedRow.cells[c] =
twve.table.fixedCell.create(
cells[c],row,c,scroll,created
);
}
} else {
// Copy margins, borders, and paddings.
var css = window.getComputedStyle(tr);
twve.node.copyMargin(fixedRow.dom,tr,css);
twve.node.copyBorder(fixedRow.dom,tr,css);
twve.node.copyPadding(fixedRow.dom,tr,css);
fixedRow.dom.style.backgroundColor = twve.node.bgc(tr,css);
// Copy row attribute.
fixedRow.dom.setAttribute('row',row);
// Copy cells.
cells = tr.querySelectorAll('th,td');
if ( ! nCols || nCols > cells.length )
nCols = cells.length;
fixedRow.cells.length = nCols;
var w = 0;
for (var c=0; c<nCols; c++) {
//if ( twve.table.cellColSpan(cells[c]) > 1 ) continue;
fixedRow.cells[c] =
twve.table.fixedCell.create(
cells[c],row,c,scroll,created
);
w += cells[c].offsetWidth;
fixedRow.dom.appendChild(fixedRow.cells[c].dom);
}
twve.node.setDimension(
fixedRow.dom,w,tr.clientHeight
);
}
return fixedRow;
};
//}}}
/***
!!!!! End of fixedRow
***/
//{{{
return fixedRow.setTableRow(tr,row,nCols,scroll,created);
}
}
//}}}
/***
!!! twve.table.fixedRows -- Multiple fixed table rows.
***/
//{{{
twve.table.fixedRows = {
//}}}
/***
!!!! twve.table.fixedRows.getClass
***/
//{{{
getClass : function(){
return 'twveTfixedRows';
},
//}}}
/***
!!!! twve.table.fixedRows.getSelector
***/
//{{{
getSelector : function(){
return 'div.'+twve.table.fixedRows.getClass();
},
//}}}
/***
!!!!! twve.table.fixedRows.adjust
***/
//{{{
adjust : function (table,tb,fixedRows) {
var rows = fixedRows.querySelectorAll(
twve.table.fixedRow.getSelector()
);
var scroll = twve.table.getScrollPosition(
tb || twve.table.getWrapper(table,'tb')
);
var tr = table.querySelectorAll('tr');
for ( var r=0,rlen=rows.length; r<rlen; r++ )
twve.table.fixedRow.adjust(rows[r],tr[r],r,scroll);
},
//}}}
/***
!!!! twve.table.fixedRows.create
***/
//{{{
create : function(twtable,nRows,nCols){
var fixedRows = twve.node.create();
fixedRows.rows = [];
//}}}
/***
!!!!! fixedRows.setTable
***/
//{{{
fixedRows.setTable = function (twtable,nRows,nCols) {
// THIS IS NOT STABLE YET.
// This function is to fix the first few rows at the top
// of a table. It does so by cloning the table with only
// the few rows to fix, then put it over to cover the
// original.
if ( ! twtable.oversize() ) return fixedRows;
var scroll = twtable.getScrollPosition();
var tbw = twtable.wrappers;
var fixR = tbw.tb.querySelector(
twve.table.fixedRows.getSelector()
);
if ( fixR ) {
// Fixedrows are already created, collect them.
fixedRows.dom = fixR;
var rows = fixR.querySelectorAll(
twve.table.fixedRow.getSelector()
);
fixedRows.rows.length = rows.length;
for(var r=0,rlen=fixedRows.rows.length; r<rlen; r++){
fixedRows.rows[r] = twve.table.fixedRow.create(
rows[r],r,nCols,scroll,true
);
}
} else {
fixedRows.dom = fixR = document.createElement('div');
fixR.classList.add(twve.table.fixedRows.getClass());
fixR.style.position = 'absolute';
//fixR.style.zIndex = 1;
fixR.style.overflow = 'hidden';
var css = window.getComputedStyle(twtable.dom);
fixR.style.borderTop =
twve.node.getBorder(twtable.dom,'top',css);
fixR.style.borderLeft =
twve.node.getBorder(twtable.dom,'left',css);
fixR.style.borderRight =
twve.node.getBorder(twtable.dom,'right',css);
fixR.style.borderBottom =
twve.node.getBorder(twtable.dom,'bottom',css);
tbw.tb.appendChild(fixR);
// create the fixed rows.
var rows = twtable.dom.querySelectorAll('tr');
var rlen = fixedRows.rows.length = nRows > 0
? nRows : rows.length;
var h = 0;
for(var r=0; r<rlen; r++){
fixedRows.rows[r] = twve.table.fixedRow.create(
rows[r],r,nCols,scroll
);
fixR.appendChild(fixedRows.rows[r].dom);
h += rows[r].offsetHeight;
}
twve.node.setDimension(fixR,twtable.dom.clientWidth,h);
}
twtable.scrolled(scroll);
return fixedRows;
};
//}}}
/***
!!!!! End of fixedRows
***/
//{{{
return twtable
? fixedRows.setTable(twtable,nRows,nCols)
: fixedRows;
}
};
//}}}
/***
!!! twve.table.fixedColumns
***/
//{{{
twve.table.fixedColumns = {
//}}}
/***
!!!! twve.table.fixedColumns.getClass
***/
//{{{
getClass : function(){
return 'twveTfixedColumn';
},
//}}}
/***
!!!! twve.table.fixedColumns.getSelector
***/
//{{{
getSelector : function(){
return 'div.'+twve.table.fixedColumns.getClass();
},
//}}}
/***
!!!! twve.table.fixedColumns.create
***/
//{{{
create : function(twtable,nCols){
var fixedColumns=twve.table.fixedRows.create();
//}}}
/***
!!!!! twve.table.fixedColumns.createElement
***/
//{{{
var preSetTable = fixedColumns.setTable;
fixedColumns.setTable = function (twtable) {
var result = preSetTable.apply(this,arguments);
fixedColumns.dom.style.borderBottom =
twve.node.getBorder(twtable.dom,'bottom');
fixedColumns.dom.classList.remove(
twve.table.fixedRows.getClass()
);
fixedColumns.dom.classList.add(
twve.table.fixedColumns.getClass()
);
return result;
};
//}}}
/***
!!!!! End of fixedColumns
***/
//{{{
return twtable
? fixedColumns.setTable(twtable,null,nCols)
: fixedColumns;
}
};
}());
//}}}
/***
|editable|k
|''Name:''|twve.tablelarge|
|''Description:''|Large table support for twve, the ~TiddlyWiki View mode Editor|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.tablelarge.min / http://twve.tiddlyspace.com/#twve.tablelarge.min <br>* (regular) http://twve.tiddlyspot.com/#twve.tablelarge / http://twve.tiddlyspace.com/#twve.tablelarge|
|''Type:''|plugin|
|''Version:''|3.2.3|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery <br>2014/05/13 released 3.0.0 <br>2014/01/18 renamed to twve.tablelarge <br>2013/11/29 reformed <br>2013/06/02 released 2.0.0 <br>2013/05/24 separated from ~TWtid 1.6.4|
|''License:''|MIT|
|''Core Version:''|2.6.5|
|''Needs to have:''|twve.core, twve.table|
!!Options
Look for [[twve.table Options]] in the system Options panel.
***/
// @@display:none;
//{{{
"undefined"==typeof twve.table&&alert("twve.tablelarge: This plugin needs twve.table to function properly. Please install twve.table before this one.");version.extensions.twve.tablelarge={major:3,minor:2,revision:3,date:new Date("2015/03/23")};
merge(config.macros.twveTableOptions,{preInit:config.macros.twveTableOptions.init,init:function(){config.macros.twveTableOptions.preInit.apply(this);twve.table.preMouseDown=twve.tiddler.mouseDown;twve.tiddler.mouseDown=twve.table.mouseDown;twve.MathJax&&(twve.table.preAfterMath=twve.MathJax.afterMath,twve.MathJax.afterMath=twve.table.afterMath);void 0===config.options.txttwveTableFixRows&&(config.options.txttwveTableFixRows=void 0===config.options.txtTWtableFixRows?void 0===config.options.txtTWtidFixRows?
"0":config.options.txtTWtidFixRows:config.options.txtTWtableFixRows);void 0===config.options.txttwveTableFixCols&&(config.options.txttwveTableFixCols=void 0===config.options.txtTWtableFixCols?void 0===config.options.txtTWtidFixCols?"0":config.options.txtTWtidFixCols:config.options.txtTWtableFixCols);void 0===config.options.txttwveTableMaxWidth&&(config.options.txttwveTableMaxWidth=void 0===config.options.txtTWtableMaxWidth?void 0===config.options.txtTWtidMaxWidth?"100%":config.options.txtTWtidMaxWidth:
config.options.txtTWtableMaxWidth);void 0===config.options.txttwveTableMaxHeight&&(config.options.txttwveTableMaxHeight=void 0===config.options.txtTWtableMaxHeight?void 0===config.options.txtTWtidMaxHeight?"5000px":config.options.txtTWtidMaxHeight:config.options.txtTWtableMaxHeight);merge(config.optionsDesc,{txttwveTableFixRows:"(@@color:red;Unstable@@) Fix the first few rows. The number of first rows, including the header row, to fix at the top of table (so they do not scroll). Default is 0.",txttwveTableFixCols:"(@@color:red;Unstable@@) Fix the first few columns. The number of first columns to fix at the left side of table (so they do not scroll). Default is 0.",
txttwveTableMaxWidth:"Maximum view port width for tables. Wider tables are scrollable. Default is 100% of that of the parent element.",txttwveTableMaxHeight:"Maximum view port height for tables. Higher tables are scrollable. Default is 500px."});merge(config.macros.twveTableOptions.order,{txttwveTableFixRows:10,txttwveTableFixCols:11,txttwveTableMaxWidth:12,txttwveTableMaxHeight:13})}});
merge(twve.node,{getBorderWidth:function(b,a,c){c||(c=window.getComputedStyle(b));switch(a.charAt(0)){case "h":case "H":return a=(a=b.style.borderLeftWidth||c.getPropertyValue("border-left-width"))?parseInt(a):0,b=(b=b.style.borderRightWidth||c.getPropertyValue("border-right-width"))?parseInt(b):0,a+b;case "v":case "V":return a=(a=b.style.borderTopWidth||c.getPropertyValue("border-top-width"))?parseInt(a):0,b=(b=b.style.borderBottomWidth||c.getPropertyValue("border-bottom-width"))?parseInt(b):0,a+
b;case "l":case "L":return(a=b.style.borderLeftWidth||c.getPropertyValue("border-left-width"))?parseInt(a):0;case "t":case "T":return(a=b.style.borderTopWidth||c.getPropertyValue("border-top-width"))?parseInt(a):0;case "r":case "R":return(b=b.style.borderRightWidth||c.getPropertyValue("border-right-width"))?parseInt(b):0;case "b":case "B":return(b=b.style.borderBottomWidth||c.getPropertyValue("border-bottom-width"))?parseInt(b):0}return 0},getBorderStyle:function(b,a,c){c||(c=window.getComputedStyle(b));
switch(a.charAt(0)){case "l":case "L":return b.style.borderLeftStyle||c.getPropertyValue("border-left-style");case "t":case "T":return b.style.borderTopStyle||c.getPropertyValue("border-top-style");case "r":case "R":return b.style.borderRightStyle||c.getPropertyValue("border-right-style");case "b":case "B":return b.style.borderBottomStyle||c.getPropertyValue("border-bottom-style")}return 0},getBorderColor:function(b,a,c){c||(c=window.getComputedStyle(b));switch(a.charAt(0)){case "l":case "L":return b.style.borderLeftColor||
c.getPropertyValue("border-left-color");case "t":case "T":return b.style.borderTopColor||c.getPropertyValue("border-top-color");case "r":case "R":return b.style.borderRightColor||c.getPropertyValue("border-right-color");case "b":case "B":return b.style.borderBottomColor||c.getPropertyValue("border-bottom-color")}return 0},getBorder:function(b,a,c){c||(c=window.getComputedStyle(b));var e=twve.node.getBorderWidth(b,a,c)+"px",f=twve.node.getBorderStyle(b,a,c);b=twve.node.getBorderColor(b,a,c);return e+
" "+f+" "+b},copyBorder:function(b,a,c){c||(c=window.getComputedStyle(a));b.style.borderTop=twve.node.getBorder(a,"top",c);b.style.borderRight=twve.node.getBorder(a,"right",c);b.style.borderBottom=twve.node.getBorder(a,"bottom",c);b.style.borderLeft=twve.node.getBorder(a,"left",c);return b}});twve.span&&merge(twve.span,{preTwveSelector:twve.span.twveSelector,twveSelector:function(b){b=twve.span.preTwveSelector.apply(this,arguments);return b.excludeSelector("span[col],span[row]")}});
merge(twve.table,{preAfterMath:null,afterMath:function(b){var a=twve.table.findTable(b[1]);a&&!twve.node.closest(a,"div.board")&&twve.table.adjustFixedRows(a);twve.table.preAfterMath.apply(this,arguments)},preMouseDown:null,mouseDown:function(b){var a=twve.table.preMouseDown.apply(this,arguments);if(a&&a.classList.contains(twve.table.wrapper.class_tb)){var c=twve.tiddler.focusElem();if(c&&c.wrappers){var c=twve.node.box(c.wrappers.tb),e=twve.tiddler.mousePosition(b);if(e.x>=c.right||e.y>=c.bottom)twve.tiddler.down_elem=
a=null}}return a},wrapper_in_sync:null,sync_ndx:0,getScrollPosition:function(b){var a=twve.object.create();a.left=b.scrollLeft;a.top=b.scrollTop;a.leftRatio=b.scrollLeft/b.scrollWidth;a.topRatio=b.scrollTop/b.scrollHeight;return a},adjustFixedRows:function(b){var a=twve.table.getWrapper(b,"tb"),c=a.querySelector(twve.table.fixedRows.getSelector());c&&twve.table.fixedRows.adjust(b,a,c);(c=a.querySelector(twve.table.fixedColumns.getSelector()))&&twve.table.fixedRows.adjust(b,a,c)},preCreateLarge:twve.table.create,
create:function(b){var a=twve.table.preCreateLarge.apply(this);a.clear=function(){a.fixed_row=null;a.fixed_col=null;return a};var c=a.copyFrom;a.copyFrom=function(b){c.apply(this,arguments);a.fixed_row=b.fixed_row;a.fixed_col=b.fixed_col;return a};a.cellAtMouse=function(a){return twve.node.matches(a.target.parentNode,twve.table.fixedCell.getSelector())?a.target.parentNode:a.target};var e=a.is;a.is=function(a){return e.apply(this,arguments)||a&&twve.node.matches(a.parentNode,twve.table.fixedCell.getSelector())};
var f=a.isEditable;a.isEditable=function(b){var c=f.apply(this,arguments);if(!c){var d=twve.table.fixedCell.getSelector(),e=null;twve.node.matches(b,d)?e=b:(b=b.parentNode,twve.node.matches(b,d)&&(e=b));e&&(a.curNode=e,c=!0)}return c};var d=a.scrollIntoView;a.scrollIntoView=function(b){twve.node.matches(a.curNode,"th,td")&&(b=a.wrappers.tb);return d.call(this,b)};var n=a.editNeighbor;a.editNeighbor=function(){n.apply(this,arguments);a.scrollIntoView();return a};a.maxDim=function(){var b=a.direct_wrapper.dom;
twve.node.matches(b,twve.tiddlerSpan.twveSelector().include)&&(b=b.parentNode);var c=twve.object.create();c.width=twve.node.cssSize(config.options.txttwveTableMaxWidth,b);c.height=twve.node.cssSize(config.options.txttwveTableMaxHeight,b);return c};a.adjustDim=function(b){var c=a.maxDim(),d=twve.node.scrollBarWidth(a.wrappers.tb),e=!1;b.width+d>c.width?(b.height+=d,b.height>c.height?(b.height=c.height-d,b.width=c.width-d):b.width=c.width,e=!0):b.height+d>c.height&&(b.width+=d,b.width>c.width?(b.width=
c.width-d,b.height=c.height-d):b.height=c.height,e=!0);return e};a.oversize=function(b){if(!b)return a.dom.getAttribute("oversize");(b=a.adjustDim(b))?a.dom.setAttribute("oversize","true"):a.dom.removeAttribute("oversize");return b};a.getScrollPosition=function(){return twve.table.getScrollPosition(a.wrappers.tb)};a.setScrollPosition=function(b){var c=a.wrappers.tb;c.scrollLeft=b.leftRatio*c.scrollWidth;c.scrollTop=b.topRatio*c.scrollHeight;return b};a.getMargin=function(b){return twve.node.getMargin(a.dom,
b)-2};a.putFixedRows=function(b){b=a.wrappers.tb.scrollLeft;var c=a.wrappers.tb.scrollTop,d=null;a.fixedRows&&(d=window.getComputedStyle(a.dom),twve.node.setPosition(a.fixedRows.dom,a.dom.offsetLeft,a.dom.offsetTop+c-(1<c?twve.node.getMargin(a.dom,"top",d)+(config.browser.isIE?1:0):0)));a.fixedCols&&twve.node.setPosition(a.fixedCols.dom,a.dom.offsetLeft+b-(1<b?twve.node.getMargin(a.dom,"left",d):0),a.dom.offsetTop)};a.adjustFixedRows=function(){a.fixedRows&&twve.table.fixedRows.adjust(a.dom,a.wrappers.tb,
a.fixedRows.dom);a.fixedCols&&twve.table.fixedRows.adjust(a.dom,a.wrappers.tb,a.fixedCols.dom);return a};var m=null;a.wrapperResize=function(b,c){var d=a.wrappers,e=twve.table.getScrollPosition(d.tb);m.apply(this,arguments);if(a.oversize(d)){var f=0,h=0,g=a.maxDim(),n=twve.node.scrollBarWidth(a.wrappers.tb);d.width+n>=g.width?(b=(b||a.refbarV.getSize())+n,d.height+n<g.height?(c=(c||0)+a.getMargin("vertical")-1,f=-n):(h=c||0,c=0),twve.node.setDimension(d.cap,g.width-b),twve.node.setDimension(d.tb,
g.width-b,d.height-c)):d.height+n>=g.height&&(b||(b=0),f=-n,h=c||0,c=0,twve.node.setDimension(d.cap,d.width-b+f),twve.node.setDimension(d.tb,d.width-b+f+5,d.height));twve.node.setDimension(d.tbref,d.width+f+6,d.height+h);twve.node.setDimension(d.all,d.width+f+6,d.height+d.captionHeight()+h);a.setScrollPosition(e)}return d};a.scrolled=function(b){b=a.wrappers.tb;a.putRefBars(b.offsetLeft-b.scrollLeft,b.offsetTop-b.scrollTop);a.putFixedRows();if(!a.beingEdited()||!twve.node.matches(a.curNode,"th,td"))return a;
var c=twve.tiddler.getEditBox();if(c){var d=twve.node.box(twve.tiddler.cur_editable.getElement());b=d.left-(c[0].offsetLeft||c[0][0].offsetLeft)-1;for(var d=d.top-(c[0].offsetTop||c[0][0].offsetTop),e=0,f=c.length;e<f;e++)twve.node.shiftPosition(c[e],b,d);(c=twve.tiddler.getPreviewer())&&twve.node.shiftPosition(c,b,d)}return a};a.scroll=function(){var a=twve.tiddler.focusElem();if(a&&a.scrolled){var b=a.getScrollPosition();a.scrolled(b);if(!twve.table.wrapper_in_sync){twve.table.wrapper_in_sync=a.findWrappers();
for(var c=0,d=a.wrapper.length;c<d;c++){var e=a.renderedCopy(a.wrapper[c]);e&&e.setScrollPosition(b)}}++twve.table.sync_ndx==twve.table.wrapper_in_sync.length&&(twve.table.wrapper_in_sync=null,twve.table.sync_ndx=0)}};a.prepareFixedRows=function(){if(a.oversize()){a.wrappers.tb.addEventListener("scroll",a.scroll);var b=1*config.options.txttwveTableFixRows;a.fixedRows=0<b?twve.table.fixedRows.create(a,b):null;b=1*config.options.txttwveTableFixCols;a.fixedCols=0<b?twve.table.fixedColumns.create(a,b):
null;a.putFixedRows();a.adjustFixedRows()}else a.wrappers.tb.removeEventListener("scroll",a.scroll);return a};var g=a.blur;a.blur=function(){a.putFixedRows();return g.apply(this,arguments)};a.hijackWrapperResize=function(){a.wrappers.resize!=a.wrapperResize&&(m=a.wrappers.resize,a.wrappers.resize=a.wrapperResize);return a};var h=a.setElement;a.setElement=function(){h.apply(this,arguments);if(!a.wrappers)return a;a.hijackWrapperResize();a.prepareFixedRows();return a};var p=a.renderedCopy;a.renderedCopy=
function(){var a=p.apply(this,arguments);return a?a.hijackWrapperResize():null};var k=a.prepare;a.prepare=function(){if(!k.apply(this,arguments))return!1;a.prepareFixedRows();return!0};var l=a.refreshSelf;a.refreshSelf=function(){var b=a.getScrollPosition();l.apply(this,arguments);a.setScrollPosition(b);return a};var q=a.editText;a.editText=function(b){var c=a.curNode;if(c&&twve.node.matches(c,twve.table.fixedCell.getSelector())){var d=twve.table.cellPos(a.tiddler.text,a.start,a.end,twve.table.cellRowIndex(c),
twve.table.cellColIndex(c),twve.table.cellSpans(c));a.curNode=null;return q.call(this,b,a.getCellText(d),c)}return q.apply(this,arguments)};return a.created(b)}});
twve.table.fixedCell={getClass:function(){return"twveTfixedCell"},getSelector:function(){return"div."+twve.table.fixedCell.getClass()},adjust:function(b,a,c,e,f){c=window.getComputedStyle(a);var d=twve.node.getPadding(a,"left",c),n=twve.node.getPadding(a,"top",c);twve.node.getPadding(a,"right",c);var m=twve.node.getPadding(a,"bottom",c);twve.node.setPosition(b,a.offsetLeft+(-(config.browser.isOpera||config.browser.isChrome?0:d)+(config.browser.firefoxDate?1:0)-e),a.offsetTop+((config.browser.isIE||
config.browser.firefoxDate?-n:0)-f));e=a.clientWidth;a=a.clientHeight;twve.node.setDimension(b,e,a+m);b=b.firstChild;m=d;f=n;twve.node.setPosition(b,m,f);var g=c.getPropertyValue("text-align");-1<g.indexOf("center")?m=(e-b.offsetWidth)/2-d:-1<g.indexOf("right")&&(m=e-b.offsetWidth-d);g=c.getPropertyValue("vertical-align");-1<g.indexOf("middle")?f=(a-b.offsetHeight)/2:-1<g.indexOf("bottom")&&(f=a-b.offsetHeight);(m>d||f>n)&&twve.node.setPosition(b,m,f)},create:function(b,a,c,e,f){if(f)d=twve.node.create(b);
else{var d=twve.node.create("div");d.dom.classList.add(twve.table.fixedCell.getClass());d.dom.appendChild(document.createElement("span"));d.dom.style.position="absolute";d.dom.firstChild.style.position="absolute";d.dom.style.display="table-cell"}d.setTableCell=function(a,b,c,e){var f=window.getComputedStyle(a);e=d.dom;twve.node.copyMargin(e,a,f);twve.node.copyBorder(e,a,f);"0px"==e.style.borderLeftWidth&&(e.style.borderLeftWidth="1px");"0px"==e.style.borderRightWidth&&(e.style.borderRightWidth="1px");
twve.node.copyFontColor(e,a,0==b);a.classList.contains("noedit")&&e.classList.add("noedit");e.setAttribute("col",c);(c=a.getAttribute("rowspan"))&&e.setAttribute("rowspan",c);(c=a.getAttribute("colspan"))&&e.setAttribute("colspan",c);e=e.firstChild;e.innerHTML=a.innerHTML;0==b&&twve.table.sortingEnabled()&&(a=e.querySelector("span"))&&a.classList.contains("hidden")&&twve.node.hide(a);return d};return f?d:d.setTableCell(b,a,c,e)}};
twve.table.fixedRow={getClass:function(){return"twveTfixedRow"},getSelector:function(){return"div."+twve.table.fixedRow.getClass()},adjust:function(b,a,c,e){var f=b.querySelectorAll(twve.table.fixedCell.getSelector());twve.node.setPosition(b,a.offsetLeft,a.offsetTop-(config.browser.isIE?0:0<c?1:0));b=a.querySelectorAll("th,td");c=0;for(var d=f.length;c<d;c++)twve.table.fixedCell.adjust(f[c],b[c],e,a.offsetLeft,a.offsetTop)},create:function(b,a,c,e,f){var d;f?d=twve.node.create(b):(d=twve.node.create("div"),
d.dom.classList.add(twve.table.fixedRow.getClass()),d.dom.style.position="absolute",d.dom.style.display="inline-block");d.cells=[];d.setTableRow=function(a,b,c,e,f){var k;if(f){k=a.querySelectorAll(twve.table.fixedCell.getSelector());c=k.length;d.cells.length=c;for(var l=0;l<c;l++)d.cells[l]=twve.table.fixedCell.create(k[l],b,l,e,f)}else{k=window.getComputedStyle(a);twve.node.copyMargin(d.dom,a,k);twve.node.copyBorder(d.dom,a,k);twve.node.copyPadding(d.dom,a,k);d.dom.style.backgroundColor=twve.node.bgc(a,
k);d.dom.setAttribute("row",b);k=a.querySelectorAll("th,td");if(!c||c>k.length)c=k.length;d.cells.length=c;for(var q=0,l=0;l<c;l++)d.cells[l]=twve.table.fixedCell.create(k[l],b,l,e,f),q+=k[l].offsetWidth,d.dom.appendChild(d.cells[l].dom);twve.node.setDimension(d.dom,q,a.clientHeight)}return d};return d.setTableRow(b,a,c,e,f)}};
twve.table.fixedRows={getClass:function(){return"twveTfixedRows"},getSelector:function(){return"div."+twve.table.fixedRows.getClass()},adjust:function(b,a,c){c=c.querySelectorAll(twve.table.fixedRow.getSelector());a=twve.table.getScrollPosition(a||twve.table.getWrapper(b,"tb"));b=b.querySelectorAll("tr");for(var e=0,f=c.length;e<f;e++)twve.table.fixedRow.adjust(c[e],b[e],e,a)},create:function(b,a,c){var e=twve.node.create();e.rows=[];e.setTable=function(a,b,c){if(!a.oversize())return e;var m=a.getScrollPosition(),
g=a.wrappers,h=g.tb.querySelector(twve.table.fixedRows.getSelector());if(h){e.dom=h;g=h.querySelectorAll(twve.table.fixedRow.getSelector());e.rows.length=g.length;b=0;for(var p=e.rows.length;b<p;b++)e.rows[b]=twve.table.fixedRow.create(g[b],b,c,m,!0)}else{e.dom=h=document.createElement("div");h.classList.add(twve.table.fixedRows.getClass());h.style.position="absolute";h.style.overflow="hidden";p=window.getComputedStyle(a.dom);h.style.borderTop=twve.node.getBorder(a.dom,"top",p);h.style.borderLeft=
twve.node.getBorder(a.dom,"left",p);h.style.borderRight=twve.node.getBorder(a.dom,"right",p);h.style.borderBottom=twve.node.getBorder(a.dom,"bottom",p);g.tb.appendChild(h);var g=a.dom.querySelectorAll("tr"),p=e.rows.length=0<b?b:g.length,k=0;for(b=0;b<p;b++)e.rows[b]=twve.table.fixedRow.create(g[b],b,c,m),h.appendChild(e.rows[b].dom),k+=g[b].offsetHeight;twve.node.setDimension(h,a.dom.clientWidth,k)}a.scrolled(m);return e};return b?e.setTable(b,a,c):e}};
twve.table.fixedColumns={getClass:function(){return"twveTfixedColumn"},getSelector:function(){return"div."+twve.table.fixedColumns.getClass()},create:function(b,a){var c=twve.table.fixedRows.create(),e=c.setTable;c.setTable=function(a){var b=e.apply(this,arguments);c.dom.style.borderBottom=twve.node.getBorder(a.dom,"bottom");c.dom.classList.remove(twve.table.fixedRows.getClass());c.dom.classList.add(twve.table.fixedColumns.getClass());return b};return b?c.setTable(b,null,a):c}};
//}}}
// @@
This tiddler gives detailed information about the ''twve.tags'', an object representing wiki tags in ~TiddlyWiki.
/***
|editable|k
|''Name:''|twve.tcalc|
|''Description:''|A simple table calculator (spreadsheet) for ~TiddlyWiki|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.tcalc.min / http://twve.tiddlyspace.com/#twve.tcalc.min <br>* (regular) http://twve.tiddlyspot.com/#twve.tcalc / http://twve.tiddlyspace.com/#twve.tcalc|
|''Type:''|plugin|
|''Version:''|3.2.6|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery<br>2014/05/13 released 3.0.0 <br>2013/11/29 reformed <br>2013/06/02 released 1.0.0<br>2012/10/19 released 0.7.0<br>2012/09/04 started from ~TableCalculator 0.6.14|
|''License:''|MIT|
|''Core Version:''|2.7.0|
|''Needs to have:''|twve.core, twve.table|
!!Features
* Calculate numeric values in table cells.
* Cell references follow the ~OpenOffice.calc/Excel syntax.
** Column index starts from """A""" and ends at """ZZ""".
** Row index starts from 0 and has virtually no upper limit.
* ''Auto adjustment of cell references upon''
** __insertion/deletion of rows/columns__;
** __sorting with SortableGridPlugin or TableSortingPlugin__.
*** Block references such as """C4:H10""" are auto-adjusted only upon insertion/deletion of rows/columns, NOT upon sorting.
* Support several forms of decimal mark and thousands separation.
* Support user-defined functions written in Javascript.
** To define your own functions, see [[twve.tcalc--Defining your own functions]] or [[External link of that tiddler|http://twtable.tiddlyspace.com/#%5B%5BTWVE.tcalc--Defining%20your%20own%20functions%5D%5D]] for details.
** Several pre-defined functions are listed in section """Usage""" below.
!!Usage
* Add class """spreadsheet""" to a table to activate calculations on that table, or check the option """chktwveTcalcAllTables""" to activate calculations on all tables.
* At the cell to store calculation results, __starts with an equal sign """="""__, as in ~OpenOffice.calc or Excel, followed by cell references/Javascript expressions/user-defined functions for calculation. For example,
** """=Math.sqrt(3)""" and """=Math.cos(Math.PI)""" are valid Javascript statements;
** """=A3+B4""" and """=sum(A6:D10)""" are ~OpenOffice.calc/Excel-like expressions.
** See below for a brief list of user-defined functions.
** @@color:red;Starting v3.0.0 this plugin relaxes the """starts with an equal sign""" requirement and supports """in-text calculations""".@@
* @@color:blue;Cells for calculation can be specified in one of the following formats:@@
** """func(A3:H6)""": calculate over a block of consecutive cells
** """func(B3, H5, AC9,...)""": calculate over separated individual cells
** """func(AA3:CD5, B5, Z7...)""": a mixture of the two cases
* Use the following options to specify the decimal mark and thousands separation.
** Option txtTWVEtcalcDecimalMark specifies the default decimal mark.
** Option txtTWVEtcalcThousandSeparator specifies the default thousands separator.
** Option chktwveTcalcThousandSeparated toggles application of thousands separation.
* Pre-defined functions now include:
** sum
*** calculates the sum of cells
** product
*** calculates the product of cells
** average/mean
*** calculates the average value of cells
** count
*** counts the number of __numeric__ cells
*** supports conditional counting, see revision
**** Syntax: """=COUNT([condition], cell references)"""
***** condition is optional and if given must be quoted with single or double quotes
***** use the percentage symbol """%""" as a placeholder for the values to test
**** Example, """=COUNT('%>60 && %<70', A1:A90)""" returns the number of numerical values greater than 60 and less than 70 among cells between A1 and A90, inclusively.
** counta
*** counts the number of __non-empty__ cells
** concat
*** joins the contents of cells
** isNumeric
*** tests whether a cell contains a numerical expression
** today()/now()
*** Current date and time. See Javascript references for details.
** days(date1, date2, num_dec)
*** Number of days (and time) from date1 to date2. The 3^^rd^^ argument num_dec specifies the number of digits after decimal point.
**** If the 3^^rd^^ argument is given, this function returns """number of days""" such as """3.2""", with the number of digits after decimal point matching the 3^^rd^^ argument.
**** If the 3^^rd^^ argument is missing, the function returns days and time difference, such as """1D 00:10:05""".
** round(value, num_dec)
*** Returns the rounded result of value, up to num_dec digits after decimal point raised to the nth power.
** exp / ln / log10 / log
*** Returns the exponential / natural logarithm / base-10 logarithm / arbitrary based logarithm of a number.
** random(factor)
*** Returns a random number between 0 and factor, if factor is given. Otherwise returns a random number between 0 and 1.
** column/col
*** Returns the column index (number). Without an argument this function returns the index of the current column, with a cell reference as its argument, such as COLUMN(~AX3)/COL(~AX3), it returns the column index of that cell.
** columna/cola
*** Returns the column reference (letter). Without an argument this function returns the reference of the current column, with a cell reference as its argument, such as COLUMN(~AX3)/COL(~AX3), it returns the column reference of that cell.
** stderr/stdev
*** Calculates the standard deviation of a set of numbers. @@color:red;This function is not yet fully tested.@@
** if(condition, statement_if_true, statement_if_false)
*** Works the same way as the IF() function in MS Excel, except that the statements can include wiki style text.
**** For example, IF ($G1>=F1, color:blue;$~G1-F1, color:red;$~G1-F1) results in a @@color:blue;positive@@ or a @@color:red;negative@@ value of """|$G1-F1|""".
!!Options
Look for [[twve.tcalc Options]] in the Options Panel.
!!Example
[[twve.tcalc Examples]]
!!ToDo
!!!Revision history
!!!! 2016/04/30 [3.2.6]
* Added a simple parser to carry out the calculations.
** Now the use of """eval()""" is restricted to only JS Math functions.
** This parser currently handles only simple comparison and logical operations, though it carries out commonly seen math calculations.
** This parser supports conditional assignment through the ternary operator {{{?:}}}.
* Saves options in SystemSettings tiddler.
** If you disable autoSave option, you will need to manually save the tiddler after changing a ''twve'' option.
* Starts using strict mode.
* Added function
** TRIM() -- """=TRIM(B3[,how])""" will remove the leading and/or ending white spaces of the content in cell B3. The optional argument, if given, can be either "LEFT", "RIGHT", or "BOTH". It is assumed "BOTH" if missing.
** DAYOFWEEK(date) -- Returns a number from 0 (Sun) to 6 (Sat), indicating the day of week of a given date.
* Modified internal data structure.
* Bug fix
** for exchanging """row()""" and """col()""" functions after transposition;
** for Chinese date string handling with IE;
** for expression parser.
!!!! 2015/11/06 [3.2.5]
* Added functions
** CELL(row,col) -- retrieves the content of a table cell at (row, col), where row is the 0-based index of a table row, col is either the 0-based column index or its letter representation.
** LEFT(source,len) -- extracts the left part of a string.
** MID(source,start,len) -- extracts the middle part of a string.
** RIGHT(source,len) -- extracts the right part of a string.
** SUMCOL([col[,how]]) -- sums up numerical values in the column with index col (this column if omitted), excluding the cell containing this formula. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** SUMROW([row[,how]]) -- sums up numerical values in the row with index row (this row if omitted), excluding the cell containing this formula. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** SUMCOLWITH([COL[,preceding[,following[,how]]]]) -- sums up numerical values in the column with index col (this column if omitted), excluding the cell containing this formula, with signature text immediately preceding and/or following the value. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** SUMROWWITH([ROW[,preceding[,following[,how]]]]) -- sums up numerical values in the row with index row (this row if omitted), excluding the cell containing this formula, with optional signature text immediately preceding and/or following the value. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTCOL([col[,how]]) -- count the number of numerical values in the column with index col (this column if omitted), excluding this cell. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTROW([row[,how]]) -- count the number of numerical values in the row with index row (this row if omitted), excluding this cell. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTCOLA([col[,how]) -- count the number of non-empty values in the column with index col (this column if omitted), excluding this cell. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.
** COUNTROWA([row[,how]]) -- count the number of non-empty values in the row with index row (this row if omitted), excluding this cell. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.
** DATEADD(date,dy,dm,dd[,format])
*** Calculate a new date shifted by dy/dm/dd with respect to date.
*** date must be given.
*** At least one of the (dy, dm, dd) must be specified.
*** Optional format can be given in the usual way, such as mm/dd, yy/mm/dd, yyyy/mm/dd, etc.
** DATE(y,m,d[,format])
*** Specify a date of y/m/d.
*** At least one of the (y, m, d) must be specified, missing one(s) are taken as the corresponding part(s) of today.
**** For example, if year is missing while month and date are given, the year part will be taken as this year.
*** Optional format can be given in the usual way, such as mm/dd, yy/mm/dd, yyyy/mm/dd, etc.
* Changed the reference auto-adjustment behavior upon cut-and-pasting.
** Previously this plugin automatically adjusts the cell reference upon all cases of cut-and-pasting, partial or total cut. Now it adjusts the reference only upon a total cut-and-pasting.
*** A total cut means the source cell has been emptied, nothing is left behind, while a partial cut leaves something in the source cell.
* Merged some codes shared between functions.
* Bug fix
** for finding the correct reference of a column spanned cell;
** for evaluation of function arguments;
** for specifying style text in the function arguments;
** for minor stuffs.
!!!! 2015/06/15 [3.2.4]
* Supports cross table calculations.
** """Table0!A1""" refers to the cell """A1""" in the table with index """0""" (the first table in the tiddler).
* Added support for parts-per notations, such as
** % (1/100), ‰ (1/1000)
** ppm (1/1e6), ppb (1/1e9), ppt (1/1e12), ppq (1/1e15)
* Added support for time addition/subtraction in the format of hh:mm:ss or hh:mm or mm:ss.
** One can now easily calculate the sum or difference of times.
*** For example, ```=07:21-07:14``` will give the result of ```00:07```, while ```=07:21+9``` will give the result ```07:30```.
** Mixing time strings with different lengths is possible.
*** For example, both ```=07:21:35 + 01:02``` and its reversed expression ```01:02 + 07:21:35``` yield the same result ```07:22:37```.
** When only two parts are present, it could mean hh:mm or mm:ss. This function does not assume which case, it simply returns an array of two numbers and leaves it to the caller function to decide.
* Added function
** LENGTH/LEN(cell) -- Returns the content length (in characters) in a table cell.
** VALUE/VAL(cell,n) -- Returns the nth numerical value in a table cell.
*** Numerical digits separated by any number of non-numerals are considered different values, unless 1) thousands separation rules are applied, and 2) those non-numerals are valid thousands separators.
** VALUEWITH/VALWITH(cell,preceding[,following]) -- Returns in a table cell the first numerical value that matches one of the following situations:
*** If only preceding is given, those immediately preceded by preceding;
*** If only following is given, those immediately followed by following;
*** If both preceding and following are given, those immediately preceded by the preceding and immediately followed by the following.
** SUMIN(cell[,n1,n2,...]) -- Sum up in a table cell all or part of the numerical values, if there are more than one. See description in the definition for more details.
** SUMWITH(cell,preceding[,following]) -- Sum up in a table cell all the numerical values that match one of the following situations:
*** If only preceding is given, those immediately preceded by preceding;
*** If only following is given, those immediately followed by following;
*** If both preceding and following are given, those immediately preceded by the preceding and immediately followed by the following.
** DOT (cell1, cell2) -- dot product of two cells, each of which must contain a vector of the form (v1, v2, v3, ...).
* Bug fix
** for nested function calls;
*** Wrap the function stored data into a "data" property of that function.
*** Push the function data onto a call stack before evaluating its arguments (during which nested calls may happen), and pop it back afterwards.
** for multiplications.
!!!! 2015/03/23 [3.2.3]
* Added functions
** COMBIN(n,k) that calculates the number of combination (in any order) of choosing k objects out of a set of n objects.
** AND(condtion1, condition2[, condition3, ...]) that performs logical AND operations. There must be at least two arguments for such operations.
** OR(condtion1, condition2[, condition3, ...]) that performs logical OR operations. There must be at least two arguments for such operations (although practically one argument should do as well).
** XOR(condtion1, condition2) that performs logical XOR operations. There must be exactly two arguments for such operations.
* Bug fix
** for evaluating scientific expressions;
** for reference adjustment upon cut-and-pasting (copy-and-pasting is fine);
** for whole table recalculation with cells referring to a later cell;
*** The calculation codes follow the order of cell indexes: from top-left to bottom-right in a left-right and up-down manner. A later cell is one that is to the right in the same row, or in a row below the current cell. Since a later cell is recalculated after the current one, its content may not be updated in time to give the correct results. This version fixed such cases.
** for more precise function name identification.
!!!! 2015/02/13 [3.2.2]
* Replaced regular expression with string operations whenever easy, hoping to save some time.
* Disabled the current version of partial recalculation codes.
** It happens, in some extreme cases, that this version can be 50 times slower than a whole table recalculation.
* Bug fix
** for handling expressions of nested parentheses;
** for visually consistent cell references with spanned cells;
*** Some of the calculation codes are not using the visually consistent cell references, fixed in this version.
**** The cell references -- indexes of table cells -- are not consistent with what we see when there are spanned cells, which can easily cause confusion to the users when writing a calculation expression referring to a spanned cell.
** for correct reference adjustment upon insertion/deletion of rows/columns;
** for THISWEEK function to correctly test a week including the end of a year and the beginning of the next;
** for retrieving multi-lined cell content.
!!!! 2014/12/22 [3.2.1]
* Defined new functions
** THISWEEK(date or date1~date2) -- beta
*** This function tests if a given date is in this week, or a range of dates is partly or fully in this week.
*** This is designed for a schedule table that has its rows as the weeks over a period of time. This function can be used to mark the week (the row) that includes today.
** THISDAYOFWEEK(day_of_week) -- beta
*** This function tests if a given day of week is the same as that of today.
*** This is designed for a schedule table that has its columns as the days of week. This function can be used to mark the day of week (the column) that matches today.
** THISHOUR(time or time1~time2) -- beta
*** This function tests if a given time is of the same hour as now.
*** This is designed for a schedule table that has its rows as the hours of day. This function can be used to mark the hour of day (the row) that matches now.
** MONTHS(date1,date2) -- beta
*** This functions calculates the difference in months between two dates.
* Modified existing functions
** DAYS(date1,date2)
*** This function was defined long time ago, which calculated the difference in days between two dates. Now it is modified to include the time difference between the two dates.
!!!! 2014/11/21 [3.2.0]
* Removed jQuery dependencies for migrating to ~TW5.
** Could be incompatible with earlier browsers.
* Possible to mix Javascript Math functions and ''twve.tcalc'' functions.
** For example, {{{=Math.sqrt(random())}}} is using the result of a ''twve.tcalc'' function {{{random()}}} as the argument of a JS math function {{{Math.sqrt()}}}. Or we can do the opposite, {{{=sqrt(Math.random())}}}.
* Better in-text calculations: (@@color:red;Experimental!@@)
** the assignment sign can be anywhere in the text;
** it is possible to calculate multiple expressions in one piece of text.
*** For example, if a table cell contains the text {{{Group A is =50+40 and group B is =70+60}}}, which has two expressions, namely {{{=50+40}}} and {{{=70+60}}}. They will both be evaluated (separately) and the result would be @@color:blue;Group A is 90 and group B is 130.@@
* Bug fixes
** for arithmetic expressions including empty cells.
!!!! 2014/08/03 [3.1.0]
* Started to remove jQuery dependencies for migrating to TW5.
!!!! 2014/06/01 [3.0.3]
* Added function
** COUNTDOWN(//start//[,//end//[,//interval//]]) -- Counting down from //start// (optional), and stops at //end// (optional), at //interval// (optional).
*** The //start// can be a number, a date string, a text string, or a function.
**** For numbers and date strings the countdown works as we do in the New Year's Eve.
**** For text strings, the countdown works as numbers except that the result is interpreted as characters again.
**** For text strings it works as an array of characters, the countdown takes one character at a time, starting from the last one, treat it as a number and counts down, and moves to its previous neighbor when it reaches the ASCII 0.
**** For functions they should return one of the above types to start with.
*** The //end// (optional), if given, should be of the same type as //start//. If omitted, however, the countdown stops at 0 (number), now (date), or empty (string).
*** The //interval// (optional), if given, is a number to specify the step of countdown. It should be of the same type as //start//.
**** For numbers, characters and string, this should be a numerical value. Default to 1 when omitted.
**** For dates, this should be a time interval specified either as a number (in seconds), or as a string in the format HH:MM:SS.sss. Default to 1 second if omitted.
!!!! 2014/05/23 [3.0.2]
* Bug fix
** for re-calculation of Javascript built-in functions.
* Added functions
** EXP -- exponential
** LN -- natural logarithm (base e=2.71828...);
** LOG10 -- base-10 logarithm;
** LOG -- logarithm of an arbitrary base.
!!!! 2014/05/14 [3.0.1]
* Fixed a small bug that stops calculations when the tiddler is just loaded.
!!!! 2014/05/13 [3.0.0]
* New features
** Output of {{{DAYS()}}} function now includes days and time.
** @@color:blue:;Timers for periodic recalculations.@@
*** Functions such as {{{DAYS()}}} may be good to invoke in a periodic manner.
* @@color:red;Experimental feature@@
** @@color:blue;In-text calculations in a table cell@@
** Check/Uncheck option <<option chktwveTcalcInTextCalc>> to enable/disable this feature.
*** Previous versions require a table cell to start with an equal sign (=) if it contains formulas to calculate. Starting v3.0.0 this plugin relaxes the requirement and supports in-text calculations: the formulas can be anywhere within the cell content (still they need to start with an equal sign). For example,
**** This content {{{5000 INR (=round(5000*0.48) NTD)}}} generates this output {{{5000 INR (2400 NTD)}}} in a table cell, the formula {{{=round(5000*0.48)}}} would be evaluated to produce {{{2400}}}.
* Added {{{MAX}}}, {{{MIN}}}, and {{{SQRT}}} functions.
* Bug fixes
** for partial re-calculation;
*** virtually unlimited levels of implicit cell reference
*** block references (A1:C4, for example) now included in partial re-calculation
** for re-calculation upon table transposition
** for locating the correct cell when there are column-spanned cells;
*** A column-spanned cell is logically one single cell but physically occupies more than one columns in a table. Special care needs to be taken to find the correct content;
** for retaining cell alignment after function evaluation;
** for conditional {{{COUNT}}} function.
!!!! 2014/01/18
* Collected from [[TWtcalc|http://twtable.tiddlyspace.com/#TWtcalc.1.0.10]], adapted to the new code structure.
!!!! 2013/12/xx [1.0.10]
* Bug fixes
** for table calculations in the previewer;
** for reference adjustment upon sorting.
*** This turns out to be the most time-consuming part in the sorting process. Should think of some way to improve.
!!!! For earlier history please see [[TWtcalc.1.0.10]] or [[its external link|http://twtable.tiddlyspace.com/#TWtcalc.1.0.10]].
!!Code
!!!The very beginning
***/
//{{{
(function(){
"use strict";
if ( typeof twve.table == 'undefined' ) {
alert('twve.tcalc: This plugin needs twve.table to function properly. Please install twve.table before this one.');
}
//}}}
/***
!!! Version information
***/
//{{{
version.extensions.twve.tcalc = {
major: 3, minor: 2, revision: 6,
date: new Date('2016/04/30')
};
//}}}
/***
!!! Macro for initialization and option settings.
***/
//{{{
config.macros.twveTcalcOptions = {
init : function () {
// twve.tiddler methods
twve.tcalc.preReadOnly = twve.tiddler.readOnly;
twve.tiddler.readOnly = twve.tcalc.readOnly;
twve.tcalc.preGetOptionsMenu = twve.tiddler.getOptionsMenu;
twve.tiddler.getOptionsMenu = twve.tcalc.getOptionsMenu;
// twve.node methods
twve.tcalc.preWikify = twve.node.wikify;
twve.node.wikify = twve.tcalc.wikify;
// twve.table methods
twve.tcalc.preGetTableMenu = twve.table.getTableMenu;
twve.table.getTableMenu = twve.tcalc.getTableMenu;
twve.tcalc.preTableCreate = twve.table.create;
twve.table.create = twve.tcalc.tableCreate;
twve.table.colRef = twve.tcalc.colRef;
// twve.wrapper methods
twve.tcalc.prePrepareElements = twve.wrapper.prepareElements;
twve.wrapper.prepareElements = twve.tcalc.prepareElements;
twve.checkOption(
'chktwveTcalcEnabled',
(config.options.chkTWtcalcEnabled || true)+''
);
twve.checkOption(
'chktwveTcalcAllTables',
(config.options.chkTWtcalcAllTables || false)+''
);
twve.checkOption('chktwveTcalcInTextCalc','false');
twve.checkOption(
'chktwveTcalcThousandSeparated',
(config.options.chkTWtcalcThousandSeparated ||
config.options.chkTCalcThousandSeparated || false)+''
);
twve.checkOption(
'txttwveTcalcThousandSeparator',
(config.options.txtTWtcalcThousandSeparator ||
config.options.txtTCalcThousandSeparator || ',')
);
twve.checkOption(
'txttwveTcalcDecimalMark',
(config.options.txtTWtcalcDecimalMark ||
config.options.txtTCalcDecimalMark || '.')
);
twve.checkOption(
'chktwveTcalcDebugMode',
(config.options.chkTWtcalcDebugMode ||
config.options.chkTCalcDebugMode || false)
);
merge(config.optionsDesc,{
chktwveTcalcEnabled:"Enable ''twve.tcalc''",
chktwveTcalcAllTables:'Calculate all tables. Otherwise only calculate tables with class "spreadsheet"',
chktwveTcalcInTextCalc:'(@@color:red;Experimental@@) In text calculation. There can be multiple expressions in a statement.',
chktwveTcalcThousandSeparated:'Apply thousands separation on numerical results. Default is false.',
txttwveTcalcThousandSeparator:'Thousand separator. Default is comma (,).',
txttwveTcalcDecimalMark:'Decimal mark. Default is period (.).',
chktwveTcalcDebugMode:'Enter debug mode to show error/exception messages. Default is false.'
});
// Register editable elements
if (twve.span)
twve.tiddler.registerElement(twve.span.tcalc);
// prepare options panel
var optionsTitle = 'twve.tcalc Options';
var txt = config.shadowTiddlers['OptionsPanel'];
var twvecoreopt = '[[twve.core Options';
var p = txt.indexOf(twvecoreopt);
if ( p >= 0 ) {
p = txt.indexOf(']]\n',p+2)+3;
config.shadowTiddlers['OptionsPanel']=
txt.substring(0,p)
+'[['+optionsTitle+'|'+optionsTitle+']]\n'
+txt.substring(p);
}
merge(config.shadowTiddlers,{
'twve.tcalc Options':'<<twveTcalcOptions>>'
});
},
order : {
chktwveTcalcEnabled:0,
chktwveTcalcAllTables:1,
chktwveTcalcThousandSeparated:2,
txttwveTcalcThousandSeparator:3,
txttwveTcalcDecimalMark:4,
chktwveTcalcDebugMode:5
},
handler : function(place) {
// Collect all the twve.tcalc options for users to play with.
config.macros.twveCoreOptions.showOptionsTable(
place,
"''twve.tcalc'' Options",
'twveTcalc',
config.macros.twveTcalcOptions.order
);
}
};
//}}}
/***
!!! twve.tags.nested
***/
//{{{
if ( twve.tags.nested === undefined )
twve.tags.nested = {
//}}}
/***
!!!! twve.tags.nested.matchedCloseTag
***/
//{{{
matchedCloseTag : function(txt,start,open,close){
if ( typeof start === 'number' ) {
start = twve.position.create(start);
if ( typeof open ==='string' )
start.matched = open;
} else if ( start.ndx === undefined ) {
start = twve.position.create(0);
if ( typeof open ==='string' )
start.matched = open;
}
return twve.tags.nested.create(open,close)
.matchedCloseTag(txt,start);
},
//}}}
/***
!!!! twve.tags.nested.create
***/
//{{{
create : function(src,close){
var tags = twve.tags.create(src,close);
// clone
tags.clone = function(){
// Required, for this object has no markupTags() method.
return twve.tags.nested.create();
};
//}}}
/***
!!!!! tags.matchedCloseTag
***/
//{{{
tags.matchedCloseTag = function(txt,start){
var remained = 1;
var txtlen = txt.length;
var end = twve.position.create(start.ndx);
do {
// Look for next closing tag.
end = twve.text.indexOf(txt,tags.close,end);
if ( end.ndx == -1 )
// No more closing tags, do the last search.
return tags.lastCloseTag(txt,end,txtlen);
// Look for next opening tag.
start = twve.text.indexOf(txt,tags.open,start);
if ( start.ndx == -1 ) {
// No more opening but still closing tags.
// Check for remaining closing tags.
start.ndx = end.ndx;
do {
if ( --remained == 0 ) return end;
end.ndx += end.matched.length;
end = twve.text.indexOf(txt,tags.close,end);
if ( end.ndx == -1 )
// No more closing tags, do the last search.
return tags.lastCloseTag(txt,end,txtlen);
} while ( true );
}
if ( end.ndx == start.ndx ) {
if ( --remained == 0 ) {
// This situation is possible for elements that
// must start from the beginning of a line and
// end at a line break, such as list items.
return end;
}
start.ndx += start.matched.length;
end.ndx += end.matched.length;
} else if ( end.ndx < start.ndx ) {
// The next closing tag is before the next opening tag.
do {
// If this closing tag is the matched one, return
// its position info.
if ( --remained == 0 ) return end;
// Otherwise look for all closing tags before the
// next opening tag.
end.ndx += end.matched.length;
end = twve.text.indexOf(txt,tags.close,end);
if ( end.ndx == -1 )
// No more closing tags, do the last search.
return tags.lastCloseTag(txt,end,txtlen);
} while ( end.ndx < start.ndx );
// The matched closing tag is not found yet, add one
// more and go on.
++remained;
start.ndx += start.matched.length;
end.ndx = start.ndx;
} else { // end.ndx > start.ndx
// The next opening tag is before the next closing
// tag. Look for all opening tags before the next
// closing tag.
do {
++remained;
start.ndx += start.matched.length;
start = twve.text.indexOf(txt,tags.open,start);
} while ( start.ndx > -1 && start.ndx < end.ndx );
--remained;
end.ndx += end.matched.length;
start.ndx = end.ndx;
}
} while (true);
};
//}}}
/***
!!!!! End of tags
***/
//{{{
return tags;
}
};
//}}}
/***
!!! twve.url
***/
//{{{
twve.url = {
//}}}
/***
!!!! twve.url.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
['http://', 'https://', 'ftp://', 'file://'],
['[[', ']]', ', ', '. ', ' ']
);
// clone
tags.clone = function(){
return twve.url.markupTags();
};
// exactCloseTag
tags.exactCloseTag = function(){
return tags;
};
/*
// encloses
var preEncloses = tags.encloses;
tags.encloses = function(txt,ndx,start,end){
var close = preEncloses.apply(this,arguments);
if ( ! close ) {
var last = end ? end.ndx : txt.length;
var ch = txt.charAt(last-1);
switch(ch){
case '.' :
case ',' :
return twve.position.create(last,ch);
}
}
return close;
};
*/
/*
// locateNext
tags.locateNext = function(txt,start,end){
tags.exgopen.lastIndex = start.ndx;
var match = tags.exgopen.exec(txt);
if ( match ) {
start.ndx = match.index;
start.matched = match[0];
end.ndx = match.index+match[0].length;
tags.exgclose.lastIndex = end.ndx;
match = tags.exgclose.exec(txt);
if ( match ) {
end.ndx += match[0].length;
end.matched = match[0];
}
return true;
} else {
start.ndx = -1; start.matched = '';
end.ndx = -1; end.matched = '';
return false;
}
};
*/
/*
// encloses
var preEncloses = tags.encloses;
tags.encloses = function(txt,ndx,start,end){
if ( twve.core ) return preEncloses.apply(this,arguments);
tags.exgopen = /\b(http|https|file):\/{2,3}/ig;
tags.exgclose = /(\[\[|\]\]|\b)/ig; // for TiddlyWiki syntax
// tags.exgclose = /(\S*)\b/ig // for regular HTML syntax
start = twve.position.create(start || 0);
end = twve.position.create(end || txt.length);
while ( tags.locateNext(txt,start,end) ) {
if ( start.ndx > ndx ) return false;
if ( ndx < end.ndx ) return true;
start.ndx = end.ndx;
}
return false;
};
*/
return tags;
},
//}}}
/***
!!!! twve.url.getTarget
***/
//{{{
getTarget : function(txt,start,end,tags){
if ( !start || start.ndx===undefined )
start = twve.position.create(start);
else start.ensureValid();
if ( ! tags ) tags = twve.url.markupTags();
txt = txt.toLowerCase();
twve.text.indexOf(txt,tags.open,start);
if ( start.ndx > -1 ) {
if ( !end ) end = twve.position.create(start);
else end.ndx = start.ndx;
twve.text.indexOf(txt,tags.close,end);
if ( end.ndx < 0 ) end.ndx = txt.length;
return txt.substring(start.ndx,end.ndx);
}
return '';
},
//}}}
/***
!!!! twve.url.create
***/
//{{{
create : function(target,start){
var url = twve.element.create();
url.tags = twve.url.markupTags();
// locate
//url.locate = function(text){
// return url.tags.locateNext(text,url.start,url.end);
//};
url.setTarget = function(target,start){
var prev = url.target;
if ( target ) {
// set the target
url.start.ensureValid(start);
url.target = twve.url.getTarget(
target,url.start,url.end,url.tags
);
} else
url.target = null;
return prev;
};
// getTarget
url.getTarget = function(){
return url.target;
};
// waitForContent
url.waitForContent = function(){
if(url.xmlhttp.readyState==4 && url.xmlhttp.status==200){
clearInterval(url.pid);
if ( url.callback )
url.callback(url.xmlhttp.responseText);
return url.xmlhttp.responseText;
}
return ('Waiting for response from '+url.target);
};
// getContent
url.getContent = function(callback){
if ( ! url.target ) return null;
url.xmlhttp = window.XMLHttpRequest
? new XMLHttpRequest()
: new ActiveXObject('Microsoft.XMLHTTP');
if ( ! url.xmlhttp ) return null;
url.xmlhttp.open('GET',url.target,callback);
try{url.xmlhttp.send();}
catch(e){console.log(e);}
if ( callback ) {
url.callback = callback;
url.pid = setInterval(url.waitForContent, 50);
} else
return url.waitForContent();
};
// postData
url.postData = function(){
};
// If no target, or a valid target is given, return this url.
// Otherwise returns null (in cases of invalid target).
return (!target || url.setTarget(target,start)) ? url : null;
}
};
if(twve.span){
//}}}
/***
!!! twve.span.tcalc
***/
//{{{
twve.span.tcalc = {
//}}}
/***
!!!! twve.span.tcalc.twveSelector
***/
//{{{
enableEdit : true,
twveSelector : function(selector){
// This is the required method for an editable object that
// should/could
// 1. (required) add the selector to include
// 2. (optional) add the selector to exclude
if ( ! selector ) selector = twve.selector.create();
return selector.includeSelector('span.tcalc');
},
//}}}
/***
!!!! twve.span.tcalc.is
***/
//{{{
is : function(node,selector){
return twve.node.matches(
node,twve.span.tcalc.twveSelector(selector).include
);
},
//}}}
/***
!!!! twve.span.tcalc.markupTags
***/
//{{{
markupTags : function(){
var tags = twve.tags.create(
'=',
''
);
//tags.matchedCloseTag = function(txt,pos,txtlen,inactiveTags){
//twve.tcalc.evaluate(txt,pos.ndx+1,false,true,inactiveTags)
//};
return tags;
},
//}}}
/***
!!!! twve.span.tcalc.create
***/
//{{{
create : function(src,txt,start,dir){
if ( ! config.options.chktwveTcalcInTextCalc ) return null;
var span = twve.element.create();
// markupTags
span.markupTags = function(){
// Optional, may save a tiny bit of time.
return twve.span.tcalc.markupTags();
};
// clone
span.clone = function(){
// Optional, may save a tiny bit of time.
return twve.span.tcalc.create(span);
};
// twveSelector
span.twveSelector = function(){
// Optional, may save a tiny bit of time.
return twve.span.tcalc.twveSelector();
};
//preEnds = span.ends;
span.ends = function(){
//preEnds.apply(this,arguments);
span.end.ndx =
span.start.ndx + span.dom.title.length;
span.end.matched = '';
return span.end;
};
return span.created(src,txt,start,dir);
}
};
}
//}}}
/***
!!! twve.tcalc
***/
//{{{
twve.tcalc = {
//}}}
/***
!!!! twve.tcalc.readOnly
***/
//{{{
preReadOnly : null,
readOnly : function(title){
var str = 'twve.tcalc--example';
return (title && title.toLowerCase().substring(0,str.length)==str)
? false
: twve.tcalc.preReadOnly.apply(this,arguments);
},
//}}}
/***
!!!! twve.tcalc.cur_twtable
***/
//{{{
cur_twtable : null,
prev_twtable : [],
//}}}
/***
!!!! twve.tcalc.colRef
***/
//{{{
colRef : function ( col ) {
return twve.tcalc.indexToReferenceCol( col );
},
//}}}
/***
!!!! twve.tcalc.startBlockUpdate
***/
//{{{
block_update : false,
startBlockUpdate : function(){
twve.tcalc.block_update = true;
},
//}}}
/***
!!!! twve.tcalc.doingBlockUpdate
***/
//{{{
doingBlockUpdate : function(){
return twve.tcalc.block_update;
},
//}}}
/***
!!!! twve.tcalc.endBlockUpdate
***/
//{{{
endBlockUpdate : function ( txt ) {
twve.tcalc.block_update = false;
// Unpack the updated cell references.
// All the block-updated cell references were packed into the
// format {A.3} to prevent multiple modification, we need to
// unpack them for further use.
var cpos = twve.table.allCells(txt,0,txt.length);
var r, c, ctxt, ref, i, pl, pr, pdot;
for ( r=cpos.length-1; r>=0; r-- ) {
for ( c=cpos[r].length-1; c>=0; c-- ) {
ctxt=txt.substring(cpos[r][c].open,cpos[r][c].close);
if ( !(ref=ctxt.match(/\{[\$A-Za-z]+\.[\$0-9]+\}/g)) )
continue;
for ( i = 0; i < ref.length; i++ ) {
pl = ctxt.indexOf(ref[i]);
pdot = ctxt.indexOf('.', pl+1);
pr = ctxt.indexOf('}', pl+1);
ctxt = ctxt.substring(0,pl)
+ ctxt.substring(pl+1,pdot)
+ ctxt.substring(pdot+1,pr)
+ ctxt.substring(pr+1);
}
txt = txt.substring(0,cpos[r][c].open)
+ ctxt
+ txt.substring(cpos[r][c].close);
}
}
return txt;
},
//}}}
/***
!!!! twve.tcalc.updateCellReference
***/
//{{{
updateCellReference : function (
txt,row_cur,col_cur,row_new,col_new,how
) {
// Update cell reference from (row_cur, col_cur) to
// (row_new, col_new). This function is called when a table
// row or column index is changed. For example, table row
// index is changing during sorting.
var cpos = twve.table.allCells(txt,0,txt.length);
var r, c, ctxt, chndx, ref;
var cell_changed, ref_changed;
// The last argument {{{how}}} is to indicate the update condition,
// which can be one of the followings:
//
// 1. rel -- update only relative references (default);
// 2. abs -- update only absolute references;
// 3. both -- update both kinds of references.
switch ( typeof how ) {
case 'number' :
how = how > 3 ? 3 : (how < 1 ? 1 : how);
break;
case 'string' :
how = how == 'abs' ? 2 : (how == 'both' ? 3 : 1);
break;
default :
how = 1;
break;
}
for ( r = cpos.length-1; r >= 0; r-- ) {
for ( c = cpos[r].length-1; c >= 0; c-- ) {
ctxt = txt.substring(cpos[r][c].open,cpos[r][c].close);
cell_changed = false;
chndx = twve.tcalc.indexOfExpression(ctxt);
if (chndx == -1) continue;
chndx++;
while ( chndx < ctxt.length ) {
var thistable = true;
ref_changed=false;
if((ref=twve.tcalc.tiddlerReference(ctxt,chndx))){
thistable = false;
chndx += ref.length;
}
if((ref=twve.tcalc.tableReference(ctxt,chndx))){
thistable = false;
chndx += ref.length;
}
if( (ref=twve.tcalc.cellReference(ctxt,chndx)) ) {
if ( ! thistable ) {
chndx += ref.length;
continue;
}
var row = twve.tcalc.referenceToIndexRow(ref);
var col = twve.tcalc.referenceToIndexCol(ref);
var abs_row = twve.tcalc.absoluteRow(ref);
var abs_col = twve.tcalc.absoluteCol(ref);
if ( row_cur === null ) {
// Only col_cur is given, meaning one column of
// cells were changed. Adjust all cell references
// having a column index matching col_cur.
// Currently we leave absolute references unchanged,
// but this might not be the best choice.
if(col==col_cur && (how==3 ||
(how==2 && abs_col) ||
(how==1 && !abs_col))
){
col = col_new;
ref_changed = true;
}
} else if ( col_cur === null ) {
// Only row_cur is given, meaning one row of
// cells were changed. Adjust all cell references
// having a row index matching row_cur.
// Currently we leave absolute references unchanged,
// but this might not be the best choice.
if(row==row_cur && (how==3 ||
(how==2 && abs_row) ||
(how==1 && !abs_row))
){
row = row_new;
ref_changed = true;
}
} else {
// Both row_cur and col_cur are given,
// meaning single cell was changed. In such
// cases we adjust only exactly matched
// single cell references.
if ( ctxt.charAt(chndx+ref.length)==':' ) {
// The cell reference is immediately followed
// by a colon, meaning its a block reference.
// Skip it.
chndx += ref.length + 1;
ref = twve.tcalc.cellReference(ctxt,chndx);
chndx += ref.length;
} else {
// Currently we leave absolute references
// unchanged, but this might not be the best
// choice.
if ( row == row_cur && col == col_cur ){
if ( how == 3 ) {
// Both relative and absolute.
row = row_new;
col = col_new;
ref_changed = true;
} else if ( how == 2 ) {
// Only absolute.
if ( abs_row ) {
row = row_new;
ref_changed = true;
}
if ( abs_col ) {
col = col_new;
ref_changed = true;
}
} else {
// Only relative.
if ( ! abs_row ) {
row = row_new;
ref_changed = true;
}
if ( ! abs_col ) {
col = col_new;
ref_changed = true;
}
}
}
}
}
if ( ref_changed ) {
var newref;
if ( twve.tcalc.doingBlockUpdate() )
newref='{'
+twve.tcalc.indexToReferenceCol(
col,abs_col
) + '.'
+twve.tcalc.indexToReferenceRow(
row,abs_row
)+'}';
else
newref=twve.tcalc.indexToReferenceCol(
col,abs_col
) + twve.tcalc.indexToReferenceRow(
row,abs_row
);
ctxt = ctxt.substring(0,chndx) +
newref +
ctxt.substring(chndx+ref.length);
ref = newref;
cell_changed = true;
}
chndx += ref.length;
}
else chndx++;
}
if ( cell_changed ) {
txt = txt.substring(0,cpos[r][c].open)
+ ctxt
+ txt.substring(cpos[r][c].close);
}
}
}
return txt;
},
//}}}
/***
!!!! twve.tcalc.incCellReference
***/
//{{{
incCellReference : function(txt,row,dr,c0,cl,col,dc) {
// Increase cell reference by dr and dc for
// row_ndx >= row and col_ndx >= col. This function is Used
// in cases of row/column insertion/deletion.
var cpos = twve.table.allCells(txt,0,txt.length);
var r, c, chndx, ref, ctxt;
if ( !row ) row = 0; if ( !dr ) dr = 0;
if ( !c0 ) c0 = 0; if ( !col ) col = 0; if ( !dc) dc = 0;
var rcl;
for ( r=cpos.length-1; r>=0; r-- ) {
if ( typeof cl != 'number' || cl < 0
|| cl >= cpos[r].length ) {
rcl = cpos[r].length-1;
} else rcl = cl;
for ( c = rcl; c >= c0; c-- ) {
ctxt = txt.substring(cpos[r][c].open,cpos[r][c].close);
chndx = twve.tcalc.indexOfExpression(ctxt);
if (chndx == -1) continue;
chndx++;
var clen = ctxt.length;
while ( chndx < clen ) {
var thistable = true;
if((ref=twve.tcalc.tiddlerReference(ctxt,chndx))){
thistable = false;
chndx += ref.length;
}
if((ref=twve.tcalc.tableReference(ctxt,chndx))){
var thistable = false
chndx += ref.length;
}
if((ref=twve.tcalc.cellReference(ctxt,chndx))) {
if ( ! thistable ) {
chndx += ref.length;
continue;
}
var row_org=twve.tcalc.referenceToIndexRow(ref);
var col_org=twve.tcalc.referenceToIndexCol(ref);
var abs_row=twve.tcalc.absoluteRow(ref);
var abs_col=twve.tcalc.absoluteCol(ref);
if ( (row_org >= row && col_org >= col) ) {
//|| (r > row && c > c0) ) {
var newref =
twve.tcalc.indexToReferenceCol(
col_org+(abs_col?0:dc), abs_col
)+(abs_row?('$'+row_org):(row_org+dr));
// Update cell text.
ctxt = ctxt.substring(0,chndx)
+ newref
+ ctxt.substring(chndx+ref.length);
// Update length if necessary.
var newlen = ctxt.length;
if ( clen != newlen ) {
//end.ndx += (newlen-clen);
clen = newlen;
}
ref = newref;
}
chndx += ref.length;
} else chndx++;
}
txt = txt.substring(0,cpos[r][c].open)
+ ctxt
+ txt.substring(cpos[r][c].close);
}
}
return txt;
},
//}}}
/***
!!!! twve.tcalc.incReferencesInRow
***/
//{{{
incReferencesInRow : function(txt,row,row_cur,row_new){
var end = txt.length;
var rstart = twve.table.rowStarts(txt,0,end,row);
var rend = twve.table.rowEnds(txt,rstart);
return (rstart>0?txt.substring(0,rstart):'')+
twve.tcalc.incCellReference(
txt.substring(rstart,rend),0,(row_new-row_cur)
)+(rend<end?txt.substring(rend):'');
},
//}}}
/***
!!!! twve.tcalc.transposed
***/
//{{{
transposed : function ( txt ) {
// Update cell references after transposition.
var cpos = twve.table.allCells(txt,0,txt.length);
var r, c, ctxt, chndx, peq;
var cell_changed, ref, newref;
for ( r = cpos.length-1; r >= 0; r-- ) {
for ( c = cpos[r].length-1; c >= 0; c-- ) {
ctxt = txt.substring(cpos[r][c].open,cpos[r][c].close);
cell_changed = false;
peq = twve.tcalc.indexOfExpression(ctxt);
if (peq == -1) continue;
// Switch cell references
chndx = peq + 1;
while ( chndx < ctxt.length ) {
var thistable = true;
newref = '';
if((ref=twve.tcalc.tiddlerReference(ctxt,chndx))){
thistable = false;
chndx += ref.length;
}
if((ref=twve.tcalc.tableReference(ctxt,chndx))){
thistable = false;
chndx += ref.length;
}
if( (ref=twve.tcalc.cellReference(ctxt,chndx)) ) {
// Cell reference found. Adjust it if necessary.
if ( ! thistable ) {
chndx += ref.length;
continue;
}
var row = twve.tcalc.referenceToIndexRow(ref);
var col = twve.tcalc.referenceToIndexCol(ref);
var abs_row = twve.tcalc.absoluteRow(ref);
var abs_col = twve.tcalc.absoluteCol(ref);
newref = twve.tcalc.indexToReferenceCol(
row,abs_row
) + twve.tcalc.indexToReferenceRow(
col,abs_col
);
}
if ( newref ) {
ctxt = ctxt.substring(0,chndx) + newref +
ctxt.substring(chndx+ref.length);
ref = newref;
cell_changed = true;
chndx += ref.length;
} else chndx++;
}
// Switch row() and col()
chndx = peq + 1;
while ( chndx < ctxt.length ) {
newref = '';
if((ref=twve.tcalc.isFunction(ctxt,chndx))){
// Function name encountered. If it is either
// row() or col(), switch to the other.
newref = ref.toUpperCase();
if ( newref.substring(0,3) == 'ROW' ) {
newref = 'COL'+ref.substring(3);
} else if (newref.substring(0,3) == 'COL' ) {
newref = 'ROW'+ref.substring(3);
} else
newref = ref;
}
if ( newref ) {
ctxt = ctxt.substring(0,chndx) + newref +
ctxt.substring(chndx+ref.length);
ref = newref;
cell_changed = true;
chndx += ref.indexOf('(');
} else chndx++;
}
if ( cell_changed ) {
txt = txt.substring(0,cpos[r][c].open)
+ ctxt
+ txt.substring(cpos[r][c].close);
}
}
}
return txt;
},
//}}}
/***
!!!! twve.tcalc.copyOrCut
***/
//{{{
copied_from : null,
cut_from : null,
//}}}
/***
!!!! twve.tcalc.replaceDecimalMark
***/
//{{{
replaceDecimalMark : function(txt,start,end,oldmark,newmark){
var p = txt.indexOf(oldmark,start);
return p == -1 ? txt :
txt.substring(0,p)+newmark+txt.substring(p+1,end);
},
//}}}
/***
!!!! twve.tcalc.nonEmpty
***/
//{{{
nonEmpty : function(txt,start,end){
if ( start !== undefined ) {
txt = end !== undefined
? txt.substring(start,end)
: txt.substring(start);
//var result =
}
return txt.trim() ? txt : '';
},
//}}}
/***
!!!! twve.tcalc.halfWay
***/
//{{{
partialSearch : false,
halfWay : function(txt,start,end,force){
return force || twve.tcalc.partialSearch
? twve.tcalc.nonEmpty(txt,start,end)
: '';
},
//}}}
/***
!!!! twve.tcalc.isPartsPerNotation
***/
//{{{
isPartsPerNotation : function(txt,start,end,i){
// Check in txt the sub text at index i (between start and end)
// to see whether or not it is a parts-per notation.
//
// Note: The caller function MUST make sure there is a numerical
// value immediately preceding the character at index i.
var factor = 1;
switch (txt.charAt(i)){
case '%' :
factor = 1e-2; break;
case '‰' :
factor = 1e-3; break;
case 'p' :
// Check for ppm.
if ( i+2>=end ||
txt.charAt(i+1) != 'p' ) return '';
// ppm, ppb, ppt, ppq
var factor = 1;
switch (txt.charAt(i+2)) {
case 'm' : // ppm
factor = 1e-6; break;
case 'b' : // ppb
factor = 1e-9; break;
case 't' : // ppb
factor = 1e-12; break;
case 'q' : // ppq
factor = 1e-15; break;
default : return '';
}
break;
default : return '';
}
//if ( twve.tcalc.partialSearch )
// return twve.tcalc.halfWay(txt,start,i+1,true);
var result = twve.tcalc.halfWay(txt,start,i,true);
return (result*factor)+'';
},
//}}}
/***
!!!! twve.tcalc.isDigit
***/
//{{{
digit : '0123456789',
digit_zh : '零一二三四五六七八九',
digit_zh_cap : '壹貳叁肆伍陸柒捌玖',
//digit_zh_large : '拾百佰千仟万萬億兆',
isDigit : function(ch){
var n = twve.tcalc.digit.indexOf(ch);
if ( n >= 0 ) return ch;
//n = twve.tcalc.digit_zh.indexOf(ch);
//if ( n >= 0 ) return n+'';
//n = twve.tcalc.digit_zh_cap.indexOf(ch)+1;
//if ( n > 0 ) return n+'';
return '';
},
//}}}
/***
!!!! twve.tcalc.isNumeric
***/
//{{{
isNumeric : function(txt,start,end,update,given_mark,to_sep){
// See [[Testing a numeric expression -- isNumeric -- The Crazy Version!]]
// or [[its external link|http://twtable.tiddlyspace.com/#%5B%5BTesting%20a%20numeric%20expression%20--%20isNumeric%20--%20The%20Crazy%20Version!%5D%5D]]
// for details.
if ( typeof txt == 'number' ) return txt;
var ncomma = 0, nperiod = 0;
var npm = 0, nspace = 0, ndot = 0;
start = twve.position.getPosition(start);
var ch, i;
var len = txt.length;
if (typeof end == 'number') {
if ( end < 0 ) {
// Count back from the end.
end += len+1;
if ( end < 0 ) end = 0;
} else if ( end > len )
end = len;
if ( end < start ) {
i = start;
start = end;
end = start;
}
} else end = len;
i = start;
var withsymbol = false;
var lastch = '';
var numtxt = '';
// skip the leading white spaces
var regwhite = /\s/;
while ( regwhite.test((ch=txt.charAt(i))) ) {
if ( ++i == end ) return '';
numtxt += ch;
}
var ndig = 0;
for ( ; i<end; i++ ) {
lastch = ch;
ch = txt.charAt(i);
var dig = twve.tcalc.isDigit(ch);
if ( dig == '' ) {
switch ( ch ) {
case 'e' :
case 'E' :
if ( ndig == 0 )
return twve.tcalc.halfWay(txt,start,i,true);
withsymbol = true;
numtxt += ch;
break;
//case '−' :
// ch = '-';
case '+' :
case '-' :
if(ndig>0 && lastch!='e' &&
lastch!='E' && lastch !=':')
//return twve.tcalc.halfWay(txt,start,i);
return twve.tcalc.halfWay(numtxt);
if ( ++npm > (withsymbol?2:1) )
return ndig > 0
//? twve.tcalc.halfWay(txt,start,i)
? twve.tcalc.halfWay(numtxt)
: '';
if ( ch == '+' ) return '';
numtxt += ch;
break;
case ':' :
// Time string
if ( ndig == 0 )
// No digits found.
return '';
numtxt += ch;
ch = txt.charAt(i+1);
dig = twve.tcalc.isDigit(ch);
if ( dig == '' ) {
// Some digits before this ':' and no more
// after.
switch ( ch ) {
case '+' :
case '-' :
npm = 1;
break;
case '.' :
nperiod = 1;
break;
default :
//return twve.tcalc.halfWay(txt,start,i);
return twve.tcalc.halfWay(numtxt);
}
numtxt += ch;
} else {
ndig++;
numtxt += dig;
npm = 0; // reset number of plus/minus
}
// Some digits before and some after this ':', a
// valid time string.
withsymbol = true;
i++;
break;
case '.' :
if ( ++nperiod > 1 && ncomma > 1)
return ndig > 0
//? twve.tcalc.halfWay(txt,start,i)
? twve.tcalc.halfWay(numtxt)
: '';
numtxt += ch;
break;
case ',' :
if ( ! config.options.chktwveTcalcThousandSeparated ||
(++ncomma > 1 && nperiod > 1) )
//return twve.tcalc.halfWay(txt,start,i);
return twve.tcalc.halfWay(numtxt);
numtxt += ch;
break;
//case '·' :
case '·' :
if(!config.options.chktwveTcalcThousandSeparated ||
(++ndot>1 && (nspace>1||nperiod>1||ncomma>1)))
//return twve.tcalc.halfWay(txt,start,i);
return twve.tcalc.halfWay(numtxt);
numtxt += ch;
break;
case ' ' :
if(config.options.chktwveTcalcThousandSeparated &&
ndot<=1 && nperiod<=1 && ncomma<=1){
++nspace;
numtxt += ch;
break;
}
i++; // Skip this white space.
default :
return ndig > 0
? (twve.tcalc.isPartsPerNotation(
txt,start,end,i
) || twve.tcalc.halfWay(numtxt))
: '';
}
} else {
ndig++;
numtxt += dig;
}
}
if ( !update && (ncomma == 0 && nperiod == 0 &&
nspace == 0 && ndot == 0) )
//return twve.tcalc.nonEmpty(txt,start,end);
return ndig > 0
? twve.tcalc.nonEmpty(numtxt)
: '';
var mark = '.', separator = ',',
nmark = nperiod, nsep = ncomma;
if ( nperiod > 1 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( nspace > 0 ) {
if ( (nperiod > 0 && ncomma > 0) ||
(nperiod > 1 || ncomma > 1) )
return twve.tcalc.halfWay(
txt,start,txt.indexOf(' ',start)
);
separator = ' '; nsep = nspace;
if ( ncomma > 0 ) {
mark = ','; nmark = ncomma;
} else {
mark = '.'; nmark = nperiod;
}
} else if ( ndot > 0 ) {
if ( nperiod > 0 || ncomma > 1 )
return twve.tcalc.halfWay(
txt,start,txt.indexOf('·',start)
);
//separator = '·'; mark = ',';
separator = '·'; mark = ',';
nsep = ndot; nmark = ncomma;
} else if ( ncomma == 1 && nperiod == 0 ) {
i = txt.indexOf(',',start);
if ( i==start || end-i!=4 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( end-i < 4 )
return twve.tcalc.halfWay(txt,start,i);
} else if ( nperiod == 1 && ncomma == 1 ) {
var pcomma = txt.indexOf(',',start);
var pperiod = txt.indexOf('.',start);
i = pcomma - pperiod;
if ( i == 4 ) {
separator = '.'; mark = ',';
nsep = nperiod; nmark = ncomma;
} else if ( i != -4 )
return twve.tcalc.halfWay(
txt,start,(i > 0 ? pperiod : pcomma)
);
}
if(nsep > 0 && !config.options.chktwveTcalcThousandSeparated)
return twve.tcalc.halfWay(
txt, start,
txt.indexOf(
config.options.txttwveTcalcThousandSeparator,start
)
);
if ( nsep > 1 ) {
var p1 = txt.indexOf(separator,start), p2;
while( (p2=txt.indexOf(separator,p1+1))>-1 ) {
if ( p2 - p1 != 4 )
return twve.tcalc.halfWay(txt,start,p1);
p1 = p2;
}
}
if ( (nmark>0 && mark!=config.options.txttwveTcalcDecimalMark)
|| (nsep>0 &&
separator!=config.options.txttwveTcalcThousandSeparator) )
return twve.tcalc.halfWay(
txt,start,txt.indexOf(separator,start)
);
var opt_mark = given_mark ? given_mark :
config.options.txttwveTcalcDecimalMark;
if ( nsep == 0 ) {
txt = opt_mark != mark
? twve.tcalc.replaceDecimalMark(
txt,start,end,mark,opt_mark
)
: twve.tcalc.nonEmpty(numtxt);
return to_sep
? twve.tcalc.separateNumber(txt)
: txt;
}
var opt_separator = to_sep ?
config.options.txttwveTcalcThousandSeparator : '';
if ( (mark!=opt_mark) || (separator!=opt_separator) ) {
for ( i=start; i<end; i++ ) {
ch = txt.charAt(i);
if ( ch == separator ) {
if(separator!=opt_separator)
txt=txt.substring(start,i)+
opt_separator+txt.substring(i+1);
}
else if( ch == mark ) {
if(mark!=opt_mark)
txt=txt.substring(start,i)+
opt_mark+txt.substring(i+1);
}
}
}
return twve.tcalc.nonEmpty(txt,start,end);
},
//}}}
/***
!!!! twve.tcalc.unseparateNumber
***/
//{{{
/*
unseparateNumber : function ( txt ) {
var txt2=txt.split(config.options.txttwveTcalcThousandSeparator);
var txt3 = '';
for ( var i = 0; i < txt2.length; i++ )
txt3 += txt2[i];
return txt3;
},
*/
//}}}
/***
!!!! twve.tcalc.separateNumber
***/
//{{{
// //The following function was obtained from
// //http://www.mredkj.com/javascript/numberFormat.html
separateNumber : function (nStr) {
nStr += '';
var x = nStr.split(config.options.txttwveTcalcDecimalMark);
var x1 = x[0];
var x2 = x.length > 1 ?
config.options.txttwveTcalcDecimalMark + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' +
config.options.txttwveTcalcThousandSeparator + '$2');
}
return x1 + x2;
},
//}}}
/***
!!!! twve.tcalc.spannedCellReference
***/
//{{{
spannedCellReference : function(ref){
var p = ref.lastIndexOf('|');
if ( p >= 0 ) {
// Column spanned cell, get the last reference
return ref.substring(p+1).trim();
}
p = ref.indexOf('\n');
if ( p >= 0 ) {
// Row spanned cell, get the first reference
return ref.substring(0,p).trim();
}
// Regular reference, just return it.
return ref;
},
//}}}
/***
!!!! twve.tcalc.absoluteRow
***/
//{{{
absoluteRow : function (ref) {
var p = ref.indexOf('$',1);
return (p > 0 && p < 4);
},
//}}}
/***
!!!! twve.tcalc.referenceToIndexRow
***/
//{{{
referenceToIndexRow : function ( ref ) {
if ( ! ref ) return null;
ref = twve.tcalc.spannedCellReference(ref);
var p = ref.indexOf('$',1);
if ( p > 0 && p < 4 )
// Absolute row reference
return parseInt(ref.substring(p+1));
p = ref.charAt(0)=='$' ? 1 : 0;
// Relative row reference
if ( /[a-zA-Z]/.test(ref.charAt(p+1)) )
return parseInt(ref.substring(p+2));
else
return parseInt(ref.substring(p+1));
},
//}}}
/***
!!!! twve.tcalc.indexToReferenceRow
***/
//{{{
indexToReferenceRow : function ( r, abs ) {
return (abs?'$':'')+r;
},
//}}}
/***
!!!! twve.tcalc.absoluteCol
***/
//{{{
absoluteCol : function (ref) {
return ref.charAt(0)=='$';
},
//}}}
/***
!!!! twve.tcalc.referenceToIndexCol
***/
//{{{
referenceToIndexCol : function ( ref ) {
if ( ! ref ) return null;
ref = twve.tcalc.spannedCellReference(ref);
var p = ref.indexOf('$');
if ( p == 0 ) p++; // Absolute col reference
else p = 0; // Relative col reference
var a = 'A'.charCodeAt();
ref = ref.toUpperCase();
if ( /[A-Z]/.test(ref.charAt(p+1)) ) {
var c1 = ref.charAt(p).charCodeAt()-a+1,
c2 = ref.charAt(p+1).charCodeAt()-a;
return c1*26 + c2;
} else {
return ref.charAt(p).charCodeAt()-a;
}
},
//}}}
/***
!!!! twve.tcalc.indexToReferenceCol
***/
//{{{
indexToReferenceCol : function ( c, abs ) {
var a = 'A'.charCodeAt(),
pre = (abs ? '$' : '');
if ( c < 26 )
return pre+String.fromCharCode(c+a);
else {
var c1 = c/26-1, c2 = c%26;
return pre+String.fromCharCode(c1+a)+
String.fromCharCode(c2+a);
}
},
//}}}
/***
!!!! twve.tcalc.indexOfExpression
***/
//{{{
indexOfExpression : function (text,start,op) {
// Find the index of a valid expression. By definition in this
// plugin a valid expression is preceded by an equal sign. There
// are, however, situations that the equal sign is in an
// inactive region, such as
// 1. in a preformatted or code block,
// 2. in a URL,
// 3. in a MathJax expression
// 4. ...
start = twve.position.create(start);
var pos = twve.position.create(start);
var tags = twve.url.markupTags();
var opstr = '=?:';
if ( ! op || opstr.indexOf(op) == -1 )
op = '=';
while ( true ) {
pos = twve.text.skipToActive(text,op,pos);
if ( pos.ndx == -1 || pos.ndx < start.ndx )
return -1;
if ( ! tags.encloses(text,pos.ndx,start) ) {
// If there are consecutive equal signs, skip to the
// last one.
while ( text.charAt(pos.ndx+1)=='=' ) pos.ndx++;
return pos.ndx;
}
pos.ndx++;
}
},
//}}}
/***
!!!! twve.tcalc.isLogicalOperator
***/
//{{{
isLogicalOperator : function(txt,start){
var chndx = start;
var ch = txt.charAt(chndx);
var nch = txt.charAt(chndx+1);
var nnch = txt.charAt(chndx+2);
switch ( ch ){
case '!' :
return nch == '='
? (nnch == '=' ? (ch+nch+nnch) : (ch+nch))
: ch;
case '=' :
return nch == '='
? (nnch == '=' ? (ch+nch+nnch) : (ch+nch))
: '';
case '>' :
case '<' :
return nch == '='
? (ch+nch)
: ch;
}
return '';
},
//}}}
/***
!!!! twve.tcalc.isUserFunction
***/
//{{{
isUserfunction : function ( txt, start, end ) {
if ( start==0 || txt.charAt(start-1)!='.' )
return txt.substring(start,end);
//twve.tcalc.fn_ndx = -1;
},
//}}}
/***
!!!! twve.tcalc.isFunction
***/
//{{{
fn_ndx : -1,
isFunction : function ( txt, start ) {
// Returns the function string fn(arg) if any.
//twve.tcalc.fn_ndx = -1;
if ( !start ) start = 0;
var txt2 = txt.substring(start).toUpperCase();
for(var i=0,ilen=twve.tcalc.fn.length;i<ilen;i++){
var fn_name = '';
var name = twve.tcalc.fn[i].name;
if ( typeof name == 'string' ) {
if(txt2.substring(0,name.length) == name){
fn_name = name;
}
} else {
// Must be an array of names.
for(var j=0,jlen=name.length;j<jlen;j++){
if(txt2.substring(0,name[j].length)==name[j]){
fn_name = name[j]; break;
}
}
}
if ( fn_name ) {
// There is a function name found, record its starting
// position.
var pfn = txt2.indexOf(fn_name)+start;
// Look for function arguments.
var pl = txt.indexOf('(',pfn+1);
if ( pl == -1 ) return '';
var pr = twve.tags.nested.matchedCloseTag(
txt,pl+1,'(',')'
);
twve.tcalc.fn_ndx = i;
return twve.tcalc.isUserfunction(
txt,pfn,(pr.ndx>-1?(pr.ndx+1):null)
);
}
}
},
//}}}
/***
!!!! twve.tcalc.parseSingleTerm
***/
//{{{
parseSingleTerm : function (cell_exp, last_one, start) {
var expression = '', tmp_exp = null;
if (twve.tcalc.fn[twve.tcalc.fn_ndx].parseSingleTerm) {
tmp_exp = twve.tcalc.fn[twve.tcalc.fn_ndx]
.parseSingleTerm(cell_exp,start);
if ( tmp_exp ) expression += tmp_exp;
} else {
expression += (tmp_exp=cell_exp);
}
if (!last_one && tmp_exp
&& twve.tcalc.fn[twve.tcalc.fn_ndx].operator)
expression += twve.tcalc.fn[twve.tcalc.fn_ndx].operator;
return expression;
},
//}}}
/***
!!!! twve.tcalc.consecutiveCells
***/
//{{{
consecutiveCells : function (txt) {
// Extract the indexes of the starting (top-left) and ending
// (bottom-right) cells in a consecutive range.
var txt2 = txt.split(':');
// Now txt2[0] is the beginning while txt2[1] is the
// ending cell. Find the (row, col) indexes of the
// cells and evaluate the cells in between, inclusively.
var c1 = twve.tcalc.referenceToIndexCol(txt2[0]);
var r1 = twve.tcalc.referenceToIndexRow(txt2[0]);
var c2 = twve.tcalc.referenceToIndexCol(txt2[1]);
var r2 = twve.tcalc.referenceToIndexRow(txt2[1]);
if ( r2 < r1 ) { r = r1; r1 = r2; r2 = r; }
if ( c2 < c1 ) { c = c1; c1 = c2; c2 = c; }
var indexes = twve.object.create();
indexes.start = twve.object.create();
indexes.start.row = r1;
indexes.start.col = c1;
indexes.end = twve.object.create();
indexes.end.row = r2;
indexes.end.col = c2;
return indexes;
},
//}}}
/***
!!!! twve.tcalc.copyFunctionData
***/
//{{{
duplicateFunctionData : function(fn_or_ndx){
var fn = typeof fn_or_ndx == 'number'
? twve.tcalc.fn[fn_or_ndx]
: fn_or_ndx;
var holder = {};
var src = fn.data ? fn.data : fn;
twve.object.copyKeys(
holder, // destination
src, // source
twve.object.keys(src) // source keys
);
return holder;
},
//}}}
/***
!!!! twve.tcalc.pushFunctionCall
***/
//{{{
call_stack : [],
pushFunctionCall : function(fn_ndx){
// Push the data of function twve.tcalc.fn[fn_ndx] into
// the call stack.
var fn_obj = {ndx : fn_ndx};
if ( twve.tcalc.fn[fn_ndx].data !== undefined )
fn_obj.data = twve.tcalc.duplicateFunctionData(fn_ndx);
twve.tcalc.call_stack.push(fn_obj);
},
//}}}
/***
!!!! twve.tcalc.popFunctionCall
***/
//{{{
popFunctionCall : function(){
// Pop the data at the end of call stack back to its function.
var fn_obj = twve.tcalc.call_stack.pop();
twve.tcalc.fn_ndx = fn_obj.ndx;
if ( fn_obj.data !== undefined )
twve.object.copyKeys(
twve.tcalc.fn[fn_obj.ndx].data, // destination
fn_obj.data, // source
twve.object.keys(fn_obj.data) // source keys
);
},
//}}}
/***
!!!! twve.tcalc.parseConsecutive
***/
//{{{
parseConsecutive : function ( txt ) {
// calculate over consecutive cells
// The argument txt should be something like cell1..cell2,
// otherwise the behavior of this function is undefined.
var tmp_exp, r, c, tmp_exp,
rows = twve.tcalc.cur_twtable.dom.querySelectorAll('tr');
var ndx = twve.tcalc.consecutiveCells(txt);
var partial = twve.tcalc.fn[twve.tcalc.fn_ndx].partialSearch;
var expression = partial ? [] : '';
for ( r = ndx.start.row; r <= ndx.end.row; r++ ) {
var tr = rows[r];
var cells = tr.querySelectorAll('th,td');
for ( c = ndx.start.col; c <= ndx.end.col; c++ ) {
var cell = twve.table.getRowCell(cells,c);
if ( ! cell ) continue;
// Push this function call to the call stack.
twve.tcalc.pushFunctionCall(twve.tcalc.fn_ndx);
tmp_exp = twve.tcalc.evaluateCell(
cell,!twve.tcalc.fn[twve.tcalc.fn_ndx].no_eval
);
// Pop it back.
twve.tcalc.popFunctionCall();
if ( partial )
expression[expression.length] = tmp_exp;
else
expression += twve.tcalc.parseSingleTerm(
tmp_exp, (r==ndx.end.row && c==ndx.end.col)
);
}
}
if ( expression )
if ( partial )
expression = twve.tcalc.parseSingleTerm(expression,true);
else if ( twve.tcalc.fn[twve.tcalc.fn_ndx].operator )
if (expression.charAt(expression.length-1)==
twve.tcalc.fn[twve.tcalc.fn_ndx].operator) {
expression = expression.substring(
0,expression.length-1
);
}
return expression;
},
//}}}
/***
!!!! twve.tcalc.allArguments
***/
//{{{
allArguments : function (txt) {
var p0 = txt.indexOf('(');
// No left parenthesis found.
if ( p0 == -1 ) return '';
// There is left parenthesis, look for its paired right
// parenthesis. Make use of the .matchedCloseTag() method
// defined in twve.tags.nested object.
var end = twve.tags.nested.matchedCloseTag(txt,p0+1,'(',')');
if ( end.ndx < 0 ) return '';
// If found, the end.ndx will be right at the right parenthesis.
return txt.substring(p0+1, end.ndx);
},
//}}}
/***
!!!! twve.tcalc.splitArguments
***/
//{{{
splitArguments : function (txt) {
// Split one line of text that contains several arguments.
//
// Arguments: txt The txt to split.
// sep The separator of items
// brackets An array of pairs of opening/closing
// brackets that should not be split.
var tags = twve.tags.nested.create(
['(', '[', '{'],
[')', ']', '}']
);
var pos = twve.position.create(0);
var start = twve.position.create(0);
var end = twve.position.create(txt.length);
var result = [];
while(true){
pos = twve.text.skipToActive(txt,',',start,end,tags);
if (pos.ndx == -1){
// No more comma's
result[result.length] = txt.substring(start.ndx,end.ndx);
return result;
} else {
// A comma is found.
result[result.length] = txt.substring(start.ndx,pos.ndx);
start.ndx = pos.ndx+1;
}
}
},
//}}}
/***
!!!! twve.tcalc.parseFunction
***/
//{{{
parseFunction : function ( txt ) {
// Start parsing twve.tcalc-defined functions.
// Calculations are done in one of the following ways:
// 1. over consecutive cells
// txt should look like func(cell1:cell2)
// 2. over separated individual cells
// txt should look like func(cell1,cell2,cell3,...)
// 3. mixing both cases
// txt can be like
// func(cell1:cell2,cell3,cell4,cell5:cell7...)
// get rid of parentheses in txt
var txt2 = twve.tcalc.allArguments(txt);
var expression = '', tmp_exp;
if ( !txt2 ) {
// Functions without arguments.
if ( twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing )
if ((tmp_exp=
twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing(txt)))
expression = tmp_exp;
if ( twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing )
if((tmp_exp=
twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing()))
expression += tmp_exp;
return expression;
}
// Functions with arguments.
// If some of the arguments contain function calls,
// evaluate them before further parsing.
var fn_ndx = twve.tcalc.fn_ndx, chndx = 0;
// Push the current function call to the call stack.
twve.tcalc.pushFunctionCall(fn_ndx);
while ( chndx < txt2.length ) {
chndx += twve.text.skipStyleText(txt2,chndx,true);
var fntxt = twve.tcalc.isFunction(txt2,chndx);
if ( fntxt ) {
var fnval = twve.tcalc.parseFunction(fntxt);
txt2 = txt2.substring(0,chndx)
+ fnval
+ txt2.substring(chndx+fntxt.length);
chndx += fnval.length;
} else chndx++;
}
// Pop it back.
twve.tcalc.popFunctionCall();
// Initialize this function.
if ( twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing )
if ((tmp_exp=
twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing(txt)))
expression = tmp_exp;
// Now parse each of the arguments.
var jsfunc = txt.indexOf('Math.')>-1;
txt2 = twve.tcalc.splitArguments(txt2);
for (var i=0,ilen=txt2.length; i<ilen; i++ ) {
var txt3 = txt2[i].trim();
if ( txt3 == '' ) txt3 = txt2[i];
var p0 = twve.text.skipStyleText(txt3,0,true);
if ( (chndx=txt3.indexOf(':',p0)) > -1
&& twve.tcalc.cellReference(txt3,chndx+1) ) {
// Block reference.
expression += twve.tcalc.fn[twve.tcalc.fn_ndx].no_deref
? twve.tcalc.parseSingleTerm(
txt3,(i==txt2.length-1)
)
: twve.tcalc.parseConsecutive(txt3);
if ( i<txt2.length-1 &&
twve.tcalc.fn[twve.tcalc.fn_ndx].operator )
expression+=
twve.tcalc.fn[twve.tcalc.fn_ndx].operator;
} else {
// Either single cell reference or no cell references
// at all.
// Push the current function call to the call stack.
twve.tcalc.pushFunctionCall(fn_ndx);
tmp_exp = twve.tcalc.evaluate(
txt3, p0,
!twve.tcalc.fn[twve.tcalc.fn_ndx].no_eval,
twve.tcalc.fn[twve.tcalc.fn_ndx].no_deref
);
// Pop it back.
twve.tcalc.popFunctionCall();
expression+=twve.tcalc.parseSingleTerm(
(p0 ? txt3.substring(0,p0) : '')+tmp_exp,
(i==txt2.length-1), p0
);
}
if ( jsfunc && i < ilen-1 && expression )
expression += ',';
}
if (twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing){
if ((tmp_exp=twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing()))
expression += tmp_exp;
// The function index may be changed in stopParsing(), restore
// it back to ensure correct execution.
twve.tcalc.fn_ndx = fn_ndx;
}
return expression;
},
//}}}
/***
!!!! twve.tcalc.wrappedReference
***/
//{{{
wrappedReference : function(txt,start,open,close){
// Returns possible reference text wrapped by a pair of wrappers,
// such as a pair of quotes, double quotes, square brackets or
// curly brackets, etc. The return value includes the wrappers.
var chndx=(start?start:0);
if ( chndx < 0 || chndx >= txt.length ) return '';
var ch = txt.charAt(chndx);
if ( ch != open ) return '';
var end = chndx;
// Possible file name.
end = txt.indexOf(close,end+1);
return end < 0 ? '' : txt.substring(chndx,end+1);
},
//}}}
/***
!!!! twve.tcalc.externalReference
***/
//{{{
exteranlReference : function(txt,start){
// To allow cross file calculations, one must be able to
// specify the file name that the formula is referring to. This
// plugin considers the text wrapped within a pair of curly braces
// as a possible file name.
return twve.tcalc.wrappedReference(txt,start,'{','}');
},
//}}}
/***
!!!! twve.tcalc.tiddlerReference
***/
//{{{
tiddlerReference : function(txt,start){
// To allow cross tiddler calculations, one must be able to
// specify the tiddler that the formula is referring to. This
// plugin recognizes a tiddler by its title. The syntax follows
// the external reference in OpenOffice.calc or MS Excel: wrap
// the title of the tiddler in a pair of square bracket.
var result = twve.tcalc.wrappedReference(txt,start,'[',']');
return result
? (result.indexOf(',')==-1 ? result : '')
: '';
},
//}}}
/***
!!!! twve.tcalc.tableReference
***/
//{{{
tableReference : function(txt,start){
// To allow cross table calculations, one must be able to specify
// the table that the formula is referring to. This plugin
// recognizes two ways of table referencing:
// 1. by index;
// 2. by caption.
// The syntax follows the worksheet syntax in the OpenOffice.calc
// or MS Excel: Use the exclamation mark (!).
//
// Examples
// 1. To refer to a table by its index.
// """Table0!A1""" refers to the cell """A1""" in """Table0"""
// (the table with index 0, i.e., the first table in this
// tiddler).
// 2. To refer to a table by its caption.
// In this case,
// a. the user is responsible for the uniqueness of the
// table caption;
// b. the caption must be specified with a pair of quotes
// or double quotes enclosing it.
// """'Table Caption'!B3""" refers to the cell """B3""" in
// the table with caption """Table Caption""". Note that in
// this example the table caption is enclosed by a pair of
// quotes.
var chndx=(start?start:0);
if ( chndx < 0 || chndx >= txt.length ) return '';
var ch = txt.charAt(chndx);
if ( ch == 't' || ch == 'T' ) {
var end = chndx;
// Possible table reference by index, look for the format
// TableN!, where N is the index of the table.
end += 5; // Table
if(txt.substring(chndx,end).toLowerCase()=='table'){
// There is the text Table, look for an immediately
// following number that is immediately followed by
// an exclamation mark (!).
var partial = twve.tcalc.partialSearch;
twve.tcalc.partialSearch = true;
var ndx = twve.tcalc.isNumeric(txt,end);
twve.tcalc.partialSearch = partial;
if ( ndx == '' ) return '';
end += ndx.length;
return txt.charAt(end) == '!'
? txt.substring(chndx,end+1)
: '';
}
} else {
var ref = twve.tcalc.wrappedReference(txt,chndx,"'","'") ||
twve.tcalc.wrappedReference(txt,chndx,'"','"');
if ( ref == '' ) return '';
// Possible table reference by caption.
return txt.charAt(chndx+ref.length) == '!'
? (ref+'!')
: '';
}
return '';
},
//}}}
/***
!!!! twve.tcalc.cellReference
***/
//{{{
cellReference : function(txt,start){
// Returns the cell reference from txt at position start, or an
// empty string if no cell reference is found at that position.
var chndx=(start?start:0);
if ( chndx < 0 || chndx >= txt.length ) return '';
var ch, col = '', row = '';
if ( (ch=txt.charAt(chndx++)) == '$' ) {
// Absolute column reference
col = ch;
ch = txt.charAt(chndx++);
}
if ( /[\a-zA-Z]/.test(ch) ) {
col += ch;
ch = txt.charAt(chndx++);
if ( /[a-zA-Z]/.test(ch) ) {
col += ch;
ch = txt.charAt(chndx++);
}
}
if ( col ) {
// There is possible column reference,
// check for row reference.
if ( ch == '$' ) {
// Absolute row reference
row = ch;
ch = txt.charAt(chndx++);
}
if (twve.tcalc.isDigit(ch)) {
row += ch;
while (chndx<txt.length &&
twve.tcalc.isDigit((ch=txt.charAt(chndx++))))
row += ch;
return col+row;
}
}
return '';
},
//}}}
/***
!!!! twve.tcalc.isPossibleExp
***/
//{{{
/*
isPossibleExp : function (txt) {
if ( !txt ) return false;
//if ( /[^\x21-\x7e ]/g.test(txt) ) return false;
var pl = txt.indexOf('(');
if ( pl > -1 ) {
var pr = txt.lastIndexOf(')');
txt = txt.substring(pl+1,pr);
}
var term1 = txt.split(/[\*\/]/);
for ( var i = 0; i < term1.length; i++ ) {
if ( ! term1[i] ) return false;
var term2 = term1[i].split(/[\+\-]/);
for ( var j = 0; j < term2.length; j++ )
if(term2[j] && ! twve.tcalc.isNumeric(term2[j].trim()))
return false;
}
return true;
},
*/
//}}}
/***
!!!! twve.tcalc.cellContent
***/
//{{{
cellContent : function(tr,ref,js_eval,expression){
var cell = null;
if (tr.nodeName == 'TR') {
// tr is a table row, ref must be a column index.
cell = twve.table.getRowCell(tr,ref);
} else if ( tr.length ) {
// tr is an array.
if ( tr[0].nodeName == 'TR' )
// tr is an array of TR's, ref must be a cell
// reference string.
cell = twve.table.getRowCell(
tr[twve.tcalc.referenceToIndexRow(ref)],
twve.tcalc.referenceToIndexCol(ref)
);
else
// tr must be an array of cells, ref must be an index.
cell = tr[ref];
}
//if(twve.tcalc.cyclicReference(cell))
// return twve.tcalc.nodeText(cell);
var cexp = cell
? twve.tcalc.evaluateCell(cell,js_eval)
: null;
if ( cexp ) return cexp;
if ( expression ) {
var len = expression.length;
var ch = expression.charAt(len-1);
if (ch=='+' || ch=='-' || ch=='*' || ch=='/')
//expression = expression.substring(0,len-1);
return '0';
}
return '';
},
//}}}
/***
!!!! twve.tcalc.inactive_block
***/
//{{{
inactive_block : function(txt,chndx,tags){
if ( ! tags.start )
tags.start = twve.position.create(chndx);
else
tags.start.ndx = chndx;
if(tags.firstOpenTag(txt,tags.start).ndx == chndx){
if ( ! tags.end )
tags.end = twve.position.create(tags.start);
tags.end.ndx = tags.start.ndx+tags.start.matched.length;
twve.text.indexOf(
txt,
tags.exactCloseTag(tags.start.matched).close,
tags.end
);
if(tags.end.ndx > chndx) return tags;
}
return null;
},
regwhite : /\s/,
//regurl : /[hHfF]/,
opary : [
[ '*', '/', '^' ], // pass 2 operators
[ '+', '-' ] // pass 3 operators
],
//}}}
/***
!!!! twve.tcalc.expression
***/
//{{{
/*
expression : {
source : '',
start : 0,
callback : null,
evaluate_numerals : function(){
},
evaluate_references : function(){
}
},
*/
//}}}
/***
!!!! twve.tcalc.evaluate_arithmetics
***/
//{{{
evaluate_arithmetics : function(txt,start,inc_tags,callback){
// Evaluate a regular mathematical expression that contains
// only numerals and arithmetic operators.
//
// The first two arguments, txt and start, are required.
//
// The evaluation process is divided into the following passes:
// 1: Evaluate constants, powers, multiplications and divisions.
// 2: Evaluate additions and subtractions.
if ( ! txt ) return '';
// Now there should be only arithmetic operators and
// numerals, time strings, or vectors.
start = twve.position.getPosition(start);
var pstyle = 0;
// Skip the leading white spaces or tabs.
while ( start+pstyle < txt.length &&
' \t\n'.indexOf(txt.charAt(start+pstyle)) > -1)
pstyle++;
// Skip the leading CSS style text.
pstyle += twve.text.skipStyleText(txt,start+pstyle,true);
var chndx = start+pstyle;
var expression = txt.substring(start,chndx);
if(!inc_tags) inc_tags = twve.tags.inactiveTags();
var ch = '', subtxt = '', result = '';
var op = '';
var pos = -1;
var val = [ null, null ];
function evaluate_operation () {
var t0 = typeof val[0];
var t1 = typeof val[1];
if (t0 == 'number' && t1 == 'number' ) {
// Both are numbers
switch(op){
case '*' :
result = val[0] * val[1];
break;
case '/' :
result = val[0] / val[1];
break;
case '^' :
result = Math.pow(val[0],val[1]);
break;
case '+' :
result = val[0] + val[1];
break;
case '-' :
result = val[0] - val[1];
break;
default :
// Undefined operation.
if (config.options.chktwveTcalcDebugMode)
console.log(
'Evaluation error: Undefined operator ('+
op+') for numbers.'
);
op = ''; val[0] = val[1] = null;
return null;
}
} else if (t0 == 'string' || t1 == 'string' ) {
// At least one of them is a string.
switch (op) {
case '+' :
case '-' :
result = twve.tcalc.calculateTime(
val[0]+op+val[1]
).normalize();
break;
default :
// Undefined operation.
if (config.options.chktwveTcalcDebugMode)
console.log(
'Evaluation error: Undefined operator ('+
op+') for time strings.'
);
op = ''; val[0] = val[1] = null;
return null;
}
} else {
// Assuming both of them are vectors.
var v0 = twve.tcalc.vector.create(val[0],true);
var v1 = twve.tcalc.vector.create(val[1],true);
if ( v0.length == 0 && v1.length == 0 ){
// Unknown objects.
if (config.options.chktwveTcalcDebugMode)
console.log(
'Evaluation error: Unknown objects '+
v0+' and '+v1+'.'
);
op = ''; val[0] = val[1] = null;
return null;
} else {
// At least one of them is a vector.
switch (op) {
case '+' :
result = v0.length > 0
? v0.add(v1).toString()
: v1.add(v0).toString();
break;
case '-' :
result = v0.length > 0
? v0.subtract(v1).toString()
: v1.subtract(v0).toString();
break;
//case '*' :
// Assuming dot product.
//result = v0.dot(v1).toString();
//break;
default :
// Undefined operation.
if (config.options.chktwveTcalcDebugMode)
console.log(
'Evaluation error: Undefined operator ('+
op+') for vectors.'
);
op = ''; val[0] = val[1] = null;
return null;
}
}
}
// Check result type and store it as the first operand
// for consecutive operations.
if (typeof result == 'number'){
val[0] = result;
result = ''+result;
} else if (typeof result == 'string') {
// result must be a string.
val[0] = result;
} else {
result = result.toString();
val[0] = result;
}
txt = txt.substring(0,pos)+result+txt.substring(chndx);
chndx = pos+result.length;
// Cleart the operation.
op = ''; val[1] = null;
return result;
};
function store_value(exp,explen){
// The exp should be a string of valid number format
// or time format.
result = typeof exp == 'string'
? (exp.indexOf(':')>=0 ? exp : parseFloat(exp))
: exp;
if ( val[0] === null || !op ) {
// First operand is empty, or there is no operator,
// record the position and store it.
pos = chndx;
val[0] = result;
if ( typeof explen == 'number' )
chndx += explen;
} else {
// First operand is stored, and there is an operator.
// Store the 2nd operand and carry the operation.
val[1] = result;
if ( typeof explen == 'number' )
chndx += explen;
evaluate_operation();
}
};
var partial = twve.tcalc.partialSearch, remained = '';
twve.tcalc.partialSearch = true;
for (var p=0,plen=twve.tcalc.opary.length; p<plen; p++){
chndx = start+pstyle;
subtxt = op = '';
val[0] = val[1] = null;
while ( chndx < txt.length ) {
if(twve.tcalc.inactive_block(txt,chndx,inc_tags)){
expression += (subtxt=txt.substring(
inc_tags.start.ndx,
inc_tags.end.ndx+inc_tags.end.matched.length
));
chndx += subtxt.length;
} else if((subtxt=twve.tcalc.isNumeric(txt,chndx))){
// A number
if((ch=subtxt.trim().charAt(0))=='-' &&
!op && val[0]!==null && p==1){
// A negative number, no operator, the first
// operand is stored, and we are in the
// addition/subtraction pass, take the negative
// sign as a subtraction operator.
op = ch;
subtxt = subtxt.substring(1);
chndx++;
}
store_value(subtxt,subtxt.length);
} else if((subtxt=twve.tcalc.isLogicalOperator(
txt,chndx
))){
//op = subtxt;
chndx += subtxt.length;
} else if((subtxt=twve.tcalc.vector.is(txt,chndx))){
// A vector
if ( subtxt.length == txt.length ) {
p = plen;
chndx += subtxt.length;
break;
}
store_value(
twve.tcalc.vector.create(subtxt,true),subtxt.length
);
} else {
ch = txt.charAt(chndx);
if (twve.tcalc.opary[p].indexOf(ch) >= 0){
op = ch;
} else if (! twve.tcalc.regwhite.test(ch) &&
twve.tcalc.opary[(p+1)%2].indexOf(ch)==-1) {
remained = txt.substring(chndx);
break;
}
chndx++;
}
}
}
twve.tcalc.partialSearch = partial;
result = txt.substring(start,chndx);
if ( callback )
callback({
text: txt,
position: start,
expression: expression,
result: result
});
return result+remained;
},
//}}}
/***
!!!! twve.tcalc.tmpValues
***/
//{{{
tmpValues : {
// Temperary values during the current evaluation.
storage : [],
indexOf : function(exp) {
// Binary search for the index of the expression.
// Copied from http://oli.me.uk/2013/06/08/searching-javascript-arrays-with-a-binary-search/
/*
* @param {*} searchElement The item to search for within the array.
* @return {Number} The index of the element which defaults to -1 when not found.
*/
var max = this.storage.length - 1;
var min = 0;
var cur;
var curexp;
while (min <= max) {
cur = (min + max) >>> 1;
curexp = this.storage[cur].expression;
if (curexp < exp) {
min = cur + 1;
} else if (curexp > exp) {
max = cur - 1;
} else {
return cur;
}
}
return ~max;
},
clearStorage : function(){
this.storage = [];
},
insertPos : -1,
getValue : function(exp){
if ( this.storage.length === 0 ) return null;
var ndx = this.indexOf(exp);
if ( ndx >= 0 )
return this.storage[ndx].value;
this.insertPos = Math.abs(ndx);
return null;
},
storeValue : function(exp,val){
if ( this.storage.length == 0 )
this.storage[0] = {
expression : exp,
value : val
};
else {
if ( this.insertPos < 0 )
this.insertPos = Math.abs(this.indexOf(exp));
this.storage.splice(this.insertPos,0,{
expression : exp,
value : val
});
//console.log('added '+this.insertPos+'/'+this.storage.length+' '+exp+'='+val);
this.insertPos = -1;
}
}
},
//}}}
/***
!!!! twve.tcalc.evaluate
***/
//{{{
evaluate : function(txt,start,js_eval,no_deref,inc_tags,callback){
// Evaluate a twve.tcalc expression.
// A valid twve.tcalc expression can be one or the mixture of
// the followings:
// 1. A simple arithmetic on numbers or table cells, such as
// =25/6, =A1+E4 or =(B3+C4)/D7, etc.
// 2. A twve.tcalc-defined function, such as
// =SUM(A1..D8) or PRODUCT(A1,C3,D5) or
// =AVERAGE(B3..B20;B30..B40;C3,E2), etc.
// 3. A valid Javascript math expression, such as
// =Math.sin(Math.PI) or =Math.sqrt(3), etc.
//
// The callback function shall receive a parameter object with the
// following properties:
// {
// position: index of the begining of expression (the equal sign),
// expression: the expression to be evaluated,
// result: the evaluated result
// }
// If provided, it will be called after the evaluation is done.
//
// The evaluation process is divided into the following passes:
// 1: Evaluate table cells and function calls.
// 2: Evaluate conditional assignments, and sub-expressions
// enclosed within parenthesis, brackets, curly brackets.
// 3: Evaluate constants, powers, multiplications and divisions.
// 4: Evaluate additions and subtractions.
//
// The first two passes are implemented in this function, while
// the rest are in the evaluate_arithmetics function defined
// above.
if ( ! txt ) return '';
var result = ''; //twve.tcalc.tmpValues.getValue(txt);
//if ( result !== null ) return result;
//console.log('evaluating ['+txt+']');
start = twve.position.getPosition(start);
var pstyle = twve.text.skipStyleText(txt,start,true);
var chndx = start+pstyle;
var expression = txt.substring(start,chndx);
var remained = '', pre_exp = '', nop = 0;
var next = 0, ch = '', subtxt = '';
var cur_twtable = twve.tcalc.cur_twtable;
var rows = cur_twtable && cur_twtable.is('table')
? cur_twtable.dom.querySelectorAll('tr')
: null;
if(!inc_tags) inc_tags = twve.tags.inactiveTags();
var plogical = -1, pquestion = -1, pcolon = -1;
var partial = twve.tcalc.partialSearch;
twve.tcalc.partialSearch = true;
//var tags = {
// '(' : twve.tags.nested.create('(',')'),
// '[' : twve.tags.nested.create('[',']'),
// '{' : twve.tags.nested.create('{','}')
//};
var openstr = '([{', popen;
var closestr = ')]}', pclose;
// Pass 1 and 2, evaluate table cells, function calls,
// and sub-expressions enclosed within parenthesis,
// brackets, and curly brackets.
while ( chndx < txt.length ) {
if(twve.tcalc.inactive_block(txt,chndx,inc_tags)){
expression += (subtxt=txt.substring(
inc_tags.start.ndx,
inc_tags.end.ndx+inc_tags.end.matched.length
));
chndx += subtxt.length;
}else if((subtxt=twve.tcalc.tiddlerReference(txt,chndx))){
// tiddler reference found, look for immediately
// following table reference
// Not implemented yet.
expression += subtxt;
chndx += subtxt.length;
subtxt=twve.tcalc.tableReference(txt,chndx);
expression += subtxt;
chndx += subtxt.length;
subtxt=twve.tcalc.cellReference(txt,chndx);
expression += subtxt;
chndx += subtxt.length;
}else if((subtxt=twve.tcalc.tableReference(txt,chndx))){
// table reference found, look for immediately following
// cell reference
pre_exp += subtxt;
if(cur_twtable && twve.node.matches(
cur_twtable.direct_wrapper.dom,'div.board'
)){
// A table in preview, don't know how to find the
// right table yet.
expression += subtxt;
chndx += subtxt.length;
subtxt=twve.tcalc.cellReference(txt,chndx);
expression += subtxt;
chndx += subtxt.length;
continue;
}
// Not in preivew, do the cross-table calculations.
ch = subtxt.charAt(0);
if ( ch == 't' || ch == 'T' ) {
// TableN format, referring a table with its
// index.
var rIndex=subtxt.substring(5,subtxt.length-1)*1;
var twtable = null;
if ( cur_twtable ) {
// Currently the cur_twtable is having the focus.
var cur_rIndex = cur_twtable.rIndex;
if ( rIndex == cur_rIndex ) {
// Same table, continue to process the cell
// reference.
expression += subtxt;
chndx += subtxt.length;
continue;
}
// Not the same one, find the target table.
var cur_dIndex = cur_twtable.dIndex;
cur_twtable.rIndex = rIndex;
cur_twtable.dIndex = -1;
twtable = twve.wrapper.renderedElement(
cur_twtable
);
cur_twtable.rIndex = cur_rIndex;
cur_twtable.dIndex = cur_dIndex;
} else if (twve.tcalc.cur_twwrap) {
// Currently no table is having the focus.
// It should be an expression in a non-table
// element.
var tables = twve.tcalc.cur_twwrap.findElements(
twve.table.twveSelector(null,'table')
);
if ( tables ) {
twtable = twve.table.create(tables[rIndex]);
}
}
if ( ! twtable ) {
expression += subtxt;
chndx += subtxt.length;
continue;
}
} else if ( ch == '"' || ch == "'" ) {
// Caption format, referring a table with its
// caption.
// Not yet implemented.
expression += subtxt;
chndx += subtxt.length;
subtxt=twve.tcalc.cellReference(txt,chndx);
expression += subtxt;
chndx += subtxt.length;
continue;
}
if ( !no_deref ) {
// To evaluate, look for the cell first.
next = chndx + subtxt.length;
if((subtxt=twve.tcalc.cellReference(txt,next))){
// Cell found, push the table to the calculation
// stack and do the calculation.
pre_exp += subtxt;
next += subtxt.length
twve.tcalc.prev_twtable.push(cur_twtable);
twve.tcalc.cur_twtable = twtable;
expression += twve.tcalc.cellContent(
twtable.dom.querySelectorAll('tr'),
subtxt,js_eval
);
twve.tcalc.cur_twtable=
twve.tcalc.prev_twtable.pop();
}
chndx = next;
}
}else if((subtxt=twve.tcalc.cellReference(txt,chndx))){
// cell reference found
if ( rows && !no_deref ) {
expression += twve.tcalc.cellContent(
rows,subtxt,js_eval
) || '0';
//console.log(subtxt+'=['+twve.tcalc.cellContent(rows,subtxt)+']');
} else
expression += subtxt;
chndx += subtxt.length;
}else if((subtxt=twve.tcalc.isFunction(txt,chndx))){
// No cell reference, but found some
// twve.tcalc-defined function.
//popen = subtxt.indexOf('(');
//pclose = subtxt.lastIndexOf(')');
//if ( pclose > popen + 1 ) {
// Function with arguments
// result = twve.tcalc.tmpValues.getValue(subtxt);
// if ( result === null ) {
// result = twve.tcalc.parseFunction(subtxt);
// twve.tcalc.tmpValues.storeValue(subtxt,result);
// }
// expression += result;
//} else
expression += twve.tcalc.parseFunction(subtxt);
js_eval = !twve.tcalc.fn[twve.tcalc.fn_ndx].no_eval;
chndx += subtxt.length;
}else if((subtxt=twve.tcalc.isNumeric(txt,chndx))){
if ( expression !== '' && subtxt.charAt(0) == '-' )
nop++;
expression += subtxt;
if ( pquestion > -1 && pcolon == -1 ) {
// We are in the middle of collecting a-b
// conditional assignment.
pcolon = subtxt.indexOf(':');
if ( pcolon > -1 ) pcolon += chndx;
}
chndx += subtxt.length;
}else if((subtxt=twve.tcalc.isLogicalOperator(txt,chndx))){
plogical = chndx;
expression += subtxt;
chndx += subtxt.length;
//nop++;
}else if((popen=twve.text.skipStyleText(txt,chndx,true))){
expression += txt.substring(chndx,chndx+popen);
chndx += popen;
}else{
ch = txt.charAt(chndx);
if ( '+-*/'.indexOf(ch) > -1 ) {
expression += ch;
chndx++;
nop++;
} else if ( ' \t'.indexOf(ch) > -1 ) {
expression += ch;
chndx++;
} else if ( (popen=openstr.indexOf(ch)) > -1 ) {
// An opening parenthesis is found, look for its
// matched closing counterpart.
pclose = twve.tags.nested.matchedCloseTag(
txt,chndx+1,ch,closestr.charAt(popen)
);
if ( pclose.ndx == -1 ) {
// Unbalanced parentheses, stop here
remained = txt.substring(chndx);
break;
}
// We've found the mathed closing parenthesis,
// evaluate the expression in-between.
expression += popen == 0
? twve.tcalc.evaluate(
txt.substring(chndx+1,pclose.ndx),0,true
)
: txt.substring(chndx,pclose.ndx+1);
chndx = pclose.ndx+1;
} else if ( ch == '&' ) {
// Could be an HTML entity.
pclose = txt.indexOf(';',chndx+1);
if ( pclose > -1 ) {
// Yes this is an HTML entity, skip it.
expression += txt.substring(chndx,pclose+1);
chndx = pclose + 1;
} else {
// No this is not an HTML entity.
expression += ch;
chndx++;
}
} else if ( ch == '?' ) {
// A question mark, check for conditional assignment.
if ( pquestion > -1 ) {
// There was already a question mark before,
// stop here and evaluate.
remained = txt.substring(chndx);
break;
}
// Keep the this question mark and continue.
pquestion = expression.length;
expression += ch;
chndx++;
} else if ( ch == ':' ) {
// A colon mark, check for conditioanl assignment.
if ( pquestion == -1 ) {
// There was no question mark, stop here
// to evaluate.
remained = txt.substring(chndx);
break;
}
//
pcolon = expression.length;
expression += ch;
chndx++;
} else if ( plogical > -1 || pcolon > -1 ) {
// There was a logical operator, or a conditional
// assignment,
if ( '\n;'.indexOf(ch) > -1 ) {
// and this character is breaking the logic
// flow, stop here to evaluate;
remained = txt.substring(chndx);
break;
}
// otherwise keep it and continue.
expression += ch;
chndx++;
} else {
// Otherwise break to evaluate.
remained = txt.substring(chndx);
break;
}
}
}
twve.tcalc.partialSearch = partial;
if ( ! expression.trim() )
// No expression to evaluate, return it.
return expression+remained;
// All the remaining passes are implemented in
// twve.tcalc.evaluate_arithmetics().
if ( ! js_eval )
result = expression;
else if ( pcolon > pquestion+1 ) {
// Conditional assignment.
var TFexp = expression.substring(pstyle,pquestion);
//var TF = twve.tcalc.tmpValues.getValue(TFexp);
//if ( TF === null ) {
var TF = twve.tcalc.parseTrueFalse(
twve.tcalc.evaluate_arithmetics(TFexp,0,inc_tags)
);
// twve.tcalc.tmpValues.storeValue(TFexp,TF);
//}
var Texp = expression.substring(pquestion+1,pcolon);
//var Tresult = twve.tcalc.tmpValues.getValue(Texp);
//if ( Tresult === null ) {
var Tresult=twve.tcalc.evaluate_arithmetics(Texp,0,inc_tags);
// twve.tcalc.tmpValues.storeValue(Texp,Tresult);
//}
var Fexp = expression.substring(pcolon+1);
//var Fresult = twve.tcalc.tmpValues.getValue(Fexp);
//if ( Fresult === null ) {
var Fresult=twve.tcalc.evaluate_arithmetics(Fexp,0,inc_tags);
// twve.tcalc.tmpValues.storeValue(Fexp,Fresult);
//}
result = TF ? Tresult : Fresult;
//if ( ! remained )
// twve.tcalc.tmpValues.storeValue(txt,result);
} else if ( nop > 0 ) {
//result = twve.tcalc.tmpValues.getValue(expression);
//if ( result === null ) {
result = twve.tcalc.evaluate_arithmetics(
expression,0,inc_tags
);
// twve.tcalc.tmpValues.storeValue(expression,result);
//}
//if ( ! remained )
// twve.tcalc.tmpValues.storeValue(txt,result);
} else
result = expression;
if ( callback )
callback({
text: txt,
position: start,
expression: (pre_exp || expression),
result: (result+'')
});
return result + remained;
},
//}}}
/***
!!!! twve.tcalc.calculate
***/
//{{{
result_being_calculated : '',
calculate : function(txt,peq,js_eval,no_deref,callback){
//var rspace = txt.charAt(txt.length-1) == ' ';
if ( typeof peq != 'number' || peq < 0 ) peq = 0;
if ( txt.charAt(peq) != '=' )
peq = twve.tcalc.indexOfExpression(txt,peq);
twve.tcalc.result_being_calculated = '';
//var tc = new Date();
while (peq > -1) {
txt = txt.substring(0,peq)+twve.tcalc.evaluate(
txt,peq+1,js_eval,no_deref,null,function(param){
if ( callback ) {
param.position--;
param.expression = '='+param.expression;
callback(param);
}
});
if ( ! config.options.chktwveTcalcInTextCalc )
break;
twve.tcalc.result_being_calculated = txt;
peq = twve.tcalc.indexOfExpression(txt,peq);
}
//if ( config.options.chktwveTcalcDebugMode )
// displayMessage(
// 'calculation time: '+(new Date()-tc)+' ms'
// );
return txt;
},
//}}}
/***
!!!! twve.tcalc.calculateTextNode
***/
//{{{
calculateTextNode : function(node){
// Calculate the expressions in a text node.
var txt = node.nodeValue;
var nodestart = 0;
if ( txt ) {
twve.tcalc.calculate(txt,0,true,false,function(param){
var expnode = node.splitText(param.position-nodestart);
node = expnode.splitText(
param.expression.length
);
nodestart = param.position+param.result.length;
var resultnode = document.createElement('span');
resultnode.className = 'tcalc';
resultnode.appendChild(
document.createTextNode(param.result)
);
resultnode.title = param.expression;
node.parentNode.replaceChild(resultnode,expnode);
});
}
},
//}}}
/***
!!!! twve.tcalc.calculateNode
***/
//{{{
calculateNode : function(node,exclude){
// Calculate a dom node, excluding those specified by exlude (CSS expression).
if ( node.nodeType == 3 ) {
twve.tcalc.calculateTextNode(node);
} else if (!twve.node.matches(node,exclude)) {
var curNode = node.firstChild;
while ( curNode ){
node = curNode.nextSibling;
if ( curNode.nodeName!='BR' &&
! twve.node.matches(curNode,exclude) ){
if ( twve.MathJax ){
if (!twve.MathJax.inline.is(curNode)){
twve.tcalc.calculateNode(curNode,exclude);
}
} else
twve.tcalc.calculateNode(curNode,exclude);
}
curNode = node;
}
}
},
//}}}
/***
!!!! twve.tcalc.prepareElements
***/
//{{{
prePrepareElements : null,
cur_twwrap : null,
prepareElements : function(twwrap){
// Prepare elements in the wrapper.
if ( ! twve.tcalc.prePrepareElements.apply(this,arguments)
|| ! config.options.chktwveTcalcEnabled
|| ! config.options.chktwveTcalcInTextCalc
|| ! twwrap.tiddler )
return null;
// Calculate expressions in all elements
twve.tcalc.cur_twwrap = twwrap;
var sel = twve.selector.create();
sel.excludeSelector(
twve.table.wrapper.getSelector()+',CODE'
);
if ( twve.MathJax ){
sel.excludeSelector(
twve.MathJax.displayed.getSelector()
).excludeSelector(
twve.MathJax.inline.getSelector()
);
}
twve.tcalc.calculateNode(twwrap.dom,sel.exclude);
twve.tcalc.cur_twwrap = null;
return twwrap;
},
//}}}
/***
!!!! twve.tcalc.wikify
***/
//{{{
preWikify : null,
wikify : function(txt,elem,children) {
var focus = twve.tiddler.focusElem();
var node = focus ? focus.getElement() : null;
if ( node && twve.node.matches(node,'table') )
return twve.tcalc.preWikify.call(this,txt,elem,children);
if ( twve.node.matches(elem,'div.board') ) {
// Preview board
var no_deref = true;
if ( twve.node.matches(node,'th,td') ) {
no_deref = false;
twve.tcalc.cells_being_evaluated.push(node);
}
try {
var cur_twtable = twve.tcalc.cur_twtable;
if ( ! cur_twtable && focus && focus.is('table') )
twve.tcalc.cur_twtable = focus;
txt = twve.tcalc.calculate(txt,0,true,no_deref);
} catch(e){
} finally {
if ( ! cur_twtable ) twve.tcalc.cur_twtable = null;
if ( ! no_deref ) {
twve.tcalc.cells_being_evaluated.pop();
}
}
return twve.tcalc.preWikify.call(this,txt,elem,children);
} else {
// Regular element
elem = twve.tcalc.preWikify.apply(this,arguments);
if ( ! twve.node.matches(elem,'th,td') ) {
if ( elem.length )
for(var i=0,len=elem.length; i<len; i++)
twve.tcalc.calculateNode(elem[i]);
else
twve.tcalc.calculateNode(elem);
}
return elem;
}
},
//}}}
/***
!!!! twve.tcalc.cyclicReference
***/
//{{{
cells_being_evaluated : [],
cyclicReference : function ( cell ) {
for (var c=0; c<twve.tcalc.cells_being_evaluated.length; c++)
if ( twve.tcalc.cells_being_evaluated[c] == cell )
return 'Error: ' +
(c == twve.tcalc.cells_being_evaluated.length-1) ?
'Self reference.' :
'Cyclic reference.';
},
//}}}
/***
!!!! twve.tcalc.curCellCol
***/
//{{{
curCellCol : function(){
var cells = twve.tcalc.cells_being_evaluated;
return (cells && cells.length>0)
? twve.table.cellColIndex(cells[cells.length-1])
: -1;
},
//}}}
/***
!!!! twve.tcalc.curCellRow
***/
//{{{
curCellRow : function(){
var cells = twve.tcalc.cells_being_evaluated;
return (cells && cells.length>0)
? twve.table.cellRowIndex(cells[cells.length-1])
: -1;
},
//}}}
/***
!!!! twve.tcalc.sortableGridHtml
***/
//{{{
sortableGridHtml : function ( txt ) {
return '<a href="#" class="sortheader" onclick="config.macros.sortableGridPlugin.ts_resortTable(this);return false;">'
+ txt
+ '<span class="sortarrow"> </span></a>';
},
//}}}
/***
!!!! twve.tcalc.cellTitleExpression
***/
//{{{
cellTitleExpression : function (cell) {
if ( ! cell.title ) return -1;
var pn = cell.title.indexOf('\n');
if ( pn < 0 ) return -1;
// There is a \n in cell title, check its row-spanning property.
var rspan = twve.table.cellRowSpan(cell);
if ( rspan > 1 ) {
// A row spanned cell, there would be a total of (rspan-1)
// \n's in the cell title. Skip to the last one.
for ( var r=2; r<rspan; r++ )
pn = cell.title.indexOf('\n',pn+1);
}
// Now look for the signature of an expression, an equal sign.
var pe = cell.title.indexOf('=',pn+1);
return pe < 0 ? -1 : (pn+1);
// The above codes can be wrong when the equal sign is not really
// indicating an expression, such as within a URL, but that should
// be fine in most cases. If, however, we really need to consider
// the cases that could lead to a wrong determination, we can use
// var pe = twve.text.skipToActive(
// cell.title,'=',pn+1,null,twve.tags.inactiveTags()
// );
// to take care of that. For now I will stay with what it is and
// see how it goes. Vincent 2015/02/16
},
//}}}
/***
!!!! twve.tcalc.nodeText
***/
//{{{
nodeText : function(node,txt,thisonly) {
if ( ! node ) return '';
if ( txt === undefined || txt === null ) {
// Get the text.
if ( node.nodeType == 3 ) return node.nodeValue;
else if ( node.nodeName == 'BR' ) return '\n';
txt = '';
var child = node.childNodes;
if ( thisonly ) {
for ( var i=0,len=child.length; i<len; i++ )
if ( child[i].nodeType == 3 )
txt += child[i].nodeValue;
} else{
for ( var i=0,len=child.length; i<len; i++ )
txt += twve.tcalc.nodeText(node.childNodes[i]);
}
if ( txt
&& (config.tableSorting
|| config.macros.sortableGridPlugin) ) {
var p = txt.indexOf('\u2191');
if ( p == -1 ) p = txt.indexOf('\u2193');
if ( config.macros.sortableGridPlugin )
p -= 2;
if ( p > -1 ) txt = txt.substring(0,p);
}
switch ( node.style.textAlign || node.align ) {
case 'left' :
if(txt.charAt(txt.length-1)!==' ') txt += ' ';
break;
case 'right' :
if(txt.charAt(0)!==' ') txt = ' '+txt;
break;
case 'center' :
if(txt.charAt(0)!==' ') txt = ' '+txt;
if(txt.charAt(txt.length-1)!==' ') txt +=' ';
}
return txt;
} else {
// Set the text.
var p = -1;
while ( (p=txt.indexOf('\\',p+1)) >= 0 )
txt = txt.substring(0,p)+txt.substring(p+1);
if ( twve.table.cellRowIndex(node) == 0 ) {
if ( config.tableSorting ) {
var span = node.querySelector('span');
node.textContent = txt;
if ( span ) {
var html = span.innerHTML,
p = html.indexOf('\u2191');
if ( p == -1 ) p = html.indexOf('\u2193');
if ( p > -1 ) node.appendChild(span);
}
} else if ( config.macros.sortableGridPlugin ) {
var spanselector = 'a.sortheader span';
var span = node.querySelector(spanselector);
// This is copied from SortableGridPlugin
// for sorting purposes.
if ( span ) {
node.innerHTML =
twve.tcalc.sortableGridHtml(txt);
var newspan = node.querySelector(spanselector);
newspan.innerHTML = span.innerHTML;
newspan.setAttribute(
'sortdir', span.getAttribute('sortdir')
);
} else node.textContent = txt;
} else
node.textContent = txt;
} else if (node.nodeType == 3 ){
node.nodeValue = txt;
} else {
twve.node.wikify(txt,node);
}
}
},
//}}}
/***
!!!! twve.tcalc.evaluateCell
***/
//{{{
evaluateCell : function (cell,js_eval,ctxt,peq,force) {
// Evaluate a table cell
var cur_txt = '';
if ( ! force ) {
cur_txt = twve.tcalc.nodeText(cell);
if ( twve.tcalc.indexOfExpression(cur_txt) == -1 )
// There is no need to do calculations in this cell.
return cur_txt;
}
if ( ! ctxt ) {
ctxt = cur_txt ? cur_txt : twve.tcalc.nodeText(cell);
if ( !ctxt ) {
// No text in this cell, meaning no expressions at all.
if ( cell.title ) {
// If there is a cell title,
var p = twve.tcalc.cellTitleExpression(cell);
if ( p > 0 )
// and it contains an expression, remove it.
cell.title = cell.title.substring(0,p-1);
}
return '';
}
}
//console.log('already evaluated: ctxt=['+ctxt+']=['+cur_txt+']');
if (!peq) peq = twve.tcalc.indexOfExpression(ctxt);
var txt2;
if ( peq > -1 ) {
// There is an expression in the cell content.
if ( cell.title ) {
// We already has a title,
var p = twve.tcalc.cellTitleExpression(cell);
cell.title = (p > 0
? cell.title.substring(0,p)
: (cell.title+'\n'))
+ ctxt;
} else cell.title = ctxt;
var err = twve.tcalc.cyclicReference ( cell );
if ( err ) {
twve.tcalc.nodeText(
cell,
ctxt+'<br><br>'+cell.title+'<br>'+err
);
} else {
twve.tcalc.cells_being_evaluated.push(cell);
txt2 = twve.tcalc.calculate(ctxt,peq,js_eval);
/*
txt2 = twve.tcalc.isNumeric(
ctxt,0,-1,true,'',
config.options.chktwveTcalcThousandSeparated
);
*/
if ( txt2 != ctxt )
twve.tcalc.nodeText(cell,txt2);
twve.tcalc.cells_being_evaluated.pop();
return txt2;
}
} else {
//if ( cell.title ) cell.title = cell.title.split('\n')[0];
if ( cell.childNodes.length==1 &&
config.options.chktwveTcalcThousandSeparated &&
(txt2=twve.tcalc.isNumeric(ctxt,0,-1,true,'.',false)) ) {
if ( ctxt.trim() != txt2.trim() ) {
// The .trim() above is necessary because there could be
// white-spaces/line-breaks in the cell content.
var p = ctxt.indexOf(txt2);
twve.tcalc.nodeText(
cell,
(ctxt.substring(0,p) +
twve.tcalc.separateNumber(txt2) +
ctxt.substring(p+txt2.length))
);
return txt2;
} else {
twve.tcalc.nodeText(
cell,twve.tcalc.separateNumber(txt2)
);
return txt2;
}
}
}
return ctxt;
},
//}}}
/***
!!!! twve.tcalc.addOptionsMenu
***/
//{{{
addOptionsMenu : function(menu){
return menu.addMenu(
"''twve.tcalc'' Options",
config.macros.twveTcalcOptions.handler
);
},
//}}}
/***
!!!! twve.tcalc.getOptionsMenu
***/
//{{{
preGetOptionsMenu : null,
getOptionsMenu : function(item){
// Replacing the twve.tiddler.getOptionsMenu for twve.table.
var menu = twve.tcalc.preGetOptionsMenu.apply(this,arguments);
twve.tcalc.addOptionsMenu(menu);
return menu;
},
//}}}
/***
!!!! twve.tcalc.timer
***/
//{{{
timer : null,
//}}}
/***
!!!! twve.tcalc.findTimer
***/
//{{{
findTimer : function(twtable){
if ( twve.tcalc.timer )
for ( var t = twve.tcalc.timer.length-1; t >= 0; t-- ) {
var timer = twve.tcalc.timer[t];
if ( timer.table.wrapper_title == twtable.wrapper_title
&& timer.table.dIndex == twtable.dIndex ) {
return timer;
}
}
return null;
},
//}}}
/***
!!!! twve.tcalc.removeTimer
***/
//{{{
removeTimer : function(twtable){
var timer = twve.tcalc.findTimer(twtable);
if ( timer ) {
clearInterval(timer.pid);
twve.tcalc.timer.splice(
twve.tcalc.timer.indexOf(timer),1
);
}
return timer;
},
//}}}
/***
!!!! twve.tcalc.addTimer
***/
//{{{
addTimer : function(twtable,interval){
if ( ! twve.tcalc.timer )
twve.tcalc.timer = [];
else
twve.tcalc.removeTimer(twtable);
var timer = twve.object.create();
timer.table = twtable;
timer.pid = setInterval(function(){
twtable.calculate('',true);
},interval);
timer.interval = interval;
twve.tcalc.timer.push(timer);
return timer;
},
//}}}
/***
!!!! twve.tcalc.getTableMenu
***/
//{{{
preGetTableMenu : null,
getTableMenu : function(){
var menu = twve.tcalc.preGetTableMenu.apply(this,arguments);
twve.tcalc.addOptionsMenu(menu);
var label = 'Recalculate';
if ( ! menu.findItem(label) ) {
var item = menu.addItem(
label,'Recalculate this table'
);
// create sub menu for recalculation
item.submenu = twve.menu.create(item,true);
// Add the 1st item "now".
item.submenu.addItem(
'now (and stop the timer)'
).click = function(){
var twtable = twve.tiddler.focusElem();
twve.tcalc.removeTimer(twtable);
twtable.calculate('',true);
};
// Then the 2nd item "every 1 sec".
item.submenu.addItem(
'every 1 sec (start the timer)'
).click = function(){
twve.tcalc.addTimer(twve.tiddler.focusElem(),1000);
};
// And the 3rd item "every 30 sec".
item.submenu.addItem(
'every 30 sec (start the timer)'
).click = function(){
var twtable = twve.tiddler.focusElem();
twtable.calculate('',true);
twve.tcalc.addTimer(twtable,30000);
};
}
return menu;
},
//}}}
/***
!!!! twve.tcalc.tableCreate
***/
//{{{
preTableCreate : null,
tableCreate : function(){
var twtable = twve.tcalc.preTableCreate.apply(this,arguments);
// startSorting
var preStartSorting = twtable.startSorting;
twtable.startSorting = function() {
return (twve.tcalc.block_update =
preStartSorting.apply(this,arguments));
};
// refreshSelf
var preRefreshSelf = twtable.refreshSelf;
twtable.refreshSelf = function(){
if ( ! twtable.editNode ) {
var timer = twve.tcalc.removeTimer(twtable);
preRefreshSelf.apply(this,arguments);
if ( timer )
twve.tcalc.addTimer(twtable,timer.interval);
} else
preRefreshSelf.apply(this,arguments);
return twtable;
};
// cellReferenceTitle
twtable.cellReferenceTitle = function ( cell, r, c ) {
var span = twve.table.cellSpans(cell);
var ref = '';
// Prepare cell references
for ( var rr = 0; rr < span.row; rr++ ) {
for ( var cc = span.col-1; cc >= 0; cc-- ) {
ref += twve.tcalc.indexToReferenceCol(c-cc)+(r+rr);
if ( cc > 0 ) ref += ' | ';
}
if ( rr < span.row-1 ) ref += '\n';
}
// Set the cell title
if ( cell.title ) {
// If the cell already has a title,
if ( cell.title != ref ) {
// that is different from the new one, then we change
// the current title.
var p = twve.tcalc.cellTitleExpression(cell);
cell.title = ref + (p > 0
? cell.title.substring(p-1)
: ('\n'+cell.title));
}
} else cell.title = ref;
};
// referenceToTest
twtable.referenceToTest = function (r, c) {
var refr=twve.tcalc.indexToReferenceRow(r);
var refc=twve.tcalc.indexToReferenceCol(c);
return {
ndx:{row:r, col:c},
rel:(refc+refr),
abs:(refc+'$'+refr)
};
};
// includeCell
twtable.includeCell = function (args,r,c) {
args = twve.tcalc.splitArguments(args);
for (var i=0; i<args.length; i++){
var arg=twve.tcalc.allArguments(args[i]);
if ( arg ) {
if (twtable.includeCell (arg)) return true;
} else {
arg = args[i];
arg = twve.text.removeStyleText(arg).trim();
if ( arg.indexOf(':') > -1 ) {
var ndx=twve.tcalc.consecutiveCells(arg);
if ((ndx.start.row<=r) && (r<=ndx.end.row)
&& (ndx.start.col<=c) && (c<=ndx.end.col))
return true;
}
}
}
return false;
};
//}}}
/***
!!!!! twtable.isReferring
***/
//{{{
/*
twtable.isReferring = function(ctxt,ref){
// Tests if a cell text (ctxt) is referring the cell reference ref.
// The cell reference must be an object returned by
// twtable.referenceToTest().
var pref = -1;
do {
pref = ctxt.indexOf(ref.rel,pref+1);
if ( pref == -1 ) prel = ctxt.indexOf(ref.abs);
if ( pref == -1 ) return false;
// There is something like ref in ctxt, make sure it is
// an exact match.
var rtxt = twve.tcalc.cellReference(ctxt,pref);
if ( rtxt == ref.rel || rtxt == ref.abs ) return true;
} while ( true );
};
*/
//}}}
/***
!!!!! twtable.calculate
***/
//{{{
twtable.calculate = function (txt,changed) {
// Calculates a table represented by twtable.
// Arguments:
// txt -- (Optional) The text (containing the table).
// Normally twtable already contains the
// tiddler text so you are fine to leave
// this argument undefined. However, in
// cases where the modified text hasn't been
// saved back to twtable, the modified text
// can be passed in here.
// changed -- (Optional) An object containing the
// (row, col) indexes of the changed cells.
// It is given when the table was not
// refreshed before calling this function.
// In such cases we need to first clear the
// calculated results and then do the
// calculations.
if ( ! (config.options.chktwveTcalcEnabled
|| config.options.chktwveTcalcAllTables
|| twtable.hasClass('spreadsheet')) )
return false;
// Deactivate the MathJax handler if installed.
if ( twve.MathJax ) twve.MathJax.enabled = false;
// Announcing calculation if desired.
if ( config.options.chktwveTcalcDebugMode )
displayMessage(
'Calculating table: '+twtable.getCaption()
);
if ( ! txt ) {
txt = twtable.getText();
if ( txt.charAt(txt.length-1) != '|' )
// We are in the preview board and an extract
// character has been inserted to mimic the caret.
txt += '|';
}
// Temporarily disable the IncludeCSS option
var includeCSS = config.options.chktwveTableIncludeCSS;
config.options.chktwveTableIncludeCSS = false;
// Record the beginning time of preparation.
var tp = new Date();
// Start preparation
// Catch the table for calculation
twve.tcalc.cur_twtable = twtable;
// Get the table cell positions in the wiki text.
var cpos = twve.table.allCells(txt,0,txt.length);
// Table rows.
var tr = twtable.dom.querySelectorAll('tr');
// Row cells.
var trc = [];
for (var r=0,rlen=tr.length; r<rlen; r++){
trc[r] = tr[r].querySelectorAll('th,td');
}
/*
if ( changed ) {
// Changed cell is specified, clear the calculated
// results.
var ti = new Date();
for (var r=0,rlen=tr.length; r<rlen; r++){
for (var c=0,clen=trc[r].length; c<clen; c++){
var cell = trc[r][c];
var cndx = twve.table.cellColIndex(cell);
var ctxt = cpos[r][cndx]
? twtable.getCellText(cpos[r][cndx],txt)
: '';
// Leave for empty cells
if ( ! ctxt ) continue;
// Check for formulas to calculate.
var peq = twve.tcalc.indexOfExpression(ctxt);
if ( peq >= 0 )
// If the cell text contains a formula,
// put it back for recalculation.
twve.tcalc.nodeText(cell,ctxt);
}
}
// Report clear time if desired.
if ( config.options.chktwveTcalcDebugMode )
displayMessage(
'clear time: '+(new Date()-ti)+' ms'
);
}
*/
// Calculate preparation time.
tp = new Date() - tp;
// Start the calculation
var tc = new Date(); // Record the beginning time.
// Calculate caption
var ctxt = twtable.getCaption(txt);
var peq = twve.tcalc.indexOfExpression(ctxt);
if ( peq >= 0 )
// If the caption text contains a formula
twve.node.wikify(
twve.tcalc.calculate(ctxt,peq,true),
twtable.wrappers.cap
);
// Calculate cells
for (var r=0,rlen=tr.length; r<rlen; r++){
for (var c=0,clen=trc[r].length; c<clen; c++){
var cell = trc[r][c];
//var rndx = twve.table.cellRowIndex(cell);
var cndx = twve.table.cellColIndex(cell);
ctxt = cpos[r][cndx]
? twtable.getCellText(cpos[r][cndx],txt)
: '';
twtable.cellReferenceTitle(cell,r,cndx);
// Leave for empty cells
if ( ! ctxt ) continue;
// Check for formulas to calculate.
peq = twve.tcalc.indexOfExpression(ctxt);
if ( peq >= 0 ) {
// If the cell text contains a formula
//console.log('calculating cell['+r+','+c+')');
//try {
twve.tcalc.evaluateCell(
cell,true,ctxt,peq,changed
);
//} catch ( e ) {
// console.log(e);
// if ( config.options.chktwveTcalcDebugMode ) {
// twve.tcalc.nodeText(
// cell,
// twve.tcalc.nodeText(cell) +
// '<br><br>'+expression+'<br>'+e
// );
// }
//}
}
}
}
// End of calculation.
// Calculate the time of calculation.
tc = new Date() - tc;
// Release the table.
twve.tcalc.cur_twtable = null;
// Report preparation/calculation time if desired.
if ( config.options.chktwveTcalcDebugMode ) {
displayMessage(
'preparation time: '+tp+' ms'
);
displayMessage(
'calculation time: '+tc+' ms'
);
displayMessage(
'total time: '+(tc+tp)+' ms'
);
}
// Restore the IncludeCSS option.
config.options.chktwveTableIncludeCSS = includeCSS;
// Reactivate the MathJax handler if installed.
if ( twve.MathJax ) twve.MathJax.enabled = true;
// Clear temperary storage.
twve.tcalc.tmpValues.clearStorage();
return true;
};
//}}}
/***
!!!!! twtable.initRows
***/
//{{{
var preInitRows = twtable.initRows;
twtable.initRows = function (txt) {
if ( preInitRows.apply(this,arguments) ) {
if ( config.options.chktwveTcalcEnabled
&& (config.options.chktwveTcalcAllTables
|| twtable.hasClass('spreadsheet')) ) {
// Do calculations.
twtable.calculate(txt);
}
}
return true;
};
//}}}
/***
!!!!! twtable.changed
***/
//{{{
var preChanged = twtable.changed;
twtable.changed = function (param) {
var txt = param.text;
if (!txt) return preChanged.call(this,param);
switch ( param.what ) {
case 'CAPTION MODIFIED' :
case 'MODIFIED' :
twtable.calculate(txt,true);
break;
case 'ROW INSERTED' :
param.text = twve.tcalc.incCellReference(
txt,param.where,1
);
break;
case 'ROW DELETED' :
param.text = twve.tcalc.incCellReference(
txt,param.where+1,-1
);
break;
case 'ROW PASTED' :
// Adjust the relative row references in the just
// pasted row.
twve.tcalc.incReferencesInRow(
txt,param.where,param.from,param.where
);
break;
case 'COL INSERTED' :
param.text = twve.tcalc.incCellReference(
txt,null,null,0,-1,param.where,1
);
break;
case 'COL DELETED' :
param.text = twve.tcalc.incCellReference(
txt,null,null,0,-1,param.where+1,-1
);
break;
case 'COL PASTED' :
// Adjust the relative column references in the just
// exchanged column.
param.text = twve.tcalc.incCellReference(
txt, null, null,
param.where, param.where, 0,
(param.where-param.from)
);
break;
case 'ROW MOVED' :
// During sorting process.
// Adjust the relative row references in the just
// moved row.
txt = twve.tcalc.incReferencesInRow(
txt,param.to,param.from,param.to
);
// Then adjust the absolute row references referring
// to the just moved row.
param.text = twve.tcalc.updateCellReference(
txt,param.from,null,param.to,null,'abs'
);
break;
case 'ROW EXCHANGED' :
twve.tcalc.startBlockUpdate();
// Adjust the relative row references in the just
// exchanged rows.
txt = twve.tcalc.incReferencesInRow(
txt,param.to,param.from,param.to
);
txt = twve.tcalc.incReferencesInRow(
txt,param.from,param.to,param.from
);
// Then adjust the absolute row references referring
// to the just exchanged rows.
txt = twve.tcalc.updateCellReference(
txt,param.from,null,param.to,null,'abs'
);
txt = twve.tcalc.updateCellReference(
txt,param.to,null,param.from,null,'abs'
);
param.text = twve.tcalc.endBlockUpdate(txt);
break;
case 'COL EXCHANGED' :
twve.tcalc.startBlockUpdate();
// Adjust the relative column references in the just
// exchanged columns.
txt = twve.tcalc.incCellReference(
txt, null, null,
param.to, param.to, 0,
(param.to-param.from)
);
txt = twve.tcalc.incCellReference(
txt, null, null,
param.from, param.from, 0,
(param.from-param.to)
);
// Then adjust the absolute column references referring
// to the just exchanged columns.
txt = twve.tcalc.updateCellReference(
txt,null,param.from,null,param.to,'abs'
);
txt = twve.tcalc.updateCellReference(
txt,null,param.to,null,param.from,'abs'
);
param.text = twve.tcalc.endBlockUpdate(txt);
break;
case 'SORTED' :
param.text = twve.tcalc.endBlockUpdate(txt);
twtable.calculate(param.text);
break;
case 'TRANSPOSED' :
param.text = twve.tcalc.transposed(txt);
break;
}
return preChanged.call(this,param);
};
//}}}
/***
!!!!! twtable.copyOrCut
***/
//{{{
twtable.copyOrCut = function (ta,cut) {
if ( twve.node.matches(twtable.editNode,'th,td') ) {
twve.tcalc.copied_from = twtable.editNode;
twve.tcalc.cut_from = cut ? twtable.editNode : null;
}
};
//}}}
/***
!!!!! twtable.pasateIn
***/
//{{{
twtable.pasteIn = function (ta) {
// Auto adjustment of cell reference upon copy-and-pasting
// within the same table.
var from_cell = twve.tcalc.copied_from;
if ( from_cell ) {
// Something pasted from another cell.
var title_from = from_cell.title.split('\n');
var r_from=twve.tcalc.referenceToIndexRow(title_from[0]);
var c_from=twve.tcalc.referenceToIndexCol(title_from[0]);
var title_to = twtable.editNode.title.split('\n');
var r_to = twve.tcalc.referenceToIndexRow(title_to[0]);
var c_to = twve.tcalc.referenceToIndexCol(title_to[0]);
if ( title_from.length > 1 ) {
// The source cell contains an expression for
// calculations. Obtain the paste-in text and adjust
// cell reference if necessary.
var txt = ta.value, ref, newref;
var r, c, abs_r, abs_c;
var chndx = twve.tcalc.indexOfExpression(txt)+1;
if ( chndx > 0 ) {
while ( chndx < txt.length ) {
if((ref=twve.tcalc.tiddlerReference(txt,chndx)))
chndx += ref.length;
if((ref=twve.tcalc.tableReference(txt,chndx)))
chndx += ref.length;
if((ref=twve.tcalc.cellReference(txt,chndx))){
r = twve.tcalc.referenceToIndexRow(ref);
abs_r = twve.tcalc.absoluteRow(ref);
c = twve.tcalc.referenceToIndexCol(ref);
abs_c = twve.tcalc.absoluteCol(ref);
if (!abs_r) r = r_to + (r-r_from);
if (!abs_c) c = c_to + (c-c_from);
newref = c>=0
? twve.tcalc.indexToReferenceCol(c,abs_c)
: '{'+c+'}';
newref += r>=0
? ((abs_r?'$':'')+r)
: '{'+r+'}';
txt=txt.substring(0,chndx)+
newref+
txt.substring(chndx+ref.length);
chndx += newref.length;
} else chndx++;
}
ta.value = txt;
}
} else {
// The source cell contains regular wikitext.
twve.tcalc.copied_from = null;
}
if ( twve.tcalc.cut_from &&
twve.tcalc.nodeText(twve.tcalc.cut_from)=='' ) {
// The last cell was fully cut and then pasted
// to this one.
var table = twve.table.create(twtable.dom);
var txt = twtable.getText();
txt = twve.tcalc.updateCellReference(
txt,table.start,table.end,
r_from,c_from,r_to,c_to
);
table.setText(txt);
}
twve.tiddler.previewEditBox(ta);
}
};
//}}}
/***
!!!!! End of twtable.
***/
//{{{
return twtable;
}
};
//}}}
/***
!!!! twve.tcalc.vector
***/
//{{{
twve.tcalc.vector = {
//}}}
/***
!!!! twve.tcalc.vector.is
***/
//{{{
is : function(src,start){
if ( typeof src == 'string' ) {
var pl = twve.position.getPosition(start);
// Skip the leading white spaces, tabs and \n's.
while ( pl < src.length &&
' \t\n'.indexOf(src.charAt(pl))>-1 ) pl++;
// If src does not start from a '(', stop here.
if ( src.charAt(pl) !== '(' ) return '';
// Look for its matched ')'.
var pr = twve.tags.nested.matchedCloseTag(
src,pl+1,'(',')'
);
// If there is no ')' found, stop here.
if ( pr.ndx == -1 ) return '';
// Make sure there are comma's in the parentheses.
var p = src.indexOf(',',pl+1);
return (p>pl+1 && p<pr.ndx)
? src.substring(pl,pr.ndx+1) : '';
} else
return src.dot && src.cross;
},
//}}}
/***
!!!! twve.tcalc.vector.create
***/
//{{{
create : function(src,tested){
var v = [];
//}}}
/***
!!!!! vector.dim
***/
//{{{
v.dim = function(){
return v.length;
};
//}}}
/***
!!!!! vector.add
***/
//{{{
v.add = function(u){
var vlen = v.length;
var i;
if ( typeof u == 'number' ){
// Addition of a scalar to this vector.
for(i=0; i<vlen; i++)
v[i] += u;
} else {
// Addition of two vectors.
var ulen = u.length;
if ( vlen >= ulen ) {
// v has more components
for (i=0; i<ulen; i++)
v[i] += u[i];
} else {
// u has more components
for (i=0; i<vlen; i++)
v[i] += u[i];
for ( ; i<ulen; i++)
v[i] = u[i];
}
}
return v;
};
//}}}
/***
!!!!! vector.subtract
***/
//{{{
v.subtract = function(u){
var vlen = v.length;
var i;
if ( typeof u == 'number' ) {
// Subtraction of a scalar from this vector.
for(i=0; i<vlen; i++)
v[i] -= u;
} else {
// Subtraction of two vectors.
var ulen = u.length;
if ( vlen >= ulen ) {
// v has more components
for (i=0; i<ulen; i++)
v[i] -= u[i];
} else {
// u has more components
for (i=0; i<vlen; i++)
v[i] -= u[i];
for ( ; i<ulen; i++)
v[i] = -u[i];
}
}
return v;
};
//}}}
/***
!!!!! vector.multiply
***/
//{{{
v.multiply = function(s){
// Multiplication with a scalar s.
for (var i=0,len=v.length; i<len; i++)
v[i] *= s;
return v;
};
//}}}
/***
!!!!! vector.divideBy
***/
//{{{
v.divideBy = function(s){
// Division by a scalar s.
for (var i=0,len=v.length; i<len; i++)
v[i] /= s;
return v;
};
//}}}
/***
!!!!! vector.dot
***/
//{{{
v.dot = function(u){
// v dot u
var len = Math.min(v.length,u.length);
var result = 0;
for (var i=0; i<len; i++)
result += v[i] * u[i];
return result;
};
//}}}
/***
!!!!! vector.cross
***/
//{{{
v.cross = function(u){
// v cross u
// Currently we only implement the cross product in 3-D world.
// Later we may extend it to higher dimensions.
var vlen = v.length;
var ulen = u.length;
if ( vlen == ulen ) {
switch (vlen) {
case 3 :
var w = twve.tcalc.vector.create();
w[0] = v[1]*u[2] - v[2]*u[1];
w[1] = v[2]*u[0] - v[0]*u[2];
w[2] = v[0]*u[1] - v[1]*u[0];
return w;
}
}
return null;
};
//}}}
/***
!!!!! vector.toString
***/
//{{{
v.toString = function(){
var result = '(';
for (var i=0,len=v.length-1; i<len; i++)
result += v[i]+', ';
return result+v[len]+')'
};
//}}}
/***
!!!!! End of vector definition.
***/
//{{{
if ( ! tested ) tested = twve.tcalc.vector.is(src);
if ( tested ) {
if ( typeof src === 'string' ) {
// src is a string in the form of (v1, v2, v3, ...)
var pl = src.indexOf('(')+1;
var n = 0;
while ( true ) {
var pr = src.indexOf(',',pl);
if ( pr > -1 ) {
v[n++] = parseFloat(src.substring(pl,pr));
pl = pr+1;
} else {
v[n] = parseFloat(
src.substring(pl,src.length-1)
);
break;
}
}
} else {
// src is a vector
for (var i=0,len=src.length; i<len; i++)
v[i] = src[i];
}
}
return v;
}
};
//}}}
/***
!!!! twve.tcalc.addNumeral
***/
//{{{
twve.tcalc.addNumeral = function(result,numtxt){
if ( result ) {
var ch = numtxt.charAt(0);
result += (ch=='+' || ch=='-')
? numtxt
: ('+'+numtxt);
} else
result = numtxt;
return result;
};
//}}}
/***
!!!! twve.tcalc.getSourceText
***/
//{{{
twve.tcalc.getSourceText = function(txt){
if ( typeof txt != 'string' ) return txt;
switch ( txt.toLowerCase() ) {
case 'this' :
// Content of this cell being evaluated.
if ( twve.tcalc.result_being_calculated )
return twve.tcalc.result_being_calculated;
var cells = twve.tcalc.cells_being_evaluated;
return twve.tcalc.result_being_calculated ||
twve.tcalc.nodeText(cells[cells.length-1]);
case 'caption' :
case 'title' :
// Caption of the table.
if ( twve.tcalc.cur_twtable )
return twve.tcalc.cur_twtable.getCaption();
default :
var url = twve.url.create(txt);
return url && url.getTarget()
? url.getContent()
: txt;
}
};
//}}}
/***
!!!! twve.tcalc.valueIn
***/
//{{{
twve.tcalc.valueIn = function(param){
// Find the param.ndx(th) numerical value in param.txt
var p = twve.position.create(0);
if ( param.curp === undefined )
param.curp = twve.position.create(0);
else {
p.ndx = param.curp.ndx;
if ( p.ndx < 0 ) p.ndx = 0;
}
if (typeof param.curn != 'number' || param.curn < -1)
param.curn = -1;
var len = param.txt.length;
var numtxt = '';
var tags = twve.tags.nested.create(
['(', '[', '{'],
[')', ']', '}']
);
while ( true ) {
var partial = twve.tcalc.partialSearch;
twve.tcalc.partialSearch = true;
while ( p.ndx < len && ! numtxt ) {
if(tags.open.indexOf(param.txt.charAt(p.ndx))>=0){
p.ndx++;
p = tags.matchedCloseTag(param.txt,p);
if ( p.ndx < 0 ) return '';
p.ndx++;
}
numtxt = twve.tcalc.isNumeric(param.txt,p.ndx++);
}
twve.tcalc.partialSearch = partial;
if ( numtxt ) {
p.ndx += numtxt.length-1;
// The -1 above is because of the p++ in the above
// while loop.
if ( ++param.curn == param.ndx ) {
param.curp.ndx = p.ndx;
p.ndx = numtxt.length;
return twve.tcalc.isPartsPerNotation(
numtxt,0,p.ndx,p.ndx-1
) || numtxt;
}
numtxt = '';
} else
return '';
}
};
//}}}
/***
!!!! twve.tcalc.matchPreceding
***/
//{{{
twve.tcalc.matchPreceding = function(param){
param.curp = twve.text.indexOf(
param.txt,param.preceding,param.curp
);
if ( param.curp.ndx < 0 ) return '';
param.curp.ndx += param.curp.matched.length;
var result = '';
if ( param.everything ) {
// Returns everything after param.preceding.
result = param.txt.substring(param.curp.ndx);
} else {
// Look for numeric value that is immediately preceded by
// param.preceding.
var partial = twve.tcalc.partialSearch;
twve.tcalc.partialSearch = true;
result = twve.tcalc.isNumeric(
param.txt,param.curp.ndx
);
twve.tcalc.partialSearch = partial;
if ( result && result.indexOf('\n')<0 ) {
// There is numeric value immedialy following the preceding.
param.curp.ndx += result.length;
}
}
return result;
};
//}}}
/***
!!!! twve.tcalc.matchFollowing
***/
//{{{
twve.tcalc.matchFollowing = function(param,all){
// Check if the following is matched in param.txt at index
// param.curp.ndx.
if ( ! param.following ) return '';
// The following is given.
// Look for numerical value that is immediately followed by the
//
// Skip the white spaces at index p.
var regwhite = /\s/, ch;
while (regwhite.test((ch=param.txt.charAt(param.curp.ndx)))){
param.curp.ndx++;
//if ( ch == '\n' ) return null;
}
if ( ! param.post )
param.post = twve.position.create(param.curp);
else
param.post.ndx = param.curp.ndx;
// Check if matched.
param.post = twve.text.indexOf(
param.txt,param.following,param.post
);
if(param.post.ndx<0 ||
(!all && param.post.ndx!=param.curp.ndx))
return null;
// Found a match.
param.curp.ndx = param.post.ndx+param.post.matched.length;
return param.post.matched;
};
//}}}
/***
!!!! twve.tcalc.valueWithText
***/
//{{{
twve.tcalc.valueWithText = function(param){
var result = '';
if ( param.preceding && param.preceding != 'null' ) {
// The preceding is given, look for numerical values
// immediately preceded by the preceding.
while ( true ) {
var numtxt = twve.tcalc.matchPreceding(param);
if ( param.curp.ndx < 0 )
// No more preceding found, stop it.
break;
if ( ! numtxt )
// A preceding text is found but not immediately
// followed by a number, go on to the next.
continue;
// A preceding immediately followed by a number is found,
// return it if appropriate.
if(typeof twve.tcalc.matchFollowing(param)=='string'){
result = numtxt;
break;
}
}
} else {
// The preceding is not given, look for all numerical values
// and return the first one that matches.
param.ndx = 0;
param.curn = -1;
while ( true ) {
var numtxt = twve.tcalc.valueIn(param);
if ( ! numtxt ) break;
if(typeof twve.tcalc.matchFollowing(param)=='string'){
result = numtxt;
break;
}
param.ndx++;
}
}
return result;
};
//}}}
/***
!!!! twve.tcalc.sumWithText
***/
//{{{
twve.tcalc.sumWithText = function(param){
var result = '';
if ( param.preceding && param.preceding != 'null' ) {
// The preceding is given, look for numerical values
// immediately preceded by the preceding.
while ( true ) {
var numtxt = twve.tcalc.matchPreceding(param);
if ( param.curp.ndx < 0 )
// No more preceding found, stop.
break;
if ( ! numtxt )
// A preceding text is found but not followed by a
// number, go on to the next.
continue;
if(typeof twve.tcalc.matchFollowing(param)=='string')
result = twve.tcalc.addNumeral(result,numtxt);
}
} else {
// The preceding is not given, look for all numerical values
// and check the following if given.
param.ndx = param.curp.ndx = 0; param.curn = -1;
while (true) {
var numtxt = twve.tcalc.valueIn(param);
if ( ! numtxt ) break;
if(typeof twve.tcalc.matchFollowing(param) == 'string')
result = twve.tcalc.addNumeral(result,numtxt);
// Check the next one.
param.ndx++;
};
}
return result
? (twve.tcalc.evaluate_arithmetics(result)+'')
: '0';
};
//}}}
/***
!!!! twve.tcalc.arrayOrText
***/
//{{{
twve.tcalc.arrayOrText = function(txt){
// txt = txt.trim();
var close = txt.length-1;
if(txt.charAt(0)=='[' &&
txt.charAt(close)==']' &&
txt.indexOf(',')>=0){
// An array of preceding or following
txt = txt.substring(1,close).split(',');
}
return txt;
};
//}}}
/***
!!!! twve.tcalc.parseTrueFalse
***/
//{{{
twve.tcalc.parseTrueFalse = function(txt){
if ( !txt || txt=='0' ) return false;
if (typeof txt != 'string') return txt;
txt = txt.toLowerCase();
if ( txt == 'false' ) return false;
if ( txt == 'true' ) return true;
var opary = [
'===', '!==',
'==', '!=', '>=', '<=', // '||', '&&'
'>', '<'
];
var i = 0, len = opary.length, p = 0;
var op = '', left = '', right = '', tmp = '';
for (i=0; i<len; i++){
p = txt.indexOf(opary[i]);
if ( p == 0 ) return false;
if ( p < 0 ) continue;
op = opary[i];
left = txt.substring(0,p).trim();
if((tmp=twve.tcalc.isNumeric(left)) && tmp==left){
left = parseFloat(left);
}
right = txt.substring(p+op.length).trim();
if((tmp=twve.tcalc.isNumeric(right)) && tmp==right){
right = parseFloat(right);
}
break;
}
switch (op){
case '===' : return left === right;
case '!==' : return left !== right;
case '==' : return left == right;
case '!=' : return left != right;
case '>=' : return left >= right;
case '<=' : return left <= right;
case '>' : return left > right;
case '<' : return left < right;
default : return true;
}
};
//}}}
/***
!!!! twve.tcalc.round
***/
//{{{
twve.tcalc.round = function(value,num_dec){
if ( num_dec===null || num_dec===undefined || num_dec===0 ) {
return Math.round(value);
} else {
var factor = Math.pow(10,num_dec);
return Math.round(factor*value)/factor;
}
};
//}}}
/***
!!!! twve.tcalc.factorial
***/
//{{{
twve.tcalc.factorial = function(n){
var result = 1;
for (var i=Math.round(n); i>1; i--) result *= i;
return result;
};
//}}}
/***
!!!! twve.tcalc.days_of_month
***/
//{{{
twve.tcalc.days_in_month = function(year,month){
return new Date(year,month+1,0).getDate();
};
//}}}
/***
!!!! twve.tcalc.same_year_month
***/
//{{{
twve.tcalc.same_year_month = function(d1,d2){
return d1.getFullYear() == d2.getFullYear() &&
d1.getMonth() == d2.getMonth();
};
//}}}
/***
!!!! twve.tcalc.separator_positions
***/
//{{{
twve.tcalc.separator_positions = function(txt,start,sep,verify){
var psep = [];
var pos = twve.position.create(start);
var pattern = sep;
while ( true ) {
pos = twve.text.indexOf(txt,pattern,pos);
if ( pos.ndx < 0 ) break;
if ( ! verify || verify.call(this,pos) ) {
psep[psep.length] = twve.position.create(pos);
pattern = pos.matched;
}
pos.ndx += pos.matched.length;
}
return psep;
};
//}}}
/***
!!!! twve.tcalc.timestr_after_date
***/
//{{{
twve.tcalc.timestr_after_date = function(txt,start){
var sep = ' \t\nT';
var len = txt.length;
while ( true ) {
if (start === len) return -1;
if (sep.indexOf(txt.charAt(start))>-1) return start;
start++;
}
};
//}}}
/***
!!!! twve.tcalc.parse_time
***/
//{{{
twve.tcalc.time_separator = ':';
twve.tcalc.parse_time = function(txt){
// Parse a time string. This function assumes the following time format:
// hh:mm:ss,
// either hh:mm or mm:ss,
// any one of hh or mm or ss
//
// Returns an array
// a. of length 3, if hh:mm:ss is given, with [0] holding the hh,
// [1] holding the mm, while [2] is the ss;
// b. of length 2, if hh:mm or mm:ss is given, with [0] holding
// the first number while [1] is the second;
// c. of length 1, if only single number is given;
// d. of length 0, if no valid time string is given.
var tpsep = twve.tcalc.separator_positions(
txt,twve.tcalc.time_separator
);
if ( tpsep.length == 0 ) {
return (txt=twve.tcalc.isNumeric(txt))
? [ parseFloat(txt) ] // hh or mm or ss
: null; // No valid time string at all.
}
// Check for date string and skipt it if any.
var dpsep = twve.tcalc.separator_positions(
txt,twve.tcalc.date_separator
);
if ( dpsep.length > 0 && dpsep[0].ndx < tpsep[0].ndx ) {
// There is date string before the time string,
// extract the time string after it.
var ps = twve.tcalc.timestr_after_date(txt,dpsep[0].ndx);
if ( ps > -1 ) {
txt = txt.substring(ps);
if ( ! txt ) return null;
}
}
// Analyze time string.
var result = [];
var sub = '';
var partial = twve.tcalc.partialSearch;
twve.tcalc.partialSearch = true;
switch ( tpsep.length ) {
case 2 :
// hh:mm:ss
// Extract the hours part
sub = twve.tcalc.isNumeric(
txt.substring(0,tpsep[0].ndx)
);
if ( sub ) result[0] = parseFloat(sub);
// Extract the minutes part
sub = twve.tcalc.isNumeric(
txt.substring(tpsep[0].ndx+1)
);
if ( sub ) result[1] = parseFloat(sub);
// Extract the seconds part
sub = twve.tcalc.isNumeric(
txt.substring(tpsep[1].ndx+1)
);
if ( sub ) result[2] = parseFloat(sub);
break;
case 1 :
// mm:ss
// Extract the minutes part
sub = twve.tcalc.isNumeric(
txt.substring(0,tpsep[0].ndx)
);
if ( sub ) result[0] = parseFloat(sub);
// Extract the seconds part
sub = twve.tcalc.isNumeric(
txt.substring(tpsep[0].ndx+1)
);
if ( sub ) result[1] = parseFloat(sub);
break;
}
twve.tcalc.partialSearch = partial;
if ( result )
result.toString = function(){
switch ( result.length ) {
case 1 :
return result[0]+'';
case 2 :
return result[0]+':'+result[1];
case 3 :
return result[0]+':'+result[1]+':'+result[2];
default :
return '';
}
};
return result;
};
//}}}
/***
!!!! twve.tcalc.parse_time_arg
***/
//{{{
twve.tcalc.parse_time_arg = function(data,txt){
if ( ! txt ) return '';
var p = txt.indexOf('~');
//if ( p < 0 ) p = txt.indexOf('-');
if ( p < 0 ) {
// Expecting a single time
data.arg[0] = twve.tcalc.parse_time(txt);
} else {
// Expecting a range of time
data.arg[0] = twve.tcalc.parse_time(txt.substring(0,p));
data.arg[1] = twve.tcalc.parse_time(txt.substring(p+1));
}
return '';
};
//}}}
/***
!!!! twve.tcalc.calculateTime
***/
//{{{
twve.tcalc.calculateTime = function(expression){
// Calculate the sum or difference of time strings.
expression = twve.tcalc.allArguments(expression) || expression;
var sep = ['+', '-'];
var pos = twve.tcalc.separator_positions(
expression,sep,function(pos){
return expression.charAt(pos.ndx-1)!=':';
}
);
var lpos = 0, i, len=pos.length;
var time = [];
for ( i=0; i<len; i++ ) {
time[i] = twve.tcalc.parse_time(
expression.substring(lpos,pos[i].ndx)
);
if ( i > 0 ) time[i].operator = pos[i-1].matched;
lpos = pos[i].ndx+1;
}
time[i] = twve.tcalc.parse_time(expression.substring(lpos));
time[i].operator = pos[i-1].matched;
// Do the calculation
var result = time[0].slice();
var rlen = result.length;
for ( i=1; i<=len; i++ ) {
var ilen = time[i].length;
if ( rlen < ilen ) {
// The result is shorter than time[i], add necessary 0's at
// the beginning of result.
for ( var j=0; j<ilen-rlen; j++ )
result.unshift(0);
rlen = ilen;
}
// Now rlen is either equal to or greater than ilen, meaning
// the array result has enough space to hold the calculation
// result.
var j0 = rlen - ilen;
for ( var j=0; j<ilen; j++ ) {
if (time[i].operator == '-')
result[j0+j] -= time[i][j];
else
result[j0+j] += time[i][j];
}
}
// test functions
// isPositive
result.isPositive = function(){
for(var i=0,rlen=result.length; i<rlen; i++){
if (result[i]) return result[i]>0;
}
return false;
};
// conversion functions
// normalize
result.normalize = function(ndx,limit){
// Normalize the time result, meaning to ensure that the second
// and the minute are both between 0 and 59, while the hour is
// between 0 and 23.
var rlen = result.length;
if ( typeof ndx == 'number' ) {
switch(ndx) {
case 1 :
case 2 :
if ( ! limit ) limit = 60;
else if ( limit < 0 ) limit = -limit;
if ( result[ndx] > 0 ) {
if ( result[ndx] >= limit ) {
var up = Math.round(result[ndx]/limit);
result[ndx] = result[ndx]-up*limit;
result[ndx-1] += up;
}
} else if ( result[ndx] < 0 ) {
if ( result[ndx] < -limit ) {
var down = Math.round(result[ndx]/limit);
result[ndx] = result[ndx]-down*limit;
result[ndx-1] += down;
}
if ( result[ndx-1] > 0 ) {
result[ndx-1]--;
result[ndx] += limit;
}
}
break;
case -1 :
// The limit should be an array of limits.
var len = limit.length;
switch (len) {
case 3 : // hh:mm:ss
switch ( rlen ) {
case 3 :
result.normalize(2,limit[2]).
normalize(1,limit[1]).
normalize(0,limit[0]);
break;
case 2 :
result.normalize(1,limit[2]).
normalize(0,limit[1]);
break;
};
break;
case 2 : // hh:mm or mm:ss
switch ( rlen ) {
case 3 : // result is hh:mm:ss
if ( limit[0] == 60 ) {
// mm:ss
result.normalize(2,limit[1]).
normalize(1,limit[0]);
break;
}
/*
else
// hh:mm
result.normalize(1,limit[1]).
normalize(0,limit[0]);
*/
case 2 : // result is also hh:mm or mm:ss
result.normalize(1,limit[1]).
normalize(0,limit[0]);
break;
}
break;
}
}
return result;
}
// ndx is not given
switch ( rlen ) {
case 2 :
return result.normalize(1,60);
case 3 :
return result.normalize(2,60).normalize(1,60);
}
return result;
};
// format
result.format = function(val){
return val >= 0
? ((val >= 10 ? '' : '0')+val)
: (val <= -10 ? (''+val) : ('-0'+(-val)));
};
// toString
result.toString = function(){
var str = result.format(result[0]);
for (var i=1,rlen=result.length; i<rlen; i++)
str += ':'+result.format(result[i]);
return str;
};
// getSeconds
result.getSeconds = function(){
var rlen = result.length;
var sec = result[rlen-1];
switch ( rlen ) {
case 3 :
sec += result[rlen-3]*3600;
case 2 :
sec += result[rlen-2]*60;
break;
}
return sec;
};
// getMinutes
result.getMinutes = function(){
var rlen = result.length;
var min = 0;
switch ( rlen ) {
case 3 :
min += result[rlen-3]*60;
case 2 :
min += result[rlen-2];
case 1 :
min += result[rlen-1]/60;
break;
}
return min;
};
// getHours
result.getHours = function(){
var rlen = result.length;
var hour = 0;
switch ( rlen ) {
case 3 :
hour += result[rlen-3];
case 2 :
hour += result[rlen-2]/60;
case 1 :
hour += result[rlen-1]/3600;
break;
}
return hour;
};
return result;
};
//}}}
/***
!!!! twve.tcalc.day_of_week
***/
//{{{
twve.tcalc.dow_zh = [ '日', '一', '二', '三', '四', '五', '六' ];
twve.tcalc.dow_en = [
'SUN', 'MON', 'TUE', 'WED', 'THR', 'THU', 'FRI', 'SAT'
];
twve.tcalc.dow_jp = [ '日', '月', '火', '水', '木', '金', '土' ];
//}}}
/***
!!!! twve.tcalc.isZH
***/
//{{{
twve.tcalc.isZH = function(){
return /^zh/.test(
navigator.language || navigator.userLanguage
);
};
//}}}
/***
!!!! twve.tcalc.isJP
***/
//{{{
twve.tcalc.isJP = function(){
return /^jp/.test(
navigator.language || navigator.userLanguage
);
};
//}}}
/***
!!!! twve.tcalc.isYMD
***/
//{{{
twve.tcalc.isYMD = function(){
return /^(zh|jp|ko|mn|hu|lt|)/.test(
navigator.language || navigator.userLanguage
);
};
//}}}
/***
!!!! twve.tcalc.isMDY
***/
//{{{
twve.tcalc.isMDY = function(){
return (navigator.language || navigator.userLanguage)=='en-US';
};
//}}}
/***
!!!! twve.tcalc.parse_date_format
***/
//{{{
twve.tcalc.date_separator = ['/', '.', '-', ' '];
twve.tcalc.parse_date_format = function(txt){
// Parse a date string or a date format string. The parameter txt MUST
// be of valid format of a date, such as
// yyyy/mm/dd or dd/mm/yyyy or mm/dd/yyyy,
// yyyy-mm-dd or dd-mm-yyyy or mm-dd-yyyy,
// yyyy.mm.dd or dd.mm.yyyy or mm.dd.yyyy,
// yyyy mm dd or dd mm yyyy or mm dd yyyy,
// etc.
if ( ! txt ) return null;
// Skip the leading white spaces
var start = 0;
while(' \t'.indexOf(txt.charAt(start))>-1) start++;
var psep = twve.tcalc.separator_positions(
txt,start,twve.tcalc.date_separator
);
var y = '', m = '', d = '', time = ''
var separator = '/', ps = 0;
if ( psep.length == 0 ) {
// There is no separator found, check for 年 月 日 format.
var param = {
txt: txt,
curp: twve.position.create(0),
following: '年'
}
y = twve.tcalc.valueWithText(param); // year
if ( y ) ps = param.post.ndx+param.post.matched.length;
param.following = '月';
m = twve.tcalc.valueWithText(param); // month
if ( y ) ps = param.post.ndx+param.post.matched.length;
param.following = '日';
d = twve.tcalc.valueWithText(param); // day of month
if ( y ) ps = param.post.ndx+param.post.matched.length;
time = twve.tcalc.parse_time(txt.substring(ps));
} else {
separator = psep[0].matched;
// Remove time string if there is any.
ps = twve.tcalc.timestr_after_date(txt,psep[0].ndx);
if ( ps > -1 ) {
time = txt.substring(ps);
txt = txt.substring(0,ps);
}
if ( psep.length == 1 ) {
// If there is only 1 separator, meaning one of the
// year/month/day is missing. Check for which one.
if ( psep[0].ndx > 3 ) {
// The beginning part has more than 3 characters, should
// be the year. Assume month is following and day is
// missing.
y = txt.substring(0,psep[0].ndx);
m = txt.substring(psep[0].ndx+1);
} else if ( txt.length-psep[0].ndx > 3 ) {
// The ending part has more than 3 characters, should
// be the year. Assume the beginning part is month
// and day is missing.
m = txt.substring(0,psep[0].ndx);
y = txt.substring(psep[0].ndx+1);
} else {
// Not sure which one is missing. Assume it is the
// year that's missing.
if(twve.tcalc.isYMD() || twve.tcalc.isMDY()){
// Asia or US, mm/dd
m = txt.substring(0,psep[0].ndx);
d = txt.substring(psep[0].ndx+1);
} else {
// Otherwise dd/mm
d = txt.substring(0,psep[0].ndx);
m = txt.substring(psep[0].ndx+1);
}
}
} else {
// More than one seperators are found in txt.
if ( txt.length-psep[1].ndx > 3 ) {
// The ending part has more than 3 characters, should
// be the year.
if(twve.tcalc.isMDY()){
// mm/dd/yyyy
m = txt.substring(0,psep[0].ndx);
d = txt.substring(psep[0].ndx+1,psep[1].ndx);
} else {
// dd/mm/yyyy
d = txt.substring(0,psep[0].ndx);
m = txt.substring(psep[0].ndx+1,psep[1].ndx);
}
y = txt.substring(psep[1].ndx+1);
//} else if ( psep[0].ndx > 3 ) {
// The beginning part has more than 3 characters, should
// be the year.
} else {
// Otherwise assume year is the begining part.
y = txt.substring(0,psep[0].ndx);
m = txt.substring(psep[0].ndx+1,psep[1].ndx);
d = txt.substring(psep[1].ndx+1);
}
}
}
return {
year: y,
month: m,
date: d,
separator: separator,
time: (time ? (time.trim ? time.trim() : time) : '')
};
};
//}}}
/***
!!!! twve.tcalc.parse_date
***/
//{{{
twve.tcalc.parse_date = function(txt){
// Parse a date string. The parameter txt MUST be of valid
// format of a date, such as
// 2014/11/03,
// 2014-11-03,
// 2014.11.03,
// 2014 11 03,
// etc.
var today = new Date();
var format = twve.tcalc.parse_date_format(txt);
//if ( ! format ) return today;
if ( ! format.year ) format.year = today.getFullYear();
if ( ! format.month ) format.month = today.getMonth()+1;
if ( ! format.date ) format.date = today.getDate();
if ( ! format.time ) format.time = today.toTimeString();
var datestr = twve.tcalc.isYMD()
? (format.year+'/'+format.month+'/'+format.date)
: (twve.tcalc.isMDY()
? format.month+'/'+format.date+'/'+format.year
: format.date+'/'+format.month+'/'+format.year);
return new Date(datestr+' '+format.time);
};
//}}}
/***
!!!! twve.tcalc.parse_date_arg
***/
//{{{
twve.tcalc.parse_date_arg = function(data,txt){
if ( ! txt ) return '';
var p = txt.indexOf('~');
//if ( p < 0 ) p = txt.indexOf('-');
if ( p < 0 ) {
// Expecting a single date
data.arg[0] = twve.tcalc.parse_date(txt);
} else {
// Expecting a range of dates
data.arg[0] = twve.tcalc.parse_date(txt.substring(0,p));
data.arg[1] = twve.tcalc.parse_date(txt.substring(p+1));
}
return '';
};
//}}}
/***
!!!! twve.tcalc.format_date_string
***/
//{{{
twve.tcalc.format_date_string = function(date,format){
var datestr = '';
if ( ! format ) {
datestr = date.toLocaleDateString();
if ( config.browser.isIE ){
// IE (11?) inserts invisible char \u8206 before and after
// the year, month, date numerals. Remove them.
var i=0, c;
while(i<datestr.length){
c = datestr.charCodeAt(i);
if ( c == 8206 )
datestr = datestr.substring(0,i) +
datestr.substring(i+1);
else i++;
}
}
return datestr;
}
var n;
if ( format.year ){
n = date.getFullYear();
datestr += (format.year.length==2
? (n%100) : n);
}
if ( format.month ){
n = date.getMonth()+1;
datestr += (datestr?format.separator:'')+
(format.month.length==1
? n : ((n<10?'0':'')+n));
}
if ( format.date ){
n = date.getDate();
datestr += (datestr?format.separator:'')+
(format.date.length==1
? n : ((n<10?'0':'')+n));
}
return datestr;
};
//}}}
/***
!!!! twve.tcalc.months
***/
//{{{
twve.tcalc.months = function(m1,d1,m2,d2,y,num_dec){
// Calculate the difference in months between two dates, given by
// (m1, d1) and (m2, d2), in the same year y.
if ( ! y ) y = new Date().getFullYear();
m1 += d1/twve.tcalc.days_in_month(y,m1);
m2 += d2/twve.tcalc.days_in_month(y,m2);
return Math.round(m2-m1,num_dec);
};
//}}}
/***
!!!! twve.tcalc.days
***/
//{{{
twve.tcalc.days = function(date1,date2,num_dec){
var sec = (date2-date1)/1000;
if ( typeof num_dec === 'number' ) {
return Math.round(sec/86400,num_dec);
}
var days = Math.round(sec/86400);
if ( Math.abs(days) >= 1 )
sec = sec - days*86400;
var y = 0, m = 0;
if ( Math.abs(days) > 365 ) {
y = days > 0 ? Math.floor(days/365) : Math.ceil(days/365);
days = days - 365 * y;
}
if ( Math.abs(days) > 30 ) {
m = days > 0 ? Math.floor(days/30) : Math.ceil(days/30);
days = days - 30 * m;
}
var result = (days<0?'-(':'') +
(y!=0?((y<0?-y:y)+'Y'):'') +
(m!=0?((m<0?-m:m)+'M'):'');
if ( sec === 0 )
return result+(days<0?-days:days)+'D'+(days<0?')':'');
function time_str(t){
return t == 0
? '00'
: (
t > 0
? (t < 10 ? ('0'+t) : t)
: (t > -10 ? ('-0'+(-t)) : t)
)
}
if ( Math.abs(sec) < 60 )
return result + (days!=0?((days<0?-days:days)+'D'):'') +
' 00:00:' + time_str(sec)+(days<0?')':'');
var min = Math.round(sec / 60);
sec = sec - min*60;
var hour = Math.round(min / 60);
min = min - hour*60;
if ( date2 > date1 ) {
// date2 is later, should be positive
if ( sec < 0 ) {
sec += 60;
min -= 1;
}
if ( min < 0 ) {
min += 60;
hour -= 1;
}
if ( hour < 0 ) {
hour += 24;
days -= 1;
}
} else {
// date2 is earlier, should be negative
if ( sec > 0 ) {
sec -= 60;
min += 1;
}
if ( min > 0 ) {
min -= 60;
hour += 1;
}
if ( hour > 0 ) {
hour -= 24;
days += 1;
}
}
return result +
(days!=0
? ((days<0 ? -days : days)+'D ')
: ((!result && sec<0) ? '-(' : '')) +
time_str(hour<0?-hour:hour) +
(Math.abs(days) < 1
? (':'+time_str(min<0?-min:min)+
(Math.abs(hour) < 1
? (':'+time_str(sec<0?-sec:sec))
: ''))
: 'H') +
((days<0||(days==0&&sec<0))?')':'');
};
//}}}
/***
!!!! twve.tcalc.functionData
***/
//{{{
twve.tcalc.functionData = {
create : function(){
var data = twve.object.create();
data.clear = function(){
data.arg = [];
return data;
};
data.parseArgument = function(txt,how){
var result = txt;
if ( (txt=twve.tcalc.isNumeric(txt)) )
result = txt*1;
if ( ! how || how === typeof result )
data.arg[data.arg.length] = result;
};
data.how = function(){
var arglen = data.arg.length;
return arglen > 0 //&& typeof data.arg[arglen-1]==='string'
? data.arg[arglen-1]
: '';
};
return data.clear();
}
};
//}}}
/***
!!!! twve.tcalc.sourcedData
***/
//{{{
twve.tcalc.sourcedData = {
create : function(){
var data = twve.tcalc.functionData.create();
var preParseArgument = data.parseArgument;
data.parseArgument = function(txt){
if ( data.arg.length == 0 )
data.arg[0] = twve.tcalc.getSourceText(txt);
else
preParseArgument.call(this,txt);
};
return data;
}
};
//}}}
/***
!!!! twve.tcalc.rowColData
***/
//{{{
twve.tcalc.rowColData = {
getRange : function(data,thisone,last){
switch ( data.how() ) {
case 'BEFORE' :
data.first = 0;
data.last = thisone;
break;
case 'AFTER' :
data.first = thisone + 1;
data.last = last;
break;
default :
data.first = 0;
data.last = last;
break;
}
},
create : function(){
var data = twve.tcalc.functionData.create();
var preParseArgument = data.parseArgument;
data.parseArgument = function(txt){
switch ( data.arg.length ) {
case 0:
preParseArgument.call(this,txt);
break;
case 1:
this.data.arg[1] = txt.toUpperCase();
break;
}
};
data.getRange = function(thisone,last){
return twve.tcalc.rowColData.getRange(
data,thisone,last
);
};
return data;
}
};
//}}}
/***
!!!! twve.tcalc.columnData
***/
//{{{
twve.tcalc.columnData = {
columnNumber : function(col){
return typeof col == 'number'
? col
: ((!col)
? twve.tcalc.curCellCol()
: twve.tcalc.referenceToIndexCol(col));
},
getRange : function(data,thisone,last){
switch ( data.how() ) {
case 'ABOVE' :
data.first = 0;
data.last = thisone;
break;
case 'BELOW' :
data.first = thisone + 1;
data.last = last;
break;
default :
twve.tcalc.rowColData.getRange(data,thisone,last);
break;
}
},
create : function(){
var data = twve.tcalc.rowColData.create();
var preParseArgument = data.parseArgument;
data.parseArgument = function(txt){
preParseArgument.call(this,txt);
if ( data.arg.length == 1 )
data.arg[0] =
twve.tcalc.columnData.columnNumber(data.arg[0]);
};
data.getRange = function(thisone,last){
twve.tcalc.columnData.getRange(data,thisone,last);
};
return data;
}
};
//}}}
/***
!!!! twve.tcalc.rowData
***/
//{{{
twve.tcalc.rowData = {
rowNumber : function(row){
return (typeof row == 'number' || row)
? row : twve.tcalc.curCellRow();
},
getRange : function(data,thisone,last){
switch ( data.how() ) {
case 'LEFT' :
data.first = 0;
data.last = thisone;
break;
case 'RIGHT' :
data.first = thisone + 1;
data.last = last;
break;
default :
twve.tcalc.rowColData.getRange(data,thisone,last);
break;
}
},
create : function(){
var data = twve.tcalc.rowColData.create();
var preParseArgument = data.parseArgument;
data.parseArgument = function(txt){
preParseArgument.call(this,txt);
if ( data.arg.length == 1 )
data.arg[0] =
twve.tcalc.rowData.rowNumber(
data.arg[0]
);
};
data.getRange = function(thisone,last){
twve.tcalc.rowData.getRange(data,thisone,last);
};
return data;
}
};
//}}}
/***
!!!! twve.tcalc.signatureData
***/
//{{{
twve.tcalc.signatureData = {
create : function(){
var data = twve.tcalc.functionData.create();
data.parseArgument = function(txt){
var len = data.arg.length;
switch ( len ) {
case 0:
data.arg[0] = twve.tcalc.getSourceText(txt);
break;
case 1:
case 2:
data.arg[len] = twve.tcalc.arrayOrText(txt);
break;
case 3:
data.arg[3] = txt.toUpperCase();
break;
}
};
return data;
}
};
//}}}
/***
!!!! twve.tcalc.fn
***/
//{{{
twve.tcalc.fn = [
//}}}
/***
!!!!! JS Math
***/
//{{{
{
name: 'MATH', // JS Math functions
data: twve.tcalc.functionData.create(),
startParsing: function (txt) {
this.data.clear();
// Store the function name in data.
this.data.arg[0] = txt.substring(0,txt.indexOf('(')+1);
},
stopParsing: function () {
var len = this.data.arg.length-1;
for(var i=0; i<len; i++)
this.data.arg[0] += this.data.arg[i]+',';
this.data.arg[0] += this.data.arg[len]+')';
return eval(this.data.arg[0]);
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
// user defined functions
//}}}
/***
!!!!! CELL
***/
//{{{
{
description: 'Get the content of a table cell specified by its row and column indexes.',
usage: '=CELL(row,col). For example, =CELL(3,2) or =CELL(3,B) will get the content of the table cell in row 3 (4th row), column 2 (3rd column).',
name: 'CELL',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var twtable=twve.tcalc.cur_twtable || twve.tiddler.cur_focus;
if ( ! twtable || this.data.arg.length < 2 ) return null;
var row = this.data.arg[0];
if ( row < 0 ) return null;
var col = twve.tcalc.columnData.columnNumber(
this.data.arg[1]
);
if ( col < 0 ) return null;
var rows = twtable.dom.querySelectorAll('tr');
if ( row >= rows.length || col > twtable.maxColumns(rows) )
return null;
return twve.tcalc.nodeText(
twve.table.getRowCell(rows[row],col)
);
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! LENGTH
***/
//{{{
{
name: ['LENGTH', 'LEN'],
parseSingleTerm: function ( txt ) {
return txt ? (txt.length+'') : '0';
}
},
//}}}
/***
!!!!! LEFT
***/
//{{{
{
description: 'Extract the left part of a string.',
usage: '=LEFT(B3,4) will extract the left 4 characters out of the content in table cell B3.',
name: 'LEFT',
//no_eval: true,
data: twve.tcalc.sourcedData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function(){
switch ( this.data.arg.length ) {
case 0:
return '';
case 1:
return this.data.arg[0];
default:
return this.data.arg[0].substring(
0,this.data.arg[1]
);
};
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! MID
***/
//{{{
{
description: 'Extract the middle part of a string.',
usage: '=MID(B3,start_pos,number_of_char) will extract number_of_char characters, starting from index start_pos, out of the content in table cell B3.',
name: 'MID',
//no_eval: true,
data: twve.tcalc.sourcedData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function(){
switch ( this.data.arg.length ) {
case 0:
return '';
case 1:
return this.data.arg[0];
case 2:
return this.data.arg[0].substring(
this.data.arg[1]
);
default:
return this.data.arg[0].substring(
this.data.arg[1],
this.data.arg[1]+this.data.arg[2]
);
};
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! TRIM
***/
//{{{
{
description: 'Remove the leading and/or ending white spaces.',
usage: '=TRIM(B3[,how]) will remove the leading and/or ending white spaces of the content in cell B3. The optional argument, if given, can be either "LEFT", "RIGHT", or "BOTH". It is assumed "BOTH" if missing.',
name: 'TRIM',
//no_eval: true,
parseSingleTerm: function ( txt ) {
switch (typeof txt){
case 'number' :
txt = ''+txt;
case 'string' :
return txt.trim();
default :
return txt;
}
}
},
//}}}
/***
!!!!! RIGHT
***/
//{{{
{
description: 'Extract the right part of a string.',
usage: '=RIGHT(B3,4) will extract the right 4 characters out of the content in table cell B3.',
name: 'RIGHT',
//no_eval: true,
data: twve.tcalc.sourcedData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function(){
switch ( this.data.arg.length ) {
case 0:
return '';
case 1:
return this.data.arg[0];
default:
return this.data.arg[0].substring(
this.data.arg[0].length-this.data.arg[1]
);
};
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! FIND/SEARCH
***/
//{{{
{
description: 'Find a specific string inside another.',
usage: '=FIND(JR,B4[,start]) or =SEARCH(JR,B4[,start]) will find/search "JR" in the ceontent of cell B4. The optional argument specifies the starting location to find/search. Returns the location if found, or -1 otherwise.',
name: ['FIND', 'SEARCH'],
data: twve.tcalc.sourcedData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function(){
return this.data.arg[1].indexOf(
this.data.arg[0],
(this.data.arg[2] || 0)
);
},
parseSingleTerm: function ( txt ) {
var len = this.data.arg.length;
switch ( len ) {
case 0:
case 1:
this.data.arg[len] = txt;
//this.data.arg[len] = twve.tcalc.getSourceText(txt);
break;
case 2:
if ( (txt=twve.tcalc.isNumeric(txt)) ){
this.data.arg[2] = txt*1;
}
break;
};
}
},
//}}}
/***
!!!!! PRODUCT
***/
//{{{
{
description: 'Multiply the numerical values in multiple cells.',
usage: '=PRODUCT(A1,B5,H7) returns the product of the numerical values in cells A1, B5, and H7. =PRODUCT(C3:D6) returns the product of the numerical values in cells from C3 to D6.',
name: 'PRODUCT',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function(){
var prod = 1;
for(var i=0,len=this.data.arg.length; i<len; i++){
prod *= this.data.arg[i];
if ( prod === 0 ) break;
}
return prod+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt.trim() || 0);
}
},
//}}}
/***
!!!!! DOT
***/
//{{{
{
name: 'DOT',
// Dot product of two vectors in the form of (v1, v2, v3, ...)
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if (this.data.arg[0] && this.data.arg[1])
return this.data.arg[0].dot(this.data.arg[1])+'';
},
parseSingleTerm: function ( txt ) {
this.data.arg[this.data.arg.length] =
twve.tcalc.vector.create(txt,true);
}
},
//}}}
/***
!!!!! CROSS
***/
//{{{
{
name: 'CROSS',
// Cross product of two vectors in the form of (v1, v2, v3, ...)
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if (this.data.arg[0] && this.data.arg[1])
return this.data.arg[0].cross(this.data.arg[1]);
},
parseSingleTerm: function ( txt ) {
this.data.arg[this.data.arg.length] =
twve.tcalc.vector.create(txt,true);
}
},
//}}}
/***
!!!!! TEXTWITH
***/
//{{{
{
no_eval: true,
name: 'TEXTWITH',
// Returns in a table cell the sub-text that's immediately preceded
// and/or immediately followed by certain text.
// Usage: =TEXTWITH(cell,preceding,following)
// 1. If neither preceding nor following is given, this
// function returns the whole content in that table cell.
// 2. If given, they should be text.
// a. If preceding is give and following is not, this
// function returns everything after the preceding.
// b. If following is give and preceding is not, this
// function returns everything before the following.
// c. If both preceding and following are given, this
// function returns everything between the preceding
// and the following.
data: twve.tcalc.signatureData.create(),
textWithText: function(param){
var result = '';
param.everything = true;
if ( param.preceding && param.preceding!='null' ) {
// The preceding is given, look for it and return everything
// after it, or until the following string is found.
if ( (result=twve.tcalc.matchPreceding(param)) ) {
// A preceding is found, check if following is given
// and matched.
var curp = param.curp.ndx;
if ( ! param.following )
param.following = ['\n', ' ', '.', ','];
if ( ! twve.tcalc.matchFollowing(param,true) )
param.post.ndx = param.txt.length;
result = param.txt.substring(curp,param.post.ndx);
}
} else if (twve.tcalc.matchFollowing(param,true)) {
// The preceding is not given but the following is given
// and found. Return everything before it.
result = param.txt.substring(0,param.post.ndx);
}
return result;
},
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var result = '';
var param = {
preceding: this.data.arg[1],
following: this.data.arg[2],
curp: twve.position.create(0),
curn: -1
};
if ( typeof this.data.arg[0] == 'string' ) {
// Single cell content.
param.txt = this.data.arg[0];
result = this.textWithText(param);
} else {
// Multiple cells content.
result = [];
for (var i=0,len=this.data.arg[0].length; i<len; i++){
param.txt = this.data.arg[0][i];
param.curp.ndx = 0; param.curn = -1;
result[result.length] =
this.textWithText(param) || '0';
}
}
return result;
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! VALUEWITH
***/
//{{{
{
name: ['VALUEWITH', 'VALWITH'],
partialSearch: true,
// Returns in a table cell the first numerical value that is
// immediately preceded by the preceding and/or followed by the
// following.
// Usage: =VALUEWITH(cell,preceding,following)
// 1. If neither preceding nor following is given, this function
// returns the first numerical values in that table cell,
// just as the function VALUE(cell) does.
// 2. If given, they should be text.
// a. If preceding is give and following is not, this function
// returns the first numerical value that is immediately
// preceded by the preceding.
// b. If following is give and preceding is not, this function
// returns the first numerical value that is immediately
// followed by the following.
// c. If both preceding and following are given, this function
// returns the first numerical value that is immediately
// preceded by the preceding and immediately followed by
// the following.
//
// Note: White spaces between the numerals and preceding/following
// are ignored.
data: twve.tcalc.signatureData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var result = '';
var param = {
preceding: this.data.arg[1],
following: this.data.arg[2],
curp: twve.position.create(0),
curn: -1
};
if ( typeof this.data.arg[0] == 'string' ) {
// Single cell content.
param.txt = this.data.arg[0];
result = twve.tcalc.valueWithText(param) || '0';
} else {
// Multiple cells content.
result = [];
for (var i=0,len=this.data.arg[0].length; i<len; i++){
param.txt = this.data.arg[0][i];
param.curp.ndx = 0; param.curn = -1;
result[result.length] =
twve.tcalc.valueWithText(param) || '0';
}
}
return result;
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! VALUE
***/
//{{{
{
name: ['VALUE', 'VAL'],
partialSearch: true,
// Returns the specified numerical value in a table cell.
// Usage: =VALUEIN(cell[,n]) or =VAL(cell[,n]).
// The 2nd parameter n, if given, specifies the index number
// (0-based) of the numerical value to return.
// For example, =VALUE(A1,1) will return the numerical value
// with index number 1 (the 2nd in a 0-based system), in the
// table cell A1.
// If omitted, the first numerical value (with index number 0)
// is assumed.
data: twve.tcalc.sourcedData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if (! this.data.arg[0]) return '0';
var param = {
ndx: (this.data.arg[1] || 0),
curp: twve.position.create(0)
}
if ( typeof this.data.arg[0] == 'string' ) {
// The content of a single cell, look for the
// "this.data.arg[1]"th numerical value.
param.txt = this.data.arg[0];
param.curn = -1;
return twve.tcalc.valueIn(param) || '0';
}
// An array containing the content of multiple cells.
// Return an array of "this.data.ndx"th numerical value
// in each of the cells.
var result = [];
for (var i=0,len=this.data.arg[0].length; i<len; i++) {
param.txt = this.data.arg[0][i];
param.curp.ndx = 0; param.curn = -1;
result[result.length] = twve.tcalc.valueIn(param) || '0';
}
return result;
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! SUMIN
***/
//{{{
{
name: 'SUMIN',
partialSearch: true,
// Calculate the sum of all (or part of) numerical values in
// a table cell, if there are more than one.
// Usage: =SUMIN(cell[,n1,n2,...])
// 1. The simplest way to use this function is =SUMIN(cell),
// which sums up ALL the numerical values in that table
// cell.
// 2. A different way is to include/exclude part of the
// numerical values in that table cell.
// For example,
// a. =SUMIN(cell,n1,n2,...) includes only the n1th,
// n2th, ... numerical values in the summation.
// b. =SUMIN(cell,-n1,-n2,...) excludes the n1th,
// n2th, ... numerical values from the summation.
// It does not make much sense to both include and exclude
// some of the values, you simply don't include the ones you
// want to exclude. Therefore the excluded ones will be ignored
// when there are included ones.
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
this.data.arg[0] = null;
this.data.arg[1] = [];
this.data.arg[2] = [];
},
sumInText: function(param){
var result = '';
var len = param.include.length;
if ( len ) {
// There are included ones.
if ( ! param.include.sorted ) {
param.include.sort(function(a,b){return a-b;});
param.include.sorted = true;
}
for (var i=0; i<len; i++) {
param.ndx = param.include[i];
var numtxt = twve.tcalc.valueIn(param);
if ( numtxt )
result = twve.tcalc.addNumeral(result,numtxt);
}
} else {
// Sum up all or part of the numerical values.
len = param.exclude.length;
if ( len && ! param.exclude.sorted ) {
param.exclude.sort(function(a,b){return a-b;});
param.exclude.sorted = true;
}
var exi = 0;
param.ndx = 0;
while (true) {
var numtxt = twve.tcalc.valueIn(param);
if ( ! numtxt ) break;
if ( len && param.ndx == param.exclude[exi] ) {
// This one is excluded.
exi++;
} else {
// This one is NOT excluded
result = twve.tcalc.addNumeral(result,numtxt);
}
// Check the next one.
param.ndx++;
};
}
return result
? (twve.tcalc.evaluate_arithmetics(result)+'')
: result;
},
stopParsing: function () {
var result = '0';
var param = {
include: this.data.arg[1],
exclude: this.data.arg[2],
curp: twve.position.create(0)
};
if ( typeof this.data.arg[0] == 'string' ) {
// Single cell content.
param.txt = this.data.arg[0];
param.curn = -1;
result = this.sumInText(param);
} else {
// Multiple cells content.
for (var i=0,len=this.data.arg[0].length; i<len; i++){
param.txt = this.data.arg[0][i];
param.curp.ndx = 0; param.curn = -1;
var cellresult = this.sumInText(param);
if ( cellresult )
result += '+'+cellresult;
}
if ( result !== '0' )
result = twve.tcalc.evaluate_arithmetics(result)+'';
}
return result;
},
parseSingleTerm: function ( txt ) {
if ( this.data.arg[0] === null )
this.data.arg[0] = twve.tcalc.getSourceText(txt);
else {
var pminus = txt.indexOf('-');
if ( pminus == -1 )
this.data.arg[1][
this.data.arg[1].length
] = txt*1;
else
this.data.arg[2][
this.data.arg[2].length
] = txt.substring(pminus+1)*1;
}
}
},
//}}}
/***
!!!!! SUMWITH
***/
//{{{
{
description: 'Sum over numerical values in specified cells, with optional signature text (immediately preceding and/or following).',
usage: '=SUMWITH(A1[,pre[,post]]) will sum up all the numerical values with an immediately preceding signature "pre" in cell A1.',
name: 'SUMWITH',
partialSearch: true,
// Calculate in a table cell the sum of all numerical values
// immediately preceded by some preceding and/or followed by some
// following.
// Usage: =SUMWITH(cell,preceding,following)
// 1. If neither preceding nor following is given, this function
// sums up all the numerical values in that table cell,
// just as the function SUMIN(cell) does.
// 2. If given, they should be text.
// a. If preceding is give and following is not, this function
// only sums up numerical values immediately preceded
// by the preceding.
// b. If following is give and preceding is not, this function
// only sums up numerical values immediately followed
// by the following.
// c. If both preceding and following are given, this function
// only sums up numerical values immediately preceded
// by the preceding and immediately followed by the
// following.
//
// Note: White spaces between the numerals and preceding/
// following are ignored.
data: twve.tcalc.signatureData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var result = '0';
var param = {
preceding: this.data.arg[1],
following: this.data.arg[2],
curp: twve.position.create(0),
curn: -1
};
if ( typeof this.data.arg[0] == 'string' ) {
// Single cell content.
param.txt = this.data.arg[0];
result = twve.tcalc.sumWithText(param);
} else {
// Multiple cells content.
for (var i=0,len=this.data.arg[0].length; i<len; i++){
param.txt = this.data.arg[0][i];
var cellresult = twve.tcalc.sumWithText(param);
if ( cellresult !== '0' )
//result=twve.tcalc.addNumeral(result,cellresult);
result +=
(cellresult.charAt(0)=='-'?'':'+')+cellresult;
}
if ( result !== '0' )
result = twve.tcalc.evaluate_arithmetics(result)+'';
}
return result;
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! SUMCOLWITH
***/
//{{{
{
description: 'Sum over numerical values in one column, excluding this cell, with optional signature text (immediately preceding and/or following) and/or range of summation.',
usage: '=SUMCOLWITH([1,[pre[,post[,how]]]]) will sum up all numerical vlaues with an immediately preceding signature "pre" in column 1 (the 2nd column). Current column is assumed if the 1st argument is missing. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'SUMCOLWITH',
data: twve.tcalc.signatureData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var col = this.data.arg[0];
if ( col < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( col > twtable.maxColumns(rows) ) return '0';
var thisrow = twve.tcalc.curCellRow();
twve.tcalc.columnData.getRange(
this.data,thisrow,rows.length
);
var result = '0';
var param = {
preceding: this.data.arg[1],
following: this.data.arg[2],
curp: twve.position.create(0),
curn: -1
};
for(var r=this.data.first; r<this.data.last; r++){
if (r == thisrow) continue;
param.txt = twve.tcalc.cellContent(rows[r],col,true);
var cellresult = twve.tcalc.sumWithText(param);
if ( cellresult !== '0' )
if ( r == this.data.first ) result = cellresult;
else result +=
(cellresult.charAt(0)=='-'?'':'+')+cellresult;
}
return result === '0'
? '0'
: twve.tcalc.evaluate_arithmetics(result)+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
if ( this.data.arg.length == 1 ) {
// Just received the first argument.
this.data.arg[0] =
twve.tcalc.columnData.columnNumber(
this.data.arg[0]
);
}
}
},
//}}}
/***
!!!!! SUMCOL
***/
//{{{
{
description: 'Sum over numerical values in one column, excluding this cell, with optional argument spacifying the range of summation.',
usage: '=SUMCOL([1[,how]]) or =SUMCOL([B[,how]]) will sum up column 1 or B (the 2nd column). Current column is assumed if the first argument is missing. The 2nd argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'SUMCOL',
data: twve.tcalc.columnData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var col = this.data.arg[0] =
twve.tcalc.columnData.columnNumber(this.data.arg[0]);
if ( col < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( col > twtable.maxColumns(rows) ) return '0';
var thisrow = twve.tcalc.curCellRow();
this.data.getRange(thisrow,rows.length);
var result = 0;
for(var r=this.data.first; r<this.data.last; r++){
if (r == thisrow) continue;
var tmp = twve.tcalc.cellContent(rows[r],col,true);
if ( tmp ) {
tmp = parseFloat(tmp);
if ( ! isNaN(tmp) ) result += tmp;
}
}
return result+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt,'number');
}
},
//}}}
/***
!!!!! SUMROWWITH
***/
//{{{
{
description: 'Sum over numerical values in one row, excluding this cell, with optional signature text (immediately preceding and/or following) and/or the range of summation.',
usage: '=SUMROW([1,[pre[,post[,how]]]]) will sum up all numerical vlaues with an immediately preceding signature "pre" in row 1 (the 2nd row). Current row is assumed if the first argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'SUMROWWITH',
data: twve.tcalc.signatureData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var row = this.data.arg[0];
if ( row < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( row >= rows.length ) return '0';
var cells = rows[row].querySelectorAll('th,td');
var thiscol = twve.tcalc.curCellCol();
twve.tcalc.rowData.getRange(this.data,thiscol,cells.length);
var result = '0';
var param = {
preceding: this.data.arg[1],
following: this.data.arg[2],
curp: twve.position.create(0),
curn: -1
};
for(var c=this.data.first; c<this.data.last; c++){
if (c == thiscol) continue;
param.txt = twve.tcalc.cellContent(cells,c,true);
var cellresult = twve.tcalc.sumWithText(param);
if ( cellresult !== '0' )
if ( c==this.data.first ) result = cellresult;
else result +=
(cellresult.charAt(0)=='-'?'':'+')+cellresult;
}
return result === '0'
? '0'
: twve.tcalc.evaluate_arithmetics(result)+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
if ( this.data.arg.length == 1 ) {
// Just received the first argument.
this.data.arg[0] =
twve.tcalc.rowData.rowNumber(
this.data.arg[0]
);
}
}
},
//}}}
/***
!!!!! SUMROW
***/
//{{{
{
description: 'Sum over numerical values in one row, excluding this cell, with optional range of summation.',
usage: '=SUMROW(1[,how]) will sum up row 1 (the 2nd row). Current row is assumed if the argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'SUMROW',
data: twve.tcalc.rowData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var row = this.data.arg[0] =
twve.tcalc.rowData.rowNumber(this.data.arg[0]);
if ( row < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( row >= rows.length ) return '0';
var cells = rows[row].querySelectorAll('th,td');
var thiscol = twve.tcalc.curCellCol();
this.data.getRange(thiscol,cells.length);
var result = 0;
for(var c=this.data.first; c<this.data.last; c++){
if (c == thiscol) continue;
var tmp = twve.tcalc.cellContent(cells,c,true);
if ( tmp ) {
tmp = parseFloat(tmp);
if ( ! isNaN(tmp) ) result += tmp;
}
}
return result+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt,'number');
}
},
//}}}
/***
!!!!! SUM
***/
//{{{
{
description: 'Sum over numerical values in one or more cells.',
usage: '=SUM(A1:C3) will sum up cells A1, A2, A3, B1, B2, B3, and C1, C2, C3.',
name: 'SUM',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var sum = 0;
for(var i=0,len=this.data.arg.length; i<len; i++){
sum += this.data.arg[i];
}
return sum+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt.trim() || 0,'number');
}
},
//}}}
/***
!!!!! COUNTA
***/
//{{{
{
// COUNTA should be defined before COUNT, otherwise it
// has no chance to be matched. It is so because twve.tcalc
// plugin matches a function name with startsWith() method,
// and both functions starts with COUNT, if COUNT is defined
// before COUNTA, then the match will always be COUNT and
// never COUNTA.
name: 'COUNTA',
description: 'Count the number of non-empty values in the specified cells.',
usage: '=COUNTA(A3:B6) will count the number of non-empty values in the cells from A3 to B6.',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
this.data.arg[0] = 0;
},
stopParsing: function () {
return ''+this.data.arg[0];
},
parseSingleTerm: function ( txt ) {
if (/\S/.test(txt)) this.data.arg[0]++;
}
},
//}}}
/***
!!!!! COUNTCOLA
***/
//{{{
{
description: 'Count the number of non-empty cells in one column, excluding this cell, with optional range of counting.',
usage: '=COUNTCOLA([1[,how]]) or =COUNTCOLA([B[,how]]) will count the number of non-empty values in column 1 or B (the 2nd column). Current column is assumed if the 1st argument is omitted. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'COUNTCOLA',
data: twve.tcalc.columnData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var col = this.data.arg[0] =
twve.tcalc.columnData.columnNumber(this.data.arg[0]);
if ( col < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( col > twtable.maxColumns(rows) ) return '0';
var thisrow = twve.tcalc.curCellRow();
this.data.getRange(thisrow,rows.length);
var result = 0;
for(var r=this.data.first; r<this.data.last; r++){
if ( r != thisrow &&
/\S/.test(twve.tcalc.cellContent(rows[r],col,true)) )
result++;
}
return result+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! COUNTCOL
***/
//{{{
{
description: 'Count the number of numerical values in one column, excluding this cell, with optioanl range of counting.',
usage: '=COUNTCOL([1[,how]]) or =COUNTCOL([B[,how]]) will count the number of numerical values in column 1 or B (the 2nd column). Current column is assumed if the 1st argument is missing. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'COUNTCOL',
data: twve.tcalc.columnData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var col = this.data.arg[0] =
twve.tcalc.columnData.columnNumber(this.data.arg[0]);
if ( col < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( col > twtable.maxColumns(rows) ) return '0';
var thisrow = twve.tcalc.curCellRow();
this.data.getRange(thisrow,rows.length);
var result = 0;
for(var r=this.data.first; r<this.data.last; r++){
if (r == thisrow) continue;
var tmp = twve.tcalc.cellContent(rows[r],col,true);
if ( tmp ) {
tmp = tmp*1;
if ( ! isNaN(tmp) ) result++;
}
}
return result+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! COUNTROWA
***/
//{{{
{
description: 'Count the number of non-empty values in one row, excluding this cell, with optional range of counting.',
usage: '=COUNTROWA([1[,how]]) will count the number of non-empty values in row 1 (the 2nd row). Current row is assumed if the 1st argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'COUNTROWA',
data: twve.tcalc.rowData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var row = this.data.arg[0] =
twve.tcalc.rowData.rowNumber(this.data.arg[0]);
if ( row < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( row >= rows.length ) return '0';
var cells = rows[row].querySelectorAll('th,td');
var thiscol = twve.tcalc.curCellCol();
this.data.getRange(thiscol,cells.length);
var result = 0;
for(var c=this.data.first; c<this.data.last; c++){
if ( c != thiscol &&
/\S/.test(twve.tcalc.cellContent(cells,c,true)) )
result++;
}
return result+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! COUNTROW
***/
//{{{
{
description: 'Count the number of numerical values in one row, excluding this cell, with optional range of counting.',
usage: '=COUNTROW([1[,how]]) will count the number of numerical values in row 1 (the 2nd row). Current row is assumed if the 1st argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.',
name: 'COUNTROW',
data: twve.tcalc.rowData.create(),
startParsing: function(){
this.data.clear();
},
stopParsing: function () {
var row = this.data.arg[0] =
twve.tcalc.rowData.rowNumber(this.data.arg[0]);
if ( row < 0 ) return '0';
var twtable = twve.tcalc.cur_twtable;
if ( ! twtable ) return '0';
var rows = twtable.dom.querySelectorAll('tr');
if ( row >= rows.length ) return '0';
var cells = rows[row].querySelectorAll('th,td');
var thiscol = twve.tcalc.curCellCol();
this.data.getRange(thiscol,cells.length);
var result = 0;
for(var c=this.data.first; c<this.data.last; c++){
if (c == thiscol) continue;
var tmp = twve.tcalc.cellContent(cells,c,true);
if ( tmp ) {
tmp = tmp*1;
if ( ! isNaN(tmp) ) result++;
}
}
return result+'';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! COUNT
***/
//{{{
{
name: 'COUNT',
data: {
count: 0,
condition: null
},
startParsing: function () {
this.data.condition = null;
this.data.count = 0;
},
stopParsing: function () {
return ''+this.data.count;
},
parseSingleTerm: function ( txt ) {
//this.data.parseArgument(txt);
if (twve.tcalc.isNumeric(txt)) {
if ( this.data.condition ) {
if(twve.tcalc.parseTrueFalse(
this.data.condition.replace(/\%/g,txt)
))
this.data.count++;
} else this.data.count++;
} else if ( ! this.data.condition ) {
txt = txt.trim();
if (/%\s*[><=!]/.test(txt)) {
var ch = txt.charAt(0);
this.data.condition = (ch=="'" || ch=='"')
? txt.substring(1,txt.length-1)
: txt;
}
}
}
},
//}}}
/***
!!!!! MAX
***/
//{{{
{
name: 'MAX',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return this.data.arg[0];
},
parseSingleTerm: function ( txt ) {
if ( (txt=twve.tcalc.isNumeric(txt)) ) {
if ( this.data.arg.length === 0 )
this.data.arg[0] = txt;
else if ( this.data.arg[0] < txt )
this.data.arg[0] = txt;
}
}
},
//}}}
/***
!!!!! MIN
***/
//{{{
{
name: 'MIN',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return this.data.arg[0];
},
parseSingleTerm: function ( txt ) {
if ( (txt=twve.tcalc.isNumeric(txt)) ) {
if ( this.data.arg.length === 0 )
this.data.arg[0] = txt;
else if ( this.data.arg[0] > txt )
this.data.arg[0] = txt;
}
}
},
//}}}
/***
!!!!! AVERAGE/AVG/MEAN
***/
//{{{
{
name: ['AVERAGE', 'AVG', 'MEAN'],
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
this.data.arg[0] = 0; // sum
this.data.arg[1] = 0; // count
},
stopParsing: function () {
return ''+(this.data.arg[0]/this.data.arg[1]);
},
parseSingleTerm: function ( txt ) {
if ( (txt=twve.tcalc.isNumeric(txt)) ) {
this.data.arg[0] += (txt*1);
this.data.arg[1]++;
}
}
},
//}}}
/***
!!!!! FACT, factorial
***/
//{{{
{
name: 'FACT',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return twve.tcalc.factorial(this.data.arg[0]);
},
parseSingleTerm: function ( txt ) {
if((txt=twve.tcalc.isNumeric(txt))){
this.data.arg[0] = parseInt(txt);
}
}
},
//}}}
/***
!!!!! COMBIN
***/
//{{{
{
name: 'COMBIN',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return Math.round(
twve.tcalc.factorial(this.data.arg[0]) /
twve.tcalc.factorial(this.data.arg[1]) /
twve.tcalc.factorial(this.data.arg[0]-this.data.arg[1])
);
},
parseSingleTerm: function ( txt ) {
if ( this.data.arg.length === 0 ) {
if ( (txt=twve.tcalc.isNumeric(txt)) )
this.data.arg[0] = parseInt(txt);
} else if((txt=twve.tcalc.isNumeric(txt)))
this.data.arg[1] = parseInt(txt);
}
},
//}}}
/***
!!!!! THISHOUR
***/
//{{{
{
name: 'THISHOUR',
//no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( ! this.data.arg[0] )
// No valid time specified.
return 'false';
var d = new Date();
var h = d.getHours()+(d.getMinutes()/60);
var h1 = this.data.arg[0][0];
if ( ! this.data.arg[1] ) {
// There is one time specified, returns true if it is the
// same as this hour.
return ''+ (h1 == h);
} else {
// There is a range of time specified, returns true if this
// hour is within the range.
var h2 = this.data.arg[1][0];
return ''+((h1 <= h && h < h2)||
(h2 <= h && h < h1));
}
},
parseSingleTerm: function ( txt ) {
return twve.tcalc.parse_time_arg(this.data,txt);
}
},
//}}}
/***
!!!!! THISDAYOFWEEK
***/
//{{{
{
name: ['THISDOW', 'THISDAYOFWEEK'],
//no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return ''+(typeof this.data.arg[0] === 'number' &&
this.data.arg[0] == new Date().getDay());
},
parseSingleTerm: function ( txt ) {
if ( /[0-7]/.test(txt) ){
// Valid numerals for the day of week.
this.data.arg[0] = txt*1;
return;
}
txt = txt.toLowerCase();
var pos = twve.position.create(0);
// Check for Chinese day of week.
var dow = twve.tcalc.dow_zh;
pos = twve.text.indexOf(txt,dow,pos);
if ( pos.ndx > -1 ) {
this.data.arg[0] = dow.indexOf(pos.matched);
return;
}
// If not found, check for English
dow = twve.tcalc.dow_en;
pos.ndx = 0;
pos = twve.text.indexOf(txt,dow,pos);
if ( pos.ndx > -1 ) {
this.data.arg[0] = dow.indexOf(pos.matched);
if ( this.data.arg[0] > 4 ) this.data.arg[0]--;
return;
}
// If still not found, check for Japanese
dow = twve.tcalc.dow_jp;
pos.ndx = 0;
pos = twve.text.indexOf(txt,dow,pos);
if ( pos.ndx > -1 ) {
this.data.arg[0] = dow.indexOf(pos.matched);
}
}
},
//}}}
/***
!!!!! THISWEEK
***/
//{{{
{
name: 'THISWEEK',
no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
same_week : function(d1,d2){
// Compare day of month.
var dm1 = d1.getDate();
var dm2 = d2.getDate();
if ( dm1 == dm2 )
// Same day.
return true;
if ( Math.abs(dm1-dm2) > 7 )
// The two dates are more than 7 days apart, can not be
// in the same week.
return false;
// The two dates are not the same but within 7 days apart.
// Compare day of week.
var dw1 = d1.getDay();
var dw2 = d2.getDay();
// If day of month is larger, then the day of week must also
// be larger, if they are really in the same week.
if ( dm2 > dm1 ) return dw2 > dw1;
// Otherwise check the opposite.
return dw2 < dw1;
},
stopParsing: function () {
if ( ! this.data.arg[0] )
// No valid dates given.
return 'false';
var today = new Date();
if ( ! this.data.arg[1] ) {
// A single date is given, check if it is within the same
// week as today.
// First we compare the year and month
if ( ! twve.tcalc.same_year_month(this.data.arg[0],today) )
// Not the same year and month as today, must not be in
// this week.
return 'false';
// Same year and month as today, check for same week.
return ''+this.same_week(this.data.arg[0],today);
}
// A range of dates
if ( twve.tcalc.same_year_month(this.data.arg[0],today) )
// Date1 is within the same year and same month as today.
return ''+this.same_week(this.data.arg[0],today);
if ( twve.tcalc.same_year_month(this.data.arg[1],today) )
// Date2 is within the same year and same month as today.
return ''+this.same_week(this.data.arg[1],today);
// Neither date is within the same week as today,
// return false.
return 'false';
},
parseSingleTerm: function ( txt ) {
return twve.tcalc.parse_date_arg(this.data,txt);
}
},
//}}}
/***
!!!!! THISMONTH
***/
//{{{
{
name: 'THISMONTH',
//no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( ! this.data.arg[0] )
// No valid dates given.
return 'false';
var today = new Date();
if ( ! this.data.arg[1] ) {
// A single date is given, check if it is within the same
// month as today.
return twve.tcalc.same_year_month(this.data.arg[0],today)
? 'true' : 'false';
}
// A range of dates, returns true if either one is whithin the
// same month as today.
return twve.tcalc.same_year_month(this.data.arg[0],today) ||
twve.tcalc.same_year_month(this.data.arg[1],today)
? 'true' : 'false';
},
parseSingleTerm: function ( txt ) {
return twve.tcalc.parse_date_arg(this.data,txt);
}
},
//}}}
/***
!!!!! DAYOFWEEK
***/
//{{{
{
name: ['DOW', 'DAYOFWEEK'],
description: 'Returns a number from 0 (Sun) to 6 (Sat), indicating the day of week of a given date.',
usage: 'For example, =DAYOFWEEK(2016/12/06) returns 0 (Sun).',
no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( ! this.data.arg[0] ) return '';
var dow = this.data.arg[0].getDay();
return this.data.how() == 'NUM'
? dow
: (twve.tcalc.isZH()
? twve.tcalc.dow_zh[dow]
: (twve.tcalc.isJP()
? twve.tcalc.dow_jp[dow]
: twve.tcalc.dow_en[dow]));
},
parseSingleTerm: function ( txt ) {
switch ( this.data.arg.length ) {
case 0 :
this.data.arg[0] = twve.tcalc.parse_date(txt);
break;
case 1 :
this.data.arg[1] = txt.toUpperCase();
break;
}
}
},
//}}}
/***
!!!!! DAYS
***/
//{{{
{
name: 'DAYS',
no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return (!this.data.arg[0] || !this.data.arg[1])
? null
: twve.tcalc.days(
this.data.arg[0],this.data.arg[1],this.data.arg[2]
);
},
parseSingleTerm: function ( txt ) {
switch ( this.data.arg.length ) {
case 0 :
this.data.arg[0] = twve.tcalc.parse_date(txt);
break;
case 1 :
this.data.arg[1] = twve.tcalc.parse_date(txt);
break;
case 2 :
this.data.parseArgument(txt);
break;
}
}
},
//}}}
/***
!!!!! MONTHS
***/
//{{{
{
name: 'MONTHS',
no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( ! this.data.arg[0] || ! this.data.arg[1] ) return null;
var y = [
this.data.arg[0].getFullYear(),
this.data.arg[1].getFullYear()
];
var m = [
this.data.arg[0].getMonth(),
this.data.arg[1].getMonth()
];
var d = [
this.data.arg[0].getDate(),
this.data.arg[1].getDate()
];
if ( typeof this.data.num_dec != 'number' )
this.data.num_dec = 0;
if ( y[0] == y[1] ) {
// Same year
return twve.tcalc.months(
m[0],d[0],m[1],d[1],y[1],this.data.num_dec
);
} else {
// Different years
var earlier = 0, later = 1;
if ( y[1] < y[0] ) {
earlier = 1; later = 0;
}
var dm =
// months between the years
(y[later]-y[earlier]-1)*12 +
// months in the earlier year to the end
twve.tcalc.months(
m[earlier],d[earlier],11,31,y[earlier],
this.data.num_dec
) +
// months in the later year from the beginning
twve.tcalc.months(
0,1,m[later],d[later],y[later],
this.data.num_dec
);
return earlier == 0 ? dm : -dm;
}
},
parseSingleTerm: function ( txt ) {
switch ( this.data.arg.length ) {
case 0 :
this.data.arg[0] = twve.tcalc.parse_date(txt);
break;
case 1 :
this.data.arg[1] = twve.tcalc.parse_date(txt);
break;
case 2 :
this.data.parseArgument(txt);
break;
}
}
},
//}}}
/***
!!!!! DATEADD
***/
//{{{
{
name: 'DATEADD',
no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var date = this.data.arg[0] || new Date();
date = new Date(
date.getFullYear()+this.data.arg[1],
date.getMonth()+(this.data.arg[2]||0),
date.getDate()+(this.data.arg[3]||0)
);
return twve.tcalc.format_date_string(
date,
twve.tcalc.parse_date_format(
this.data.arg[4]
)
);
},
parseSingleTerm: function ( txt ) {
var len = this.data.arg.length;
switch ( len ) {
case 0 :
this.data.arg[0] = twve.tcalc.parse_date(txt);
break;
case 1 :
case 2 :
case 3 :
txt = twve.tcalc.evaluate_arithmetics(txt);
//txt = twve.tcalc.isNumeric(txt);
this.data.arg[len] = txt ? (txt*1) : 0;
break;
case 4 :
this.data.arg[4] = txt;
break;
}
}
},
//}}}
/***
!!!!! DATE
***/
//{{{
{
name: 'DATE',
no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var date = new Date();
date = new Date(
this.data.arg[0] || today.getFullYear(),
(this.data.arg[1]?(this.data.arg[1]-1):today.getMonth()),
this.data.arg[2] || today.getDate()
);
return twve.tcalc.format_date_string(
date,
twve.tcalc.parse_date_format(
this.data.format
)
);
},
parseSingleTerm: function ( txt ) {
var len = this.data.arg.length;
switch ( len ) {
case 0 :
case 1 :
case 2 :
txt = twve.tcalc.evaluate_arithmetics(txt);
//txt = twve.tcalc.isNumeric(txt);
this.data.arg[len] = txt ? (txt*1) : 0;
break;
case 3 :
this.data.arg[3] = txt;
break;
}
}
},
//}}}
/***
!!!!! TODAY
***/
//{{{
{
name: 'TODAY',
no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return twve.tcalc.format_date_string(
new Date(),
twve.tcalc.parse_date_format(
this.data.arg[0]
)
);
},
parseSingleTerm: function ( txt ) {
this.data.arg[0] = txt;
}
},
//}}}
/***
!!!!! ROUND
***/
//{{{
{
name: 'ROUND',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
this.data.arg[0] = twve.tcalc.round(
this.data.arg[0],this.data.arg[1]
);
return this.data.arg[0]?(''+this.data.arg[0]):'0';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! EXP
***/
//{{{
{
name: 'EXP',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return this.data.arg[0]?(''+this.data.arg[0]):'0';
},
parseSingleTerm: function ( txt ) {
this.data.arg[0] = Math.exp(txt*1);
}
},
//}}}
/***
!!!!! LN
***/
//{{{
{
name: 'LN',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return this.data.arg[0]?(''+this.data.arg[0]):'0';
},
parseSingleTerm: function ( txt ) {
this.data.arg[0] = Math.log(txt*1);
}
},
//}}}
/***
!!!!! LOG10
***/
//{{{
{
name: 'LOG10',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return this.data.arg[0]?(''+this.data.arg[0]):'0';
},
parseSingleTerm: function ( txt ) {
this.data.arg[0] = Math.log(txt*1)/Math.log(10);
}
},
//}}}
/***
!!!!! LOG
***/
//{{{
{
name: 'LOG',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( !this.data.arg[1] ) this.data.arg[1] = 10;
var result =
Math.log(this.data.arg[0])/Math.log(this.data.arg[1]);
return result?(''+result):'0';
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! AND
***/
//{{{
{
name: 'AND',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var len = this.data.arg.length;
if ( len < 2 ) return 'false';
for ( var i=0; i<len; i++ )
if ( ! this.data.arg[i] ) return 'false';
return 'true';
},
parseSingleTerm: function ( txt ) {
this.data.arg[this.data.arg.length] =
twve.tcalc.parseTrueFalse(txt);
}
},
//}}}
/***
!!!!! OR
***/
//{{{
{
name: 'OR',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var len = this.data.arg.length;
if ( len == 0 ) return 'false';
for ( var i=0; i<len; i++ )
if ( this.data.arg[i] ) return 'true';
return 'false';
},
parseSingleTerm: function ( txt ) {
this.data.arg[this.data.arg.length] =
twve.tcalc.parseTrueFalse(txt);
}
},
//}}}
/***
!!!!! XOR
***/
//{{{
{
name: 'XOR',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( this.data.arg.length < 2 ) return 'false';
return this.data.arg[0]
? (! this.data.arg[1])
: this.data.arg[1];
},
parseSingleTerm: function ( txt ) {
this.data.arg[this.data.arg.length] =
twve.tcalc.parseTrueFalse(txt);
}
},
//}}}
/***
!!!!! EQUAL
***/
//{{{
{
description: 'Tests if two contents are equal.',
usage: '=EQUAL(A1,B2) returns true if the content in cells A1 and B2 are equal to each other.',
name: 'EQUAL',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( this.data.arg.length < 2 ) return 'false';
return this.data.arg[0] == this.data.arg[1];
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! RANDOM
***/
//{{{
{
description: 'Returns a psuedo random number.',
usage: '=RANDOM().',
name: 'RANDOM',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var result = Math.random();
if ( this.data.arg[0] ) result *= this.data.arg[0];
return result;
},
parseSingleTerm: function ( txt ) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! CONCAT
***/
//{{{
{
description: 'Returns the concatenated result.',
usage: '=CONCAT(A2,C5,H8)/CONCAT(D3:Z5) returns the concatenated result of the contents in the given cells.',
name: 'CONCAT',
no_eval: true
},
//}}}
/***
!!!!! ISNUMERIC
***/
//{{{
{
description: 'Tests if a piece of text is a numeric value.',
usage: '=ISNUMERIC(D6) returns true if the content in cell D6 is a numerical value.',
name: 'ISNUMERIC',
no_eval: true,
parseSingleTerm: function (txt) {
var txt2=twve.tcalc.isNumeric(txt);
return txt2 ? txt2 : 'false';
}
},
//}}}
/***
!!!!! STDERR/STDEV
***/
//{{{
{
description: 'Returns the standard deviation.',
usage: '=STDERR(C3:G8)/STDDEV(C3:G8) returns the standard deviation of the numerical values contained in cells from C3 to G8.',
name: ['STDERR', 'STDEV'],
//no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
var npt = this.data.arg.length;
if ( npt == 0 ) return 0;
var mean = 0, variance = 0, i;
for(i=0; i<npt; i++)
mean += this.data.arg[i];
mean /= npt;
for(i=0; i<npt; i++ ) {
variance += Math.pow(this.data.arg[i]-mean,2);
}
return Math.sqrt(variance/(npt-1));
},
parseSingleTerm: function (txt) {
this.data.parseArgument(txt);
}
},
//}}}
/***
!!!!! COLUMNA/COLA
***/
//{{{
{
description: 'Returns the alphabet reference of a given column or the current column.',
usage: '=COL()/COLUMN() returns the alphabet reference of the current column, while =COL(H4)/COLUMN(H4) returns the alphabet reference of the column containing cell H4.',
name: ['COLUMNA', 'COLA'],
//no_eval: true,
no_deref: true,
data: twve.tcalc.columnData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return twve.tcalc.colRef(
twve.tcalc.columnData.columnNumber(this.data.arg[0])
);
},
parseSingleTerm: function (txt) {
if ( this.data.arg.length == 0 )
this.data.arg[0] = twve.tcalc.referenceToIndexCol(txt);
}
},
//}}}
/***
!!!!! COLUMNS/COLS
***/
//{{{
{
description: 'Count the number of columns among given cells.',
usage: '=COLS(B1:H4)/COLS(A1,C4:H5) returns the number of columns containing those given cells.',
name: ['COLUMNS', 'COLS'],
no_eval: true,
no_deref: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
this.data.arg[0] = 0;
},
stopParsing: function () {
return ''+this.data.arg[0];
},
parseSingleTerm: function (txt) {
txt = txt.split(':');
switch ( txt.length ) {
case 1 :
this.data.arg[0]++; break;
case 2 :
// a range of cells
var c0 = twve.tcalc.referenceToIndexCol(txt[0]),
c1 = twve.tcalc.referenceToIndexCol(txt[1]);
this.data.arg[0] += (c1-c0+1);
break;
default :
// Syntax error
throw 'Syntax error: '+txt;
break;
}
}
},
//}}}
/***
!!!!! COLUMN/COL
***/
//{{{
{
description: 'Returns the index of a given column or the current column.',
usage: '=COL()/COLUMN() returns the index of the current column, while =COL(H4)/COLUMN(H4) returns the index of the column containing cell H4.',
name: ['COLUMN', 'COL'],
//no_eval: true,
no_deref: true,
data: twve.tcalc.columnData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
this.data.arg[0] =
twve.tcalc.columnData.columnNumber(this.data.arg[0]);
return this.data.arg[0] < 0 ? '' : (''+this.data.arg[0]);
},
parseSingleTerm: function (txt) {
if ( this.data.arg.length == 0 )
this.data.arg[0] = twve.tcalc.referenceToIndexCol(txt);
}
},
//}}}
/***
!!!!! ROWS
***/
//{{{
{
description: 'Count the number of rows among given cells.',
usage: '=ROWS(B1:H4)/ROWS(A1,C4:H5) returns the number of rows containing those given cells.',
name: 'ROWS',
no_eval: true,
no_deref: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
this.data.arg[0] = 0;
},
stopParsing: function () {
return ''+this.data.arg[0];
},
parseSingleTerm: function (txt) {
txt = txt.split(':');
switch ( txt.length ) {
case 1 :
this.data.arg[0]++; break;
case 2 :
// a range of cells
var r0 = twve.tcalc.referenceToIndexRow(txt[0]),
r1 = twve.tcalc.referenceToIndexRow(txt[1]);
this.data.arg[0] += (r1-r0+1);
break;
default :
// Syntax error
throw 'Syntax error: '+txt;
break;
}
}
},
//}}}
/***
!!!!! ROW
***/
//{{{
{
description: 'Returns the index of a given row or the current row.',
usage: '=ROW() returns the index of the current row, while =ROW(H4) returns the index of the row containing cell H4.',
name: 'ROW',
no_deref: true,
data: twve.tcalc.rowData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
this.data.arg[0] =
twve.tcalc.rowData.rowNumber(this.data.arg[0]);
return this.data.arg[0] < 0
? '' : (''+this.data.arg[0]);
},
parseSingleTerm: function (txt) {
if ( this.data.arg.length == 0 )
this.data.arg[0] = twve.tcalc.referenceToIndexRow(txt);
}
},
//}}}
/***
!!!!! SQRT
***/
//{{{
{
description: 'Square root funciton.',
usage: '=SQRT(A3) returns the square root of the number in cell A3.',
name: 'SQRT',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( this.data.arg[0] == 0 ) return 0;
return this.data.arg[0] > 0
? Math.sqrt(this.data.arg[0])
: (Math.sqrt(-this.data.arg[0])+' i');
},
parseSingleTerm: function (txt) {
if (this.data.arg.length == 0)
this.data.arg[0] = parseFloat(txt);
}
},
//}}}
/***
!!!!! IF
***/
//{{{
{
description: 'Conditional assignment function.',
usage: '=IF(condition,resultT,resultF) will assign the resultT when condition is evaluated to true, or result F when false.',
name: 'IF',
//no_eval: true,
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
return this.data.arg[0] == true
? (this.data.arg[1] || '')
: (this.data.arg[2] || '');
},
parseSingleTerm: function (txt,p0) {
var len = this.data.arg.length;
p0 += twve.text.skipStyleText(txt,p0,true);
try{
switch ( len ) {
case 2 :
case 1 :
//this.data.arg[len] = txt.substring(0,p0) +
// twve.tcalc.evaluate_arithmetics(txt,p0);
this.data.arg[len] = txt;
break;
case 0 :
this.data.arg[len] =
twve.tcalc.parseTrueFalse(txt);
break;
}
} catch(e) {
this.data.arg[len] = txt;
}
}
},
//}}}
/***
!!!!! COUNTDOWN
***/
//{{{
{
description: '...',
usage: '...',
name: 'COUNTDOWN',
data: twve.tcalc.functionData.create(),
startParsing: function () {
this.data.clear();
},
stopParsing: function () {
if ( this.data.arg[0] === null ) return;
var result = '';
// Determine end and interval of countdown.
if ( this.data.type == 'number' ) {
// The end
result = result
? twve.tcalc.isNumeric(this.data.arg[1]) : 0;
if ( result ) {
this.data.arg[1] = result*1;
if ( Math.abs(this.data.arg[1]) < 1e-5 )
this.data.arg[1] = 0;
} else
// Default to 0.
this.data.arg[1] = 0;
// The interval
result = this.data.arg[2]
? twve.tcalc.isNumeric(this.data.arg[2]) : 1;
if ( result ) {
this.data.arg[2] = result*1;
if(this.data.arg[2]/
(this.data.arg[1]-this.data.arg[0])<1e-4)
this.data.arg[2] =
(this.data.arg[1]-this.data.arg[0])*(1e-4);
} else
// Default to 1.
this.data.arg[2] = 1;
} else if ( this.data.type == 'date' ) {
// The end
result = Date.parse(this.data.arg[1]);
if ( ! isNaN(result) ) {
this.data.arg[1] = result;
} else
// Default to now.
this.data.arg[1] = new Date();
// The interval
result = Date.parse(this.data.arg[2]);
if ( ! isNaN(result) ) {
this.data.arg[2] = result;
} else
// Default to 1 second.
this.data.arg[2] = 1000;
} else {
// String
if ( this.data.arg[1] === null ) this.data.arg[1] = '';
if ( this.data.arg[2] === null ) this.data.arg[2] = 1;
}
// Do the countdown
},
parseSingleTerm: function (txt) {
var len = this.data.arg.length;
switch ( len ) {
case 0 :
var result = twve.tcalc.isNumeric(txt);
if ( result ){
this.data.arg[0] = result*1;
this.data.type = 'number';
} else {
result = Date.parse(txt);
if ( ! isNaN(result) ) {
this.data.arg[0] = result;
this.data.type = 'date';
} else {
this.data.arg[0] = txt;
this.data.type = 'string';
}
}
break;
case 1 :
case 2 :
this.data.arg[len] = txt;
break;
}
}
}
];
}());
//}}}
[[twve.tcalc--Example--Simple Arithmetics]]
[[twve.tcalc--Example--Commonly Used Funtions]]
[[twve.tcalc--Example--Less Commonly Used Funtions]]
[[twve.tcalc--Example--Date and Time]]
[[twve.tcalc--Example--IF and COUNT]]
[[twve.tcalc--Example--Auto-djustment of Cell References]]
[[twve.tcalc--Example--Simple Statistics]]
[[twve.tcalc--Defining Your Own Functions]]
[[twve.tcalc--Example--The Javascript Math Funtions]]
The ''twve.tcalc'' plugin (formerly [[TWtcalc|http://twtable.tiddlyspace.com/#TWtcalc.1.0.10]] and [[TableCalculator|http://twtable.tiddlyspace.com/#TableCalculator]]) suports user defined functions written in Javascript. If you are not familiar with it, there are tons of useful references over the internet for you to dig in.
All user defined functions accepts cell references in one of the following ways:
{{{
FUNCTION(A3:H5) // calculate over the cells between A3 and H5.
FUNCTION(A1, B2, C3, D4) // calculate over separated cells
FUNCTION(A2:B4,C6,C8,D7:D10) // well, if you know OpenOffice.calc and Excel...
}}}
The ''twve.tcalc'' takes care of the de-referencing/evaluation of cell contents for your functions to use. You simply focus on dealing with the cell contents and the return values from other functions.
User defined functions are collected as an array in the ''twve.tcalc'' as the following:
{{{
config.macros.twve.tcalc.fn = [
{
// Function 0
},
{
// Function 1
},
{
// Function 2
}
];
}}}
New functions can be added into this array in any order. The ''twve.tcalc'' takes care of their use if they are properly defined.
!!! Defining your own functions
There are a few things you need to know to define your own functions. First of all, a function is ''required to have a name'', __everything else is optional__. Therefore the simplest function definition is:
{{{
{
name: 'FUNCTION', // Required and ALL CAPITAL.
},
}}}
>The user defined functions are case insensitive in ''twve.tcalc''. Their names are converted to uppercase for internal use. Therefore the name here has to be ALL CAPITAL otherwise it is not recognized by ''twve.tcalc''.
>>Supports name aliasing in user-defined functions. Simply list all the aliases/nicknames of your function in an array and assign it to the {{{NAME}}} property of the function. For example,
{{{
{
name: ['AVERAGE', 'MEAN'],
...
},
...
...
{
name: ['STDERR', 'STDEV'],
...
},
}}}
>Note that the function is enclosed by a pair of curly brackets, followed by a comma after the closing one. Also note the ending comma at the end of each line, except for the opening curly brace and the last statement of definition. These are required by Javascript which is not covered in this tiddler. Please search over the Internet for references if you need to know about it.
>>There is NO NEED to add a comma at the end of the last statement of definition. It is supposed to be optional (and it is for FF and Chrome), but ''~IE9'' seems quite strict on this - you can not add a comma to the end of the last statement of definition.
Such a function does not do anything, of course. To make it useful, you can define either
# its operator or
# one (or more) of the three parsing functions.
!!! The operator
The operator is for Javascript to evaluate the return value of your function, so it has to be a valid Javascript operator. Let's look at a very simple example to see how it works. The simplest version of SUM function can be defined as
{{{
{
name: 'SUM',
operator: '+' // The last statement of definition needs no comma.
},
}}}
This function accepts cell references as shown above. It simply converts the accepted formats into valid Javascript expressions and leave them to Javascript for evaluation. For example,
{{{
SUM(A3:H5) would be converted to A3+A4+A5+B3+B4+B5+...+H3+H4+H5
}}}
The cell contents will be extracted before passing to Javascript for sure.
>The ''twve.tcalc'' uses the {{{eval()}}} function in Javascript for evaluation of expressions. With this {{{eval()}}} function the {{{+}}} operator (and {{{*}}} too) is supposed to deal with numeric expressions only. Mixing numeric and non-numeric expressions with the {{{+}}} operator sometimes generates {{{NaN}}} (Not a Number), which is considered a number in Javascript but really not so useful. This function, however, does not do any kind of checking on the cell contents, so if some of the cells contain non-numeric expressions, they will be passed to Javascript and may give rise to such a situation. To avoid such things, you can define the {{{parse_single_term ()}}} function (see below) and do the proper checking on cell contents.
!!! The parsing functions
There are three parsing functions you can define in your function:
# {{{start_parsing ()}}}
** You can do initialization for your function here.
# {{{stop_parsing ()}}}
** You can clear and close up your function here.
# {{{parse_single_term ()}}}
** If your function takes arguments, you need to take care of them here, one at a time.
All these parsing functions are optional. You can define any or none of them, depending on your function's designated purpose.
!!!! The {{{parse_single_term()}}} function
Let's look at the {{{parse_single_term()}}} function first. This function takes only one argument, because all the user defined functions are designed to handle one argument at a time. Let's use the SUM function again as an example, but this time we define its {{{parse_single_term()}}} function.
{{{
{
name: 'SUM',
operator: '+',
parse_single_term: function ( txt ) {
return config.macros.TableCalculator.isnumeric(txt) ? txt : '0';
} // The last statement of definition needs no comma.
},
}}}
In this slightly advanced version we look at the argument in the {{{parse_single_term()}}} function, convert it to '0' if it is non-numeric. This way we can avoid the possible situation mentioned above. We can certainly do more things in this function if necessary.
>Note that the argument passed here has already been de-referenced/evaluated. It could be the evaluated content of a cell, the return value of a function, or whatever the user typed in upon calling this function. There is no cell reference or function names in the argument, you simply focus on what your function would do on the arguments, one at a time.
!!!! The other two parsing functions
The {{{start_parsing()}}} and {{{stop_parsing()}}} are for the initialization and closing up of your function, useful for functions with no arguments or functions that do the actual calculations (instead of making a valid Javascript statement and do nothing). They do not accept arguments though.
For functions without arguments, such as {{{TODAY()}}}, you can return its value in either of these two functions.
For functions that do the actual calculations, see the template below or functions defined in the ''twve.tcalc'' plugin for details. For example, {{{DAYS(date1, date2, num_dec)}}}, {{{ROUND(value, num_dec)}}}, and {{{RANDOM(factor)}}} functions do not generate a Javascript statement but the results of their designated calculations.
!!! More to go
There are much more things you can do with the user defined functions: functions with other Javascript operators, functions with more than one arguments, etc. Look into the already-defined functions in the ''twve.tcalc'' for references.
!!! Template
The following codes show a general template for user defined functions. You can use it to define your own.
{{{
{
name: 'FUNCTION', // Required and ALL CAPITAL.
no_eval: true, // Optional. If your function is dealing with
// numeric stuffs and you'd like Javascript to
// evaluate the return value of this function,
// remove this line.
operator: '+', // Optional. This is for Javascript to evaluate
// the return value of this function. Remove if not needed.
var1: null, // Optional. Remove if not needed.
var2: null, // Optional. Remove if not needed.
// You can define more variables here.
start_parsing: function () {
// Optional initialization. Remove this function if not needed.
// No arguments here.
this.var1 = this.var2 = null;
},
stop_parsing: function () {
// Optional stopping function. Remove this function if not needed.
// No arguments here.
return (some calculations on var1 and var2);
},
parse_single_term: function ( txt ) {
// Optional single term parsing function. Remove this function if not needed.
// Only one argument here. The argument passed here is already
// de-referenced/evaluated. There is NO cell references or function names
// in the argument.
if ( !this.var1 ) {
// First argument. Do whatever you want.
this.var1 = some_function(txt);
}
else if ( !this.var2 ) {
// Second argument. Do whatever you want.
this.var2 = do_some_thing_on(txt);
} else if ( more variables defined ) {
// The following arguments...
}
}
},
}}}
<<<
The ''twve.tcalc'' supports //auto adjustment of cell references// in the following situations:
# change in cell content,
** See [[twve.table--Example--A Simple Table]] for how to esit a cell.
# copy-and-pasting of
** a single table cell,
** a table row/column;
*** See [[twve.table--Example--Copy and Paste]] for how to copy and paste a cell or a row/column.
# insertion/deletion/exchange of table rows/columns,
** See [[twve.table--Example--Insertion, Deletion, and Exchange]] for how to insert/delete a table row/column, and how to exchange it with its neighbor.
# table transposition.
** See [[twve.table--Example--Transposition]] for how to transpose a table.
<<<
@@In the simple table below you can check the formula before and after making one of the above changes to see the correctness (or incorrectness) of auto-adjustment.@@
|Simple Calculations|c
|editable|k
| A | B |h
| X1 | 15000|
|||
| X2 | 10000|
|>|background-color:yellow;|
| X1 + X2 | =B1+B3|
| X1/X2 | =B1/B3|
| X2 - X1 | =B3-B1|
| (X2 - X1)/X1 | =(B3-B1)/B1|
| Rounded to 0.01 | =round(b8,2)|
| as % (down to 0.1%) | =round(B8*100,1)%|
<<<
This tiddler shows some ''commonly used'' built-in functions in ''twve.tcalc'', including
# SUM
# AVERAGE/AVG/MEAN
** These are aliases of the same function.
# SQRT
# MAX, MIN
# COUNTA
** Counts the number of non-empty cells.
# COUNT
** Counts the number of numerical values.
** __Capable of doing conditional counting__, see [[twve.tcalc--Example--IF and COUNT]] for an example.
@@color:blue;Hover you mouse over a table cell, the tooltip text shows its cell reference and formula therein.@@
<<<
|Commonly Used Built-in Functions|c
|editable|k
| A | B |h
| Y1 | 1200|
| Y2 | 1500|
| Y3 | 1450|
|>|background-color:yellow;|
| SUM(B1:B3) | =sum(b1:b3)|
| AVERAGE(B1:B3) | =average(b1:b3)|
| Rounded to 0.01 | =round(avg(b1:b3),2)|
| SQRT(SUM) | =sqrt(b5)|
| Max of Y's | =max(b1:b3)|
| Min of Y's | =min(b1:b3)|
| COUNT(B1:B10) | =count(B1:B10)|
| COUNTA(B1:B10) | =COUNTA(B1:B10)|
<<<
This tiddler shows some ''Date and Time'' related built-in functions in ''twve.tcalc'', including
# TODAY
# DAYS(begin,end,num_dec) -- Calculates the date and time differences between two dates, from begin to end.
** If the 3^^rd^^ argument //num_dec// is given, this function returns the result in //number of days//, down to //num_dec// digits after decimal point.
** If, however, the 3^^rd^^ argument is missing, this function returns the result in D HH:MM:SS format, down to seconds.
@@color:blue;Hover you mouse over a table cell, the tooltip text shows its cell reference and formula therein.@@
<<<
|Date and Time|c
|editable|k
| A | B |h
| TODAY() | =today()|
| Date Started | 2014/05/01 12:00|
| Date Ended | 2014/05/13 18:00|
| DAYS(B2,B3,2) | =days(B2,B3,2)|
| DAYS(B2,B3) | =days(B2,B3)|
<<<
This tiddler shows a example of two built-in functions,
# {{{IF(condition, true statement, false statement)}}}
# {{{COUNT(condition statement, range of cells)}}}.
** The first argument {{{condition}}} uses the percentage symbol (%) as the placeholder for cell values.
** For example, in the table below, the formula in cell G4 is {{{=COUNT('%<60',F1:F20)}}}, meaning //to count the number of cells, from F1 to F20, that have numerical values less than 60.//
They are very similar to the ~OpenOffice.calc or MS Excel versions.
<<<
|IF Statement and Conditional Counting|c
|editable|k
| 1 | 2 | 3 | 4 | 5 | Total ||h
| 34| 7.5| 14| 17.5| 10| =if(sum(A1:E1)<60,color:red;sum(A1:E1),sum(A1:E1)) | (>=60) |
| 30| 10| 6| 10| 10| =if(sum(A2:E2)<60,color:red;sum(A2:E2),sum(A2:E2)) | =count('%>=60', F1:F20) |
| 34| 10| 14| 20| 10| =if(sum(A3:E3)<60,color:red;sum(A3:E3),sum(A3:E3)) | @@color:red;(<60)@@ |
| 34| 10| 6| 15| 10| =if(sum(A4:E4)<60,color:red;sum(A4:E4),sum(A4:E4)) | =count('%<60', F1:F20) |
| 34| 7.5| 16| 10| 10| =if(sum(A5:E5)<60,color:red;sum(A5:E5),sum(A5:E5)) | Max |
| 34| 10| 6| 20| 10| =if(sum(A6:E6)<60,color:red;sum(A6:E6),sum(A6:E6)) | =max(F1:F20) |
| 24| 10| 6| 0| 10| =if(sum(A7:E7)<60,@@color:red;sum(A7:E7)@@,sum(A7:E7)) | Min |
| 34| 10| 14| 10| 10| =if(sum(A8:E8)<60,color:red;sum(A8:E8),sum(A8:E8)) | =min(F1:F20) |
| 34| 10| 10| 10| 10| =if(sum(A9:E9)<60,color:red;sum(A9:E9),sum(A9:E9)) | Avg |
| 29| 10| 12| 20| 10| =if(sum(A10:E10)<60,color:red;sum(A10:E10),sum(A10:E10)) | =Avg(F1:F20) |
| 34| 10| 6| 15| 10| =if(sum(A11:E11)<60,color:red;sum(A11:E11),sum(A11:E11)) | \(\sigma\) |
| 34| 10| 6| 20| 10| =if(sum(A12:E12)<60,color:red;sum(A12:E12),sum(A12:E12)) | =round(stderr(f1:f20),2) |
| 9| 5| 6| 20| 10| =if(sum(A13:E13)<60,@@color:red;sum(A13:E13)@@,sum(A13:E13)) ||
| 34| 10| 6| 15| 20| =if(sum(A14:E14)<60,color:red;sum(A14:E14),sum(A14:E14)) ||
| 34| 10| 6| 20| 10| =if(sum(A15:E15)<60,color:red;sum(A15:E15),sum(A15:E15)) ||
| 34| 7.5| 6| 20| 10| =if(sum(A16:E16)<60,color:red;sum(A16:E16),sum(A16:E16)) ||
| 34| 7.5| 6| 18| 10| =if(sum(A17:E17)<60,color:red;sum(A17:E17),sum(A17:E17)) ||
| 21| 10| 8| 15| 10| =if(sum(A18:E18)<60,color:red;sum(A18:E18),sum(A18:E18)) ||
| 21| 5| 6| 5| 10| =if(sum(A19:E19)<60,@@color:red;sum(A19:E19)@@,sum(A19:E19)) ||
| 34| 7.5| 12| 18| 10| =if(sum(A20:E20)<60,color:red;sum(A20:E20),sum(A20:E20)) ||
<<<
This tiddler shows some ''less commonly used'' built-in functions in ''twve.tcalc'', including
# PRODUCT
# RANDOM(max)
# ISNUMERIC
# COLUMNA/COLA -- Literal column reference.
** {{{A}}} for the first column, {{{B}}} for the second, etc.
# COLUMNS/COLS -- Counts the number of columns in the specified range.
# COLUMN/COL -- Numerical column reference.
** {{{0}}} for the first column, {{{1}}} for the second, etc.
# ROWS -- Counts the number of rows in the specified range.
# ROW -- Numerical reference of a table row.
** {{{0}}} for the first row, {{{1}}} for the second, etc.
# CONCAT -- Concatenate the content in the specified cells, literally.
# EXP / LN / ~LOG10 / LOG
** Exponential / Natural logarithm / Base-10 logarithm / Arbitrary based logarithm.
@@color:blue;Hover you mouse over a table cell, the tooltip text shows its cell reference and formula therein.@@
<<<
|Less Commonly Used Built-in Functions|c
|editable|k
| A | B |h
| Y1 random(100) | =random(100)|
| Y2 random(100) | =random(100)|
| Y3 random(100) | =random(100)|
|>|background-color:yellow;|
| PRODCUCT(B1:B3) | =product(b1:b3)|
| ISNUMERIC(B4) | =isnumeric(b4)|
| COL() | =col()|
| COLA() | =cola()|
| COLS(A1:B1) | =cols(a1:b1)|
| ROW() | =row()|
| CONCAT(B8:B11) | =concat(B7:B10)|
|>|background-color:yellow;|
| EXP(2) | =exp(2)|
| LN(10) | =ln(10)|
| ~LOG10(100) | =log(100)|
| LOG(512,2) | =log(512,2)|
<<<
This tiddler shows the basic arithmetics, the most simple calculations supported in ''twve.tcalc''.
@@color:blue;Hover you mouse over a table cell, the tooltip text shows its cell reference and formula therein.@@
<<<
|Simple Calculations|c
|editable|k
| A | B |h
| X1 | 15000|
|||
| X2 | 10000|
|>|background-color:yellow;|
| X1 + X2 | =B1+B3|
| X1/X2 | =B1/B3|
| X2 - X1 | =B3-B1|
| (X2 - X1)/X1 | =(B3-B1)/B1|
| Rounded to 0.01 | =round(b8,2)|
| as % (down to 0.1%) | =round(B8*100,1)%|
<<<
This tiddler shows some ''statistics'' related built-in functions in ''twve.tcalc'', including
# MEAN/AVG/AVERAGE
# STDERR/STDEV
** This function implements the //corrected sample standard deviation// \[\sigma = \sqrt{{1 \over N-1}\sum_{i=1}^N\ \left(x_i - \bar x\right)^2},\] as described in [[Wikipedia Standard Deviation page|http://en.wikipedia.org/wiki/Standard_deviation]].
@@color:blue;Hover you mouse over a table cell, the tooltip text shows its cell reference and formula therein.@@
<<<
|Simple Statistics|c
|editable|k
| A | B |h
| Y1 random(100) | =random(100)|
| Y2 random(100) | =random(100)|
| Y3 random(100) | =random(100)|
| Y4 random(100) | =random(100)|
| Y5 random(100) | =random(100)|
|>|background-color:yellow;|
| MEAN(B1:B5) | =avg(b1:b5)|
| STDERR(B1:B5) \[\sigma = \sqrt{{1 \over N-1}\sum_{i=1}^N\ \left(x_i - \bar x\right)^2},\] | =stderr(b1:b5)|
| STDERR of the MEAN \[\sigma_\text{mean} = {\sigma \over \sqrt N}\] | =b8/sqrt(count(b1:b5))|
| \(\sigma_\text{mean}\) in % | =round(b9/b7*100,1)%|
<<<
The ''twve.tcalc'' supports the use of Javascript Math functions in a formula.
@@color:blue;Hover you mouse over a table cell, the tooltip text shows its cell reference and formula therein.@@
<<<
|Javascript Math functions|c
|editable|k
| A | B |h
| \(\pi\) | =4*Math.atan(1)|
| \(\pi \over 2\) | =B1/2|
| a random number | =random()|
|>|background-color:yellow;|
| Math.sin(B1) | =round(Math.sin(B1),2)|
| Math.sin(B2) | =Math.sin(B2)|
| Math.cos(B1) | =Math.cos(B1)|
| Math.cos(B2) | =round(Math.cos(B2),2)|
| Math.sqrt(B3) | =Math.sqrt(B3)|
| B9^^2^^ (equals B3) | =B9*B9|
!! Mixing JS Math functions with ''twve.tcalc'' functions
|editable|k
|It is possible to mix JS math functions with ''twve.tcalc'' functions.|c
|>|One can use the result of a ''twve.tcalc'' function as the argument <br>of a JS math function, as shown below.|
| Math.sqrt(random())| =Math.sqrt(random())|
|>|Or the opposite way.|
| sqrt(Math.random())| =sqrt(Math.random())|
/***
|editable|k
|''Name:''|twve.tcalc|
|''Description:''|A simple table calculator (spreadsheet) for ~TiddlyWiki|
|''Author:''|Vincent Yeh (qmo.wcy2@gmail.com)|
|''Source:''|* (minimized) http://twve.tiddlyspot.com/#twve.tcalc.min / http://twve.tiddlyspace.com/#twve.tcalc.min <br>* (regular) http://twve.tiddlyspot.com/#twve.tcalc / http://twve.tiddlyspace.com/#twve.tcalc|
|''Type:''|plugin|
|''Version:''|3.2.5|
|''Status:''|This plugin is still under development.<br>You are welcome to try and send feedback. :-)|
|''Date:''|2014/11/21 said goodbye to jQuery <br>2014/05/13 released 3.0.0 <br>2013/11/29 reformed <br>2013/06/02 released 1.0.0 <br>2012/10/19 released 0.7.0 <br>2012/09/04 started from ~TableCalculator 0.6.14|
|''License:''|MIT|
|''Core Version:''|2.6.5|
|''Needs to have:''|twve.core, twve.table|
!!Options
Look for [[twve.tcalc Options]] in the system Options panel.
***/
// @@display:none;
//{{{
"undefined"==typeof twve.table&&alert("twve.tcalc: This plugin needs twve.table to function properly. Please install twve.table before this one.");version.extensions.twve.tcalc={major:3,minor:2,revision:5,date:new Date("2015/11/06")};
config.macros.twveTcalcOptions={init:function(){twve.tcalc.preReadOnly=twve.tiddler.readOnly;twve.tiddler.readOnly=twve.tcalc.readOnly;twve.tcalc.preGetOptionsMenu=twve.tiddler.getOptionsMenu;twve.tiddler.getOptionsMenu=twve.tcalc.getOptionsMenu;twve.tcalc.preWikify=twve.node.wikify;twve.node.wikify=twve.tcalc.wikify;twve.tcalc.preGetTableMenu=twve.table.getTableMenu;twve.table.getTableMenu=twve.tcalc.getTableMenu;twve.tcalc.preTableCreate=twve.table.create;twve.table.create=twve.tcalc.tableCreate;
twve.table.colRef=twve.tcalc.colRef;twve.tcalc.prePrepareElements=twve.wrapper.prepareElements;twve.wrapper.prepareElements=twve.tcalc.prepareElements;void 0===config.options.chktwveTcalcEnabled&&(config.options.chktwveTcalcEnabled=void 0===config.options.chkTWtcalcEnabled?!0:config.options.chkTWtcalcEnabled);void 0===config.options.chktwveTcalcAllTables&&(config.options.chktwveTcalcAllTables=void 0===config.options.chkTWtcalcAllTables?!1:config.options.chkTWtcalcAllTables);void 0===config.options.chktwveTcalcInTextCalc&&
(config.options.chktwveTcalcInTextCalc=!1);void 0===config.options.chktwveTcalcThousandSeparated&&(config.options.chktwveTcalcThousandSeparated=void 0===config.options.chkTWtcalcThousandSeparated?void 0===config.options.chkTCalcThousandSeparated?!1:config.options.chkTCalcThousandSeparated:config.options.chkTWtcalcThousandSeparated);void 0===config.options.txttwveTcalcThousandSeparator&&(config.options.txttwveTcalcThousandSeparator=void 0===config.options.txtTWtcalcThousandSeparator?void 0===config.options.txtTCalcThousandSeparator?
",":config.options.txtTCalcThousandSeparator:config.options.txtTWtcalcThousandSeparator);void 0===config.options.txttwveTcalcDecimalMark&&(config.options.txttwveTcalcDecimalMark=void 0===config.options.txtTWtcalcDecimalMark?void 0===config.options.txtTCalcDecimalMark?".":config.options.txtTCalcDecimalMark:config.options.txtTWtcalcDecimalMark);void 0===config.options.chktwveTcalcDebugMode&&(config.options.chktwveTcalcDebugMode=void 0===config.options.chkTWtcalcDebugMode?void 0===config.options.chkTCalcDebugMode?
!1:config.options.chkTCalcDebugMode:config.options.chkTWtcalcDebugMode);merge(config.optionsDesc,{chktwveTcalcEnabled:"Enable ''twve.tcalc''",chktwveTcalcAllTables:'Calculate all tables. Otherwise only calculate tables with class "spreadsheet"',chktwveTcalcInTextCalc:"(@@color:red;Experimental@@) In text calculation. There can be multiple expressions in a statement.",chktwveTcalcThousandSeparated:"Apply thousands separation on numerical results. Default is false.",txttwveTcalcThousandSeparator:"Thousand separator. Default is comma (,).",
txttwveTcalcDecimalMark:"Decimal mark. Default is period (.).",chktwveTcalcDebugMode:"Enter debug mode to show error/exception messages. Default is false."});var a=config.shadowTiddlers.OptionsPanel,b=a.indexOf("[[twve.core Options");0<=b&&(b=a.indexOf("]]\n",b+2)+3,config.shadowTiddlers.OptionsPanel=a.substring(0,b)+"[[twve.tcalc Options|twve.tcalc Options]]\n"+a.substring(b));merge(config.shadowTiddlers,{"twve.tcalc Options":"<<twveTcalcOptions>>"})},order:{chktwveTcalcEnabled:0,chktwveTcalcAllTables:1,
chktwveTcalcThousandSeparated:2,txttwveTcalcThousandSeparator:3,txttwveTcalcDecimalMark:4,chktwveTcalcDebugMode:5},handler:function(a){config.macros.twveCoreOptions.showOptionsTable(a,"''twve.tcalc'' Options","twveTcalc",config.macros.twveTcalcOptions.order)}};
twve.tags.nested={create:function(a,b){var d=twve.tags.create(a,b);d.clone=function(){return twve.tags.nested.create()};d.matchedCloseTag=function(a,b){var g=1,h=a.length,k=twve.position.create(b.ndx);do{k=twve.text.indexOf(a,d.close,k);if(-1==k.ndx)return d.lastCloseTag(a,k,h);b=twve.text.indexOf(a,d.open,b);if(-1==b.ndx){b.ndx=k.ndx;do{if(0==--g)return k;k.ndx+=k.matched.length;k=twve.text.indexOf(a,d.close,k);if(-1==k.ndx)return d.lastCloseTag(a,k,h)}while(1)}if(k.ndx==b.ndx){if(0==--g)return k;
b.ndx+=b.matched.length;k.ndx+=k.matched.length}else if(k.ndx<b.ndx){do{if(0==--g)return k;k.ndx+=k.matched.length;k=twve.text.indexOf(a,d.close,k);if(-1==k.ndx)return d.lastCloseTag(a,k,h)}while(k.ndx<b.ndx);++g;b.ndx+=b.matched.length;k.ndx=b.ndx}else{do++g,b.ndx+=b.matched.length,b=twve.text.indexOf(a,d.open,b);while(-1<b.ndx&&b.ndx<k.ndx);--g;k.ndx+=k.matched.length;b.ndx=k.ndx}}while(1)};return d}};
twve.url={markupTags:function(){var a=twve.tags.create(["http://","https://","file://"],["[[","]]",", ",". "," "]);a.clone=function(){return twve.url.markupTags()};a.exactCloseTag=function(){return a};return a},create:function(a){var b=twve.element.create();b.tags=twve.url.markupTags();b.setTarget=function(a){var e=b.target;if(a&&(b.start.ensureValid(),twve.text.indexOf(a,b.tags.open,b.start),-1<b.start.ndx))return b.end.ndx=b.start.ndx,twve.text.indexOf(a,b.tags.close,b.end),0>b.end.ndx&&(b.end.ndx=
a.length),b.target=a.substring(b.start.ndx,b.end.ndx),e;b.target=null;return e};b.getTarget=function(){return b.target};b.waitForContent=function(){return 4==b.xmlhttp.readyState&&200==b.xmlhttp.status?(clearInterval(b.pid),b.callback&&b.callback(b.xmlhttp.responseText),b.xmlhttp.responseText):"Waiting for response from "+b.target};b.getContent=function(a){if(!b.target)return null;b.xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");if(!b.xmlhttp)return null;b.xmlhttp.open("GET",
b.target,a);try{b.xmlhttp.send()}catch(e){console.log(e)}if(a)b.callback=a,b.pid=setInterval(b.waitForContent,50);else return b.waitForContent()};b.postData=function(){};return!a||b.setTarget(a)?b:null}};
twve.tcalc={preReadOnly:null,readOnly:function(a){return a&&"twve.tcalc--example"==a.toLowerCase().substring(0,19)?!1:twve.tcalc.preReadOnly.apply(this,arguments)},cur_twtable:null,prev_twtable:[],colRef:function(a){return twve.tcalc.indexToReferenceCol(a)},block_update:!1,startBlockUpdate:function(){twve.tcalc.block_update=!0},doingBlockUpdate:function(){return twve.tcalc.block_update},endBlockUpdate:function(a,b,d){twve.tcalc.block_update=!1;b=twve.table.allCells(a,b,d);var e,f,g,h,k,n,l,s;for(e=
b.length-1;0<=e;e--)for(f=b[e].length-1;0<=f;f--)if(g=a.substring(b[e][f].open,b[e][f].close),h=g.match(/\{[\$A-Za-z]+\.[\$0-9]+\}/g)){for(k=0;k<h.length;k++)n=g.indexOf(h[k]),s=g.indexOf(".",n+1),l=g.indexOf("}",n+1),g=g.substring(0,n)+g.substring(n+1,s)+g.substring(s+1,l)+g.substring(l+1);a=a.substring(0,b[e][f].open)+g+a.substring(b[e][f].close);d.ndx+=g.length-(b[e][f].close-b[e][f].open)}return a},updateCellReference:function(a,b,d,e,f,g,h,k){b=twve.table.allCells(a,b,d);var n,l,s,p,m,q,u;for(n=
b.length-1;0<=n;n--)for(l=b[n].length-1;0<=l;l--)if(s=a.substring(b[n][l].open,b[n][l].close),q=!1,p=twve.tcalc.indexOfExpression(s),-1!=p){for(p++;p<s.length;){var t=!0;u=!1;if(m=twve.tcalc.tiddlerReference(s,p))t=!1,p+=m.length;if(m=twve.tcalc.tableReference(s,p))t=!1,p+=m.length;if(m=twve.tcalc.cellReference(s,p)){if(t){var t=twve.tcalc.referenceToIndexRow(m),v=twve.tcalc.referenceToIndexCol(m),x=twve.tcalc.absoluteRow(m),w=twve.tcalc.absoluteCol(m);if(null===e){if(v==f&&(k||!w))v=h,u=!0}else if(null===
f){if(t==e&&(k||!x))t=g,u=!0}else if(":"==s.charAt(p+m.length))p+=m.length+1,m=twve.tcalc.cellReference(s,p),p+=m.length;else if(t==e&&v==f&&(k||!x)&&(k||!w))t=g,v=h,u=!0;u&&(q=twve.tcalc.doingBlockUpdate()?"{"+twve.tcalc.indexToReferenceCol(v,w)+"."+twve.tcalc.indexToReferenceRow(t,x)+"}":twve.tcalc.indexToReferenceCol(v,w)+twve.tcalc.indexToReferenceRow(t,x),s=s.substring(0,p)+q+s.substring(p+m.length),m=q,q=!0)}p+=m.length}else p++}q&&(a=a.substring(0,b[n][l].open)+s+a.substring(b[n][l].close),
d.ndx+=s.length-(b[n][l].close-b[n][l].open))}return a},incCellReference:function(a,b,d,e,f,g,h,k,n){b=twve.table.allCells(a,b,d);var l,s,p,m,q;e||(e=0);f||(f=0);g||(g=0);k||(k=0);n||(n=0);for(l=b.length-1;0<=l;l--)for(s="number"!=typeof h||0>h||h>=b[l].length?b[l].length-1:h;s>=g;s--)if(q=a.substring(b[l][s].open,b[l][s].close),p=twve.tcalc.indexOfExpression(q),-1!=p){p++;for(var u=q.length;p<u;){var t=!0;if(m=twve.tcalc.tiddlerReference(q,p))t=!1,p+=m.length;if(m=twve.tcalc.tableReference(q,p))t=
!1,p+=m.length;if(m=twve.tcalc.cellReference(q,p)){if(t){var t=twve.tcalc.referenceToIndexRow(m),v=twve.tcalc.referenceToIndexCol(m),x=twve.tcalc.absoluteRow(m),w=twve.tcalc.absoluteCol(m);t>=e&&v>=k&&(t=twve.tcalc.indexToReferenceCol(v+(w?0:n),w)+(x?"$"+t:t+f),q=q.substring(0,p)+t+q.substring(p+m.length),m=q.length,u!=m&&(d.ndx+=m-u,u=m),m=t)}p+=m.length}else p++}a=a.substring(0,b[l][s].open)+q+a.substring(b[l][s].close)}return a},transposed:function(a,b,d){b=twve.table.allCells(a,b,d);var e,f,g,
h,k,n;for(e=b.length-1;0<=e;e--)for(f=b[e].length-1;0<=f;f--)if(g=a.substring(b[e][f].open,b[e][f].close),n=!1,h=twve.tcalc.indexOfExpression(g),-1!=h){for(h++;h<g.length;){var l=!0;if(k=twve.tcalc.tiddlerReference(g,h))l=!1,h+=k.length;if(k=twve.tcalc.tableReference(g,h))l=!1,h+=k.length;if(k=twve.tcalc.cellReference(g,h)){if(l){n=twve.tcalc.referenceToIndexRow(k);var l=twve.tcalc.referenceToIndexCol(k),s=twve.tcalc.absoluteRow(k),p=twve.tcalc.absoluteCol(k);n=twve.tcalc.indexToReferenceCol(n,s)+
twve.tcalc.indexToReferenceRow(l,p);g=g.substring(0,h)+n+g.substring(h+k.length);k=n;n=!0}h+=k.length}else h++}n&&(a=a.substring(0,b[e][f].open)+g+a.substring(b[e][f].close),d.ndx+=g.length-(b[e][f].close-b[e][f].open))}return a},copied_from:null,cut_from:null,replaceDecimalMark:function(a,b,d,e,f){b=a.indexOf(e,b);return-1==b?a:a.substring(0,b)+f+a.substring(b+1,d)},nonEmpty:function(a,b,d){void 0!==b&&(a=void 0!==d?a.substring(b,d):a.substring(b));return a.trim()?a:""},partialSearch:!1,halfWay:function(a,
b,d,e){return e||twve.tcalc.partialSearch?twve.tcalc.nonEmpty(a,b,d):""},isPartsPerNotation:function(a,b,d,e){var f=1;switch(a.charAt(e)){case "%":f=0.01;break;case "\u2030":f=0.001;break;case "p":if(e+2>=d||"p"!=a.charAt(e+1))return"";switch(a.charAt(e+2)){case "m":f=1E-6;break;case "b":f=1E-9;break;case "t":f=1E-12;break;case "q":f=1E-15;break;default:return""}break;default:return""}return twve.tcalc.partialSearch?twve.tcalc.halfWay(a,b,e+1,!0):twve.tcalc.halfWay(a,b,e,!0)*f+""},digit:"0123456789",
digit_zh:"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",digit_zh_cap:"\u58f9\u8cb3\u53c1\u8086\u4f0d\u9678\u67d2\u634c\u7396",isDigit:function(a){var b=twve.tcalc.digit.indexOf(a);if(0<=b)return a;b=twve.tcalc.digit_zh.indexOf(a);if(0<=b)return b+"";b=twve.tcalc.digit_zh_cap.indexOf(a)+1;return 0<b?b+"":""},isNumeric:function(a,b,d,e,f,g){var h=0,k=0,n=0,l=0,s=0;b="number"==typeof b&&0<b?b:0;var p,m,q=a.length;"number"==typeof d?(0>d?(d+=q+1,0>d&&(d=0)):d>q&&(d=q),d<b&&(d=b=d)):d=
q;m=b;for(var u=!1,q="",t=/\s/;t.test(p=a.charAt(m));){if(++m==d)return"";q+=p}for(t=0;m<d;m++){p=a.charAt(m);var v=twve.tcalc.isDigit(p);if(""==v)switch(p){case "e":case "E":if(0==t)return twve.tcalc.halfWay(a,b,m,!0);u=!0;q+=p;break;case "\u2212":p="-";case "+":case "-":if(0<t&&!u)return twve.tcalc.halfWay(q);if(++n>(u?2:1))return 0<t?twve.tcalc.halfWay(q):"";q+=p;break;case ":":if(0==t)return"";q+=p;p=a.charAt(m+1);v=twve.tcalc.isDigit(p);if(""==v){switch(p){case "+":case "-":n=1;break;case ".":k=
1;break;default:return twve.tcalc.halfWay(q)}q+=p}else t++,q+=v,n=0;u=!0;m++;break;case ".":if(1<++k&&1<h)return 0<t?twve.tcalc.halfWay(q):"";q+=p;break;case ",":if(!config.options.chktwveTcalcThousandSeparated||1<++h&&1<k)return twve.tcalc.halfWay(q);q+=p;break;case "\u00b7":if(!config.options.chktwveTcalcThousandSeparated||1<++s&&(1<l||1<k||1<h))return twve.tcalc.halfWay(q);q+=p;break;case " ":if(config.options.chktwveTcalcThousandSeparated&&1>=s&&1>=k&&1>=h){++l;q+=p;break}m++;default:return 0<
t?twve.tcalc.isPartsPerNotation(a,b,d,m)||twve.tcalc.halfWay(q):""}else t++,q+=v}if(!e&&0==h&&0==k&&0==l&&0==s)return twve.tcalc.nonEmpty(q);e=".";n=",";u=k;p=h;if(1<k)n=".",e=",",p=k,u=h;else if(0<l){if(0<k&&0<h||1<k||1<h)return twve.tcalc.halfWay(a,b,a.indexOf(" ",b));n=" ";p=l;0<h?(e=",",u=h):(e=".",u=k)}else if(0<s){if(0<k||1<h)return twve.tcalc.halfWay(a,b,a.indexOf("\u00b7",b));n="\u00b7";e=",";p=s;u=h}else if(1==h&&0==k)if(m=a.indexOf(",",b),m==b||4!=d-m)n=".",e=",",p=k,u=h;else{if(4>d-m)return twve.tcalc.halfWay(a,
b,m)}else if(1==k&&1==h)if(l=a.indexOf(",",b),s=a.indexOf(".",b),m=l-s,4==m)n=".",e=",",p=k,u=h;else if(-4!=m)return twve.tcalc.halfWay(a,b,0<m?s:l);if(0<p&&!config.options.chktwveTcalcThousandSeparated)return twve.tcalc.halfWay(a,b,a.indexOf(config.options.txttwveTcalcThousandSeparator,b));if(1<p)for(m=a.indexOf(n,b);-1<(h=a.indexOf(n,m+1));){if(4!=h-m)return twve.tcalc.halfWay(a,b,m);m=h}if(0<u&&e!=config.options.txttwveTcalcDecimalMark||0<p&&n!=config.options.txttwveTcalcThousandSeparator)return twve.tcalc.halfWay(a,
b,a.indexOf(n,b));f=f?f:config.options.txttwveTcalcDecimalMark;if(0==p)return a=f!=e?twve.tcalc.replaceDecimalMark(a,b,d,e,f):twve.tcalc.nonEmpty(q),g?twve.tcalc.separateNumber(a):a;g=g?config.options.txttwveTcalcThousandSeparator:"";if(e!=f||n!=g)for(m=b;m<d;m++)p=a.charAt(m),p==n?n!=g&&(a=a.substring(b,m)+g+a.substring(m+1)):p==e&&e!=f&&(a=a.substring(b,m)+f+a.substring(m+1));return twve.tcalc.nonEmpty(a,b,d)},separateNumber:function(a){var b=(a+"").split(config.options.txttwveTcalcDecimalMark);
a=b[0];for(var b=1<b.length?config.options.txttwveTcalcDecimalMark+b[1]:"",d=/(\d+)(\d{3})/;d.test(a);)a=a.replace(d,"$1"+config.options.txttwveTcalcThousandSeparator+"$2");return a+b},spannedCellReference:function(a){var b=a.lastIndexOf("|");if(0<=b)return a.substring(b+1).trim();b=a.indexOf("\n");return 0<=b?a.substring(0,b).trim():a},absoluteRow:function(a){a=a.indexOf("$",1);return 0<a&&4>a},referenceToIndexRow:function(a){if(!a)return null;a=twve.tcalc.spannedCellReference(a);var b=a.indexOf("$",
1);if(0<b&&4>b)return parseInt(a.substring(b+1));b="$"==a.charAt(0)?1:0;return/[a-zA-Z]/.test(a.charAt(b+1))?parseInt(a.substring(b+2)):parseInt(a.substring(b+1))},indexToReferenceRow:function(a,b){return(b?"$":"")+a},absoluteCol:function(a){return"$"==a.charAt(0)},referenceToIndexCol:function(a){if(!a)return null;a=twve.tcalc.spannedCellReference(a);var b=a.indexOf("$");0==b?b++:b=0;var d="A".charCodeAt();a=a.toUpperCase();if(/[A-Z]/.test(a.charAt(b+1))){var e=a.charAt(b).charCodeAt()-d+1;a=a.charAt(b+
1).charCodeAt()-d;return 26*e+a}return a.charAt(b).charCodeAt()-d},indexToReferenceCol:function(a,b){var d="A".charCodeAt(),e=b?"$":"";if(26>a)return e+String.fromCharCode(a+d);var f=a%26;return e+String.fromCharCode(a/26-1+d)+String.fromCharCode(f+d)},indexOfExpression:function(a,b){b=twve.position.create(b);for(var d=twve.position.create(b),e=twve.url.markupTags();;){d=twve.text.skipToActive(a,"=",d);if(-1==d.ndx||d.ndx<b.ndx)return-1;if(!e.encloses(a,d.ndx,b)){for(;"="==a.charAt(d.ndx+1);)d.ndx++;
return d.ndx}d.ndx++}},isUserfunction:function(a,b,d){if(0==b||"."!=a.charAt(b-1))return a.substring(b,d);twve.tcalc.fn_ndx=-1},fn_ndx:-1,isFunction:function(a,b){twve.tcalc.fn_ndx=-1;b||(b=0);for(var d=a.substring(b).toUpperCase(),e=0,f=twve.tcalc.fn.length;e<f;e++){var g="",h=twve.tcalc.fn[e].name;if("string"==typeof h)d.substring(0,h.length)==h&&(g=h);else for(var k=0,n=h.length;k<n;k++)if(d.substring(0,h[k].length)==h[k]){g=h[k];break}if(g){d=d.indexOf(g)+b;f=a.indexOf("(",d+1);if(-1==f)return"";
f=twve.tags.nested.create("(",")").matchedCloseTag(a,twve.position.create(f+1,"("));twve.tcalc.fn_ndx=e;return twve.tcalc.isUserfunction(a,d,-1<f.ndx?f.ndx+1:null)}}},parseSingleTerm:function(a,b,d){var e="",f=null;twve.tcalc.fn[twve.tcalc.fn_ndx].parseSingleTerm?(f=twve.tcalc.fn[twve.tcalc.fn_ndx].parseSingleTerm(a,d))&&(e+=f):e+=f=a;!b&&(f&&twve.tcalc.fn[twve.tcalc.fn_ndx].operator)&&(e+=twve.tcalc.fn[twve.tcalc.fn_ndx].operator);return e},consecutiveCells:function(a){var b=a.split(":");a=twve.tcalc.referenceToIndexCol(b[0]);
var d=twve.tcalc.referenceToIndexRow(b[0]),e=twve.tcalc.referenceToIndexCol(b[1]),b=twve.tcalc.referenceToIndexRow(b[1]);b<d&&(r=d,d=b,b=r);e<a&&(c=a,a=e,e=c);var f=twve.object.create();f.start=twve.object.create();f.start.row=d;f.start.col=a;f.end=twve.object.create();f.end.row=b;f.end.col=e;return f},duplicateFunctionData:function(a){var b="number"==typeof a?twve.tcalc.fn[a]:a;a={};b=b.data?b.data:b;twve.object.copyKeys(a,b,twve.object.keys(b));return a},call_stack:[],pushFunctionCall:function(a){var b=
{ndx:a};void 0!==twve.tcalc.fn[a].data&&(b.data=twve.tcalc.duplicateFunctionData(a));twve.tcalc.call_stack.push(b)},popFunctionCall:function(){var a=twve.tcalc.call_stack.pop();twve.tcalc.fn_ndx=a.ndx;void 0!==a.data&&twve.object.copyKeys(twve.tcalc.fn[a.ndx].data,a.data,twve.object.keys(a.data))},parseConsecutive:function(a){var b,d,e=twve.tcalc.cur_twtable.dom.querySelectorAll("tr"),f=twve.tcalc.consecutiveCells(a),g=twve.tcalc.fn[twve.tcalc.fn_ndx].partialSearch,h=g?[]:"";for(a=f.start.row;a<=
f.end.row;a++){var k=e[a].querySelectorAll("th,td");for(d=f.start.col;d<=f.end.col;d++)if(b=twve.table.getRowCell(k,d))twve.tcalc.pushFunctionCall(twve.tcalc.fn_ndx),b=twve.tcalc.evaluateCell(b,!twve.tcalc.fn[twve.tcalc.fn_ndx].no_eval),twve.tcalc.popFunctionCall(),g?h[h.length]=b:h+=twve.tcalc.parseSingleTerm(b,a==f.end.row&&d==f.end.col)}h&&(g?h=twve.tcalc.parseSingleTerm(h,!0):twve.tcalc.fn[twve.tcalc.fn_ndx].operator&&h.charAt(h.length-1)==twve.tcalc.fn[twve.tcalc.fn_ndx].operator&&(h=h.substring(0,
h.length-1)));return h},allArguments:function(a){var b=a.indexOf("(");if(-1==b)return"";var d=twve.tags.nested.create("(",")").matchedCloseTag(a,twve.position.create(b+1,"("));return 0>d.ndx?"":a.substring(b+1,d.ndx)},splitArguments:function(a){for(var b=twve.tags.nested.create(["(","[","{"],[")","]","}"]),d=twve.position.create(0),e=twve.position.create(0),f=twve.position.create(a.length),g=[];;){d=twve.text.skipToActive(a,",",e,f,b);if(-1==d.ndx)return g[g.length]=a.substring(e.ndx,f.ndx),g;g[g.length]=
a.substring(e.ndx,d.ndx);e.ndx=d.ndx+1}},parseFunction:function(a){var b=twve.tcalc.allArguments(a),d="",e;if(!b){if(twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing&&(e=twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing(a)))d=e;if(twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing&&(e=twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing()))d+=e;if(twve.tcalc.fn_ndx)return d;try{return eval(a)}catch(f){return a}}for(var g=twve.tcalc.fn_ndx,h=0;h<b.length;){var h=h+twve.text.skipStyleText(b,h),k=twve.tcalc.isFunction(b,
h);if(k)var n=twve.tcalc.parseFunction(k),b=b.substring(0,h)+n+b.substring(h+k.length),h=h+n.length;else h++}twve.tcalc.fn_ndx=g;if(twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing&&(e=twve.tcalc.fn[twve.tcalc.fn_ndx].startParsing(a)))d=e;a=-1<a.indexOf("Math.");b=twve.tcalc.splitArguments(b);k=0;for(n=b.length;k<n;k++){var l=b[k].trim();""==l&&(l=b[k]);var s=twve.text.skipStyleText(l);-1<(h=l.indexOf(":",s))&&twve.tcalc.cellReference(l,h+1)?(d+=twve.tcalc.fn[twve.tcalc.fn_ndx].no_deref?twve.tcalc.parseSingleTerm(l,
k==b.length-1):twve.tcalc.parseConsecutive(l),k<b.length-1&&twve.tcalc.fn[twve.tcalc.fn_ndx].operator&&(d+=twve.tcalc.fn[twve.tcalc.fn_ndx].operator)):(twve.tcalc.pushFunctionCall(g),e=twve.tcalc.evaluate(l,s,!twve.tcalc.fn[twve.tcalc.fn_ndx].no_eval,twve.tcalc.fn[twve.tcalc.fn_ndx].no_deref),twve.tcalc.popFunctionCall(),d+=twve.tcalc.parseSingleTerm((s?l.substring(0,s):"")+e,k==b.length-1,s));a&&(k<n-1&&d)&&(d+=",")}if(twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing){if(e=twve.tcalc.fn[twve.tcalc.fn_ndx].stopParsing())d+=
e;twve.tcalc.fn_ndx=g}return d},wrappedReference:function(a,b,d,e){b=b?b:0;if(0>b||b>=a.length||a.charAt(b)!=d)return"";d=a.indexOf(e,b+1);return 0>d?"":a.substring(b,d+1)},exteranlReference:function(a,b){return twve.tcalc.wrappedReference(a,b,"{","}")},tiddlerReference:function(a,b){return twve.tcalc.wrappedReference(a,b,"[","]")},tableReference:function(a,b){var d=b?b:0;if(0>d||d>=a.length)return"";var e=a.charAt(d);if("t"==e||"T"==e){if(e=d+5,"table"==a.substring(d,e).toLowerCase()){var f=twve.tcalc.partialSearch;
twve.tcalc.partialSearch=!0;var g=twve.tcalc.isNumeric(a,e);twve.tcalc.partialSearch=f;if(""==g)return"";e+=g.length;return"!"==a.charAt(e)?a.substring(d,e+1):""}}else return e=twve.tcalc.wrappedReference(a,d,"'","'")||twve.tcalc.wrappedReference(a,d,'"','"'),""==e?"":"!"==a.charAt(d+e.length)?e+"!":"";return""},cellReference:function(a,b){var d=b?b:0;if(0>d||d>=a.length)return"";var e,f="",g="";if("$"==(e=a.charAt(d++)))f=e,e=a.charAt(d++);/[\a-zA-Z]/.test(e)&&(f+=e,e=a.charAt(d++),/[a-zA-Z]/.test(e)&&
(f+=e,e=a.charAt(d++)));if(f&&("$"==e&&(g=e,e=a.charAt(d++)),twve.tcalc.isDigit(e))){for(g+=e;d<a.length&&twve.tcalc.isDigit(e=a.charAt(d++));)g+=e;return f+g}return""},cellContent:function(a,b,d,e){var f=null;"TR"==a.nodeName?f=twve.table.getRowCell(a,b):a.length&&(f="TR"==a[0].nodeName?twve.table.getRowCell(a[twve.tcalc.referenceToIndexRow(b)],twve.tcalc.referenceToIndexCol(b)):a[b]);return(a=f?twve.tcalc.evaluateCell(f,d):null)?a:e&&(e=e.charAt(e.length-1),"+"==e||"-"==e||"*"==e||"/"==e)?"0":""},
evaluate:function(a,b,d,e,f){for(var g="",h="",k,n=b,l,s=twve.tcalc.cur_twtable,p=s&&s.is("table")?s.dom.querySelectorAll("tr"):null,m="",q={"(":0,"[":0,"{":0},u=/[\d]/,t=/[\d]{3}/,v=0;n<a.length;)if(l=twve.tcalc.tiddlerReference(a,n))g+=l,n+=l.length,l=twve.tcalc.tableReference(a,n),g+=l,n+=l.length,l=twve.tcalc.cellReference(a,n),g+=l,n+=l.length;else if(l=twve.tcalc.tableReference(a,n))if(n+=l.length,h+=l,s&&twve.node.matches(s.direct_wrapper.dom,"div.board"))g+=l,l=twve.tcalc.cellReference(a,
n),g+=l,n+=l.length;else{k=l.charAt(0);if("t"==k||"T"==k){k=1*l.substring(5,l.length-1);var x=null;if(s){var w=s.rIndex;if(k==w)continue;var y=s.dIndex;s.rIndex=k;s.dIndex=-1;x=twve.wrapper.renderedElement(s);s.rIndex=w;s.dIndex=y}else twve.tcalc.cur_twwrap&&(w=twve.tcalc.cur_twwrap.findElements(twve.table.twveSelector(null,"table")))&&(x=twve.table.create(w[k]));if(!x)continue}else if('"'==k||"'"==k){g+=l;l=twve.tcalc.cellReference(a,n);g+=l;n+=l.length;continue}e?g+=l:(l=twve.tcalc.cellReference(a,
n))?(h+=l,twve.tcalc.prev_twtable.push(s),twve.tcalc.cur_twtable=x,g+=twve.tcalc.cellContent(x.dom.querySelectorAll("tr"),l,d,g),twve.tcalc.cur_twtable=twve.tcalc.prev_twtable.pop(),n+=l.length):g+=l}else if(l=twve.tcalc.cellReference(a,n))g=p&&!e?g+twve.tcalc.cellContent(p,l,d,g):g+l,n+=l.length;else if(l=twve.tcalc.isFunction(a,n))g+=twve.tcalc.parseFunction(l),d=!twve.tcalc.fn[twve.tcalc.fn_ndx].no_eval,n+=l.length;else if(k=a.charAt(n++),u.test(k))g+=k,v++;else if("."==k)if(u.test(a.charAt(n)))g+=
k;else{m=a.substring(n-1);break}else if(","==k)if(t.test(a.charAt(n)))g+=k;else{m=a.substring(n-1);break}else if("e"==k||"E"==k)if(g)g+=k;else{m=a.substring(n-1);break}else if(":"==k){if(0<v&&(l=a.charAt(n),u.test(l))){g+=k+l;v++;n++;continue}m=a.substring(n-1);break}else if("t"==k||"T"==k)if(l=a.substring(n-1,n+3),"true"==l.toLowerCase())g+=l,n+=3;else{m=a.substring(n-1);break}else if("f"==k||"F"==k)if(l=a.substring(n-1,n+4),"false"==l.toLowerCase())g+=l,n+=4;else{m=a.substring(n-1);break}else if("+"==
k||"-"==k||"*"==k||"/"==k)g+=k;else if("("==k||"["==k||"{"==k)q[k]++,g+=k;else if(")"==k)if(0<q["("])q["("]--,g+=k;else{m=a.substring(n-1);break}else if("]"==k)if(0<q["["])q["["]--,g+=k;else{m=a.substring(n-1);break}else if("}"==k)if(0<q["{"])q["{"]--,g+=k;else{m=a.substring(n-1);break}else if("<"==k||">"==k||"="==k)g+=k;else{m=a.substring(n-1);break}if(!g)return m;if(d&&"-0"!=g&&!twve.tcalc.vector.is(g))try{var z=0<g.indexOf(":")?twve.tcalc.calculateTime(g).normalize():eval(g);f&&f({position:b,expression:h||
g,result:z+""});return z+m}catch(A){config.options.chktwveTcalcDebugMode&&console.log("eval err: "+A+"\n\nexpression="+g)}f&&f({position:b,expression:h||g,result:g});0<twve.text.skipStyleText(g)&&(g="@@"+g+"@@");return g+m},result_being_calculated:"",calculate:function(a,b,d,e,f){if("number"!=typeof b||0>b)b=0;"="!=a.charAt(b)&&(b=twve.tcalc.indexOfExpression(a,b));for(twve.tcalc.result_being_calculated="";-1<b;){a=a.substring(0,b)+twve.tcalc.evaluate(a,b+1,d,e,function(a){f&&(a.position--,a.expression=
"="+a.expression,f(a))});if(!config.options.chktwveTcalcInTextCalc)break;twve.tcalc.result_being_calculated=a;b=twve.tcalc.indexOfExpression(a,b)}return a},calculateTextNode:function(a){var b=a.nodeValue,d=0;b&&twve.tcalc.calculate(b,0,!0,!1,function(b){var f=a.splitText(b.position-d);a=f.splitText(b.expression.length);d=b.position+b.result.length;var g=document.createElement("span");g.className="tcalc";g.appendChild(document.createTextNode(b.result));g.title=b.expression;a.parentNode.replaceChild(g,
f)})},calculateNode:function(a,b){if(3==a.nodeType)twve.tcalc.calculateTextNode(a);else if(!twve.node.matches(a,b))for(var d=a.firstChild;d;)a=d.nextSibling,twve.node.matches(d,b)||twve.tcalc.calculateNode(d,b),d=a},prePrepareElements:null,cur_twwrap:null,prepareElements:function(a){if(!twve.tcalc.prePrepareElements.apply(this,arguments)||!config.options.chktwveTcalcEnabled||!config.options.chktwveTcalcInTextCalc||!a.tiddler)return null;twve.tcalc.cur_twwrap=a;twve.tcalc.calculateNode(a.dom,twve.table.wrapper.getSelector());
twve.tcalc.cur_twwrap=null;return a},preWikify:null,wikify:function(a,b,d){var e=twve.tiddler.focusElem(),f=e?e.getElement():null;if(f&&twve.node.matches(f,"table"))return twve.tcalc.preWikify.call(this,a,b,d);if(twve.node.matches(b,"div.board")){var g=!0;twve.node.matches(f,"th,td")&&(g=!1,twve.tcalc.cells_being_evaluated.push(f));try{var h=twve.tcalc.cur_twtable;!h&&(e&&e.is("table"))&&(twve.tcalc.cur_twtable=e);a=twve.tcalc.calculate(a,0,!0,g)}catch(k){}finally{h||(twve.tcalc.cur_twtable=null),
g||twve.tcalc.cells_being_evaluated.pop()}return twve.tcalc.preWikify.call(this,a,b,d)}b=twve.tcalc.preWikify.apply(this,arguments);if(!twve.node.matches(b,"th,td"))if(b.length){e=0;for(f=b.length;e<f;e++)twve.tcalc.calculateNode(b[e])}else twve.tcalc.calculateNode(b);return b},cells_being_evaluated:[],cyclicReference:function(a){for(var b=0;b<twve.tcalc.cells_being_evaluated.length;b++)if(twve.tcalc.cells_being_evaluated[b]==a)return"Error: "+(b==twve.tcalc.cells_being_evaluated.length-1)?"Self reference.":
"Cyclic reference."},curCellCol:function(){var a=twve.tcalc.cells_being_evaluated;return a&&0<a.length?twve.tcalc.referenceToIndexCol(a[a.length-1].title):-1},curCellRow:function(){var a=twve.tcalc.cells_being_evaluated;return a&&0<a.length?twve.tcalc.referenceToIndexRow(a[a.length-1].title):-1},sortableGridHtml:function(a){return'<a href="#" class="sortheader" onclick="config.macros.sortableGridPlugin.ts_resortTable(this);return false;">'+a+'<span class="sortarrow"> </span></a>'},
cellTitleExpression:function(a){if(!a.title)return-1;var b=a.title.indexOf("\n");if(0>b)return-1;var d=twve.table.cellRowSpan(a);if(1<d)for(var e=2;e<d;e++)b=a.title.indexOf("\n",b+1);return 0>a.title.indexOf("=",b+1)?-1:b+1},nodeText:function(a,b,d){if(!a)return"";if(void 0===b||null===b){if(3==a.nodeType)return a.nodeValue;if("BR"==a.nodeName)return"\n";b="";var e=a.childNodes;if(d){d=0;for(var f=e.length;d<f;d++)3==e[d].nodeType&&(b+=e[d].nodeValue)}else{d=0;for(f=e.length;d<f;d++)b+=twve.tcalc.nodeText(a.childNodes[d])}if(b&&
(config.tableSorting||config.macros.sortableGridPlugin))d=b.indexOf("\u2191"),-1==d&&(d=b.indexOf("\u2193")),config.macros.sortableGridPlugin&&(d-=2),-1<d&&(b=b.substring(0,d));return b}for(d=-1;0<=(d=b.indexOf("\\",d+1));)b=b.substring(0,d)+b.substring(d+1);0==twve.table.cellRowIndex(a)?config.tableSorting?(e=a.querySelector("span"),a.textContent=b,e&&(b=e.innerHTML,d=b.indexOf("\u2191"),-1==d&&(d=b.indexOf("\u2193")),-1<d&&a.appendChild(e))):config.macros.sortableGridPlugin?(e=a.querySelector("a.sortheader span"))?
(a.innerHTML=twve.tcalc.sortableGridHtml(b),a=a.querySelector("a.sortheader span"),a.innerHTML=e.innerHTML,a.setAttribute("sortdir",e.getAttribute("sortdir"))):a.textContent=b:a.textContent=b:3==a.nodeType?a.nodeValue=b:twve.node.wikify(b,a)},evaluateCell:function(a,b,d,e){if(!d&&(d=twve.tcalc.nodeText(a),!d)){if(a.title){var f=twve.tcalc.cellTitleExpression(a);0<f&&(a.title=a.title.substring(0,f-1))}return""}e||(e=twve.tcalc.indexOfExpression(d));var g;if(-1<e)if(a.title?(f=twve.tcalc.cellTitleExpression(a),
a.title=(0<f?a.title.substring(0,f):a.title+"\n")+d):a.title=d,f=twve.tcalc.cyclicReference(a))twve.tcalc.nodeText(a,d+"<br><br>"+a.title+"<br>"+f);else return twve.tcalc.cells_being_evaluated.push(a),d=twve.tcalc.calculate(d,e,b),(g=twve.tcalc.isNumeric(d,0,-1,!0,"",config.options.chktwveTcalcThousandSeparated))||(g=d),twve.tcalc.nodeText(a,g),twve.tcalc.cells_being_evaluated.pop(),g;else if(1==a.childNodes.length&&(g=twve.tcalc.isNumeric(d,0,-1,!0,".",!1))){if(d.trim()!=g.trim())return config.options.chktwveTcalcThousandSeparated&&
(f=d.indexOf(g),twve.tcalc.nodeText(a,d.substring(0,f)+twve.tcalc.separateNumber(g)+d.substring(f+g.length))),g;if(config.options.chktwveTcalcThousandSeparated)twve.tcalc.nodeText(a,twve.tcalc.separateNumber(g));else return g}return d},addOptionsMenu:function(a){return a.addMenu("''twve.tcalc'' Options",config.macros.twveTcalcOptions.handler)},preGetOptionsMenu:null,getOptionsMenu:function(a){var b=twve.tcalc.preGetOptionsMenu.apply(this,arguments);twve.tcalc.addOptionsMenu(b);return b},timer:null,
findTimer:function(a){if(twve.tcalc.timer)for(var b=twve.tcalc.timer.length-1;0<=b;b--){var d=twve.tcalc.timer[b];if(d.table.wrapper_title==a.wrapper_title&&d.table.dIndex==a.dIndex)return d}return null},removeTimer:function(a){if(a=twve.tcalc.findTimer(a))clearInterval(a.pid),twve.tcalc.timer.splice(twve.tcalc.timer.indexOf(a),1);return a},addTimer:function(a,b){twve.tcalc.timer?twve.tcalc.removeTimer(a):twve.tcalc.timer=[];var d=twve.object.create();d.table=a;d.pid=setInterval(a.calculate,b);d.interval=
b;twve.tcalc.timer.push(d);return d},preGetTableMenu:null,getTableMenu:function(){var a=twve.tcalc.preGetTableMenu.apply(this,arguments);twve.tcalc.addOptionsMenu(a);if(!a.findItem("Recalculate")){var b=a.addItem("Recalculate","Recalculate this table");b.submenu=twve.menu.create(b,!0);b.submenu.addItem("now (and stop the timer)").click=function(){var a=twve.tiddler.focusElem();twve.tcalc.removeTimer(a);a.calculate()};b.submenu.addItem("every 1 sec (start the timer)").click=function(){twve.tcalc.addTimer(twve.tiddler.focusElem(),
1E3)}}return a},preTableCreate:null,tableCreate:function(){var a=twve.tcalc.preTableCreate.apply(this,arguments),b=a.startSorting;a.startSorting=function(){return twve.tcalc.block_update=b.apply(this,arguments)};var d=a.refreshSelf;a.refreshSelf=function(){if(a.curNode)d.apply(this,arguments);else{var b=twve.tcalc.removeTimer(a);d.apply(this,arguments);b&&twve.tcalc.addTimer(a,b.interval)}return a};a.cellReferenceTitle=function(a,b,d){for(var e=twve.table.cellSpans(a),f="",s=0;s<e.row;s++){for(var p=
e.col-1;0<=p;p--)f+=twve.tcalc.indexToReferenceCol(d-p)+(b+s),0<p&&(f+=" | ");s<e.row-1&&(f+="\n")}a.title?a.title!=f&&(b=twve.tcalc.cellTitleExpression(a),a.title=f+(0<b?a.title.substring(b-1):"\n"+a.title)):a.title=f};a.referenceToTest=function(a,b){var d=twve.tcalc.indexToReferenceRow(a),e=twve.tcalc.indexToReferenceCol(b);return{ndx:{row:a,col:b},rel:e+d,abs:e+"$"+d}};a.includeCell=function(b,d,e){b=twve.tcalc.splitArguments(b);for(var f=0;f<b.length;f++){var l=twve.tcalc.allArguments(b[f]);if(l){if(a.includeCell(l))return!0}else if(l=
b[f],l=twve.text.removeStyleText(l).trim(),-1<l.indexOf(":")&&(l=twve.tcalc.consecutiveCells(l),l.start.row<=d&&d<=l.end.row&&l.start.col<=e&&e<=l.end.col))return!0}return!1};a.calculateCell=function(a,b,d){try{twve.tcalc.evaluateCell(a,!0,b,d)}catch(e){console.log(e),config.options.chktwveTcalcDebugMode&&twve.tcalc.nodeText(a,twve.tcalc.nodeText(a)+"<br><br>"+b+"<br>"+e)}};a.calculate=function(b,d){if(!config.options.chktwveTcalcEnabled&&!config.options.chktwveTcalcAllTables&&!a.hasClass("spreadsheet"))return!1;
twve.MathJax&&(twve.MathJax.enabled=!1);b||(b=a.tiddler.text);var e=config.options.chktwveTableIncludeCSS;config.options.chktwveTableIncludeCSS=!1;var f=new Date;twve.tcalc.cur_twtable=a;for(var l=twve.table.allCells(b,a.start,a.end),s=a.dom.querySelectorAll("tr"),p=[],m=0,q=s.length;m<q;m++)p[m]=s[m].querySelectorAll("th,td");if(d){for(var u=new Date,m=0,q=s.length;m<q;m++)for(var t=0,v=p[m].length;t<v;t++){var x=p[m][t],w=twve.table.cellColIndex(x),y=l[m][w]?a.getCellText(l[m][w],b):"";y&&(w=twve.tcalc.indexOfExpression(y),
0<=w&&twve.tcalc.nodeText(x,y))}config.options.chktwveTcalcDebugMode&&displayMessage("clear time: "+(new Date-u)+" ms")}f=new Date-f;u=new Date;y=a.getCaption();w=twve.tcalc.indexOfExpression(y);0<=w&&twve.node.wikify(twve.tcalc.calculate(y,w,!0),a.wrappers.cap);m=0;for(q=s.length;m<q;m++){t=0;for(v=p[m].length;t<v;t++)x=p[m][t],w=twve.table.cellColIndex(x),y=l[m][w]?a.getCellText(l[m][w],b):"",a.cellReferenceTitle(x,m,w),y&&(w=twve.tcalc.indexOfExpression(y),0<=w&&a.calculateCell(x,y,w))}u=new Date-
u;twve.tcalc.cur_twtable=null;config.options.chktwveTcalcDebugMode&&(displayMessage("preparation time: "+f+" ms"),displayMessage("calculation time: "+u+" ms"),displayMessage("total time: "+(u+f)+" ms"));config.options.chktwveTableIncludeCSS=e;twve.MathJax&&(twve.MathJax.enabled=!0);return!0};var e=a.initRows;a.initRows=function(){e.apply(this,arguments);config.options.chktwveTcalcEnabled&&(config.options.chktwveTcalcAllTables||a.hasClass("spreadsheet"))&&a.calculate()};var f=a.changed;a.changed=function(b){switch(b.what){case "CAPTION MODIFIED":case "MODIFIED":a.calculate(b.text,
b);break;case "ROW INSERTED":b.text=twve.tcalc.incCellReference(b.text,a.start,a.end,b.where,1);break;case "ROW DELETED":b.text=twve.tcalc.incCellReference(b.text,a.start,a.end,b.where+1,-1);break;case "ROW PASTED":var d=twve.position.create(a.start),e=twve.position.create(a.end);d.ndx=twve.table.rowStarts(b.text,d,e,b.where);e.ndx=twve.table.rowEnds(b.text,d.ndx);b.text=twve.tcalc.incCellReference(b.text,d,e,0,b.where-b.from);break;case "COL INSERTED":b.text=twve.tcalc.incCellReference(b.text,a.start,
a.end,null,null,0,-1,b.where,1);break;case "COL DELETED":b.text=twve.tcalc.incCellReference(b.text,a.start,a.end,null,null,0,-1,b.where+1,-1);break;case "COL PASTED":b.text=twve.tcalc.incCellReference(b.text,a.start,a.end,null,null,b.where,b.where,0,b.where-b.from);break;case "ROW MOVED":b.text=twve.tcalc.updateCellReference(b.text,a.start,a.end,b.from,null,b.to,null,!0);break;case "ROW EXCHANGED":twve.tcalc.startBlockUpdate();b.text=twve.tcalc.updateCellReference(b.text,a.start,a.end,b.from,null,
b.to,null,!0);b.text=twve.tcalc.updateCellReference(b.text,a.start,a.end,b.to,null,b.from,null,!0);b.text=twve.tcalc.endBlockUpdate(b.text,a.start,a.end);break;case "COL EXCHANGED":twve.tcalc.startBlockUpdate();b.text=twve.tcalc.updateCellReference(b.text,a.start,a.end,null,b.from,null,b.to,!0);b.text=twve.tcalc.updateCellReference(b.text,a.start,a.end,null,b.to,null,b.from,!0);b.text=twve.tcalc.endBlockUpdate(b.text,a.start,a.end);break;case "SORTED":b.text=twve.tcalc.endBlockUpdate(b.text,a.start,
a.end);a.calculate(b.text);break;case "TRANSPOSED":b.text=twve.tcalc.transposed(b.text,a.start,a.end)}return f.call(this,b)};a.copyOrCut=function(b,d){twve.node.matches(a.curNode,"th,td")&&(twve.tcalc.copied_from=a.curNode,twve.tcalc.cut_from=d?a.curNode:null)};a.pasteIn=function(b){var d=twve.tcalc.copied_from;if(d){var e=d.title.split("\n"),d=twve.tcalc.referenceToIndexRow(e[0]),f=twve.tcalc.referenceToIndexCol(e[0]),l=a.curNode.title.split("\n"),s=twve.tcalc.referenceToIndexRow(l[0]),l=twve.tcalc.referenceToIndexCol(l[0]);
if(1<e.length){var e=b.value,p,m,q,u,t,v=twve.tcalc.indexOfExpression(e)+1;if(0<v){for(;v<e.length;){if(p=twve.tcalc.tiddlerReference(e,v))v+=p.length;if(p=twve.tcalc.tableReference(e,v))v+=p.length;(p=twve.tcalc.cellReference(e,v))?(q=twve.tcalc.referenceToIndexRow(p),u=twve.tcalc.absoluteRow(p),m=twve.tcalc.referenceToIndexCol(p),t=twve.tcalc.absoluteCol(p),u||(q=s+(q-d)),t||(m=l+(m-f)),m=0<=m?twve.tcalc.indexToReferenceCol(m,t):"{"+m+"}",m+=0<=q?(u?"$":"")+q:"{"+q+"}",e=e.substring(0,v)+m+e.substring(v+
p.length),v+=m.length):v++}b.value=e}}else twve.tcalc.copied_from=null;twve.tcalc.cut_from&&""==twve.tcalc.nodeText(twve.tcalc.cut_from)&&(e=twve.table.create(a.dom),p=a.tiddler.text,p=twve.tcalc.updateCellReference(p,e.start,e.end,d,f,s,l),e.saveText(p));twve.tiddler.previewEditBox(b)}};return a}};
twve.tcalc.vector={is:function(a){if("string"==typeof a){var b=a.indexOf("(");if(-1==b)return"";var d=a.indexOf(")",b+1);return-1==d?"":0<=a.indexOf(",",b+1)?a.substring(b,d+1):""}return a.dot&&a.cross},create:function(a){var b=[];b.dim=function(){return b.length};b.add=function(a){var d=a.length,e=b.length,f;if(e>=d)for(f=0;f<d;f++)b[f]+=a[f];else{for(f=0;f<e;f++)b[f]+=a[f];for(;f<d;f++)b[f]=a[f]}return b};b.subtract=function(a){var d=a.length,e=b.length,f;if(e>=d)for(f=0;f<d;f++)b[f]-=a[f];else{for(f=
0;f<e;f++)b[f]-=a[f];for(;f<d;f++)b[f]=-a[f]}return b};b.multiply=function(a){for(var d=0,e=b.length;d<e;d++)b[d]*=a;return b};b.divideBy=function(a){for(var d=0,e=b.length;d<e;d++)b[d]/=a;return b};b.dot=function(a){for(var d=Math.min(b.length,a.length),e=0,f=0;f<d;f++)e+=b[f]*a[f];return e};b.cross=function(a){var d=b.length;if(d==a.length)switch(d){case 3:return d=twve.tcalc.vector.create(),d[0]=b[1]*a[2]-b[2]*a[1],d[1]=b[2]*a[0]-b[0]*a[2],d[2]=b[0]*a[1]-b[1]*a[0],d}return null};var d=twve.tcalc.vector.is(a);
if("string"==typeof d){a=1;for(var e=0;;){var f=d.indexOf(",",a);if(-1<f)b[e++]=1*d.substring(a,f),a=f+1;else{b[e]=1*d.substring(a,d.length-1);break}}}else if(d){d=0;for(e=a.length;d<e;d++)b[d]=a[d]}return b}};twve.tcalc.parseVector=function(a,b){var d=twve.tcalc.vector.create(b);d&&(null===a.v1?a.v1=d:null===a.v2&&(a.v2=d))};twve.tcalc.addNumeral=function(a,b){if(a){var d=b.charAt(0);a+="+"==d||"-"==d?b:"+"+b}else a=b;return a};
twve.tcalc.getSourceText=function(a){if("string"!=typeof a)return a;switch(a.toLowerCase()){case "this":return a=twve.tcalc.cells_being_evaluated,twve.tcalc.result_being_calculated||twve.tcalc.nodeText(a[a.length-1]);case "caption":case "title":if(twve.tcalc.cur_twtable)return twve.tcalc.cur_twtable.getCaption();default:var b=twve.url.create(a);return b&&b.getTarget()?b.getContent():a}};
twve.tcalc.valueIn=function(a){var b=0;void 0===a.curp?a.curp=0:b="number"==typeof a.curp?a.curp:a.curp.ndx?a.curp.ndx:0;0>b&&(b=0);if("number"!=typeof a.curn||-1>a.curn)a.curn=-1;for(var d=a.txt.length,e="";;){var f=twve.tcalc.partialSearch;for(twve.tcalc.partialSearch=!0;b<d&&!e;)e=twve.tcalc.isNumeric(a.txt,b++);twve.tcalc.partialSearch=f;if(e){b+=e.length-1;if(++a.curn==a.ndx)return void 0!==a.curp.ndx?a.curp.ndx=b:a.curp=b,b=e.length,twve.tcalc.isPartsPerNotation(e,0,b,b-1)||e;e=""}else return""}};
twve.tcalc.matchPreceding=function(a){a.curp=twve.text.indexOf(a.txt,a.preceding,a.curp);if(0>a.curp.ndx)return"";a.curp.ndx+=a.curp.matched.length;var b="";if(a.everything)b=a.txt.substring(a.curp.ndx);else{var d=twve.tcalc.partialSearch;twve.tcalc.partialSearch=!0;b=twve.tcalc.isNumeric(a.txt,a.curp.ndx);twve.tcalc.partialSearch=d;b&&0>b.indexOf("\n")&&(a.curp.ndx+=b.length)}return b};
twve.tcalc.matchFollowing=function(a,b){if(!a.following)return"";for(var d=/\s/,e;d.test(e=a.txt.charAt(a.curp.ndx));)if(a.curp.ndx++,"\n"==e)return null;a.post?a.post.ndx=a.curp.ndx:a.post=twve.position.create(a.curp);a.post=twve.text.indexOf(a.txt,a.following,a.post);if(0>a.post.ndx||!b&&a.post.ndx!=(a.curp.ndx||a.curp))return null;a.curp.ndx=a.post.ndx+a.post.matched.length;return a.post.matched};
twve.tcalc.valueWithText=function(a){var b="";if(a.preceding&&"null"!=a.preceding)for(;;){var d=twve.tcalc.matchPreceding(a);if(0>a.curp.ndx)break;if(d&&"string"==typeof twve.tcalc.matchFollowing(a)){b=d;break}}else{a.ndx=0;for(a.curn=-1;;){d=twve.tcalc.valueIn(a);if(!d)break;if("string"==typeof twve.tcalc.matchFollowing(a)){b=d;break}a.ndx++}}return b};
twve.tcalc.sumWithText=function(a){var b="";if(a.preceding&&"null"!=a.preceding)for(;;){var d=twve.tcalc.matchPreceding(a);if(0>a.curp.ndx)break;d&&"string"==typeof twve.tcalc.matchFollowing(a)&&(b=twve.tcalc.addNumeral(b,d))}else{a.ndx=a.curp.ndx=0;for(a.curn=-1;;){d=twve.tcalc.valueIn(a);if(!d)break;"string"==typeof twve.tcalc.matchFollowing(a)&&(b=twve.tcalc.addNumeral(b,d));a.ndx++}}return b};
twve.tcalc.arrayOrText=function(a){var b=a.length-1;"["==a.charAt(0)&&("]"==a.charAt(b)&&0<=a.indexOf(","))&&(a=a.substring(1,b).split(","));return a};twve.tcalc.parseTrueFalse=function(a){if("false"!=a){if("true"==a)return!0;try{if(a)return"string"==typeof a&&(a=eval(a)),a?!0:!1}catch(b){}}return!1};twve.tcalc.round=function(a,b){if(null===b||0===b)return Math.round(a);var d=Math.pow(10,b);return Math.round(d*a)/d};twve.tcalc.factorial=function(a){var b=1;for(a=Math.round(a);1<a;a--)b*=a;return b};
twve.tcalc.days_in_month=function(a,b){return(new Date(a,b+1,0)).getDate()};twve.tcalc.same_year_month=function(a,b){return a.getFullYear()==b.getFullYear()&&a.getMonth()==b.getMonth()};twve.tcalc.separator_positions=function(a,b,d){for(var e=[],f=twve.position.create(0);;){f=twve.text.indexOf(a,b,f);if(0>f.ndx)break;if(!d||d.call(this,f))e[e.length]=twve.position.create(f);f.ndx++}return e};
twve.tcalc.timestr_after_date=function(a,b){var d=a.indexOf(" ",b);0>d&&(d=a.indexOf("T",b));return d>b?d:-1};twve.tcalc.time_separator=":";
twve.tcalc.parse_time=function(a){var b=twve.tcalc.separator_positions(a,twve.tcalc.date_separator);if(0<b.length&&(b=twve.tcalc.timestr_after_date(a,b[0].ndx),-1<b&&(a=a.substring(b),!a)))return null;var b=twve.tcalc.separator_positions(a,twve.tcalc.time_separator),d=[],e="";switch(b.length){case 2:(e=twve.tcalc.isNumeric(a.substring(0,b[0].ndx)))&&(d[0]=parseFloat(e));(e=twve.tcalc.isNumeric(a.substring(b[0].ndx+1)))&&(d[1]=parseFloat(e));(e=twve.tcalc.isNumeric(a.substring(b[1].ndx+1)))&&(d[2]=
parseFloat(e));break;case 1:(e=twve.tcalc.isNumeric(a.substring(0,b[0].ndx)))&&(d[0]=parseFloat(e));(e=twve.tcalc.isNumeric(a.substring(b[0].ndx+1)))&&(d[1]=parseFloat(e));break;case 0:if(e=twve.tcalc.isNumeric(a))d[0]=parseFloat(e)}return d};twve.tcalc.parse_time_arg=function(a,b){if(!b)return"";var d=b.indexOf("~");0>d?a.time1=twve.tcalc.parse_time(b):(a.time1=twve.tcalc.parse_time(b.substring(0,d)),a.time2=twve.tcalc.parse_time(b.substring(d+1)));return""};
twve.tcalc.calculateTime=function(a){a=twve.tcalc.allArguments(a)||a;var b=twve.tcalc.separator_positions(a,["+","-"],function(b){return":"!=a.charAt(b.ndx-1)}),d=0,e,f=b.length,g=[];for(e=0;e<f;e++)g[e]=twve.tcalc.parse_time(a.substring(d,b[e].ndx)),0<e&&(g[e].operator=b[e-1].matched),d=b[e].ndx+1;g[e]=twve.tcalc.parse_time(a.substring(d));g[e].operator=b[e-1].matched;var h=g[0].slice(),b=h.length;for(e=1;e<=f;e++){d=g[e].length;if(b<d){for(var k=0;k<d-b;k++)h.unshift(0);b=d}for(var n=b-d,k=0;k<
d;k++){var l=g[e].operator?g[e].operator:"+";0>g[e][k]&&("+"==l?l="":(g[e][k]=-g[e][k],l="+"));h[n+k]+=l+g[e][k]}}for(e=0;e<b;e++)try{h[e]=eval(h[e])}catch(s){}h.isPositive=function(){for(var a=0,b=h.length;a<b;a++)if(h[a])return 0<h[a];return!1};h.normalize=function(a,b){var d=h.length;if("number"==typeof a){switch(a){case 1:case 2:b?0>b&&(b=-b):b=60;0<h[a]?h[a]>=b&&(d=Math.round(h[a]/b),h[a]-=d*b,h[a-1]+=d):0>h[a]&&(h[a]<-b&&(d=Math.round(h[a]/b),h[a]-=d*b,h[a-1]+=d),0<h[a-1]&&(h[a-1]--,h[a]+=b));
break;case -1:switch(b.length){case 3:switch(d){case 3:h.normalize(2,b[2]).normalize(1,b[1]).normalize(0,b[0]);break;case 2:h.normalize(1,b[2]).normalize(0,b[1])}break;case 2:switch(d){case 3:if(60==b[0]){h.normalize(2,b[1]).normalize(1,b[0]);break}case 2:h.normalize(1,b[1]).normalize(0,b[0])}}}return h}switch(d){case 2:return h.normalize(1,60);case 3:return h.normalize(2,60).normalize(1,60)}return h};h.format=function(a){return 0<=a?(10<=a?"":"0")+a:-10>=a?""+a:"-0"+-a};h.toString=function(){for(var a=
h.format(h[0]),b=1,d=h.length;b<d;b++)a+=":"+h.format(h[b]);return a};h.getSeconds=function(){var a=h.length,b=h[a-1];switch(a){case 3:b+=3600*h[a-3];case 2:b+=60*h[a-2]}return b};h.getMinutes=function(){var a=h.length,b=0;switch(a){case 3:b+=60*h[a-3];case 2:b+=h[a-2];case 1:b+=h[a-1]/60}return b};h.getHours=function(){var a=h.length,b=0;switch(a){case 3:b+=h[a-3];case 2:b+=h[a-2]/60;case 1:b+=h[a-1]/3600}return b};return h};twve.tcalc.date_separator=["/",".","-"," "];
twve.tcalc.parse_date_format=function(a){if(!a)return null;var b=twve.tcalc.separator_positions(a,twve.tcalc.date_separator),d="",e="",f="",g="";0==b.length?(a={txt:a,following:"\u5e74"},d=twve.tcalc.valueWithText(a),a.following="\u6708",e=twve.tcalc.valueWithText(a),a.following="\u65e5",f=twve.tcalc.valueWithText(a)):(separator=b[0].matched,e=twve.tcalc.timestr_after_date(a,b[0].ndx),-1<e&&(g=a.substring(e),a=a.substring(0,e)),1==b.length?3<b[0].ndx?(d=a.substring(0,b[0].ndx),e=a.substring(b[0].ndx+
1)):3<a.length-b[0].ndx?(e=a.substring(0,b[0].ndx),d=a.substring(b[0].ndx+1)):(e=a.substring(0,b[0].ndx),f=a.substring(b[0].ndx+1)):3<a.length-b[1].ndx?(f=a.substring(0,b[0].ndx),e=a.substring(b[0].ndx+1,b[1].ndx),d=a.substring(b[1].ndx+1)):(d=a.substring(0,b[0].ndx),e=a.substring(b[0].ndx+1,b[1].ndx),f=a.substring(b[1].ndx+1)));return{year:d,month:e,date:f,separator:separator,time:g}};
twve.tcalc.parse_date=function(a){var b=new Date;a=twve.tcalc.parse_date_format(a);if(!a)return b;a.year||(a.year=b.getFullYear());a.month||(a.month=b.getMonth());a.date||(a.date=b.getDate());a.time||(a.time=b.toTimeString());return new Date(a.year+"/"+a.month+"/"+a.date+" "+a.time)};twve.tcalc.parse_date_arg=function(a,b){if(!b)return"";var d=b.indexOf("~");0>d?a.date1=twve.tcalc.parse_date(b):(a.date1=twve.tcalc.parse_date(b.substring(0,d)),a.date2=twve.tcalc.parse_date(b.substring(d+1)));return""};
twve.tcalc.format_date_string=function(a,b){if(!b)return a.toLocaleDateString();var d="",e;b.year&&(e=a.getFullYear(),d+=2==b.year.length?e%100:e);b.month&&(e=a.getMonth()+1,d+=(d?b.separator:"")+(1==b.month.length?e:(10>e?"0":"")+e));b.date&&(e=a.getDate(),d+=(d?b.separator:"")+(1==b.date.length?e:(10>e?"0":"")+e));return d};twve.tcalc.months=function(a,b,d,e,f,g){f||(f=(new Date).getFullYear());a+=b/twve.tcalc.days_in_month(f,a);d+=e/twve.tcalc.days_in_month(f,d);return Math.round(d-a,g)};
twve.tcalc.days=function(a,b,d){function e(a){return 0==a?"00":0<a?10>a?"0"+a:a:-10<a?"-0"+-a:a}var f=(b-a)/1E3,g=f/86400;if("number"==typeof d)return twve.tcalc.round(g,d);g=Math.round(g);1<=Math.abs(g)&&(f-=86400*g);if(0==f)return g+"D";if(60>Math.abs(f))return g+"D 00:00:"+e(f);d=Math.round(f/60);var f=f-60*d,h=Math.round(d/60);d-=60*h;b>a?(0>f&&(f+=60,d-=1),0>d&&(d+=60,h-=1),0>h&&(h+=24,g-=1)):(0<f&&(f-=60,d+=1),0<d&&(d-=60,h+=1),0<h&&(h-=24,g+=1));return g+"D "+e(h)+":"+e(d)+":"+e(f)};
twve.tcalc.functionData={create:function(){var a=twve.object.create();a.clear=function(){a.argCount=0;a.how=null;return a};return a.clear()}};twve.tcalc.arrayData={create:function(){var a=twve.tcalc.functionData.create(),b=a.clear;a.clear=function(){b();a.val=[];return a};a.parseArgument=function(b){var e=b;if(b=twve.tcalc.isNumeric(b))e=1*b;a.val[a.argCount++]=e};return a.clear()}};
twve.tcalc.rowColData={getRange:function(a,b,d){switch(a.how){case "BEFORE":a.first=0;a.last=b;break;case "AFTER":a.first=b+1;a.last=d;break;default:a.first=0,a.last=d}},create:function(){var a=twve.tcalc.functionData.create(),b=a.clear;a.clear=function(){b();a.ndx=null;return a};a.parseArgument=function(b){switch(a.argCount){case 0:if(b&&(a.ndx=b,b=twve.tcalc.isNumeric(b)))a.ndx=1*b;break;case 1:a.how=b.toUpperCase()}a.argCount++};a.getRange=function(b,e){return twve.tcalc.rowColData.getRange(a,
b,e)};return a.clear()}};
twve.tcalc.columnData={columnNumber:function(a){return null===a||"this"==a?twve.tcalc.curCellCol():"number"==typeof a?a:twve.tcalc.referenceToIndexCol(a)},getRange:function(a,b,d){switch(a.how){case "ABOVE":a.first=0;a.last=b;break;case "BELOW":a.first=b+1;a.last=d;break;default:twve.tcalc.rowColData.getRange(a,b,d)}},create:function(){var a=twve.tcalc.rowColData.create(),b=a.parseArgument;a.parseArgument=function(d){b.apply(this,arguments);1==a.argCount&&(a.ndx=twve.tcalc.columnData.columnNumber(a.ndx))};a.getRange=
function(b,e){twve.tcalc.columnData.getRange(a,b,e)};return a}};
twve.tcalc.rowData={rowNumber:function(a){return null===a||"this"==a?twve.tcalc.curCellRow():a},getRange:function(a,b,d){switch(a.how){case "LEFT":a.first=0;a.last=b;break;case "RIGHT":a.first=b+1;a.last=d;break;default:twve.tcalc.rowColData.getRange(a,b,d)}},create:function(){var a=twve.tcalc.rowColData.create(),b=a.parseArgument;a.parseArgument=function(d){b.apply(this,arguments);1==a.argCount&&(a.ndx=twve.tcalc.rowData.rowNumber(a.ndx))};a.getRange=function(b,e){twve.tcalc.rowData.getRange(a,b,
e)};return a}};twve.tcalc.signatureData={create:function(){var a=twve.tcalc.functionData.create(),b=a.clear;a.clear=function(){b();a.txt="";a.preceding="";a.following="";return a};a.parseArgument=function(b){switch(a.argCount){case 0:a.txt=twve.tcalc.getSourceText(b);break;case 1:a.preceding=twve.tcalc.arrayOrText(b);break;case 2:a.following=twve.tcalc.arrayOrText(b);break;case 3:a.how=b.toUpperCase()}a.argCount++};return a.clear()}};
twve.tcalc.fn=[{description:"Get the content of a table cell specified by its row and column indexes.",usage:"=CELL(row,col). For example, =CELL(3,2) or =CELL(3,B) will get the content of the table cell in row 3 (4th row), column 2 (3rd column).",name:"CELL",data:twve.tcalc.arrayData.create(),startParsing:function(){this.data.clear()},stopParsing:function(){var a=twve.tcalc.cur_twtable||twve.tiddler.cur_focus;if(!a||2>this.data.argCount)return null;var b=this.data.val[0];if(0>b)return null;var d=
twve.tcalc.columnData.columnNumber(this.data.val[1]);if(0>d)return null;var e=a.dom.querySelectorAll("tr");return b>=e.length||d>a.maxColumns(e)?null:twve.tcalc.nodeText(twve.table.getRowCell(e[b],d))},parseSingleTerm:function(a){this.data.parseArgument(a)}},{name:"MATH",startParsing:function(a){return a.substring(0,a.indexOf("(")+1)},stopParsing:function(){return")"}},{name:["LENGTH","LEN"],parseSingleTerm:function(a){return a?a.length+"":"0"}},{description:"Extract the left part of a string.",usage:"=LEFT(B3,4) will extract the left 4 characters out of the content in table cell B3.",
name:"LEFT",data:{txt:"",len:0},startParsing:function(){this.data.txt="";this.data.len=0},stopParsing:function(){return this.data.txt.substring(0,this.data.len)},parseSingleTerm:function(a){if(this.data.txt){if(a&&(a=twve.tcalc.isNumeric(a)))this.data.len=1*a}else this.data.txt=twve.tcalc.getSourceText(a)}},{description:"Extract the middle part of a string.",usage:"=MID(B3,start_pos,number_of_char) will extract number_of_char characters, starting from index start_pos, out of the content in table cell B3.",
name:"MID",data:{txt:"",start:-1,len:-1},startParsing:function(){this.data.txt="";this.data.start=this.data.len=-1},stopParsing:function(){return this.data.txt.substring(this.data.start,this.data.start+this.data.len)},parseSingleTerm:function(a){if(this.data.txt){if(a&&(a=twve.tcalc.isNumeric(a)))0>this.data.start?this.data.start=1*a:0>this.data.len&&(this.data.len=1*a)}else this.data.txt=twve.tcalc.getSourceText(a)}},{description:"Extract the right part of a string.",usage:"=RIGHT(B3,4) will extract the right 4 characters out of the content in table cell B3.",
name:"RIGHT",data:{txt:"",len:0},startParsing:function(){this.data.txt="";this.data.len=0},stopParsing:function(){return this.data.txt.substring(this.data.txt.length-this.data.len)},parseSingleTerm:function(a){if(this.data.txt){if(a&&(a=twve.tcalc.isNumeric(a)))this.data.len=1*a}else this.data.txt=twve.tcalc.getSourceText(a)}},{name:"PRODUCT",operator:"*",parseSingleTerm:function(a){return twve.tcalc.isNumeric(a)?a:"0"}},{name:"DOT",data:{v1:null,v2:null},startParsing:function(){this.data.v1=this.data.v2=
null},stopParsing:function(){if(this.data.v1&&this.data.v2)return this.data.v1.dot(this.data.v2)+""},parseSingleTerm:function(a){twve.tcalc.parseVector(this.data,a)}},{name:"CROSS",data:{v1:null,v2:null},startParsing:function(){this.data.v1=this.data.v2=null},stopParsing:function(){if(this.data.v1&&this.data.v2)return this.data.v1.cross(this.data.v2)},parseSingleTerm:function(a){twve.tcalc.parseVector(this.data,a)}},{no_eval:!0,name:"TEXTWITH",data:twve.tcalc.signatureData.create(),textWithText:function(a){var b=
"";a.everything=!0;if(a.preceding&&"null"!=a.preceding){if(b=twve.tcalc.matchPreceding(a))b=a.curp.ndx,a.following||(a.following=["\n"," ",".",","]),twve.tcalc.matchFollowing(a,!0)||(a.post.ndx=a.txt.length),b=a.txt.substring(b,a.post.ndx)}else twve.tcalc.matchFollowing(a,!0)&&(b=a.txt.substring(0,a.post.ndx));return b},startParsing:function(){this.data.clear()},stopParsing:function(){var a="",b={preceding:this.data.preceding,following:this.data.following,curp:twve.position.create(0),curn:-1};if("string"==
typeof this.data.txt)b.txt=this.data.txt,a=this.textWithText(b);else for(var a=[],d=0,e=this.data.txt.length;d<e;d++)b.txt=this.data.txt[d],b.curp.ndx=0,b.curn=-1,a[a.length]=this.textWithText(b)||"0";return a},parseSingleTerm:function(a){this.data.parseArgument(a)}},{name:["VALUEWITH","VALWITH"],partialSearch:!0,data:twve.tcalc.signatureData.create(),startParsing:function(){this.data.clear()},stopParsing:function(){var a="",b={preceding:this.data.preceding,following:this.data.following,curp:twve.position.create(0),
curn:-1};if("string"==typeof this.data.txt)b.txt=this.data.txt,a=twve.tcalc.valueWithText(b);else for(var a=[],d=0,e=this.data.txt.length;d<e;d++)b.txt=this.data.txt[d],b.curp.ndx=0,b.curn=-1,a[a.length]=twve.tcalc.valueWithText(b)||"0";return a},parseSingleTerm:function(a){this.data.parseArgument(a)}},{name:["VALUE","VAL"],partialSearch:!0,data:twve.tcalc.functionData.create(),startParsing:function(){this.data.clear();this.data.txt="";this.data.ndx=0},stopParsing:function(){if(!this.data.txt)return"0";
if("string"==typeof this.data.txt)return twve.tcalc.valueIn(twve.tcalc.duplicateFunctionData(this));for(var a=[],b={ndx:this.data.ndx},d=0,e=this.data.txt.length;d<e;d++)b.txt=this.data.txt[d],b.curp=0,b.curn=-1,a[a.length]=twve.tcalc.valueIn(b);return a},parseSingleTerm:function(a){switch(this.data.argCount){case 0:this.data.txt=twve.tcalc.getSourceText(a);break;case 1:if(a&&(a=twve.tcalc.isNumeric(a)))this.data.ndx=1*a}this.data.argCount++}},{name:"SUMIN",partialSearch:!0,data:twve.tcalc.functionData.create(),
startParsing:function(){this.data.txt="";this.data.include=[];this.data.exclude=[];return"("},sumInText:function(a){var b="",d=a.include.length;if(d){a.include.sorted||(a.include.sort(function(a,b){return a-b}),a.include.sorted=!0);for(var e=0;e<d;e++){a.ndx=a.include[e];var f=twve.tcalc.valueIn(a);f&&(b=twve.tcalc.addNumeral(b,f))}}else{if((d=a.exclude.length)&&!a.exclude.sorted)a.exclude.sort(function(a,b){return a-b}),a.exclude.sorted=!0;e=0;for(a.ndx=0;;){f=twve.tcalc.valueIn(a);if(!f)break;d&&
a.ndx==a.exclude[e]?e++:b=twve.tcalc.addNumeral(b,f);a.ndx++}}return b},stopParsing:function(){var a="";if("string"==typeof this.data.txt)a=this.sumInText(twve.tcalc.duplicateFunctionData(this));else for(var b={include:this.data.include,exclude:this.data.exclude},d=0,e=this.data.txt.length;d<e;d++){b.txt=this.data.txt[d];b.curp=0;b.curn=-1;var f=this.sumInText(b);f&&(a+="+"+f)}return(a?a:"0")+")"},parseSingleTerm:function(a){if(this.data.txt){var b=a.indexOf("-");-1<b?this.data.exclude[this.data.exclude.length]=
1*a.substring(b+1):this.data.include[this.data.include.length]=1*a}else this.data.txt=twve.tcalc.getSourceText(a)}},{description:"Sum over numerical values in specified cells, with optional signature text (immediately preceding and/or following).",usage:'=SUMWITH(A1[,pre[,post]]) will sum up all the numerical values with an immediately preceding signature "pre" in cell A1.',name:"SUMWITH",partialSearch:!0,data:twve.tcalc.signatureData.create(),startParsing:function(){this.data.clear();return"("},
stopParsing:function(){var a="",b={preceding:this.data.preceding,following:this.data.following,curp:twve.position.create(0),curn:-1};if("string"==typeof this.data.txt)b.txt=this.data.txt,a=twve.tcalc.sumWithText(b);else for(var d=0,e=this.data.txt.length;d<e;d++){b.txt=this.data.txt[d];var f=twve.tcalc.sumWithText(b);f&&(a+=(0<d?"+":"")+f)}return(a?a:"0")+")"},parseSingleTerm:function(a){this.data.parseArgument(a)}},{description:"Sum over numerical values in one column, excluding this cell, with optional signature text (immediately preceding and/or following) and/or range of summation.",
usage:'=SUMCOLWITH([1,[pre[,post[,how]]]]) will sum up all numerical vlaues with an immediately preceding signature "pre" in column 1 (the 2nd column). Current column is assumed if the 1st argument is missing. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.',name:"SUMCOLWITH",data:twve.tcalc.signatureData.create(),startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.txt;if(0>a)return"0";var b=twve.tcalc.cur_twtable;
if(!b)return"0";var d=b.dom.querySelectorAll("tr");if(a>b.maxColumns(d))return"0";b=twve.tcalc.curCellRow();twve.tcalc.columnData.getRange(this.data,b,d.length);for(var e=0,f={preceding:this.data.preceding,following:this.data.following,curp:twve.position.create(0),curn:-1},g=this.data.first;g<this.data.last;g++)if(g!=b){f.txt=twve.tcalc.cellContent(d[g],a,!0);var h=twve.tcalc.sumWithText(f);h&&(e=g==this.data.first?h:e+("+"+h))}return e+""},parseSingleTerm:function(a){this.data.parseArgument(a);1==
this.data.argCount&&(this.data.txt=twve.tcalc.columnData.columnNumber(this.data.txt||null))}},{description:"Sum over numerical values in one column, excluding this cell, with optional argument spacifying the range of summation.",usage:"=SUMCOL([1[,how]]) or =SUMCOL([B[,how]]) will sum up column 1 or B (the 2nd column). Current column is assumed if the first argument is missing. The 2nd argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.",name:"SUMCOL",data:twve.tcalc.columnData.create(),
startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.ndx;null===a&&(this.data.ndx=a=twve.tcalc.columnData.columnNumber(a));if(0>a)return"0";var b=twve.tcalc.cur_twtable;if(!b)return"0";var d=b.dom.querySelectorAll("tr");if(a>b.maxColumns(d))return"0";b=twve.tcalc.curCellRow();this.data.getRange(b,d.length);for(var e=0,f=this.data.first;f<this.data.last;f++)if(f!=b){var g=twve.tcalc.cellContent(d[f],a,!0);g&&(g*=1,isNaN(g)||(e+=g))}return e+""},parseSingleTerm:function(a){this.data.parseArgument(a)}},
{description:"Sum over numerical values in one row, excluding this cell, with optional signature text (immediately preceding and/or following) and/or the range of summation.",usage:'=SUMROW([1,[pre[,post[,how]]]]) will sum up all numerical vlaues with an immediately preceding signature "pre" in row 1 (the 2nd row). Current row is assumed if the first argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.',name:"SUMROWWITH",data:twve.tcalc.signatureData.create(),
startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.txt;if(0>a)return"0";var b=twve.tcalc.cur_twtable;if(!b)return"0";b=b.dom.querySelectorAll("tr");if(a>=b.length)return"0";a=b[a].querySelectorAll("th,td");b=twve.tcalc.curCellCol();twve.tcalc.rowData.getRange(this.data,b,a.length);for(var d=0,e={preceding:this.data.preceding,following:this.data.following,curp:twve.position.create(0),curn:-1},f=this.data.first;f<this.data.last;f++)if(f!=b){e.txt=twve.tcalc.cellContent(a,
f,!0);var g=twve.tcalc.sumWithText(e);g&&(d=f==this.data.first?g:d+("+"+g))}return d+""},parseSingleTerm:function(a){this.data.parseArgument(a);1==this.data.argCount&&(this.data.txt=twve.tcalc.rowData.rowNumber(this.data.txt||null))}},{description:"Sum over numerical values in one row, excluding this cell, with optional range of summation.",usage:"=SUMROW(1[,how]) will sum up row 1 (the 2nd row). Current row is assumed if the argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.",
name:"SUMROW",data:twve.tcalc.rowData.create(),startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.ndx;null===a&&(this.data.ndx=a=twve.tcalc.rowData.rowNumber(a));if(0>a)return"0";var b=twve.tcalc.cur_twtable;if(!b)return"0";b=b.dom.querySelectorAll("tr");if(a>=b.length)return"0";a=b[a].querySelectorAll("th,td");b=twve.tcalc.curCellCol();this.data.getRange(b,a.length);for(var d=0,e=this.data.first;e<this.data.last;e++)if(e!=b){var f=twve.tcalc.cellContent(a,e,!0);f&&
(f*=1,isNaN(f)||(d+=f))}return d+""},parseSingleTerm:function(a){this.data.parseArgument(a)}},{description:"Sum over numerical values in one or more cells.",usage:"=SUM(A1:C3) will sum up cells A1, A2, A3, B1, B2, B3, and C1, C2, C3.",name:"SUM",operator:"+",startParsing:function(){return"("},stopParsing:function(){return")"},parseSingleTerm:function(a){return twve.tcalc.isNumeric(a)?a:"0"}},{name:"COUNTA",description:"Count the number of non-empty values in the specified cells.",usage:"=COUNTA(A3:B6) will count the number of non-empty values in the cells from A3 to B6.",
data:{count:0},startParsing:function(){this.data.count=0},stopParsing:function(){return""+this.data.count},parseSingleTerm:function(a){/\S/.test(a)&&this.data.count++}},{description:"Count the number of non-empty cells in one column, excluding this cell, with optional range of counting.",usage:"=COUNTCOLA([1[,how]]) or =COUNTCOLA([B[,how]]) will count the number of non-empty values in column 1 or B (the 2nd column). Current column is assumed if the 1st argument is omitted. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.",
name:"COUNTCOLA",data:twve.tcalc.columnData.create(),startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.ndx;null===a&&(this.data.ndx=a=twve.tcalc.columnData.columnNumber(a));if(0>a)return"0";var b=twve.tcalc.cur_twtable;if(!b)return"0";var d=b.dom.querySelectorAll("tr");if(a>b.maxColumns(d))return"0";b=twve.tcalc.curCellRow();this.data.getRange(b,d.length);for(var e=0,f=this.data.first;f<this.data.last;f++)f!=b&&/\S/.test(twve.tcalc.cellContent(d[f],a,!0))&&e++;return e+
""},parseSingleTerm:function(a){this.data.parseArgument(a)}},{description:"Count the number of numerical values in one column, excluding this cell, with optioanl range of counting.",usage:"=COUNTCOL([1[,how]]) or =COUNTCOL([B[,how]]) will count the number of numerical values in column 1 or B (the 2nd column). Current column is assumed if the 1st argument is missing. The last argument - how - can be ABOVE/BEFORE, BELOW/AFTER, or ALL. If not specified, ALL is assumed.",name:"COUNTCOL",data:twve.tcalc.columnData.create(),
startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.ndx;null===a&&(this.data.ndx=a=twve.tcalc.columnData.columnNumber(a));if(0>a)return"0";var b=twve.tcalc.cur_twtable;if(!b)return"0";var d=b.dom.querySelectorAll("tr");if(a>b.maxColumns(d))return"0";b=twve.tcalc.curCellRow();this.data.getRange(b,d.length);for(var e=0,f=this.data.first;f<this.data.last;f++)if(f!=b){var g=twve.tcalc.cellContent(d[f],a,!0);g&&(g*=1,isNaN(g)||e++)}return e+""},parseSingleTerm:function(a){this.data.parseArgument(a)}},
{description:"Count the number of non-empty values in one row, excluding this cell, with optional range of counting.",usage:"=COUNTROWA([1[,how]]) will count the number of non-empty values in row 1 (the 2nd row). Current row is assumed if the 1st argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.",name:"COUNTROWA",data:twve.tcalc.rowData.create(),startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.ndx;
null===a&&(this.data.ndx=a=twve.tcalc.rowData.rowNumber(a));if(0>a)return"0";var b=twve.tcalc.cur_twtable;if(!b)return"0";b=b.dom.querySelectorAll("tr");if(a>=b.length)return"0";a=b[a].querySelectorAll("th,td");b=twve.tcalc.curCellCol();this.data.getRange(b,a.length);for(var d=0,e=this.data.first;e<this.data.last;e++)e!=b&&/\S/.test(twve.tcalc.cellContent(a,e,!0))&&d++;return d+""},parseSingleTerm:function(a){this.data.parseArgument(a)}},{description:"Count the number of numerical values in one row, excluding this cell, with optional range of counting.",
usage:"=COUNTROW([1[,how]]) will count the number of numerical values in row 1 (the 2nd row). Current row is assumed if the 1st argument is missing. The last argument - how - can be LEFT/BEFORE, RIGHT/AFTER, or ALL. If not specified, ALL is assumed.",name:"COUNTROW",data:twve.tcalc.rowData.create(),startParsing:function(){this.data.clear()},stopParsing:function(){var a=this.data.ndx;null===a&&(this.data.ndx=a=twve.tcalc.rowData.rowNumber(a));if(0>a)return"0";var b=twve.tcalc.cur_twtable;if(!b)return"0";
b=b.dom.querySelectorAll("tr");if(a>=b.length)return"0";a=b[a].querySelectorAll("th,td");b=twve.tcalc.curCellCol();this.data.getRange(b,a.length);for(var d=0,e=this.data.first;e<this.data.last;e++)if(e!=b){var f=twve.tcalc.cellContent(a,e,!0);f&&(f*=1,isNaN(f)||d++)}return d+""},parseSingleTerm:function(a){this.data.parseArgument(a)}},{name:"COUNT",data:{count:0,condition:null},startParsing:function(){this.data.condition=null;this.data.count=0},stopParsing:function(){return""+this.data.count},parseSingleTerm:function(a){if(twve.tcalc.isNumeric(a))this.data.condition?
eval('"'+this.data.condition.replace(/\%/g,a)+'"')&&this.data.count++:this.data.count++;else if(!this.data.condition&&(a=a.trim(),/%\s*[><=!]/.test(a))){var b=a.charAt(0);this.data.condition="'"==b||'"'==b?a.substring(1,a.length-1):a}}},{name:"MAX",data:{max:null},startParsing:function(){this.data.max=null},stopParsing:function(){return this.data.max},parseSingleTerm:function(a){if(a=twve.tcalc.isNumeric(a))null===this.data.max?this.data.max=a:this.data.max<a&&(this.data.max=a)}},{name:"MIN",data:{min:null},
startParsing:function(){this.data.min=null},stopParsing:function(){return this.data.min},parseSingleTerm:function(a){if(a=twve.tcalc.isNumeric(a))null===this.data.min?this.data.min=a:this.data.min>a&&(this.data.min=a)}},{name:["AVERAGE","AVG","MEAN"],operator:"+",data:{count:0},startParsing:function(){this.data.count=0;return"("},stopParsing:function(){return")/"+this.data.count},parseSingleTerm:function(a){return(a=twve.tcalc.isNumeric(a))?(this.data.count++,a):""}},{name:"FACT",data:{num:null},
startParsing:function(){this.data.num=null},stopParsing:function(){return twve.tcalc.factorial(this.data.num)},parseSingleTerm:function(a){if(null==this.data.num&&(a=twve.tcalc.isNumeric(a)))this.data.num=parseInt(a)}},{name:"COMBIN",data:{num:null,chosen:null},startParsing:function(){this.data.num=this.data.chosen=null},stopParsing:function(){return Math.round(twve.tcalc.factorial(this.data.num)/twve.tcalc.factorial(this.data.chosen)/twve.tcalc.factorial(this.data.num-this.data.chosen))},parseSingleTerm:function(a){if(null===
this.data.num){if(a=twve.tcalc.isNumeric(a))this.data.num=parseInt(a)}else if(null===this.data.chosen&&(a=twve.tcalc.isNumeric(a)))this.data.chosen=parseInt(a)}},{name:"THISHOUR",data:{time1:null,time2:null},startParsing:function(){this.data.time1=this.data.time2=null},stopParsing:function(){if(!this.data.time1)return"false";var a=new Date,a=a.getHours()+a.getMinutes()/60,b=this.data.time1[0];if(this.data.time2){var d=this.data.time2[0];return""+(b<=a&&a<d||d<=a&&a<b)}return""+(b==a)},parseSingleTerm:function(a){return twve.tcalc.parse_time_arg(this.data,
a)}},{name:"THISDAYOFWEEK",data:{day_of_week:null},startParsing:function(){this.data.day_of_week=null},stopParsing:function(){return""+("number"==typeof this.data.day_of_week&&this.data.day_of_week==(new Date).getDay())},parseSingleTerm:function(a){if(/[0-7]/.test(a))this.data.day_of_week=1*a;else{a=a.toLowerCase();var b=twve.position.create(0),d="\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),b=twve.text.indexOf(a,d,b);-1<b.ndx?this.data.day_of_week=d.indexOf(b.matched):(d="sun mon tue wed thr thu fri sat".split(" "),
b.ndx=0,b=twve.text.indexOf(a,d,b),-1<b.ndx?(this.data.day_of_week=d.indexOf(b.matched),4<this.data.day_of_week&&this.data.day_of_week--):(d="\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),b.ndx=0,b=twve.text.indexOf(a,d,b),-1<b.ndx&&(this.data.day_of_week=d.indexOf(b.matched))))}}},{name:"THISWEEK",data:{date1:null,date2:null},same_week:function(a,b){var d=a.getDate(),e=b.getDate();if(d==e)return!0;if(7<Math.abs(d-e))return!1;var f=a.getDay(),g=b.getDay();return e>d?g>f:g<f},startParsing:function(){this.data.date1=
this.data.date2=null},stopParsing:function(){if(!this.data.date1)return"false";var a=new Date;return!this.data.date2?!twve.tcalc.same_year_month(this.data.date1,a)?"false":""+this.same_week(this.data.date1,a):twve.tcalc.same_year_month(this.data.date1,a)?""+this.same_week(this.data.date1,a):twve.tcalc.same_year_month(this.data.date2,a)?""+this.same_week(this.data.date2,a):"false"},parseSingleTerm:function(a){return twve.tcalc.parse_date_arg(this.data,a)}},{name:"THISMONTH",data:{date1:null,date2:null},
startParsing:function(){this.data.date1=this.data.date2=null},stopParsing:function(){if(!this.data.date1)return"false";var a=new Date;return!this.data.date2?twve.tcalc.same_year_month(this.data.date1,a)?"true":"false":twve.tcalc.same_year_month(this.data.date1,a)||twve.tcalc.same_year_month(this.data.date2,a)?"true":"false"},parseSingleTerm:function(a){return twve.tcalc.parse_date_arg(this.data,a)}},{name:"DAYS",no_eval:!0,data:{date1:null,date2:null,num_dec:null},startParsing:function(){this.data.date1=
this.data.date2=this.data.num_dec=null},stopParsing:function(){return!this.data.date1||!this.data.date2?null:twve.tcalc.days(this.data.date1,this.data.date2,this.data.num_dec)},parseSingleTerm:function(a){this.data.date1?this.data.date2?this.data.num_dec||(this.data.num_dec=1*a):this.data.date2=twve.tcalc.parse_date(a):this.data.date1=twve.tcalc.parse_date(a)}},{name:"MONTHS",no_eval:!0,data:{date1:null,date2:null,num_dec:null},startParsing:function(){this.data.date1=this.data.date2=this.data.num_dec=
null},stopParsing:function(){if(!this.data.date1||!this.data.date2)return null;var a=[this.data.date1.getFullYear(),this.data.date2.getFullYear()],b=[this.data.date1.getMonth(),this.data.date2.getMonth()],d=[this.data.date1.getDate(),this.data.date2.getDate()];"number"!=typeof this.data.num_dec&&(this.data.num_dec=0);if(a[0]==a[1])return twve.tcalc.months(b[0],d[0],b[1],d[1],a[1],this.data.num_dec);var e=0,f=1;a[1]<a[0]&&(e=1,f=0);a=12*(a[f]-a[e]-1)+twve.tcalc.months(b[e],d[e],11,31,a[e],this.data.num_dec)+
twve.tcalc.months(0,1,b[f],d[f],a[f],this.data.num_dec);return 0==e?a:-a},parseSingleTerm:function(a){this.data.date1?this.data.date2?this.data.num_dec||(this.data.num_dec=1*a):this.data.date2=twve.tcalc.parse_date(a):this.data.date1=twve.tcalc.parse_date(a)}},{name:"DATEADD",no_eval:!0,data:{date1:null,dy:null,dm:null,dd:null,format:""},startParsing:function(){this.data.date1=this.data.dy=this.data.dm=this.data.dd=null;this.data.format=""},stopParsing:function(){var a=this.data.date1||new Date,a=
new Date(a.getFullYear()+this.data.dy,a.getMonth()+this.data.dm,a.getDate()+this.data.dd);return twve.tcalc.format_date_string(a,twve.tcalc.parse_date_format(this.data.format))},parseSingleTerm:function(a){if(this.data.date1){var b=twve.tcalc.isNumeric(a),b=b?1*b:0;null===this.data.dy?this.data.dy=b:null===this.data.dm?this.data.dm=b:null===this.data.dd?this.data.dd=b:this.data.format||(this.data.format=a)}else this.data.date1=twve.tcalc.parse_date(a)}},{name:"DATE",no_eval:!0,data:{y:null,m:null,
d:null,format:""},startParsing:function(){this.data.y=this.data.m=this.data.d=null;this.data.format=""},stopParsing:function(){var a=new Date,a=new Date(this.data.y||today.getFullYear(),this.data.m?this.data.m-1:today.getMonth(),this.data.d||today.getDate());return twve.tcalc.format_date_string(a,twve.tcalc.parse_date_format(this.data.format))},parseSingleTerm:function(a){var b=twve.tcalc.isNumeric(a),b=b?1*b:0;null===this.data.y?this.data.y=b:null===this.data.m?this.data.m=b:null===this.data.d?this.data.d=
b:this.data.foramt||(this.data.format=a)}},{name:"TODAY",no_eval:!0,data:{format:""},startParsing:function(){this.data.format=""},stopParsing:function(){return twve.tcalc.format_date_string(new Date,twve.tcalc.parse_date_format(this.data.format))},parseSingleTerm:function(a){this.data.foramt||(this.data.format=a)}},{name:"ROUND",data:{value:null,num_dec:null},startParsing:function(){this.data.value=this.data.num_dec=null},stopParsing:function(){this.data.value=twve.tcalc.round(this.data.value,this.data.num_dec);
return this.data.value?""+this.data.value:"0"},parseSingleTerm:function(a){if(null===this.data.value)try{this.data.value=eval(a)}catch(b){}else if(null===this.data.num_dec)try{this.data.num_dec=eval(a)}catch(d){}}},{name:"EXP",data:{value:null},startParsing:function(){this.data.value=null},stopParsing:function(){return this.data.value?""+this.data.value:"0"},parseSingleTerm:function(a){null===this.data.value&&(this.data.value=Math.exp(1*a))}},{name:"LN",data:{value:null},startParsing:function(){this.data.value=
null},stopParsing:function(){return this.data.value?""+this.data.value:"0"},parseSingleTerm:function(a){null===this.data.value&&(this.data.value=Math.log(1*a))}},{name:"LOG10",data:{value:null},startParsing:function(){this.data.value=null},stopParsing:function(){return this.data.value?""+this.data.value:"0"},parseSingleTerm:function(a){null===this.data.value&&(this.data.value=Math.log(1*a)/Math.log(10))}},{name:"LOG",data:{argument:null,base:null},startParsing:function(){this.data.argument=this.data.base=
null},stopParsing:function(){null===this.data.base&&(this.data.base=10);var a=Math.log(this.data.argument)/Math.log(this.data.base);return a?""+a:"0"},parseSingleTerm:function(a){null===this.data.argument?this.data.argument=1*a:null===this.data.base&&(this.data.base=1*a)}},{name:"AND",data:{argument:null},startParsing:function(){this.data.argument=[]},stopParsing:function(){var a=this.data.argument.length;if(2>a)return"false";for(var b=0;b<a;b++)if(!this.data.argument[b])return"false";return"true"},
parseSingleTerm:function(a){this.data.argument[this.data.argument.length]=twve.tcalc.parseTrueFalse(a)}},{name:"OR",data:{argument:null},startParsing:function(){this.data.argument=[]},stopParsing:function(){var a=this.data.argument.length;if(0==a)return"false";for(var b=0;b<a;b++)if(this.data.argument[b])return"true";return"false"},parseSingleTerm:function(a){this.data.argument[this.data.argument.length]=twve.tcalc.parseTrueFalse(a)}},{name:"XOR",data:{argument:null},startParsing:function(){this.data.argument=
[]},stopParsing:function(){return 2>this.data.argument.length?"false":this.data.argument[0]?!this.data.argument[1]:this.data.argument[1]},parseSingleTerm:function(a){this.data.argument[this.data.argument.length]=twve.tcalc.parseTrueFalse(a)}},{name:"RANDOM",data:{factor:null},startParsing:function(){this.data.factor=null},stopParsing:function(){var a=Math.random();this.data.factor&&(a*=this.data.factor);return a},parseSingleTerm:function(a){this.data.factor||(this.data.factor=1*a)}},{name:"CONCAT",
no_eval:!0},{name:"ISNUMERIC",no_eval:!0,parseSingleTerm:function(a){return(a=twve.tcalc.isNumeric(a))?a:"false"}},{name:["STDERR","STDEV"],data:{value:null,sum:0},startParsing:function(){this.data.value=[];this.data.sum=0},stopParsing:function(){var a=this.data.value.length;if(0==a)return 0;for(var b=this.data.sum/a,d=0,e=0;e<a;e++)d+=Math.pow(this.data.value[e]-b,2);return Math.sqrt(d/(a-1))},parseSingleTerm:function(a){a=parseFloat(a);this.data.value[this.data.value.length]=a;this.data.sum+=a}},
{name:["COLUMNA","COLA"],no_deref:!0,data:{col:null},startParsing:function(){this.data.col=null},stopParsing:function(){null===this.data.col&&(this.data.col=twve.tcalc.curCellCol());return twve.tcalc.colRef(this.data.col)},parseSingleTerm:function(a){null===this.data.col&&(this.data.col=twve.tcalc.referenceToIndexCol(a))}},{name:["COLUMNS","COLS"],no_eval:!0,no_deref:!0,data:{cols:0},startParsing:function(){this.data.cols=0},stopParsing:function(){return""+this.data.cols},parseSingleTerm:function(a){a=
a.split(":");switch(a.length){case 1:this.data.cols++;break;case 2:var b=twve.tcalc.referenceToIndexCol(a[0]);a=twve.tcalc.referenceToIndexCol(a[1]);this.data.cols+=a-b+1;break;default:throw"Syntax error: "+a;}}},{name:["COLUMN","COL"],no_deref:!0,data:{col:null},startParsing:function(){this.data.col=null},stopParsing:function(){null===this.data.col&&(this.data.col=twve.tcalc.curCellCol());return 0>this.data.col?"":""+this.data.col},parseSingleTerm:function(a){null===this.data.col&&(this.data.col=
twve.tcalc.referenceToIndexCol(a))}},{name:"ROWS",no_eval:!0,no_deref:!0,data:{rows:0},startParsing:function(){this.data.rows=0},stopParsing:function(){return""+this.data.rows},parseSingleTerm:function(a){a=a.split(":");switch(a.length){case 1:this.data.rows++;break;case 2:var b=twve.tcalc.referenceToIndexRow(a[0]);a=twve.tcalc.referenceToIndexRow(a[1]);this.data.rows+=a-b+1;break;default:throw"Syntax error: "+a;}}},{name:"ROW",no_deref:!0,data:{row:null},startParsing:function(){this.data.row=null},
stopParsing:function(){null===this.data.row&&(this.data.row=row=twve.tcalc.curCellRow());return 0>row?"":""+this.data.row},parseSingleTerm:function(a){this.data.row||(this.data.row=twve.tcalc.referenceToIndexRow(a))}},{name:"SQRT",data:{value:null},startParsing:function(){this.data.value=null},stopParsing:function(){return 0==this.data.value?0:0<this.data.value?Math.sqrt(this.data.value):Math.sqrt(-this.data.value)+" i"},parseSingleTerm:function(a){this.data.value=parseFloat(a)}},{name:"IF",data:{args:null},
startParsing:function(){this.data.args=[]},stopParsing:function(){return!0==this.data.args[0]?this.data.args[1]:this.data.args[2]},parseSingleTerm:function(a,b){var d=this.data.args.length;try{switch(d){case 2:case 1:var e=a.substring(0,b);this.data.args[d]=e+eval(a.substring(b));break;case 0:this.data.args[d]=eval(a)}}catch(f){this.data.args[d]=a}}},{name:"COUNTDOWN",data:{start:null,end:null,interval:null,type:null,pid:null},startParsing:function(){this.data.start=this.data.end=this.data.interval=
this.data.type=this.data.pid=null},stopParsing:function(){if(null!==this.data.start){var a="";"number"==this.data.type?((a=a?twve.tcalc.isNumeric(this.data.end):0)?(this.data.end=1*a,1E-5>Math.abs(this.data.end)&&(this.data.end=0)):this.data.end=0,(a=this.data.interval?twve.tcalc.isNumeric(this.data.interval):1)?(this.data.interval=1*a,1E-4>this.data.interval/(this.data.end-this.data.start)&&(this.data.interval=1E-4*(this.data.end-this.data.start))):this.data.interval=1):"date"==this.data.type?(a=
Date.parse(this.data.end),isNaN(a)?this.data.end=new Date:this.data.end=a,a=Date.parse(this.data.interval),isNaN(a)?this.data.interval=1E3:this.data.interval=a):(null===this.data.end&&(this.data.end=""),null===this.data.interval&&(this.data.interval=1))}},parseSingleTerm:function(a){if(!a)return"";if(null===this.data.start){var b=twve.tcalc.isNumeric(a);b?(this.data.start=1*b,this.data.type="number"):(b=Date.parse(a),isNaN(b)?(this.data.start=a,this.data.type="string"):(this.data.start=b,this.data.type=
"date"))}else null===this.data.end?this.data.end=a:null===this.data.interval&&(this.data.interval=a)}}];
//}}}
// @@
This tiddler gives detailed information about the ''twve.wrapper'', an object representing all editable __wrappers__ (containers for part or all of a tiddler's content) in ~TiddlyWiki.
/***
|Name|UndoPlugin|
|Author|Eric Shulman|
|Source|http://www.TiddlyTools.com/#UndoPlugin|
|Documentation|http://www.TiddlyTools.com/#UndoPlugin|
|Version|0.2.1|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|undo/redo changes to tiddlers|
|Status|Experimental - DO NOT DISTRIBUTE|
This plugin records changes to tiddlers edited during the session, allowing you to quickly revert to previous revisions of a tiddler, even after pressing 'done'.
!!!!!Documentation
<<<
TBD
<<<
!!!!!Configuration
<<<
<<option chkEnableUndo>> enable undo handling
<<<
!!!!!Revisions
<<<
2011.09.11 0.2.1 in setmsg(), make sure undo stack is not empty. In go(), make sure index is >0. added disabledmsg with option checkbox. In render(), use wikify() to display static menu content (noundomsg/disabledmsg)
2011.09.07 0.2.0 refactored click handler and added toolbar command wrapper
2011.05.15 0.1.1 edits to message text
2011.05.02 0.1.0 started
<<<
!!!!!Code
***/
//{{{
version.extensions.UndoPlugin= {major: 0, minor: 2, revision: 1, date: new Date(2011,9,11)};
if (config.options.chkEnableUndo===undefined) config.options.chkEnableUndo=true;
config.macros.undo = {
label: 'undo',
prompt: 'undo changes',
tip: 'undo changes to "%0"',
multimsg: 'Undo %0 tiddler changes. Are you sure?',
revertedmsg: '"%0" - previous content restored',
renamedmsg: '"%0" - renamed to "%1"',
deletedmsg: '"%0" - removed',
shadowmsg: '"%0" - default (shadow) content restored',
noundomsg: 'nothing to undo',
disabledmsg: 'undo is disabled\n----\n<<option chkEnableUndo>>enable undo',
undoheading: 'undo tiddler changes:',
dateformat: 'YYYY.0MM.0DD 0hh:0mm:0ss',
popupformat: '%1 %0<div style="font-size:80%"><i>action: </i><b>%2</b></div>',
changes: [], // the list of previous tiddler changes
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var p=paramString.parseParams('name',null,true,false,true);
var label=getParam(p,'label',this.label);
var prompt=getParam(p,'prompt',this.prompt);
createTiddlyButton(place,label,prompt,this.click);
},
click: function(ev){
var p=Popup.create(this); if (!p) return false;
config.macros.undo.render(p);
Popup.show();
ev=ev||window.event; ev.cancelBubble=true;
if(ev.stopPropagation) ev.stopPropagation();
return false;
},
render: function(p) {
var cmu=config.macros.undo; // abbrev
if (!config.options.chkEnableUndo) wikify(cmu.disabledmsg,p);
else if (!cmu.changes.length) wikify(cmu.noundomsg,p);
else {
createTiddlyText(p, cmu.undoheading);
for (var i=cmu.changes.length-1; i>=0; i--) { var c=cmu.changes[i]; var t=c.tiddler;
var b=createTiddlyButton(createTiddlyElement(p,'li'),
c.title, cmu.tip.format([c.title]),
function(ev){return config.macros.undo.go(this.getAttribute('i'));});
b.innerHTML=cmu.popupformat.format(
[c.title,c.when.formatString(cmu.dateformat),c.msg]);
b.setAttribute('i',i);
}
}
},
add: function(title,tiddler,action,msg){
this.changes.push({
title:title,
tiddler:merge({},tiddler),
action: action, // create, rename, change, delete
when: new Date(),
who: config.options.txtUserName,
msg: msg
});
},
setmsg: function(msg) {
if (this.changes.length) this.changes[this.changes.length-1].msg=msg;
},
reset: function(i){
while (this.changes.length) this.changes.pop();
},
go: function(i){
var co=config.options; // abbrev
var steps=this.changes.length-i; if (steps<0) return false;
if (steps>1 && !confirm(this.multimsg.format([steps]))) return false;
var temp=co.chkEnableUndo; co.chkEnableUndo=false; // SUSPEND undo
var msgs=[];
for (var j=this.changes.length; j>i; j--) {
var c=this.changes.pop();
if (c.action=='create') {
store.removeTiddler(c.title);
m=store.isShadowTiddler(c.title)?this.shadowmsg:this.deletedmsg;
msgs.push(m.format([c.title]));
} else {
var t=c.tiddler;
var revert=store.getTiddlerText(c.title)!=t.text;
var rename=c.title!=t.title
store.saveTiddler(t.title,t.title,t.text,
t.modifier,t.modified,t.tags,t.fields);
if (rename) { // RENAME: re-render with previous name
var tidelem=story.getTiddler(c.title);
if (tidelem) { // if displayed, re-render with previous name
story.displayTiddler(tidelem,t.title);
story.closeTiddler(c.title);
}
store.removeTiddler(c.title);
msgs.push(this.renamedmsg.format([c.title,t.title]));
}
if (revert) msgs.push(this.revertedmsg.format([t.title]));
}
}
co.chkEnableUndo=temp; // RESUME undo
while (msgs.length) displayMessage(msgs.shift());
autoSaveChanges();
return false;
}
};
//}}}
// // TOOLBAR COMMAND: undo
//{{{
config.commands.undoChanges = {
text: 'undo',
hideReadOnly: true,
tooltip: 'undo individual document changes since the last save',
handler: function(ev,src,title) { return config.macros.undo.click.call(src,ev); }
};
//}}}
// // HIJACKS - update changes when a tiddler is saved or deleted
//{{{
if (TiddlyWiki.prototype.undo_saveTiddler==undefined) TiddlyWiki.prototype.undo_saveTiddler=TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.saveTiddler = function(title,newTitle,text) {
var tiddler=store.getTiddler(title);
if (config.options.chkEnableUndo) {
var msgs=[];
if (!tiddler) {
var action='create';
msgs.push('remove "'+newTitle+'"');
if (store.isShadowTiddler(newTitle))
msgs.push('use default (shadow) content');
} else {
var action=title!=newTitle?'rename':'change';
if (action=='rename') {
msgs.push('rename to "'+title+'"');
}
if (store.getTiddlerText(title)!=text || !msgs.length)
msgs.push('restore previous content');
}
config.macros.undo.add(newTitle,tiddler,action,msgs.join(', '));
}
this.undo_saveTiddler.apply(this,arguments);
}
if (TiddlyWiki.prototype.undo_removeTiddler==undefined) TiddlyWiki.prototype.undo_removeTiddler=TiddlyWiki.prototype.removeTiddler;
TiddlyWiki.prototype.removeTiddler = function(title) {
var tiddler=store.getTiddler(title);
if (tiddler && config.options.chkEnableUndo) {
var action='delete';
var msg='restore deleted tiddler';
config.macros.undo.add(title,tiddler,action,msg);
}
this.undo_removeTiddler.apply(this,arguments);
}
//}}}
| !date | !user | !location | !storeUrl | !uploadDir | !toFilename | !backupdir | !origin |
| 31/03/2016 21:20:37 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 31/03/2016 21:21:51 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 31/03/2016 22:37:49 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 21/04/2016 23:20:51 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 23/04/2016 08:28:15 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 23/04/2016 08:35:41 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 23/04/2016 09:01:30 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 17/05/2016 10:26:48 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
| 21/06/2016 10:32:59 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . | ok |
| 21/06/2016 10:35:34 | VincentYeh | [[/|http://twve.tiddlyspot.com/]] | [[store.cgi|http://twve.tiddlyspot.com/store.cgi]] | . | [[index.html | http://twve.tiddlyspot.com/index.html]] | . |
/***
|''Name:''|UploadPlugin|
|''Description:''|Save to web a TiddlyWiki|
|''Version:''|4.1.3|
|''Date:''|Feb 24, 2008|
|''Source:''|http://tiddlywiki.bidix.info/#UploadPlugin|
|''Documentation:''|http://tiddlywiki.bidix.info/#UploadPluginDoc|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0|
|''Requires:''|PasswordOptionPlugin|
***/
//{{{
version.extensions.UploadPlugin = {
major: 4, minor: 1, revision: 3,
date: new Date("Feb 24, 2008"),
source: 'http://tiddlywiki.bidix.info/#UploadPlugin',
author: 'BidiX (BidiX (at) bidix (dot) info',
coreVersion: '2.2.0'
};
//
// Environment
//
if (!window.bidix) window.bidix = {}; // bidix namespace
bidix.debugMode = false; // true to activate both in Plugin and UploadService
//
// Upload Macro
//
config.macros.upload = {
// default values
defaultBackupDir: '', //no backup
defaultStoreScript: "store.php",
defaultToFilename: "index.html",
defaultUploadDir: ".",
authenticateUser: true // UploadService Authenticate User
};
config.macros.upload.label = {
promptOption: "Save and Upload this TiddlyWiki with UploadOptions",
promptParamMacro: "Save and Upload this TiddlyWiki in %0",
saveLabel: "save to web",
saveToDisk: "save to disk",
uploadLabel: "upload"
};
config.macros.upload.messages = {
noStoreUrl: "No store URL in parmeters or options",
usernameOrPasswordMissing: "Username or password missing"
};
config.macros.upload.handler = function(place,macroName,params) {
if (readOnly)
return;
var label;
if (document.location.toString().substr(0,4) == "http")
label = this.label.saveLabel;
else
label = this.label.uploadLabel;
var prompt;
if (params[0]) {
prompt = this.label.promptParamMacro.toString().format([this.destFile(params[0],
(params[1] ? params[1]:bidix.basename(window.location.toString())), params[3])]);
} else {
prompt = this.label.promptOption;
}
createTiddlyButton(place, label, prompt, function() {config.macros.upload.action(params);}, null, null, this.accessKey);
};
config.macros.upload.action = function(params)
{
// for missing macro parameter set value from options
if (!params) params = {};
var storeUrl = params[0] ? params[0] : config.options.txtUploadStoreUrl;
var toFilename = params[1] ? params[1] : config.options.txtUploadFilename;
var backupDir = params[2] ? params[2] : config.options.txtUploadBackupDir;
var uploadDir = params[3] ? params[3] : config.options.txtUploadDir;
var username = params[4] ? params[4] : config.options.txtUploadUserName;
var password = config.options.pasUploadPassword; // for security reason no password as macro parameter
// for still missing parameter set default value
if ((!storeUrl) && (document.location.toString().substr(0,4) == "http"))
storeUrl = bidix.dirname(document.location.toString())+'/'+config.macros.upload.defaultStoreScript;
if (storeUrl.substr(0,4) != "http")
storeUrl = bidix.dirname(document.location.toString()) +'/'+ storeUrl;
if (!toFilename)
toFilename = bidix.basename(window.location.toString());
if (!toFilename)
toFilename = config.macros.upload.defaultToFilename;
if (!uploadDir)
uploadDir = config.macros.upload.defaultUploadDir;
if (!backupDir)
backupDir = config.macros.upload.defaultBackupDir;
// report error if still missing
if (!storeUrl) {
alert(config.macros.upload.messages.noStoreUrl);
clearMessage();
return false;
}
if (config.macros.upload.authenticateUser && (!username || !password)) {
alert(config.macros.upload.messages.usernameOrPasswordMissing);
clearMessage();
return false;
}
bidix.upload.uploadChanges(false,null,storeUrl, toFilename, uploadDir, backupDir, username, password);
return false;
};
config.macros.upload.destFile = function(storeUrl, toFilename, uploadDir)
{
if (!storeUrl)
return null;
var dest = bidix.dirname(storeUrl);
if (uploadDir && uploadDir != '.')
dest = dest + '/' + uploadDir;
dest = dest + '/' + toFilename;
return dest;
};
//
// uploadOptions Macro
//
config.macros.uploadOptions = {
handler: function(place,macroName,params) {
var wizard = new Wizard();
wizard.createWizard(place,this.wizardTitle);
wizard.addStep(this.step1Title,this.step1Html);
var markList = wizard.getElement("markList");
var listWrapper = document.createElement("div");
markList.parentNode.insertBefore(listWrapper,markList);
wizard.setValue("listWrapper",listWrapper);
this.refreshOptions(listWrapper,false);
var uploadCaption;
if (document.location.toString().substr(0,4) == "http")
uploadCaption = config.macros.upload.label.saveLabel;
else
uploadCaption = config.macros.upload.label.uploadLabel;
wizard.setButtons([
{caption: uploadCaption, tooltip: config.macros.upload.label.promptOption,
onClick: config.macros.upload.action},
{caption: this.cancelButton, tooltip: this.cancelButtonPrompt, onClick: this.onCancel}
]);
},
options: [
"txtUploadUserName",
"pasUploadPassword",
"txtUploadStoreUrl",
"txtUploadDir",
"txtUploadFilename",
"txtUploadBackupDir",
"chkUploadLog",
"txtUploadLogMaxLine"
],
refreshOptions: function(listWrapper) {
var opts = [];
for(i=0; i<this.options.length; i++) {
var opt = {};
opts.push();
opt.option = "";
n = this.options[i];
opt.name = n;
opt.lowlight = !config.optionsDesc[n];
opt.description = opt.lowlight ? this.unknownDescription : config.optionsDesc[n];
opts.push(opt);
}
var listview = ListView.create(listWrapper,opts,this.listViewTemplate);
for(n=0; n<opts.length; n++) {
var type = opts[n].name.substr(0,3);
var h = config.macros.option.types[type];
if (h && h.create) {
h.create(opts[n].colElements['option'],type,opts[n].name,opts[n].name,"no");
}
}
},
onCancel: function(e)
{
backstage.switchTab(null);
return false;
},
wizardTitle: "Upload with options",
step1Title: "These options are saved in cookies in your browser",
step1Html: "<input type='hidden' name='markList'></input><br>",
cancelButton: "Cancel",
cancelButtonPrompt: "Cancel prompt",
listViewTemplate: {
columns: [
{name: 'Description', field: 'description', title: "Description", type: 'WikiText'},
{name: 'Option', field: 'option', title: "Option", type: 'String'},
{name: 'Name', field: 'name', title: "Name", type: 'String'}
],
rowClasses: [
{className: 'lowlight', field: 'lowlight'}
]}
};
//
// upload functions
//
if (!bidix.upload) bidix.upload = {};
if (!bidix.upload.messages) bidix.upload.messages = {
//from saving
invalidFileError: "The original file '%0' does not appear to be a valid TiddlyWiki",
backupSaved: "Backup saved",
backupFailed: "Failed to upload backup file",
rssSaved: "RSS feed uploaded",
rssFailed: "Failed to upload RSS feed file",
emptySaved: "Empty template uploaded",
emptyFailed: "Failed to upload empty template file",
mainSaved: "Main TiddlyWiki file uploaded",
mainFailed: "Failed to upload main TiddlyWiki file. Your changes have not been saved",
//specific upload
loadOriginalHttpPostError: "Can't get original file",
aboutToSaveOnHttpPost: 'About to upload on %0 ...',
storePhpNotFound: "The store script '%0' was not found."
};
bidix.upload.uploadChanges = function(onlyIfDirty,tiddlers,storeUrl,toFilename,uploadDir,backupDir,username,password)
{
var callback = function(status,uploadParams,original,url,xhr) {
if (!status) {
displayMessage(bidix.upload.messages.loadOriginalHttpPostError);
return;
}
if (bidix.debugMode)
alert(original.substr(0,500)+"\n...");
// Locate the storeArea div's
var posDiv = locateStoreArea(original);
if((posDiv[0] == -1) || (posDiv[1] == -1)) {
alert(config.messages.invalidFileError.format([localPath]));
return;
}
bidix.upload.uploadRss(uploadParams,original,posDiv);
};
if(onlyIfDirty && !store.isDirty())
return;
clearMessage();
// save on localdisk ?
if (document.location.toString().substr(0,4) == "file") {
var path = document.location.toString();
var localPath = getLocalPath(path);
saveChanges();
}
// get original
var uploadParams = new Array(storeUrl,toFilename,uploadDir,backupDir,username,password);
var originalPath = document.location.toString();
// If url is a directory : add index.html
if (originalPath.charAt(originalPath.length-1) == "/")
originalPath = originalPath + "index.html";
var dest = config.macros.upload.destFile(storeUrl,toFilename,uploadDir);
var log = new bidix.UploadLog();
log.startUpload(storeUrl, dest, uploadDir, backupDir);
displayMessage(bidix.upload.messages.aboutToSaveOnHttpPost.format([dest]));
if (bidix.debugMode)
alert("about to execute Http - GET on "+originalPath);
var r = doHttp("GET",originalPath,null,null,username,password,callback,uploadParams,null);
if (typeof r == "string")
displayMessage(r);
return r;
};
bidix.upload.uploadRss = function(uploadParams,original,posDiv)
{
var callback = function(status,params,responseText,url,xhr) {
if(status) {
var destfile = responseText.substring(responseText.indexOf("destfile:")+9,responseText.indexOf("\n", responseText.indexOf("destfile:")));
displayMessage(bidix.upload.messages.rssSaved,bidix.dirname(url)+'/'+destfile);
bidix.upload.uploadMain(params[0],params[1],params[2]);
} else {
displayMessage(bidix.upload.messages.rssFailed);
}
};
// do uploadRss
if(config.options.chkGenerateAnRssFeed) {
var rssPath = uploadParams[1].substr(0,uploadParams[1].lastIndexOf(".")) + ".xml";
var rssUploadParams = new Array(uploadParams[0],rssPath,uploadParams[2],'',uploadParams[4],uploadParams[5]);
var rssString = generateRss();
// no UnicodeToUTF8 conversion needed when location is "file" !!!
if (document.location.toString().substr(0,4) != "file")
rssString = convertUnicodeToUTF8(rssString);
bidix.upload.httpUpload(rssUploadParams,rssString,callback,Array(uploadParams,original,posDiv));
} else {
bidix.upload.uploadMain(uploadParams,original,posDiv);
}
};
bidix.upload.uploadMain = function(uploadParams,original,posDiv)
{
var callback = function(status,params,responseText,url,xhr) {
var log = new bidix.UploadLog();
if(status) {
// if backupDir specified
if ((params[3]) && (responseText.indexOf("backupfile:") > -1)) {
var backupfile = responseText.substring(responseText.indexOf("backupfile:")+11,responseText.indexOf("\n", responseText.indexOf("backupfile:")));
displayMessage(bidix.upload.messages.backupSaved,bidix.dirname(url)+'/'+backupfile);
}
var destfile = responseText.substring(responseText.indexOf("destfile:")+9,responseText.indexOf("\n", responseText.indexOf("destfile:")));
displayMessage(bidix.upload.messages.mainSaved,bidix.dirname(url)+'/'+destfile);
store.setDirty(false);
log.endUpload("ok");
} else {
alert(bidix.upload.messages.mainFailed);
displayMessage(bidix.upload.messages.mainFailed);
log.endUpload("failed");
}
};
// do uploadMain
var revised = bidix.upload.updateOriginal(original,posDiv);
bidix.upload.httpUpload(uploadParams,revised,callback,uploadParams);
};
bidix.upload.httpUpload = function(uploadParams,data,callback,params)
{
var localCallback = function(status,params,responseText,url,xhr) {
url = (url.indexOf("nocache=") < 0 ? url : url.substring(0,url.indexOf("nocache=")-1));
if (xhr.status == 404)
alert(bidix.upload.messages.storePhpNotFound.format([url]));
if ((bidix.debugMode) || (responseText.indexOf("Debug mode") >= 0 )) {
alert(responseText);
if (responseText.indexOf("Debug mode") >= 0 )
responseText = responseText.substring(responseText.indexOf("\n\n")+2);
} else if (responseText.charAt(0) != '0')
alert(responseText);
if (responseText.charAt(0) != '0')
status = null;
callback(status,params,responseText,url,xhr);
};
// do httpUpload
var boundary = "---------------------------"+"AaB03x";
var uploadFormName = "UploadPlugin";
// compose headers data
var sheader = "";
sheader += "--" + boundary + "\r\nContent-disposition: form-data; name=\"";
sheader += uploadFormName +"\"\r\n\r\n";
sheader += "backupDir="+uploadParams[3] +
";user=" + uploadParams[4] +
";password=" + uploadParams[5] +
";uploaddir=" + uploadParams[2];
if (bidix.debugMode)
sheader += ";debug=1";
sheader += ";;\r\n";
sheader += "\r\n" + "--" + boundary + "\r\n";
sheader += "Content-disposition: form-data; name=\"userfile\"; filename=\""+uploadParams[1]+"\"\r\n";
sheader += "Content-Type: text/html;charset=UTF-8" + "\r\n";
sheader += "Content-Length: " + data.length + "\r\n\r\n";
// compose trailer data
var strailer = new String();
strailer = "\r\n--" + boundary + "--\r\n";
data = sheader + data + strailer;
if (bidix.debugMode) alert("about to execute Http - POST on "+uploadParams[0]+"\n with \n"+data.substr(0,500)+ " ... ");
var r = doHttp("POST",uploadParams[0],data,"multipart/form-data; ;charset=UTF-8; boundary="+boundary,uploadParams[4],uploadParams[5],localCallback,params,null);
if (typeof r == "string")
displayMessage(r);
return r;
};
// same as Saving's updateOriginal but without convertUnicodeToUTF8 calls
bidix.upload.updateOriginal = function(original, posDiv)
{
if (!posDiv)
posDiv = locateStoreArea(original);
if((posDiv[0] == -1) || (posDiv[1] == -1)) {
alert(config.messages.invalidFileError.format([localPath]));
return;
}
var revised = original.substr(0,posDiv[0] + startSaveArea.length) + "\n" +
store.allTiddlersAsHtml() + "\n" +
original.substr(posDiv[1]);
var newSiteTitle = getPageTitle().htmlEncode();
revised = revised.replaceChunk("<title"+">","</title"+">"," " + newSiteTitle + " ");
revised = updateMarkupBlock(revised,"PRE-HEAD","MarkupPreHead");
revised = updateMarkupBlock(revised,"POST-HEAD","MarkupPostHead");
revised = updateMarkupBlock(revised,"PRE-BODY","MarkupPreBody");
revised = updateMarkupBlock(revised,"POST-SCRIPT","MarkupPostBody");
return revised;
};
//
// UploadLog
//
// config.options.chkUploadLog :
// false : no logging
// true : logging
// config.options.txtUploadLogMaxLine :
// -1 : no limit
// 0 : no Log lines but UploadLog is still in place
// n : the last n lines are only kept
// NaN : no limit (-1)
bidix.UploadLog = function() {
if (!config.options.chkUploadLog)
return; // this.tiddler = null
this.tiddler = store.getTiddler("UploadLog");
if (!this.tiddler) {
this.tiddler = new Tiddler();
this.tiddler.title = "UploadLog";
this.tiddler.text = "| !date | !user | !location | !storeUrl | !uploadDir | !toFilename | !backupdir | !origin |";
this.tiddler.created = new Date();
this.tiddler.modifier = config.options.txtUserName;
this.tiddler.modified = new Date();
store.addTiddler(this.tiddler);
}
return this;
};
bidix.UploadLog.prototype.addText = function(text) {
if (!this.tiddler)
return;
// retrieve maxLine when we need it
var maxLine = parseInt(config.options.txtUploadLogMaxLine,10);
if (isNaN(maxLine))
maxLine = -1;
// add text
if (maxLine != 0)
this.tiddler.text = this.tiddler.text + text;
// Trunck to maxLine
if (maxLine >= 0) {
var textArray = this.tiddler.text.split('\n');
if (textArray.length > maxLine + 1)
textArray.splice(1,textArray.length-1-maxLine);
this.tiddler.text = textArray.join('\n');
}
// update tiddler fields
this.tiddler.modifier = config.options.txtUserName;
this.tiddler.modified = new Date();
store.addTiddler(this.tiddler);
// refresh and notifiy for immediate update
story.refreshTiddler(this.tiddler.title);
store.notify(this.tiddler.title, true);
};
bidix.UploadLog.prototype.startUpload = function(storeUrl, toFilename, uploadDir, backupDir) {
if (!this.tiddler)
return;
var now = new Date();
var text = "\n| ";
var filename = bidix.basename(document.location.toString());
if (!filename) filename = '/';
text += now.formatString("0DD/0MM/YYYY 0hh:0mm:0ss") +" | ";
text += config.options.txtUserName + " | ";
text += "[["+filename+"|"+location + "]] |";
text += " [[" + bidix.basename(storeUrl) + "|" + storeUrl + "]] | ";
text += uploadDir + " | ";
text += "[[" + bidix.basename(toFilename) + " | " +toFilename + "]] | ";
text += backupDir + " |";
this.addText(text);
};
bidix.UploadLog.prototype.endUpload = function(status) {
if (!this.tiddler)
return;
this.addText(" "+status+" |");
};
//
// Utilities
//
bidix.checkPlugin = function(plugin, major, minor, revision) {
var ext = version.extensions[plugin];
if (!
(ext &&
((ext.major > major) ||
((ext.major == major) && (ext.minor > minor)) ||
((ext.major == major) && (ext.minor == minor) && (ext.revision >= revision))))) {
// write error in PluginManager
if (pluginInfo)
pluginInfo.log.push("Requires " + plugin + " " + major + "." + minor + "." + revision);
eval(plugin); // generate an error : "Error: ReferenceError: xxxx is not defined"
}
};
bidix.dirname = function(filePath) {
if (!filePath)
return;
var lastpos;
if ((lastpos = filePath.lastIndexOf("/")) != -1) {
return filePath.substring(0, lastpos);
} else {
return filePath.substring(0, filePath.lastIndexOf("\\"));
}
};
bidix.basename = function(filePath) {
if (!filePath)
return;
var lastpos;
if ((lastpos = filePath.lastIndexOf("#")) != -1)
filePath = filePath.substring(0, lastpos);
if ((lastpos = filePath.lastIndexOf("/")) != -1) {
return filePath.substring(lastpos + 1);
} else
return filePath.substring(filePath.lastIndexOf("\\")+1);
};
bidix.initOption = function(name,value) {
if (!config.options[name])
config.options[name] = value;
};
//
// Initializations
//
// require PasswordOptionPlugin 1.0.1 or better
bidix.checkPlugin("PasswordOptionPlugin", 1, 0, 1);
// styleSheet
setStylesheet('.txtUploadStoreUrl, .txtUploadBackupDir, .txtUploadDir {width: 22em;}',"uploadPluginStyles");
//optionsDesc
merge(config.optionsDesc,{
txtUploadStoreUrl: "Url of the UploadService script (default: store.php)",
txtUploadFilename: "Filename of the uploaded file (default: in index.html)",
txtUploadDir: "Relative Directory where to store the file (default: . (downloadService directory))",
txtUploadBackupDir: "Relative Directory where to backup the file. If empty no backup. (default: ''(empty))",
txtUploadUserName: "Upload Username",
pasUploadPassword: "Upload Password",
chkUploadLog: "do Logging in UploadLog (default: true)",
txtUploadLogMaxLine: "Maximum of lines in UploadLog (default: 10)"
});
// Options Initializations
bidix.initOption('txtUploadStoreUrl','');
bidix.initOption('txtUploadFilename','');
bidix.initOption('txtUploadDir','');
bidix.initOption('txtUploadBackupDir','');
bidix.initOption('txtUploadUserName','');
bidix.initOption('pasUploadPassword','');
bidix.initOption('chkUploadLog',true);
bidix.initOption('txtUploadLogMaxLine','10');
// Backstage
merge(config.tasks,{
uploadOptions: {text: "upload", tooltip: "Change UploadOptions and Upload", content: '<<uploadOptions>>'}
});
config.backstageTasks.push("uploadOptions");
//}}}
<!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div>
<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}-->
https://github.com/sjakthol/vpngate-client/blob/master/vpngate-client
sqlite> `vacuum` to trim down size
| [[ 2020-03-08 @ docs.n8n.io → n8n Documentation |https://docs.n8n.io/#/configuration?id=execution-data-errorsuccess ]] |
| [[ 2020-01-08 @ community.n8n.io → N8n creates everygrowing files. How to delete unnecessary data via cronjob? - Questions - n8n |https://community.n8n.io/t/n8n-creates-everygrowing-files-how-to-delete-unnecessary-data-via-cronjob/620 ]] |
| [[ 2016-03-04 @ stackoverflow.com → Sqlite File Size not decreasing after deleting some rows from database in iOS - Stack Overflow |https://stackoverflow.com/questions/35787220/sqlite-file-size-not-decreasing-after-deleting-some-rows-from-database-in-ios ]] |
| [[ 2010-01-27 @ stackoverflow.com → change sqlite file size after "DELETE FROM table" - Stack Overflow |https://stackoverflow.com/questions/2143800/change-sqlite-file-size-after-delete-from-table ]] |
| [[ 2019-11-13 @ community.n8n.io → N8n and traefik problems - 502 response - Questions - n8n |https://community.n8n.io/t/n8n-and-traefik-problems-502-response/409 ]] |
https://www.wikihow.com/Clear-the-Cache-in-Chrome
chrome://net-internals/#dns """
##slax example , loads $loadsite if set as user "guest" (root would have to use --no-sandbox) , some weak ciphers blacked
` DISPLAY=:0 su -c "unset XAUTHORITY;xauth add $(xauth list);chromium --cipher-suite-blacklist=0x0088,0x0087,0x0039,0x0038,0x0044,0x0045,0x0066,0x0032,0x0033,0x0016,0x0013 --fast --incognito $loadsite" guest &
`
https://unix.stackexchange.com/questions/209746/how-to-resolve-no-protocol-specified-for-su-user
`--ignore-certificate-errors`
https://superuser.com/questions/27268/how-do-i-disable-the-warning-chrome-gives-if-a-security-certificate-is-not-trust
https://stackoverflow.com/questions/46349459/chrome-neterr-cert-authority-invalid-error-on-self-signing-certificate-at-loca
`(use ssh -L 127.0.0.1:4443:myhost.net:443)`
https://www.systutorials.com/50204/making-chrome-accept-self-signed-certificates-on-linux/
https://www.howtogeek.com/291019/how-to-restore-your-chrome-tabs-when-theres-no-re-open-last-session-button/
https://lifehacker.com/how-can-i-restore-closed-tabs-after-accidentally-quitti-1452314285
https://productforums.google.com/forum/#!topic/chrome/7JoWEVz3CK8
#PRIVACY
https://www.mozilla.org/en-US/lightbeam/
#RESTORE
https://support.mozilla.org/de/questions/1173678
https://www.pixelcontainer.net/firefox-syncserver-1-5-auf-ubuntu-16-04/
https://jankarres.de/2014/07/raspberry-pi-firefox-sync-server-installieren/
https://addons.mozilla.org/en-US/firefox/addon/custom-sync-fxa/?src=search
https://docs.services.mozilla.com/howtos/run-fxa.html
https://docs.services.mozilla.com/howtos/run-sync-1.5.html#howto-run-sync15
https://sathya.de/blog/how-tos/setup-your-own-firefox-1-5-sync-server-on-debian-with-apache2-and-mysql/
```
Just had some trouble getting it work.
The problem is the url “https://your.domain.net:443/token/1.0/sync/1.5″
The Port definition :443 must be left out, in the ini-file and in services.sync.tokenServerURI. Now it works on the ssl-enabled apache
```
http://www.opera.com/docs/userjs/
http://www.opera.com/docs/userjs/specs/#userjsevent
http://www.howtogeek.com/105012/find-hidden-features-on-operas-internal-opera-pages/
http://www.opera.com/dragonfly/
(php, php-intl,php-cli)
download zip, extract to e.g. /var/www and symlink html to web
call https://url.tld/contao/install
download contao-manager.phar to web , rename to .php or .phar.php
https://www.contao-handbuch.de/startpunkt-einer-webseite.html
https://de.contaowiki.org/No_root_page_found
https://www.wisdomjobs.com/e-university/grav-tutorial-1509/grav-modular-pages-18356.html
https://github.com/koca/grav-theme-masonry
https://github.com/khanduras/grav-theme-cardstack
https://github.com/khanduras/grav-theme-cardstack/issues/8
https://github.com/khanduras/grav-theme-cardstack/issues/5
https://stackoverflow.com/questions/4199592/joomla-database-settings
https://forum.joomla.org/viewtopic.php?t=883802
mostly undocumented php framework
→ htdocs/APP_NAME/naos.persistentlayer/configuration/database-config.php
[[ 2020-03-07 @ cmsstash.de → CMS mit JavaScript und NodeJS CMSstash |https://cmsstash.de/javascript ]]
[[ 2020-03-07 @ tutorialzine.com → 5 Node.js Alternatives To WordPress - Tutorialzine |https://tutorialzine.com/2017/10/5-node-js-alternatives-to-wordpress ]]
[[ 2020-03-07 @ www.slant.co → 12 Best Node.js-based CMS as of 2020 - Slant |https://www.slant.co/topics/1847/~best-node-js-based-cms ]]
[[ 2020-03-07 @ buttercms.com → Node.js Blog Engine ButterCMS |https://buttercms.com/nodejs-blog-engine/ ]]
[[ @ github.com → GitHub - TryGhost/Ghost: ������ The #1 headless Node.js CMS for professional publishing |https://github.com/TryGhost/Ghost ]]
[[ 2020-03-07 @ cmsstash.de → Ghost - ein Node-CMS für Publisher CMSstash |https://cmsstash.de/javascript/ghost ]]
[[ 2020-03-07 @ phocks.github.io → How to host a Ghost 2.0 blog for free on Glitch · phocks |https://phocks.github.io/ghost-2-on-glitch.html ]]
[[ 2020-03-07 @ dev.to → A Ghost blog for $0 - DEV Community ������������������������ |https://dev.to/m1guelpf/a-ghost-blog-for-0-pfi ]]
[[ 2016-03-03 @ www.ghostforbeginners.com → Places to Host Ghost for Free |https://www.ghostforbeginners.com/places-to-host-ghost-for-free/ ]]
[[ 2013-09-16 @ www.ghostforbeginners.com → How to Install Ghost on Windows Azure |https://www.ghostforbeginners.com/how-to-install-ghost-on-windows-azure/ ]]
[[ 2017-01-16 @ www.autodidacts.io → [Updated] Get a Free Ghost Blog Hosted with Heroku — The Autodidacts |http://www.autodidacts.io/host-a-ghost-blog-on-heroku/ ]]
[[ 2020-03-05 @ hexo.io → Documentation Hexo |https://hexo.io/docs/ ]]
[[ @ github.com → hashbrown-node-driver/index.js at master · HashBrownCMS/hashbrown-node-driver · GitHub |https://github.com/HashBrownCMS/hashbrown-node-driver/blob/master/index.js ]]
[[ 2020-03-07 @ apostrophecms.com → ApostropheCMS - Features |https://apostrophecms.com/features ]]
[[ 2020-03-07 @ docs.apostrophecms.org → Deploying Apostrophe in the Cloud with Heroku - ApostropheCMS Documentation |https://docs.apostrophecms.org/apostrophe/apostrophe-devops/devops/deployment/deploying-apostrophe-in-the-cloud-with-heroku ]]
[[ 2020-03-07 @ docs.apostrophecms.org → Hosting Apostrophe in production - ApostropheCMS Documentation |https://docs.apostrophecms.org/apostrophe/apostrophe-devops/devops/deployment ]]
[[ @ github.com → deploying to heroku/mongolab · Issue #19 · apostrophecms/apostrophe-sandbox · GitHub |https://github.com/apostrophecms/apostrophe-sandbox/issues/19 ]]
[[ @ github.com → Deploying on Heroku does not generate the right ID for assets · Issue #1006 · apostrophecms/apostrophe · GitHub |https://github.com/apostrophecms/apostrophe/issues/1006 ]]
[[ 2020-03-07 @ www.totaljs.com → Node apps - Total.js |https://www.totaljs.com/products/ ]]
[[ @ github.com → examples/heroku at master · totaljs/examples · GitHub |https://github.com/totaljs/examples/tree/master/heroku ]]
[[ 2017-05-28 @ stackoverflow.com → node.js - Loosing data with nodejs + totaljs + heroku - Stack Overflow |https://stackoverflow.com/questions/44232421/loosing-data-with-nodejs-totaljs-heroku ]]
[[ 2020-03-07 @ www.endurojs.com/ → enduro.js - minimalistic, lean & mean, node.js cms for professionals |https://www.endurojs.com/ ]]
https://processwire.com/docs/tutorials/how-to-structure-your-template-files/
server locale:
put `setlocale(LC_ALL, "en_GB.utf8", fr_FR.utf8", "C.UTF-8"); ` in `config.php` ( some suggest site_ready.php )
https://processwire.com/talk/topic/21465-server-locale-setting/
https://processwire.com/talk/topic/20671-how-to-set-multi-lang-server-setting/
https://webdesign.tutsplus.com/tutorials/how-to-install-and-setup-processwire-cms--cms-25509
https://github.com/matjazpotocnik/ProcessFileManager
https://modules.processwire.com/modules/manage-files/
https://modules.processwire.com/modules/manage-files/
https://processwire.com/talk/topic/783-how-do-i-get-a-page-to-inherit-a-super-size-background-image-from-a-parent-page/
#generate static html
https://modules.processwire.com/modules/static-wire/
https://github.com/kongondo/Blog
!!! speed optimization
https://processwire.com/talk/topic/7968-simple-steps-to-optimize-site-speed-overview/
https://processwire.com/talk/topic/4515-speed-up-page-loading-significantly/
!!! general
http://cheatsheet.processwire.com/
https://www.mindmeister.com/de/513121984/processwire-com
https://processwireshop.pw/free/
https://github.com/thomasaull/RestApi
https://mauricius.dev/basic-processwire-website-workflow-part-one/
https://mauricius.dev/building-a-basic-reserved-area-with-processwire/
https://modules.processwire.com/modules/process-blog/
https://processwire.com/talk/topic/3113-how-to-transfer-processwire-from-local-installation-to-online/
https://processwire.com/docs/modules/development/#creating-a-simple-module
https://processwire.com/talk/topic/7915-fail-101-adding-a-header-image/
http://docs.layerswp.com/doc/how-to-add-a-background-image-to-the-header/
https://webdesign.tutsplus.com/tutorials/processwire-admin-theme-strategies--cms-29244
https://webdesign.tutsplus.com/tutorials/how-to-install-and-setup-processwire-cms--cms-25509
https://processwire.com/talk/topic/19936-change-process-wire-logo-and-footer-text-in-admin-panel/
!!! meta tags in blog-head.php for fb & twitter
```
<meta property="og:title" content="<?php echo $page->title; ?>" />
<meta property="og:url" content="<?php echo $page->url; ?>" />
<meta property="og:image" content="<?php if($page->blog_images) echo $config->urls->httpRoot.$page->blog_images->first()->url ?>" />
<meta property="og:description" content="<?php $description = $page->blog_summary ?: makeSummary($page->blog_body) ; echo $description ?>" />
<meta name="twitter:url" content="<?php echo $page->url; ?>">
<meta name="twitter:title" content="<?php echo $page->title; ?>">
<meta name="twitter:description" content="<?php $description = $page->blog_summary ?: makeSummary($page->blog_body) ; echo $description ?>">
<meta name="twitter:image" content="<?php if($page->blog_images) echo $config->urls->httpRoot.$page->blog_images->first()->url ?>">
<meta name="twitter:card" content="summary_large_image">
```
---
!!! RSS MarkupRSSEnhanced.module fix
```
/**
* Render individual RSS item
*
*/
protected function renderItem(Page $page) {
$title = strip_tags($page->get($this->itemTitleField));
if(empty($title)) return '';
$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
$title = htmlspecialchars($title, ENT_QUOTES, 'UTF-8');
$title = str_replace(''', ''', $title);
if($this->itemDateField && ($ts = $page->getUnformatted($this->itemDateField))) {
$pubDate = "\t\t<pubDate>" . date(DATE_RSS, $ts) . "</pubDate>\n";
} else {
$pubDate = '';
}
$author = '';
if($this->itemAuthorField) {
$author = $page->getUnformatted($this->itemAuthorField);
if(strlen($author)) {
$author = $this->wire('sanitizer')->entities($author);
$author = "\t\t<$this->itemAuthorElement>$author</$this->itemAuthorElement>\n";
} else $author = '';
}
$enclosure = $this->enclosure($page);
$link = "\t\t<link>" .$page->httpUrl."</link>\n";
$guid = "\t\t<guid>".$this->url. $page->id ."</guid>\n";
//$description = $page->get($this->itemDescriptionField);
//if(is_null($description)) $description = '';
//$description = $this->truncateDescription(trim($description));
//$description = $page->blog_summary ?: makeSummary($page->blog_body) ;
$description = $this->truncateDescription(trim($page->blog_body));
$out = "\t<item>\n" .
"\t\t<title>$title</title>\n" .
"\t\t<description><![CDATA[$description]]></description>\n" .
$enclosure .
$pubDate .
$author .
$link .
$guid .
"\t</item>\n";
return $out;
}
```
---
!!! integration:fb
!!!! use zapier ;) → see rss / blog head meta tags above
!!!! from fb: https://processwire.com/talk/topic/16316-facebook-posts-on-pw-site-using-facebook-php-sdk/
!!!! to fb: https://github.com/kastrind/AutoFbPost
---
!! multilang
<<<
# install processwire and [[lang modules|http://modules.processwire.com/categories/language-pack/?sort=title]]
# [[modify templates|https://processwire.com/docs/multi-language-support/multi-language-fields/]]
# [[modify fields ( e.g. text → TextLanguage under field settings ) |https://processwire.com/talk/topic/5518-multi-language-site/]]
# [[enter custom url per language|https://processwire.com/talk/topic/5518-multi-language-site/]]
# [[add language selector to template files|https://processwire.com/docs/multi-language-support/multi-language-urls/]]
# [[eventually set default language|https://processwire-recipes.com/recipes/change-homepages-default-language/]]
# [[optionally create per language sitemaps|https://processwire-recipes.com/recipes/create-xml-sitemap-for-every-language/]]
#[[optionally create language dropdown in main menu|https://processwire.com/talk/topic/15711-inserting-language-dropdown-into-main-menu/]]
<<<
!!! still problems with navigation etc ?
look for files like home.php and their includes
```
to make a string translatable in your template or module code, you just have to wrap the original string in a $this->_() or __() function call:
$out = $this->_("Live long and prosper"); // syntax within a class
$out = __("Live long and prosper!"); // syntax outside of a class
```
```
Marking strings for translation:
The strings for translation are wrapped in a call to one of a set of special functions. The most commonly used ones are $this->_() and __(). These functions just returns the translation of their argument:
echo "<h2>" . $this->_('Site Information') . "</h2>";
```
---
https://processwire-recipes.com/recipes/change-homepages-default-language/
https://processwire.com/docs/multi-language-support/multi-language-fields/
https://processwire.com/docs/multi-language-support/multi-language-fields/#how-language-fields-work
https://processwire.com/talk/topic/5518-multi-language-site/
https://processwire.com/talk/topic/12682-how-to-get-page-title-of-other-languages/
https://processwire.com/docs/multi-language-support/multi-language-urls/
https://processwire.com/talk/topic/15711-inserting-language-dropdown-into-main-menu/
https://processwire.com/talk/topic/1815-language-selector/
https://processwire-recipes.com/recipes/create-xml-sitemap-for-every-language/
https://processwire.com/talk/topic/20253-noob-question-how-to-select-a-page-in-multi-language-environment/
https://processwire-recipes.com/recipes/debug-show-all-multilanguage-fields/
https://processwire-recipes.com/recipe-tags/multilanguage/
```
Set language-specific input field labels via API
https://processwire-recipes.com/recipes/set-field-labels/
```
```
Activate all languages on pages created via API
https://processwire-recipes.com/recipes/activate-all-languages/
```
---
!!!templates / themes
https://pwtemplates.de/?product_cat=blog
https://webdesign.tutsplus.com/tutorials/how-to-develop-a-processwire-theme--cms-25692
!!! reviews | tutorials
https://www.ionos.co.uk/digitalguide/hosting/cms/processwire/
https://www.youtube.com/watch?v=woyFZ0xKFDM
https://www.clixbloom.com/de/blog/webseiten-mit-processwire-cms-kreieren-und-editieren/
https://t3n.de/news/processwire-cms-675223/
https://www.fma-medien.de/blog/processwire-fuer-gesteigerte-individualitaet-und-sicherheit/
https://www.meuter.de/blog/wieso-processwire-als-content-management-system-cms-oft-die-bessere-alternative-ist/
migrate:
```
modify localconfig.php to reflect database server and name
SQL: UPDATE sys_template SET `config` = replace(config,'www.olddomain.org', 'newdomain.com');
TYPO3 backend, Page Properties > Behaviour > Use Protocol > Select “https://”
check php with install tool
```
https://www.nitsan.in/blog/post/the-unconventional-guide-converting-your-typo3-site-from-http-to-https-ssl/
!!! Do not update via FTP
---
!!!php-ram
https://greatives.ticksy.com/article/3732
---
```
find /domains/ -name wp-config.php -type f|while read a;do grep "define('FS_METHOD','direct');" -q "$a"||(echo ; echo "define('FS_METHOD','direct');") >> $a;echo $a;done
```
https://codex.wordpress.org/Post_Thumbnails#Thumbnail_Sizes
https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
https://themezee.com/docs/change-size-of-featured-images/
move:
`` UPDATE sys_template SET `config` = replace(config,'oldsite.tld', 'newsite.tld');
``
https://fxneumann.de/2013/04/10/geloest-500-internal-server-error-nur-fuer-wp-admin/
https://central.owncloud.org/t/owncloud-server-maintenance-releases-8-0-16-8-1-11-8-2-9-9-0-6-and-9-1-2/3801
https://forum.owncloud.org/viewtopic.php?t=26352
https://doc.owncloud.org/server/10.0/admin_manual/installation/source_installation.html
https://doc.owncloud.org/server/10.0/admin_manual/maintenance/manually-moving-data-folders.html
https://doc.owncloud.org/server/10.0/admin_manual/configuration/server/occ_command.html#files-external-label
https://github.com/owncloud/core/issues/15417
https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/occ_command.html
https://doc.owncloud.org/server/8.1/admin_manual/maintenance/manual_upgrade.html
https://doc.owncloud.org/server/8.2/admin_manual/maintenance/manual_upgrade.html
https://doc.owncloud.org/server/8.2/admin_manual/maintenance/upgrade.html
https://doc.owncloud.org/server/9.0/admin_manual/configuration_user/reset_admin_password.html
https://doc.owncloud.org/server/9.0/admin_manual/maintenance/upgrade.html
https://doc.owncloud.org/server/10.0/admin_manual/configuration/files/files_locking_transactional.html
https://doc.owncloud.org/server/10.0/admin_manual/configuration/server/occ_command.html
https://doc.owncloud.org/server/8.1/admin_manual/configuration_files/encryption_configuration.html#upgrading-encryption-label
`php occ encryption:migrate`
!! Nextclown
use `php occ upgrade` and web 2gether
```
php occ user:passwordreset
```
---
can't change passwords after v14 ? ( make sure encryption is off -> `php occ encryption:decrypt-all` )
```
php occ encryption:enable-master-key
```
---
[[ Upgrade 13→14: master key disabled ? Issue #11212 @ nextcloud/server @ GitHub | https://github.com/nextcloud/server/issues/11212 ]]
---
[[ Missing "Enable recovery key" field in the admin settings ? Issue #8283 ? nextcloud/server ? GitHub | https://github.com/nextcloud/server/issues/8283 ]]
chown www-data( or fpm user) yout php session dir
https://github.com/nextcloud/server/issues/13090
https://central.owncloud.org/t/safe-to-delete-octransferid-part-files-on-server/8345/2
https://goneuland.de/nextcloud-11-administrator-kennwort-zuruecksetzen/
```
->create database and subdomain/subdir
->!!!!USE SSL !!!!
->Download Zip
(unzip with webftp or smth)
->unzip -> results in "nextcloud" folder
->ftp can't put recursively , so maybe:
lftp -e "mirror -R nextcloud nextcloud" -u FTPUSERNAME,FTPPASS HOSTNAME
^(you have to have the unzipped "nextcloud" folder in your current one , it puts to ftp root
yout might change the second parameter , so it looks like e.g. sftp://user@myhost:mydomain:port
```
adjust db & stuff
->set headers (!! Not with "Header always set" , only "Header set"
https://www.guntiahoster.de/blog/2013/allgemein/headereintraege-zur-verbesserung-der-sicherheit/
https://www.jroehm.com/2016/03/owncloud-9-bei-strato-installieren/
https://help.univention.com/t/nextcloud-strict-transport-security-aktivieren-von-hsts/5802/2
https://help.nextcloud.com/t/strict-transport-security-http-header-ist-nicht-auf-mindestens-15552000-sekunden-eingestellt/4247
https://forum.owncloud.org/viewtopic.php?t=30173
https://www.guntiahoster.de/blog/2013/allgemein/headereintraege-zur-verbesserung-der-sicherheit/
http://maphy-berlin.de/2015/10/sichere-owncloud-http-header-einstellungen/
https://enable-cors.org/server_nginx.html
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
https://benjaminhorn.io/code/setting-cors-cross-origin-resource-sharing-on-apache-with-correct-response-headers-allowing-everything-through/
---
https://stackoverflow.com/questions/12173990/how-can-you-debug-a-cors-request-with-curl
---
!!!apache
` Header set Access-Control-Allow-Origin "*"`
https://enable-cors.org/server_apache.html
---
```
#!/bin/bash
# corstest.sh
# WF 2018-09-20
# https://stackoverflow.com/a/47609921/1497139
#ansi colors
#http://www.csc.uvic.ca/~sae/seng265/fall04/tips/s265s047-tips/bash-using-colors.html
blue='\033[0;34m'
red='\033[0;31m'
green='\033[0;32m' # '\e[1;32m' is too bright for white bg.
endColor='\033[0m'
#
# a colored message
# params:
# 1: l_color - the color of the message
# 2: l_msg - the message to display
#
color_msg() {
local l_color="$1"
local l_msg="$2"
echo -e "${l_color}$l_msg${endColor}"
}
#
# show the usage
#
usage() {
echo "usage: [-v] $0 url"
echo " -v |--verbose: show curl result"
exit 1
}
if [ $# -lt 1 ]
then
usage
fi
# commandline option
while [ "$1" != "" ]
do
url=$1
shift
# optionally show usage
case $url in
-v|--verbose)
verbose=true;
;;
esac
done
if [ "$verbose" = "true" ]
then
curl -s -X GET $url -H 'Cache-Control: no-cache' --head
fi
origin=$(curl -s -X GET $url -H 'Cache-Control: no-cache' --head | grep Access-Control)
if [ $? -eq 0 ]
then
color_msg $green "$url $origin"
else
color_msg $red "$url does not support CORS"
color_msg $blue "you might want to visit https://enable-cors.org/ to find out how to enable CORS"
fi
```
see [[web:framework:laravel:password-reset]]
!! execution time trouble
https://laracasts.com/discuss/channels/laravel/maximum-execution-time-of-30-seconds-exceeded-in-a-job
https://laracasts.com/discuss/channels/laravel/extend-queue-execution-time?page=1
https://stackoverflow.com/questions/41998990/laravel-queued-jobs-running-for-many-minutes-longer-than-timeout
!! No supported encrypter found ?
-> try 32 instead of 16 characters of `APP_KEY` and try not to store it in .env , better use `config/app.php`
you might try `php artisan key:generate` to do this
finally , `do php artisan config:cache`
```
.env is not reliable on production. Add it to php7.0-fpm pool or Apache vhost if you want to make sure it gets read properly.
```
https://laracasts.com/discuss/channels/general-discussion/no-supported-encrypter-found-the-cipher-and-or-key-length-are-invalid-1
https://github.com/laravel/framework/issues/13764
https://octobercms.com/forum/post/throw-new-runtimeexceptionno-supported-encrypter-found-the-cipher-and-or-key-length-are-invalid
---
https://blog.petehouston.com/change-user-password-from-tinker-in-laravel-using-artisan-command/
https://stackoverflow.com/questions/22846897/how-to-create-a-laravel-hashed-password
# `php artisan tinker
`
# `>>> $password = Hash::make('yourpassword');
`
#`>>> $user = \App\User::first();`
#`>>> $user->password = $password;`
grid with images
```
columns: [
{ field: 'ThumbPath', caption: 'Photo', sortable: false, size: '5%',
render: function (record) {
var html;
html = '<a href="' + record.ImagePath + '" target="_blank">' +
'<img src="' + record.ThumbPath + '" alt="' + record.ThumbPath + '" class="img-rounded" style="margin:2px;" /></a>';
return html;
}
},
```
https://stackoverflow.com/questions/42092892/add-custom-icons-in-w2ui-toolbar
https://www.codeproject.com/Articles/1274234/Part-4-How-I-show-photo-in-w2ui-grid
https://stackoverflow.com/questions/32495691/w2ui-multi-keyword-search
http://w2ui.com/web/docs/1.5/w2grid.columns
https://stackoverflow.com/questions/42110831/how-to-display-icon-in-column-header-with-w2ui-grid
https://pages.bitbucket.io/
!!!! IE allows only 32KB DataURL !!!
https://www.base64-image.de/
https://free-for.dev/#/
https://www.netlify.com/pricing/
https://www.freecodecamp.org/news/how-to-host-a-git-repository-on-a-subdomain-with-netlify-b8afb5fca96e/
https://posthook.io/
https://paraio.com/#pricing
!! collaborative
https://airtable.com/pricing
!!! kubernetes
https://cloud.ibm.com/registration?target=https://cloud.ibm.com/docs
https://cloud.okteto.com/#/login
https://kubesail.com/deployments
https://kuber.host/
!!! storage
https://www.backblaze.com/b2/cloud-storage.html
https://app.terraform.io/signup/account?utm_source=iopage&utm_campaign=tf_cloud_ga
https://www.scaleway.com/en/object-storage/
https://stackoverflow.com/questions/46202844/images-and-video-not-loading-on-github-pages
https://help.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site
https://about.gitlab.com/blog/2016/04/07/gitlab-pages-setup/
example `.gitlab-ci.yml`
```
image: alpine:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
stage: deploy
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
only:
- master
```
(submodule issue :
https://gitlab.com/pages/hugo/issues/19 )
https://gitlab.com/help/user/project/pages/index.md
https://about.gitlab.com/blog/2016/08/19/posting-to-your-gitlab-pages-blog-from-ios/
https://gitlab.com/help/user/project/pages/getting_started_part_one.md
https://gitlab.com/help/user/project/pages/getting_started_part_four.md
https://gitlab.com/help/user/project/pages/custom_domains_ssl_tls_certification/index.md#adding-an-ssltls-certificate-to-pages
https://gitlab.com/help/user/project/pages/pages_access_control.md
https://gitlab.com/pages/plain-html/blob/master/.gitlab-ci.yml
scheduler: intervals over 1h, maybe trigger ajax & sys cron ..
full path : /mnt/bla/bla/bla/htdocs ( find it with php ;) )
ssh/sftp: `maindomain.com@ssh.strato.de `
Pubkeys posible (wait some hours after key upload) , otherwise uses MASTER PASSWORD from strato customer backend
php cli
```
/opt/RZphp$VERSION/bin/php-cli your-php.php
```
e.g.` /opt/RZphp73/bin/php-cli occ status`
db host: `rdbms.strato.de` ( not open from outside, use ssh)
| [[ @ gist.github.com → A guide on how to upload images to GitHub's CDN through issue and pull request text fields. · GitHub |https://gist.github.com/vinkla/dca76249ba6b73c5dd66a4e986df4c8d ]] |
| [[ @ github.com → GitHub - evertdespiegeleer/github-image-upload: npm package to use the github servers as an image cdn, hosting the images for the README file, and thus keeping gits as small as possible |https://github.com/evertdespiegeleer/github-image-upload ]] |
| [[ 2017-01-11 @ stackoverflow.com → ios - How to upload an image to use in issue comments via Github API - Stack Overflow |https://stackoverflow.com/questions/41581151/how-to-upload-an-image-to-use-in-issue-comments-via-github-api/60430308#60430308 ]] |
| [[ @ github.com → GitHub - maple3142/ghfileupl |https://github.com/maple3142/ghfileupl ]] |
[[ www.hosttest.de → vServer Anbieter Vergleich ✅ Preisvergleich von virtuellen Servern mieten |https://www.hosttest.de/vergleich/vserver.html ]]
----
[[ contabo.de → vServer Vergleich: Windows und Linux vServer mieten - Contabo.de |https://contabo.de/?show=vps ]]
remember to allow post for / ( e.g. joomla )
```
# Trailing Slash - Allow POST
RewriteCond %{REQUEST_METHOD} !^(POST) [NC]
```
---
!!! random
https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx
https://www.hostnet.de/faq/wie-kann-man-urls-auf-andere-urls-umleiten.html
---
!!! nginx ( [[IF IS BAD|https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/]] https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/)
```
### good catchall: default or defined vhost reedirecting
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name example.com www.example.com;
return 301 https://www.$server_name$request_uri;
}
```
```
#BAD EXAMPLE Redirect non-www to www:
if ( $host !~ ^www\. ) {
return 301 $scheme://www.$host$request_uri;
}
```
```
#BAD EXAMPLE Redirect www to non-www
if ( $host ~ ^www\.(?<domain>.+)$ ) {
return 301 $scheme://$domain$request_uri;
}
```
https://www.digitalocean.com/community/questions/how-to-redirect-all-https-requests-to-https-www-subdomain-with-nginx
https://bjornjohansen.no/nginx-redirect
https://www.electrictoolbox.com/nginx-redirect-all-urls-but-one/
!!!apache / .htaccess
```
## force specific domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.targetdomain.com [NC]
RewriteRule ^(.*)$ https://targetdomain.com/$1 [L,R=301,NC]
RewriteCond %{HTTP_HOST} !^targetdomain.com$ [NC]
RewriteRule ^(.*)$ https://targetdomain.com/$1 [L,R=301,NC]
```
---
```
Redirect single page/URL
RewriteEngine On
Redirect 301 /old-path/ https://www.example.com/new-path/
```
---
```
# enforce HTTPS
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
```
---
```
# No Trailing Slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [R=301,NC,L]
```
---
```
# Trailing Slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*[^/])$ /$1/ [R=301,NC,L]
```
---
https://wiki.selfhtml.org/wiki/Webserver/htaccess/Umleitungen_mit_mod_rewrite
https://www.wicked-software.de/drei-htaccess-regeln-zur-einzigartigen-url
http://www.seo-welten.de/webcoding/redirects/weiterleitungen-mit-mod-rewrite.htm
https://stackoverflow.com/questions/35742566/httpd-2-4-mod-rewrite-negative-inverse-match
https://www.tecmint.com/apache-performance-tuning/
https://bobcares.com/blog/speed-up-apache/
https://medium.com/@pushpendrachauhan/how-migrating-apache-mpm-from-prefork-to-event-based-using-php-fpm-saved-our-day-8a6e371d94fd
https://stackoverflow.com/questions/48525092/docker-httpd-configuration-error-no-mpm-loaded
https://www.ionos.de/digitalguide/hosting/hosting-technik/fehlermeldung-http-400-ursache-finden/
https://stackoverflow.com/questions/4731364/internal-error-500-apache-but-nothing-in-the-logs
---
!!php5.6 via proxy fpm unix socket
https://stackoverflow.com/questions/46378017/install-php5-6-in-debian-9
https://serversforhackers.com/c/apache-and-php-fpm
https://superuser.com/questions/1344115/sethandler-proxyunix-run-php-php5-6-fpm-sockfcgi-localhost-on-virtualho
---
https://stackoverflow.com/questions/23931987/apache-proxy-no-protocol-handler-was-valid
https://stackoverflow.com/questions/27226055/does-the-user-ini-file-work-for-subdirectories
```
#Logging behind proxy
## not used # https://www.daveperrett.com/articles/2009/08/10/passing-ips-to-apache-with-nginx-proxy/
## didnt work outofthebox # https://trick77.com/apache2-2-4-logging-remote-ip-address-using-mod_remoteip/
https://www.globo.tech/learning-center/x-forwarded-for-ip-apache-web-server/
http://www.techstacks.com/howto/log-client-ip-and-xforwardedfor-ip-in-apache.html
https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html
```
(with tricks above applied, it wiill work with docker-nginx-letsencrypt )
---
https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion/issues/53
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion/issues/262
https://httpd.apache.org/docs/trunk/rewrite/remapping.html
https://httpd.apache.org/docs/trunk/urlmapping.html
https://stackoverflow.com/questions/146354/setting-php-variables-in-httpd-conf
https://stackoverflow.com/questions/48363789/warning-module-mcrypt-ini-file-doesnt-exist-under-etc-php-7-2-mods-available
https://github.com/onelogin/php-saml/issues/278
https://gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f
#ReverseProxy
https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
https://www.netnea.com/cms/apache-tutorial-9-reverse-proxy-einrichten/
https://stackoverflow.com/questions/19294816/is-it-possible-to-ignore-an-apache-proxyd-certificate
https://serverfault.com/questions/84821/apache-proxypass-with-ssl
https://stackoverflow.com/questions/23931987/apache-proxy-no-protocol-handler-was-valid
https://stackoverflow.com/questions/25107654/how-to-configure-apache-server-to-talk-to-https-backend-server
---
!!!catch multiple domains to one:
Solution #1: Replace [NC] by [NC,OR] in first 2 RewriteCond lines of the original code. By default one RewriteCond linked to another RewriteCond by logical AND. This will instruct Apache to use OR logic:
```
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^newdomain.com [NC]
RewriteRule ^/(.*)$ http://www.newdomain.com/$1 [R=301,L,NC]
```
Solution #2: Since you have only 4 domain names in total, it will be much easier to use opposite approach - redirect from ANY domain except correct one:
```
RewriteCond %{HTTP_HOST} !^www.newdomain.com [NC]
RewriteRule ^/(.*)$ http://www.newdomain.com/$1 [R=301,L,NC]
```
https://serverfault.com/questions/293160/apache-rewrite-multiple-conditions
---
!!!searchbots
hide and deny requests from searchbots (via User-Agnet and headers) with enfoeced/enabled ssl; check with "curl -A googlebot https://target.domain/page
```
sed 's/ SSLengine/ Header set X-Robots-Tag "noindex, nofollow"\n SSLengine RewriteEngine On\n RewriteCond %{HTTP_USER_AGENT} (googlebot|Googlebot|Yahoo!\\ Slurp|AhrefsBot|Baiduspider|Ezooms|MJ12bot|bingbot|YandexBot|yahoo|yandex|^BlackWidow|^Bot\\ mailto:craftbot@yahoo.com|^ChinaClaw|^Custo|^DISCo|^Download\\ Demon|^eCatch|^EirGrabber|^EmailSiphon|^EmailWolf|^Express\\ WebPictures|^ExtractorPro|^EyeNetIE|^FlashGet|^GetRight|^GetWeb!|^Go!Zilla|^Go-Ahead-Got-It|^GrabNet|^Grafula|^HMView|HTTrack|^Image\\ Stripper|^Image\\ Sucker|Indy\\ Library|^InterGET|^Internet\\ Ninja|^JetCar|^JOC\\ Web\\ Spider|^larbin|^LeechFTP|^Mass\\ Downloader|^MIDown\\ tool|^Mister\\ PiX|^Navroad|^NearSite|^NetAnts|^NetSpider|^Net\\ Vampire|^NetZIP|^Octopus|^Offline\\ Explorer|^Offline\\ Navigator|^PageGrabber|^Papa\\ Foto|^pavuk|^pcBrowser|^RealDownload|^ReGet|^SiteSnagger|^SmartDownload|^SuperBot|^SuperHTTP|^Surfbot|^tAkeOut|^Teleport\\ Pro|^VoidEYE|^Web\\ Image\\ Collector|^Web\\ Sucker|^WebAuto|^WebCopier|^WebFetch|^WebGo\\ IS|^WebLeacher|^WebReaper|^WebSauger|^Website\\ eXtractor|^Website\\ Quester|^WebStripper|^WebWhacker|^WebZIP|^Widow|^WWWOFFLE|^Xaldon\\ WebSpider|^Zeus) [NC]\n RewriteRule .* - [R=403,L]\n SSLengine/g' vhost.conf.example ;a2enmod rewrite
sed 's/ SSLengine/ RewriteEngine On\n RewriteCond %{HTTP_USER_AGENT} (googlebot|Googlebot|Yahoo!\\ Slurp|AhrefsBot|Baiduspider|Ezooms|MJ12bot|bingbot|YandexBot|yahoo|yandex|^BlackWidow|^Bot\\ mailto:craftbot@yahoo.com|^ChinaClaw|^Custo|^DISCo|^Download\\ Demon|^eCatch|^EirGrabber|^EmailSiphon|^EmailWolf|^Express\\ WebPictures|^ExtractorPro|^EyeNetIE|^FlashGet|^GetRight|^GetWeb!|^Go!Zilla|^Go-Ahead-Got-It|^GrabNet|^Grafula|^HMView|HTTrack|^Image\\ Stripper|^Image\\ Sucker|Indy\\ Library|^InterGET|^Internet\\ Ninja|^JetCar|^JOC\\ Web\\ Spider|^larbin|^LeechFTP|^Mass\\ Downloader|^MIDown\\ tool|^Mister\\ PiX|^Navroad|^NearSite|^NetAnts|^NetSpider|^Net\\ Vampire|^NetZIP|^Octopus|^Offline\\ Explorer|^Offline\\ Navigator|^PageGrabber|^Papa\\ Foto|^pavuk|^pcBrowser|^RealDownload|^ReGet|^SiteSnagger|^SmartDownload|^SuperBot|^SuperHTTP|^Surfbot|^tAkeOut|^Teleport\\ Pro|^VoidEYE|^Web\\ Image\\ Collector|^Web\\ Sucker|^WebAuto|^WebCopier|^WebFetch|^WebGo\\ IS|^WebLeacher|^WebReaper|^WebSauger|^Website\\ eXtractor|^Website\\ Quester|^WebStripper|^WebWhacker|^WebZIP|^Widow|^WWWOFFLE|^Xaldon\\ WebSpider|^Zeus) [NC]\n RewriteRule .* - [R=403,L]\n SSLengine/g' *.conf *example -i
```
https://serverfault.com/questions/201035/how-to-block-googlebot-quickly
https://www.inmotionhosting.com/support/website/restricting-bots/how-to-stop-search-engines-from-crawling-your-website
https://support.google.com/webmasters/answer/6332384?hl=de #(delete pages from google)
---
!!!mpm thread
https://www.fox1.de/2016/05/27/apache-is-running-a-threaded-mpm-but-your-php-module-is-not-compiled-to-be-threadsafe/
https://askubuntu.com/questions/453377/how-to-enable-event-mpm-apache-2-4-on-ubuntu-14-04-with-thread-safe-php
---
!!![.htaccess]
https://hamberger.marketing/artikel/php-version-ordner-hostern-einstellen
https://www.askapache.com/htaccess/mod_rewrite-variables-cheatsheet/
https://stackoverflow.com/questions/17412302/multiple-htaccess-rewrite-rule
https://wiki.apache.org/httpd/RewriteCond
https://httpd.apache.org/docs/2.0/misc/rewriteguide.html
http://wiki.schmidtmarcel.de/htaccess-rewritecond-rewriterule/
https://stackoverflow.com/questions/13282262/trying-to-exclude-a-url-from-htaccess-rule
https://stackoverflow.com/questions/14008003/how-to-exclude-a-specific-file-from-a-rewriterule
https://stackoverflow.com/questions/5818146/how-to-force-rewrite-to-https-except-for-a-few-pages-in-apache
https://www.sitepoint.com/community/t/rewrite-condition-without-rewritecond/92284/2
https://stackoverflow.com/questions/36200710/rewrite-whole-url-with-htaccess
https://hamberger.marketing/artikel/php-version-ordner-hostern-einstellen
https://my.justhost.com/hosting/help/htaccess-php-handlers
https://www.addedbytes.com/blog/url-rewriting-for-beginners
https://stackoverflow.com/questions/36991188/what-is-the-difference-between-always-and-onsuccess-in-apaches-header-confi
https://www.guntiahoster.de/blog/2013/allgemein/headereintraege-zur-verbesserung-der-sicherheit/
---
!!PHP
[[ 2013-08-24 @ stackoverflow.com → Apache is downloading php files instead of displaying them - Stack Overflow |https://stackoverflow.com/questions/18422140/apache-is-downloading-php-files-instead-of-displaying-them ]]
[[ 2010-03-05 @ stackoverflow.com → apache - index.php not loading by default - Stack Overflow |https://stackoverflow.com/questions/2384423/index-php-not-loading-by-default ]]
[[ 2016-05-04 @ serverfault.com → apache 2.2 - Virtual Host Forbidden after enabled SSL - Server Fault |https://serverfault.com/questions/774819/virtual-host-forbidden-after-enabled-ssl ]]
[[ 2007-02-05 @ www.askapache.com → Custom PHP.ini tips and tricks |https://www.askapache.com/php/custom-phpini-tips-and-tricks/ ]]
DirectoryIndex index.php index.html index.htm index.cgi index.pl index.xhtml
Frontend:
```
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
```
https://stackoverflow.com/questions/25929599/nginx-replace-remote-addr-with-x-forwarded-for
----
→Timeouts
https://www.scalescale.com/tips/nginx/504-gateway-time-out-using-nginx/#
https://www.digicert.com/ssl-support/nginx-enable-ocsp-stapling-on-server.htm → http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver
(std settings dockern-ginx-letsencrypt (set RESOLVERS in .env https://gitlab.dev.ifs.hsr.ch/m1huber/docker-nginx-proxy)
https://www.nginx.com/resources/wiki/start/topics/examples/likeapache/
http://nginx.2469901.n2.nabble.com/Prevent-Chrome-SSL-Domain-Mismatch-Warning-When-Redirecting-td7583175.html
http://nginx.org/en/docs/http/configuring_https_servers.html
https://www.cyberciti.biz/faq/proxy_redirect-change-replace-location-refresh-response-headers/
https://serverfault.com/questions/145383/proxy-https-requests-to-a-http-backend-with-nginx
https://www.howtoforge.de/anleitung/nginx-unter-ubuntu-12-04-als-reverse-proxy-fur-apache2-aufsetzen/
https://www.raspberry-pi-geek.de/Magazin/2016/01/Reverse-Proxy-auf-dem-Raspberry-Pi-mit-Nginx
https://stackoverflow.com/questions/12832033/dump-conf-from-running-nginx-process
https://blog.sleeplessbeastie.eu/2018/03/14/how-to-install-restyaboard/
https://restya.com/board/docs/user-ical-feed-plugin-installation/#2
https://github.com/RestyaPlatform/board/issues/1525
---
!!!behind proxy:
insert into nginx restyaboard.conf (or -ssl.conf):
`set_real_ip_from 172.0.0.0/8;
real_ip_header X-Forwarded-For;`
---
!!!dockerfile
set_real_ip_from 172.0.0.0/8;
real_ip_header X-Forwarded-For;
---
!!apps:
https://github.com/RestyaPlatform/board-apps
https://kaworu.ch/blog/2016/04/20/strong-crypt-scheme-with-dovecot-postfixadmin-and-roundcube/
https://www.codelocket.com/post/2015-07-24/roundcube-password-plugin-with-doveadm
|description|url |forked from|
||||
|pokemon | https://thefoundation.github.io/pogoqr/ |https://chrislennon.github.io/pogoqr/|
| standard minimal | https://thefoundation.github.io/QRcode/ | https://ugeugehigh.github.io/QRcode/ |
| advanced | https://thefoundation.github.io/qrcode-generator/js/demo/ | https://kazuhikoarase.github.io/qrcode-generator/js/demo/ |
| two-factor | https://freeotp.github.io/qrcode.html | |
| scan and create| https://edausan.github.io/QR-Code-Scanner/create | |
| selectable size | https://educastellano.github.io/qr-code/demo/ | |
| SEPA BANK QR| https://sepaqr.github.io/sepaQRcode/ ||
| pokemo with 3ds | https://pokemonqr.github.io/ ||
https://kazuhikoarase.github.io/qrcode-generator/js/demo/
| !URL | forked from: | !`scan file` | generate |
|https://nimiq.github.io/qr-scanner/demo/ | | !<<yes>> | <<no>> |
| https://gruhn.github.io/vue-qrcode-reader/demos/DecodeAll.html | | !<<yes>> | |
| https://edausan.github.io/QR-Code-Scanner/ | | <<yes>> | <<yes>> |
| https://schmich.github.io/instascan/ | | <<no>> | <<no>> |
| https://dwa012.github.io/html5-qrcode/ | | <<no>> | <<no>> |
---
https://hosting.1und1.de/google-website-ranking-verbessern-result?ar=1
https://seorch.de/
admin/ includes/ configure.php
includes/ configure.php
check folders "cache" and template_c (keep .htaccess and index.html)
!!! onepage checkout stuck ?
https://magento.stackexchange.com/questions/178304/onepage-checkout-stuck-on-billing-section
https://stackoverflow.com/questions/14612891/onepage-checkout-stuck-on-billing-and-not-moving-to-next-step
---
https://github.com/netz98/n98-magerun
https://support.hypernode.com/knowledgebase/how-to-protect-your-magento-store-against-brute-force/
https://www.skyverge.com/blog/how-to-upgrade-magento/
http://www.denisvlasov.net/207/where-to-find-the-config-details-of-magento/
https://www.properhost.com/support/kb/29/How-to-Upgrade-Magento-through-SSH
https://support.hypernode.com/knowledgebase/updating-magento1/
https://maurisource.com/upgrading-magento-to-1-9-2-4-without-downloader/
http://www.webcitz.org/magento-tips/upgrade-magento-1-9-3-2-via-ssh.html
https://support.hypernode.com/knowledgebase/how-to-apply-magento-patches/
https://magento.stackexchange.com/questions/160797/how-to-flush-magento-1-9-x-cache-using-ssh
http://www.aschroder.com/2010/05/installing-a-magento-extension-manually-via-ftp-or-ssh/
https://www.shopping-cart-migration.com/blog/42-magento/how-to-backup-and-restore-magento-database-step-by-step-guide
https://www.mageplaza.com/how-upgrade-update-via-command-line-composer-magento-2.html
https://magento.stackexchange.com/questions/59487/stuck-in-maintenance-mode-unable-to-log-into-admin-panel
https://magento.stackexchange.com/questions/108156/magento-1-9-2-2-upgrade-to-1-9-2-4-fails-via-connect-manager
https://community.magento.com/t5/Version-Upgrades/How-to-upgrade-Magento-1-9-2-to-2-0/td-p/23920
https://www.ecommercekmu.de/index.php/magento-hilfe-%C2%B7ungueltiger-formularschluessel-aktualisieren-sie-die-seite/
https://magento.stackexchange.com/questions/145645/error-invalid-form-key-on-admin-login
http://devdocs.magento.com/guides/m1x/install/installing_upgrade_landing.html
https://magento.stackexchange.com/questions/108156/magento-1-9-2-2-upgrade-to-1-9-2-4-fails-via-connect-manager/203601
https://www.properhost.com/support/kb/1/Magento-Upgrade-Tutorial
https://magento.stackexchange.com/questions/22029/how-to-disable-magento-to-go-on-maintenance-mode-while-installing-the-extension
http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-subcommands-maint.html
https://magento.stackexchange.com/questions/92208/upgrade-1-9-0-1-to-1-9-2-mage-conflicts-and-other-issues
https://magecomp.com/blog/install-magento-supee-9767-with-or-without-ssh/
https://magentary.com/kb/install-supee-8788-without-ssh/
https://magentary.com/kb/install-supee-9767/
---
!!!prestashop with php-cli
https://stackoverflow.com/questions/17280394/running-prestashop-with-php-cli
---
!!!SSL redirect loop ?
Apart from upgrading to v1.6.0.11, the solution was to add `SetEnv HTTPS On` at the very top of .htaccess. That's because several prestashop functions rely on `$_SERVER['HTTPS']` and/or `$_SERVER['SSL']` vars to guess the urls. One of the most notable functions using them and itself used by many others is `Tools::usingSecureMode()`. Simply those vars weren't visible before adding `SetEnv HTTPS On.`
https://www.prestashop.com/forums/topic/634584-redirect-problem-after-ssl-activation/
https://stackoverflow.com/questions/28023290/how-to-solve-prestashop-infinite-redirection-loop-under-ssl
https://www.prestashop.com/forums/topic/117361-solved-help-ssl-redirect-loop/
---
<<<
!!API
http://doc.prestashop.com/display/PS16/Web+service+one-page+documentation#Webserviceone-pagedocumentation-EnablingcURL
/api/stock_availables
/api/images/customizations
/api/images/manufacturers
/api/images/suppliers
/api/images/general/header
/api/images/general/store_icon
/api/images/categories
/api/products/1?price[my_price][use_tax]=1&price[my_price][product_attribute]=25
$productUrl = 'https://$PRESTA_URL/index.php?controller=product&id_product=' . $productId;
curl -k "https://"PRESTA_API_KEY"@"$PRESTA_URL"/api/images/products/1/2 > prod_1_2.jpg
languages
<<<
https://addons.prestashop.com/de/marktplatze/2501-amazon-market-place.html
https://addons.prestashop.com/de/marktplatze/27282-ebay-20-marketplace.html
https://www.prestashop.com/forums/topic/601608-b2b-und-ustid/
http://www.homepage-community.de/index.php?topic=2533.0
https://www.prestashop.com/forums/topic/305847-gel%C3%B6st-siret-ape-entfernen/
http://doc.prestashop.com/display/PS16/Das+Multishop+Interface
https://www.silbersaiten.de/prestashop/blog/25-prestashop-tutorial-multishop-16x
https://catalogo-onlinersi.net/en/content/29-update-product-stock-with-0-quantity-when-import-with-csv
http://blog.irrelevant.com/2013/08/prestashop-switching-to-shared-stock.html
https://www.prestashop.com/forums/topic/465892-multi-store-how-to-turn-on-sharing-quantities-without-resetting-qty/
http://www.inmotionhosting.com/support/edu/prestashop-15/working-with-multi-shops/multistore-share-inventory
http://doc.prestashop.com/display/PS16/Sample+Usages+and+Specifics
https://www.prestashop.com/forums/topic/292960-mulitshop-warenbest%C3%A4nde-teilen/
http://doc.prestashop.com/display/PS16/The+multistore+interface
https://www.hostknox.com/tutorials/prestashop/1.5-1.6/multistore
http://doc.prestashop.com/display/PS15/Managing+Multiple+Shops#ManagingMultipleShops-Creatinganewshop
https://www.prestashop.com/forums/topic/293795-can-i-export-a-theme-with-module-configuration-settings/
---
EICAPTCHA
https://github.com/nenes25/eicaptcha/releases
https://www.h-hennes.fr/blog/2018/02/23/eicaptcha-ajout-dune-configuration-avancees-des-selecteurs/
themes/yourtheme/contact-form.tpl
{if $captcha}
<div class="g-recaptcha" data-sitekey="6LcDDU8UAAAAAOeTYq9x-I1CxrFQw-RsJZVwUAcg" ></div>
{/if}
<div class="submit-contact">
###(change to submit-contact only if you have trouble because it is inserted at the login instead of contact and then : in settings, enter keys and change "Custom css selection contact form" to .submit-contact
https://github.com/Somsubhra/github-release-stats e.g. http://www.somsubhra.com/github-release-stats/?username=rfjakob&repository=gocryptfs
!!docker
mysql update:
```
piwikdb=mysql.piwik.host-name.com
docker exec -i $piwikdb /bin/bash -c " mysql_upgrade -p$(docker exec -t $piwikdb printenv MYSQL_ROOT_PASSWORD|tr -cd '[:alnum:]')"
```
---
https://matomo.org/docs/update/
https://matomo.org/faq/how-to-install/faq_98/
https://stackoverflow.com/questions/34478471/configuring-piwik-accessed-via-an-nginx-reverse-proxy
https://forum.matomo.org/t/keine-funktion-hinter-apache-reverse-proxy/7354
https://github.com/matomo-org/matomo/issues/647
https://github.com/matomo-org/matomo/issues/11438
set up mysql
```
CREATE USER 'piwik'@'localhost' IDENTIFIED BY 'asdknjaskjdnasd';
GRANT ALL PRIVILEGES ON piwik . * TO 'piwik'@'localhost';
FLUSH PRIVILEGES;
```
!! !!!INSTALL GeoIP-DB first(including update URL)
(if vhosts are not properly logged or anything try smth like below)
```
sed 's/\(.\+\)CustomLog\(.\+\)combined/ LogFormat "%v %h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" vhost_combined\n\1CustomLog\2 vhost_combined/g' * -i
```
(then after your logging rules match, do dummy call to all your URL's, e.g.:)
```
grep Server *|grep -e verName -e verAlia|cut -d":" -f2|sed 's/ServerAlias\|ServerName//g'|grep -v "#"|sed 's/ //g'|sort|uniq|while read a;do curl -kLa "https://"$a >/dev/null & curl -kLa "http://"$a >/dev/null ;done
```
import_logs.py may ignore --accept-invalid-ssl-certificate , maybe disable version check in your import_logs.py to :
```
if config.options.accept_invalid_ssl_certificate: ##previously with "and python version check"
```
!!! generic import template
```
python ~/www/piwik/misc/log-analytics/import_logs.py --url=https://piwik.domain.tld --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots --hostname="*" --add-sites-new-hosts --accept-invalid-ssl-certificate --log-format-name=common_vhost /var/log/apache/*.log
~/www/piwik/console core:archive --force-all-websites --force-all-periods=315576000 --force-date-last-n=1000 --url='https://piwik.domain.tld'
```
https://betacloud.ai/blog/how-to-setup-wss-for-ratchet-websocket-server-on-nginx-or-apache
https://www.nginx.com/blog/websocket-nginx/
https://www.npmjs.com/package/wscat
https://forum.mattermost.org/t/solved-apache2-reverseproxy-with-websocket-https/437
{{narrow{
* This is a working solution that I don't like much, because I had to break and remove the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] out of the hijacking chain, which I think might not be the best solution. -- 2012/10/19
* I changed my mind because it does not make sense to do the same thing twice. Removing the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] out of the hijacking chain also removes the possibilities of rendering the same math twice^^†^^. Why there was such a chance? Because the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] needed to hijack both {{{displayTiddler()}}} and {{{refreshTiddler()}}}, and {{{displayTiddler()}}} also calls {{{refreshTiddler()}}} during its process. Why it has to hijack both functions? Because the {{{TiddlyWiki}}} does not always call {{{displayTiddler()}}} to render a tiddler, it some times calls the {{{refreshTiddlyer()}}} directly. Removing the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] out of the hijacking chain leaves it no chance to start math rendering by itself, and the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] a chance to manipulate the time of math rendering according to its needs, inside the {{{refreshTiddler()}}} function. -- 2012/10/20
* And that removes the necessity of hijacking both {{{displayTiddler()}}} and {{{refreshTiddler()}}} as well. -- 2012/11/12
----
** ^^†MathJaxPlugin doesn't seem to do the same math twice. See text below.^^
}}}
----
[[MathJax|http://www.mathjax.org/]] is one of my favorite solutions for math display on the web. It has good support for {{{LaTeX}}} syntax, which I use a lot, and generates beautiful output in most of the modern browsers. There are more than one plugins that bring [[MathJax|http://www.mathjax.org/]] into the {{{TiddlyWiki}}} world, among which the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]], the one used in this space, is probably the smallest. The way the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] works is to hijack the {{{displayTiddler()}}} core function and insert math rendering actions after the tiddler being rendered. It has been going well with the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] since the first release until recently that it broke down in {{{TiddlySpace}}} (while still worked for local files).
The breakdown came after the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] switched from hijacking the {{{refreshTiddler()}}} to {{{displayTiddler()}}} core function. The reason for such a change was to obtain the correct width of a math-containing table cell, for it is not possible to obtain in {{{refreshTiddler()}}} where math rendering (with [[MathJax|http://www.mathjax.org/]]) has not yet started. Hijacking the {{{displayTiddler()}}} function gives the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] a chance to wait for the end of math rendering to get the final width of math-containing cells. The reasons why the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] broke down after the change, however, are not all straight forward to me.
The first reason was related to how {{{TiddlyWiki}}} (or Javascript?) handles {{{undefined}}} objects. A simple
{{{
if ( MathJax !== undefined ) { ... }
}}}
worked for local files but failed in {{{TiddlySpace}}}: an {{{undefined object}}} exception (or something like that) was thrown and not caught in [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]], resulting in a silent breakdown of the plugin. __The fix is to test the type of object__ instead of the object itself, as shown below.
{{{
if ( typeof MathJax !== 'undefined' ) { ... }
}}}
> This seems a common practice in other Javascript codes, but what puzzles me is that it works with the local files and fails with TiddlySpace.
>>The [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] needs to test the existence of object {{{MathJax}}}, at least at startup, because the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] loads asynchronously the latest codes of [[MathJax|http://www.mathjax.org/]] from the Internet, which may take a longer time than the {{{Tiddlywiki}}} needs to get ready and start to load the {{{DefaultTiddler}}}. Before the codes are completely loaded, the math renderer object {{{MathJax}}} remains undefined.
The second one was with [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]]: it does not return the {{{tiddlerElement}}} in its hijacking {{{displayTiddler()}}} function so the tiddler rendering stopped there, leaving [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] no chance to do its jobs. This did not cause any trouble before because the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] used to do in the {{{refreshTiddler()}}} function, which is invoked within the {{{displayTiddler()}}} and therefore finished before the math rendering started. Simply adding a statement to return the {{{tiddlerElement}}} could definitely fix the problem, but that will require changes made to the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]], which I would rather choose not to if there are still other possibilities. See the following paragraph for more details.
The third reason took me a while to figure out. The main trouble was an infinite loop of self invocation in [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]]'s {{{displayTiddler()}}} function. This strange behavior was later found mostly due to the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] itself: it broke the hijacking chain by calling the {{{displayTiddler()}}} function hijacked by the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] instead of by itself. This is not the normal way of hijacking a function from another library. Normally a hijacking function should call the one that's hijacked by itself to minimize deviation from the normal flow of code execution. The [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] breaks it with a reason which is explained below. In addition, the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] hijacked the {{{TiddlyWiki}}}'s {{{displayTiddler()}}} function after the codes are completely loaded, which with local files is still before but with TiddlySpace is much later than the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] gets loaded. It was this delay in hijacking time that caused the self invocation loop because the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] was actually hijacking [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]]'s {{{displayTiddler()}}} instead of the {{{TiddlyWiki}}}'s original. Therefore when [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]]'s {{{displayTiddler()}}} function calls [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]]'s hijacked version it's actually calling itself, in which it calls itself again, and again, and again, resulting in an infinite loop of self invocation. This problem, together with the previous one, was avoided by taking the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] out of the {{{displayTiddler()}}}'s hijacking chain. This way the {{{displayTiddler()}}} function that gets executed is never the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]]'s own version, but the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]]'s, in which it manipulates math rendering according to its needs. The [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]] is still needed for its nice and compact formatter to render math expressions.
>The [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] is breaking the normal hijacking chain because it needs to reformat a table some times before, while other times after, the math rendering is done. It seemed feasible to always do table reformatting after math rendering, which works for the after-math kind of situations, then re-invoke the math renderer afterwards for the before-math kind of cases. It was, however, not solving the problem because the __re-invocation of math renderer did not do the expected work__. Actually it did not seem to do anything. __I have no idea why__. After some attempts I figured that I could have both kinds of situations taken care of, without much trouble, by breaking the [[MathJaxPlugin|http://www.guyrutenberg.com/2011/06/25/latex-for-tiddlywiki-a-mathjax-plugin]]'s {{{displayTiddler()}}} function to insert [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]]'s action in accordance with the requirements in each kind of cases.
>>In most of the cases the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] reformats a table after math rendering because table dimensions could be changed after math expressions displayed. But there is one kind of situations where [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] needs to do in the opposite order: when the table caption contains math expressions. The reason is that [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] removes the table caption and reproduces it in a {{{<DIV>}}} element above the table. If the math rendering were done before caption reproduction, the math expression in the caption would never be rendered for, as mentioned above, re-rendering did not do the work.
>>>The [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] removes the table caption for scrolling purposes. To scroll a table without scrolling the window, the table has to be absolutely positioned inside a relatively positioned container. This, however, is not the default case in {{{TiddlyWiki}}} (or maybe in general?), so [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] needs to create the necessary containers to wrap the scrolling part of the table. Most of the times it is the table content, not the table caption, that we want to scroll, hence the [[TableEditor|http://twtable.tiddlyspace.com/#TableEditor]] removes the caption and places it elsewhere to keep it from scrolling with the table body.
https://unix.stackexchange.com/questions/101490/mirror-dual-monitors-with-different-resolutions
https://www.ebay.de/p/TP-LINK-Archer-C60-Ac1350-dual-Band-WRLS-Router/2075184715
https://openwrt.org/toh/tp-link/archer-c50
https://openwrt.org/toh/hwdata/tp-link/tp-link_archer_c50_v4
https://www.ebay.de/itm/TP-Link-Archer-C50-V3-0-AC1200-Dualband-WLAN-Router-mit-4-Antennen-2-4-GHz-5-GHz/332595064498
https://www.ebay.de/itm/TP-LINK-Archer-C5-AC1200-Dual-Band-Gigabit-WiFi-Router-Plug-Type-C-EU/401776255908